pdata 370 arch/arm/common/locomo.c struct locomo_platform_data *pdata = me->platform_data; pdata 386 arch/arm/common/locomo.c lchip->irq_base = (pdata) ? pdata->irq_base : NO_IRQ; pdata 107 arch/arm/common/sa1111.c struct sa1111_platform_data *pdata; pdata 831 arch/arm/common/sa1111.c sachip->pdata = pd; pdata 1297 arch/arm/common/sa1111.c if (sachip->pdata && sachip->pdata->enable) pdata 1298 arch/arm/common/sa1111.c ret = sachip->pdata->enable(sachip->pdata->data, sadev->devid); pdata 1325 arch/arm/common/sa1111.c if (sachip->pdata && sachip->pdata->disable) pdata 1326 arch/arm/common/sa1111.c sachip->pdata->disable(sachip->pdata->data, sadev->devid); pdata 73 arch/arm/mach-davinci/cpuidle.c struct davinci_cpuidle_config *pdata = pdev->dev.platform_data; pdata 75 arch/arm/mach-davinci/cpuidle.c if (!pdata) { pdata 80 arch/arm/mach-davinci/cpuidle.c ddr2_reg_base = pdata->ddr2_ctlr_base; pdata 82 arch/arm/mach-davinci/cpuidle.c ddr2_pdown = pdata->ddr2_pdown; pdata 61 arch/arm/mach-davinci/davinci.h int davinci_gpio_register(struct resource *res, int size, void *pdata); pdata 109 arch/arm/mach-davinci/davinci.h void dm365_init_ks(struct davinci_ks_platform_data *pdata); pdata 131 arch/arm/mach-davinci/davinci.h void dm646x_init_mcasp0(struct snd_platform_data *pdata); pdata 132 arch/arm/mach-davinci/davinci.h void dm646x_init_mcasp1(struct snd_platform_data *pdata); pdata 341 arch/arm/mach-davinci/devices-da8xx.c struct davinci_i2c_platform_data *pdata) pdata 352 arch/arm/mach-davinci/devices-da8xx.c pdev->dev.platform_data = pdata; pdata 553 arch/arm/mach-davinci/devices-da8xx.c void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata) pdata 578 arch/arm/mach-davinci/devices-da8xx.c pdev->dev.platform_data = pdata; pdata 691 arch/arm/mach-davinci/devices-da8xx.c int __init da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata) pdata 693 arch/arm/mach-davinci/devices-da8xx.c da8xx_lcdc_device.dev.platform_data = pdata; pdata 757 arch/arm/mach-davinci/devices-da8xx.c int __init da8xx_register_gpio(void *pdata) pdata 759 arch/arm/mach-davinci/devices-da8xx.c da8xx_gpio_device.dev.platform_data = pdata; pdata 66 arch/arm/mach-davinci/devices.c void __init davinci_init_i2c(struct davinci_i2c_platform_data *pdata) pdata 71 arch/arm/mach-davinci/devices.c davinci_i2c_device.dev.platform_data = pdata; pdata 299 arch/arm/mach-davinci/devices.c int davinci_gpio_register(struct resource *res, int size, void *pdata) pdata 303 arch/arm/mach-davinci/devices.c davinci_gpio_device.dev.platform_data = pdata; pdata 752 arch/arm/mach-davinci/dm365.c void __init dm365_init_ks(struct davinci_ks_platform_data *pdata) pdata 754 arch/arm/mach-davinci/dm365.c dm365_ks_device.dev.platform_data = pdata; pdata 596 arch/arm/mach-davinci/dm646x.c void __init dm646x_init_mcasp0(struct snd_platform_data *pdata) pdata 598 arch/arm/mach-davinci/dm646x.c dm646x_mcasp0_device.dev.platform_data = pdata; pdata 602 arch/arm/mach-davinci/dm646x.c void __init dm646x_init_mcasp1(struct snd_platform_data *pdata) pdata 604 arch/arm/mach-davinci/dm646x.c dm646x_mcasp1_device.dev.platform_data = pdata; pdata 102 arch/arm/mach-davinci/include/mach/da8xx.h int da8xx_register_i2c(int instance, struct davinci_i2c_platform_data *pdata); pdata 107 arch/arm/mach-davinci/include/mach/da8xx.h int da8xx_register_usb11(struct da8xx_ohci_root_hub *pdata); pdata 112 arch/arm/mach-davinci/include/mach/da8xx.h int da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata); pdata 115 arch/arm/mach-davinci/include/mach/da8xx.h void da8xx_register_mcasp(int id, struct snd_platform_data *pdata); pdata 117 arch/arm/mach-davinci/include/mach/da8xx.h int da8xx_register_gpio(void *pdata); pdata 128 arch/arm/mach-davinci/usb-da8xx.c int __init da8xx_register_usb11(struct da8xx_ohci_root_hub *pdata) pdata 130 arch/arm/mach-davinci/usb-da8xx.c da8xx_usb11_device.dev.platform_data = pdata; pdata 141 arch/arm/mach-davinci/usb-da8xx.c struct da8xx_cfgchip_clk_platform_data pdata; pdata 143 arch/arm/mach-davinci/usb-da8xx.c pdata.cfgchip = da8xx_get_cfgchip(); pdata 144 arch/arm/mach-davinci/usb-da8xx.c da8xx_usb_phy_clks_device.dev.platform_data = &pdata; pdata 9 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx21_hcd(pdata) \ pdata 10 arch/arm/mach-imx/devices-imx21.h imx_add_imx21_hcd(&imx21_imx21_hcd_data, pdata) pdata 17 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_fb(pdata) \ pdata 18 arch/arm/mach-imx/devices-imx21.h imx_add_imx_fb(&imx21_imx_fb_data, pdata) pdata 21 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_i2c(pdata) \ pdata 22 arch/arm/mach-imx/devices-imx21.h imx_add_imx_i2c(&imx21_imx_i2c_data, pdata) pdata 25 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_keypad(pdata) \ pdata 26 arch/arm/mach-imx/devices-imx21.h imx_add_imx_keypad(&imx21_imx_keypad_data, pdata) pdata 29 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_ssi(id, pdata) \ pdata 30 arch/arm/mach-imx/devices-imx21.h imx_add_imx_ssi(&imx21_imx_ssi_data[id], pdata) pdata 33 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_uart(id, pdata) \ pdata 34 arch/arm/mach-imx/devices-imx21.h imx_add_imx_uart_1irq(&imx21_imx_uart_data[id], pdata) pdata 35 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_uart0(pdata) imx21_add_imx_uart(0, pdata) pdata 36 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_uart1(pdata) imx21_add_imx_uart(1, pdata) pdata 37 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_uart2(pdata) imx21_add_imx_uart(2, pdata) pdata 38 arch/arm/mach-imx/devices-imx21.h #define imx21_add_imx_uart3(pdata) imx21_add_imx_uart(3, pdata) pdata 41 arch/arm/mach-imx/devices-imx21.h #define imx21_add_mxc_mmc(id, pdata) \ pdata 42 arch/arm/mach-imx/devices-imx21.h imx_add_mxc_mmc(&imx21_mxc_mmc_data[id], pdata) pdata 45 arch/arm/mach-imx/devices-imx21.h #define imx21_add_mxc_nand(pdata) \ pdata 46 arch/arm/mach-imx/devices-imx21.h imx_add_mxc_nand(&imx21_mxc_nand_data, pdata) pdata 53 arch/arm/mach-imx/devices-imx21.h #define imx21_add_cspi(id, pdata) \ pdata 54 arch/arm/mach-imx/devices-imx21.h imx_add_spi_imx(&imx21_cspi_data[id], pdata) pdata 55 arch/arm/mach-imx/devices-imx21.h #define imx21_add_spi_imx0(pdata) imx21_add_cspi(0, pdata) pdata 56 arch/arm/mach-imx/devices-imx21.h #define imx21_add_spi_imx1(pdata) imx21_add_cspi(1, pdata) pdata 9 arch/arm/mach-imx/devices-imx27.h #define imx27_add_fec(pdata) \ pdata 10 arch/arm/mach-imx/devices-imx27.h imx_add_fec(&imx27_fec_data, pdata) pdata 13 arch/arm/mach-imx/devices-imx27.h #define imx27_add_fsl_usb2_udc(pdata) \ pdata 14 arch/arm/mach-imx/devices-imx27.h imx_add_fsl_usb2_udc(&imx27_fsl_usb2_udc_data, pdata) pdata 25 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_fb(pdata) \ pdata 26 arch/arm/mach-imx/devices-imx27.h imx_add_imx_fb(&imx27_imx_fb_data, pdata) pdata 29 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_i2c(id, pdata) \ pdata 30 arch/arm/mach-imx/devices-imx27.h imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata) pdata 33 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_keypad(pdata) \ pdata 34 arch/arm/mach-imx/devices-imx27.h imx_add_imx_keypad(&imx27_imx_keypad_data, pdata) pdata 37 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_ssi(id, pdata) \ pdata 38 arch/arm/mach-imx/devices-imx27.h imx_add_imx_ssi(&imx27_imx_ssi_data[id], pdata) pdata 41 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_uart(id, pdata) \ pdata 42 arch/arm/mach-imx/devices-imx27.h imx_add_imx_uart_1irq(&imx27_imx_uart_data[id], pdata) pdata 43 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_uart0(pdata) imx27_add_imx_uart(0, pdata) pdata 44 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_uart1(pdata) imx27_add_imx_uart(1, pdata) pdata 45 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_uart2(pdata) imx27_add_imx_uart(2, pdata) pdata 46 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_uart3(pdata) imx27_add_imx_uart(3, pdata) pdata 47 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_uart4(pdata) imx27_add_imx_uart(4, pdata) pdata 48 arch/arm/mach-imx/devices-imx27.h #define imx27_add_imx_uart5(pdata) imx27_add_imx_uart(5, pdata) pdata 51 arch/arm/mach-imx/devices-imx27.h #define imx27_add_mx2_camera(pdata) \ pdata 52 arch/arm/mach-imx/devices-imx27.h imx_add_mx2_camera(&imx27_mx2_camera_data, pdata) pdata 59 arch/arm/mach-imx/devices-imx27.h #define imx27_add_mxc_ehci_otg(pdata) \ pdata 60 arch/arm/mach-imx/devices-imx27.h imx_add_mxc_ehci(&imx27_mxc_ehci_otg_data, pdata) pdata 62 arch/arm/mach-imx/devices-imx27.h #define imx27_add_mxc_ehci_hs(id, pdata) \ pdata 63 arch/arm/mach-imx/devices-imx27.h imx_add_mxc_ehci(&imx27_mxc_ehci_hs_data[id - 1], pdata) pdata 66 arch/arm/mach-imx/devices-imx27.h #define imx27_add_mxc_mmc(id, pdata) \ pdata 67 arch/arm/mach-imx/devices-imx27.h imx_add_mxc_mmc(&imx27_mxc_mmc_data[id], pdata) pdata 70 arch/arm/mach-imx/devices-imx27.h #define imx27_add_mxc_nand(pdata) \ pdata 71 arch/arm/mach-imx/devices-imx27.h imx_add_mxc_nand(&imx27_mxc_nand_data, pdata) pdata 78 arch/arm/mach-imx/devices-imx27.h #define imx27_add_cspi(id, pdata) \ pdata 79 arch/arm/mach-imx/devices-imx27.h imx_add_spi_imx(&imx27_cspi_data[id], pdata) pdata 80 arch/arm/mach-imx/devices-imx27.h #define imx27_add_spi_imx0(pdata) imx27_add_cspi(0, pdata) pdata 81 arch/arm/mach-imx/devices-imx27.h #define imx27_add_spi_imx1(pdata) imx27_add_cspi(1, pdata) pdata 82 arch/arm/mach-imx/devices-imx27.h #define imx27_add_spi_imx2(pdata) imx27_add_cspi(2, pdata) pdata 9 arch/arm/mach-imx/devices-imx31.h #define imx31_add_fsl_usb2_udc(pdata) \ pdata 10 arch/arm/mach-imx/devices-imx31.h imx_add_fsl_usb2_udc(&imx31_fsl_usb2_udc_data, pdata) pdata 17 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_i2c(id, pdata) \ pdata 18 arch/arm/mach-imx/devices-imx31.h imx_add_imx_i2c(&imx31_imx_i2c_data[id], pdata) pdata 19 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_i2c0(pdata) imx31_add_imx_i2c(0, pdata) pdata 20 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_i2c1(pdata) imx31_add_imx_i2c(1, pdata) pdata 21 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_i2c2(pdata) imx31_add_imx_i2c(2, pdata) pdata 24 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_keypad(pdata) \ pdata 25 arch/arm/mach-imx/devices-imx31.h imx_add_imx_keypad(&imx31_imx_keypad_data, pdata) pdata 28 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_ssi(id, pdata) \ pdata 29 arch/arm/mach-imx/devices-imx31.h imx_add_imx_ssi(&imx31_imx_ssi_data[id], pdata) pdata 32 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_uart(id, pdata) \ pdata 33 arch/arm/mach-imx/devices-imx31.h imx_add_imx_uart_1irq(&imx31_imx_uart_data[id], pdata) pdata 34 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_uart0(pdata) imx31_add_imx_uart(0, pdata) pdata 35 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_uart1(pdata) imx31_add_imx_uart(1, pdata) pdata 36 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_uart2(pdata) imx31_add_imx_uart(2, pdata) pdata 37 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_uart3(pdata) imx31_add_imx_uart(3, pdata) pdata 38 arch/arm/mach-imx/devices-imx31.h #define imx31_add_imx_uart4(pdata) imx31_add_imx_uart(4, pdata) pdata 43 arch/arm/mach-imx/devices-imx31.h #define imx31_alloc_mx3_camera(pdata) \ pdata 44 arch/arm/mach-imx/devices-imx31.h imx_alloc_mx3_camera(&imx31_ipu_core_data, pdata) pdata 45 arch/arm/mach-imx/devices-imx31.h #define imx31_add_mx3_sdc_fb(pdata) \ pdata 46 arch/arm/mach-imx/devices-imx31.h imx_add_mx3_sdc_fb(&imx31_ipu_core_data, pdata) pdata 49 arch/arm/mach-imx/devices-imx31.h #define imx31_add_mxc_ehci_otg(pdata) \ pdata 50 arch/arm/mach-imx/devices-imx31.h imx_add_mxc_ehci(&imx31_mxc_ehci_otg_data, pdata) pdata 52 arch/arm/mach-imx/devices-imx31.h #define imx31_add_mxc_ehci_hs(id, pdata) \ pdata 53 arch/arm/mach-imx/devices-imx31.h imx_add_mxc_ehci(&imx31_mxc_ehci_hs_data[id - 1], pdata) pdata 56 arch/arm/mach-imx/devices-imx31.h #define imx31_add_mxc_mmc(id, pdata) \ pdata 57 arch/arm/mach-imx/devices-imx31.h imx_add_mxc_mmc(&imx31_mxc_mmc_data[id], pdata) pdata 60 arch/arm/mach-imx/devices-imx31.h #define imx31_add_mxc_nand(pdata) \ pdata 61 arch/arm/mach-imx/devices-imx31.h imx_add_mxc_nand(&imx31_mxc_nand_data, pdata) pdata 72 arch/arm/mach-imx/devices-imx31.h #define imx31_add_cspi(id, pdata) \ pdata 73 arch/arm/mach-imx/devices-imx31.h imx_add_spi_imx(&imx31_cspi_data[id], pdata) pdata 74 arch/arm/mach-imx/devices-imx31.h #define imx31_add_spi_imx0(pdata) imx31_add_cspi(0, pdata) pdata 75 arch/arm/mach-imx/devices-imx31.h #define imx31_add_spi_imx1(pdata) imx31_add_cspi(1, pdata) pdata 76 arch/arm/mach-imx/devices-imx31.h #define imx31_add_spi_imx2(pdata) imx31_add_cspi(2, pdata) pdata 9 arch/arm/mach-imx/devices-imx35.h #define imx35_add_fec(pdata) \ pdata 10 arch/arm/mach-imx/devices-imx35.h imx_add_fec(&imx35_fec_data, pdata) pdata 13 arch/arm/mach-imx/devices-imx35.h #define imx35_add_fsl_usb2_udc(pdata) \ pdata 14 arch/arm/mach-imx/devices-imx35.h imx_add_fsl_usb2_udc(&imx35_fsl_usb2_udc_data, pdata) pdata 27 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_i2c(id, pdata) \ pdata 28 arch/arm/mach-imx/devices-imx35.h imx_add_imx_i2c(&imx35_imx_i2c_data[id], pdata) pdata 29 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_i2c0(pdata) imx35_add_imx_i2c(0, pdata) pdata 30 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_i2c1(pdata) imx35_add_imx_i2c(1, pdata) pdata 31 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_i2c2(pdata) imx35_add_imx_i2c(2, pdata) pdata 34 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_keypad(pdata) \ pdata 35 arch/arm/mach-imx/devices-imx35.h imx_add_imx_keypad(&imx35_imx_keypad_data, pdata) pdata 38 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_ssi(id, pdata) \ pdata 39 arch/arm/mach-imx/devices-imx35.h imx_add_imx_ssi(&imx35_imx_ssi_data[id], pdata) pdata 42 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_uart(id, pdata) \ pdata 43 arch/arm/mach-imx/devices-imx35.h imx_add_imx_uart_1irq(&imx35_imx_uart_data[id], pdata) pdata 44 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_uart0(pdata) imx35_add_imx_uart(0, pdata) pdata 45 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_uart1(pdata) imx35_add_imx_uart(1, pdata) pdata 46 arch/arm/mach-imx/devices-imx35.h #define imx35_add_imx_uart2(pdata) imx35_add_imx_uart(2, pdata) pdata 51 arch/arm/mach-imx/devices-imx35.h #define imx35_alloc_mx3_camera(pdata) \ pdata 52 arch/arm/mach-imx/devices-imx35.h imx_alloc_mx3_camera(&imx35_ipu_core_data, pdata) pdata 53 arch/arm/mach-imx/devices-imx35.h #define imx35_add_mx3_sdc_fb(pdata) \ pdata 54 arch/arm/mach-imx/devices-imx35.h imx_add_mx3_sdc_fb(&imx35_ipu_core_data, pdata) pdata 57 arch/arm/mach-imx/devices-imx35.h #define imx35_add_mxc_ehci_otg(pdata) \ pdata 58 arch/arm/mach-imx/devices-imx35.h imx_add_mxc_ehci(&imx35_mxc_ehci_otg_data, pdata) pdata 60 arch/arm/mach-imx/devices-imx35.h #define imx35_add_mxc_ehci_hs(pdata) \ pdata 61 arch/arm/mach-imx/devices-imx35.h imx_add_mxc_ehci(&imx35_mxc_ehci_hs_data, pdata) pdata 64 arch/arm/mach-imx/devices-imx35.h #define imx35_add_mxc_nand(pdata) \ pdata 65 arch/arm/mach-imx/devices-imx35.h imx_add_mxc_nand(&imx35_mxc_nand_data, pdata) pdata 76 arch/arm/mach-imx/devices-imx35.h #define imx35_add_sdhci_esdhc_imx(id, pdata) \ pdata 77 arch/arm/mach-imx/devices-imx35.h imx_add_sdhci_esdhc_imx(&imx35_sdhci_esdhc_imx_data[id], pdata) pdata 80 arch/arm/mach-imx/devices-imx35.h #define imx35_add_cspi(id, pdata) \ pdata 81 arch/arm/mach-imx/devices-imx35.h imx_add_spi_imx(&imx35_cspi_data[id], pdata) pdata 82 arch/arm/mach-imx/devices-imx35.h #define imx35_add_spi_imx0(pdata) imx35_add_cspi(0, pdata) pdata 83 arch/arm/mach-imx/devices-imx35.h #define imx35_add_spi_imx1(pdata) imx35_add_cspi(1, pdata) pdata 48 arch/arm/mach-imx/devices/devices-common.h const struct fec_platform_data *pdata); pdata 67 arch/arm/mach-imx/devices/devices-common.h const struct fsl_usb2_platform_data *pdata); pdata 71 arch/arm/mach-imx/devices/devices-common.h const struct gpio_keys_platform_data *pdata); pdata 80 arch/arm/mach-imx/devices/devices-common.h const struct mx21_usbh_platform_data *pdata); pdata 114 arch/arm/mach-imx/devices/devices-common.h const struct imx_fb_platform_data *pdata); pdata 126 arch/arm/mach-imx/devices/devices-common.h const struct imxi2c_platform_data *pdata); pdata 136 arch/arm/mach-imx/devices/devices-common.h const struct matrix_keymap_data *pdata); pdata 151 arch/arm/mach-imx/devices/devices-common.h const struct imx_ssi_platform_data *pdata); pdata 162 arch/arm/mach-imx/devices/devices-common.h const struct imxuart_platform_data *pdata); pdata 175 arch/arm/mach-imx/devices/devices-common.h const struct mx3_camera_pdata *pdata); pdata 178 arch/arm/mach-imx/devices/devices-common.h struct mx3fb_platform_data *pdata); pdata 192 arch/arm/mach-imx/devices/devices-common.h const struct mx2_camera_platform_data *pdata); pdata 211 arch/arm/mach-imx/devices/devices-common.h const struct mxc_usbh_platform_data *pdata); pdata 224 arch/arm/mach-imx/devices/devices-common.h const struct imxmmc_platform_data *pdata); pdata 242 arch/arm/mach-imx/devices/devices-common.h const struct mxc_nand_platform_data *pdata); pdata 277 arch/arm/mach-imx/devices/devices-common.h const struct esdhc_platform_data *pdata); pdata 289 arch/arm/mach-imx/devices/devices-common.h const struct spi_imx_master *pdata); pdata 294 arch/arm/mach-imx/devices/devices-common.h resource_size_t iobase, int irq, struct sdma_platform_data *pdata); pdata 32 arch/arm/mach-imx/devices/platform-fec.c const struct fec_platform_data *pdata) pdata 48 arch/arm/mach-imx/devices/platform-fec.c pdata, sizeof(*pdata), DMA_BIT_MASK(32)); pdata 35 arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c const struct fsl_usb2_platform_data *pdata) pdata 50 arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c pdata, sizeof(*pdata), DMA_BIT_MASK(32)); pdata 11 arch/arm/mach-imx/devices/platform-gpio_keys.c const struct gpio_keys_platform_data *pdata) pdata 14 arch/arm/mach-imx/devices/platform-gpio_keys.c 0, pdata, sizeof(*pdata)); pdata 32 arch/arm/mach-imx/devices/platform-imx-dma.c resource_size_t iobase, int irq, struct sdma_platform_data *pdata) pdata 47 arch/arm/mach-imx/devices/platform-imx-dma.c -1, res, ARRAY_SIZE(res), pdata, sizeof(*pdata)); pdata 31 arch/arm/mach-imx/devices/platform-imx-fb.c const struct imx_fb_platform_data *pdata) pdata 46 arch/arm/mach-imx/devices/platform-imx-fb.c pdata, sizeof(*pdata), DMA_BIT_MASK(32)); pdata 57 arch/arm/mach-imx/devices/platform-imx-i2c.c const struct imxi2c_platform_data *pdata) pdata 73 arch/arm/mach-imx/devices/platform-imx-i2c.c pdata, sizeof(*pdata)); pdata 38 arch/arm/mach-imx/devices/platform-imx-keypad.c const struct matrix_keymap_data *pdata) pdata 53 arch/arm/mach-imx/devices/platform-imx-keypad.c res, ARRAY_SIZE(res), pdata, sizeof(*pdata)); pdata 59 arch/arm/mach-imx/devices/platform-imx-ssi.c const struct imx_ssi_platform_data *pdata) pdata 85 arch/arm/mach-imx/devices/platform-imx-ssi.c pdata, sizeof(*pdata)); pdata 75 arch/arm/mach-imx/devices/platform-imx-uart.c const struct imxuart_platform_data *pdata) pdata 91 arch/arm/mach-imx/devices/platform-imx-uart.c res, ARRAY_SIZE(res), pdata, sizeof(*pdata)); pdata 22 arch/arm/mach-imx/devices/platform-imx21-hcd.c const struct mx21_usbh_platform_data *pdata) pdata 37 arch/arm/mach-imx/devices/platform-imx21-hcd.c pdata, sizeof(*pdata), DMA_BIT_MASK(32)); pdata 60 arch/arm/mach-imx/devices/platform-ipu-core.c const struct mx3_camera_pdata *pdata) pdata 90 arch/arm/mach-imx/devices/platform-ipu-core.c if (pdata) { pdata 93 arch/arm/mach-imx/devices/platform-ipu-core.c ret = platform_device_add_data(pdev, pdata, sizeof(*pdata)); pdata 109 arch/arm/mach-imx/devices/platform-ipu-core.c struct mx3fb_platform_data *pdata) pdata 122 arch/arm/mach-imx/devices/platform-ipu-core.c pdata->dma_dev = &imx_ipu_coredev->dev; pdata 125 arch/arm/mach-imx/devices/platform-ipu-core.c res, ARRAY_SIZE(res), pdata, sizeof(*pdata), pdata 34 arch/arm/mach-imx/devices/platform-mx2-camera.c const struct mx2_camera_platform_data *pdata) pdata 57 arch/arm/mach-imx/devices/platform-mx2-camera.c pdata, sizeof(*pdata), DMA_BIT_MASK(32)); pdata 45 arch/arm/mach-imx/devices/platform-mxc-ehci.c const struct mxc_usbh_platform_data *pdata) pdata 60 arch/arm/mach-imx/devices/platform-mxc-ehci.c pdata, sizeof(*pdata), DMA_BIT_MASK(32)); pdata 52 arch/arm/mach-imx/devices/platform-mxc-mmc.c const struct imxmmc_platform_data *pdata) pdata 71 arch/arm/mach-imx/devices/platform-mxc-mmc.c pdata, sizeof(*pdata), DMA_BIT_MASK(32)); pdata 51 arch/arm/mach-imx/devices/platform-mxc_nand.c const struct mxc_nand_platform_data *pdata) pdata 71 arch/arm/mach-imx/devices/platform-mxc_nand.c pdata, sizeof(*pdata)); pdata 40 arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c const struct esdhc_platform_data *pdata) pdata 58 arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c if (!pdata) pdata 59 arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c pdata = &default_esdhc_pdata; pdata 62 arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c ARRAY_SIZE(res), pdata, sizeof(*pdata), pdata 61 arch/arm/mach-imx/devices/platform-spi_imx.c const struct spi_imx_master *pdata) pdata 76 arch/arm/mach-imx/devices/platform-spi_imx.c res, ARRAY_SIZE(res), pdata, sizeof(*pdata)); pdata 167 arch/arm/mach-mmp/pxa168.c int __init pxa168_add_usb_host(struct mv_usb_platform_data *pdata) pdata 169 arch/arm/mach-mmp/pxa168.c pxa168_device_usb_host.dev.platform_data = pdata; pdata 44 arch/arm/mach-mmp/pxa168.h extern int __init pxa168_add_usb_host(struct mv_usb_platform_data *pdata); pdata 63 arch/arm/mach-mmp/sram.c struct sram_platdata *pdata = pdev->dev.platform_data; pdata 68 arch/arm/mach-mmp/sram.c if (!pdata || !pdata->pool_name) pdata 88 arch/arm/mach-mmp/sram.c info->pool_name = kstrdup(pdata->pool_name, GFP_KERNEL); pdata 89 arch/arm/mach-mmp/sram.c info->granularity = pdata->granularity; pdata 90 arch/arm/mach-omap1/board-nokia770.c static void mipid_shutdown(struct mipid_platform_data *pdata) pdata 92 arch/arm/mach-omap1/board-nokia770.c if (pdata->nreset_gpio != -1) { pdata 94 arch/arm/mach-omap1/board-nokia770.c gpio_set_value(pdata->nreset_gpio, 0); pdata 439 arch/arm/mach-omap1/devices.c struct omap_wd_timer_platform_data pdata; pdata 445 arch/arm/mach-omap1/devices.c pdata.read_reset_sources = omap1_get_reset_sources; pdata 449 arch/arm/mach-omap1/devices.c ret = platform_device_add_data(&omap_wdt_device, &pdata, pdata 450 arch/arm/mach-omap1/devices.c sizeof(pdata)); pdata 223 arch/arm/mach-omap1/gpio16xx.c struct omap_gpio_platform_data *pdata; pdata 237 arch/arm/mach-omap1/gpio16xx.c pdata = pdev->dev.platform_data; pdata 35 arch/arm/mach-omap1/i2c.c int __init omap_i2c_add_bus(struct omap_i2c_bus_platform_data *pdata, pdata 59 arch/arm/mach-omap1/i2c.c pdata->rev = OMAP_I2C_IP_VERSION_1; pdata 62 arch/arm/mach-omap1/i2c.c pdata->flags = OMAP_I2C_FLAG_NO_FIFO | pdata 70 arch/arm/mach-omap1/i2c.c pdata->flags |= OMAP_I2C_FLAG_BUS_SHIFT_1; pdata 72 arch/arm/mach-omap1/i2c.c pdata->flags |= OMAP_I2C_FLAG_BUS_SHIFT_2; pdata 74 arch/arm/mach-omap1/i2c.c pdev->dev.platform_data = pdata; pdata 15 arch/arm/mach-omap1/include/mach/usb.h void omap1_usb_init(struct omap_usb_config *pdata); pdata 17 arch/arm/mach-omap1/include/mach/usb.h static inline void omap1_usb_init(struct omap_usb_config *pdata) pdata 62 arch/arm/mach-omap1/timer.c struct dmtimer_platform_data *pdata; pdata 135 arch/arm/mach-omap1/timer.c pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); pdata 136 arch/arm/mach-omap1/timer.c if (!pdata) { pdata 141 arch/arm/mach-omap1/timer.c pdata->set_timer_src = omap1_dm_timer_set_src; pdata 142 arch/arm/mach-omap1/timer.c pdata->timer_capability = OMAP_TIMER_ALWON | pdata 145 arch/arm/mach-omap1/timer.c ret = platform_device_add_data(pdev, pdata, sizeof(*pdata)); pdata 165 arch/arm/mach-omap1/timer.c kfree(pdata); pdata 189 arch/arm/mach-omap1/usb.c static inline void udc_device_init(struct omap_usb_config *pdata) pdata 197 arch/arm/mach-omap1/usb.c pdata->udc_device = &udc_device; pdata 202 arch/arm/mach-omap1/usb.c static inline void udc_device_init(struct omap_usb_config *pdata) pdata 236 arch/arm/mach-omap1/usb.c static inline void ohci_device_init(struct omap_usb_config *pdata) pdata 240 arch/arm/mach-omap1/usb.c pdata->ohci_device = &ohci_device; pdata 241 arch/arm/mach-omap1/usb.c pdata->ocpi_enable = &ocpi_enable; pdata 246 arch/arm/mach-omap1/usb.c static inline void ohci_device_init(struct omap_usb_config *pdata) pdata 273 arch/arm/mach-omap1/usb.c static inline void otg_device_init(struct omap_usb_config *pdata) pdata 277 arch/arm/mach-omap1/usb.c pdata->otg_device = &otg_device; pdata 282 arch/arm/mach-omap1/usb.c static inline void otg_device_init(struct omap_usb_config *pdata) pdata 618 arch/arm/mach-omap1/usb.c struct omap_usb_config *pdata; pdata 620 arch/arm/mach-omap1/usb.c pdata = kmemdup(_pdata, sizeof(*pdata), GFP_KERNEL); pdata 621 arch/arm/mach-omap1/usb.c if (!pdata) pdata 624 arch/arm/mach-omap1/usb.c pdata->usb0_init = omap1_usb0_init; pdata 625 arch/arm/mach-omap1/usb.c pdata->usb1_init = omap1_usb1_init; pdata 626 arch/arm/mach-omap1/usb.c pdata->usb2_init = omap1_usb2_init; pdata 627 arch/arm/mach-omap1/usb.c udc_device_init(pdata); pdata 628 arch/arm/mach-omap1/usb.c ohci_device_init(pdata); pdata 629 arch/arm/mach-omap1/usb.c otg_device_init(pdata); pdata 632 arch/arm/mach-omap1/usb.c omap_otg_init(pdata); pdata 634 arch/arm/mach-omap1/usb.c omap_1510_usb_init(pdata); pdata 46 arch/arm/mach-omap2/mcbsp.c struct omap_mcbsp_platform_data *pdata) pdata 48 arch/arm/mach-omap2/mcbsp.c if (!pdata) pdata 51 arch/arm/mach-omap2/mcbsp.c pdata->force_ick_on = omap3_mcbsp_force_ick_on; pdata 483 arch/arm/mach-omap2/omap_device.c void *pdata, int pdata_len) pdata 492 arch/arm/mach-omap2/omap_device.c if (!pdata && pdata_len > 0) pdata 530 arch/arm/mach-omap2/omap_device.c ret = platform_device_add_data(pdev, pdata, pdata_len); pdata 72 arch/arm/mach-omap2/omap_device.h struct omap_hwmod *oh, void *pdata, pdata 266 arch/arm/mach-omap2/pm33xx-core.c struct am33xx_pm_platform_data *pdata; pdata 269 arch/arm/mach-omap2/pm33xx-core.c pdata = am33xx_pm_get_pdata(); pdata 273 arch/arm/mach-omap2/pm33xx-core.c devinfo.data = pdata; pdata 274 arch/arm/mach-omap2/pm33xx-core.c devinfo.size_data = sizeof(*pdata); pdata 65 arch/arm/mach-omap2/usb.h extern void usbhs_init(struct usbhs_omap_platform_data *pdata); pdata 661 arch/arm/mach-pxa/mioa701.c #define MIO_PARENT_DEV(var, strname, tparent, pdata) \ pdata 666 arch/arm/mach-pxa/mioa701.c .platform_data = pdata, \ pdata 670 arch/arm/mach-pxa/mioa701.c #define MIO_SIMPLE_DEV(var, strname, pdata) \ pdata 671 arch/arm/mach-pxa/mioa701.c MIO_PARENT_DEV(var, strname, NULL, pdata) pdata 208 arch/arm/mach-pxa/pxa3xx-ulpi.c static int pxa310_otg_init(struct pxa3xx_u2d_platform_data *pdata) pdata 212 arch/arm/mach-pxa/pxa3xx-ulpi.c if (pdata) { pdata 213 arch/arm/mach-pxa/pxa3xx-ulpi.c if (pdata->ulpi_mode & ULPI_SER_6PIN) pdata 215 arch/arm/mach-pxa/pxa3xx-ulpi.c else if (pdata->ulpi_mode & ULPI_SER_3PIN) pdata 241 arch/arm/mach-pxa/pxa3xx-ulpi.c static inline int pxa310_otg_init(struct pxa3xx_u2d_platform_data *pdata) pdata 282 arch/arm/mach-pxa/pxa3xx-ulpi.c struct pxa3xx_u2d_platform_data *pdata = pdev->dev.platform_data; pdata 318 arch/arm/mach-pxa/pxa3xx-ulpi.c if (pdata->init) { pdata 319 arch/arm/mach-pxa/pxa3xx-ulpi.c err = pdata->init(&pdev->dev); pdata 326 arch/arm/mach-pxa/pxa3xx-ulpi.c err = pxa310_otg_init(pdata); pdata 336 arch/arm/mach-pxa/pxa3xx-ulpi.c if (pdata->exit) pdata 337 arch/arm/mach-pxa/pxa3xx-ulpi.c pdata->exit(&pdev->dev); pdata 351 arch/arm/mach-pxa/pxa3xx-ulpi.c struct pxa3xx_u2d_platform_data *pdata = pdev->dev.platform_data; pdata 359 arch/arm/mach-pxa/pxa3xx-ulpi.c if (pdata->exit) pdata 360 arch/arm/mach-pxa/pxa3xx-ulpi.c pdata->exit(&pdev->dev); pdata 17 arch/arm/mach-s3c24xx/simtec.h struct s3c24xx_audio_simtec_pdata *pdata); pdata 27 arch/arm/mach-s3c64xx/dev-backlight.c struct platform_pwm_backlight_data *pdata = dev->platform_data; pdata 28 arch/arm/mach-s3c64xx/dev-backlight.c struct samsung_bl_drvdata *drvdata = container_of(pdata, pdata 46 arch/arm/mach-s3c64xx/dev-backlight.c struct platform_pwm_backlight_data *pdata = dev->platform_data; pdata 47 arch/arm/mach-s3c64xx/dev-backlight.c struct samsung_bl_drvdata *drvdata = container_of(pdata, pdata 22 arch/arm/mach-s3c64xx/setup-sdhci-gpio.c struct s3c_sdhci_platdata *pdata = dev->dev.platform_data; pdata 27 arch/arm/mach-s3c64xx/setup-sdhci-gpio.c if (pdata->cd_type == S3C_SDHCI_CD_INTERNAL) { pdata 35 arch/arm/mach-s3c64xx/setup-sdhci-gpio.c struct s3c_sdhci_platdata *pdata = dev->dev.platform_data; pdata 40 arch/arm/mach-s3c64xx/setup-sdhci-gpio.c if (pdata->cd_type == S3C_SDHCI_CD_INTERNAL) { pdata 579 arch/arm/plat-samsung/devs.c void __init s3c_ide_set_platdata(struct s3c_ide_platdata *pdata) pdata 581 arch/arm/plat-samsung/devs.c s3c_set_platdata(pdata, sizeof(struct s3c_ide_platdata), pdata 774 arch/arm/plat-samsung/devs.c void __init s3c64xx_onenand1_set_platdata(struct onenand_platform_data *pdata) pdata 776 arch/arm/plat-samsung/devs.c s3c_set_platdata(pdata, sizeof(struct onenand_platform_data), pdata 848 arch/arm/plat-samsung/devs.c void __init s3c24xx_mci_set_platdata(struct s3c24xx_mci_pdata *pdata) pdata 850 arch/arm/plat-samsung/devs.c s3c_set_platdata(pdata, sizeof(struct s3c24xx_mci_pdata), pdata 42 arch/mips/ar7/platform.c struct plat_vlynq_data *pdata = dev->dev.platform_data; pdata 44 arch/mips/ar7/platform.c ret = gpio_request(pdata->gpio_bit, "vlynq"); pdata 48 arch/mips/ar7/platform.c ar7_device_reset(pdata->reset_bit); pdata 50 arch/mips/ar7/platform.c ret = ar7_gpio_disable(pdata->gpio_bit); pdata 54 arch/mips/ar7/platform.c ret = ar7_gpio_enable(pdata->gpio_bit); pdata 58 arch/mips/ar7/platform.c ret = gpio_direction_output(pdata->gpio_bit, 0); pdata 64 arch/mips/ar7/platform.c gpio_set_value(pdata->gpio_bit, 1); pdata 71 arch/mips/ar7/platform.c ar7_gpio_disable(pdata->gpio_bit); pdata 73 arch/mips/ar7/platform.c ar7_device_disable(pdata->reset_bit); pdata 74 arch/mips/ar7/platform.c gpio_free(pdata->gpio_bit); pdata 81 arch/mips/ar7/platform.c struct plat_vlynq_data *pdata = dev->dev.platform_data; pdata 83 arch/mips/ar7/platform.c ar7_gpio_disable(pdata->gpio_bit); pdata 84 arch/mips/ar7/platform.c gpio_free(pdata->gpio_bit); pdata 85 arch/mips/ar7/platform.c ar7_device_disable(pdata->reset_bit); pdata 46 arch/mips/include/asm/txx9/dmac.h const struct txx9dmac_platform_data *pdata); pdata 63 arch/mips/include/asm/txx9/generic.h const struct physmap_flash_data *pdata); pdata 614 arch/mips/txx9/generic/setup.c const struct physmap_flash_data *pdata) pdata 627 arch/mips/txx9/generic/setup.c if (pdata->nr_parts == 0 && !pdata->parts && pdata 636 arch/mips/txx9/generic/setup.c pdata_part = *pdata; pdata 639 arch/mips/txx9/generic/setup.c pdata = &pdata_part; pdata 645 arch/mips/txx9/generic/setup.c platform_device_add_data(pdev, pdata, sizeof(*pdata)) || pdata 652 arch/mips/txx9/generic/setup.c const struct txx9ndfmc_platform_data *pdata) pdata 664 arch/mips/txx9/generic/setup.c platform_device_add_data(pdev, pdata, sizeof(*pdata)) || pdata 679 arch/mips/txx9/generic/setup.c struct gpio_led_platform_data pdata; pdata 754 arch/mips/txx9/generic/setup.c iocled->pdata.num_leds = num; pdata 755 arch/mips/txx9/generic/setup.c iocled->pdata.leds = iocled->leds; pdata 766 arch/mips/txx9/generic/setup.c pdev->dev.platform_data = &iocled->pdata; pdata 789 arch/mips/txx9/generic/setup.c const struct txx9dmac_platform_data *pdata) pdata 817 arch/mips/txx9/generic/setup.c platform_device_add_data(pdev, pdata, sizeof(*pdata)) || pdata 127 arch/mips/txx9/generic/setup_tx3927.c struct physmap_flash_data pdata = { pdata 135 arch/mips/txx9/generic/setup_tx3927.c txx9_physmap_flash_init(ch, start, size, &pdata); pdata 243 arch/mips/txx9/generic/setup_tx4927.c struct physmap_flash_data pdata = { pdata 251 arch/mips/txx9/generic/setup_tx4927.c txx9_physmap_flash_init(ch, start, size, &pdata); pdata 322 arch/mips/txx9/generic/setup_tx4938.c struct physmap_flash_data pdata = { pdata 330 arch/mips/txx9/generic/setup_tx4938.c txx9_physmap_flash_init(ch, start, size, &pdata); pdata 345 arch/mips/txx9/generic/setup_tx4938.c struct tx4938ide_platform_info pdata = { pdata 368 arch/mips/txx9/generic/setup_tx4938.c pdata.ebus_ch = i; pdata 374 arch/mips/txx9/generic/setup_tx4938.c platform_device_add_data(pdev, &pdata, sizeof(pdata)) || pdata 376 arch/mips/txx9/generic/setup_tx4939.c struct physmap_flash_data pdata = { pdata 384 arch/mips/txx9/generic/setup_tx4939.c txx9_physmap_flash_init(ch, start, size, &pdata); pdata 326 arch/mips/txx9/rbtx4927/setup.c static struct gpio_led_platform_data pdata = { pdata 334 arch/mips/txx9/rbtx4927/setup.c pdev->dev.platform_data = &pdata; pdata 303 arch/mips/txx9/rbtx4938/setup.c struct physmap_flash_data pdata = { pdata 310 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(0, 0x1fc00000, 0x400000, &pdata); pdata 312 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(1, 0x1e000000, 0x1000000, &pdata); pdata 316 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(0, 0x1f000000, 0x1000000, &pdata); pdata 318 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(1, 0x1ec00000, 0x400000, &pdata); pdata 322 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(0, 0x1f000000, 0x1000000, &pdata); pdata 324 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(1, 0x1e000000, 0x1000000, &pdata); pdata 326 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(2, 0x1dc00000, 0x400000, &pdata); pdata 330 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(1, 0x1bc00000, 0x400000, &pdata); pdata 332 arch/mips/txx9/rbtx4938/setup.c txx9_physmap_flash_init(2, 0x1a000000, 0x1000000, &pdata); pdata 507 arch/powerpc/include/asm/smu.h u8 pdata[32]; pdata 147 arch/powerpc/include/asm/spu.h void* pdata; /* platform private data */ pdata 54 arch/powerpc/platforms/83xx/mpc832x_rdb.c struct fsl_spi_platform_data pdata = { pdata 60 arch/powerpc/platforms/83xx/mpc832x_rdb.c pdata.sysclk = sysclk; pdata 65 arch/powerpc/platforms/83xx/mpc832x_rdb.c pdata.bus_num = *(u32 *)prop; pdata 73 arch/powerpc/platforms/83xx/mpc832x_rdb.c pdata.flags = SPI_QE_CPU_MODE; pdata 76 arch/powerpc/platforms/83xx/mpc832x_rdb.c if (board_infos[j].bus_num == pdata.bus_num) pdata 77 arch/powerpc/platforms/83xx/mpc832x_rdb.c pdata.max_chipselect++; pdata 80 arch/powerpc/platforms/83xx/mpc832x_rdb.c if (!pdata.max_chipselect) pdata 95 arch/powerpc/platforms/83xx/mpc832x_rdb.c ret = platform_device_add_data(pdev, &pdata, sizeof(pdata)); pdata 118 arch/powerpc/platforms/ps3/spu.c return spu->pdata; pdata 327 arch/powerpc/platforms/ps3/spu.c kfree(spu->pdata); pdata 328 arch/powerpc/platforms/ps3/spu.c spu->pdata = NULL; pdata 339 arch/powerpc/platforms/ps3/spu.c spu->pdata = kzalloc(sizeof(struct spu_pdata), pdata 342 arch/powerpc/platforms/ps3/spu.c if (!spu->pdata) { pdata 4096 arch/powerpc/xmon/xmon.c DUMP_FIELD(spu, "0x%p", pdata); pdata 54 arch/sh/boards/mach-hp6xx/setup.c static void dac_audio_start(struct dac_audio_pdata *pdata) pdata 69 arch/sh/boards/mach-hp6xx/setup.c sh_dac_enable(pdata->channel); pdata 72 arch/sh/boards/mach-hp6xx/setup.c static void dac_audio_stop(struct dac_audio_pdata *pdata) pdata 87 arch/sh/boards/mach-hp6xx/setup.c sh_dac_output(0, pdata->channel); pdata 88 arch/sh/boards/mach-hp6xx/setup.c sh_dac_disable(pdata->channel); pdata 243 arch/sparc/kernel/time_32.c struct m48t59_plat_data *pdata = pdev->dev.platform_data; pdata 245 arch/sparc/kernel/time_32.c return readb(pdata->ioaddr + ofs); pdata 251 arch/sparc/kernel/time_32.c struct m48t59_plat_data *pdata = pdev->dev.platform_data; pdata 253 arch/sparc/kernel/time_32.c writeb(val, pdata->ioaddr + ofs); pdata 973 arch/um/drivers/virtio_uml.c struct virtio_uml_platform_data *pdata = pdev->dev.platform_data; pdata 977 arch/um/drivers/virtio_uml.c if (!pdata) pdata 987 arch/um/drivers/virtio_uml.c vu_dev->vdev.id.device = pdata->virtio_device_id; pdata 993 arch/um/drivers/virtio_uml.c rc = os_connect_socket(pdata->socket_path); pdata 1043 arch/um/drivers/virtio_uml.c struct virtio_uml_platform_data pdata; pdata 1070 arch/um/drivers/virtio_uml.c pdata.virtio_device_id = (u32) virtio_device_id; pdata 1071 arch/um/drivers/virtio_uml.c pdata.socket_path = socket_path; pdata 1077 arch/um/drivers/virtio_uml.c vu_cmdline_id++, &pdata, pdata 1078 arch/um/drivers/virtio_uml.c sizeof(pdata)); pdata 1092 arch/um/drivers/virtio_uml.c struct virtio_uml_platform_data *pdata = pdev->dev.platform_data; pdata 1097 arch/um/drivers/virtio_uml.c pdata->socket_path, pdata->virtio_device_id, pdev->id); pdata 1127 arch/um/drivers/virtio_uml.c struct virtio_uml_platform_data *pdata = pdev->dev.platform_data; pdata 1129 arch/um/drivers/virtio_uml.c kfree(pdata->socket_path); pdata 213 arch/x86/include/asm/kvm_emulate.h int (*get_msr)(struct x86_emulate_ctxt *ctxt, u32 msr_index, u64 *pdata); pdata 215 arch/x86/include/asm/kvm_emulate.h int (*read_pmc)(struct x86_emulate_ctxt *ctxt, u32 pmc, u64 *pdata); pdata 268 arch/x86/kvm/hyperv.c static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata, pdata 279 arch/x86/kvm/hyperv.c *pdata = synic->control; pdata 282 arch/x86/kvm/hyperv.c *pdata = synic->version; pdata 285 arch/x86/kvm/hyperv.c *pdata = synic->evt_page; pdata 288 arch/x86/kvm/hyperv.c *pdata = synic->msg_page; pdata 291 arch/x86/kvm/hyperv.c *pdata = 0; pdata 294 arch/x86/kvm/hyperv.c *pdata = atomic64_read(&synic->sint[msr - HV_X64_MSR_SINT0]); pdata 809 arch/x86/kvm/hyperv.c u32 index, u64 *pdata) pdata 817 arch/x86/kvm/hyperv.c *pdata = hv->hv_crash_param[array_index_nospec(index, size)]; pdata 821 arch/x86/kvm/hyperv.c static int kvm_hv_msr_get_crash_ctl(struct kvm_vcpu *vcpu, u64 *pdata) pdata 825 arch/x86/kvm/hyperv.c *pdata = hv->hv_crash_ctl; pdata 1191 arch/x86/kvm/hyperv.c static int kvm_hv_get_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) pdata 1213 arch/x86/kvm/hyperv.c pdata); pdata 1215 arch/x86/kvm/hyperv.c return kvm_hv_msr_get_crash_ctl(vcpu, pdata); pdata 1233 arch/x86/kvm/hyperv.c *pdata = data; pdata 1237 arch/x86/kvm/hyperv.c static int kvm_hv_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, pdata 1248 arch/x86/kvm/hyperv.c return kvm_hv_vapic_msr_read(vcpu, APIC_EOI, pdata); pdata 1250 arch/x86/kvm/hyperv.c return kvm_hv_vapic_msr_read(vcpu, APIC_ICR, pdata); pdata 1252 arch/x86/kvm/hyperv.c return kvm_hv_vapic_msr_read(vcpu, APIC_TASKPRI, pdata); pdata 1265 arch/x86/kvm/hyperv.c return synic_get_msr(vcpu_to_synic(vcpu), msr, pdata, host); pdata 1273 arch/x86/kvm/hyperv.c pdata); pdata 1282 arch/x86/kvm/hyperv.c pdata); pdata 1294 arch/x86/kvm/hyperv.c *pdata = data; pdata 1311 arch/x86/kvm/hyperv.c int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) pdata 1317 arch/x86/kvm/hyperv.c r = kvm_hv_get_msr_pw(vcpu, msr, pdata); pdata 1321 arch/x86/kvm/hyperv.c return kvm_hv_get_msr(vcpu, msr, pdata, host); pdata 50 arch/x86/kvm/hyperv.h int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host); pdata 397 arch/x86/kvm/mtrr.c int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) pdata 409 arch/x86/kvm/mtrr.c *pdata = 0x500 | KVM_NR_VAR_MTRR; pdata 418 arch/x86/kvm/mtrr.c *pdata = *(u64 *)&vcpu->arch.mtrr_state.fixed_ranges[index]; pdata 420 arch/x86/kvm/mtrr.c *pdata = vcpu->arch.mtrr_state.deftype; pdata 422 arch/x86/kvm/mtrr.c *pdata = vcpu->arch.pat; pdata 429 arch/x86/kvm/mtrr.c *pdata = vcpu->arch.mtrr_state.var_ranges[index].base; pdata 431 arch/x86/kvm/mtrr.c *pdata = vcpu->arch.mtrr_state.var_ranges[index].mask; pdata 433 arch/x86/kvm/mtrr.c *pdata &= (1ULL << cpuid_maxphyaddr(vcpu)) - 1; pdata 1281 arch/x86/kvm/vmx/nested.c int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata) pdata 1285 arch/x86/kvm/vmx/nested.c *pdata = msrs->basic; pdata 1289 arch/x86/kvm/vmx/nested.c *pdata = vmx_control_msr( pdata 1293 arch/x86/kvm/vmx/nested.c *pdata |= PIN_BASED_ALWAYSON_WITHOUT_TRUE_MSR; pdata 1297 arch/x86/kvm/vmx/nested.c *pdata = vmx_control_msr( pdata 1301 arch/x86/kvm/vmx/nested.c *pdata |= CPU_BASED_ALWAYSON_WITHOUT_TRUE_MSR; pdata 1305 arch/x86/kvm/vmx/nested.c *pdata = vmx_control_msr( pdata 1309 arch/x86/kvm/vmx/nested.c *pdata |= VM_EXIT_ALWAYSON_WITHOUT_TRUE_MSR; pdata 1313 arch/x86/kvm/vmx/nested.c *pdata = vmx_control_msr( pdata 1317 arch/x86/kvm/vmx/nested.c *pdata |= VM_ENTRY_ALWAYSON_WITHOUT_TRUE_MSR; pdata 1320 arch/x86/kvm/vmx/nested.c *pdata = vmx_control_msr( pdata 1325 arch/x86/kvm/vmx/nested.c *pdata = msrs->cr0_fixed0; pdata 1328 arch/x86/kvm/vmx/nested.c *pdata = msrs->cr0_fixed1; pdata 1331 arch/x86/kvm/vmx/nested.c *pdata = msrs->cr4_fixed0; pdata 1334 arch/x86/kvm/vmx/nested.c *pdata = msrs->cr4_fixed1; pdata 1337 arch/x86/kvm/vmx/nested.c *pdata = msrs->vmcs_enum; pdata 1340 arch/x86/kvm/vmx/nested.c *pdata = vmx_control_msr( pdata 1345 arch/x86/kvm/vmx/nested.c *pdata = msrs->ept_caps | pdata 1349 arch/x86/kvm/vmx/nested.c *pdata = msrs->vmfunc_controls; pdata 32 arch/x86/kvm/vmx/nested.h int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata); pdata 2952 arch/x86/kvm/x86.c static int get_msr_mce(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) pdata 2986 arch/x86/kvm/x86.c *pdata = data; pdata 6186 arch/x86/kvm/x86.c u32 msr_index, u64 *pdata) pdata 6188 arch/x86/kvm/x86.c return kvm_get_msr(emul_to_vcpu(ctxt), msr_index, pdata); pdata 6218 arch/x86/kvm/x86.c u32 pmc, u64 *pdata) pdata 6220 arch/x86/kvm/x86.c return kvm_pmu_rdpmc(emul_to_vcpu(ctxt), pmc, pdata); pdata 285 arch/x86/kvm/x86.h int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); pdata 29 arch/x86/platform/intel-mid/device_libs/platform_mrfld_wdt.c struct intel_mid_wdt_pdata *pdata = pdev->dev.platform_data; pdata 33 arch/x86/platform/intel-mid/device_libs/platform_mrfld_wdt.c if (!pdata) pdata 44 arch/x86/platform/intel-mid/device_libs/platform_mrfld_wdt.c pdata->irq = irq; pdata 16 arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c static struct tc35876x_platform_data pdata; pdata 19 arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c pdata.gpio_bridge_reset = get_gpio_by_name("LCMB_RXEN"); pdata 20 arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c pdata.gpio_panel_bl_en = get_gpio_by_name("6S6P_BL_EN"); pdata 21 arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c pdata.gpio_panel_vadd = get_gpio_by_name("EN_VREG_LCD_V3P3"); pdata 23 arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c return &pdata; pdata 328 arch/x86/platform/intel-mid/sfi.c void *pdata = NULL; pdata 337 arch/x86/platform/intel-mid/sfi.c pdata = intel_mid_sfi_get_pdata(dev, pentry); pdata 338 arch/x86/platform/intel-mid/sfi.c if (IS_ERR(pdata)) pdata 356 arch/x86/platform/intel-mid/sfi.c pdev->dev.platform_data = pdata; pdata 367 arch/x86/platform/intel-mid/sfi.c void *pdata = NULL; pdata 382 arch/x86/platform/intel-mid/sfi.c pdata = intel_mid_sfi_get_pdata(dev, &spi_info); pdata 383 arch/x86/platform/intel-mid/sfi.c if (IS_ERR(pdata)) pdata 386 arch/x86/platform/intel-mid/sfi.c spi_info.platform_data = pdata; pdata 397 arch/x86/platform/intel-mid/sfi.c void *pdata = NULL; pdata 408 arch/x86/platform/intel-mid/sfi.c pdata = intel_mid_sfi_get_pdata(dev, &i2c_info); pdata 409 arch/x86/platform/intel-mid/sfi.c i2c_info.platform_data = pdata; pdata 410 arch/x86/platform/intel-mid/sfi.c if (IS_ERR(pdata)) pdata 423 arch/x86/platform/intel-mid/sfi.c void *pdata; pdata 435 arch/x86/platform/intel-mid/sfi.c pdata = intel_mid_sfi_get_pdata(dev, &sd_info); pdata 436 arch/x86/platform/intel-mid/sfi.c if (IS_ERR(pdata)) pdata 440 arch/x86/platform/intel-mid/sfi.c sd_info.platform_data = pdata; pdata 45 drivers/acpi/acpi_apd.c int (*setup)(struct apd_private_data *pdata); pdata 57 drivers/acpi/acpi_apd.c static int acpi_apd_setup(struct apd_private_data *pdata) pdata 59 drivers/acpi/acpi_apd.c const struct apd_device_desc *dev_desc = pdata->dev_desc; pdata 63 drivers/acpi/acpi_apd.c clk = clk_register_fixed_rate(&pdata->adev->dev, pdata 64 drivers/acpi/acpi_apd.c dev_name(&pdata->adev->dev), pdata 66 drivers/acpi/acpi_apd.c clk_register_clkdev(clk, NULL, dev_name(&pdata->adev->dev)); pdata 67 drivers/acpi/acpi_apd.c pdata->clk = clk; pdata 82 drivers/acpi/acpi_apd.c static int st_misc_setup(struct apd_private_data *pdata) pdata 84 drivers/acpi/acpi_apd.c struct acpi_device *adev = pdata->adev; pdata 194 drivers/acpi/acpi_apd.c struct apd_private_data *pdata; pdata 203 drivers/acpi/acpi_apd.c pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); pdata 204 drivers/acpi/acpi_apd.c if (!pdata) pdata 207 drivers/acpi/acpi_apd.c pdata->adev = adev; pdata 208 drivers/acpi/acpi_apd.c pdata->dev_desc = dev_desc; pdata 211 drivers/acpi/acpi_apd.c ret = dev_desc->setup(pdata); pdata 216 drivers/acpi/acpi_apd.c adev->driver_data = pdata; pdata 225 drivers/acpi/acpi_apd.c kfree(pdata); pdata 84 drivers/acpi/acpi_lpss.c void (*setup)(struct lpss_private_data *pdata); pdata 126 drivers/acpi/acpi_lpss.c static void lpss_uart_setup(struct lpss_private_data *pdata) pdata 131 drivers/acpi/acpi_lpss.c offset = pdata->dev_desc->prv_offset + LPSS_TX_INT; pdata 132 drivers/acpi/acpi_lpss.c val = readl(pdata->mmio_base + offset); pdata 133 drivers/acpi/acpi_lpss.c writel(val | LPSS_TX_INT_MASK, pdata->mmio_base + offset); pdata 135 drivers/acpi/acpi_lpss.c val = readl(pdata->mmio_base + LPSS_UART_CPR); pdata 137 drivers/acpi/acpi_lpss.c offset = pdata->dev_desc->prv_offset + LPSS_GENERAL; pdata 138 drivers/acpi/acpi_lpss.c val = readl(pdata->mmio_base + offset); pdata 140 drivers/acpi/acpi_lpss.c writel(val, pdata->mmio_base + offset); pdata 144 drivers/acpi/acpi_lpss.c static void lpss_deassert_reset(struct lpss_private_data *pdata) pdata 149 drivers/acpi/acpi_lpss.c offset = pdata->dev_desc->prv_offset + LPSS_RESETS; pdata 150 drivers/acpi/acpi_lpss.c val = readl(pdata->mmio_base + offset); pdata 152 drivers/acpi/acpi_lpss.c writel(val, pdata->mmio_base + offset); pdata 165 drivers/acpi/acpi_lpss.c static void byt_pwm_setup(struct lpss_private_data *pdata) pdata 167 drivers/acpi/acpi_lpss.c struct acpi_device *adev = pdata->adev; pdata 179 drivers/acpi/acpi_lpss.c static void byt_i2c_setup(struct lpss_private_data *pdata) pdata 181 drivers/acpi/acpi_lpss.c const char *uid_str = acpi_device_uid(pdata->adev); pdata 182 drivers/acpi/acpi_lpss.c acpi_handle handle = pdata->adev->handle; pdata 196 drivers/acpi/acpi_lpss.c lpss_deassert_reset(pdata); pdata 198 drivers/acpi/acpi_lpss.c if (readl(pdata->mmio_base + pdata->dev_desc->prv_offset)) pdata 199 drivers/acpi/acpi_lpss.c pdata->fixed_clk_rate = 133000000; pdata 201 drivers/acpi/acpi_lpss.c writel(0, pdata->mmio_base + LPSS_I2C_ENABLE); pdata 211 drivers/acpi/acpi_lpss.c static void bsw_pwm_setup(struct lpss_private_data *pdata) pdata 213 drivers/acpi/acpi_lpss.c struct acpi_device *adev = pdata->adev; pdata 392 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata) pdata 394 drivers/acpi/acpi_lpss.c const struct lpss_device_desc *dev_desc = pdata->dev_desc; pdata 409 drivers/acpi/acpi_lpss.c if (!pdata->mmio_base pdata 410 drivers/acpi/acpi_lpss.c || pdata->mmio_size < dev_desc->prv_offset + LPSS_CLK_SIZE) pdata 414 drivers/acpi/acpi_lpss.c prv_base = pdata->mmio_base + dev_desc->prv_offset; pdata 416 drivers/acpi/acpi_lpss.c if (pdata->fixed_clk_rate) { pdata 418 drivers/acpi/acpi_lpss.c pdata->fixed_clk_rate); pdata 456 drivers/acpi/acpi_lpss.c pdata->clk = clk; pdata 637 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata; pdata 648 drivers/acpi/acpi_lpss.c pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); pdata 649 drivers/acpi/acpi_lpss.c if (!pdata) pdata 660 drivers/acpi/acpi_lpss.c pdata->mmio_size = dev_desc->prv_size_override; pdata 662 drivers/acpi/acpi_lpss.c pdata->mmio_size = resource_size(rentry->res); pdata 663 drivers/acpi/acpi_lpss.c pdata->mmio_base = ioremap(rentry->res->start, pdata 664 drivers/acpi/acpi_lpss.c pdata->mmio_size); pdata 670 drivers/acpi/acpi_lpss.c if (!pdata->mmio_base) { pdata 678 drivers/acpi/acpi_lpss.c pdata->adev = adev; pdata 679 drivers/acpi/acpi_lpss.c pdata->dev_desc = dev_desc; pdata 682 drivers/acpi/acpi_lpss.c dev_desc->setup(pdata); pdata 685 drivers/acpi/acpi_lpss.c ret = register_device_clock(adev, pdata); pdata 700 drivers/acpi/acpi_lpss.c adev->driver_data = pdata; pdata 711 drivers/acpi/acpi_lpss.c kfree(pdata); pdata 715 drivers/acpi/acpi_lpss.c static u32 __lpss_reg_read(struct lpss_private_data *pdata, unsigned int reg) pdata 717 drivers/acpi/acpi_lpss.c return readl(pdata->mmio_base + pdata->dev_desc->prv_offset + reg); pdata 720 drivers/acpi/acpi_lpss.c static void __lpss_reg_write(u32 val, struct lpss_private_data *pdata, pdata 723 drivers/acpi/acpi_lpss.c writel(val, pdata->mmio_base + pdata->dev_desc->prv_offset + reg); pdata 729 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata; pdata 742 drivers/acpi/acpi_lpss.c pdata = acpi_driver_data(adev); pdata 743 drivers/acpi/acpi_lpss.c if (WARN_ON(!pdata || !pdata->mmio_base)) { pdata 747 drivers/acpi/acpi_lpss.c *val = __lpss_reg_read(pdata, reg); pdata 802 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 805 drivers/acpi/acpi_lpss.c ltr_mode = __lpss_reg_read(pdata, LPSS_GENERAL); pdata 809 drivers/acpi/acpi_lpss.c __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); pdata 813 drivers/acpi/acpi_lpss.c ltr_val = __lpss_reg_read(pdata, LPSS_SW_LTR) & ~LPSS_LTR_SNOOP_MASK; pdata 824 drivers/acpi/acpi_lpss.c __lpss_reg_write(ltr_val, pdata, LPSS_SW_LTR); pdata 827 drivers/acpi/acpi_lpss.c __lpss_reg_write(ltr_mode, pdata, LPSS_GENERAL); pdata 842 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata) pdata 849 drivers/acpi/acpi_lpss.c pdata->prv_reg_ctx[i] = __lpss_reg_read(pdata, offset); pdata 851 drivers/acpi/acpi_lpss.c pdata->prv_reg_ctx[i], offset); pdata 863 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata) pdata 870 drivers/acpi/acpi_lpss.c __lpss_reg_write(pdata->prv_reg_ctx[i], pdata, offset); pdata 872 drivers/acpi/acpi_lpss.c pdata->prv_reg_ctx[i], offset); pdata 876 drivers/acpi/acpi_lpss.c static void acpi_lpss_d3_to_d0_delay(struct lpss_private_data *pdata) pdata 886 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->flags & LPSS_NO_D3_DELAY) pdata 894 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 901 drivers/acpi/acpi_lpss.c acpi_lpss_d3_to_d0_delay(pdata); pdata 909 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->flags & LPSS_SAVE_CTX) pdata 910 drivers/acpi/acpi_lpss.c lpss_deassert_reset(pdata); pdata 1017 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1020 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->flags & LPSS_SAVE_CTX) pdata 1021 drivers/acpi/acpi_lpss.c acpi_lpss_save_ctx(dev, pdata); pdata 1039 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1053 drivers/acpi/acpi_lpss.c acpi_lpss_d3_to_d0_delay(pdata); pdata 1055 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->flags & LPSS_SAVE_CTX) pdata 1056 drivers/acpi/acpi_lpss.c acpi_lpss_restore_ctx(dev, pdata); pdata 1075 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1077 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->resume_from_noirq) pdata 1085 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1088 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->resume_from_noirq) { pdata 1113 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1115 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->resume_from_noirq) pdata 1123 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1137 drivers/acpi/acpi_lpss.c if (!pdata->dev_desc->resume_from_noirq) pdata 1159 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1161 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->resume_from_noirq) pdata 1169 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1176 drivers/acpi/acpi_lpss.c if (!pdata->dev_desc->resume_from_noirq) pdata 1192 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1197 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->resume_from_noirq) pdata 1205 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1210 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->resume_from_noirq) { pdata 1268 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata; pdata 1279 drivers/acpi/acpi_lpss.c pdata = acpi_driver_data(adev); pdata 1280 drivers/acpi/acpi_lpss.c if (!pdata) pdata 1283 drivers/acpi/acpi_lpss.c if (pdata->mmio_base && pdata 1284 drivers/acpi/acpi_lpss.c pdata->mmio_size < pdata->dev_desc->prv_offset + LPSS_LTR_SIZE) { pdata 1299 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->flags & LPSS_LTR) pdata 1304 drivers/acpi/acpi_lpss.c if (pdata->dev_desc->flags & LPSS_LTR) pdata 1321 drivers/acpi/acpi_lpss.c struct lpss_private_data *pdata = acpi_driver_data(ACPI_COMPANION(dev)); pdata 1323 drivers/acpi/acpi_lpss.c if (!pdata || !pdata->mmio_base || !(pdata->dev_desc->flags & LPSS_LTR)) pdata 1326 drivers/acpi/acpi_lpss.c if (pdata->mmio_size >= pdata->dev_desc->prv_offset + LPSS_LTR_SIZE) pdata 571 drivers/amba/bus.c void *pdata, unsigned int periphid, u64 dma_mask, pdata 585 drivers/amba/bus.c dev->dev.platform_data = pdata; pdata 600 drivers/amba/bus.c void *pdata, unsigned int periphid) pdata 602 drivers/amba/bus.c return amba_aphb_device_add(parent, name, base, size, irq1, irq2, pdata, pdata 610 drivers/amba/bus.c void *pdata, unsigned int periphid) pdata 612 drivers/amba/bus.c return amba_aphb_device_add(parent, name, base, size, irq1, irq2, pdata, pdata 620 drivers/amba/bus.c int irq2, void *pdata, unsigned int periphid, pdata 623 drivers/amba/bus.c return amba_aphb_device_add(parent, name, base, size, irq1, irq2, pdata, pdata 631 drivers/amba/bus.c int irq2, void *pdata, unsigned int periphid, pdata 634 drivers/amba/bus.c return amba_aphb_device_add(parent, name, base, size, irq1, irq2, pdata, pdata 163 drivers/ata/ahci_mvebu.c const struct ahci_mvebu_plat_data *pdata = hpriv->plat_data; pdata 165 drivers/ata/ahci_mvebu.c pdata->plat_config(hpriv); pdata 187 drivers/ata/ahci_mvebu.c const struct ahci_mvebu_plat_data *pdata; pdata 191 drivers/ata/ahci_mvebu.c pdata = of_device_get_match_data(&pdev->dev); pdata 192 drivers/ata/ahci_mvebu.c if (!pdata) pdata 199 drivers/ata/ahci_mvebu.c hpriv->flags |= pdata->flags; pdata 200 drivers/ata/ahci_mvebu.c hpriv->plat_data = (void *)pdata; pdata 208 drivers/ata/ahci_mvebu.c rc = pdata->plat_config(hpriv); pdata 308 drivers/ata/pata_arasan_cf.c struct arasan_cf_pdata *pdata = dev_get_platdata(acdev->host->dev); pdata 330 drivers/ata/pata_arasan_cf.c if (pdata && pdata->cf_if_clk <= CF_IF_CLK_200M) pdata 331 drivers/ata/pata_arasan_cf.c if_clk = pdata->cf_if_clk; pdata 793 drivers/ata/pata_arasan_cf.c struct arasan_cf_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 815 drivers/ata/pata_arasan_cf.c if (pdata) pdata 816 drivers/ata/pata_arasan_cf.c quirk = pdata->quirk; pdata 131 drivers/ata/pata_gayle.c struct gayle_ide_platform_data *pdata; pdata 137 drivers/ata/pata_gayle.c pdata = dev_get_platdata(&pdev->dev); pdata 140 drivers/ata/pata_gayle.c pdata->explicit_ack ? 1200 : 4000); pdata 159 drivers/ata/pata_gayle.c if (pdata->explicit_ack) pdata 167 drivers/ata/pata_gayle.c base = ZTWO_VADDR(pdata->base); pdata 182 drivers/ata/pata_gayle.c ap->private_data = (void *)ZTWO_VADDR(pdata->irqport); pdata 184 drivers/ata/pata_gayle.c ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", pdata->base, pdata 185 drivers/ata/pata_gayle.c pdata->base + GAYLE_CONTROL); pdata 166 drivers/ata/pata_pxa.c struct pata_pxa_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 234 drivers/ata/pata_pxa.c (ATA_REG_DATA << pdata->reg_shift); pdata 236 drivers/ata/pata_pxa.c (ATA_REG_ERR << pdata->reg_shift); pdata 238 drivers/ata/pata_pxa.c (ATA_REG_FEATURE << pdata->reg_shift); pdata 240 drivers/ata/pata_pxa.c (ATA_REG_NSECT << pdata->reg_shift); pdata 242 drivers/ata/pata_pxa.c (ATA_REG_LBAL << pdata->reg_shift); pdata 244 drivers/ata/pata_pxa.c (ATA_REG_LBAM << pdata->reg_shift); pdata 246 drivers/ata/pata_pxa.c (ATA_REG_LBAH << pdata->reg_shift); pdata 248 drivers/ata/pata_pxa.c (ATA_REG_DEVICE << pdata->reg_shift); pdata 250 drivers/ata/pata_pxa.c (ATA_REG_STATUS << pdata->reg_shift); pdata 252 drivers/ata/pata_pxa.c (ATA_REG_CMD << pdata->reg_shift); pdata 289 drivers/ata/pata_pxa.c pdata->irq_flags, &pxa_ata_sht); pdata 461 drivers/ata/pata_samsung_cf.c struct s3c_ide_platdata *pdata) pdata 494 drivers/ata/pata_samsung_cf.c struct s3c_ide_platdata *pdata = dev_get_platdata(&pdev->dev); pdata 575 drivers/ata/pata_samsung_cf.c if (pdata && pdata->setup_gpio) pdata 576 drivers/ata/pata_samsung_cf.c pdata->setup_gpio(); pdata 579 drivers/ata/pata_samsung_cf.c pata_s3c_hwinit(info, pdata); pdata 617 drivers/ata/pata_samsung_cf.c struct s3c_ide_platdata *pdata = dev_get_platdata(dev); pdata 620 drivers/ata/pata_samsung_cf.c pata_s3c_hwinit(info, pdata); pdata 88 drivers/ata/sata_highbank.c static inline int sgpio_bit_shift(struct ecx_plat_data *pdata, u32 port, pdata 91 drivers/ata/sata_highbank.c return 1 << (3 * pdata->port_to_sgpio[port] + shift); pdata 94 drivers/ata/sata_highbank.c static void ecx_parse_sgpio(struct ecx_plat_data *pdata, u32 port, u32 state) pdata 97 drivers/ata/sata_highbank.c pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, pdata 100 drivers/ata/sata_highbank.c pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, pdata 103 drivers/ata/sata_highbank.c pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, pdata 106 drivers/ata/sata_highbank.c pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, pdata 109 drivers/ata/sata_highbank.c pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, pdata 112 drivers/ata/sata_highbank.c pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, pdata 120 drivers/ata/sata_highbank.c static void ecx_led_cycle_clock(struct ecx_plat_data *pdata) pdata 122 drivers/ata/sata_highbank.c gpiod_set_value(pdata->sgpio_gpiod[SCLOCK], 1); pdata 124 drivers/ata/sata_highbank.c gpiod_set_value(pdata->sgpio_gpiod[SCLOCK], 0); pdata 132 drivers/ata/sata_highbank.c struct ecx_plat_data *pdata = hpriv->plat_data; pdata 150 drivers/ata/sata_highbank.c ecx_parse_sgpio(pdata, ap->port_no, state); pdata 151 drivers/ata/sata_highbank.c sgpio_out = pdata->sgpio_pattern; pdata 152 drivers/ata/sata_highbank.c for (i = 0; i < pdata->pre_clocks; i++) pdata 153 drivers/ata/sata_highbank.c ecx_led_cycle_clock(pdata); pdata 155 drivers/ata/sata_highbank.c gpiod_set_value(pdata->sgpio_gpiod[SLOAD], 1); pdata 156 drivers/ata/sata_highbank.c ecx_led_cycle_clock(pdata); pdata 157 drivers/ata/sata_highbank.c gpiod_set_value(pdata->sgpio_gpiod[SLOAD], 0); pdata 162 drivers/ata/sata_highbank.c for (i = 0; i < (SGPIO_SIGNALS * pdata->n_ports); i++) { pdata 163 drivers/ata/sata_highbank.c gpiod_set_value(pdata->sgpio_gpiod[SDATA], sgpio_out & 1); pdata 165 drivers/ata/sata_highbank.c ecx_led_cycle_clock(pdata); pdata 167 drivers/ata/sata_highbank.c for (i = 0; i < pdata->post_clocks; i++) pdata 168 drivers/ata/sata_highbank.c ecx_led_cycle_clock(pdata); pdata 182 drivers/ata/sata_highbank.c struct ecx_plat_data *pdata = hpriv->plat_data; pdata 196 drivers/ata/sata_highbank.c pdata->sgpio_gpiod[i] = gpiod; pdata 199 drivers/ata/sata_highbank.c pdata->port_to_sgpio, pdata 200 drivers/ata/sata_highbank.c pdata->n_ports); pdata 201 drivers/ata/sata_highbank.c if (of_property_read_u32(np, "calxeda,pre-clocks", &pdata->pre_clocks)) pdata 202 drivers/ata/sata_highbank.c pdata->pre_clocks = 0; pdata 204 drivers/ata/sata_highbank.c &pdata->post_clocks)) pdata 205 drivers/ata/sata_highbank.c pdata->post_clocks = 0; pdata 455 drivers/ata/sata_highbank.c struct ecx_plat_data *pdata; pdata 482 drivers/ata/sata_highbank.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 483 drivers/ata/sata_highbank.c if (!pdata) { pdata 521 drivers/ata/sata_highbank.c pdata->n_ports = n_ports; pdata 522 drivers/ata/sata_highbank.c hpriv->plat_data = pdata; pdata 211 drivers/ata/sata_sx4.c u32 device, u32 subaddr, u32 *pdata); pdata 1084 drivers/ata/sata_sx4.c u32 subaddr, u32 *pdata) pdata 1114 drivers/ata/sata_sx4.c *pdata = (status >> 8) & 0x000000ff; pdata 1054 drivers/base/devres.c static void devm_percpu_release(struct device *dev, void *pdata) pdata 1058 drivers/base/devres.c p = *(void __percpu **)pdata; pdata 1112 drivers/base/devres.c void devm_free_percpu(struct device *dev, void __percpu *pdata) pdata 1115 drivers/base/devres.c (void *)pdata)); pdata 330 drivers/block/rsxx/core.c static irqreturn_t rsxx_isr(int irq, void *pdata) pdata 332 drivers/block/rsxx/core.c struct rsxx_cardinfo *card = pdata; pdata 455 drivers/bus/hisi_lpc.c void *pdata; pdata 512 drivers/bus/hisi_lpc.c .pdata = (struct plat_serial8250_port []) { pdata 554 drivers/bus/hisi_lpc.c ret = platform_device_add_data(pdev, cell->pdata, pdata 480 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata; pdata 485 drivers/bus/ti-sysc.c pdata = dev_get_platdata(ddata->dev); pdata 486 drivers/bus/ti-sysc.c if (pdata && pdata->clkdm_deny_idle) pdata 487 drivers/bus/ti-sysc.c pdata->clkdm_deny_idle(ddata->dev, &ddata->cookie); pdata 492 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata; pdata 497 drivers/bus/ti-sysc.c pdata = dev_get_platdata(ddata->dev); pdata 498 drivers/bus/ti-sysc.c if (pdata && pdata->clkdm_allow_idle) pdata 499 drivers/bus/ti-sysc.c pdata->clkdm_allow_idle(ddata->dev, &ddata->cookie); pdata 1027 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata; pdata 1030 drivers/bus/ti-sysc.c pdata = dev_get_platdata(ddata->dev); pdata 1031 drivers/bus/ti-sysc.c if (!pdata) pdata 1034 drivers/bus/ti-sysc.c if (!pdata->idle_module) pdata 1037 drivers/bus/ti-sysc.c error = pdata->idle_module(dev, &ddata->cookie); pdata 1050 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata; pdata 1055 drivers/bus/ti-sysc.c pdata = dev_get_platdata(ddata->dev); pdata 1056 drivers/bus/ti-sysc.c if (!pdata) pdata 1059 drivers/bus/ti-sysc.c if (!pdata->enable_module) pdata 1062 drivers/bus/ti-sysc.c error = pdata->enable_module(dev, &ddata->cookie); pdata 1523 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata = dev_get_platdata(ddata->dev); pdata 1527 drivers/bus/ti-sysc.c if (!pdata || !pdata->init_clockdomain) pdata 1541 drivers/bus/ti-sysc.c error = pdata->init_clockdomain(ddata->dev, fck, ick, &ddata->cookie); pdata 1555 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata = dev_get_platdata(ddata->dev); pdata 1558 drivers/bus/ti-sysc.c if (!pdata || !pdata->init_module) pdata 1561 drivers/bus/ti-sysc.c error = pdata->init_module(ddata->dev, ddata->mdata, &ddata->cookie); pdata 2361 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata = dev_get_platdata(ddata->dev); pdata 2364 drivers/bus/ti-sysc.c if (!pdata) pdata 2439 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 2508 drivers/bus/ti-sysc.c pdata ? pdata->auxdata : NULL, pdata 157 drivers/char/hw_random/omap-rng.c const struct omap_rng_pdata *pdata; pdata 165 drivers/char/hw_random/omap-rng.c return __raw_readl(priv->base + priv->pdata->regs[reg]); pdata 171 drivers/char/hw_random/omap-rng.c __raw_writel(val, priv->base + priv->pdata->regs[reg]); pdata 183 drivers/char/hw_random/omap-rng.c if (max < priv->pdata->data_size) pdata 187 drivers/char/hw_random/omap-rng.c present = priv->pdata->data_present(priv); pdata 196 drivers/char/hw_random/omap-rng.c memcpy_fromio(data, priv->base + priv->pdata->regs[RNG_OUTPUT_0_REG], pdata 197 drivers/char/hw_random/omap-rng.c priv->pdata->data_size); pdata 199 drivers/char/hw_random/omap-rng.c if (priv->pdata->regs[RNG_INTACK_REG]) pdata 202 drivers/char/hw_random/omap-rng.c return priv->pdata->data_size; pdata 210 drivers/char/hw_random/omap-rng.c return priv->pdata->init(priv); pdata 218 drivers/char/hw_random/omap-rng.c priv->pdata->cleanup(priv); pdata 390 drivers/char/hw_random/omap-rng.c priv->pdata = match->data; pdata 415 drivers/char/hw_random/omap-rng.c if (priv->pdata->regs[RNG_INTMASK_REG]) pdata 435 drivers/char/hw_random/omap-rng.c omap_rng->pdata = &omap2_rng_pdata; pdata 536 drivers/char/hw_random/omap-rng.c priv->pdata->cleanup(priv); pdata 551 drivers/char/hw_random/omap-rng.c priv->pdata->cleanup(priv); pdata 569 drivers/char/hw_random/omap-rng.c priv->pdata->init(priv); pdata 105 drivers/char/hw_random/timeriomem-rng.c struct timeriomem_rng_data *pdata = pdev->dev.platform_data; pdata 111 drivers/char/hw_random/timeriomem-rng.c if (!pdev->dev.of_node && !pdata) { pdata 151 drivers/char/hw_random/timeriomem-rng.c period = pdata->period; pdata 152 drivers/char/hw_random/timeriomem-rng.c priv->rng_ops.quality = pdata->quality; pdata 186 drivers/char/tpm/st33zp24/i2c.c struct st33zp24_platform_data *pdata; pdata 189 drivers/char/tpm/st33zp24/i2c.c pdata = client->dev.platform_data; pdata 190 drivers/char/tpm/st33zp24/i2c.c if (!pdata) { pdata 196 drivers/char/tpm/st33zp24/i2c.c phy->io_lpcpd = pdata->io_lpcpd; pdata 198 drivers/char/tpm/st33zp24/i2c.c if (gpio_is_valid(pdata->io_lpcpd)) { pdata 200 drivers/char/tpm/st33zp24/i2c.c pdata->io_lpcpd, GPIOF_OUT_INIT_HIGH, pdata 222 drivers/char/tpm/st33zp24/i2c.c struct st33zp24_platform_data *pdata; pdata 243 drivers/char/tpm/st33zp24/i2c.c pdata = client->dev.platform_data; pdata 244 drivers/char/tpm/st33zp24/i2c.c if (!pdata && client->dev.of_node) { pdata 248 drivers/char/tpm/st33zp24/i2c.c } else if (pdata) { pdata 304 drivers/char/tpm/st33zp24/spi.c struct st33zp24_platform_data *pdata; pdata 307 drivers/char/tpm/st33zp24/spi.c pdata = dev->dev.platform_data; pdata 308 drivers/char/tpm/st33zp24/spi.c if (!pdata) { pdata 314 drivers/char/tpm/st33zp24/spi.c phy->io_lpcpd = pdata->io_lpcpd; pdata 316 drivers/char/tpm/st33zp24/spi.c if (gpio_is_valid(pdata->io_lpcpd)) { pdata 318 drivers/char/tpm/st33zp24/spi.c pdata->io_lpcpd, GPIOF_OUT_INIT_HIGH, pdata 339 drivers/char/tpm/st33zp24/spi.c struct st33zp24_platform_data *pdata; pdata 356 drivers/char/tpm/st33zp24/spi.c pdata = dev->dev.platform_data; pdata 357 drivers/char/tpm/st33zp24/spi.c if (!pdata && dev->dev.of_node) { pdata 361 drivers/char/tpm/st33zp24/spi.c } else if (pdata) { pdata 2198 drivers/clk/bcm/clk-bcm2835.c const struct cprman_plat_data *pdata; pdata 2202 drivers/clk/bcm/clk-bcm2835.c pdata = of_device_get_match_data(&pdev->dev); pdata 2203 drivers/clk/bcm/clk-bcm2835.c if (!pdata) pdata 2242 drivers/clk/bcm/clk-bcm2835.c (desc->supported & pdata->soc)) { pdata 74 drivers/clk/clk-fixed-factor.c struct clk_parent_data pdata = { .index = index }; pdata 93 drivers/clk/clk-fixed-factor.c init.parent_data = &pdata; pdata 925 drivers/clk/clk-si5351.c struct si5351_platform_data *pdata = pdata 935 drivers/clk/clk-si5351.c if (pdata->clkout[hwdata->num].pll_reset) pdata 1160 drivers/clk/clk-si5351.c struct si5351_platform_data *pdata; pdata 1169 drivers/clk/clk-si5351.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 1170 drivers/clk/clk-si5351.c if (!pdata) pdata 1193 drivers/clk/clk-si5351.c pdata->pll_src[num] = SI5351_PLL_SRC_XTAL; pdata 1202 drivers/clk/clk-si5351.c pdata->pll_src[num] = SI5351_PLL_SRC_CLKIN; pdata 1229 drivers/clk/clk-si5351.c pdata->clkout[num].multisynth_src = pdata 1233 drivers/clk/clk-si5351.c pdata->clkout[num].multisynth_src = pdata 1247 drivers/clk/clk-si5351.c pdata->clkout[num].clkout_src = pdata 1251 drivers/clk/clk-si5351.c pdata->clkout[num].clkout_src = pdata 1255 drivers/clk/clk-si5351.c pdata->clkout[num].clkout_src = pdata 1265 drivers/clk/clk-si5351.c pdata->clkout[num].clkout_src = pdata 1283 drivers/clk/clk-si5351.c pdata->clkout[num].drive = val; pdata 1297 drivers/clk/clk-si5351.c pdata->clkout[num].disable_state = pdata 1301 drivers/clk/clk-si5351.c pdata->clkout[num].disable_state = pdata 1305 drivers/clk/clk-si5351.c pdata->clkout[num].disable_state = pdata 1309 drivers/clk/clk-si5351.c pdata->clkout[num].disable_state = pdata 1321 drivers/clk/clk-si5351.c pdata->clkout[num].rate = val; pdata 1323 drivers/clk/clk-si5351.c pdata->clkout[num].pll_master = pdata 1326 drivers/clk/clk-si5351.c pdata->clkout[num].pll_reset = pdata 1329 drivers/clk/clk-si5351.c client->dev.platform_data = pdata; pdata 1367 drivers/clk/clk-si5351.c struct si5351_platform_data *pdata; pdata 1378 drivers/clk/clk-si5351.c pdata = client->dev.platform_data; pdata 1379 drivers/clk/clk-si5351.c if (!pdata) pdata 1421 drivers/clk/clk-si5351.c ret = _si5351_pll_reparent(drvdata, n, pdata->pll_src[n]); pdata 1425 drivers/clk/clk-si5351.c n, pdata->pll_src[n]); pdata 1432 drivers/clk/clk-si5351.c pdata->clkout[n].multisynth_src); pdata 1436 drivers/clk/clk-si5351.c n, pdata->clkout[n].multisynth_src); pdata 1441 drivers/clk/clk-si5351.c pdata->clkout[n].clkout_src); pdata 1445 drivers/clk/clk-si5351.c n, pdata->clkout[n].clkout_src); pdata 1450 drivers/clk/clk-si5351.c pdata->clkout[n].drive); pdata 1454 drivers/clk/clk-si5351.c n, pdata->clkout[n].drive); pdata 1459 drivers/clk/clk-si5351.c pdata->clkout[n].disable_state); pdata 1463 drivers/clk/clk-si5351.c n, pdata->clkout[n].disable_state); pdata 1576 drivers/clk/clk-si5351.c if (pdata->clkout[n].pll_master) pdata 1604 drivers/clk/clk-si5351.c if (pdata->clkout[n].clkout_src == SI5351_CLKOUT_SRC_MSYNTH_N) pdata 1617 drivers/clk/clk-si5351.c if (pdata->clkout[n].rate != 0) { pdata 1620 drivers/clk/clk-si5351.c pdata->clkout[n].rate); pdata 742 drivers/clk/davinci/da8xx-cfgchip.c struct da8xx_cfgchip_clk_platform_data *pdata = dev->platform_data; pdata 755 drivers/clk/davinci/da8xx-cfgchip.c } else if (pdev->id_entry && pdata) { pdata 757 drivers/clk/davinci/da8xx-cfgchip.c regmap = pdata->cfgchip; pdata 846 drivers/clk/davinci/pll.c struct davinci_pll_platform_data *pdata = dev_get_platdata(dev); pdata 852 drivers/clk/davinci/pll.c if (!pdata) pdata 853 drivers/clk/davinci/pll.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 854 drivers/clk/davinci/pll.c if (!pdata) pdata 859 drivers/clk/davinci/pll.c pdata->cfgchip = pdata 862 drivers/clk/davinci/pll.c return pdata; pdata 910 drivers/clk/davinci/pll.c struct davinci_pll_platform_data *pdata; pdata 927 drivers/clk/davinci/pll.c pdata = davinci_pll_get_pdata(dev); pdata 928 drivers/clk/davinci/pll.c if (!pdata) { pdata 938 drivers/clk/davinci/pll.c return pll_init(dev, base, pdata->cfgchip); pdata 880 drivers/clk/ti/adpll.c const struct ti_adpll_platform_data *pdata; pdata 887 drivers/clk/ti/adpll.c pdata = match->data; pdata 896 drivers/clk/ti/adpll.c d->c = pdata; pdata 175 drivers/clocksource/timer-ti-dm.c struct dmtimer_platform_data *pdata; pdata 194 drivers/clocksource/timer-ti-dm.c pdata = timer->pdev->dev.platform_data; pdata 201 drivers/clocksource/timer-ti-dm.c if (pdata && pdata->set_timer_src) pdata 202 drivers/clocksource/timer-ti-dm.c return pdata->set_timer_src(timer->pdev, source); pdata 785 drivers/clocksource/timer-ti-dm.c const struct dmtimer_platform_data *pdata; pdata 788 drivers/clocksource/timer-ti-dm.c pdata = of_device_get_match_data(dev); pdata 789 drivers/clocksource/timer-ti-dm.c if (!pdata) pdata 790 drivers/clocksource/timer-ti-dm.c pdata = dev_get_platdata(dev); pdata 792 drivers/clocksource/timer-ti-dm.c dev->platform_data = (void *)pdata; pdata 794 drivers/clocksource/timer-ti-dm.c if (!pdata) { pdata 831 drivers/clocksource/timer-ti-dm.c timer->capability = pdata->timer_capability; pdata 833 drivers/clocksource/timer-ti-dm.c timer->get_context_loss_count = pdata->get_context_loss_count; pdata 836 drivers/clocksource/timer-ti-dm.c if (pdata) pdata 837 drivers/clocksource/timer-ti-dm.c timer->errata = pdata->timer_errata; pdata 356 drivers/cpufreq/armada-37xx-cpufreq.c struct cpufreq_dt_platform_data pdata; pdata 459 drivers/cpufreq/armada-37xx-cpufreq.c pdata.suspend = armada37xx_cpufreq_suspend; pdata 460 drivers/cpufreq/armada-37xx-cpufreq.c pdata.resume = armada37xx_cpufreq_resume; pdata 462 drivers/cpufreq/armada-37xx-cpufreq.c pdev = platform_device_register_data(NULL, "cpufreq-dt", -1, &pdata, pdata 463 drivers/cpufreq/armada-37xx-cpufreq.c sizeof(pdata)); pdata 37 drivers/cpufreq/davinci-cpufreq.c struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; pdata 43 drivers/cpufreq/davinci-cpufreq.c new_freq = pdata->freq_table[idx].frequency; pdata 46 drivers/cpufreq/davinci-cpufreq.c if (pdata->set_voltage && new_freq > old_freq) { pdata 47 drivers/cpufreq/davinci-cpufreq.c ret = pdata->set_voltage(idx); pdata 63 drivers/cpufreq/davinci-cpufreq.c if (pdata->set_voltage && new_freq < old_freq) pdata 64 drivers/cpufreq/davinci-cpufreq.c pdata->set_voltage(idx); pdata 72 drivers/cpufreq/davinci-cpufreq.c struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; pdata 73 drivers/cpufreq/davinci-cpufreq.c struct cpufreq_frequency_table *freq_table = pdata->freq_table; pdata 79 drivers/cpufreq/davinci-cpufreq.c if (pdata->init) { pdata 80 drivers/cpufreq/davinci-cpufreq.c result = pdata->init(); pdata 109 drivers/cpufreq/davinci-cpufreq.c struct davinci_cpufreq_config *pdata = pdev->dev.platform_data; pdata 112 drivers/cpufreq/davinci-cpufreq.c if (!pdata) pdata 114 drivers/cpufreq/davinci-cpufreq.c if (!pdata->freq_table) pdata 139 drivers/cpufreq/loongson1-cpufreq.c struct plat_ls1x_cpufreq *pdata = dev_get_platdata(&pdev->dev); pdata 143 drivers/cpufreq/loongson1-cpufreq.c if (!pdata || !pdata->clk_name || !pdata->osc_clk_name) { pdata 155 drivers/cpufreq/loongson1-cpufreq.c clk = devm_clk_get(&pdev->dev, pdata->clk_name); pdata 158 drivers/cpufreq/loongson1-cpufreq.c pdata->clk_name); pdata 179 drivers/cpufreq/loongson1-cpufreq.c clk = devm_clk_get(&pdev->dev, pdata->osc_clk_name); pdata 182 drivers/cpufreq/loongson1-cpufreq.c pdata->osc_clk_name); pdata 187 drivers/cpufreq/loongson1-cpufreq.c cpufreq->max_freq = pdata->max_freq; pdata 188 drivers/cpufreq/loongson1-cpufreq.c cpufreq->min_freq = pdata->min_freq; pdata 2387 drivers/crypto/atmel-aes.c struct crypto_platform_data *pdata) pdata 2396 drivers/crypto/atmel-aes.c slave = &pdata->dma_slave->rxdata; pdata 2402 drivers/crypto/atmel-aes.c slave = &pdata->dma_slave->txdata; pdata 2588 drivers/crypto/atmel-aes.c struct crypto_platform_data *pdata; pdata 2595 drivers/crypto/atmel-aes.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 2596 drivers/crypto/atmel-aes.c if (!pdata) pdata 2599 drivers/crypto/atmel-aes.c pdata->dma_slave = devm_kzalloc(&pdev->dev, pdata 2600 drivers/crypto/atmel-aes.c sizeof(*(pdata->dma_slave)), pdata 2602 drivers/crypto/atmel-aes.c if (!pdata->dma_slave) { pdata 2603 drivers/crypto/atmel-aes.c devm_kfree(&pdev->dev, pdata); pdata 2607 drivers/crypto/atmel-aes.c return pdata; pdata 2619 drivers/crypto/atmel-aes.c struct crypto_platform_data *pdata; pdata 2624 drivers/crypto/atmel-aes.c pdata = pdev->dev.platform_data; pdata 2625 drivers/crypto/atmel-aes.c if (!pdata) { pdata 2626 drivers/crypto/atmel-aes.c pdata = atmel_aes_of_init(pdev); pdata 2627 drivers/crypto/atmel-aes.c if (IS_ERR(pdata)) { pdata 2628 drivers/crypto/atmel-aes.c err = PTR_ERR(pdata); pdata 2633 drivers/crypto/atmel-aes.c if (!pdata->dma_slave) { pdata 2717 drivers/crypto/atmel-aes.c err = atmel_aes_dma_init(aes_dd, pdata); pdata 2619 drivers/crypto/atmel-sha.c struct crypto_platform_data *pdata) pdata 2628 drivers/crypto/atmel-sha.c atmel_sha_filter, &pdata->dma_slave->rxdata, dd->dev, "tx"); pdata 2711 drivers/crypto/atmel-sha.c struct crypto_platform_data *pdata; pdata 2718 drivers/crypto/atmel-sha.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 2719 drivers/crypto/atmel-sha.c if (!pdata) pdata 2722 drivers/crypto/atmel-sha.c pdata->dma_slave = devm_kzalloc(&pdev->dev, pdata 2723 drivers/crypto/atmel-sha.c sizeof(*(pdata->dma_slave)), pdata 2725 drivers/crypto/atmel-sha.c if (!pdata->dma_slave) pdata 2728 drivers/crypto/atmel-sha.c return pdata; pdata 2740 drivers/crypto/atmel-sha.c struct crypto_platform_data *pdata; pdata 2812 drivers/crypto/atmel-sha.c pdata = pdev->dev.platform_data; pdata 2813 drivers/crypto/atmel-sha.c if (!pdata) { pdata 2814 drivers/crypto/atmel-sha.c pdata = atmel_sha_of_init(pdev); pdata 2815 drivers/crypto/atmel-sha.c if (IS_ERR(pdata)) { pdata 2817 drivers/crypto/atmel-sha.c err = PTR_ERR(pdata); pdata 2821 drivers/crypto/atmel-sha.c if (!pdata->dma_slave) { pdata 2825 drivers/crypto/atmel-sha.c err = atmel_sha_dma_init(sha_dd, pdata); pdata 718 drivers/crypto/atmel-tdes.c struct crypto_platform_data *pdata) pdata 727 drivers/crypto/atmel-tdes.c atmel_tdes_filter, &pdata->dma_slave->rxdata, dd->dev, "tx"); pdata 743 drivers/crypto/atmel-tdes.c atmel_tdes_filter, &pdata->dma_slave->txdata, dd->dev, "rx"); pdata 1204 drivers/crypto/atmel-tdes.c struct crypto_platform_data *pdata; pdata 1211 drivers/crypto/atmel-tdes.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1212 drivers/crypto/atmel-tdes.c if (!pdata) pdata 1215 drivers/crypto/atmel-tdes.c pdata->dma_slave = devm_kzalloc(&pdev->dev, pdata 1216 drivers/crypto/atmel-tdes.c sizeof(*(pdata->dma_slave)), pdata 1218 drivers/crypto/atmel-tdes.c if (!pdata->dma_slave) pdata 1221 drivers/crypto/atmel-tdes.c return pdata; pdata 1233 drivers/crypto/atmel-tdes.c struct crypto_platform_data *pdata; pdata 1305 drivers/crypto/atmel-tdes.c pdata = pdev->dev.platform_data; pdata 1306 drivers/crypto/atmel-tdes.c if (!pdata) { pdata 1307 drivers/crypto/atmel-tdes.c pdata = atmel_tdes_of_init(pdev); pdata 1308 drivers/crypto/atmel-tdes.c if (IS_ERR(pdata)) { pdata 1310 drivers/crypto/atmel-tdes.c err = PTR_ERR(pdata); pdata 1314 drivers/crypto/atmel-tdes.c if (!pdata->dma_slave) { pdata 1318 drivers/crypto/atmel-tdes.c err = atmel_tdes_dma_init(tdes_dd, pdata); pdata 175 drivers/crypto/omap-aes.c val = dd->pdata->dma_start; pdata 178 drivers/crypto/omap-aes.c val |= dd->pdata->dma_enable_out; pdata 180 drivers/crypto/omap-aes.c val |= dd->pdata->dma_enable_in; pdata 182 drivers/crypto/omap-aes.c mask = dd->pdata->dma_enable_out | dd->pdata->dma_enable_in | pdata 183 drivers/crypto/omap-aes.c dd->pdata->dma_start; pdata 203 drivers/crypto/omap-aes.c mask = dd->pdata->dma_enable_out | dd->pdata->dma_enable_in | pdata 204 drivers/crypto/omap-aes.c dd->pdata->dma_start; pdata 345 drivers/crypto/omap-aes.c dd->pdata->trigger(dd, dd->total); pdata 987 drivers/crypto/omap-aes.c dd->pdata = of_device_get_match_data(dev); pdata 988 drivers/crypto/omap-aes.c if (!dd->pdata) { pdata 1033 drivers/crypto/omap-aes.c dd->pdata = &omap_aes_pdata_omap2; pdata 1170 drivers/crypto/omap-aes.c (reg & dd->pdata->major_mask) >> dd->pdata->major_shift, pdata 1171 drivers/crypto/omap-aes.c (reg & dd->pdata->minor_mask) >> dd->pdata->minor_shift); pdata 1213 drivers/crypto/omap-aes.c for (i = 0; i < dd->pdata->algs_info_size; i++) { pdata 1214 drivers/crypto/omap-aes.c if (!dd->pdata->algs_info[i].registered) { pdata 1215 drivers/crypto/omap-aes.c for (j = 0; j < dd->pdata->algs_info[i].size; j++) { pdata 1216 drivers/crypto/omap-aes.c algp = &dd->pdata->algs_info[i].algs_list[j]; pdata 1224 drivers/crypto/omap-aes.c dd->pdata->algs_info[i].registered++; pdata 1229 drivers/crypto/omap-aes.c if (dd->pdata->aead_algs_info && pdata 1230 drivers/crypto/omap-aes.c !dd->pdata->aead_algs_info->registered) { pdata 1231 drivers/crypto/omap-aes.c for (i = 0; i < dd->pdata->aead_algs_info->size; i++) { pdata 1232 drivers/crypto/omap-aes.c aalg = &dd->pdata->aead_algs_info->algs_list[i]; pdata 1241 drivers/crypto/omap-aes.c dd->pdata->aead_algs_info->registered++; pdata 1253 drivers/crypto/omap-aes.c for (i = dd->pdata->aead_algs_info->registered - 1; i >= 0; i--) { pdata 1254 drivers/crypto/omap-aes.c aalg = &dd->pdata->aead_algs_info->algs_list[i]; pdata 1258 drivers/crypto/omap-aes.c for (i = dd->pdata->algs_info_size - 1; i >= 0; i--) pdata 1259 drivers/crypto/omap-aes.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) pdata 1261 drivers/crypto/omap-aes.c &dd->pdata->algs_info[i].algs_list[j]); pdata 1291 drivers/crypto/omap-aes.c for (i = dd->pdata->algs_info_size - 1; i >= 0; i--) pdata 1292 drivers/crypto/omap-aes.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) pdata 1294 drivers/crypto/omap-aes.c &dd->pdata->algs_info[i].algs_list[j]); pdata 1296 drivers/crypto/omap-aes.c for (i = dd->pdata->aead_algs_info->size - 1; i >= 0; i--) { pdata 1297 drivers/crypto/omap-aes.c aalg = &dd->pdata->aead_algs_info->algs_list[i]; pdata 26 drivers/crypto/omap-aes.h #define AES_REG_KEY(dd, x) ((dd)->pdata->key_ofs - \ pdata 28 drivers/crypto/omap-aes.h #define AES_REG_IV(dd, x) ((dd)->pdata->iv_ofs + ((x) * 0x04)) pdata 30 drivers/crypto/omap-aes.h #define AES_REG_CTRL(dd) ((dd)->pdata->ctrl_ofs) pdata 50 drivers/crypto/omap-aes.h #define AES_REG_DATA_N(dd, x) ((dd)->pdata->data_ofs + ((x) * 0x04)) pdata 53 drivers/crypto/omap-aes.h #define AES_REG_REV(dd) ((dd)->pdata->rev_ofs) pdata 55 drivers/crypto/omap-aes.h #define AES_REG_MASK(dd) ((dd)->pdata->mask_ofs) pdata 65 drivers/crypto/omap-aes.h #define AES_REG_IRQ_STATUS(dd) ((dd)->pdata->irq_status_ofs) pdata 66 drivers/crypto/omap-aes.h #define AES_REG_IRQ_ENABLE(dd) ((dd)->pdata->irq_enable_ofs) pdata 193 drivers/crypto/omap-aes.h const struct omap_aes_pdata *pdata; pdata 48 drivers/crypto/omap-des.c #define DES_REG_KEY(dd, x) ((dd)->pdata->key_ofs - \ pdata 51 drivers/crypto/omap-des.c #define DES_REG_IV(dd, x) ((dd)->pdata->iv_ofs + ((x) * 0x04)) pdata 53 drivers/crypto/omap-des.c #define DES_REG_CTRL(dd) ((dd)->pdata->ctrl_ofs) pdata 60 drivers/crypto/omap-des.c #define DES_REG_DATA_N(dd, x) ((dd)->pdata->data_ofs + ((x) * 0x04)) pdata 62 drivers/crypto/omap-des.c #define DES_REG_REV(dd) ((dd)->pdata->rev_ofs) pdata 64 drivers/crypto/omap-des.c #define DES_REG_MASK(dd) ((dd)->pdata->mask_ofs) pdata 68 drivers/crypto/omap-des.c #define DES_REG_IRQ_STATUS(dd) ((dd)->pdata->irq_status_ofs) pdata 69 drivers/crypto/omap-des.c #define DES_REG_IRQ_ENABLE(dd) ((dd)->pdata->irq_enable_ofs) pdata 166 drivers/crypto/omap-des.c const struct omap_des_pdata *pdata; pdata 287 drivers/crypto/omap-des.c val = dd->pdata->dma_start; pdata 290 drivers/crypto/omap-des.c val |= dd->pdata->dma_enable_out; pdata 292 drivers/crypto/omap-des.c val |= dd->pdata->dma_enable_in; pdata 294 drivers/crypto/omap-des.c mask = dd->pdata->dma_enable_out | dd->pdata->dma_enable_in | pdata 295 drivers/crypto/omap-des.c dd->pdata->dma_start; pdata 304 drivers/crypto/omap-des.c mask = dd->pdata->dma_enable_out | dd->pdata->dma_enable_in | pdata 305 drivers/crypto/omap-des.c dd->pdata->dma_start; pdata 452 drivers/crypto/omap-des.c dd->pdata->trigger(dd, dd->total); pdata 950 drivers/crypto/omap-des.c dd->pdata = of_device_get_match_data(&pdev->dev); pdata 951 drivers/crypto/omap-des.c if (!dd->pdata) { pdata 970 drivers/crypto/omap-des.c dd->pdata = pdev->dev.platform_data; pdata 1028 drivers/crypto/omap-des.c (reg & dd->pdata->major_mask) >> dd->pdata->major_shift, pdata 1029 drivers/crypto/omap-des.c (reg & dd->pdata->minor_mask) >> dd->pdata->minor_shift); pdata 1070 drivers/crypto/omap-des.c for (i = 0; i < dd->pdata->algs_info_size; i++) { pdata 1071 drivers/crypto/omap-des.c for (j = 0; j < dd->pdata->algs_info[i].size; j++) { pdata 1072 drivers/crypto/omap-des.c algp = &dd->pdata->algs_info[i].algs_list[j]; pdata 1080 drivers/crypto/omap-des.c dd->pdata->algs_info[i].registered++; pdata 1087 drivers/crypto/omap-des.c for (i = dd->pdata->algs_info_size - 1; i >= 0; i--) pdata 1088 drivers/crypto/omap-des.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) pdata 1090 drivers/crypto/omap-des.c &dd->pdata->algs_info[i].algs_list[j]); pdata 1120 drivers/crypto/omap-des.c for (i = dd->pdata->algs_info_size - 1; i >= 0; i--) pdata 1121 drivers/crypto/omap-des.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) pdata 1123 drivers/crypto/omap-des.c &dd->pdata->algs_info[i].algs_list[j]); pdata 46 drivers/crypto/omap-sham.c #define SHA_REG_IDIGEST(dd, x) ((dd)->pdata->idigest_ofs + ((x)*0x04)) pdata 47 drivers/crypto/omap-sham.c #define SHA_REG_DIN(dd, x) ((dd)->pdata->din_ofs + ((x) * 0x04)) pdata 48 drivers/crypto/omap-sham.c #define SHA_REG_DIGCNT(dd) ((dd)->pdata->digcnt_ofs) pdata 50 drivers/crypto/omap-sham.c #define SHA_REG_ODIGEST(dd, x) ((dd)->pdata->odigest_ofs + (x * 0x04)) pdata 60 drivers/crypto/omap-sham.c #define SHA_REG_REV(dd) ((dd)->pdata->rev_ofs) pdata 62 drivers/crypto/omap-sham.c #define SHA_REG_MASK(dd) ((dd)->pdata->mask_ofs) pdata 68 drivers/crypto/omap-sham.c #define SHA_REG_SYSSTATUS(dd) ((dd)->pdata->sysstatus_ofs) pdata 71 drivers/crypto/omap-sham.c #define SHA_REG_MODE(dd) ((dd)->pdata->mode_ofs) pdata 85 drivers/crypto/omap-sham.c #define SHA_REG_LENGTH(dd) ((dd)->pdata->length_ofs) pdata 233 drivers/crypto/omap-sham.c const struct omap_sham_pdata *pdata; pdata 288 drivers/crypto/omap-sham.c for (i = 0; i < dd->pdata->digest_size / sizeof(u32); i++) { pdata 308 drivers/crypto/omap-sham.c for (i = 0; i < dd->pdata->digest_size / sizeof(u32); i++) { pdata 527 drivers/crypto/omap-sham.c dd->pdata->write_ctrl(dd, length, final, 0); pdata 528 drivers/crypto/omap-sham.c dd->pdata->trigger(dd, length); pdata 548 drivers/crypto/omap-sham.c if (dd->pdata->poll_irq(dd)) pdata 622 drivers/crypto/omap-sham.c dd->pdata->write_ctrl(dd, length, final, 1); pdata 635 drivers/crypto/omap-sham.c dd->pdata->trigger(dd, length); pdata 1096 drivers/crypto/omap-sham.c dd->pdata->copy_hash(req, 1); pdata 1159 drivers/crypto/omap-sham.c dd->pdata->copy_hash(req, 0); pdata 1937 drivers/crypto/omap-sham.c dd->pdata = of_device_get_match_data(dev); pdata 1938 drivers/crypto/omap-sham.c if (!dd->pdata) { pdata 1997 drivers/crypto/omap-sham.c dd->pdata = &omap_sham_pdata_omap2; pdata 2117 drivers/crypto/omap-sham.c err = devm_request_irq(dev, dd->irq, dd->pdata->intr_hdlr, pdata 2138 drivers/crypto/omap-sham.c dd->flags |= dd->pdata->flags; pdata 2158 drivers/crypto/omap-sham.c (rev & dd->pdata->major_mask) >> dd->pdata->major_shift, pdata 2159 drivers/crypto/omap-sham.c (rev & dd->pdata->minor_mask) >> dd->pdata->minor_shift); pdata 2165 drivers/crypto/omap-sham.c for (i = 0; i < dd->pdata->algs_info_size; i++) { pdata 2166 drivers/crypto/omap-sham.c for (j = 0; j < dd->pdata->algs_info[i].size; j++) { pdata 2169 drivers/crypto/omap-sham.c alg = &dd->pdata->algs_info[i].algs_list[j]; pdata 2178 drivers/crypto/omap-sham.c dd->pdata->algs_info[i].registered++; pdata 2191 drivers/crypto/omap-sham.c for (i = dd->pdata->algs_info_size - 1; i >= 0; i--) pdata 2192 drivers/crypto/omap-sham.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) pdata 2194 drivers/crypto/omap-sham.c &dd->pdata->algs_info[i].algs_list[j]); pdata 2216 drivers/crypto/omap-sham.c for (i = dd->pdata->algs_info_size - 1; i >= 0; i--) pdata 2217 drivers/crypto/omap-sham.c for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) pdata 2219 drivers/crypto/omap-sham.c &dd->pdata->algs_info[i].algs_list[j]); pdata 2198 drivers/crypto/s5p-sss.c struct s5p_aes_dev *pdata; pdata 2205 drivers/crypto/s5p-sss.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 2206 drivers/crypto/s5p-sss.c if (!pdata) pdata 2221 drivers/crypto/s5p-sss.c pdata->use_hash = true; pdata 2225 drivers/crypto/s5p-sss.c pdata->res = res; pdata 2226 drivers/crypto/s5p-sss.c pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res); pdata 2227 drivers/crypto/s5p-sss.c if (IS_ERR(pdata->ioaddr)) { pdata 2228 drivers/crypto/s5p-sss.c if (!pdata->use_hash) pdata 2229 drivers/crypto/s5p-sss.c return PTR_ERR(pdata->ioaddr); pdata 2232 drivers/crypto/s5p-sss.c pdata->use_hash = false; pdata 2233 drivers/crypto/s5p-sss.c pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res); pdata 2234 drivers/crypto/s5p-sss.c if (IS_ERR(pdata->ioaddr)) pdata 2235 drivers/crypto/s5p-sss.c return PTR_ERR(pdata->ioaddr); pdata 2238 drivers/crypto/s5p-sss.c pdata->clk = devm_clk_get(dev, variant->clk_names[0]); pdata 2239 drivers/crypto/s5p-sss.c if (IS_ERR(pdata->clk)) { pdata 2245 drivers/crypto/s5p-sss.c err = clk_prepare_enable(pdata->clk); pdata 2253 drivers/crypto/s5p-sss.c pdata->pclk = devm_clk_get(dev, variant->clk_names[1]); pdata 2254 drivers/crypto/s5p-sss.c if (IS_ERR(pdata->pclk)) { pdata 2261 drivers/crypto/s5p-sss.c err = clk_prepare_enable(pdata->pclk); pdata 2268 drivers/crypto/s5p-sss.c pdata->pclk = NULL; pdata 2271 drivers/crypto/s5p-sss.c spin_lock_init(&pdata->lock); pdata 2272 drivers/crypto/s5p-sss.c spin_lock_init(&pdata->hash_lock); pdata 2274 drivers/crypto/s5p-sss.c pdata->aes_ioaddr = pdata->ioaddr + variant->aes_offset; pdata 2275 drivers/crypto/s5p-sss.c pdata->io_hash_base = pdata->ioaddr + variant->hash_offset; pdata 2277 drivers/crypto/s5p-sss.c pdata->irq_fc = platform_get_irq(pdev, 0); pdata 2278 drivers/crypto/s5p-sss.c if (pdata->irq_fc < 0) { pdata 2279 drivers/crypto/s5p-sss.c err = pdata->irq_fc; pdata 2283 drivers/crypto/s5p-sss.c err = devm_request_threaded_irq(dev, pdata->irq_fc, NULL, pdata 2291 drivers/crypto/s5p-sss.c pdata->busy = false; pdata 2292 drivers/crypto/s5p-sss.c pdata->dev = dev; pdata 2293 drivers/crypto/s5p-sss.c platform_set_drvdata(pdev, pdata); pdata 2294 drivers/crypto/s5p-sss.c s5p_dev = pdata; pdata 2296 drivers/crypto/s5p-sss.c tasklet_init(&pdata->tasklet, s5p_tasklet_cb, (unsigned long)pdata); pdata 2297 drivers/crypto/s5p-sss.c crypto_init_queue(&pdata->queue, CRYPTO_QUEUE_LEN); pdata 2305 drivers/crypto/s5p-sss.c if (pdata->use_hash) { pdata 2306 drivers/crypto/s5p-sss.c tasklet_init(&pdata->hash_tasklet, s5p_hash_tasklet_cb, pdata 2307 drivers/crypto/s5p-sss.c (unsigned long)pdata); pdata 2308 drivers/crypto/s5p-sss.c crypto_init_queue(&pdata->hash_queue, SSS_HASH_QUEUE_LENGTH); pdata 2332 drivers/crypto/s5p-sss.c tasklet_kill(&pdata->hash_tasklet); pdata 2343 drivers/crypto/s5p-sss.c tasklet_kill(&pdata->tasklet); pdata 2346 drivers/crypto/s5p-sss.c if (pdata->pclk) pdata 2347 drivers/crypto/s5p-sss.c clk_disable_unprepare(pdata->pclk); pdata 2350 drivers/crypto/s5p-sss.c clk_disable_unprepare(pdata->clk); pdata 2358 drivers/crypto/s5p-sss.c struct s5p_aes_dev *pdata = platform_get_drvdata(pdev); pdata 2361 drivers/crypto/s5p-sss.c if (!pdata) pdata 2367 drivers/crypto/s5p-sss.c tasklet_kill(&pdata->tasklet); pdata 2368 drivers/crypto/s5p-sss.c if (pdata->use_hash) { pdata 2372 drivers/crypto/s5p-sss.c pdata->res->end -= 0x300; pdata 2373 drivers/crypto/s5p-sss.c tasklet_kill(&pdata->hash_tasklet); pdata 2374 drivers/crypto/s5p-sss.c pdata->use_hash = false; pdata 2377 drivers/crypto/s5p-sss.c if (pdata->pclk) pdata 2378 drivers/crypto/s5p-sss.c clk_disable_unprepare(pdata->pclk); pdata 2380 drivers/crypto/s5p-sss.c clk_disable_unprepare(pdata->clk); pdata 179 drivers/crypto/stm32/stm32-hash.c const struct stm32_hash_pdata *pdata; pdata 1336 drivers/crypto/stm32/stm32-hash.c for (i = 0; i < hdev->pdata->algs_info_size; i++) { pdata 1337 drivers/crypto/stm32/stm32-hash.c for (j = 0; j < hdev->pdata->algs_info[i].size; j++) { pdata 1339 drivers/crypto/stm32/stm32-hash.c &hdev->pdata->algs_info[i].algs_list[j]); pdata 1351 drivers/crypto/stm32/stm32-hash.c &hdev->pdata->algs_info[i].algs_list[j]); pdata 1361 drivers/crypto/stm32/stm32-hash.c for (i = 0; i < hdev->pdata->algs_info_size; i++) { pdata 1362 drivers/crypto/stm32/stm32-hash.c for (j = 0; j < hdev->pdata->algs_info[i].size; j++) pdata 1364 drivers/crypto/stm32/stm32-hash.c &hdev->pdata->algs_info[i].algs_list[j]); pdata 1415 drivers/crypto/stm32/stm32-hash.c hdev->pdata = of_device_get_match_data(dev); pdata 1416 drivers/crypto/stm32/stm32-hash.c if (!hdev->pdata) { pdata 333 drivers/dma/acpi-dma.c struct acpi_dma_parser_data *pdata = data; pdata 338 drivers/dma/acpi-dma.c if (pdata->n++ == pdata->index) { pdata 339 drivers/dma/acpi-dma.c pdata->dma_spec.chan_id = dma->channels; pdata 340 drivers/dma/acpi-dma.c pdata->dma_spec.slave_id = dma->request_lines; pdata 359 drivers/dma/acpi-dma.c struct acpi_dma_parser_data pdata; pdata 360 drivers/dma/acpi-dma.c struct acpi_dma_spec *dma_spec = &pdata.dma_spec; pdata 375 drivers/dma/acpi-dma.c memset(&pdata, 0, sizeof(pdata)); pdata 376 drivers/dma/acpi-dma.c pdata.index = index; pdata 384 drivers/dma/acpi-dma.c acpi_dma_parse_fixed_dma, &pdata); pdata 60 drivers/dma/dw-edma/dw-edma-pcie.c const struct dw_edma_pcie_data *pdata = (void *)pid->driver_data; pdata 74 drivers/dma/dw-edma/dw-edma-pcie.c err = pcim_iomap_regions(pdev, BIT(pdata->rg_bar) | pdata 75 drivers/dma/dw-edma/dw-edma-pcie.c BIT(pdata->ll_bar) | pdata 76 drivers/dma/dw-edma/dw-edma-pcie.c BIT(pdata->dt_bar), pdata 119 drivers/dma/dw-edma/dw-edma-pcie.c nr_irqs = pci_alloc_irq_vectors(pdev, 1, pdata->irqs, pdata 133 drivers/dma/dw-edma/dw-edma-pcie.c dw->rg_region.vaddr = pcim_iomap_table(pdev)[pdata->rg_bar]; pdata 134 drivers/dma/dw-edma/dw-edma-pcie.c dw->rg_region.vaddr += pdata->rg_off; pdata 135 drivers/dma/dw-edma/dw-edma-pcie.c dw->rg_region.paddr = pdev->resource[pdata->rg_bar].start; pdata 136 drivers/dma/dw-edma/dw-edma-pcie.c dw->rg_region.paddr += pdata->rg_off; pdata 137 drivers/dma/dw-edma/dw-edma-pcie.c dw->rg_region.sz = pdata->rg_sz; pdata 139 drivers/dma/dw-edma/dw-edma-pcie.c dw->ll_region.vaddr = pcim_iomap_table(pdev)[pdata->ll_bar]; pdata 140 drivers/dma/dw-edma/dw-edma-pcie.c dw->ll_region.vaddr += pdata->ll_off; pdata 141 drivers/dma/dw-edma/dw-edma-pcie.c dw->ll_region.paddr = pdev->resource[pdata->ll_bar].start; pdata 142 drivers/dma/dw-edma/dw-edma-pcie.c dw->ll_region.paddr += pdata->ll_off; pdata 143 drivers/dma/dw-edma/dw-edma-pcie.c dw->ll_region.sz = pdata->ll_sz; pdata 145 drivers/dma/dw-edma/dw-edma-pcie.c dw->dt_region.vaddr = pcim_iomap_table(pdev)[pdata->dt_bar]; pdata 146 drivers/dma/dw-edma/dw-edma-pcie.c dw->dt_region.vaddr += pdata->dt_off; pdata 147 drivers/dma/dw-edma/dw-edma-pcie.c dw->dt_region.paddr = pdev->resource[pdata->dt_bar].start; pdata 148 drivers/dma/dw-edma/dw-edma-pcie.c dw->dt_region.paddr += pdata->dt_off; pdata 149 drivers/dma/dw-edma/dw-edma-pcie.c dw->dt_region.sz = pdata->dt_sz; pdata 151 drivers/dma/dw-edma/dw-edma-pcie.c dw->version = pdata->version; pdata 152 drivers/dma/dw-edma/dw-edma-pcie.c dw->mode = pdata->mode; pdata 162 drivers/dma/dw-edma/dw-edma-pcie.c pdata->rg_bar, pdata->rg_off, pdata->rg_sz, pdata 166 drivers/dma/dw-edma/dw-edma-pcie.c pdata->ll_bar, pdata->ll_off, pdata->ll_sz, pdata 170 drivers/dma/dw-edma/dw-edma-pcie.c pdata->dt_bar, pdata->dt_off, pdata->dt_sz, pdata 558 drivers/dma/dw/core.c unsigned int data_width = dw->pdata->data_width[m_master]; pdata 637 drivers/dma/dw/core.c unsigned int data_width = dw->pdata->data_width[m_master]; pdata 1055 drivers/dma/dw/core.c struct dw_dma_platform_data *pdata; pdata 1061 drivers/dma/dw/core.c dw->pdata = devm_kzalloc(chip->dev, sizeof(*dw->pdata), GFP_KERNEL); pdata 1062 drivers/dma/dw/core.c if (!dw->pdata) pdata 1069 drivers/dma/dw/core.c if (!chip->pdata) { pdata 1080 drivers/dma/dw/core.c pdata = dw->pdata; pdata 1083 drivers/dma/dw/core.c pdata->nr_channels = (dw_params >> DW_PARAMS_NR_CHAN & 7) + 1; pdata 1084 drivers/dma/dw/core.c pdata->nr_masters = (dw_params >> DW_PARAMS_NR_MASTER & 3) + 1; pdata 1085 drivers/dma/dw/core.c for (i = 0; i < pdata->nr_masters; i++) { pdata 1086 drivers/dma/dw/core.c pdata->data_width[i] = pdata 1089 drivers/dma/dw/core.c pdata->block_size = dma_readl(dw, MAX_BLK_SIZE); pdata 1092 drivers/dma/dw/core.c pdata->chan_allocation_order = CHAN_ALLOCATION_ASCENDING; pdata 1093 drivers/dma/dw/core.c pdata->chan_priority = CHAN_PRIORITY_ASCENDING; pdata 1094 drivers/dma/dw/core.c } else if (chip->pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS) { pdata 1098 drivers/dma/dw/core.c memcpy(dw->pdata, chip->pdata, sizeof(*dw->pdata)); pdata 1101 drivers/dma/dw/core.c pdata = dw->pdata; pdata 1104 drivers/dma/dw/core.c dw->chan = devm_kcalloc(chip->dev, pdata->nr_channels, sizeof(*dw->chan), pdata 1112 drivers/dma/dw/core.c dw->all_chan_mask = (1 << pdata->nr_channels) - 1; pdata 1137 drivers/dma/dw/core.c for (i = 0; i < pdata->nr_channels; i++) { pdata 1142 drivers/dma/dw/core.c if (pdata->chan_allocation_order == CHAN_ALLOCATION_ASCENDING) pdata 1149 drivers/dma/dw/core.c if (pdata->chan_priority == CHAN_PRIORITY_ASCENDING) pdata 1150 drivers/dma/dw/core.c dwc->priority = pdata->nr_channels - i - 1; pdata 1180 drivers/dma/dw/core.c (4 << ((pdata->block_size >> 4 * i) & 0xf)) - 1; pdata 1184 drivers/dma/dw/core.c dwc->block_size = pdata->block_size; pdata 1185 drivers/dma/dw/core.c dwc->nollp = !pdata->multi_block[i]; pdata 1228 drivers/dma/dw/core.c pdata->nr_channels); pdata 23 drivers/dma/dw/dw.c cfghi |= DWC_CFGH_PROTCTL(dw->pdata->protctl); pdata 50 drivers/dma/dw/internal.h const struct dw_dma_platform_data *pdata; pdata 72 drivers/dma/dw/internal.h .pdata = &idma32_pdata, pdata 35 drivers/dma/dw/of.c slave.m_master >= dw->pdata->nr_masters || pdata 36 drivers/dma/dw/of.c slave.p_master >= dw->pdata->nr_masters)) pdata 49 drivers/dma/dw/of.c struct dw_dma_platform_data *pdata; pdata 69 drivers/dma/dw/of.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 70 drivers/dma/dw/of.c if (!pdata) pdata 73 drivers/dma/dw/of.c pdata->nr_masters = nr_masters; pdata 74 drivers/dma/dw/of.c pdata->nr_channels = nr_channels; pdata 77 drivers/dma/dw/of.c pdata->chan_allocation_order = (unsigned char)tmp; pdata 80 drivers/dma/dw/of.c pdata->chan_priority = tmp; pdata 83 drivers/dma/dw/of.c pdata->block_size = tmp; pdata 87 drivers/dma/dw/of.c pdata->data_width[tmp] = arr[tmp]; pdata 90 drivers/dma/dw/of.c pdata->data_width[tmp] = BIT(arr[tmp] & 0x07); pdata 95 drivers/dma/dw/of.c pdata->multi_block[tmp] = mb[tmp]; pdata 98 drivers/dma/dw/of.c pdata->multi_block[tmp] = 1; pdata 104 drivers/dma/dw/of.c pdata->protctl = tmp; pdata 107 drivers/dma/dw/of.c return pdata; pdata 55 drivers/dma/dw/pci.c chip->pdata = data->pdata; pdata 58 drivers/dma/dw/platform.c if (!data->pdata) pdata 59 drivers/dma/dw/platform.c data->pdata = dev_get_platdata(dev); pdata 60 drivers/dma/dw/platform.c if (!data->pdata) pdata 61 drivers/dma/dw/platform.c data->pdata = dw_dma_parse_dt(pdev); pdata 65 drivers/dma/dw/platform.c chip->pdata = data->pdata; pdata 338 drivers/dma/dw/regs.h struct dw_dma_platform_data *pdata; pdata 1318 drivers/dma/ep93xx_dma.c struct ep93xx_dma_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1324 drivers/dma/ep93xx_dma.c edma_size = pdata->num_channels * sizeof(struct ep93xx_dma_chan); pdata 1331 drivers/dma/ep93xx_dma.c edma->num_channels = pdata->num_channels; pdata 1334 drivers/dma/ep93xx_dma.c for (i = 0; i < pdata->num_channels; i++) { pdata 1335 drivers/dma/ep93xx_dma.c const struct ep93xx_dma_chan_data *cdata = &pdata->channels[i]; pdata 1990 drivers/dma/imx-sdma.c struct sdma_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 2096 drivers/dma/imx-sdma.c if (pdata && pdata->script_addrs) pdata 2097 drivers/dma/imx-sdma.c sdma_add_scripts(sdma, pdata->script_addrs); pdata 2149 drivers/dma/imx-sdma.c if (pdata) { pdata 2150 drivers/dma/imx-sdma.c ret = sdma_get_firmware(sdma, pdata->fw_name); pdata 174 drivers/dma/mcf-edma.c struct mcf_edma_platform_data *pdata; pdata 181 drivers/dma/mcf-edma.c pdata = dev_get_platdata(&pdev->dev); pdata 182 drivers/dma/mcf-edma.c if (!pdata) { pdata 187 drivers/dma/mcf-edma.c chans = pdata->dma_channels; pdata 260 drivers/dma/mcf-edma.c mcf_edma->dma_dev.filter.map = pdata->slave_map; pdata 261 drivers/dma/mcf-edma.c mcf_edma->dma_dev.filter.mapcnt = pdata->slavecnt; pdata 1029 drivers/dma/mmp_pdma.c struct mmp_dma_platdata *pdata = dev_get_platdata(&op->dev); pdata 1054 drivers/dma/mmp_pdma.c else if (pdata && pdata->dma_channels) pdata 1055 drivers/dma/mmp_pdma.c dma_channels = pdata->dma_channels; pdata 1295 drivers/dma/mv_xor.c struct mv_xor_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1411 drivers/dma/mv_xor.c } else if (pdata && pdata->channels) { pdata 1417 drivers/dma/mv_xor.c cd = &pdata->channels[i]; pdata 1357 drivers/dma/pxa_dma.c struct mmp_dma_platdata *pdata = dev_get_platdata(&op->dev); pdata 1387 drivers/dma/pxa_dma.c } else if (pdata && pdata->dma_channels) { pdata 1388 drivers/dma/pxa_dma.c dma_channels = pdata->dma_channels; pdata 1389 drivers/dma/pxa_dma.c nb_requestors = pdata->nb_requestors; pdata 1390 drivers/dma/pxa_dma.c slave_map = pdata->slave_map; pdata 1391 drivers/dma/pxa_dma.c slave_map_cnt = pdata->slave_map_cnt; pdata 237 drivers/dma/s3c24xx-dma.c const struct s3c24xx_dma_platdata *pdata; pdata 262 drivers/dma/s3c24xx-dma.c const struct s3c24xx_dma_platdata *pdata = s3cdma->pdata; pdata 263 drivers/dma/s3c24xx-dma.c struct s3c24xx_dma_channel *cdata = &pdata->channels[s3cchan->id]; pdata 294 drivers/dma/s3c24xx-dma.c for (i = 0; i < s3cdma->pdata->num_phy_channels; i++) { pdata 315 drivers/dma/s3c24xx-dma.c if (i == s3cdma->pdata->num_phy_channels) { pdata 444 drivers/dma/s3c24xx-dma.c const struct s3c24xx_dma_platdata *pdata = s3cdma->pdata; pdata 464 drivers/dma/s3c24xx-dma.c &pdata->channels[s3cchan->id]; pdata 883 drivers/dma/s3c24xx-dma.c const struct s3c24xx_dma_platdata *pdata = s3cdma->pdata; pdata 884 drivers/dma/s3c24xx-dma.c struct s3c24xx_dma_channel *cdata = &pdata->channels[s3cchan->id]; pdata 981 drivers/dma/s3c24xx-dma.c const struct s3c24xx_dma_platdata *pdata = s3cdma->pdata; pdata 982 drivers/dma/s3c24xx-dma.c struct s3c24xx_dma_channel *cdata = &pdata->channels[s3cchan->id]; pdata 1187 drivers/dma/s3c24xx-dma.c const struct s3c24xx_dma_platdata *pdata = dev_get_platdata(&pdev->dev); pdata 1194 drivers/dma/s3c24xx-dma.c if (!pdata) { pdata 1200 drivers/dma/s3c24xx-dma.c if (pdata->num_phy_channels > MAX_DMA_CHANNELS) { pdata 1202 drivers/dma/s3c24xx-dma.c pdata->num_phy_channels, MAX_DMA_CHANNELS); pdata 1215 drivers/dma/s3c24xx-dma.c s3cdma->pdata = pdata; pdata 1224 drivers/dma/s3c24xx-dma.c pdata->num_phy_channels, pdata 1231 drivers/dma/s3c24xx-dma.c for (i = 0; i < pdata->num_phy_channels; i++) { pdata 1302 drivers/dma/s3c24xx-dma.c s3cdma->slave.filter.map = pdata->slave_map; pdata 1303 drivers/dma/s3c24xx-dma.c s3cdma->slave.filter.mapcnt = pdata->slavecnt; pdata 1308 drivers/dma/s3c24xx-dma.c pdata->num_phy_channels, false); pdata 1318 drivers/dma/s3c24xx-dma.c pdata->num_channels, true); pdata 1344 drivers/dma/s3c24xx-dma.c pdata->num_phy_channels); pdata 1356 drivers/dma/s3c24xx-dma.c for (i = 0; i < pdata->num_phy_channels; i++) { pdata 1370 drivers/dma/s3c24xx-dma.c for (i = 0; i < s3cdma->pdata->num_phy_channels; i++) { pdata 1379 drivers/dma/s3c24xx-dma.c const struct s3c24xx_dma_platdata *pdata = dev_get_platdata(&pdev->dev); pdata 1393 drivers/dma/s3c24xx-dma.c for (i = 0; i < pdata->num_phy_channels; i++) { pdata 36 drivers/dma/sh/shdma.h const struct sh_dmae_pdata *pdata; pdata 71 drivers/dma/sh/shdmac.c const struct sh_dmae_channel *chan_pdata = shdev->pdata->channel + pdata 73 drivers/dma/sh/shdmac.c u32 val = shdev->pdata->chclr_bitwise ? 1 << chan_pdata->chclr_bit : 0; pdata 92 drivers/dma/sh/shdmac.c if (shdev->pdata->dmaor_is_32bit) pdata 102 drivers/dma/sh/shdmac.c if (shdev->pdata->dmaor_is_32bit) pdata 149 drivers/dma/sh/shdmac.c if (shdev->pdata->chclr_present) { pdata 151 drivers/dma/sh/shdmac.c for (i = 0; i < shdev->pdata->channel_num; i++) { pdata 158 drivers/dma/sh/shdmac.c dmaor_write(shdev, dmaor | shdev->pdata->dmaor_init); pdata 168 drivers/dma/sh/shdmac.c if (shdev->pdata->dmaor_init & ~dmaor) pdata 171 drivers/dma/sh/shdmac.c dmaor, shdev->pdata->dmaor_init); pdata 188 drivers/dma/sh/shdmac.c const struct sh_dmae_pdata *pdata = shdev->pdata; pdata 189 drivers/dma/sh/shdmac.c int cnt = ((chcr & pdata->ts_low_mask) >> pdata->ts_low_shift) | pdata 190 drivers/dma/sh/shdmac.c ((chcr & pdata->ts_high_mask) >> pdata->ts_high_shift); pdata 192 drivers/dma/sh/shdmac.c if (cnt >= pdata->ts_shift_num) pdata 195 drivers/dma/sh/shdmac.c return pdata->ts_shift[cnt]; pdata 201 drivers/dma/sh/shdmac.c const struct sh_dmae_pdata *pdata = shdev->pdata; pdata 204 drivers/dma/sh/shdmac.c for (i = 0; i < pdata->ts_shift_num; i++) pdata 205 drivers/dma/sh/shdmac.c if (pdata->ts_shift[i] == l2size) pdata 208 drivers/dma/sh/shdmac.c if (i == pdata->ts_shift_num) pdata 211 drivers/dma/sh/shdmac.c return ((i << pdata->ts_low_shift) & pdata->ts_low_mask) | pdata 212 drivers/dma/sh/shdmac.c ((i << pdata->ts_high_shift) & pdata->ts_high_mask); pdata 227 drivers/dma/sh/shdmac.c if (shdev->pdata->needs_tend_set) pdata 260 drivers/dma/sh/shdmac.c const struct sh_dmae_pdata *pdata = shdev->pdata; pdata 261 drivers/dma/sh/shdmac.c const struct sh_dmae_channel *chan_pdata = &pdata->channel[sh_chan->shdma_chan.id]; pdata 268 drivers/dma/sh/shdmac.c if (pdata->no_dmars) pdata 329 drivers/dma/sh/shdmac.c const struct sh_dmae_pdata *pdata = shdev->pdata; pdata 337 drivers/dma/sh/shdmac.c for (i = 0, cfg = pdata->slave; i < pdata->slave_num; i++, cfg++) pdata 341 drivers/dma/sh/shdmac.c for (i = 0, cfg = pdata->slave; i < pdata->slave_num; i++, cfg++) pdata 520 drivers/dma/sh/shdmac.c const struct sh_dmae_channel *chan_pdata = &shdev->pdata->channel[id]; pdata 611 drivers/dma/sh/shdmac.c for (i = 0; i < shdev->pdata->channel_num; i++) { pdata 674 drivers/dma/sh/shdmac.c const struct sh_dmae_pdata *pdata; pdata 684 drivers/dma/sh/shdmac.c pdata = of_device_get_match_data(&pdev->dev); pdata 686 drivers/dma/sh/shdmac.c pdata = dev_get_platdata(&pdev->dev); pdata 689 drivers/dma/sh/shdmac.c if (!pdata || !pdata->channel_num) pdata 736 drivers/dma/sh/shdmac.c if (!pdata->slave_only) pdata 738 drivers/dma/sh/shdmac.c if (pdata->slave && pdata->slave_num) pdata 747 drivers/dma/sh/shdmac.c pdata->channel_num); pdata 752 drivers/dma/sh/shdmac.c shdev->pdata = pdata; pdata 754 drivers/dma/sh/shdmac.c if (pdata->chcr_offset) pdata 755 drivers/dma/sh/shdmac.c shdev->chcr_offset = pdata->chcr_offset; pdata 759 drivers/dma/sh/shdmac.c if (pdata->chcr_ie_bit) pdata 760 drivers/dma/sh/shdmac.c shdev->chcr_ie_bit = pdata->chcr_ie_bit; pdata 809 drivers/dma/sh/shdmac.c for (; irq_cnt < pdata->channel_num; irq_cnt++) { pdata 842 drivers/dma/sh/shdmac.c } while (irq_cnt < pdata->channel_num && chanirq_res); pdata 855 drivers/dma/sh/shdmac.c pdata->channel_num, SH_DMAE_MAX_CHANNELS); pdata 3459 drivers/dma/ste_dma40.c struct stedma40_platform_data *pdata; pdata 3463 drivers/dma/ste_dma40.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 3464 drivers/dma/ste_dma40.c if (!pdata) pdata 3470 drivers/dma/ste_dma40.c pdata->num_of_phy_chans = num_phy; pdata 3481 drivers/dma/ste_dma40.c pdata->num_of_memcpy_chans = num_memcpy; pdata 3498 drivers/dma/ste_dma40.c pdata->disabled_channels, pdata 3500 drivers/dma/ste_dma40.c pdata->disabled_channels[num_disabled] = -1; pdata 3502 drivers/dma/ste_dma40.c pdev->dev.platform_data = pdata; pdata 1984 drivers/dma/ti/edma.c static int edma_setup_from_hw(struct device *dev, struct edma_soc_info *pdata, pdata 2020 drivers/dma/ti/edma.c if (pdata->queue_priority_mapping) pdata 2045 drivers/dma/ti/edma.c pdata->queue_priority_mapping = queue_priority_map; pdata 2047 drivers/dma/ti/edma.c pdata->default_queue = i - 1; pdata 2053 drivers/dma/ti/edma.c static int edma_xbar_event_map(struct device *dev, struct edma_soc_info *pdata, pdata 2095 drivers/dma/ti/edma.c pdata->xbar_chans = (const s16 (*)[2]) xbar_chans; pdata 614 drivers/dma/timb_dma.c struct timb_dma_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 621 drivers/dma/timb_dma.c if (!pdata) { pdata 638 drivers/dma/timb_dma.c td = kzalloc(struct_size(td, channels, pdata->nr_channels), pdata 683 drivers/dma/timb_dma.c for (i = 0; i < pdata->nr_channels; i++) { pdata 686 drivers/dma/timb_dma.c pdata->channels + i; pdata 1085 drivers/dma/txx9dmac.c struct txx9dmac_platform_data *pdata = dev_get_platdata(&dmac_dev->dev); pdata 1101 drivers/dma/txx9dmac.c if (pdata && pdata->memcpy_chan == ch) { pdata 1171 drivers/dma/txx9dmac.c struct txx9dmac_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1192 drivers/dma/txx9dmac.c ddev->have_64bit_regs = pdata->have_64bit_regs; pdata 1212 drivers/dma/txx9dmac.c if (pdata && pdata->memcpy_chan >= 0) pdata 1213 drivers/dma/txx9dmac.c mcr |= TXX9_DMA_MCR_FIFUM(pdata->memcpy_chan); pdata 1250 drivers/dma/txx9dmac.c struct txx9dmac_platform_data *pdata = dev_get_platdata(dev); pdata 1254 drivers/dma/txx9dmac.c if (pdata && pdata->memcpy_chan >= 0) pdata 1255 drivers/dma/txx9dmac.c mcr |= TXX9_DMA_MCR_FIFUM(pdata->memcpy_chan); pdata 284 drivers/edac/cpc925_edac.c static void get_total_mem(struct cpc925_mc_pdata *pdata) pdata 300 drivers/edac/cpc925_edac.c pdata->total_mem = 0; pdata 307 drivers/edac/cpc925_edac.c pdata->total_mem += size; pdata 311 drivers/edac/cpc925_edac.c edac_dbg(0, "total_mem 0x%lx\n", pdata->total_mem); pdata 316 drivers/edac/cpc925_edac.c struct cpc925_mc_pdata *pdata = mci->pvt_info; pdata 324 drivers/edac/cpc925_edac.c get_total_mem(pdata); pdata 327 drivers/edac/cpc925_edac.c mbmr = __raw_readl(pdata->vbase + REG_MBMR_OFFSET + pdata 329 drivers/edac/cpc925_edac.c mbbar = __raw_readl(pdata->vbase + REG_MBBAR_OFFSET + pdata 382 drivers/edac/cpc925_edac.c struct cpc925_mc_pdata *pdata = mci->pvt_info; pdata 387 drivers/edac/cpc925_edac.c apimask = __raw_readl(pdata->vbase + REG_APIMASK_OFFSET); pdata 390 drivers/edac/cpc925_edac.c __raw_writel(apimask, pdata->vbase + REG_APIMASK_OFFSET); pdata 394 drivers/edac/cpc925_edac.c mccr = __raw_readl(pdata->vbase + REG_MCCR_OFFSET); pdata 397 drivers/edac/cpc925_edac.c __raw_writel(mccr, pdata->vbase + REG_MCCR_OFFSET); pdata 520 drivers/edac/cpc925_edac.c struct cpc925_mc_pdata *pdata = mci->pvt_info; pdata 529 drivers/edac/cpc925_edac.c apiexcp = __raw_readl(pdata->vbase + REG_APIEXCP_OFFSET); pdata 533 drivers/edac/cpc925_edac.c mesr = __raw_readl(pdata->vbase + REG_MESR_OFFSET); pdata 536 drivers/edac/cpc925_edac.c mear = __raw_readl(pdata->vbase + REG_MEAR_OFFSET); pdata 560 drivers/edac/cpc925_edac.c __raw_readl(pdata->vbase + REG_APIMASK_OFFSET)); pdata 564 drivers/edac/cpc925_edac.c __raw_readl(pdata->vbase + REG_MSCR_OFFSET)); pdata 566 drivers/edac/cpc925_edac.c __raw_readl(pdata->vbase + REG_MSRSR_OFFSET)); pdata 568 drivers/edac/cpc925_edac.c __raw_readl(pdata->vbase + REG_MSRER_OFFSET)); pdata 570 drivers/edac/cpc925_edac.c __raw_readl(pdata->vbase + REG_MSPR_OFFSET)); pdata 572 drivers/edac/cpc925_edac.c __raw_readl(pdata->vbase + REG_MCCR_OFFSET)); pdata 574 drivers/edac/cpc925_edac.c __raw_readl(pdata->vbase + REG_MCRER_OFFSET)); pdata 865 drivers/edac/cpc925_edac.c struct cpc925_mc_pdata *pdata = mci->pvt_info; pdata 870 drivers/edac/cpc925_edac.c mscr = __raw_readl(pdata->vbase + REG_MSCR_OFFSET); pdata 912 drivers/edac/cpc925_edac.c struct cpc925_mc_pdata *pdata; pdata 962 drivers/edac/cpc925_edac.c pdata = mci->pvt_info; pdata 963 drivers/edac/cpc925_edac.c pdata->vbase = vbase; pdata 964 drivers/edac/cpc925_edac.c pdata->edac_idx = edac_mc_idx++; pdata 965 drivers/edac/cpc925_edac.c pdata->name = pdev->name; pdata 306 drivers/edac/edac_pci.c struct edac_pci_gen_data *pdata; pdata 308 drivers/edac/edac_pci.c pci = edac_pci_alloc_ctl_info(sizeof(*pdata), EDAC_PCI_GENCTL_NAME); pdata 312 drivers/edac/edac_pci.c pdata = pci->pvt_info; pdata 322 drivers/edac/edac_pci.c pdata->edac_idx = edac_pci_idx++; pdata 324 drivers/edac/edac_pci.c if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { pdata 64 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 66 drivers/edac/fsl_ddr_edac.c ddr_in32(pdata->mc_vbase + FSL_MC_DATA_ERR_INJECT_HI)); pdata 74 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 76 drivers/edac/fsl_ddr_edac.c ddr_in32(pdata->mc_vbase + FSL_MC_DATA_ERR_INJECT_LO)); pdata 84 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 86 drivers/edac/fsl_ddr_edac.c ddr_in32(pdata->mc_vbase + FSL_MC_ECC_ERR_INJECT)); pdata 94 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 103 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_DATA_ERR_INJECT_HI, val); pdata 114 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 123 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_DATA_ERR_INJECT_LO, val); pdata 134 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 143 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ECC_ERR_INJECT, val); pdata 279 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 292 drivers/edac/fsl_ddr_edac.c err_detect = ddr_in32(pdata->mc_vbase + FSL_MC_ERR_DETECT); pdata 301 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_DETECT, err_detect); pdata 305 drivers/edac/fsl_ddr_edac.c syndrome = ddr_in32(pdata->mc_vbase + FSL_MC_CAPTURE_ECC); pdata 308 drivers/edac/fsl_ddr_edac.c bus_width = (ddr_in32(pdata->mc_vbase + FSL_MC_DDR_SDRAM_CFG) & pdata 316 drivers/edac/fsl_ddr_edac.c ddr_in32(pdata->mc_vbase + FSL_MC_CAPTURE_EXT_ADDRESS), pdata 317 drivers/edac/fsl_ddr_edac.c ddr_in32(pdata->mc_vbase + FSL_MC_CAPTURE_ADDRESS)); pdata 326 drivers/edac/fsl_ddr_edac.c cap_high = ddr_in32(pdata->mc_vbase + FSL_MC_CAPTURE_DATA_HI); pdata 327 drivers/edac/fsl_ddr_edac.c cap_low = ddr_in32(pdata->mc_vbase + FSL_MC_CAPTURE_DATA_LO); pdata 373 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_DETECT, err_detect); pdata 379 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 382 drivers/edac/fsl_ddr_edac.c err_detect = ddr_in32(pdata->mc_vbase + FSL_MC_ERR_DETECT); pdata 393 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 402 drivers/edac/fsl_ddr_edac.c sdram_ctl = ddr_in32(pdata->mc_vbase + FSL_MC_DDR_SDRAM_CFG); pdata 450 drivers/edac/fsl_ddr_edac.c cs_bnds = ddr_in32(pdata->mc_vbase + FSL_MC_CS_BNDS_0 + pdata 480 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata; pdata 495 drivers/edac/fsl_ddr_edac.c sizeof(*pdata)); pdata 501 drivers/edac/fsl_ddr_edac.c pdata = mci->pvt_info; pdata 502 drivers/edac/fsl_ddr_edac.c pdata->name = "fsl_mc_err"; pdata 504 drivers/edac/fsl_ddr_edac.c pdata->edac_idx = edac_mc_idx++; pdata 506 drivers/edac/fsl_ddr_edac.c mci->ctl_name = pdata->name; pdata 507 drivers/edac/fsl_ddr_edac.c mci->dev_name = pdata->name; pdata 523 drivers/edac/fsl_ddr_edac.c pdata->name)) { pdata 530 drivers/edac/fsl_ddr_edac.c pdata->mc_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r)); pdata 531 drivers/edac/fsl_ddr_edac.c if (!pdata->mc_vbase) { pdata 537 drivers/edac/fsl_ddr_edac.c sdram_ctl = ddr_in32(pdata->mc_vbase + FSL_MC_DDR_SDRAM_CFG); pdata 564 drivers/edac/fsl_ddr_edac.c orig_ddr_err_disable = ddr_in32(pdata->mc_vbase + FSL_MC_ERR_DISABLE); pdata 565 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_DISABLE, 0); pdata 568 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_DETECT, ~0); pdata 577 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_INT_EN, pdata 581 drivers/edac/fsl_ddr_edac.c orig_ddr_err_sbe = ddr_in32(pdata->mc_vbase + pdata 585 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_SBE, 0x10000); pdata 588 drivers/edac/fsl_ddr_edac.c pdata->irq = platform_get_irq(op, 0); pdata 589 drivers/edac/fsl_ddr_edac.c res = devm_request_irq(&op->dev, pdata->irq, pdata 595 drivers/edac/fsl_ddr_edac.c __func__, pdata->irq); pdata 601 drivers/edac/fsl_ddr_edac.c pdata->irq); pdata 621 drivers/edac/fsl_ddr_edac.c struct fsl_mc_pdata *pdata = mci->pvt_info; pdata 626 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_INT_EN, 0); pdata 629 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_DISABLE, pdata 631 drivers/edac/fsl_ddr_edac.c ddr_out32(pdata->mc_vbase + FSL_MC_ERR_SBE, orig_ddr_err_sbe); pdata 88 drivers/edac/highbank_mc_edac.c struct hb_mc_drvdata *pdata = mci->pvt_info; pdata 91 drivers/edac/highbank_mc_edac.c reg = readl(pdata->mc_err_base + HB_DDR_ECC_OPT); pdata 94 drivers/edac/highbank_mc_edac.c writel(reg, pdata->mc_err_base + HB_DDR_ECC_OPT); pdata 51 drivers/edac/mpc85xx_edac.c struct mpc85xx_pci_pdata *pdata = pci->pvt_info; pdata 54 drivers/edac/mpc85xx_edac.c err_detect = in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR); pdata 58 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, err_detect); pdata 66 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ATTRIB)); pdata 68 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR)); pdata 70 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EXT_ADDR)); pdata 72 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DL)); pdata 74 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DH)); pdata 77 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, err_detect); pdata 88 drivers/edac/mpc85xx_edac.c struct mpc85xx_pci_pdata *pdata = pci->pvt_info; pdata 91 drivers/edac/mpc85xx_edac.c err_detect = in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR); pdata 92 drivers/edac/mpc85xx_edac.c err_cap_stat = in_be32(pdata->pci_vbase + MPC85XX_PCI_GAS_TIMR); pdata 98 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCIE_ERR_CAP_R0)); pdata 100 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCIE_ERR_CAP_R1)); pdata 102 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCIE_ERR_CAP_R2)); pdata 104 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCIE_ERR_CAP_R3)); pdata 107 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, err_detect); pdata 110 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_GAS_TIMR, err_cap_stat | 0x1); pdata 128 drivers/edac/mpc85xx_edac.c struct mpc85xx_pci_pdata *pdata = pci->pvt_info; pdata 131 drivers/edac/mpc85xx_edac.c err_detect = in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR); pdata 136 drivers/edac/mpc85xx_edac.c if (pdata->is_pcie) pdata 147 drivers/edac/mpc85xx_edac.c struct mpc85xx_pci_pdata *pdata; pdata 156 drivers/edac/mpc85xx_edac.c pci = edac_pci_alloc_ctl_info(sizeof(*pdata), "mpc85xx_pci_err"); pdata 170 drivers/edac/mpc85xx_edac.c pdata = pci->pvt_info; pdata 171 drivers/edac/mpc85xx_edac.c pdata->name = "mpc85xx_pci_err"; pdata 182 drivers/edac/mpc85xx_edac.c pdata->is_pcie = true; pdata 187 drivers/edac/mpc85xx_edac.c pci->ctl_name = pdata->name; pdata 191 drivers/edac/mpc85xx_edac.c if (pdata->is_pcie) pdata 197 drivers/edac/mpc85xx_edac.c pdata->edac_idx = edac_pci_idx++; pdata 209 drivers/edac/mpc85xx_edac.c pdata->name)) { pdata 215 drivers/edac/mpc85xx_edac.c pdata->pci_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r)); pdata 216 drivers/edac/mpc85xx_edac.c if (!pdata->pci_vbase) { pdata 222 drivers/edac/mpc85xx_edac.c if (pdata->is_pcie) { pdata 224 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR); pdata 225 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR, ~0); pdata 227 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN); pdata 228 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN, 0); pdata 231 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_CAP_DR); pdata 234 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_CAP_DR, 0x40); pdata 237 drivers/edac/mpc85xx_edac.c in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN); pdata 240 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN, ~0x40); pdata 244 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, ~0); pdata 247 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_GAS_TIMR, 0x1); pdata 249 drivers/edac/mpc85xx_edac.c if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { pdata 255 drivers/edac/mpc85xx_edac.c pdata->irq = irq_of_parse_and_map(of_node, 0); pdata 256 drivers/edac/mpc85xx_edac.c res = devm_request_irq(&op->dev, pdata->irq, pdata 262 drivers/edac/mpc85xx_edac.c __func__, pdata->irq); pdata 263 drivers/edac/mpc85xx_edac.c irq_dispose_mapping(pdata->irq); pdata 269 drivers/edac/mpc85xx_edac.c pdata->irq); pdata 272 drivers/edac/mpc85xx_edac.c if (pdata->is_pcie) { pdata 282 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN, ~0 pdata 284 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR, 0 pdata 305 drivers/edac/mpc85xx_edac.c struct mpc85xx_pci_pdata *pdata = pci->pvt_info; pdata 309 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR, orig_pci_err_cap_dr); pdata 310 drivers/edac/mpc85xx_edac.c out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN, orig_pci_err_en); pdata 343 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 345 drivers/edac/mpc85xx_edac.c in_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJHI)); pdata 351 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 353 drivers/edac/mpc85xx_edac.c in_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJLO)); pdata 359 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 361 drivers/edac/mpc85xx_edac.c in_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJCTL)); pdata 368 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 370 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJHI, pdata 381 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 383 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJLO, pdata 394 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 396 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJCTL, pdata 442 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 445 drivers/edac/mpc85xx_edac.c err_detect = in_be32(pdata->l2_vbase + MPC85XX_L2_ERRDET); pdata 453 drivers/edac/mpc85xx_edac.c in_be32(pdata->l2_vbase + MPC85XX_L2_CAPTDATAHI)); pdata 455 drivers/edac/mpc85xx_edac.c in_be32(pdata->l2_vbase + MPC85XX_L2_CAPTDATALO)); pdata 457 drivers/edac/mpc85xx_edac.c in_be32(pdata->l2_vbase + MPC85XX_L2_CAPTECC)); pdata 459 drivers/edac/mpc85xx_edac.c in_be32(pdata->l2_vbase + MPC85XX_L2_ERRATTR)); pdata 461 drivers/edac/mpc85xx_edac.c in_be32(pdata->l2_vbase + MPC85XX_L2_ERRADDR)); pdata 464 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRDET, err_detect); pdata 476 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 479 drivers/edac/mpc85xx_edac.c err_detect = in_be32(pdata->l2_vbase + MPC85XX_L2_ERRDET); pdata 492 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata; pdata 499 drivers/edac/mpc85xx_edac.c edac_dev = edac_device_alloc_ctl_info(sizeof(*pdata), pdata 507 drivers/edac/mpc85xx_edac.c pdata = edac_dev->pvt_info; pdata 508 drivers/edac/mpc85xx_edac.c pdata->name = "mpc85xx_l2_err"; pdata 511 drivers/edac/mpc85xx_edac.c edac_dev->ctl_name = pdata->name; pdata 512 drivers/edac/mpc85xx_edac.c edac_dev->dev_name = pdata->name; pdata 524 drivers/edac/mpc85xx_edac.c pdata->name)) { pdata 530 drivers/edac/mpc85xx_edac.c pdata->l2_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r)); pdata 531 drivers/edac/mpc85xx_edac.c if (!pdata->l2_vbase) { pdata 537 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRDET, ~0); pdata 539 drivers/edac/mpc85xx_edac.c orig_l2_err_disable = in_be32(pdata->l2_vbase + MPC85XX_L2_ERRDIS); pdata 542 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRDIS, 0); pdata 551 drivers/edac/mpc85xx_edac.c pdata->edac_idx = edac_dev_idx++; pdata 559 drivers/edac/mpc85xx_edac.c pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0); pdata 560 drivers/edac/mpc85xx_edac.c res = devm_request_irq(&op->dev, pdata->irq, pdata 565 drivers/edac/mpc85xx_edac.c __func__, pdata->irq); pdata 566 drivers/edac/mpc85xx_edac.c irq_dispose_mapping(pdata->irq); pdata 571 drivers/edac/mpc85xx_edac.c pr_info(EDAC_MOD_STR " acquired irq %d for L2 Err\n", pdata->irq); pdata 575 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINTEN, L2_EIE_MASK); pdata 596 drivers/edac/mpc85xx_edac.c struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; pdata 601 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINTEN, 0); pdata 602 drivers/edac/mpc85xx_edac.c irq_dispose_mapping(pdata->irq); pdata 605 drivers/edac/mpc85xx_edac.c out_be32(pdata->l2_vbase + MPC85XX_L2_ERRDIS, orig_l2_err_disable); pdata 32 drivers/edac/mv64x60_edac.c struct mv64x60_pci_pdata *pdata = pci->pvt_info; pdata 35 drivers/edac/mv64x60_edac.c cause = readl(pdata->pci_vbase + MV64X60_PCI_ERROR_CAUSE); pdata 39 drivers/edac/mv64x60_edac.c printk(KERN_ERR "Error in PCI %d Interface\n", pdata->pci_hose); pdata 42 drivers/edac/mv64x60_edac.c readl(pdata->pci_vbase + MV64X60_PCI_ERROR_ADDR_LO)); pdata 44 drivers/edac/mv64x60_edac.c readl(pdata->pci_vbase + MV64X60_PCI_ERROR_ADDR_HI)); pdata 46 drivers/edac/mv64x60_edac.c readl(pdata->pci_vbase + MV64X60_PCI_ERROR_ATTR)); pdata 48 drivers/edac/mv64x60_edac.c readl(pdata->pci_vbase + MV64X60_PCI_ERROR_CMD)); pdata 49 drivers/edac/mv64x60_edac.c writel(~cause, pdata->pci_vbase + MV64X60_PCI_ERROR_CAUSE); pdata 61 drivers/edac/mv64x60_edac.c struct mv64x60_pci_pdata *pdata = pci->pvt_info; pdata 64 drivers/edac/mv64x60_edac.c val = readl(pdata->pci_vbase + MV64X60_PCI_ERROR_CAUSE); pdata 105 drivers/edac/mv64x60_edac.c struct mv64x60_pci_pdata *pdata; pdata 112 drivers/edac/mv64x60_edac.c pci = edac_pci_alloc_ctl_info(sizeof(*pdata), "mv64x60_pci_err"); pdata 116 drivers/edac/mv64x60_edac.c pdata = pci->pvt_info; pdata 118 drivers/edac/mv64x60_edac.c pdata->pci_hose = pdev->id; pdata 119 drivers/edac/mv64x60_edac.c pdata->name = "mv64x60_pci_err"; pdata 124 drivers/edac/mv64x60_edac.c pci->ctl_name = pdata->name; pdata 129 drivers/edac/mv64x60_edac.c pdata->edac_idx = edac_pci_idx++; pdata 142 drivers/edac/mv64x60_edac.c pdata->name)) { pdata 149 drivers/edac/mv64x60_edac.c pdata->pci_vbase = devm_ioremap(&pdev->dev, pdata 152 drivers/edac/mv64x60_edac.c if (!pdata->pci_vbase) { pdata 164 drivers/edac/mv64x60_edac.c writel(0, pdata->pci_vbase + MV64X60_PCI_ERROR_CAUSE); pdata 165 drivers/edac/mv64x60_edac.c writel(0, pdata->pci_vbase + MV64X60_PCI_ERROR_MASK); pdata 167 drivers/edac/mv64x60_edac.c pdata->pci_vbase + MV64X60_PCI_ERROR_MASK); pdata 169 drivers/edac/mv64x60_edac.c if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { pdata 175 drivers/edac/mv64x60_edac.c pdata->irq = platform_get_irq(pdev, 0); pdata 177 drivers/edac/mv64x60_edac.c pdata->irq, pdata 184 drivers/edac/mv64x60_edac.c "MV64x60 PCI ERR\n", __func__, pdata->irq); pdata 189 drivers/edac/mv64x60_edac.c pdata->irq); pdata 233 drivers/edac/mv64x60_edac.c struct mv64x60_sram_pdata *pdata = edac_dev->pvt_info; pdata 236 drivers/edac/mv64x60_edac.c cause = readl(pdata->sram_vbase + MV64X60_SRAM_ERR_CAUSE); pdata 243 drivers/edac/mv64x60_edac.c readl(pdata->sram_vbase + MV64X60_SRAM_ERR_ADDR_LO)); pdata 245 drivers/edac/mv64x60_edac.c readl(pdata->sram_vbase + MV64X60_SRAM_ERR_ADDR_HI)); pdata 247 drivers/edac/mv64x60_edac.c readl(pdata->sram_vbase + MV64X60_SRAM_ERR_DATA_LO)); pdata 249 drivers/edac/mv64x60_edac.c readl(pdata->sram_vbase + MV64X60_SRAM_ERR_DATA_HI)); pdata 251 drivers/edac/mv64x60_edac.c readl(pdata->sram_vbase + MV64X60_SRAM_ERR_PARITY)); pdata 252 drivers/edac/mv64x60_edac.c writel(0, pdata->sram_vbase + MV64X60_SRAM_ERR_CAUSE); pdata 260 drivers/edac/mv64x60_edac.c struct mv64x60_sram_pdata *pdata = edac_dev->pvt_info; pdata 263 drivers/edac/mv64x60_edac.c cause = readl(pdata->sram_vbase + MV64X60_SRAM_ERR_CAUSE); pdata 275 drivers/edac/mv64x60_edac.c struct mv64x60_sram_pdata *pdata; pdata 282 drivers/edac/mv64x60_edac.c edac_dev = edac_device_alloc_ctl_info(sizeof(*pdata), pdata 290 drivers/edac/mv64x60_edac.c pdata = edac_dev->pvt_info; pdata 291 drivers/edac/mv64x60_edac.c pdata->name = "mv64x60_sram_err"; pdata 307 drivers/edac/mv64x60_edac.c pdata->name)) { pdata 314 drivers/edac/mv64x60_edac.c pdata->sram_vbase = devm_ioremap(&pdev->dev, pdata 317 drivers/edac/mv64x60_edac.c if (!pdata->sram_vbase) { pdata 325 drivers/edac/mv64x60_edac.c writel(0, pdata->sram_vbase + MV64X60_SRAM_ERR_CAUSE); pdata 328 drivers/edac/mv64x60_edac.c edac_dev->ctl_name = pdata->name; pdata 333 drivers/edac/mv64x60_edac.c pdata->edac_idx = edac_dev_idx++; pdata 341 drivers/edac/mv64x60_edac.c pdata->irq = platform_get_irq(pdev, 0); pdata 343 drivers/edac/mv64x60_edac.c pdata->irq, pdata 351 drivers/edac/mv64x60_edac.c "MV64x60 SRAM ERR\n", __func__, pdata->irq); pdata 357 drivers/edac/mv64x60_edac.c pdata->irq); pdata 398 drivers/edac/mv64x60_edac.c struct mv64x60_cpu_pdata *pdata = edac_dev->pvt_info; pdata 401 drivers/edac/mv64x60_edac.c cause = readl(pdata->cpu_vbase[1] + MV64x60_CPU_ERR_CAUSE) & pdata 409 drivers/edac/mv64x60_edac.c readl(pdata->cpu_vbase[0] + MV64x60_CPU_ERR_ADDR_LO)); pdata 411 drivers/edac/mv64x60_edac.c readl(pdata->cpu_vbase[0] + MV64x60_CPU_ERR_ADDR_HI)); pdata 413 drivers/edac/mv64x60_edac.c readl(pdata->cpu_vbase[1] + MV64x60_CPU_ERR_DATA_LO)); pdata 415 drivers/edac/mv64x60_edac.c readl(pdata->cpu_vbase[1] + MV64x60_CPU_ERR_DATA_HI)); pdata 417 drivers/edac/mv64x60_edac.c readl(pdata->cpu_vbase[1] + MV64x60_CPU_ERR_PARITY)); pdata 418 drivers/edac/mv64x60_edac.c writel(0, pdata->cpu_vbase[1] + MV64x60_CPU_ERR_CAUSE); pdata 426 drivers/edac/mv64x60_edac.c struct mv64x60_cpu_pdata *pdata = edac_dev->pvt_info; pdata 429 drivers/edac/mv64x60_edac.c cause = readl(pdata->cpu_vbase[1] + MV64x60_CPU_ERR_CAUSE) & pdata 443 drivers/edac/mv64x60_edac.c struct mv64x60_cpu_pdata *pdata; pdata 449 drivers/edac/mv64x60_edac.c edac_dev = edac_device_alloc_ctl_info(sizeof(*pdata), pdata 457 drivers/edac/mv64x60_edac.c pdata = edac_dev->pvt_info; pdata 458 drivers/edac/mv64x60_edac.c pdata->name = "mv64x60_cpu_err"; pdata 474 drivers/edac/mv64x60_edac.c pdata->name)) { pdata 481 drivers/edac/mv64x60_edac.c pdata->cpu_vbase[0] = devm_ioremap(&pdev->dev, pdata 484 drivers/edac/mv64x60_edac.c if (!pdata->cpu_vbase[0]) { pdata 501 drivers/edac/mv64x60_edac.c pdata->name)) { pdata 508 drivers/edac/mv64x60_edac.c pdata->cpu_vbase[1] = devm_ioremap(&pdev->dev, pdata 511 drivers/edac/mv64x60_edac.c if (!pdata->cpu_vbase[1]) { pdata 518 drivers/edac/mv64x60_edac.c writel(0, pdata->cpu_vbase[1] + MV64x60_CPU_ERR_CAUSE); pdata 519 drivers/edac/mv64x60_edac.c writel(0, pdata->cpu_vbase[1] + MV64x60_CPU_ERR_MASK); pdata 520 drivers/edac/mv64x60_edac.c writel(0x000000ff, pdata->cpu_vbase[1] + MV64x60_CPU_ERR_MASK); pdata 523 drivers/edac/mv64x60_edac.c edac_dev->ctl_name = pdata->name; pdata 527 drivers/edac/mv64x60_edac.c pdata->edac_idx = edac_dev_idx++; pdata 535 drivers/edac/mv64x60_edac.c pdata->irq = platform_get_irq(pdev, 0); pdata 537 drivers/edac/mv64x60_edac.c pdata->irq, pdata 545 drivers/edac/mv64x60_edac.c "CPU ERR\n", __func__, pdata->irq); pdata 551 drivers/edac/mv64x60_edac.c " acquired irq %d for CPU Err\n", pdata->irq); pdata 592 drivers/edac/mv64x60_edac.c struct mv64x60_mc_pdata *pdata = mci->pvt_info; pdata 599 drivers/edac/mv64x60_edac.c reg = readl(pdata->mc_vbase + MV64X60_SDRAM_ERR_ADDR); pdata 604 drivers/edac/mv64x60_edac.c sdram_ecc = readl(pdata->mc_vbase + MV64X60_SDRAM_ERR_ECC_RCVD); pdata 605 drivers/edac/mv64x60_edac.c comp_ecc = readl(pdata->mc_vbase + MV64X60_SDRAM_ERR_ECC_CALC); pdata 623 drivers/edac/mv64x60_edac.c writel(0, pdata->mc_vbase + MV64X60_SDRAM_ERR_ADDR); pdata 629 drivers/edac/mv64x60_edac.c struct mv64x60_mc_pdata *pdata = mci->pvt_info; pdata 632 drivers/edac/mv64x60_edac.c reg = readl(pdata->mc_vbase + MV64X60_SDRAM_ERR_ADDR); pdata 642 drivers/edac/mv64x60_edac.c static void get_total_mem(struct mv64x60_mc_pdata *pdata) pdata 653 drivers/edac/mv64x60_edac.c pdata->total_mem = reg[1]; pdata 657 drivers/edac/mv64x60_edac.c struct mv64x60_mc_pdata *pdata) pdata 665 drivers/edac/mv64x60_edac.c get_total_mem(pdata); pdata 667 drivers/edac/mv64x60_edac.c ctl = readl(pdata->mc_vbase + MV64X60_SDRAM_CONFIG); pdata 672 drivers/edac/mv64x60_edac.c dimm->nr_pages = pdata->total_mem >> PAGE_SHIFT; pdata 700 drivers/edac/mv64x60_edac.c struct mv64x60_mc_pdata *pdata; pdata 722 drivers/edac/mv64x60_edac.c pdata = mci->pvt_info; pdata 725 drivers/edac/mv64x60_edac.c pdata->name = "mv64x60_mc_err"; pdata 727 drivers/edac/mv64x60_edac.c pdata->edac_idx = edac_mc_idx++; pdata 740 drivers/edac/mv64x60_edac.c pdata->name)) { pdata 747 drivers/edac/mv64x60_edac.c pdata->mc_vbase = devm_ioremap(&pdev->dev, pdata 750 drivers/edac/mv64x60_edac.c if (!pdata->mc_vbase) { pdata 756 drivers/edac/mv64x60_edac.c ctl = readl(pdata->mc_vbase + MV64X60_SDRAM_CONFIG); pdata 778 drivers/edac/mv64x60_edac.c mv64x60_init_csrows(mci, pdata); pdata 781 drivers/edac/mv64x60_edac.c writel(0, pdata->mc_vbase + MV64X60_SDRAM_ERR_ADDR); pdata 782 drivers/edac/mv64x60_edac.c ctl = readl(pdata->mc_vbase + MV64X60_SDRAM_ERR_ECC_CNTL); pdata 784 drivers/edac/mv64x60_edac.c writel(ctl, pdata->mc_vbase + MV64X60_SDRAM_ERR_ECC_CNTL); pdata 794 drivers/edac/mv64x60_edac.c pdata->irq = platform_get_irq(pdev, 0); pdata 796 drivers/edac/mv64x60_edac.c pdata->irq, pdata 803 drivers/edac/mv64x60_edac.c "MV64x60 DRAM ERR\n", __func__, pdata->irq); pdata 809 drivers/edac/mv64x60_edac.c pdata->irq); pdata 378 drivers/edac/ppc4xx_edac.c const struct ppc4xx_edac_pdata *pdata = mci->pvt_info; pdata 389 drivers/edac/ppc4xx_edac.c switch (mfsdram(&pdata->dcr_host, SDRAM_MCOPT1) & pdata 666 drivers/edac/ppc4xx_edac.c const struct ppc4xx_edac_pdata *pdata = mci->pvt_info; pdata 667 drivers/edac/ppc4xx_edac.c const dcr_host_t *dcr_host = &pdata->dcr_host; pdata 691 drivers/edac/ppc4xx_edac.c const struct ppc4xx_edac_pdata *pdata = mci->pvt_info; pdata 692 drivers/edac/ppc4xx_edac.c const dcr_host_t *dcr_host = &pdata->dcr_host; pdata 891 drivers/edac/ppc4xx_edac.c const struct ppc4xx_edac_pdata *pdata = mci->pvt_info; pdata 926 drivers/edac/ppc4xx_edac.c mbxcf = mfsdram(&pdata->dcr_host, SDRAM_MBXCF(row)); pdata 1012 drivers/edac/ppc4xx_edac.c struct ppc4xx_edac_pdata *pdata = NULL; pdata 1024 drivers/edac/ppc4xx_edac.c pdata = mci->pvt_info; pdata 1026 drivers/edac/ppc4xx_edac.c pdata->dcr_host = *dcr_host; pdata 1100 drivers/edac/ppc4xx_edac.c struct ppc4xx_edac_pdata *pdata = mci->pvt_info; pdata 1144 drivers/edac/ppc4xx_edac.c pdata->irqs.ded = ded_irq; pdata 1145 drivers/edac/ppc4xx_edac.c pdata->irqs.sec = sec_irq; pdata 1349 drivers/edac/ppc4xx_edac.c struct ppc4xx_edac_pdata *pdata = mci->pvt_info; pdata 1352 drivers/edac/ppc4xx_edac.c free_irq(pdata->irqs.sec, mci); pdata 1353 drivers/edac/ppc4xx_edac.c free_irq(pdata->irqs.ded, mci); pdata 1356 drivers/edac/ppc4xx_edac.c dcr_unmap(pdata->dcr_host, SDRAM_DCR_RESOURCE_LEN); pdata 233 drivers/edac/thunderx_edac.c struct thunderx_##_type *pdata = file->private_data; \ pdata 236 drivers/edac/thunderx_edac.c snprintf(buf, count, "0x%016llx", pdata->_field); \ pdata 245 drivers/edac/thunderx_edac.c struct thunderx_##_type *pdata = file->private_data; \ pdata 248 drivers/edac/thunderx_edac.c res = kstrtoull_from_user(data, count, 0, &pdata->_field); \ pdata 262 drivers/edac/thunderx_edac.c struct thunderx_##_type *pdata = file->private_data; \ pdata 265 drivers/edac/thunderx_edac.c sprintf(buf, "0x%016llx", readq(pdata->regs + _reg)); \ pdata 274 drivers/edac/thunderx_edac.c struct thunderx_##_type *pdata = file->private_data; \ pdata 281 drivers/edac/thunderx_edac.c writeq(val, pdata->regs + _reg); \ pdata 98 drivers/extcon/extcon-adc-jack.c struct adc_jack_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 105 drivers/extcon/extcon-adc-jack.c if (!pdata->cable_names) { pdata 111 drivers/extcon/extcon-adc-jack.c data->edev = devm_extcon_dev_allocate(&pdev->dev, pdata->cable_names); pdata 117 drivers/extcon/extcon-adc-jack.c if (!pdata->adc_conditions) { pdata 121 drivers/extcon/extcon-adc-jack.c data->adc_conditions = pdata->adc_conditions; pdata 127 drivers/extcon/extcon-adc-jack.c data->chan = iio_channel_get(&pdev->dev, pdata->consumer_channel); pdata 131 drivers/extcon/extcon-adc-jack.c data->handling_delay = msecs_to_jiffies(pdata->handling_delay_ms); pdata 132 drivers/extcon/extcon-adc-jack.c data->wakeup_source = pdata->wakeup_source; pdata 147 drivers/extcon/extcon-adc-jack.c pdata->irq_flags, pdata->name, data); pdata 277 drivers/extcon/extcon-arizona.c if (!arizona->pdata.micd_force_micbias) { pdata 318 drivers/extcon/extcon-arizona.c if (info->detecting && arizona->pdata.micd_software_compare) pdata 528 drivers/extcon/extcon-arizona.c int id_gpio = arizona->pdata.hpdet_id_gpio; pdata 534 drivers/extcon/extcon-arizona.c if (arizona->pdata.hpdet_acc_id) { pdata 598 drivers/extcon/extcon-arizona.c int id_gpio = arizona->pdata.hpdet_id_gpio; pdata 710 drivers/extcon/extcon-arizona.c arizona->pdata.hpdet_channel); pdata 761 drivers/extcon/extcon-arizona.c arizona->pdata.hpdet_channel); pdata 767 drivers/extcon/extcon-arizona.c if (arizona->pdata.hpdet_acc_id_line) { pdata 840 drivers/extcon/extcon-arizona.c if (info->detecting && arizona->pdata.micd_software_compare) { pdata 1000 drivers/extcon/extcon-arizona.c if (arizona->pdata.micd_software_compare) pdata 1019 drivers/extcon/extcon-arizona.c int debounce = arizona->pdata.micd_detect_debounce; pdata 1104 drivers/extcon/extcon-arizona.c if (arizona->pdata.jd_invert) pdata 1148 drivers/extcon/extcon-arizona.c if (!arizona->pdata.hpdet_acc_id) { pdata 1160 drivers/extcon/extcon-arizona.c if (info->micd_clamp || !arizona->pdata.jd_invert) pdata 1205 drivers/extcon/extcon-arizona.c if (arizona->pdata.micd_timeout) pdata 1206 drivers/extcon/extcon-arizona.c info->micd_timeout = arizona->pdata.micd_timeout; pdata 1282 drivers/extcon/extcon-arizona.c arizona->pdata.micd_configs = micd_configs; pdata 1283 drivers/extcon/extcon-arizona.c arizona->pdata.num_micd_configs = nconfs; pdata 1293 drivers/extcon/extcon-arizona.c struct arizona_pdata *pdata = &arizona->pdata; pdata 1301 drivers/extcon/extcon-arizona.c pdata->hpdet_channel = val; pdata 1306 drivers/extcon/extcon-arizona.c pdata->hpdet_channel = ARIZONA_ACCDET_MODE_HPL; pdata 1310 drivers/extcon/extcon-arizona.c &pdata->micd_detect_debounce); pdata 1313 drivers/extcon/extcon-arizona.c &pdata->micd_bias_start_time); pdata 1316 drivers/extcon/extcon-arizona.c &pdata->micd_rate); pdata 1319 drivers/extcon/extcon-arizona.c &pdata->micd_dbtime); pdata 1322 drivers/extcon/extcon-arizona.c &pdata->micd_timeout); pdata 1324 drivers/extcon/extcon-arizona.c pdata->micd_force_micbias = device_property_read_bool(arizona->dev, pdata 1327 drivers/extcon/extcon-arizona.c pdata->micd_software_compare = device_property_read_bool(arizona->dev, pdata 1330 drivers/extcon/extcon-arizona.c pdata->jd_invert = device_property_read_bool(arizona->dev, pdata 1333 drivers/extcon/extcon-arizona.c device_property_read_u32(arizona->dev, "wlf,gpsw", &pdata->gpsw); pdata 1335 drivers/extcon/extcon-arizona.c pdata->jd_gpio5 = device_property_read_bool(arizona->dev, pdata 1337 drivers/extcon/extcon-arizona.c pdata->jd_gpio5_nopull = device_property_read_bool(arizona->dev, pdata 1350 drivers/extcon/extcon-arizona.c struct arizona_pdata *pdata = &arizona->pdata; pdata 1438 drivers/extcon/extcon-arizona.c if (pdata->num_micd_configs) { pdata 1439 drivers/extcon/extcon-arizona.c info->micd_modes = pdata->micd_configs; pdata 1440 drivers/extcon/extcon-arizona.c info->micd_num_modes = pdata->num_micd_configs; pdata 1446 drivers/extcon/extcon-arizona.c if (arizona->pdata.gpsw > 0) pdata 1448 drivers/extcon/extcon-arizona.c ARIZONA_SW1_MODE_MASK, arizona->pdata.gpsw); pdata 1450 drivers/extcon/extcon-arizona.c if (pdata->micd_pol_gpio > 0) { pdata 1456 drivers/extcon/extcon-arizona.c ret = devm_gpio_request_one(&pdev->dev, pdata->micd_pol_gpio, pdata 1460 drivers/extcon/extcon-arizona.c pdata->micd_pol_gpio, ret); pdata 1464 drivers/extcon/extcon-arizona.c info->micd_pol_gpio = gpio_to_desc(pdata->micd_pol_gpio); pdata 1488 drivers/extcon/extcon-arizona.c if (arizona->pdata.hpdet_id_gpio > 0) { pdata 1490 drivers/extcon/extcon-arizona.c arizona->pdata.hpdet_id_gpio, pdata 1495 drivers/extcon/extcon-arizona.c arizona->pdata.hpdet_id_gpio, ret); pdata 1500 drivers/extcon/extcon-arizona.c if (arizona->pdata.micd_bias_start_time) pdata 1503 drivers/extcon/extcon-arizona.c arizona->pdata.micd_bias_start_time pdata 1506 drivers/extcon/extcon-arizona.c if (arizona->pdata.micd_rate) pdata 1509 drivers/extcon/extcon-arizona.c arizona->pdata.micd_rate pdata 1512 drivers/extcon/extcon-arizona.c switch (arizona->pdata.micd_dbtime) { pdata 1529 drivers/extcon/extcon-arizona.c if (arizona->pdata.num_micd_ranges) { pdata 1530 drivers/extcon/extcon-arizona.c info->micd_ranges = pdata->micd_ranges; pdata 1531 drivers/extcon/extcon-arizona.c info->num_micd_ranges = pdata->num_micd_ranges; pdata 1537 drivers/extcon/extcon-arizona.c if (arizona->pdata.num_micd_ranges > ARIZONA_MAX_MICD_RANGE) { pdata 1539 drivers/extcon/extcon-arizona.c arizona->pdata.num_micd_ranges); pdata 1592 drivers/extcon/extcon-arizona.c if (arizona->pdata.jd_gpio5) { pdata 1595 drivers/extcon/extcon-arizona.c if (arizona->pdata.jd_gpio5_nopull) pdata 1601 drivers/extcon/extcon-arizona.c if (arizona->pdata.jd_invert) pdata 1606 drivers/extcon/extcon-arizona.c if (arizona->pdata.jd_invert) pdata 1070 drivers/extcon/extcon-max77693.c struct max77693_platform_data *pdata = dev_get_platdata(max77693->dev); pdata 1170 drivers/extcon/extcon-max77693.c if (pdata && pdata->muic_data) { pdata 1171 drivers/extcon/extcon-max77693.c init_data = pdata->muic_data->init_data; pdata 1172 drivers/extcon/extcon-max77693.c num_init_data = pdata->muic_data->num_init_data; pdata 1184 drivers/extcon/extcon-max77693.c if (pdata && pdata->muic_data) { pdata 1186 drivers/extcon/extcon-max77693.c = pdata->muic_data; pdata 630 drivers/extcon/extcon-max8997.c struct max8997_platform_data *pdata = dev_get_platdata(max8997->dev); pdata 687 drivers/extcon/extcon-max8997.c if (pdata && pdata->muic_pdata) { pdata 689 drivers/extcon/extcon-max8997.c = pdata->muic_pdata; pdata 177 drivers/extcon/extcon-palmas.c struct palmas_usb_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 191 drivers/extcon/extcon-palmas.c if (node && !pdata) { pdata 202 drivers/extcon/extcon-palmas.c if (pdata) pdata 203 drivers/extcon/extcon-palmas.c palmas_usb->wakeup = pdata->wakeup; pdata 32 drivers/firmware/google/framebuffer-coreboot.c struct simplefb_platform_data pdata = { pdata 49 drivers/firmware/google/framebuffer-coreboot.c pdata.format = formats[i].name; pdata 51 drivers/firmware/google/framebuffer-coreboot.c if (!pdata.format) pdata 65 drivers/firmware/google/framebuffer-coreboot.c &res, 1, &pdata, pdata 66 drivers/firmware/google/framebuffer-coreboot.c sizeof(pdata)); pdata 340 drivers/firmware/stratix10-svc.c struct stratix10_svc_data *pdata; pdata 346 drivers/firmware/stratix10-svc.c pdata = kmalloc(sizeof(*pdata), GFP_KERNEL); pdata 347 drivers/firmware/stratix10-svc.c if (!pdata) pdata 352 drivers/firmware/stratix10-svc.c kfree(pdata); pdata 365 drivers/firmware/stratix10-svc.c pdata, sizeof(*pdata), pdata 372 drivers/firmware/stratix10-svc.c (unsigned int)pdata->paddr, pdata->command, pdata 373 drivers/firmware/stratix10-svc.c (unsigned int)pdata->size); pdata 375 drivers/firmware/stratix10-svc.c switch (pdata->command) { pdata 377 drivers/firmware/stratix10-svc.c svc_thread_cmd_data_claim(ctrl, pdata, cbdata); pdata 381 drivers/firmware/stratix10-svc.c pr_debug("conf_type=%u\n", (unsigned int)pdata->flag); pdata 382 drivers/firmware/stratix10-svc.c a1 = pdata->flag; pdata 387 drivers/firmware/stratix10-svc.c a1 = (unsigned long)pdata->paddr; pdata 388 drivers/firmware/stratix10-svc.c a2 = (unsigned long)pdata->size; pdata 402 drivers/firmware/stratix10-svc.c a1 = pdata->arg[0]; pdata 407 drivers/firmware/stratix10-svc.c a1 = pdata->arg[0]; pdata 431 drivers/firmware/stratix10-svc.c if (pdata->command == COMMAND_RSU_STATUS) { pdata 440 drivers/firmware/stratix10-svc.c pdata->chan->scl->receive_cb(pdata->chan->scl, cbdata); pdata 446 drivers/firmware/stratix10-svc.c svc_thread_recv_status_ok(pdata, cbdata, res); pdata 449 drivers/firmware/stratix10-svc.c switch (pdata->command) { pdata 452 drivers/firmware/stratix10-svc.c pdata, cbdata); pdata 456 drivers/firmware/stratix10-svc.c pdata, cbdata); pdata 469 drivers/firmware/stratix10-svc.c switch (pdata->command) { pdata 493 drivers/firmware/stratix10-svc.c pdata->chan->scl->receive_cb(pdata->chan->scl, cbdata); pdata 502 drivers/firmware/stratix10-svc.c kfree(pdata); pdata 146 drivers/firmware/trusted_foundations.c struct trusted_foundations_platform_data pdata; pdata 154 drivers/firmware/trusted_foundations.c &pdata.version_major); pdata 158 drivers/firmware/trusted_foundations.c &pdata.version_minor); pdata 161 drivers/firmware/trusted_foundations.c register_trusted_foundations(&pdata); pdata 28 drivers/fpga/dfl-afu-dma-region.c void afu_dma_region_init(struct dfl_feature_platform_data *pdata) pdata 30 drivers/fpga/dfl-afu-dma-region.c struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); pdata 43 drivers/fpga/dfl-afu-dma-region.c static int afu_dma_pin_pages(struct dfl_feature_platform_data *pdata, pdata 47 drivers/fpga/dfl-afu-dma-region.c struct device *dev = &pdata->dev->dev; pdata 91 drivers/fpga/dfl-afu-dma-region.c static void afu_dma_unpin_pages(struct dfl_feature_platform_data *pdata, pdata 95 drivers/fpga/dfl-afu-dma-region.c struct device *dev = &pdata->dev->dev; pdata 152 drivers/fpga/dfl-afu-dma-region.c static int afu_dma_region_add(struct dfl_feature_platform_data *pdata, pdata 155 drivers/fpga/dfl-afu-dma-region.c struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); pdata 158 drivers/fpga/dfl-afu-dma-region.c dev_dbg(&pdata->dev->dev, "add region (iova = %llx)\n", pdata 194 drivers/fpga/dfl-afu-dma-region.c static void afu_dma_region_remove(struct dfl_feature_platform_data *pdata, pdata 199 drivers/fpga/dfl-afu-dma-region.c dev_dbg(&pdata->dev->dev, "del region (iova = %llx)\n", pdata 202 drivers/fpga/dfl-afu-dma-region.c afu = dfl_fpga_pdata_get_private(pdata); pdata 212 drivers/fpga/dfl-afu-dma-region.c void afu_dma_region_destroy(struct dfl_feature_platform_data *pdata) pdata 214 drivers/fpga/dfl-afu-dma-region.c struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); pdata 221 drivers/fpga/dfl-afu-dma-region.c dev_dbg(&pdata->dev->dev, "del region (iova = %llx)\n", pdata 227 drivers/fpga/dfl-afu-dma-region.c dma_unmap_page(dfl_fpga_pdata_to_parent(pdata), pdata 232 drivers/fpga/dfl-afu-dma-region.c afu_dma_unpin_pages(pdata, region); pdata 254 drivers/fpga/dfl-afu-dma-region.c afu_dma_region_find(struct dfl_feature_platform_data *pdata, u64 iova, u64 size) pdata 256 drivers/fpga/dfl-afu-dma-region.c struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); pdata 258 drivers/fpga/dfl-afu-dma-region.c struct device *dev = &pdata->dev->dev; pdata 294 drivers/fpga/dfl-afu-dma-region.c afu_dma_region_find_iova(struct dfl_feature_platform_data *pdata, u64 iova) pdata 296 drivers/fpga/dfl-afu-dma-region.c return afu_dma_region_find(pdata, iova, 0); pdata 310 drivers/fpga/dfl-afu-dma-region.c int afu_dma_map_region(struct dfl_feature_platform_data *pdata, pdata 339 drivers/fpga/dfl-afu-dma-region.c ret = afu_dma_pin_pages(pdata, region); pdata 341 drivers/fpga/dfl-afu-dma-region.c dev_err(&pdata->dev->dev, "failed to pin memory region\n"); pdata 347 drivers/fpga/dfl-afu-dma-region.c dev_err(&pdata->dev->dev, "pages are not continuous\n"); pdata 353 drivers/fpga/dfl-afu-dma-region.c region->iova = dma_map_page(dfl_fpga_pdata_to_parent(pdata), pdata 357 drivers/fpga/dfl-afu-dma-region.c if (dma_mapping_error(dfl_fpga_pdata_to_parent(pdata), region->iova)) { pdata 358 drivers/fpga/dfl-afu-dma-region.c dev_err(&pdata->dev->dev, "failed to map for dma\n"); pdata 365 drivers/fpga/dfl-afu-dma-region.c mutex_lock(&pdata->lock); pdata 366 drivers/fpga/dfl-afu-dma-region.c ret = afu_dma_region_add(pdata, region); pdata 367 drivers/fpga/dfl-afu-dma-region.c mutex_unlock(&pdata->lock); pdata 369 drivers/fpga/dfl-afu-dma-region.c dev_err(&pdata->dev->dev, "failed to add dma region\n"); pdata 376 drivers/fpga/dfl-afu-dma-region.c dma_unmap_page(dfl_fpga_pdata_to_parent(pdata), pdata 379 drivers/fpga/dfl-afu-dma-region.c afu_dma_unpin_pages(pdata, region); pdata 393 drivers/fpga/dfl-afu-dma-region.c int afu_dma_unmap_region(struct dfl_feature_platform_data *pdata, u64 iova) pdata 397 drivers/fpga/dfl-afu-dma-region.c mutex_lock(&pdata->lock); pdata 398 drivers/fpga/dfl-afu-dma-region.c region = afu_dma_region_find_iova(pdata, iova); pdata 400 drivers/fpga/dfl-afu-dma-region.c mutex_unlock(&pdata->lock); pdata 405 drivers/fpga/dfl-afu-dma-region.c mutex_unlock(&pdata->lock); pdata 409 drivers/fpga/dfl-afu-dma-region.c afu_dma_region_remove(pdata, region); pdata 410 drivers/fpga/dfl-afu-dma-region.c mutex_unlock(&pdata->lock); pdata 412 drivers/fpga/dfl-afu-dma-region.c dma_unmap_page(dfl_fpga_pdata_to_parent(pdata), pdata 414 drivers/fpga/dfl-afu-dma-region.c afu_dma_unpin_pages(pdata, region); pdata 41 drivers/fpga/dfl-afu-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 43 drivers/fpga/dfl-afu-error.c mutex_lock(&pdata->lock); pdata 45 drivers/fpga/dfl-afu-error.c mutex_unlock(&pdata->lock); pdata 51 drivers/fpga/dfl-afu-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 60 drivers/fpga/dfl-afu-error.c mutex_lock(&pdata->lock); pdata 108 drivers/fpga/dfl-afu-error.c mutex_unlock(&pdata->lock); pdata 115 drivers/fpga/dfl-afu-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 121 drivers/fpga/dfl-afu-error.c mutex_lock(&pdata->lock); pdata 123 drivers/fpga/dfl-afu-error.c mutex_unlock(&pdata->lock); pdata 146 drivers/fpga/dfl-afu-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 152 drivers/fpga/dfl-afu-error.c mutex_lock(&pdata->lock); pdata 154 drivers/fpga/dfl-afu-error.c mutex_unlock(&pdata->lock); pdata 164 drivers/fpga/dfl-afu-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 170 drivers/fpga/dfl-afu-error.c mutex_lock(&pdata->lock); pdata 173 drivers/fpga/dfl-afu-error.c mutex_unlock(&pdata->lock); pdata 37 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 41 drivers/fpga/dfl-afu-main.c WARN_ON(!pdata->disable_count); pdata 43 drivers/fpga/dfl-afu-main.c if (--pdata->disable_count != 0) pdata 67 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 71 drivers/fpga/dfl-afu-main.c if (pdata->disable_count++ != 0) pdata 120 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 123 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 125 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 151 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 157 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 159 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 168 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 178 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 183 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 192 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 198 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 200 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 209 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 218 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 220 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 230 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 236 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 238 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 247 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 256 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 258 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 267 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 273 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 275 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 285 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 294 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 296 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 306 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 315 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 317 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 327 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 333 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 335 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 345 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 351 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 353 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 445 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 451 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 452 drivers/fpga/dfl-afu-main.c if (pdata->disable_count) { pdata 453 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 459 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 557 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata; pdata 560 drivers/fpga/dfl-afu-main.c pdata = dev_get_platdata(&fdev->dev); pdata 561 drivers/fpga/dfl-afu-main.c if (WARN_ON(!pdata)) pdata 564 drivers/fpga/dfl-afu-main.c ret = dfl_feature_dev_use_begin(pdata); pdata 577 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata; pdata 581 drivers/fpga/dfl-afu-main.c pdata = dev_get_platdata(&pdev->dev); pdata 583 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 585 drivers/fpga/dfl-afu-main.c afu_dma_region_destroy(pdata); pdata 586 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 588 drivers/fpga/dfl-afu-main.c dfl_feature_dev_use_end(pdata); pdata 593 drivers/fpga/dfl-afu-main.c static long afu_ioctl_check_extension(struct dfl_feature_platform_data *pdata, pdata 601 drivers/fpga/dfl-afu-main.c afu_ioctl_get_info(struct dfl_feature_platform_data *pdata, void __user *arg) pdata 615 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 616 drivers/fpga/dfl-afu-main.c afu = dfl_fpga_pdata_get_private(pdata); pdata 620 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 628 drivers/fpga/dfl-afu-main.c static long afu_ioctl_get_region_info(struct dfl_feature_platform_data *pdata, pdata 644 drivers/fpga/dfl-afu-main.c ret = afu_mmio_region_get_by_index(pdata, rinfo.index, ®ion); pdata 659 drivers/fpga/dfl-afu-main.c afu_ioctl_dma_map(struct dfl_feature_platform_data *pdata, void __user *arg) pdata 673 drivers/fpga/dfl-afu-main.c ret = afu_dma_map_region(pdata, map.user_addr, map.length, &map.iova); pdata 678 drivers/fpga/dfl-afu-main.c afu_dma_unmap_region(pdata, map.iova); pdata 682 drivers/fpga/dfl-afu-main.c dev_dbg(&pdata->dev->dev, "dma map: ua=%llx, len=%llx, iova=%llx\n", pdata 691 drivers/fpga/dfl-afu-main.c afu_ioctl_dma_unmap(struct dfl_feature_platform_data *pdata, void __user *arg) pdata 704 drivers/fpga/dfl-afu-main.c return afu_dma_unmap_region(pdata, unmap.iova); pdata 710 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata; pdata 716 drivers/fpga/dfl-afu-main.c pdata = dev_get_platdata(&pdev->dev); pdata 722 drivers/fpga/dfl-afu-main.c return afu_ioctl_check_extension(pdata, arg); pdata 724 drivers/fpga/dfl-afu-main.c return afu_ioctl_get_info(pdata, (void __user *)arg); pdata 726 drivers/fpga/dfl-afu-main.c return afu_ioctl_get_region_info(pdata, (void __user *)arg); pdata 728 drivers/fpga/dfl-afu-main.c return afu_ioctl_dma_map(pdata, (void __user *)arg); pdata 730 drivers/fpga/dfl-afu-main.c return afu_ioctl_dma_unmap(pdata, (void __user *)arg); pdata 738 drivers/fpga/dfl-afu-main.c dfl_fpga_dev_for_each_feature(pdata, f) pdata 752 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata; pdata 761 drivers/fpga/dfl-afu-main.c pdata = dev_get_platdata(&pdev->dev); pdata 764 drivers/fpga/dfl-afu-main.c ret = afu_mmio_region_get_by_offset(pdata, offset, size, ®ion); pdata 795 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 802 drivers/fpga/dfl-afu-main.c afu->pdata = pdata; pdata 804 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 805 drivers/fpga/dfl-afu-main.c dfl_fpga_pdata_set_private(pdata, afu); pdata 806 drivers/fpga/dfl-afu-main.c afu_mmio_region_init(pdata); pdata 807 drivers/fpga/dfl-afu-main.c afu_dma_region_init(pdata); pdata 808 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 815 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 818 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 819 drivers/fpga/dfl-afu-main.c afu = dfl_fpga_pdata_get_private(pdata); pdata 820 drivers/fpga/dfl-afu-main.c afu_mmio_region_destroy(pdata); pdata 821 drivers/fpga/dfl-afu-main.c afu_dma_region_destroy(pdata); pdata 822 drivers/fpga/dfl-afu-main.c dfl_fpga_pdata_set_private(pdata, NULL); pdata 823 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 830 drivers/fpga/dfl-afu-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 833 drivers/fpga/dfl-afu-main.c mutex_lock(&pdata->lock); pdata 838 drivers/fpga/dfl-afu-main.c mutex_unlock(&pdata->lock); pdata 17 drivers/fpga/dfl-afu-region.c void afu_mmio_region_init(struct dfl_feature_platform_data *pdata) pdata 19 drivers/fpga/dfl-afu-region.c struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); pdata 49 drivers/fpga/dfl-afu-region.c int afu_mmio_region_add(struct dfl_feature_platform_data *pdata, pdata 56 drivers/fpga/dfl-afu-region.c region = devm_kzalloc(&pdata->dev->dev, sizeof(*region), GFP_KERNEL); pdata 65 drivers/fpga/dfl-afu-region.c mutex_lock(&pdata->lock); pdata 67 drivers/fpga/dfl-afu-region.c afu = dfl_fpga_pdata_get_private(pdata); pdata 71 drivers/fpga/dfl-afu-region.c mutex_unlock(&pdata->lock); pdata 82 drivers/fpga/dfl-afu-region.c mutex_unlock(&pdata->lock); pdata 87 drivers/fpga/dfl-afu-region.c devm_kfree(&pdata->dev->dev, region); pdata 95 drivers/fpga/dfl-afu-region.c void afu_mmio_region_destroy(struct dfl_feature_platform_data *pdata) pdata 97 drivers/fpga/dfl-afu-region.c struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); pdata 101 drivers/fpga/dfl-afu-region.c devm_kfree(&pdata->dev->dev, region); pdata 112 drivers/fpga/dfl-afu-region.c int afu_mmio_region_get_by_index(struct dfl_feature_platform_data *pdata, pdata 120 drivers/fpga/dfl-afu-region.c mutex_lock(&pdata->lock); pdata 121 drivers/fpga/dfl-afu-region.c afu = dfl_fpga_pdata_get_private(pdata); pdata 129 drivers/fpga/dfl-afu-region.c mutex_unlock(&pdata->lock); pdata 146 drivers/fpga/dfl-afu-region.c int afu_mmio_region_get_by_offset(struct dfl_feature_platform_data *pdata, pdata 154 drivers/fpga/dfl-afu-region.c mutex_lock(&pdata->lock); pdata 155 drivers/fpga/dfl-afu-region.c afu = dfl_fpga_pdata_get_private(pdata); pdata 164 drivers/fpga/dfl-afu-region.c mutex_unlock(&pdata->lock); pdata 79 drivers/fpga/dfl-afu.h struct dfl_feature_platform_data *pdata; pdata 86 drivers/fpga/dfl-afu.h void afu_mmio_region_init(struct dfl_feature_platform_data *pdata); pdata 87 drivers/fpga/dfl-afu.h int afu_mmio_region_add(struct dfl_feature_platform_data *pdata, pdata 89 drivers/fpga/dfl-afu.h void afu_mmio_region_destroy(struct dfl_feature_platform_data *pdata); pdata 90 drivers/fpga/dfl-afu.h int afu_mmio_region_get_by_index(struct dfl_feature_platform_data *pdata, pdata 93 drivers/fpga/dfl-afu.h int afu_mmio_region_get_by_offset(struct dfl_feature_platform_data *pdata, pdata 96 drivers/fpga/dfl-afu.h void afu_dma_region_init(struct dfl_feature_platform_data *pdata); pdata 97 drivers/fpga/dfl-afu.h void afu_dma_region_destroy(struct dfl_feature_platform_data *pdata); pdata 98 drivers/fpga/dfl-afu.h int afu_dma_map_region(struct dfl_feature_platform_data *pdata, pdata 100 drivers/fpga/dfl-afu.h int afu_dma_unmap_region(struct dfl_feature_platform_data *pdata, u64 iova); pdata 102 drivers/fpga/dfl-afu.h afu_dma_region_find(struct dfl_feature_platform_data *pdata, pdata 23 drivers/fpga/dfl-fme-br.c struct dfl_fme_br_pdata *pdata; pdata 35 drivers/fpga/dfl-fme-br.c port_pdev = dfl_fpga_cdev_find_port(priv->pdata->cdev, pdata 36 drivers/fpga/dfl-fme-br.c &priv->pdata->port_id, pdata 69 drivers/fpga/dfl-fme-br.c priv->pdata = dev_get_platdata(dev); pdata 44 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 50 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 52 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 61 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 71 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 81 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 89 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 95 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 97 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 106 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 116 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 126 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 158 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 164 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 166 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 176 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 189 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 194 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 203 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 209 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 211 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 220 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 230 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 242 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 250 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 256 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 258 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 267 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 273 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 275 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 316 drivers/fpga/dfl-fme-error.c struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 321 drivers/fpga/dfl-fme-error.c mutex_lock(&pdata->lock); pdata 334 drivers/fpga/dfl-fme-error.c mutex_unlock(&pdata->lock); pdata 135 drivers/fpga/dfl-fme-main.c static long fme_hdr_ioctl_release_port(struct dfl_feature_platform_data *pdata, pdata 138 drivers/fpga/dfl-fme-main.c struct dfl_fpga_cdev *cdev = pdata->dfl_cdev; pdata 147 drivers/fpga/dfl-fme-main.c static long fme_hdr_ioctl_assign_port(struct dfl_feature_platform_data *pdata, pdata 150 drivers/fpga/dfl-fme-main.c struct dfl_fpga_cdev *cdev = pdata->dfl_cdev; pdata 163 drivers/fpga/dfl-fme-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 167 drivers/fpga/dfl-fme-main.c return fme_hdr_ioctl_release_port(pdata, arg); pdata 169 drivers/fpga/dfl-fme-main.c return fme_hdr_ioctl_assign_port(pdata, arg); pdata 202 drivers/fpga/dfl-fme-main.c static long fme_ioctl_check_extension(struct dfl_feature_platform_data *pdata, pdata 212 drivers/fpga/dfl-fme-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&fdev->dev); pdata 215 drivers/fpga/dfl-fme-main.c if (WARN_ON(!pdata)) pdata 218 drivers/fpga/dfl-fme-main.c ret = dfl_feature_dev_use_begin(pdata); pdata 223 drivers/fpga/dfl-fme-main.c filp->private_data = pdata; pdata 230 drivers/fpga/dfl-fme-main.c struct dfl_feature_platform_data *pdata = filp->private_data; pdata 231 drivers/fpga/dfl-fme-main.c struct platform_device *pdev = pdata->dev; pdata 234 drivers/fpga/dfl-fme-main.c dfl_feature_dev_use_end(pdata); pdata 241 drivers/fpga/dfl-fme-main.c struct dfl_feature_platform_data *pdata = filp->private_data; pdata 242 drivers/fpga/dfl-fme-main.c struct platform_device *pdev = pdata->dev; pdata 252 drivers/fpga/dfl-fme-main.c return fme_ioctl_check_extension(pdata, arg); pdata 260 drivers/fpga/dfl-fme-main.c dfl_fpga_dev_for_each_feature(pdata, f) { pdata 274 drivers/fpga/dfl-fme-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 281 drivers/fpga/dfl-fme-main.c fme->pdata = pdata; pdata 283 drivers/fpga/dfl-fme-main.c mutex_lock(&pdata->lock); pdata 284 drivers/fpga/dfl-fme-main.c dfl_fpga_pdata_set_private(pdata, fme); pdata 285 drivers/fpga/dfl-fme-main.c mutex_unlock(&pdata->lock); pdata 292 drivers/fpga/dfl-fme-main.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 295 drivers/fpga/dfl-fme-main.c mutex_lock(&pdata->lock); pdata 296 drivers/fpga/dfl-fme-main.c fme = dfl_fpga_pdata_get_private(pdata); pdata 297 drivers/fpga/dfl-fme-main.c dfl_fpga_pdata_set_private(pdata, NULL); pdata 298 drivers/fpga/dfl-fme-main.c mutex_unlock(&pdata->lock); pdata 284 drivers/fpga/dfl-fme-mgr.c struct dfl_fme_mgr_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 295 drivers/fpga/dfl-fme-mgr.c if (pdata->ioaddr) pdata 296 drivers/fpga/dfl-fme-mgr.c priv->ioaddr = pdata->ioaddr; pdata 68 drivers/fpga/dfl-fme-pr.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 130 drivers/fpga/dfl-fme-pr.c mutex_lock(&pdata->lock); pdata 131 drivers/fpga/dfl-fme-pr.c fme = dfl_fpga_pdata_get_private(pdata); pdata 163 drivers/fpga/dfl-fme-pr.c mutex_unlock(&pdata->lock); pdata 177 drivers/fpga/dfl-fme-pr.c dfl_fme_create_mgr(struct dfl_feature_platform_data *pdata, pdata 180 drivers/fpga/dfl-fme-pr.c struct platform_device *mgr, *fme = pdata->dev; pdata 218 drivers/fpga/dfl-fme-pr.c static void dfl_fme_destroy_mgr(struct dfl_feature_platform_data *pdata) pdata 220 drivers/fpga/dfl-fme-pr.c struct dfl_fme *priv = dfl_fpga_pdata_get_private(pdata); pdata 234 drivers/fpga/dfl-fme-pr.c dfl_fme_create_bridge(struct dfl_feature_platform_data *pdata, int port_id) pdata 236 drivers/fpga/dfl-fme-pr.c struct device *dev = &pdata->dev->dev; pdata 245 drivers/fpga/dfl-fme-pr.c br_pdata.cdev = pdata->dfl_cdev; pdata 283 drivers/fpga/dfl-fme-pr.c static void dfl_fme_destroy_bridges(struct dfl_feature_platform_data *pdata) pdata 285 drivers/fpga/dfl-fme-pr.c struct dfl_fme *priv = dfl_fpga_pdata_get_private(pdata); pdata 305 drivers/fpga/dfl-fme-pr.c dfl_fme_create_region(struct dfl_feature_platform_data *pdata, pdata 310 drivers/fpga/dfl-fme-pr.c struct device *dev = &pdata->dev->dev; pdata 362 drivers/fpga/dfl-fme-pr.c static void dfl_fme_destroy_regions(struct dfl_feature_platform_data *pdata) pdata 364 drivers/fpga/dfl-fme-pr.c struct dfl_fme *priv = dfl_fpga_pdata_get_private(pdata); pdata 376 drivers/fpga/dfl-fme-pr.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 388 drivers/fpga/dfl-fme-pr.c mutex_lock(&pdata->lock); pdata 389 drivers/fpga/dfl-fme-pr.c priv = dfl_fpga_pdata_get_private(pdata); pdata 396 drivers/fpga/dfl-fme-pr.c mgr = dfl_fme_create_mgr(pdata, feature); pdata 412 drivers/fpga/dfl-fme-pr.c fme_br = dfl_fme_create_bridge(pdata, i); pdata 421 drivers/fpga/dfl-fme-pr.c fme_region = dfl_fme_create_region(pdata, mgr, pdata 430 drivers/fpga/dfl-fme-pr.c mutex_unlock(&pdata->lock); pdata 435 drivers/fpga/dfl-fme-pr.c dfl_fme_destroy_regions(pdata); pdata 436 drivers/fpga/dfl-fme-pr.c dfl_fme_destroy_bridges(pdata); pdata 437 drivers/fpga/dfl-fme-pr.c dfl_fme_destroy_mgr(pdata); pdata 439 drivers/fpga/dfl-fme-pr.c mutex_unlock(&pdata->lock); pdata 446 drivers/fpga/dfl-fme-pr.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 448 drivers/fpga/dfl-fme-pr.c mutex_lock(&pdata->lock); pdata 450 drivers/fpga/dfl-fme-pr.c dfl_fme_destroy_regions(pdata); pdata 451 drivers/fpga/dfl-fme-pr.c dfl_fme_destroy_bridges(pdata); pdata 452 drivers/fpga/dfl-fme-pr.c dfl_fme_destroy_mgr(pdata); pdata 453 drivers/fpga/dfl-fme-pr.c mutex_unlock(&pdata->lock); pdata 24 drivers/fpga/dfl-fme-region.c struct dfl_fme_region_pdata *pdata = region->priv; pdata 25 drivers/fpga/dfl-fme-region.c struct device *dev = &pdata->br->dev; pdata 32 drivers/fpga/dfl-fme-region.c struct dfl_fme_region_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 38 drivers/fpga/dfl-fme-region.c mgr = fpga_mgr_get(&pdata->mgr->dev); pdata 48 drivers/fpga/dfl-fme-region.c region->priv = pdata; pdata 33 drivers/fpga/dfl-fme.h struct dfl_feature_platform_data *pdata; pdata 234 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 237 drivers/fpga/dfl.c if (pdata->id != FEATURE_DEV_ID_UNUSED) pdata 238 drivers/fpga/dfl.c return pdata->id == *(int *)pport_id; pdata 244 drivers/fpga/dfl.c pdata->id = port_ops->get_id(pdev); pdata 247 drivers/fpga/dfl.c return pdata->id == *(int *)pport_id; pdata 257 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 260 drivers/fpga/dfl.c dfl_fpga_dev_for_each_feature(pdata, feature) pdata 270 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata, pdata 315 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 321 drivers/fpga/dfl.c dfl_fpga_dev_for_each_feature(pdata, feature) { pdata 323 drivers/fpga/dfl.c ret = dfl_feature_instance_init(pdev, pdata, pdata 390 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 392 drivers/fpga/dfl.c cdev_init(&pdata->cdev, fops); pdata 393 drivers/fpga/dfl.c pdata->cdev.owner = owner; pdata 401 drivers/fpga/dfl.c pdata->cdev.kobj.parent = &pdev->dev.kobj; pdata 403 drivers/fpga/dfl.c return cdev_add(&pdata->cdev, pdev->dev.devt, 1); pdata 413 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 415 drivers/fpga/dfl.c cdev_del(&pdata->cdev); pdata 456 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata = dev_get_platdata(&port->dev); pdata 459 drivers/fpga/dfl.c list_add(&pdata->node, &cdev->port_dev_list); pdata 460 drivers/fpga/dfl.c get_device(&pdata->dev->dev); pdata 472 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata; pdata 490 drivers/fpga/dfl.c pdata = kzalloc(dfl_feature_platform_data_size(binfo->feature_num), pdata 492 drivers/fpga/dfl.c if (!pdata) pdata 495 drivers/fpga/dfl.c pdata->dev = fdev; pdata 496 drivers/fpga/dfl.c pdata->num = binfo->feature_num; pdata 497 drivers/fpga/dfl.c pdata->dfl_cdev = binfo->cdev; pdata 498 drivers/fpga/dfl.c pdata->id = FEATURE_DEV_ID_UNUSED; pdata 499 drivers/fpga/dfl.c mutex_init(&pdata->lock); pdata 500 drivers/fpga/dfl.c lockdep_set_class_and_name(&pdata->lock, &dfl_pdata_keys[type], pdata 509 drivers/fpga/dfl.c WARN_ON(pdata->disable_count); pdata 511 drivers/fpga/dfl.c fdev->dev.platform_data = pdata; pdata 522 drivers/fpga/dfl.c struct dfl_feature *feature = &pdata->features[index]; pdata 996 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata, *ptmp; pdata 1002 drivers/fpga/dfl.c list_for_each_entry_safe(pdata, ptmp, &cdev->port_dev_list, node) { pdata 1003 drivers/fpga/dfl.c struct platform_device *port_dev = pdata->dev; pdata 1012 drivers/fpga/dfl.c list_del(&pdata->node); pdata 1042 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata; pdata 1045 drivers/fpga/dfl.c list_for_each_entry(pdata, &cdev->port_dev_list, node) { pdata 1046 drivers/fpga/dfl.c port_dev = pdata->dev; pdata 1181 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata; pdata 1184 drivers/fpga/dfl.c list_for_each_entry(pdata, &cdev->port_dev_list, node) { pdata 1185 drivers/fpga/dfl.c if (device_is_registered(&pdata->dev->dev)) pdata 1188 drivers/fpga/dfl.c config_port_pf_mode(cdev->fme_dev, pdata->id); pdata 1207 drivers/fpga/dfl.c struct dfl_feature_platform_data *pdata; pdata 1221 drivers/fpga/dfl.c list_for_each_entry(pdata, &cdev->port_dev_list, node) { pdata 1222 drivers/fpga/dfl.c if (device_is_registered(&pdata->dev->dev)) pdata 1225 drivers/fpga/dfl.c config_port_vf_mode(cdev->fme_dev, pdata->id); pdata 242 drivers/fpga/dfl.h int dfl_feature_dev_use_begin(struct dfl_feature_platform_data *pdata) pdata 245 drivers/fpga/dfl.h if (test_and_set_bit_lock(DEV_STATUS_IN_USE, &pdata->dev_status)) pdata 252 drivers/fpga/dfl.h void dfl_feature_dev_use_end(struct dfl_feature_platform_data *pdata) pdata 254 drivers/fpga/dfl.h clear_bit_unlock(DEV_STATUS_IN_USE, &pdata->dev_status); pdata 258 drivers/fpga/dfl.h void dfl_fpga_pdata_set_private(struct dfl_feature_platform_data *pdata, pdata 261 drivers/fpga/dfl.h pdata->private = private; pdata 265 drivers/fpga/dfl.h void *dfl_fpga_pdata_get_private(struct dfl_feature_platform_data *pdata) pdata 267 drivers/fpga/dfl.h return pdata->private; pdata 299 drivers/fpga/dfl.h struct dfl_feature_platform_data *pdata; pdata 301 drivers/fpga/dfl.h pdata = container_of(inode->i_cdev, struct dfl_feature_platform_data, pdata 303 drivers/fpga/dfl.h return pdata->dev; pdata 306 drivers/fpga/dfl.h #define dfl_fpga_dev_for_each_feature(pdata, feature) \ pdata 307 drivers/fpga/dfl.h for ((feature) = (pdata)->features; \ pdata 308 drivers/fpga/dfl.h (feature) < (pdata)->features + (pdata)->num; (feature)++) pdata 313 drivers/fpga/dfl.h struct dfl_feature_platform_data *pdata = dev_get_platdata(dev); pdata 316 drivers/fpga/dfl.h dfl_fpga_dev_for_each_feature(pdata, feature) pdata 341 drivers/fpga/dfl.h struct device *dfl_fpga_pdata_to_parent(struct dfl_feature_platform_data *pdata) pdata 343 drivers/fpga/dfl.h return pdata->dev->dev.parent->parent; pdata 90 drivers/gpio/gpio-adp5520.c struct adp5520_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 96 drivers/gpio/gpio-adp5520.c if (pdata == NULL) { pdata 113 drivers/gpio/gpio-adp5520.c if (pdata->gpio_en_mask & (1 << i)) pdata 128 drivers/gpio/gpio-adp5520.c gc->base = pdata->gpio_start; pdata 134 drivers/gpio/gpio-adp5520.c pdata->gpio_en_mask); pdata 136 drivers/gpio/gpio-adp5520.c if (pdata->gpio_en_mask & ADP5520_GPIO_C3) pdata 139 drivers/gpio/gpio-adp5520.c if (pdata->gpio_en_mask & ADP5520_GPIO_R3) pdata 147 drivers/gpio/gpio-adp5520.c pdata->gpio_pullup_mask); pdata 279 drivers/gpio/gpio-adp5588.c struct adp5588_gpio_platform_data *pdata = pdata 281 drivers/gpio/gpio-adp5588.c int irq_base = pdata ? pdata->irq_base : 0; pdata 329 drivers/gpio/gpio-adp5588.c struct adp5588_gpio_platform_data *pdata = pdata 357 drivers/gpio/gpio-adp5588.c if (pdata) { pdata 358 drivers/gpio/gpio-adp5588.c gc->base = pdata->gpio_start; pdata 359 drivers/gpio/gpio-adp5588.c gc->names = pdata->names; pdata 360 drivers/gpio/gpio-adp5588.c pullup_dis_mask = pdata->pullup_dis_mask; pdata 400 drivers/gpio/gpio-adp5588.c if (pdata && pdata->setup) { pdata 401 drivers/gpio/gpio-adp5588.c ret = pdata->setup(client, gc->base, gc->ngpio, pdata->context); pdata 413 drivers/gpio/gpio-adp5588.c struct adp5588_gpio_platform_data *pdata = pdata 418 drivers/gpio/gpio-adp5588.c if (pdata && pdata->teardown) { pdata 419 drivers/gpio/gpio-adp5588.c ret = pdata->teardown(client, pdata 421 drivers/gpio/gpio-adp5588.c pdata->context); pdata 37 drivers/gpio/gpio-amd-fch.c struct amd_fch_gpio_pdata *pdata; pdata 44 drivers/gpio/gpio-amd-fch.c return priv->base + priv->pdata->gpio_reg[gpio]*sizeof(u32); pdata 142 drivers/gpio/gpio-amd-fch.c struct amd_fch_gpio_pdata *pdata; pdata 144 drivers/gpio/gpio-amd-fch.c pdata = dev_get_platdata(&pdev->dev); pdata 145 drivers/gpio/gpio-amd-fch.c if (!pdata) { pdata 154 drivers/gpio/gpio-amd-fch.c priv->pdata = pdata; pdata 159 drivers/gpio/gpio-amd-fch.c priv->gc.ngpio = priv->pdata->gpio_num; pdata 160 drivers/gpio/gpio-amd-fch.c priv->gc.names = priv->pdata->gpio_names; pdata 145 drivers/gpio/gpio-arizona.c struct arizona_pdata *pdata = &arizona->pdata; pdata 180 drivers/gpio/gpio-arizona.c if (pdata->gpio_base) pdata 181 drivers/gpio/gpio-arizona.c arizona_gpio->gpio_chip.base = pdata->gpio_base; pdata 224 drivers/gpio/gpio-ath79.c struct ath79_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 246 drivers/gpio/gpio-ath79.c } else if (pdata) { pdata 247 drivers/gpio/gpio-ath79.c ath79_gpio_count = pdata->ngpios; pdata 248 drivers/gpio/gpio-ath79.c oe_inverted = pdata->oe_inverted; pdata 198 drivers/gpio/gpio-da9052.c struct da9052_pdata *pdata; pdata 206 drivers/gpio/gpio-da9052.c pdata = dev_get_platdata(gpio->da9052->dev); pdata 209 drivers/gpio/gpio-da9052.c if (pdata && pdata->gpio_base) pdata 210 drivers/gpio/gpio-da9052.c gpio->gp.base = pdata->gpio_base; pdata 135 drivers/gpio/gpio-da9055.c struct da9055_pdata *pdata; pdata 143 drivers/gpio/gpio-da9055.c pdata = dev_get_platdata(gpio->da9055->dev); pdata 146 drivers/gpio/gpio-da9055.c if (pdata && pdata->gpio_base) pdata 147 drivers/gpio/gpio-da9055.c gpio->gp.base = pdata->gpio_base; pdata 160 drivers/gpio/gpio-davinci.c struct davinci_gpio_platform_data *pdata; pdata 167 drivers/gpio/gpio-davinci.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 168 drivers/gpio/gpio-davinci.c if (!pdata) pdata 175 drivers/gpio/gpio-davinci.c pdata->ngpio = val; pdata 181 drivers/gpio/gpio-davinci.c pdata->gpio_unbanked = val; pdata 183 drivers/gpio/gpio-davinci.c return pdata; pdata 195 drivers/gpio/gpio-davinci.c struct davinci_gpio_platform_data *pdata; pdata 198 drivers/gpio/gpio-davinci.c pdata = davinci_gpio_get_pdata(pdev); pdata 199 drivers/gpio/gpio-davinci.c if (!pdata) { pdata 204 drivers/gpio/gpio-davinci.c dev->platform_data = pdata; pdata 211 drivers/gpio/gpio-davinci.c ngpio = pdata->ngpio; pdata 225 drivers/gpio/gpio-davinci.c if (pdata->gpio_unbanked) pdata 226 drivers/gpio/gpio-davinci.c nirq = pdata->gpio_unbanked; pdata 256 drivers/gpio/gpio-davinci.c chips->chip.base = pdata->no_auto_base ? pdata->base : -1; pdata 498 drivers/gpio/gpio-davinci.c struct davinci_gpio_platform_data *pdata = dev->platform_data; pdata 515 drivers/gpio/gpio-davinci.c ngpio = pdata->ngpio; pdata 527 drivers/gpio/gpio-davinci.c if (!pdata->gpio_unbanked) { pdata 559 drivers/gpio/gpio-davinci.c if (pdata->gpio_unbanked) { pdata 562 drivers/gpio/gpio-davinci.c chips->gpio_unbanked = pdata->gpio_unbanked; pdata 563 drivers/gpio/gpio-davinci.c binten = GENMASK(pdata->gpio_unbanked / 16, 0); pdata 577 drivers/gpio/gpio-davinci.c for (gpio = 0; gpio < pdata->gpio_unbanked; gpio++) { pdata 562 drivers/gpio/gpio-dwapb.c struct dwapb_platform_data *pdata; pdata 571 drivers/gpio/gpio-dwapb.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 572 drivers/gpio/gpio-dwapb.c if (!pdata) pdata 575 drivers/gpio/gpio-dwapb.c pdata->properties = devm_kcalloc(dev, nports, sizeof(*pp), GFP_KERNEL); pdata 576 drivers/gpio/gpio-dwapb.c if (!pdata->properties) pdata 579 drivers/gpio/gpio-dwapb.c pdata->nports = nports; pdata 585 drivers/gpio/gpio-dwapb.c pp = &pdata->properties[i++]; pdata 635 drivers/gpio/gpio-dwapb.c return pdata; pdata 659 drivers/gpio/gpio-dwapb.c struct dwapb_platform_data *pdata = dev_get_platdata(dev); pdata 661 drivers/gpio/gpio-dwapb.c if (!pdata) { pdata 662 drivers/gpio/gpio-dwapb.c pdata = dwapb_gpio_get_pdata(dev); pdata 663 drivers/gpio/gpio-dwapb.c if (IS_ERR(pdata)) pdata 664 drivers/gpio/gpio-dwapb.c return PTR_ERR(pdata); pdata 667 drivers/gpio/gpio-dwapb.c if (!pdata->nports) pdata 675 drivers/gpio/gpio-dwapb.c gpio->nr_ports = pdata->nports; pdata 716 drivers/gpio/gpio-dwapb.c err = dwapb_gpio_add_port(gpio, &pdata->properties[i], i); pdata 569 drivers/gpio/gpio-eic-sprd.c const struct sprd_eic_variant_data *pdata; pdata 574 drivers/gpio/gpio-eic-sprd.c pdata = of_device_get_match_data(&pdev->dev); pdata 575 drivers/gpio/gpio-eic-sprd.c if (!pdata) { pdata 585 drivers/gpio/gpio-eic-sprd.c sprd_eic->type = pdata->type; pdata 604 drivers/gpio/gpio-eic-sprd.c sprd_eic->chip.ngpio = pdata->num_eics; pdata 262 drivers/gpio/gpio-htc-egpio.c struct htc_egpio_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 293 drivers/gpio/gpio-htc-egpio.c if ((pdata->bus_width != 16) && (pdata->bus_width != 32)) pdata 295 drivers/gpio/gpio-htc-egpio.c ei->bus_shift = fls(pdata->bus_width - 1) - 3; pdata 298 drivers/gpio/gpio-htc-egpio.c if ((pdata->reg_width != 8) && (pdata->reg_width != 16)) pdata 300 drivers/gpio/gpio-htc-egpio.c ei->reg_shift = fls(pdata->reg_width - 1); pdata 303 drivers/gpio/gpio-htc-egpio.c ei->reg_mask = (1 << pdata->reg_width) - 1; pdata 307 drivers/gpio/gpio-htc-egpio.c ei->nchips = pdata->num_chips; pdata 316 drivers/gpio/gpio-htc-egpio.c ei->chip[i].reg_start = pdata->chip[i].reg_start; pdata 317 drivers/gpio/gpio-htc-egpio.c ei->chip[i].cached_values = pdata->chip[i].initial_values; pdata 318 drivers/gpio/gpio-htc-egpio.c ei->chip[i].is_out = pdata->chip[i].direction; pdata 335 drivers/gpio/gpio-htc-egpio.c chip->base = pdata->chip[i].gpio_base; pdata 336 drivers/gpio/gpio-htc-egpio.c chip->ngpio = pdata->chip[i].num_gpios; pdata 344 drivers/gpio/gpio-htc-egpio.c ei->irq_start = pdata->irq_base; pdata 345 drivers/gpio/gpio-htc-egpio.c ei->nirqs = pdata->num_irqs; pdata 346 drivers/gpio/gpio-htc-egpio.c ei->ack_register = pdata->ack_register; pdata 351 drivers/gpio/gpio-htc-egpio.c if (pdata->invert_acks) pdata 142 drivers/gpio/gpio-janz-ttl.c struct janz_platform_data *pdata; pdata 147 drivers/gpio/gpio-janz-ttl.c pdata = dev_get_platdata(&pdev->dev); pdata 148 drivers/gpio/gpio-janz-ttl.c if (!pdata) { pdata 134 drivers/gpio/gpio-kempld.c struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pdata 158 drivers/gpio/gpio-kempld.c if (pdata && pdata->gpio_base) pdata 159 drivers/gpio/gpio-kempld.c chip->base = pdata->gpio_base; pdata 123 drivers/gpio/gpio-madera.c struct madera_pdata *pdata = &madera->pdata; pdata 164 drivers/gpio/gpio-madera.c if (pdata->gpio_base) pdata 165 drivers/gpio/gpio-madera.c madera_gpio->gpio_chip.base = pdata->gpio_base; pdata 163 drivers/gpio/gpio-max730x.c struct max7301_platform_data *pdata; pdata 166 drivers/gpio/gpio-max730x.c pdata = dev_get_platdata(dev); pdata 174 drivers/gpio/gpio-max730x.c if (pdata) { pdata 175 drivers/gpio/gpio-max730x.c ts->input_pullup_active = pdata->input_pullup_active; pdata 176 drivers/gpio/gpio-max730x.c ts->chip.base = pdata->base; pdata 499 drivers/gpio/gpio-max732x.c struct max732x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 504 drivers/gpio/gpio-max732x.c if (((pdata && pdata->irq_base) || client->irq) pdata 506 drivers/gpio/gpio-max732x.c if (pdata) pdata 507 drivers/gpio/gpio-max732x.c irq_base = pdata->irq_base; pdata 543 drivers/gpio/gpio-max732x.c struct max732x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 546 drivers/gpio/gpio-max732x.c if (((pdata && pdata->irq_base) || client->irq) && has_irq != INT_NONE) pdata 605 drivers/gpio/gpio-max732x.c struct max732x_platform_data *pdata; pdata 607 drivers/gpio/gpio-max732x.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 608 drivers/gpio/gpio-max732x.c if (!pdata) pdata 611 drivers/gpio/gpio-max732x.c pdata->gpio_base = -1; pdata 613 drivers/gpio/gpio-max732x.c return pdata; pdata 619 drivers/gpio/gpio-max732x.c struct max732x_platform_data *pdata; pdata 626 drivers/gpio/gpio-max732x.c pdata = dev_get_platdata(&client->dev); pdata 629 drivers/gpio/gpio-max732x.c if (!pdata && node) pdata 630 drivers/gpio/gpio-max732x.c pdata = of_gpio_max732x(&client->dev); pdata 632 drivers/gpio/gpio-max732x.c if (!pdata) { pdata 642 drivers/gpio/gpio-max732x.c nr_port = max732x_setup_gpio(chip, id, pdata->gpio_base); pdata 706 drivers/gpio/gpio-max732x.c if (pdata && pdata->setup) { pdata 707 drivers/gpio/gpio-max732x.c ret = pdata->setup(client, chip->gpio_chip.base, pdata 708 drivers/gpio/gpio-max732x.c chip->gpio_chip.ngpio, pdata->context); pdata 719 drivers/gpio/gpio-max732x.c struct max732x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 722 drivers/gpio/gpio-max732x.c if (pdata && pdata->teardown) { pdata 725 drivers/gpio/gpio-max732x.c ret = pdata->teardown(client, chip->gpio_chip.base, pdata 726 drivers/gpio/gpio-max732x.c chip->gpio_chip.ngpio, pdata->context); pdata 74 drivers/gpio/gpio-mc33880.c struct mc33880_platform_data *pdata; pdata 77 drivers/gpio/gpio-mc33880.c pdata = dev_get_platdata(&spi->dev); pdata 78 drivers/gpio/gpio-mc33880.c if (!pdata || !pdata->base) { pdata 104 drivers/gpio/gpio-mc33880.c mc->chip.base = pdata->base; pdata 679 drivers/gpio/gpio-mmio.c struct bgpio_pdata *pdata; pdata 684 drivers/gpio/gpio-mmio.c pdata = devm_kzalloc(&pdev->dev, sizeof(struct bgpio_pdata), pdata 686 drivers/gpio/gpio-mmio.c if (!pdata) pdata 689 drivers/gpio/gpio-mmio.c pdata->base = -1; pdata 697 drivers/gpio/gpio-mmio.c return pdata; pdata 720 drivers/gpio/gpio-mmio.c struct bgpio_pdata *pdata; pdata 722 drivers/gpio/gpio-mmio.c pdata = bgpio_parse_dt(pdev, &flags); pdata 723 drivers/gpio/gpio-mmio.c if (IS_ERR(pdata)) pdata 724 drivers/gpio/gpio-mmio.c return PTR_ERR(pdata); pdata 726 drivers/gpio/gpio-mmio.c if (!pdata) { pdata 727 drivers/gpio/gpio-mmio.c pdata = dev_get_platdata(dev); pdata 765 drivers/gpio/gpio-mmio.c if (pdata) { pdata 766 drivers/gpio/gpio-mmio.c if (pdata->label) pdata 767 drivers/gpio/gpio-mmio.c gc->label = pdata->label; pdata 768 drivers/gpio/gpio-mmio.c gc->base = pdata->base; pdata 769 drivers/gpio/gpio-mmio.c if (pdata->ngpio > 0) pdata 770 drivers/gpio/gpio-mmio.c gc->ngpio = pdata->ngpio; pdata 245 drivers/gpio/gpio-msic.c struct intel_msic_gpio_pdata *pdata = dev_get_platdata(dev); pdata 256 drivers/gpio/gpio-msic.c if (!pdata || !pdata->gpio_base) { pdata 269 drivers/gpio/gpio-msic.c mg->irq_base = pdata->gpio_base + MSIC_GPIO_IRQ_OFFSET; pdata 276 drivers/gpio/gpio-msic.c mg->chip.base = pdata->gpio_base; pdata 1348 drivers/gpio/gpio-omap.c const struct omap_gpio_platform_data *pdata; pdata 1355 drivers/gpio/gpio-omap.c pdata = match ? match->data : dev_get_platdata(dev); pdata 1356 drivers/gpio/gpio-omap.c if (!pdata) pdata 1392 drivers/gpio/gpio-omap.c bank->dbck_flag = pdata->dbck_flag; pdata 1393 drivers/gpio/gpio-omap.c bank->stride = pdata->bank_stride; pdata 1394 drivers/gpio/gpio-omap.c bank->width = pdata->bank_width; pdata 1395 drivers/gpio/gpio-omap.c bank->is_mpuio = pdata->is_mpuio; pdata 1396 drivers/gpio/gpio-omap.c bank->non_wakeup_gpios = pdata->non_wakeup_gpios; pdata 1397 drivers/gpio/gpio-omap.c bank->regs = pdata->regs; pdata 1406 drivers/gpio/gpio-omap.c bank->loses_context = pdata->loses_context; pdata 1410 drivers/gpio/gpio-omap.c pdata->get_context_loss_count; pdata 894 drivers/gpio/gpio-pca953x.c struct pca953x_platform_data *pdata; pdata 906 drivers/gpio/gpio-pca953x.c pdata = dev_get_platdata(&client->dev); pdata 907 drivers/gpio/gpio-pca953x.c if (pdata) { pdata 908 drivers/gpio/gpio-pca953x.c irq_base = pdata->irq_base; pdata 909 drivers/gpio/gpio-pca953x.c chip->gpio_start = pdata->gpio_base; pdata 910 drivers/gpio/gpio-pca953x.c invert = pdata->invert; pdata 911 drivers/gpio/gpio-pca953x.c chip->names = pdata->names; pdata 1014 drivers/gpio/gpio-pca953x.c if (pdata && pdata->setup) { pdata 1015 drivers/gpio/gpio-pca953x.c ret = pdata->setup(client, chip->gpio_chip.base, pdata 1016 drivers/gpio/gpio-pca953x.c chip->gpio_chip.ngpio, pdata->context); pdata 1030 drivers/gpio/gpio-pca953x.c struct pca953x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 1034 drivers/gpio/gpio-pca953x.c if (pdata && pdata->teardown) { pdata 1035 drivers/gpio/gpio-pca953x.c ret = pdata->teardown(client, chip->gpio_chip.base, pdata 1036 drivers/gpio/gpio-pca953x.c chip->gpio_chip.ngpio, pdata->context); pdata 236 drivers/gpio/gpio-pcf857x.c struct pcf857x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 244 drivers/gpio/gpio-pcf857x.c else if (pdata) pdata 245 drivers/gpio/gpio-pcf857x.c n_latch = pdata->n_latch; pdata 256 drivers/gpio/gpio-pcf857x.c gpio->chip.base = pdata ? pdata->gpio_base : -1; pdata 375 drivers/gpio/gpio-pcf857x.c if (pdata && pdata->setup) { pdata 376 drivers/gpio/gpio-pcf857x.c status = pdata->setup(client, pdata 378 drivers/gpio/gpio-pcf857x.c pdata->context); pdata 396 drivers/gpio/gpio-pcf857x.c struct pcf857x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 400 drivers/gpio/gpio-pcf857x.c if (pdata && pdata->teardown) { pdata 401 drivers/gpio/gpio-pcf857x.c status = pdata->teardown(client, pdata 403 drivers/gpio/gpio-pcf857x.c pdata->context); pdata 99 drivers/gpio/gpio-rc5t583.c struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); pdata 121 drivers/gpio/gpio-rc5t583.c if (pdata && pdata->gpio_base) pdata 122 drivers/gpio/gpio-rc5t583.c rc5t583_gpio->gpio_chip.base = pdata->gpio_base; pdata 122 drivers/gpio/gpio-rdc321x.c struct rdc321x_gpio_pdata *pdata; pdata 124 drivers/gpio/gpio-rdc321x.c pdata = dev_get_platdata(&pdev->dev); pdata 125 drivers/gpio/gpio-rdc321x.c if (!pdata) { pdata 142 drivers/gpio/gpio-rdc321x.c rdc321x_gpio_dev->sb_pdev = pdata->sb_pdev; pdata 162 drivers/gpio/gpio-rdc321x.c rdc321x_gpio_dev->chip.ngpio = pdata->max_gpios; pdata 264 drivers/gpio/gpio-sch311x.c struct sch311x_pdev_data *pdata = dev_get_platdata(&pdev->dev); pdata 270 drivers/gpio/gpio-sch311x.c if (!devm_request_region(&pdev->dev, pdata->runtime_reg + GP1, 6, pdata 273 drivers/gpio/gpio-sch311x.c pdata->runtime_reg + GP1, pdata->runtime_reg + GP1 + 5); pdata 303 drivers/gpio/gpio-sch311x.c block->runtime_reg = pdata->runtime_reg; pdata 401 drivers/gpio/gpio-sch311x.c struct sch311x_pdev_data pdata; pdata 404 drivers/gpio/gpio-sch311x.c pdata.runtime_reg = addr; pdata 411 drivers/gpio/gpio-sch311x.c &pdata, sizeof(pdata)); pdata 220 drivers/gpio/gpio-timberdale.c struct timbgpio_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 223 drivers/gpio/gpio-timberdale.c if (!pdata || pdata->nr_pins > 32) { pdata 232 drivers/gpio/gpio-timberdale.c tgpio->irq_base = pdata->irq_base; pdata 251 drivers/gpio/gpio-timberdale.c gc->base = pdata->gpio_base; pdata 252 drivers/gpio/gpio-timberdale.c gc->ngpio = pdata->nr_pins; pdata 267 drivers/gpio/gpio-timberdale.c for (i = 0; i < pdata->nr_pins; i++) { pdata 77 drivers/gpio/gpio-tps6586x.c struct tps6586x_platform_data *pdata; pdata 81 drivers/gpio/gpio-tps6586x.c pdata = dev_get_platdata(pdev->dev.parent); pdata 104 drivers/gpio/gpio-tps6586x.c if (pdata && pdata->gpio_base) pdata 105 drivers/gpio/gpio-tps6586x.c tps6586x_gpio->gpio_chip.base = pdata->gpio_base; pdata 109 drivers/gpio/gpio-tps65910.c struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); pdata 143 drivers/gpio/gpio-tps65910.c if (pdata && pdata->gpio_base) pdata 144 drivers/gpio/gpio-tps65910.c tps65910_gpio->gpio_chip.base = pdata->gpio_base; pdata 148 drivers/gpio/gpio-tps65910.c if (!pdata && tps65910->dev->of_node) pdata 149 drivers/gpio/gpio-tps65910.c pdata = tps65910_parse_dt_for_gpio(&pdev->dev, tps65910, pdata 152 drivers/gpio/gpio-tps65910.c if (!pdata) pdata 157 drivers/gpio/gpio-tps65910.c if (!pdata->en_gpio_sleep[i]) pdata 252 drivers/gpio/gpio-twl4030.c struct twl4030_gpio_platform_data *pdata; pdata 258 drivers/gpio/gpio-twl4030.c pdata = dev_get_platdata(chip->parent); pdata 259 drivers/gpio/gpio-twl4030.c if (pdata) pdata 260 drivers/gpio/gpio-twl4030.c value |= pdata->mmc_cd & 0x03; pdata 471 drivers/gpio/gpio-twl4030.c struct twl4030_gpio_platform_data *pdata) pdata 479 drivers/gpio/gpio-twl4030.c if (pdata) pdata 480 drivers/gpio/gpio-twl4030.c *omap_twl_info = *pdata; pdata 499 drivers/gpio/gpio-twl4030.c struct twl4030_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 540 drivers/gpio/gpio-twl4030.c pdata = of_gpio_twl4030(&pdev->dev, pdata); pdata 542 drivers/gpio/gpio-twl4030.c if (pdata == NULL) { pdata 553 drivers/gpio/gpio-twl4030.c ret = gpio_twl4030_pulls(pdata->pullups, pdata->pulldowns); pdata 556 drivers/gpio/gpio-twl4030.c pdata->pullups, pdata->pulldowns, ret); pdata 558 drivers/gpio/gpio-twl4030.c ret = gpio_twl4030_debounce(pdata->debounce, pdata->mmc_cd); pdata 561 drivers/gpio/gpio-twl4030.c pdata->debounce, pdata->mmc_cd, ret); pdata 567 drivers/gpio/gpio-twl4030.c if (pdata->use_leds) pdata 580 drivers/gpio/gpio-twl4030.c if (pdata->setup) { pdata 583 drivers/gpio/gpio-twl4030.c status = pdata->setup(&pdev->dev, priv->gpio_chip.base, pdata 596 drivers/gpio/gpio-twl4030.c struct twl4030_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 600 drivers/gpio/gpio-twl4030.c if (pdata && pdata->teardown) { pdata 601 drivers/gpio/gpio-twl4030.c status = pdata->teardown(&pdev->dev, priv->gpio_chip.base, pdata 262 drivers/gpio/gpio-wm831x.c struct wm831x_pdata *pdata = &wm831x->pdata; pdata 275 drivers/gpio/gpio-wm831x.c if (pdata && pdata->gpio_base) pdata 276 drivers/gpio/gpio-wm831x.c wm831x_gpio->gpio_chip.base = pdata->gpio_base; pdata 106 drivers/gpio/gpio-wm8350.c struct wm8350_platform_data *pdata = dev_get_platdata(wm8350->dev); pdata 119 drivers/gpio/gpio-wm8350.c if (pdata && pdata->gpio_base) pdata 120 drivers/gpio/gpio-wm8350.c wm8350_gpio->gpio_chip.base = pdata->gpio_base; pdata 264 drivers/gpio/gpio-wm8994.c struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); pdata 277 drivers/gpio/gpio-wm8994.c if (pdata && pdata->gpio_base) pdata 278 drivers/gpio/gpio-wm8994.c wm8994_gpio->gpio_chip.base = pdata->gpio_base; pdata 140 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_backlight_privdata *pdata = bl_get_data(bd); pdata 141 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = pdata->encoder; pdata 152 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_backlight_privdata *pdata = bl_get_data(bd); pdata 153 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_encoder *amdgpu_encoder = pdata->encoder; pdata 172 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_backlight_privdata *pdata; pdata 190 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c pdata = kmalloc(sizeof(struct amdgpu_backlight_privdata), GFP_KERNEL); pdata 191 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (!pdata) { pdata 202 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c pdata, &amdgpu_atombios_encoder_backlight_ops, &props); pdata 208 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c pdata->encoder = amdgpu_encoder; pdata 224 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c kfree(pdata); pdata 247 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c struct amdgpu_legacy_backlight_privdata *pdata; pdata 249 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c pdata = bl_get_data(bd); pdata 251 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c kfree(pdata); pdata 55 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c uint32_t *pdata = (uint32_t *)&data_byte; pdata 74 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c *pdata = PP_SMC_TO_HOST_UL(data); pdata 66 drivers/gpu/drm/bridge/analogix-anx78xx.c struct anx78xx_platform_data pdata; pdata 605 drivers/gpu/drm/bridge/analogix-anx78xx.c struct anx78xx_platform_data *pdata = &anx78xx->pdata; pdata 611 drivers/gpu/drm/bridge/analogix-anx78xx.c if (pdata->dvdd10) { pdata 612 drivers/gpu/drm/bridge/analogix-anx78xx.c err = regulator_enable(pdata->dvdd10); pdata 622 drivers/gpu/drm/bridge/analogix-anx78xx.c gpiod_set_value_cansleep(pdata->gpiod_reset, 1); pdata 625 drivers/gpu/drm/bridge/analogix-anx78xx.c gpiod_set_value_cansleep(pdata->gpiod_pd, 0); pdata 628 drivers/gpu/drm/bridge/analogix-anx78xx.c gpiod_set_value_cansleep(pdata->gpiod_reset, 0); pdata 641 drivers/gpu/drm/bridge/analogix-anx78xx.c struct anx78xx_platform_data *pdata = &anx78xx->pdata; pdata 647 drivers/gpu/drm/bridge/analogix-anx78xx.c gpiod_set_value_cansleep(pdata->gpiod_reset, 1); pdata 650 drivers/gpu/drm/bridge/analogix-anx78xx.c gpiod_set_value_cansleep(pdata->gpiod_pd, 1); pdata 653 drivers/gpu/drm/bridge/analogix-anx78xx.c if (pdata->dvdd10) { pdata 654 drivers/gpu/drm/bridge/analogix-anx78xx.c err = regulator_disable(pdata->dvdd10); pdata 712 drivers/gpu/drm/bridge/analogix-anx78xx.c struct anx78xx_platform_data *pdata = &anx78xx->pdata; pdata 716 drivers/gpu/drm/bridge/analogix-anx78xx.c pdata->dvdd10 = devm_regulator_get(dev, "dvdd10"); pdata 717 drivers/gpu/drm/bridge/analogix-anx78xx.c if (IS_ERR(pdata->dvdd10)) { pdata 718 drivers/gpu/drm/bridge/analogix-anx78xx.c if (PTR_ERR(pdata->dvdd10) != -EPROBE_DEFER) pdata 721 drivers/gpu/drm/bridge/analogix-anx78xx.c return PTR_ERR(pdata->dvdd10); pdata 725 drivers/gpu/drm/bridge/analogix-anx78xx.c pdata->gpiod_hpd = devm_gpiod_get(dev, "hpd", GPIOD_IN); pdata 726 drivers/gpu/drm/bridge/analogix-anx78xx.c if (IS_ERR(pdata->gpiod_hpd)) pdata 727 drivers/gpu/drm/bridge/analogix-anx78xx.c return PTR_ERR(pdata->gpiod_hpd); pdata 730 drivers/gpu/drm/bridge/analogix-anx78xx.c pdata->gpiod_pd = devm_gpiod_get(dev, "pd", GPIOD_OUT_HIGH); pdata 731 drivers/gpu/drm/bridge/analogix-anx78xx.c if (IS_ERR(pdata->gpiod_pd)) pdata 732 drivers/gpu/drm/bridge/analogix-anx78xx.c return PTR_ERR(pdata->gpiod_pd); pdata 735 drivers/gpu/drm/bridge/analogix-anx78xx.c pdata->gpiod_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); pdata 737 drivers/gpu/drm/bridge/analogix-anx78xx.c return PTR_ERR_OR_ZERO(pdata->gpiod_reset); pdata 988 drivers/gpu/drm/bridge/analogix-anx78xx.c if (!gpiod_get_value(anx78xx->pdata.gpiod_hpd)) pdata 1315 drivers/gpu/drm/bridge/analogix-anx78xx.c struct anx78xx_platform_data *pdata; pdata 1324 drivers/gpu/drm/bridge/analogix-anx78xx.c pdata = &anx78xx->pdata; pdata 1343 drivers/gpu/drm/bridge/analogix-anx78xx.c pdata->hpd_irq = gpiod_to_irq(pdata->gpiod_hpd); pdata 1344 drivers/gpu/drm/bridge/analogix-anx78xx.c if (pdata->hpd_irq < 0) { pdata 1345 drivers/gpu/drm/bridge/analogix-anx78xx.c DRM_ERROR("Failed to get HPD IRQ: %d\n", pdata->hpd_irq); pdata 1349 drivers/gpu/drm/bridge/analogix-anx78xx.c pdata->intp_irq = client->irq; pdata 1350 drivers/gpu/drm/bridge/analogix-anx78xx.c if (!pdata->intp_irq) { pdata 1412 drivers/gpu/drm/bridge/analogix-anx78xx.c err = devm_request_threaded_irq(&client->dev, pdata->hpd_irq, NULL, pdata 1422 drivers/gpu/drm/bridge/analogix-anx78xx.c err = devm_request_threaded_irq(&client->dev, pdata->intp_irq, NULL, pdata 1436 drivers/gpu/drm/bridge/analogix-anx78xx.c if (!gpiod_get_value(anx78xx->pdata.gpiod_hpd)) pdata 165 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c struct hdmi_codec_pdata pdata; pdata 168 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c pdata.ops = &dw_hdmi_i2s_ops; pdata 169 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c pdata.i2s = 1; pdata 170 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c pdata.max_i2s_channels = 8; pdata 171 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c pdata.data = audio; pdata 177 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c pdevinfo.data = &pdata; pdata 178 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c pdevinfo.size_data = sizeof(pdata); pdata 130 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct dw_hdmi_plat_data *pdata, pdata 1371 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct dw_hdmi_plat_data *pdata, pdata 1374 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct dw_hdmi_mpll_config *mpll_config = pdata->mpll_cfg; pdata 1375 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct dw_hdmi_curr_ctrl *curr_ctrl = pdata->cur_ctr; pdata 1376 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct dw_hdmi_phy_config *phy_config = pdata->phy_config; pdata 1425 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct dw_hdmi_plat_data *pdata = hdmi->plat_data; pdata 1445 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c if (pdata->configure_phy) pdata 1446 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c ret = pdata->configure_phy(hdmi, pdata, mpixelclock); pdata 1448 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c ret = phy->configure(hdmi, pdata, mpixelclock); pdata 297 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; pdata 328 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (pdata->host_ops && pdata->host_ops->attach) { pdata 329 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = pdata->host_ops->attach(pdata->priv_data, device); pdata 341 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; pdata 344 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (pdata->host_ops && pdata->host_ops->detach) { pdata 345 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = pdata->host_ops->detach(pdata->priv_data, device); pdata 917 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; pdata 920 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (pdata->mode_valid) pdata 921 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c mode_status = pdata->mode_valid(pdata->priv_data, mode); pdata 120 drivers/gpu/drm/bridge/ti-sn65dsi86.c static void ti_sn_bridge_write_u16(struct ti_sn_bridge *pdata, pdata 123 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, reg, val & 0xFF); pdata 124 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, reg + 1, val >> 8); pdata 129 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = dev_get_drvdata(dev); pdata 132 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = regulator_bulk_enable(SN_REGULATOR_SUPPLY_NUM, pdata->supplies); pdata 138 drivers/gpu/drm/bridge/ti-sn65dsi86.c gpiod_set_value(pdata->enable_gpio, 1); pdata 145 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = dev_get_drvdata(dev); pdata 148 drivers/gpu/drm/bridge/ti-sn65dsi86.c gpiod_set_value(pdata->enable_gpio, 0); pdata 150 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = regulator_bulk_disable(SN_REGULATOR_SUPPLY_NUM, pdata->supplies); pdata 163 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = s->private; pdata 168 drivers/gpu/drm/bridge/ti-sn65dsi86.c pm_runtime_get_sync(pdata->dev); pdata 172 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_read(pdata->regmap, reg, &val); pdata 176 drivers/gpu/drm/bridge/ti-sn65dsi86.c pm_runtime_put(pdata->dev); pdata 183 drivers/gpu/drm/bridge/ti-sn65dsi86.c static void ti_sn_debugfs_init(struct ti_sn_bridge *pdata) pdata 185 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->debugfs = debugfs_create_dir(dev_name(pdata->dev), NULL); pdata 187 drivers/gpu/drm/bridge/ti-sn65dsi86.c debugfs_create_file("status", 0600, pdata->debugfs, pdata, pdata 191 drivers/gpu/drm/bridge/ti-sn65dsi86.c static void ti_sn_debugfs_remove(struct ti_sn_bridge *pdata) pdata 193 drivers/gpu/drm/bridge/ti-sn65dsi86.c debugfs_remove_recursive(pdata->debugfs); pdata 194 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->debugfs = NULL; pdata 206 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = connector_to_ti_sn_bridge(connector); pdata 208 drivers/gpu/drm/bridge/ti-sn65dsi86.c return drm_panel_get_modes(pdata->panel); pdata 252 drivers/gpu/drm/bridge/ti-sn65dsi86.c static int ti_sn_bridge_parse_regulators(struct ti_sn_bridge *pdata) pdata 260 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->supplies[i].supply = ti_sn_bridge_supply_names[i]; pdata 262 drivers/gpu/drm/bridge/ti-sn65dsi86.c return devm_regulator_bulk_get(pdata->dev, SN_REGULATOR_SUPPLY_NUM, pdata 263 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->supplies); pdata 269 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); pdata 277 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = drm_connector_init(bridge->dev, &pdata->connector, pdata 285 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_connector_helper_add(&pdata->connector, pdata 287 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_connector_attach_encoder(&pdata->connector, bridge->encoder); pdata 300 drivers/gpu/drm/bridge/ti-sn65dsi86.c host = of_find_mipi_dsi_host_by_node(pdata->host_node); pdata 320 drivers/gpu/drm/bridge/ti-sn65dsi86.c pm_runtime_get_sync(pdata->dev); pdata 321 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_read(pdata->regmap, SN_DPPLL_SRC_REG, &val); pdata 322 drivers/gpu/drm/bridge/ti-sn65dsi86.c pm_runtime_put(pdata->dev); pdata 331 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->dsi = dsi; pdata 334 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_panel_attach(pdata->panel, &pdata->connector); pdata 341 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_connector_cleanup(&pdata->connector); pdata 347 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); pdata 349 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_panel_disable(pdata->panel); pdata 352 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_update_bits(pdata->regmap, SN_ENH_FRAME_REG, VSTREAM_ENABLE, 0); pdata 354 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_ML_TX_MODE_REG, 0); pdata 356 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_PLL_ENABLE_REG, 0); pdata 358 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_panel_unprepare(pdata->panel); pdata 361 drivers/gpu/drm/bridge/ti-sn65dsi86.c static u32 ti_sn_bridge_get_dsi_freq(struct ti_sn_bridge *pdata) pdata 365 drivers/gpu/drm/bridge/ti-sn65dsi86.c &pdata->bridge.encoder->crtc->state->adjusted_mode; pdata 368 drivers/gpu/drm/bridge/ti-sn65dsi86.c mipi_dsi_pixel_format_to_bpp(pdata->dsi->format); pdata 369 drivers/gpu/drm/bridge/ti-sn65dsi86.c clk_freq_khz = bit_rate_khz / (pdata->dsi->lanes * 2); pdata 392 drivers/gpu/drm/bridge/ti-sn65dsi86.c static void ti_sn_bridge_set_refclk_freq(struct ti_sn_bridge *pdata) pdata 399 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (pdata->refclk) { pdata 400 drivers/gpu/drm/bridge/ti-sn65dsi86.c refclk_rate = clk_get_rate(pdata->refclk); pdata 403 drivers/gpu/drm/bridge/ti-sn65dsi86.c clk_prepare_enable(pdata->refclk); pdata 405 drivers/gpu/drm/bridge/ti-sn65dsi86.c refclk_rate = ti_sn_bridge_get_dsi_freq(pdata) * 1000; pdata 415 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_update_bits(pdata->regmap, SN_DPPLL_SRC_REG, REFCLK_FREQ_MASK, pdata 428 drivers/gpu/drm/bridge/ti-sn65dsi86.c static void ti_sn_bridge_set_dsi_dp_rate(struct ti_sn_bridge *pdata) pdata 433 drivers/gpu/drm/bridge/ti-sn65dsi86.c &pdata->bridge.encoder->crtc->state->adjusted_mode; pdata 437 drivers/gpu/drm/bridge/ti-sn65dsi86.c mipi_dsi_pixel_format_to_bpp(pdata->dsi->format); pdata 438 drivers/gpu/drm/bridge/ti-sn65dsi86.c clk_freq_mhz = bit_rate_mhz / (pdata->dsi->lanes * 2); pdata 443 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_DSIA_CLK_FREQ_REG, val); pdata 446 drivers/gpu/drm/bridge/ti-sn65dsi86.c dp_rate_mhz = ((bit_rate_mhz / pdata->dsi->lanes) * DP_CLK_FUDGE_NUM) / pdata 452 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_update_bits(pdata->regmap, SN_DATARATE_CONFIG_REG, pdata 456 drivers/gpu/drm/bridge/ti-sn65dsi86.c static void ti_sn_bridge_set_video_timings(struct ti_sn_bridge *pdata) pdata 459 drivers/gpu/drm/bridge/ti-sn65dsi86.c &pdata->bridge.encoder->crtc->state->adjusted_mode; pdata 467 drivers/gpu/drm/bridge/ti-sn65dsi86.c ti_sn_bridge_write_u16(pdata, SN_CHA_ACTIVE_LINE_LENGTH_LOW_REG, pdata 469 drivers/gpu/drm/bridge/ti-sn65dsi86.c ti_sn_bridge_write_u16(pdata, SN_CHA_VERTICAL_DISPLAY_SIZE_LOW_REG, pdata 471 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_CHA_HSYNC_PULSE_WIDTH_LOW_REG, pdata 473 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_CHA_HSYNC_PULSE_WIDTH_HIGH_REG, pdata 476 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_CHA_VSYNC_PULSE_WIDTH_LOW_REG, pdata 478 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_CHA_VSYNC_PULSE_WIDTH_HIGH_REG, pdata 482 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_CHA_HORIZONTAL_BACK_PORCH_REG, pdata 484 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_CHA_VERTICAL_BACK_PORCH_REG, pdata 487 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_CHA_HORIZONTAL_FRONT_PORCH_REG, pdata 489 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_CHA_VERTICAL_FRONT_PORCH_REG, pdata 497 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); pdata 502 drivers/gpu/drm/bridge/ti-sn65dsi86.c val = CHA_DSI_LANES(4 - pdata->dsi->lanes); pdata 503 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_update_bits(pdata->regmap, SN_DSI_LANES_REG, pdata 507 drivers/gpu/drm/bridge/ti-sn65dsi86.c val = DP_NUM_LANES(pdata->dsi->lanes - 1); pdata 508 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_update_bits(pdata->regmap, SN_SSC_CONFIG_REG, DP_NUM_LANES_MASK, pdata 512 drivers/gpu/drm/bridge/ti-sn65dsi86.c ti_sn_bridge_set_dsi_dp_rate(pdata); pdata 515 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_PLL_ENABLE_REG, 1); pdata 517 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = regmap_read_poll_timeout(pdata->regmap, SN_DPPLL_SRC_REG, val, pdata 531 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_dp_dpcd_writeb(&pdata->aux, DP_EDP_CONFIGURATION_SET, pdata 535 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_ML_TX_MODE_REG, 0x0A); pdata 536 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = regmap_read_poll_timeout(pdata->regmap, SN_ML_TX_MODE_REG, val, pdata 549 drivers/gpu/drm/bridge/ti-sn65dsi86.c ti_sn_bridge_set_video_timings(pdata); pdata 552 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_update_bits(pdata->regmap, SN_ENH_FRAME_REG, VSTREAM_ENABLE, pdata 555 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_panel_enable(pdata->panel); pdata 560 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); pdata 562 drivers/gpu/drm/bridge/ti-sn65dsi86.c pm_runtime_get_sync(pdata->dev); pdata 565 drivers/gpu/drm/bridge/ti-sn65dsi86.c ti_sn_bridge_set_refclk_freq(pdata); pdata 583 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_update_bits(pdata->regmap, SN_HPD_DISABLE_REG, HPD_DISABLE, pdata 586 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_panel_prepare(pdata->panel); pdata 591 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); pdata 593 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (pdata->refclk) pdata 594 drivers/gpu/drm/bridge/ti-sn65dsi86.c clk_disable_unprepare(pdata->refclk); pdata 596 drivers/gpu/drm/bridge/ti-sn65dsi86.c pm_runtime_put_sync(pdata->dev); pdata 615 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = aux_to_ti_sn_bridge(aux); pdata 630 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_CMD_REG, request_val); pdata 636 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_ADDR_19_16_REG, pdata 638 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_ADDR_15_8_REG, pdata 640 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_ADDR_7_0_REG, msg->address & 0xFF); pdata 642 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_LENGTH_REG, msg->size); pdata 646 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_WDATA_REG(i), pdata 650 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_CMD_REG, request_val | AUX_CMD_SEND); pdata 652 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = regmap_read_poll_timeout(pdata->regmap, SN_AUX_CMD_REG, val, pdata 658 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = regmap_read(pdata->regmap, SN_AUX_CMD_STATUS_REG, &val); pdata 671 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = regmap_read(pdata->regmap, SN_AUX_RDATA_REG(i), pdata 683 drivers/gpu/drm/bridge/ti-sn65dsi86.c static int ti_sn_bridge_parse_dsi_host(struct ti_sn_bridge *pdata) pdata 685 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct device_node *np = pdata->dev->of_node; pdata 687 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->host_node = of_graph_get_remote_node(np, 0, 0); pdata 689 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (!pdata->host_node) { pdata 700 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata; pdata 708 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata = devm_kzalloc(&client->dev, sizeof(struct ti_sn_bridge), pdata 710 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (!pdata) pdata 713 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->regmap = devm_regmap_init_i2c(client, pdata 715 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (IS_ERR(pdata->regmap)) { pdata 717 drivers/gpu/drm/bridge/ti-sn65dsi86.c return PTR_ERR(pdata->regmap); pdata 720 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->dev = &client->dev; pdata 722 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = drm_of_find_panel_or_bridge(pdata->dev->of_node, 1, 0, pdata 723 drivers/gpu/drm/bridge/ti-sn65dsi86.c &pdata->panel, NULL); pdata 729 drivers/gpu/drm/bridge/ti-sn65dsi86.c dev_set_drvdata(&client->dev, pdata); pdata 731 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->enable_gpio = devm_gpiod_get(pdata->dev, "enable", pdata 733 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (IS_ERR(pdata->enable_gpio)) { pdata 735 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = PTR_ERR(pdata->enable_gpio); pdata 739 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = ti_sn_bridge_parse_regulators(pdata); pdata 745 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->refclk = devm_clk_get(pdata->dev, "refclk"); pdata 746 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (IS_ERR(pdata->refclk)) { pdata 747 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = PTR_ERR(pdata->refclk); pdata 751 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->refclk = NULL; pdata 754 drivers/gpu/drm/bridge/ti-sn65dsi86.c ret = ti_sn_bridge_parse_dsi_host(pdata); pdata 758 drivers/gpu/drm/bridge/ti-sn65dsi86.c pm_runtime_enable(pdata->dev); pdata 760 drivers/gpu/drm/bridge/ti-sn65dsi86.c i2c_set_clientdata(client, pdata); pdata 762 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->aux.name = "ti-sn65dsi86-aux"; pdata 763 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->aux.dev = pdata->dev; pdata 764 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->aux.transfer = ti_sn_aux_transfer; pdata 765 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_dp_aux_register(&pdata->aux); pdata 767 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->bridge.funcs = &ti_sn_bridge_funcs; pdata 768 drivers/gpu/drm/bridge/ti-sn65dsi86.c pdata->bridge.of_node = client->dev.of_node; pdata 770 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_bridge_add(&pdata->bridge); pdata 772 drivers/gpu/drm/bridge/ti-sn65dsi86.c ti_sn_debugfs_init(pdata); pdata 779 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct ti_sn_bridge *pdata = i2c_get_clientdata(client); pdata 781 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (!pdata) pdata 784 drivers/gpu/drm/bridge/ti-sn65dsi86.c ti_sn_debugfs_remove(pdata); pdata 786 drivers/gpu/drm/bridge/ti-sn65dsi86.c of_node_put(pdata->host_node); pdata 788 drivers/gpu/drm/bridge/ti-sn65dsi86.c pm_runtime_disable(pdata->dev); pdata 790 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (pdata->dsi) { pdata 791 drivers/gpu/drm/bridge/ti-sn65dsi86.c mipi_dsi_detach(pdata->dsi); pdata 792 drivers/gpu/drm/bridge/ti-sn65dsi86.c mipi_dsi_device_unregister(pdata->dsi); pdata 795 drivers/gpu/drm/bridge/ti-sn65dsi86.c drm_bridge_remove(&pdata->bridge); pdata 319 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct tc35876x_platform_data *pdata; pdata 326 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c pdata = dev_get_platdata(&tc35876x_client->dev); pdata 328 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_bridge_reset == -1) pdata 332 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_set_value_cansleep(pdata->gpio_bridge_reset, 0); pdata 336 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_set_value_cansleep(pdata->gpio_bridge_reset, 0); pdata 339 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_set_value_cansleep(pdata->gpio_bridge_reset, 1); pdata 513 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct tc35876x_platform_data *pdata; pdata 520 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c pdata = dev_get_platdata(&tc35876x_client->dev); pdata 522 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_panel_bl_en != -1) pdata 523 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_set_value_cansleep(pdata->gpio_panel_bl_en, 0); pdata 525 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_panel_vadd != -1) pdata 526 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_set_value_cansleep(pdata->gpio_panel_vadd, 0); pdata 531 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct tc35876x_platform_data *pdata; pdata 539 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c pdata = dev_get_platdata(&tc35876x_client->dev); pdata 541 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_panel_vadd != -1) { pdata 542 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_set_value_cansleep(pdata->gpio_panel_vadd, 1); pdata 574 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_panel_bl_en != -1) pdata 575 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_set_value_cansleep(pdata->gpio_panel_bl_en, 1); pdata 638 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct tc35876x_platform_data *pdata; pdata 648 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c pdata = dev_get_platdata(&client->dev); pdata 649 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (!pdata) { pdata 654 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_bridge_reset != -1) { pdata 655 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_request(pdata->gpio_bridge_reset, "tc35876x bridge reset"); pdata 656 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_direction_output(pdata->gpio_bridge_reset, 0); pdata 659 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_panel_bl_en != -1) { pdata 660 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_request(pdata->gpio_panel_bl_en, "tc35876x panel bl en"); pdata 661 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_direction_output(pdata->gpio_panel_bl_en, 0); pdata 664 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_panel_vadd != -1) { pdata 665 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_request(pdata->gpio_panel_vadd, "tc35876x panel vadd"); pdata 666 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_direction_output(pdata->gpio_panel_vadd, 0); pdata 676 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct tc35876x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 680 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_bridge_reset != -1) pdata 681 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_free(pdata->gpio_bridge_reset); pdata 683 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_panel_bl_en != -1) pdata 684 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_free(pdata->gpio_panel_bl_en); pdata 686 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (pdata->gpio_panel_vadd != -1) pdata 687 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c gpio_free(pdata->gpio_panel_vadd); pdata 85 drivers/gpu/drm/i915/display/intel_lpe_audio.c struct intel_hdmi_lpe_audio_pdata *pdata; pdata 87 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); pdata 88 drivers/gpu/drm/i915/display/intel_lpe_audio.c if (!pdata) pdata 93 drivers/gpu/drm/i915/display/intel_lpe_audio.c kfree(pdata); pdata 113 drivers/gpu/drm/i915/display/intel_lpe_audio.c pinfo.data = pdata; pdata 114 drivers/gpu/drm/i915/display/intel_lpe_audio.c pinfo.size_data = sizeof(*pdata); pdata 117 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata->num_pipes = INTEL_INFO(dev_priv)->num_pipes; pdata 118 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata->num_ports = IS_CHERRYVIEW(dev_priv) ? 3 : 2; /* B,C,D or B,C */ pdata 119 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata->port[0].pipe = -1; pdata 120 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata->port[1].pipe = -1; pdata 121 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata->port[2].pipe = -1; pdata 122 drivers/gpu/drm/i915/display/intel_lpe_audio.c spin_lock_init(&pdata->lpe_audio_slock); pdata 126 drivers/gpu/drm/i915/display/intel_lpe_audio.c kfree(pdata); pdata 325 drivers/gpu/drm/i915/display/intel_lpe_audio.c struct intel_hdmi_lpe_audio_pdata *pdata; pdata 332 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata = dev_get_platdata(&dev_priv->lpe_audio.platdev->dev); pdata 333 drivers/gpu/drm/i915/display/intel_lpe_audio.c ppdata = &pdata->port[port - PORT_B]; pdata 335 drivers/gpu/drm/i915/display/intel_lpe_audio.c spin_lock_irqsave(&pdata->lpe_audio_slock, irqflags); pdata 359 drivers/gpu/drm/i915/display/intel_lpe_audio.c if (pdata->notify_audio_lpe) pdata 360 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata->notify_audio_lpe(dev_priv->lpe_audio.platdev, port - PORT_B); pdata 362 drivers/gpu/drm/i915/display/intel_lpe_audio.c spin_unlock_irqrestore(&pdata->lpe_audio_slock, irqflags); pdata 3518 drivers/gpu/drm/i915/gvt/handlers.c void *pdata, unsigned int bytes, bool is_read) pdata 3536 drivers/gpu/drm/i915/gvt/handlers.c return func(vgpu, offset, pdata, bytes); pdata 3550 drivers/gpu/drm/i915/gvt/handlers.c return mmio_info->read(vgpu, offset, pdata, bytes); pdata 3561 drivers/gpu/drm/i915/gvt/handlers.c ret = mmio_info->write(vgpu, offset, pdata, bytes); pdata 3567 drivers/gpu/drm/i915/gvt/handlers.c memcpy(&data, pdata, bytes); pdata 3586 drivers/gpu/drm/i915/gvt/handlers.c intel_vgpu_default_mmio_read(vgpu, offset, pdata, bytes) : pdata 3587 drivers/gpu/drm/i915/gvt/handlers.c intel_vgpu_default_mmio_write(vgpu, offset, pdata, bytes); pdata 101 drivers/gpu/drm/i915/gvt/mmio.h void *pdata, unsigned int bytes, bool is_read); pdata 183 drivers/gpu/drm/imx/imx-drm-core.c struct ipu_client_platformdata *pdata = dev->platform_data; pdata 185 drivers/gpu/drm/imx/imx-drm-core.c return pdata->of_node == np; pdata 335 drivers/gpu/drm/imx/ipuv3-crtc.c struct ipu_client_platformdata *pdata) pdata 340 drivers/gpu/drm/imx/ipuv3-crtc.c ipu_crtc->dc = ipu_dc_get(ipu, pdata->dc); pdata 346 drivers/gpu/drm/imx/ipuv3-crtc.c ipu_crtc->di = ipu_di_get(ipu, pdata->di); pdata 360 drivers/gpu/drm/imx/ipuv3-crtc.c struct ipu_client_platformdata *pdata, struct drm_device *drm) pdata 367 drivers/gpu/drm/imx/ipuv3-crtc.c ret = ipu_get_resources(ipu_crtc, pdata); pdata 374 drivers/gpu/drm/imx/ipuv3-crtc.c if (pdata->dp >= 0) pdata 376 drivers/gpu/drm/imx/ipuv3-crtc.c ipu_crtc->plane[0] = ipu_plane_init(drm, ipu, pdata->dma[0], dp, 0, pdata 383 drivers/gpu/drm/imx/ipuv3-crtc.c crtc->port = pdata->of_node; pdata 396 drivers/gpu/drm/imx/ipuv3-crtc.c if (pdata->dp >= 0 && pdata->dma[1] > 0) { pdata 397 drivers/gpu/drm/imx/ipuv3-crtc.c ipu_crtc->plane[1] = ipu_plane_init(drm, ipu, pdata->dma[1], pdata 438 drivers/gpu/drm/imx/ipuv3-crtc.c struct ipu_client_platformdata *pdata = dev->platform_data; pdata 449 drivers/gpu/drm/imx/ipuv3-crtc.c ret = ipu_crtc_init(ipu_crtc, pdata, drm); pdata 157 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c u32 *pdata, u32 count) pdata 164 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c WARN_ON(!pdata || !preg || (count == 0)); pdata 174 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c scm_buf[i].val = pdata[idx]; pdata 190 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c hdmi_write(hdmi, preg[i], pdata[i]); pdata 69 drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c const struct nvkm_oclass *oclass, void **pdata, u32 *psize, pdata 74 drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c } *args = *pdata; pdata 80 drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c void *data = *pdata; pdata 101 drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c *pdata = data; pdata 106 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nv50_vmm_pde(struct nvkm_vmm *vmm, struct nvkm_vmm_pt *pgt, u64 *pdata) pdata 140 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c *pdata = data; pdata 181 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/mxms.c mxms_output_device(struct nvkm_mxm *mxm, u8 *pdata, struct mxms_odev *desc) pdata 183 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/mxms.c u64 data = ROM32(pdata[0]); pdata 185 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/mxms.c data |= (u64)ROM16(pdata[4]) << 32; pdata 579 drivers/gpu/drm/omapdrm/dss/hdmi4.c struct omap_hdmi_audio_pdata pdata = { pdata 588 drivers/gpu/drm/omapdrm/dss/hdmi4.c &pdata, sizeof(pdata)); pdata 573 drivers/gpu/drm/omapdrm/dss/hdmi5.c struct omap_hdmi_audio_pdata pdata = { pdata 582 drivers/gpu/drm/omapdrm/dss/hdmi5.c &pdata, sizeof(pdata)); pdata 162 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); pdata 163 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = pdata->encoder; pdata 172 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); pdata 173 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_encoder *radeon_encoder = pdata->encoder; pdata 192 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_backlight_privdata *pdata; pdata 212 drivers/gpu/drm/radeon/atombios_encoders.c pdata = kmalloc(sizeof(struct radeon_backlight_privdata), GFP_KERNEL); pdata 213 drivers/gpu/drm/radeon/atombios_encoders.c if (!pdata) { pdata 224 drivers/gpu/drm/radeon/atombios_encoders.c pdata, &radeon_atom_backlight_ops, &props); pdata 230 drivers/gpu/drm/radeon/atombios_encoders.c pdata->encoder = radeon_encoder; pdata 252 drivers/gpu/drm/radeon/atombios_encoders.c kfree(pdata); pdata 277 drivers/gpu/drm/radeon/atombios_encoders.c struct radeon_legacy_backlight_privdata *pdata; pdata 279 drivers/gpu/drm/radeon/atombios_encoders.c pdata = bl_get_data(bd); pdata 281 drivers/gpu/drm/radeon/atombios_encoders.c kfree(pdata); pdata 324 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); pdata 335 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (pdata->negative) pdata 343 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); pdata 344 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = pdata->encoder; pdata 354 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_backlight_privdata *pdata = bl_get_data(bd); pdata 355 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_encoder *radeon_encoder = pdata->encoder; pdata 363 drivers/gpu/drm/radeon/radeon_legacy_encoders.c return pdata->negative ? RADEON_MAX_BL_LEVEL - backlight_level : backlight_level; pdata 378 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_backlight_privdata *pdata; pdata 391 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata = kmalloc(sizeof(struct radeon_backlight_privdata), GFP_KERNEL); pdata 392 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if (!pdata) { pdata 403 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata, &radeon_backlight_ops, &props); pdata 409 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata->encoder = radeon_encoder; pdata 418 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata->negative = true; pdata 420 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata->negative = false; pdata 425 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata->negative = (rdev->family != CHIP_RV200 && pdata 431 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata->negative = (pdata->negative || pdata 456 drivers/gpu/drm/radeon/radeon_legacy_encoders.c kfree(pdata); pdata 480 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct radeon_backlight_privdata *pdata; pdata 482 drivers/gpu/drm/radeon/radeon_legacy_encoders.c pdata = bl_get_data(bd); pdata 484 drivers/gpu/drm/radeon/radeon_legacy_encoders.c kfree(pdata); pdata 55 drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c const struct dw_hdmi_plat_data *pdata, pdata 233 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c struct dw_mipi_dsi_plat_data pdata; pdata 957 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->pdata.base = dsi->base; pdata 958 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->pdata.max_data_lanes = dsi->cdata->max_data_lanes; pdata 959 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->pdata.phy_ops = &dw_mipi_dsi_rockchip_phy_ops; pdata 960 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->pdata.host_ops = &dw_mipi_dsi_rockchip_host_ops; pdata 961 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->pdata.priv_data = dsi; pdata 964 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->dmd = dw_mipi_dsi_probe(pdev, &dsi->pdata); pdata 20 drivers/gpu/drm/shmobile/shmob_drm_backlight.c const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; pdata 34 drivers/gpu/drm/shmobile/shmob_drm_backlight.c const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; pdata 58 drivers/gpu/drm/shmobile/shmob_drm_backlight.c const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; pdata 64 drivers/gpu/drm/shmobile/shmob_drm_crtc.c const struct shmob_drm_interface_data *idata = &sdev->pdata->iface; pdata 155 drivers/gpu/drm/shmobile/shmob_drm_crtc.c const struct shmob_drm_interface_data *idata = &sdev->pdata->iface; pdata 606 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->clock = sdev->pdata->panel.mode.clock; pdata 607 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->hdisplay = sdev->pdata->panel.mode.hdisplay; pdata 608 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->hsync_start = sdev->pdata->panel.mode.hsync_start; pdata 609 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->hsync_end = sdev->pdata->panel.mode.hsync_end; pdata 610 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->htotal = sdev->pdata->panel.mode.htotal; pdata 611 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->vdisplay = sdev->pdata->panel.mode.vdisplay; pdata 612 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->vsync_start = sdev->pdata->panel.mode.vsync_start; pdata 613 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->vsync_end = sdev->pdata->panel.mode.vsync_end; pdata 614 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->vtotal = sdev->pdata->panel.mode.vtotal; pdata 615 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->flags = sdev->pdata->panel.mode.flags; pdata 620 drivers/gpu/drm/shmobile/shmob_drm_crtc.c connector->display_info.width_mm = sdev->pdata->panel.width_mm; pdata 621 drivers/gpu/drm/shmobile/shmob_drm_crtc.c connector->display_info.height_mm = sdev->pdata->panel.height_mm; pdata 662 drivers/gpu/drm/shmobile/shmob_drm_crtc.c connector->display_info.width_mm = sdev->pdata->panel.width_mm; pdata 663 drivers/gpu/drm/shmobile/shmob_drm_crtc.c connector->display_info.height_mm = sdev->pdata->panel.height_mm; pdata 58 drivers/gpu/drm/shmobile/shmob_drm_drv.c if (sdev->pdata->iface.interface >= ARRAY_SIZE(ldmt1r)) { pdata 60 drivers/gpu/drm/shmobile/shmob_drm_drv.c sdev->pdata->iface.interface); pdata 64 drivers/gpu/drm/shmobile/shmob_drm_drv.c sdev->ldmt1r = ldmt1r[sdev->pdata->iface.interface]; pdata 204 drivers/gpu/drm/shmobile/shmob_drm_drv.c struct shmob_drm_platform_data *pdata = pdev->dev.platform_data; pdata 211 drivers/gpu/drm/shmobile/shmob_drm_drv.c if (pdata == NULL) { pdata 225 drivers/gpu/drm/shmobile/shmob_drm_drv.c sdev->pdata = pdata; pdata 235 drivers/gpu/drm/shmobile/shmob_drm_drv.c ret = shmob_drm_setup_clocks(sdev, pdata->clk_source); pdata 25 drivers/gpu/drm/shmobile/shmob_drm_drv.h const struct shmob_drm_platform_data *pdata; pdata 1163 drivers/gpu/ipu-v3/ipu-common.c struct ipu_client_platformdata pdata; pdata 1170 drivers/gpu/ipu-v3/ipu-common.c .pdata = { pdata 1177 drivers/gpu/ipu-v3/ipu-common.c .pdata = { pdata 1184 drivers/gpu/ipu-v3/ipu-common.c .pdata = { pdata 1193 drivers/gpu/ipu-v3/ipu-common.c .pdata = { pdata 1241 drivers/gpu/ipu-v3/ipu-common.c reg->pdata.of_node = of_node; pdata 1242 drivers/gpu/ipu-v3/ipu-common.c ret = platform_device_add_data(pdev, ®->pdata, pdata 1243 drivers/gpu/ipu-v3/ipu-common.c sizeof(reg->pdata)); pdata 728 drivers/hid/hid-rmi.c data->xport.pdata = rmi_hid_pdata; pdata 729 drivers/hid/hid-rmi.c data->xport.pdata.irq = data->rmi_irq; pdata 106 drivers/hid/hid-sensor-hub.c struct sensor_hub_data *pdata = hid_get_drvdata(hdev); pdata 109 drivers/hid/hid-sensor-hub.c spin_lock_irqsave(&pdata->dyn_callback_lock, flags); pdata 110 drivers/hid/hid-sensor-hub.c list_for_each_entry(callback, &pdata->dyn_callback_list, list) pdata 119 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->dyn_callback_lock, pdata 123 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->dyn_callback_lock, flags); pdata 133 drivers/hid/hid-sensor-hub.c struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); pdata 136 drivers/hid/hid-sensor-hub.c spin_lock_irqsave(&pdata->dyn_callback_lock, flags); pdata 137 drivers/hid/hid-sensor-hub.c list_for_each_entry(callback, &pdata->dyn_callback_list, list) pdata 140 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->dyn_callback_lock, flags); pdata 145 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->dyn_callback_lock, flags); pdata 161 drivers/hid/hid-sensor-hub.c list_add(&callback->list, &pdata->dyn_callback_list); pdata 163 drivers/hid/hid-sensor-hub.c list_add_tail(&callback->list, &pdata->dyn_callback_list); pdata 164 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->dyn_callback_lock, flags); pdata 174 drivers/hid/hid-sensor-hub.c struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); pdata 177 drivers/hid/hid-sensor-hub.c spin_lock_irqsave(&pdata->dyn_callback_lock, flags); pdata 178 drivers/hid/hid-sensor-hub.c list_for_each_entry(callback, &pdata->dyn_callback_list, list) pdata 185 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->dyn_callback_lock, flags); pdata 423 drivers/hid/hid-sensor-hub.c struct sensor_hub_data *pdata = hid_get_drvdata(hdev); pdata 428 drivers/hid/hid-sensor-hub.c spin_lock_irqsave(&pdata->dyn_callback_lock, flags); pdata 429 drivers/hid/hid-sensor-hub.c list_for_each_entry(callback, &pdata->dyn_callback_list, list) { pdata 434 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->dyn_callback_lock, flags); pdata 441 drivers/hid/hid-sensor-hub.c struct sensor_hub_data *pdata = hid_get_drvdata(hdev); pdata 446 drivers/hid/hid-sensor-hub.c spin_lock_irqsave(&pdata->dyn_callback_lock, flags); pdata 447 drivers/hid/hid-sensor-hub.c list_for_each_entry(callback, &pdata->dyn_callback_list, list) { pdata 452 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->dyn_callback_lock, flags); pdata 472 drivers/hid/hid-sensor-hub.c struct sensor_hub_data *pdata = hid_get_drvdata(hdev); pdata 488 drivers/hid/hid-sensor-hub.c spin_lock_irqsave(&pdata->lock, flags); pdata 538 drivers/hid/hid-sensor-hub.c spin_unlock_irqrestore(&pdata->lock, flags); pdata 159 drivers/hid/i2c-hid/i2c-hid-core.c struct i2c_hid_platform_data pdata; pdata 896 drivers/hid/i2c-hid/i2c-hid-core.c struct i2c_hid_platform_data *pdata) pdata 921 drivers/hid/i2c-hid/i2c-hid-core.c pdata->hid_descriptor_address = obj->integer.value; pdata 944 drivers/hid/i2c-hid/i2c-hid-core.c struct i2c_hid_platform_data *pdata) pdata 954 drivers/hid/i2c-hid/i2c-hid-core.c struct i2c_hid_platform_data *pdata) pdata 970 drivers/hid/i2c-hid/i2c-hid-core.c pdata->hid_descriptor_address = val; pdata 982 drivers/hid/i2c-hid/i2c-hid-core.c struct i2c_hid_platform_data *pdata) pdata 989 drivers/hid/i2c-hid/i2c-hid-core.c struct i2c_hid_platform_data *pdata) pdata 995 drivers/hid/i2c-hid/i2c-hid-core.c pdata->post_power_delay_ms = val; pdata 1027 drivers/hid/i2c-hid/i2c-hid-core.c ret = i2c_hid_of_probe(client, &ihid->pdata); pdata 1031 drivers/hid/i2c-hid/i2c-hid-core.c ret = i2c_hid_acpi_pdata(client, &ihid->pdata); pdata 1035 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata = *platform_data; pdata 1039 drivers/hid/i2c-hid/i2c-hid-core.c i2c_hid_fwnode_probe(client, &ihid->pdata); pdata 1041 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata.supplies[0].supply = "vdd"; pdata 1042 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata.supplies[1].supply = "vddl"; pdata 1045 drivers/hid/i2c-hid/i2c-hid-core.c ARRAY_SIZE(ihid->pdata.supplies), pdata 1046 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata.supplies); pdata 1050 drivers/hid/i2c-hid/i2c-hid-core.c ret = regulator_bulk_enable(ARRAY_SIZE(ihid->pdata.supplies), pdata 1051 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata.supplies); pdata 1055 drivers/hid/i2c-hid/i2c-hid-core.c if (ihid->pdata.post_power_delay_ms) pdata 1056 drivers/hid/i2c-hid/i2c-hid-core.c msleep(ihid->pdata.post_power_delay_ms); pdata 1062 drivers/hid/i2c-hid/i2c-hid-core.c hidRegister = ihid->pdata.hid_descriptor_address; pdata 1133 drivers/hid/i2c-hid/i2c-hid-core.c regulator_bulk_disable(ARRAY_SIZE(ihid->pdata.supplies), pdata 1134 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata.supplies); pdata 1152 drivers/hid/i2c-hid/i2c-hid-core.c regulator_bulk_disable(ARRAY_SIZE(ihid->pdata.supplies), pdata 1153 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata.supplies); pdata 1194 drivers/hid/i2c-hid/i2c-hid-core.c regulator_bulk_disable(ARRAY_SIZE(ihid->pdata.supplies), pdata 1195 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata.supplies); pdata 1210 drivers/hid/i2c-hid/i2c-hid-core.c ret = regulator_bulk_enable(ARRAY_SIZE(ihid->pdata.supplies), pdata 1211 drivers/hid/i2c-hid/i2c-hid-core.c ihid->pdata.supplies); pdata 1215 drivers/hid/i2c-hid/i2c-hid-core.c if (ihid->pdata.post_power_delay_ms) pdata 1216 drivers/hid/i2c-hid/i2c-hid-core.c msleep(ihid->pdata.post_power_delay_ms); pdata 106 drivers/hwmon/ads7828.c struct ads7828_platform_data *pdata = dev_get_platdata(dev); pdata 121 drivers/hwmon/ads7828.c if (pdata) { pdata 122 drivers/hwmon/ads7828.c diff_input = pdata->diff_input; pdata 123 drivers/hwmon/ads7828.c ext_vref = pdata->ext_vref; pdata 124 drivers/hwmon/ads7828.c if (ext_vref && pdata->vref_mv) pdata 125 drivers/hwmon/ads7828.c vref_mv = pdata->vref_mv; pdata 94 drivers/hwmon/ads7871.c struct ads7871_data *pdata = dev_get_drvdata(dev); pdata 95 drivers/hwmon/ads7871.c struct spi_device *spi = pdata->spi; pdata 161 drivers/hwmon/ads7871.c struct ads7871_data *pdata; pdata 184 drivers/hwmon/ads7871.c pdata = devm_kzalloc(dev, sizeof(struct ads7871_data), GFP_KERNEL); pdata 185 drivers/hwmon/ads7871.c if (!pdata) pdata 188 drivers/hwmon/ads7871.c pdata->spi = spi; pdata 191 drivers/hwmon/ads7871.c pdata, pdata 108 drivers/hwmon/coretemp.c struct platform_data *pdata = dev_get_drvdata(dev); pdata 109 drivers/hwmon/coretemp.c struct temp_data *tdata = pdata->core_data[attr->index]; pdata 112 drivers/hwmon/coretemp.c return sprintf(buf, "Package id %u\n", pdata->pkg_id); pdata 122 drivers/hwmon/coretemp.c struct platform_data *pdata = dev_get_drvdata(dev); pdata 123 drivers/hwmon/coretemp.c struct temp_data *tdata = pdata->core_data[attr->index]; pdata 136 drivers/hwmon/coretemp.c struct platform_data *pdata = dev_get_drvdata(dev); pdata 138 drivers/hwmon/coretemp.c return sprintf(buf, "%d\n", pdata->core_data[attr->index]->tjmax); pdata 145 drivers/hwmon/coretemp.c struct platform_data *pdata = dev_get_drvdata(dev); pdata 147 drivers/hwmon/coretemp.c return sprintf(buf, "%d\n", pdata->core_data[attr->index]->ttarget); pdata 155 drivers/hwmon/coretemp.c struct platform_data *pdata = dev_get_drvdata(dev); pdata 156 drivers/hwmon/coretemp.c struct temp_data *tdata = pdata->core_data[attr->index]; pdata 454 drivers/hwmon/coretemp.c struct platform_data *pdata = platform_get_drvdata(pdev); pdata 497 drivers/hwmon/coretemp.c pdata->core_data[attr_no] = tdata; pdata 500 drivers/hwmon/coretemp.c err = create_core_attrs(tdata, pdata->hwmon_dev, attr_no); pdata 506 drivers/hwmon/coretemp.c pdata->core_data[attr_no] = NULL; pdata 518 drivers/hwmon/coretemp.c static void coretemp_remove_core(struct platform_data *pdata, int indx) pdata 520 drivers/hwmon/coretemp.c struct temp_data *tdata = pdata->core_data[indx]; pdata 523 drivers/hwmon/coretemp.c sysfs_remove_group(&pdata->hwmon_dev->kobj, &tdata->attr_group); pdata 525 drivers/hwmon/coretemp.c kfree(pdata->core_data[indx]); pdata 526 drivers/hwmon/coretemp.c pdata->core_data[indx] = NULL; pdata 532 drivers/hwmon/coretemp.c struct platform_data *pdata; pdata 535 drivers/hwmon/coretemp.c pdata = devm_kzalloc(dev, sizeof(struct platform_data), GFP_KERNEL); pdata 536 drivers/hwmon/coretemp.c if (!pdata) pdata 539 drivers/hwmon/coretemp.c pdata->pkg_id = pdev->id; pdata 540 drivers/hwmon/coretemp.c platform_set_drvdata(pdev, pdata); pdata 542 drivers/hwmon/coretemp.c pdata->hwmon_dev = devm_hwmon_device_register_with_groups(dev, DRVNAME, pdata 543 drivers/hwmon/coretemp.c pdata, NULL); pdata 544 drivers/hwmon/coretemp.c return PTR_ERR_OR_ZERO(pdata->hwmon_dev); pdata 549 drivers/hwmon/coretemp.c struct platform_data *pdata = platform_get_drvdata(pdev); pdata 553 drivers/hwmon/coretemp.c if (pdata->core_data[i]) pdata 554 drivers/hwmon/coretemp.c coretemp_remove_core(pdata, i); pdata 593 drivers/hwmon/coretemp.c struct platform_data *pdata; pdata 633 drivers/hwmon/coretemp.c pdata = platform_get_drvdata(pdev); pdata 638 drivers/hwmon/coretemp.c if (!cpumask_intersects(&pdata->cpumask, topology_sibling_cpumask(cpu))) pdata 641 drivers/hwmon/coretemp.c cpumask_set_cpu(cpu, &pdata->cpumask); pdata 694 drivers/hwmon/g762.c struct g762_platform_data *pdata = dev_get_platdata(&client->dev); pdata 697 drivers/hwmon/g762.c if (!pdata) pdata 700 drivers/hwmon/g762.c ret = do_set_fan_gear_mode(&client->dev, pdata->fan_gear_mode); pdata 704 drivers/hwmon/g762.c ret = do_set_pwm_polarity(&client->dev, pdata->pwm_polarity); pdata 708 drivers/hwmon/g762.c ret = do_set_fan_startv(&client->dev, pdata->fan_startv); pdata 712 drivers/hwmon/g762.c return do_set_clk_freq(&client->dev, pdata->clk_freq); pdata 335 drivers/hwmon/ibmpowernv.c struct platform_data *pdata) pdata 349 drivers/hwmon/ibmpowernv.c pdata->nr_sensor_groups++; pdata 352 drivers/hwmon/ibmpowernv.c if (!pdata->nr_sensor_groups) pdata 355 drivers/hwmon/ibmpowernv.c sgrp_data = devm_kcalloc(&pdev->dev, pdata->nr_sensor_groups, pdata 381 drivers/hwmon/ibmpowernv.c pdata->sgrp_data = sgrp_data; pdata 387 drivers/hwmon/ibmpowernv.c static struct sensor_group_data *get_sensor_group(struct platform_data *pdata, pdata 391 drivers/hwmon/ibmpowernv.c struct sensor_group_data *sgrp_data = pdata->sgrp_data; pdata 420 drivers/hwmon/ibmpowernv.c for (i = 0; i < pdata->nr_sensor_groups; i++) pdata 434 drivers/hwmon/ibmpowernv.c struct platform_data *pdata = platform_get_drvdata(pdev); pdata 435 drivers/hwmon/ibmpowernv.c const struct attribute_group **pgroups = pdata->attr_groups; pdata 440 drivers/hwmon/ibmpowernv.c ret = init_sensor_group_data(pdev, pdata); pdata 476 drivers/hwmon/ibmpowernv.c pdata->sensors_count += sensor_groups[type].attr_count; pdata 554 drivers/hwmon/ibmpowernv.c struct platform_data *pdata = platform_get_drvdata(pdev); pdata 555 drivers/hwmon/ibmpowernv.c const struct attribute_group **pgroups = pdata->attr_groups; pdata 562 drivers/hwmon/ibmpowernv.c pdata->sensors_count, sizeof(*sdata), pdata 608 drivers/hwmon/ibmpowernv.c sgrp_data = get_sensor_group(pdata, np, type); pdata 664 drivers/hwmon/ibmpowernv.c struct platform_data *pdata; pdata 668 drivers/hwmon/ibmpowernv.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 669 drivers/hwmon/ibmpowernv.c if (!pdata) pdata 672 drivers/hwmon/ibmpowernv.c platform_set_drvdata(pdev, pdata); pdata 673 drivers/hwmon/ibmpowernv.c pdata->sensors_count = 0; pdata 674 drivers/hwmon/ibmpowernv.c pdata->nr_sensor_groups = 0; pdata 686 drivers/hwmon/ibmpowernv.c pdata, pdata 687 drivers/hwmon/ibmpowernv.c pdata->attr_groups); pdata 490 drivers/hwmon/ina209.c struct ina2xx_platform_data *pdata = dev_get_platdata(&client->dev); pdata 504 drivers/hwmon/ina209.c if (pdata) { pdata 505 drivers/hwmon/ina209.c if (pdata->shunt_uohms <= 0) pdata 507 drivers/hwmon/ina209.c shunt = pdata->shunt_uohms; pdata 458 drivers/hwmon/ina2xx.c struct ina2xx_platform_data *pdata = dev_get_platdata(dev); pdata 460 drivers/hwmon/ina2xx.c if (pdata) pdata 461 drivers/hwmon/ina2xx.c val = pdata->shunt_uohms; pdata 429 drivers/hwmon/ltc4245.c struct ltc4245_platform_data *pdata = dev_get_platdata(&client->dev); pdata 433 drivers/hwmon/ltc4245.c if (pdata) pdata 434 drivers/hwmon/ltc4245.c return pdata->use_extra_gpios; pdata 49 drivers/hwmon/max197.c struct max197_platform_data *pdata; pdata 183 drivers/hwmon/max197.c ret = data->pdata->convert(data->ctrl_bytes[channel]); pdata 262 drivers/hwmon/max197.c struct max197_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 265 drivers/hwmon/max197.c if (pdata == NULL) { pdata 270 drivers/hwmon/max197.c if (pdata->convert == NULL) { pdata 279 drivers/hwmon/max197.c data->pdata = pdata; pdata 469 drivers/hwmon/max6697.c struct max6697_platform_data *pdata) pdata 474 drivers/hwmon/max6697.c pdata->smbus_timeout_disable = pdata 476 drivers/hwmon/max6697.c pdata->extended_range_enable = pdata 478 drivers/hwmon/max6697.c pdata->beta_compensation = pdata 483 drivers/hwmon/max6697.c pdata->alert_mask = be32_to_cpu(prop[0]); pdata 486 drivers/hwmon/max6697.c pdata->over_temperature_mask = be32_to_cpu(prop[0]); pdata 490 drivers/hwmon/max6697.c pdata->resistance_cancellation = be32_to_cpu(prop[0]); pdata 492 drivers/hwmon/max6697.c pdata->resistance_cancellation = 0xfe; pdata 496 drivers/hwmon/max6697.c pdata->ideality_mask = be32_to_cpu(prop[0]); pdata 497 drivers/hwmon/max6697.c pdata->ideality_value = be32_to_cpu(prop[1]); pdata 504 drivers/hwmon/max6697.c struct max6697_platform_data *pdata = dev_get_platdata(&client->dev); pdata 515 drivers/hwmon/max6697.c if (!pdata && !client->dev.of_node) { pdata 537 drivers/hwmon/max6697.c pdata = &p; pdata 541 drivers/hwmon/max6697.c if (pdata->smbus_timeout_disable && pdata 545 drivers/hwmon/max6697.c if (pdata->extended_range_enable && pdata 550 drivers/hwmon/max6697.c if (pdata->resistance_cancellation && pdata 555 drivers/hwmon/max6697.c if (pdata->beta_compensation && pdata 565 drivers/hwmon/max6697.c MAX6697_MAP_BITS(pdata->alert_mask)); pdata 570 drivers/hwmon/max6697.c MAX6697_MAP_BITS(pdata->over_temperature_mask)); pdata 575 drivers/hwmon/max6697.c factor += hweight8(pdata->resistance_cancellation >> 1); pdata 577 drivers/hwmon/max6697.c pdata->resistance_cancellation >> 1); pdata 581 drivers/hwmon/max6697.c pdata->ideality_value); pdata 586 drivers/hwmon/max6697.c pdata->ideality_mask >> 1); pdata 127 drivers/hwmon/mcp3021.c u32 *pdata = dev_get_platdata(&client->dev); pdata 129 drivers/hwmon/mcp3021.c if (pdata) pdata 130 drivers/hwmon/mcp3021.c data->vdd = *pdata; pdata 103 drivers/hwmon/mlxreg-fan.c struct mlxreg_core_platform_data *pdata; pdata 389 drivers/hwmon/mlxreg-fan.c struct mlxreg_core_platform_data *pdata) pdata 391 drivers/hwmon/mlxreg-fan.c struct mlxreg_core_data *data = pdata->data; pdata 398 drivers/hwmon/mlxreg-fan.c for (i = 0; i < pdata->counter; i++, data++) { pdata 467 drivers/hwmon/mlxreg-fan.c struct mlxreg_core_platform_data *pdata; pdata 473 drivers/hwmon/mlxreg-fan.c pdata = dev_get_platdata(dev); pdata 474 drivers/hwmon/mlxreg-fan.c if (!pdata) { pdata 484 drivers/hwmon/mlxreg-fan.c fan->regmap = pdata->regmap; pdata 486 drivers/hwmon/mlxreg-fan.c err = mlxreg_fan_config(fan, pdata); pdata 320 drivers/hwmon/ntc_thermistor.c struct ntc_thermistor_platform_data *pdata; pdata 326 drivers/hwmon/ntc_thermistor.c static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata) pdata 328 drivers/hwmon/ntc_thermistor.c struct iio_channel *channel = pdata->chan; pdata 340 drivers/hwmon/ntc_thermistor.c uv = (pdata->pullup_uv * (s64)raw) >> 12; pdata 387 drivers/hwmon/ntc_thermistor.c struct ntc_thermistor_platform_data *pdata; pdata 393 drivers/hwmon/ntc_thermistor.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 394 drivers/hwmon/ntc_thermistor.c if (!pdata) pdata 408 drivers/hwmon/ntc_thermistor.c if (of_property_read_u32(np, "pullup-uv", &pdata->pullup_uv)) pdata 410 drivers/hwmon/ntc_thermistor.c if (of_property_read_u32(np, "pullup-ohm", &pdata->pullup_ohm)) pdata 412 drivers/hwmon/ntc_thermistor.c if (of_property_read_u32(np, "pulldown-ohm", &pdata->pulldown_ohm)) pdata 416 drivers/hwmon/ntc_thermistor.c pdata->connect = NTC_CONNECTED_POSITIVE; pdata 418 drivers/hwmon/ntc_thermistor.c pdata->connect = NTC_CONNECTED_GROUND; pdata 420 drivers/hwmon/ntc_thermistor.c pdata->chan = chan; pdata 421 drivers/hwmon/ntc_thermistor.c pdata->read_uv = ntc_adc_iio_read; pdata 423 drivers/hwmon/ntc_thermistor.c return pdata; pdata 447 drivers/hwmon/ntc_thermistor.c struct ntc_thermistor_platform_data *pdata = data->pdata; pdata 448 drivers/hwmon/ntc_thermistor.c u32 puv = pdata->pullup_uv; pdata 450 drivers/hwmon/ntc_thermistor.c puo = pdata->pullup_ohm; pdata 451 drivers/hwmon/ntc_thermistor.c pdo = pdata->pulldown_ohm; pdata 454 drivers/hwmon/ntc_thermistor.c return (pdata->connect == NTC_CONNECTED_POSITIVE) ? pdata 457 drivers/hwmon/ntc_thermistor.c return (pdata->connect == NTC_CONNECTED_POSITIVE) ? pdata 460 drivers/hwmon/ntc_thermistor.c if (pdata->connect == NTC_CONNECTED_POSITIVE && puo == 0) pdata 462 drivers/hwmon/ntc_thermistor.c else if (pdata->connect == NTC_CONNECTED_GROUND && pdo == 0) pdata 464 drivers/hwmon/ntc_thermistor.c else if (pdata->connect == NTC_CONNECTED_POSITIVE) pdata 563 drivers/hwmon/ntc_thermistor.c if (data->pdata->read_ohm) pdata 564 drivers/hwmon/ntc_thermistor.c return data->pdata->read_ohm(); pdata 566 drivers/hwmon/ntc_thermistor.c if (data->pdata->read_uv) { pdata 567 drivers/hwmon/ntc_thermistor.c read_uv = data->pdata->read_uv(data->pdata); pdata 640 drivers/hwmon/ntc_thermistor.c struct ntc_thermistor_platform_data *pdata; pdata 644 drivers/hwmon/ntc_thermistor.c pdata = ntc_thermistor_parse_dt(dev); pdata 645 drivers/hwmon/ntc_thermistor.c if (IS_ERR(pdata)) pdata 646 drivers/hwmon/ntc_thermistor.c return PTR_ERR(pdata); pdata 647 drivers/hwmon/ntc_thermistor.c else if (pdata == NULL) pdata 648 drivers/hwmon/ntc_thermistor.c pdata = dev_get_platdata(dev); pdata 650 drivers/hwmon/ntc_thermistor.c if (!pdata) { pdata 656 drivers/hwmon/ntc_thermistor.c if (!pdata->read_uv && !pdata->read_ohm) { pdata 662 drivers/hwmon/ntc_thermistor.c if (pdata->read_uv && pdata->read_ohm) { pdata 665 drivers/hwmon/ntc_thermistor.c pdata->read_uv = NULL; pdata 668 drivers/hwmon/ntc_thermistor.c if (pdata->read_uv && (pdata->pullup_uv == 0 || pdata 669 drivers/hwmon/ntc_thermistor.c (pdata->pullup_ohm == 0 && pdata->connect == pdata 671 drivers/hwmon/ntc_thermistor.c (pdata->pulldown_ohm == 0 && pdata->connect == pdata 673 drivers/hwmon/ntc_thermistor.c (pdata->connect != NTC_CONNECTED_POSITIVE && pdata 674 drivers/hwmon/ntc_thermistor.c pdata->connect != NTC_CONNECTED_GROUND))) { pdata 685 drivers/hwmon/ntc_thermistor.c data->pdata = pdata; pdata 165 drivers/hwmon/pmbus/pmbus.c struct pmbus_platform_data *pdata = NULL; pdata 175 drivers/hwmon/pmbus/pmbus.c pdata = devm_kzalloc(dev, sizeof(struct pmbus_platform_data), pdata 177 drivers/hwmon/pmbus/pmbus.c if (!pdata) pdata 180 drivers/hwmon/pmbus/pmbus.c pdata->flags = PMBUS_SKIP_STATUS_CHECK; pdata 185 drivers/hwmon/pmbus/pmbus.c dev->platform_data = pdata; pdata 2219 drivers/hwmon/pmbus/pmbus_core.c const struct pmbus_platform_data *pdata = dev_get_platdata(dev); pdata 2229 drivers/hwmon/pmbus/pmbus_core.c if (pdata && pdata->reg_init_data) pdata 2230 drivers/hwmon/pmbus/pmbus_core.c config.init_data = &pdata->reg_init_data[i]; pdata 2273 drivers/hwmon/pmbus/pmbus_core.c struct pmbus_data *pdata = i2c_get_clientdata(entry->client); pdata 2275 drivers/hwmon/pmbus/pmbus_core.c rc = pdata->read_status(entry->client, entry->page); pdata 2432 drivers/hwmon/pmbus/pmbus_core.c const struct pmbus_platform_data *pdata = dev_get_platdata(dev); pdata 2462 drivers/hwmon/pmbus/pmbus_core.c if (pdata) pdata 2463 drivers/hwmon/pmbus/pmbus_core.c data->flags = pdata->flags; pdata 156 drivers/hwmon/s3c-hwmon.c struct s3c_hwmon_pdata *pdata = dev_get_platdata(dev); pdata 160 drivers/hwmon/s3c-hwmon.c cfg = pdata->in[sen_attr->index]; pdata 185 drivers/hwmon/s3c-hwmon.c struct s3c_hwmon_pdata *pdata = dev_get_platdata(dev); pdata 188 drivers/hwmon/s3c-hwmon.c cfg = pdata->in[sen_attr->index]; pdata 265 drivers/hwmon/s3c-hwmon.c struct s3c_hwmon_pdata *pdata = dev_get_platdata(&dev->dev); pdata 270 drivers/hwmon/s3c-hwmon.c if (!pdata) { pdata 306 drivers/hwmon/s3c-hwmon.c for (i = 0; i < ARRAY_SIZE(pdata->in); i++) { pdata 307 drivers/hwmon/s3c-hwmon.c struct s3c_hwmon_chcfg *cfg = pdata->in[i]; pdata 322 drivers/hwmon/s3c-hwmon.c ret = s3c_hwmon_create_attr(&dev->dev, pdata->in[i], pdata 88 drivers/hwspinlock/u8500_hsem.c struct hwspinlock_pdata *pdata = pdev->dev.platform_data; pdata 96 drivers/hwspinlock/u8500_hsem.c if (!pdata) pdata 129 drivers/hwspinlock/u8500_hsem.c pdata->base_id, num_locks); pdata 506 drivers/hwtracing/coresight/coresight-catu.c struct coresight_platform_data *pdata = NULL; pdata 546 drivers/hwtracing/coresight/coresight-catu.c pdata = coresight_get_platform_data(dev); pdata 547 drivers/hwtracing/coresight/coresight-catu.c if (IS_ERR(pdata)) { pdata 548 drivers/hwtracing/coresight/coresight-catu.c ret = PTR_ERR(pdata); pdata 551 drivers/hwtracing/coresight/coresight-catu.c dev->platform_data = pdata; pdata 554 drivers/hwtracing/coresight/coresight-catu.c catu_desc.pdata = pdata; pdata 731 drivers/hwtracing/coresight/coresight-etb10.c struct coresight_platform_data *pdata = NULL; pdata 774 drivers/hwtracing/coresight/coresight-etb10.c pdata = coresight_get_platform_data(dev); pdata 775 drivers/hwtracing/coresight/coresight-etb10.c if (IS_ERR(pdata)) pdata 776 drivers/hwtracing/coresight/coresight-etb10.c return PTR_ERR(pdata); pdata 777 drivers/hwtracing/coresight/coresight-etb10.c adev->dev.platform_data = pdata; pdata 782 drivers/hwtracing/coresight/coresight-etb10.c desc.pdata = pdata; pdata 790 drivers/hwtracing/coresight/coresight-etm3x.c struct coresight_platform_data *pdata = NULL; pdata 854 drivers/hwtracing/coresight/coresight-etm3x.c pdata = coresight_get_platform_data(dev); pdata 855 drivers/hwtracing/coresight/coresight-etm3x.c if (IS_ERR(pdata)) { pdata 856 drivers/hwtracing/coresight/coresight-etm3x.c ret = PTR_ERR(pdata); pdata 859 drivers/hwtracing/coresight/coresight-etm3x.c adev->dev.platform_data = pdata; pdata 864 drivers/hwtracing/coresight/coresight-etm3x.c desc.pdata = pdata; pdata 1093 drivers/hwtracing/coresight/coresight-etm4x.c struct coresight_platform_data *pdata = NULL; pdata 1150 drivers/hwtracing/coresight/coresight-etm4x.c pdata = coresight_get_platform_data(dev); pdata 1151 drivers/hwtracing/coresight/coresight-etm4x.c if (IS_ERR(pdata)) { pdata 1152 drivers/hwtracing/coresight/coresight-etm4x.c ret = PTR_ERR(pdata); pdata 1155 drivers/hwtracing/coresight/coresight-etm4x.c adev->dev.platform_data = pdata; pdata 1160 drivers/hwtracing/coresight/coresight-etm4x.c desc.pdata = pdata; pdata 210 drivers/hwtracing/coresight/coresight-funnel.c struct coresight_platform_data *pdata = NULL; pdata 249 drivers/hwtracing/coresight/coresight-funnel.c pdata = coresight_get_platform_data(dev); pdata 250 drivers/hwtracing/coresight/coresight-funnel.c if (IS_ERR(pdata)) { pdata 251 drivers/hwtracing/coresight/coresight-funnel.c ret = PTR_ERR(pdata); pdata 254 drivers/hwtracing/coresight/coresight-funnel.c dev->platform_data = pdata; pdata 259 drivers/hwtracing/coresight/coresight-funnel.c desc.pdata = pdata; pdata 27 drivers/hwtracing/coresight/coresight-platform.c struct coresight_platform_data *pdata) pdata 29 drivers/hwtracing/coresight/coresight-platform.c if (pdata->nr_outport) { pdata 30 drivers/hwtracing/coresight/coresight-platform.c pdata->conns = devm_kzalloc(dev, pdata->nr_outport * pdata 31 drivers/hwtracing/coresight/coresight-platform.c sizeof(*pdata->conns), pdata 33 drivers/hwtracing/coresight/coresight-platform.c if (!pdata->conns) pdata 238 drivers/hwtracing/coresight/coresight-platform.c struct coresight_platform_data *pdata) pdata 248 drivers/hwtracing/coresight/coresight-platform.c of_coresight_get_ports(node, &pdata->nr_inport, &pdata->nr_outport); pdata 251 drivers/hwtracing/coresight/coresight-platform.c if (!pdata->nr_outport) pdata 254 drivers/hwtracing/coresight/coresight-platform.c ret = coresight_alloc_conns(dev, pdata); pdata 270 drivers/hwtracing/coresight/coresight-platform.c conn = pdata->conns; pdata 299 drivers/hwtracing/coresight/coresight-platform.c struct coresight_platform_data *pdata) pdata 641 drivers/hwtracing/coresight/coresight-platform.c struct coresight_platform_data *pdata) pdata 647 drivers/hwtracing/coresight/coresight-platform.c pdata->nr_inport = pdata->nr_outport = 0; pdata 675 drivers/hwtracing/coresight/coresight-platform.c pdata->nr_outport++; pdata 678 drivers/hwtracing/coresight/coresight-platform.c pdata->nr_inport++; pdata 682 drivers/hwtracing/coresight/coresight-platform.c rc = coresight_alloc_conns(&adev->dev, pdata); pdata 687 drivers/hwtracing/coresight/coresight-platform.c for (i = 0; i < pdata->nr_outport; i++) pdata 688 drivers/hwtracing/coresight/coresight-platform.c pdata->conns[i] = conns[i]; pdata 743 drivers/hwtracing/coresight/coresight-platform.c struct coresight_platform_data *pdata) pdata 751 drivers/hwtracing/coresight/coresight-platform.c return acpi_coresight_parse_graph(adev, pdata); pdata 758 drivers/hwtracing/coresight/coresight-platform.c struct coresight_platform_data *pdata) pdata 783 drivers/hwtracing/coresight/coresight-platform.c struct coresight_platform_data *pdata = NULL; pdata 789 drivers/hwtracing/coresight/coresight-platform.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 790 drivers/hwtracing/coresight/coresight-platform.c if (!pdata) { pdata 796 drivers/hwtracing/coresight/coresight-platform.c ret = of_get_coresight_platform_data(dev, pdata); pdata 798 drivers/hwtracing/coresight/coresight-platform.c ret = acpi_get_coresight_platform_data(dev, pdata); pdata 801 drivers/hwtracing/coresight/coresight-platform.c return pdata; pdata 803 drivers/hwtracing/coresight/coresight-platform.c if (!IS_ERR_OR_NULL(pdata)) pdata 805 drivers/hwtracing/coresight/coresight-platform.c coresight_release_platform_data(pdata); pdata 203 drivers/hwtracing/coresight/coresight-priv.h void coresight_release_platform_data(struct coresight_platform_data *pdata); pdata 203 drivers/hwtracing/coresight/coresight-replicator.c struct coresight_platform_data *pdata = NULL; pdata 244 drivers/hwtracing/coresight/coresight-replicator.c pdata = coresight_get_platform_data(dev); pdata 245 drivers/hwtracing/coresight/coresight-replicator.c if (IS_ERR(pdata)) { pdata 246 drivers/hwtracing/coresight/coresight-replicator.c ret = PTR_ERR(pdata); pdata 249 drivers/hwtracing/coresight/coresight-replicator.c dev->platform_data = pdata; pdata 254 drivers/hwtracing/coresight/coresight-replicator.c desc.pdata = dev->platform_data; pdata 859 drivers/hwtracing/coresight/coresight-stm.c struct coresight_platform_data *pdata = NULL; pdata 923 drivers/hwtracing/coresight/coresight-stm.c pdata = coresight_get_platform_data(dev); pdata 924 drivers/hwtracing/coresight/coresight-stm.c if (IS_ERR(pdata)) { pdata 925 drivers/hwtracing/coresight/coresight-stm.c ret = PTR_ERR(pdata); pdata 928 drivers/hwtracing/coresight/coresight-stm.c adev->dev.platform_data = pdata; pdata 933 drivers/hwtracing/coresight/coresight-stm.c desc.pdata = pdata; pdata 761 drivers/hwtracing/coresight/coresight-tmc-etr.c for (i = 0; i < etr->pdata->nr_outport; i++) { pdata 762 drivers/hwtracing/coresight/coresight-tmc-etr.c tmp = etr->pdata->conns[i].child_dev; pdata 440 drivers/hwtracing/coresight/coresight-tmc.c struct coresight_platform_data *pdata = NULL; pdata 515 drivers/hwtracing/coresight/coresight-tmc.c pdata = coresight_get_platform_data(dev); pdata 516 drivers/hwtracing/coresight/coresight-tmc.c if (IS_ERR(pdata)) { pdata 517 drivers/hwtracing/coresight/coresight-tmc.c ret = PTR_ERR(pdata); pdata 520 drivers/hwtracing/coresight/coresight-tmc.c adev->dev.platform_data = pdata; pdata 521 drivers/hwtracing/coresight/coresight-tmc.c desc.pdata = pdata; pdata 125 drivers/hwtracing/coresight/coresight-tpiu.c struct coresight_platform_data *pdata = NULL; pdata 156 drivers/hwtracing/coresight/coresight-tpiu.c pdata = coresight_get_platform_data(dev); pdata 157 drivers/hwtracing/coresight/coresight-tpiu.c if (IS_ERR(pdata)) pdata 158 drivers/hwtracing/coresight/coresight-tpiu.c return PTR_ERR(pdata); pdata 159 drivers/hwtracing/coresight/coresight-tpiu.c dev->platform_data = pdata; pdata 164 drivers/hwtracing/coresight/coresight-tpiu.c desc.pdata = pdata; pdata 103 drivers/hwtracing/coresight/coresight.c for (i = 0; i < parent->pdata->nr_outport; i++) { pdata 104 drivers/hwtracing/coresight/coresight.c conn = &parent->pdata->conns[i]; pdata 121 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { pdata 122 drivers/hwtracing/coresight/coresight.c conn = &csdev->pdata->conns[i]; pdata 296 drivers/hwtracing/coresight/coresight.c nr_conns = csdev->pdata->nr_inport; pdata 298 drivers/hwtracing/coresight/coresight.c nr_conns = csdev->pdata->nr_outport; pdata 581 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { pdata 584 drivers/hwtracing/coresight/coresight.c child = csdev->pdata->conns[i].child_dev; pdata 600 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { pdata 603 drivers/hwtracing/coresight/coresight.c child = csdev->pdata->conns[i].child_dev; pdata 633 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { pdata 636 drivers/hwtracing/coresight/coresight.c child_dev = csdev->pdata->conns[i].child_dev; pdata 990 drivers/hwtracing/coresight/coresight.c for (i = 0; i < i_csdev->pdata->nr_outport; i++) { pdata 991 drivers/hwtracing/coresight/coresight.c conn = &i_csdev->pdata->conns[i]; pdata 1028 drivers/hwtracing/coresight/coresight.c for (i = 0; i < csdev->pdata->nr_outport; i++) { pdata 1029 drivers/hwtracing/coresight/coresight.c struct coresight_connection *conn = &csdev->pdata->conns[i]; pdata 1061 drivers/hwtracing/coresight/coresight.c for (i = 0; i < iterator->pdata->nr_outport; i++) { pdata 1062 drivers/hwtracing/coresight/coresight.c conn = &iterator->pdata->conns[i]; pdata 1100 drivers/hwtracing/coresight/coresight.c if (csdev->pdata->nr_inport) pdata 1159 drivers/hwtracing/coresight/coresight.c void coresight_release_platform_data(struct coresight_platform_data *pdata) pdata 1163 drivers/hwtracing/coresight/coresight.c for (i = 0; i < pdata->nr_outport; i++) { pdata 1164 drivers/hwtracing/coresight/coresight.c if (pdata->conns[i].child_fwnode) { pdata 1165 drivers/hwtracing/coresight/coresight.c fwnode_handle_put(pdata->conns[i].child_fwnode); pdata 1166 drivers/hwtracing/coresight/coresight.c pdata->conns[i].child_fwnode = NULL; pdata 1190 drivers/hwtracing/coresight/coresight.c nr_refcnts = desc->pdata->nr_inport; pdata 1192 drivers/hwtracing/coresight/coresight.c nr_refcnts = desc->pdata->nr_outport; pdata 1203 drivers/hwtracing/coresight/coresight.c csdev->pdata = desc->pdata; pdata 1261 drivers/hwtracing/coresight/coresight.c coresight_release_platform_data(desc->pdata); pdata 1271 drivers/hwtracing/coresight/coresight.c coresight_release_platform_data(csdev->pdata); pdata 214 drivers/i2c/busses/i2c-at91-core.c dev->pdata = at91_twi_get_driver_data(pdev); pdata 215 drivers/i2c/busses/i2c-at91-core.c if (!dev->pdata) pdata 49 drivers/i2c/busses/i2c-at91-master.c struct at91_twi_pdata *pdata = dev->pdata; pdata 50 drivers/i2c/busses/i2c-at91-master.c int offset = pdata->clk_offset; pdata 51 drivers/i2c/busses/i2c-at91-master.c int max_ckdiv = pdata->clk_max_div; pdata 68 drivers/i2c/busses/i2c-at91-master.c if (pdata->has_hold_field) { pdata 441 drivers/i2c/busses/i2c-at91-master.c bool has_unre_flag = dev->pdata->has_unre_flag; pdata 442 drivers/i2c/busses/i2c-at91-master.c bool has_alt_cmd = dev->pdata->has_alt_cmd; pdata 636 drivers/i2c/busses/i2c-at91-master.c if (dev->pdata->has_alt_cmd) { pdata 137 drivers/i2c/busses/i2c-at91.h struct at91_twi_pdata *pdata; pdata 135 drivers/i2c/busses/i2c-davinci.c struct davinci_i2c_platform_data *pdata; pdata 171 drivers/i2c/busses/i2c-davinci.c struct davinci_i2c_platform_data *pdata = dev->pdata; pdata 215 drivers/i2c/busses/i2c-davinci.c clk = ((input_clock / (psc + 1)) / (pdata->bus_freq * 1000)); pdata 217 drivers/i2c/busses/i2c-davinci.c if (input_clock / (psc + 1) / clk > pdata->bus_freq * 1000) pdata 224 drivers/i2c/busses/i2c-davinci.c if (pdata->bus_freq > 100) pdata 258 drivers/i2c/busses/i2c-davinci.c struct davinci_i2c_platform_data *pdata = dev->pdata; pdata 278 drivers/i2c/busses/i2c-davinci.c pdata->bus_freq, pdata->bus_delay); pdata 417 drivers/i2c/busses/i2c-davinci.c struct davinci_i2c_platform_data *pdata = dev->pdata; pdata 428 drivers/i2c/busses/i2c-davinci.c if (pdata->bus_delay) pdata 429 drivers/i2c/busses/i2c-davinci.c udelay(pdata->bus_delay); pdata 789 drivers/i2c/busses/i2c-davinci.c dev->pdata = dev_get_platdata(&pdev->dev); pdata 792 drivers/i2c/busses/i2c-davinci.c if (!dev->pdata && pdev->dev.of_node) { pdata 795 drivers/i2c/busses/i2c-davinci.c dev->pdata = devm_kzalloc(&pdev->dev, pdata 797 drivers/i2c/busses/i2c-davinci.c if (!dev->pdata) pdata 800 drivers/i2c/busses/i2c-davinci.c memcpy(dev->pdata, &davinci_i2c_platform_data_default, pdata 804 drivers/i2c/busses/i2c-davinci.c dev->pdata->bus_freq = prop / 1000; pdata 806 drivers/i2c/busses/i2c-davinci.c dev->pdata->has_pfunc = pdata 809 drivers/i2c/busses/i2c-davinci.c } else if (!dev->pdata) { pdata 810 drivers/i2c/busses/i2c-davinci.c dev->pdata = &davinci_i2c_platform_data_default; pdata 861 drivers/i2c/busses/i2c-davinci.c if (dev->pdata->has_pfunc) pdata 863 drivers/i2c/busses/i2c-davinci.c else if (dev->pdata->gpio_recovery) { pdata 253 drivers/i2c/busses/i2c-designware-platdrv.c struct dw_i2c_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 288 drivers/i2c/busses/i2c-designware-platdrv.c if (pdata) pdata 289 drivers/i2c/busses/i2c-designware-platdrv.c t->bus_freq_hz = pdata->i2c_scl_freq; pdata 192 drivers/i2c/busses/i2c-dln2.c struct dln2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 203 drivers/i2c/busses/i2c-dln2.c dln2->port = pdata->port; pdata 26 drivers/i2c/busses/i2c-gpio.c struct i2c_gpio_platform_data pdata; pdata 304 drivers/i2c/busses/i2c-gpio.c struct i2c_gpio_platform_data *pdata) pdata 308 drivers/i2c/busses/i2c-gpio.c of_property_read_u32(np, "i2c-gpio,delay-us", &pdata->udelay); pdata 311 drivers/i2c/busses/i2c-gpio.c pdata->timeout = msecs_to_jiffies(reg); pdata 313 drivers/i2c/busses/i2c-gpio.c pdata->sda_is_open_drain = pdata 315 drivers/i2c/busses/i2c-gpio.c pdata->scl_is_open_drain = pdata 317 drivers/i2c/busses/i2c-gpio.c pdata->scl_is_output_only = pdata 360 drivers/i2c/busses/i2c-gpio.c struct i2c_gpio_platform_data *pdata; pdata 374 drivers/i2c/busses/i2c-gpio.c pdata = &priv->pdata; pdata 377 drivers/i2c/busses/i2c-gpio.c of_i2c_gpio_get_props(np, pdata); pdata 384 drivers/i2c/busses/i2c-gpio.c memcpy(pdata, dev_get_platdata(dev), sizeof(*pdata)); pdata 395 drivers/i2c/busses/i2c-gpio.c if (pdata->sda_is_open_drain) pdata 403 drivers/i2c/busses/i2c-gpio.c if (pdata->scl_is_open_drain) pdata 419 drivers/i2c/busses/i2c-gpio.c if (!pdata->scl_is_output_only) pdata 423 drivers/i2c/busses/i2c-gpio.c if (pdata->udelay) pdata 424 drivers/i2c/busses/i2c-gpio.c bit_data->udelay = pdata->udelay; pdata 425 drivers/i2c/busses/i2c-gpio.c else if (pdata->scl_is_output_only) pdata 430 drivers/i2c/busses/i2c-gpio.c if (pdata->timeout) pdata 431 drivers/i2c/busses/i2c-gpio.c bit_data->timeout = pdata->timeout; pdata 462 drivers/i2c/busses/i2c-gpio.c pdata->scl_is_output_only pdata 1060 drivers/i2c/busses/i2c-imx.c struct imxi2c_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1145 drivers/i2c/busses/i2c-imx.c if (ret < 0 && pdata && pdata->bitrate) pdata 1146 drivers/i2c/busses/i2c-imx.c i2c_imx->bitrate = pdata->bitrate; pdata 879 drivers/i2c/busses/i2c-mv64xxx.c struct mv64xxx_i2c_pdata *pdata = dev_get_platdata(&pd->dev); pdata 883 drivers/i2c/busses/i2c-mv64xxx.c if ((!pdata && !pd->dev.of_node)) pdata 918 drivers/i2c/busses/i2c-mv64xxx.c if (pdata) { pdata 919 drivers/i2c/busses/i2c-mv64xxx.c drv_data->freq_m = pdata->freq_m; pdata 920 drivers/i2c/busses/i2c-mv64xxx.c drv_data->freq_n = pdata->freq_n; pdata 921 drivers/i2c/busses/i2c-mv64xxx.c drv_data->adapter.timeout = msecs_to_jiffies(pdata->timeout); pdata 608 drivers/i2c/busses/i2c-ocores.c struct ocores_i2c_platform_data *pdata; pdata 641 drivers/i2c/busses/i2c-ocores.c pdata = dev_get_platdata(&pdev->dev); pdata 642 drivers/i2c/busses/i2c-ocores.c if (pdata) { pdata 643 drivers/i2c/busses/i2c-ocores.c i2c->reg_shift = pdata->reg_shift; pdata 644 drivers/i2c/busses/i2c-ocores.c i2c->reg_io_width = pdata->reg_io_width; pdata 645 drivers/i2c/busses/i2c-ocores.c i2c->ip_clock_khz = pdata->clock_khz; pdata 646 drivers/i2c/busses/i2c-ocores.c if (pdata->bus_khz) pdata 647 drivers/i2c/busses/i2c-ocores.c i2c->bus_clock_khz = pdata->bus_khz; pdata 660 drivers/i2c/busses/i2c-ocores.c bool be = pdata ? pdata->big_endian : pdata 732 drivers/i2c/busses/i2c-ocores.c if (pdata) { pdata 733 drivers/i2c/busses/i2c-ocores.c for (i = 0; i < pdata->num_devices; i++) pdata 734 drivers/i2c/busses/i2c-ocores.c i2c_new_device(&i2c->adap, pdata->devices + i); pdata 1359 drivers/i2c/busses/i2c-omap.c const struct omap_i2c_bus_platform_data *pdata = pdata 1387 drivers/i2c/busses/i2c-omap.c pdata = match->data; pdata 1388 drivers/i2c/busses/i2c-omap.c omap->flags = pdata->flags; pdata 1393 drivers/i2c/busses/i2c-omap.c } else if (pdata != NULL) { pdata 1394 drivers/i2c/busses/i2c-omap.c omap->speed = pdata->clkrate; pdata 1395 drivers/i2c/busses/i2c-omap.c omap->flags = pdata->flags; pdata 1396 drivers/i2c/busses/i2c-omap.c omap->set_mpu_wkup_lat = pdata->set_mpu_wkup_lat; pdata 27 drivers/i2c/busses/i2c-pxa-pci.c struct i2c_pxa_platform_data pdata; pdata 33 drivers/i2c/busses/i2c-pxa-pci.c memset(&pdata, 0, sizeof(struct i2c_pxa_platform_data)); pdata 61 drivers/i2c/busses/i2c-pxa-pci.c pdata.fast_mode = 1; pdata 86 drivers/i2c/busses/i2c-pxa-pci.c ret = platform_device_add_data(pdev, &pdata, sizeof(pdata)); pdata 115 drivers/i2c/busses/i2c-s3c2410.c struct s3c2410_platform_i2c *pdata; pdata 830 drivers/i2c/busses/i2c-s3c2410.c struct s3c2410_platform_i2c *pdata = i2c->pdata; pdata 840 drivers/i2c/busses/i2c-s3c2410.c dev_dbg(i2c->dev, "pdata desired frequency %lu\n", pdata->frequency); pdata 842 drivers/i2c/busses/i2c-s3c2410.c target_frequency = pdata->frequency ? pdata->frequency : 100000; pdata 872 drivers/i2c/busses/i2c-s3c2410.c if (pdata->sda_delay) { pdata 873 drivers/i2c/busses/i2c-s3c2410.c sda_delay = clkin * pdata->sda_delay; pdata 979 drivers/i2c/busses/i2c-s3c2410.c struct s3c2410_platform_i2c *pdata; pdata 984 drivers/i2c/busses/i2c-s3c2410.c pdata = i2c->pdata; pdata 988 drivers/i2c/busses/i2c-s3c2410.c writeb(pdata->slave_addr, i2c->regs + S3C2410_IICADD); pdata 990 drivers/i2c/busses/i2c-s3c2410.c dev_info(i2c->dev, "slave address 0x%02x\n", pdata->slave_addr); pdata 1018 drivers/i2c/busses/i2c-s3c2410.c struct s3c2410_platform_i2c *pdata = i2c->pdata; pdata 1024 drivers/i2c/busses/i2c-s3c2410.c pdata->bus_num = -1; /* i2c bus number is dynamically assigned */ pdata 1025 drivers/i2c/busses/i2c-s3c2410.c of_property_read_u32(np, "samsung,i2c-sda-delay", &pdata->sda_delay); pdata 1026 drivers/i2c/busses/i2c-s3c2410.c of_property_read_u32(np, "samsung,i2c-slave-addr", &pdata->slave_addr); pdata 1028 drivers/i2c/busses/i2c-s3c2410.c (u32 *)&pdata->frequency); pdata 1053 drivers/i2c/busses/i2c-s3c2410.c struct s3c2410_platform_i2c *pdata = NULL; pdata 1058 drivers/i2c/busses/i2c-s3c2410.c pdata = dev_get_platdata(&pdev->dev); pdata 1059 drivers/i2c/busses/i2c-s3c2410.c if (!pdata) { pdata 1069 drivers/i2c/busses/i2c-s3c2410.c i2c->pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1070 drivers/i2c/busses/i2c-s3c2410.c if (!i2c->pdata) pdata 1075 drivers/i2c/busses/i2c-s3c2410.c if (pdata) pdata 1076 drivers/i2c/busses/i2c-s3c2410.c memcpy(i2c->pdata, pdata, sizeof(*pdata)); pdata 1115 drivers/i2c/busses/i2c-s3c2410.c if (i2c->pdata->cfg_gpio) pdata 1116 drivers/i2c/busses/i2c-s3c2410.c i2c->pdata->cfg_gpio(to_platform_device(i2c->dev)); pdata 1169 drivers/i2c/busses/i2c-s3c2410.c i2c->adap.nr = i2c->pdata->bus_num; pdata 728 drivers/i2c/busses/i2c-xiic.c struct xiic_i2c_platform_data *pdata; pdata 747 drivers/i2c/busses/i2c-xiic.c pdata = dev_get_platdata(&pdev->dev); pdata 804 drivers/i2c/busses/i2c-xiic.c if (pdata) { pdata 806 drivers/i2c/busses/i2c-xiic.c for (i = 0; i < pdata->num_devices; i++) pdata 807 drivers/i2c/busses/i2c-xiic.c i2c_new_device(&i2c->adap, pdata->devices + i); pdata 96 drivers/i2c/muxes/i2c-mux-mlxcpld.c struct mlxcpld_mux_plat_data *pdata = dev_get_platdata(&client->dev); pdata 100 drivers/i2c/muxes/i2c-mux-mlxcpld.c I2C_SMBUS_WRITE, pdata->sel_reg_addr, pdata 136 drivers/i2c/muxes/i2c-mux-mlxcpld.c struct mlxcpld_mux_plat_data *pdata = dev_get_platdata(&client->dev); pdata 142 drivers/i2c/muxes/i2c-mux-mlxcpld.c if (!pdata) pdata 161 drivers/i2c/muxes/i2c-mux-mlxcpld.c if (num >= pdata->num_adaps) pdata 165 drivers/i2c/muxes/i2c-mux-mlxcpld.c force = pdata->adap_ids[num]; pdata 120 drivers/ide/gayle.c struct gayle_ide_platform_data *pdata; pdata 135 drivers/ide/gayle.c pdata = dev_get_platdata(&pdev->dev); pdata 137 drivers/ide/gayle.c pdata->explicit_ack ? 1200 : 4000, pdata 140 drivers/ide/gayle.c base = (unsigned long)ZTWO_VADDR(pdata->base); pdata 142 drivers/ide/gayle.c irqport = (unsigned long)ZTWO_VADDR(pdata->irqport); pdata 143 drivers/ide/gayle.c if (pdata->explicit_ack) pdata 23 drivers/ide/ide_platform.c struct pata_platform_info *pdata, int irq) pdata 30 drivers/ide/ide_platform.c port += (1 << pdata->ioport_shift); pdata 32 drivers/ide/ide_platform.c i++, port += (1 << pdata->ioport_shift)) pdata 49 drivers/ide/ide_platform.c struct pata_platform_info *pdata; pdata 55 drivers/ide/ide_platform.c pdata = dev_get_platdata(&pdev->dev); pdata 90 drivers/ide/ide_platform.c plat_ide_setup_ports(&hw, base, alt_base, pdata, res_irq->start); pdata 61 drivers/ide/tx4938ide.c struct tx4938ide_platform_info *pdata = dev_get_platdata(hwif->dev); pdata 68 drivers/ide/tx4938ide.c tx4938ide_tune_ebusc(pdata->ebus_ch, pdata->gbus_clock, safe); pdata 135 drivers/ide/tx4938ide.c struct tx4938ide_platform_info *pdata = dev_get_platdata(&pdev->dev); pdata 151 drivers/ide/tx4938ide.c 8 << pdata->ioport_shift); pdata 154 drivers/ide/tx4938ide.c (6 << pdata->ioport_shift), pdata 155 drivers/ide/tx4938ide.c 1 << pdata->ioport_shift); pdata 160 drivers/ide/tx4938ide.c if (pdata->ioport_shift) { pdata 171 drivers/ide/tx4938ide.c port + (i << pdata->ioport_shift); pdata 180 drivers/ide/tx4938ide.c if (pdata->gbus_clock) pdata 181 drivers/ide/tx4938ide.c tx4938ide_tune_ebusc(pdata->ebus_ch, pdata->gbus_clock, 0); pdata 1257 drivers/iio/accel/kxcjk-1013.c struct kxcjk_1013_platform_data *pdata; pdata 1269 drivers/iio/accel/kxcjk-1013.c pdata = dev_get_platdata(&client->dev); pdata 1270 drivers/iio/accel/kxcjk-1013.c if (pdata) pdata 1271 drivers/iio/accel/kxcjk-1013.c data->active_high_intr = pdata->active_high_intr; pdata 1174 drivers/iio/accel/st_accel_core.c struct st_sensors_platform_data *pdata = pdata 1212 drivers/iio/accel/st_accel_core.c if (!pdata) pdata 1213 drivers/iio/accel/st_accel_core.c pdata = (struct st_sensors_platform_data *)&default_accel_pdata; pdata 1215 drivers/iio/accel/st_accel_core.c err = st_sensors_init_sensor(indio_dev, pdata); pdata 384 drivers/iio/adc/ad7266.c struct ad7266_platform_data *pdata = spi->dev.platform_data; pdata 415 drivers/iio/adc/ad7266.c if (pdata) { pdata 416 drivers/iio/adc/ad7266.c st->fixed_addr = pdata->fixed_addr; pdata 417 drivers/iio/adc/ad7266.c st->mode = pdata->mode; pdata 418 drivers/iio/adc/ad7266.c st->range = pdata->range; pdata 422 drivers/iio/adc/ad7266.c st->gpios[i].gpio = pdata->addr_gpios[i]; pdata 468 drivers/iio/adc/ad7291.c struct ad7291_platform_data *pdata = client->dev.platform_data; pdata 478 drivers/iio/adc/ad7291.c if (pdata && pdata->use_external_ref) { pdata 498 drivers/iio/adc/ad7291.c if (pdata && pdata->use_external_ref) pdata 286 drivers/iio/adc/ad7298.c struct ad7298_platform_data *pdata = spi->dev.platform_data; pdata 297 drivers/iio/adc/ad7298.c if (pdata && pdata->ext_ref) pdata 325 drivers/iio/adc/ad7791.c struct ad7791_platform_data *pdata) pdata 331 drivers/iio/adc/ad7791.c if (!pdata) pdata 334 drivers/iio/adc/ad7791.c if ((st->info->flags & AD7791_FLAG_HAS_BUFFER) && !pdata->buffered) pdata 338 drivers/iio/adc/ad7791.c pdata->burnout_current) pdata 341 drivers/iio/adc/ad7791.c if ((st->info->flags & AD7791_FLAG_HAS_UNIPOLAR) && pdata->unipolar) pdata 350 drivers/iio/adc/ad7791.c struct ad7791_platform_data *pdata = spi->dev.platform_data; pdata 394 drivers/iio/adc/ad7791.c ret = ad7791_setup(st, pdata); pdata 227 drivers/iio/adc/ad7793.c const struct ad7793_platform_data *pdata) pdata 229 drivers/iio/adc/ad7793.c if ((pdata->current_source_direction == AD7793_IEXEC1_IEXEC2_IOUT1 || pdata 230 drivers/iio/adc/ad7793.c pdata->current_source_direction == AD7793_IEXEC1_IEXEC2_IOUT2) && pdata 231 drivers/iio/adc/ad7793.c ((pdata->exitation_current != AD7793_IX_10uA) && pdata 232 drivers/iio/adc/ad7793.c (pdata->exitation_current != AD7793_IX_210uA))) pdata 236 drivers/iio/adc/ad7793.c pdata->clock_src != AD7793_CLK_SRC_INT) pdata 240 drivers/iio/adc/ad7793.c pdata->refsel != AD7793_REFSEL_REFIN1) pdata 244 drivers/iio/adc/ad7793.c pdata->bias_voltage != AD7793_BIAS_VOLTAGE_DISABLED) pdata 248 drivers/iio/adc/ad7793.c pdata->exitation_current != AD7793_IX_DISABLED) pdata 255 drivers/iio/adc/ad7793.c const struct ad7793_platform_data *pdata, pdata 263 drivers/iio/adc/ad7793.c ret = ad7793_check_platform_data(st, pdata); pdata 289 drivers/iio/adc/ad7793.c st->mode |= AD7793_MODE_CLKSRC(pdata->clock_src); pdata 291 drivers/iio/adc/ad7793.c st->conf |= AD7793_CONF_REFSEL(pdata->refsel); pdata 293 drivers/iio/adc/ad7793.c st->conf |= AD7793_CONF_VBIAS(pdata->bias_voltage); pdata 294 drivers/iio/adc/ad7793.c if (pdata->buffered || !(st->chip_info->flags & AD7793_FLAG_HAS_BUFFER)) pdata 296 drivers/iio/adc/ad7793.c if (pdata->boost_enable && pdata 299 drivers/iio/adc/ad7793.c if (pdata->burnout_current) pdata 301 drivers/iio/adc/ad7793.c if (pdata->unipolar) pdata 317 drivers/iio/adc/ad7793.c pdata->exitation_current | pdata 318 drivers/iio/adc/ad7793.c (pdata->current_source_direction << 2)); pdata 706 drivers/iio/adc/ad7793.c const struct ad7793_platform_data *pdata = spi->dev.platform_data; pdata 711 drivers/iio/adc/ad7793.c if (!pdata) { pdata 729 drivers/iio/adc/ad7793.c if (pdata->refsel != AD7793_REFSEL_INTERNAL) { pdata 766 drivers/iio/adc/ad7793.c ret = ad7793_setup(indio_dev, pdata, vref_mv); pdata 779 drivers/iio/adc/ad7793.c if (pdata->refsel != AD7793_REFSEL_INTERNAL) pdata 787 drivers/iio/adc/ad7793.c const struct ad7793_platform_data *pdata = spi->dev.platform_data; pdata 794 drivers/iio/adc/ad7793.c if (pdata->refsel != AD7793_REFSEL_INTERNAL) pdata 235 drivers/iio/adc/ad7887.c struct ad7887_platform_data *pdata = spi->dev.platform_data; pdata 247 drivers/iio/adc/ad7887.c if (!pdata || !pdata->use_onchip_ref) { pdata 273 drivers/iio/adc/ad7887.c if (!pdata || !pdata->use_onchip_ref) pdata 275 drivers/iio/adc/ad7887.c if (pdata && pdata->en_dual) pdata 287 drivers/iio/adc/ad7887.c if (pdata && pdata->en_dual) { pdata 966 drivers/iio/adc/at91_adc.c struct at91_adc_data *pdata = pdev->dev.platform_data; pdata 968 drivers/iio/adc/at91_adc.c if (!pdata) pdata 974 drivers/iio/adc/at91_adc.c st->use_external = pdata->use_external_triggers; pdata 975 drivers/iio/adc/at91_adc.c st->vref_mv = pdata->vref; pdata 976 drivers/iio/adc/at91_adc.c st->channels_mask = pdata->channels_used; pdata 978 drivers/iio/adc/at91_adc.c st->startup_time = pdata->startup_time; pdata 979 drivers/iio/adc/at91_adc.c st->trigger_number = pdata->trigger_number; pdata 980 drivers/iio/adc/at91_adc.c st->trigger_list = pdata->trigger_list; pdata 982 drivers/iio/adc/at91_adc.c st->touchscreen_type = pdata->touchscreen_type; pdata 615 drivers/iio/adc/dln2-adc.c struct dln2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 627 drivers/iio/adc/dln2-adc.c dln2->port = pdata->port; pdata 770 drivers/iio/adc/exynos_adc.c struct s3c2410_ts_mach_info *pdata = dev_get_platdata(&pdev->dev); pdata 886 drivers/iio/adc/exynos_adc.c "has-touchscreen") || pdata; pdata 889 drivers/iio/adc/exynos_adc.c if (pdata) pdata 890 drivers/iio/adc/exynos_adc.c info->delay = pdata->delay; pdata 983 drivers/iio/adc/ina2xx-adc.c struct ina2xx_platform_data *pdata = pdata 986 drivers/iio/adc/ina2xx-adc.c if (pdata) pdata 987 drivers/iio/adc/ina2xx-adc.c val = pdata->shunt_uohms; pdata 167 drivers/iio/adc/lp8788_adc.c struct lp8788_platform_data *pdata, pdata 173 drivers/iio/adc/lp8788_adc.c map = (!pdata || !pdata->adc_pdata) ? pdata 174 drivers/iio/adc/lp8788_adc.c lp8788_default_iio_maps : pdata->adc_pdata; pdata 202 drivers/iio/adc/lp8788_adc.c ret = lp8788_iio_map_register(indio_dev, lp->pdata, adc); pdata 492 drivers/iio/adc/palmas_gpadc.c struct palmas_platform_data *pdata; pdata 497 drivers/iio/adc/palmas_gpadc.c pdata = dev_get_platdata(pdev->dev.parent); pdata 499 drivers/iio/adc/palmas_gpadc.c if (pdata && pdata->gpadc_pdata) pdata 500 drivers/iio/adc/palmas_gpadc.c gpadc_pdata = pdata->gpadc_pdata; pdata 906 drivers/iio/adc/ti-ads1015.c struct ads1015_platform_data *pdata = dev_get_platdata(&client->dev); pdata 909 drivers/iio/adc/ti-ads1015.c if (pdata) { pdata 910 drivers/iio/adc/ti-ads1015.c memcpy(data->channel_data, pdata->channel_data, pdata 754 drivers/iio/adc/twl4030-madc.c struct twl4030_madc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 760 drivers/iio/adc/twl4030-madc.c if (!pdata && !np) { pdata 787 drivers/iio/adc/twl4030-madc.c if (pdata) pdata 788 drivers/iio/adc/twl4030-madc.c madc->use_second_irq = (pdata->irq_line != 1); pdata 126 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_gpadc_platform_data *pdata; pdata 425 drivers/iio/adc/twl6030-gpadc.c *pdata, int channel) pdata 427 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_ideal_code *ideal = pdata->ideal; pdata 430 drivers/iio/adc/twl6030-gpadc.c i = twl6030_gpadc_lookup(ideal, channel, pdata->nchannels); pdata 432 drivers/iio/adc/twl6030-gpadc.c return pdata->ideal[i].code2; pdata 438 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; pdata 442 drivers/iio/adc/twl6030-gpadc.c i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); pdata 453 drivers/iio/adc/twl6030-gpadc.c u8 reg = gpadc->pdata->channel_to_reg(channel); pdata 467 drivers/iio/adc/twl6030-gpadc.c if (twl6030_channel_calibrated(gpadc->pdata, channel)) pdata 478 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; pdata 488 drivers/iio/adc/twl6030-gpadc.c i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); pdata 513 drivers/iio/adc/twl6030-gpadc.c ret = gpadc->pdata->start_conversion(chan->channel); pdata 564 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; pdata 566 drivers/iio/adc/twl6030-gpadc.c i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); pdata 869 drivers/iio/adc/twl6030-gpadc.c const struct twl6030_gpadc_platform_data *pdata; pdata 879 drivers/iio/adc/twl6030-gpadc.c pdata = match->data; pdata 888 drivers/iio/adc/twl6030-gpadc.c pdata->nchannels, pdata 895 drivers/iio/adc/twl6030-gpadc.c gpadc->pdata = pdata; pdata 901 drivers/iio/adc/twl6030-gpadc.c ret = pdata->calibrate(gpadc); pdata 932 drivers/iio/adc/twl6030-gpadc.c indio_dev->channels = pdata->iio_channels; pdata 933 drivers/iio/adc/twl6030-gpadc.c indio_dev->num_channels = pdata->nchannels; pdata 226 drivers/iio/common/st_sensors/st_sensors_core.c struct st_sensor_data *pdata = iio_priv(indio_dev); pdata 230 drivers/iio/common/st_sensors/st_sensors_core.c pdata->vdd = devm_regulator_get(indio_dev->dev.parent, "vdd"); pdata 231 drivers/iio/common/st_sensors/st_sensors_core.c if (IS_ERR(pdata->vdd)) { pdata 233 drivers/iio/common/st_sensors/st_sensors_core.c return PTR_ERR(pdata->vdd); pdata 235 drivers/iio/common/st_sensors/st_sensors_core.c err = regulator_enable(pdata->vdd); pdata 242 drivers/iio/common/st_sensors/st_sensors_core.c pdata->vdd_io = devm_regulator_get(indio_dev->dev.parent, "vddio"); pdata 243 drivers/iio/common/st_sensors/st_sensors_core.c if (IS_ERR(pdata->vdd_io)) { pdata 245 drivers/iio/common/st_sensors/st_sensors_core.c err = PTR_ERR(pdata->vdd_io); pdata 248 drivers/iio/common/st_sensors/st_sensors_core.c err = regulator_enable(pdata->vdd_io); pdata 258 drivers/iio/common/st_sensors/st_sensors_core.c regulator_disable(pdata->vdd); pdata 265 drivers/iio/common/st_sensors/st_sensors_core.c struct st_sensor_data *pdata = iio_priv(indio_dev); pdata 267 drivers/iio/common/st_sensors/st_sensors_core.c regulator_disable(pdata->vdd); pdata 268 drivers/iio/common/st_sensors/st_sensors_core.c regulator_disable(pdata->vdd_io); pdata 273 drivers/iio/common/st_sensors/st_sensors_core.c struct st_sensors_platform_data *pdata) pdata 280 drivers/iio/common/st_sensors/st_sensors_core.c if (pdata->drdy_int_pin) pdata 284 drivers/iio/common/st_sensors/st_sensors_core.c pdata->drdy_int_pin); pdata 288 drivers/iio/common/st_sensors/st_sensors_core.c switch (pdata->drdy_int_pin) { pdata 310 drivers/iio/common/st_sensors/st_sensors_core.c if (pdata->open_drain) { pdata 326 drivers/iio/common/st_sensors/st_sensors_core.c struct st_sensors_platform_data *pdata; pdata 333 drivers/iio/common/st_sensors/st_sensors_core.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 335 drivers/iio/common/st_sensors/st_sensors_core.c pdata->drdy_int_pin = (u8) val; pdata 337 drivers/iio/common/st_sensors/st_sensors_core.c pdata->drdy_int_pin = defdata ? defdata->drdy_int_pin : 0; pdata 339 drivers/iio/common/st_sensors/st_sensors_core.c pdata->open_drain = of_property_read_bool(np, "drive-open-drain"); pdata 341 drivers/iio/common/st_sensors/st_sensors_core.c return pdata; pdata 381 drivers/iio/common/st_sensors/st_sensors_core.c struct st_sensors_platform_data *pdata) pdata 388 drivers/iio/common/st_sensors/st_sensors_core.c of_pdata = st_sensors_of_probe(indio_dev->dev.parent, pdata); pdata 390 drivers/iio/common/st_sensors/st_sensors_core.c pdata = of_pdata; pdata 392 drivers/iio/common/st_sensors/st_sensors_core.c if (pdata) { pdata 393 drivers/iio/common/st_sensors/st_sensors_core.c err = st_sensors_set_drdy_int_pin(indio_dev, pdata); pdata 41 drivers/iio/common/st_sensors/st_sensors_spi.c struct st_sensors_platform_data *pdata; pdata 43 drivers/iio/common/st_sensors/st_sensors_spi.c pdata = (struct st_sensors_platform_data *)spi->dev.platform_data; pdata 45 drivers/iio/common/st_sensors/st_sensors_spi.c (pdata && pdata->spi_3wire)) { pdata 471 drivers/iio/dac/ad5421.c struct ad5421_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 497 drivers/iio/dac/ad5421.c if (pdata) { pdata 498 drivers/iio/dac/ad5421.c st->current_range = pdata->current_range; pdata 499 drivers/iio/dac/ad5421.c if (pdata->external_vref) pdata 269 drivers/iio/dac/ad5449.c struct ad5449_platform_data *pdata = spi->dev.platform_data; pdata 307 drivers/iio/dac/ad5449.c if (pdata) { pdata 308 drivers/iio/dac/ad5449.c if (pdata->hardware_clear_to_midscale) pdata 310 drivers/iio/dac/ad5449.c ctrl |= pdata->sdo_mode << AD5449_CTRL_SDO_OFFSET; pdata 311 drivers/iio/dac/ad5449.c st->has_sdo = pdata->sdo_mode != AD5449_SDO_DISABLED; pdata 274 drivers/iio/dac/ad5504.c struct ad5504_platform_data *pdata = spi->dev.platform_data; pdata 300 drivers/iio/dac/ad5504.c else if (pdata) pdata 301 drivers/iio/dac/ad5504.c st->vref_mv = pdata->vref_mv; pdata 489 drivers/iio/dac/ad5755.c const struct ad5755_platform_data *pdata) pdata 496 drivers/iio/dac/ad5755.c if (pdata->dc_dc_phase > AD5755_DC_DC_PHASE_90_DEGREE || pdata 497 drivers/iio/dac/ad5755.c pdata->dc_dc_freq > AD5755_DC_DC_FREQ_650kHZ || pdata 498 drivers/iio/dac/ad5755.c pdata->dc_dc_maxv > AD5755_DC_DC_MAXV_29V5) pdata 501 drivers/iio/dac/ad5755.c val = pdata->dc_dc_maxv << AD5755_DC_DC_MAXV; pdata 502 drivers/iio/dac/ad5755.c val |= pdata->dc_dc_freq << AD5755_DC_DC_FREQ_SHIFT; pdata 503 drivers/iio/dac/ad5755.c val |= pdata->dc_dc_phase << AD5755_DC_DC_PHASE_SHIFT; pdata 504 drivers/iio/dac/ad5755.c if (pdata->ext_dc_dc_compenstation_resistor) pdata 511 drivers/iio/dac/ad5755.c for (i = 0; i < ARRAY_SIZE(pdata->dac); ++i) { pdata 512 drivers/iio/dac/ad5755.c val = pdata->dac[i].slew.step_size << pdata 514 drivers/iio/dac/ad5755.c val |= pdata->dac[i].slew.rate << pdata 516 drivers/iio/dac/ad5755.c if (pdata->dac[i].slew.enable) pdata 525 drivers/iio/dac/ad5755.c for (i = 0; i < ARRAY_SIZE(pdata->dac); ++i) { pdata 526 drivers/iio/dac/ad5755.c if (!ad5755_is_valid_mode(st, pdata->dac[i].mode)) pdata 530 drivers/iio/dac/ad5755.c if (!pdata->dac[i].ext_current_sense_resistor) pdata 532 drivers/iio/dac/ad5755.c if (pdata->dac[i].enable_voltage_overrange) pdata 534 drivers/iio/dac/ad5755.c val |= pdata->dac[i].mode; pdata 558 drivers/iio/dac/ad5755.c const struct ad5755_platform_data *pdata) pdata 568 drivers/iio/dac/ad5755.c if (pdata && ad5755_is_voltage_mode(pdata->dac[i].mode)) pdata 608 drivers/iio/dac/ad5755.c struct ad5755_platform_data *pdata; pdata 613 drivers/iio/dac/ad5755.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 614 drivers/iio/dac/ad5755.c if (!pdata) pdata 617 drivers/iio/dac/ad5755.c pdata->ext_dc_dc_compenstation_resistor = pdata 621 drivers/iio/dac/ad5755.c pdata->dc_dc_phase = tmp; pdata 623 drivers/iio/dac/ad5755.c pdata->dc_dc_phase = AD5755_DC_DC_PHASE_ALL_SAME_EDGE; pdata 625 drivers/iio/dac/ad5755.c pdata->dc_dc_freq = AD5755_DC_DC_FREQ_410kHZ; pdata 629 drivers/iio/dac/ad5755.c pdata->dc_dc_freq = ad5755_dcdc_freq_table[i][1]; pdata 640 drivers/iio/dac/ad5755.c pdata->dc_dc_maxv = AD5755_DC_DC_MAXV_23V; pdata 644 drivers/iio/dac/ad5755.c pdata->dc_dc_maxv = ad5755_dcdc_maxv_table[i][1]; pdata 663 drivers/iio/dac/ad5755.c pdata->dac[devnr].mode = tmp; pdata 665 drivers/iio/dac/ad5755.c pdata->dac[devnr].mode = AD5755_MODE_CURRENT_4mA_20mA; pdata 667 drivers/iio/dac/ad5755.c pdata->dac[devnr].ext_current_sense_resistor = pdata 670 drivers/iio/dac/ad5755.c pdata->dac[devnr].enable_voltage_overrange = pdata 674 drivers/iio/dac/ad5755.c pdata->dac[devnr].slew.enable = tmparray[0]; pdata 676 drivers/iio/dac/ad5755.c pdata->dac[devnr].slew.rate = AD5755_SLEW_RATE_64k; pdata 679 drivers/iio/dac/ad5755.c pdata->dac[devnr].slew.rate = pdata 690 drivers/iio/dac/ad5755.c pdata->dac[devnr].slew.step_size = AD5755_SLEW_STEP_SIZE_1; pdata 693 drivers/iio/dac/ad5755.c pdata->dac[devnr].slew.step_size = pdata 704 drivers/iio/dac/ad5755.c pdata->dac[devnr].slew.enable = false; pdata 705 drivers/iio/dac/ad5755.c pdata->dac[devnr].slew.rate = AD5755_SLEW_RATE_64k; pdata 706 drivers/iio/dac/ad5755.c pdata->dac[devnr].slew.step_size = pdata 712 drivers/iio/dac/ad5755.c return pdata; pdata 715 drivers/iio/dac/ad5755.c devm_kfree(dev, pdata); pdata 729 drivers/iio/dac/ad5755.c const struct ad5755_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 754 drivers/iio/dac/ad5755.c pdata = ad5755_parse_dt(&spi->dev); pdata 756 drivers/iio/dac/ad5755.c pdata = spi->dev.platform_data; pdata 758 drivers/iio/dac/ad5755.c if (!pdata) { pdata 760 drivers/iio/dac/ad5755.c pdata = &ad5755_default_pdata; pdata 763 drivers/iio/dac/ad5755.c ret = ad5755_init_channels(indio_dev, pdata); pdata 767 drivers/iio/dac/ad5755.c ret = ad5755_setup_pdata(indio_dev, pdata); pdata 353 drivers/iio/dac/ad5761.c struct ad5761_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 368 drivers/iio/dac/ad5761.c if (pdata) pdata 369 drivers/iio/dac/ad5761.c voltage_range = pdata->voltage_range; pdata 346 drivers/iio/dac/ad5791.c struct ad5791_platform_data *pdata = spi->dev.platform_data; pdata 387 drivers/iio/dac/ad5791.c } else if (pdata) { pdata 388 drivers/iio/dac/ad5791.c st->vref_mv = pdata->vref_pos_mv + pdata->vref_neg_mv; pdata 389 drivers/iio/dac/ad5791.c st->vref_neg_mv = pdata->vref_neg_mv; pdata 403 drivers/iio/dac/ad5791.c | ((pdata && pdata->use_rbuf_gain2) ? 0 : AD5791_CTRL_RBUF) | pdata 226 drivers/iio/dac/ad7303.c struct ad7303_platform_data *pdata = spi->dev.platform_data; pdata 227 drivers/iio/dac/ad7303.c if (pdata && pdata->use_external_ref) pdata 362 drivers/iio/dac/mcp4725.c struct mcp4725_platform_data *pdata) pdata 370 drivers/iio/dac/mcp4725.c pdata->use_vref = of_property_read_bool(np, "vref-supply"); pdata 371 drivers/iio/dac/mcp4725.c pdata->vref_buffered = pdata 389 drivers/iio/dac/mcp4725.c struct mcp4725_platform_data *pdata, pdata_dt; pdata 405 drivers/iio/dac/mcp4725.c pdata = dev_get_platdata(&client->dev); pdata 407 drivers/iio/dac/mcp4725.c if (!pdata) { pdata 414 drivers/iio/dac/mcp4725.c pdata = &pdata_dt; pdata 417 drivers/iio/dac/mcp4725.c if (data->id == MCP4725 && pdata->use_vref) { pdata 423 drivers/iio/dac/mcp4725.c if (!pdata->use_vref && pdata->vref_buffered) { pdata 429 drivers/iio/dac/mcp4725.c if (!pdata->use_vref) pdata 432 drivers/iio/dac/mcp4725.c data->ref_mode = pdata->vref_buffered ? pdata 444 drivers/iio/dac/mcp4725.c if (pdata->use_vref) { pdata 243 drivers/iio/frequency/ad9523.c #define AD_IFE(_pde, _a, _b) ((pdata->_pde) ? _a : _b) pdata 269 drivers/iio/frequency/ad9523.c struct ad9523_platform_data *pdata; pdata 761 drivers/iio/frequency/ad9523.c struct ad9523_platform_data *pdata = st->pdata; pdata 786 drivers/iio/frequency/ad9523.c pdata->refa_r_div); pdata 791 drivers/iio/frequency/ad9523.c pdata->refb_r_div); pdata 796 drivers/iio/frequency/ad9523.c pdata->pll1_feedback_div); pdata 801 drivers/iio/frequency/ad9523.c AD9523_PLL1_CHARGE_PUMP_CURRENT_nA(pdata-> pdata 833 drivers/iio/frequency/ad9523.c AD9523_PLL1_REF_MODE(pdata->ref_mode)); pdata 838 drivers/iio/frequency/ad9523.c AD9523_PLL1_LOOP_FILTER_RZERO(pdata->pll1_loop_filter_rzero)); pdata 846 drivers/iio/frequency/ad9523.c AD9523_PLL2_CHARGE_PUMP_CURRENT_nA(pdata-> pdata 852 drivers/iio/frequency/ad9523.c AD9523_PLL2_FB_NDIV_A_CNT(pdata->pll2_ndiv_a_cnt) | pdata 853 drivers/iio/frequency/ad9523.c AD9523_PLL2_FB_NDIV_B_CNT(pdata->pll2_ndiv_b_cnt)); pdata 864 drivers/iio/frequency/ad9523.c st->vco_freq = div_u64((unsigned long long)pdata->vcxo_freq * pdata 865 drivers/iio/frequency/ad9523.c (pdata->pll2_freq_doubler_en ? 2 : 1) * pdata 866 drivers/iio/frequency/ad9523.c AD9523_PLL2_FB_NDIV(pdata->pll2_ndiv_a_cnt, pdata 867 drivers/iio/frequency/ad9523.c pdata->pll2_ndiv_b_cnt), pdata 868 drivers/iio/frequency/ad9523.c pdata->pll2_r2_div); pdata 876 drivers/iio/frequency/ad9523.c AD9523_PLL2_VCO_DIV_M1(pdata->pll2_vco_div_m1) | pdata 877 drivers/iio/frequency/ad9523.c AD9523_PLL2_VCO_DIV_M2(pdata->pll2_vco_div_m2) | pdata 885 drivers/iio/frequency/ad9523.c if (pdata->pll2_vco_div_m1) pdata 887 drivers/iio/frequency/ad9523.c st->vco_freq / pdata->pll2_vco_div_m1; pdata 889 drivers/iio/frequency/ad9523.c if (pdata->pll2_vco_div_m2) pdata 891 drivers/iio/frequency/ad9523.c st->vco_freq / pdata->pll2_vco_div_m2; pdata 893 drivers/iio/frequency/ad9523.c st->vco_out_freq[AD9523_VCXO] = pdata->vcxo_freq; pdata 896 drivers/iio/frequency/ad9523.c AD9523_PLL2_R2_DIVIDER_VAL(pdata->pll2_r2_div)); pdata 901 drivers/iio/frequency/ad9523.c AD9523_PLL2_LOOP_FILTER_CPOLE1(pdata->cpole1) | pdata 902 drivers/iio/frequency/ad9523.c AD9523_PLL2_LOOP_FILTER_RZERO(pdata->rzero) | pdata 903 drivers/iio/frequency/ad9523.c AD9523_PLL2_LOOP_FILTER_RPOLE2(pdata->rpole2) | pdata 909 drivers/iio/frequency/ad9523.c for (i = 0; i < pdata->num_channels; i++) { pdata 910 drivers/iio/frequency/ad9523.c chan = &pdata->channels[i]; pdata 974 drivers/iio/frequency/ad9523.c struct ad9523_platform_data *pdata = spi->dev.platform_data; pdata 979 drivers/iio/frequency/ad9523.c if (!pdata) { pdata 1027 drivers/iio/frequency/ad9523.c st->pdata = pdata; pdata 1030 drivers/iio/frequency/ad9523.c indio_dev->name = (pdata->name[0] != 0) ? pdata->name : pdata 1035 drivers/iio/frequency/ad9523.c indio_dev->num_channels = pdata->num_channels; pdata 37 drivers/iio/frequency/adf4350.c struct adf4350_platform_data *pdata; pdata 118 drivers/iio/frequency/adf4350.c struct adf4350_platform_data *pdata = st->pdata; pdata 122 drivers/iio/frequency/adf4350.c st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / pdata 123 drivers/iio/frequency/adf4350.c (r_cnt * (pdata->ref_div2_en ? 2 : 1)); pdata 131 drivers/iio/frequency/adf4350.c struct adf4350_platform_data *pdata = st->pdata; pdata 159 drivers/iio/frequency/adf4350.c if (pdata->ref_div_factor) pdata 160 drivers/iio/frequency/adf4350.c r_cnt = pdata->ref_div_factor - 1; pdata 211 drivers/iio/frequency/adf4350.c (pdata->ref_doubler_en ? ADF4350_REG2_RMULT2_EN : 0) | pdata 212 drivers/iio/frequency/adf4350.c (pdata->ref_div2_en ? ADF4350_REG2_RDIV2_EN : 0) | pdata 213 drivers/iio/frequency/adf4350.c (pdata->r2_user_settings & (ADF4350_REG2_PD_POLARITY_POS | pdata 218 drivers/iio/frequency/adf4350.c st->regs[ADF4350_REG3] = pdata->r3_user_settings & pdata 231 drivers/iio/frequency/adf4350.c (pdata->r4_user_settings & pdata 320 drivers/iio/frequency/adf4350.c if (gpio_is_valid(st->pdata->gpio_lock_detect)) pdata 321 drivers/iio/frequency/adf4350.c if (!gpio_get_value(st->pdata->gpio_lock_detect)) { pdata 382 drivers/iio/frequency/adf4350.c struct adf4350_platform_data *pdata; pdata 386 drivers/iio/frequency/adf4350.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 387 drivers/iio/frequency/adf4350.c if (!pdata) pdata 390 drivers/iio/frequency/adf4350.c snprintf(&pdata->name[0], SPI_NAME_SIZE - 1, "%pOFn", np); pdata 394 drivers/iio/frequency/adf4350.c pdata->channel_spacing = tmp; pdata 398 drivers/iio/frequency/adf4350.c pdata->power_up_frequency = tmp; pdata 402 drivers/iio/frequency/adf4350.c pdata->ref_div_factor = tmp; pdata 406 drivers/iio/frequency/adf4350.c pdata->gpio_lock_detect = -1; pdata 408 drivers/iio/frequency/adf4350.c pdata->gpio_lock_detect = ret; pdata 410 drivers/iio/frequency/adf4350.c pdata->ref_doubler_en = of_property_read_bool(np, pdata 412 drivers/iio/frequency/adf4350.c pdata->ref_div2_en = of_property_read_bool(np, pdata 416 drivers/iio/frequency/adf4350.c pdata->r2_user_settings = of_property_read_bool(np, pdata 419 drivers/iio/frequency/adf4350.c pdata->r2_user_settings |= of_property_read_bool(np, pdata 422 drivers/iio/frequency/adf4350.c pdata->r2_user_settings |= of_property_read_bool(np, pdata 428 drivers/iio/frequency/adf4350.c pdata->r2_user_settings |= ADF4350_REG2_CHARGE_PUMP_CURR_uA(tmp); pdata 432 drivers/iio/frequency/adf4350.c pdata->r2_user_settings |= ADF4350_REG2_MUXOUT(tmp); pdata 434 drivers/iio/frequency/adf4350.c pdata->r2_user_settings |= of_property_read_bool(np, pdata 440 drivers/iio/frequency/adf4350.c pdata->r3_user_settings = of_property_read_bool(np, pdata 443 drivers/iio/frequency/adf4350.c pdata->r3_user_settings |= of_property_read_bool(np, pdata 447 drivers/iio/frequency/adf4350.c pdata->r3_user_settings |= of_property_read_bool(np, pdata 450 drivers/iio/frequency/adf4350.c pdata->r3_user_settings |= of_property_read_bool(np, pdata 456 drivers/iio/frequency/adf4350.c pdata->r3_user_settings |= ADF4350_REG3_12BIT_CLKDIV(tmp); pdata 460 drivers/iio/frequency/adf4350.c pdata->r3_user_settings |= ADF4350_REG3_12BIT_CLKDIV_MODE(tmp); pdata 464 drivers/iio/frequency/adf4350.c pdata->r4_user_settings = of_property_read_bool(np, pdata 467 drivers/iio/frequency/adf4350.c pdata->r4_user_settings |= of_property_read_bool(np, pdata 470 drivers/iio/frequency/adf4350.c pdata->r4_user_settings |= of_property_read_bool(np, pdata 476 drivers/iio/frequency/adf4350.c pdata->r4_user_settings |= ADF4350_REG4_OUTPUT_PWR(tmp); pdata 480 drivers/iio/frequency/adf4350.c pdata->r4_user_settings |= ADF4350_REG4_AUX_OUTPUT_PWR(tmp); pdata 482 drivers/iio/frequency/adf4350.c return pdata; pdata 494 drivers/iio/frequency/adf4350.c struct adf4350_platform_data *pdata; pdata 501 drivers/iio/frequency/adf4350.c pdata = adf4350_parse_dt(&spi->dev); pdata 502 drivers/iio/frequency/adf4350.c if (pdata == NULL) pdata 505 drivers/iio/frequency/adf4350.c pdata = spi->dev.platform_data; pdata 508 drivers/iio/frequency/adf4350.c if (!pdata) { pdata 510 drivers/iio/frequency/adf4350.c pdata = &default_pdata; pdata 513 drivers/iio/frequency/adf4350.c if (!pdata->clkin) { pdata 540 drivers/iio/frequency/adf4350.c st->pdata = pdata; pdata 543 drivers/iio/frequency/adf4350.c indio_dev->name = (pdata->name[0] != 0) ? pdata->name : pdata 551 drivers/iio/frequency/adf4350.c st->chspc = pdata->channel_spacing; pdata 556 drivers/iio/frequency/adf4350.c st->clkin = pdata->clkin; pdata 564 drivers/iio/frequency/adf4350.c if (gpio_is_valid(pdata->gpio_lock_detect)) { pdata 565 drivers/iio/frequency/adf4350.c ret = devm_gpio_request(&spi->dev, pdata->gpio_lock_detect, pdata 569 drivers/iio/frequency/adf4350.c pdata->gpio_lock_detect); pdata 572 drivers/iio/frequency/adf4350.c gpio_direction_input(pdata->gpio_lock_detect); pdata 575 drivers/iio/frequency/adf4350.c if (pdata->power_up_frequency) { pdata 576 drivers/iio/frequency/adf4350.c ret = adf4350_set_freq(st, pdata->power_up_frequency); pdata 80 drivers/iio/humidity/hts221_buffer.c struct st_sensors_platform_data *pdata; pdata 109 drivers/iio/humidity/hts221_buffer.c pdata = (struct st_sensors_platform_data *)hw->dev->platform_data; pdata 111 drivers/iio/humidity/hts221_buffer.c (pdata && pdata->open_drain)) { pdata 1076 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c struct inv_mpu6050_platform_data *pdata; pdata 1099 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c pdata = dev_get_platdata(dev); pdata 1100 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c if (!pdata) { pdata 1109 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c st->plat_data = *pdata; pdata 706 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c struct st_sensors_platform_data *pdata; pdata 735 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c pdata = (struct st_sensors_platform_data *)hw->dev->platform_data; pdata 737 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c (pdata && pdata->open_drain)) { pdata 1284 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c struct st_sensors_platform_data *pdata; pdata 1287 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c pdata = (struct st_sensors_platform_data *)dev->platform_data; pdata 1288 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c drdy_pin = pdata ? pdata->drdy_int_pin : 1; pdata 1311 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c struct st_sensors_platform_data *pdata; pdata 1317 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c pdata = (struct st_sensors_platform_data *)hw->dev->platform_data; pdata 1319 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c (pdata && pdata->pullups)) { pdata 129 drivers/iio/light/cm36651.c const struct cm36651_platform_data *pdata; pdata 240 drivers/iio/light/gp2ap020a00f.c const struct gp2ap020a00f_platform_data *pdata; pdata 757 drivers/iio/light/lm3533-als.c struct lm3533_als_platform_data *pdata) pdata 761 drivers/iio/light/lm3533-als.c ret = lm3533_als_set_input_mode(als, pdata->pwm_mode); pdata 766 drivers/iio/light/lm3533-als.c if (!pdata->pwm_mode) { pdata 767 drivers/iio/light/lm3533-als.c ret = lm3533_als_set_resistor(als, pdata->r_select); pdata 832 drivers/iio/light/lm3533-als.c struct lm3533_als_platform_data *pdata; pdata 841 drivers/iio/light/lm3533-als.c pdata = pdev->dev.platform_data; pdata 842 drivers/iio/light/lm3533-als.c if (!pdata) { pdata 873 drivers/iio/light/lm3533-als.c ret = lm3533_als_setup(als, pdata); pdata 705 drivers/iio/light/tsl2563.c struct tsl2563_platform_data *pdata = client->dev.platform_data; pdata 741 drivers/iio/light/tsl2563.c if (pdata) pdata 742 drivers/iio/light/tsl2563.c chip->cover_comp_gain = pdata->cover_comp_gain; pdata 174 drivers/iio/light/tsl2772.c struct tsl2772_platform_data *pdata; pdata 629 drivers/iio/light/tsl2772.c if (chip->pdata && chip->pdata->platform_default_settings) pdata 630 drivers/iio/light/tsl2772.c memcpy(&chip->settings, chip->pdata->platform_default_settings, pdata 637 drivers/iio/light/tsl2772.c if (chip->pdata && chip->pdata->platform_lux_table[0].ch0 != 0) pdata 639 drivers/iio/light/tsl2772.c chip->pdata->platform_lux_table, pdata 640 drivers/iio/light/tsl2772.c sizeof(chip->pdata->platform_lux_table)); pdata 1830 drivers/iio/light/tsl2772.c chip->pdata = dev_get_platdata(&clientp->dev); pdata 863 drivers/iio/magnetometer/ak8975.c const struct ak8975_platform_data *pdata = pdata 867 drivers/iio/magnetometer/ak8975.c if (pdata) pdata 868 drivers/iio/magnetometer/ak8975.c eoc_gpio = pdata->eoc_gpio; pdata 902 drivers/iio/magnetometer/ak8975.c if (!pdata) { pdata 908 drivers/iio/magnetometer/ak8975.c data->orientation = pdata->orientation; pdata 687 drivers/iio/pressure/st_pressure_core.c struct st_sensors_platform_data *pdata = pdata 719 drivers/iio/pressure/st_pressure_core.c if (!pdata && (press_data->sensor_settings->drdy_irq.int1.addr || pdata 721 drivers/iio/pressure/st_pressure_core.c pdata = (struct st_sensors_platform_data *)&default_press_pdata; pdata 723 drivers/iio/pressure/st_pressure_core.c err = st_sensors_init_sensor(indio_dev, pdata); pdata 266 drivers/infiniband/core/device.c struct ib_port_data pdata[]; pdata 502 drivers/infiniband/core/device.c pdata[0]), pdata 753 drivers/infiniband/core/device.c pdata_rcu = kzalloc(struct_size(pdata_rcu, pdata, pdata 763 drivers/infiniband/core/device.c device->port_data = pdata_rcu->pdata; pdata 766 drivers/infiniband/core/device.c struct ib_port_data *pdata = &device->port_data[port]; pdata 768 drivers/infiniband/core/device.c pdata->ib_dev = device; pdata 769 drivers/infiniband/core/device.c spin_lock_init(&pdata->pkey_list_lock); pdata 770 drivers/infiniband/core/device.c INIT_LIST_HEAD(&pdata->pkey_list); pdata 771 drivers/infiniband/core/device.c spin_lock_init(&pdata->netdev_lock); pdata 772 drivers/infiniband/core/device.c INIT_HLIST_NODE(&pdata->ndev_hash_link); pdata 793 drivers/infiniband/core/device.c struct ib_port_data *pdata = &device->port_data[port]; pdata 796 drivers/infiniband/core/device.c &pdata->immutable); pdata 2069 drivers/infiniband/core/device.c static void add_ndev_hash(struct ib_port_data *pdata) pdata 2076 drivers/infiniband/core/device.c if (hash_hashed(&pdata->ndev_hash_link)) { pdata 2077 drivers/infiniband/core/device.c hash_del_rcu(&pdata->ndev_hash_link); pdata 2086 drivers/infiniband/core/device.c if (pdata->netdev) pdata 2087 drivers/infiniband/core/device.c hash_add_rcu(ndev_hash, &pdata->ndev_hash_link, pdata 2088 drivers/infiniband/core/device.c (uintptr_t)pdata->netdev); pdata 2111 drivers/infiniband/core/device.c struct ib_port_data *pdata; pdata 2126 drivers/infiniband/core/device.c pdata = &ib_dev->port_data[port]; pdata 2127 drivers/infiniband/core/device.c spin_lock_irqsave(&pdata->netdev_lock, flags); pdata 2129 drivers/infiniband/core/device.c pdata->netdev, lockdep_is_held(&pdata->netdev_lock)); pdata 2131 drivers/infiniband/core/device.c spin_unlock_irqrestore(&pdata->netdev_lock, flags); pdata 2137 drivers/infiniband/core/device.c rcu_assign_pointer(pdata->netdev, ndev); pdata 2138 drivers/infiniband/core/device.c spin_unlock_irqrestore(&pdata->netdev_lock, flags); pdata 2140 drivers/infiniband/core/device.c add_ndev_hash(pdata); pdata 2157 drivers/infiniband/core/device.c struct ib_port_data *pdata = &ib_dev->port_data[port]; pdata 2160 drivers/infiniband/core/device.c spin_lock_irqsave(&pdata->netdev_lock, flags); pdata 2162 drivers/infiniband/core/device.c pdata->netdev, lockdep_is_held(&pdata->netdev_lock)); pdata 2165 drivers/infiniband/core/device.c hash_del_rcu(&pdata->ndev_hash_link); pdata 2174 drivers/infiniband/core/device.c rcu_assign_pointer(pdata->netdev, NULL); pdata 2177 drivers/infiniband/core/device.c spin_unlock_irqrestore(&pdata->netdev_lock, flags); pdata 2184 drivers/infiniband/core/device.c struct ib_port_data *pdata; pdata 2190 drivers/infiniband/core/device.c pdata = &ib_dev->port_data[port]; pdata 2199 drivers/infiniband/core/device.c spin_lock(&pdata->netdev_lock); pdata 2201 drivers/infiniband/core/device.c pdata->netdev, lockdep_is_held(&pdata->netdev_lock)); pdata 2204 drivers/infiniband/core/device.c spin_unlock(&pdata->netdev_lock); pdata 530 drivers/infiniband/hw/cxgb3/iwch_cm.c static int send_mpa_reject(struct iwch_ep *ep, const void *pdata, u8 plen) pdata 554 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(mpa->private_data, pdata, plen); pdata 578 drivers/infiniband/hw/cxgb3/iwch_cm.c static int send_mpa_reply(struct iwch_ep *ep, const void *pdata, u8 plen) pdata 605 drivers/infiniband/hw/cxgb3/iwch_cm.c memcpy(mpa->private_data, pdata, plen); pdata 1759 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len) pdata 1773 drivers/infiniband/hw/cxgb3/iwch_cm.c send_mpa_reject(ep, pdata, pdata_len); pdata 220 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len); pdata 1045 drivers/infiniband/hw/cxgb4/cm.c static int send_mpa_reject(struct c4iw_ep *ep, const void *pdata, u8 plen) pdata 1107 drivers/infiniband/hw/cxgb4/cm.c sizeof(struct mpa_v2_conn_params), pdata, plen); pdata 1110 drivers/infiniband/hw/cxgb4/cm.c memcpy(mpa->private_data, pdata, plen); pdata 1125 drivers/infiniband/hw/cxgb4/cm.c static int send_mpa_reply(struct c4iw_ep *ep, const void *pdata, u8 plen) pdata 1196 drivers/infiniband/hw/cxgb4/cm.c sizeof(struct mpa_v2_conn_params), pdata, plen); pdata 1199 drivers/infiniband/hw/cxgb4/cm.c memcpy(mpa->private_data, pdata, plen); pdata 3090 drivers/infiniband/hw/cxgb4/cm.c int c4iw_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len) pdata 3107 drivers/infiniband/hw/cxgb4/cm.c abort = send_mpa_reject(ep, pdata, pdata_len); pdata 979 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len); pdata 242 drivers/infiniband/hw/i40iw/i40iw_cm.c event->private_data_len = (u8)cm_node->pdata.size; pdata 273 drivers/infiniband/hw/i40iw/i40iw_cm.c event.private_data_len = (u8)cm_node->pdata.size; pdata 375 drivers/infiniband/hw/i40iw/i40iw_cm.c struct i40iw_kmem_info *pdata, pdata 404 drivers/infiniband/hw/i40iw/i40iw_cm.c if (pdata) pdata 405 drivers/infiniband/hw/i40iw/i40iw_cm.c pd_len = pdata->size; pdata 531 drivers/infiniband/hw/i40iw/i40iw_cm.c if (pdata && pdata->addr) pdata 532 drivers/infiniband/hw/i40iw/i40iw_cm.c memcpy(buf, pdata->addr, pdata->size); pdata 752 drivers/infiniband/hw/i40iw/i40iw_cm.c mpa_frame->priv_data_len = htons(cm_node->pdata.size); pdata 862 drivers/infiniband/hw/i40iw/i40iw_cm.c &cm_node->pdata, pdata 878 drivers/infiniband/hw/i40iw/i40iw_cm.c const void *pdata, pdata 890 drivers/infiniband/hw/i40iw/i40iw_cm.c priv_info.addr = (void *)pdata; pdata 1030 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->pdata.size = priv_data_len; pdata 2973 drivers/infiniband/hw/i40iw/i40iw_cm.c loopback_remotenode->pdata.size = private_data_len; pdata 2995 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->pdata.size = private_data_len; pdata 2996 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->pdata.addr = cm_node->pdata_buf; pdata 3010 drivers/infiniband/hw/i40iw/i40iw_cm.c static int i40iw_cm_reject(struct i40iw_cm_node *cm_node, const void *pdata, u8 plen) pdata 3031 drivers/infiniband/hw/i40iw/i40iw_cm.c ret = i40iw_send_mpa_reject(cm_node, pdata, plen); pdata 3697 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->pdata.size = conn_param->private_data_len; pdata 3765 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->loopbackpartner->pdata.size = conn_param->private_data_len; pdata 3787 drivers/infiniband/hw/i40iw/i40iw_cm.c int i40iw_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len) pdata 3796 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->pdata.size = pdata_len; pdata 3807 drivers/infiniband/hw/i40iw/i40iw_cm.c memcpy(&loopback->pdata_buf, pdata, pdata_len); pdata 3808 drivers/infiniband/hw/i40iw/i40iw_cm.c loopback->pdata.size = pdata_len; pdata 3811 drivers/infiniband/hw/i40iw/i40iw_cm.c return i40iw_cm_reject(cm_node, pdata, pdata_len); pdata 353 drivers/infiniband/hw/i40iw/i40iw_cm.h struct i40iw_kmem_info pdata; pdata 4109 drivers/infiniband/hw/mlx5/qp.c void *pdata = ud_wr->header; pdata 4122 drivers/infiniband/hw/mlx5/qp.c memcpy(eseg->inline_hdr.start, pdata, copysz); pdata 4131 drivers/infiniband/hw/mlx5/qp.c pdata += copysz; pdata 4132 drivers/infiniband/hw/mlx5/qp.c memcpy_send_wqe(&qp->sq, cur_edge, seg, size, pdata, pdata 770 drivers/infiniband/hw/qedr/qedr_iw_cm.c int qedr_iw_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len) pdata 778 drivers/infiniband/hw/qedr/qedr_iw_cm.c params.private_data = pdata; pdata 43 drivers/infiniband/hw/qedr/qedr_iw_cm.h int qedr_iw_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len); pdata 258 drivers/infiniband/sw/siw/siw_cm.c kfree(cep->mpa.pdata); pdata 345 drivers/infiniband/sw/siw/siw_cm.c event.private_data = cep->mpa.pdata; pdata 453 drivers/infiniband/sw/siw/siw_cm.c static int siw_send_mpareqrep(struct siw_cep *cep, const void *pdata, u8 pd_len) pdata 477 drivers/infiniband/sw/siw/siw_cm.c iov[iovec_num].iov_base = (char *)pdata; pdata 560 drivers/infiniband/sw/siw/siw_cm.c if (!cep->mpa.pdata) { pdata 561 drivers/infiniband/sw/siw/siw_cm.c cep->mpa.pdata = kmalloc(pd_len + 4, GFP_KERNEL); pdata 562 drivers/infiniband/sw/siw/siw_cm.c if (!cep->mpa.pdata) pdata 566 drivers/infiniband/sw/siw/siw_cm.c s, cep->mpa.pdata + cep->mpa.bytes_rcvd - sizeof(struct mpa_rr), pdata 647 drivers/infiniband/sw/siw/siw_cm.c struct mpa_v2_data *v2 = (struct mpa_v2_data *)cep->mpa.pdata; pdata 706 drivers/infiniband/sw/siw/siw_cm.c kfree(cep->mpa.pdata); pdata 708 drivers/infiniband/sw/siw/siw_cm.c cep->mpa.pdata = NULL; pdata 789 drivers/infiniband/sw/siw/siw_cm.c v2 = (struct mpa_v2_data *)cep->mpa.pdata; pdata 1575 drivers/infiniband/sw/siw/siw_cm.c kfree(cep->mpa.pdata); pdata 1576 drivers/infiniband/sw/siw/siw_cm.c cep->mpa.pdata = NULL; pdata 1750 drivers/infiniband/sw/siw/siw_cm.c int siw_reject(struct iw_cm_id *id, const void *pdata, u8 pd_len) pdata 1772 drivers/infiniband/sw/siw/siw_cm.c siw_send_mpareqrep(cep, pdata, pd_len); pdata 31 drivers/infiniband/sw/siw/siw_cm.h char *pdata; pdata 73 drivers/input/keyboard/adp5520-keys.c struct adp5520_keys_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 84 drivers/input/keyboard/adp5520-keys.c if (!pdata) { pdata 89 drivers/input/keyboard/adp5520-keys.c if (!(pdata->rows_en_mask && pdata->cols_en_mask)) pdata 115 drivers/input/keyboard/adp5520-keys.c input->keycodemax = pdata->keymapsize; pdata 118 drivers/input/keyboard/adp5520-keys.c memcpy(dev->keycode, pdata->keymap, pdata 119 drivers/input/keyboard/adp5520-keys.c pdata->keymapsize * input->keycodesize); pdata 124 drivers/input/keyboard/adp5520-keys.c if (pdata->repeat) pdata 137 drivers/input/keyboard/adp5520-keys.c en_mask = pdata->rows_en_mask | pdata->cols_en_mask; pdata 152 drivers/input/keyboard/adp5520-keys.c pdata->rows_en_mask); pdata 158 drivers/input/keyboard/adp5588-keys.c const struct adp5588_kpad_platform_data *pdata) pdata 166 drivers/input/keyboard/adp5588-keys.c for (i = 0; i < pdata->rows; i++) pdata 169 drivers/input/keyboard/adp5588-keys.c for (i = 0; i < pdata->cols; i++) pdata 185 drivers/input/keyboard/adp5588-keys.c const struct adp5588_kpad_platform_data *pdata = dev_get_platdata(dev); pdata 186 drivers/input/keyboard/adp5588-keys.c const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; pdata 192 drivers/input/keyboard/adp5588-keys.c kpad->gc.ngpio = adp5588_build_gpiomap(kpad, pdata); pdata 239 drivers/input/keyboard/adp5588-keys.c const struct adp5588_kpad_platform_data *pdata = dev_get_platdata(dev); pdata 240 drivers/input/keyboard/adp5588-keys.c const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; pdata 331 drivers/input/keyboard/adp5588-keys.c const struct adp5588_kpad_platform_data *pdata = pdata 333 drivers/input/keyboard/adp5588-keys.c const struct adp5588_gpio_platform_data *gpio_data = pdata->gpio_data; pdata 337 drivers/input/keyboard/adp5588-keys.c ret = adp5588_write(client, KP_GPIO1, KP_SEL(pdata->rows)); pdata 338 drivers/input/keyboard/adp5588-keys.c ret |= adp5588_write(client, KP_GPIO2, KP_SEL(pdata->cols) & 0xFF); pdata 339 drivers/input/keyboard/adp5588-keys.c ret |= adp5588_write(client, KP_GPIO3, KP_SEL(pdata->cols) >> 8); pdata 341 drivers/input/keyboard/adp5588-keys.c if (pdata->en_keylock) { pdata 342 drivers/input/keyboard/adp5588-keys.c ret |= adp5588_write(client, UNLOCK1, pdata->unlock_key1); pdata 343 drivers/input/keyboard/adp5588-keys.c ret |= adp5588_write(client, UNLOCK2, pdata->unlock_key2); pdata 350 drivers/input/keyboard/adp5588-keys.c for (i = 0; i < pdata->gpimapsize; i++) { pdata 351 drivers/input/keyboard/adp5588-keys.c unsigned short pin = pdata->gpimap[i].pin; pdata 361 drivers/input/keyboard/adp5588-keys.c if (pdata->gpimapsize) { pdata 435 drivers/input/keyboard/adp5588-keys.c const struct adp5588_kpad_platform_data *pdata = pdata 448 drivers/input/keyboard/adp5588-keys.c if (!pdata) { pdata 453 drivers/input/keyboard/adp5588-keys.c if (!pdata->rows || !pdata->cols || !pdata->keymap) { pdata 458 drivers/input/keyboard/adp5588-keys.c if (pdata->keymapsize != ADP5588_KEYMAPSIZE) { pdata 463 drivers/input/keyboard/adp5588-keys.c if (!pdata->gpimap && pdata->gpimapsize) { pdata 468 drivers/input/keyboard/adp5588-keys.c if (pdata->gpimapsize > ADP5588_GPIMAPSIZE_MAX) { pdata 473 drivers/input/keyboard/adp5588-keys.c for (i = 0; i < pdata->gpimapsize; i++) { pdata 474 drivers/input/keyboard/adp5588-keys.c unsigned short pin = pdata->gpimap[i].pin; pdata 482 drivers/input/keyboard/adp5588-keys.c if (pin - GPI_PIN_ROW_BASE + 1 <= pdata->rows) { pdata 487 drivers/input/keyboard/adp5588-keys.c if (pin - GPI_PIN_COL_BASE + 1 <= pdata->cols) { pdata 532 drivers/input/keyboard/adp5588-keys.c input->keycodemax = pdata->keymapsize; pdata 535 drivers/input/keyboard/adp5588-keys.c memcpy(kpad->keycode, pdata->keymap, pdata 536 drivers/input/keyboard/adp5588-keys.c pdata->keymapsize * input->keycodesize); pdata 538 drivers/input/keyboard/adp5588-keys.c kpad->gpimap = pdata->gpimap; pdata 539 drivers/input/keyboard/adp5588-keys.c kpad->gpimapsize = pdata->gpimapsize; pdata 544 drivers/input/keyboard/adp5588-keys.c if (pdata->repeat) pdata 467 drivers/input/keyboard/adp5589-keys.c const struct adp5589_kpad_platform_data *pdata) pdata 476 drivers/input/keyboard/adp5589-keys.c if (pdata->keypad_en_mask & (1 << i)) pdata 501 drivers/input/keyboard/adp5589-keys.c const struct adp5589_kpad_platform_data *pdata = dev_get_platdata(dev); pdata 502 drivers/input/keyboard/adp5589-keys.c const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; pdata 509 drivers/input/keyboard/adp5589-keys.c kpad->gc.ngpio = adp5589_build_gpiomap(kpad, pdata); pdata 556 drivers/input/keyboard/adp5589-keys.c const struct adp5589_kpad_platform_data *pdata = dev_get_platdata(dev); pdata 557 drivers/input/keyboard/adp5589-keys.c const struct adp5589_gpio_platform_data *gpio_data = pdata->gpio_data; pdata 658 drivers/input/keyboard/adp5589-keys.c const struct adp5589_kpad_platform_data *pdata = pdata 666 drivers/input/keyboard/adp5589-keys.c pdata->keypad_en_mask & kpad->var->row_mask); pdata 668 drivers/input/keyboard/adp5589-keys.c (pdata->keypad_en_mask >> kpad->var->col_shift) & pdata 673 drivers/input/keyboard/adp5589-keys.c (pdata->keypad_en_mask >> 16) & 0xFF); pdata 675 drivers/input/keyboard/adp5589-keys.c if (!kpad->is_adp5585 && pdata->en_keylock) { pdata 677 drivers/input/keyboard/adp5589-keys.c pdata->unlock_key1); pdata 679 drivers/input/keyboard/adp5589-keys.c pdata->unlock_key2); pdata 681 drivers/input/keyboard/adp5589-keys.c pdata->unlock_timer & LTIME_MASK); pdata 688 drivers/input/keyboard/adp5589-keys.c for (i = 0; i < pdata->gpimapsize; i++) { pdata 689 drivers/input/keyboard/adp5589-keys.c unsigned short pin = pdata->gpimap[i].pin; pdata 702 drivers/input/keyboard/adp5589-keys.c if (pdata->gpimapsize) { pdata 713 drivers/input/keyboard/adp5589-keys.c if (pdata->pull_dis_mask & pdata->pullup_en_100k & pdata 714 drivers/input/keyboard/adp5589-keys.c pdata->pullup_en_300k & pdata->pulldown_en_300k) pdata 719 drivers/input/keyboard/adp5589-keys.c if (pdata->pullup_en_300k & bit) pdata 721 drivers/input/keyboard/adp5589-keys.c else if (pdata->pulldown_en_300k & bit) pdata 723 drivers/input/keyboard/adp5589-keys.c else if (pdata->pullup_en_100k & bit) pdata 725 drivers/input/keyboard/adp5589-keys.c else if (pdata->pull_dis_mask & bit) pdata 739 drivers/input/keyboard/adp5589-keys.c if (pdata->pullup_en_300k & bit) pdata 741 drivers/input/keyboard/adp5589-keys.c else if (pdata->pulldown_en_300k & bit) pdata 743 drivers/input/keyboard/adp5589-keys.c else if (pdata->pullup_en_100k & bit) pdata 745 drivers/input/keyboard/adp5589-keys.c else if (pdata->pull_dis_mask & bit) pdata 758 drivers/input/keyboard/adp5589-keys.c if (pdata->reset1_key_1 && pdata->reset1_key_2 && pdata->reset1_key_3) { pdata 761 drivers/input/keyboard/adp5589-keys.c pdata->reset1_key_1)); pdata 764 drivers/input/keyboard/adp5589-keys.c pdata->reset1_key_2)); pdata 767 drivers/input/keyboard/adp5589-keys.c pdata->reset1_key_3)); pdata 771 drivers/input/keyboard/adp5589-keys.c if (pdata->reset2_key_1 && pdata->reset2_key_2) { pdata 774 drivers/input/keyboard/adp5589-keys.c pdata->reset2_key_1)); pdata 777 drivers/input/keyboard/adp5589-keys.c pdata->reset2_key_2)); pdata 783 drivers/input/keyboard/adp5589-keys.c pdata->reset_cfg); pdata 789 drivers/input/keyboard/adp5589-keys.c pdata->debounce_dis_mask & kpad->var->row_mask); pdata 792 drivers/input/keyboard/adp5589-keys.c (pdata->debounce_dis_mask >> kpad->var->col_shift) pdata 797 drivers/input/keyboard/adp5589-keys.c (pdata->debounce_dis_mask >> 16) & 0xFF); pdata 800 drivers/input/keyboard/adp5589-keys.c pdata->scan_cycle_time & PTIME_MASK); pdata 864 drivers/input/keyboard/adp5589-keys.c const struct adp5589_kpad_platform_data *pdata = pdata 877 drivers/input/keyboard/adp5589-keys.c if (!pdata) { pdata 900 drivers/input/keyboard/adp5589-keys.c if (!((pdata->keypad_en_mask & kpad->var->row_mask) && pdata 901 drivers/input/keyboard/adp5589-keys.c (pdata->keypad_en_mask >> kpad->var->col_shift)) || pdata 902 drivers/input/keyboard/adp5589-keys.c !pdata->keymap) { pdata 908 drivers/input/keyboard/adp5589-keys.c if (pdata->keymapsize != kpad->var->keymapsize) { pdata 914 drivers/input/keyboard/adp5589-keys.c if (!pdata->gpimap && pdata->gpimapsize) { pdata 920 drivers/input/keyboard/adp5589-keys.c if (pdata->gpimapsize > kpad->var->gpimapsize_max) { pdata 926 drivers/input/keyboard/adp5589-keys.c for (i = 0; i < pdata->gpimapsize; i++) { pdata 927 drivers/input/keyboard/adp5589-keys.c unsigned short pin = pdata->gpimap[i].pin; pdata 937 drivers/input/keyboard/adp5589-keys.c pdata->keypad_en_mask) { pdata 979 drivers/input/keyboard/adp5589-keys.c input->keycodemax = pdata->keymapsize; pdata 982 drivers/input/keyboard/adp5589-keys.c memcpy(kpad->keycode, pdata->keymap, pdata 983 drivers/input/keyboard/adp5589-keys.c pdata->keymapsize * input->keycodesize); pdata 985 drivers/input/keyboard/adp5589-keys.c kpad->gpimap = pdata->gpimap; pdata 986 drivers/input/keyboard/adp5589-keys.c kpad->gpimapsize = pdata->gpimapsize; pdata 991 drivers/input/keyboard/adp5589-keys.c if (pdata->repeat) pdata 54 drivers/input/keyboard/davinci_keyscan.c struct davinci_ks_platform_data *pdata; pdata 66 drivers/input/keyboard/davinci_keyscan.c struct davinci_ks_platform_data *pdata = davinci_ks->pdata; pdata 78 drivers/input/keyboard/davinci_keyscan.c __raw_writel(pdata->strobe, pdata 80 drivers/input/keyboard/davinci_keyscan.c __raw_writel(pdata->interval, pdata 86 drivers/input/keyboard/davinci_keyscan.c switch (pdata->matrix_type) { pdata 110 drivers/input/keyboard/davinci_keyscan.c int keymapsize = davinci_ks->pdata->keymapsize; pdata 158 drivers/input/keyboard/davinci_keyscan.c struct davinci_ks_platform_data *pdata = dev_get_platdata(dev); pdata 161 drivers/input/keyboard/davinci_keyscan.c if (pdata->device_enable) { pdata 162 drivers/input/keyboard/davinci_keyscan.c error = pdata->device_enable(dev); pdata 169 drivers/input/keyboard/davinci_keyscan.c if (!pdata->keymap) { pdata 175 drivers/input/keyboard/davinci_keyscan.c sizeof(unsigned short) * pdata->keymapsize, GFP_KERNEL); pdata 181 drivers/input/keyboard/davinci_keyscan.c memcpy(davinci_ks->keymap, pdata->keymap, pdata 182 drivers/input/keyboard/davinci_keyscan.c sizeof(unsigned short) * pdata->keymapsize); pdata 226 drivers/input/keyboard/davinci_keyscan.c if (pdata->rep) pdata 233 drivers/input/keyboard/davinci_keyscan.c davinci_ks->pdata = pdata; pdata 235 drivers/input/keyboard/davinci_keyscan.c for (i = 0; i < davinci_ks->pdata->keymapsize; i++) pdata 236 drivers/input/keyboard/davinci_keyscan.c __set_bit(davinci_ks->pdata->keymap[i], key_dev->keybit); pdata 247 drivers/input/keyboard/davinci_keyscan.c key_dev->keycodemax = davinci_ks->pdata->keymapsize; pdata 64 drivers/input/keyboard/ep93xx_keypad.c struct ep93xx_keypad_platform_data *pdata; pdata 133 drivers/input/keyboard/ep93xx_keypad.c struct ep93xx_keypad_platform_data *pdata = keypad->pdata; pdata 136 drivers/input/keyboard/ep93xx_keypad.c clk_set_rate(keypad->clk, pdata->clk_rate); pdata 138 drivers/input/keyboard/ep93xx_keypad.c if (pdata->flags & EP93XX_KEYPAD_DISABLE_3_KEY) pdata 140 drivers/input/keyboard/ep93xx_keypad.c if (pdata->flags & EP93XX_KEYPAD_DIAG_MODE) pdata 142 drivers/input/keyboard/ep93xx_keypad.c if (pdata->flags & EP93XX_KEYPAD_BACK_DRIVE) pdata 144 drivers/input/keyboard/ep93xx_keypad.c if (pdata->flags & EP93XX_KEYPAD_TEST_MODE) pdata 147 drivers/input/keyboard/ep93xx_keypad.c val |= ((pdata->debounce << KEY_INIT_DBNC_SHIFT) & KEY_INIT_DBNC_MASK); pdata 149 drivers/input/keyboard/ep93xx_keypad.c val |= ((pdata->prescale << KEY_INIT_PRSCL_SHIFT) & KEY_INIT_PRSCL_MASK); pdata 240 drivers/input/keyboard/ep93xx_keypad.c keypad->pdata = dev_get_platdata(&pdev->dev); pdata 241 drivers/input/keyboard/ep93xx_keypad.c if (!keypad->pdata) { pdata 246 drivers/input/keyboard/ep93xx_keypad.c keymap_data = keypad->pdata->keymap_data; pdata 306 drivers/input/keyboard/ep93xx_keypad.c if (keypad->pdata->flags & EP93XX_KEYPAD_AUTOREPEAT) pdata 54 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_platform_data *pdata; pdata 200 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { pdata 254 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { pdata 269 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { pdata 650 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { pdata 661 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_platform_data *pdata = ddata->pdata; pdata 664 drivers/input/keyboard/gpio_keys.c if (pdata->enable) { pdata 665 drivers/input/keyboard/gpio_keys.c error = pdata->enable(input->dev.parent); pdata 679 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_platform_data *pdata = ddata->pdata; pdata 681 drivers/input/keyboard/gpio_keys.c if (pdata->disable) pdata 682 drivers/input/keyboard/gpio_keys.c pdata->disable(input->dev.parent); pdata 695 drivers/input/keyboard/gpio_keys.c struct gpio_keys_platform_data *pdata; pdata 704 drivers/input/keyboard/gpio_keys.c pdata = devm_kzalloc(dev, pdata 705 drivers/input/keyboard/gpio_keys.c sizeof(*pdata) + nbuttons * sizeof(*button), pdata 707 drivers/input/keyboard/gpio_keys.c if (!pdata) pdata 710 drivers/input/keyboard/gpio_keys.c button = (struct gpio_keys_button *)(pdata + 1); pdata 712 drivers/input/keyboard/gpio_keys.c pdata->buttons = button; pdata 713 drivers/input/keyboard/gpio_keys.c pdata->nbuttons = nbuttons; pdata 715 drivers/input/keyboard/gpio_keys.c pdata->rep = device_property_read_bool(dev, "autorepeat"); pdata 717 drivers/input/keyboard/gpio_keys.c device_property_read_string(dev, "label", &pdata->name); pdata 755 drivers/input/keyboard/gpio_keys.c return pdata; pdata 767 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_platform_data *pdata = dev_get_platdata(dev); pdata 774 drivers/input/keyboard/gpio_keys.c if (!pdata) { pdata 775 drivers/input/keyboard/gpio_keys.c pdata = gpio_keys_get_devtree_pdata(dev); pdata 776 drivers/input/keyboard/gpio_keys.c if (IS_ERR(pdata)) pdata 777 drivers/input/keyboard/gpio_keys.c return PTR_ERR(pdata); pdata 780 drivers/input/keyboard/gpio_keys.c ddata = devm_kzalloc(dev, struct_size(ddata, data, pdata->nbuttons), pdata 788 drivers/input/keyboard/gpio_keys.c pdata->nbuttons, sizeof(ddata->keymap[0]), pdata 799 drivers/input/keyboard/gpio_keys.c ddata->pdata = pdata; pdata 806 drivers/input/keyboard/gpio_keys.c input->name = pdata->name ? : pdev->name; pdata 819 drivers/input/keyboard/gpio_keys.c input->keycodemax = pdata->nbuttons; pdata 822 drivers/input/keyboard/gpio_keys.c if (pdata->rep) pdata 825 drivers/input/keyboard/gpio_keys.c for (i = 0; i < pdata->nbuttons; i++) { pdata 826 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_button *button = &pdata->buttons[i]; pdata 922 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { pdata 951 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { pdata 39 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_platform_data *pdata; pdata 92 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_platform_data *pdata = bdev->pdata; pdata 99 drivers/input/keyboard/gpio_keys_polled.c for (i = 0; i < pdata->nbuttons; i++) { pdata 104 drivers/input/keyboard/gpio_keys_polled.c gpio_keys_button_event(dev, &pdata->buttons[i], pdata 107 drivers/input/keyboard/gpio_keys_polled.c gpio_keys_polled_check_state(dev, &pdata->buttons[i], pdata 128 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_platform_data *pdata = bdev->pdata; pdata 130 drivers/input/keyboard/gpio_keys_polled.c if (pdata->enable) pdata 131 drivers/input/keyboard/gpio_keys_polled.c pdata->enable(bdev->dev); pdata 137 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_platform_data *pdata = bdev->pdata; pdata 139 drivers/input/keyboard/gpio_keys_polled.c if (pdata->disable) pdata 140 drivers/input/keyboard/gpio_keys_polled.c pdata->disable(bdev->dev); pdata 146 drivers/input/keyboard/gpio_keys_polled.c struct gpio_keys_platform_data *pdata; pdata 155 drivers/input/keyboard/gpio_keys_polled.c pdata = devm_kzalloc(dev, sizeof(*pdata) + nbuttons * sizeof(*button), pdata 157 drivers/input/keyboard/gpio_keys_polled.c if (!pdata) pdata 160 drivers/input/keyboard/gpio_keys_polled.c button = (struct gpio_keys_button *)(pdata + 1); pdata 162 drivers/input/keyboard/gpio_keys_polled.c pdata->buttons = button; pdata 163 drivers/input/keyboard/gpio_keys_polled.c pdata->nbuttons = nbuttons; pdata 165 drivers/input/keyboard/gpio_keys_polled.c pdata->rep = device_property_present(dev, "autorepeat"); pdata 166 drivers/input/keyboard/gpio_keys_polled.c device_property_read_u32(dev, "poll-interval", &pdata->poll_interval); pdata 168 drivers/input/keyboard/gpio_keys_polled.c device_property_read_string(dev, "label", &pdata->name); pdata 200 drivers/input/keyboard/gpio_keys_polled.c return pdata; pdata 204 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_platform_data *pdata, unsigned int code) pdata 208 drivers/input/keyboard/gpio_keys_polled.c for (i = 0; i < pdata->nbuttons; i++) { pdata 209 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_button *button = &pdata->buttons[i]; pdata 233 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_platform_data *pdata = dev_get_platdata(dev); pdata 240 drivers/input/keyboard/gpio_keys_polled.c if (!pdata) { pdata 241 drivers/input/keyboard/gpio_keys_polled.c pdata = gpio_keys_polled_get_devtree_pdata(dev); pdata 242 drivers/input/keyboard/gpio_keys_polled.c if (IS_ERR(pdata)) pdata 243 drivers/input/keyboard/gpio_keys_polled.c return PTR_ERR(pdata); pdata 246 drivers/input/keyboard/gpio_keys_polled.c if (!pdata->poll_interval) { pdata 251 drivers/input/keyboard/gpio_keys_polled.c bdev = devm_kzalloc(dev, struct_size(bdev, data, pdata->nbuttons), pdata 266 drivers/input/keyboard/gpio_keys_polled.c poll_dev->poll_interval = pdata->poll_interval; pdata 272 drivers/input/keyboard/gpio_keys_polled.c input->name = pdata->name ?: pdev->name; pdata 281 drivers/input/keyboard/gpio_keys_polled.c if (pdata->rep) pdata 284 drivers/input/keyboard/gpio_keys_polled.c for (i = 0; i < pdata->nbuttons; i++) { pdata 285 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_button *button = &pdata->buttons[i]; pdata 346 drivers/input/keyboard/gpio_keys_polled.c pdata->poll_interval); pdata 350 drivers/input/keyboard/gpio_keys_polled.c gpio_keys_polled_set_abs_params(input, pdata, pdata 358 drivers/input/keyboard/gpio_keys_polled.c bdev->pdata = pdata; pdata 368 drivers/input/keyboard/gpio_keys_polled.c for (i = 0; i < pdata->nbuttons; i++) pdata 369 drivers/input/keyboard/gpio_keys_polled.c gpio_keys_polled_check_state(poll_dev, &pdata->buttons[i], pdata 621 drivers/input/keyboard/lm8323.c struct lm8323_platform_data *pdata = dev_get_platdata(&client->dev); pdata 629 drivers/input/keyboard/lm8323.c if (!pdata || !pdata->size_x || !pdata->size_y) { pdata 634 drivers/input/keyboard/lm8323.c if (pdata->size_x > 8) { pdata 636 drivers/input/keyboard/lm8323.c pdata->size_x); pdata 640 drivers/input/keyboard/lm8323.c if (pdata->size_y > 12) { pdata 642 drivers/input/keyboard/lm8323.c pdata->size_y); pdata 657 drivers/input/keyboard/lm8323.c lm->size_x = pdata->size_x; pdata 658 drivers/input/keyboard/lm8323.c lm->size_y = pdata->size_y; pdata 662 drivers/input/keyboard/lm8323.c lm->debounce_time = pdata->debounce_time; pdata 663 drivers/input/keyboard/lm8323.c lm->active_time = pdata->active_time; pdata 694 drivers/input/keyboard/lm8323.c pdata->pwm_names[pwm]); pdata 704 drivers/input/keyboard/lm8323.c idev->name = pdata->name ? : "LM8323 keypad"; pdata 712 drivers/input/keyboard/lm8323.c __set_bit(pdata->keymap[i], idev->keybit); pdata 713 drivers/input/keyboard/lm8323.c lm->keymap[i] = pdata->keymap[i]; pdata 717 drivers/input/keyboard/lm8323.c if (pdata->repeat) pdata 131 drivers/input/keyboard/lm8333.c const struct lm8333_platform_data *pdata = pdata 137 drivers/input/keyboard/lm8333.c if (!pdata) pdata 140 drivers/input/keyboard/lm8333.c active_time = pdata->active_time ?: 500; pdata 141 drivers/input/keyboard/lm8333.c if (active_time / 3 <= pdata->debounce_time / 3) { pdata 162 drivers/input/keyboard/lm8333.c err = matrix_keypad_build_keymap(pdata->matrix_data, NULL, pdata 168 drivers/input/keyboard/lm8333.c if (pdata->debounce_time) { pdata 170 drivers/input/keyboard/lm8333.c pdata->debounce_time / 3); pdata 175 drivers/input/keyboard/lm8333.c if (pdata->active_time) { pdata 177 drivers/input/keyboard/lm8333.c pdata->active_time / 3); pdata 26 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata; pdata 46 drivers/input/keyboard/matrix_keypad.c static void __activate_col(const struct matrix_keypad_platform_data *pdata, pdata 49 drivers/input/keyboard/matrix_keypad.c bool level_on = !pdata->active_low; pdata 52 drivers/input/keyboard/matrix_keypad.c gpio_direction_output(pdata->col_gpios[col], level_on); pdata 54 drivers/input/keyboard/matrix_keypad.c gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); pdata 55 drivers/input/keyboard/matrix_keypad.c if (!pdata->drive_inactive_cols) pdata 56 drivers/input/keyboard/matrix_keypad.c gpio_direction_input(pdata->col_gpios[col]); pdata 60 drivers/input/keyboard/matrix_keypad.c static void activate_col(const struct matrix_keypad_platform_data *pdata, pdata 63 drivers/input/keyboard/matrix_keypad.c __activate_col(pdata, col, on); pdata 65 drivers/input/keyboard/matrix_keypad.c if (on && pdata->col_scan_delay_us) pdata 66 drivers/input/keyboard/matrix_keypad.c udelay(pdata->col_scan_delay_us); pdata 69 drivers/input/keyboard/matrix_keypad.c static void activate_all_cols(const struct matrix_keypad_platform_data *pdata, pdata 74 drivers/input/keyboard/matrix_keypad.c for (col = 0; col < pdata->num_col_gpios; col++) pdata 75 drivers/input/keyboard/matrix_keypad.c __activate_col(pdata, col, on); pdata 78 drivers/input/keyboard/matrix_keypad.c static bool row_asserted(const struct matrix_keypad_platform_data *pdata, pdata 81 drivers/input/keyboard/matrix_keypad.c return gpio_get_value_cansleep(pdata->row_gpios[row]) ? pdata 82 drivers/input/keyboard/matrix_keypad.c !pdata->active_low : pdata->active_low; pdata 87 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata = keypad->pdata; pdata 90 drivers/input/keyboard/matrix_keypad.c if (pdata->clustered_irq > 0) pdata 91 drivers/input/keyboard/matrix_keypad.c enable_irq(pdata->clustered_irq); pdata 93 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_row_gpios; i++) pdata 94 drivers/input/keyboard/matrix_keypad.c enable_irq(gpio_to_irq(pdata->row_gpios[i])); pdata 100 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata = keypad->pdata; pdata 103 drivers/input/keyboard/matrix_keypad.c if (pdata->clustered_irq > 0) pdata 104 drivers/input/keyboard/matrix_keypad.c disable_irq_nosync(pdata->clustered_irq); pdata 106 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_row_gpios; i++) pdata 107 drivers/input/keyboard/matrix_keypad.c disable_irq_nosync(gpio_to_irq(pdata->row_gpios[i])); pdata 120 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata = keypad->pdata; pdata 125 drivers/input/keyboard/matrix_keypad.c activate_all_cols(pdata, false); pdata 130 drivers/input/keyboard/matrix_keypad.c for (col = 0; col < pdata->num_col_gpios; col++) { pdata 132 drivers/input/keyboard/matrix_keypad.c activate_col(pdata, col, true); pdata 134 drivers/input/keyboard/matrix_keypad.c for (row = 0; row < pdata->num_row_gpios; row++) pdata 136 drivers/input/keyboard/matrix_keypad.c row_asserted(pdata, row) ? (1 << row) : 0; pdata 138 drivers/input/keyboard/matrix_keypad.c activate_col(pdata, col, false); pdata 141 drivers/input/keyboard/matrix_keypad.c for (col = 0; col < pdata->num_col_gpios; col++) { pdata 148 drivers/input/keyboard/matrix_keypad.c for (row = 0; row < pdata->num_row_gpios; row++) { pdata 163 drivers/input/keyboard/matrix_keypad.c activate_all_cols(pdata, true); pdata 190 drivers/input/keyboard/matrix_keypad.c msecs_to_jiffies(keypad->pdata->debounce_ms)); pdata 232 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata = keypad->pdata; pdata 236 drivers/input/keyboard/matrix_keypad.c if (pdata->clustered_irq > 0) { pdata 237 drivers/input/keyboard/matrix_keypad.c if (enable_irq_wake(pdata->clustered_irq) == 0) pdata 241 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_row_gpios; i++) { pdata 243 drivers/input/keyboard/matrix_keypad.c gpio = pdata->row_gpios[i]; pdata 254 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata = keypad->pdata; pdata 258 drivers/input/keyboard/matrix_keypad.c if (pdata->clustered_irq > 0) { pdata 260 drivers/input/keyboard/matrix_keypad.c disable_irq_wake(pdata->clustered_irq); pdata 264 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_row_gpios; i++) { pdata 266 drivers/input/keyboard/matrix_keypad.c gpio = pdata->row_gpios[i]; pdata 306 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata = keypad->pdata; pdata 310 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_col_gpios; i++) { pdata 311 drivers/input/keyboard/matrix_keypad.c err = gpio_request(pdata->col_gpios[i], "matrix_kbd_col"); pdata 315 drivers/input/keyboard/matrix_keypad.c pdata->col_gpios[i], i); pdata 319 drivers/input/keyboard/matrix_keypad.c gpio_direction_output(pdata->col_gpios[i], !pdata->active_low); pdata 322 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_row_gpios; i++) { pdata 323 drivers/input/keyboard/matrix_keypad.c err = gpio_request(pdata->row_gpios[i], "matrix_kbd_row"); pdata 327 drivers/input/keyboard/matrix_keypad.c pdata->row_gpios[i], i); pdata 331 drivers/input/keyboard/matrix_keypad.c gpio_direction_input(pdata->row_gpios[i]); pdata 334 drivers/input/keyboard/matrix_keypad.c if (pdata->clustered_irq > 0) { pdata 335 drivers/input/keyboard/matrix_keypad.c err = request_any_context_irq(pdata->clustered_irq, pdata 337 drivers/input/keyboard/matrix_keypad.c pdata->clustered_irq_flags, pdata 345 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_row_gpios; i++) { pdata 347 drivers/input/keyboard/matrix_keypad.c gpio_to_irq(pdata->row_gpios[i]), pdata 355 drivers/input/keyboard/matrix_keypad.c pdata->row_gpios[i]); pdata 367 drivers/input/keyboard/matrix_keypad.c free_irq(gpio_to_irq(pdata->row_gpios[i]), keypad); pdata 368 drivers/input/keyboard/matrix_keypad.c i = pdata->num_row_gpios; pdata 371 drivers/input/keyboard/matrix_keypad.c gpio_free(pdata->row_gpios[i]); pdata 372 drivers/input/keyboard/matrix_keypad.c i = pdata->num_col_gpios; pdata 375 drivers/input/keyboard/matrix_keypad.c gpio_free(pdata->col_gpios[i]); pdata 382 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata = keypad->pdata; pdata 385 drivers/input/keyboard/matrix_keypad.c if (pdata->clustered_irq > 0) { pdata 386 drivers/input/keyboard/matrix_keypad.c free_irq(pdata->clustered_irq, keypad); pdata 388 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_row_gpios; i++) pdata 389 drivers/input/keyboard/matrix_keypad.c free_irq(gpio_to_irq(pdata->row_gpios[i]), keypad); pdata 392 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_row_gpios; i++) pdata 393 drivers/input/keyboard/matrix_keypad.c gpio_free(pdata->row_gpios[i]); pdata 395 drivers/input/keyboard/matrix_keypad.c for (i = 0; i < pdata->num_col_gpios; i++) pdata 396 drivers/input/keyboard/matrix_keypad.c gpio_free(pdata->col_gpios[i]); pdata 403 drivers/input/keyboard/matrix_keypad.c struct matrix_keypad_platform_data *pdata; pdata 413 drivers/input/keyboard/matrix_keypad.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 414 drivers/input/keyboard/matrix_keypad.c if (!pdata) { pdata 419 drivers/input/keyboard/matrix_keypad.c pdata->num_row_gpios = nrow = of_gpio_named_count(np, "row-gpios"); pdata 420 drivers/input/keyboard/matrix_keypad.c pdata->num_col_gpios = ncol = of_gpio_named_count(np, "col-gpios"); pdata 427 drivers/input/keyboard/matrix_keypad.c pdata->no_autorepeat = true; pdata 429 drivers/input/keyboard/matrix_keypad.c pdata->wakeup = of_property_read_bool(np, "wakeup-source") || pdata 433 drivers/input/keyboard/matrix_keypad.c pdata->active_low = true; pdata 435 drivers/input/keyboard/matrix_keypad.c pdata->drive_inactive_cols = pdata 438 drivers/input/keyboard/matrix_keypad.c of_property_read_u32(np, "debounce-delay-ms", &pdata->debounce_ms); pdata 440 drivers/input/keyboard/matrix_keypad.c &pdata->col_scan_delay_us); pdata 443 drivers/input/keyboard/matrix_keypad.c pdata->num_row_gpios + pdata->num_col_gpios, pdata 465 drivers/input/keyboard/matrix_keypad.c pdata->row_gpios = gpios; pdata 466 drivers/input/keyboard/matrix_keypad.c pdata->col_gpios = &gpios[pdata->num_row_gpios]; pdata 468 drivers/input/keyboard/matrix_keypad.c return pdata; pdata 482 drivers/input/keyboard/matrix_keypad.c const struct matrix_keypad_platform_data *pdata; pdata 487 drivers/input/keyboard/matrix_keypad.c pdata = dev_get_platdata(&pdev->dev); pdata 488 drivers/input/keyboard/matrix_keypad.c if (!pdata) { pdata 489 drivers/input/keyboard/matrix_keypad.c pdata = matrix_keypad_parse_dt(&pdev->dev); pdata 490 drivers/input/keyboard/matrix_keypad.c if (IS_ERR(pdata)) pdata 491 drivers/input/keyboard/matrix_keypad.c return PTR_ERR(pdata); pdata 492 drivers/input/keyboard/matrix_keypad.c } else if (!pdata->keymap_data) { pdata 505 drivers/input/keyboard/matrix_keypad.c keypad->pdata = pdata; pdata 506 drivers/input/keyboard/matrix_keypad.c keypad->row_shift = get_count_order(pdata->num_col_gpios); pdata 517 drivers/input/keyboard/matrix_keypad.c err = matrix_keypad_build_keymap(pdata->keymap_data, NULL, pdata 518 drivers/input/keyboard/matrix_keypad.c pdata->num_row_gpios, pdata 519 drivers/input/keyboard/matrix_keypad.c pdata->num_col_gpios, pdata 526 drivers/input/keyboard/matrix_keypad.c if (!pdata->no_autorepeat) pdata 539 drivers/input/keyboard/matrix_keypad.c device_init_wakeup(&pdev->dev, pdata->wakeup); pdata 98 drivers/input/keyboard/mcs_touchkey.c const struct mcs_platform_data *pdata; pdata 106 drivers/input/keyboard/mcs_touchkey.c pdata = dev_get_platdata(&client->dev); pdata 107 drivers/input/keyboard/mcs_touchkey.c if (!pdata) { pdata 112 drivers/input/keyboard/mcs_touchkey.c data = kzalloc(struct_size(data, keycodes, pdata->key_maxval + 1), pdata 149 drivers/input/keyboard/mcs_touchkey.c if (!pdata->no_autorepeat) pdata 153 drivers/input/keyboard/mcs_touchkey.c input_dev->keycodemax = pdata->key_maxval + 1; pdata 155 drivers/input/keyboard/mcs_touchkey.c for (i = 0; i < pdata->keymap_size; i++) { pdata 156 drivers/input/keyboard/mcs_touchkey.c unsigned int val = MCS_KEY_VAL(pdata->keymap[i]); pdata 157 drivers/input/keyboard/mcs_touchkey.c unsigned int code = MCS_KEY_CODE(pdata->keymap[i]); pdata 166 drivers/input/keyboard/mcs_touchkey.c if (pdata->cfg_pin) pdata 167 drivers/input/keyboard/mcs_touchkey.c pdata->cfg_pin(); pdata 169 drivers/input/keyboard/mcs_touchkey.c if (pdata->poweron) { pdata 170 drivers/input/keyboard/mcs_touchkey.c data->poweron = pdata->poweron; pdata 181 drivers/input/keyboard/omap-keypad.c struct omap_kp_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 185 drivers/input/keyboard/omap-keypad.c if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { pdata 190 drivers/input/keyboard/omap-keypad.c row_shift = get_count_order(pdata->cols); pdata 191 drivers/input/keyboard/omap-keypad.c keycodemax = pdata->rows << row_shift; pdata 209 drivers/input/keyboard/omap-keypad.c if (pdata->delay) pdata 210 drivers/input/keyboard/omap-keypad.c omap_kp->delay = pdata->delay; pdata 212 drivers/input/keyboard/omap-keypad.c if (pdata->row_gpios && pdata->col_gpios) { pdata 213 drivers/input/keyboard/omap-keypad.c row_gpios = pdata->row_gpios; pdata 214 drivers/input/keyboard/omap-keypad.c col_gpios = pdata->col_gpios; pdata 217 drivers/input/keyboard/omap-keypad.c omap_kp->rows = pdata->rows; pdata 218 drivers/input/keyboard/omap-keypad.c omap_kp->cols = pdata->cols; pdata 243 drivers/input/keyboard/omap-keypad.c if (pdata->rep) pdata 246 drivers/input/keyboard/omap-keypad.c ret = matrix_keypad_build_keymap(pdata->keymap_data, NULL, pdata 247 drivers/input/keyboard/omap-keypad.c pdata->rows, pdata->cols, pdata 258 drivers/input/keyboard/omap-keypad.c if (pdata->dbounce) pdata 97 drivers/input/keyboard/pxa27x_keypad.c const struct pxa27x_keypad_platform_data *pdata; pdata 119 drivers/input/keyboard/pxa27x_keypad.c struct pxa27x_keypad_platform_data *pdata) pdata 135 drivers/input/keyboard/pxa27x_keypad.c pdata->matrix_key_rows = rows; pdata 136 drivers/input/keyboard/pxa27x_keypad.c pdata->matrix_key_cols = cols; pdata 139 drivers/input/keyboard/pxa27x_keypad.c pdata->matrix_key_rows, pdata 140 drivers/input/keyboard/pxa27x_keypad.c pdata->matrix_key_cols, pdata 149 drivers/input/keyboard/pxa27x_keypad.c struct pxa27x_keypad_platform_data *pdata) pdata 161 drivers/input/keyboard/pxa27x_keypad.c &pdata->direct_key_num); pdata 171 drivers/input/keyboard/pxa27x_keypad.c &pdata->direct_key_mask); pdata 180 drivers/input/keyboard/pxa27x_keypad.c pdata->direct_key_mask = 0; pdata 183 drivers/input/keyboard/pxa27x_keypad.c pdata->direct_key_low_active = of_property_read_bool(np, pdata 209 drivers/input/keyboard/pxa27x_keypad.c struct pxa27x_keypad_platform_data *pdata) pdata 228 drivers/input/keyboard/pxa27x_keypad.c pdata->rotary0_rel_code = (code & 0xffff); pdata 232 drivers/input/keyboard/pxa27x_keypad.c pdata->rotary1_rel_code = relcode; pdata 265 drivers/input/keyboard/pxa27x_keypad.c pdata->rotary0_rel_code = -1; pdata 267 drivers/input/keyboard/pxa27x_keypad.c pdata->rotary1_rel_code = -1; pdata 270 drivers/input/keyboard/pxa27x_keypad.c pdata->enable_rotary0 = 1; pdata 272 drivers/input/keyboard/pxa27x_keypad.c pdata->enable_rotary1 = 1; pdata 275 drivers/input/keyboard/pxa27x_keypad.c keypad->rotary_rel_code[0] = pdata->rotary0_rel_code; pdata 276 drivers/input/keyboard/pxa27x_keypad.c keypad->rotary_rel_code[1] = pdata->rotary1_rel_code; pdata 286 drivers/input/keyboard/pxa27x_keypad.c struct pxa27x_keypad_platform_data *pdata; pdata 289 drivers/input/keyboard/pxa27x_keypad.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 290 drivers/input/keyboard/pxa27x_keypad.c if (!pdata) { pdata 295 drivers/input/keyboard/pxa27x_keypad.c error = pxa27x_keypad_matrix_key_parse_dt(keypad, pdata); pdata 301 drivers/input/keyboard/pxa27x_keypad.c error = pxa27x_keypad_direct_key_parse_dt(keypad, pdata); pdata 307 drivers/input/keyboard/pxa27x_keypad.c error = pxa27x_keypad_rotary_parse_dt(keypad, pdata); pdata 314 drivers/input/keyboard/pxa27x_keypad.c &pdata->debounce_interval); pdata 326 drivers/input/keyboard/pxa27x_keypad.c keypad->pdata = pdata; pdata 343 drivers/input/keyboard/pxa27x_keypad.c const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; pdata 349 drivers/input/keyboard/pxa27x_keypad.c error = matrix_keypad_build_keymap(pdata->matrix_keymap_data, NULL, pdata 350 drivers/input/keyboard/pxa27x_keypad.c pdata->matrix_key_rows, pdata 351 drivers/input/keyboard/pxa27x_keypad.c pdata->matrix_key_cols, pdata 363 drivers/input/keyboard/pxa27x_keypad.c for (i = 0; i < pdata->direct_key_num; i++) { pdata 364 drivers/input/keyboard/pxa27x_keypad.c keycode = pdata->direct_key_map[i]; pdata 369 drivers/input/keyboard/pxa27x_keypad.c if (pdata->enable_rotary0) { pdata 370 drivers/input/keyboard/pxa27x_keypad.c if (pdata->rotary0_up_key && pdata->rotary0_down_key) { pdata 371 drivers/input/keyboard/pxa27x_keypad.c keycode = pdata->rotary0_up_key; pdata 375 drivers/input/keyboard/pxa27x_keypad.c keycode = pdata->rotary0_down_key; pdata 381 drivers/input/keyboard/pxa27x_keypad.c keypad->rotary_rel_code[0] = pdata->rotary0_rel_code; pdata 382 drivers/input/keyboard/pxa27x_keypad.c __set_bit(pdata->rotary0_rel_code, input_dev->relbit); pdata 386 drivers/input/keyboard/pxa27x_keypad.c if (pdata->enable_rotary1) { pdata 387 drivers/input/keyboard/pxa27x_keypad.c if (pdata->rotary1_up_key && pdata->rotary1_down_key) { pdata 388 drivers/input/keyboard/pxa27x_keypad.c keycode = pdata->rotary1_up_key; pdata 392 drivers/input/keyboard/pxa27x_keypad.c keycode = pdata->rotary1_down_key; pdata 398 drivers/input/keyboard/pxa27x_keypad.c keypad->rotary_rel_code[1] = pdata->rotary1_rel_code; pdata 399 drivers/input/keyboard/pxa27x_keypad.c __set_bit(pdata->rotary1_rel_code, input_dev->relbit); pdata 410 drivers/input/keyboard/pxa27x_keypad.c const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; pdata 428 drivers/input/keyboard/pxa27x_keypad.c if (col >= pdata->matrix_key_cols || pdata 429 drivers/input/keyboard/pxa27x_keypad.c row >= pdata->matrix_key_rows) pdata 452 drivers/input/keyboard/pxa27x_keypad.c for (col = 0; col < pdata->matrix_key_cols; col++) { pdata 460 drivers/input/keyboard/pxa27x_keypad.c for (row = 0; row < pdata->matrix_key_rows; row++) { pdata 513 drivers/input/keyboard/pxa27x_keypad.c const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; pdata 520 drivers/input/keyboard/pxa27x_keypad.c if (pdata->enable_rotary0) pdata 523 drivers/input/keyboard/pxa27x_keypad.c if (pdata->enable_rotary1) pdata 529 drivers/input/keyboard/pxa27x_keypad.c const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; pdata 537 drivers/input/keyboard/pxa27x_keypad.c if (pdata->enable_rotary0 || pdata->enable_rotary1) pdata 544 drivers/input/keyboard/pxa27x_keypad.c if (pdata->direct_key_low_active) pdata 554 drivers/input/keyboard/pxa27x_keypad.c for (i = 0; i < pdata->direct_key_num; i++) { pdata 569 drivers/input/keyboard/pxa27x_keypad.c const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; pdata 571 drivers/input/keyboard/pxa27x_keypad.c if (pdata->clear_wakeup_event) pdata 572 drivers/input/keyboard/pxa27x_keypad.c (pdata->clear_wakeup_event)(); pdata 593 drivers/input/keyboard/pxa27x_keypad.c const struct pxa27x_keypad_platform_data *pdata = keypad->pdata; pdata 601 drivers/input/keyboard/pxa27x_keypad.c if (pdata->matrix_key_rows && pdata->matrix_key_cols) { pdata 603 drivers/input/keyboard/pxa27x_keypad.c kpc |= KPC_MKRN(pdata->matrix_key_rows) | pdata 604 drivers/input/keyboard/pxa27x_keypad.c KPC_MKCN(pdata->matrix_key_cols); pdata 608 drivers/input/keyboard/pxa27x_keypad.c if (pdata->enable_rotary0) { pdata 614 drivers/input/keyboard/pxa27x_keypad.c if (pdata->enable_rotary1) { pdata 620 drivers/input/keyboard/pxa27x_keypad.c if (pdata->direct_key_num > direct_key_num) pdata 621 drivers/input/keyboard/pxa27x_keypad.c direct_key_num = pdata->direct_key_num; pdata 627 drivers/input/keyboard/pxa27x_keypad.c if (pdata->direct_key_mask) pdata 628 drivers/input/keyboard/pxa27x_keypad.c keypad->direct_key_mask = pdata->direct_key_mask; pdata 638 drivers/input/keyboard/pxa27x_keypad.c keypad_writel(KPKDI, pdata->debounce_interval); pdata 717 drivers/input/keyboard/pxa27x_keypad.c const struct pxa27x_keypad_platform_data *pdata = pdata 726 drivers/input/keyboard/pxa27x_keypad.c if (!np && !pdata) pdata 748 drivers/input/keyboard/pxa27x_keypad.c keypad->pdata = pdata; pdata 777 drivers/input/keyboard/pxa27x_keypad.c if (pdata) { pdata 786 drivers/input/keyboard/pxa27x_keypad.c pdata = keypad->pdata; pdata 793 drivers/input/keyboard/pxa27x_keypad.c keypad->row_shift = get_count_order(pdata->matrix_key_cols); pdata 795 drivers/input/keyboard/pxa27x_keypad.c if ((pdata->enable_rotary0 && keypad->rotary_rel_code[0] != -1) || pdata 796 drivers/input/keyboard/pxa27x_keypad.c (pdata->enable_rotary1 && keypad->rotary_rel_code[1] != -1)) { pdata 26 drivers/input/keyboard/pxa930_rotary.c struct pxa930_rotary_platform_data *pdata; pdata 40 drivers/input/keyboard/pxa930_rotary.c struct pxa930_rotary_platform_data *pdata = r->pdata; pdata 52 drivers/input/keyboard/pxa930_rotary.c if (pdata->up_key && pdata->down_key) { pdata 53 drivers/input/keyboard/pxa930_rotary.c key = (delta > 0) ? pdata->up_key : pdata->down_key; pdata 58 drivers/input/keyboard/pxa930_rotary.c input_report_rel(r->input_dev, pdata->rel_code, delta); pdata 83 drivers/input/keyboard/pxa930_rotary.c struct pxa930_rotary_platform_data *pdata = pdata 101 drivers/input/keyboard/pxa930_rotary.c if (!pdata) { pdata 117 drivers/input/keyboard/pxa930_rotary.c r->pdata = pdata; pdata 134 drivers/input/keyboard/pxa930_rotary.c if (pdata->up_key && pdata->down_key) { pdata 135 drivers/input/keyboard/pxa930_rotary.c __set_bit(pdata->up_key, input_dev->keybit); pdata 136 drivers/input/keyboard/pxa930_rotary.c __set_bit(pdata->down_key, input_dev->keybit); pdata 139 drivers/input/keyboard/pxa930_rotary.c __set_bit(pdata->rel_code, input_dev->relbit); pdata 245 drivers/input/keyboard/samsung-keypad.c struct samsung_keypad_platdata *pdata; pdata 256 drivers/input/keyboard/samsung-keypad.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 257 drivers/input/keyboard/samsung-keypad.c if (!pdata) { pdata 268 drivers/input/keyboard/samsung-keypad.c pdata->rows = num_rows; pdata 269 drivers/input/keyboard/samsung-keypad.c pdata->cols = num_cols; pdata 276 drivers/input/keyboard/samsung-keypad.c pdata->keymap_data = keymap_data; pdata 296 drivers/input/keyboard/samsung-keypad.c pdata->no_autorepeat = true; pdata 298 drivers/input/keyboard/samsung-keypad.c pdata->wakeup = of_property_read_bool(np, "wakeup-source") || pdata 303 drivers/input/keyboard/samsung-keypad.c return pdata; pdata 317 drivers/input/keyboard/samsung-keypad.c const struct samsung_keypad_platdata *pdata; pdata 326 drivers/input/keyboard/samsung-keypad.c pdata = dev_get_platdata(&pdev->dev); pdata 327 drivers/input/keyboard/samsung-keypad.c if (!pdata) { pdata 328 drivers/input/keyboard/samsung-keypad.c pdata = samsung_keypad_parse_dt(&pdev->dev); pdata 329 drivers/input/keyboard/samsung-keypad.c if (IS_ERR(pdata)) pdata 330 drivers/input/keyboard/samsung-keypad.c return PTR_ERR(pdata); pdata 333 drivers/input/keyboard/samsung-keypad.c keymap_data = pdata->keymap_data; pdata 339 drivers/input/keyboard/samsung-keypad.c if (!pdata->rows || pdata->rows > SAMSUNG_MAX_ROWS) pdata 342 drivers/input/keyboard/samsung-keypad.c if (!pdata->cols || pdata->cols > SAMSUNG_MAX_COLS) pdata 346 drivers/input/keyboard/samsung-keypad.c if (pdata->cfg_gpio) pdata 347 drivers/input/keyboard/samsung-keypad.c pdata->cfg_gpio(pdata->rows, pdata->cols); pdata 349 drivers/input/keyboard/samsung-keypad.c row_shift = get_count_order(pdata->cols); pdata 350 drivers/input/keyboard/samsung-keypad.c keymap_size = (pdata->rows << row_shift) * sizeof(keypad->keycodes[0]); pdata 381 drivers/input/keyboard/samsung-keypad.c keypad->rows = pdata->rows; pdata 382 drivers/input/keyboard/samsung-keypad.c keypad->cols = pdata->cols; pdata 400 drivers/input/keyboard/samsung-keypad.c pdata->rows, pdata->cols, pdata 408 drivers/input/keyboard/samsung-keypad.c if (!pdata->no_autorepeat) pdata 427 drivers/input/keyboard/samsung-keypad.c device_init_wakeup(&pdev->dev, pdata->wakeup); pdata 436 drivers/input/keyboard/samsung-keypad.c devm_kfree(&pdev->dev, (void *)pdata->keymap_data->keymap); pdata 437 drivers/input/keyboard/samsung-keypad.c devm_kfree(&pdev->dev, (void *)pdata->keymap_data); pdata 438 drivers/input/keyboard/samsung-keypad.c devm_kfree(&pdev->dev, (void *)pdata); pdata 38 drivers/input/keyboard/sh_keysc.c struct sh_keysc_info pdata; pdata 63 drivers/input/keyboard/sh_keysc.c struct sh_keysc_info *pdata = &p->pdata; pdata 68 drivers/input/keyboard/sh_keysc.c if (pdata->kycr2_delay) pdata 69 drivers/input/keyboard/sh_keysc.c udelay(pdata->kycr2_delay); pdata 85 drivers/input/keyboard/sh_keysc.c struct sh_keysc_info *pdata = &priv->pdata; pdata 86 drivers/input/keyboard/sh_keysc.c int keyout_nr = sh_keysc_mode[pdata->mode].keyout; pdata 87 drivers/input/keyboard/sh_keysc.c int keyin_nr = sh_keysc_mode[pdata->mode].keyin; pdata 110 drivers/input/keyboard/sh_keysc.c udelay(pdata->delay); pdata 138 drivers/input/keyboard/sh_keysc.c k = pdata->keycodes[i]; pdata 164 drivers/input/keyboard/sh_keysc.c struct sh_keysc_info *pdata; pdata 195 drivers/input/keyboard/sh_keysc.c memcpy(&priv->pdata, dev_get_platdata(&pdev->dev), sizeof(priv->pdata)); pdata 196 drivers/input/keyboard/sh_keysc.c pdata = &priv->pdata; pdata 224 drivers/input/keyboard/sh_keysc.c input->keycode = pdata->keycodes; pdata 225 drivers/input/keyboard/sh_keysc.c input->keycodesize = sizeof(pdata->keycodes[0]); pdata 226 drivers/input/keyboard/sh_keysc.c input->keycodemax = ARRAY_SIZE(pdata->keycodes); pdata 236 drivers/input/keyboard/sh_keysc.c __set_bit(pdata->keycodes[i], input->keybit); pdata 248 drivers/input/keyboard/sh_keysc.c sh_keysc_write(priv, KYCR1, (sh_keysc_mode[pdata->mode].kymd << 8) | pdata 249 drivers/input/keyboard/sh_keysc.c pdata->scan_timing); pdata 44 drivers/input/keyboard/snvs_pwrkey.c struct pwrkey_drv_data *pdata = from_timer(pdata, t, check_timer); pdata 45 drivers/input/keyboard/snvs_pwrkey.c struct input_dev *input = pdata->input; pdata 48 drivers/input/keyboard/snvs_pwrkey.c regmap_read(pdata->snvs, SNVS_HPSR_REG, &state); pdata 52 drivers/input/keyboard/snvs_pwrkey.c if (state ^ pdata->keystate) { pdata 53 drivers/input/keyboard/snvs_pwrkey.c pdata->keystate = state; pdata 54 drivers/input/keyboard/snvs_pwrkey.c input_event(input, EV_KEY, pdata->keycode, state); pdata 56 drivers/input/keyboard/snvs_pwrkey.c pm_relax(pdata->input->dev.parent); pdata 61 drivers/input/keyboard/snvs_pwrkey.c mod_timer(&pdata->check_timer, pdata 69 drivers/input/keyboard/snvs_pwrkey.c struct pwrkey_drv_data *pdata = platform_get_drvdata(pdev); pdata 72 drivers/input/keyboard/snvs_pwrkey.c pm_wakeup_event(pdata->input->dev.parent, 0); pdata 74 drivers/input/keyboard/snvs_pwrkey.c regmap_read(pdata->snvs, SNVS_LPSR_REG, &lp_status); pdata 76 drivers/input/keyboard/snvs_pwrkey.c mod_timer(&pdata->check_timer, jiffies + msecs_to_jiffies(DEBOUNCE_TIME)); pdata 79 drivers/input/keyboard/snvs_pwrkey.c regmap_write(pdata->snvs, SNVS_LPSR_REG, SNVS_LPSR_SPO); pdata 84 drivers/input/keyboard/snvs_pwrkey.c static void imx_snvs_pwrkey_act(void *pdata) pdata 86 drivers/input/keyboard/snvs_pwrkey.c struct pwrkey_drv_data *pd = pdata; pdata 93 drivers/input/keyboard/snvs_pwrkey.c struct pwrkey_drv_data *pdata = NULL; pdata 103 drivers/input/keyboard/snvs_pwrkey.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 104 drivers/input/keyboard/snvs_pwrkey.c if (!pdata) pdata 107 drivers/input/keyboard/snvs_pwrkey.c pdata->snvs = syscon_regmap_lookup_by_phandle(np, "regmap"); pdata 108 drivers/input/keyboard/snvs_pwrkey.c if (IS_ERR(pdata->snvs)) { pdata 110 drivers/input/keyboard/snvs_pwrkey.c return PTR_ERR(pdata->snvs); pdata 113 drivers/input/keyboard/snvs_pwrkey.c if (of_property_read_u32(np, "linux,keycode", &pdata->keycode)) { pdata 114 drivers/input/keyboard/snvs_pwrkey.c pdata->keycode = KEY_POWER; pdata 118 drivers/input/keyboard/snvs_pwrkey.c pdata->wakeup = of_property_read_bool(np, "wakeup-source"); pdata 120 drivers/input/keyboard/snvs_pwrkey.c pdata->irq = platform_get_irq(pdev, 0); pdata 121 drivers/input/keyboard/snvs_pwrkey.c if (pdata->irq < 0) pdata 124 drivers/input/keyboard/snvs_pwrkey.c regmap_update_bits(pdata->snvs, SNVS_LPCR_REG, SNVS_LPCR_DEP_EN, SNVS_LPCR_DEP_EN); pdata 127 drivers/input/keyboard/snvs_pwrkey.c regmap_write(pdata->snvs, SNVS_LPSR_REG, SNVS_LPSR_SPO); pdata 129 drivers/input/keyboard/snvs_pwrkey.c timer_setup(&pdata->check_timer, imx_imx_snvs_check_for_events, 0); pdata 141 drivers/input/keyboard/snvs_pwrkey.c input_set_capability(input, EV_KEY, pdata->keycode); pdata 144 drivers/input/keyboard/snvs_pwrkey.c error = devm_add_action(&pdev->dev, imx_snvs_pwrkey_act, pdata); pdata 150 drivers/input/keyboard/snvs_pwrkey.c pdata->input = input; pdata 151 drivers/input/keyboard/snvs_pwrkey.c platform_set_drvdata(pdev, pdata); pdata 153 drivers/input/keyboard/snvs_pwrkey.c error = devm_request_irq(&pdev->dev, pdata->irq, pdata 168 drivers/input/keyboard/snvs_pwrkey.c device_init_wakeup(&pdev->dev, pdata->wakeup); pdata 169 drivers/input/keyboard/snvs_pwrkey.c error = dev_pm_set_wake_irq(&pdev->dev, pdata->irq); pdata 185 drivers/input/keyboard/spear-keyboard.c struct kbd_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 186 drivers/input/keyboard/spear-keyboard.c const struct matrix_keymap_data *keymap = pdata ? pdata->keymap : NULL; pdata 212 drivers/input/keyboard/spear-keyboard.c if (!pdata) { pdata 217 drivers/input/keyboard/spear-keyboard.c kbd->mode = pdata->mode; pdata 218 drivers/input/keyboard/spear-keyboard.c kbd->rep = pdata->rep; pdata 219 drivers/input/keyboard/spear-keyboard.c kbd->suspended_rate = pdata->suspended_rate; pdata 200 drivers/input/keyboard/tca6416-keypad.c struct tca6416_keys_platform_data *pdata; pdata 213 drivers/input/keyboard/tca6416-keypad.c pdata = dev_get_platdata(&client->dev); pdata 214 drivers/input/keyboard/tca6416-keypad.c if (!pdata) { pdata 219 drivers/input/keyboard/tca6416-keypad.c chip = kzalloc(struct_size(chip, buttons, pdata->nbuttons), GFP_KERNEL); pdata 229 drivers/input/keyboard/tca6416-keypad.c chip->pinmask = pdata->pinmask; pdata 230 drivers/input/keyboard/tca6416-keypad.c chip->use_polling = pdata->use_polling; pdata 247 drivers/input/keyboard/tca6416-keypad.c if (pdata->rep) pdata 250 drivers/input/keyboard/tca6416-keypad.c for (i = 0; i < pdata->nbuttons; i++) { pdata 253 drivers/input/keyboard/tca6416-keypad.c chip->buttons[i] = pdata->buttons[i]; pdata 254 drivers/input/keyboard/tca6416-keypad.c type = (pdata->buttons[i].type) ?: EV_KEY; pdata 255 drivers/input/keyboard/tca6416-keypad.c input_set_capability(input, type, pdata->buttons[i].code); pdata 269 drivers/input/keyboard/tca6416-keypad.c if (pdata->irq_is_gpio) pdata 325 drivers/input/keyboard/twl4030_keypad.c struct twl4030_keypad_data *pdata = dev_get_platdata(&pdev->dev); pdata 353 drivers/input/keyboard/twl4030_keypad.c if (pdata) { pdata 354 drivers/input/keyboard/twl4030_keypad.c if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { pdata 359 drivers/input/keyboard/twl4030_keypad.c kp->n_rows = pdata->rows; pdata 360 drivers/input/keyboard/twl4030_keypad.c kp->n_cols = pdata->cols; pdata 361 drivers/input/keyboard/twl4030_keypad.c kp->autorepeat = pdata->rep; pdata 362 drivers/input/keyboard/twl4030_keypad.c keymap_data = pdata->keymap_data; pdata 194 drivers/input/misc/adxl34x.c struct adxl34x_platform_data pdata; pdata 258 drivers/input/misc/adxl34x.c struct adxl34x_platform_data *pdata = &ac->pdata; pdata 263 drivers/input/misc/adxl34x.c input_event(ac->input, pdata->ev_type, pdata->ev_code_x, pdata 265 drivers/input/misc/adxl34x.c input_event(ac->input, pdata->ev_type, pdata->ev_code_y, pdata 267 drivers/input/misc/adxl34x.c input_event(ac->input, pdata->ev_type, pdata->ev_code_z, pdata 279 drivers/input/misc/adxl34x.c struct adxl34x_platform_data *pdata, int status, int press) pdata 286 drivers/input/misc/adxl34x.c pdata->ev_code_tap[i], press); pdata 291 drivers/input/misc/adxl34x.c struct adxl34x_platform_data *pdata, int status) pdata 293 drivers/input/misc/adxl34x.c adxl34x_send_key_events(ac, pdata, status, true); pdata 295 drivers/input/misc/adxl34x.c adxl34x_send_key_events(ac, pdata, status, false); pdata 301 drivers/input/misc/adxl34x.c struct adxl34x_platform_data *pdata = &ac->pdata; pdata 309 drivers/input/misc/adxl34x.c if (pdata->tap_axis_control & (TAP_X_EN | TAP_Y_EN | TAP_Z_EN)) pdata 317 drivers/input/misc/adxl34x.c adxl34x_report_key_single(ac->input, pdata->ev_code_ff); pdata 323 drivers/input/misc/adxl34x.c adxl34x_do_tap(ac, pdata, tap_stat); pdata 326 drivers/input/misc/adxl34x.c adxl34x_do_tap(ac, pdata, tap_stat); pdata 329 drivers/input/misc/adxl34x.c if (pdata->ev_code_act_inactivity) { pdata 332 drivers/input/misc/adxl34x.c pdata->ev_code_act_inactivity, 1); pdata 335 drivers/input/misc/adxl34x.c pdata->ev_code_act_inactivity, 0); pdata 341 drivers/input/misc/adxl34x.c if (pdata->orientation_enable) { pdata 343 drivers/input/misc/adxl34x.c if ((pdata->orientation_enable & ADXL_EN_ORIENTATION_2D) && pdata 351 drivers/input/misc/adxl34x.c pdata->ev_codes_orient_2d[orient_code]); pdata 355 drivers/input/misc/adxl34x.c if ((pdata->orientation_enable & ADXL_EN_ORIENTATION_3D) && pdata 363 drivers/input/misc/adxl34x.c pdata->ev_codes_orient_3d[orient_code]); pdata 370 drivers/input/misc/adxl34x.c if (pdata->fifo_mode) pdata 412 drivers/input/misc/adxl34x.c AC_WRITE(ac, POWER_CTL, ac->pdata.power_mode | PCTL_MEASURE); pdata 535 drivers/input/misc/adxl34x.c return sprintf(buf, "%u\n", RATE(ac->pdata.data_rate)); pdata 552 drivers/input/misc/adxl34x.c ac->pdata.data_rate = RATE(val); pdata 554 drivers/input/misc/adxl34x.c ac->pdata.data_rate | pdata 555 drivers/input/misc/adxl34x.c (ac->pdata.low_power_mode ? LOW_POWER : 0)); pdata 570 drivers/input/misc/adxl34x.c ac->pdata.power_mode & (PCTL_AUTO_SLEEP | PCTL_LINK) ? 1 : 0); pdata 588 drivers/input/misc/adxl34x.c ac->pdata.power_mode |= (PCTL_AUTO_SLEEP | PCTL_LINK); pdata 590 drivers/input/misc/adxl34x.c ac->pdata.power_mode &= ~(PCTL_AUTO_SLEEP | PCTL_LINK); pdata 593 drivers/input/misc/adxl34x.c AC_WRITE(ac, POWER_CTL, ac->pdata.power_mode | PCTL_MEASURE); pdata 697 drivers/input/misc/adxl34x.c const struct adxl34x_platform_data *pdata; pdata 716 drivers/input/misc/adxl34x.c pdata = dev_get_platdata(dev); pdata 717 drivers/input/misc/adxl34x.c if (!pdata) { pdata 720 drivers/input/misc/adxl34x.c pdata = &adxl34x_default_init; pdata 723 drivers/input/misc/adxl34x.c ac->pdata = *pdata; pdata 724 drivers/input/misc/adxl34x.c pdata = &ac->pdata; pdata 760 drivers/input/misc/adxl34x.c __set_bit(ac->pdata.ev_type, input_dev->evbit); pdata 762 drivers/input/misc/adxl34x.c if (ac->pdata.ev_type == EV_REL) { pdata 772 drivers/input/misc/adxl34x.c if (pdata->data_range & FULL_RES) pdata 783 drivers/input/misc/adxl34x.c __set_bit(pdata->ev_code_tap[ADXL_X_AXIS], input_dev->keybit); pdata 784 drivers/input/misc/adxl34x.c __set_bit(pdata->ev_code_tap[ADXL_Y_AXIS], input_dev->keybit); pdata 785 drivers/input/misc/adxl34x.c __set_bit(pdata->ev_code_tap[ADXL_Z_AXIS], input_dev->keybit); pdata 787 drivers/input/misc/adxl34x.c if (pdata->ev_code_ff) { pdata 789 drivers/input/misc/adxl34x.c __set_bit(pdata->ev_code_ff, input_dev->keybit); pdata 792 drivers/input/misc/adxl34x.c if (pdata->ev_code_act_inactivity) pdata 793 drivers/input/misc/adxl34x.c __set_bit(pdata->ev_code_act_inactivity, input_dev->keybit); pdata 797 drivers/input/misc/adxl34x.c if (pdata->watermark) { pdata 799 drivers/input/misc/adxl34x.c if (FIFO_MODE(pdata->fifo_mode) == FIFO_BYPASS) pdata 800 drivers/input/misc/adxl34x.c ac->pdata.fifo_mode |= FIFO_STREAM; pdata 805 drivers/input/misc/adxl34x.c if (pdata->tap_axis_control & (TAP_X_EN | TAP_Y_EN | TAP_Z_EN)) pdata 808 drivers/input/misc/adxl34x.c if (FIFO_MODE(pdata->fifo_mode) == FIFO_BYPASS) pdata 829 drivers/input/misc/adxl34x.c AC_WRITE(ac, OFSX, pdata->x_axis_offset); pdata 830 drivers/input/misc/adxl34x.c ac->hwcal.x = pdata->x_axis_offset; pdata 831 drivers/input/misc/adxl34x.c AC_WRITE(ac, OFSY, pdata->y_axis_offset); pdata 832 drivers/input/misc/adxl34x.c ac->hwcal.y = pdata->y_axis_offset; pdata 833 drivers/input/misc/adxl34x.c AC_WRITE(ac, OFSZ, pdata->z_axis_offset); pdata 834 drivers/input/misc/adxl34x.c ac->hwcal.z = pdata->z_axis_offset; pdata 835 drivers/input/misc/adxl34x.c AC_WRITE(ac, THRESH_TAP, pdata->tap_threshold); pdata 836 drivers/input/misc/adxl34x.c AC_WRITE(ac, DUR, pdata->tap_duration); pdata 837 drivers/input/misc/adxl34x.c AC_WRITE(ac, LATENT, pdata->tap_latency); pdata 838 drivers/input/misc/adxl34x.c AC_WRITE(ac, WINDOW, pdata->tap_window); pdata 839 drivers/input/misc/adxl34x.c AC_WRITE(ac, THRESH_ACT, pdata->activity_threshold); pdata 840 drivers/input/misc/adxl34x.c AC_WRITE(ac, THRESH_INACT, pdata->inactivity_threshold); pdata 841 drivers/input/misc/adxl34x.c AC_WRITE(ac, TIME_INACT, pdata->inactivity_time); pdata 842 drivers/input/misc/adxl34x.c AC_WRITE(ac, THRESH_FF, pdata->free_fall_threshold); pdata 843 drivers/input/misc/adxl34x.c AC_WRITE(ac, TIME_FF, pdata->free_fall_time); pdata 844 drivers/input/misc/adxl34x.c AC_WRITE(ac, TAP_AXES, pdata->tap_axis_control); pdata 845 drivers/input/misc/adxl34x.c AC_WRITE(ac, ACT_INACT_CTL, pdata->act_axis_control); pdata 846 drivers/input/misc/adxl34x.c AC_WRITE(ac, BW_RATE, RATE(ac->pdata.data_rate) | pdata 847 drivers/input/misc/adxl34x.c (pdata->low_power_mode ? LOW_POWER : 0)); pdata 848 drivers/input/misc/adxl34x.c AC_WRITE(ac, DATA_FORMAT, pdata->data_range); pdata 849 drivers/input/misc/adxl34x.c AC_WRITE(ac, FIFO_CTL, FIFO_MODE(pdata->fifo_mode) | pdata 850 drivers/input/misc/adxl34x.c SAMPLES(pdata->watermark)); pdata 852 drivers/input/misc/adxl34x.c if (pdata->use_int2) { pdata 860 drivers/input/misc/adxl34x.c if (ac->model == 346 && ac->pdata.orientation_enable) { pdata 862 drivers/input/misc/adxl34x.c ORIENT_DEADZONE(ac->pdata.deadzone_angle) | pdata 863 drivers/input/misc/adxl34x.c ORIENT_DIVISOR(ac->pdata.divisor_length)); pdata 868 drivers/input/misc/adxl34x.c if (pdata->orientation_enable & ADXL_EN_ORIENTATION_3D) pdata 869 drivers/input/misc/adxl34x.c for (i = 0; i < ARRAY_SIZE(pdata->ev_codes_orient_3d); i++) pdata 870 drivers/input/misc/adxl34x.c __set_bit(pdata->ev_codes_orient_3d[i], pdata 873 drivers/input/misc/adxl34x.c if (pdata->orientation_enable & ADXL_EN_ORIENTATION_2D) pdata 874 drivers/input/misc/adxl34x.c for (i = 0; i < ARRAY_SIZE(pdata->ev_codes_orient_2d); i++) pdata 875 drivers/input/misc/adxl34x.c __set_bit(pdata->ev_codes_orient_2d[i], pdata 878 drivers/input/misc/adxl34x.c ac->pdata.orientation_enable = 0; pdata 883 drivers/input/misc/adxl34x.c ac->pdata.power_mode &= (PCTL_AUTO_SLEEP | PCTL_LINK); pdata 121 drivers/input/misc/arizona-haptics.c if (arizona->pdata.hap_act) { pdata 165 drivers/input/misc/arizona-haptics.c ARIZONA_HAP_ACT, arizona->pdata.hap_act); pdata 516 drivers/input/misc/bma150.c const struct bma150_platform_data *pdata = pdata 540 drivers/input/misc/bma150.c if (pdata) { pdata 541 drivers/input/misc/bma150.c if (pdata->irq_gpio_cfg) { pdata 542 drivers/input/misc/bma150.c error = pdata->irq_gpio_cfg(); pdata 550 drivers/input/misc/bma150.c cfg = &pdata->cfg; pdata 57 drivers/input/misc/cma3000_d0x.c const struct cma3000_platform_data *pdata; pdata 175 drivers/input/misc/cma3000_d0x.c const struct cma3000_platform_data *pdata = data->pdata; pdata 191 drivers/input/misc/cma3000_d0x.c CMA3000_SET(data, CMA3000_MDTHR, pdata->mdthr, pdata 193 drivers/input/misc/cma3000_d0x.c CMA3000_SET(data, CMA3000_MDFFTMR, pdata->mdfftmr, pdata 195 drivers/input/misc/cma3000_d0x.c CMA3000_SET(data, CMA3000_FFTHR, pdata->ffthr, pdata 276 drivers/input/misc/cma3000_d0x.c const struct cma3000_platform_data *pdata = dev_get_platdata(dev); pdata 282 drivers/input/misc/cma3000_d0x.c if (!pdata) { pdata 305 drivers/input/misc/cma3000_d0x.c data->pdata = pdata; pdata 309 drivers/input/misc/cma3000_d0x.c data->mode = pdata->mode; pdata 316 drivers/input/misc/cma3000_d0x.c data->g_range = pdata->g_range; pdata 331 drivers/input/misc/cma3000_d0x.c -data->g_range, data->g_range, pdata->fuzz_x, 0); pdata 333 drivers/input/misc/cma3000_d0x.c -data->g_range, data->g_range, pdata->fuzz_y, 0); pdata 335 drivers/input/misc/cma3000_d0x.c -data->g_range, data->g_range, pdata->fuzz_z, 0); pdata 353 drivers/input/misc/cma3000_d0x.c pdata->irqflags | IRQF_ONESHOT, pdata 21 drivers/input/misc/gp2ap002a00f.c const struct gp2a_platform_data *pdata; pdata 41 drivers/input/misc/gp2ap002a00f.c int vo = gpio_get_value(dt->pdata->vout_gpio); pdata 125 drivers/input/misc/gp2ap002a00f.c const struct gp2a_platform_data *pdata = dev_get_platdata(&client->dev); pdata 129 drivers/input/misc/gp2ap002a00f.c if (!pdata) pdata 132 drivers/input/misc/gp2ap002a00f.c if (pdata->hw_setup) { pdata 133 drivers/input/misc/gp2ap002a00f.c error = pdata->hw_setup(client); pdata 138 drivers/input/misc/gp2ap002a00f.c error = gpio_request_one(pdata->vout_gpio, GPIOF_IN, GP2A_I2C_NAME); pdata 148 drivers/input/misc/gp2ap002a00f.c dt->pdata = pdata; pdata 186 drivers/input/misc/gp2ap002a00f.c device_init_wakeup(&client->dev, pdata->wakeup); pdata 198 drivers/input/misc/gp2ap002a00f.c gpio_free(pdata->vout_gpio); pdata 200 drivers/input/misc/gp2ap002a00f.c if (pdata->hw_shutdown) pdata 201 drivers/input/misc/gp2ap002a00f.c pdata->hw_shutdown(client); pdata 208 drivers/input/misc/gp2ap002a00f.c const struct gp2a_platform_data *pdata = dt->pdata; pdata 215 drivers/input/misc/gp2ap002a00f.c gpio_free(pdata->vout_gpio); pdata 217 drivers/input/misc/gp2ap002a00f.c if (pdata->hw_shutdown) pdata 218 drivers/input/misc/gp2ap002a00f.c pdata->hw_shutdown(client); pdata 72 drivers/input/misc/kxtj9.c struct kxtj9_platform_data pdata; pdata 114 drivers/input/misc/kxtj9.c x = le16_to_cpu(acc_data[tj9->pdata.axis_map_x]); pdata 115 drivers/input/misc/kxtj9.c y = le16_to_cpu(acc_data[tj9->pdata.axis_map_y]); pdata 116 drivers/input/misc/kxtj9.c z = le16_to_cpu(acc_data[tj9->pdata.axis_map_z]); pdata 122 drivers/input/misc/kxtj9.c input_report_abs(tj9->input_dev, ABS_X, tj9->pdata.negate_x ? -x : x); pdata 123 drivers/input/misc/kxtj9.c input_report_abs(tj9->input_dev, ABS_Y, tj9->pdata.negate_y ? -y : y); pdata 124 drivers/input/misc/kxtj9.c input_report_abs(tj9->input_dev, ABS_Z, tj9->pdata.negate_z ? -z : z); pdata 195 drivers/input/misc/kxtj9.c if (tj9->pdata.power_on) pdata 196 drivers/input/misc/kxtj9.c return tj9->pdata.power_on(); pdata 210 drivers/input/misc/kxtj9.c if (tj9->pdata.power_off) pdata 211 drivers/input/misc/kxtj9.c tj9->pdata.power_off(); pdata 235 drivers/input/misc/kxtj9.c err = kxtj9_update_g_range(tj9, tj9->pdata.g_range); pdata 373 drivers/input/misc/kxtj9.c tj9->last_poll_interval = max(interval, tj9->pdata.min_interval); pdata 499 drivers/input/misc/kxtj9.c const struct kxtj9_platform_data *pdata = pdata 510 drivers/input/misc/kxtj9.c if (!pdata) { pdata 523 drivers/input/misc/kxtj9.c tj9->pdata = *pdata; pdata 525 drivers/input/misc/kxtj9.c if (pdata->init) { pdata 526 drivers/input/misc/kxtj9.c err = pdata->init(); pdata 539 drivers/input/misc/kxtj9.c tj9->ctrl_reg1 = tj9->pdata.res_12bit | tj9->pdata.g_range; pdata 540 drivers/input/misc/kxtj9.c tj9->last_poll_interval = tj9->pdata.init_interval; pdata 578 drivers/input/misc/kxtj9.c if (tj9->pdata.exit) pdata 579 drivers/input/misc/kxtj9.c tj9->pdata.exit(); pdata 597 drivers/input/misc/kxtj9.c if (tj9->pdata.exit) pdata 598 drivers/input/misc/kxtj9.c tj9->pdata.exit(); pdata 242 drivers/input/misc/max8997_haptic.c const struct max8997_platform_data *pdata = pdata 249 drivers/input/misc/max8997_haptic.c if (pdata) pdata 250 drivers/input/misc/max8997_haptic.c haptic_pdata = pdata->haptic_pdata; pdata 93 drivers/input/misc/mc13783-pwrbutton.c const struct mc13xxx_buttons_platform_data *pdata; pdata 100 drivers/input/misc/mc13783-pwrbutton.c pdata = dev_get_platdata(&pdev->dev); pdata 101 drivers/input/misc/mc13783-pwrbutton.c if (!pdata) { pdata 119 drivers/input/misc/mc13783-pwrbutton.c reg |= (pdata->b1on_flags & 0x3) << MC13783_POWER_CONTROL_2_ON1BDBNC; pdata 120 drivers/input/misc/mc13783-pwrbutton.c reg |= (pdata->b2on_flags & 0x3) << MC13783_POWER_CONTROL_2_ON2BDBNC; pdata 121 drivers/input/misc/mc13783-pwrbutton.c reg |= (pdata->b3on_flags & 0x3) << MC13783_POWER_CONTROL_2_ON3BDBNC; pdata 128 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b1on_flags & MC13783_BUTTON_ENABLE) { pdata 129 drivers/input/misc/mc13783-pwrbutton.c priv->keymap[0] = pdata->b1on_key; pdata 130 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b1on_key != KEY_RESERVED) pdata 131 drivers/input/misc/mc13783-pwrbutton.c __set_bit(pdata->b1on_key, pwr->keybit); pdata 133 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b1on_flags & MC13783_BUTTON_POL_INVERT) pdata 136 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b1on_flags & MC13783_BUTTON_RESET_EN) pdata 147 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b2on_flags & MC13783_BUTTON_ENABLE) { pdata 148 drivers/input/misc/mc13783-pwrbutton.c priv->keymap[1] = pdata->b2on_key; pdata 149 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b2on_key != KEY_RESERVED) pdata 150 drivers/input/misc/mc13783-pwrbutton.c __set_bit(pdata->b2on_key, pwr->keybit); pdata 152 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b2on_flags & MC13783_BUTTON_POL_INVERT) pdata 155 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b2on_flags & MC13783_BUTTON_RESET_EN) pdata 166 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b3on_flags & MC13783_BUTTON_ENABLE) { pdata 167 drivers/input/misc/mc13783-pwrbutton.c priv->keymap[2] = pdata->b3on_key; pdata 168 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b3on_key != KEY_RESERVED) pdata 169 drivers/input/misc/mc13783-pwrbutton.c __set_bit(pdata->b3on_key, pwr->keybit); pdata 171 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b3on_flags & MC13783_BUTTON_POL_INVERT) pdata 174 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b3on_flags & MC13783_BUTTON_RESET_EN) pdata 211 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b3on_flags & MC13783_BUTTON_ENABLE) pdata 215 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b2on_flags & MC13783_BUTTON_ENABLE) pdata 219 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b1on_flags & MC13783_BUTTON_ENABLE) pdata 235 drivers/input/misc/mc13783-pwrbutton.c const struct mc13xxx_buttons_platform_data *pdata; pdata 237 drivers/input/misc/mc13783-pwrbutton.c pdata = dev_get_platdata(&pdev->dev); pdata 241 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b3on_flags & MC13783_BUTTON_ENABLE) pdata 243 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b2on_flags & MC13783_BUTTON_ENABLE) pdata 245 drivers/input/misc/mc13783-pwrbutton.c if (pdata->b1on_flags & MC13783_BUTTON_ENABLE) pdata 145 drivers/input/misc/regulator-haptic.c const struct regulator_haptic_data *pdata = dev_get_platdata(&pdev->dev); pdata 159 drivers/input/misc/regulator-haptic.c if (pdata) { pdata 160 drivers/input/misc/regulator-haptic.c haptic->max_volt = pdata->max_volt; pdata 161 drivers/input/misc/regulator-haptic.c haptic->min_volt = pdata->min_volt; pdata 166 drivers/input/misc/twl4030-vibra.c static bool twl4030_vibra_check_coexist(struct twl4030_vibra_data *pdata, pdata 171 drivers/input/misc/twl4030-vibra.c if (pdata && pdata->coexist) pdata 185 drivers/input/misc/twl4030-vibra.c struct twl4030_vibra_data *pdata = dev_get_platdata(&pdev->dev); pdata 190 drivers/input/misc/twl4030-vibra.c if (!pdata && !twl4030_core_node) { pdata 200 drivers/input/misc/twl4030-vibra.c info->coexist = twl4030_vibra_check_coexist(pdata, twl4030_core_node); pdata 207 drivers/input/mouse/navpoint.c const struct navpoint_platform_data *pdata = pdata 214 drivers/input/mouse/navpoint.c if (!pdata) { pdata 219 drivers/input/mouse/navpoint.c if (gpio_is_valid(pdata->gpio)) { pdata 220 drivers/input/mouse/navpoint.c error = gpio_request_one(pdata->gpio, GPIOF_OUT_INIT_LOW, pdata 226 drivers/input/mouse/navpoint.c ssp = pxa_ssp_request(pdata->port, pdev->name); pdata 235 drivers/input/mouse/navpoint.c dev_warn(&pdev->dev, "ssp%d already enabled\n", pdata->port); pdata 248 drivers/input/mouse/navpoint.c navpoint->gpio = pdata->gpio; pdata 281 drivers/input/mouse/navpoint.c dev_dbg(&pdev->dev, "ssp%d, irq %d\n", pdata->port, ssp->irq); pdata 292 drivers/input/mouse/navpoint.c if (gpio_is_valid(pdata->gpio)) pdata 293 drivers/input/mouse/navpoint.c gpio_free(pdata->gpio); pdata 300 drivers/input/mouse/navpoint.c const struct navpoint_platform_data *pdata = pdata 312 drivers/input/mouse/navpoint.c if (gpio_is_valid(pdata->gpio)) pdata 313 drivers/input/mouse/navpoint.c gpio_free(pdata->gpio); pdata 228 drivers/input/mouse/psmouse-smbus.c const void *pdata, size_t pdata_size, pdata 243 drivers/input/mouse/psmouse-smbus.c if (pdata) { pdata 244 drivers/input/mouse/psmouse-smbus.c smbdev->board.platform_data = kmemdup(pdata, pdata_size, pdata 227 drivers/input/mouse/psmouse.h const void *pdata, size_t pdata_size, pdata 40 drivers/input/mouse/pxa930_trkball.c struct pxa930_trkball_platform_data *pdata; pdata 103 drivers/input/mouse/pxa930_trkball.c write_tbcr(trkball, TBCR_X_FLT(trkball->pdata->x_filter) | pdata 104 drivers/input/mouse/pxa930_trkball.c TBCR_Y_FLT(trkball->pdata->y_filter)); pdata 163 drivers/input/mouse/pxa930_trkball.c trkball->pdata = dev_get_platdata(&pdev->dev); pdata 164 drivers/input/mouse/pxa930_trkball.c if (!trkball->pdata) { pdata 1747 drivers/input/mouse/synaptics.c const struct rmi_device_platform_data pdata = { pdata 1766 drivers/input/mouse/synaptics.c &pdata, sizeof(pdata), true, pdata 226 drivers/input/rmi4/rmi_2d_sensor.c struct rmi_2d_sensor_platform_data *pdata) pdata 231 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.swap_axes = of_property_read_bool(dev->of_node, pdata 234 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.flip_x = of_property_read_bool(dev->of_node, pdata 237 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.flip_y = of_property_read_bool(dev->of_node, pdata 244 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.clip_x_low = val; pdata 250 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.clip_y_low = val; pdata 256 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.clip_x_high = val; pdata 262 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.clip_y_high = val; pdata 268 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.offset_x = val; pdata 274 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.offset_y = val; pdata 281 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.delta_x_threshold = val; pdata 288 drivers/input/rmi4/rmi_2d_sensor.c pdata->axis_align.delta_y_threshold = val; pdata 290 drivers/input/rmi4/rmi_2d_sensor.c retval = rmi_of_property_read_u32(dev, (u32 *)&pdata->sensor_type, pdata 299 drivers/input/rmi4/rmi_2d_sensor.c pdata->x_mm = val; pdata 305 drivers/input/rmi4/rmi_2d_sensor.c pdata->y_mm = val; pdata 312 drivers/input/rmi4/rmi_2d_sensor.c pdata->disable_report_mask = val; pdata 319 drivers/input/rmi4/rmi_2d_sensor.c pdata->rezero_wait = val; pdata 325 drivers/input/rmi4/rmi_2d_sensor.c struct rmi_2d_sensor_platform_data *pdata) pdata 72 drivers/input/rmi4/rmi_2d_sensor.h struct rmi_2d_sensor_platform_data *pdata); pdata 107 drivers/input/rmi4/rmi_bus.h return &d->xport->pdata; pdata 219 drivers/input/rmi4/rmi_driver.c struct rmi_device_platform_data *pdata = rmi_get_platform_data(rmi_dev); pdata 221 drivers/input/rmi4/rmi_driver.c int irq_flags = irq_get_trigger_type(pdata->irq); pdata 227 drivers/input/rmi4/rmi_driver.c ret = devm_request_threaded_irq(&rmi_dev->dev, pdata->irq, NULL, pdata 233 drivers/input/rmi4/rmi_driver.c pdata->irq); pdata 799 drivers/input/rmi4/rmi_driver.c const struct rmi_device_platform_data *pdata = pdata 819 drivers/input/rmi4/rmi_driver.c mdelay(pdata->reset_delay_ms ?: DEFAULT_RESET_DELAY_MS); pdata 878 drivers/input/rmi4/rmi_driver.c struct rmi_device_platform_data *pdata = rmi_get_platform_data(rmi_dev); pdata 880 drivers/input/rmi4/rmi_driver.c int irq = pdata->irq; pdata 903 drivers/input/rmi4/rmi_driver.c irq_flags = irq_get_trigger_type(pdata->irq); pdata 913 drivers/input/rmi4/rmi_driver.c struct rmi_device_platform_data *pdata = rmi_get_platform_data(rmi_dev); pdata 916 drivers/input/rmi4/rmi_driver.c int irq = pdata->irq; pdata 992 drivers/input/rmi4/rmi_driver.c struct rmi_device_platform_data *pdata) pdata 996 drivers/input/rmi4/rmi_driver.c retval = rmi_of_property_read_u32(dev, &pdata->reset_delay_ms, pdata 1005 drivers/input/rmi4/rmi_driver.c struct rmi_device_platform_data *pdata) pdata 1106 drivers/input/rmi4/rmi_driver.c struct rmi_device_platform_data *pdata; pdata 1122 drivers/input/rmi4/rmi_driver.c pdata = rmi_get_platform_data(rmi_dev); pdata 1125 drivers/input/rmi4/rmi_driver.c retval = rmi_driver_of_probe(rmi_dev->xport->dev, pdata); pdata 340 drivers/input/rmi4/rmi_f01.c struct rmi_device_platform_data *pdata) pdata 346 drivers/input/rmi4/rmi_f01.c (u32 *)&pdata->power_management.nosleep, pdata 356 drivers/input/rmi4/rmi_f01.c pdata->power_management.wakeup_threshold = val; pdata 363 drivers/input/rmi4/rmi_f01.c pdata->power_management.doze_holdoff = val * 100; pdata 370 drivers/input/rmi4/rmi_f01.c pdata->power_management.doze_interval = val / 10; pdata 376 drivers/input/rmi4/rmi_f01.c struct rmi_device_platform_data *pdata) pdata 386 drivers/input/rmi4/rmi_f01.c struct rmi_device_platform_data *pdata = rmi_get_platform_data(rmi_dev); pdata 394 drivers/input/rmi4/rmi_f01.c error = rmi_f01_of_probe(&fn->dev, pdata); pdata 417 drivers/input/rmi4/rmi_f01.c switch (pdata->power_management.nosleep) { pdata 476 drivers/input/rmi4/rmi_f01.c if (pdata->power_management.doze_interval) { pdata 478 drivers/input/rmi4/rmi_f01.c pdata->power_management.doze_interval; pdata 501 drivers/input/rmi4/rmi_f01.c if (pdata->power_management.wakeup_threshold) { pdata 503 drivers/input/rmi4/rmi_f01.c pdata->power_management.wakeup_threshold; pdata 531 drivers/input/rmi4/rmi_f01.c if (pdata->power_management.doze_holdoff) { pdata 533 drivers/input/rmi4/rmi_f01.c pdata->power_management.doze_holdoff; pdata 1045 drivers/input/rmi4/rmi_f11.c const struct rmi_device_platform_data *pdata = pdata 1069 drivers/input/rmi4/rmi_f11.c f11->sensor_pdata = pdata->sensor_pdata; pdata 327 drivers/input/rmi4/rmi_f12.c struct rmi_device_platform_data *pdata = rmi_get_platform_data(rmi_dev); pdata 370 drivers/input/rmi4/rmi_f12.c f12->sensor_pdata = pdata->sensor_pdata; pdata 167 drivers/input/rmi4/rmi_f30.c const struct rmi_device_platform_data *pdata = pdata 175 drivers/input/rmi4/rmi_f30.c if (pdata->f30_data.trackstick_buttons) { pdata 181 drivers/input/rmi4/rmi_f30.c if (pdata->f30_data.disable) { pdata 226 drivers/input/rmi4/rmi_f30.c const struct rmi_device_platform_data *pdata = pdata 248 drivers/input/rmi4/rmi_f30.c if (pdata->f30_data.trackstick_buttons && pdata 251 drivers/input/rmi4/rmi_f30.c } else if (!pdata->f30_data.buttonpad || !button_mapped) { pdata 267 drivers/input/rmi4/rmi_f30.c if (pdata->f30_data.buttonpad || (button - BTN_LEFT == 1)) pdata 369 drivers/input/rmi4/rmi_f30.c const struct rmi_device_platform_data *pdata = pdata 375 drivers/input/rmi4/rmi_f30.c if (pdata->f30_data.disable) pdata 200 drivers/input/rmi4/rmi_i2c.c struct rmi_device_platform_data *pdata; pdata 211 drivers/input/rmi4/rmi_i2c.c pdata = &rmi_i2c->xport.pdata; pdata 214 drivers/input/rmi4/rmi_i2c.c *pdata = *client_pdata; pdata 216 drivers/input/rmi4/rmi_i2c.c pdata->irq = client->irq; pdata 274 drivers/input/rmi4/rmi_smbus.c struct rmi_device_platform_data *pdata = dev_get_platdata(&client->dev); pdata 279 drivers/input/rmi4/rmi_smbus.c if (!pdata) { pdata 310 drivers/input/rmi4/rmi_smbus.c rmi_smb->xport.pdata = *pdata; pdata 311 drivers/input/rmi4/rmi_smbus.c rmi_smb->xport.pdata.irq = client->irq; pdata 81 drivers/input/rmi4/rmi_spi.c if (rmi_spi->xport.pdata.spi_data.read_delay_us) pdata 86 drivers/input/rmi4/rmi_spi.c if (rmi_spi->xport.pdata.spi_data.write_delay_us) pdata 118 drivers/input/rmi4/rmi_spi.c &rmi_spi->xport.pdata.spi_data; pdata 329 drivers/input/rmi4/rmi_spi.c struct rmi_device_platform_data *pdata) pdata 335 drivers/input/rmi4/rmi_spi.c &pdata->spi_data.read_delay_us, pdata 341 drivers/input/rmi4/rmi_spi.c &pdata->spi_data.write_delay_us, pdata 356 drivers/input/rmi4/rmi_spi.c struct rmi_device_platform_data *pdata) pdata 372 drivers/input/rmi4/rmi_spi.c struct rmi_device_platform_data *pdata; pdata 384 drivers/input/rmi4/rmi_spi.c pdata = &rmi_spi->xport.pdata; pdata 387 drivers/input/rmi4/rmi_spi.c error = rmi_spi_of_probe(spi, pdata); pdata 391 drivers/input/rmi4/rmi_spi.c *pdata = *spi_pdata; pdata 394 drivers/input/rmi4/rmi_spi.c if (pdata->spi_data.bits_per_word) pdata 395 drivers/input/rmi4/rmi_spi.c spi->bits_per_word = pdata->spi_data.bits_per_word; pdata 397 drivers/input/rmi4/rmi_spi.c if (pdata->spi_data.mode) pdata 398 drivers/input/rmi4/rmi_spi.c spi->mode = pdata->spi_data.mode; pdata 406 drivers/input/rmi4/rmi_spi.c pdata->irq = spi->irq; pdata 181 drivers/input/touchscreen/88pm860x-ts.c struct pm860x_touch_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 192 drivers/input/touchscreen/88pm860x-ts.c if (pdata) { pdata 195 drivers/input/touchscreen/88pm860x-ts.c data |= (pdata->gpadc_prebias << 1) pdata 197 drivers/input/touchscreen/88pm860x-ts.c data |= (pdata->slot_cycle << 3) pdata 199 drivers/input/touchscreen/88pm860x-ts.c data |= (pdata->off_scale << 5) pdata 201 drivers/input/touchscreen/88pm860x-ts.c data |= (pdata->sw_cal << 7) pdata 210 drivers/input/touchscreen/88pm860x-ts.c if (pdata->tsi_prebias) { pdata 211 drivers/input/touchscreen/88pm860x-ts.c data = pdata->tsi_prebias; pdata 219 drivers/input/touchscreen/88pm860x-ts.c data |= pdata->pen_prebias pdata 221 drivers/input/touchscreen/88pm860x-ts.c data |= (pdata->pen_prechg << 5) pdata 229 drivers/input/touchscreen/88pm860x-ts.c res_x = pdata->res_x; pdata 671 drivers/input/touchscreen/ad7877.c struct ad7877_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 680 drivers/input/touchscreen/ad7877.c if (!pdata) { pdata 718 drivers/input/touchscreen/ad7877.c ts->model = pdata->model ? : 7877; pdata 719 drivers/input/touchscreen/ad7877.c ts->vref_delay_usecs = pdata->vref_delay_usecs ? : 100; pdata 720 drivers/input/touchscreen/ad7877.c ts->x_plate_ohms = pdata->x_plate_ohms ? : 400; pdata 721 drivers/input/touchscreen/ad7877.c ts->pressure_max = pdata->pressure_max ? : ~0; pdata 723 drivers/input/touchscreen/ad7877.c ts->stopacq_polarity = pdata->stopacq_polarity; pdata 724 drivers/input/touchscreen/ad7877.c ts->first_conversion_delay = pdata->first_conversion_delay; pdata 725 drivers/input/touchscreen/ad7877.c ts->acquisition_time = pdata->acquisition_time; pdata 726 drivers/input/touchscreen/ad7877.c ts->averaging = pdata->averaging; pdata 727 drivers/input/touchscreen/ad7877.c ts->pen_down_acc_interval = pdata->pen_down_acc_interval; pdata 743 drivers/input/touchscreen/ad7877.c pdata->x_min ? : 0, pdata 744 drivers/input/touchscreen/ad7877.c pdata->x_max ? : MAX_12BIT, pdata 747 drivers/input/touchscreen/ad7877.c pdata->y_min ? : 0, pdata 748 drivers/input/touchscreen/ad7877.c pdata->y_max ? : MAX_12BIT, pdata 751 drivers/input/touchscreen/ad7877.c pdata->pressure_min, pdata->pressure_max, 0, 0); pdata 932 drivers/input/touchscreen/ads7846.c const struct ads7846_platform_data *pdata) pdata 942 drivers/input/touchscreen/ads7846.c if (pdata->get_pendown_state) { pdata 943 drivers/input/touchscreen/ads7846.c ts->get_pendown_state = pdata->get_pendown_state; pdata 944 drivers/input/touchscreen/ads7846.c } else if (gpio_is_valid(pdata->gpio_pendown)) { pdata 946 drivers/input/touchscreen/ads7846.c err = gpio_request_one(pdata->gpio_pendown, GPIOF_IN, pdata 951 drivers/input/touchscreen/ads7846.c pdata->gpio_pendown, err); pdata 955 drivers/input/touchscreen/ads7846.c ts->gpio_pendown = pdata->gpio_pendown; pdata 957 drivers/input/touchscreen/ads7846.c if (pdata->gpio_pendown_debounce) pdata 958 drivers/input/touchscreen/ads7846.c gpio_set_debounce(pdata->gpio_pendown, pdata 959 drivers/input/touchscreen/ads7846.c pdata->gpio_pendown_debounce); pdata 973 drivers/input/touchscreen/ads7846.c const struct ads7846_platform_data *pdata) pdata 978 drivers/input/touchscreen/ads7846.c int vref = pdata->keep_vref_on; pdata 1020 drivers/input/touchscreen/ads7846.c if (pdata->settle_delay_usecs) { pdata 1021 drivers/input/touchscreen/ads7846.c x->delay_usecs = pdata->settle_delay_usecs; pdata 1063 drivers/input/touchscreen/ads7846.c if (pdata->settle_delay_usecs) { pdata 1064 drivers/input/touchscreen/ads7846.c x->delay_usecs = pdata->settle_delay_usecs; pdata 1096 drivers/input/touchscreen/ads7846.c if (pdata->settle_delay_usecs) { pdata 1097 drivers/input/touchscreen/ads7846.c x->delay_usecs = pdata->settle_delay_usecs; pdata 1127 drivers/input/touchscreen/ads7846.c if (pdata->settle_delay_usecs) { pdata 1128 drivers/input/touchscreen/ads7846.c x->delay_usecs = pdata->settle_delay_usecs; pdata 1184 drivers/input/touchscreen/ads7846.c struct ads7846_platform_data *pdata; pdata 1200 drivers/input/touchscreen/ads7846.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 1201 drivers/input/touchscreen/ads7846.c if (!pdata) pdata 1204 drivers/input/touchscreen/ads7846.c pdata->model = (unsigned long)match->data; pdata 1207 drivers/input/touchscreen/ads7846.c &pdata->vref_delay_usecs); pdata 1208 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,vref-mv", &pdata->vref_mv); pdata 1209 drivers/input/touchscreen/ads7846.c pdata->keep_vref_on = of_property_read_bool(node, "ti,keep-vref-on"); pdata 1211 drivers/input/touchscreen/ads7846.c pdata->swap_xy = of_property_read_bool(node, "ti,swap-xy"); pdata 1214 drivers/input/touchscreen/ads7846.c &pdata->settle_delay_usecs); pdata 1216 drivers/input/touchscreen/ads7846.c &pdata->penirq_recheck_delay_usecs); pdata 1218 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,x-plate-ohms", &pdata->x_plate_ohms); pdata 1219 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,y-plate-ohms", &pdata->y_plate_ohms); pdata 1221 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,x-min", &pdata->x_min); pdata 1222 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,y-min", &pdata->y_min); pdata 1223 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,x-max", &pdata->x_max); pdata 1224 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,y-max", &pdata->y_max); pdata 1230 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,pressure-min", &pdata->pressure_min); pdata 1232 drivers/input/touchscreen/ads7846.c pdata->pressure_min = (u16) value; pdata 1233 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,pressure-max", &pdata->pressure_max); pdata 1235 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,debounce-max", &pdata->debounce_max); pdata 1237 drivers/input/touchscreen/ads7846.c pdata->debounce_max = (u16) value; pdata 1238 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,debounce-tol", &pdata->debounce_tol); pdata 1239 drivers/input/touchscreen/ads7846.c of_property_read_u16(node, "ti,debounce-rep", &pdata->debounce_rep); pdata 1242 drivers/input/touchscreen/ads7846.c &pdata->gpio_pendown_debounce); pdata 1244 drivers/input/touchscreen/ads7846.c pdata->wakeup = of_property_read_bool(node, "wakeup-source") || pdata 1247 drivers/input/touchscreen/ads7846.c pdata->gpio_pendown = of_get_named_gpio(dev->of_node, "pendown-gpio", 0); pdata 1249 drivers/input/touchscreen/ads7846.c return pdata; pdata 1261 drivers/input/touchscreen/ads7846.c const struct ads7846_platform_data *pdata; pdata 1308 drivers/input/touchscreen/ads7846.c pdata = dev_get_platdata(&spi->dev); pdata 1309 drivers/input/touchscreen/ads7846.c if (!pdata) { pdata 1310 drivers/input/touchscreen/ads7846.c pdata = ads7846_probe_dt(&spi->dev); pdata 1311 drivers/input/touchscreen/ads7846.c if (IS_ERR(pdata)) { pdata 1312 drivers/input/touchscreen/ads7846.c err = PTR_ERR(pdata); pdata 1317 drivers/input/touchscreen/ads7846.c ts->model = pdata->model ? : 7846; pdata 1318 drivers/input/touchscreen/ads7846.c ts->vref_delay_usecs = pdata->vref_delay_usecs ? : 100; pdata 1319 drivers/input/touchscreen/ads7846.c ts->x_plate_ohms = pdata->x_plate_ohms ? : 400; pdata 1320 drivers/input/touchscreen/ads7846.c ts->vref_mv = pdata->vref_mv; pdata 1322 drivers/input/touchscreen/ads7846.c if (pdata->filter != NULL) { pdata 1323 drivers/input/touchscreen/ads7846.c if (pdata->filter_init != NULL) { pdata 1324 drivers/input/touchscreen/ads7846.c err = pdata->filter_init(pdata, &ts->filter_data); pdata 1328 drivers/input/touchscreen/ads7846.c ts->filter = pdata->filter; pdata 1329 drivers/input/touchscreen/ads7846.c ts->filter_cleanup = pdata->filter_cleanup; pdata 1330 drivers/input/touchscreen/ads7846.c } else if (pdata->debounce_max) { pdata 1331 drivers/input/touchscreen/ads7846.c ts->debounce_max = pdata->debounce_max; pdata 1334 drivers/input/touchscreen/ads7846.c ts->debounce_tol = pdata->debounce_tol; pdata 1335 drivers/input/touchscreen/ads7846.c ts->debounce_rep = pdata->debounce_rep; pdata 1342 drivers/input/touchscreen/ads7846.c err = ads7846_setup_pendown(spi, ts, pdata); pdata 1346 drivers/input/touchscreen/ads7846.c if (pdata->penirq_recheck_delay_usecs) pdata 1348 drivers/input/touchscreen/ads7846.c pdata->penirq_recheck_delay_usecs; pdata 1350 drivers/input/touchscreen/ads7846.c ts->wait_for_sync = pdata->wait_for_sync ? : null_wait_for_sync; pdata 1362 drivers/input/touchscreen/ads7846.c pdata->x_min ? : 0, pdata 1363 drivers/input/touchscreen/ads7846.c pdata->x_max ? : MAX_12BIT, pdata 1366 drivers/input/touchscreen/ads7846.c pdata->y_min ? : 0, pdata 1367 drivers/input/touchscreen/ads7846.c pdata->y_max ? : MAX_12BIT, pdata 1370 drivers/input/touchscreen/ads7846.c pdata->pressure_min, pdata->pressure_max, 0, 0); pdata 1384 drivers/input/touchscreen/ads7846.c if (!ts->core_prop.swap_x_y && pdata->swap_xy) { pdata 1389 drivers/input/touchscreen/ads7846.c ads7846_setup_spi_msg(ts, pdata); pdata 1404 drivers/input/touchscreen/ads7846.c irq_flags = pdata->irq_flags ? : IRQF_TRIGGER_FALLING; pdata 1409 drivers/input/touchscreen/ads7846.c if (err && !pdata->irq_flags) { pdata 1446 drivers/input/touchscreen/ads7846.c device_init_wakeup(&spi->dev, pdata->wakeup); pdata 1453 drivers/input/touchscreen/ads7846.c devm_kfree(&spi->dev, (void *)pdata); pdata 106 drivers/input/touchscreen/auo-pixcir-ts.c const struct auo_pixcir_ts_platdata *pdata; pdata 128 drivers/input/touchscreen/auo-pixcir-ts.c const struct auo_pixcir_ts_platdata *pdata = ts->pdata; pdata 155 drivers/input/touchscreen/auo-pixcir-ts.c if (point[i].coord_x > pdata->x_max || pdata 156 drivers/input/touchscreen/auo-pixcir-ts.c point[i].coord_y > pdata->y_max) { pdata 174 drivers/input/touchscreen/auo-pixcir-ts.c const struct auo_pixcir_ts_platdata *pdata = ts->pdata; pdata 185 drivers/input/touchscreen/auo-pixcir-ts.c if (gpio_get_value(pdata->gpio_int) == 0) { pdata 285 drivers/input/touchscreen/auo-pixcir-ts.c const struct auo_pixcir_ts_platdata *pdata = ts->pdata; pdata 307 drivers/input/touchscreen/auo-pixcir-ts.c ts->touch_ind_mode = pdata->int_setting == AUO_PIXCIR_INT_TOUCH_IND; pdata 471 drivers/input/touchscreen/auo-pixcir-ts.c struct auo_pixcir_ts_platdata *pdata; pdata 477 drivers/input/touchscreen/auo-pixcir-ts.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 478 drivers/input/touchscreen/auo-pixcir-ts.c if (!pdata) pdata 481 drivers/input/touchscreen/auo-pixcir-ts.c pdata->gpio_int = of_get_gpio(np, 0); pdata 482 drivers/input/touchscreen/auo-pixcir-ts.c if (!gpio_is_valid(pdata->gpio_int)) { pdata 487 drivers/input/touchscreen/auo-pixcir-ts.c pdata->gpio_rst = of_get_gpio(np, 1); pdata 488 drivers/input/touchscreen/auo-pixcir-ts.c if (!gpio_is_valid(pdata->gpio_rst)) { pdata 493 drivers/input/touchscreen/auo-pixcir-ts.c if (of_property_read_u32(np, "x-size", &pdata->x_max)) { pdata 498 drivers/input/touchscreen/auo-pixcir-ts.c if (of_property_read_u32(np, "y-size", &pdata->y_max)) { pdata 504 drivers/input/touchscreen/auo-pixcir-ts.c pdata->int_setting = AUO_PIXCIR_INT_TOUCH_IND; pdata 506 drivers/input/touchscreen/auo-pixcir-ts.c return pdata; pdata 519 drivers/input/touchscreen/auo-pixcir-ts.c gpio_set_value(ts->pdata->gpio_rst, 0); pdata 525 drivers/input/touchscreen/auo-pixcir-ts.c const struct auo_pixcir_ts_platdata *pdata; pdata 531 drivers/input/touchscreen/auo-pixcir-ts.c pdata = dev_get_platdata(&client->dev); pdata 532 drivers/input/touchscreen/auo-pixcir-ts.c if (!pdata) { pdata 533 drivers/input/touchscreen/auo-pixcir-ts.c pdata = auo_pixcir_parse_dt(&client->dev); pdata 534 drivers/input/touchscreen/auo-pixcir-ts.c if (IS_ERR(pdata)) pdata 535 drivers/input/touchscreen/auo-pixcir-ts.c return PTR_ERR(pdata); pdata 549 drivers/input/touchscreen/auo-pixcir-ts.c ts->pdata = pdata; pdata 572 drivers/input/touchscreen/auo-pixcir-ts.c input_set_abs_params(input_dev, ABS_X, 0, pdata->x_max, 0, 0); pdata 573 drivers/input/touchscreen/auo-pixcir-ts.c input_set_abs_params(input_dev, ABS_Y, 0, pdata->y_max, 0, 0); pdata 577 drivers/input/touchscreen/auo-pixcir-ts.c pdata->x_max, 0, 0); pdata 579 drivers/input/touchscreen/auo-pixcir-ts.c pdata->y_max, 0, 0); pdata 588 drivers/input/touchscreen/auo-pixcir-ts.c error = devm_gpio_request_one(&client->dev, pdata->gpio_int, pdata 592 drivers/input/touchscreen/auo-pixcir-ts.c pdata->gpio_int, error); pdata 596 drivers/input/touchscreen/auo-pixcir-ts.c error = devm_gpio_request_one(&client->dev, pdata->gpio_rst, pdata 601 drivers/input/touchscreen/auo-pixcir-ts.c pdata->gpio_rst, error); pdata 622 drivers/input/touchscreen/auo-pixcir-ts.c error = auo_pixcir_int_config(ts, pdata->int_setting); pdata 169 drivers/input/touchscreen/cy8ctmg110_ts.c const struct cy8ctmg110_pdata *pdata = dev_get_platdata(&client->dev); pdata 175 drivers/input/touchscreen/cy8ctmg110_ts.c if (pdata == NULL) { pdata 193 drivers/input/touchscreen/cy8ctmg110_ts.c ts->reset_pin = pdata->reset_pin; pdata 194 drivers/input/touchscreen/cy8ctmg110_ts.c ts->irq_pin = pdata->irq_pin; pdata 809 drivers/input/touchscreen/cyttsp4_core.c if (md->pdata->flags & CY_FLAG_FLIP) { pdata 815 drivers/input/touchscreen/cyttsp4_core.c if (md->pdata->flags & CY_FLAG_INV_X) { pdata 823 drivers/input/touchscreen/cyttsp4_core.c if (md->pdata->flags & CY_FLAG_INV_Y) { pdata 834 drivers/input/touchscreen/cyttsp4_core.c md->pdata->flags & CY_FLAG_INV_X ? "true" : "false", pdata 835 drivers/input/touchscreen/cyttsp4_core.c md->pdata->flags & CY_FLAG_INV_Y ? "true" : "false", pdata 867 drivers/input/touchscreen/cyttsp4_core.c if ((tch.abs[CY_TCH_T] < md->pdata->frmwrk->abs pdata 869 drivers/input/touchscreen/cyttsp4_core.c (tch.abs[CY_TCH_T] > md->pdata->frmwrk->abs pdata 873 drivers/input/touchscreen/cyttsp4_core.c md->pdata->frmwrk->abs[(CY_ABS_ID_OST * pdata 879 drivers/input/touchscreen/cyttsp4_core.c sig = md->pdata->frmwrk->abs pdata 882 drivers/input/touchscreen/cyttsp4_core.c t = tch.abs[CY_TCH_T] - md->pdata->frmwrk->abs pdata 897 drivers/input/touchscreen/cyttsp4_core.c sig = md->pdata->frmwrk->abs[((CY_ABS_X_OST + j) * pdata 915 drivers/input/touchscreen/cyttsp4_core.c sig = md->pdata->frmwrk->abs pdata 1910 drivers/input/touchscreen/cyttsp4_core.c if (md->pdata->flags & CY_FLAG_FLIP) { pdata 1920 drivers/input/touchscreen/cyttsp4_core.c for (i = 0; i < (md->pdata->frmwrk->size / CY_NUM_ABS_SET); i++) { pdata 1921 drivers/input/touchscreen/cyttsp4_core.c signal = md->pdata->frmwrk->abs pdata 1925 drivers/input/touchscreen/cyttsp4_core.c min = md->pdata->frmwrk->abs pdata 1927 drivers/input/touchscreen/cyttsp4_core.c max = md->pdata->frmwrk->abs pdata 1940 drivers/input/touchscreen/cyttsp4_core.c md->pdata->frmwrk->abs pdata 1942 drivers/input/touchscreen/cyttsp4_core.c md->pdata->frmwrk->abs pdata 1966 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_mt_platform_data *pdata = cd->pdata->mt_pdata; pdata 1970 drivers/input/touchscreen/cyttsp4_core.c md->pdata = pdata; pdata 1982 drivers/input/touchscreen/cyttsp4_core.c md->input->name = pdata->inp_dev_name; pdata 2011 drivers/input/touchscreen/cyttsp4_core.c struct cyttsp4_platform_data *pdata = dev_get_platdata(dev); pdata 2015 drivers/input/touchscreen/cyttsp4_core.c if (!pdata || !pdata->core_pdata || !pdata->mt_pdata) { pdata 2037 drivers/input/touchscreen/cyttsp4_core.c cd->pdata = pdata; pdata 2038 drivers/input/touchscreen/cyttsp4_core.c cd->cpdata = pdata->core_pdata; pdata 323 drivers/input/touchscreen/cyttsp4_core.h struct cyttsp4_mt_platform_data *pdata; pdata 351 drivers/input/touchscreen/cyttsp4_core.h struct cyttsp4_platform_data *pdata; pdata 298 drivers/input/touchscreen/da9034-ts.c struct da9034_touch_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 312 drivers/input/touchscreen/da9034-ts.c if (pdata) { pdata 313 drivers/input/touchscreen/da9034-ts.c touch->interval_ms = pdata->interval_ms; pdata 314 drivers/input/touchscreen/da9034-ts.c touch->x_inverted = pdata->x_inverted; pdata 315 drivers/input/touchscreen/da9034-ts.c touch->y_inverted = pdata->y_inverted; pdata 186 drivers/input/touchscreen/mcs5000_ts.c const struct mcs_platform_data *pdata; pdata 191 drivers/input/touchscreen/mcs5000_ts.c pdata = dev_get_platdata(&client->dev); pdata 192 drivers/input/touchscreen/mcs5000_ts.c if (!pdata) pdata 221 drivers/input/touchscreen/mcs5000_ts.c if (pdata->cfg_pin) pdata 222 drivers/input/touchscreen/mcs5000_ts.c pdata->cfg_pin(); pdata 239 drivers/input/touchscreen/mcs5000_ts.c mcs5000_ts_phys_init(data, pdata); pdata 259 drivers/input/touchscreen/mcs5000_ts.c const struct mcs_platform_data *pdata = dev_get_platdata(dev); pdata 261 drivers/input/touchscreen/mcs5000_ts.c mcs5000_ts_phys_init(data, pdata); pdata 438 drivers/input/touchscreen/pixcir_i2c_ts.c const struct pixcir_ts_platform_data *pdata = pdata 449 drivers/input/touchscreen/pixcir_i2c_ts.c if (pdata) { pdata 450 drivers/input/touchscreen/pixcir_i2c_ts.c tsdata->chip = &pdata->chip; pdata 480 drivers/input/touchscreen/pixcir_i2c_ts.c if (pdata) { pdata 481 drivers/input/touchscreen/pixcir_i2c_ts.c input_set_abs_params(input, ABS_MT_POSITION_X, 0, pdata->x_max, 0, 0); pdata 482 drivers/input/touchscreen/pixcir_i2c_ts.c input_set_abs_params(input, ABS_MT_POSITION_Y, 0, pdata->y_max, 0, 0); pdata 288 drivers/input/touchscreen/tsc2007_core.c const struct tsc2007_platform_data *pdata, pdata 291 drivers/input/touchscreen/tsc2007_core.c ts->model = pdata->model; pdata 292 drivers/input/touchscreen/tsc2007_core.c ts->x_plate_ohms = pdata->x_plate_ohms; pdata 293 drivers/input/touchscreen/tsc2007_core.c ts->max_rt = pdata->max_rt ? : MAX_12BIT; pdata 294 drivers/input/touchscreen/tsc2007_core.c ts->poll_period = msecs_to_jiffies(pdata->poll_period ? : 1); pdata 295 drivers/input/touchscreen/tsc2007_core.c ts->get_pendown_state = pdata->get_pendown_state; pdata 296 drivers/input/touchscreen/tsc2007_core.c ts->clear_penirq = pdata->clear_penirq; pdata 297 drivers/input/touchscreen/tsc2007_core.c ts->fuzzx = pdata->fuzzx; pdata 298 drivers/input/touchscreen/tsc2007_core.c ts->fuzzy = pdata->fuzzy; pdata 299 drivers/input/touchscreen/tsc2007_core.c ts->fuzzz = pdata->fuzzz; pdata 301 drivers/input/touchscreen/tsc2007_core.c if (pdata->x_plate_ohms == 0) { pdata 312 drivers/input/touchscreen/tsc2007_core.c const struct tsc2007_platform_data *pdata = dev_get_platdata(dev); pdata 314 drivers/input/touchscreen/tsc2007_core.c pdata->exit_platform_hw(); pdata 320 drivers/input/touchscreen/tsc2007_core.c const struct tsc2007_platform_data *pdata = pdata 334 drivers/input/touchscreen/tsc2007_core.c if (pdata) pdata 335 drivers/input/touchscreen/tsc2007_core.c err = tsc2007_probe_pdev(client, ts, pdata, id); pdata 373 drivers/input/touchscreen/tsc2007_core.c if (pdata) { pdata 374 drivers/input/touchscreen/tsc2007_core.c if (pdata->exit_platform_hw) { pdata 386 drivers/input/touchscreen/tsc2007_core.c if (pdata->init_platform_hw) pdata 387 drivers/input/touchscreen/tsc2007_core.c pdata->init_platform_hw(); pdata 236 drivers/input/touchscreen/wm831x-ts.c struct wm831x_touch_pdata *pdata = NULL; pdata 241 drivers/input/touchscreen/wm831x-ts.c pdata = core_pdata->touch; pdata 262 drivers/input/touchscreen/wm831x-ts.c if (pdata && pdata->data_irq) pdata 263 drivers/input/touchscreen/wm831x-ts.c wm831x_ts->data_irq = pdata->data_irq; pdata 267 drivers/input/touchscreen/wm831x-ts.c if (pdata && pdata->pd_irq) pdata 268 drivers/input/touchscreen/wm831x-ts.c wm831x_ts->pd_irq = pdata->pd_irq; pdata 270 drivers/input/touchscreen/wm831x-ts.c if (pdata) pdata 271 drivers/input/touchscreen/wm831x-ts.c wm831x_ts->pressure = pdata->pressure; pdata 276 drivers/input/touchscreen/wm831x-ts.c if (pdata && pdata->fivewire) { pdata 281 drivers/input/touchscreen/wm831x-ts.c WARN_ON(pdata->pressure && pdata->fivewire); pdata 288 drivers/input/touchscreen/wm831x-ts.c if (pdata) { pdata 289 drivers/input/touchscreen/wm831x-ts.c switch (pdata->isel) { pdata 292 drivers/input/touchscreen/wm831x-ts.c pdata->isel); pdata 313 drivers/input/touchscreen/wm831x-ts.c if (pdata && pdata->data_irqf) pdata 314 drivers/input/touchscreen/wm831x-ts.c irqf = pdata->data_irqf; pdata 329 drivers/input/touchscreen/wm831x-ts.c if (pdata && pdata->pd_irqf) pdata 330 drivers/input/touchscreen/wm831x-ts.c irqf = pdata->pd_irqf; pdata 582 drivers/input/touchscreen/wm97xx-core.c struct wm97xx_pdata *pdata = dev_get_platdata(wm->dev); pdata 624 drivers/input/touchscreen/wm97xx-core.c wm->touch_dev->dev.platform_data = pdata; pdata 709 drivers/input/touchscreen/wm97xx-core.c struct wm97xx_batt_pdata *pdata) pdata 719 drivers/input/touchscreen/wm97xx-core.c wm->battery_dev->dev.platform_data = pdata; pdata 731 drivers/input/touchscreen/wm97xx-core.c struct wm97xx_pdata *pdata = dev_get_platdata(dev); pdata 744 drivers/input/touchscreen/wm97xx-core.c ret = wm97xx_add_battery(wm, pdata ? pdata->batt_pdata : NULL); pdata 109 drivers/input/touchscreen/zforce_ts.c const struct zforce_ts_platdata *pdata; pdata 269 drivers/input/touchscreen/zforce_ts.c const struct zforce_ts_platdata *pdata = ts->pdata; pdata 280 drivers/input/touchscreen/zforce_ts.c ret = zforce_resolution(ts, pdata->x_max, pdata->y_max); pdata 340 drivers/input/touchscreen/zforce_ts.c const struct zforce_ts_platdata *pdata = ts->pdata; pdata 358 drivers/input/touchscreen/zforce_ts.c if (point.coord_x > pdata->x_max || pdata 359 drivers/input/touchscreen/zforce_ts.c point.coord_y > pdata->y_max) { pdata 710 drivers/input/touchscreen/zforce_ts.c struct zforce_ts_platdata *pdata; pdata 716 drivers/input/touchscreen/zforce_ts.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 717 drivers/input/touchscreen/zforce_ts.c if (!pdata) { pdata 722 drivers/input/touchscreen/zforce_ts.c if (of_property_read_u32(np, "x-size", &pdata->x_max)) { pdata 727 drivers/input/touchscreen/zforce_ts.c if (of_property_read_u32(np, "y-size", &pdata->y_max)) { pdata 732 drivers/input/touchscreen/zforce_ts.c return pdata; pdata 738 drivers/input/touchscreen/zforce_ts.c const struct zforce_ts_platdata *pdata = dev_get_platdata(&client->dev); pdata 743 drivers/input/touchscreen/zforce_ts.c if (!pdata) { pdata 744 drivers/input/touchscreen/zforce_ts.c pdata = zforce_parse_dt(&client->dev); pdata 745 drivers/input/touchscreen/zforce_ts.c if (IS_ERR(pdata)) pdata 746 drivers/input/touchscreen/zforce_ts.c return PTR_ERR(pdata); pdata 839 drivers/input/touchscreen/zforce_ts.c ts->pdata = pdata; pdata 856 drivers/input/touchscreen/zforce_ts.c pdata->x_max, 0, 0); pdata 858 drivers/input/touchscreen/zforce_ts.c pdata->y_max, 0, 0); pdata 1025 drivers/iommu/omap-iommu.c struct iommu_platform_data *pdata = dev_get_platdata(dev); pdata 1035 drivers/iommu/omap-iommu.c if (pdata && pdata->device_idle) pdata 1036 drivers/iommu/omap-iommu.c pdata->device_idle(pdev); pdata 1038 drivers/iommu/omap-iommu.c if (pdata && pdata->assert_reset) pdata 1039 drivers/iommu/omap-iommu.c pdata->assert_reset(pdev, pdata->reset_name); pdata 1041 drivers/iommu/omap-iommu.c if (pdata && pdata->set_pwrdm_constraint) { pdata 1042 drivers/iommu/omap-iommu.c ret = pdata->set_pwrdm_constraint(pdev, false, &obj->pwrst); pdata 1067 drivers/iommu/omap-iommu.c struct iommu_platform_data *pdata = dev_get_platdata(dev); pdata 1071 drivers/iommu/omap-iommu.c if (pdata && pdata->set_pwrdm_constraint) { pdata 1072 drivers/iommu/omap-iommu.c ret = pdata->set_pwrdm_constraint(pdev, true, &obj->pwrst); pdata 1079 drivers/iommu/omap-iommu.c if (pdata && pdata->deassert_reset) { pdata 1080 drivers/iommu/omap-iommu.c ret = pdata->deassert_reset(pdev, pdata->reset_name); pdata 1087 drivers/iommu/omap-iommu.c if (pdata && pdata->device_enable) pdata 1088 drivers/iommu/omap-iommu.c pdata->device_enable(pdev); pdata 176 drivers/irqchip/irq-madera.c irq_flags = madera->pdata.irq_flags; pdata 147 drivers/leds/leds-88pm860x.c struct pm860x_led_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 198 drivers/leds/leds-88pm860x.c if (pdata) pdata 199 drivers/leds/leds-88pm860x.c data->iset = pdata->iset; pdata 78 drivers/leds/leds-adp5520.c struct adp5520_leds_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 85 drivers/leds/leds-adp5520.c ret |= adp5520_write(dev, ADP5520_LED_TIME, pdata->led_on_time << 6); pdata 86 drivers/leds/leds-adp5520.c ret |= adp5520_write(dev, ADP5520_LED_FADE, FADE_VAL(pdata->fade_in, pdata 87 drivers/leds/leds-adp5520.c pdata->fade_out)); pdata 94 drivers/leds/leds-adp5520.c struct adp5520_leds_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 99 drivers/leds/leds-adp5520.c if (pdata == NULL) { pdata 104 drivers/leds/leds-adp5520.c if (pdata->num_leds > ADP5520_01_MAXLEDS) { pdata 110 drivers/leds/leds-adp5520.c led = devm_kcalloc(&pdev->dev, pdata->num_leds, sizeof(*led), pdata 121 drivers/leds/leds-adp5520.c for (i = 0; i < pdata->num_leds; ++i) { pdata 122 drivers/leds/leds-adp5520.c cur_led = &pdata->leds[i]; pdata 168 drivers/leds/leds-adp5520.c struct adp5520_leds_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 177 drivers/leds/leds-adp5520.c for (i = 0; i < pdata->num_leds; i++) { pdata 68 drivers/leds/leds-bd2802.c struct bd2802_led_platform_data *pdata; pdata 203 drivers/leds/leds-bd2802.c gpio_set_value(led->pdata->reset_gpio, 0); pdata 217 drivers/leds/leds-bd2802.c struct bd2802_led_platform_data *pdata = led->pdata; pdata 221 drivers/leds/leds-bd2802.c bd2802_write_byte(led->client, reg, pdata->rgb_time); pdata 224 drivers/leds/leds-bd2802.c bd2802_write_byte(led->client, reg, pdata->rgb_time); pdata 229 drivers/leds/leds-bd2802.c gpio_set_value(led->pdata->reset_gpio, 1); pdata 423 drivers/leds/leds-bd2802.c gpio_set_value(led->pdata->reset_gpio, 0); pdata 662 drivers/leds/leds-bd2802.c struct bd2802_led_platform_data *pdata; pdata 670 drivers/leds/leds-bd2802.c pdata = led->pdata = dev_get_platdata(&client->dev); pdata 674 drivers/leds/leds-bd2802.c gpio_request_one(pdata->reset_gpio, GPIOF_OUT_INIT_HIGH, "RGB_RESETB"); pdata 688 drivers/leds/leds-bd2802.c gpio_set_value(led->pdata->reset_gpio, 0); pdata 723 drivers/leds/leds-bd2802.c gpio_set_value(led->pdata->reset_gpio, 0); pdata 753 drivers/leds/leds-bd2802.c gpio_set_value(led->pdata->reset_gpio, 0); pdata 85 drivers/leds/leds-da903x.c struct led_info *pdata = dev_get_platdata(&pdev->dev); pdata 89 drivers/leds/leds-da903x.c if (pdata == NULL) pdata 104 drivers/leds/leds-da903x.c led->cdev.name = pdata->name; pdata 105 drivers/leds/leds-da903x.c led->cdev.default_trigger = pdata->default_trigger; pdata 110 drivers/leds/leds-da903x.c led->flags = pdata->flags; pdata 91 drivers/leds/leds-da9052.c struct da9052_pdata *pdata; pdata 99 drivers/leds/leds-da9052.c pdata = dev_get_platdata(da9052->dev); pdata 100 drivers/leds/leds-da9052.c if (pdata == NULL) { pdata 105 drivers/leds/leds-da9052.c pled = pdata->pled; pdata 162 drivers/leds/leds-da9052.c struct da9052_pdata *pdata; pdata 168 drivers/leds/leds-da9052.c pdata = dev_get_platdata(da9052->dev); pdata 169 drivers/leds/leds-da9052.c pled = pdata->pled; pdata 23 drivers/leds/leds-gpio-register.c int id, const struct gpio_led_platform_data *pdata) pdata 26 drivers/leds/leds-gpio-register.c struct gpio_led_platform_data _pdata = *pdata; pdata 28 drivers/leds/leds-gpio-register.c if (!pdata->num_leds) pdata 31 drivers/leds/leds-gpio-register.c _pdata.leds = kmemdup(pdata->leds, pdata 32 drivers/leds/leds-gpio-register.c pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); pdata 258 drivers/leds/leds-gpio.c struct gpio_led_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 262 drivers/leds/leds-gpio.c if (pdata && pdata->num_leds) { pdata 264 drivers/leds/leds-gpio.c sizeof_gpio_leds_priv(pdata->num_leds), pdata 269 drivers/leds/leds-gpio.c priv->num_leds = pdata->num_leds; pdata 271 drivers/leds/leds-gpio.c const struct gpio_led *template = &pdata->leds[i]; pdata 288 drivers/leds/leds-gpio.c pdata->gpio_blink_set); pdata 108 drivers/leds/leds-lm3530.c struct lm3530_platform_data *pdata; pdata 155 drivers/leds/leds-lm3530.c static void lm3530_als_configure(struct lm3530_platform_data *pdata, pdata 161 drivers/leds/leds-lm3530.c if (pdata->als_vmax == 0) { pdata 162 drivers/leds/leds-lm3530.c pdata->als_vmin = 0; pdata 163 drivers/leds/leds-lm3530.c pdata->als_vmax = LM3530_ALS_WINDOW_mV; pdata 166 drivers/leds/leds-lm3530.c als_vmin = pdata->als_vmin; pdata 167 drivers/leds/leds-lm3530.c als_vmax = pdata->als_vmax; pdata 170 drivers/leds/leds-lm3530.c pdata->als_vmax = als_vmax = als_vmin + LM3530_ALS_WINDOW_mV; pdata 180 drivers/leds/leds-lm3530.c (pdata->als_avrg_time << LM3530_ALS_AVG_TIME_SHIFT) | pdata 182 drivers/leds/leds-lm3530.c (pdata->als_input_mode << LM3530_ALS_SEL_SHIFT); pdata 185 drivers/leds/leds-lm3530.c (pdata->als1_resistor_sel << LM3530_ALS1_IMP_SHIFT) | pdata 186 drivers/leds/leds-lm3530.c (pdata->als2_resistor_sel << LM3530_ALS2_IMP_SHIFT); pdata 231 drivers/leds/leds-lm3530.c struct lm3530_platform_data *pdata = drvdata->pdata; pdata 233 drivers/leds/leds-lm3530.c struct lm3530_pwm_data *pwm = &pdata->pwm_data; pdata 238 drivers/leds/leds-lm3530.c gen_config = (pdata->brt_ramp_law << LM3530_RAMP_LAW_SHIFT) | pdata 239 drivers/leds/leds-lm3530.c ((pdata->max_current & 7) << LM3530_MAX_CURR_SHIFT); pdata 247 drivers/leds/leds-lm3530.c lm3530_als_configure(pdata, &als); pdata 251 drivers/leds/leds-lm3530.c (pdata->pwm_pol_hi << LM3530_PWM_POL_SHIFT); pdata 255 drivers/leds/leds-lm3530.c brt_ramp = (pdata->brt_ramp_fall << LM3530_BRT_RAMP_FALL_SHIFT) | pdata 256 drivers/leds/leds-lm3530.c (pdata->brt_ramp_rise << LM3530_BRT_RAMP_RISE_SHIFT); pdata 261 drivers/leds/leds-lm3530.c brightness = drvdata->brightness = pdata->brt_val; pdata 310 drivers/leds/leds-lm3530.c struct lm3530_platform_data *pdata = drvdata->pdata; pdata 311 drivers/leds/leds-lm3530.c struct lm3530_pwm_data *pwm = &pdata->pwm_data; pdata 378 drivers/leds/leds-lm3530.c pwm = &drvdata->pdata->pwm_data; pdata 411 drivers/leds/leds-lm3530.c struct lm3530_platform_data *pdata = dev_get_platdata(&client->dev); pdata 415 drivers/leds/leds-lm3530.c if (pdata == NULL) { pdata 421 drivers/leds/leds-lm3530.c if (pdata->mode > LM3530_BL_MODE_PWM) { pdata 436 drivers/leds/leds-lm3530.c drvdata->mode = pdata->mode; pdata 438 drivers/leds/leds-lm3530.c drvdata->pdata = pdata; pdata 456 drivers/leds/leds-lm3530.c if (drvdata->pdata->brt_val) { pdata 636 drivers/leds/leds-lm3533.c struct lm3533_led_platform_data *pdata) pdata 640 drivers/leds/leds-lm3533.c ret = lm3533_ctrlbank_set_max_current(&led->cb, pdata->max_current); pdata 644 drivers/leds/leds-lm3533.c return lm3533_ctrlbank_set_pwm(&led->cb, pdata->pwm); pdata 650 drivers/leds/leds-lm3533.c struct lm3533_led_platform_data *pdata; pdata 660 drivers/leds/leds-lm3533.c pdata = dev_get_platdata(&pdev->dev); pdata 661 drivers/leds/leds-lm3533.c if (!pdata) { pdata 676 drivers/leds/leds-lm3533.c led->cdev.name = pdata->name; pdata 677 drivers/leds/leds-lm3533.c led->cdev.default_trigger = pdata->default_trigger; pdata 705 drivers/leds/leds-lm3533.c ret = lm3533_led_setup(led, pdata); pdata 58 drivers/leds/leds-lm355x.c struct lm355x_platform_data *pdata; pdata 163 drivers/leds/leds-lm355x.c struct lm355x_platform_data *pdata = chip->pdata; pdata 168 drivers/leds/leds-lm355x.c reg_val = pdata->pin_tx2 | pdata->ntc_pin; pdata 172 drivers/leds/leds-lm355x.c reg_val = pdata->pass_mode; pdata 179 drivers/leds/leds-lm355x.c reg_val = pdata->pin_tx2 | pdata->ntc_pin | pdata->pass_mode; pdata 200 drivers/leds/leds-lm355x.c struct lm355x_platform_data *pdata = chip->pdata; pdata 224 drivers/leds/leds-lm355x.c if (pdata->pin_tx1 != LM355x_PIN_TORCH_DISABLE) { pdata 249 drivers/leds/leds-lm355x.c if (pdata->pin_strobe != LM355x_PIN_STROBE_DISABLE) { pdata 277 drivers/leds/leds-lm355x.c if (pdata->pin_tx2 != LM355x_PIN_TX_DISABLE) { pdata 402 drivers/leds/leds-lm355x.c struct lm355x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 412 drivers/leds/leds-lm355x.c if (pdata == NULL) { pdata 434 drivers/leds/leds-lm355x.c chip->pdata = pdata; pdata 79 drivers/leds/leds-lm3642.c struct lm3642_platform_data *pdata; pdata 90 drivers/leds/leds-lm3642.c struct lm3642_platform_data *pdata = chip->pdata; pdata 94 drivers/leds/leds-lm3642.c pdata->tx_pin); pdata 304 drivers/leds/leds-lm3642.c struct lm3642_platform_data *pdata = dev_get_platdata(&client->dev); pdata 314 drivers/leds/leds-lm3642.c if (pdata == NULL) { pdata 325 drivers/leds/leds-lm3642.c chip->pdata = pdata; pdata 327 drivers/leds/leds-lm3642.c chip->tx_pin = pdata->tx_pin; pdata 328 drivers/leds/leds-lm3642.c chip->torch_pin = pdata->torch_pin; pdata 329 drivers/leds/leds-lm3642.c chip->strobe_pin = pdata->strobe_pin; pdata 292 drivers/leds/leds-lp3944.c struct lp3944_platform_data *pdata) pdata 296 drivers/leds/leds-lp3944.c for (i = 0; i < pdata->leds_size; i++) { pdata 297 drivers/leds/leds-lp3944.c struct lp3944_led *pled = &pdata->leds[i]; pdata 347 drivers/leds/leds-lp3944.c switch (pdata->leds[i].type) { pdata 402 drivers/leds/leds-lp3944.c struct lp3944_platform_data *pdata = dev_get_platdata(&client->dev); pdata 406 drivers/leds/leds-lp3944.c for (i = 0; i < pdata->leds_size; i++) pdata 334 drivers/leds/leds-lp5521.c struct lp55xx_platform_data *pdata = chip->pdata; pdata 342 drivers/leds/leds-lp5521.c if (pdata->clock_mode != LP55XX_CLOCK_EXT) pdata 505 drivers/leds/leds-lp5521.c struct lp55xx_platform_data *pdata = dev_get_platdata(&client->dev); pdata 508 drivers/leds/leds-lp5521.c if (!pdata) { pdata 510 drivers/leds/leds-lp5521.c pdata = lp55xx_of_populate_pdata(&client->dev, np); pdata 511 drivers/leds/leds-lp5521.c if (IS_ERR(pdata)) pdata 512 drivers/leds/leds-lp5521.c return PTR_ERR(pdata); pdata 524 drivers/leds/leds-lp5521.c pdata->num_channels, sizeof(*led), GFP_KERNEL); pdata 529 drivers/leds/leds-lp5521.c chip->pdata = pdata; pdata 582 drivers/leds/leds-lp5523.c struct lp55xx_platform_data *pdata = chip->pdata; pdata 593 drivers/leds/leds-lp5523.c if (pdata->clock_mode == LP55XX_CLOCK_EXT) { pdata 616 drivers/leds/leds-lp5523.c if (pdata->led_config[i].led_current == 0) pdata 621 drivers/leds/leds-lp5523.c pdata->led_config[i].led_current); pdata 872 drivers/leds/leds-lp5523.c struct lp55xx_platform_data *pdata = dev_get_platdata(&client->dev); pdata 875 drivers/leds/leds-lp5523.c if (!pdata) { pdata 877 drivers/leds/leds-lp5523.c pdata = lp55xx_of_populate_pdata(&client->dev, np); pdata 878 drivers/leds/leds-lp5523.c if (IS_ERR(pdata)) pdata 879 drivers/leds/leds-lp5523.c return PTR_ERR(pdata); pdata 891 drivers/leds/leds-lp5523.c pdata->num_channels, sizeof(*led), GFP_KERNEL); pdata 896 drivers/leds/leds-lp5523.c chip->pdata = pdata; pdata 366 drivers/leds/leds-lp5562.c ptn = chip->pdata->patterns + (mode - 1); pdata 411 drivers/leds/leds-lp5562.c struct lp55xx_predef_pattern *ptn = chip->pdata->patterns; pdata 412 drivers/leds/leds-lp5562.c int num_patterns = chip->pdata->num_patterns; pdata 520 drivers/leds/leds-lp5562.c struct lp55xx_platform_data *pdata = dev_get_platdata(&client->dev); pdata 523 drivers/leds/leds-lp5562.c if (!pdata) { pdata 525 drivers/leds/leds-lp5562.c pdata = lp55xx_of_populate_pdata(&client->dev, np); pdata 526 drivers/leds/leds-lp5562.c if (IS_ERR(pdata)) pdata 527 drivers/leds/leds-lp5562.c return PTR_ERR(pdata); pdata 539 drivers/leds/leds-lp5562.c pdata->num_channels, sizeof(*led), GFP_KERNEL); pdata 544 drivers/leds/leds-lp5562.c chip->pdata = pdata; pdata 147 drivers/leds/leds-lp55xx-common.c struct lp55xx_platform_data *pdata = chip->pdata; pdata 159 drivers/leds/leds-lp55xx-common.c if (pdata->led_config[chan].led_current == 0) pdata 162 drivers/leds/leds-lp55xx-common.c led->led_current = pdata->led_config[chan].led_current; pdata 163 drivers/leds/leds-lp55xx-common.c led->max_current = pdata->led_config[chan].max_current; pdata 164 drivers/leds/leds-lp55xx-common.c led->chan_nr = pdata->led_config[chan].chan_nr; pdata 165 drivers/leds/leds-lp55xx-common.c led->cdev.default_trigger = pdata->led_config[chan].default_trigger; pdata 176 drivers/leds/leds-lp55xx-common.c if (pdata->led_config[chan].name) { pdata 177 drivers/leds/leds-lp55xx-common.c led->cdev.name = pdata->led_config[chan].name; pdata 180 drivers/leds/leds-lp55xx-common.c pdata->label ? : chip->cl->name, chan); pdata 385 drivers/leds/leds-lp55xx-common.c struct lp55xx_platform_data *pdata; pdata 392 drivers/leds/leds-lp55xx-common.c pdata = chip->pdata; pdata 395 drivers/leds/leds-lp55xx-common.c if (!pdata || !cfg) pdata 398 drivers/leds/leds-lp55xx-common.c if (gpio_is_valid(pdata->enable_gpio)) { pdata 399 drivers/leds/leds-lp55xx-common.c ret = devm_gpio_request_one(dev, pdata->enable_gpio, pdata 407 drivers/leds/leds-lp55xx-common.c gpio_set_value(pdata->enable_gpio, 0); pdata 409 drivers/leds/leds-lp55xx-common.c gpio_set_value(pdata->enable_gpio, 1); pdata 445 drivers/leds/leds-lp55xx-common.c struct lp55xx_platform_data *pdata = chip->pdata; pdata 450 drivers/leds/leds-lp55xx-common.c if (gpio_is_valid(pdata->enable_gpio)) pdata 451 drivers/leds/leds-lp55xx-common.c gpio_set_value(pdata->enable_gpio, 0); pdata 457 drivers/leds/leds-lp55xx-common.c struct lp55xx_platform_data *pdata = chip->pdata; pdata 459 drivers/leds/leds-lp55xx-common.c int num_channels = pdata->num_channels; pdata 473 drivers/leds/leds-lp55xx-common.c if (pdata->led_config[i].led_current == 0) pdata 476 drivers/leds/leds-lp55xx-common.c led_current = pdata->led_config[i].led_current; pdata 545 drivers/leds/leds-lp55xx-common.c struct lp55xx_platform_data *pdata; pdata 550 drivers/leds/leds-lp55xx-common.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 551 drivers/leds/leds-lp55xx-common.c if (!pdata) pdata 564 drivers/leds/leds-lp55xx-common.c pdata->led_config = &cfg[0]; pdata 565 drivers/leds/leds-lp55xx-common.c pdata->num_channels = num_channels; pdata 579 drivers/leds/leds-lp55xx-common.c of_property_read_string(np, "label", &pdata->label); pdata 580 drivers/leds/leds-lp55xx-common.c of_property_read_u8(np, "clock-mode", &pdata->clock_mode); pdata 582 drivers/leds/leds-lp55xx-common.c pdata->enable_gpio = of_get_named_gpio(np, "enable-gpio", 0); pdata 585 drivers/leds/leds-lp55xx-common.c of_property_read_u8(np, "pwr-sel", (u8 *)&pdata->pwr_sel); pdata 587 drivers/leds/leds-lp55xx-common.c return pdata; pdata 149 drivers/leds/leds-lp55xx-common.h struct lp55xx_platform_data *pdata; pdata 102 drivers/leds/leds-lp8501.c if (chip->pdata->clock_mode != LP55XX_CLOCK_EXT) pdata 111 drivers/leds/leds-lp8501.c LP8501_PWR_CONFIG_M, chip->pdata->pwr_sel); pdata 308 drivers/leds/leds-lp8501.c struct lp55xx_platform_data *pdata = dev_get_platdata(&client->dev); pdata 311 drivers/leds/leds-lp8501.c if (!pdata) { pdata 313 drivers/leds/leds-lp8501.c pdata = lp55xx_of_populate_pdata(&client->dev, np); pdata 314 drivers/leds/leds-lp8501.c if (IS_ERR(pdata)) pdata 315 drivers/leds/leds-lp8501.c return PTR_ERR(pdata); pdata 327 drivers/leds/leds-lp8501.c pdata->num_channels, sizeof(*led), GFP_KERNEL); pdata 332 drivers/leds/leds-lp8501.c chip->pdata = pdata; pdata 43 drivers/leds/leds-lp8788.c struct lp8788_led_platform_data *pdata) pdata 49 drivers/leds/leds-lp8788.c if (pdata) { pdata 50 drivers/leds/leds-lp8788.c cfg->scale = pdata->scale; pdata 51 drivers/leds/leds-lp8788.c cfg->num = pdata->num; pdata 52 drivers/leds/leds-lp8788.c cfg->iout = pdata->iout_code; pdata 136 drivers/leds/leds-lp8788.c led_pdata = lp->pdata ? lp->pdata->led_pdata : NULL; pdata 236 drivers/leds/leds-max8997.c struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); pdata 241 drivers/leds/leds-max8997.c if (pdata == NULL) { pdata 261 drivers/leds/leds-max8997.c if (pdata->led_pdata) { pdata 264 drivers/leds/leds-max8997.c mode = pdata->led_pdata->mode[led->id]; pdata 265 drivers/leds/leds-max8997.c brightness = pdata->led_pdata->brightness[led->id]; pdata 115 drivers/leds/leds-mc13783.c struct mc13xxx_leds_platform_data *pdata; pdata 120 drivers/leds/leds-mc13783.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 121 drivers/leds/leds-mc13783.c if (!pdata) pdata 129 drivers/leds/leds-mc13783.c pdata->led_control, pdata 134 drivers/leds/leds-mc13783.c pdata->num_leds = of_get_child_count(parent); pdata 136 drivers/leds/leds-mc13783.c pdata->led = devm_kcalloc(dev, pdata->num_leds, sizeof(*pdata->led), pdata 138 drivers/leds/leds-mc13783.c if (!pdata->led) { pdata 149 drivers/leds/leds-mc13783.c pdata->led[i].id = leds->devtype->led_min + tmp; pdata 152 drivers/leds/leds-mc13783.c pdata->led[i].name = str; pdata 155 drivers/leds/leds-mc13783.c pdata->led[i].default_trigger = str; pdata 160 drivers/leds/leds-mc13783.c pdata->num_leds = i; pdata 166 drivers/leds/leds-mc13783.c return ret ? ERR_PTR(ret) : pdata; pdata 179 drivers/leds/leds-mc13783.c struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(dev); pdata 196 drivers/leds/leds-mc13783.c pdata = mc13xxx_led_probe_dt(pdev); pdata 197 drivers/leds/leds-mc13783.c if (IS_ERR(pdata)) pdata 198 drivers/leds/leds-mc13783.c return PTR_ERR(pdata); pdata 199 drivers/leds/leds-mc13783.c } else if (!pdata) pdata 202 drivers/leds/leds-mc13783.c leds->num_leds = pdata->num_leds; pdata 217 drivers/leds/leds-mc13783.c pdata->led_control[i]); pdata 227 drivers/leds/leds-mc13783.c id = pdata->led[i].id; pdata 228 drivers/leds/leds-mc13783.c name = pdata->led[i].name; pdata 229 drivers/leds/leds-mc13783.c trig = pdata->led[i].default_trigger; pdata 55 drivers/leds/leds-mlxreg.c struct mlxreg_core_platform_data *pdata; pdata 63 drivers/leds/leds-mlxreg.c struct mlxreg_core_platform_data *led_pdata = priv->pdata; pdata 101 drivers/leds/leds-mlxreg.c struct mlxreg_core_platform_data *led_pdata = priv->pdata; pdata 186 drivers/leds/leds-mlxreg.c struct mlxreg_core_platform_data *led_pdata = priv->pdata; pdata 273 drivers/leds/leds-mlxreg.c priv->pdata = led_pdata; pdata 311 drivers/leds/leds-netxbig.c struct netxbig_led_platform_data *pdata, pdata 316 drivers/leds/leds-netxbig.c led_dat->gpio_ext = pdata->gpio_ext; pdata 338 drivers/leds/leds-netxbig.c led_dat->timer = pdata->timer; pdata 339 drivers/leds/leds-netxbig.c led_dat->num_timer = pdata->num_timer; pdata 410 drivers/leds/leds-netxbig.c struct netxbig_led_platform_data *pdata) pdata 439 drivers/leds/leds-netxbig.c pdata->gpio_ext = gpio_ext; pdata 465 drivers/leds/leds-netxbig.c pdata->timer = timers; pdata 466 drivers/leds/leds-netxbig.c pdata->num_timer = num_timers; pdata 552 drivers/leds/leds-netxbig.c pdata->leds = leds; pdata 553 drivers/leds/leds-netxbig.c pdata->num_leds = num_leds; pdata 570 drivers/leds/leds-netxbig.c struct netxbig_led_platform_data *pdata; pdata 575 drivers/leds/leds-netxbig.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 576 drivers/leds/leds-netxbig.c if (!pdata) pdata 578 drivers/leds/leds-netxbig.c ret = netxbig_leds_get_of_pdata(&pdev->dev, pdata); pdata 583 drivers/leds/leds-netxbig.c pdata->num_leds, sizeof(*leds_data), pdata 588 drivers/leds/leds-netxbig.c ret = gpio_ext_init(pdev, pdata->gpio_ext); pdata 592 drivers/leds/leds-netxbig.c for (i = 0; i < pdata->num_leds; i++) { pdata 593 drivers/leds/leds-netxbig.c ret = create_netxbig_led(pdev, pdata, pdata 594 drivers/leds/leds-netxbig.c &leds_data[i], &pdata->leds[i]); pdata 243 drivers/leds/leds-ns2.c ns2_leds_get_of_pdata(struct device *dev, struct ns2_led_platform_data *pdata) pdata 316 drivers/leds/leds-ns2.c pdata->leds = leds; pdata 317 drivers/leds/leds-ns2.c pdata->num_leds = num_leds; pdata 346 drivers/leds/leds-ns2.c struct ns2_led_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 352 drivers/leds/leds-ns2.c if (!pdata) { pdata 353 drivers/leds/leds-ns2.c pdata = devm_kzalloc(&pdev->dev, pdata 356 drivers/leds/leds-ns2.c if (!pdata) pdata 359 drivers/leds/leds-ns2.c ret = ns2_leds_get_of_pdata(&pdev->dev, pdata); pdata 364 drivers/leds/leds-ns2.c if (!pdata) pdata 369 drivers/leds/leds-ns2.c sizeof_ns2_led_priv(pdata->num_leds), GFP_KERNEL); pdata 372 drivers/leds/leds-ns2.c priv->num_leds = pdata->num_leds; pdata 376 drivers/leds/leds-ns2.c &pdata->leds[i]); pdata 352 drivers/leds/leds-pca9532.c struct pca9532_data *data, struct pca9532_platform_data *pdata) pdata 359 drivers/leds/leds-pca9532.c data->pwm[i] = pdata->pwm[i]; pdata 360 drivers/leds/leds-pca9532.c data->psc[i] = pdata->psc[i]; pdata 369 drivers/leds/leds-pca9532.c struct pca9532_led *pled = &pdata->leds[i]; pdata 440 drivers/leds/leds-pca9532.c data->gpio.base = pdata->gpio_base; pdata 468 drivers/leds/leds-pca9532.c struct pca9532_platform_data *pdata; pdata 482 drivers/leds/leds-pca9532.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 483 drivers/leds/leds-pca9532.c if (!pdata) pdata 488 drivers/leds/leds-pca9532.c &pdata->leds[i].name)) pdata 489 drivers/leds/leds-pca9532.c pdata->leds[i].name = child->name; pdata 490 drivers/leds/leds-pca9532.c of_property_read_u32(child, "type", &pdata->leds[i].type); pdata 492 drivers/leds/leds-pca9532.c &pdata->leds[i].default_trigger); pdata 495 drivers/leds/leds-pca9532.c pdata->leds[i].state = PCA9532_ON; pdata 497 drivers/leds/leds-pca9532.c pdata->leds[i].state = PCA9532_KEEP; pdata 505 drivers/leds/leds-pca9532.c return pdata; pdata 366 drivers/leds/leds-pca955x.c struct pca955x_platform_data *pdata; pdata 374 drivers/leds/leds-pca955x.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 375 drivers/leds/leds-pca955x.c if (!pdata) pdata 378 drivers/leds/leds-pca955x.c pdata->leds = devm_kcalloc(&client->dev, pdata 381 drivers/leds/leds-pca955x.c if (!pdata->leds) pdata 397 drivers/leds/leds-pca955x.c snprintf(pdata->leds[reg].name, sizeof(pdata->leds[reg].name), pdata 400 drivers/leds/leds-pca955x.c pdata->leds[reg].type = PCA955X_TYPE_LED; pdata 401 drivers/leds/leds-pca955x.c fwnode_property_read_u32(child, "type", &pdata->leds[reg].type); pdata 403 drivers/leds/leds-pca955x.c &pdata->leds[reg].default_trigger); pdata 406 drivers/leds/leds-pca955x.c pdata->num_leds = chip->bits; pdata 408 drivers/leds/leds-pca955x.c return pdata; pdata 428 drivers/leds/leds-pca955x.c struct pca955x_platform_data *pdata; pdata 433 drivers/leds/leds-pca955x.c pdata = dev_get_platdata(&client->dev); pdata 434 drivers/leds/leds-pca955x.c if (!pdata) { pdata 435 drivers/leds/leds-pca955x.c pdata = pca955x_get_pdata(client, chip); pdata 436 drivers/leds/leds-pca955x.c if (IS_ERR(pdata)) pdata 437 drivers/leds/leds-pca955x.c return PTR_ERR(pdata); pdata 455 drivers/leds/leds-pca955x.c if (pdata->num_leds != chip->bits) { pdata 458 drivers/leds/leds-pca955x.c pdata->num_leds, chip->bits); pdata 481 drivers/leds/leds-pca955x.c pca955x_led->type = pdata->leds[i].type; pdata 494 drivers/leds/leds-pca955x.c if (pdata->leds[i].name[0] == '\0') pdata 495 drivers/leds/leds-pca955x.c snprintf(pdata->leds[i].name, pdata 496 drivers/leds/leds-pca955x.c sizeof(pdata->leds[i].name), "%d", i); pdata 500 drivers/leds/leds-pca955x.c pdata->leds[i].name); pdata 502 drivers/leds/leds-pca955x.c if (pdata->leds[i].default_trigger) pdata 504 drivers/leds/leds-pca955x.c pdata->leds[i].default_trigger; pdata 283 drivers/leds/leds-pca963x.c struct pca963x_platform_data *pdata; pdata 315 drivers/leds/leds-pca963x.c pdata = devm_kzalloc(&client->dev, pdata 317 drivers/leds/leds-pca963x.c if (!pdata) pdata 320 drivers/leds/leds-pca963x.c pdata->leds.leds = pca963x_leds; pdata 321 drivers/leds/leds-pca963x.c pdata->leds.num_leds = chip->n_leds; pdata 325 drivers/leds/leds-pca963x.c pdata->outdrv = PCA963X_TOTEM_POLE; pdata 327 drivers/leds/leds-pca963x.c pdata->outdrv = PCA963X_OPEN_DRAIN; pdata 331 drivers/leds/leds-pca963x.c pdata->blink_type = PCA963X_HW_BLINK; pdata 333 drivers/leds/leds-pca963x.c pdata->blink_type = PCA963X_SW_BLINK; pdata 341 drivers/leds/leds-pca963x.c pdata->dir = PCA963X_INVERTED; pdata 343 drivers/leds/leds-pca963x.c pdata->dir = PCA963X_NORMAL; pdata 345 drivers/leds/leds-pca963x.c return pdata; pdata 362 drivers/leds/leds-pca963x.c struct pca963x_platform_data *pdata; pdata 367 drivers/leds/leds-pca963x.c pdata = dev_get_platdata(&client->dev); pdata 369 drivers/leds/leds-pca963x.c if (!pdata) { pdata 370 drivers/leds/leds-pca963x.c pdata = pca963x_get_pdata(client, chip); pdata 371 drivers/leds/leds-pca963x.c if (IS_ERR(pdata)) { pdata 373 drivers/leds/leds-pca963x.c pdata = NULL; pdata 377 drivers/leds/leds-pca963x.c if (pdata && (pdata->leds.num_leds < 1 || pdata 378 drivers/leds/leds-pca963x.c pdata->leds.num_leds > chip->n_leds)) { pdata 409 drivers/leds/leds-pca963x.c if (pdata && i < pdata->leds.num_leds) { pdata 410 drivers/leds/leds-pca963x.c if (pdata->leds.leds[i].name) pdata 413 drivers/leds/leds-pca963x.c pdata->leds.leds[i].name); pdata 414 drivers/leds/leds-pca963x.c if (pdata->leds.leds[i].default_trigger) pdata 416 drivers/leds/leds-pca963x.c pdata->leds.leds[i].default_trigger; pdata 418 drivers/leds/leds-pca963x.c if (!pdata || i >= pdata->leds.num_leds || pdata 419 drivers/leds/leds-pca963x.c !pdata->leds.leds[i].name) pdata 427 drivers/leds/leds-pca963x.c if (pdata && pdata->blink_type == PCA963X_HW_BLINK) pdata 438 drivers/leds/leds-pca963x.c if (pdata) { pdata 442 drivers/leds/leds-pca963x.c if (pdata->outdrv == PCA963X_OPEN_DRAIN) pdata 447 drivers/leds/leds-pca963x.c if (pdata->dir == PCA963X_INVERTED) pdata 158 drivers/leds/leds-pwm.c struct led_pwm_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 163 drivers/leds/leds-pwm.c if (pdata) pdata 164 drivers/leds/leds-pwm.c count = pdata->num_leds; pdata 176 drivers/leds/leds-pwm.c if (pdata) { pdata 178 drivers/leds/leds-pwm.c ret = led_pwm_add(&pdev->dev, priv, &pdata->leds[i], pdata 124 drivers/leds/leds-regulator.c struct led_regulator_platform_data *pdata = pdata 130 drivers/leds/leds-regulator.c if (pdata == NULL) { pdata 137 drivers/leds/leds-regulator.c dev_err(&pdev->dev, "Cannot get vcc for %s\n", pdata->name); pdata 146 drivers/leds/leds-regulator.c if (pdata->brightness > led->cdev.max_brightness) { pdata 148 drivers/leds/leds-regulator.c pdata->brightness); pdata 153 drivers/leds/leds-regulator.c led->cdev.name = pdata->name; pdata 170 drivers/leds/leds-regulator.c led->cdev.brightness = pdata->brightness; pdata 26 drivers/leds/leds-s3c24xx.c struct s3c24xx_led_platdata *pdata; pdata 38 drivers/leds/leds-s3c24xx.c struct s3c24xx_led_platdata *pd = led->pdata; pdata 56 drivers/leds/leds-s3c24xx.c struct s3c24xx_led_platdata *pdata = dev_get_platdata(&dev->dev); pdata 66 drivers/leds/leds-s3c24xx.c led->cdev.default_trigger = pdata->def_trigger; pdata 67 drivers/leds/leds-s3c24xx.c led->cdev.name = pdata->name; pdata 70 drivers/leds/leds-s3c24xx.c led->pdata = pdata; pdata 72 drivers/leds/leds-s3c24xx.c ret = devm_gpio_request(&dev->dev, pdata->gpio, "S3C24XX_LED"); pdata 78 drivers/leds/leds-s3c24xx.c s3c_gpio_setpull(pdata->gpio, S3C_GPIO_PULL_NONE); pdata 80 drivers/leds/leds-s3c24xx.c if (pdata->flags & S3C24XX_LEDF_TRISTATE) pdata 81 drivers/leds/leds-s3c24xx.c gpio_direction_input(pdata->gpio); pdata 83 drivers/leds/leds-s3c24xx.c gpio_direction_output(pdata->gpio, pdata 84 drivers/leds/leds-s3c24xx.c pdata->flags & S3C24XX_LEDF_ACTLOW ? 1 : 0); pdata 633 drivers/leds/leds-tca6507.c struct tca6507_platform_data *pdata) pdata 640 drivers/leds/leds-tca6507.c if (pdata->leds.leds[i].name && pdata->leds.leds[i].flags) { pdata 642 drivers/leds/leds-tca6507.c tca->gpio_name[gpios] = pdata->leds.leds[i].name; pdata 653 drivers/leds/leds-tca6507.c tca->gpio.base = pdata->gpio_base; pdata 666 drivers/leds/leds-tca6507.c if (pdata->setup) pdata 667 drivers/leds/leds-tca6507.c pdata->setup(tca->gpio.base, tca->gpio.ngpio); pdata 679 drivers/leds/leds-tca6507.c struct tca6507_platform_data *pdata) pdata 693 drivers/leds/leds-tca6507.c struct tca6507_platform_data *pdata; pdata 724 drivers/leds/leds-tca6507.c pdata = devm_kzalloc(&client->dev, pdata 726 drivers/leds/leds-tca6507.c if (!pdata) pdata 729 drivers/leds/leds-tca6507.c pdata->leds.leds = tca_leds; pdata 730 drivers/leds/leds-tca6507.c pdata->leds.num_leds = NUM_LEDS; pdata 732 drivers/leds/leds-tca6507.c pdata->gpio_base = -1; pdata 734 drivers/leds/leds-tca6507.c return pdata; pdata 757 drivers/leds/leds-tca6507.c struct tca6507_platform_data *pdata; pdata 762 drivers/leds/leds-tca6507.c pdata = dev_get_platdata(&client->dev); pdata 767 drivers/leds/leds-tca6507.c if (!pdata || pdata->leds.num_leds != NUM_LEDS) { pdata 768 drivers/leds/leds-tca6507.c pdata = tca6507_led_dt_init(client); pdata 769 drivers/leds/leds-tca6507.c if (IS_ERR(pdata)) { pdata 772 drivers/leds/leds-tca6507.c return PTR_ERR(pdata); pdata 789 drivers/leds/leds-tca6507.c if (pdata->leds.leds[i].name && !pdata->leds.leds[i].flags) { pdata 790 drivers/leds/leds-tca6507.c l->led_cdev.name = pdata->leds.leds[i].name; pdata 792 drivers/leds/leds-tca6507.c = pdata->leds.leds[i].default_trigger; pdata 802 drivers/leds/leds-tca6507.c err = tca6507_probe_gpios(client, tca, pdata); pdata 212 drivers/leds/leds-wm831x-status.c struct wm831x_status_pdata pdata; pdata 237 drivers/leds/leds-wm831x-status.c memset(&pdata, 0, sizeof(pdata)); pdata 239 drivers/leds/leds-wm831x-status.c memcpy(&pdata, chip_pdata->status[id], sizeof(pdata)); pdata 241 drivers/leds/leds-wm831x-status.c pdata.name = dev_name(&pdev->dev); pdata 258 drivers/leds/leds-wm831x-status.c if (pdata.default_src == WM831X_STATUS_PRESERVE) { pdata 263 drivers/leds/leds-wm831x-status.c drvdata->src = pdata.default_src - 1; pdata 266 drivers/leds/leds-wm831x-status.c drvdata->cdev.name = pdata.name; pdata 267 drivers/leds/leds-wm831x-status.c drvdata->cdev.default_trigger = pdata.default_trigger; pdata 190 drivers/leds/leds-wm8350.c struct wm8350_led_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 193 drivers/leds/leds-wm8350.c if (pdata == NULL) { pdata 198 drivers/leds/leds-wm8350.c if (pdata->max_uA < isink_cur[0]) { pdata 200 drivers/leds/leds-wm8350.c pdata->max_uA); pdata 221 drivers/leds/leds-wm8350.c led->cdev.default_trigger = pdata->default_trigger; pdata 222 drivers/leds/leds-wm8350.c led->cdev.name = pdata->name; pdata 229 drivers/leds/leds-wm8350.c if (isink_cur[i] >= pdata->max_uA) pdata 232 drivers/leds/leds-wm8350.c if (pdata->max_uA != isink_cur[i]) pdata 236 drivers/leds/leds-wm8350.c pdata->max_uA); pdata 715 drivers/macintosh/smu.c if (cmd->pdata[0] < 1) pdata 718 drivers/macintosh/smu.c memcpy(cmd->info.data, &cmd->pdata[1], pdata 764 drivers/macintosh/smu.c cmd->pdata[0] = 0xff; pdata 765 drivers/macintosh/smu.c cmd->scmd.reply_len = sizeof(cmd->pdata); pdata 776 drivers/macintosh/smu.c cmd->stage, scmd->status, cmd->pdata[0], scmd->reply_len); pdata 783 drivers/macintosh/smu.c fail = cmd->pdata[0] != 0; pdata 785 drivers/macintosh/smu.c fail = cmd->pdata[0] >= 0x80; pdata 787 drivers/macintosh/smu.c fail = cmd->pdata[0] != 0; pdata 813 drivers/macintosh/smu.c scmd->reply_buf = cmd->pdata; pdata 814 drivers/macintosh/smu.c scmd->reply_len = sizeof(cmd->pdata); pdata 815 drivers/macintosh/smu.c scmd->data_buf = cmd->pdata; pdata 817 drivers/macintosh/smu.c cmd->pdata[0] = 0; pdata 835 drivers/macintosh/smu.c cmd->scmd.reply_buf = cmd->pdata; pdata 836 drivers/macintosh/smu.c cmd->scmd.reply_len = sizeof(cmd->pdata); pdata 840 drivers/macintosh/smu.c cmd->pdata[0] = 0xff; pdata 194 drivers/mailbox/mailbox-sti.c struct sti_mbox_pdata *pdata = dev_get_platdata(mdev->dev); pdata 198 drivers/mailbox/mailbox-sti.c for (instance = 0; instance < pdata->num_inst; instance++) { pdata 216 drivers/mailbox/mailbox-sti.c struct sti_mbox_pdata *pdata = dev_get_platdata(mdev->dev); pdata 222 drivers/mailbox/mailbox-sti.c for (instance = 0; instance < pdata->num_inst; instance++) { pdata 325 drivers/mailbox/mailbox-sti.c struct sti_mbox_pdata *pdata = dev_get_platdata(mdev->dev); pdata 333 drivers/mailbox/mailbox-sti.c if (instance >= pdata->num_inst || channel >= pdata->num_chan) { pdata 89 drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_pdata *pdata; pdata 125 drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_pdata *pdata = ipi_mbox->pdata; pdata 128 drivers/mailbox/zynqmp-ipi-mailbox.c a1 = pdata->local_id; pdata 130 drivers/mailbox/zynqmp-ipi-mailbox.c if (pdata->method == USE_SMC) pdata 148 drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_pdata *pdata = data; pdata 160 drivers/mailbox/zynqmp-ipi-mailbox.c for (i = 0; i < pdata->num_mboxes; i++) { pdata 161 drivers/mailbox/zynqmp-ipi-mailbox.c ipi_mbox = &pdata->ipi_mboxes[i]; pdata 484 drivers/mailbox/zynqmp-ipi-mailbox.c dev = ipi_mbox->pdata->dev; pdata 616 drivers/mailbox/zynqmp-ipi-mailbox.c static void zynqmp_ipi_free_mboxes(struct zynqmp_ipi_pdata *pdata) pdata 621 drivers/mailbox/zynqmp-ipi-mailbox.c i = pdata->num_mboxes; pdata 623 drivers/mailbox/zynqmp-ipi-mailbox.c ipi_mbox = &pdata->ipi_mboxes[i]; pdata 635 drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_pdata *pdata; pdata 640 drivers/mailbox/zynqmp-ipi-mailbox.c pdata = devm_kzalloc(dev, sizeof(*pdata) + (num_mboxes * sizeof(*mbox)), pdata 642 drivers/mailbox/zynqmp-ipi-mailbox.c if (!pdata) pdata 644 drivers/mailbox/zynqmp-ipi-mailbox.c pdata->dev = dev; pdata 647 drivers/mailbox/zynqmp-ipi-mailbox.c ret = of_property_read_u32(np, "xlnx,ipi-id", &pdata->local_id); pdata 653 drivers/mailbox/zynqmp-ipi-mailbox.c pdata->num_mboxes = num_mboxes; pdata 654 drivers/mailbox/zynqmp-ipi-mailbox.c pdata->ipi_mboxes = (struct zynqmp_ipi_mbox *) pdata 655 drivers/mailbox/zynqmp-ipi-mailbox.c ((char *)pdata + sizeof(*pdata)); pdata 657 drivers/mailbox/zynqmp-ipi-mailbox.c mbox = pdata->ipi_mboxes; pdata 659 drivers/mailbox/zynqmp-ipi-mailbox.c mbox->pdata = pdata; pdata 675 drivers/mailbox/zynqmp-ipi-mailbox.c pdata->irq = ret; pdata 676 drivers/mailbox/zynqmp-ipi-mailbox.c ret = devm_request_irq(dev, pdata->irq, zynqmp_ipi_interrupt, pdata 677 drivers/mailbox/zynqmp-ipi-mailbox.c IRQF_SHARED, dev_name(dev), pdata); pdata 680 drivers/mailbox/zynqmp-ipi-mailbox.c pdata->irq); pdata 684 drivers/mailbox/zynqmp-ipi-mailbox.c platform_set_drvdata(pdev, pdata); pdata 688 drivers/mailbox/zynqmp-ipi-mailbox.c zynqmp_ipi_free_mboxes(pdata); pdata 694 drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_pdata *pdata; pdata 696 drivers/mailbox/zynqmp-ipi-mailbox.c pdata = platform_get_drvdata(pdev); pdata 697 drivers/mailbox/zynqmp-ipi-mailbox.c zynqmp_ipi_free_mboxes(pdata); pdata 69 drivers/media/dvb-frontends/a8293.c struct a8293_platform_data *pdata = client->dev.platform_data; pdata 70 drivers/media/dvb-frontends/a8293.c struct dvb_frontend *fe = pdata->dvb_frontend; pdata 1437 drivers/media/dvb-frontends/af9013.c struct af9013_platform_data *pdata = client->dev.platform_data; pdata 1462 drivers/media/dvb-frontends/af9013.c state->clk = pdata->clk; pdata 1463 drivers/media/dvb-frontends/af9013.c state->tuner = pdata->tuner; pdata 1464 drivers/media/dvb-frontends/af9013.c state->if_frequency = pdata->if_frequency; pdata 1465 drivers/media/dvb-frontends/af9013.c state->ts_mode = pdata->ts_mode; pdata 1466 drivers/media/dvb-frontends/af9013.c state->ts_output_pin = pdata->ts_output_pin; pdata 1467 drivers/media/dvb-frontends/af9013.c state->spec_inv = pdata->spec_inv; pdata 1468 drivers/media/dvb-frontends/af9013.c memcpy(&state->api_version, pdata->api_version, sizeof(state->api_version)); pdata 1469 drivers/media/dvb-frontends/af9013.c memcpy(&state->gpio, pdata->gpio, sizeof(state->gpio)); pdata 1513 drivers/media/dvb-frontends/af9013.c pdata->get_dvb_frontend = af9013_get_dvb_frontend; pdata 1514 drivers/media/dvb-frontends/af9013.c pdata->get_i2c_adapter = af9013_get_i2c_adapter; pdata 1515 drivers/media/dvb-frontends/af9013.c pdata->pid_filter = af9013_pid_filter; pdata 1516 drivers/media/dvb-frontends/af9013.c pdata->pid_filter_ctrl = af9013_pid_filter_ctrl; pdata 520 drivers/media/dvb-frontends/cxd2820r_core.c struct cxd2820r_platform_data pdata; pdata 522 drivers/media/dvb-frontends/cxd2820r_core.c pdata.ts_mode = config->ts_mode; pdata 523 drivers/media/dvb-frontends/cxd2820r_core.c pdata.ts_clk_inv = config->ts_clock_inv; pdata 524 drivers/media/dvb-frontends/cxd2820r_core.c pdata.if_agc_polarity = config->if_agc_polarity; pdata 525 drivers/media/dvb-frontends/cxd2820r_core.c pdata.spec_inv = config->spec_inv; pdata 526 drivers/media/dvb-frontends/cxd2820r_core.c pdata.gpio_chip_base = &gpio_chip_base; pdata 527 drivers/media/dvb-frontends/cxd2820r_core.c pdata.attach_in_use = true; pdata 532 drivers/media/dvb-frontends/cxd2820r_core.c board_info.platform_data = &pdata; pdata 537 drivers/media/dvb-frontends/cxd2820r_core.c return pdata.get_dvb_frontend(client); pdata 553 drivers/media/dvb-frontends/cxd2820r_core.c struct cxd2820r_platform_data *pdata = client->dev.platform_data; pdata 607 drivers/media/dvb-frontends/cxd2820r_core.c priv->ts_mode = pdata->ts_mode; pdata 608 drivers/media/dvb-frontends/cxd2820r_core.c priv->ts_clk_inv = pdata->ts_clk_inv; pdata 609 drivers/media/dvb-frontends/cxd2820r_core.c priv->if_agc_polarity = pdata->if_agc_polarity; pdata 610 drivers/media/dvb-frontends/cxd2820r_core.c priv->spec_inv = pdata->spec_inv; pdata 611 drivers/media/dvb-frontends/cxd2820r_core.c gpio_chip_base = *pdata->gpio_chip_base; pdata 685 drivers/media/dvb-frontends/cxd2820r_core.c if (!pdata->attach_in_use) pdata 690 drivers/media/dvb-frontends/cxd2820r_core.c pdata->get_dvb_frontend = cxd2820r_get_dvb_frontend; pdata 1260 drivers/media/dvb-frontends/m88ds3103.c struct m88ds3103_platform_data pdata = {}; pdata 1262 drivers/media/dvb-frontends/m88ds3103.c pdata.clk = cfg->clock; pdata 1263 drivers/media/dvb-frontends/m88ds3103.c pdata.i2c_wr_max = cfg->i2c_wr_max; pdata 1264 drivers/media/dvb-frontends/m88ds3103.c pdata.ts_mode = cfg->ts_mode; pdata 1265 drivers/media/dvb-frontends/m88ds3103.c pdata.ts_clk = cfg->ts_clk; pdata 1266 drivers/media/dvb-frontends/m88ds3103.c pdata.ts_clk_pol = cfg->ts_clk_pol; pdata 1267 drivers/media/dvb-frontends/m88ds3103.c pdata.spec_inv = cfg->spec_inv; pdata 1268 drivers/media/dvb-frontends/m88ds3103.c pdata.agc = cfg->agc; pdata 1269 drivers/media/dvb-frontends/m88ds3103.c pdata.agc_inv = cfg->agc_inv; pdata 1270 drivers/media/dvb-frontends/m88ds3103.c pdata.clk_out = cfg->clock_out; pdata 1271 drivers/media/dvb-frontends/m88ds3103.c pdata.envelope_mode = cfg->envelope_mode; pdata 1272 drivers/media/dvb-frontends/m88ds3103.c pdata.lnb_hv_pol = cfg->lnb_hv_pol; pdata 1273 drivers/media/dvb-frontends/m88ds3103.c pdata.lnb_en_pol = cfg->lnb_en_pol; pdata 1274 drivers/media/dvb-frontends/m88ds3103.c pdata.attach_in_use = true; pdata 1279 drivers/media/dvb-frontends/m88ds3103.c board_info.platform_data = &pdata; pdata 1284 drivers/media/dvb-frontends/m88ds3103.c *tuner_i2c_adapter = pdata.get_i2c_adapter(client); pdata 1285 drivers/media/dvb-frontends/m88ds3103.c return pdata.get_dvb_frontend(client); pdata 1356 drivers/media/dvb-frontends/m88ds3103.c struct m88ds3103_platform_data *pdata = client->dev.platform_data; pdata 1367 drivers/media/dvb-frontends/m88ds3103.c dev->config.clock = pdata->clk; pdata 1368 drivers/media/dvb-frontends/m88ds3103.c dev->config.i2c_wr_max = pdata->i2c_wr_max; pdata 1369 drivers/media/dvb-frontends/m88ds3103.c dev->config.ts_mode = pdata->ts_mode; pdata 1370 drivers/media/dvb-frontends/m88ds3103.c dev->config.ts_clk = pdata->ts_clk * 1000; pdata 1371 drivers/media/dvb-frontends/m88ds3103.c dev->config.ts_clk_pol = pdata->ts_clk_pol; pdata 1372 drivers/media/dvb-frontends/m88ds3103.c dev->config.spec_inv = pdata->spec_inv; pdata 1373 drivers/media/dvb-frontends/m88ds3103.c dev->config.agc_inv = pdata->agc_inv; pdata 1374 drivers/media/dvb-frontends/m88ds3103.c dev->config.clock_out = pdata->clk_out; pdata 1375 drivers/media/dvb-frontends/m88ds3103.c dev->config.envelope_mode = pdata->envelope_mode; pdata 1376 drivers/media/dvb-frontends/m88ds3103.c dev->config.agc = pdata->agc; pdata 1377 drivers/media/dvb-frontends/m88ds3103.c dev->config.lnb_hv_pol = pdata->lnb_hv_pol; pdata 1378 drivers/media/dvb-frontends/m88ds3103.c dev->config.lnb_en_pol = pdata->lnb_en_pol; pdata 1423 drivers/media/dvb-frontends/m88ds3103.c if (!pdata->ts_clk) { pdata 1465 drivers/media/dvb-frontends/m88ds3103.c if (!pdata->attach_in_use) pdata 1471 drivers/media/dvb-frontends/m88ds3103.c pdata->get_dvb_frontend = m88ds3103_get_dvb_frontend; pdata 1472 drivers/media/dvb-frontends/m88ds3103.c pdata->get_i2c_adapter = m88ds3103_get_i2c_adapter; pdata 578 drivers/media/dvb-frontends/mn88472.c struct mn88472_config *pdata = client->dev.platform_data; pdata 596 drivers/media/dvb-frontends/mn88472.c dev->i2c_write_max = pdata->i2c_wr_max ? pdata->i2c_wr_max : ~0; pdata 597 drivers/media/dvb-frontends/mn88472.c dev->clk = pdata->xtal; pdata 598 drivers/media/dvb-frontends/mn88472.c dev->ts_mode = pdata->ts_mode; pdata 599 drivers/media/dvb-frontends/mn88472.c dev->ts_clk = pdata->ts_clock; pdata 661 drivers/media/dvb-frontends/mn88472.c *pdata->fe = &dev->fe; pdata 672 drivers/media/dvb-frontends/mn88472.c pdata->get_dvb_frontend = mn88472_get_dvb_frontend; pdata 72 drivers/media/dvb-frontends/rtl2830.c {0x106, dev->pdata->vtop, 0x3f}, pdata 73 drivers/media/dvb-frontends/rtl2830.c {0x107, dev->pdata->krf, 0x3f}, pdata 75 drivers/media/dvb-frontends/rtl2830.c {0x103, dev->pdata->agc_targ_val, 0xff}, pdata 83 drivers/media/dvb-frontends/rtl2830.c {0x115, dev->pdata->spec_inv, 0x01}, pdata 226 drivers/media/dvb-frontends/rtl2830.c num = if_frequency % dev->pdata->clk; pdata 228 drivers/media/dvb-frontends/rtl2830.c num = div_u64(num, dev->pdata->clk); pdata 774 drivers/media/dvb-frontends/rtl2830.c struct rtl2830_platform_data *pdata = client->dev.platform_data; pdata 805 drivers/media/dvb-frontends/rtl2830.c if (pdata == NULL) { pdata 820 drivers/media/dvb-frontends/rtl2830.c dev->pdata = client->dev.platform_data; pdata 851 drivers/media/dvb-frontends/rtl2830.c pdata->get_dvb_frontend = rtl2830_get_dvb_frontend; pdata 852 drivers/media/dvb-frontends/rtl2830.c pdata->get_i2c_adapter = rtl2830_get_i2c_adapter; pdata 853 drivers/media/dvb-frontends/rtl2830.c pdata->pid_filter = rtl2830_pid_filter; pdata 854 drivers/media/dvb-frontends/rtl2830.c pdata->pid_filter_ctrl = rtl2830_pid_filter_ctrl; pdata 20 drivers/media/dvb-frontends/rtl2830_priv.h struct rtl2830_platform_data *pdata; pdata 223 drivers/media/dvb-frontends/rtl2832.c pset_iffreq = if_freq % dev->pdata->clk; pdata 225 drivers/media/dvb-frontends/rtl2832.c pset_iffreq = div_u64(pset_iffreq, dev->pdata->clk); pdata 313 drivers/media/dvb-frontends/rtl2832.c dev->pdata->tuner); pdata 314 drivers/media/dvb-frontends/rtl2832.c switch (dev->pdata->tuner) { pdata 488 drivers/media/dvb-frontends/rtl2832.c num = dev->pdata->clk * 7ULL; pdata 501 drivers/media/dvb-frontends/rtl2832.c num2 = dev->pdata->clk * 7ULL; pdata 1026 drivers/media/dvb-frontends/rtl2832.c struct rtl2832_platform_data *pdata = client->dev.platform_data; pdata 1055 drivers/media/dvb-frontends/rtl2832.c dev->pdata = client->dev.platform_data; pdata 1094 drivers/media/dvb-frontends/rtl2832.c pdata->get_dvb_frontend = rtl2832_get_dvb_frontend; pdata 1095 drivers/media/dvb-frontends/rtl2832.c pdata->get_i2c_adapter = rtl2832_get_i2c_adapter; pdata 1096 drivers/media/dvb-frontends/rtl2832.c pdata->slave_ts_ctrl = rtl2832_slave_ts_ctrl; pdata 1097 drivers/media/dvb-frontends/rtl2832.c pdata->pid_filter = rtl2832_pid_filter; pdata 1098 drivers/media/dvb-frontends/rtl2832.c pdata->pid_filter_ctrl = rtl2832_pid_filter_ctrl; pdata 1099 drivers/media/dvb-frontends/rtl2832.c pdata->regmap = dev->regmap; pdata 21 drivers/media/dvb-frontends/rtl2832_priv.h struct rtl2832_platform_data *pdata; pdata 484 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_platform_data *pdata = pdev->dev.platform_data; pdata 485 drivers/media/dvb-frontends/rtl2832_sdr.c struct dvb_frontend *fe = pdata->dvb_frontend; pdata 520 drivers/media/dvb-frontends/rtl2832_sdr.c u64tmp = f_if % pdata->clk; pdata 522 drivers/media/dvb-frontends/rtl2832_sdr.c u64tmp = div_u64(u64tmp, pdata->clk); pdata 559 drivers/media/dvb-frontends/rtl2832_sdr.c u32tmp = div_u64(pdata->clk * 0x400000ULL, f_sr * 4U); pdata 601 drivers/media/dvb-frontends/rtl2832_sdr.c switch (pdata->tuner) { pdata 774 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_platform_data *pdata = pdev->dev.platform_data; pdata 775 drivers/media/dvb-frontends/rtl2832_sdr.c struct dvb_frontend *fe = pdata->dvb_frontend; pdata 819 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_platform_data *pdata = pdev->dev.platform_data; pdata 820 drivers/media/dvb-frontends/rtl2832_sdr.c struct dvb_frontend *fe = pdata->dvb_frontend; pdata 833 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_platform_data *pdata = pdev->dev.platform_data; pdata 834 drivers/media/dvb-frontends/rtl2832_sdr.c struct dvb_frontend *fe = pdata->dvb_frontend; pdata 848 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_platform_data *pdata = pdev->dev.platform_data; pdata 849 drivers/media/dvb-frontends/rtl2832_sdr.c struct dvb_usb_device *d = pdata->dvb_usb_device; pdata 865 drivers/media/dvb-frontends/rtl2832_sdr.c d->props->frontend_ctrl(pdata->dvb_frontend, 1); pdata 909 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_platform_data *pdata = pdev->dev.platform_data; pdata 910 drivers/media/dvb-frontends/rtl2832_sdr.c struct dvb_usb_device *d = pdata->dvb_usb_device; pdata 932 drivers/media/dvb-frontends/rtl2832_sdr.c d->props->frontend_ctrl(pdata->dvb_frontend, 0); pdata 1249 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_platform_data *pdata = pdev->dev.platform_data; pdata 1250 drivers/media/dvb-frontends/rtl2832_sdr.c struct dvb_frontend *fe = pdata->dvb_frontend; pdata 1312 drivers/media/dvb-frontends/rtl2832_sdr.c struct rtl2832_sdr_platform_data *pdata = pdev->dev.platform_data; pdata 1319 drivers/media/dvb-frontends/rtl2832_sdr.c if (!pdata) { pdata 1342 drivers/media/dvb-frontends/rtl2832_sdr.c subdev = pdata->v4l2_subdev; pdata 1343 drivers/media/dvb-frontends/rtl2832_sdr.c dev->v4l2_subdev = pdata->v4l2_subdev; pdata 1345 drivers/media/dvb-frontends/rtl2832_sdr.c dev->regmap = pdata->regmap; pdata 1346 drivers/media/dvb-frontends/rtl2832_sdr.c dev->udev = pdata->dvb_usb_device->udev; pdata 1375 drivers/media/dvb-frontends/rtl2832_sdr.c switch (pdata->tuner) { pdata 1151 drivers/media/dvb-frontends/si2165.c struct si2165_platform_data *pdata = client->dev.platform_data; pdata 1180 drivers/media/dvb-frontends/si2165.c state->config.chip_mode = pdata->chip_mode; pdata 1181 drivers/media/dvb-frontends/si2165.c state->config.ref_freq_hz = pdata->ref_freq_hz; pdata 1182 drivers/media/dvb-frontends/si2165.c state->config.inversion = pdata->inversion; pdata 1265 drivers/media/dvb-frontends/si2165.c *pdata->fe = &state->fe; pdata 1151 drivers/media/dvb-frontends/tda10071.c struct tda10071_platform_data *pdata = client->dev.platform_data; pdata 1167 drivers/media/dvb-frontends/tda10071.c dev->clk = pdata->clk; pdata 1168 drivers/media/dvb-frontends/tda10071.c dev->i2c_wr_max = pdata->i2c_wr_max; pdata 1169 drivers/media/dvb-frontends/tda10071.c dev->ts_mode = pdata->ts_mode; pdata 1170 drivers/media/dvb-frontends/tda10071.c dev->spec_inv = pdata->spec_inv; pdata 1171 drivers/media/dvb-frontends/tda10071.c dev->pll_multiplier = pdata->pll_multiplier; pdata 1172 drivers/media/dvb-frontends/tda10071.c dev->tuner_i2c_addr = pdata->tuner_i2c_addr; pdata 1212 drivers/media/dvb-frontends/tda10071.c pdata->get_dvb_frontend = tda10071_get_dvb_frontend; pdata 512 drivers/media/dvb-frontends/ts2020.c struct ts2020_config pdata; pdata 514 drivers/media/dvb-frontends/ts2020.c memcpy(&pdata, config, sizeof(pdata)); pdata 515 drivers/media/dvb-frontends/ts2020.c pdata.fe = fe; pdata 516 drivers/media/dvb-frontends/ts2020.c pdata.attach_in_use = true; pdata 521 drivers/media/dvb-frontends/ts2020.c board_info.platform_data = &pdata; pdata 556 drivers/media/dvb-frontends/ts2020.c struct ts2020_config *pdata = client->dev.platform_data; pdata 557 drivers/media/dvb-frontends/ts2020.c struct dvb_frontend *fe = pdata->fe; pdata 585 drivers/media/dvb-frontends/ts2020.c dev->loop_through = pdata->loop_through; pdata 586 drivers/media/dvb-frontends/ts2020.c dev->clk_out = pdata->clk_out; pdata 587 drivers/media/dvb-frontends/ts2020.c dev->clk_out_div = pdata->clk_out_div; pdata 588 drivers/media/dvb-frontends/ts2020.c dev->dont_poll = pdata->dont_poll; pdata 589 drivers/media/dvb-frontends/ts2020.c dev->frequency_div = pdata->frequency_div; pdata 591 drivers/media/dvb-frontends/ts2020.c dev->get_agc_pwm = pdata->get_agc_pwm; pdata 685 drivers/media/dvb-frontends/ts2020.c if (!pdata->attach_in_use) pdata 24 drivers/media/dvb-frontends/zd1301_demod.c struct zd1301_demod_platform_data *pdata = pdev->dev.platform_data; pdata 26 drivers/media/dvb-frontends/zd1301_demod.c return pdata->reg_write(pdata->reg_priv, reg, val); pdata 32 drivers/media/dvb-frontends/zd1301_demod.c struct zd1301_demod_platform_data *pdata = pdev->dev.platform_data; pdata 34 drivers/media/dvb-frontends/zd1301_demod.c return pdata->reg_read(pdata->reg_priv, reg, val); pdata 457 drivers/media/dvb-frontends/zd1301_demod.c struct zd1301_demod_platform_data *pdata = pdev->dev.platform_data; pdata 462 drivers/media/dvb-frontends/zd1301_demod.c if (!pdata) { pdata 68 drivers/media/i2c/ad9389b.c struct ad9389b_platform_data pdata; pdata 436 drivers/media/i2c/ad9389b.c struct ad9389b_platform_data *pdata = &state->pdata; pdata 478 drivers/media/i2c/ad9389b.c if (pdata->diff_data_drive_strength > 0) pdata 479 drivers/media/i2c/ad9389b.c ad9389b_wr(sd, 0xa2, pdata->diff_data_drive_strength); pdata 483 drivers/media/i2c/ad9389b.c if (pdata->diff_clk_drive_strength > 0) pdata 484 drivers/media/i2c/ad9389b.c ad9389b_wr(sd, 0xa3, pdata->diff_clk_drive_strength); pdata 612 drivers/media/i2c/ad9389b.c if (state->pdata.tmds_pll_gear == AD9389B_TMDS_PLL_GEAR_SEMI_AUTOMATIC) pdata 1087 drivers/media/i2c/ad9389b.c struct ad9389b_platform_data *pdata = client->dev.platform_data; pdata 1104 drivers/media/i2c/ad9389b.c if (pdata == NULL) { pdata 1108 drivers/media/i2c/ad9389b.c memcpy(&state->pdata, pdata, sizeof(state->pdata)); pdata 48 drivers/media/i2c/adv7343.c const struct adv7343_platform_data *pdata; pdata 222 drivers/media/i2c/adv7343.c if (!state->pdata) pdata 230 drivers/media/i2c/adv7343.c val = state->pdata->mode_config.sleep_mode << 0 | pdata 231 drivers/media/i2c/adv7343.c state->pdata->mode_config.pll_control << 1 | pdata 232 drivers/media/i2c/adv7343.c state->pdata->mode_config.dac[2] << 2 | pdata 233 drivers/media/i2c/adv7343.c state->pdata->mode_config.dac[1] << 3 | pdata 234 drivers/media/i2c/adv7343.c state->pdata->mode_config.dac[0] << 4 | pdata 235 drivers/media/i2c/adv7343.c state->pdata->mode_config.dac[5] << 5 | pdata 236 drivers/media/i2c/adv7343.c state->pdata->mode_config.dac[4] << 6 | pdata 237 drivers/media/i2c/adv7343.c state->pdata->mode_config.dac[3] << 7; pdata 256 drivers/media/i2c/adv7343.c if (state->pdata && state->pdata->sd_config.sd_dac_out[0]) pdata 257 drivers/media/i2c/adv7343.c val = val | (state->pdata->sd_config.sd_dac_out[0] << 1); pdata 258 drivers/media/i2c/adv7343.c else if (state->pdata && !state->pdata->sd_config.sd_dac_out[0]) pdata 259 drivers/media/i2c/adv7343.c val = val & ~(state->pdata->sd_config.sd_dac_out[0] << 1); pdata 261 drivers/media/i2c/adv7343.c if (state->pdata && state->pdata->sd_config.sd_dac_out[1]) pdata 262 drivers/media/i2c/adv7343.c val = val | (state->pdata->sd_config.sd_dac_out[1] << 2); pdata 263 drivers/media/i2c/adv7343.c else if (state->pdata && !state->pdata->sd_config.sd_dac_out[1]) pdata 264 drivers/media/i2c/adv7343.c val = val & ~(state->pdata->sd_config.sd_dac_out[1] << 2); pdata 400 drivers/media/i2c/adv7343.c struct adv7343_platform_data *pdata; pdata 410 drivers/media/i2c/adv7343.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 411 drivers/media/i2c/adv7343.c if (!pdata) pdata 414 drivers/media/i2c/adv7343.c pdata->mode_config.sleep_mode = pdata 417 drivers/media/i2c/adv7343.c pdata->mode_config.pll_control = pdata 421 drivers/media/i2c/adv7343.c pdata->mode_config.dac, 6); pdata 424 drivers/media/i2c/adv7343.c pdata->sd_config.sd_dac_out, 2); pdata 428 drivers/media/i2c/adv7343.c return pdata; pdata 448 drivers/media/i2c/adv7343.c state->pdata = adv7343_get_pdata(client); pdata 83 drivers/media/i2c/adv7511-v4l2.c struct adv7511_platform_data pdata; pdata 1754 drivers/media/i2c/adv7511-v4l2.c u32 cec_clk = state->pdata.cec_clk; pdata 1798 drivers/media/i2c/adv7511-v4l2.c struct adv7511_platform_data *pdata = client->dev.platform_data; pdata 1813 drivers/media/i2c/adv7511-v4l2.c if (!pdata) { pdata 1817 drivers/media/i2c/adv7511-v4l2.c memcpy(&state->pdata, pdata, sizeof(state->pdata)); pdata 1861 drivers/media/i2c/adv7511-v4l2.c state->i2c_edid_addr = state->pdata.i2c_edid << 1; pdata 1862 drivers/media/i2c/adv7511-v4l2.c state->i2c_cec_addr = state->pdata.i2c_cec << 1; pdata 1863 drivers/media/i2c/adv7511-v4l2.c state->i2c_pktmem_addr = state->pdata.i2c_pktmem << 1; pdata 1884 drivers/media/i2c/adv7511-v4l2.c if (state->pdata.cec_clk < 3000000 || pdata 1885 drivers/media/i2c/adv7511-v4l2.c state->pdata.cec_clk > 100000000) { pdata 1887 drivers/media/i2c/adv7511-v4l2.c __func__, state->pdata.cec_clk); pdata 1888 drivers/media/i2c/adv7511-v4l2.c state->pdata.cec_clk = 0; pdata 1891 drivers/media/i2c/adv7511-v4l2.c if (state->pdata.cec_clk) { pdata 162 drivers/media/i2c/adv7604.c struct adv76xx_platform_data pdata; pdata 1874 drivers/media/i2c/adv7604.c return op_ch_sel[state->pdata.bus_order][state->format->op_ch_sel >> 5]; pdata 1884 drivers/media/i2c/adv7604.c state->pdata.op_format_mode_sel); pdata 2776 drivers/media/i2c/adv7604.c struct adv76xx_platform_data *pdata = &state->pdata; pdata 2779 drivers/media/i2c/adv7604.c (pdata->disable_pwrdnb ? 0x80 : 0) | pdata 2780 drivers/media/i2c/adv7604.c (pdata->disable_cable_det_rst ? 0x40 : 0)); pdata 2784 drivers/media/i2c/adv7604.c if (pdata->default_input >= 0 && pdata 2785 drivers/media/i2c/adv7604.c pdata->default_input < state->source_pad) { pdata 2786 drivers/media/i2c/adv7604.c state->selected_input = pdata->default_input; pdata 2797 drivers/media/i2c/adv7604.c io_write_clr_set(sd, 0x02, 0x0f, pdata->alt_gamma << 3); pdata 2798 drivers/media/i2c/adv7604.c io_write_clr_set(sd, 0x05, 0x0e, pdata->blank_data << 3 | pdata 2799 drivers/media/i2c/adv7604.c pdata->insert_av_codes << 2 | pdata 2800 drivers/media/i2c/adv7604.c pdata->replicate_av_codes << 1); pdata 2806 drivers/media/i2c/adv7604.c io_write(sd, 0x06, 0xa0 | pdata->inv_vs_pol << 2 | pdata 2807 drivers/media/i2c/adv7604.c pdata->inv_hs_pol << 1 | pdata->inv_llc_pol); pdata 2810 drivers/media/i2c/adv7604.c io_write(sd, 0x14, 0x40 | pdata->dr_str_data << 4 | pdata 2811 drivers/media/i2c/adv7604.c pdata->dr_str_clk << 2 | pdata 2812 drivers/media/i2c/adv7604.c pdata->dr_str_sync); pdata 2814 drivers/media/i2c/adv7604.c cp_write(sd, 0xba, (pdata->hdmi_free_run_mode << 1) | 0x01); /* HDMI free run */ pdata 2832 drivers/media/i2c/adv7604.c afe_write(sd, 0x02, pdata->ain_sel); /* Select analog input muxing mode */ pdata 2833 drivers/media/i2c/adv7604.c io_write_clr_set(sd, 0x30, 1 << 4, pdata->output_bus_lsb_to_msb << 4); pdata 2837 drivers/media/i2c/adv7604.c io_write(sd, 0x40, 0xc0 | pdata->int1_config); /* Configure INT1 */ pdata 2874 drivers/media/i2c/adv7604.c struct adv76xx_platform_data *pdata = &state->pdata; pdata 2878 drivers/media/i2c/adv7604.c if (pdata && pdata->i2c_addresses[page]) pdata 2880 drivers/media/i2c/adv7604.c pdata->i2c_addresses[page]); pdata 3150 drivers/media/i2c/adv7604.c state->pdata.default_input = v; pdata 3152 drivers/media/i2c/adv7604.c state->pdata.default_input = -1; pdata 3157 drivers/media/i2c/adv7604.c state->pdata.inv_hs_pol = 1; pdata 3160 drivers/media/i2c/adv7604.c state->pdata.inv_vs_pol = 1; pdata 3163 drivers/media/i2c/adv7604.c state->pdata.inv_llc_pol = 1; pdata 3166 drivers/media/i2c/adv7604.c state->pdata.insert_av_codes = 1; pdata 3169 drivers/media/i2c/adv7604.c state->pdata.int1_config = ADV76XX_INT1_CONFIG_ACTIVE_HIGH; pdata 3172 drivers/media/i2c/adv7604.c state->pdata.disable_pwrdnb = 0; pdata 3173 drivers/media/i2c/adv7604.c state->pdata.disable_cable_det_rst = 0; pdata 3174 drivers/media/i2c/adv7604.c state->pdata.blank_data = 1; pdata 3175 drivers/media/i2c/adv7604.c state->pdata.op_format_mode_sel = ADV7604_OP_FORMAT_MODE0; pdata 3176 drivers/media/i2c/adv7604.c state->pdata.bus_order = ADV7604_BUS_ORDER_RGB; pdata 3177 drivers/media/i2c/adv7604.c state->pdata.dr_str_data = ADV76XX_DR_STR_MEDIUM_HIGH; pdata 3178 drivers/media/i2c/adv7604.c state->pdata.dr_str_clk = ADV76XX_DR_STR_MEDIUM_HIGH; pdata 3179 drivers/media/i2c/adv7604.c state->pdata.dr_str_sync = ADV76XX_DR_STR_MEDIUM_HIGH; pdata 3380 drivers/media/i2c/adv7604.c struct adv76xx_platform_data *pdata = client->dev.platform_data; pdata 3383 drivers/media/i2c/adv7604.c state->pdata = *pdata; pdata 89 drivers/media/i2c/adv7842.c struct adv7842_platform_data pdata; pdata 2056 drivers/media/i2c/adv7842.c return op_ch_sel[state->pdata.bus_order][state->format->op_ch_sel >> 5]; pdata 2066 drivers/media/i2c/adv7842.c state->pdata.op_format_mode_sel); pdata 2941 drivers/media/i2c/adv7842.c struct adv7842_platform_data *pdata = &state->pdata; pdata 2949 drivers/media/i2c/adv7842.c adv7842_s_sdp_io(sd, &pdata->sdp_io_sync_625); pdata 2951 drivers/media/i2c/adv7842.c adv7842_s_sdp_io(sd, &pdata->sdp_io_sync_525); pdata 2980 drivers/media/i2c/adv7842.c struct adv7842_platform_data *pdata = &state->pdata; pdata 2982 drivers/media/i2c/adv7842.c (pdata->disable_pwrdnb ? 0x80 : 0) | pdata 2983 drivers/media/i2c/adv7842.c (pdata->disable_cable_det_rst ? 0x40 : 0)); pdata 2998 drivers/media/i2c/adv7842.c io_write(sd, 0x02, 0xf0 | pdata->alt_gamma << 3); pdata 2999 drivers/media/i2c/adv7842.c io_write_and_or(sd, 0x05, 0xf0, pdata->blank_data << 3 | pdata 3000 drivers/media/i2c/adv7842.c pdata->insert_av_codes << 2 | pdata 3001 drivers/media/i2c/adv7842.c pdata->replicate_av_codes << 1); pdata 3009 drivers/media/i2c/adv7842.c pdata->dr_str_data << 4 | pdata 3010 drivers/media/i2c/adv7842.c pdata->dr_str_clk << 2 | pdata 3011 drivers/media/i2c/adv7842.c pdata->dr_str_sync); pdata 3014 drivers/media/i2c/adv7842.c cp_write_and_or(sd, 0xba, 0xfc, pdata->hdmi_free_run_enable | pdata 3015 drivers/media/i2c/adv7842.c (pdata->hdmi_free_run_mode << 1)); pdata 3018 drivers/media/i2c/adv7842.c sdp_write_and_or(sd, 0xdd, 0xf0, pdata->sdp_free_run_force | pdata 3019 drivers/media/i2c/adv7842.c (pdata->sdp_free_run_cbar_en << 1) | pdata 3020 drivers/media/i2c/adv7842.c (pdata->sdp_free_run_man_col_en << 2) | pdata 3021 drivers/media/i2c/adv7842.c (pdata->sdp_free_run_auto << 3)); pdata 3029 drivers/media/i2c/adv7842.c afe_write(sd, 0x02, pdata->ain_sel); /* Select analog input muxing mode */ pdata 3030 drivers/media/i2c/adv7842.c io_write_and_or(sd, 0x30, ~(1 << 4), pdata->output_bus_lsb_to_msb << 4); pdata 3032 drivers/media/i2c/adv7842.c sdp_csc_coeff(sd, &pdata->sdp_csc_coeff); pdata 3035 drivers/media/i2c/adv7842.c if (pdata->sd_ram_size >= 128) { pdata 3037 drivers/media/i2c/adv7842.c if (pdata->sd_ram_ddr) { pdata 3062 drivers/media/i2c/adv7842.c select_input(sd, pdata->vid_std_select); pdata 3066 drivers/media/i2c/adv7842.c if (pdata->hpa_auto) { pdata 3077 drivers/media/i2c/adv7842.c io_write(sd, 0x19, 0x80 | pdata->llc_dll_phase); pdata 3159 drivers/media/i2c/adv7842.c struct adv7842_platform_data *pdata) pdata 3161 drivers/media/i2c/adv7842.c io_write(sd, 0xf1, pdata->i2c_sdp << 1); pdata 3162 drivers/media/i2c/adv7842.c io_write(sd, 0xf2, pdata->i2c_sdp_io << 1); pdata 3163 drivers/media/i2c/adv7842.c io_write(sd, 0xf3, pdata->i2c_avlink << 1); pdata 3164 drivers/media/i2c/adv7842.c io_write(sd, 0xf4, pdata->i2c_cec << 1); pdata 3165 drivers/media/i2c/adv7842.c io_write(sd, 0xf5, pdata->i2c_infoframe << 1); pdata 3167 drivers/media/i2c/adv7842.c io_write(sd, 0xf8, pdata->i2c_afe << 1); pdata 3168 drivers/media/i2c/adv7842.c io_write(sd, 0xf9, pdata->i2c_repeater << 1); pdata 3169 drivers/media/i2c/adv7842.c io_write(sd, 0xfa, pdata->i2c_edid << 1); pdata 3170 drivers/media/i2c/adv7842.c io_write(sd, 0xfb, pdata->i2c_hdmi << 1); pdata 3172 drivers/media/i2c/adv7842.c io_write(sd, 0xfd, pdata->i2c_cp << 1); pdata 3173 drivers/media/i2c/adv7842.c io_write(sd, 0xfe, pdata->i2c_vdp << 1); pdata 3180 drivers/media/i2c/adv7842.c struct adv7842_platform_data *pdata = client->dev.platform_data; pdata 3184 drivers/media/i2c/adv7842.c if (!pdata) pdata 3187 drivers/media/i2c/adv7842.c if (!pdata->sd_ram_size || !pdata->sd_ram_ddr) { pdata 3194 drivers/media/i2c/adv7842.c adv7842_rewrite_i2c_addresses(sd, pdata); pdata 3201 drivers/media/i2c/adv7842.c adv7842_rewrite_i2c_addresses(sd, pdata); pdata 3405 drivers/media/i2c/adv7842.c struct adv7842_platform_data *pdata = &state->pdata; pdata 3407 drivers/media/i2c/adv7842.c state->i2c_avlink = adv7842_dummy_client(sd, "avlink", pdata->i2c_avlink, 0xf3); pdata 3408 drivers/media/i2c/adv7842.c state->i2c_cec = adv7842_dummy_client(sd, "cec", pdata->i2c_cec, 0xf4); pdata 3409 drivers/media/i2c/adv7842.c state->i2c_infoframe = adv7842_dummy_client(sd, "infoframe", pdata->i2c_infoframe, 0xf5); pdata 3410 drivers/media/i2c/adv7842.c state->i2c_sdp_io = adv7842_dummy_client(sd, "sdp_io", pdata->i2c_sdp_io, 0xf2); pdata 3411 drivers/media/i2c/adv7842.c state->i2c_sdp = adv7842_dummy_client(sd, "sdp", pdata->i2c_sdp, 0xf1); pdata 3412 drivers/media/i2c/adv7842.c state->i2c_afe = adv7842_dummy_client(sd, "afe", pdata->i2c_afe, 0xf8); pdata 3413 drivers/media/i2c/adv7842.c state->i2c_repeater = adv7842_dummy_client(sd, "repeater", pdata->i2c_repeater, 0xf9); pdata 3414 drivers/media/i2c/adv7842.c state->i2c_edid = adv7842_dummy_client(sd, "edid", pdata->i2c_edid, 0xfa); pdata 3415 drivers/media/i2c/adv7842.c state->i2c_hdmi = adv7842_dummy_client(sd, "hdmi", pdata->i2c_hdmi, 0xfb); pdata 3416 drivers/media/i2c/adv7842.c state->i2c_cp = adv7842_dummy_client(sd, "cp", pdata->i2c_cp, 0xfd); pdata 3417 drivers/media/i2c/adv7842.c state->i2c_vdp = adv7842_dummy_client(sd, "vdp", pdata->i2c_vdp, 0xfe); pdata 3441 drivers/media/i2c/adv7842.c struct adv7842_platform_data *pdata = client->dev.platform_data; pdata 3455 drivers/media/i2c/adv7842.c if (!pdata) { pdata 3465 drivers/media/i2c/adv7842.c state->pdata = *pdata; pdata 3473 drivers/media/i2c/adv7842.c state->mode = pdata->mode; pdata 3475 drivers/media/i2c/adv7842.c state->hdmi_port_a = pdata->input == ADV7842_SELECT_HDMI_PORT_A; pdata 3492 drivers/media/i2c/adv7842.c if (pdata->chip_reset) pdata 30 drivers/media/i2c/ak881x.c struct ak881x_pdata *pdata; pdata 186 drivers/media/i2c/ak881x.c if (ak881x->pdata->flags & AK881X_COMPONENT) pdata 261 drivers/media/i2c/ak881x.c ak881x->pdata = client->dev.platform_data; pdata 263 drivers/media/i2c/ak881x.c if (ak881x->pdata) { pdata 264 drivers/media/i2c/ak881x.c if (ak881x->pdata->flags & AK881X_FIELD) pdata 269 drivers/media/i2c/ak881x.c switch (ak881x->pdata->flags & AK881X_IF_MODE_MASK) { pdata 6020 drivers/media/i2c/cx25840/cx25840-core.c struct cx25840_platform_data *pdata = client->dev.platform_data; pdata 6022 drivers/media/i2c/cx25840/cx25840-core.c state->pvr150_workaround = pdata->pvr150_workaround; pdata 55 drivers/media/i2c/lm3560.c struct lm3560_platform_data *pdata; pdata 282 drivers/media/i2c/lm3560.c u32 max_flash_brt = flash->pdata->max_flash_brt[led_no]; pdata 283 drivers/media/i2c/lm3560.c u32 max_torch_brt = flash->pdata->max_torch_brt[led_no]; pdata 308 drivers/media/i2c/lm3560.c flash->pdata->max_flash_timeout, pdata 310 drivers/media/i2c/lm3560.c flash->pdata->max_flash_timeout); pdata 381 drivers/media/i2c/lm3560.c REG_FLASH_TOUT, 0x60, flash->pdata->peak); pdata 398 drivers/media/i2c/lm3560.c struct lm3560_platform_data *pdata = dev_get_platdata(&client->dev); pdata 412 drivers/media/i2c/lm3560.c if (pdata == NULL) { pdata 413 drivers/media/i2c/lm3560.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 414 drivers/media/i2c/lm3560.c if (pdata == NULL) pdata 416 drivers/media/i2c/lm3560.c pdata->peak = LM3560_PEAK_3600mA; pdata 417 drivers/media/i2c/lm3560.c pdata->max_flash_timeout = LM3560_FLASH_TOUT_MAX; pdata 419 drivers/media/i2c/lm3560.c pdata->max_flash_brt[LM3560_LED0] = LM3560_FLASH_BRT_MAX; pdata 420 drivers/media/i2c/lm3560.c pdata->max_torch_brt[LM3560_LED0] = LM3560_TORCH_BRT_MAX; pdata 422 drivers/media/i2c/lm3560.c pdata->max_flash_brt[LM3560_LED1] = LM3560_FLASH_BRT_MAX; pdata 423 drivers/media/i2c/lm3560.c pdata->max_torch_brt[LM3560_LED1] = LM3560_TORCH_BRT_MAX; pdata 425 drivers/media/i2c/lm3560.c flash->pdata = pdata; pdata 68 drivers/media/i2c/lm3646.c struct lm3646_platform_data *pdata; pdata 228 drivers/media/i2c/lm3646.c LM3646_FLASH_TOUT_STEP, flash->pdata->flash_timeout); pdata 317 drivers/media/i2c/lm3646.c (flash->pdata->led1_flash_brt)); pdata 329 drivers/media/i2c/lm3646.c (flash->pdata->led1_torch_brt)); pdata 341 drivers/media/i2c/lm3646.c struct lm3646_platform_data *pdata = dev_get_platdata(&client->dev); pdata 353 drivers/media/i2c/lm3646.c if (pdata == NULL) { pdata 354 drivers/media/i2c/lm3646.c pdata = devm_kzalloc(&client->dev, pdata 357 drivers/media/i2c/lm3646.c if (pdata == NULL) pdata 360 drivers/media/i2c/lm3646.c pdata->flash_timeout = LM3646_FLASH_TOUT_MAX; pdata 361 drivers/media/i2c/lm3646.c pdata->led1_torch_brt = LM3646_LED1_TORCH_BRT_MAX; pdata 362 drivers/media/i2c/lm3646.c pdata->led1_flash_brt = LM3646_LED1_FLASH_BRT_MAX; pdata 364 drivers/media/i2c/lm3646.c flash->pdata = pdata; pdata 194 drivers/media/i2c/m5mols/m5mols.h const struct m5mols_platform_data *pdata; pdata 752 drivers/media/i2c/m5mols/m5mols_core.c const struct m5mols_platform_data *pdata = info->pdata; pdata 771 drivers/media/i2c/m5mols/m5mols_core.c gpio_set_value(pdata->gpio_reset, !pdata->reset_polarity); pdata 784 drivers/media/i2c/m5mols/m5mols_core.c gpio_set_value(pdata->gpio_reset, pdata->reset_polarity); pdata 940 drivers/media/i2c/m5mols/m5mols_core.c const struct m5mols_platform_data *pdata = client->dev.platform_data; pdata 946 drivers/media/i2c/m5mols/m5mols_core.c if (pdata == NULL) { pdata 951 drivers/media/i2c/m5mols/m5mols_core.c if (!gpio_is_valid(pdata->gpio_reset)) { pdata 965 drivers/media/i2c/m5mols/m5mols_core.c info->pdata = pdata; pdata 966 drivers/media/i2c/m5mols/m5mols_core.c info->set_power = pdata->set_power; pdata 968 drivers/media/i2c/m5mols/m5mols_core.c gpio_flags = pdata->reset_polarity pdata 970 drivers/media/i2c/m5mols/m5mols_core.c ret = devm_gpio_request_one(&client->dev, pdata->gpio_reset, gpio_flags, pdata 135 drivers/media/i2c/mt9m032.c struct mt9m032_platform_data *pdata; pdata 268 drivers/media/i2c/mt9m032.c struct mt9m032_platform_data *pdata = sensor->pdata; pdata 273 drivers/media/i2c/mt9m032.c pll.ext_clock = pdata->ext_clock; pdata 274 drivers/media/i2c/mt9m032.c pll.pix_clock = pdata->pix_clock; pdata 280 drivers/media/i2c/mt9m032.c sensor->pix_clock = pdata->pix_clock; pdata 703 drivers/media/i2c/mt9m032.c struct mt9m032_platform_data *pdata = client->dev.platform_data; pdata 709 drivers/media/i2c/mt9m032.c if (pdata == NULL) { pdata 729 drivers/media/i2c/mt9m032.c sensor->pdata = pdata; pdata 776 drivers/media/i2c/mt9m032.c V4L2_CID_PIXEL_RATE, pdata->pix_clock, pdata 777 drivers/media/i2c/mt9m032.c pdata->pix_clock, 1, pdata->pix_clock); pdata 827 drivers/media/i2c/mt9m032.c if (sensor->pdata->invert_pixclock) { pdata 124 drivers/media/i2c/mt9p031.c struct mt9p031_platform_data *pdata; pdata 231 drivers/media/i2c/mt9p031.c struct mt9p031_platform_data *pdata = mt9p031->pdata; pdata 238 drivers/media/i2c/mt9p031.c ret = clk_set_rate(mt9p031->clk, pdata->ext_freq); pdata 245 drivers/media/i2c/mt9p031.c if (pdata->ext_freq > limits.ext_clock_max) { pdata 248 drivers/media/i2c/mt9p031.c div = DIV_ROUND_UP(pdata->ext_freq, pdata->target_freq); pdata 257 drivers/media/i2c/mt9p031.c mt9p031->pll.ext_clock = pdata->ext_freq; pdata 258 drivers/media/i2c/mt9p031.c mt9p031->pll.pix_clock = pdata->target_freq; pdata 1008 drivers/media/i2c/mt9p031.c struct mt9p031_platform_data *pdata; pdata 1018 drivers/media/i2c/mt9p031.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 1019 drivers/media/i2c/mt9p031.c if (!pdata) pdata 1022 drivers/media/i2c/mt9p031.c of_property_read_u32(np, "input-clock-frequency", &pdata->ext_freq); pdata 1023 drivers/media/i2c/mt9p031.c of_property_read_u32(np, "pixel-clock-frequency", &pdata->target_freq); pdata 1027 drivers/media/i2c/mt9p031.c return pdata; pdata 1033 drivers/media/i2c/mt9p031.c struct mt9p031_platform_data *pdata = mt9p031_get_pdata(client); pdata 1039 drivers/media/i2c/mt9p031.c if (pdata == NULL) { pdata 1054 drivers/media/i2c/mt9p031.c mt9p031->pdata = pdata; pdata 1085 drivers/media/i2c/mt9p031.c V4L2_CID_PIXEL_RATE, pdata->target_freq, pdata 1086 drivers/media/i2c/mt9p031.c pdata->target_freq, 1, pdata->target_freq); pdata 286 drivers/media/i2c/mt9t001.c struct mt9t001_platform_data *pdata = client->dev.platform_data; pdata 298 drivers/media/i2c/mt9t001.c if (pdata->clk_pol) { pdata 854 drivers/media/i2c/mt9t001.c struct mt9t001_platform_data *pdata = client->dev.platform_data; pdata 859 drivers/media/i2c/mt9t001.c if (pdata == NULL) { pdata 903 drivers/media/i2c/mt9t001.c V4L2_CID_PIXEL_RATE, pdata->ext_clk, pdata->ext_clk, pdata 904 drivers/media/i2c/mt9t001.c 1, pdata->ext_clk); pdata 551 drivers/media/i2c/mt9v011.c struct mt9v011_platform_data *pdata = c->dev.platform_data; pdata 553 drivers/media/i2c/mt9v011.c core->xtal = pdata->xtal; pdata 207 drivers/media/i2c/mt9v032.c struct mt9v032_platform_data *pdata; pdata 332 drivers/media/i2c/mt9v032.c if (mt9v032->pdata && mt9v032->pdata->clk_pol) { pdata 678 drivers/media/i2c/mt9v032.c freq = mt9v032->pdata->link_freqs[mt9v032->link_freq->val]; pdata 994 drivers/media/i2c/mt9v032.c struct mt9v032_platform_data *pdata = NULL; pdata 1009 drivers/media/i2c/mt9v032.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 1010 drivers/media/i2c/mt9v032.c if (!pdata) pdata 1027 drivers/media/i2c/mt9v032.c pdata->link_freqs = link_freqs; pdata 1028 drivers/media/i2c/mt9v032.c pdata->link_def_freq = link_freqs[0]; pdata 1031 drivers/media/i2c/mt9v032.c pdata->clk_pol = !!(endpoint.bus.parallel.flags & pdata 1036 drivers/media/i2c/mt9v032.c return pdata; pdata 1042 drivers/media/i2c/mt9v032.c struct mt9v032_platform_data *pdata = mt9v032_get_pdata(client); pdata 1070 drivers/media/i2c/mt9v032.c mt9v032->pdata = pdata; pdata 1116 drivers/media/i2c/mt9v032.c if (pdata && pdata->link_freqs) { pdata 1119 drivers/media/i2c/mt9v032.c for (i = 0; pdata->link_freqs[i]; ++i) { pdata 1120 drivers/media/i2c/mt9v032.c if (pdata->link_freqs[i] == pdata->link_def_freq) pdata 1128 drivers/media/i2c/mt9v032.c pdata->link_freqs); pdata 702 drivers/media/i2c/noon010pc30.c const struct noon010pc30_platform_data *pdata pdata 707 drivers/media/i2c/noon010pc30.c if (!pdata) { pdata 746 drivers/media/i2c/noon010pc30.c if (gpio_is_valid(pdata->gpio_nreset)) { pdata 747 drivers/media/i2c/noon010pc30.c ret = devm_gpio_request_one(&client->dev, pdata->gpio_nreset, pdata 754 drivers/media/i2c/noon010pc30.c info->gpio_nreset = pdata->gpio_nreset; pdata 758 drivers/media/i2c/noon010pc30.c if (gpio_is_valid(pdata->gpio_nstby)) { pdata 759 drivers/media/i2c/noon010pc30.c ret = devm_gpio_request_one(&client->dev, pdata->gpio_nstby, pdata 766 drivers/media/i2c/noon010pc30.c info->gpio_nstby = pdata->gpio_nstby; pdata 226 drivers/media/i2c/ov2659.c const struct ov2659_platform_data *pdata; pdata 912 drivers/media/i2c/ov2659.c const struct ov2659_platform_data *pdata = ov2659->pdata; pdata 915 drivers/media/i2c/ov2659.c unsigned int desired = pdata->link_frequency; pdata 1153 drivers/media/i2c/ov2659.c val = ov2659->pdata->link_frequency / 2; pdata 1155 drivers/media/i2c/ov2659.c val = ov2659->pdata->link_frequency; pdata 1357 drivers/media/i2c/ov2659.c struct ov2659_platform_data *pdata; pdata 1372 drivers/media/i2c/ov2659.c pdata = NULL; pdata 1376 drivers/media/i2c/ov2659.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 1377 drivers/media/i2c/ov2659.c if (!pdata) pdata 1383 drivers/media/i2c/ov2659.c pdata = NULL; pdata 1387 drivers/media/i2c/ov2659.c pdata->link_frequency = bus_cfg.link_frequencies[0]; pdata 1392 drivers/media/i2c/ov2659.c return pdata; pdata 1397 drivers/media/i2c/ov2659.c const struct ov2659_platform_data *pdata = ov2659_get_pdata(client); pdata 1403 drivers/media/i2c/ov2659.c if (!pdata) { pdata 1412 drivers/media/i2c/ov2659.c ov2659->pdata = pdata; pdata 1428 drivers/media/i2c/ov2659.c pdata->link_frequency / 2, pdata 1429 drivers/media/i2c/ov2659.c pdata->link_frequency, 1, pdata 1430 drivers/media/i2c/ov2659.c pdata->link_frequency); pdata 1408 drivers/media/i2c/ov9650.c const struct ov9650_platform_data *pdata) pdata 1414 drivers/media/i2c/ov9650.c gpios[GPIO_PWDN] = pdata->gpio_pwdn; pdata 1415 drivers/media/i2c/ov9650.c gpios[GPIO_RST] = pdata->gpio_reset; pdata 1495 drivers/media/i2c/ov9650.c const struct ov9650_platform_data *pdata = client->dev.platform_data; pdata 1515 drivers/media/i2c/ov9650.c if (pdata) { pdata 1516 drivers/media/i2c/ov9650.c if (pdata->mclk_frequency == 0) { pdata 1520 drivers/media/i2c/ov9650.c ov965x->mclk_frequency = pdata->mclk_frequency; pdata 1522 drivers/media/i2c/ov9650.c ret = ov965x_configure_gpios_pdata(ov965x, pdata); pdata 1595 drivers/media/i2c/s5c73m3/s5c73m3-core.c const struct s5c73m3_platform_data *pdata = dev->platform_data; pdata 1602 drivers/media/i2c/s5c73m3/s5c73m3-core.c if (!pdata) { pdata 1607 drivers/media/i2c/s5c73m3/s5c73m3-core.c state->mclk_frequency = pdata->mclk_frequency; pdata 1608 drivers/media/i2c/s5c73m3/s5c73m3-core.c state->gpio[STBY] = pdata->gpio_stby; pdata 1609 drivers/media/i2c/s5c73m3/s5c73m3-core.c state->gpio[RST] = pdata->gpio_reset; pdata 185 drivers/media/i2c/s5k4ecgx.c struct s5k4ecgx_platform_data *pdata; pdata 869 drivers/media/i2c/s5k4ecgx.c const struct s5k4ecgx_platform_data *pdata) pdata 871 drivers/media/i2c/s5k4ecgx.c const struct s5k4ecgx_gpio *gpio = &pdata->gpio_stby; pdata 887 drivers/media/i2c/s5k4ecgx.c gpio = &pdata->gpio_reset; pdata 931 drivers/media/i2c/s5k4ecgx.c struct s5k4ecgx_platform_data *pdata = client->dev.platform_data; pdata 936 drivers/media/i2c/s5k4ecgx.c if (pdata == NULL) { pdata 964 drivers/media/i2c/s5k4ecgx.c ret = s5k4ecgx_config_gpios(priv, pdata); pdata 1505 drivers/media/i2c/s5k6aa.c const struct s5k6aa_platform_data *pdata) pdata 1515 drivers/media/i2c/s5k6aa.c gpio = &pdata->gpio_stby; pdata 1527 drivers/media/i2c/s5k6aa.c gpio = &pdata->gpio_reset; pdata 1545 drivers/media/i2c/s5k6aa.c const struct s5k6aa_platform_data *pdata = client->dev.platform_data; pdata 1550 drivers/media/i2c/s5k6aa.c if (pdata == NULL) { pdata 1555 drivers/media/i2c/s5k6aa.c if (pdata->mclk_frequency == 0) { pdata 1566 drivers/media/i2c/s5k6aa.c s5k6aa->mclk_frequency = pdata->mclk_frequency; pdata 1567 drivers/media/i2c/s5k6aa.c s5k6aa->bus_type = pdata->bus_type; pdata 1568 drivers/media/i2c/s5k6aa.c s5k6aa->mipi_lanes = pdata->nlanes; pdata 1569 drivers/media/i2c/s5k6aa.c s5k6aa->s_power = pdata->set_power; pdata 1570 drivers/media/i2c/s5k6aa.c s5k6aa->inv_hflip = pdata->horiz_flip; pdata 1571 drivers/media/i2c/s5k6aa.c s5k6aa->inv_vflip = pdata->vert_flip; pdata 1587 drivers/media/i2c/s5k6aa.c ret = s5k6aa_configure_gpios(s5k6aa, pdata); pdata 1813 drivers/media/i2c/saa7115.c struct saa7115_platform_data *pdata; pdata 1894 drivers/media/i2c/saa7115.c pdata = client->dev.platform_data; pdata 1904 drivers/media/i2c/saa7115.c if (pdata && pdata->saa7113_force_gm7113c_init) pdata 1916 drivers/media/i2c/saa7115.c if (pdata) pdata 1917 drivers/media/i2c/saa7115.c saa711x_write_platform_data(state, pdata); pdata 143 drivers/media/i2c/sr030pc30.c const struct sr030pc30_platform_data *pdata; pdata 450 drivers/media/i2c/sr030pc30.c expos = expos * info->pdata->clk_rate / (8 * 1000); pdata 571 drivers/media/i2c/sr030pc30.c expmin = EXPOS_MIN_MS * info->pdata->clk_rate / (8 * 1000); pdata 572 drivers/media/i2c/sr030pc30.c expmax = EXPOS_MAX_MS * info->pdata->clk_rate / (8 * 1000); pdata 595 drivers/media/i2c/sr030pc30.c const struct sr030pc30_platform_data *pdata = info->pdata; pdata 598 drivers/media/i2c/sr030pc30.c if (pdata == NULL) { pdata 611 drivers/media/i2c/sr030pc30.c if (pdata->set_power) { pdata 612 drivers/media/i2c/sr030pc30.c ret = pdata->set_power(&client->dev, on); pdata 653 drivers/media/i2c/sr030pc30.c const struct sr030pc30_platform_data *pdata pdata 658 drivers/media/i2c/sr030pc30.c if (pdata->set_power) { pdata 659 drivers/media/i2c/sr030pc30.c ret = pdata->set_power(&client->dev, 1); pdata 666 drivers/media/i2c/sr030pc30.c if (pdata->set_power) pdata 667 drivers/media/i2c/sr030pc30.c pdata->set_power(&client->dev, 0); pdata 684 drivers/media/i2c/sr030pc30.c const struct sr030pc30_platform_data *pdata pdata 688 drivers/media/i2c/sr030pc30.c if (!pdata) { pdata 702 drivers/media/i2c/sr030pc30.c info->pdata = client->dev.platform_data; pdata 71 drivers/media/i2c/tc358743.c struct tc358743_platform_data pdata; pdata 547 drivers/media/i2c/tc358743.c struct tc358743_platform_data *pdata = &state->pdata; pdata 550 drivers/media/i2c/tc358743.c u16 pllctl0_new = SET_PLL_PRD(pdata->pll_prd) | pdata 551 drivers/media/i2c/tc358743.c SET_PLL_FBD(pdata->pll_fbd); pdata 552 drivers/media/i2c/tc358743.c u32 hsck = (pdata->refclk_hz / pdata->pll_prd) * pdata->pll_fbd; pdata 586 drivers/media/i2c/tc358743.c struct tc358743_platform_data *pdata = &state->pdata; pdata 593 drivers/media/i2c/tc358743.c BUG_ON(!(pdata->refclk_hz == 26000000 || pdata 594 drivers/media/i2c/tc358743.c pdata->refclk_hz == 27000000 || pdata 595 drivers/media/i2c/tc358743.c pdata->refclk_hz == 42000000)); pdata 597 drivers/media/i2c/tc358743.c sys_freq = pdata->refclk_hz / 10000; pdata 602 drivers/media/i2c/tc358743.c (pdata->refclk_hz == 42000000) ? pdata 605 drivers/media/i2c/tc358743.c fh_min = pdata->refclk_hz / 100000; pdata 613 drivers/media/i2c/tc358743.c lockdet_ref = pdata->refclk_hz / 100; pdata 619 drivers/media/i2c/tc358743.c (pdata->refclk_hz == 27000000) ? pdata 670 drivers/media/i2c/tc358743.c struct tc358743_platform_data *pdata = &state->pdata; pdata 674 drivers/media/i2c/tc358743.c u32 bps_pr_lane = (pdata->refclk_hz / pdata->pll_prd) * pdata->pll_fbd; pdata 682 drivers/media/i2c/tc358743.c struct tc358743_platform_data *pdata = &state->pdata; pdata 702 drivers/media/i2c/tc358743.c i2c_wr32(sd, LINEINITCNT, pdata->lineinitcnt); pdata 703 drivers/media/i2c/tc358743.c i2c_wr32(sd, LPTXTIMECNT, pdata->lptxtimecnt); pdata 704 drivers/media/i2c/tc358743.c i2c_wr32(sd, TCLK_HEADERCNT, pdata->tclk_headercnt); pdata 705 drivers/media/i2c/tc358743.c i2c_wr32(sd, TCLK_TRAILCNT, pdata->tclk_trailcnt); pdata 706 drivers/media/i2c/tc358743.c i2c_wr32(sd, THS_HEADERCNT, pdata->ths_headercnt); pdata 707 drivers/media/i2c/tc358743.c i2c_wr32(sd, TWAKEUP, pdata->twakeup); pdata 708 drivers/media/i2c/tc358743.c i2c_wr32(sd, TCLK_POSTCNT, pdata->tclk_postcnt); pdata 709 drivers/media/i2c/tc358743.c i2c_wr32(sd, THS_TRAILCNT, pdata->ths_trailcnt); pdata 710 drivers/media/i2c/tc358743.c i2c_wr32(sd, HSTXVREGCNT, pdata->hstxvregcnt); pdata 746 drivers/media/i2c/tc358743.c struct tc358743_platform_data *pdata = &state->pdata; pdata 754 drivers/media/i2c/tc358743.c (pdata->hdmi_phy_auto_reset_tmds_detected ? pdata 756 drivers/media/i2c/tc358743.c (pdata->hdmi_phy_auto_reset_tmds_in_range ? pdata 758 drivers/media/i2c/tc358743.c (pdata->hdmi_phy_auto_reset_tmds_valid ? pdata 764 drivers/media/i2c/tc358743.c pdata->hdmi_detection_delay << 4); pdata 766 drivers/media/i2c/tc358743.c (pdata->hdmi_phy_auto_reset_hsync_out_of_range ? pdata 768 drivers/media/i2c/tc358743.c (pdata->hdmi_phy_auto_reset_vsync_out_of_range ? pdata 816 drivers/media/i2c/tc358743.c struct tc358743_platform_data *pdata = &state->pdata; pdata 831 drivers/media/i2c/tc358743.c i2c_wr16(sd, FIFOCTL, pdata->fifo_level); pdata 836 drivers/media/i2c/tc358743.c pdata->ddc5v_delay & MASK_DDC5V_MODE); pdata 840 drivers/media/i2c/tc358743.c tc358743_set_hdmi_hdcp(sd, pdata->enable_hdcp); pdata 1946 drivers/media/i2c/tc358743.c state->pdata.refclk_hz = clk_get_rate(refclk); pdata 1947 drivers/media/i2c/tc358743.c state->pdata.ddc5v_delay = DDC5V_DELAY_100_MS; pdata 1948 drivers/media/i2c/tc358743.c state->pdata.enable_hdcp = false; pdata 1950 drivers/media/i2c/tc358743.c state->pdata.fifo_level = 16; pdata 1955 drivers/media/i2c/tc358743.c switch (state->pdata.refclk_hz) { pdata 1959 drivers/media/i2c/tc358743.c state->pdata.pll_prd = state->pdata.refclk_hz / 6000000; pdata 1963 drivers/media/i2c/tc358743.c state->pdata.refclk_hz); pdata 1978 drivers/media/i2c/tc358743.c state->pdata.pll_fbd = bps_pr_lane / pdata 1979 drivers/media/i2c/tc358743.c state->pdata.refclk_hz * state->pdata.pll_prd; pdata 1988 drivers/media/i2c/tc358743.c state->pdata.lineinitcnt = 0xe80; pdata 1989 drivers/media/i2c/tc358743.c state->pdata.lptxtimecnt = 0x003; pdata 1991 drivers/media/i2c/tc358743.c state->pdata.tclk_headercnt = 0x1403; pdata 1992 drivers/media/i2c/tc358743.c state->pdata.tclk_trailcnt = 0x00; pdata 1994 drivers/media/i2c/tc358743.c state->pdata.ths_headercnt = 0x0103; pdata 1995 drivers/media/i2c/tc358743.c state->pdata.twakeup = 0x4882; pdata 1996 drivers/media/i2c/tc358743.c state->pdata.tclk_postcnt = 0x008; pdata 1997 drivers/media/i2c/tc358743.c state->pdata.ths_trailcnt = 0x2; pdata 1998 drivers/media/i2c/tc358743.c state->pdata.hstxvregcnt = 0; pdata 2034 drivers/media/i2c/tc358743.c struct tc358743_platform_data *pdata = client->dev.platform_data; pdata 2052 drivers/media/i2c/tc358743.c if (pdata) { pdata 2053 drivers/media/i2c/tc358743.c state->pdata = *pdata; pdata 223 drivers/media/i2c/tda1997x.c struct tda1997x_platform_data pdata; pdata 831 drivers/media/i2c/tda1997x.c struct tda1997x_platform_data *pdata = &state->pdata; pdata 838 drivers/media/i2c/tda1997x.c reg |= pdata->vidout_delay_pclk << PCLK_DELAY_SHIFT; pdata 839 drivers/media/i2c/tda1997x.c reg |= pdata->vidout_inv_pclk << PCLK_INV_SHIFT; pdata 874 drivers/media/i2c/tda1997x.c if ((pdata->vidout_delay_vs < 4) || (pdata->vidout_delay_hs < 4)) pdata 879 drivers/media/i2c/tda1997x.c reg = pdata->vidout_delay_de << DE_FREF_DELAY_SHIFT | pdata 880 drivers/media/i2c/tda1997x.c pdata->vidout_inv_de << DE_FREF_INV_SHIFT | pdata 881 drivers/media/i2c/tda1997x.c pdata->vidout_sel_de << DE_FREF_SEL_SHIFT; pdata 886 drivers/media/i2c/tda1997x.c reg = pdata->vidout_delay_hs << HS_HREF_DELAY_SHIFT | pdata 887 drivers/media/i2c/tda1997x.c pdata->vidout_inv_hs << HS_HREF_INV_SHIFT | pdata 888 drivers/media/i2c/tda1997x.c pdata->vidout_sel_hs << HS_HREF_SEL_SHIFT; pdata 895 drivers/media/i2c/tda1997x.c reg = pdata->vidout_delay_vs << VS_VREF_DELAY_SHIFT | pdata 896 drivers/media/i2c/tda1997x.c pdata->vidout_inv_vs << VS_VREF_INV_SHIFT | pdata 897 drivers/media/i2c/tda1997x.c pdata->vidout_sel_vs << VS_VREF_SEL_SHIFT; pdata 910 drivers/media/i2c/tda1997x.c struct tda1997x_platform_data *pdata = &state->pdata; pdata 914 drivers/media/i2c/tda1997x.c if (!pdata->audout_format) pdata 922 drivers/media/i2c/tda1997x.c switch (pdata->audout_format) { pdata 943 drivers/media/i2c/tda1997x.c if (pdata->audout_layout == 1) { pdata 946 drivers/media/i2c/tda1997x.c if (pdata->audout_format == AUDFMT_TYPE_SPDIF) pdata 954 drivers/media/i2c/tda1997x.c if (pdata->audout_width == 32) pdata 960 drivers/media/i2c/tda1997x.c if (pdata->audio_auto_mute) pdata 963 drivers/media/i2c/tda1997x.c if (pdata->audout_invert_clk) pdata 968 drivers/media/i2c/tda1997x.c reg = (pdata->audout_layout) ? AUDIO_LAYOUT_LAYOUT1 : 0; pdata 969 drivers/media/i2c/tda1997x.c if (!pdata->audout_layoutauto) pdata 1006 drivers/media/i2c/tda1997x.c if (pdata->audout_format == AUDFMT_TYPE_I2S) pdata 2074 drivers/media/i2c/tda1997x.c struct tda1997x_platform_data *pdata = &state->pdata; pdata 2194 drivers/media/i2c/tda1997x.c pdata->vidout_port_cfg[i]); pdata 2195 drivers/media/i2c/tda1997x.c io_write(sd, REG_VP35_32_CTRL + i, pdata->vidout_port_cfg[i]); pdata 2202 drivers/media/i2c/tda1997x.c switch (pdata->audout_mclk_fs) { pdata 2271 drivers/media/i2c/tda1997x.c struct tda1997x_platform_data *pdata = &state->pdata; pdata 2287 drivers/media/i2c/tda1997x.c pdata->vidout_sel_hs = HS_HREF_SEL_HREF_VHREF; pdata 2288 drivers/media/i2c/tda1997x.c pdata->vidout_sel_vs = VS_VREF_SEL_VREF_HDMI; pdata 2289 drivers/media/i2c/tda1997x.c pdata->vidout_sel_de = DE_FREF_SEL_DE_VHREF; pdata 2302 drivers/media/i2c/tda1997x.c pdata->vidout_bus_type = bus_cfg.bus_type; pdata 2307 drivers/media/i2c/tda1997x.c pdata->vidout_inv_hs = 1; pdata 2309 drivers/media/i2c/tda1997x.c pdata->vidout_inv_vs = 1; pdata 2311 drivers/media/i2c/tda1997x.c pdata->vidout_inv_de = 1; pdata 2312 drivers/media/i2c/tda1997x.c pdata->vidout_bus_width = bus_cfg.bus.parallel.bus_width; pdata 2325 drivers/media/i2c/tda1997x.c pdata->vidout_port_cfg[reg] = val; pdata 2333 drivers/media/i2c/tda1997x.c pdata->audout_layoutauto = true; pdata 2335 drivers/media/i2c/tda1997x.c pdata->audout_format = AUDFMT_TYPE_DISABLED; pdata 2338 drivers/media/i2c/tda1997x.c pdata->audout_format = AUDFMT_TYPE_I2S; pdata 2340 drivers/media/i2c/tda1997x.c pdata->audout_format = AUDFMT_TYPE_SPDIF; pdata 2355 drivers/media/i2c/tda1997x.c pdata->audout_layout = v; pdata 2367 drivers/media/i2c/tda1997x.c pdata->audout_width = v; pdata 2383 drivers/media/i2c/tda1997x.c pdata->audout_mclk_fs = v; pdata 2508 drivers/media/i2c/tda1997x.c struct tda1997x_platform_data *pdata; pdata 2526 drivers/media/i2c/tda1997x.c pdata = &state->pdata; pdata 2539 drivers/media/i2c/tda1997x.c struct tda1997x_platform_data *pdata = pdata 2543 drivers/media/i2c/tda1997x.c state->pdata = *pdata; pdata 2585 drivers/media/i2c/tda1997x.c switch (pdata->vidout_bus_type) { pdata 2587 drivers/media/i2c/tda1997x.c switch (pdata->vidout_bus_width) { pdata 2598 drivers/media/i2c/tda1997x.c switch (pdata->vidout_bus_width) { pdata 2613 drivers/media/i2c/tda1997x.c switch (pdata->vidout_bus_type) { pdata 2615 drivers/media/i2c/tda1997x.c switch (pdata->vidout_bus_width) { pdata 2630 drivers/media/i2c/tda1997x.c switch (pdata->vidout_bus_width) { pdata 2681 drivers/media/i2c/tda1997x.c pdata->vidout_bus_width, pdata 2682 drivers/media/i2c/tda1997x.c (pdata->vidout_bus_type == V4L2_MBUS_PARALLEL) ? pdata 2685 drivers/media/i2c/tda1997x.c if (pdata->audout_format) { pdata 2687 drivers/media/i2c/tda1997x.c pdata->audout_layout ? 2 : 8, pdata 2688 drivers/media/i2c/tda1997x.c audfmt_names[pdata->audout_format], pdata 2689 drivers/media/i2c/tda1997x.c pdata->audout_layout, pdata 2690 drivers/media/i2c/tda1997x.c pdata->audout_mclk_fs); pdata 2744 drivers/media/i2c/tda1997x.c if (pdata->audout_format) { pdata 2747 drivers/media/i2c/tda1997x.c if (pdata->audout_width == 32) pdata 2794 drivers/media/i2c/tda1997x.c struct tda1997x_platform_data *pdata = &state->pdata; pdata 2796 drivers/media/i2c/tda1997x.c if (pdata->audout_format) { pdata 37 drivers/media/i2c/ths7303.c const struct ths7303_platform_data *pdata; pdata 87 drivers/media/i2c/ths7303.c const struct ths7303_platform_data *pdata = state->pdata; pdata 114 drivers/media/i2c/ths7303.c val |= (pdata->ch_1 & 0x27); pdata 121 drivers/media/i2c/ths7303.c val |= (pdata->ch_2 & 0x27); pdata 128 drivers/media/i2c/ths7303.c val |= (pdata->ch_3 & 0x27); pdata 328 drivers/media/i2c/ths7303.c struct ths7303_platform_data *pdata = client->dev.platform_data; pdata 332 drivers/media/i2c/ths7303.c if (pdata == NULL) { pdata 348 drivers/media/i2c/ths7303.c state->pdata = pdata; pdata 101 drivers/media/i2c/tvp514x.c const struct tvp514x_platform_data *pdata; pdata 982 drivers/media/i2c/tvp514x.c struct tvp514x_platform_data *pdata = NULL; pdata 997 drivers/media/i2c/tvp514x.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 998 drivers/media/i2c/tvp514x.c if (!pdata) pdata 1004 drivers/media/i2c/tvp514x.c pdata->hs_polarity = 1; pdata 1007 drivers/media/i2c/tvp514x.c pdata->vs_polarity = 1; pdata 1010 drivers/media/i2c/tvp514x.c pdata->clk_polarity = 1; pdata 1014 drivers/media/i2c/tvp514x.c return pdata; pdata 1028 drivers/media/i2c/tvp514x.c struct tvp514x_platform_data *pdata = tvp514x_get_pdata(client); pdata 1033 drivers/media/i2c/tvp514x.c if (pdata == NULL) { pdata 1055 drivers/media/i2c/tvp514x.c decoder->pdata = pdata; pdata 1063 drivers/media/i2c/tvp514x.c (decoder->pdata->clk_polarity << 1); pdata 1065 drivers/media/i2c/tvp514x.c ((decoder->pdata->hs_polarity << 2) | pdata 1066 drivers/media/i2c/tvp514x.c (decoder->pdata->vs_polarity << 3)); pdata 409 drivers/media/i2c/tvp7002.c const struct tvp7002_config *pdata; pdata 884 drivers/media/i2c/tvp7002.c struct tvp7002_config *pdata = NULL; pdata 898 drivers/media/i2c/tvp7002.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 899 drivers/media/i2c/tvp7002.c if (!pdata) pdata 905 drivers/media/i2c/tvp7002.c pdata->hs_polarity = 1; pdata 908 drivers/media/i2c/tvp7002.c pdata->vs_polarity = 1; pdata 911 drivers/media/i2c/tvp7002.c pdata->clk_polarity = 1; pdata 914 drivers/media/i2c/tvp7002.c pdata->fid_polarity = 1; pdata 917 drivers/media/i2c/tvp7002.c pdata->sog_polarity = 1; pdata 921 drivers/media/i2c/tvp7002.c return pdata; pdata 935 drivers/media/i2c/tvp7002.c struct tvp7002_config *pdata = tvp7002_get_pdata(c); pdata 944 drivers/media/i2c/tvp7002.c if (pdata == NULL) { pdata 960 drivers/media/i2c/tvp7002.c device->pdata = pdata; pdata 984 drivers/media/i2c/tvp7002.c polarity_a = 0x20 | device->pdata->hs_polarity << 5 pdata 985 drivers/media/i2c/tvp7002.c | device->pdata->vs_polarity << 2; pdata 990 drivers/media/i2c/tvp7002.c polarity_b = 0x01 | device->pdata->fid_polarity << 2 pdata 991 drivers/media/i2c/tvp7002.c | device->pdata->sog_polarity << 1 pdata 992 drivers/media/i2c/tvp7002.c | device->pdata->clk_polarity; pdata 277 drivers/media/pci/ivtv/ivtv-i2c.c struct cx25840_platform_data pdata; pdata 281 drivers/media/pci/ivtv/ivtv-i2c.c .platform_data = &pdata, pdata 284 drivers/media/pci/ivtv/ivtv-i2c.c memset(&pdata, 0, sizeof(pdata)); pdata 285 drivers/media/pci/ivtv/ivtv-i2c.c pdata.pvr150_workaround = itv->pvr150_workaround; pdata 2418 drivers/media/platform/am437x/am437x-vpfe.c struct vpfe_config *pdata; pdata 2430 drivers/media/platform/am437x/am437x-vpfe.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 2431 drivers/media/platform/am437x/am437x-vpfe.c if (!pdata) pdata 2442 drivers/media/platform/am437x/am437x-vpfe.c sdinfo = &pdata->sub_devs[i]; pdata 2493 drivers/media/platform/am437x/am437x-vpfe.c pdata->asd[i] = v4l2_async_notifier_add_fwnode_subdev( pdata 2497 drivers/media/platform/am437x/am437x-vpfe.c if (IS_ERR(pdata->asd[i])) pdata 2502 drivers/media/platform/am437x/am437x-vpfe.c return pdata; pdata 114 drivers/media/platform/atmel/atmel-isi.c struct isi_platform_data pdata; pdata 389 drivers/media/platform/atmel/atmel-isi.c cfg1 |= isi->pdata.frate | ISI_CFG1_DISCR; pdata 763 drivers/media/platform/atmel/atmel-isi.c if (isi->pdata.hsync_act_low) pdata 765 drivers/media/platform/atmel/atmel-isi.c if (isi->pdata.vsync_act_low) pdata 767 drivers/media/platform/atmel/atmel-isi.c if (isi->pdata.pclk_act_falling) pdata 769 drivers/media/platform/atmel/atmel-isi.c if (isi->pdata.has_emb_sync) pdata 771 drivers/media/platform/atmel/atmel-isi.c if (isi->pdata.full_mode) pdata 794 drivers/media/platform/atmel/atmel-isi.c isi->pdata.full_mode = 1; pdata 795 drivers/media/platform/atmel/atmel-isi.c isi->pdata.frate = ISI_CFG1_FRATE_CAPTURE_ALL; pdata 812 drivers/media/platform/atmel/atmel-isi.c isi->pdata.data_width_flags = ISI_DATAWIDTH_8; pdata 815 drivers/media/platform/atmel/atmel-isi.c isi->pdata.data_width_flags = pdata 825 drivers/media/platform/atmel/atmel-isi.c isi->pdata.hsync_act_low = true; pdata 827 drivers/media/platform/atmel/atmel-isi.c isi->pdata.vsync_act_low = true; pdata 829 drivers/media/platform/atmel/atmel-isi.c isi->pdata.pclk_act_falling = true; pdata 832 drivers/media/platform/atmel/atmel-isi.c isi->pdata.has_emb_sync = true; pdata 1247 drivers/media/platform/atmel/atmel-isi.c if (isi->pdata.data_width_flags & ISI_DATAWIDTH_8) pdata 1249 drivers/media/platform/atmel/atmel-isi.c if (isi->pdata.data_width_flags & ISI_DATAWIDTH_10) pdata 2943 drivers/media/platform/coda/coda-common.c struct coda_platform_data *pdata = pdev->dev.platform_data; pdata 3008 drivers/media/platform/coda/coda-common.c if (!pool && pdata) pdata 3009 drivers/media/platform/coda/coda-common.c pool = gen_pool_get(pdata->iram_dev, NULL); pdata 132 drivers/media/platform/davinci/vpbe_osd.c struct osd_platform_data *pdata; pdata 134 drivers/media/platform/davinci/vpbe_osd.c pdata = (struct osd_platform_data *)sd->dev->platform_data; pdata 135 drivers/media/platform/davinci/vpbe_osd.c if (pdata != NULL && pdata->field_inv_wa_enable) { pdata 55 drivers/media/platform/davinci/vpbe_venc.c struct venc_platform_data *pdata; pdata 219 drivers/media/platform/davinci/vpbe_venc.c struct venc_platform_data *pdata = venc->pdata; pdata 225 drivers/media/platform/davinci/vpbe_venc.c if (pdata->setup_clock(VPBE_ENC_STD, V4L2_STD_525_60) < 0) pdata 271 drivers/media/platform/davinci/vpbe_venc.c if (venc->pdata->setup_clock(VPBE_ENC_STD, V4L2_STD_625_50) < 0) pdata 318 drivers/media/platform/davinci/vpbe_venc.c struct venc_platform_data *pdata = venc->pdata; pdata 326 drivers/media/platform/davinci/vpbe_venc.c if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 27000000) < 0) pdata 366 drivers/media/platform/davinci/vpbe_venc.c struct venc_platform_data *pdata = venc->pdata; pdata 374 drivers/media/platform/davinci/vpbe_venc.c if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 27000000) < 0) pdata 413 drivers/media/platform/davinci/vpbe_venc.c struct venc_platform_data *pdata = venc->pdata; pdata 415 drivers/media/platform/davinci/vpbe_venc.c if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 74250000) < 0) pdata 442 drivers/media/platform/davinci/vpbe_venc.c struct venc_platform_data *pdata = venc->pdata; pdata 444 drivers/media/platform/davinci/vpbe_venc.c if (pdata->setup_clock(VPBE_ENC_DV_TIMINGS, 74250000) < 0) pdata 643 drivers/media/platform/davinci/vpbe_venc.c venc->pdata = pdev->dev.platform_data; pdata 1506 drivers/media/platform/davinci/vpif_capture.c struct vpif_capture_config *pdata; pdata 1522 drivers/media/platform/davinci/vpif_capture.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1523 drivers/media/platform/davinci/vpif_capture.c if (!pdata) pdata 1525 drivers/media/platform/davinci/vpif_capture.c pdata->subdev_info = pdata 1528 drivers/media/platform/davinci/vpif_capture.c sizeof(*pdata->subdev_info), pdata 1531 drivers/media/platform/davinci/vpif_capture.c if (!pdata->subdev_info) pdata 1551 drivers/media/platform/davinci/vpif_capture.c sdinfo = &pdata->subdev_info[i]; pdata 1552 drivers/media/platform/davinci/vpif_capture.c chan = &pdata->chan_config[i]; pdata 1587 drivers/media/platform/davinci/vpif_capture.c pdata->asd[i] = v4l2_async_notifier_add_fwnode_subdev( pdata 1590 drivers/media/platform/davinci/vpif_capture.c if (IS_ERR(pdata->asd[i])) pdata 1598 drivers/media/platform/davinci/vpif_capture.c pdata->asd_sizes[0] = i; pdata 1599 drivers/media/platform/davinci/vpif_capture.c pdata->subdev_count = i; pdata 1600 drivers/media/platform/davinci/vpif_capture.c pdata->card_name = "DA850/OMAP-L138 Video Capture"; pdata 1602 drivers/media/platform/davinci/vpif_capture.c return pdata; pdata 422 drivers/media/platform/exynos4-is/fimc-core.h struct s5p_platform_fimc *pdata; pdata 387 drivers/media/platform/exynos4-is/media-dev.c struct fimc_source_info *pd = &fmd->sensor[index].pdata; pdata 935 drivers/media/platform/exynos4-is/media-dev.c struct fimc_source_info *pdata; pdata 945 drivers/media/platform/exynos4-is/media-dev.c pdata = v4l2_get_subdev_hostdata(sensor); pdata 946 drivers/media/platform/exynos4-is/media-dev.c if (!pdata) pdata 951 drivers/media/platform/exynos4-is/media-dev.c switch (pdata->sensor_bus_type) { pdata 953 drivers/media/platform/exynos4-is/media-dev.c if (WARN(pdata->mux_id >= CSIS_MAX_ENTITIES, pdata 954 drivers/media/platform/exynos4-is/media-dev.c "Wrong CSI channel id: %d\n", pdata->mux_id)) pdata 957 drivers/media/platform/exynos4-is/media-dev.c csis = fmd->csis[pdata->mux_id].sd; pdata 974 drivers/media/platform/exynos4-is/media-dev.c csi_sensors[pdata->mux_id] = sensor; pdata 984 drivers/media/platform/exynos4-is/media-dev.c pdata->sensor_bus_type); pdata 1385 drivers/media/platform/exynos4-is/media-dev.c v4l2_set_subdev_hostdata(subdev, &si->pdata); pdata 1387 drivers/media/platform/exynos4-is/media-dev.c if (si->pdata.fimc_bus_type == FIMC_BUS_TYPE_ISP_WRITEBACK) pdata 87 drivers/media/platform/exynos4-is/media-dev.h struct fimc_source_info pdata; pdata 159 drivers/media/platform/exynos4-is/media-dev.h return container_of(si, struct fimc_sensor_info, pdata); pdata 104 drivers/media/platform/marvell-ccic/mmp-driver.c struct mmp_camera_platform_data *pdata = cam->pdev->dev.platform_data; pdata 136 drivers/media/platform/marvell-ccic/mmp-driver.c switch (pdata->dphy3_algo) { pdata 141 drivers/media/platform/marvell-ccic/mmp-driver.c pdata->dphy[0] = pdata 142 drivers/media/platform/marvell-ccic/mmp-driver.c (((1 + (pdata->lane_clk * 80) / 1000) & 0xff) << 8) pdata 143 drivers/media/platform/marvell-ccic/mmp-driver.c | (1 + pdata->lane_clk * 35 / 1000); pdata 149 drivers/media/platform/marvell-ccic/mmp-driver.c pdata->dphy[0] = pdata 150 drivers/media/platform/marvell-ccic/mmp-driver.c (((2 + (pdata->lane_clk * 110) / 1000) & 0xff) << 8) pdata 151 drivers/media/platform/marvell-ccic/mmp-driver.c | (1 + pdata->lane_clk * 35 / 1000); pdata 181 drivers/media/platform/marvell-ccic/mmp-driver.c pdata->dphy[2] = pdata 186 drivers/media/platform/marvell-ccic/mmp-driver.c pdata->dphy[0], pdata->dphy[1], pdata->dphy[2]); pdata 224 drivers/media/platform/marvell-ccic/mmp-driver.c struct mmp_camera_platform_data *pdata; pdata 236 drivers/media/platform/marvell-ccic/mmp-driver.c pdata = pdev->dev.platform_data; pdata 237 drivers/media/platform/marvell-ccic/mmp-driver.c if (pdata) { pdata 238 drivers/media/platform/marvell-ccic/mmp-driver.c mcam->mclk_src = pdata->mclk_src; pdata 239 drivers/media/platform/marvell-ccic/mmp-driver.c mcam->mclk_div = pdata->mclk_div; pdata 240 drivers/media/platform/marvell-ccic/mmp-driver.c mcam->bus_type = pdata->bus_type; pdata 241 drivers/media/platform/marvell-ccic/mmp-driver.c mcam->dphy = pdata->dphy; pdata 242 drivers/media/platform/marvell-ccic/mmp-driver.c mcam->lane = pdata->lane; pdata 710 drivers/media/platform/pxa_camera.c struct pxacamera_platform_data *pdata; pdata 2389 drivers/media/platform/pxa_camera.c pcdev->pdata = pdev->dev.platform_data; pdata 2390 drivers/media/platform/pxa_camera.c if (pcdev->pdata) { pdata 2391 drivers/media/platform/pxa_camera.c pcdev->platform_flags = pcdev->pdata->flags; pdata 2392 drivers/media/platform/pxa_camera.c pcdev->mclk = pcdev->pdata->mclk_10khz * 10000; pdata 2395 drivers/media/platform/pxa_camera.c pcdev->pdata->sensor_i2c_adapter_id; pdata 2396 drivers/media/platform/pxa_camera.c pcdev->asd.match.i2c.address = pcdev->pdata->sensor_i2c_address; pdata 458 drivers/media/platform/qcom/venus/hfi.c int hfi_session_set_property(struct venus_inst *inst, u32 ptype, void *pdata) pdata 465 drivers/media/platform/qcom/venus/hfi.c return ops->session_set_property(inst, ptype, pdata); pdata 134 drivers/media/platform/qcom/venus/hfi.h void *pdata); pdata 171 drivers/media/platform/qcom/venus/hfi.h int hfi_session_set_property(struct venus_inst *inst, u32 ptype, void *pdata); pdata 401 drivers/media/platform/qcom/venus/hfi_cmds.c void *cookie, u32 ptype, void *pdata) pdata 406 drivers/media/platform/qcom/venus/hfi_cmds.c if (!pkt || !cookie || !pdata) pdata 419 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_framerate *in = pdata, *frate = prop_data; pdata 427 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_uncompressed_format_select *in = pdata; pdata 436 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_framesize *in = pdata, *fsize = prop_data; pdata 445 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 452 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_buffer_count_actual *in = pdata, *count = prop_data; pdata 460 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_buffer_size_actual *in = pdata, *sz = prop_data; pdata 468 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_buffer_display_hold_count_actual *in = pdata; pdata 477 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_nal_stream_format_select *in = pdata; pdata 485 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 501 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable_picture *in = pdata, *en = prop_data; pdata 508 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 515 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata; pdata 523 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_multi_stream *in = pdata, *multi = prop_data; pdata 533 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_display_picture_buffer_count *in = pdata; pdata 542 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 559 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 566 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 573 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 580 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 594 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_bitrate *in = pdata, *brate = prop_data; pdata 602 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_bitrate *in = pdata, *hfi = prop_data; pdata 610 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_profile_level *in = pdata, *pl = prop_data; pdata 626 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_h264_entropy_control *in = pdata, *hfi = prop_data; pdata 635 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 654 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_mpeg4_time_resolution *in = pdata, *res = prop_data; pdata 661 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_mpeg4_header_extension *in = pdata, *ext = prop_data; pdata 668 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_h264_db_control *in = pdata, *db = prop_data; pdata 687 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_quantization *in = pdata, *quant = prop_data; pdata 697 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_quantization_range *in = pdata, *range = prop_data; pdata 723 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_vc1e_perf_cfg_type *in = pdata, *perf = prop_data; pdata 737 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 744 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_intra_period *in = pdata, *intra = prop_data; pdata 752 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_idr_period *in = pdata, *idr = prop_data; pdata 760 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 767 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_operations_type *in = pdata, *ops = prop_data; pdata 796 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_intra_refresh *in = pdata, *intra = prop_data; pdata 818 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_multi_slice_control *in = pdata, *multi = prop_data; pdata 837 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 844 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_h264_vui_timing_info *in = pdata, *vui = prop_data; pdata 853 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 860 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 867 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_buffer_alloc_mode *in = pdata, *mode = prop_data; pdata 875 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 882 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 889 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 897 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 904 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_mvc_buffer_layout_descp_type *in = pdata; pdata 923 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_ltr_mode *in = pdata, *ltr = prop_data; pdata 942 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_ltr_use *in = pdata, *ltr_use = prop_data; pdata 951 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_ltr_mark *in = pdata, *ltr_mark = prop_data; pdata 958 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 965 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 972 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 979 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_initial_quantization *in = pdata, *quant = prop_data; pdata 989 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_vpe_color_space_conversion *in = pdata; pdata 1000 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 1007 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 1014 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 1021 drivers/media/platform/qcom/venus/hfi_cmds.c u32 *in = pdata; pdata 1028 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_enable *in = pdata, *en = prop_data; pdata 1035 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_hybrid_hierp *in = pdata, *hierp = prop_data; pdata 1097 drivers/media/platform/qcom/venus/hfi_cmds.c void *cookie, u32 ptype, void *pdata) pdata 1102 drivers/media/platform/qcom/venus/hfi_cmds.c if (!pkt || !cookie || !pdata) pdata 1120 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_multi_stream *in = pdata; pdata 1129 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_intra_refresh *in = pdata; pdata 1153 drivers/media/platform/qcom/venus/hfi_cmds.c ret = pkt_session_set_property_1x(pkt, cookie, ptype, pdata); pdata 1162 drivers/media/platform/qcom/venus/hfi_cmds.c void *cookie, u32 ptype, void *pdata) pdata 1166 drivers/media/platform/qcom/venus/hfi_cmds.c if (!pkt || !cookie || !pdata) pdata 1184 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_buffer_count_actual *in = pdata; pdata 1194 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_video_work_mode *in = pdata, *wm = prop_data; pdata 1201 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_videocores_usage_type *in = pdata, *cu = prop_data; pdata 1213 drivers/media/platform/qcom/venus/hfi_cmds.c return pkt_session_set_property_3xx(pkt, cookie, ptype, pdata); pdata 1229 drivers/media/platform/qcom/venus/hfi_cmds.c void *cookie, u32 ptype, void *pdata) pdata 1232 drivers/media/platform/qcom/venus/hfi_cmds.c return pkt_session_set_property_1x(pkt, cookie, ptype, pdata); pdata 1235 drivers/media/platform/qcom/venus/hfi_cmds.c return pkt_session_set_property_3xx(pkt, cookie, ptype, pdata); pdata 1237 drivers/media/platform/qcom/venus/hfi_cmds.c return pkt_session_set_property_4xx(pkt, cookie, ptype, pdata); pdata 293 drivers/media/platform/qcom/venus/hfi_cmds.h void *cookie, u32 ptype, void *pdata); pdata 1334 drivers/media/platform/qcom/venus/hfi_venus.c void *pdata) pdata 1343 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_set_property(pkt, inst, ptype, pdata); pdata 1495 drivers/media/platform/renesas-ceu.c const struct ceu_platform_data *pdata) pdata 1502 drivers/media/platform/renesas-ceu.c if (pdata->num_subdevs == 0) pdata 1505 drivers/media/platform/renesas-ceu.c ret = ceu_init_async_subdevs(ceudev, pdata->num_subdevs); pdata 1509 drivers/media/platform/renesas-ceu.c for (i = 0; i < pdata->num_subdevs; i++) { pdata 1512 drivers/media/platform/renesas-ceu.c async_sd = &pdata->subdevs[i]; pdata 1530 drivers/media/platform/renesas-ceu.c return pdata->num_subdevs; pdata 189 drivers/media/platform/s3c-camif/camif-core.c struct s3c_camif_sensor_info *sensor = &camif->pdata.sensor; pdata 400 drivers/media/platform/s3c-camif/camif-core.c struct s3c_camif_plat_data *pdata = dev->platform_data; pdata 415 drivers/media/platform/s3c-camif/camif-core.c if (!pdata || !pdata->gpio_get || !pdata->gpio_put) { pdata 420 drivers/media/platform/s3c-camif/camif-core.c camif->pdata = *pdata; pdata 434 drivers/media/platform/s3c-camif/camif-core.c ret = pdata->gpio_get(); pdata 448 drivers/media/platform/s3c-camif/camif-core.c camif->pdata.sensor.clock_frequency); pdata 509 drivers/media/platform/s3c-camif/camif-core.c pdata->gpio_put(); pdata 516 drivers/media/platform/s3c-camif/camif-core.c struct s3c_camif_plat_data *pdata = &camif->pdata; pdata 525 drivers/media/platform/s3c-camif/camif-core.c pdata->gpio_put(); pdata 292 drivers/media/platform/s3c-camif/camif-core.h struct s3c_camif_plat_data pdata; pdata 169 drivers/media/platform/s3c-camif/camif-regs.c unsigned int flags = camif->pdata.sensor.flags; pdata 76 drivers/media/platform/sh_vou.c struct sh_vou_pdata *pdata; pdata 838 drivers/media/platform/sh_vou.c sh_vou_ntsc_mode(vou_dev->pdata->bus_fmt) << 29, 7 << 29); pdata 1086 drivers/media/platform/sh_vou.c struct sh_vou_pdata *pdata = vou_dev->pdata; pdata 1087 drivers/media/platform/sh_vou.c u32 voucr = sh_vou_ntsc_mode(pdata->bus_fmt) << 29; pdata 1103 drivers/media/platform/sh_vou.c if (pdata->flags & SH_VOU_PCLK_FALLING) pdata 1105 drivers/media/platform/sh_vou.c if (pdata->flags & SH_VOU_HSYNC_LOW) pdata 1107 drivers/media/platform/sh_vou.c if (pdata->flags & SH_VOU_VSYNC_LOW) pdata 1242 drivers/media/platform/sh_vou.c vou_dev->pdata = vou_pdata; pdata 398 drivers/media/platform/vimc/vimc-capture.c struct vimc_platform_data *pdata = comp->platform_data; pdata 419 drivers/media/platform/vimc/vimc-capture.c vcap->vdev.entity.name = pdata->entity_name; pdata 444 drivers/media/platform/vimc/vimc-capture.c pdata->entity_name, ret); pdata 477 drivers/media/platform/vimc/vimc-capture.c strscpy(vdev->name, pdata->entity_name, sizeof(vdev->name)); pdata 243 drivers/media/platform/vimc/vimc-core.c struct vimc_platform_data pdata; pdata 250 drivers/media/platform/vimc/vimc-core.c strscpy(pdata.entity_name, vimc->pipe_cfg->ents[i].name, pdata 251 drivers/media/platform/vimc/vimc-core.c sizeof(pdata.entity_name)); pdata 256 drivers/media/platform/vimc/vimc-core.c &pdata, pdata 257 drivers/media/platform/vimc/vimc-core.c sizeof(pdata)); pdata 509 drivers/media/platform/vimc/vimc-debayer.c struct vimc_platform_data *pdata = comp->platform_data; pdata 520 drivers/media/platform/vimc/vimc-debayer.c pdata->entity_name, pdata 369 drivers/media/platform/vimc/vimc-scaler.c struct vimc_platform_data *pdata = comp->platform_data; pdata 380 drivers/media/platform/vimc/vimc-scaler.c pdata->entity_name, pdata 334 drivers/media/platform/vimc/vimc-sensor.c struct vimc_platform_data *pdata = comp->platform_data; pdata 367 drivers/media/platform/vimc/vimc-sensor.c pdata->entity_name, pdata 22 drivers/media/radio/radio-timb.c struct timb_radio_platform_data pdata; pdata 89 drivers/media/radio/radio-timb.c struct timb_radio_platform_data *pdata = pdev->dev.platform_data; pdata 93 drivers/media/radio/radio-timb.c if (!pdata) { pdata 105 drivers/media/radio/radio-timb.c tr->pdata = *pdata; pdata 125 drivers/media/radio/radio-timb.c i2c_get_adapter(pdata->i2c_adapter), pdata->tuner, NULL); pdata 127 drivers/media/radio/radio-timb.c i2c_get_adapter(pdata->i2c_adapter), pdata->dsp, NULL); pdata 548 drivers/media/radio/radio-wl1273.c if (core->pdata->disable) { pdata 549 drivers/media/radio/radio-wl1273.c core->pdata->disable(); pdata 559 drivers/media/radio/radio-wl1273.c struct wl1273_fm_platform_data *pdata = core->pdata; pdata 563 drivers/media/radio/radio-wl1273.c if (pdata->enable && core->mode == WL1273_MODE_OFF) { pdata 566 drivers/media/radio/radio-wl1273.c pdata->enable(); pdata 656 drivers/media/radio/radio-wl1273.c if (pdata->disable) pdata 657 drivers/media/radio/radio-wl1273.c pdata->disable(); pdata 1988 drivers/media/radio/radio-wl1273.c core->pdata->free_resources(); pdata 2045 drivers/media/radio/radio-wl1273.c if (radio->core->pdata->request_resources) { pdata 2046 drivers/media/radio/radio-wl1273.c r = radio->core->pdata->request_resources(radio->core->client); pdata 2143 drivers/media/radio/radio-wl1273.c radio->core->pdata->free_resources(); pdata 138 drivers/media/radio/si4713/radio-platform-si4713.c struct radio_si4713_platform_data *pdata = pdev->dev.platform_data; pdata 143 drivers/media/radio/si4713/radio-platform-si4713.c if (!pdata) { pdata 163 drivers/media/radio/si4713/radio-platform-si4713.c sd = i2c_get_clientdata(pdata->subdev); pdata 1434 drivers/media/radio/si4713/si4713.c struct si4713_platform_data *pdata = client->dev.platform_data; pdata 1593 drivers/media/radio/si4713/si4713.c if (!np && (!pdata || !pdata->is_platform_device)) pdata 513 drivers/media/tuners/fc2580.c struct fc2580_platform_data *pdata = client->dev.platform_data; pdata 514 drivers/media/tuners/fc2580.c struct dvb_frontend *fe = pdata->dvb_frontend; pdata 528 drivers/media/tuners/fc2580.c if (pdata->clk) pdata 529 drivers/media/tuners/fc2580.c dev->clk = pdata->clk; pdata 579 drivers/media/tuners/fc2580.c pdata->get_v4l2_subdev = fc2580_get_v4l2_subdev; pdata 380 drivers/media/tuners/it913x.c struct it913x_platform_data *pdata = pdev->dev.platform_data; pdata 381 drivers/media/tuners/it913x.c struct dvb_frontend *fe = pdata->fe; pdata 395 drivers/media/tuners/it913x.c dev->regmap = pdata->regmap; pdata 396 drivers/media/tuners/it913x.c dev->fe = pdata->fe; pdata 398 drivers/media/tuners/it913x.c dev->role = pdata->role; pdata 448 drivers/media/tuners/mt2060.c struct mt2060_platform_data *pdata = client->dev.platform_data; pdata 456 drivers/media/tuners/mt2060.c if (!pdata) { pdata 468 drivers/media/tuners/mt2060.c fe = pdata->dvb_frontend; pdata 470 drivers/media/tuners/mt2060.c dev->config.clock_out = pdata->clock_out; pdata 473 drivers/media/tuners/mt2060.c dev->if1_freq = pdata->if1 ? pdata->if1 : 1220; pdata 475 drivers/media/tuners/mt2060.c dev->i2c_max_regs = pdata->i2c_write_max ? pdata->i2c_write_max - 1 : ~0; pdata 174 drivers/media/tuners/tua9001.c struct tua9001_platform_data *pdata = client->dev.platform_data; pdata 175 drivers/media/tuners/tua9001.c struct dvb_frontend *fe = pdata->dvb_frontend; pdata 188 drivers/media/tuners/tua9001.c dev->fe = pdata->dvb_frontend; pdata 327 drivers/media/usb/cx231xx/cx231xx-core.c u8 *pdata; pdata 353 drivers/media/usb/cx231xx/cx231xx-core.c pdata = ven_req->pBuff; pdata 363 drivers/media/usb/cx231xx/cx231xx-core.c ven_req->wValue, ven_req->wIndex, pdata, pdata 370 drivers/media/usb/cx231xx/cx231xx-core.c pdata = pdata + 4; pdata 374 drivers/media/usb/cx231xx/cx231xx-core.c ven_req->wValue, ven_req->wIndex, pdata, pdata 381 drivers/media/usb/cx231xx/cx231xx-core.c pdata = pdata + 4; pdata 384 drivers/media/usb/cx231xx/cx231xx-core.c ven_req->wValue, ven_req->wIndex, pdata, pdata 1077 drivers/media/usb/dvb-usb-v2/af9015.c struct af9013_platform_data *pdata = &state->af9013_pdata[adap->id]; pdata 1081 drivers/media/usb/dvb-usb-v2/af9015.c ret = pdata->pid_filter_ctrl(adap->fe[0], onoff); pdata 1091 drivers/media/usb/dvb-usb-v2/af9015.c struct af9013_platform_data *pdata = &state->af9013_pdata[adap->id]; pdata 1095 drivers/media/usb/dvb-usb-v2/af9015.c ret = pdata->pid_filter(adap->fe[0], index, pid, onoff); pdata 671 drivers/media/usb/dvb-usb-v2/rtl28xxu.c struct rtl2830_platform_data *pdata = &dev->rtl2830_platform_data; pdata 680 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2830_qt1010_platform_data; pdata 683 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2830_mt2060_platform_data; pdata 686 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2830_mxl5005s_platform_data; pdata 698 drivers/media/usb/dvb-usb-v2/rtl28xxu.c board_info.platform_data = pdata; pdata 712 drivers/media/usb/dvb-usb-v2/rtl28xxu.c adap->fe[0] = pdata->get_dvb_frontend(client); pdata 713 drivers/media/usb/dvb-usb-v2/rtl28xxu.c dev->demod_i2c_adapter = pdata->get_i2c_adapter(client); pdata 879 drivers/media/usb/dvb-usb-v2/rtl28xxu.c struct rtl2832_platform_data *pdata = &dev->rtl2832_platform_data; pdata 888 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2832_fc0012_platform_data; pdata 891 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2832_fc0013_platform_data; pdata 894 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2832_fc2580_platform_data; pdata 897 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2832_tua9001_platform_data; pdata 900 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2832_e4000_platform_data; pdata 904 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2832_r820t_platform_data; pdata 907 drivers/media/usb/dvb-usb-v2/rtl28xxu.c *pdata = rtl2832_si2157_platform_data; pdata 919 drivers/media/usb/dvb-usb-v2/rtl28xxu.c board_info.platform_data = pdata; pdata 933 drivers/media/usb/dvb-usb-v2/rtl28xxu.c adap->fe[0] = pdata->get_dvb_frontend(client); pdata 934 drivers/media/usb/dvb-usb-v2/rtl28xxu.c dev->demod_i2c_adapter = pdata->get_i2c_adapter(client); pdata 1184 drivers/media/usb/dvb-usb-v2/rtl28xxu.c struct rtl2832_sdr_platform_data pdata; pdata 1189 drivers/media/usb/dvb-usb-v2/rtl28xxu.c memset(&pdata, 0, sizeof(pdata)); pdata 1357 drivers/media/usb/dvb-usb-v2/rtl28xxu.c pdata.clk = dev->rtl2832_platform_data.clk; pdata 1358 drivers/media/usb/dvb-usb-v2/rtl28xxu.c pdata.tuner = dev->tuner; pdata 1359 drivers/media/usb/dvb-usb-v2/rtl28xxu.c pdata.regmap = dev->rtl2832_platform_data.regmap; pdata 1360 drivers/media/usb/dvb-usb-v2/rtl28xxu.c pdata.dvb_frontend = adap->fe[0]; pdata 1361 drivers/media/usb/dvb-usb-v2/rtl28xxu.c pdata.dvb_usb_device = d; pdata 1362 drivers/media/usb/dvb-usb-v2/rtl28xxu.c pdata.v4l2_subdev = subdev; pdata 1368 drivers/media/usb/dvb-usb-v2/rtl28xxu.c &pdata, sizeof(pdata)); pdata 1585 drivers/media/usb/dvb-usb-v2/rtl28xxu.c struct rtl2832_platform_data *pdata = &dev->rtl2832_platform_data; pdata 1606 drivers/media/usb/dvb-usb-v2/rtl28xxu.c ret = pdata->slave_ts_ctrl(dev->i2c_client_demod, onoff); pdata 1830 drivers/media/usb/dvb-usb-v2/rtl28xxu.c struct rtl2830_platform_data *pdata = &dev->rtl2830_platform_data; pdata 1832 drivers/media/usb/dvb-usb-v2/rtl28xxu.c return pdata->pid_filter_ctrl(adap->fe[0], onoff); pdata 1834 drivers/media/usb/dvb-usb-v2/rtl28xxu.c struct rtl2832_platform_data *pdata = &dev->rtl2832_platform_data; pdata 1836 drivers/media/usb/dvb-usb-v2/rtl28xxu.c return pdata->pid_filter_ctrl(adap->fe[0], onoff); pdata 1846 drivers/media/usb/dvb-usb-v2/rtl28xxu.c struct rtl2830_platform_data *pdata = &dev->rtl2830_platform_data; pdata 1848 drivers/media/usb/dvb-usb-v2/rtl28xxu.c return pdata->pid_filter(adap->fe[0], index, pid, onoff); pdata 1850 drivers/media/usb/dvb-usb-v2/rtl28xxu.c struct rtl2832_platform_data *pdata = &dev->rtl2832_platform_data; pdata 1852 drivers/media/usb/dvb-usb-v2/rtl28xxu.c return pdata->pid_filter(adap->fe[0], index, pid, onoff); pdata 319 drivers/media/usb/em28xx/em28xx-camera.c struct mt9v011_platform_data pdata; pdata 323 drivers/media/usb/em28xx/em28xx-camera.c .platform_data = &pdata, pdata 341 drivers/media/usb/em28xx/em28xx-camera.c pdata.xtal = v4l2->sensor_xtal; pdata 540 drivers/media/usb/gspca/gl860/gl860.c s32 len, void *pdata) pdata 547 drivers/media/usb/gspca/gl860/gl860.c memcpy(gspca_dev->usb_buf, pdata, len); pdata 562 drivers/media/usb/gspca/gl860/gl860.c memcpy(pdata, gspca_dev->usb_buf, len); pdata 86 drivers/media/usb/gspca/gl860/gl860.h s32 len, void *pdata); pdata 1702 drivers/media/usb/s2255/s2255drv.c unsigned char *pdata; pdata 1714 drivers/media/usb/s2255/s2255drv.c pdata = (unsigned char *)pipe_info->transfer_buffer; pdata 1715 drivers/media/usb/s2255/s2255drv.c pdword = (__le32 *)pdata; pdata 1720 drivers/media/usb/s2255/s2255drv.c jj, pdata[0], pdata[1]); pdata 1743 drivers/media/usb/s2255/s2255drv.c pdata += DEF_USB_BLOCK; pdata 1779 drivers/media/usb/s2255/s2255drv.c pdata++; pdata 1782 drivers/media/usb/s2255/s2255drv.c pdata++; pdata 2209 drivers/media/usb/s2255/s2255drv.c __le32 *pdata; pdata 2287 drivers/media/usb/s2255/s2255drv.c pdata = (__le32 *) &dev->fw_data->fw->data[fw_size - 8]; pdata 2289 drivers/media/usb/s2255/s2255drv.c if (*pdata != S2255_FW_MARKER) { pdata 336 drivers/memory/ti-aemif.c struct aemif_platform_data *pdata; pdata 343 drivers/memory/ti-aemif.c pdata = dev_get_platdata(&pdev->dev); pdata 344 drivers/memory/ti-aemif.c dev_lookup = pdata ? pdata->dev_lookup : NULL; pdata 362 drivers/memory/ti-aemif.c else if (pdata) pdata 363 drivers/memory/ti-aemif.c aemif->cs_offset = pdata->cs_offset; pdata 384 drivers/memory/ti-aemif.c } else if (pdata && pdata->num_abus_data > 0) { pdata 385 drivers/memory/ti-aemif.c for (i = 0; i < pdata->num_abus_data; i++, aemif->num_cs++) { pdata 386 drivers/memory/ti-aemif.c aemif->cs_data[i].cs = pdata->abus_data[i].cs; pdata 411 drivers/memory/ti-aemif.c } else if (pdata) { pdata 412 drivers/memory/ti-aemif.c for (i = 0; i < pdata->num_sub_devices; i++) { pdata 413 drivers/memory/ti-aemif.c pdata->sub_devices[i].dev.parent = dev; pdata 414 drivers/memory/ti-aemif.c ret = platform_device_register(&pdata->sub_devices[i]); pdata 417 drivers/memory/ti-aemif.c pdata->sub_devices[i].name); pdata 1367 drivers/message/fusion/mptctl.c int *pdata; pdata 1418 drivers/message/fusion/mptctl.c pdata = (int *) pmem; pdata 1433 drivers/message/fusion/mptctl.c *pdata = (((u8)lun << 16) + (vdevice->vtarget->channel << 8) + pdata 1435 drivers/message/fusion/mptctl.c pdata++; pdata 1458 drivers/message/fusion/mptctl.c ioc->name, __FILE__, __LINE__, pdata); pdata 2410 drivers/message/fusion/mptctl.c ManufacturingPage0_t *pdata = (ManufacturingPage0_t *) pbuf; pdata 2411 drivers/message/fusion/mptctl.c if (strlen(pdata->BoardTracerNumber) > 1) { pdata 2413 drivers/message/fusion/mptctl.c pdata->BoardTracerNumber, 24); pdata 249 drivers/mfd/88pm800.c struct pm80x_platform_data *pdata) pdata 296 drivers/mfd/88pm800.c if (pdata && (pdata->batt_det == 0)) pdata 316 drivers/mfd/88pm800.c struct pm80x_platform_data *pdata) pdata 332 drivers/mfd/88pm800.c struct pm80x_platform_data *pdata) pdata 336 drivers/mfd/88pm800.c if (pdata) { pdata 337 drivers/mfd/88pm800.c rtc_devs[0].platform_data = pdata->rtc; pdata 339 drivers/mfd/88pm800.c pdata->rtc ? sizeof(struct pm80x_rtc_pdata) : 0; pdata 352 drivers/mfd/88pm800.c struct pm80x_platform_data *pdata) pdata 482 drivers/mfd/88pm800.c struct pm80x_platform_data *pdata) pdata 497 drivers/mfd/88pm800.c if (pdata && pdata->rtc) pdata 498 drivers/mfd/88pm800.c pdata->rtc->rtc_wakeup = 1; pdata 501 drivers/mfd/88pm800.c ret = device_gpadc_init(chip, pdata); pdata 515 drivers/mfd/88pm800.c ret = device_onkey_init(chip, pdata); pdata 521 drivers/mfd/88pm800.c ret = device_rtc_init(chip, pdata); pdata 527 drivers/mfd/88pm800.c ret = device_regulator_init(chip, pdata); pdata 546 drivers/mfd/88pm800.c struct pm80x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 577 drivers/mfd/88pm800.c ret = device_800_init(chip, pdata); pdata 583 drivers/mfd/88pm800.c if (pdata && pdata->plat_config) pdata 584 drivers/mfd/88pm800.c pdata->plat_config(chip, pdata); pdata 230 drivers/mfd/88pm805.c struct pm80x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 246 drivers/mfd/88pm805.c if (pdata && pdata->plat_config) pdata 247 drivers/mfd/88pm805.c pdata->plat_config(chip, pdata); pdata 568 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 582 drivers/mfd/88pm860x-core.c if (pdata && pdata->irq_mode) { pdata 617 drivers/mfd/88pm860x-core.c if (pdata && pdata->irq_base) pdata 618 drivers/mfd/88pm860x-core.c irq_base = pdata->irq_base; pdata 750 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 754 drivers/mfd/88pm860x-core.c if (pdata && pdata->backlight) { pdata 755 drivers/mfd/88pm860x-core.c if (pdata->num_backlights > ARRAY_SIZE(bk_devs)) pdata 756 drivers/mfd/88pm860x-core.c pdata->num_backlights = ARRAY_SIZE(bk_devs); pdata 757 drivers/mfd/88pm860x-core.c for (i = 0; i < pdata->num_backlights; i++) { pdata 758 drivers/mfd/88pm860x-core.c bk_devs[i].platform_data = &pdata->backlight[i]; pdata 770 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 774 drivers/mfd/88pm860x-core.c if (pdata && pdata->led) { pdata 775 drivers/mfd/88pm860x-core.c if (pdata->num_leds > ARRAY_SIZE(led_devs)) pdata 776 drivers/mfd/88pm860x-core.c pdata->num_leds = ARRAY_SIZE(led_devs); pdata 777 drivers/mfd/88pm860x-core.c for (i = 0; i < pdata->num_leds; i++) { pdata 778 drivers/mfd/88pm860x-core.c led_devs[i].platform_data = &pdata->led[i]; pdata 792 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 796 drivers/mfd/88pm860x-core.c if (pdata == NULL) pdata 798 drivers/mfd/88pm860x-core.c if (pdata->buck1) { pdata 799 drivers/mfd/88pm860x-core.c reg_devs[0].platform_data = pdata->buck1; pdata 802 drivers/mfd/88pm860x-core.c if (pdata->buck2) { pdata 803 drivers/mfd/88pm860x-core.c reg_devs[1].platform_data = pdata->buck2; pdata 806 drivers/mfd/88pm860x-core.c if (pdata->buck3) { pdata 807 drivers/mfd/88pm860x-core.c reg_devs[2].platform_data = pdata->buck3; pdata 810 drivers/mfd/88pm860x-core.c if (pdata->ldo1) { pdata 811 drivers/mfd/88pm860x-core.c reg_devs[3].platform_data = pdata->ldo1; pdata 814 drivers/mfd/88pm860x-core.c if (pdata->ldo2) { pdata 815 drivers/mfd/88pm860x-core.c reg_devs[4].platform_data = pdata->ldo2; pdata 818 drivers/mfd/88pm860x-core.c if (pdata->ldo3) { pdata 819 drivers/mfd/88pm860x-core.c reg_devs[5].platform_data = pdata->ldo3; pdata 822 drivers/mfd/88pm860x-core.c if (pdata->ldo4) { pdata 823 drivers/mfd/88pm860x-core.c reg_devs[6].platform_data = pdata->ldo4; pdata 826 drivers/mfd/88pm860x-core.c if (pdata->ldo5) { pdata 827 drivers/mfd/88pm860x-core.c reg_devs[7].platform_data = pdata->ldo5; pdata 830 drivers/mfd/88pm860x-core.c if (pdata->ldo6) { pdata 831 drivers/mfd/88pm860x-core.c reg_devs[8].platform_data = pdata->ldo6; pdata 834 drivers/mfd/88pm860x-core.c if (pdata->ldo7) { pdata 835 drivers/mfd/88pm860x-core.c reg_devs[9].platform_data = pdata->ldo7; pdata 838 drivers/mfd/88pm860x-core.c if (pdata->ldo8) { pdata 839 drivers/mfd/88pm860x-core.c reg_devs[10].platform_data = pdata->ldo8; pdata 842 drivers/mfd/88pm860x-core.c if (pdata->ldo9) { pdata 843 drivers/mfd/88pm860x-core.c reg_devs[11].platform_data = pdata->ldo9; pdata 846 drivers/mfd/88pm860x-core.c if (pdata->ldo10) { pdata 847 drivers/mfd/88pm860x-core.c reg_devs[12].platform_data = pdata->ldo10; pdata 850 drivers/mfd/88pm860x-core.c if (pdata->ldo12) { pdata 851 drivers/mfd/88pm860x-core.c reg_devs[13].platform_data = pdata->ldo12; pdata 854 drivers/mfd/88pm860x-core.c if (pdata->ldo_vibrator) { pdata 855 drivers/mfd/88pm860x-core.c reg_devs[14].platform_data = pdata->ldo_vibrator; pdata 858 drivers/mfd/88pm860x-core.c if (pdata->ldo14) { pdata 859 drivers/mfd/88pm860x-core.c reg_devs[15].platform_data = pdata->ldo14; pdata 871 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 875 drivers/mfd/88pm860x-core.c if (!pdata) pdata 878 drivers/mfd/88pm860x-core.c rtc_devs[0].platform_data = pdata->rtc; pdata 890 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 894 drivers/mfd/88pm860x-core.c if (pdata == NULL) pdata 897 drivers/mfd/88pm860x-core.c touch_devs[0].platform_data = pdata->touch; pdata 909 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 913 drivers/mfd/88pm860x-core.c if (pdata == NULL) pdata 916 drivers/mfd/88pm860x-core.c power_devs[0].platform_data = pdata->power; pdata 925 drivers/mfd/88pm860x-core.c power_devs[1].platform_data = pdata->power; pdata 941 drivers/mfd/88pm860x-core.c if (pdata->chg_desc) { pdata 942 drivers/mfd/88pm860x-core.c pdata->chg_desc->charger_regulators = pdata 944 drivers/mfd/88pm860x-core.c pdata->chg_desc->num_charger_regulators = pdata 946 drivers/mfd/88pm860x-core.c power_devs[3].platform_data = pdata->chg_desc; pdata 947 drivers/mfd/88pm860x-core.c power_devs[3].pdata_size = sizeof(*pdata->chg_desc); pdata 956 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 970 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 985 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 1021 drivers/mfd/88pm860x-core.c if (pdata && (pdata->i2c_port == PI2C_PORT)) pdata 1031 drivers/mfd/88pm860x-core.c ret = device_irq_init(chip, pdata); pdata 1035 drivers/mfd/88pm860x-core.c device_regulator_init(chip, pdata); pdata 1036 drivers/mfd/88pm860x-core.c device_rtc_init(chip, pdata); pdata 1037 drivers/mfd/88pm860x-core.c device_onkey_init(chip, pdata); pdata 1038 drivers/mfd/88pm860x-core.c device_touch_init(chip, pdata); pdata 1039 drivers/mfd/88pm860x-core.c device_power_init(chip, pdata); pdata 1040 drivers/mfd/88pm860x-core.c device_codec_init(chip, pdata); pdata 1047 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 1050 drivers/mfd/88pm860x-core.c device_bk_init(chip, pdata); pdata 1051 drivers/mfd/88pm860x-core.c device_led_init(chip, pdata); pdata 1055 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 1061 drivers/mfd/88pm860x-core.c device_8606_init(chip, chip->client, pdata); pdata 1064 drivers/mfd/88pm860x-core.c device_8607_init(chip, chip->client, pdata); pdata 1071 drivers/mfd/88pm860x-core.c device_8606_init(chip, chip->companion, pdata); pdata 1074 drivers/mfd/88pm860x-core.c device_8607_init(chip, chip->companion, pdata); pdata 1116 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata) pdata 1121 drivers/mfd/88pm860x-core.c pdata->irq_mode = 1; pdata 1123 drivers/mfd/88pm860x-core.c &pdata->companion_addr); pdata 1127 drivers/mfd/88pm860x-core.c pdata->companion_addr = 0; pdata 1134 drivers/mfd/88pm860x-core.c struct pm860x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 1139 drivers/mfd/88pm860x-core.c if (node && !pdata) { pdata 1141 drivers/mfd/88pm860x-core.c pdata = devm_kzalloc(&client->dev, pdata 1144 drivers/mfd/88pm860x-core.c if (!pdata) pdata 1146 drivers/mfd/88pm860x-core.c ret = pm860x_dt_init(node, &client->dev, pdata); pdata 1149 drivers/mfd/88pm860x-core.c } else if (!pdata) { pdata 1179 drivers/mfd/88pm860x-core.c if (pdata->companion_addr && (pdata->companion_addr != client->addr)) { pdata 1180 drivers/mfd/88pm860x-core.c chip->companion_addr = pdata->companion_addr; pdata 1200 drivers/mfd/88pm860x-core.c pm860x_device_init(chip, pdata); pdata 338 drivers/mfd/aat2870-core.c struct aat2870_platform_data *pdata = dev_get_platdata(&client->dev); pdata 356 drivers/mfd/aat2870-core.c if (pdata->en_pin < 0) pdata 359 drivers/mfd/aat2870-core.c aat2870->en_pin = pdata->en_pin; pdata 361 drivers/mfd/aat2870-core.c aat2870->init = pdata->init; pdata 362 drivers/mfd/aat2870-core.c aat2870->uninit = pdata->uninit; pdata 384 drivers/mfd/aat2870-core.c for (i = 0; i < pdata->num_subdevs; i++) { pdata 386 drivers/mfd/aat2870-core.c if ((pdata->subdevs[i].id == aat2870_devs[j].id) && pdata 387 drivers/mfd/aat2870-core.c !strcmp(pdata->subdevs[i].name, pdata 390 drivers/mfd/aat2870-core.c pdata->subdevs[i].platform_data; pdata 210 drivers/mfd/adp5520.c struct adp5520_platform_data *pdata = dev_get_platdata(&client->dev); pdata 221 drivers/mfd/adp5520.c if (pdata == NULL) { pdata 257 drivers/mfd/adp5520.c if (pdata->keys) { pdata 259 drivers/mfd/adp5520.c chip->id, pdata->keys, sizeof(*pdata->keys)); pdata 266 drivers/mfd/adp5520.c if (pdata->gpio) { pdata 268 drivers/mfd/adp5520.c chip->id, pdata->gpio, sizeof(*pdata->gpio)); pdata 275 drivers/mfd/adp5520.c if (pdata->leds) { pdata 277 drivers/mfd/adp5520.c chip->id, pdata->leds, sizeof(*pdata->leds)); pdata 284 drivers/mfd/adp5520.c if (pdata->backlight) { pdata 288 drivers/mfd/adp5520.c pdata->backlight, pdata 289 drivers/mfd/adp5520.c sizeof(*pdata->backlight)); pdata 46 drivers/mfd/arizona-core.c switch (arizona->pdata.clk32k_src) { pdata 91 drivers/mfd/arizona-core.c switch (arizona->pdata.clk32k_src) { pdata 295 drivers/mfd/arizona-core.c if (arizona->pdata.reset) pdata 296 drivers/mfd/arizona-core.c gpiod_set_raw_value_cansleep(arizona->pdata.reset, 0); pdata 301 drivers/mfd/arizona-core.c if (arizona->pdata.reset) { pdata 312 drivers/mfd/arizona-core.c gpiod_set_raw_value_cansleep(arizona->pdata.reset, 1); pdata 813 drivers/mfd/arizona-core.c struct arizona_pdata *pdata = &arizona->pdata; pdata 817 drivers/mfd/arizona-core.c pdata->reset = devm_gpiod_get_from_of_node(arizona->dev, pdata 822 drivers/mfd/arizona-core.c if (IS_ERR(pdata->reset)) { pdata 823 drivers/mfd/arizona-core.c ret = PTR_ERR(pdata->reset); pdata 836 drivers/mfd/arizona-core.c pdata->reset = NULL; pdata 841 drivers/mfd/arizona-core.c pdata->gpio_defaults, pdata 842 drivers/mfd/arizona-core.c ARRAY_SIZE(pdata->gpio_defaults)); pdata 850 drivers/mfd/arizona-core.c for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { pdata 851 drivers/mfd/arizona-core.c if (pdata->gpio_defaults[i] > 0xffff) pdata 852 drivers/mfd/arizona-core.c pdata->gpio_defaults[i] = 0; pdata 853 drivers/mfd/arizona-core.c else if (pdata->gpio_defaults[i] == 0) pdata 854 drivers/mfd/arizona-core.c pdata->gpio_defaults[i] = 0x10000; pdata 1002 drivers/mfd/arizona-core.c memcpy(&arizona->pdata, dev_get_platdata(arizona->dev), pdata 1003 drivers/mfd/arizona-core.c sizeof(arizona->pdata)); pdata 1080 drivers/mfd/arizona-core.c if (!arizona->pdata.reset) { pdata 1082 drivers/mfd/arizona-core.c arizona->pdata.reset = devm_gpiod_get(arizona->dev, "reset", pdata 1084 drivers/mfd/arizona-core.c if (IS_ERR(arizona->pdata.reset)) { pdata 1085 drivers/mfd/arizona-core.c ret = PTR_ERR(arizona->pdata.reset); pdata 1092 drivers/mfd/arizona-core.c arizona->pdata.reset = NULL; pdata 1135 drivers/mfd/arizona-core.c if (!arizona->pdata.reset) { pdata 1336 drivers/mfd/arizona-core.c for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) { pdata 1337 drivers/mfd/arizona-core.c if (!arizona->pdata.gpio_defaults[i]) pdata 1341 drivers/mfd/arizona-core.c arizona->pdata.gpio_defaults[i]); pdata 1345 drivers/mfd/arizona-core.c if (!arizona->pdata.clk32k_src) pdata 1346 drivers/mfd/arizona-core.c arizona->pdata.clk32k_src = ARIZONA_32KZ_MCLK2; pdata 1348 drivers/mfd/arizona-core.c switch (arizona->pdata.clk32k_src) { pdata 1353 drivers/mfd/arizona-core.c arizona->pdata.clk32k_src - 1); pdata 1362 drivers/mfd/arizona-core.c arizona->pdata.clk32k_src); pdata 1368 drivers/mfd/arizona-core.c if (!arizona->pdata.micbias[i].mV && pdata 1369 drivers/mfd/arizona-core.c !arizona->pdata.micbias[i].bypass) pdata 1373 drivers/mfd/arizona-core.c if (!arizona->pdata.micbias[i].mV) pdata 1374 drivers/mfd/arizona-core.c arizona->pdata.micbias[i].mV = 2800; pdata 1376 drivers/mfd/arizona-core.c val = (arizona->pdata.micbias[i].mV - 1500) / 100; pdata 1380 drivers/mfd/arizona-core.c if (arizona->pdata.micbias[i].ext_cap) pdata 1383 drivers/mfd/arizona-core.c if (arizona->pdata.micbias[i].discharge) pdata 1386 drivers/mfd/arizona-core.c if (arizona->pdata.micbias[i].soft_start) pdata 1389 drivers/mfd/arizona-core.c if (arizona->pdata.micbias[i].bypass) pdata 144 drivers/mfd/arizona-irq.c if (!arizona->pdata.irq_gpio) { pdata 146 drivers/mfd/arizona-irq.c } else if (arizona->pdata.irq_flags & IRQF_TRIGGER_RISING && pdata 147 drivers/mfd/arizona-irq.c gpio_get_value_cansleep(arizona->pdata.irq_gpio)) { pdata 149 drivers/mfd/arizona-irq.c } else if (arizona->pdata.irq_flags & IRQF_TRIGGER_FALLING && pdata 150 drivers/mfd/arizona-irq.c !gpio_get_value_cansleep(arizona->pdata.irq_gpio)) { pdata 277 drivers/mfd/arizona-irq.c if (!arizona->pdata.irq_flags) { pdata 285 drivers/mfd/arizona-irq.c arizona->pdata.irq_flags = irqd_get_trigger_type(irq_data); pdata 286 drivers/mfd/arizona-irq.c switch (arizona->pdata.irq_flags) { pdata 296 drivers/mfd/arizona-irq.c arizona->pdata.irq_flags = IRQF_TRIGGER_LOW; pdata 301 drivers/mfd/arizona-irq.c if (arizona->pdata.irq_flags & (IRQF_TRIGGER_HIGH | pdata 312 drivers/mfd/arizona-irq.c flags |= arizona->pdata.irq_flags; pdata 355 drivers/mfd/arizona-irq.c if (arizona->pdata.irq_gpio) { pdata 356 drivers/mfd/arizona-irq.c if (gpio_to_irq(arizona->pdata.irq_gpio) != arizona->irq) { pdata 358 drivers/mfd/arizona-irq.c arizona->irq, arizona->pdata.irq_gpio, pdata 359 drivers/mfd/arizona-irq.c gpio_to_irq(arizona->pdata.irq_gpio)); pdata 360 drivers/mfd/arizona-irq.c arizona->irq = gpio_to_irq(arizona->pdata.irq_gpio); pdata 364 drivers/mfd/arizona-irq.c arizona->pdata.irq_gpio, pdata 369 drivers/mfd/arizona-irq.c arizona->pdata.irq_gpio, ret); pdata 370 drivers/mfd/arizona-irq.c arizona->pdata.irq_gpio = 0; pdata 123 drivers/mfd/as3711.c struct as3711_platform_data *pdata; pdata 128 drivers/mfd/as3711.c pdata = dev_get_platdata(&client->dev); pdata 129 drivers/mfd/as3711.c if (!pdata) pdata 132 drivers/mfd/as3711.c pdata = devm_kzalloc(&client->dev, pdata 133 drivers/mfd/as3711.c sizeof(*pdata), GFP_KERNEL); pdata 134 drivers/mfd/as3711.c if (!pdata) pdata 171 drivers/mfd/as3711.c if (pdata) { pdata 173 drivers/mfd/as3711.c &pdata->regulator; pdata 175 drivers/mfd/as3711.c sizeof(pdata->regulator); pdata 177 drivers/mfd/as3711.c &pdata->backlight; pdata 179 drivers/mfd/as3711.c sizeof(pdata->backlight); pdata 876 drivers/mfd/asic3.c struct asic3_platform_data *pdata, pdata 912 drivers/mfd/asic3.c if (pdata->clock_rate) { pdata 913 drivers/mfd/asic3.c ds1wm_pdata.clock_rate = pdata->clock_rate; pdata 928 drivers/mfd/asic3.c if (pdata->leds) { pdata 932 drivers/mfd/asic3.c asic3_cell_leds[i].platform_data = &pdata->leds[i]; pdata 933 drivers/mfd/asic3.c asic3_cell_leds[i].pdata_size = sizeof(pdata->leds[i]); pdata 954 drivers/mfd/asic3.c struct asic3_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 981 drivers/mfd/asic3.c asic->irq_base = pdata->irq_base; pdata 996 drivers/mfd/asic3.c asic->gpio.base = pdata->gpio_base; pdata 1005 drivers/mfd/asic3.c pdata->gpio_config, pdata 1006 drivers/mfd/asic3.c pdata->gpio_config_num); pdata 1017 drivers/mfd/asic3.c asic3_mfd_probe(pdev, pdata, mem); pdata 460 drivers/mfd/da903x.c struct da903x_platform_data *pdata) pdata 466 drivers/mfd/da903x.c for (i = 0; i < pdata->num_subdevs; i++) { pdata 467 drivers/mfd/da903x.c subdev = &pdata->subdevs[i]; pdata 494 drivers/mfd/da903x.c struct da903x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 532 drivers/mfd/da903x.c return da903x_add_subdevs(chip, pdata); pdata 593 drivers/mfd/da9052-core.c struct da9052_pdata *pdata = dev_get_platdata(da9052->dev); pdata 603 drivers/mfd/da9052-core.c if (pdata && pdata->init != NULL) pdata 604 drivers/mfd/da9052-core.c pdata->init(da9052); pdata 378 drivers/mfd/da9055-core.c struct da9055_pdata *pdata = dev_get_platdata(da9055->dev); pdata 382 drivers/mfd/da9055-core.c if (pdata && pdata->init != NULL) pdata 383 drivers/mfd/da9055-core.c pdata->init(da9055); pdata 385 drivers/mfd/da9055-core.c if (!pdata || !pdata->irq_base) pdata 388 drivers/mfd/da9055-core.c da9055->irq_base = pdata->irq_base; pdata 399 drivers/mfd/da9150-core.c struct da9150_pdata *pdata = dev_get_platdata(&client->dev); pdata 431 drivers/mfd/da9150-core.c if (pdata) { pdata 432 drivers/mfd/da9150-core.c da9150->irq_base = pdata->irq_base; pdata 434 drivers/mfd/da9150-core.c da9150_devs[DA9150_FG_IDX].platform_data = pdata->fg_pdata; pdata 191 drivers/mfd/dm355evm_msp.c void *pdata, unsigned pdata_len, pdata 204 drivers/mfd/dm355evm_msp.c if (pdata) { pdata 205 drivers/mfd/dm355evm_msp.c status = platform_device_add_data(pdev, pdata, pdata_len); pdata 179 drivers/mfd/ezx-pcap.c struct pcap_platform_data *pdata = dev_get_platdata(&pcap->spi->dev); pdata 188 drivers/mfd/ezx-pcap.c if (!(pdata->config & PCAP_SECOND_PORT)) { pdata 204 drivers/mfd/ezx-pcap.c } while (gpio_get_value(pdata->gpio)); pdata 421 drivers/mfd/ezx-pcap.c struct pcap_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 427 drivers/mfd/ezx-pcap.c if (!pdata) pdata 444 drivers/mfd/ezx-pcap.c spi->mode = SPI_MODE_0 | (pdata->config & PCAP_CS_AH ? SPI_CS_HIGH : 0); pdata 452 drivers/mfd/ezx-pcap.c pcap->irq_base = pdata->irq_base; pdata 461 drivers/mfd/ezx-pcap.c if (!(pdata->config & PCAP_SECOND_PORT)) pdata 482 drivers/mfd/ezx-pcap.c adc_irq = pcap_to_irq(pcap, (pdata->config & PCAP_SECOND_PORT) ? pdata 491 drivers/mfd/ezx-pcap.c for (i = 0; i < pdata->num_subdevs; i++) { pdata 492 drivers/mfd/ezx-pcap.c ret = pcap_add_subdev(pcap, &pdata->subdevs[i]); pdata 498 drivers/mfd/ezx-pcap.c if (pdata->init) pdata 499 drivers/mfd/ezx-pcap.c pdata->init(pcap); pdata 325 drivers/mfd/htc-i2cpld.c struct htcpld_core_platform_data *pdata; pdata 333 drivers/mfd/htc-i2cpld.c pdata = dev_get_platdata(dev); pdata 336 drivers/mfd/htc-i2cpld.c plat_chip_data = &pdata->chip[chip_index]; pdata 338 drivers/mfd/htc-i2cpld.c adapter = i2c_get_adapter(pdata->i2c_adapter_id); pdata 342 drivers/mfd/htc-i2cpld.c plat_chip_data->addr, pdata->i2c_adapter_id); pdata 348 drivers/mfd/htc-i2cpld.c pdata->i2c_adapter_id); pdata 397 drivers/mfd/htc-i2cpld.c struct htcpld_core_platform_data *pdata; pdata 404 drivers/mfd/htc-i2cpld.c pdata = dev_get_platdata(dev); pdata 407 drivers/mfd/htc-i2cpld.c plat_chip_data = &pdata->chip[chip_index]; pdata 456 drivers/mfd/htc-i2cpld.c struct htcpld_core_platform_data *pdata; pdata 460 drivers/mfd/htc-i2cpld.c pdata = dev_get_platdata(dev); pdata 464 drivers/mfd/htc-i2cpld.c htcpld->nchips = pdata->num_chip; pdata 477 drivers/mfd/htc-i2cpld.c htcpld->chip[i].reset = pdata->chip[i].reset; pdata 478 drivers/mfd/htc-i2cpld.c htcpld->chip[i].cache_out = pdata->chip[i].reset; pdata 481 drivers/mfd/htc-i2cpld.c htcpld->chip[i].irq_start = pdata->chip[i].irq_base; pdata 482 drivers/mfd/htc-i2cpld.c htcpld->chip[i].nirqs = pdata->chip[i].num_irqs; pdata 508 drivers/mfd/htc-i2cpld.c dev_info(dev, "Registered chip at 0x%x\n", pdata->chip[i].addr); pdata 518 drivers/mfd/htc-i2cpld.c struct htcpld_core_platform_data *pdata; pdata 525 drivers/mfd/htc-i2cpld.c pdata = dev_get_platdata(dev); pdata 526 drivers/mfd/htc-i2cpld.c if (!pdata) { pdata 563 drivers/mfd/htc-i2cpld.c if (pdata->int_reset_gpio_hi) { pdata 564 drivers/mfd/htc-i2cpld.c ret = gpio_request(pdata->int_reset_gpio_hi, "htcpld-core"); pdata 573 drivers/mfd/htc-i2cpld.c htcpld->int_reset_gpio_hi = pdata->int_reset_gpio_hi; pdata 578 drivers/mfd/htc-i2cpld.c if (pdata->int_reset_gpio_lo) { pdata 579 drivers/mfd/htc-i2cpld.c ret = gpio_request(pdata->int_reset_gpio_lo, "htcpld-core"); pdata 588 drivers/mfd/htc-i2cpld.c htcpld->int_reset_gpio_lo = pdata->int_reset_gpio_lo; pdata 126 drivers/mfd/htc-pasic3.c struct pasic3_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 162 drivers/mfd/htc-pasic3.c if (pdata && pdata->clock_rate) { pdata 163 drivers/mfd/htc-pasic3.c ds1wm_pdata.clock_rate = pdata->clock_rate; pdata 172 drivers/mfd/htc-pasic3.c if (pdata && pdata->led_pdata) { pdata 173 drivers/mfd/htc-pasic3.c led_cell.platform_data = pdata->led_pdata; pdata 286 drivers/mfd/intel_msic.c struct intel_msic_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 289 drivers/mfd/intel_msic.c if (pdata->gpio) { pdata 292 drivers/mfd/intel_msic.c cell->platform_data = pdata->gpio; pdata 293 drivers/mfd/intel_msic.c cell->pdata_size = sizeof(*pdata->gpio); pdata 296 drivers/mfd/intel_msic.c if (pdata->ocd) { pdata 297 drivers/mfd/intel_msic.c unsigned gpio = pdata->ocd->gpio; pdata 313 drivers/mfd/intel_msic.c pdata->irq[INTEL_MSIC_BLOCK_OCD] = ret; pdata 317 drivers/mfd/intel_msic.c if (!pdata->irq[i]) pdata 321 drivers/mfd/intel_msic.c pdata->irq[i], NULL); pdata 348 drivers/mfd/intel_msic.c struct intel_msic_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 354 drivers/mfd/intel_msic.c if (!pdata) { pdata 161 drivers/mfd/intel_quark_i2c_gpio.c struct dw_i2c_platform_data *pdata; pdata 173 drivers/mfd/intel_quark_i2c_gpio.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 174 drivers/mfd/intel_quark_i2c_gpio.c if (!pdata) pdata 178 drivers/mfd/intel_quark_i2c_gpio.c pdata->i2c_scl_freq = 100000; pdata 182 drivers/mfd/intel_quark_i2c_gpio.c pdata->i2c_scl_freq = (uintptr_t)dmi_id->driver_data; pdata 184 drivers/mfd/intel_quark_i2c_gpio.c cell->platform_data = pdata; pdata 185 drivers/mfd/intel_quark_i2c_gpio.c cell->pdata_size = sizeof(*pdata); pdata 192 drivers/mfd/intel_quark_i2c_gpio.c struct dwapb_platform_data *pdata; pdata 201 drivers/mfd/intel_quark_i2c_gpio.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 202 drivers/mfd/intel_quark_i2c_gpio.c if (!pdata) pdata 206 drivers/mfd/intel_quark_i2c_gpio.c pdata->nports = INTEL_QUARK_GPIO_NPORTS; pdata 207 drivers/mfd/intel_quark_i2c_gpio.c pdata->properties = devm_kcalloc(dev, pdata->nports, pdata 208 drivers/mfd/intel_quark_i2c_gpio.c sizeof(*pdata->properties), pdata 210 drivers/mfd/intel_quark_i2c_gpio.c if (!pdata->properties) pdata 214 drivers/mfd/intel_quark_i2c_gpio.c pdata->properties->fwnode = NULL; pdata 215 drivers/mfd/intel_quark_i2c_gpio.c pdata->properties->idx = 0; pdata 216 drivers/mfd/intel_quark_i2c_gpio.c pdata->properties->ngpio = INTEL_QUARK_MFD_NGPIO; pdata 217 drivers/mfd/intel_quark_i2c_gpio.c pdata->properties->gpio_base = INTEL_QUARK_MFD_GPIO_BASE; pdata 218 drivers/mfd/intel_quark_i2c_gpio.c pdata->properties->irq[0] = pdev->irq; pdata 219 drivers/mfd/intel_quark_i2c_gpio.c pdata->properties->has_irq = true; pdata 220 drivers/mfd/intel_quark_i2c_gpio.c pdata->properties->irq_shared = true; pdata 222 drivers/mfd/intel_quark_i2c_gpio.c cell->platform_data = pdata; pdata 223 drivers/mfd/intel_quark_i2c_gpio.c cell->pdata_size = sizeof(*pdata); pdata 409 drivers/mfd/intel_soc_pmic_bxtwc.c struct regmap_irq_chip_data *pdata, pdata 416 drivers/mfd/intel_soc_pmic_bxtwc.c irq = regmap_irq_get_virq(pdata, pirq); pdata 54 drivers/mfd/janz-cmodio.c struct janz_platform_data pdata[CMODIO_MAX_MODULES]; pdata 65 drivers/mfd/janz-cmodio.c struct janz_platform_data *pdata; pdata 73 drivers/mfd/janz-cmodio.c pdata = &priv->pdata[devno]; pdata 83 drivers/mfd/janz-cmodio.c pdata->modno = modno; pdata 84 drivers/mfd/janz-cmodio.c cell->platform_data = pdata; pdata 85 drivers/mfd/janz-cmodio.c cell->pdata_size = sizeof(*pdata); pdata 138 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = id->driver_data; pdata 145 drivers/mfd/kempld-core.c ret = platform_device_add_data(kempld_pdev, pdata, sizeof(*pdata)); pdata 149 drivers/mfd/kempld-core.c ret = platform_device_add_resources(kempld_pdev, pdata->ioresource, 1); pdata 254 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pdata 257 drivers/mfd/kempld-core.c pdata->get_hardware_mutex(pld); pdata 267 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pdata 269 drivers/mfd/kempld-core.c pdata->release_hardware_mutex(pld); pdata 285 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pdata 288 drivers/mfd/kempld-core.c ret = pdata->get_info(pld); pdata 327 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pdata 329 drivers/mfd/kempld-core.c return pdata->register_cells(pld); pdata 439 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = pdata 460 drivers/mfd/kempld-core.c pld->pld_clock = pdata->pld_clock; pdata 472 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pdata 477 drivers/mfd/kempld-core.c pdata->release_hardware_mutex(pld); pdata 383 drivers/mfd/lm3533-core.c struct lm3533_platform_data *pdata = dev_get_platdata(lm3533->dev); pdata 386 drivers/mfd/lm3533-core.c if (!pdata->als) pdata 389 drivers/mfd/lm3533-core.c lm3533_als_devs[0].platform_data = pdata->als; pdata 390 drivers/mfd/lm3533-core.c lm3533_als_devs[0].pdata_size = sizeof(*pdata->als); pdata 406 drivers/mfd/lm3533-core.c struct lm3533_platform_data *pdata = dev_get_platdata(lm3533->dev); pdata 410 drivers/mfd/lm3533-core.c if (!pdata->backlights || pdata->num_backlights == 0) pdata 413 drivers/mfd/lm3533-core.c if (pdata->num_backlights > ARRAY_SIZE(lm3533_bl_devs)) pdata 414 drivers/mfd/lm3533-core.c pdata->num_backlights = ARRAY_SIZE(lm3533_bl_devs); pdata 416 drivers/mfd/lm3533-core.c for (i = 0; i < pdata->num_backlights; ++i) { pdata 417 drivers/mfd/lm3533-core.c lm3533_bl_devs[i].platform_data = &pdata->backlights[i]; pdata 418 drivers/mfd/lm3533-core.c lm3533_bl_devs[i].pdata_size = sizeof(pdata->backlights[i]); pdata 422 drivers/mfd/lm3533-core.c pdata->num_backlights, NULL, 0, NULL); pdata 435 drivers/mfd/lm3533-core.c struct lm3533_platform_data *pdata = dev_get_platdata(lm3533->dev); pdata 439 drivers/mfd/lm3533-core.c if (!pdata->leds || pdata->num_leds == 0) pdata 442 drivers/mfd/lm3533-core.c if (pdata->num_leds > ARRAY_SIZE(lm3533_led_devs)) pdata 443 drivers/mfd/lm3533-core.c pdata->num_leds = ARRAY_SIZE(lm3533_led_devs); pdata 445 drivers/mfd/lm3533-core.c for (i = 0; i < pdata->num_leds; ++i) { pdata 446 drivers/mfd/lm3533-core.c lm3533_led_devs[i].platform_data = &pdata->leds[i]; pdata 447 drivers/mfd/lm3533-core.c lm3533_led_devs[i].pdata_size = sizeof(pdata->leds[i]); pdata 451 drivers/mfd/lm3533-core.c pdata->num_leds, NULL, 0, NULL); pdata 463 drivers/mfd/lm3533-core.c struct lm3533_platform_data *pdata) pdata 467 drivers/mfd/lm3533-core.c ret = lm3533_set_boost_freq(lm3533, pdata->boost_freq); pdata 471 drivers/mfd/lm3533-core.c return lm3533_set_boost_ovp(lm3533, pdata->boost_ovp); pdata 476 drivers/mfd/lm3533-core.c struct lm3533_platform_data *pdata = dev_get_platdata(lm3533->dev); pdata 481 drivers/mfd/lm3533-core.c if (!pdata) { pdata 486 drivers/mfd/lm3533-core.c lm3533->gpio_hwen = pdata->gpio_hwen; pdata 503 drivers/mfd/lm3533-core.c ret = lm3533_device_setup(lm3533, pdata); pdata 118 drivers/mfd/lp3943.c lp3943->pdata = dev_get_platdata(dev); pdata 158 drivers/mfd/lp8788.c struct lp8788_platform_data *pdata = lp->pdata; pdata 160 drivers/mfd/lp8788.c return (pdata && pdata->init_func) ? pdata->init_func(lp) : 0; pdata 172 drivers/mfd/lp8788.c struct lp8788_platform_data *pdata = dev_get_platdata(&cl->dev); pdata 186 drivers/mfd/lp8788.c lp->pdata = pdata; pdata 879 drivers/mfd/lpc_ich.c struct itco_wdt_platform_data *pdata; pdata 884 drivers/mfd/lpc_ich.c pdata = devm_kzalloc(&dev->dev, sizeof(*pdata), GFP_KERNEL); pdata 885 drivers/mfd/lpc_ich.c if (!pdata) pdata 890 drivers/mfd/lpc_ich.c pdata->version = info->iTCO_version; pdata 891 drivers/mfd/lpc_ich.c strlcpy(pdata->name, info->name, sizeof(pdata->name)); pdata 893 drivers/mfd/lpc_ich.c cell->platform_data = pdata; pdata 894 drivers/mfd/lpc_ich.c cell->pdata_size = sizeof(*pdata); pdata 259 drivers/mfd/madera-core.c if (!madera->pdata.reset) pdata 267 drivers/mfd/madera-core.c gpiod_set_raw_value_cansleep(madera->pdata.reset, 0); pdata 272 drivers/mfd/madera-core.c if (!madera->pdata.reset) pdata 275 drivers/mfd/madera-core.c gpiod_set_raw_value_cansleep(madera->pdata.reset, 1); pdata 364 drivers/mfd/madera-core.c if (madera->pdata.reset) pdata 385 drivers/mfd/madera-core.c madera->pdata.reset = reset; pdata 449 drivers/mfd/madera-core.c memcpy(&madera->pdata, dev_get_platdata(madera->dev), pdata 450 drivers/mfd/madera-core.c sizeof(madera->pdata)); pdata 630 drivers/mfd/madera-core.c if (!madera->pdata.reset) { pdata 365 drivers/mfd/max14577.c struct max14577_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 374 drivers/mfd/max14577.c pdata = devm_kzalloc(&i2c->dev, sizeof(*pdata), GFP_KERNEL); pdata 375 drivers/mfd/max14577.c if (!pdata) pdata 377 drivers/mfd/max14577.c i2c->dev.platform_data = pdata; pdata 380 drivers/mfd/max14577.c if (!pdata) { pdata 189 drivers/mfd/max8907.c struct max8907_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 192 drivers/mfd/max8907.c if (pdata) pdata 193 drivers/mfd/max8907.c pm_off = pdata->pm_off; pdata 662 drivers/mfd/max8925-core.c struct max8925_platform_data *pdata) pdata 712 drivers/mfd/max8925-core.c if (!pdata->tsc_irq) { pdata 716 drivers/mfd/max8925-core.c chip->tsc_irq = pdata->tsc_irq; pdata 727 drivers/mfd/max8925-core.c struct max8925_platform_data *pdata) pdata 731 drivers/mfd/max8925-core.c if (!pdata) pdata 733 drivers/mfd/max8925-core.c if (pdata->sd1) { pdata 734 drivers/mfd/max8925-core.c reg_devs[0].platform_data = pdata->sd1; pdata 737 drivers/mfd/max8925-core.c if (pdata->sd2) { pdata 738 drivers/mfd/max8925-core.c reg_devs[1].platform_data = pdata->sd2; pdata 741 drivers/mfd/max8925-core.c if (pdata->sd3) { pdata 742 drivers/mfd/max8925-core.c reg_devs[2].platform_data = pdata->sd3; pdata 745 drivers/mfd/max8925-core.c if (pdata->ldo1) { pdata 746 drivers/mfd/max8925-core.c reg_devs[3].platform_data = pdata->ldo1; pdata 749 drivers/mfd/max8925-core.c if (pdata->ldo2) { pdata 750 drivers/mfd/max8925-core.c reg_devs[4].platform_data = pdata->ldo2; pdata 753 drivers/mfd/max8925-core.c if (pdata->ldo3) { pdata 754 drivers/mfd/max8925-core.c reg_devs[5].platform_data = pdata->ldo3; pdata 757 drivers/mfd/max8925-core.c if (pdata->ldo4) { pdata 758 drivers/mfd/max8925-core.c reg_devs[6].platform_data = pdata->ldo4; pdata 761 drivers/mfd/max8925-core.c if (pdata->ldo5) { pdata 762 drivers/mfd/max8925-core.c reg_devs[7].platform_data = pdata->ldo5; pdata 765 drivers/mfd/max8925-core.c if (pdata->ldo6) { pdata 766 drivers/mfd/max8925-core.c reg_devs[8].platform_data = pdata->ldo6; pdata 769 drivers/mfd/max8925-core.c if (pdata->ldo7) { pdata 770 drivers/mfd/max8925-core.c reg_devs[9].platform_data = pdata->ldo7; pdata 773 drivers/mfd/max8925-core.c if (pdata->ldo8) { pdata 774 drivers/mfd/max8925-core.c reg_devs[10].platform_data = pdata->ldo8; pdata 777 drivers/mfd/max8925-core.c if (pdata->ldo9) { pdata 778 drivers/mfd/max8925-core.c reg_devs[11].platform_data = pdata->ldo9; pdata 781 drivers/mfd/max8925-core.c if (pdata->ldo10) { pdata 782 drivers/mfd/max8925-core.c reg_devs[12].platform_data = pdata->ldo10; pdata 785 drivers/mfd/max8925-core.c if (pdata->ldo11) { pdata 786 drivers/mfd/max8925-core.c reg_devs[13].platform_data = pdata->ldo11; pdata 789 drivers/mfd/max8925-core.c if (pdata->ldo12) { pdata 790 drivers/mfd/max8925-core.c reg_devs[14].platform_data = pdata->ldo12; pdata 793 drivers/mfd/max8925-core.c if (pdata->ldo13) { pdata 794 drivers/mfd/max8925-core.c reg_devs[15].platform_data = pdata->ldo13; pdata 797 drivers/mfd/max8925-core.c if (pdata->ldo14) { pdata 798 drivers/mfd/max8925-core.c reg_devs[16].platform_data = pdata->ldo14; pdata 801 drivers/mfd/max8925-core.c if (pdata->ldo15) { pdata 802 drivers/mfd/max8925-core.c reg_devs[17].platform_data = pdata->ldo15; pdata 805 drivers/mfd/max8925-core.c if (pdata->ldo16) { pdata 806 drivers/mfd/max8925-core.c reg_devs[18].platform_data = pdata->ldo16; pdata 809 drivers/mfd/max8925-core.c if (pdata->ldo17) { pdata 810 drivers/mfd/max8925-core.c reg_devs[19].platform_data = pdata->ldo17; pdata 813 drivers/mfd/max8925-core.c if (pdata->ldo18) { pdata 814 drivers/mfd/max8925-core.c reg_devs[20].platform_data = pdata->ldo18; pdata 817 drivers/mfd/max8925-core.c if (pdata->ldo19) { pdata 818 drivers/mfd/max8925-core.c reg_devs[21].platform_data = pdata->ldo19; pdata 821 drivers/mfd/max8925-core.c if (pdata->ldo20) { pdata 822 drivers/mfd/max8925-core.c reg_devs[22].platform_data = pdata->ldo20; pdata 834 drivers/mfd/max8925-core.c struct max8925_platform_data *pdata) pdata 838 drivers/mfd/max8925-core.c max8925_irq_init(chip, chip->i2c->irq, pdata); pdata 840 drivers/mfd/max8925-core.c if (pdata && (pdata->power || pdata->touch)) { pdata 872 drivers/mfd/max8925-core.c init_regulator(chip, pdata); pdata 874 drivers/mfd/max8925-core.c if (pdata && pdata->backlight) { pdata 875 drivers/mfd/max8925-core.c bk_devs[0].platform_data = &pdata->backlight; pdata 894 drivers/mfd/max8925-core.c if (pdata && pdata->touch) { pdata 135 drivers/mfd/max8925-i2c.c struct max8925_platform_data *pdata) pdata 139 drivers/mfd/max8925-i2c.c ret = of_property_read_u32(np, "maxim,tsc-irq", &pdata->tsc_irq); pdata 150 drivers/mfd/max8925-i2c.c struct max8925_platform_data *pdata = dev_get_platdata(&client->dev); pdata 154 drivers/mfd/max8925-i2c.c if (node && !pdata) { pdata 156 drivers/mfd/max8925-i2c.c pdata = devm_kzalloc(&client->dev, pdata 159 drivers/mfd/max8925-i2c.c if (!pdata) pdata 162 drivers/mfd/max8925-i2c.c if (max8925_dt_init(node, &client->dev, pdata)) pdata 164 drivers/mfd/max8925-i2c.c } else if (!pdata) { pdata 196 drivers/mfd/max8925-i2c.c max8925_device_init(chip, pdata); pdata 160 drivers/mfd/max8997.c struct max8997_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 175 drivers/mfd/max8997.c pdata = max8997_i2c_parse_dt_pdata(max8997->dev); pdata 176 drivers/mfd/max8997.c if (IS_ERR(pdata)) pdata 177 drivers/mfd/max8997.c return PTR_ERR(pdata); pdata 180 drivers/mfd/max8997.c if (!pdata) pdata 183 drivers/mfd/max8997.c max8997->pdata = pdata; pdata 184 drivers/mfd/max8997.c max8997->ono = pdata->ono; pdata 170 drivers/mfd/max8998.c struct max8998_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 180 drivers/mfd/max8998.c pdata = max8998_i2c_parse_dt_pdata(&i2c->dev); pdata 181 drivers/mfd/max8998.c if (IS_ERR(pdata)) pdata 182 drivers/mfd/max8998.c return PTR_ERR(pdata); pdata 190 drivers/mfd/max8998.c max8998->pdata = pdata; pdata 191 drivers/mfd/max8998.c if (pdata) { pdata 192 drivers/mfd/max8998.c max8998->ono = pdata->ono; pdata 193 drivers/mfd/max8998.c max8998->irq_base = pdata->irq_base; pdata 194 drivers/mfd/max8998.c max8998->wakeup = pdata->wakeup; pdata 364 drivers/mfd/mc13xxx-core.c const char *format, void *pdata, size_t pdata_size) pdata 370 drivers/mfd/mc13xxx-core.c .platform_data = pdata, pdata 422 drivers/mfd/mc13xxx-core.c struct mc13xxx_platform_data *pdata = dev_get_platdata(dev); pdata 463 drivers/mfd/mc13xxx-core.c if (mc13xxx_probe_flags_dt(mc13xxx) < 0 && pdata) pdata 464 drivers/mfd/mc13xxx-core.c mc13xxx->flags = pdata->flags; pdata 466 drivers/mfd/mc13xxx-core.c if (pdata) { pdata 468 drivers/mfd/mc13xxx-core.c &pdata->regulators, sizeof(pdata->regulators)); pdata 470 drivers/mfd/mc13xxx-core.c pdata->leds, sizeof(*pdata->leds)); pdata 472 drivers/mfd/mc13xxx-core.c pdata->buttons, sizeof(*pdata->buttons)); pdata 475 drivers/mfd/mc13xxx-core.c pdata->codec, sizeof(*pdata->codec)); pdata 478 drivers/mfd/mc13xxx-core.c &pdata->touch, sizeof(pdata->touch)); pdata 188 drivers/mfd/mcp-core.c int mcp_host_add(struct mcp *mcp, void *pdata) pdata 190 drivers/mfd/mcp-core.c mcp->attached_device.platform_data = pdata; pdata 100 drivers/mfd/omap-usb-host.c struct usbhs_omap_platform_data *pdata; pdata 146 drivers/mfd/omap-usb-host.c struct resource *res, int num_resources, void *pdata, pdata 165 drivers/mfd/omap-usb-host.c ret = platform_device_add_data(child, pdata, pdata_size); pdata 193 drivers/mfd/omap-usb-host.c struct usbhs_omap_platform_data *pdata = dev_get_platdata(dev); pdata 216 drivers/mfd/omap-usb-host.c ehci = omap_usbhs_alloc_child(OMAP_EHCI_DEVICE, resources, 2, pdata, pdata 217 drivers/mfd/omap-usb-host.c sizeof(*pdata), dev); pdata 241 drivers/mfd/omap-usb-host.c ohci = omap_usbhs_alloc_child(OMAP_OHCI_DEVICE, resources, 2, pdata, pdata 242 drivers/mfd/omap-usb-host.c sizeof(*pdata), dev); pdata 281 drivers/mfd/omap-usb-host.c struct usbhs_omap_platform_data *pdata = omap->pdata; pdata 286 drivers/mfd/omap-usb-host.c omap_tll_enable(pdata); pdata 292 drivers/mfd/omap-usb-host.c switch (pdata->port_mode[i]) { pdata 334 drivers/mfd/omap-usb-host.c struct usbhs_omap_platform_data *pdata = omap->pdata; pdata 340 drivers/mfd/omap-usb-host.c switch (pdata->port_mode[i]) { pdata 361 drivers/mfd/omap-usb-host.c omap_tll_disable(pdata); pdata 369 drivers/mfd/omap-usb-host.c struct usbhs_omap_platform_data *pdata = omap->pdata; pdata 373 drivers/mfd/omap-usb-host.c switch (pdata->port_mode[i]) { pdata 378 drivers/mfd/omap-usb-host.c if (pdata->single_ulpi_bypass) pdata 388 drivers/mfd/omap-usb-host.c if (pdata->single_ulpi_bypass) pdata 400 drivers/mfd/omap-usb-host.c if (pdata->single_ulpi_bypass) { pdata 405 drivers/mfd/omap-usb-host.c if (is_ehci_phy_mode(pdata->port_mode[i])) { pdata 418 drivers/mfd/omap-usb-host.c struct usbhs_omap_platform_data *pdata = omap->pdata; pdata 425 drivers/mfd/omap-usb-host.c if (is_ehci_tll_mode(pdata->port_mode[i]) || pdata 426 drivers/mfd/omap-usb-host.c (is_ohci_port(pdata->port_mode[i]))) pdata 428 drivers/mfd/omap-usb-host.c else if (is_ehci_hsic_mode(pdata->port_mode[i])) pdata 473 drivers/mfd/omap-usb-host.c struct usbhs_omap_platform_data *pdata) pdata 478 drivers/mfd/omap-usb-host.c ret = of_property_read_u32(node, "num-ports", &pdata->nports); pdata 480 drivers/mfd/omap-usb-host.c pdata->nports = 0; pdata 482 drivers/mfd/omap-usb-host.c if (pdata->nports > OMAP3_HS_USB_PORTS) { pdata 484 drivers/mfd/omap-usb-host.c pdata->nports, OMAP3_HS_USB_PORTS); pdata 493 drivers/mfd/omap-usb-host.c pdata->port_mode[i] = OMAP_USBHS_PORT_MODE_UNUSED; pdata 509 drivers/mfd/omap-usb-host.c pdata->port_mode[i] = ret; pdata 513 drivers/mfd/omap-usb-host.c pdata->single_ulpi_bypass = of_property_read_bool(node, pdata 533 drivers/mfd/omap-usb-host.c struct usbhs_omap_platform_data *pdata = dev_get_platdata(dev); pdata 542 drivers/mfd/omap-usb-host.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 543 drivers/mfd/omap-usb-host.c if (!pdata) pdata 546 drivers/mfd/omap-usb-host.c ret = usbhs_omap_get_dt_pdata(dev, pdata); pdata 550 drivers/mfd/omap-usb-host.c dev->platform_data = pdata; pdata 553 drivers/mfd/omap-usb-host.c if (!pdata) { pdata 558 drivers/mfd/omap-usb-host.c if (pdata->nports > OMAP3_HS_USB_PORTS) { pdata 560 drivers/mfd/omap-usb-host.c pdata->nports, OMAP3_HS_USB_PORTS); pdata 575 drivers/mfd/omap-usb-host.c omap->pdata = pdata; pdata 578 drivers/mfd/omap-usb-host.c omap_tll_init(pdata); pdata 596 drivers/mfd/omap-usb-host.c if (pdata->nports) { pdata 597 drivers/mfd/omap-usb-host.c omap->nports = pdata->nports; pdata 613 drivers/mfd/omap-usb-host.c pdata->nports = omap->nports; pdata 645 drivers/mfd/omap-usb-host.c if (is_ehci_phy_mode(pdata->port_mode[i]) || pdata 646 drivers/mfd/omap-usb-host.c is_ehci_tll_mode(pdata->port_mode[i]) || pdata 647 drivers/mfd/omap-usb-host.c is_ehci_hsic_mode(pdata->port_mode[i])) pdata 741 drivers/mfd/omap-usb-host.c if (is_ehci_phy_mode(pdata->port_mode[0])) { pdata 749 drivers/mfd/omap-usb-host.c } else if (is_ehci_tll_mode(pdata->port_mode[0])) { pdata 759 drivers/mfd/omap-usb-host.c if (is_ehci_phy_mode(pdata->port_mode[1])) { pdata 767 drivers/mfd/omap-usb-host.c } else if (is_ehci_tll_mode(pdata->port_mode[1])) { pdata 314 drivers/mfd/omap-usb-tll.c int omap_tll_init(struct usbhs_omap_platform_data *pdata) pdata 330 drivers/mfd/omap-usb-tll.c needs_tll |= omap_usb_mode_needs_tll(pdata->port_mode[i]); pdata 348 drivers/mfd/omap-usb-tll.c if (is_ohci_port(pdata->port_mode[i])) { pdata 349 drivers/mfd/omap-usb-tll.c reg |= ohci_omap3_fslsmode(pdata->port_mode[i]) pdata 352 drivers/mfd/omap-usb-tll.c } else if (pdata->port_mode[i] == pdata 362 drivers/mfd/omap-usb-tll.c } else if (pdata->port_mode[i] == pdata 390 drivers/mfd/omap-usb-tll.c int omap_tll_enable(struct usbhs_omap_platform_data *pdata) pdata 404 drivers/mfd/omap-usb-tll.c if (omap_usb_mode_needs_tll(pdata->port_mode[i])) { pdata 424 drivers/mfd/omap-usb-tll.c int omap_tll_disable(struct usbhs_omap_platform_data *pdata) pdata 436 drivers/mfd/omap-usb-tll.c if (omap_usb_mode_needs_tll(pdata->port_mode[i])) { pdata 1 drivers/mfd/omap-usb.h extern int omap_tll_init(struct usbhs_omap_platform_data *pdata); pdata 2 drivers/mfd/omap-usb.h extern int omap_tll_enable(struct usbhs_omap_platform_data *pdata); pdata 3 drivers/mfd/omap-usb.h extern int omap_tll_disable(struct usbhs_omap_platform_data *pdata); pdata 376 drivers/mfd/palmas.c struct palmas_platform_data *pdata) pdata 384 drivers/mfd/palmas.c pdata->irq_flags = irqd_get_trigger_type(irq_data); pdata 385 drivers/mfd/palmas.c dev_info(&i2c->dev, "Irq flag is 0x%08x\n", pdata->irq_flags); pdata 390 drivers/mfd/palmas.c struct palmas_platform_data *pdata) pdata 398 drivers/mfd/palmas.c pdata->mux_from_pdata = 1; pdata 399 drivers/mfd/palmas.c pdata->pad1 = prop; pdata 404 drivers/mfd/palmas.c pdata->mux_from_pdata = 1; pdata 405 drivers/mfd/palmas.c pdata->pad2 = prop; pdata 411 drivers/mfd/palmas.c pdata->power_ctrl = prop; pdata 413 drivers/mfd/palmas.c pdata->power_ctrl = PALMAS_POWER_CTRL_NSLEEP_MASK | pdata 417 drivers/mfd/palmas.c palmas_set_pdata_irq_flag(i2c, pdata); pdata 419 drivers/mfd/palmas.c pdata->pm_off = of_property_read_bool(node, pdata 509 drivers/mfd/palmas.c struct palmas_platform_data *pdata; pdata 517 drivers/mfd/palmas.c pdata = dev_get_platdata(&i2c->dev); pdata 519 drivers/mfd/palmas.c if (node && !pdata) { pdata 520 drivers/mfd/palmas.c pdata = devm_kzalloc(&i2c->dev, sizeof(*pdata), GFP_KERNEL); pdata 522 drivers/mfd/palmas.c if (!pdata) pdata 525 drivers/mfd/palmas.c palmas_dt_to_pdata(i2c, pdata); pdata 528 drivers/mfd/palmas.c if (!pdata) pdata 579 drivers/mfd/palmas.c if (pdata->irq_flags & IRQ_TYPE_LEVEL_HIGH) pdata 599 drivers/mfd/palmas.c IRQF_ONESHOT | pdata->irq_flags, 0, pdata 609 drivers/mfd/palmas.c if (pdata->mux_from_pdata) { pdata 610 drivers/mfd/palmas.c reg = pdata->pad1; pdata 644 drivers/mfd/palmas.c if (pdata->mux_from_pdata) { pdata 645 drivers/mfd/palmas.c reg = pdata->pad2; pdata 668 drivers/mfd/palmas.c reg = pdata->power_ctrl; pdata 685 drivers/mfd/palmas.c } else if (pdata->pm_off && !pm_power_off) { pdata 191 drivers/mfd/pcf50633-core.c struct pcf50633_platform_data *pdata = dev_get_platdata(&client->dev); pdata 206 drivers/mfd/pcf50633-core.c pcf->pdata = pdata; pdata 246 drivers/mfd/pcf50633-core.c ret = platform_device_add_data(pdev, &pdata->reg_init_data[i], pdata 247 drivers/mfd/pcf50633-core.c sizeof(pdata->reg_init_data[i])); pdata 262 drivers/mfd/pcf50633-core.c if (pdata->probe_done) pdata 263 drivers/mfd/pcf50633-core.c pdata->probe_done(pcf); pdata 160 drivers/mfd/pcf50633-irq.c if (pcf->pdata->force_shutdown) pdata 161 drivers/mfd/pcf50633-irq.c pcf->pdata->force_shutdown(pcf); pdata 201 drivers/mfd/pcf50633-irq.c pcf->pdata->resumers[i]; pdata 245 drivers/mfd/pcf50633-irq.c res[i] = ~pcf->pdata->resumers[i]; pdata 153 drivers/mfd/rc5t583.c struct rc5t583_platform_data *pdata) pdata 160 drivers/mfd/rc5t583.c if (pdata->enable_shutdown) pdata 240 drivers/mfd/rc5t583.c struct rc5t583_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 243 drivers/mfd/rc5t583.c if (!pdata) { pdata 262 drivers/mfd/rc5t583.c ret = rc5t583_clear_ext_power_req(rc5t583, pdata); pdata 267 drivers/mfd/rc5t583.c ret = rc5t583_irq_init(rc5t583, i2c->irq, pdata->irq_base); pdata 268 drivers/mfd/sec-core.c if (sec_pmic->pdata->disable_wrstbi) { pdata 340 drivers/mfd/sec-core.c struct sec_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 359 drivers/mfd/sec-core.c pdata = sec_pmic_i2c_parse_dt_pdata(sec_pmic->dev); pdata 360 drivers/mfd/sec-core.c if (IS_ERR(pdata)) { pdata 361 drivers/mfd/sec-core.c ret = PTR_ERR(pdata); pdata 364 drivers/mfd/sec-core.c pdata->device_type = device_type; pdata 366 drivers/mfd/sec-core.c if (pdata) { pdata 367 drivers/mfd/sec-core.c sec_pmic->device_type = pdata->device_type; pdata 368 drivers/mfd/sec-core.c sec_pmic->irq_base = pdata->irq_base; pdata 369 drivers/mfd/sec-core.c sec_pmic->wakeup = pdata->wakeup; pdata 370 drivers/mfd/sec-core.c sec_pmic->pdata = pdata; pdata 411 drivers/mfd/sec-core.c if (pdata && pdata->cfg_pmic_irq) pdata 412 drivers/mfd/sec-core.c pdata->cfg_pmic_irq(); pdata 477 drivers/mfd/sec-core.c if (!sec_pmic->pdata->manual_poweroff) pdata 686 drivers/mfd/si476x-i2c.c struct si476x_platform_data *pdata; pdata 710 drivers/mfd/si476x-i2c.c pdata = dev_get_platdata(&client->dev); pdata 711 drivers/mfd/si476x-i2c.c if (pdata) { pdata 713 drivers/mfd/si476x-i2c.c &pdata->power_up_parameters, pdata 717 drivers/mfd/si476x-i2c.c if (gpio_is_valid(pdata->gpio_reset)) { pdata 718 drivers/mfd/si476x-i2c.c rval = gpio_request(pdata->gpio_reset, "si476x reset"); pdata 724 drivers/mfd/si476x-i2c.c core->gpio_reset = pdata->gpio_reset; pdata 728 drivers/mfd/si476x-i2c.c core->diversity_mode = pdata->diversity_mode; pdata 729 drivers/mfd/si476x-i2c.c memcpy(&core->pinmux, &pdata->pinmux, pdata 28 drivers/mfd/sky81452.c const struct sky81452_platform_data *pdata = dev_get_platdata(dev); pdata 33 drivers/mfd/sky81452.c if (!pdata) { pdata 34 drivers/mfd/sky81452.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 35 drivers/mfd/sky81452.c if (!pdata) pdata 50 drivers/mfd/sky81452.c cells[0].platform_data = pdata->bl_pdata; pdata 51 drivers/mfd/sky81452.c cells[0].pdata_size = sizeof(*pdata->bl_pdata); pdata 53 drivers/mfd/sky81452.c cells[1].platform_data = pdata->regulator_init_data; pdata 54 drivers/mfd/sky81452.c cells[1].pdata_size = sizeof(*pdata->regulator_init_data); pdata 1016 drivers/mfd/sm501.c struct sm501_platdata *pdata = sm->platdata; pdata 1018 drivers/mfd/sm501.c int base = pdata->gpio_base; pdata 1187 drivers/mfd/sm501.c struct sm501_platdata *pdata) pdata 1189 drivers/mfd/sm501.c struct sm501_platdata_gpio_i2c *iic = pdata->gpio_i2c; pdata 1193 drivers/mfd/sm501.c for (index = 0; index < pdata->gpio_i2c_nr; index++, iic++) { pdata 1309 drivers/mfd/sm501.c struct sm501_platdata *pdata; pdata 1348 drivers/mfd/sm501.c pdata = sm->platdata; pdata 1349 drivers/mfd/sm501.c idata = pdata ? pdata->init : NULL; pdata 1362 drivers/mfd/sm501.c if (pdata && pdata->gpio_i2c && pdata->gpio_i2c_nr > 0) { pdata 1366 drivers/mfd/sm501.c sm501_register_gpio_i2c(sm, pdata); pdata 160 drivers/mfd/sprd-sc27xx-spi.c const struct sprd_pmic_data *pdata; pdata 163 drivers/mfd/sprd-sc27xx-spi.c pdata = of_device_get_match_data(&spi->dev); pdata 164 drivers/mfd/sprd-sc27xx-spi.c if (!pdata) { pdata 187 drivers/mfd/sprd-sc27xx-spi.c pdata->irq_base + SPRD_PMIC_INT_MASK_STATUS; pdata 188 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.mask_base = pdata->irq_base + SPRD_PMIC_INT_EN; pdata 191 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.num_irqs = pdata->num_irqs; pdata 195 drivers/mfd/sprd-sc27xx-spi.c pdata->num_irqs, sizeof(struct regmap_irq), pdata 201 drivers/mfd/sprd-sc27xx-spi.c for (i = 0; i < pdata->num_irqs; i++) { pdata 202 drivers/mfd/sprd-sc27xx-spi.c ddata->irqs[i].reg_offset = i / pdata->num_irqs; pdata 203 drivers/mfd/sprd-sc27xx-spi.c ddata->irqs[i].mask = BIT(i % pdata->num_irqs); pdata 1236 drivers/mfd/stmpe.c unsigned int irq_trigger = stmpe->pdata->irq_trigger; pdata 1237 drivers/mfd/stmpe.c int autosleep_timeout = stmpe->pdata->autosleep_timeout; pdata 1288 drivers/mfd/stmpe.c if (stmpe->pdata->autosleep) { pdata 1299 drivers/mfd/stmpe.c return mfd_add_devices(stmpe->dev, stmpe->pdata->id, cell, 1, pdata 1306 drivers/mfd/stmpe.c unsigned int platform_blocks = stmpe->pdata->blocks; pdata 1339 drivers/mfd/stmpe.c static void stmpe_of_probe(struct stmpe_platform_data *pdata, pdata 1344 drivers/mfd/stmpe.c pdata->id = of_alias_get_id(np, "stmpe-i2c"); pdata 1345 drivers/mfd/stmpe.c if (pdata->id < 0) pdata 1346 drivers/mfd/stmpe.c pdata->id = -1; pdata 1348 drivers/mfd/stmpe.c pdata->irq_gpio = of_get_named_gpio_flags(np, "irq-gpio", 0, pdata 1349 drivers/mfd/stmpe.c &pdata->irq_trigger); pdata 1350 drivers/mfd/stmpe.c if (gpio_is_valid(pdata->irq_gpio)) pdata 1351 drivers/mfd/stmpe.c pdata->irq_over_gpio = 1; pdata 1353 drivers/mfd/stmpe.c pdata->irq_trigger = IRQF_TRIGGER_NONE; pdata 1356 drivers/mfd/stmpe.c &pdata->autosleep_timeout); pdata 1358 drivers/mfd/stmpe.c pdata->autosleep = (pdata->autosleep_timeout) ? true : false; pdata 1362 drivers/mfd/stmpe.c pdata->blocks |= STMPE_BLOCK_GPIO; pdata 1364 drivers/mfd/stmpe.c pdata->blocks |= STMPE_BLOCK_KEYPAD; pdata 1366 drivers/mfd/stmpe.c pdata->blocks |= STMPE_BLOCK_TOUCHSCREEN; pdata 1368 drivers/mfd/stmpe.c pdata->blocks |= STMPE_BLOCK_ADC; pdata 1370 drivers/mfd/stmpe.c pdata->blocks |= STMPE_BLOCK_PWM; pdata 1372 drivers/mfd/stmpe.c pdata->blocks |= STMPE_BLOCK_ROTATOR; pdata 1380 drivers/mfd/stmpe.c struct stmpe_platform_data *pdata; pdata 1386 drivers/mfd/stmpe.c pdata = devm_kzalloc(ci->dev, sizeof(*pdata), GFP_KERNEL); pdata 1387 drivers/mfd/stmpe.c if (!pdata) pdata 1390 drivers/mfd/stmpe.c stmpe_of_probe(pdata, np); pdata 1413 drivers/mfd/stmpe.c stmpe->pdata = pdata; pdata 1436 drivers/mfd/stmpe.c if (pdata->irq_over_gpio) { pdata 1437 drivers/mfd/stmpe.c ret = devm_gpio_request_one(ci->dev, pdata->irq_gpio, pdata 1445 drivers/mfd/stmpe.c stmpe->irq = gpio_to_irq(pdata->irq_gpio); pdata 1462 drivers/mfd/stmpe.c } else if (pdata->irq_trigger == IRQF_TRIGGER_NONE) { pdata 1463 drivers/mfd/stmpe.c pdata->irq_trigger = irq_get_trigger_type(stmpe->irq); pdata 1476 drivers/mfd/stmpe.c stmpe_irq, pdata->irq_trigger | IRQF_ONESHOT, pdata 231 drivers/mfd/syscon.c struct syscon_platform_data *pdata = dev_get_platdata(dev); pdata 250 drivers/mfd/syscon.c if (pdata) pdata 251 drivers/mfd/syscon.c syscon_config.name = pdata->label; pdata 272 drivers/mfd/t7l66xb.c struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev); pdata 274 drivers/mfd/t7l66xb.c if (pdata && pdata->suspend) pdata 275 drivers/mfd/t7l66xb.c pdata->suspend(dev); pdata 284 drivers/mfd/t7l66xb.c struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev); pdata 291 drivers/mfd/t7l66xb.c if (pdata && pdata->resume) pdata 292 drivers/mfd/t7l66xb.c pdata->resume(dev); pdata 308 drivers/mfd/t7l66xb.c struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev); pdata 313 drivers/mfd/t7l66xb.c if (!pdata) pdata 334 drivers/mfd/t7l66xb.c t7l66xb->irq_base = pdata->irq_base; pdata 368 drivers/mfd/t7l66xb.c if (pdata->enable) pdata 369 drivers/mfd/t7l66xb.c pdata->enable(dev); pdata 380 drivers/mfd/t7l66xb.c t7l66xb_cells[T7L66XB_CELL_NAND].platform_data = pdata->nand_data; pdata 381 drivers/mfd/t7l66xb.c t7l66xb_cells[T7L66XB_CELL_NAND].pdata_size = sizeof(*pdata->nand_data); pdata 408 drivers/mfd/t7l66xb.c struct t7l66xb_platform_data *pdata = dev_get_platdata(&dev->dev); pdata 412 drivers/mfd/t7l66xb.c ret = pdata->disable(dev); pdata 287 drivers/mfd/tc3589x.c unsigned int blocks = tc3589x->pdata->block; pdata 332 drivers/mfd/tc3589x.c struct tc3589x_platform_data *pdata; pdata 336 drivers/mfd/tc3589x.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 337 drivers/mfd/tc3589x.c if (!pdata) pdata 347 drivers/mfd/tc3589x.c pdata->block |= TC3589x_BLOCK_GPIO; pdata 349 drivers/mfd/tc3589x.c pdata->block |= TC3589x_BLOCK_KEYPAD; pdata 352 drivers/mfd/tc3589x.c return pdata; pdata 359 drivers/mfd/tc3589x.c struct tc3589x_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 364 drivers/mfd/tc3589x.c if (!pdata) { pdata 365 drivers/mfd/tc3589x.c pdata = tc3589x_of_probe(&i2c->dev, &version); pdata 366 drivers/mfd/tc3589x.c if (IS_ERR(pdata)) { pdata 368 drivers/mfd/tc3589x.c return PTR_ERR(pdata); pdata 388 drivers/mfd/tc3589x.c tc3589x->pdata = pdata; pdata 47 drivers/mfd/tc6387xb.c struct tc6387xb_platform_data *pdata = dev_get_platdata(&dev->dev); pdata 49 drivers/mfd/tc6387xb.c if (pdata && pdata->suspend) pdata 50 drivers/mfd/tc6387xb.c pdata->suspend(dev); pdata 59 drivers/mfd/tc6387xb.c struct tc6387xb_platform_data *pdata = dev_get_platdata(&dev->dev); pdata 62 drivers/mfd/tc6387xb.c if (pdata && pdata->resume) pdata 63 drivers/mfd/tc6387xb.c pdata->resume(dev); pdata 135 drivers/mfd/tc6387xb.c struct tc6387xb_platform_data *pdata = dev_get_platdata(&dev->dev); pdata 180 drivers/mfd/tc6387xb.c if (pdata && pdata->enable) pdata 181 drivers/mfd/tc6387xb.c pdata->enable(dev); pdata 98 drivers/mfd/tps6105x.c struct tps6105x_platform_data *pdata; pdata 101 drivers/mfd/tps6105x.c pdata = dev_get_platdata(&client->dev); pdata 102 drivers/mfd/tps6105x.c if (!pdata) { pdata 117 drivers/mfd/tps6105x.c tps6105x->pdata = pdata; pdata 129 drivers/mfd/tps6105x.c switch (pdata->mode) { pdata 144 drivers/mfd/tps6105x.c dev_warn(&client->dev, "invalid mode: %d\n", pdata->mode); pdata 170 drivers/mfd/tps65090.c struct tps65090_platform_data *pdata = dev_get_platdata(&client->dev); pdata 175 drivers/mfd/tps65090.c if (!pdata && !client->dev.of_node) { pdata 181 drivers/mfd/tps65090.c if (pdata) pdata 182 drivers/mfd/tps65090.c irq_base = pdata->irq_base; pdata 384 drivers/mfd/tps6586x.c struct tps6586x_platform_data *pdata) pdata 390 drivers/mfd/tps6586x.c for (i = 0; i < pdata->num_subdevs; i++) { pdata 391 drivers/mfd/tps6586x.c subdev = &pdata->subdevs[i]; pdata 420 drivers/mfd/tps6586x.c struct tps6586x_platform_data *pdata; pdata 422 drivers/mfd/tps6586x.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 423 drivers/mfd/tps6586x.c if (!pdata) pdata 426 drivers/mfd/tps6586x.c pdata->num_subdevs = 0; pdata 427 drivers/mfd/tps6586x.c pdata->subdevs = NULL; pdata 428 drivers/mfd/tps6586x.c pdata->gpio_base = -1; pdata 429 drivers/mfd/tps6586x.c pdata->irq_base = -1; pdata 430 drivers/mfd/tps6586x.c pdata->pm_off = of_property_read_bool(np, "ti,system-power-controller"); pdata 432 drivers/mfd/tps6586x.c return pdata; pdata 504 drivers/mfd/tps6586x.c struct tps6586x_platform_data *pdata = dev_get_platdata(&client->dev); pdata 509 drivers/mfd/tps6586x.c if (!pdata && client->dev.of_node) pdata 510 drivers/mfd/tps6586x.c pdata = tps6586x_parse_dt(client); pdata 512 drivers/mfd/tps6586x.c if (!pdata) { pdata 545 drivers/mfd/tps6586x.c pdata->irq_base); pdata 560 drivers/mfd/tps6586x.c ret = tps6586x_add_subdevs(tps6586x, pdata); pdata 566 drivers/mfd/tps6586x.c if (pdata->pm_off && !pm_power_off) { pdata 223 drivers/mfd/tps65910.c struct tps65910_platform_data *pdata) pdata 233 drivers/mfd/tps65910.c if (!pdata) { pdata 250 drivers/mfd/tps65910.c IRQF_ONESHOT, pdata->irq_base, pdata 116 drivers/mfd/tps65911-comparator.c struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); pdata 119 drivers/mfd/tps65911-comparator.c ret = comp_threshold_set(tps65910, COMP1, pdata->vmbch_threshold); pdata 125 drivers/mfd/tps65911-comparator.c ret = comp_threshold_set(tps65910, COMP2, pdata->vmbch2_threshold); pdata 219 drivers/mfd/tps80031.c struct tps80031_platform_data *pdata) pdata 221 drivers/mfd/tps80031.c struct tps80031_pupd_init_data *pupd_init_data = pdata->pupd_init_data; pdata 222 drivers/mfd/tps80031.c int data_size = pdata->pupd_init_data_size; pdata 243 drivers/mfd/tps80031.c struct tps80031_platform_data *pdata) pdata 420 drivers/mfd/tps80031.c struct tps80031_platform_data *pdata = dev_get_platdata(&client->dev); pdata 427 drivers/mfd/tps80031.c if (!pdata) { pdata 481 drivers/mfd/tps80031.c ret = tps80031_irq_init(tps80031, client->irq, pdata->irq_base); pdata 487 drivers/mfd/tps80031.c tps80031_pupd_init(tps80031, pdata); pdata 489 drivers/mfd/tps80031.c tps80031_init_ext_control(tps80031, pdata); pdata 500 drivers/mfd/tps80031.c if (pdata->use_power_off && !pm_power_off) { pdata 596 drivers/mfd/twl-core.c void *pdata, unsigned pdata_len, pdata 616 drivers/mfd/twl-core.c if (pdata) { pdata 617 drivers/mfd/twl-core.c status = platform_device_add_data(pdev, pdata, pdata_len); pdata 652 drivers/mfd/twl-core.c void *pdata, unsigned pdata_len, pdata 655 drivers/mfd/twl-core.c return add_numbered_child(mod_no, name, -1, pdata, pdata_len, pdata 660 drivers/mfd/twl-core.c add_regulator_linked(int num, struct regulator_init_data *pdata, pdata 667 drivers/mfd/twl-core.c if (!pdata) pdata 671 drivers/mfd/twl-core.c pdata->consumer_supplies = consumers; pdata 672 drivers/mfd/twl-core.c pdata->num_consumer_supplies = num_consumers; pdata 675 drivers/mfd/twl-core.c if (pdata->driver_data) { pdata 678 drivers/mfd/twl-core.c tmp = pdata->driver_data; pdata 686 drivers/mfd/twl-core.c pdata->driver_data = &drv_data; pdata 691 drivers/mfd/twl-core.c pdata, sizeof(*pdata), false, 0, 0); pdata 695 drivers/mfd/twl-core.c add_regulator(int num, struct regulator_init_data *pdata, pdata 698 drivers/mfd/twl-core.c return add_regulator_linked(num, pdata, NULL, 0, features); pdata 708 drivers/mfd/twl-core.c add_children(struct twl4030_platform_data *pdata, unsigned irq_base, pdata 713 drivers/mfd/twl-core.c if (IS_ENABLED(CONFIG_GPIO_TWL4030) && pdata->gpio) { pdata 715 drivers/mfd/twl-core.c pdata->gpio, sizeof(*pdata->gpio), pdata 721 drivers/mfd/twl-core.c if (IS_ENABLED(CONFIG_KEYBOARD_TWL4030) && pdata->keypad) { pdata 723 drivers/mfd/twl-core.c pdata->keypad, sizeof(*pdata->keypad), pdata 729 drivers/mfd/twl-core.c if (IS_ENABLED(CONFIG_TWL4030_MADC) && pdata->madc && pdata 732 drivers/mfd/twl-core.c pdata->madc, sizeof(*pdata->madc), pdata 766 drivers/mfd/twl-core.c if (IS_ENABLED(CONFIG_TWL4030_USB) && pdata->usb && pdata 812 drivers/mfd/twl-core.c pdata->usb, sizeof(*pdata->usb), true, pdata 842 drivers/mfd/twl-core.c if (IS_ENABLED(CONFIG_MFD_TWL4030_AUDIO) && pdata->audio && pdata 845 drivers/mfd/twl-core.c pdata->audio, sizeof(*pdata->audio), pdata 853 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VPLL1, pdata->vpll1, pdata 858 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VIO, pdata->vio, pdata 863 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VDD1, pdata->vdd1, pdata 868 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VDD2, pdata->vdd2, pdata 873 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VMMC1, pdata->vmmc1, pdata 878 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VDAC, pdata->vdac, pdata 886 drivers/mfd/twl-core.c pdata->vaux2, features); pdata 890 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VINTANA1, pdata->vintana1, pdata 895 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VINTANA2, pdata->vintana2, pdata 900 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VINTDIG, pdata->vintdig, pdata 909 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VPLL2, pdata->vpll2, pdata 914 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VMMC2, pdata->vmmc2, pdata 919 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VSIM, pdata->vsim, pdata 924 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VAUX1, pdata->vaux1, pdata 929 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VAUX3, pdata->vaux3, pdata 934 drivers/mfd/twl-core.c child = add_regulator(TWL4030_REG_VAUX4, pdata->vaux4, pdata 940 drivers/mfd/twl-core.c if (IS_ENABLED(CONFIG_CHARGER_TWL4030) && pdata->bci && pdata 943 drivers/mfd/twl-core.c pdata->bci, sizeof(*pdata->bci), false, pdata 951 drivers/mfd/twl-core.c if (IS_ENABLED(CONFIG_TWL4030_POWER) && pdata->power) { pdata 953 drivers/mfd/twl-core.c pdata->power, sizeof(*pdata->power), false, pdata 1070 drivers/mfd/twl-core.c struct twl4030_platform_data *pdata = dev_get_platdata(&client->dev); pdata 1078 drivers/mfd/twl-core.c if (!node && !pdata) { pdata 1168 drivers/mfd/twl-core.c clocks_init(&client->dev, pdata ? pdata->clock : NULL); pdata 1217 drivers/mfd/twl-core.c if (pdata) pdata 1218 drivers/mfd/twl-core.c twl_auxdata_lookup[0].platform_data = pdata->gpio; pdata 1222 drivers/mfd/twl-core.c status = add_children(pdata, irq_base, id->driver_data); pdata 147 drivers/mfd/twl4030-audio.c static bool twl4030_audio_has_codec(struct twl4030_audio_data *pdata, pdata 152 drivers/mfd/twl4030-audio.c if (pdata && pdata->codec) pdata 164 drivers/mfd/twl4030-audio.c static bool twl4030_audio_has_vibra(struct twl4030_audio_data *pdata, pdata 169 drivers/mfd/twl4030-audio.c if (pdata && pdata->vibra) pdata 181 drivers/mfd/twl4030-audio.c struct twl4030_audio_data *pdata = dev_get_platdata(&pdev->dev); pdata 187 drivers/mfd/twl4030-audio.c if (!pdata && !node) { pdata 225 drivers/mfd/twl4030-audio.c if (twl4030_audio_has_codec(pdata, node)) { pdata 228 drivers/mfd/twl4030-audio.c if (pdata) { pdata 229 drivers/mfd/twl4030-audio.c cell->platform_data = pdata->codec; pdata 230 drivers/mfd/twl4030-audio.c cell->pdata_size = sizeof(*pdata->codec); pdata 234 drivers/mfd/twl4030-audio.c if (twl4030_audio_has_vibra(pdata, node)) { pdata 237 drivers/mfd/twl4030-audio.c if (pdata) { pdata 238 drivers/mfd/twl4030-audio.c cell->platform_data = pdata->vibra; pdata 239 drivers/mfd/twl4030-audio.c cell->pdata_size = sizeof(*pdata->vibra); pdata 267 drivers/mfd/twl4030-power.c twl4030_config_wakeup12_sequence(const struct twl4030_power_data *pdata, pdata 297 drivers/mfd/twl4030-power.c if (pdata->ac_charger_quirk || machine_is_omap_3430sdp() || pdata 464 drivers/mfd/twl4030-power.c static int load_twl4030_script(const struct twl4030_power_data *pdata, pdata 493 drivers/mfd/twl4030-power.c err = twl4030_config_wakeup12_sequence(pdata, address); pdata 564 drivers/mfd/twl4030-power.c twl4030_power_configure_scripts(const struct twl4030_power_data *pdata) pdata 570 drivers/mfd/twl4030-power.c for (i = 0; i < pdata->num; i++) { pdata 571 drivers/mfd/twl4030-power.c err = load_twl4030_script(pdata, pdata->scripts[i], address); pdata 574 drivers/mfd/twl4030-power.c address += pdata->scripts[i]->size; pdata 598 drivers/mfd/twl4030-power.c twl4030_power_configure_resources(const struct twl4030_power_data *pdata) pdata 600 drivers/mfd/twl4030-power.c struct twl4030_resconfig *resconfig = pdata->resource_config; pdata 601 drivers/mfd/twl4030-power.c struct twl4030_resconfig *boardconf = pdata->board_config; pdata 677 drivers/mfd/twl4030-power.c static bool twl4030_power_use_poweroff(const struct twl4030_power_data *pdata, pdata 680 drivers/mfd/twl4030-power.c if (pdata && pdata->use_poweroff) pdata 884 drivers/mfd/twl4030-power.c const struct twl4030_power_data *pdata = dev_get_platdata(&pdev->dev); pdata 891 drivers/mfd/twl4030-power.c if (!pdata && !node) { pdata 910 drivers/mfd/twl4030-power.c pdata = match->data; pdata 912 drivers/mfd/twl4030-power.c if (pdata) { pdata 913 drivers/mfd/twl4030-power.c err = twl4030_power_configure_scripts(pdata); pdata 918 drivers/mfd/twl4030-power.c err = twl4030_power_configure_resources(pdata); pdata 926 drivers/mfd/twl4030-power.c if (twl4030_power_use_poweroff(pdata, node) && !pm_power_off) { pdata 123 drivers/mfd/twl6030-irq.c struct twl6030_irq *pdata = container_of(notifier, struct twl6030_irq, pdata 128 drivers/mfd/twl6030-irq.c chained_wakeups = atomic_read(&pdata->wakeirqs); pdata 130 drivers/mfd/twl6030-irq.c if (chained_wakeups && !pdata->irq_wake_enabled) { pdata 131 drivers/mfd/twl6030-irq.c if (enable_irq_wake(pdata->twl_irq)) pdata 134 drivers/mfd/twl6030-irq.c pdata->irq_wake_enabled = true; pdata 135 drivers/mfd/twl6030-irq.c } else if (!chained_wakeups && pdata->irq_wake_enabled) { pdata 136 drivers/mfd/twl6030-irq.c disable_irq_wake(pdata->twl_irq); pdata 137 drivers/mfd/twl6030-irq.c pdata->irq_wake_enabled = false; pdata 140 drivers/mfd/twl6030-irq.c disable_irq(pdata->twl_irq); pdata 144 drivers/mfd/twl6030-irq.c enable_irq(pdata->twl_irq); pdata 168 drivers/mfd/twl6030-irq.c struct twl6030_irq *pdata = data; pdata 190 drivers/mfd/twl6030-irq.c irq_find_mapping(pdata->irq_domain, pdata 191 drivers/mfd/twl6030-irq.c pdata->irq_mapping_tbl[i]); pdata 221 drivers/mfd/twl6030-irq.c struct twl6030_irq *pdata = irq_data_get_irq_chip_data(d); pdata 224 drivers/mfd/twl6030-irq.c atomic_inc(&pdata->wakeirqs); pdata 226 drivers/mfd/twl6030-irq.c atomic_dec(&pdata->wakeirqs); pdata 336 drivers/mfd/twl6030-irq.c struct twl6030_irq *pdata = d->host_data; pdata 338 drivers/mfd/twl6030-irq.c irq_set_chip_data(virq, pdata); pdata 339 drivers/mfd/twl6030-irq.c irq_set_chip_and_handler(virq, &pdata->irq_chip, handle_simple_irq); pdata 341 drivers/mfd/twl6030-irq.c irq_set_parent(virq, pdata->twl_irq); pdata 52 drivers/mfd/ucb1400_core.c struct ucb1400_pdata *pdata = dev_get_platdata(dev); pdata 75 drivers/mfd/ucb1400_core.c if (pdata) { pdata 76 drivers/mfd/ucb1400_core.c ucb_gpio.gpio_setup = pdata->gpio_setup; pdata 77 drivers/mfd/ucb1400_core.c ucb_gpio.gpio_teardown = pdata->gpio_teardown; pdata 78 drivers/mfd/ucb1400_core.c ucb_gpio.gpio_offset = pdata->gpio_offset; pdata 96 drivers/mfd/ucb1400_core.c if (pdata != NULL && pdata->irq >= 0) pdata 97 drivers/mfd/ucb1400_core.c ucb_ts.irq = pdata->irq; pdata 365 drivers/mfd/ucb1x00-core.c struct ucb1x00_plat_data *pdata = ucb->mcp->attached_device.platform_data; pdata 368 drivers/mfd/ucb1x00-core.c if (!pdata || !pdata->can_wakeup) pdata 494 drivers/mfd/ucb1x00-core.c struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; pdata 501 drivers/mfd/ucb1x00-core.c if (pdata && pdata->reset) pdata 502 drivers/mfd/ucb1x00-core.c pdata->reset(UCB_RST_PROBE); pdata 544 drivers/mfd/ucb1x00-core.c irq_base = pdata ? pdata->irq_base : 0; pdata 564 drivers/mfd/ucb1x00-core.c if (pdata && pdata->gpio_base) { pdata 568 drivers/mfd/ucb1x00-core.c ucb->gpio.base = pdata->gpio_base; pdata 583 drivers/mfd/ucb1x00-core.c if (pdata) pdata 584 drivers/mfd/ucb1x00-core.c device_set_wakeup_capable(&ucb->dev, pdata->can_wakeup); pdata 606 drivers/mfd/ucb1x00-core.c if (pdata && pdata->reset) pdata 607 drivers/mfd/ucb1x00-core.c pdata->reset(UCB_RST_PROBE_FAIL); pdata 613 drivers/mfd/ucb1x00-core.c struct ucb1x00_plat_data *pdata = mcp->attached_device.platform_data; pdata 632 drivers/mfd/ucb1x00-core.c if (pdata && pdata->reset) pdata 633 drivers/mfd/ucb1x00-core.c pdata->reset(UCB_RST_REMOVE); pdata 666 drivers/mfd/ucb1x00-core.c struct ucb1x00_plat_data *pdata = dev_get_platdata(dev); pdata 690 drivers/mfd/ucb1x00-core.c } else if (pdata && pdata->reset) pdata 691 drivers/mfd/ucb1x00-core.c pdata->reset(UCB_RST_SUSPEND); pdata 698 drivers/mfd/ucb1x00-core.c struct ucb1x00_plat_data *pdata = dev_get_platdata(dev); pdata 702 drivers/mfd/ucb1x00-core.c if (!ucb->irq_wake && pdata && pdata->reset) pdata 703 drivers/mfd/ucb1x00-core.c pdata->reset(UCB_RST_RESUME); pdata 162 drivers/mfd/wl1273-core.c struct wl1273_fm_platform_data *pdata = dev_get_platdata(&client->dev); pdata 170 drivers/mfd/wl1273-core.c if (!pdata) { pdata 175 drivers/mfd/wl1273-core.c if (!(pdata->children & WL1273_RADIO_CHILD)) { pdata 184 drivers/mfd/wl1273-core.c core->pdata = pdata; pdata 204 drivers/mfd/wl1273-core.c if (pdata->children & WL1273_CODEC_CHILD) { pdata 225 drivers/mfd/wl1273-core.c pdata->free_resources(); pdata 1631 drivers/mfd/wm831x-core.c struct wm831x_pdata *pdata = &wm831x->pdata; pdata 1640 drivers/mfd/wm831x-core.c wm831x->soft_shutdown = pdata->soft_shutdown; pdata 1765 drivers/mfd/wm831x-core.c if (pdata->pre_init) { pdata 1766 drivers/mfd/wm831x-core.c ret = pdata->pre_init(wm831x); pdata 1773 drivers/mfd/wm831x-core.c for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { pdata 1774 drivers/mfd/wm831x-core.c if (!pdata->gpio_defaults[i]) pdata 1779 drivers/mfd/wm831x-core.c pdata->gpio_defaults[i] & 0xffff); pdata 1783 drivers/mfd/wm831x-core.c if (pdata->wm831x_num) pdata 1784 drivers/mfd/wm831x-core.c wm831x_num = pdata->wm831x_num * 10; pdata 1806 drivers/mfd/wm831x-core.c if (!pdata->disable_touch) pdata 1816 drivers/mfd/wm831x-core.c if (!pdata->disable_touch) pdata 1862 drivers/mfd/wm831x-core.c if (pdata->backlight) { pdata 1874 drivers/mfd/wm831x-core.c if (pdata->post_init) { pdata 1875 drivers/mfd/wm831x-core.c ret = pdata->post_init(wm831x); pdata 27 drivers/mfd/wm831x-i2c.c struct wm831x_pdata *pdata = dev_get_platdata(&i2c->dev); pdata 60 drivers/mfd/wm831x-i2c.c if (pdata) pdata 61 drivers/mfd/wm831x-i2c.c memcpy(&wm831x->pdata, pdata, sizeof(*pdata)); pdata 562 drivers/mfd/wm831x-irq.c struct wm831x_pdata *pdata = &wm831x->pdata; pdata 577 drivers/mfd/wm831x-irq.c if (pdata->irq_base) { pdata 578 drivers/mfd/wm831x-irq.c irq_base = irq_alloc_descs(pdata->irq_base, 0, pdata 606 drivers/mfd/wm831x-irq.c if (pdata->irq_cmos) pdata 23 drivers/mfd/wm831x-spi.c struct wm831x_pdata *pdata = dev_get_platdata(&spi->dev); pdata 59 drivers/mfd/wm831x-spi.c if (pdata) pdata 60 drivers/mfd/wm831x-spi.c memcpy(&wm831x->pdata, pdata, sizeof(*pdata)); pdata 273 drivers/mfd/wm8350-core.c struct wm8350_platform_data *pdata) pdata 396 drivers/mfd/wm8350-core.c ret = wm8350_irq_init(wm8350, irq, pdata); pdata 411 drivers/mfd/wm8350-core.c if (pdata && pdata->init) { pdata 412 drivers/mfd/wm8350-core.c ret = pdata->init(wm8350); pdata 23 drivers/mfd/wm8350-i2c.c struct wm8350_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 41 drivers/mfd/wm8350-i2c.c return wm8350_device_init(wm8350, i2c->irq, pdata); pdata 464 drivers/mfd/wm8350-irq.c struct wm8350_platform_data *pdata) pdata 492 drivers/mfd/wm8350-irq.c if (pdata && pdata->irq_base > 0) pdata 493 drivers/mfd/wm8350-irq.c irq_base = pdata->irq_base; pdata 503 drivers/mfd/wm8350-irq.c if (pdata && pdata->irq_high) { pdata 52 drivers/mfd/wm8400-core.c struct wm8400_platform_data *pdata) pdata 85 drivers/mfd/wm8400-core.c if (pdata && pdata->platform_init) { pdata 86 drivers/mfd/wm8400-core.c ret = pdata->platform_init(wm8400->dev); pdata 219 drivers/mfd/wm8994-core.c static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo) pdata 223 drivers/mfd/wm8994-core.c if (!pdata) pdata 226 drivers/mfd/wm8994-core.c ldo_pdata = &pdata->ldo[ldo]; pdata 234 drivers/mfd/wm8994-core.c static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo) pdata 266 drivers/mfd/wm8994-core.c struct wm8994_pdata *pdata = &wm8994->pdata; pdata 272 drivers/mfd/wm8994-core.c if (of_property_read_u32_array(np, "wlf,gpio-cfg", pdata->gpio_defaults, pdata 273 drivers/mfd/wm8994-core.c ARRAY_SIZE(pdata->gpio_defaults)) >= 0) { pdata 274 drivers/mfd/wm8994-core.c for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { pdata 275 drivers/mfd/wm8994-core.c if (wm8994->pdata.gpio_defaults[i] == 0) pdata 276 drivers/mfd/wm8994-core.c pdata->gpio_defaults[i] pdata 281 drivers/mfd/wm8994-core.c of_property_read_u32_array(np, "wlf,micbias-cfg", pdata->micbias, pdata 282 drivers/mfd/wm8994-core.c ARRAY_SIZE(pdata->micbias)); pdata 284 drivers/mfd/wm8994-core.c pdata->lineout1_diff = true; pdata 285 drivers/mfd/wm8994-core.c pdata->lineout2_diff = true; pdata 287 drivers/mfd/wm8994-core.c pdata->lineout1_diff = false; pdata 289 drivers/mfd/wm8994-core.c pdata->lineout2_diff = false; pdata 292 drivers/mfd/wm8994-core.c pdata->lineout1fb = true; pdata 294 drivers/mfd/wm8994-core.c pdata->lineout2fb = true; pdata 297 drivers/mfd/wm8994-core.c pdata->lineout2fb = true; pdata 299 drivers/mfd/wm8994-core.c pdata->spkmode_pu = of_property_read_bool(np, "wlf,spkmode-pu"); pdata 301 drivers/mfd/wm8994-core.c pdata->csnaddr_pd = of_property_read_bool(np, "wlf,csnaddr-pd"); pdata 317 drivers/mfd/wm8994-core.c struct wm8994_pdata *pdata; pdata 325 drivers/mfd/wm8994-core.c pdata = dev_get_platdata(wm8994->dev); pdata 326 drivers/mfd/wm8994-core.c wm8994->pdata = *pdata; pdata 328 drivers/mfd/wm8994-core.c pdata = &wm8994->pdata; pdata 538 drivers/mfd/wm8994-core.c wm8994->irq_base = pdata->irq_base; pdata 539 drivers/mfd/wm8994-core.c wm8994->gpio_base = pdata->gpio_base; pdata 542 drivers/mfd/wm8994-core.c for (i = 0; i < ARRAY_SIZE(pdata->gpio_defaults); i++) { pdata 543 drivers/mfd/wm8994-core.c if (pdata->gpio_defaults[i]) { pdata 545 drivers/mfd/wm8994-core.c 0xffff, pdata->gpio_defaults[i]); pdata 549 drivers/mfd/wm8994-core.c wm8994->ldo_ena_always_driven = pdata->ldo_ena_always_driven; pdata 551 drivers/mfd/wm8994-core.c if (pdata->spkmode_pu) pdata 553 drivers/mfd/wm8994-core.c if (pdata->csnaddr_pd) pdata 569 drivers/mfd/wm8994-core.c if (wm8994_ldo_in_use(pdata, i)) pdata 156 drivers/mfd/wm8994-irq.c while (gpio_get_value_cansleep(wm8994->pdata.irq_gpio)) pdata 184 drivers/mfd/wm8994-irq.c struct wm8994_pdata *pdata = &wm8994->pdata; pdata 195 drivers/mfd/wm8994-irq.c if (pdata->irq_flags) pdata 196 drivers/mfd/wm8994-irq.c irqflags = pdata->irq_flags; pdata 200 drivers/mfd/wm8994-irq.c if (gpio_to_irq(pdata->irq_gpio) != wm8994->irq) { pdata 202 drivers/mfd/wm8994-irq.c wm8994->irq, pdata->irq_gpio, pdata 203 drivers/mfd/wm8994-irq.c gpio_to_irq(pdata->irq_gpio)); pdata 204 drivers/mfd/wm8994-irq.c wm8994->irq = gpio_to_irq(pdata->irq_gpio); pdata 207 drivers/mfd/wm8994-irq.c ret = devm_gpio_request_one(wm8994->dev, pdata->irq_gpio, pdata 258 drivers/mfd/wm97xx-core.c struct wm97xx_pdata *pdata = snd_ac97_codec_get_platdata(adev); pdata 277 drivers/mfd/wm97xx-core.c codec_pdata->batt_pdata = pdata ? pdata->batt_pdata : NULL; pdata 113 drivers/misc/apds990x.c struct apds990x_platform_data *pdata; pdata 553 drivers/misc/apds990x.c apds990x_write_byte(chip, APDS990X_PPCOUNT, chip->pdata->ppcount); pdata 1069 drivers/misc/apds990x.c chip->pdata = client->dev.platform_data; pdata 1071 drivers/misc/apds990x.c if (chip->pdata == NULL) { pdata 1077 drivers/misc/apds990x.c if (chip->pdata->cf.ga == 0) { pdata 1086 drivers/misc/apds990x.c chip->cf = chip->pdata->cf; pdata 1108 drivers/misc/apds990x.c chip->pdrive = chip->pdata->pdrive; pdata 1147 drivers/misc/apds990x.c if (chip->pdata->setup_resources) { pdata 1148 drivers/misc/apds990x.c err = chip->pdata->setup_resources(); pdata 1177 drivers/misc/apds990x.c if (chip->pdata && chip->pdata->release_resources) pdata 1178 drivers/misc/apds990x.c chip->pdata->release_resources(); pdata 1196 drivers/misc/apds990x.c if (chip->pdata && chip->pdata->release_resources) pdata 1197 drivers/misc/apds990x.c chip->pdata->release_resources(); pdata 207 drivers/misc/atmel-ssc.c ssc->pdata = (struct atmel_ssc_platform_data *)plat_dat; pdata 121 drivers/misc/bh1770glc.c struct bh1770_platform_data *pdata; pdata 1187 drivers/misc/bh1770glc.c chip->pdata = client->dev.platform_data; pdata 1193 drivers/misc/bh1770glc.c if (chip->pdata->glass_attenuation == 0) pdata 1196 drivers/misc/bh1770glc.c chip->lux_ga = chip->pdata->glass_attenuation; pdata 1199 drivers/misc/bh1770glc.c chip->prox_led = chip->pdata->led_def_curr; pdata 1240 drivers/misc/bh1770glc.c if (chip->pdata->setup_resources) { pdata 1241 drivers/misc/bh1770glc.c err = chip->pdata->setup_resources(); pdata 1276 drivers/misc/bh1770glc.c if (chip->pdata->release_resources) pdata 1277 drivers/misc/bh1770glc.c chip->pdata->release_resources(); pdata 1292 drivers/misc/bh1770glc.c if (chip->pdata->release_resources) pdata 1293 drivers/misc/bh1770glc.c chip->pdata->release_resources(); pdata 40 drivers/misc/eeprom/eeprom_93xx46.c struct eeprom_93xx46_platform_data *pdata; pdata 50 drivers/misc/eeprom/eeprom_93xx46.c return edev->pdata->quirks & EEPROM_93XX46_QUIRK_SINGLE_WORD_READ; pdata 55 drivers/misc/eeprom/eeprom_93xx46.c return edev->pdata->quirks & EEPROM_93XX46_QUIRK_INSTRUCTION_LENGTH; pdata 74 drivers/misc/eeprom/eeprom_93xx46.c if (edev->pdata->prepare) pdata 75 drivers/misc/eeprom/eeprom_93xx46.c edev->pdata->prepare(edev); pdata 126 drivers/misc/eeprom/eeprom_93xx46.c if (edev->pdata->finish) pdata 127 drivers/misc/eeprom/eeprom_93xx46.c edev->pdata->finish(edev); pdata 168 drivers/misc/eeprom/eeprom_93xx46.c if (edev->pdata->prepare) pdata 169 drivers/misc/eeprom/eeprom_93xx46.c edev->pdata->prepare(edev); pdata 178 drivers/misc/eeprom/eeprom_93xx46.c if (edev->pdata->finish) pdata 179 drivers/misc/eeprom/eeprom_93xx46.c edev->pdata->finish(edev); pdata 254 drivers/misc/eeprom/eeprom_93xx46.c if (edev->pdata->prepare) pdata 255 drivers/misc/eeprom/eeprom_93xx46.c edev->pdata->prepare(edev); pdata 266 drivers/misc/eeprom/eeprom_93xx46.c if (edev->pdata->finish) pdata 267 drivers/misc/eeprom/eeprom_93xx46.c edev->pdata->finish(edev); pdata 278 drivers/misc/eeprom/eeprom_93xx46.c struct eeprom_93xx46_platform_data *pd = edev->pdata; pdata 310 drivers/misc/eeprom/eeprom_93xx46.c if (edev->pdata->prepare) pdata 311 drivers/misc/eeprom/eeprom_93xx46.c edev->pdata->prepare(edev); pdata 353 drivers/misc/eeprom/eeprom_93xx46.c gpiod_set_value_cansleep(edev->pdata->select, 1); pdata 360 drivers/misc/eeprom/eeprom_93xx46.c gpiod_set_value_cansleep(edev->pdata->select, 0); pdata 455 drivers/misc/eeprom/eeprom_93xx46.c edev->pdata = pd; pdata 493 drivers/misc/eeprom/eeprom_93xx46.c if (!(edev->pdata->flags & EE_READONLY)) pdata 334 drivers/misc/lis3lv02d/lis3lv02d.c if (lis3->pdata) { pdata 338 drivers/misc/lis3lv02d/lis3lv02d.c if ((results[i] < lis3->pdata->st_min_limits[i]) || pdata 339 drivers/misc/lis3lv02d/lis3lv02d.c (results[i] > lis3->pdata->st_max_limits[i])) { pdata 408 drivers/misc/lis3lv02d/lis3lv02d.c if (lis3->pdata) { pdata 458 drivers/misc/lis3lv02d/lis3lv02d.c if (lis3->pdata && lis3->whoami == WAI_8B && lis3->idev) pdata 733 drivers/misc/lis3lv02d/lis3lv02d.c if (lis3->pdata && lis3->pdata->irq2) pdata 734 drivers/misc/lis3lv02d/lis3lv02d.c free_irq(lis3->pdata->irq2, lis3); pdata 938 drivers/misc/lis3lv02d/lis3lv02d.c struct lis3lv02d_platform_data *pdata; pdata 946 drivers/misc/lis3lv02d/lis3lv02d.c pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); pdata 947 drivers/misc/lis3lv02d/lis3lv02d.c if (!pdata) pdata 951 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_flags |= LIS3_CLICK_SINGLE_X; pdata 953 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_flags |= LIS3_CLICK_DOUBLE_X; pdata 956 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_flags |= LIS3_CLICK_SINGLE_Y; pdata 958 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_flags |= LIS3_CLICK_DOUBLE_Y; pdata 961 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_flags |= LIS3_CLICK_SINGLE_Z; pdata 963 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_flags |= LIS3_CLICK_DOUBLE_Z; pdata 966 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_thresh_x = val; pdata 968 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_thresh_y = val; pdata 970 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_thresh_z = val; pdata 973 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_time_limit = val; pdata 975 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_latency = val; pdata 977 drivers/misc/lis3lv02d/lis3lv02d.c pdata->click_window = val; pdata 980 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ1_DISABLE; pdata 982 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ1_FF_WU_1; pdata 984 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ1_FF_WU_2; pdata 986 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ1_DATA_READY; pdata 988 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ1_CLICK; pdata 991 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ2_DISABLE; pdata 993 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ2_FF_WU_1; pdata 995 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ2_FF_WU_2; pdata 997 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ2_DATA_READY; pdata 999 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ2_CLICK; pdata 1002 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ_OPEN_DRAIN; pdata 1004 drivers/misc/lis3lv02d/lis3lv02d.c pdata->irq_cfg |= LIS3_IRQ_ACTIVE_LOW; pdata 1007 drivers/misc/lis3lv02d/lis3lv02d.c pdata->duration1 = val; pdata 1009 drivers/misc/lis3lv02d/lis3lv02d.c pdata->duration2 = val; pdata 1012 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags |= LIS3_WAKEUP_X_LO; pdata 1014 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags |= LIS3_WAKEUP_X_HI; pdata 1016 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags |= LIS3_WAKEUP_Y_LO; pdata 1018 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags |= LIS3_WAKEUP_Y_HI; pdata 1020 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags |= LIS3_WAKEUP_Z_LO; pdata 1022 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags |= LIS3_WAKEUP_Z_HI; pdata 1024 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_thresh = val; pdata 1027 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags2 |= LIS3_WAKEUP_X_LO; pdata 1029 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags2 |= LIS3_WAKEUP_X_HI; pdata 1031 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags2 |= LIS3_WAKEUP_Y_LO; pdata 1033 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags2 |= LIS3_WAKEUP_Y_HI; pdata 1035 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags2 |= LIS3_WAKEUP_Z_LO; pdata 1037 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_flags2 |= LIS3_WAKEUP_Z_HI; pdata 1039 drivers/misc/lis3lv02d/lis3lv02d.c pdata->wakeup_thresh2 = val; pdata 1044 drivers/misc/lis3lv02d/lis3lv02d.c pdata->hipass_ctrl = LIS3_HIPASS_CUTFF_1HZ; pdata 1047 drivers/misc/lis3lv02d/lis3lv02d.c pdata->hipass_ctrl = LIS3_HIPASS_CUTFF_2HZ; pdata 1050 drivers/misc/lis3lv02d/lis3lv02d.c pdata->hipass_ctrl = LIS3_HIPASS_CUTFF_4HZ; pdata 1053 drivers/misc/lis3lv02d/lis3lv02d.c pdata->hipass_ctrl = LIS3_HIPASS_CUTFF_8HZ; pdata 1059 drivers/misc/lis3lv02d/lis3lv02d.c pdata->hipass_ctrl |= LIS3_HIPASS1_DISABLE; pdata 1061 drivers/misc/lis3lv02d/lis3lv02d.c pdata->hipass_ctrl |= LIS3_HIPASS2_DISABLE; pdata 1064 drivers/misc/lis3lv02d/lis3lv02d.c pdata->axis_x = sval; pdata 1066 drivers/misc/lis3lv02d/lis3lv02d.c pdata->axis_y = sval; pdata 1068 drivers/misc/lis3lv02d/lis3lv02d.c pdata->axis_z = sval; pdata 1071 drivers/misc/lis3lv02d/lis3lv02d.c pdata->default_rate = val; pdata 1074 drivers/misc/lis3lv02d/lis3lv02d.c pdata->st_min_limits[0] = sval; pdata 1076 drivers/misc/lis3lv02d/lis3lv02d.c pdata->st_min_limits[1] = sval; pdata 1078 drivers/misc/lis3lv02d/lis3lv02d.c pdata->st_min_limits[2] = sval; pdata 1081 drivers/misc/lis3lv02d/lis3lv02d.c pdata->st_max_limits[0] = sval; pdata 1083 drivers/misc/lis3lv02d/lis3lv02d.c pdata->st_max_limits[1] = sval; pdata 1085 drivers/misc/lis3lv02d/lis3lv02d.c pdata->st_max_limits[2] = sval; pdata 1088 drivers/misc/lis3lv02d/lis3lv02d.c lis3->pdata = pdata; pdata 1188 drivers/misc/lis3lv02d/lis3lv02d.c if (lis3->pdata) { pdata 1189 drivers/misc/lis3lv02d/lis3lv02d.c struct lis3lv02d_platform_data *p = lis3->pdata; pdata 1221 drivers/misc/lis3lv02d/lis3lv02d.c if (lis3->pdata && lis3->whoami == WAI_8B) pdata 302 drivers/misc/lis3lv02d/lis3lv02d.h struct lis3lv02d_platform_data *pdata; /* for passing board config */ pdata 107 drivers/misc/lis3lv02d/lis3lv02d_i2c.c struct lis3lv02d_platform_data *pdata = client->dev.platform_data; pdata 115 drivers/misc/lis3lv02d/lis3lv02d_i2c.c pdata = lis3_dev.pdata; pdata 119 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (pdata) { pdata 120 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if ((pdata->driver_features & LIS3_USE_BLOCK_READ) && pdata 125 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (pdata->axis_x) pdata 126 drivers/misc/lis3lv02d/lis3lv02d_i2c.c lis3lv02d_axis_map.x = pdata->axis_x; pdata 128 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (pdata->axis_y) pdata 129 drivers/misc/lis3lv02d/lis3lv02d_i2c.c lis3lv02d_axis_map.y = pdata->axis_y; pdata 131 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (pdata->axis_z) pdata 132 drivers/misc/lis3lv02d/lis3lv02d_i2c.c lis3lv02d_axis_map.z = pdata->axis_z; pdata 134 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (pdata->setup_resources) pdata 135 drivers/misc/lis3lv02d/lis3lv02d_i2c.c ret = pdata->setup_resources(); pdata 149 drivers/misc/lis3lv02d/lis3lv02d_i2c.c lis3_dev.pdata = pdata; pdata 175 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (pdata && pdata->release_resources) pdata 176 drivers/misc/lis3lv02d/lis3lv02d_i2c.c pdata->release_resources(); pdata 183 drivers/misc/lis3lv02d/lis3lv02d_i2c.c struct lis3lv02d_platform_data *pdata = client->dev.platform_data; pdata 185 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (pdata && pdata->release_resources) pdata 186 drivers/misc/lis3lv02d/lis3lv02d_i2c.c pdata->release_resources(); pdata 202 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (!lis3->pdata || !lis3->pdata->wakeup_flags) pdata 217 drivers/misc/lis3lv02d/lis3lv02d_i2c.c if (!lis3->pdata || !lis3->pdata->wakeup_flags || pdata 84 drivers/misc/lis3lv02d/lis3lv02d_spi.c lis3_dev.pdata = spi->dev.platform_data; pdata 114 drivers/misc/lis3lv02d/lis3lv02d_spi.c if (!lis3->pdata || !lis3->pdata->wakeup_flags) pdata 125 drivers/misc/lis3lv02d/lis3lv02d_spi.c if (!lis3->pdata || !lis3->pdata->wakeup_flags) pdata 448 drivers/misc/ti-st/st_kim.c struct ti_st_plat_data *pdata; pdata 452 drivers/misc/ti-st/st_kim.c pdata = kim_gdata->kim_pdev->dev.platform_data; pdata 456 drivers/misc/ti-st/st_kim.c if (pdata->chip_enable) pdata 457 drivers/misc/ti-st/st_kim.c pdata->chip_enable(kim_gdata); pdata 512 drivers/misc/ti-st/st_kim.c struct ti_st_plat_data *pdata = pdata 545 drivers/misc/ti-st/st_kim.c if (pdata->chip_disable) pdata 546 drivers/misc/ti-st/st_kim.c pdata->chip_disable(kim_gdata); pdata 691 drivers/misc/ti-st/st_kim.c struct ti_st_plat_data *pdata = pdev->dev.platform_data; pdata 719 drivers/misc/ti-st/st_kim.c kim_gdata->nshutdown = pdata->nshutdown_gpio; pdata 745 drivers/misc/ti-st/st_kim.c strncpy(kim_gdata->dev_name, pdata->dev_name, UART_DEV_NAME_LEN); pdata 746 drivers/misc/ti-st/st_kim.c kim_gdata->flow_cntrl = pdata->flow_cntrl; pdata 747 drivers/misc/ti-st/st_kim.c kim_gdata->baud_rate = pdata->baud_rate; pdata 770 drivers/misc/ti-st/st_kim.c struct ti_st_plat_data *pdata = pdev->dev.platform_data; pdata 778 drivers/misc/ti-st/st_kim.c gpio_free(pdata->nshutdown_gpio); pdata 795 drivers/misc/ti-st/st_kim.c struct ti_st_plat_data *pdata = pdev->dev.platform_data; pdata 797 drivers/misc/ti-st/st_kim.c if (pdata->suspend) pdata 798 drivers/misc/ti-st/st_kim.c return pdata->suspend(pdev, state); pdata 805 drivers/misc/ti-st/st_kim.c struct ti_st_plat_data *pdata = pdev->dev.platform_data; pdata 807 drivers/misc/ti-st/st_kim.c if (pdata->resume) pdata 808 drivers/misc/ti-st/st_kim.c return pdata->resume(pdev); pdata 29 drivers/misc/ti-st/st_ll.c struct ti_st_plat_data *pdata; pdata 43 drivers/misc/ti-st/st_ll.c pdata = kim_data->kim_pdev->dev.platform_data; pdata 44 drivers/misc/ti-st/st_ll.c if (pdata->chip_asleep) pdata 45 drivers/misc/ti-st/st_ll.c pdata->chip_asleep(NULL); pdata 51 drivers/misc/ti-st/st_ll.c struct ti_st_plat_data *pdata; pdata 76 drivers/misc/ti-st/st_ll.c pdata = kim_data->kim_pdev->dev.platform_data; pdata 77 drivers/misc/ti-st/st_ll.c if (pdata->chip_awake) pdata 78 drivers/misc/ti-st/st_ll.c pdata->chip_awake(NULL); pdata 606 drivers/mmc/host/atmel-mci.c struct mci_platform_data *pdata; pdata 614 drivers/mmc/host/atmel-mci.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 615 drivers/mmc/host/atmel-mci.c if (!pdata) pdata 633 drivers/mmc/host/atmel-mci.c &pdata->slot[slot_id].bus_width)) pdata 634 drivers/mmc/host/atmel-mci.c pdata->slot[slot_id].bus_width = 1; pdata 636 drivers/mmc/host/atmel-mci.c pdata->slot[slot_id].detect_pin = pdata 639 drivers/mmc/host/atmel-mci.c pdata->slot[slot_id].detect_is_active_high = pdata 642 drivers/mmc/host/atmel-mci.c pdata->slot[slot_id].non_removable = pdata 645 drivers/mmc/host/atmel-mci.c pdata->slot[slot_id].wp_pin = pdata 649 drivers/mmc/host/atmel-mci.c return pdata; pdata 2354 drivers/mmc/host/atmel-mci.c struct mci_platform_data *pdata = host->pdev->dev.platform_data; pdata 2357 drivers/mmc/host/atmel-mci.c if (!pdata || !pdata->dma_filter) pdata 2363 drivers/mmc/host/atmel-mci.c host->dma.chan = dma_request_channel(mask, pdata->dma_filter, pdata 2364 drivers/mmc/host/atmel-mci.c pdata->dma_slave); pdata 2446 drivers/mmc/host/atmel-mci.c struct mci_platform_data *pdata; pdata 2456 drivers/mmc/host/atmel-mci.c pdata = pdev->dev.platform_data; pdata 2457 drivers/mmc/host/atmel-mci.c if (!pdata) { pdata 2458 drivers/mmc/host/atmel-mci.c pdata = atmci_of_init(pdev); pdata 2459 drivers/mmc/host/atmel-mci.c if (IS_ERR(pdata)) { pdata 2461 drivers/mmc/host/atmel-mci.c return PTR_ERR(pdata); pdata 2536 drivers/mmc/host/atmel-mci.c if (pdata->slot[0].bus_width) { pdata 2537 drivers/mmc/host/atmel-mci.c ret = atmci_init_slot(host, &pdata->slot[0], pdata 2544 drivers/mmc/host/atmel-mci.c if (pdata->slot[1].bus_width) { pdata 2545 drivers/mmc/host/atmel-mci.c ret = atmci_init_slot(host, &pdata->slot[1], pdata 1149 drivers/mmc/host/davinci_mmc.c struct davinci_mmc_config *pdata = pdev->dev.platform_data; pdata 1153 drivers/mmc/host/davinci_mmc.c if (!pdata) pdata 1160 drivers/mmc/host/davinci_mmc.c if (pdata && pdata->nr_sg) pdata 1161 drivers/mmc/host/davinci_mmc.c host->nr_sg = pdata->nr_sg - 1; pdata 1163 drivers/mmc/host/davinci_mmc.c if (pdata && (pdata->wires == 4 || pdata->wires == 0)) pdata 1166 drivers/mmc/host/davinci_mmc.c if (pdata && (pdata->wires == 8)) pdata 1171 drivers/mmc/host/davinci_mmc.c if (pdata && pdata->max_freq) pdata 1172 drivers/mmc/host/davinci_mmc.c mmc->f_max = pdata->max_freq; pdata 1173 drivers/mmc/host/davinci_mmc.c if (pdata && pdata->caps) pdata 1174 drivers/mmc/host/davinci_mmc.c mmc->caps |= pdata->caps; pdata 51 drivers/mmc/host/dw_mmc-pci.c host->pdata = &pci_board_data; pdata 42 drivers/mmc/host/dw_mmc-pltfm.c host->pdata = pdev->dev.platform_data; pdata 2251 drivers/mmc/host/dw_mmc.c u16 *pdata = buf; pdata 2254 drivers/mmc/host/dw_mmc.c mci_fifo_writew(host->fifo_reg, *pdata++); pdata 2255 drivers/mmc/host/dw_mmc.c buf = pdata; pdata 2288 drivers/mmc/host/dw_mmc.c u16 *pdata = buf; pdata 2291 drivers/mmc/host/dw_mmc.c *pdata++ = mci_fifo_readw(host->fifo_reg); pdata 2292 drivers/mmc/host/dw_mmc.c buf = pdata; pdata 2334 drivers/mmc/host/dw_mmc.c u32 *pdata = buf; pdata 2337 drivers/mmc/host/dw_mmc.c mci_fifo_writel(host->fifo_reg, *pdata++); pdata 2338 drivers/mmc/host/dw_mmc.c buf = pdata; pdata 2371 drivers/mmc/host/dw_mmc.c u32 *pdata = buf; pdata 2374 drivers/mmc/host/dw_mmc.c *pdata++ = mci_fifo_readl(host->fifo_reg); pdata 2375 drivers/mmc/host/dw_mmc.c buf = pdata; pdata 2418 drivers/mmc/host/dw_mmc.c u64 *pdata = buf; pdata 2421 drivers/mmc/host/dw_mmc.c mci_fifo_writeq(host->fifo_reg, *pdata++); pdata 2422 drivers/mmc/host/dw_mmc.c buf = pdata; pdata 2456 drivers/mmc/host/dw_mmc.c u64 *pdata = buf; pdata 2459 drivers/mmc/host/dw_mmc.c *pdata++ = mci_fifo_readq(host->fifo_reg); pdata 2460 drivers/mmc/host/dw_mmc.c buf = pdata; pdata 2611 drivers/mmc/host/dw_mmc.c msecs_to_jiffies(host->pdata->detect_delay_ms)); pdata 2750 drivers/mmc/host/dw_mmc.c if (host->pdata->caps) pdata 2751 drivers/mmc/host/dw_mmc.c mmc->caps = host->pdata->caps; pdata 2759 drivers/mmc/host/dw_mmc.c if (host->pdata->pm_caps) pdata 2760 drivers/mmc/host/dw_mmc.c mmc->pm_caps = host->pdata->pm_caps; pdata 2779 drivers/mmc/host/dw_mmc.c if (host->pdata->caps2) pdata 2780 drivers/mmc/host/dw_mmc.c mmc->caps2 = host->pdata->caps2; pdata 3092 drivers/mmc/host/dw_mmc.c struct dw_mci_board *pdata; pdata 3098 drivers/mmc/host/dw_mmc.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 3099 drivers/mmc/host/dw_mmc.c if (!pdata) pdata 3103 drivers/mmc/host/dw_mmc.c pdata->rstc = devm_reset_control_get_optional_exclusive(dev, "reset"); pdata 3104 drivers/mmc/host/dw_mmc.c if (IS_ERR(pdata->rstc)) { pdata 3105 drivers/mmc/host/dw_mmc.c if (PTR_ERR(pdata->rstc) == -EPROBE_DEFER) pdata 3109 drivers/mmc/host/dw_mmc.c if (device_property_read_u32(dev, "fifo-depth", &pdata->fifo_depth)) pdata 3114 drivers/mmc/host/dw_mmc.c &pdata->detect_delay_ms); pdata 3122 drivers/mmc/host/dw_mmc.c pdata->bus_hz = clock_frequency; pdata 3130 drivers/mmc/host/dw_mmc.c return pdata; pdata 3167 drivers/mmc/host/dw_mmc.c if (!host->pdata) { pdata 3168 drivers/mmc/host/dw_mmc.c host->pdata = dw_mci_parse_dt(host); pdata 3169 drivers/mmc/host/dw_mmc.c if (PTR_ERR(host->pdata) == -EPROBE_DEFER) { pdata 3171 drivers/mmc/host/dw_mmc.c } else if (IS_ERR(host->pdata)) { pdata 3191 drivers/mmc/host/dw_mmc.c host->bus_hz = host->pdata->bus_hz; pdata 3199 drivers/mmc/host/dw_mmc.c if (host->pdata->bus_hz) { pdata 3200 drivers/mmc/host/dw_mmc.c ret = clk_set_rate(host->ciu_clk, host->pdata->bus_hz); pdata 3204 drivers/mmc/host/dw_mmc.c host->pdata->bus_hz); pdata 3216 drivers/mmc/host/dw_mmc.c if (!IS_ERR(host->pdata->rstc)) { pdata 3217 drivers/mmc/host/dw_mmc.c reset_control_assert(host->pdata->rstc); pdata 3219 drivers/mmc/host/dw_mmc.c reset_control_deassert(host->pdata->rstc); pdata 3271 drivers/mmc/host/dw_mmc.c host->dma_ops = host->pdata->dma_ops; pdata 3285 drivers/mmc/host/dw_mmc.c if (!host->pdata->fifo_depth) { pdata 3295 drivers/mmc/host/dw_mmc.c fifo_size = host->pdata->fifo_depth; pdata 3356 drivers/mmc/host/dw_mmc.c if (!IS_ERR(host->pdata->rstc)) pdata 3357 drivers/mmc/host/dw_mmc.c reset_control_assert(host->pdata->rstc); pdata 3385 drivers/mmc/host/dw_mmc.c if (!IS_ERR(host->pdata->rstc)) pdata 3386 drivers/mmc/host/dw_mmc.c reset_control_assert(host->pdata->rstc); pdata 204 drivers/mmc/host/dw_mmc.h struct dw_mci_board *pdata; pdata 118 drivers/mmc/host/mmc_spi.c struct mmc_spi_platform_data *pdata; pdata 1178 drivers/mmc/host/mmc_spi.c canpower = host->pdata && host->pdata->setpower; pdata 1192 drivers/mmc/host/mmc_spi.c host->pdata->setpower(&host->spi->dev, pdata 1277 drivers/mmc/host/mmc_spi.c u16 delay_msec = max(host->pdata->detect_delay, (u16)100); pdata 1359 drivers/mmc/host/mmc_spi.c host->pdata = mmc_spi_get_pdata(spi); pdata 1360 drivers/mmc/host/mmc_spi.c if (host->pdata) pdata 1361 drivers/mmc/host/mmc_spi.c mmc->ocr_avail = host->pdata->ocr_mask; pdata 1366 drivers/mmc/host/mmc_spi.c if (host->pdata && host->pdata->setpower) { pdata 1367 drivers/mmc/host/mmc_spi.c host->powerup_msecs = host->pdata->powerup_msecs; pdata 1409 drivers/mmc/host/mmc_spi.c if (host->pdata && host->pdata->init) { pdata 1410 drivers/mmc/host/mmc_spi.c status = host->pdata->init(&spi->dev, mmc_spi_detect_irq, mmc); pdata 1416 drivers/mmc/host/mmc_spi.c if (host->pdata) { pdata 1417 drivers/mmc/host/mmc_spi.c mmc->caps |= host->pdata->caps; pdata 1418 drivers/mmc/host/mmc_spi.c mmc->caps2 |= host->pdata->caps2; pdata 1454 drivers/mmc/host/mmc_spi.c (host->pdata && host->pdata->setpower) pdata 1489 drivers/mmc/host/mmc_spi.c if (host->pdata && host->pdata->exit) pdata 1490 drivers/mmc/host/mmc_spi.c host->pdata->exit(&spi->dev, mmc); pdata 131 drivers/mmc/host/mxcmmc.c struct imxmmc_platform_data *pdata; pdata 247 drivers/mmc/host/mxcmmc.c if (host->pdata && host->pdata->setpower) pdata 248 drivers/mmc/host/mxcmmc.c host->pdata->setpower(mmc_dev(host->mmc), vdd); pdata 902 drivers/mmc/host/mxcmmc.c if (host->pdata && host->pdata->get_ro) pdata 903 drivers/mmc/host/mxcmmc.c return !!host->pdata->get_ro(mmc_dev(mmc)); pdata 1005 drivers/mmc/host/mxcmmc.c struct imxmmc_platform_data *pdata = pdev->dev.platform_data; pdata 1036 drivers/mmc/host/mxcmmc.c if (pdata) pdata 1059 drivers/mmc/host/mxcmmc.c host->pdata = pdata; pdata 1062 drivers/mmc/host/mxcmmc.c if (pdata) pdata 1063 drivers/mmc/host/mxcmmc.c dat3_card_detect = pdata->dat3_card_detect; pdata 1073 drivers/mmc/host/mxcmmc.c if (pdata && pdata->ocr_avail) pdata 1074 drivers/mmc/host/mxcmmc.c mmc->ocr_avail = pdata->ocr_avail; pdata 1123 drivers/mmc/host/mxcmmc.c if (!host->pdata) { pdata 1152 drivers/mmc/host/mxcmmc.c if (host->pdata && host->pdata->init) { pdata 1153 drivers/mmc/host/mxcmmc.c ret = host->pdata->init(&pdev->dev, mxcmci_detect_irq, pdata 1187 drivers/mmc/host/mxcmmc.c if (host->pdata && host->pdata->exit) pdata 1188 drivers/mmc/host/mxcmmc.c host->pdata->exit(&pdev->dev, mmc); pdata 31 drivers/mmc/host/of_mmc_spi.c struct mmc_spi_platform_data pdata; pdata 36 drivers/mmc/host/of_mmc_spi.c return container_of(dev->platform_data, struct of_mmc_spi, pdata); pdata 68 drivers/mmc/host/of_mmc_spi.c if (mmc_of_parse_voltage(np, &oms->pdata.ocr_mask) <= 0) pdata 73 drivers/mmc/host/of_mmc_spi.c oms->pdata.init = of_mmc_spi_init; pdata 74 drivers/mmc/host/of_mmc_spi.c oms->pdata.exit = of_mmc_spi_exit; pdata 76 drivers/mmc/host/of_mmc_spi.c oms->pdata.caps |= MMC_CAP_NEEDS_POLL; pdata 79 drivers/mmc/host/of_mmc_spi.c dev->platform_data = &oms->pdata; pdata 114 drivers/mmc/host/omap.c struct omap_mmc_slot_data *pdata; pdata 168 drivers/mmc/host/omap.c struct omap_mmc_platform_data *pdata; pdata 219 drivers/mmc/host/omap.c if (host->pdata->switch_slot != NULL) pdata 220 drivers/mmc/host/omap.c host->pdata->switch_slot(mmc_dev(slot->mmc), slot->id); pdata 300 drivers/mmc/host/omap.c if (slot->pdata->get_cover_state) pdata 301 drivers/mmc/host/omap.c return slot->pdata->get_cover_state(mmc_dev(slot->mmc), pdata 326 drivers/mmc/host/omap.c return sprintf(buf, "%s\n", slot->pdata->name); pdata 1109 drivers/mmc/host/omap.c if (slot->pdata->set_power != NULL) pdata 1110 drivers/mmc/host/omap.c slot->pdata->set_power(mmc_dev(slot->mmc), slot->id, power_on, pdata 1189 drivers/mmc/host/omap.c if (slot->pdata->set_bus_mode != NULL) pdata 1190 drivers/mmc/host/omap.c slot->pdata->set_bus_mode(mmc_dev(mmc), slot->id, pdata 1241 drivers/mmc/host/omap.c slot->pdata = &host->pdata->slots[id]; pdata 1246 drivers/mmc/host/omap.c if (host->pdata->slots[id].wires >= 4) pdata 1256 drivers/mmc/host/omap.c if (host->pdata->max_freq) pdata 1257 drivers/mmc/host/omap.c mmc->f_max = min(host->pdata->max_freq, mmc->f_max); pdata 1258 drivers/mmc/host/omap.c mmc->ocr_avail = slot->pdata->ocr_mask; pdata 1270 drivers/mmc/host/omap.c if (slot->pdata->get_cover_state != NULL) { pdata 1280 drivers/mmc/host/omap.c if (slot->pdata->name != NULL) { pdata 1287 drivers/mmc/host/omap.c if (slot->pdata->get_cover_state != NULL) { pdata 1298 drivers/mmc/host/omap.c if (slot->pdata->name != NULL) pdata 1310 drivers/mmc/host/omap.c if (slot->pdata->name != NULL) pdata 1312 drivers/mmc/host/omap.c if (slot->pdata->get_cover_state != NULL) pdata 1325 drivers/mmc/host/omap.c struct omap_mmc_platform_data *pdata = pdev->dev.platform_data; pdata 1331 drivers/mmc/host/omap.c if (pdata == NULL) { pdata 1335 drivers/mmc/host/omap.c if (pdata->nr_slots == 0) { pdata 1367 drivers/mmc/host/omap.c host->pdata = pdata; pdata 1368 drivers/mmc/host/omap.c host->features = host->pdata->slots[0].features; pdata 1419 drivers/mmc/host/omap.c if (pdata->init != NULL) { pdata 1420 drivers/mmc/host/omap.c ret = pdata->init(&pdev->dev); pdata 1425 drivers/mmc/host/omap.c host->nr_slots = pdata->nr_slots; pdata 1434 drivers/mmc/host/omap.c for (i = 0; i < pdata->nr_slots; i++) { pdata 1449 drivers/mmc/host/omap.c if (pdata->cleanup) pdata 1450 drivers/mmc/host/omap.c pdata->cleanup(&pdev->dev); pdata 1475 drivers/mmc/host/omap.c if (host->pdata->cleanup) pdata 1476 drivers/mmc/host/omap.c host->pdata->cleanup(&pdev->dev); pdata 153 drivers/mmc/host/omap_hsmmc.c #define mmc_pdata(host) host->pdata pdata 206 drivers/mmc/host/omap_hsmmc.c struct omap_hsmmc_platform_data *pdata; pdata 643 drivers/mmc/host/omap_hsmmc.c if (host->pdata->controller_flags & OMAP_HSMMC_SUPPORTS_DUAL_VOLT) { pdata 1483 drivers/mmc/host/omap_hsmmc.c if (host->pdata->controller_flags & OMAP_HSMMC_SUPPORTS_DUAL_VOLT) { pdata 1605 drivers/mmc/host/omap_hsmmc.c if (host->pdata->controller_flags & OMAP_HSMMC_SWAKEUP_MISSING) { pdata 1644 drivers/mmc/host/omap_hsmmc.c if (host->pdata->controller_flags & OMAP_HSMMC_SUPPORTS_DUAL_VOLT) { pdata 1780 drivers/mmc/host/omap_hsmmc.c struct omap_hsmmc_platform_data *pdata, *legacy; pdata 1783 drivers/mmc/host/omap_hsmmc.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 1784 drivers/mmc/host/omap_hsmmc.c if (!pdata) pdata 1789 drivers/mmc/host/omap_hsmmc.c pdata->name = legacy->name; pdata 1792 drivers/mmc/host/omap_hsmmc.c pdata->controller_flags |= OMAP_HSMMC_SUPPORTS_DUAL_VOLT; pdata 1795 drivers/mmc/host/omap_hsmmc.c pdata->nonremovable = true; pdata 1796 drivers/mmc/host/omap_hsmmc.c pdata->no_regulator_off_init = true; pdata 1800 drivers/mmc/host/omap_hsmmc.c pdata->features |= HSMMC_HAS_UPDATED_RESET; pdata 1803 drivers/mmc/host/omap_hsmmc.c pdata->features |= HSMMC_HAS_HSPE_SUPPORT; pdata 1805 drivers/mmc/host/omap_hsmmc.c return pdata; pdata 1817 drivers/mmc/host/omap_hsmmc.c struct omap_hsmmc_platform_data *pdata = pdev->dev.platform_data; pdata 1828 drivers/mmc/host/omap_hsmmc.c pdata = of_get_hsmmc_pdata(&pdev->dev); pdata 1830 drivers/mmc/host/omap_hsmmc.c if (IS_ERR(pdata)) pdata 1831 drivers/mmc/host/omap_hsmmc.c return PTR_ERR(pdata); pdata 1835 drivers/mmc/host/omap_hsmmc.c pdata->reg_offset = data->reg_offset; pdata 1836 drivers/mmc/host/omap_hsmmc.c pdata->controller_flags |= data->controller_flags; pdata 1840 drivers/mmc/host/omap_hsmmc.c if (pdata == NULL) { pdata 1866 drivers/mmc/host/omap_hsmmc.c host->pdata = pdata; pdata 1871 drivers/mmc/host/omap_hsmmc.c host->mapbase = res->start + pdata->reg_offset; pdata 1872 drivers/mmc/host/omap_hsmmc.c host->base = base + pdata->reg_offset; pdata 1887 drivers/mmc/host/omap_hsmmc.c if (pdata->max_freq > 0) pdata 1888 drivers/mmc/host/omap_hsmmc.c mmc->f_max = pdata->max_freq; pdata 1901 drivers/mmc/host/omap_hsmmc.c if (host->pdata->controller_flags & OMAP_HSMMC_BROKEN_MULTIBLOCK_READ) { pdata 64 drivers/mmc/host/pxamci.c struct pxamci_platform_data *pdata; pdata 88 drivers/mmc/host/pxamci.c mmc->ocr_avail = host->pdata ? pdata 89 drivers/mmc/host/pxamci.c host->pdata->ocr_mask : pdata 107 drivers/mmc/host/pxamci.c bool on = !!((1 << vdd) & host->pdata->ocr_mask); pdata 111 drivers/mmc/host/pxamci.c if (host->pdata && host->pdata->setpower) pdata 112 drivers/mmc/host/pxamci.c return host->pdata->setpower(mmc_dev(host->mmc), vdd); pdata 432 drivers/mmc/host/pxamci.c if (host->pdata && host->pdata->get_ro) pdata 433 drivers/mmc/host/pxamci.c return !!host->pdata->get_ro(mmc_dev(mmc)); pdata 655 drivers/mmc/host/pxamci.c host->pdata = pdev->dev.platform_data; pdata 727 drivers/mmc/host/pxamci.c if (host->pdata) { pdata 728 drivers/mmc/host/pxamci.c host->detect_delay_ms = host->pdata->detect_delay_ms; pdata 743 drivers/mmc/host/pxamci.c if (!host->pdata->gpio_card_ro_invert) pdata 754 drivers/mmc/host/pxamci.c if (host->pdata->init) pdata 755 drivers/mmc/host/pxamci.c host->pdata->init(dev, pxamci_detect_irq, mmc); pdata 757 drivers/mmc/host/pxamci.c if (host->power && host->pdata->setpower) pdata 759 drivers/mmc/host/pxamci.c if (host->use_ro_gpio && host->pdata->get_ro) pdata 788 drivers/mmc/host/pxamci.c if (host->pdata && host->pdata->exit) pdata 789 drivers/mmc/host/pxamci.c host->pdata->exit(&pdev->dev, mmc); pdata 57 drivers/mmc/host/renesas_sdhi.h container_of((host)->pdata, struct renesas_sdhi, mmc_data) pdata 130 drivers/mmc/host/renesas_sdhi_core.c if (!(host->pdata->flags & TMIO_MMC_MIN_RCAR2)) pdata 181 drivers/mmc/host/renesas_sdhi_core.c if ((host->pdata->flags & TMIO_MMC_CLK_ACTUAL) && ((clk >> 22) & 0x1)) { pdata 189 drivers/mmc/host/renesas_sdhi_core.c if (!(host->pdata->flags & TMIO_MMC_MIN_RCAR2)) pdata 197 drivers/mmc/host/renesas_sdhi_core.c if (!(host->pdata->flags & TMIO_MMC_MIN_RCAR2)) pdata 358 drivers/mmc/host/renesas_sdhi_core.c if (host->pdata->flags & TMIO_MMC_HAVE_4TAP_HS400) pdata 496 drivers/mmc/host/renesas_sdhi_core.c bool use_4tap = host->pdata->flags & TMIO_MMC_HAVE_4TAP_HS400; pdata 543 drivers/mmc/host/renesas_sdhi_core.c if (host->pdata->flags & TMIO_MMC_MIN_RCAR2) pdata 579 drivers/mmc/host/renesas_sdhi_core.c if (host->pdata->flags & TMIO_MMC_HAVE_CBSY) pdata 260 drivers/mmc/host/renesas_sdhi_internal_dmac.c struct tmio_mmc_data *pdata) pdata 161 drivers/mmc/host/renesas_sdhi_sys_dmac.c unsigned int align = (1 << host->pdata->alignment_shift) - 1; pdata 233 drivers/mmc/host/renesas_sdhi_sys_dmac.c unsigned int align = (1 << host->pdata->alignment_shift) - 1; pdata 336 drivers/mmc/host/renesas_sdhi_sys_dmac.c struct tmio_mmc_data *pdata) pdata 342 drivers/mmc/host/renesas_sdhi_sys_dmac.c (!pdata->chan_priv_tx || !pdata->chan_priv_rx)) pdata 359 drivers/mmc/host/renesas_sdhi_sys_dmac.c priv->dma_priv.filter, pdata->chan_priv_tx, pdata 379 drivers/mmc/host/renesas_sdhi_sys_dmac.c priv->dma_priv.filter, pdata->chan_priv_rx, pdata 388 drivers/mmc/host/renesas_sdhi_sys_dmac.c cfg.src_addr = cfg.dst_addr + host->pdata->dma_rx_offset; pdata 1221 drivers/mmc/host/s3cmci.c if (host->pdata->set_power) pdata 1222 drivers/mmc/host/s3cmci.c host->pdata->set_power(ios->power_mode, ios->vdd); pdata 1237 drivers/mmc/host/s3cmci.c if (host->pdata->set_power) pdata 1238 drivers/mmc/host/s3cmci.c host->pdata->set_power(ios->power_mode, ios->vdd); pdata 1476 drivers/mmc/host/s3cmci.c struct s3c24xx_mci_pdata *pdata; pdata 1496 drivers/mmc/host/s3cmci.c pdata = pdev->dev.platform_data; pdata 1498 drivers/mmc/host/s3cmci.c if (pdata->no_wprotect) pdata 1501 drivers/mmc/host/s3cmci.c if (pdata->no_detect) pdata 1504 drivers/mmc/host/s3cmci.c if (pdata->wprotect_invert) pdata 1528 drivers/mmc/host/s3cmci.c struct s3c24xx_mci_pdata *pdata; pdata 1538 drivers/mmc/host/s3cmci.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1539 drivers/mmc/host/s3cmci.c if (!pdata) pdata 1542 drivers/mmc/host/s3cmci.c pdev->dev.platform_data = pdata; pdata 1572 drivers/mmc/host/s3cmci.c host->pdata = pdev->dev.platform_data; pdata 1671 drivers/mmc/host/s3cmci.c if (host->pdata->ocr_avail) pdata 1672 drivers/mmc/host/s3cmci.c mmc->ocr_avail = host->pdata->ocr_avail; pdata 19 drivers/mmc/host/s3cmci.h struct s3c24xx_mci_pdata *pdata; pdata 27 drivers/mmc/host/sdhci-iproc.c const struct sdhci_pltfm_data *pdata; pdata 206 drivers/mmc/host/sdhci-iproc.c .pdata = &sdhci_iproc_cygnus_pltfm_data, pdata 230 drivers/mmc/host/sdhci-iproc.c .pdata = &sdhci_iproc_pltfm_data, pdata 254 drivers/mmc/host/sdhci-iproc.c .pdata = &sdhci_bcm2835_pltfm_data, pdata 270 drivers/mmc/host/sdhci-iproc.c .pdata = &sdhci_bcm2711_pltfm_data, pdata 302 drivers/mmc/host/sdhci-iproc.c host = sdhci_pltfm_init(pdev, iproc_data->pdata, sizeof(*iproc_host)); pdata 332 drivers/mmc/host/sdhci-iproc.c if (iproc_host->data->pdata->quirks & SDHCI_QUIRK_MISSING_CAPS) { pdata 108 drivers/mmc/host/sdhci-of-arasan.c const struct sdhci_pltfm_data *pdata; pdata 318 drivers/mmc/host/sdhci-of-arasan.c .pdata = &sdhci_arasan_pdata, pdata 379 drivers/mmc/host/sdhci-of-arasan.c .pdata = &sdhci_arasan_cqe_pdata, pdata 384 drivers/mmc/host/sdhci-of-arasan.c .pdata = &sdhci_arasan_cqe_pdata, pdata 746 drivers/mmc/host/sdhci-of-arasan.c host = sdhci_pltfm_init(pdev, data->pdata, sizeof(*sdhci_arasan)); pdata 125 drivers/mmc/host/sdhci-pic32.c struct pic32_sdhci_priv *pdata) pdata 117 drivers/mmc/host/sdhci-pltfm.c const struct sdhci_pltfm_data *pdata, pdata 147 drivers/mmc/host/sdhci-pltfm.c if (pdata && pdata->ops) pdata 148 drivers/mmc/host/sdhci-pltfm.c host->ops = pdata->ops; pdata 151 drivers/mmc/host/sdhci-pltfm.c if (pdata) { pdata 152 drivers/mmc/host/sdhci-pltfm.c host->quirks = pdata->quirks; pdata 153 drivers/mmc/host/sdhci-pltfm.c host->quirks2 = pdata->quirks2; pdata 174 drivers/mmc/host/sdhci-pltfm.c const struct sdhci_pltfm_data *pdata, pdata 180 drivers/mmc/host/sdhci-pltfm.c host = sdhci_pltfm_init(pdev, pdata, priv_size); pdata 98 drivers/mmc/host/sdhci-pltfm.h const struct sdhci_pltfm_data *pdata, pdata 103 drivers/mmc/host/sdhci-pltfm.h const struct sdhci_pltfm_data *pdata, pdata 47 drivers/mmc/host/sdhci-pxav2.c struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; pdata 58 drivers/mmc/host/sdhci-pxav2.c if (pdata && pdata->clk_delay_sel == 1) { pdata 62 drivers/mmc/host/sdhci-pxav2.c tmp |= (pdata->clk_delay_cycles & SDCLK_DELAY_MASK) pdata 70 drivers/mmc/host/sdhci-pxav2.c if (pdata && (pdata->flags & PXA_FLAG_ENABLE_CLOCK_GATING)) { pdata 123 drivers/mmc/host/sdhci-pxav2.c struct sdhci_pxa_platdata *pdata; pdata 128 drivers/mmc/host/sdhci-pxav2.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 129 drivers/mmc/host/sdhci-pxav2.c if (!pdata) pdata 133 drivers/mmc/host/sdhci-pxav2.c pdata->flags |= PXA_FLAG_CARD_PERMANENT; pdata 137 drivers/mmc/host/sdhci-pxav2.c pdata->flags |= PXA_FLAG_SD_8_BIT_CAPABLE_SLOT; pdata 141 drivers/mmc/host/sdhci-pxav2.c pdata->clk_delay_sel = 1; pdata 142 drivers/mmc/host/sdhci-pxav2.c pdata->clk_delay_cycles = clk_delay_cycles; pdata 145 drivers/mmc/host/sdhci-pxav2.c return pdata; pdata 157 drivers/mmc/host/sdhci-pxav2.c struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; pdata 190 drivers/mmc/host/sdhci-pxav2.c pdata = pxav2_get_mmc_pdata(dev); pdata 192 drivers/mmc/host/sdhci-pxav2.c if (pdata) { pdata 193 drivers/mmc/host/sdhci-pxav2.c if (pdata->flags & PXA_FLAG_CARD_PERMANENT) { pdata 200 drivers/mmc/host/sdhci-pxav2.c if (pdata->flags & PXA_FLAG_SD_8_BIT_CAPABLE_SLOT) pdata 203 drivers/mmc/host/sdhci-pxav2.c if (pdata->quirks) pdata 204 drivers/mmc/host/sdhci-pxav2.c host->quirks |= pdata->quirks; pdata 205 drivers/mmc/host/sdhci-pxav2.c if (pdata->host_caps) pdata 206 drivers/mmc/host/sdhci-pxav2.c host->mmc->caps |= pdata->host_caps; pdata 207 drivers/mmc/host/sdhci-pxav2.c if (pdata->pm_caps) pdata 208 drivers/mmc/host/sdhci-pxav2.c host->mmc->pm_caps |= pdata->pm_caps; pdata 169 drivers/mmc/host/sdhci-pxav3.c struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; pdata 178 drivers/mmc/host/sdhci-pxav3.c if (pdata && 0 != pdata->clk_delay_cycles) { pdata 182 drivers/mmc/host/sdhci-pxav3.c tmp |= (pdata->clk_delay_cycles & SDCLK_DELAY_MASK) pdata 350 drivers/mmc/host/sdhci-pxav3.c struct sdhci_pxa_platdata *pdata; pdata 354 drivers/mmc/host/sdhci-pxav3.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 355 drivers/mmc/host/sdhci-pxav3.c if (!pdata) pdata 360 drivers/mmc/host/sdhci-pxav3.c pdata->clk_delay_cycles = clk_delay_cycles; pdata 362 drivers/mmc/host/sdhci-pxav3.c return pdata; pdata 374 drivers/mmc/host/sdhci-pxav3.c struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; pdata 422 drivers/mmc/host/sdhci-pxav3.c pdata = pxav3_get_mmc_pdata(dev); pdata 423 drivers/mmc/host/sdhci-pxav3.c pdev->dev.platform_data = pdata; pdata 424 drivers/mmc/host/sdhci-pxav3.c } else if (pdata) { pdata 426 drivers/mmc/host/sdhci-pxav3.c if (pdata->flags & PXA_FLAG_CARD_PERMANENT) pdata 430 drivers/mmc/host/sdhci-pxav3.c if (pdata->flags & PXA_FLAG_SD_8_BIT_CAPABLE_SLOT) pdata 433 drivers/mmc/host/sdhci-pxav3.c if (pdata->quirks) pdata 434 drivers/mmc/host/sdhci-pxav3.c host->quirks |= pdata->quirks; pdata 435 drivers/mmc/host/sdhci-pxav3.c if (pdata->quirks2) pdata 436 drivers/mmc/host/sdhci-pxav3.c host->quirks2 |= pdata->quirks2; pdata 437 drivers/mmc/host/sdhci-pxav3.c if (pdata->host_caps) pdata 438 drivers/mmc/host/sdhci-pxav3.c host->mmc->caps |= pdata->host_caps; pdata 439 drivers/mmc/host/sdhci-pxav3.c if (pdata->host_caps2) pdata 440 drivers/mmc/host/sdhci-pxav3.c host->mmc->caps2 |= pdata->host_caps2; pdata 441 drivers/mmc/host/sdhci-pxav3.c if (pdata->pm_caps) pdata 442 drivers/mmc/host/sdhci-pxav3.c host->mmc->pm_caps |= pdata->pm_caps; pdata 117 drivers/mmc/host/sdhci-s3c.c struct s3c_sdhci_platdata *pdata; pdata 425 drivers/mmc/host/sdhci-s3c.c struct sdhci_host *host, struct s3c_sdhci_platdata *pdata) pdata 433 drivers/mmc/host/sdhci-s3c.c pdata->max_width = max_width; pdata 437 drivers/mmc/host/sdhci-s3c.c pdata->cd_type = S3C_SDHCI_CD_NONE; pdata 442 drivers/mmc/host/sdhci-s3c.c pdata->cd_type = S3C_SDHCI_CD_PERMANENT; pdata 450 drivers/mmc/host/sdhci-s3c.c pdata->cd_type = S3C_SDHCI_CD_INTERNAL; pdata 455 drivers/mmc/host/sdhci-s3c.c struct sdhci_host *host, struct s3c_sdhci_platdata *pdata) pdata 479 drivers/mmc/host/sdhci-s3c.c struct s3c_sdhci_platdata *pdata; pdata 503 drivers/mmc/host/sdhci-s3c.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 504 drivers/mmc/host/sdhci-s3c.c if (!pdata) { pdata 510 drivers/mmc/host/sdhci-s3c.c ret = sdhci_s3c_parse_dt(&pdev->dev, host, pdata); pdata 514 drivers/mmc/host/sdhci-s3c.c memcpy(pdata, pdev->dev.platform_data, sizeof(*pdata)); pdata 522 drivers/mmc/host/sdhci-s3c.c sc->pdata = pdata; pdata 566 drivers/mmc/host/sdhci-s3c.c if (pdata->cfg_gpio) pdata 567 drivers/mmc/host/sdhci-s3c.c pdata->cfg_gpio(pdev, pdata->max_width); pdata 602 drivers/mmc/host/sdhci-s3c.c if (pdata->cd_type == S3C_SDHCI_CD_NONE || pdata 603 drivers/mmc/host/sdhci-s3c.c pdata->cd_type == S3C_SDHCI_CD_PERMANENT) pdata 606 drivers/mmc/host/sdhci-s3c.c if (pdata->cd_type == S3C_SDHCI_CD_PERMANENT) pdata 609 drivers/mmc/host/sdhci-s3c.c switch (pdata->max_width) { pdata 618 drivers/mmc/host/sdhci-s3c.c if (pdata->pm_caps) pdata 619 drivers/mmc/host/sdhci-s3c.c host->mmc->pm_caps |= pdata->pm_caps; pdata 638 drivers/mmc/host/sdhci-s3c.c if (pdata->host_caps) pdata 639 drivers/mmc/host/sdhci-s3c.c host->mmc->caps |= pdata->host_caps; pdata 641 drivers/mmc/host/sdhci-s3c.c if (pdata->host_caps2) pdata 642 drivers/mmc/host/sdhci-s3c.c host->mmc->caps2 |= pdata->host_caps2; pdata 658 drivers/mmc/host/sdhci-s3c.c if (pdata->cd_type != S3C_SDHCI_CD_INTERNAL) pdata 684 drivers/mmc/host/sdhci-s3c.c if (sc->pdata->cd_type != S3C_SDHCI_CD_INTERNAL) pdata 246 drivers/mmc/host/sdhci-st.c struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host); pdata 249 drivers/mmc/host/sdhci-st.c st_mmcss_set_dll(pdata->top_ioaddr); pdata 260 drivers/mmc/host/sdhci-st.c struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host); pdata 273 drivers/mmc/host/sdhci-st.c st_mmcss_set_static_delay(pdata->top_ioaddr); pdata 277 drivers/mmc/host/sdhci-st.c st_mmcss_set_static_delay(pdata->top_ioaddr); pdata 281 drivers/mmc/host/sdhci-st.c st_mmcss_set_static_delay(pdata->top_ioaddr); pdata 287 drivers/mmc/host/sdhci-st.c st_mmcss_set_static_delay(pdata->top_ioaddr); pdata 293 drivers/mmc/host/sdhci-st.c st_mmcss_set_static_delay(pdata->top_ioaddr); pdata 346 drivers/mmc/host/sdhci-st.c struct st_mmc_platform_data *pdata; pdata 371 drivers/mmc/host/sdhci-st.c host = sdhci_pltfm_init(pdev, &sdhci_st_pdata, sizeof(*pdata)); pdata 379 drivers/mmc/host/sdhci-st.c pdata = sdhci_pltfm_priv(pltfm_host); pdata 380 drivers/mmc/host/sdhci-st.c pdata->rstc = rstc; pdata 403 drivers/mmc/host/sdhci-st.c pdata->top_ioaddr = devm_ioremap_resource(&pdev->dev, res); pdata 404 drivers/mmc/host/sdhci-st.c if (IS_ERR(pdata->top_ioaddr)) { pdata 406 drivers/mmc/host/sdhci-st.c pdata->top_ioaddr = NULL; pdata 410 drivers/mmc/host/sdhci-st.c pdata->icnclk = icnclk; pdata 445 drivers/mmc/host/sdhci-st.c struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host); pdata 446 drivers/mmc/host/sdhci-st.c struct reset_control *rstc = pdata->rstc; pdata 451 drivers/mmc/host/sdhci-st.c clk_disable_unprepare(pdata->icnclk); pdata 464 drivers/mmc/host/sdhci-st.c struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host); pdata 474 drivers/mmc/host/sdhci-st.c if (pdata->rstc) pdata 475 drivers/mmc/host/sdhci-st.c reset_control_assert(pdata->rstc); pdata 477 drivers/mmc/host/sdhci-st.c clk_disable_unprepare(pdata->icnclk); pdata 487 drivers/mmc/host/sdhci-st.c struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host); pdata 495 drivers/mmc/host/sdhci-st.c ret = clk_prepare_enable(pdata->icnclk); pdata 501 drivers/mmc/host/sdhci-st.c if (pdata->rstc) pdata 502 drivers/mmc/host/sdhci-st.c reset_control_deassert(pdata->rstc); pdata 107 drivers/mmc/host/sdhci-tegra.c const struct sdhci_pltfm_data *pdata; pdata 1275 drivers/mmc/host/sdhci-tegra.c .pdata = &sdhci_tegra20_pdata, pdata 1302 drivers/mmc/host/sdhci-tegra.c .pdata = &sdhci_tegra30_pdata, pdata 1337 drivers/mmc/host/sdhci-tegra.c .pdata = &sdhci_tegra114_pdata, pdata 1353 drivers/mmc/host/sdhci-tegra.c .pdata = &sdhci_tegra124_pdata, pdata 1383 drivers/mmc/host/sdhci-tegra.c .pdata = &sdhci_tegra210_pdata, pdata 1420 drivers/mmc/host/sdhci-tegra.c .pdata = &sdhci_tegra186_pdata, pdata 1433 drivers/mmc/host/sdhci-tegra.c .pdata = &sdhci_tegra186_pdata, pdata 1519 drivers/mmc/host/sdhci-tegra.c host = sdhci_pltfm_init(pdev, soc_data->pdata, sizeof(*tegra_host)); pdata 89 drivers/mmc/host/sdhci_am654.c const struct sdhci_pltfm_data *pdata; pdata 273 drivers/mmc/host/sdhci_am654.c .pdata = &sdhci_am654_pdata, pdata 295 drivers/mmc/host/sdhci_am654.c .pdata = &sdhci_j721e_8bit_pdata, pdata 317 drivers/mmc/host/sdhci_am654.c .pdata = &sdhci_j721e_4bit_pdata, pdata 446 drivers/mmc/host/sdhci_am654.c host = sdhci_pltfm_init(pdev, drvdata->pdata, sizeof(*sdhci_am654)); pdata 428 drivers/mmc/host/sh_mmcif.c struct sh_mmcif_plat_data *pdata = dev->platform_data; pdata 431 drivers/mmc/host/sh_mmcif.c pdata->slave_id_tx); pdata 433 drivers/mmc/host/sh_mmcif.c pdata->slave_id_rx); pdata 62 drivers/mmc/host/tmio_mmc.c divisor = host->pdata->hclk / new_clock; pdata 68 drivers/mmc/host/tmio_mmc.c host->pdata->set_clk_div(host->pdev, clk_sel); pdata 88 drivers/mmc/host/tmio_mmc.c if (host->pdata->flags & TMIO_MMC_SDIO_IRQ) { pdata 130 drivers/mmc/host/tmio_mmc.c struct tmio_mmc_data *pdata; pdata 138 drivers/mmc/host/tmio_mmc.c pdata = pdev->dev.platform_data; pdata 139 drivers/mmc/host/tmio_mmc.c if (!pdata || !pdata->hclk) pdata 161 drivers/mmc/host/tmio_mmc.c host = tmio_mmc_host_alloc(pdev, pdata); pdata 172 drivers/mmc/host/tmio_mmc.c host->mmc->f_max = pdata->hclk; pdata 173 drivers/mmc/host/tmio_mmc.c host->mmc->f_min = pdata->hclk / 512; pdata 117 drivers/mmc/host/tmio_mmc.h struct tmio_mmc_data *pdata); pdata 142 drivers/mmc/host/tmio_mmc.h struct tmio_mmc_data *pdata; pdata 203 drivers/mmc/host/tmio_mmc.h struct tmio_mmc_data *pdata); pdata 67 drivers/mmc/host/tmio_mmc_core.c struct tmio_mmc_data *pdata) pdata 70 drivers/mmc/host/tmio_mmc_core.c host->dma_ops->request(host, pdata); pdata 146 drivers/mmc/host/tmio_mmc_core.c if (host->pdata->flags & TMIO_MMC_SDIO_STATUS_SETBITS) pdata 169 drivers/mmc/host/tmio_mmc_core.c if (host->pdata->flags & TMIO_MMC_SDIO_IRQ) { pdata 283 drivers/mmc/host/tmio_mmc_core.c if ((host->pdata->flags & TMIO_MMC_HAVE_CMD12_CTRL) && pdata 310 drivers/mmc/host/tmio_mmc_core.c if (host->pdata->flags & TMIO_MMC_32BIT_DATA_PORT) { pdata 497 drivers/mmc/host/tmio_mmc_core.c if (host->pdata->flags & TMIO_MMC_HAS_IDLE_WAIT) { pdata 636 drivers/mmc/host/tmio_mmc_core.c struct tmio_mmc_data *pdata = host->pdata; pdata 640 drivers/mmc/host/tmio_mmc_core.c if (!(pdata->flags & TMIO_MMC_SDIO_IRQ)) pdata 647 drivers/mmc/host/tmio_mmc_core.c if (pdata->flags & TMIO_MMC_SDIO_STATUS_SETBITS) pdata 684 drivers/mmc/host/tmio_mmc_core.c struct tmio_mmc_data *pdata = host->pdata; pdata 692 drivers/mmc/host/tmio_mmc_core.c int blksz_2bytes = pdata->flags & TMIO_MMC_BLKSZ_2BYTES; pdata 1067 drivers/mmc/host/tmio_mmc_core.c struct tmio_mmc_data *pdata = host->pdata; pdata 1077 drivers/mmc/host/tmio_mmc_core.c mmc->ocr_avail = pdata->ocr_mask; pdata 1107 drivers/mmc/host/tmio_mmc_core.c struct tmio_mmc_data *pdata) pdata 1128 drivers/mmc/host/tmio_mmc_core.c host->pdata = pdata; pdata 1159 drivers/mmc/host/tmio_mmc_core.c struct tmio_mmc_data *pdata = _host->pdata; pdata 1170 drivers/mmc/host/tmio_mmc_core.c if (!(pdata->flags & TMIO_MMC_HAS_IDLE_WAIT)) pdata 1173 drivers/mmc/host/tmio_mmc_core.c _host->set_pwr = pdata->set_pwr; pdata 1187 drivers/mmc/host/tmio_mmc_core.c mmc->caps |= MMC_CAP_ERASE | MMC_CAP_4_BIT_DATA | pdata->capabilities; pdata 1188 drivers/mmc/host/tmio_mmc_core.c mmc->caps2 |= pdata->capabilities2; pdata 1189 drivers/mmc/host/tmio_mmc_core.c mmc->max_segs = pdata->max_segs ? : 32; pdata 1191 drivers/mmc/host/tmio_mmc_core.c mmc->max_blk_count = pdata->max_blk_count ? : pdata 1217 drivers/mmc/host/tmio_mmc_core.c if (pdata->flags & TMIO_MMC_MIN_RCAR2) pdata 1228 drivers/mmc/host/tmio_mmc_core.c if (pdata->flags & TMIO_MMC_SDIO_IRQ) pdata 1249 drivers/mmc/host/tmio_mmc_core.c tmio_mmc_request_dma(_host, pdata); pdata 1279 drivers/mmc/host/tmio_mmc_core.c if (host->pdata->flags & TMIO_MMC_SDIO_IRQ) pdata 76 drivers/mmc/host/uniphier-sd.c return container_of(host->pdata, struct uniphier_sd_priv, tmio_data); pdata 177 drivers/mmc/host/uniphier-sd.c struct tmio_mmc_data *pdata) pdata 300 drivers/mmc/host/uniphier-sd.c struct tmio_mmc_data *pdata) pdata 620 drivers/mtd/devices/mtd_dataflash.c struct flash_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 639 drivers/mtd/devices/mtd_dataflash.c device->name = (pdata && pdata->name) ? pdata->name : priv->name; pdata 662 drivers/mtd/devices/mtd_dataflash.c pdata ? pdata->parts : NULL, pdata 663 drivers/mtd/devices/mtd_dataflash.c pdata ? pdata->nr_parts : 0); pdata 795 drivers/mtd/devices/spear_smi.c struct spear_smi_plat_data *pdata = dev_get_platdata(&pdev->dev); pdata 806 drivers/mtd/devices/spear_smi.c pdata->clk_rate = val; pdata 808 drivers/mtd/devices/spear_smi.c pdata->board_flash_info = devm_kzalloc(&pdev->dev, pdata 809 drivers/mtd/devices/spear_smi.c sizeof(*pdata->board_flash_info), pdata 811 drivers/mtd/devices/spear_smi.c if (!pdata->board_flash_info) pdata 818 drivers/mtd/devices/spear_smi.c flash_info = &pdata->board_flash_info[i]; pdata 819 drivers/mtd/devices/spear_smi.c pdata->np[i] = pp; pdata 823 drivers/mtd/devices/spear_smi.c pdata->board_flash_info->mem_base = be32_to_cpup(&addr[0]); pdata 824 drivers/mtd/devices/spear_smi.c pdata->board_flash_info->size = be32_to_cpup(&addr[1]); pdata 827 drivers/mtd/devices/spear_smi.c pdata->board_flash_info->fast_mode = 1; pdata 832 drivers/mtd/devices/spear_smi.c pdata->num_flashes = i; pdata 849 drivers/mtd/devices/spear_smi.c struct spear_smi_plat_data *pdata; pdata 856 drivers/mtd/devices/spear_smi.c pdata = dev_get_platdata(&pdev->dev); pdata 857 drivers/mtd/devices/spear_smi.c if (bank > pdata->num_flashes - 1) pdata 860 drivers/mtd/devices/spear_smi.c flash_info = &pdata->board_flash_info[bank]; pdata 941 drivers/mtd/devices/spear_smi.c struct spear_smi_plat_data *pdata = NULL; pdata 948 drivers/mtd/devices/spear_smi.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 949 drivers/mtd/devices/spear_smi.c if (!pdata) { pdata 953 drivers/mtd/devices/spear_smi.c pdev->dev.platform_data = pdata; pdata 961 drivers/mtd/devices/spear_smi.c pdata = dev_get_platdata(&pdev->dev); pdata 962 drivers/mtd/devices/spear_smi.c if (!pdata) { pdata 991 drivers/mtd/devices/spear_smi.c dev->clk_rate = pdata->clk_rate; pdata 996 drivers/mtd/devices/spear_smi.c dev->num_flashes = pdata->num_flashes; pdata 1027 drivers/mtd/devices/spear_smi.c ret = spear_smi_setup_banks(pdev, i, pdata->np[i]); pdata 90 drivers/mtd/maps/pismo.c void *pdata, size_t psize) pdata 114 drivers/mtd/maps/pismo.c ret = platform_device_add_data(dev, pdata, psize); pdata 214 drivers/mtd/maps/pismo.c struct pismo_pdata *pdata = client->dev.platform_data; pdata 229 drivers/mtd/maps/pismo.c if (pdata) { pdata 230 drivers/mtd/maps/pismo.c pismo->vpp = pdata->set_vpp; pdata 231 drivers/mtd/maps/pismo.c pismo->vpp_data = pdata->vpp_data; pdata 246 drivers/mtd/maps/pismo.c pdata->cs_addrs[i]); pdata 33 drivers/mtd/maps/plat-ram.c struct platdata_mtd_ram *pdata; pdata 56 drivers/mtd/maps/plat-ram.c if (info->pdata == NULL) pdata 59 drivers/mtd/maps/plat-ram.c if (info->pdata->set_rw != NULL) pdata 60 drivers/mtd/maps/plat-ram.c (info->pdata->set_rw)(info->dev, to); pdata 99 drivers/mtd/maps/plat-ram.c struct platdata_mtd_ram *pdata; pdata 112 drivers/mtd/maps/plat-ram.c pdata = dev_get_platdata(&pdev->dev); pdata 123 drivers/mtd/maps/plat-ram.c info->pdata = pdata; pdata 141 drivers/mtd/maps/plat-ram.c info->map.name = pdata->mapname != NULL ? pdata 142 drivers/mtd/maps/plat-ram.c (char *)pdata->mapname : (char *)pdev->name; pdata 143 drivers/mtd/maps/plat-ram.c info->map.bankwidth = pdata->bankwidth; pdata 154 drivers/mtd/maps/plat-ram.c if (pdata->map_probes) { pdata 155 drivers/mtd/maps/plat-ram.c const char * const *map_probes = pdata->map_probes; pdata 177 drivers/mtd/maps/plat-ram.c err = mtd_device_parse_register(info->mtd, pdata->probes, NULL, pdata 178 drivers/mtd/maps/plat-ram.c pdata->partitions, pdata 179 drivers/mtd/maps/plat-ram.c pdata->nr_partitions); pdata 183 drivers/mtd/maps/plat-ram.c if (pdata->nr_partitions) { pdata 46 drivers/mtd/maps/rbtx4939-flash.c struct rbtx4939_flash_data *pdata; pdata 53 drivers/mtd/maps/rbtx4939-flash.c pdata = dev_get_platdata(&dev->dev); pdata 54 drivers/mtd/maps/rbtx4939-flash.c if (!pdata) pdata 77 drivers/mtd/maps/rbtx4939-flash.c info->map.bankwidth = pdata->width; pdata 83 drivers/mtd/maps/rbtx4939-flash.c if (pdata->map_init) pdata 84 drivers/mtd/maps/rbtx4939-flash.c (*pdata->map_init)(&info->map); pdata 97 drivers/mtd/maps/rbtx4939-flash.c err = mtd_device_register(info->mtd, pdata->parts, pdata->nr_parts); pdata 35 drivers/mtd/nand/onenand/generic.c struct onenand_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 55 drivers/mtd/nand/onenand/generic.c info->onenand.mmcontrol = pdata ? pdata->mmcontrol : NULL; pdata 66 drivers/mtd/nand/onenand/generic.c err = mtd_device_register(&info->mtd, pdata ? pdata->parts : NULL, pdata 67 drivers/mtd/nand/onenand/generic.c pdata ? pdata->nr_parts : 0); pdata 836 drivers/mtd/nand/onenand/samsung.c struct onenand_platform_data *pdata; pdata 842 drivers/mtd/nand/onenand/samsung.c pdata = dev_get_platdata(&pdev->dev); pdata 933 drivers/mtd/nand/onenand/samsung.c err = mtd_device_register(mtd, pdata ? pdata->parts : NULL, pdata 934 drivers/mtd/nand/onenand/samsung.c pdata ? pdata->nr_parts : 0); pdata 517 drivers/mtd/nand/raw/davinci_nand.c struct davinci_nand_pdata *pdata; pdata 521 drivers/mtd/nand/raw/davinci_nand.c pdata = devm_kzalloc(&pdev->dev, pdata 524 drivers/mtd/nand/raw/davinci_nand.c pdev->dev.platform_data = pdata; pdata 525 drivers/mtd/nand/raw/davinci_nand.c if (!pdata) pdata 529 drivers/mtd/nand/raw/davinci_nand.c pdata->core_chipsel = prop; pdata 535 drivers/mtd/nand/raw/davinci_nand.c pdata->mask_ale = prop; pdata 538 drivers/mtd/nand/raw/davinci_nand.c pdata->mask_cle = prop; pdata 541 drivers/mtd/nand/raw/davinci_nand.c pdata->mask_chipsel = prop; pdata 545 drivers/mtd/nand/raw/davinci_nand.c pdata->ecc_mode = NAND_ECC_NONE; pdata 547 drivers/mtd/nand/raw/davinci_nand.c pdata->ecc_mode = NAND_ECC_SOFT; pdata 549 drivers/mtd/nand/raw/davinci_nand.c pdata->ecc_mode = NAND_ECC_HW; pdata 553 drivers/mtd/nand/raw/davinci_nand.c pdata->ecc_bits = prop; pdata 557 drivers/mtd/nand/raw/davinci_nand.c pdata->options |= NAND_BUSWIDTH_16; pdata 561 drivers/mtd/nand/raw/davinci_nand.c pdata->bbt_options = NAND_BBT_USE_FLASH; pdata 576 drivers/mtd/nand/raw/davinci_nand.c pdata->options |= NAND_NO_SUBPAGE_WRITE; pdata 594 drivers/mtd/nand/raw/davinci_nand.c struct davinci_nand_pdata *pdata = nand_davinci_get_pdata(info->pdev); pdata 597 drivers/mtd/nand/raw/davinci_nand.c if (IS_ERR(pdata)) pdata 598 drivers/mtd/nand/raw/davinci_nand.c return PTR_ERR(pdata); pdata 602 drivers/mtd/nand/raw/davinci_nand.c pdata->ecc_bits = 0; pdata 605 drivers/mtd/nand/raw/davinci_nand.c pdata->ecc_bits = 0; pdata 615 drivers/mtd/nand/raw/davinci_nand.c if (pdata->ecc_bits == 4) { pdata 647 drivers/mtd/nand/raw/davinci_nand.c info->chip.ecc.strength = pdata->ecc_bits; pdata 659 drivers/mtd/nand/raw/davinci_nand.c if (pdata->ecc_bits == 4) { pdata 690 drivers/mtd/nand/raw/davinci_nand.c struct davinci_nand_pdata *pdata; pdata 700 drivers/mtd/nand/raw/davinci_nand.c pdata = nand_davinci_get_pdata(pdev); pdata 701 drivers/mtd/nand/raw/davinci_nand.c if (IS_ERR(pdata)) pdata 702 drivers/mtd/nand/raw/davinci_nand.c return PTR_ERR(pdata); pdata 705 drivers/mtd/nand/raw/davinci_nand.c if (!pdata) pdata 709 drivers/mtd/nand/raw/davinci_nand.c if (pdata->core_chipsel < 0 || pdata->core_chipsel > 3) pdata 755 drivers/mtd/nand/raw/davinci_nand.c info->chip.bbt_options = pdata->bbt_options; pdata 757 drivers/mtd/nand/raw/davinci_nand.c info->chip.options = pdata->options; pdata 758 drivers/mtd/nand/raw/davinci_nand.c info->chip.bbt_td = pdata->bbt_td; pdata 759 drivers/mtd/nand/raw/davinci_nand.c info->chip.bbt_md = pdata->bbt_md; pdata 760 drivers/mtd/nand/raw/davinci_nand.c info->timing = pdata->timing; pdata 763 drivers/mtd/nand/raw/davinci_nand.c info->core_chipsel = pdata->core_chipsel; pdata 764 drivers/mtd/nand/raw/davinci_nand.c info->mask_chipsel = pdata->mask_chipsel; pdata 767 drivers/mtd/nand/raw/davinci_nand.c info->mask_ale = pdata->mask_ale ? : MASK_ALE; pdata 768 drivers/mtd/nand/raw/davinci_nand.c info->mask_cle = pdata->mask_cle ? : MASK_CLE; pdata 779 drivers/mtd/nand/raw/davinci_nand.c info->chip.ecc.mode = pdata->ecc_mode; pdata 792 drivers/mtd/nand/raw/davinci_nand.c ret = nand_scan(&info->chip, pdata->mask_chipsel ? 2 : 1); pdata 798 drivers/mtd/nand/raw/davinci_nand.c if (pdata->parts) pdata 799 drivers/mtd/nand/raw/davinci_nand.c ret = mtd_device_register(mtd, pdata->parts, pdata->nr_parts); pdata 179 drivers/mtd/nand/raw/lpc32xx_mlc.c struct lpc32xx_mlc_platform_data *pdata; pdata 577 drivers/mtd/nand/raw/lpc32xx_mlc.c if (!host->pdata || !host->pdata->dma_filter) { pdata 584 drivers/mtd/nand/raw/lpc32xx_mlc.c host->dma_chan = dma_request_channel(mask, host->pdata->dma_filter, pdata 714 drivers/mtd/nand/raw/lpc32xx_mlc.c host->pdata = dev_get_platdata(&pdev->dev); pdata 219 drivers/mtd/nand/raw/lpc32xx_slc.c struct lpc32xx_slc_platform_data *pdata; pdata 726 drivers/mtd/nand/raw/lpc32xx_slc.c if (!host->pdata || !host->pdata->dma_filter) { pdata 733 drivers/mtd/nand/raw/lpc32xx_slc.c host->dma_chan = dma_request_channel(mask, host->pdata->dma_filter, pdata 851 drivers/mtd/nand/raw/lpc32xx_slc.c host->pdata = dev_get_platdata(&pdev->dev); pdata 2412 drivers/mtd/nand/raw/marvell_nand.c struct pxa3xx_nand_platform_data *pdata = dev_get_platdata(nfc->dev); pdata 2415 drivers/mtd/nand/raw/marvell_nand.c if (pdata && pdata->flash_bbt) pdata 2457 drivers/mtd/nand/raw/marvell_nand.c if (pdata) { pdata 2458 drivers/mtd/nand/raw/marvell_nand.c chip->ecc.size = pdata->ecc_step_size; pdata 2459 drivers/mtd/nand/raw/marvell_nand.c chip->ecc.strength = pdata->ecc_strength; pdata 2478 drivers/mtd/nand/raw/marvell_nand.c if (pdata || nfc->caps->legacy_of_bindings) { pdata 2517 drivers/mtd/nand/raw/marvell_nand.c struct pxa3xx_nand_platform_data *pdata = dev_get_platdata(dev); pdata 2533 drivers/mtd/nand/raw/marvell_nand.c if (pdata || nfc->caps->legacy_of_bindings) { pdata 2556 drivers/mtd/nand/raw/marvell_nand.c if (pdata || nfc->caps->legacy_of_bindings) { pdata 2606 drivers/mtd/nand/raw/marvell_nand.c if (pdata || nfc->caps->legacy_of_bindings) { pdata 2660 drivers/mtd/nand/raw/marvell_nand.c if (pdata) pdata 2662 drivers/mtd/nand/raw/marvell_nand.c ret = mtd_device_register(mtd, pdata->parts, pdata->nr_parts); pdata 187 drivers/mtd/nand/raw/mxc_nand.c struct mxc_nand_platform_data pdata; pdata 1799 drivers/mtd/nand/raw/mxc_nand.c struct mxc_nand_platform_data *pdata = pdata 1801 drivers/mtd/nand/raw/mxc_nand.c if (pdata) { pdata 1802 drivers/mtd/nand/raw/mxc_nand.c host->pdata = *pdata; pdata 1845 drivers/mtd/nand/raw/mxc_nand.c if (host->pdata.hw_ecc) { pdata 1853 drivers/mtd/nand/raw/mxc_nand.c if (host->pdata.width == 2) pdata 1857 drivers/mtd/nand/raw/mxc_nand.c if (host->pdata.flash_bbt) pdata 1901 drivers/mtd/nand/raw/mxc_nand.c host->pdata.parts, pdata 1902 drivers/mtd/nand/raw/mxc_nand.c host->pdata.nr_parts); pdata 26 drivers/mtd/nand/raw/plat_nand.c struct platform_nand_data *pdata = dev_get_platdata(&pdev->dev); pdata 33 drivers/mtd/nand/raw/plat_nand.c if (!pdata) { pdata 38 drivers/mtd/nand/raw/plat_nand.c if (pdata->chip.nr_chips < 1) { pdata 60 drivers/mtd/nand/raw/plat_nand.c data->chip.legacy.cmd_ctrl = pdata->ctrl.cmd_ctrl; pdata 61 drivers/mtd/nand/raw/plat_nand.c data->chip.legacy.dev_ready = pdata->ctrl.dev_ready; pdata 62 drivers/mtd/nand/raw/plat_nand.c data->chip.legacy.select_chip = pdata->ctrl.select_chip; pdata 63 drivers/mtd/nand/raw/plat_nand.c data->chip.legacy.write_buf = pdata->ctrl.write_buf; pdata 64 drivers/mtd/nand/raw/plat_nand.c data->chip.legacy.read_buf = pdata->ctrl.read_buf; pdata 65 drivers/mtd/nand/raw/plat_nand.c data->chip.legacy.chip_delay = pdata->chip.chip_delay; pdata 66 drivers/mtd/nand/raw/plat_nand.c data->chip.options |= pdata->chip.options; pdata 67 drivers/mtd/nand/raw/plat_nand.c data->chip.bbt_options |= pdata->chip.bbt_options; pdata 75 drivers/mtd/nand/raw/plat_nand.c if (pdata->ctrl.probe) { pdata 76 drivers/mtd/nand/raw/plat_nand.c err = pdata->ctrl.probe(pdev); pdata 82 drivers/mtd/nand/raw/plat_nand.c err = nand_scan(&data->chip, pdata->chip.nr_chips); pdata 86 drivers/mtd/nand/raw/plat_nand.c part_types = pdata->chip.part_probe_types; pdata 89 drivers/mtd/nand/raw/plat_nand.c pdata->chip.partitions, pdata 90 drivers/mtd/nand/raw/plat_nand.c pdata->chip.nr_partitions); pdata 97 drivers/mtd/nand/raw/plat_nand.c if (pdata->ctrl.remove) pdata 98 drivers/mtd/nand/raw/plat_nand.c pdata->ctrl.remove(pdev); pdata 108 drivers/mtd/nand/raw/plat_nand.c struct platform_nand_data *pdata = dev_get_platdata(&pdev->dev); pdata 111 drivers/mtd/nand/raw/plat_nand.c if (pdata->ctrl.remove) pdata 112 drivers/mtd/nand/raw/plat_nand.c pdata->ctrl.remove(pdev); pdata 815 drivers/mtd/nand/raw/s3c2410.c struct s3c2410_platform_nand *pdata = info->platform; pdata 827 drivers/mtd/nand/raw/s3c2410.c pdata->tacls = DIV_ROUND_UP(tacls, 1000); pdata 828 drivers/mtd/nand/raw/s3c2410.c pdata->twrph0 = DIV_ROUND_UP(timings->tWP_min, 1000); pdata 829 drivers/mtd/nand/raw/s3c2410.c pdata->twrph1 = DIV_ROUND_UP(timings->tCLH_min, 1000); pdata 1023 drivers/mtd/nand/raw/s3c2410.c struct s3c2410_platform_nand *pdata; pdata 1034 drivers/mtd/nand/raw/s3c2410.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1035 drivers/mtd/nand/raw/s3c2410.c if (!pdata) pdata 1038 drivers/mtd/nand/raw/s3c2410.c pdev->dev.platform_data = pdata; pdata 1040 drivers/mtd/nand/raw/s3c2410.c pdata->nr_sets = of_get_child_count(np); pdata 1041 drivers/mtd/nand/raw/s3c2410.c if (!pdata->nr_sets) pdata 1044 drivers/mtd/nand/raw/s3c2410.c sets = devm_kcalloc(&pdev->dev, pdata->nr_sets, sizeof(*sets), pdata 1049 drivers/mtd/nand/raw/s3c2410.c pdata->sets = sets; pdata 171 drivers/mtd/nand/raw/sh_flctl.c struct sh_flctl_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 174 drivers/mtd/nand/raw/sh_flctl.c if (!pdata) pdata 177 drivers/mtd/nand/raw/sh_flctl.c if (pdata->slave_id_fifo0_tx <= 0 || pdata->slave_id_fifo0_rx <= 0) pdata 185 drivers/mtd/nand/raw/sh_flctl.c (void *)(uintptr_t)pdata->slave_id_fifo0_tx); pdata 201 drivers/mtd/nand/raw/sh_flctl.c (void *)(uintptr_t)pdata->slave_id_fifo0_rx); pdata 1090 drivers/mtd/nand/raw/sh_flctl.c struct sh_flctl_platform_data *pdata; pdata 1098 drivers/mtd/nand/raw/sh_flctl.c pdata = devm_kzalloc(dev, sizeof(struct sh_flctl_platform_data), pdata 1100 drivers/mtd/nand/raw/sh_flctl.c if (!pdata) pdata 1104 drivers/mtd/nand/raw/sh_flctl.c pdata->flcmncr_val = config->flcmncr_val; pdata 1105 drivers/mtd/nand/raw/sh_flctl.c pdata->has_hwecc = config->has_hwecc; pdata 1106 drivers/mtd/nand/raw/sh_flctl.c pdata->use_holden = config->use_holden; pdata 1108 drivers/mtd/nand/raw/sh_flctl.c return pdata; pdata 1117 drivers/mtd/nand/raw/sh_flctl.c struct sh_flctl_platform_data *pdata; pdata 1145 drivers/mtd/nand/raw/sh_flctl.c pdata = flctl_parse_dt(&pdev->dev); pdata 1147 drivers/mtd/nand/raw/sh_flctl.c pdata = dev_get_platdata(&pdev->dev); pdata 1149 drivers/mtd/nand/raw/sh_flctl.c if (!pdata) { pdata 1160 drivers/mtd/nand/raw/sh_flctl.c flctl->hwecc = pdata->has_hwecc; pdata 1161 drivers/mtd/nand/raw/sh_flctl.c flctl->holden = pdata->use_holden; pdata 1162 drivers/mtd/nand/raw/sh_flctl.c flctl->flcmncr_base = pdata->flcmncr_val; pdata 1177 drivers/mtd/nand/raw/sh_flctl.c if (pdata->flcmncr_val & SEL_16BIT) pdata 1192 drivers/mtd/nand/raw/sh_flctl.c ret = mtd_device_register(flctl_mtd, pdata->parts, pdata->nr_parts); pdata 138 drivers/net/can/at91_can.c struct at91_can_data *pdata; pdata 1332 drivers/net/can/at91_can.c priv->pdata = dev_get_platdata(&pdev->dev); pdata 147 drivers/net/can/cc770/cc770_platform.c struct cc770_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 149 drivers/net/can/cc770/cc770_platform.c priv->can.clock.freq = pdata->osc_freq; pdata 152 drivers/net/can/cc770/cc770_platform.c priv->clkout = pdata->cor; pdata 153 drivers/net/can/cc770/cc770_platform.c priv->bus_config = pdata->bcr; pdata 154 drivers/net/can/cc770/cc770_platform.c priv->cpu_interface = pdata->cir; pdata 1884 drivers/net/can/janz-ican3.c struct janz_platform_data *pdata; pdata 1891 drivers/net/can/janz-ican3.c pdata = dev_get_platdata(&pdev->dev); pdata 1892 drivers/net/can/janz-ican3.c if (!pdata) pdata 1895 drivers/net/can/janz-ican3.c dev_dbg(&pdev->dev, "probe: module number %d\n", pdata->modno); pdata 1911 drivers/net/can/janz-ican3.c mod->num = pdata->modno; pdata 2000 drivers/net/can/janz-ican3.c netdev_info(mod->ndev, "module %d: registered CAN device\n", pdata->modno); pdata 110 drivers/net/can/sja1000/sja1000_platform.c struct sja1000_platform_data *pdata, pdata 114 drivers/net/can/sja1000/sja1000_platform.c priv->can.clock.freq = pdata->osc_freq / 2; pdata 115 drivers/net/can/sja1000/sja1000_platform.c priv->ocr = pdata->ocr; pdata 116 drivers/net/can/sja1000/sja1000_platform.c priv->cdr = pdata->cdr; pdata 212 drivers/net/can/sja1000/sja1000_platform.c struct sja1000_platform_data *pdata; pdata 218 drivers/net/can/sja1000/sja1000_platform.c pdata = dev_get_platdata(&pdev->dev); pdata 219 drivers/net/can/sja1000/sja1000_platform.c if (!pdata && !of) { pdata 277 drivers/net/can/sja1000/sja1000_platform.c sp_populate(priv, pdata, res_mem->flags); pdata 989 drivers/net/can/spi/mcp251x.c struct mcp251x_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 1000 drivers/net/can/spi/mcp251x.c if (freq == 0 && pdata) pdata 1001 drivers/net/can/spi/mcp251x.c freq = pdata->oscillator_frequency; pdata 2478 drivers/net/dsa/b53/b53_common.c if (dev->pdata) { pdata 2479 drivers/net/dsa/b53/b53_common.c dev->chip_id = dev->pdata->chip_id; pdata 2480 drivers/net/dsa/b53/b53_common.c dev->enabled_ports = dev->pdata->enabled_ports; pdata 49 drivers/net/dsa/b53/b53_mmap.c if (dev->pdata && dev->pdata->big_endian) pdata 65 drivers/net/dsa/b53/b53_mmap.c if (dev->pdata && dev->pdata->big_endian) pdata 85 drivers/net/dsa/b53/b53_mmap.c if (dev->pdata && dev->pdata->big_endian) { pdata 98 drivers/net/dsa/b53/b53_mmap.c if (dev->pdata && dev->pdata->big_endian) { pdata 121 drivers/net/dsa/b53/b53_mmap.c if (dev->pdata && dev->pdata->big_endian) { pdata 153 drivers/net/dsa/b53/b53_mmap.c if (dev->pdata && dev->pdata->big_endian) pdata 170 drivers/net/dsa/b53/b53_mmap.c if (dev->pdata && dev->pdata->big_endian) pdata 233 drivers/net/dsa/b53/b53_mmap.c struct b53_platform_data *pdata = pdev->dev.platform_data; pdata 237 drivers/net/dsa/b53/b53_mmap.c if (!pdata) pdata 244 drivers/net/dsa/b53/b53_mmap.c priv->regs = pdata->regs; pdata 250 drivers/net/dsa/b53/b53_mmap.c dev->pdata = pdata; pdata 105 drivers/net/dsa/b53/b53_priv.h struct b53_platform_data *pdata; pdata 296 drivers/net/dsa/b53/b53_spi.c dev->pdata = spi->dev.platform_data; pdata 543 drivers/net/dsa/b53/b53_srab.c if (dev->pdata && dev->pdata->chip_id != BCM58XX_DEVICE_ID) pdata 589 drivers/net/dsa/b53/b53_srab.c struct b53_platform_data *pdata = pdev->dev.platform_data; pdata 599 drivers/net/dsa/b53/b53_srab.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 600 drivers/net/dsa/b53/b53_srab.c if (!pdata) pdata 603 drivers/net/dsa/b53/b53_srab.c pdata->chip_id = (u32)(unsigned long)of_id->data; pdata 618 drivers/net/dsa/b53/b53_srab.c if (pdata) pdata 619 drivers/net/dsa/b53/b53_srab.c dev->pdata = pdata; pdata 1054 drivers/net/dsa/bcm_sf2.c struct b53_platform_data *pdata; pdata 1077 drivers/net/dsa/bcm_sf2.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1078 drivers/net/dsa/bcm_sf2.c if (!pdata) pdata 1097 drivers/net/dsa/bcm_sf2.c pdata->chip_id = priv->type; pdata 1098 drivers/net/dsa/bcm_sf2.c dev->pdata = pdata; pdata 279 drivers/net/dsa/dsa_loop.c struct dsa_loop_pdata *pdata = mdiodev->dev.platform_data; pdata 283 drivers/net/dsa/dsa_loop.c if (!pdata) pdata 287 drivers/net/dsa/dsa_loop.c pdata->name, pdata->enabled_ports); pdata 297 drivers/net/dsa/dsa_loop.c ps->netdev = dev_get_by_name(&init_net, pdata->netdev); pdata 301 drivers/net/dsa/dsa_loop.c pdata->cd.netdev[DSA_LOOP_CPU_PORT] = &ps->netdev->dev; pdata 50 drivers/net/dsa/microchip/ksz8795_spi.c dev->pdata = spi->dev.platform_data; pdata 42 drivers/net/dsa/microchip/ksz9477_i2c.c dev->pdata = i2c->dev.platform_data; pdata 49 drivers/net/dsa/microchip/ksz9477_spi.c dev->pdata = spi->dev.platform_data; pdata 424 drivers/net/dsa/microchip/ksz_common.c if (dev->pdata) pdata 425 drivers/net/dsa/microchip/ksz_common.c dev->chip_id = dev->pdata->chip_id; pdata 46 drivers/net/dsa/microchip/ksz_common.h struct ksz_platform_data *pdata; pdata 5008 drivers/net/dsa/mv88e6xxx/chip.c const struct dsa_mv88e6xxx_pdata *pdata = dev->platform_data; pdata 5012 drivers/net/dsa/mv88e6xxx/chip.c if (!strcmp(pdata->compatible, matches->compatible)) pdata 5035 drivers/net/dsa/mv88e6xxx/chip.c struct dsa_mv88e6xxx_pdata *pdata = mdiodev->dev.platform_data; pdata 5043 drivers/net/dsa/mv88e6xxx/chip.c if (!np && !pdata) pdata 5049 drivers/net/dsa/mv88e6xxx/chip.c if (pdata) { pdata 5052 drivers/net/dsa/mv88e6xxx/chip.c if (!pdata->netdev) pdata 5056 drivers/net/dsa/mv88e6xxx/chip.c if (!(pdata->enabled_ports & (1 << port))) pdata 5058 drivers/net/dsa/mv88e6xxx/chip.c if (strcmp(pdata->cd.port_names[port], "cpu")) pdata 5060 drivers/net/dsa/mv88e6xxx/chip.c pdata->cd.netdev[port] = &pdata->netdev->dev; pdata 5099 drivers/net/dsa/mv88e6xxx/chip.c chip->eeprom_len = pdata->eeprom_len; pdata 5116 drivers/net/dsa/mv88e6xxx/chip.c if (pdata) pdata 5117 drivers/net/dsa/mv88e6xxx/chip.c chip->irq = pdata->irq; pdata 5172 drivers/net/dsa/mv88e6xxx/chip.c if (pdata) pdata 5173 drivers/net/dsa/mv88e6xxx/chip.c dev_put(pdata->netdev); pdata 629 drivers/net/ethernet/agere/et131x.c static int eeprom_read(struct et131x_adapter *adapter, u32 addr, u8 *pdata) pdata 664 drivers/net/ethernet/agere/et131x.c *pdata = err; pdata 126 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 129 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c ets->ets_cap = pdata->hw_feat.tc_cnt; pdata 131 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (pdata->ets) { pdata 132 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c ets->cbs = pdata->ets->cbs; pdata 133 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw, pdata 135 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c memcpy(ets->tc_tsa, pdata->ets->tc_tsa, pdata 137 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c memcpy(ets->prio_tc, pdata->ets->prio_tc, pdata 147 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 154 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_dbg(pdata, drv, netdev, pdata 158 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_dbg(pdata, drv, netdev, "PRIO%u: TC=%hhu\n", i, pdata 173 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_err(pdata, drv, netdev, pdata 181 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (max_tc >= pdata->hw_feat.tc_cnt) { pdata 182 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_err(pdata, drv, netdev, pdata 189 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_err(pdata, drv, netdev, pdata 195 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (!pdata->ets) { pdata 196 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pdata->ets = devm_kzalloc(pdata->dev, sizeof(*pdata->ets), pdata 198 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (!pdata->ets) pdata 202 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pdata->num_tcs = max_tc + 1; pdata 203 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c memcpy(pdata->ets, ets, sizeof(*pdata->ets)); pdata 205 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pdata->hw_if.config_dcb_tc(pdata); pdata 213 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 216 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pfc->pfc_cap = pdata->hw_feat.tc_cnt; pdata 218 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (pdata->pfc) { pdata 219 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pfc->pfc_en = pdata->pfc->pfc_en; pdata 220 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pfc->mbc = pdata->pfc->mbc; pdata 221 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pfc->delay = pdata->pfc->delay; pdata 230 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 232 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_dbg(pdata, drv, netdev, pdata 237 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (pfc->pfc_en & ~((1 << pdata->hw_feat.tc_cnt) - 1)) { pdata 238 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_err(pdata, drv, netdev, pdata 243 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (!pdata->pfc) { pdata 244 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pdata->pfc = devm_kzalloc(pdata->dev, sizeof(*pdata->pfc), pdata 246 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (!pdata->pfc) pdata 250 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c memcpy(pdata->pfc, pfc, sizeof(*pdata->pfc)); pdata 252 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pdata->hw_if.config_dcb_pfc(pdata); pdata 264 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 267 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_dbg(pdata, drv, netdev, "DCBX=%#hhx\n", dcbx); pdata 177 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 179 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xgmac_reg); pdata 186 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 189 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c &pdata->debugfs_xgmac_reg); pdata 195 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 198 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c value = XGMAC_IOREAD(pdata, pdata->debugfs_xgmac_reg); pdata 207 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 215 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c XGMAC_IOWRITE(pdata, pdata->debugfs_xgmac_reg, value); pdata 237 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 239 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xpcs_mmd); pdata 245 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 248 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c &pdata->debugfs_xpcs_mmd); pdata 254 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 256 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xpcs_reg); pdata 262 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 265 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c &pdata->debugfs_xpcs_reg); pdata 271 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 274 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c value = XMDIO_READ(pdata, pdata->debugfs_xpcs_mmd, pdata 275 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->debugfs_xpcs_reg); pdata 284 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 292 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c XMDIO_WRITE(pdata, pdata->debugfs_xpcs_mmd, pdata->debugfs_xpcs_reg, pdata 322 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 324 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xprop_reg); pdata 331 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 334 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c &pdata->debugfs_xprop_reg); pdata 340 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 343 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c value = XP_IOREAD(pdata, pdata->debugfs_xprop_reg); pdata 352 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 360 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c XP_IOWRITE(pdata, pdata->debugfs_xprop_reg, value); pdata 382 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 384 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c return xgbe_common_read(buffer, count, ppos, pdata->debugfs_xi2c_reg); pdata 391 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 394 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c &pdata->debugfs_xi2c_reg); pdata 400 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 403 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c value = XI2C_IOREAD(pdata, pdata->debugfs_xi2c_reg); pdata 412 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c struct xgbe_prv_data *pdata = filp->private_data; pdata 420 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c XI2C_IOWRITE(pdata, pdata->debugfs_xi2c_reg, value); pdata 439 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c void xgbe_debugfs_init(struct xgbe_prv_data *pdata) pdata 444 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->debugfs_xgmac_reg = 0; pdata 445 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->debugfs_xpcs_mmd = 1; pdata 446 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->debugfs_xpcs_reg = 0; pdata 448 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c buf = kasprintf(GFP_KERNEL, "amd-xgbe-%s", pdata->netdev->name); pdata 452 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->xgbe_debugfs = debugfs_create_dir(buf, NULL); pdata 454 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_create_file("xgmac_register", 0600, pdata->xgbe_debugfs, pdata, pdata 457 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_create_file("xgmac_register_value", 0600, pdata->xgbe_debugfs, pdata 458 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata, &xgmac_reg_value_fops); pdata 460 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_create_file("xpcs_mmd", 0600, pdata->xgbe_debugfs, pdata, pdata 463 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_create_file("xpcs_register", 0600, pdata->xgbe_debugfs, pdata, pdata 466 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_create_file("xpcs_register_value", 0600, pdata->xgbe_debugfs, pdata 467 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata, &xpcs_reg_value_fops); pdata 469 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c if (pdata->xprop_regs) { pdata 470 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_create_file("xprop_register", 0600, pdata->xgbe_debugfs, pdata 471 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata, &xprop_reg_addr_fops); pdata 474 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->xgbe_debugfs, pdata, pdata 478 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c if (pdata->xi2c_regs) { pdata 479 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_create_file("xi2c_register", 0600, pdata->xgbe_debugfs, pdata 480 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata, &xi2c_reg_addr_fops); pdata 483 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->xgbe_debugfs, pdata, pdata 487 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c if (pdata->vdata->an_cdr_workaround) { pdata 489 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->xgbe_debugfs, pdata 490 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c &pdata->debugfs_an_cdr_workaround); pdata 493 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->xgbe_debugfs, pdata 494 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c &pdata->debugfs_an_cdr_track_early); pdata 500 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c void xgbe_debugfs_exit(struct xgbe_prv_data *pdata) pdata 502 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_remove_recursive(pdata->xgbe_debugfs); pdata 503 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->xgbe_debugfs = NULL; pdata 506 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c void xgbe_debugfs_rename(struct xgbe_prv_data *pdata) pdata 510 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c if (!pdata->xgbe_debugfs) pdata 513 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c buf = kasprintf(GFP_KERNEL, "amd-xgbe-%s", pdata->netdev->name); pdata 517 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c if (!strcmp(pdata->xgbe_debugfs->d_name.name, buf)) pdata 520 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c debugfs_rename(pdata->xgbe_debugfs->d_parent, pdata->xgbe_debugfs, pdata 521 drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c pdata->xgbe_debugfs->d_parent, buf); pdata 122 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static void xgbe_free_ring(struct xgbe_prv_data *pdata, pdata 134 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_unmap_rdata(pdata, rdata); pdata 142 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_page(pdata->dev, ring->rx_hdr_pa.pages_dma, pdata 153 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_page(pdata->dev, ring->rx_buf_pa.pages_dma, pdata 164 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_free_coherent(pdata->dev, pdata 172 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static void xgbe_free_ring_resources(struct xgbe_prv_data *pdata) pdata 179 drivers/net/ethernet/amd/xgbe/xgbe-desc.c for (i = 0; i < pdata->channel_count; i++) { pdata 180 drivers/net/ethernet/amd/xgbe/xgbe-desc.c channel = pdata->channel[i]; pdata 181 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_free_ring(pdata, channel->tx_ring); pdata 182 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_free_ring(pdata, channel->rx_ring); pdata 215 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static int xgbe_init_ring(struct xgbe_prv_data *pdata, pdata 227 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ring->rdesc = xgbe_dma_alloc_node(pdata->dev, size, &ring->rdesc_dma, pdata 239 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, drv, pdata->netdev, pdata 246 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static int xgbe_alloc_ring_resources(struct xgbe_prv_data *pdata) pdata 252 drivers/net/ethernet/amd/xgbe/xgbe-desc.c for (i = 0; i < pdata->channel_count; i++) { pdata 253 drivers/net/ethernet/amd/xgbe/xgbe-desc.c channel = pdata->channel[i]; pdata 254 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, drv, pdata->netdev, "%s - Tx ring:\n", pdata 257 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ret = xgbe_init_ring(pdata, channel->tx_ring, pdata 258 drivers/net/ethernet/amd/xgbe/xgbe-desc.c pdata->tx_desc_count); pdata 260 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netdev_alert(pdata->netdev, pdata 265 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, drv, pdata->netdev, "%s - Rx ring:\n", pdata 268 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ret = xgbe_init_ring(pdata, channel->rx_ring, pdata 269 drivers/net/ethernet/amd/xgbe/xgbe-desc.c pdata->rx_desc_count); pdata 271 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netdev_alert(pdata->netdev, pdata 280 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_free_ring_resources(pdata); pdata 285 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static int xgbe_alloc_pages(struct xgbe_prv_data *pdata, pdata 317 drivers/net/ethernet/amd/xgbe/xgbe-desc.c pages_dma = dma_map_page(pdata->dev, pages, 0, pdata 319 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (dma_mapping_error(pdata->dev, pages_dma)) { pdata 356 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static int xgbe_map_rx_buffer(struct xgbe_prv_data *pdata, pdata 363 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ret = xgbe_alloc_pages(pdata, &ring->rx_hdr_pa, 0, ring->node); pdata 369 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ret = xgbe_alloc_pages(pdata, &ring->rx_buf_pa, pdata 381 drivers/net/ethernet/amd/xgbe/xgbe-desc.c pdata->rx_buf_size); pdata 386 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static void xgbe_wrapper_tx_descriptor_init(struct xgbe_prv_data *pdata) pdata 388 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 398 drivers/net/ethernet/amd/xgbe/xgbe-desc.c for (i = 0; i < pdata->channel_count; i++) { pdata 399 drivers/net/ethernet/amd/xgbe/xgbe-desc.c channel = pdata->channel[i]; pdata 427 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static void xgbe_wrapper_rx_descriptor_init(struct xgbe_prv_data *pdata) pdata 429 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 439 drivers/net/ethernet/amd/xgbe/xgbe-desc.c for (i = 0; i < pdata->channel_count; i++) { pdata 440 drivers/net/ethernet/amd/xgbe/xgbe-desc.c channel = pdata->channel[i]; pdata 454 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (xgbe_map_rx_buffer(pdata, ring, rdata)) pdata 470 drivers/net/ethernet/amd/xgbe/xgbe-desc.c static void xgbe_unmap_rdata(struct xgbe_prv_data *pdata, pdata 475 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_page(pdata->dev, rdata->skb_dma, pdata 478 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_single(pdata->dev, rdata->skb_dma, pdata 494 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_page(pdata->dev, rdata->rx.hdr.pa_unmap.pages_dma, pdata 504 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_page(pdata->dev, rdata->rx.buf.pa_unmap.pages_dma, pdata 525 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_prv_data *pdata = channel->pdata; pdata 558 drivers/net/ethernet/amd/xgbe/xgbe-desc.c skb_dma = dma_map_single(pdata->dev, skb->data, pdata 560 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (dma_mapping_error(pdata->dev, skb_dma)) { pdata 561 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netdev_alert(pdata->netdev, "dma_map_single failed\n"); pdata 566 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 582 drivers/net/ethernet/amd/xgbe/xgbe-desc.c skb_dma = dma_map_single(pdata->dev, skb->data + offset, len, pdata 584 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (dma_mapping_error(pdata->dev, skb_dma)) { pdata 585 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netdev_alert(pdata->netdev, "dma_map_single failed\n"); pdata 590 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 604 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 614 drivers/net/ethernet/amd/xgbe/xgbe-desc.c skb_dma = skb_frag_dma_map(pdata->dev, frag, offset, pdata 616 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (dma_mapping_error(pdata->dev, skb_dma)) { pdata 617 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netdev_alert(pdata->netdev, pdata 624 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 655 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_unmap_rdata(pdata, rdata); pdata 127 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static inline unsigned int xgbe_get_max_frame(struct xgbe_prv_data *pdata) pdata 129 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return pdata->netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; pdata 132 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static unsigned int xgbe_usec_to_riwt(struct xgbe_prv_data *pdata, pdata 140 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rate = pdata->sysclk_rate; pdata 155 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static unsigned int xgbe_riwt_to_usec(struct xgbe_prv_data *pdata, pdata 163 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rate = pdata->sysclk_rate; pdata 178 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_pbl_val(struct xgbe_prv_data *pdata) pdata 184 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pbl = pdata->pbl; pdata 186 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->pbl > 32) { pdata 191 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 192 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_CR, PBLX8, pdata 195 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->channel[i]->tx_ring) pdata 196 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_TCR, pdata 199 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->channel[i]->rx_ring) pdata 200 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_RCR, pdata 207 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_osp_mode(struct xgbe_prv_data *pdata) pdata 211 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 212 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->tx_ring) pdata 215 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_TCR, OSP, pdata 216 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->tx_osp_mode); pdata 222 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_rsf_mode(struct xgbe_prv_data *pdata, unsigned int val) pdata 226 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) pdata 227 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQOMR, RSF, val); pdata 232 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_tsf_mode(struct xgbe_prv_data *pdata, unsigned int val) pdata 236 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) pdata 237 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_TQOMR, TSF, val); pdata 242 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_rx_threshold(struct xgbe_prv_data *pdata, pdata 247 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) pdata 248 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQOMR, RTC, val); pdata 253 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_tx_threshold(struct xgbe_prv_data *pdata, pdata 258 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) pdata 259 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_TQOMR, TTC, val); pdata 264 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_rx_coalesce(struct xgbe_prv_data *pdata) pdata 268 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 269 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->rx_ring) pdata 272 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_RIWT, RWT, pdata 273 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_riwt); pdata 279 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_tx_coalesce(struct xgbe_prv_data *pdata) pdata 284 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_rx_buffer_size(struct xgbe_prv_data *pdata) pdata 288 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 289 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->rx_ring) pdata 292 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_RCR, RBSZ, pdata 293 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_buf_size); pdata 297 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_tso_mode(struct xgbe_prv_data *pdata) pdata 301 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 302 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->tx_ring) pdata 305 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_TCR, TSE, 1); pdata 309 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_sph_mode(struct xgbe_prv_data *pdata) pdata 313 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 314 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->rx_ring) pdata 317 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_CR, SPH, 1); pdata 320 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, HDSMS, XGBE_SPH_HDSMS_SIZE); pdata 323 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_write_rss_reg(struct xgbe_prv_data *pdata, unsigned int type, pdata 329 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mutex_lock(&pdata->rss_mutex); pdata 331 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_IOREAD_BITS(pdata, MAC_RSSAR, OB)) { pdata 336 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_RSSDR, val); pdata 338 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RSSAR, RSSIA, index); pdata 339 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RSSAR, ADDRT, type); pdata 340 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RSSAR, CT, 0); pdata 341 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RSSAR, OB, 1); pdata 345 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!XGMAC_IOREAD_BITS(pdata, MAC_RSSAR, OB)) pdata 354 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mutex_unlock(&pdata->rss_mutex); pdata 359 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_write_rss_hash_key(struct xgbe_prv_data *pdata) pdata 361 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int key_regs = sizeof(pdata->rss_key) / sizeof(u32); pdata 362 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int *key = (unsigned int *)&pdata->rss_key; pdata 366 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ret = xgbe_write_rss_reg(pdata, XGBE_RSS_HASH_KEY_TYPE, pdata 375 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_write_rss_lookup_table(struct xgbe_prv_data *pdata) pdata 380 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) { pdata 381 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ret = xgbe_write_rss_reg(pdata, pdata 383 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rss_table[i]); pdata 391 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_rss_hash_key(struct xgbe_prv_data *pdata, const u8 *key) pdata 393 drivers/net/ethernet/amd/xgbe/xgbe-dev.c memcpy(pdata->rss_key, key, sizeof(pdata->rss_key)); pdata 395 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return xgbe_write_rss_hash_key(pdata); pdata 398 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_rss_lookup_table(struct xgbe_prv_data *pdata, pdata 403 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) pdata 404 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(pdata->rss_table[i], MAC_RSSDR, DMCH, table[i]); pdata 406 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return xgbe_write_rss_lookup_table(pdata); pdata 409 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_enable_rss(struct xgbe_prv_data *pdata) pdata 413 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.rss) pdata 417 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ret = xgbe_write_rss_hash_key(pdata); pdata 422 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ret = xgbe_write_rss_lookup_table(pdata); pdata 427 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_RSSCR, pdata->rss_options); pdata 430 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RSSCR, RSSE, 1); pdata 435 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_disable_rss(struct xgbe_prv_data *pdata) pdata 437 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.rss) pdata 440 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RSSCR, RSSE, 0); pdata 445 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_rss(struct xgbe_prv_data *pdata) pdata 449 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.rss) pdata 452 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->netdev->features & NETIF_F_RXHASH) pdata 453 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ret = xgbe_enable_rss(pdata); pdata 455 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ret = xgbe_disable_rss(pdata); pdata 458 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_err(pdata->netdev, pdata 462 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static bool xgbe_is_pfc_queue(struct xgbe_prv_data *pdata, pdata 469 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->prio2q_map[prio] != queue) pdata 473 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tc = pdata->ets->prio_tc[prio]; pdata 476 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->pfc->pfc_en & (1 << tc)) pdata 483 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_set_vxlan_id(struct xgbe_prv_data *pdata) pdata 486 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TIR, TNID, pdata->vxlan_port); pdata 488 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "VXLAN tunnel id set to %hx\n", pdata 489 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->vxlan_port); pdata 492 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_enable_vxlan(struct xgbe_prv_data *pdata) pdata 494 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.vxn) pdata 498 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_vxlan_id(pdata); pdata 501 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, VUCC, 1); pdata 504 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TCR, VNM, 0); pdata 505 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TCR, VNE, 1); pdata 507 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "VXLAN acceleration enabled\n"); pdata 510 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_disable_vxlan(struct xgbe_prv_data *pdata) pdata 512 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.vxn) pdata 516 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TCR, VNE, 0); pdata 519 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, VUCC, 0); pdata 522 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TIR, TNID, 0); pdata 524 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "VXLAN acceleration disabled\n"); pdata 527 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_disable_tx_flow_control(struct xgbe_prv_data *pdata) pdata 534 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) pdata 535 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQOMR, EHFC, 0); pdata 539 drivers/net/ethernet/amd/xgbe/xgbe-dev.c q_count = min_t(unsigned int, pdata->tx_q_count, max_q_count); pdata 542 drivers/net/ethernet/amd/xgbe/xgbe-dev.c reg_val = XGMAC_IOREAD(pdata, reg); pdata 544 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, reg, reg_val); pdata 552 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_enable_tx_flow_control(struct xgbe_prv_data *pdata) pdata 554 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct ieee_pfc *pfc = pdata->pfc; pdata 555 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct ieee_ets *ets = pdata->ets; pdata 561 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 564 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->rx_rfd[i]) { pdata 567 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (xgbe_is_pfc_queue(pdata, i)) pdata 574 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQOMR, EHFC, ehfc); pdata 576 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, pdata 583 drivers/net/ethernet/amd/xgbe/xgbe-dev.c q_count = min_t(unsigned int, pdata->tx_q_count, max_q_count); pdata 586 drivers/net/ethernet/amd/xgbe/xgbe-dev.c reg_val = XGMAC_IOREAD(pdata, reg); pdata 593 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, reg, reg_val); pdata 601 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_disable_rx_flow_control(struct xgbe_prv_data *pdata) pdata 603 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RFCR, RFE, 0); pdata 608 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_enable_rx_flow_control(struct xgbe_prv_data *pdata) pdata 610 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RFCR, RFE, 1); pdata 615 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_tx_flow_control(struct xgbe_prv_data *pdata) pdata 617 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct ieee_pfc *pfc = pdata->pfc; pdata 619 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->tx_pause || (pfc && pfc->pfc_en)) pdata 620 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_tx_flow_control(pdata); pdata 622 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_disable_tx_flow_control(pdata); pdata 627 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_rx_flow_control(struct xgbe_prv_data *pdata) pdata 629 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct ieee_pfc *pfc = pdata->pfc; pdata 631 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->rx_pause || (pfc && pfc->pfc_en)) pdata 632 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_rx_flow_control(pdata); pdata 634 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_disable_rx_flow_control(pdata); pdata 639 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_flow_control(struct xgbe_prv_data *pdata) pdata 641 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct ieee_pfc *pfc = pdata->pfc; pdata 643 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_tx_flow_control(pdata); pdata 644 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rx_flow_control(pdata); pdata 646 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RFCR, PFCE, pdata 650 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_enable_dma_interrupts(struct xgbe_prv_data *pdata) pdata 656 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->channel_irq_mode) pdata 657 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, DMA_MR, INTM, pdata 658 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->channel_irq_mode); pdata 660 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ver = XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); pdata 662 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 663 drivers/net/ethernet/amd/xgbe/xgbe-dev.c channel = pdata->channel[i]; pdata 692 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->per_channel_irq || pdata->channel_irq_mode) pdata 704 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->per_channel_irq || pdata->channel_irq_mode) pdata 713 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_enable_mtl_interrupts(struct xgbe_prv_data *pdata) pdata 718 drivers/net/ethernet/amd/xgbe/xgbe-dev.c q_count = max(pdata->hw_feat.tx_q_cnt, pdata->hw_feat.rx_q_cnt); pdata 721 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mtl_q_isr = XGMAC_MTL_IOREAD(pdata, i, MTL_Q_ISR); pdata 722 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE(pdata, i, MTL_Q_ISR, mtl_q_isr); pdata 725 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE(pdata, i, MTL_Q_IER, 0); pdata 729 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_enable_mac_interrupts(struct xgbe_prv_data *pdata) pdata 736 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_IER, mac_ier); pdata 739 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MMC_RIER, ALL_INTERRUPTS, 0xffffffff); pdata 740 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MMC_TIER, ALL_INTERRUPTS, 0xffffffff); pdata 743 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_MDIOIER, SNGLCOMPIE, 1); pdata 746 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_enable_ecc_interrupts(struct xgbe_prv_data *pdata) pdata 750 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->vdata->ecc_support) pdata 754 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ecc_isr = XP_IOREAD(pdata, XP_ECC_ISR); pdata 755 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XP_IOWRITE(pdata, XP_ECC_ISR, ecc_isr); pdata 765 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XP_IOWRITE(pdata, XP_ECC_IER, ecc_ier); pdata 768 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_disable_ecc_ded(struct xgbe_prv_data *pdata) pdata 772 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ecc_ier = XP_IOREAD(pdata, XP_ECC_IER); pdata 779 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XP_IOWRITE(pdata, XP_ECC_IER, ecc_ier); pdata 782 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_disable_ecc_sec(struct xgbe_prv_data *pdata, pdata 787 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ecc_ier = XP_IOREAD(pdata, XP_ECC_IER); pdata 802 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XP_IOWRITE(pdata, XP_ECC_IER, ecc_ier); pdata 805 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_speed(struct xgbe_prv_data *pdata, int speed) pdata 823 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_IOREAD_BITS(pdata, MAC_TCR, SS) != ss) pdata 824 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TCR, SS, ss); pdata 829 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_enable_rx_vlan_stripping(struct xgbe_prv_data *pdata) pdata 832 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, EVLRXS, 1); pdata 835 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, DOVLTC, 1); pdata 838 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, ERSVLM, 0); pdata 841 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, ESVL, 0); pdata 844 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, EVLS, 0x3); pdata 849 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_disable_rx_vlan_stripping(struct xgbe_prv_data *pdata) pdata 851 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, EVLS, 0); pdata 856 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_enable_rx_vlan_filtering(struct xgbe_prv_data *pdata) pdata 859 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, VTFE, 1); pdata 862 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, VTHM, 1); pdata 865 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, VTIM, 0); pdata 868 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, ETV, 1); pdata 876 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANTR, VL, 1); pdata 881 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_disable_rx_vlan_filtering(struct xgbe_prv_data *pdata) pdata 884 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, VTFE, 0); pdata 913 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_update_vlan_hash_table(struct xgbe_prv_data *pdata) pdata 921 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for_each_set_bit(vid, pdata->active_vlans, VLAN_N_VID) { pdata 930 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANHTR, VLHT, vlan_hash_table); pdata 935 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_promiscuous_mode(struct xgbe_prv_data *pdata, pdata 940 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_IOREAD_BITS(pdata, MAC_PFR, PR) == val) pdata 943 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "%s promiscuous mode\n", pdata 945 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, PR, val); pdata 949 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_disable_rx_vlan_filtering(pdata); pdata 951 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER) pdata 952 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_rx_vlan_filtering(pdata); pdata 958 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_all_multicast_mode(struct xgbe_prv_data *pdata, pdata 963 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_IOREAD_BITS(pdata, MAC_PFR, PM) == val) pdata 966 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "%s allmulti mode\n", pdata 968 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, PM, val); pdata 973 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_set_mac_reg(struct xgbe_prv_data *pdata, pdata 992 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, pdata 999 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, *mac_reg, mac_addr_hi); pdata 1001 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, *mac_reg, mac_addr_lo); pdata 1005 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_set_mac_addn_addrs(struct xgbe_prv_data *pdata) pdata 1007 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct net_device *netdev = pdata->netdev; pdata 1013 drivers/net/ethernet/amd/xgbe/xgbe-dev.c addn_macs = pdata->hw_feat.addn_mac; pdata 1016 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_promiscuous_mode(pdata, 1); pdata 1019 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_mac_reg(pdata, ha, &mac_reg); pdata 1024 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_all_multicast_mode(pdata, 1); pdata 1027 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_mac_reg(pdata, ha, &mac_reg); pdata 1035 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_mac_reg(pdata, NULL, &mac_reg); pdata 1038 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_set_mac_hash_table(struct xgbe_prv_data *pdata) pdata 1040 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct net_device *netdev = pdata->netdev; pdata 1048 drivers/net/ethernet/amd/xgbe/xgbe-dev.c hash_table_shift = 26 - (pdata->hw_feat.hash_table_size >> 7); pdata 1049 drivers/net/ethernet/amd/xgbe/xgbe-dev.c hash_table_count = pdata->hw_feat.hash_table_size / 32; pdata 1068 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, hash_reg, hash_table[i]); pdata 1073 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_add_mac_addresses(struct xgbe_prv_data *pdata) pdata 1075 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->hw_feat.hash_table_size) pdata 1076 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_mac_hash_table(pdata); pdata 1078 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_mac_addn_addrs(pdata); pdata 1083 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_mac_address(struct xgbe_prv_data *pdata, u8 *addr) pdata 1091 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_MACA0HR, mac_addr_hi); pdata 1092 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_MACA0LR, mac_addr_lo); pdata 1097 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_rx_mode(struct xgbe_prv_data *pdata) pdata 1099 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct net_device *netdev = pdata->netdev; pdata 1105 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_promiscuous_mode(pdata, pr_mode); pdata 1106 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_all_multicast_mode(pdata, am_mode); pdata 1108 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_add_mac_addresses(pdata); pdata 1113 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_clr_gpio(struct xgbe_prv_data *pdata, unsigned int gpio) pdata 1120 drivers/net/ethernet/amd/xgbe/xgbe-dev.c reg = XGMAC_IOREAD(pdata, MAC_GPIOSR); pdata 1123 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_GPIOSR, reg); pdata 1128 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_gpio(struct xgbe_prv_data *pdata, unsigned int gpio) pdata 1135 drivers/net/ethernet/amd/xgbe/xgbe-dev.c reg = XGMAC_IOREAD(pdata, MAC_GPIOSR); pdata 1138 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_GPIOSR, reg); pdata 1143 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_read_mmd_regs_v2(struct xgbe_prv_data *pdata, int prtad, pdata 1153 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); pdata 1165 drivers/net/ethernet/amd/xgbe/xgbe-dev.c index = mmd_address & ~pdata->xpcs_window_mask; pdata 1166 drivers/net/ethernet/amd/xgbe/xgbe-dev.c offset = pdata->xpcs_window + (mmd_address & pdata->xpcs_window_mask); pdata 1168 drivers/net/ethernet/amd/xgbe/xgbe-dev.c spin_lock_irqsave(&pdata->xpcs_lock, flags); pdata 1169 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XPCS32_IOWRITE(pdata, pdata->xpcs_window_sel_reg, index); pdata 1170 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mmd_data = XPCS16_IOREAD(pdata, offset); pdata 1171 drivers/net/ethernet/amd/xgbe/xgbe-dev.c spin_unlock_irqrestore(&pdata->xpcs_lock, flags); pdata 1176 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_write_mmd_regs_v2(struct xgbe_prv_data *pdata, int prtad, pdata 1185 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); pdata 1197 drivers/net/ethernet/amd/xgbe/xgbe-dev.c index = mmd_address & ~pdata->xpcs_window_mask; pdata 1198 drivers/net/ethernet/amd/xgbe/xgbe-dev.c offset = pdata->xpcs_window + (mmd_address & pdata->xpcs_window_mask); pdata 1200 drivers/net/ethernet/amd/xgbe/xgbe-dev.c spin_lock_irqsave(&pdata->xpcs_lock, flags); pdata 1201 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XPCS32_IOWRITE(pdata, pdata->xpcs_window_sel_reg, index); pdata 1202 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XPCS16_IOWRITE(pdata, offset, mmd_data); pdata 1203 drivers/net/ethernet/amd/xgbe/xgbe-dev.c spin_unlock_irqrestore(&pdata->xpcs_lock, flags); pdata 1206 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_read_mmd_regs_v1(struct xgbe_prv_data *pdata, int prtad, pdata 1216 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); pdata 1227 drivers/net/ethernet/amd/xgbe/xgbe-dev.c spin_lock_irqsave(&pdata->xpcs_lock, flags); pdata 1228 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XPCS32_IOWRITE(pdata, PCS_V1_WINDOW_SELECT, mmd_address >> 8); pdata 1229 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mmd_data = XPCS32_IOREAD(pdata, (mmd_address & 0xff) << 2); pdata 1230 drivers/net/ethernet/amd/xgbe/xgbe-dev.c spin_unlock_irqrestore(&pdata->xpcs_lock, flags); pdata 1235 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_write_mmd_regs_v1(struct xgbe_prv_data *pdata, int prtad, pdata 1244 drivers/net/ethernet/amd/xgbe/xgbe-dev.c mmd_address = (pdata->mdio_mmd << 16) | (mmd_reg & 0xffff); pdata 1255 drivers/net/ethernet/amd/xgbe/xgbe-dev.c spin_lock_irqsave(&pdata->xpcs_lock, flags); pdata 1256 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XPCS32_IOWRITE(pdata, PCS_V1_WINDOW_SELECT, mmd_address >> 8); pdata 1257 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XPCS32_IOWRITE(pdata, (mmd_address & 0xff) << 2, mmd_data); pdata 1258 drivers/net/ethernet/amd/xgbe/xgbe-dev.c spin_unlock_irqrestore(&pdata->xpcs_lock, flags); pdata 1261 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_read_mmd_regs(struct xgbe_prv_data *pdata, int prtad, pdata 1264 drivers/net/ethernet/amd/xgbe/xgbe-dev.c switch (pdata->vdata->xpcs_access) { pdata 1266 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return xgbe_read_mmd_regs_v1(pdata, prtad, mmd_reg); pdata 1270 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return xgbe_read_mmd_regs_v2(pdata, prtad, mmd_reg); pdata 1274 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_write_mmd_regs(struct xgbe_prv_data *pdata, int prtad, pdata 1277 drivers/net/ethernet/amd/xgbe/xgbe-dev.c switch (pdata->vdata->xpcs_access) { pdata 1279 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return xgbe_write_mmd_regs_v1(pdata, prtad, mmd_reg, mmd_data); pdata 1283 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return xgbe_write_mmd_regs_v2(pdata, prtad, mmd_reg, mmd_data); pdata 1301 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_write_ext_mii_regs(struct xgbe_prv_data *pdata, int addr, pdata 1306 drivers/net/ethernet/amd/xgbe/xgbe-dev.c reinit_completion(&pdata->mdio_complete); pdata 1309 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_MDIOSCAR, mdio_sca); pdata 1315 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_MDIOSCCDR, mdio_sccd); pdata 1317 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!wait_for_completion_timeout(&pdata->mdio_complete, HZ)) { pdata 1318 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_err(pdata->netdev, "mdio write operation timed out\n"); pdata 1325 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_read_ext_mii_regs(struct xgbe_prv_data *pdata, int addr, pdata 1330 drivers/net/ethernet/amd/xgbe/xgbe-dev.c reinit_completion(&pdata->mdio_complete); pdata 1333 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_MDIOSCAR, mdio_sca); pdata 1338 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_MDIOSCCDR, mdio_sccd); pdata 1340 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!wait_for_completion_timeout(&pdata->mdio_complete, HZ)) { pdata 1341 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_err(pdata->netdev, "mdio read operation timed out\n"); pdata 1345 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return XGMAC_IOREAD_BITS(pdata, MAC_MDIOSCCDR, DATA); pdata 1348 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_set_ext_mii_mode(struct xgbe_prv_data *pdata, unsigned int port, pdata 1351 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int reg_val = XGMAC_IOREAD(pdata, MAC_MDIOCL22R); pdata 1365 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_MDIOCL22R, reg_val); pdata 1375 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_disable_rx_csum(struct xgbe_prv_data *pdata) pdata 1377 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, IPC, 0); pdata 1382 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_enable_rx_csum(struct xgbe_prv_data *pdata) pdata 1384 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, IPC, 1); pdata 1438 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_rx_desc_reset(struct xgbe_prv_data *pdata, pdata 1442 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int rx_usecs = pdata->rx_usecs; pdata 1443 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int rx_frames = pdata->rx_frames; pdata 1488 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_prv_data *pdata = channel->pdata; pdata 1501 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_rx_desc_reset(pdata, rdata, i); pdata 1522 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_update_tstamp_addend(struct xgbe_prv_data *pdata, pdata 1528 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_TSAR, addend); pdata 1529 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TSCR, TSADDREG, 1); pdata 1532 drivers/net/ethernet/amd/xgbe/xgbe-dev.c while (--count && XGMAC_IOREAD_BITS(pdata, MAC_TSCR, TSADDREG)) pdata 1536 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_err(pdata->netdev, pdata 1540 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_set_tstamp_time(struct xgbe_prv_data *pdata, unsigned int sec, pdata 1546 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_STSUR, sec); pdata 1547 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_STNUR, nsec); pdata 1548 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TSCR, TSINIT, 1); pdata 1551 drivers/net/ethernet/amd/xgbe/xgbe-dev.c while (--count && XGMAC_IOREAD_BITS(pdata, MAC_TSCR, TSINIT)) pdata 1555 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_err(pdata->netdev, "timed out initializing timestamp\n"); pdata 1558 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static u64 xgbe_get_tstamp_time(struct xgbe_prv_data *pdata) pdata 1562 drivers/net/ethernet/amd/xgbe/xgbe-dev.c nsec = XGMAC_IOREAD(pdata, MAC_STSR); pdata 1564 drivers/net/ethernet/amd/xgbe/xgbe-dev.c nsec += XGMAC_IOREAD(pdata, MAC_STNR); pdata 1569 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static u64 xgbe_get_tx_tstamp(struct xgbe_prv_data *pdata) pdata 1574 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->vdata->tx_tstamp_workaround) { pdata 1575 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tx_snr = XGMAC_IOREAD(pdata, MAC_TXSNR); pdata 1576 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tx_ssr = XGMAC_IOREAD(pdata, MAC_TXSSR); pdata 1578 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tx_ssr = XGMAC_IOREAD(pdata, MAC_TXSSR); pdata 1579 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tx_snr = XGMAC_IOREAD(pdata, MAC_TXSNR); pdata 1610 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_config_tstamp(struct xgbe_prv_data *pdata, pdata 1622 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_TSCR, mac_tscr); pdata 1629 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_SSIR, SSINC, XGBE_TSTAMP_SSINC); pdata 1630 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_SSIR, SNSINC, XGBE_TSTAMP_SNSINC); pdata 1631 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_update_tstamp_addend(pdata, pdata->tstamp_addend); pdata 1632 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_tstamp_time(pdata, 0, 0); pdata 1635 drivers/net/ethernet/amd/xgbe/xgbe-dev.c timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, pdata 1644 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_prv_data *pdata = channel->pdata; pdata 1657 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->tx_usecs && !channel->tx_timer_active) { pdata 1660 drivers/net/ethernet/amd/xgbe/xgbe-dev.c jiffies + usecs_to_jiffies(pdata->tx_usecs)); pdata 1668 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_prv_data *pdata = channel->pdata; pdata 1716 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->tx_frames) pdata 1718 drivers/net/ethernet/amd/xgbe/xgbe-dev.c else if (tx_packets > pdata->tx_frames) pdata 1720 drivers/net/ethernet/amd/xgbe/xgbe-dev.c else if ((ring->coalesce_count % pdata->tx_frames) < tx_packets) pdata 1731 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 1751 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 1810 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.tx_tso_packets += tx_packets; pdata 1829 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.tx_vxlan_packets += packet->tx_packets; pdata 1868 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.txq_packets[channel->queue_index] += tx_packets; pdata 1869 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.txq_bytes[channel->queue_index] += tx_bytes; pdata 1882 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (netif_msg_tx_queued(pdata)) pdata 1883 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_dump_tx_desc(pdata, ring, start_index, pdata 1891 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_xmit_stopped(netdev_get_tx_queue(pdata->netdev, pdata 1906 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_prv_data *pdata = channel->pdata; pdata 1911 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct net_device *netdev = pdata->netdev; pdata 1926 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (netif_msg_rx_status(pdata)) pdata 1927 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_dump_rx_desc(pdata, ring, ring->cur); pdata 1955 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.rx_split_header_packets++; pdata 2004 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.rx_vxlan_packets++; pdata 2019 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, rx_status, netdev, "err=%u, etlt=%#x\n", err, etlt); pdata 2030 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, rx_status, netdev, "vlan-ctag=%#06x\n", pdata 2042 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.rx_csum_errors++; pdata 2048 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.rx_vxlan_csum_errors++; pdata 2055 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.rxq_packets[channel->queue_index]++; pdata 2056 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.rxq_bytes[channel->queue_index] += rdata->rx.len; pdata 2159 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int __xgbe_exit(struct xgbe_prv_data *pdata) pdata 2166 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, DMA_MR, SWR, 1); pdata 2170 drivers/net/ethernet/amd/xgbe/xgbe-dev.c while (--count && XGMAC_IOREAD_BITS(pdata, DMA_MR, SWR)) pdata 2181 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_exit(struct xgbe_prv_data *pdata) pdata 2188 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ret = __xgbe_exit(pdata); pdata 2192 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return __xgbe_exit(pdata); pdata 2195 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_flush_tx_queues(struct xgbe_prv_data *pdata) pdata 2199 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER) < 0x21) pdata 2202 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) pdata 2203 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_TQOMR, FTQ, 1); pdata 2206 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) { pdata 2208 drivers/net/ethernet/amd/xgbe/xgbe-dev.c while (--count && XGMAC_MTL_IOREAD_BITS(pdata, i, pdata 2219 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_dma_bus(struct xgbe_prv_data *pdata) pdata 2223 drivers/net/ethernet/amd/xgbe/xgbe-dev.c sbmr = XGMAC_IOREAD(pdata, DMA_SBMR); pdata 2230 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(sbmr, DMA_SBMR, BLEN, pdata->blen >> 2); pdata 2231 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(sbmr, DMA_SBMR, AAL, pdata->aal); pdata 2232 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(sbmr, DMA_SBMR, RD_OSR_LMT, pdata->rd_osr_limit - 1); pdata 2233 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_SET_BITS(sbmr, DMA_SBMR, WR_OSR_LMT, pdata->wr_osr_limit - 1); pdata 2235 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, DMA_SBMR, sbmr); pdata 2238 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->vdata->tx_desc_prefetch) pdata 2239 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, DMA_TXEDMACR, TDPS, pdata 2240 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->vdata->tx_desc_prefetch); pdata 2242 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->vdata->rx_desc_prefetch) pdata 2243 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, DMA_RXEDMACR, RDPS, pdata 2244 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->vdata->rx_desc_prefetch); pdata 2247 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_dma_cache(struct xgbe_prv_data *pdata) pdata 2249 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, DMA_AXIARCR, pdata->arcr); pdata 2250 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, DMA_AXIAWCR, pdata->awcr); pdata 2251 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->awarcr) pdata 2252 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, DMA_AXIAWARCR, pdata->awarcr); pdata 2255 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_mtl_mode(struct xgbe_prv_data *pdata) pdata 2260 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MTL_OMR, ETSALG, MTL_ETSALG_WRR); pdata 2263 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { pdata 2264 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_TC_ETSCR, TSA, pdata 2266 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_TC_QWR, QW, 1); pdata 2270 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MTL_OMR, RAA, MTL_RAA_SP); pdata 2273 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_queue_flow_control_threshold(struct xgbe_prv_data *pdata, pdata 2280 drivers/net/ethernet/amd/xgbe/xgbe-dev.c frame_fifo_size = XGMAC_FLOW_CONTROL_ALIGN(xgbe_get_max_frame(pdata)); pdata 2282 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->pfcq[queue] && (q_fifo_size > pdata->pfc_rfa)) { pdata 2284 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rfa = pdata->pfc_rfa; pdata 2298 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfa[queue] = 0; pdata 2299 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfd[queue] = 0; pdata 2305 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfa[queue] = 0; /* Full - 1024 bytes */ pdata 2306 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfd[queue] = 1; /* Full - 1536 bytes */ pdata 2312 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfa[queue] = 2; /* Full - 2048 bytes */ pdata 2313 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfd[queue] = 5; /* Full - 3584 bytes */ pdata 2334 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfa[queue] = XGMAC_FLOW_CONTROL_VALUE(rfa); pdata 2335 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfd[queue] = XGMAC_FLOW_CONTROL_VALUE(rfd); pdata 2338 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_calculate_flow_control_threshold(struct xgbe_prv_data *pdata, pdata 2344 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 2347 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_queue_flow_control_threshold(pdata, i, q_fifo_size); pdata 2351 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_flow_control_threshold(struct xgbe_prv_data *pdata) pdata 2355 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 2356 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQFCR, RFA, pdata 2357 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfa[i]); pdata 2358 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQFCR, RFD, pdata 2359 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_rfd[i]); pdata 2363 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static unsigned int xgbe_get_tx_fifo_size(struct xgbe_prv_data *pdata) pdata 2366 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return min_t(unsigned int, pdata->tx_max_fifo_size, pdata 2367 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->hw_feat.tx_fifo_size); pdata 2370 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static unsigned int xgbe_get_rx_fifo_size(struct xgbe_prv_data *pdata) pdata 2373 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return min_t(unsigned int, pdata->rx_max_fifo_size, pdata 2374 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->hw_feat.rx_fifo_size); pdata 2423 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static unsigned int xgbe_get_pfc_delay(struct xgbe_prv_data *pdata) pdata 2428 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->pfc->delay) pdata 2429 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return pdata->pfc->delay / 8; pdata 2432 drivers/net/ethernet/amd/xgbe/xgbe-dev.c delay = xgbe_get_max_frame(pdata); pdata 2447 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static unsigned int xgbe_get_pfc_queues(struct xgbe_prv_data *pdata) pdata 2452 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->pfc->pfc_en) pdata 2456 drivers/net/ethernet/amd/xgbe/xgbe-dev.c prio_queues = XGMAC_PRIO_QUEUES(pdata->rx_q_count); pdata 2458 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!xgbe_is_pfc_queue(pdata, i)) pdata 2461 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->pfcq[i] = 1; pdata 2468 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_calculate_dcb_fifo(struct xgbe_prv_data *pdata, pdata 2477 drivers/net/ethernet/amd/xgbe/xgbe-dev.c q_fifo_size = XGMAC_FIFO_ALIGN(xgbe_get_max_frame(pdata)); pdata 2478 drivers/net/ethernet/amd/xgbe/xgbe-dev.c prio_queues = XGMAC_PRIO_QUEUES(pdata->rx_q_count); pdata 2479 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pfc_count = xgbe_get_pfc_queues(pdata); pdata 2493 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->pfc_rfa = xgbe_get_pfc_delay(pdata); pdata 2494 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->pfc_rfa = XGMAC_FLOW_CONTROL_ALIGN(pdata->pfc_rfa); pdata 2496 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->pfc_rfa > q_fifo_size) { pdata 2497 drivers/net/ethernet/amd/xgbe/xgbe-dev.c addn_fifo = pdata->pfc_rfa - q_fifo_size; pdata 2514 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->pfcq[i] || !addn_fifo) pdata 2518 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_warn(pdata->netdev, pdata 2539 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_tx_fifo_size(struct xgbe_prv_data *pdata) pdata 2545 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo_size = xgbe_get_tx_fifo_size(pdata); pdata 2547 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_calculate_equal_fifo(fifo_size, pdata->tx_q_count, fifo); pdata 2549 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) pdata 2550 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_TQOMR, TQS, fifo[i]); pdata 2552 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_info(pdata, drv, pdata->netdev, pdata 2554 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->tx_q_count, ((fifo[0] + 1) * XGMAC_FIFO_UNIT)); pdata 2557 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_rx_fifo_size(struct xgbe_prv_data *pdata) pdata 2565 drivers/net/ethernet/amd/xgbe/xgbe-dev.c memset(pdata->pfcq, 0, sizeof(pdata->pfcq)); pdata 2566 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->pfc_rfa = 0; pdata 2568 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo_size = xgbe_get_rx_fifo_size(pdata); pdata 2569 drivers/net/ethernet/amd/xgbe/xgbe-dev.c prio_queues = XGMAC_PRIO_QUEUES(pdata->rx_q_count); pdata 2572 drivers/net/ethernet/amd/xgbe/xgbe-dev.c fifo_size = xgbe_set_nonprio_fifos(fifo_size, pdata->rx_q_count, fifo); pdata 2574 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->pfc && pdata->ets) pdata 2575 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_calculate_dcb_fifo(pdata, fifo_size, fifo); pdata 2579 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) pdata 2580 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_RQOMR, RQS, fifo[i]); pdata 2582 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_calculate_flow_control_threshold(pdata, fifo); pdata 2583 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_flow_control_threshold(pdata); pdata 2585 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->pfc && pdata->ets && pdata->pfc->pfc_en) { pdata 2586 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_info(pdata, drv, pdata->netdev, pdata 2587 drivers/net/ethernet/amd/xgbe/xgbe-dev.c "%u Rx hardware queues\n", pdata->rx_q_count); pdata 2588 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) pdata 2589 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_info(pdata, drv, pdata->netdev, pdata 2593 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_info(pdata, drv, pdata->netdev, pdata 2595 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->rx_q_count, pdata 2600 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_queue_mapping(struct xgbe_prv_data *pdata) pdata 2611 drivers/net/ethernet/amd/xgbe/xgbe-dev.c qptc = pdata->tx_q_count / pdata->hw_feat.tc_cnt; pdata 2612 drivers/net/ethernet/amd/xgbe/xgbe-dev.c qptc_extra = pdata->tx_q_count % pdata->hw_feat.tc_cnt; pdata 2614 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0, queue = 0; i < pdata->hw_feat.tc_cnt; i++) { pdata 2616 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, pdata 2618 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, queue, MTL_Q_TQOMR, pdata 2620 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->q2tc_map[queue++] = i; pdata 2624 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, pdata 2626 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, queue, MTL_Q_TQOMR, pdata 2628 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->q2tc_map[queue++] = i; pdata 2633 drivers/net/ethernet/amd/xgbe/xgbe-dev.c prio_queues = XGMAC_PRIO_QUEUES(pdata->rx_q_count); pdata 2642 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, pdata 2645 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->prio2q_map[prio++] = i; pdata 2649 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, pdata 2652 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->prio2q_map[prio++] = i; pdata 2660 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, reg, reg_val); pdata 2668 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count;) { pdata 2671 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if ((i % MTL_RQDCM_Q_PER_REG) && (i != pdata->rx_q_count)) pdata 2674 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, reg, reg_val); pdata 2681 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_tc(struct xgbe_prv_data *pdata) pdata 2686 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_reset_tc(pdata->netdev); pdata 2687 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->num_tcs) pdata 2690 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_set_num_tc(pdata->netdev, pdata->num_tcs); pdata 2692 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0, queue = 0, offset = 0; i < pdata->num_tcs; i++) { pdata 2693 drivers/net/ethernet/amd/xgbe/xgbe-dev.c while ((queue < pdata->tx_q_count) && pdata 2694 drivers/net/ethernet/amd/xgbe/xgbe-dev.c (pdata->q2tc_map[queue] == i)) pdata 2697 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "TC%u using TXq%u-%u\n", pdata 2699 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_set_tc_queue(pdata->netdev, i, queue - offset, offset); pdata 2703 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->ets) pdata 2707 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_set_prio_tc_map(pdata->netdev, prio, pdata 2708 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ets->prio_tc[prio]); pdata 2711 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_dcb_tc(struct xgbe_prv_data *pdata) pdata 2713 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct ieee_ets *ets = pdata->ets; pdata 2724 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MTL_OMR, ETSALG, MTL_ETSALG_DWRR); pdata 2727 drivers/net/ethernet/amd/xgbe/xgbe-dev.c total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; pdata 2732 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { pdata 2741 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "TC%u PRIO mask=%#x\n", pdata 2744 drivers/net/ethernet/amd/xgbe/xgbe-dev.c reg_val = XGMAC_IOREAD(pdata, reg); pdata 2749 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, reg, reg_val); pdata 2754 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, pdata 2756 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_TC_ETSCR, TSA, pdata 2763 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, pdata 2765 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_TC_ETSCR, TSA, pdata 2767 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_TC_QWR, QW, pdata 2773 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_tc(pdata); pdata 2776 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_dcb_pfc(struct xgbe_prv_data *pdata) pdata 2778 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!test_bit(XGBE_DOWN, &pdata->dev_state)) { pdata 2780 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_tx_stop_all_queues(pdata->netdev); pdata 2783 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->hw_if.disable_rx(pdata); pdata 2786 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rx_fifo_size(pdata); pdata 2787 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_flow_control(pdata); pdata 2789 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!test_bit(XGBE_DOWN, &pdata->dev_state)) { pdata 2791 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->hw_if.enable_rx(pdata); pdata 2794 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_tx_start_all_queues(pdata->netdev); pdata 2798 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_mac_address(struct xgbe_prv_data *pdata) pdata 2800 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_mac_address(pdata, pdata->netdev->dev_addr); pdata 2803 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->hw_feat.hash_table_size) { pdata 2804 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, HPF, 1); pdata 2805 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, HUC, 1); pdata 2806 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_PFR, HMC, 1); pdata 2810 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_jumbo_enable(struct xgbe_prv_data *pdata) pdata 2814 drivers/net/ethernet/amd/xgbe/xgbe-dev.c val = (pdata->netdev->mtu > XGMAC_STD_PACKET_MTU) ? 1 : 0; pdata 2816 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, JE, val); pdata 2819 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_mac_speed(struct xgbe_prv_data *pdata) pdata 2821 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_set_speed(pdata, pdata->phy_speed); pdata 2824 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_checksum_offload(struct xgbe_prv_data *pdata) pdata 2826 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->netdev->features & NETIF_F_RXCSUM) pdata 2827 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_rx_csum(pdata); pdata 2829 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_disable_rx_csum(pdata); pdata 2832 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_vlan_support(struct xgbe_prv_data *pdata) pdata 2835 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANIR, CSVL, 0); pdata 2836 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_VLANIR, VLTI, 1); pdata 2839 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_update_vlan_hash_table(pdata); pdata 2841 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER) pdata 2842 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_rx_vlan_filtering(pdata); pdata 2844 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_disable_rx_vlan_filtering(pdata); pdata 2846 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_RX) pdata 2847 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_rx_vlan_stripping(pdata); pdata 2849 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_disable_rx_vlan_stripping(pdata); pdata 2852 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static u64 xgbe_mmc_read(struct xgbe_prv_data *pdata, unsigned int reg_lo) pdata 2857 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->vdata->mmc_64bit) { pdata 2886 drivers/net/ethernet/amd/xgbe/xgbe-dev.c val = XGMAC_IOREAD(pdata, reg_lo); pdata 2889 drivers/net/ethernet/amd/xgbe/xgbe-dev.c val |= ((u64)XGMAC_IOREAD(pdata, reg_lo + 4) << 32); pdata 2894 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_tx_mmc_int(struct xgbe_prv_data *pdata) pdata 2896 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_mmc_stats *stats = &pdata->mmc_stats; pdata 2897 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int mmc_isr = XGMAC_IOREAD(pdata, MMC_TISR); pdata 2901 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXOCTETCOUNT_GB_LO); pdata 2905 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXFRAMECOUNT_GB_LO); pdata 2909 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXBROADCASTFRAMES_G_LO); pdata 2913 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXMULTICASTFRAMES_G_LO); pdata 2917 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX64OCTETS_GB_LO); pdata 2921 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX65TO127OCTETS_GB_LO); pdata 2925 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX128TO255OCTETS_GB_LO); pdata 2929 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX256TO511OCTETS_GB_LO); pdata 2933 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX512TO1023OCTETS_GB_LO); pdata 2937 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX1024TOMAXOCTETS_GB_LO); pdata 2941 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXUNICASTFRAMES_GB_LO); pdata 2945 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXMULTICASTFRAMES_GB_LO); pdata 2949 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXBROADCASTFRAMES_GB_LO); pdata 2953 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXUNDERFLOWERROR_LO); pdata 2957 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXOCTETCOUNT_G_LO); pdata 2961 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXFRAMECOUNT_G_LO); pdata 2965 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXPAUSEFRAMES_LO); pdata 2969 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXVLANFRAMES_G_LO); pdata 2972 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_rx_mmc_int(struct xgbe_prv_data *pdata) pdata 2974 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_mmc_stats *stats = &pdata->mmc_stats; pdata 2975 drivers/net/ethernet/amd/xgbe/xgbe-dev.c unsigned int mmc_isr = XGMAC_IOREAD(pdata, MMC_RISR); pdata 2979 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXFRAMECOUNT_GB_LO); pdata 2983 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXOCTETCOUNT_GB_LO); pdata 2987 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXOCTETCOUNT_G_LO); pdata 2991 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXBROADCASTFRAMES_G_LO); pdata 2995 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXMULTICASTFRAMES_G_LO); pdata 2999 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXCRCERROR_LO); pdata 3003 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXRUNTERROR); pdata 3007 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXJABBERERROR); pdata 3011 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXUNDERSIZE_G); pdata 3015 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXOVERSIZE_G); pdata 3019 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX64OCTETS_GB_LO); pdata 3023 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX65TO127OCTETS_GB_LO); pdata 3027 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX128TO255OCTETS_GB_LO); pdata 3031 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX256TO511OCTETS_GB_LO); pdata 3035 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX512TO1023OCTETS_GB_LO); pdata 3039 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX1024TOMAXOCTETS_GB_LO); pdata 3043 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXUNICASTFRAMES_G_LO); pdata 3047 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXLENGTHERROR_LO); pdata 3051 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXOUTOFRANGETYPE_LO); pdata 3055 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXPAUSEFRAMES_LO); pdata 3059 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXFIFOOVERFLOW_LO); pdata 3063 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXVLANFRAMES_GB_LO); pdata 3067 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXWATCHDOGERROR); pdata 3070 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_read_mmc_stats(struct xgbe_prv_data *pdata) pdata 3072 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_mmc_stats *stats = &pdata->mmc_stats; pdata 3075 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MMC_CR, MCF, 1); pdata 3078 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXOCTETCOUNT_GB_LO); pdata 3081 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXFRAMECOUNT_GB_LO); pdata 3084 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXBROADCASTFRAMES_G_LO); pdata 3087 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXMULTICASTFRAMES_G_LO); pdata 3090 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX64OCTETS_GB_LO); pdata 3093 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX65TO127OCTETS_GB_LO); pdata 3096 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX128TO255OCTETS_GB_LO); pdata 3099 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX256TO511OCTETS_GB_LO); pdata 3102 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX512TO1023OCTETS_GB_LO); pdata 3105 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TX1024TOMAXOCTETS_GB_LO); pdata 3108 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXUNICASTFRAMES_GB_LO); pdata 3111 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXMULTICASTFRAMES_GB_LO); pdata 3114 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXBROADCASTFRAMES_GB_LO); pdata 3117 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXUNDERFLOWERROR_LO); pdata 3120 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXOCTETCOUNT_G_LO); pdata 3123 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXFRAMECOUNT_G_LO); pdata 3126 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXPAUSEFRAMES_LO); pdata 3129 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_TXVLANFRAMES_G_LO); pdata 3132 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXFRAMECOUNT_GB_LO); pdata 3135 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXOCTETCOUNT_GB_LO); pdata 3138 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXOCTETCOUNT_G_LO); pdata 3141 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXBROADCASTFRAMES_G_LO); pdata 3144 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXMULTICASTFRAMES_G_LO); pdata 3147 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXCRCERROR_LO); pdata 3150 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXRUNTERROR); pdata 3153 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXJABBERERROR); pdata 3156 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXUNDERSIZE_G); pdata 3159 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXOVERSIZE_G); pdata 3162 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX64OCTETS_GB_LO); pdata 3165 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX65TO127OCTETS_GB_LO); pdata 3168 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX128TO255OCTETS_GB_LO); pdata 3171 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX256TO511OCTETS_GB_LO); pdata 3174 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX512TO1023OCTETS_GB_LO); pdata 3177 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RX1024TOMAXOCTETS_GB_LO); pdata 3180 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXUNICASTFRAMES_G_LO); pdata 3183 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXLENGTHERROR_LO); pdata 3186 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXOUTOFRANGETYPE_LO); pdata 3189 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXPAUSEFRAMES_LO); pdata 3192 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXFIFOOVERFLOW_LO); pdata 3195 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXVLANFRAMES_GB_LO); pdata 3198 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_mmc_read(pdata, MMC_RXWATCHDOGERROR); pdata 3201 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MMC_CR, MCF, 0); pdata 3204 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_config_mmc(struct xgbe_prv_data *pdata) pdata 3207 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MMC_CR, ROR, 1); pdata 3210 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MMC_CR, CR, 1); pdata 3213 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_txq_prepare_tx_stop(struct xgbe_prv_data *pdata, pdata 3225 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tx_status = XGMAC_MTL_IOREAD(pdata, queue, MTL_Q_TQDR); pdata 3234 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_info(pdata->netdev, pdata 3239 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_prepare_tx_stop(struct xgbe_prv_data *pdata, pdata 3246 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER) > 0x20) pdata 3247 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return xgbe_txq_prepare_tx_stop(pdata, queue); pdata 3267 drivers/net/ethernet/amd/xgbe/xgbe-dev.c tx_status = XGMAC_IOREAD(pdata, tx_dsr); pdata 3277 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_info(pdata->netdev, pdata 3282 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_enable_tx(struct xgbe_prv_data *pdata) pdata 3287 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 3288 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->tx_ring) pdata 3291 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_TCR, ST, 1); pdata 3295 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) pdata 3296 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_TQOMR, TXQEN, pdata 3300 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TCR, TE, 1); pdata 3303 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_disable_tx(struct xgbe_prv_data *pdata) pdata 3308 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) pdata 3309 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_prepare_tx_stop(pdata, i); pdata 3312 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TCR, TE, 0); pdata 3315 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) pdata 3316 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_MTL_IOWRITE_BITS(pdata, i, MTL_Q_TQOMR, TXQEN, 0); pdata 3319 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 3320 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->tx_ring) pdata 3323 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_TCR, ST, 0); pdata 3327 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_prepare_rx_stop(struct xgbe_prv_data *pdata, pdata 3339 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rx_status = XGMAC_MTL_IOREAD(pdata, queue, MTL_Q_RQDR); pdata 3348 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_info(pdata->netdev, pdata 3353 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_enable_rx(struct xgbe_prv_data *pdata) pdata 3358 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 3359 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->rx_ring) pdata 3362 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_RCR, SR, 1); pdata 3367 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) pdata 3369 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_RQC0R, reg_val); pdata 3372 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, DCRCC, 1); pdata 3373 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, CST, 1); pdata 3374 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, ACS, 1); pdata 3375 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, RE, 1); pdata 3378 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_disable_rx(struct xgbe_prv_data *pdata) pdata 3383 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, DCRCC, 0); pdata 3384 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, CST, 0); pdata 3385 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, ACS, 0); pdata 3386 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_RCR, RE, 0); pdata 3389 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->rx_q_count; i++) pdata 3390 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_prepare_rx_stop(pdata, i); pdata 3393 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE(pdata, MAC_RQC0R, 0); pdata 3396 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 3397 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->rx_ring) pdata 3400 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_RCR, SR, 0); pdata 3404 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_powerup_tx(struct xgbe_prv_data *pdata) pdata 3409 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 3410 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->tx_ring) pdata 3413 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_TCR, ST, 1); pdata 3417 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TCR, TE, 1); pdata 3420 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_powerdown_tx(struct xgbe_prv_data *pdata) pdata 3425 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->tx_q_count; i++) pdata 3426 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_prepare_tx_stop(pdata, i); pdata 3429 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_IOWRITE_BITS(pdata, MAC_TCR, TE, 0); pdata 3432 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 3433 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->tx_ring) pdata 3436 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_TCR, ST, 0); pdata 3440 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_powerup_rx(struct xgbe_prv_data *pdata) pdata 3445 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 3446 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->rx_ring) pdata 3449 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_RCR, SR, 1); pdata 3453 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_powerdown_rx(struct xgbe_prv_data *pdata) pdata 3458 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->channel_count; i++) { pdata 3459 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->channel[i]->rx_ring) pdata 3462 drivers/net/ethernet/amd/xgbe/xgbe-dev.c XGMAC_DMA_IOWRITE_BITS(pdata->channel[i], DMA_CH_RCR, SR, 0); pdata 3466 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static int xgbe_init(struct xgbe_prv_data *pdata) pdata 3468 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_desc_if *desc_if = &pdata->desc_if; pdata 3474 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ret = xgbe_flush_tx_queues(pdata); pdata 3476 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netdev_err(pdata->netdev, "error flushing TX queues\n"); pdata 3483 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_dma_bus(pdata); pdata 3484 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_dma_cache(pdata); pdata 3485 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_osp_mode(pdata); pdata 3486 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_pbl_val(pdata); pdata 3487 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rx_coalesce(pdata); pdata 3488 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_tx_coalesce(pdata); pdata 3489 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rx_buffer_size(pdata); pdata 3490 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_tso_mode(pdata); pdata 3491 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_sph_mode(pdata); pdata 3492 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rss(pdata); pdata 3493 drivers/net/ethernet/amd/xgbe/xgbe-dev.c desc_if->wrapper_tx_desc_init(pdata); pdata 3494 drivers/net/ethernet/amd/xgbe/xgbe-dev.c desc_if->wrapper_rx_desc_init(pdata); pdata 3495 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_dma_interrupts(pdata); pdata 3500 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_mtl_mode(pdata); pdata 3501 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_queue_mapping(pdata); pdata 3502 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_tsf_mode(pdata, pdata->tx_sf_mode); pdata 3503 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rsf_mode(pdata, pdata->rx_sf_mode); pdata 3504 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_tx_threshold(pdata, pdata->tx_threshold); pdata 3505 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rx_threshold(pdata, pdata->rx_threshold); pdata 3506 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_tx_fifo_size(pdata); pdata 3507 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rx_fifo_size(pdata); pdata 3511 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_dcb_tc(pdata); pdata 3512 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_mtl_interrupts(pdata); pdata 3517 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_mac_address(pdata); pdata 3518 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_rx_mode(pdata); pdata 3519 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_jumbo_enable(pdata); pdata 3520 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_flow_control(pdata); pdata 3521 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_mac_speed(pdata); pdata 3522 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_checksum_offload(pdata); pdata 3523 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_vlan_support(pdata); pdata 3524 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_config_mmc(pdata); pdata 3525 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_mac_interrupts(pdata); pdata 3530 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_enable_ecc_interrupts(pdata); pdata 172 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_free_channels(struct xgbe_prv_data *pdata) pdata 176 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < ARRAY_SIZE(pdata->channel); i++) { pdata 177 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->channel[i]) pdata 180 drivers/net/ethernet/amd/xgbe/xgbe-drv.c kfree(pdata->channel[i]->rx_ring); pdata 181 drivers/net/ethernet/amd/xgbe/xgbe-drv.c kfree(pdata->channel[i]->tx_ring); pdata 182 drivers/net/ethernet/amd/xgbe/xgbe-drv.c kfree(pdata->channel[i]); pdata 184 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->channel[i] = NULL; pdata 187 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->channel_count = 0; pdata 190 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_alloc_channels(struct xgbe_prv_data *pdata) pdata 198 drivers/net/ethernet/amd/xgbe/xgbe-drv.c count = max_t(unsigned int, pdata->tx_ring_count, pdata->rx_ring_count); pdata 201 drivers/net/ethernet/amd/xgbe/xgbe-drv.c cpu = cpumask_local_spread(i, dev_to_node(pdata->dev)); pdata 209 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->channel[i] = channel; pdata 212 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel->pdata = pdata; pdata 214 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel->dma_regs = pdata->xgmac_regs + DMA_CH_BASE + pdata 219 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->per_channel_irq) pdata 220 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel->dma_irq = pdata->channel_irq[i]; pdata 222 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (i < pdata->tx_ring_count) { pdata 233 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (i < pdata->rx_ring_count) { pdata 244 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, pdata->netdev, pdata 247 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, pdata->netdev, pdata 253 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->channel_count = count; pdata 258 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_channels(pdata); pdata 276 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = channel->pdata; pdata 279 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_info(pdata, drv, pdata->netdev, pdata 281 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_stop_subqueue(pdata->netdev, channel->queue_index); pdata 288 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.tx_start_xmit(channel, ring); pdata 309 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_enable_rx_tx_int(struct xgbe_prv_data *pdata, pdata 312 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 327 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_enable_rx_tx_ints(struct xgbe_prv_data *pdata) pdata 331 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) pdata 332 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_enable_rx_tx_int(pdata, pdata->channel[i]); pdata 335 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_disable_rx_tx_int(struct xgbe_prv_data *pdata, pdata 338 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 353 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_disable_rx_tx_ints(struct xgbe_prv_data *pdata) pdata 357 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) pdata 358 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_rx_tx_int(pdata, pdata->channel[i]); pdata 361 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static bool xgbe_ecc_sec(struct xgbe_prv_data *pdata, unsigned long *period, pdata 372 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_warn_once(pdata->dev, pdata 377 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_warn_once(pdata->dev, pdata 386 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static bool xgbe_ecc_ded(struct xgbe_prv_data *pdata, unsigned long *period, pdata 397 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev_alert(pdata->netdev, pdata 408 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = (struct xgbe_prv_data *)data; pdata 413 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ecc_isr = XP_IOREAD(pdata, XP_ECC_ISR); pdata 414 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ecc_isr &= XP_IOREAD(pdata, XP_ECC_IER); pdata 415 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, intr, pdata->netdev, "ECC_ISR=%#010x\n", ecc_isr); pdata 418 drivers/net/ethernet/amd/xgbe/xgbe-drv.c stop |= xgbe_ecc_ded(pdata, &pdata->tx_ded_period, pdata 419 drivers/net/ethernet/amd/xgbe/xgbe-drv.c &pdata->tx_ded_count, "TX fifo"); pdata 423 drivers/net/ethernet/amd/xgbe/xgbe-drv.c stop |= xgbe_ecc_ded(pdata, &pdata->rx_ded_period, pdata 424 drivers/net/ethernet/amd/xgbe/xgbe-drv.c &pdata->rx_ded_count, "RX fifo"); pdata 428 drivers/net/ethernet/amd/xgbe/xgbe-drv.c stop |= xgbe_ecc_ded(pdata, &pdata->desc_ded_period, pdata 429 drivers/net/ethernet/amd/xgbe/xgbe-drv.c &pdata->desc_ded_count, pdata 434 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.disable_ecc_ded(pdata); pdata 435 drivers/net/ethernet/amd/xgbe/xgbe-drv.c schedule_work(&pdata->stopdev_work); pdata 440 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (xgbe_ecc_sec(pdata, &pdata->tx_sec_period, pdata 441 drivers/net/ethernet/amd/xgbe/xgbe-drv.c &pdata->tx_sec_count, "TX fifo")) pdata 442 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.disable_ecc_sec(pdata, XGBE_ECC_SEC_TX); pdata 446 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (xgbe_ecc_sec(pdata, &pdata->rx_sec_period, pdata 447 drivers/net/ethernet/amd/xgbe/xgbe-drv.c &pdata->rx_sec_count, "RX fifo")) pdata 448 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.disable_ecc_sec(pdata, XGBE_ECC_SEC_RX); pdata 451 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (xgbe_ecc_sec(pdata, &pdata->desc_sec_period, pdata 452 drivers/net/ethernet/amd/xgbe/xgbe-drv.c &pdata->desc_sec_count, "descriptor cache")) pdata 453 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.disable_ecc_sec(pdata, XGBE_ECC_SEC_DESC); pdata 457 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XP_IOWRITE(pdata, XP_ECC_ISR, ecc_isr); pdata 460 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vdata->irq_reissue_support) pdata 461 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XP_IOWRITE(pdata, XP_INT_REISSUE_EN, 1 << 1); pdata 466 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = data; pdata 468 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->isr_as_tasklet) pdata 469 drivers/net/ethernet/amd/xgbe/xgbe-drv.c tasklet_schedule(&pdata->tasklet_ecc); pdata 471 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_ecc_isr_task((unsigned long)pdata); pdata 478 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = (struct xgbe_prv_data *)data; pdata 479 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 489 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dma_isr = XGMAC_IOREAD(pdata, DMA_ISR); pdata 493 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, intr, pdata->netdev, "DMA_ISR=%#010x\n", dma_isr); pdata 495 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 499 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 502 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, intr, pdata->netdev, "DMA_CH%u_ISR=%#010x\n", pdata 509 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->per_channel_irq && pdata 512 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (napi_schedule_prep(&pdata->napi)) { pdata 514 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_rx_tx_ints(pdata); pdata 517 drivers/net/ethernet/amd/xgbe/xgbe-drv.c __napi_schedule(&pdata->napi); pdata 529 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->ext_stats.rx_buffer_unavailable++; pdata 533 drivers/net/ethernet/amd/xgbe/xgbe-drv.c schedule_work(&pdata->restart_work); pdata 540 drivers/net/ethernet/amd/xgbe/xgbe-drv.c mac_isr = XGMAC_IOREAD(pdata, MAC_ISR); pdata 542 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, intr, pdata->netdev, "MAC_ISR=%#010x\n", pdata 546 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->tx_mmc_int(pdata); pdata 549 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->rx_mmc_int(pdata); pdata 552 drivers/net/ethernet/amd/xgbe/xgbe-drv.c mac_tssr = XGMAC_IOREAD(pdata, MAC_TSSR); pdata 554 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, intr, pdata->netdev, pdata 559 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->tx_tstamp = pdata 560 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->get_tx_tstamp(pdata); pdata 561 drivers/net/ethernet/amd/xgbe/xgbe-drv.c queue_work(pdata->dev_workqueue, pdata 562 drivers/net/ethernet/amd/xgbe/xgbe-drv.c &pdata->tx_tstamp_work); pdata 567 drivers/net/ethernet/amd/xgbe/xgbe-drv.c mac_mdioisr = XGMAC_IOREAD(pdata, MAC_MDIOISR); pdata 569 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, intr, pdata->netdev, pdata 574 drivers/net/ethernet/amd/xgbe/xgbe-drv.c complete(&pdata->mdio_complete); pdata 580 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->dev_irq == pdata->an_irq) pdata 581 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->phy_if.an_isr(pdata); pdata 584 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vdata->ecc_support && (pdata->dev_irq == pdata->ecc_irq)) pdata 585 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_ecc_isr_task((unsigned long)pdata); pdata 588 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vdata->i2c_support && (pdata->dev_irq == pdata->i2c_irq)) pdata 589 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->i2c_if.i2c_isr(pdata); pdata 592 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vdata->irq_reissue_support) { pdata 596 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->per_channel_irq) pdata 599 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XP_IOWRITE(pdata, XP_INT_REISSUE_EN, reissue_mask); pdata 605 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = data; pdata 607 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->isr_as_tasklet) pdata 608 drivers/net/ethernet/amd/xgbe/xgbe-drv.c tasklet_schedule(&pdata->tasklet_dev); pdata 610 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_isr_task((unsigned long)pdata); pdata 618 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = channel->pdata; pdata 626 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->channel_irq_mode) pdata 627 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_rx_tx_int(pdata, channel); pdata 647 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = channel->pdata; pdata 652 drivers/net/ethernet/amd/xgbe/xgbe-drv.c napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; pdata 656 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->per_channel_irq) pdata 657 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->channel_irq_mode) pdata 658 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_rx_tx_int(pdata, channel); pdata 662 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_rx_tx_ints(pdata); pdata 675 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = container_of(work, pdata 679 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->phy_if.phy_status(pdata); pdata 684 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = from_timer(pdata, t, service_timer); pdata 686 drivers/net/ethernet/amd/xgbe/xgbe-drv.c queue_work(pdata->dev_workqueue, &pdata->service_work); pdata 688 drivers/net/ethernet/amd/xgbe/xgbe-drv.c mod_timer(&pdata->service_timer, jiffies + HZ); pdata 691 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_init_timers(struct xgbe_prv_data *pdata) pdata 696 drivers/net/ethernet/amd/xgbe/xgbe-drv.c timer_setup(&pdata->service_timer, xgbe_service_timer, 0); pdata 698 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 699 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 707 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_start_timers(struct xgbe_prv_data *pdata) pdata 709 drivers/net/ethernet/amd/xgbe/xgbe-drv.c mod_timer(&pdata->service_timer, jiffies + HZ); pdata 712 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_stop_timers(struct xgbe_prv_data *pdata) pdata 717 drivers/net/ethernet/amd/xgbe/xgbe-drv.c del_timer_sync(&pdata->service_timer); pdata 719 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 720 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 728 drivers/net/ethernet/amd/xgbe/xgbe-drv.c void xgbe_get_all_hw_features(struct xgbe_prv_data *pdata) pdata 731 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_features *hw_feat = &pdata->hw_feat; pdata 733 drivers/net/ethernet/amd/xgbe/xgbe-drv.c mac_hfr0 = XGMAC_IOREAD(pdata, MAC_HWF0R); pdata 734 drivers/net/ethernet/amd/xgbe/xgbe-drv.c mac_hfr1 = XGMAC_IOREAD(pdata, MAC_HWF1R); pdata 735 drivers/net/ethernet/amd/xgbe/xgbe-drv.c mac_hfr2 = XGMAC_IOREAD(pdata, MAC_HWF2R); pdata 739 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->version = XGMAC_IOREAD(pdata, MAC_VR); pdata 828 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (netif_msg_probe(pdata)) { pdata 829 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, "Hardware features:\n"); pdata 832 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " 1GbE support : %s\n", pdata 834 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " VLAN hash filter : %s\n", pdata 836 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " MDIO interface : %s\n", pdata 838 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Wake-up packet support : %s\n", pdata 840 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Magic packet support : %s\n", pdata 842 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Management counters : %s\n", pdata 844 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " ARP offload : %s\n", pdata 846 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " IEEE 1588-2008 Timestamp : %s\n", pdata 848 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Energy Efficient Ethernet : %s\n", pdata 850 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " TX checksum offload : %s\n", pdata 852 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " RX checksum offload : %s\n", pdata 854 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Additional MAC addresses : %u\n", pdata 856 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Timestamp source : %s\n", pdata 860 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " SA/VLAN insertion : %s\n", pdata 862 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " VXLAN/NVGRE support : %s\n", pdata 866 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " RX fifo size : %u\n", pdata 868 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " TX fifo size : %u\n", pdata 870 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " IEEE 1588 high word : %s\n", pdata 872 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " DMA width : %u\n", pdata 874 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Data Center Bridging : %s\n", pdata 876 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Split header : %s\n", pdata 878 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " TCP Segmentation Offload : %s\n", pdata 880 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Debug memory interface : %s\n", pdata 882 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Receive Side Scaling : %s\n", pdata 884 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Traffic Class count : %u\n", pdata 886 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Hash table size : %u\n", pdata 888 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " L3/L4 Filters : %u\n", pdata 892 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " RX queue count : %u\n", pdata 894 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " TX queue count : %u\n", pdata 896 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " RX DMA channel count : %u\n", pdata 898 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " TX DMA channel count : %u\n", pdata 900 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " PPS outputs : %u\n", pdata 902 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_dbg(pdata->dev, " Auxiliary snapshot inputs : %u\n", pdata 907 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_disable_vxlan_offloads(struct xgbe_prv_data *pdata) pdata 909 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct net_device *netdev = pdata->netdev; pdata 911 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->vxlan_offloads_set) pdata 929 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_offloads_set = 0; pdata 932 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_disable_vxlan_hw(struct xgbe_prv_data *pdata) pdata 934 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->vxlan_port_set) pdata 937 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.disable_vxlan(pdata); pdata 939 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_port_set = 0; pdata 940 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_port = 0; pdata 943 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_disable_vxlan_accel(struct xgbe_prv_data *pdata) pdata 945 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_vxlan_offloads(pdata); pdata 947 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_vxlan_hw(pdata); pdata 950 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_enable_vxlan_offloads(struct xgbe_prv_data *pdata) pdata 952 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct net_device *netdev = pdata->netdev; pdata 954 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_offloads_set) pdata 966 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_features; pdata 968 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev->features |= pdata->vxlan_features; pdata 970 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_offloads_set = 1; pdata 973 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_enable_vxlan_hw(struct xgbe_prv_data *pdata) pdata 977 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_port_set) pdata 980 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (list_empty(&pdata->vxlan_ports)) pdata 983 drivers/net/ethernet/amd/xgbe/xgbe-drv.c vdata = list_first_entry(&pdata->vxlan_ports, pdata 986 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_port_set = 1; pdata 987 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_port = be16_to_cpu(vdata->port); pdata 989 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.enable_vxlan(pdata); pdata 992 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_enable_vxlan_accel(struct xgbe_prv_data *pdata) pdata 995 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->vxlan_features) pdata 999 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_force_disable) pdata 1002 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_enable_vxlan_hw(pdata); pdata 1004 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_enable_vxlan_offloads(pdata); pdata 1007 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_reset_vxlan_accel(struct xgbe_prv_data *pdata) pdata 1009 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_vxlan_hw(pdata); pdata 1011 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_features) pdata 1012 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_enable_vxlan_offloads(pdata); pdata 1014 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_force_disable = 0; pdata 1017 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_napi_enable(struct xgbe_prv_data *pdata, unsigned int add) pdata 1022 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->per_channel_irq) { pdata 1023 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 1024 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 1026 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_napi_add(pdata->netdev, &channel->napi, pdata 1033 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_napi_add(pdata->netdev, &pdata->napi, pdata 1036 drivers/net/ethernet/amd/xgbe/xgbe-drv.c napi_enable(&pdata->napi); pdata 1040 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_napi_disable(struct xgbe_prv_data *pdata, unsigned int del) pdata 1045 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->per_channel_irq) { pdata 1046 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 1047 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 1054 drivers/net/ethernet/amd/xgbe/xgbe-drv.c napi_disable(&pdata->napi); pdata 1057 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_napi_del(&pdata->napi); pdata 1061 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_request_irqs(struct xgbe_prv_data *pdata) pdata 1064 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct net_device *netdev = pdata->netdev; pdata 1068 drivers/net/ethernet/amd/xgbe/xgbe-drv.c tasklet_init(&pdata->tasklet_dev, xgbe_isr_task, (unsigned long)pdata); pdata 1069 drivers/net/ethernet/amd/xgbe/xgbe-drv.c tasklet_init(&pdata->tasklet_ecc, xgbe_ecc_isr_task, pdata 1070 drivers/net/ethernet/amd/xgbe/xgbe-drv.c (unsigned long)pdata); pdata 1072 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = devm_request_irq(pdata->dev, pdata->dev_irq, xgbe_isr, 0, pdata 1073 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev_name(netdev), pdata); pdata 1076 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->dev_irq); pdata 1080 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vdata->ecc_support && (pdata->dev_irq != pdata->ecc_irq)) { pdata 1081 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = devm_request_irq(pdata->dev, pdata->ecc_irq, xgbe_ecc_isr, pdata 1082 drivers/net/ethernet/amd/xgbe/xgbe-drv.c 0, pdata->ecc_name, pdata); pdata 1085 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->ecc_irq); pdata 1090 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->per_channel_irq) pdata 1093 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 1094 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 1100 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = devm_request_irq(pdata->dev, channel->dma_irq, pdata 1117 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i--; i < pdata->channel_count; i--) { pdata 1118 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 1121 drivers/net/ethernet/amd/xgbe/xgbe-drv.c devm_free_irq(pdata->dev, channel->dma_irq, channel); pdata 1124 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vdata->ecc_support && (pdata->dev_irq != pdata->ecc_irq)) pdata 1125 drivers/net/ethernet/amd/xgbe/xgbe-drv.c devm_free_irq(pdata->dev, pdata->ecc_irq, pdata); pdata 1128 drivers/net/ethernet/amd/xgbe/xgbe-drv.c devm_free_irq(pdata->dev, pdata->dev_irq, pdata); pdata 1133 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_free_irqs(struct xgbe_prv_data *pdata) pdata 1138 drivers/net/ethernet/amd/xgbe/xgbe-drv.c devm_free_irq(pdata->dev, pdata->dev_irq, pdata); pdata 1140 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vdata->ecc_support && (pdata->dev_irq != pdata->ecc_irq)) pdata 1141 drivers/net/ethernet/amd/xgbe/xgbe-drv.c devm_free_irq(pdata->dev, pdata->ecc_irq, pdata); pdata 1143 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->per_channel_irq) pdata 1146 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 1147 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 1150 drivers/net/ethernet/amd/xgbe/xgbe-drv.c devm_free_irq(pdata->dev, channel->dma_irq, channel); pdata 1154 drivers/net/ethernet/amd/xgbe/xgbe-drv.c void xgbe_init_tx_coalesce(struct xgbe_prv_data *pdata) pdata 1156 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 1160 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->tx_usecs = XGMAC_INIT_DMA_TX_USECS; pdata 1161 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->tx_frames = XGMAC_INIT_DMA_TX_FRAMES; pdata 1163 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->config_tx_coalesce(pdata); pdata 1168 drivers/net/ethernet/amd/xgbe/xgbe-drv.c void xgbe_init_rx_coalesce(struct xgbe_prv_data *pdata) pdata 1170 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 1174 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->rx_riwt = hw_if->usec_to_riwt(pdata, XGMAC_INIT_DMA_RX_USECS); pdata 1175 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->rx_usecs = XGMAC_INIT_DMA_RX_USECS; pdata 1176 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->rx_frames = XGMAC_INIT_DMA_RX_FRAMES; pdata 1178 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->config_rx_coalesce(pdata); pdata 1183 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_free_tx_data(struct xgbe_prv_data *pdata) pdata 1185 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_desc_if *desc_if = &pdata->desc_if; pdata 1192 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 1193 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ring = pdata->channel[i]->tx_ring; pdata 1199 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->unmap_rdata(pdata, rdata); pdata 1206 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_free_rx_data(struct xgbe_prv_data *pdata) pdata 1208 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_desc_if *desc_if = &pdata->desc_if; pdata 1215 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 1216 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ring = pdata->channel[i]->rx_ring; pdata 1222 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->unmap_rdata(pdata, rdata); pdata 1229 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_phy_reset(struct xgbe_prv_data *pdata) pdata 1231 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->phy_link = -1; pdata 1232 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->phy_speed = SPEED_UNKNOWN; pdata 1234 drivers/net/ethernet/amd/xgbe/xgbe-drv.c return pdata->phy_if.phy_reset(pdata); pdata 1239 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 1240 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 1246 drivers/net/ethernet/amd/xgbe/xgbe-drv.c (caller == XGMAC_IOCTL_CONTEXT && pdata->power_down)) { pdata 1252 drivers/net/ethernet/amd/xgbe/xgbe-drv.c spin_lock_irqsave(&pdata->lock, flags); pdata 1259 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_stop_timers(pdata); pdata 1260 drivers/net/ethernet/amd/xgbe/xgbe-drv.c flush_workqueue(pdata->dev_workqueue); pdata 1262 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->powerdown_tx(pdata); pdata 1263 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->powerdown_rx(pdata); pdata 1265 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_napi_disable(pdata, 0); pdata 1267 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->power_down = 1; pdata 1269 drivers/net/ethernet/amd/xgbe/xgbe-drv.c spin_unlock_irqrestore(&pdata->lock, flags); pdata 1278 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 1279 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 1285 drivers/net/ethernet/amd/xgbe/xgbe-drv.c (caller == XGMAC_IOCTL_CONTEXT && !pdata->power_down)) { pdata 1291 drivers/net/ethernet/amd/xgbe/xgbe-drv.c spin_lock_irqsave(&pdata->lock, flags); pdata 1293 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->power_down = 0; pdata 1295 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_napi_enable(pdata, 0); pdata 1297 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->powerup_tx(pdata); pdata 1298 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->powerup_rx(pdata); pdata 1305 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_start_timers(pdata); pdata 1307 drivers/net/ethernet/amd/xgbe/xgbe-drv.c spin_unlock_irqrestore(&pdata->lock, flags); pdata 1314 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_free_memory(struct xgbe_prv_data *pdata) pdata 1316 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_desc_if *desc_if = &pdata->desc_if; pdata 1319 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->free_ring_resources(pdata); pdata 1322 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_channels(pdata); pdata 1325 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_alloc_memory(struct xgbe_prv_data *pdata) pdata 1327 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_desc_if *desc_if = &pdata->desc_if; pdata 1328 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct net_device *netdev = pdata->netdev; pdata 1331 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->new_tx_ring_count) { pdata 1332 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->tx_ring_count = pdata->new_tx_ring_count; pdata 1333 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->tx_q_count = pdata->tx_ring_count; pdata 1334 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->new_tx_ring_count = 0; pdata 1337 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->new_rx_ring_count) { pdata 1338 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->rx_ring_count = pdata->new_rx_ring_count; pdata 1339 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->new_rx_ring_count = 0; pdata 1343 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->rx_buf_size = xgbe_calc_rx_buf_size(netdev, netdev->mtu); pdata 1346 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_alloc_channels(pdata); pdata 1351 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = desc_if->alloc_ring_resources(pdata); pdata 1356 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_init_timers(pdata); pdata 1361 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_memory(pdata); pdata 1366 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_start(struct xgbe_prv_data *pdata) pdata 1368 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 1369 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_phy_if *phy_if = &pdata->phy_if; pdata 1370 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct net_device *netdev = pdata->netdev; pdata 1375 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = netif_set_real_num_tx_queues(netdev, pdata->tx_ring_count); pdata 1381 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = netif_set_real_num_rx_queues(netdev, pdata->rx_ring_count); pdata 1389 drivers/net/ethernet/amd/xgbe/xgbe-drv.c XGMAC_SET_BITS(pdata->rss_table[i], MAC_RSSDR, DMCH, pdata 1390 drivers/net/ethernet/amd/xgbe/xgbe-drv.c i % pdata->rx_ring_count); pdata 1392 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = hw_if->init(pdata); pdata 1396 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_napi_enable(pdata, 1); pdata 1398 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_request_irqs(pdata); pdata 1402 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = phy_if->phy_start(pdata); pdata 1406 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->enable_tx(pdata); pdata 1407 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->enable_rx(pdata); pdata 1413 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_start_timers(pdata); pdata 1414 drivers/net/ethernet/amd/xgbe/xgbe-drv.c queue_work(pdata->dev_workqueue, &pdata->service_work); pdata 1416 drivers/net/ethernet/amd/xgbe/xgbe-drv.c clear_bit(XGBE_STOPPED, &pdata->dev_state); pdata 1421 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_irqs(pdata); pdata 1424 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_napi_disable(pdata, 1); pdata 1426 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->exit(pdata); pdata 1431 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_stop(struct xgbe_prv_data *pdata) pdata 1433 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 1434 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_phy_if *phy_if = &pdata->phy_if; pdata 1436 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct net_device *netdev = pdata->netdev; pdata 1442 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (test_bit(XGBE_STOPPED, &pdata->dev_state)) pdata 1447 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_stop_timers(pdata); pdata 1448 drivers/net/ethernet/amd/xgbe/xgbe-drv.c flush_workqueue(pdata->dev_workqueue); pdata 1450 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_reset_vxlan_accel(pdata); pdata 1452 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->disable_tx(pdata); pdata 1453 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->disable_rx(pdata); pdata 1455 drivers/net/ethernet/amd/xgbe/xgbe-drv.c phy_if->phy_stop(pdata); pdata 1457 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_irqs(pdata); pdata 1459 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_napi_disable(pdata, 1); pdata 1461 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->exit(pdata); pdata 1463 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 1464 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 1472 drivers/net/ethernet/amd/xgbe/xgbe-drv.c set_bit(XGBE_STOPPED, &pdata->dev_state); pdata 1479 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = container_of(work, pdata 1485 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_stop(pdata); pdata 1487 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_tx_data(pdata); pdata 1488 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_rx_data(pdata); pdata 1492 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev_alert(pdata->netdev, "device stopped\n"); pdata 1495 drivers/net/ethernet/amd/xgbe/xgbe-drv.c void xgbe_full_restart_dev(struct xgbe_prv_data *pdata) pdata 1498 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!netif_running(pdata->netdev)) pdata 1501 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_stop(pdata); pdata 1503 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_memory(pdata); pdata 1504 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_alloc_memory(pdata); pdata 1506 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_start(pdata); pdata 1509 drivers/net/ethernet/amd/xgbe/xgbe-drv.c void xgbe_restart_dev(struct xgbe_prv_data *pdata) pdata 1512 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!netif_running(pdata->netdev)) pdata 1515 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_stop(pdata); pdata 1517 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_tx_data(pdata); pdata 1518 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_rx_data(pdata); pdata 1520 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_start(pdata); pdata 1525 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = container_of(work, pdata 1531 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_restart_dev(pdata); pdata 1538 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = container_of(work, pdata 1545 drivers/net/ethernet/amd/xgbe/xgbe-drv.c spin_lock_irqsave(&pdata->tstamp_lock, flags); pdata 1546 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->tx_tstamp_skb) pdata 1549 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->tx_tstamp) { pdata 1550 drivers/net/ethernet/amd/xgbe/xgbe-drv.c nsec = timecounter_cyc2time(&pdata->tstamp_tc, pdata 1551 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->tx_tstamp); pdata 1555 drivers/net/ethernet/amd/xgbe/xgbe-drv.c skb_tstamp_tx(pdata->tx_tstamp_skb, &hwtstamps); pdata 1558 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dev_kfree_skb_any(pdata->tx_tstamp_skb); pdata 1560 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->tx_tstamp_skb = NULL; pdata 1563 drivers/net/ethernet/amd/xgbe/xgbe-drv.c spin_unlock_irqrestore(&pdata->tstamp_lock, flags); pdata 1566 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_get_hwtstamp_settings(struct xgbe_prv_data *pdata, pdata 1569 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (copy_to_user(ifreq->ifr_data, &pdata->tstamp_config, pdata 1570 drivers/net/ethernet/amd/xgbe/xgbe-drv.c sizeof(pdata->tstamp_config))) pdata 1576 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_set_hwtstamp_settings(struct xgbe_prv_data *pdata, pdata 1703 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.config_tstamp(pdata, mac_tscr); pdata 1705 drivers/net/ethernet/amd/xgbe/xgbe-drv.c memcpy(&pdata->tstamp_config, &config, sizeof(config)); pdata 1710 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_prep_tx_tstamp(struct xgbe_prv_data *pdata, pdata 1717 drivers/net/ethernet/amd/xgbe/xgbe-drv.c spin_lock_irqsave(&pdata->tstamp_lock, flags); pdata 1718 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->tx_tstamp_skb) { pdata 1723 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->tx_tstamp_skb = skb_get(skb); pdata 1726 drivers/net/ethernet/amd/xgbe/xgbe-drv.c spin_unlock_irqrestore(&pdata->tstamp_lock, flags); pdata 1776 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static bool xgbe_is_vxlan(struct xgbe_prv_data *pdata, struct sk_buff *skb) pdata 1780 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_force_disable) pdata 1805 drivers/net/ethernet/amd/xgbe/xgbe-drv.c list_for_each_entry(vdata, &pdata->vxlan_ports, list) { pdata 1832 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static void xgbe_packet_info(struct xgbe_prv_data *pdata, pdata 1867 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (xgbe_is_vxlan(pdata, skb)) pdata 1885 drivers/net/ethernet/amd/xgbe/xgbe-drv.c (pdata->tstamp_config.tx_type == HWTSTAMP_TX_ON)) pdata 1905 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 1909 drivers/net/ethernet/amd/xgbe/xgbe-drv.c snprintf(pdata->an_name, sizeof(pdata->an_name) - 1, "%s-pcs", pdata 1912 drivers/net/ethernet/amd/xgbe/xgbe-drv.c snprintf(pdata->ecc_name, sizeof(pdata->ecc_name) - 1, "%s-ecc", pdata 1915 drivers/net/ethernet/amd/xgbe/xgbe-drv.c snprintf(pdata->i2c_name, sizeof(pdata->i2c_name) - 1, "%s-i2c", pdata 1919 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->dev_workqueue = pdata 1921 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->dev_workqueue) { pdata 1926 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->an_workqueue = pdata 1927 drivers/net/ethernet/amd/xgbe/xgbe-drv.c create_singlethread_workqueue(pdata->an_name); pdata 1928 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->an_workqueue) { pdata 1935 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_phy_reset(pdata); pdata 1940 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = clk_prepare_enable(pdata->sysclk); pdata 1946 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = clk_prepare_enable(pdata->ptpclk); pdata 1952 drivers/net/ethernet/amd/xgbe/xgbe-drv.c INIT_WORK(&pdata->service_work, xgbe_service); pdata 1953 drivers/net/ethernet/amd/xgbe/xgbe-drv.c INIT_WORK(&pdata->restart_work, xgbe_restart); pdata 1954 drivers/net/ethernet/amd/xgbe/xgbe-drv.c INIT_WORK(&pdata->stopdev_work, xgbe_stopdev); pdata 1955 drivers/net/ethernet/amd/xgbe/xgbe-drv.c INIT_WORK(&pdata->tx_tstamp_work, xgbe_tx_tstamp); pdata 1957 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_alloc_memory(pdata); pdata 1961 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_start(pdata); pdata 1965 drivers/net/ethernet/amd/xgbe/xgbe-drv.c clear_bit(XGBE_DOWN, &pdata->dev_state); pdata 1970 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_memory(pdata); pdata 1973 drivers/net/ethernet/amd/xgbe/xgbe-drv.c clk_disable_unprepare(pdata->ptpclk); pdata 1976 drivers/net/ethernet/amd/xgbe/xgbe-drv.c clk_disable_unprepare(pdata->sysclk); pdata 1979 drivers/net/ethernet/amd/xgbe/xgbe-drv.c destroy_workqueue(pdata->an_workqueue); pdata 1982 drivers/net/ethernet/amd/xgbe/xgbe-drv.c destroy_workqueue(pdata->dev_workqueue); pdata 1989 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 1992 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_stop(pdata); pdata 1994 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_free_memory(pdata); pdata 1997 drivers/net/ethernet/amd/xgbe/xgbe-drv.c clk_disable_unprepare(pdata->ptpclk); pdata 1998 drivers/net/ethernet/amd/xgbe/xgbe-drv.c clk_disable_unprepare(pdata->sysclk); pdata 2000 drivers/net/ethernet/amd/xgbe/xgbe-drv.c flush_workqueue(pdata->an_workqueue); pdata 2001 drivers/net/ethernet/amd/xgbe/xgbe-drv.c destroy_workqueue(pdata->an_workqueue); pdata 2003 drivers/net/ethernet/amd/xgbe/xgbe-drv.c flush_workqueue(pdata->dev_workqueue); pdata 2004 drivers/net/ethernet/amd/xgbe/xgbe-drv.c destroy_workqueue(pdata->dev_workqueue); pdata 2006 drivers/net/ethernet/amd/xgbe/xgbe-drv.c set_bit(XGBE_DOWN, &pdata->dev_state); pdata 2013 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2014 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2015 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_desc_if *desc_if = &pdata->desc_if; pdata 2024 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[skb->queue_mapping]; pdata 2032 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_err(pdata, tx_err, netdev, pdata 2040 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_packet_info(pdata, ring, skb, packet); pdata 2049 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_err(pdata, tx_err, netdev, pdata 2061 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_prep_tx_tstamp(pdata, skb, packet); pdata 2069 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (netif_msg_pktdata(pdata)) pdata 2083 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2084 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2088 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->config_rx_mode(pdata); pdata 2095 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2096 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2106 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->set_mac_address(pdata, netdev->dev_addr); pdata 2115 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2120 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_get_hwtstamp_settings(pdata, ifreq); pdata 2124 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_set_hwtstamp_settings(pdata, ifreq); pdata 2136 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2145 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->rx_buf_size = ret; pdata 2148 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_restart_dev(pdata); pdata 2157 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2160 drivers/net/ethernet/amd/xgbe/xgbe-drv.c schedule_work(&pdata->restart_work); pdata 2166 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2167 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_mmc_stats *pstats = &pdata->mmc_stats; pdata 2171 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.read_mmc_stats(pdata); pdata 2195 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2196 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2200 drivers/net/ethernet/amd/xgbe/xgbe-drv.c set_bit(vid, pdata->active_vlans); pdata 2201 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->update_vlan_hash_table(pdata); pdata 2211 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2212 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2216 drivers/net/ethernet/amd/xgbe/xgbe-drv.c clear_bit(vid, pdata->active_vlans); pdata 2217 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->update_vlan_hash_table(pdata); pdata 2227 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2233 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->per_channel_irq) { pdata 2234 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 2235 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 2239 drivers/net/ethernet/amd/xgbe/xgbe-drv.c disable_irq(pdata->dev_irq); pdata 2240 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_isr(pdata->dev_irq, pdata); pdata 2241 drivers/net/ethernet/amd/xgbe/xgbe-drv.c enable_irq(pdata->dev_irq); pdata 2251 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2261 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (tc > pdata->hw_feat.tc_cnt) pdata 2264 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->num_tcs = tc; pdata 2265 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.config_tc(pdata); pdata 2273 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2279 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_features = features & vxlan_mask; pdata 2282 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->vxlan_features) pdata 2289 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->hw_feat.vxn) pdata 2321 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_features = features & vxlan_mask; pdata 2324 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_force_disable) { pdata 2336 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2337 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2342 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rxhash = pdata->netdev_features & NETIF_F_RXHASH; pdata 2343 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rxcsum = pdata->netdev_features & NETIF_F_RXCSUM; pdata 2344 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rxvlan = pdata->netdev_features & NETIF_F_HW_VLAN_CTAG_RX; pdata 2345 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rxvlan_filter = pdata->netdev_features & NETIF_F_HW_VLAN_CTAG_FILTER; pdata 2346 drivers/net/ethernet/amd/xgbe/xgbe-drv.c udp_tunnel = pdata->netdev_features & NETIF_F_GSO_UDP_TUNNEL; pdata 2349 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = hw_if->enable_rss(pdata); pdata 2351 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = hw_if->disable_rss(pdata); pdata 2356 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->enable_rx_csum(pdata); pdata 2358 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->disable_rx_csum(pdata); pdata 2361 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->enable_rx_vlan_stripping(pdata); pdata 2363 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->disable_rx_vlan_stripping(pdata); pdata 2366 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->enable_rx_vlan_filtering(pdata); pdata 2368 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->disable_rx_vlan_filtering(pdata); pdata 2371 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_enable_vxlan_accel(pdata); pdata 2373 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_vxlan_accel(pdata); pdata 2375 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->netdev_features = features; pdata 2385 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2388 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->hw_feat.vxn) pdata 2394 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_port_count++; pdata 2396 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, netdev, pdata 2400 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_force_disable) pdata 2406 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_force_disable = 1; pdata 2407 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, netdev, pdata 2410 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_disable_vxlan_accel(pdata); pdata 2417 drivers/net/ethernet/amd/xgbe/xgbe-drv.c list_add_tail(&vdata->list, &pdata->vxlan_ports); pdata 2420 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_port_count == 1) { pdata 2421 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_enable_vxlan_accel(pdata); pdata 2430 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 2433 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->hw_feat.vxn) pdata 2439 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, netdev, pdata 2444 drivers/net/ethernet/amd/xgbe/xgbe-drv.c list_for_each_entry(vdata, &pdata->vxlan_ports, list) { pdata 2457 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_port_count--; pdata 2458 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->vxlan_port_count) { pdata 2459 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_reset_vxlan_accel(pdata); pdata 2464 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_force_disable) pdata 2468 drivers/net/ethernet/amd/xgbe/xgbe-drv.c vdata = list_first_entry(&pdata->vxlan_ports, pdata 2470 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->vxlan_port == be16_to_cpu(vdata->port)) pdata 2473 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->vxlan_port = be16_to_cpu(vdata->port); pdata 2474 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->hw_if.set_vxlan_id(pdata); pdata 2518 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = channel->pdata; pdata 2519 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2520 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_desc_if *desc_if = &pdata->desc_if; pdata 2528 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->unmap_rdata(pdata, rdata); pdata 2530 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (desc_if->map_rx_buffer(pdata, ring, rdata)) pdata 2533 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->rx_desc_reset(pdata, rdata, ring->dirty); pdata 2548 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static struct sk_buff *xgbe_create_skb(struct xgbe_prv_data *pdata, pdata 2563 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dma_sync_single_range_for_cpu(pdata->dev, rdata->rx.hdr.dma_base, pdata 2614 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = channel->pdata; pdata 2615 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2616 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_desc_if *desc_if = &pdata->desc_if; pdata 2620 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct net_device *netdev = pdata->netdev; pdata 2651 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (netif_msg_tx_done(pdata)) pdata 2652 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_dump_tx_desc(pdata, ring, ring->dirty, 1, 0); pdata 2660 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->unmap_rdata(pdata, rdata); pdata 2685 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = channel->pdata; pdata 2686 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 2690 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct net_device *netdev = pdata->netdev; pdata 2708 drivers/net/ethernet/amd/xgbe/xgbe-drv.c napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; pdata 2754 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_err(pdata, rx_err, netdev, pdata 2768 drivers/net/ethernet/amd/xgbe/xgbe-drv.c skb = xgbe_create_skb(pdata, napi, rdata, pdata 2777 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dma_sync_single_range_for_cpu(pdata->dev, pdata 2806 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_err(pdata, rx_err, netdev, pdata 2812 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (netif_msg_pktdata(pdata)) pdata 2838 drivers/net/ethernet/amd/xgbe/xgbe-drv.c nsec = timecounter_cyc2time(&pdata->tstamp_tc, pdata 2877 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = channel->pdata; pdata 2891 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (pdata->channel_irq_mode) pdata 2892 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_enable_rx_tx_int(pdata, channel); pdata 2904 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_prv_data *pdata = container_of(napi, struct xgbe_prv_data, pdata 2914 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ring_budget = budget / pdata->rx_ring_count; pdata 2918 drivers/net/ethernet/amd/xgbe/xgbe-drv.c for (i = 0; i < pdata->channel_count; i++) { pdata 2919 drivers/net/ethernet/amd/xgbe/xgbe-drv.c channel = pdata->channel[i]; pdata 2934 drivers/net/ethernet/amd/xgbe/xgbe-drv.c xgbe_enable_rx_tx_ints(pdata); pdata 2942 drivers/net/ethernet/amd/xgbe/xgbe-drv.c void xgbe_dump_tx_desc(struct xgbe_prv_data *pdata, struct xgbe_ring *ring, pdata 2951 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev_dbg(pdata->netdev, pdata 2962 drivers/net/ethernet/amd/xgbe/xgbe-drv.c void xgbe_dump_rx_desc(struct xgbe_prv_data *pdata, struct xgbe_ring *ring, pdata 2970 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev_dbg(pdata->netdev, pdata 193 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 203 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c for (i = 0; i < pdata->tx_ring_count; i++) { pdata 209 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c for (i = 0; i < pdata->rx_ring_count; i++) { pdata 222 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 226 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->hw_if.read_mmc_stats(pdata); pdata 228 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c stat = (u8 *)pdata + xgbe_gstring_stats[i].stat_offset; pdata 231 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c for (i = 0; i < pdata->tx_ring_count; i++) { pdata 232 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c *data++ = pdata->ext_stats.txq_packets[i]; pdata 233 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c *data++ = pdata->ext_stats.txq_bytes[i]; pdata 235 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c for (i = 0; i < pdata->rx_ring_count; i++) { pdata 236 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c *data++ = pdata->ext_stats.rxq_packets[i]; pdata 237 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c *data++ = pdata->ext_stats.rxq_bytes[i]; pdata 243 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 249 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (pdata->tx_ring_count * 2) + pdata 250 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (pdata->rx_ring_count * 2); pdata 263 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 265 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pause->autoneg = pdata->phy.pause_autoneg; pdata 266 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pause->tx_pause = pdata->phy.tx_pause; pdata 267 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pause->rx_pause = pdata->phy.rx_pause; pdata 273 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 274 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 277 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (pause->autoneg && (pdata->phy.autoneg != AUTONEG_ENABLE)) { pdata 283 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->phy.pause_autoneg = pause->autoneg; pdata 284 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->phy.tx_pause = pause->tx_pause; pdata 285 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->phy.rx_pause = pause->rx_pause; pdata 304 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ret = pdata->phy_if.phy_config_aneg(pdata); pdata 312 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 313 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 315 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c cmd->base.phy_address = pdata->phy.address; pdata 317 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c cmd->base.autoneg = pdata->phy.autoneg; pdata 318 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c cmd->base.speed = pdata->phy.speed; pdata 319 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c cmd->base.duplex = pdata->phy.duplex; pdata 333 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 334 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 341 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (cmd->base.phy_address != pdata->phy.address) { pdata 355 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (!pdata->phy_if.phy_valid_speed(pdata, speed)) { pdata 367 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c netif_dbg(pdata, link, netdev, pdata 384 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->phy.autoneg = cmd->base.autoneg; pdata 385 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->phy.speed = speed; pdata 386 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->phy.duplex = cmd->base.duplex; pdata 396 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ret = pdata->phy_if.phy_config_aneg(pdata); pdata 404 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 405 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_hw_features *hw_feat = &pdata->hw_feat; pdata 409 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c strlcpy(drvinfo->bus_info, dev_name(pdata->dev), pdata 419 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 421 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c return pdata->msg_enable; pdata 426 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 428 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->msg_enable = msglevel; pdata 434 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 438 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ec->rx_coalesce_usecs = pdata->rx_usecs; pdata 439 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ec->rx_max_coalesced_frames = pdata->rx_frames; pdata 441 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ec->tx_max_coalesced_frames = pdata->tx_frames; pdata 449 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 450 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 478 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx_riwt = hw_if->usec_to_riwt(pdata, ec->rx_coalesce_usecs); pdata 489 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c hw_if->riwt_to_usec(pdata, XGMAC_MAX_DMA_RIWT)); pdata 492 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (rx_frames > pdata->rx_desc_count) { pdata 494 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->rx_desc_count); pdata 501 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (tx_frames > pdata->tx_desc_count) { pdata 503 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->tx_desc_count); pdata 507 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->rx_riwt = rx_riwt; pdata 508 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->rx_usecs = rx_usecs; pdata 509 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->rx_frames = rx_frames; pdata 510 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c hw_if->config_rx_coalesce(pdata); pdata 512 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->tx_frames = tx_frames; pdata 513 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c hw_if->config_tx_coalesce(pdata); pdata 521 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 525 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rxnfc->data = pdata->rx_ring_count; pdata 536 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 538 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c return sizeof(pdata->rss_key); pdata 543 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 545 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c return ARRAY_SIZE(pdata->rss_table); pdata 551 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 555 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) pdata 556 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c indir[i] = XGMAC_GET_BITS(pdata->rss_table[i], pdata 561 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c memcpy(key, pdata->rss_key, sizeof(pdata->rss_key)); pdata 572 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 573 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_hw_if *hw_if = &pdata->hw_if; pdata 582 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ret = hw_if->set_rss_lookup_table(pdata, indir); pdata 588 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ret = hw_if->set_rss_hash_key(pdata, key); pdata 599 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 608 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if (pdata->ptp_clock) pdata 609 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ts_info->phc_index = ptp_clock_index(pdata->ptp_clock); pdata 632 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 634 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c return pdata->phy_if.module_info(pdata, modinfo); pdata 640 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 642 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c return pdata->phy_if.module_eeprom(pdata, eeprom, data); pdata 648 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 652 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ringparam->rx_pending = pdata->rx_desc_count; pdata 653 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c ringparam->tx_pending = pdata->tx_desc_count; pdata 659 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 695 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c if ((rx == pdata->rx_desc_count) && pdata 696 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c (tx == pdata->tx_desc_count)) pdata 699 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->rx_desc_count = rx; pdata 700 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->tx_desc_count = tx; pdata 702 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c xgbe_restart_dev(pdata); pdata 711 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 720 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx = min(pdata->hw_feat.rx_ch_cnt, pdata->rx_max_channel_count); pdata 721 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx = min(rx, pdata->channel_irq_count); pdata 722 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = min(pdata->hw_feat.tx_ch_cnt, pdata->tx_max_channel_count); pdata 723 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = min(tx, pdata->channel_irq_count); pdata 724 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = min(tx, pdata->tx_max_q_count); pdata 733 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx = pdata->new_rx_ring_count ? : pdata->rx_ring_count; pdata 734 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = pdata->new_tx_ring_count ? : pdata->tx_ring_count; pdata 756 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 765 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx = min(pdata->hw_feat.rx_ch_cnt, pdata->rx_max_channel_count); pdata 766 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx = min(rx, pdata->channel_irq_count); pdata 767 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = min(pdata->hw_feat.tx_ch_cnt, pdata->tx_max_channel_count); pdata 768 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = min(tx, pdata->tx_max_q_count); pdata 769 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = min(tx, pdata->channel_irq_count); pdata 825 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx_curr = pdata->new_rx_ring_count ? : pdata->rx_ring_count; pdata 826 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx_curr = pdata->new_tx_ring_count ? : pdata->tx_ring_count; pdata 831 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->new_rx_ring_count = rx; pdata 832 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c pdata->new_tx_ring_count = tx; pdata 834 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c xgbe_full_restart_dev(pdata); pdata 144 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static int xgbe_i2c_abort(struct xgbe_prv_data *pdata) pdata 149 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE_BITS(pdata, IC_ENABLE, EN, 1); pdata 152 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE_BITS(pdata, IC_ENABLE, ABORT, 1); pdata 155 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (!XI2C_IOREAD_BITS(pdata, IC_ENABLE, ABORT)) pdata 164 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static int xgbe_i2c_set_enable(struct xgbe_prv_data *pdata, bool enable) pdata 170 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE_BITS(pdata, IC_ENABLE, EN, mode); pdata 171 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (XI2C_IOREAD_BITS(pdata, IC_ENABLE_STATUS, EN) == mode) pdata 180 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static int xgbe_i2c_disable(struct xgbe_prv_data *pdata) pdata 184 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c ret = xgbe_i2c_set_enable(pdata, false); pdata 187 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c ret = xgbe_i2c_abort(pdata); pdata 192 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c ret = xgbe_i2c_set_enable(pdata, false); pdata 198 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static int xgbe_i2c_enable(struct xgbe_prv_data *pdata) pdata 200 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c return xgbe_i2c_set_enable(pdata, true); pdata 203 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_clear_all_interrupts(struct xgbe_prv_data *pdata) pdata 205 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOREAD(pdata, IC_CLR_INTR); pdata 208 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_disable_interrupts(struct xgbe_prv_data *pdata) pdata 210 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE(pdata, IC_INTR_MASK, 0); pdata 213 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_enable_interrupts(struct xgbe_prv_data *pdata) pdata 215 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE(pdata, IC_INTR_MASK, XGBE_DEFAULT_INT_MASK); pdata 218 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_write(struct xgbe_prv_data *pdata) pdata 220 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c struct xgbe_i2c_op_state *state = &pdata->i2c.op_state; pdata 225 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c tx_slots = pdata->i2c.tx_fifo_size - XI2C_IOREAD(pdata, IC_TXFLR); pdata 235 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE(pdata, IC_DATA_CMD, cmd); pdata 243 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE_BITS(pdata, IC_INTR_MASK, TX_EMPTY, 0); pdata 246 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_read(struct xgbe_prv_data *pdata) pdata 248 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c struct xgbe_i2c_op_state *state = &pdata->i2c.op_state; pdata 255 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c rx_slots = XI2C_IOREAD(pdata, IC_RXFLR); pdata 257 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c *state->rx_buf++ = XI2C_IOREAD(pdata, IC_DATA_CMD); pdata 263 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_clear_isr_interrupts(struct xgbe_prv_data *pdata, pdata 266 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c struct xgbe_i2c_op_state *state = &pdata->i2c.op_state; pdata 269 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c state->tx_abort_source = XI2C_IOREAD(pdata, IC_TX_ABRT_SOURCE); pdata 270 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOREAD(pdata, IC_CLR_TX_ABRT); pdata 274 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOREAD(pdata, IC_CLR_STOP_DET); pdata 279 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c struct xgbe_prv_data *pdata = (struct xgbe_prv_data *)data; pdata 280 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c struct xgbe_i2c_op_state *state = &pdata->i2c.op_state; pdata 283 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c isr = XI2C_IOREAD(pdata, IC_RAW_INTR_STAT); pdata 287 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c netif_dbg(pdata, intr, pdata->netdev, pdata 290 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_clear_isr_interrupts(pdata, isr); pdata 293 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c netif_dbg(pdata, link, pdata->netdev, pdata 297 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_disable_interrupts(pdata); pdata 304 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_read(pdata); pdata 307 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_write(pdata); pdata 312 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c complete(&pdata->i2c_complete); pdata 316 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (pdata->vdata->irq_reissue_support) pdata 317 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XP_IOWRITE(pdata, XP_INT_REISSUE_EN, 1 << 2); pdata 322 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c struct xgbe_prv_data *pdata = (struct xgbe_prv_data *)data; pdata 324 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (pdata->isr_as_tasklet) pdata 325 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c tasklet_schedule(&pdata->tasklet_i2c); pdata 327 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_isr_task((unsigned long)pdata); pdata 332 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_set_mode(struct xgbe_prv_data *pdata) pdata 336 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c reg = XI2C_IOREAD(pdata, IC_CON); pdata 342 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE(pdata, IC_CON, reg); pdata 345 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_get_features(struct xgbe_prv_data *pdata) pdata 347 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c struct xgbe_i2c *i2c = &pdata->i2c; pdata 350 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c reg = XI2C_IOREAD(pdata, IC_COMP_PARAM_1); pdata 358 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (netif_msg_probe(pdata)) pdata 359 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c dev_dbg(pdata->dev, "I2C features: %s=%u, %s=%u, %s=%u\n", pdata 365 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_set_target(struct xgbe_prv_data *pdata, unsigned int addr) pdata 367 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE(pdata, IC_TAR, addr); pdata 370 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static irqreturn_t xgbe_i2c_combined_isr(struct xgbe_prv_data *pdata) pdata 372 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_isr_task((unsigned long)pdata); pdata 377 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static int xgbe_i2c_xfer(struct xgbe_prv_data *pdata, struct xgbe_i2c_op *op) pdata 379 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c struct xgbe_i2c_op_state *state = &pdata->i2c.op_state; pdata 382 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c mutex_lock(&pdata->i2c_mutex); pdata 384 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c reinit_completion(&pdata->i2c_complete); pdata 386 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c ret = xgbe_i2c_disable(pdata); pdata 388 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c netdev_err(pdata->netdev, "failed to disable i2c master\n"); pdata 392 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_set_target(pdata, op->target); pdata 401 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_clear_all_interrupts(pdata); pdata 402 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c ret = xgbe_i2c_enable(pdata); pdata 404 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c netdev_err(pdata->netdev, "failed to enable i2c master\n"); pdata 411 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_enable_interrupts(pdata); pdata 413 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (!wait_for_completion_timeout(&pdata->i2c_complete, HZ)) { pdata 414 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c netdev_err(pdata->netdev, "i2c operation timed out\n"); pdata 428 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_disable_interrupts(pdata); pdata 429 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_disable(pdata); pdata 432 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c mutex_unlock(&pdata->i2c_mutex); pdata 437 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static void xgbe_i2c_stop(struct xgbe_prv_data *pdata) pdata 439 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (!pdata->i2c.started) pdata 442 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c netif_dbg(pdata, link, pdata->netdev, "stopping I2C\n"); pdata 444 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c pdata->i2c.started = 0; pdata 446 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_disable_interrupts(pdata); pdata 447 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_disable(pdata); pdata 448 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_clear_all_interrupts(pdata); pdata 450 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (pdata->dev_irq != pdata->i2c_irq) pdata 451 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c devm_free_irq(pdata->dev, pdata->i2c_irq, pdata); pdata 454 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static int xgbe_i2c_start(struct xgbe_prv_data *pdata) pdata 458 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (pdata->i2c.started) pdata 461 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c netif_dbg(pdata, link, pdata->netdev, "starting I2C\n"); pdata 464 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (pdata->dev_irq != pdata->i2c_irq) { pdata 465 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c tasklet_init(&pdata->tasklet_i2c, xgbe_i2c_isr_task, pdata 466 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c (unsigned long)pdata); pdata 468 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c ret = devm_request_irq(pdata->dev, pdata->i2c_irq, pdata 469 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_isr, 0, pdata->i2c_name, pdata 470 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c pdata); pdata 472 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c netdev_err(pdata->netdev, "i2c irq request failed\n"); pdata 477 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c pdata->i2c.started = 1; pdata 482 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c static int xgbe_i2c_init(struct xgbe_prv_data *pdata) pdata 486 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_disable_interrupts(pdata); pdata 488 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c ret = xgbe_i2c_disable(pdata); pdata 490 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c dev_err(pdata->dev, "failed to disable i2c master\n"); pdata 494 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_get_features(pdata); pdata 496 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_set_mode(pdata); pdata 498 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c xgbe_i2c_clear_all_interrupts(pdata); pdata 140 drivers/net/ethernet/amd/xgbe/xgbe-main.c static void xgbe_default_config(struct xgbe_prv_data *pdata) pdata 144 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->blen = DMA_SBMR_BLEN_64; pdata 145 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->pbl = DMA_PBL_128; pdata 146 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->aal = 1; pdata 147 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rd_osr_limit = 8; pdata 148 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->wr_osr_limit = 8; pdata 149 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_sf_mode = MTL_TSF_ENABLE; pdata 150 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_threshold = MTL_TX_THRESHOLD_64; pdata 151 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_osp_mode = DMA_OSP_ENABLE; pdata 152 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_sf_mode = MTL_RSF_DISABLE; pdata 153 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_threshold = MTL_RX_THRESHOLD_64; pdata 154 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->pause_autoneg = 1; pdata 155 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_pause = 1; pdata 156 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_pause = 1; pdata 157 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->phy_speed = SPEED_UNKNOWN; pdata 158 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->power_down = 0; pdata 163 drivers/net/ethernet/amd/xgbe/xgbe-main.c static void xgbe_init_all_fptrs(struct xgbe_prv_data *pdata) pdata 165 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_init_function_ptrs_dev(&pdata->hw_if); pdata 166 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_init_function_ptrs_phy(&pdata->phy_if); pdata 167 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_init_function_ptrs_i2c(&pdata->i2c_if); pdata 168 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_init_function_ptrs_desc(&pdata->desc_if); pdata 170 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->vdata->init_function_ptrs_phy_impl(&pdata->phy_if); pdata 175 drivers/net/ethernet/amd/xgbe/xgbe-main.c struct xgbe_prv_data *pdata; pdata 185 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata = netdev_priv(netdev); pdata 186 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->netdev = netdev; pdata 187 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->dev = dev; pdata 189 drivers/net/ethernet/amd/xgbe/xgbe-main.c spin_lock_init(&pdata->lock); pdata 190 drivers/net/ethernet/amd/xgbe/xgbe-main.c spin_lock_init(&pdata->xpcs_lock); pdata 191 drivers/net/ethernet/amd/xgbe/xgbe-main.c mutex_init(&pdata->rss_mutex); pdata 192 drivers/net/ethernet/amd/xgbe/xgbe-main.c spin_lock_init(&pdata->tstamp_lock); pdata 193 drivers/net/ethernet/amd/xgbe/xgbe-main.c mutex_init(&pdata->i2c_mutex); pdata 194 drivers/net/ethernet/amd/xgbe/xgbe-main.c init_completion(&pdata->i2c_complete); pdata 195 drivers/net/ethernet/amd/xgbe/xgbe-main.c init_completion(&pdata->mdio_complete); pdata 196 drivers/net/ethernet/amd/xgbe/xgbe-main.c INIT_LIST_HEAD(&pdata->vxlan_ports); pdata 198 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->msg_enable = netif_msg_init(debug, default_msg_level); pdata 200 drivers/net/ethernet/amd/xgbe/xgbe-main.c set_bit(XGBE_DOWN, &pdata->dev_state); pdata 201 drivers/net/ethernet/amd/xgbe/xgbe-main.c set_bit(XGBE_STOPPED, &pdata->dev_state); pdata 203 drivers/net/ethernet/amd/xgbe/xgbe-main.c return pdata; pdata 206 drivers/net/ethernet/amd/xgbe/xgbe-main.c void xgbe_free_pdata(struct xgbe_prv_data *pdata) pdata 208 drivers/net/ethernet/amd/xgbe/xgbe-main.c struct net_device *netdev = pdata->netdev; pdata 213 drivers/net/ethernet/amd/xgbe/xgbe-main.c void xgbe_set_counts(struct xgbe_prv_data *pdata) pdata 216 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_init_all_fptrs(pdata); pdata 219 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_get_all_hw_features(pdata); pdata 222 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (!pdata->tx_max_channel_count) pdata 223 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_max_channel_count = pdata->hw_feat.tx_ch_cnt; pdata 224 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (!pdata->rx_max_channel_count) pdata 225 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_max_channel_count = pdata->hw_feat.rx_ch_cnt; pdata 227 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (!pdata->tx_max_q_count) pdata 228 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_max_q_count = pdata->hw_feat.tx_q_cnt; pdata 229 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (!pdata->rx_max_q_count) pdata 230 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_max_q_count = pdata->hw_feat.rx_q_cnt; pdata 239 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, num_online_cpus(), pdata 240 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->hw_feat.tx_ch_cnt); pdata 241 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, pdata 242 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_max_channel_count); pdata 243 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, pdata 244 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_max_q_count); pdata 246 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_q_count = pdata->tx_ring_count; pdata 248 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ring_count = min_t(unsigned int, num_online_cpus(), pdata 249 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->hw_feat.rx_ch_cnt); pdata 250 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, pdata 251 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_max_channel_count); pdata 253 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_q_count = min_t(unsigned int, pdata->hw_feat.rx_q_cnt, pdata 254 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_max_q_count); pdata 256 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (netif_msg_probe(pdata)) { pdata 257 drivers/net/ethernet/amd/xgbe/xgbe-main.c dev_dbg(pdata->dev, "TX/RX DMA channel count = %u/%u\n", pdata 258 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count, pdata->rx_ring_count); pdata 259 drivers/net/ethernet/amd/xgbe/xgbe-main.c dev_dbg(pdata->dev, "TX/RX hardware queue count = %u/%u\n", pdata 260 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_q_count, pdata->rx_q_count); pdata 264 drivers/net/ethernet/amd/xgbe/xgbe-main.c int xgbe_config_netdev(struct xgbe_prv_data *pdata) pdata 266 drivers/net/ethernet/amd/xgbe/xgbe-main.c struct net_device *netdev = pdata->netdev; pdata 267 drivers/net/ethernet/amd/xgbe/xgbe-main.c struct device *dev = pdata->dev; pdata 270 drivers/net/ethernet/amd/xgbe/xgbe-main.c netdev->irq = pdata->dev_irq; pdata 271 drivers/net/ethernet/amd/xgbe/xgbe-main.c netdev->base_addr = (unsigned long)pdata->xgmac_regs; pdata 272 drivers/net/ethernet/amd/xgbe/xgbe-main.c memcpy(netdev->dev_addr, pdata->mac_addr, netdev->addr_len); pdata 275 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_sec_period = jiffies; pdata 276 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ded_period = jiffies; pdata 277 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_sec_period = jiffies; pdata 278 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ded_period = jiffies; pdata 279 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->desc_sec_period = jiffies; pdata 280 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->desc_ded_period = jiffies; pdata 283 drivers/net/ethernet/amd/xgbe/xgbe-main.c ret = pdata->hw_if.exit(pdata); pdata 290 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_default_config(pdata); pdata 294 drivers/net/ethernet/amd/xgbe/xgbe-main.c DMA_BIT_MASK(pdata->hw_feat.dma_width)); pdata 301 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (!pdata->tx_max_fifo_size) pdata 302 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_max_fifo_size = pdata->hw_feat.tx_fifo_size; pdata 303 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (!pdata->rx_max_fifo_size) pdata 304 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_max_fifo_size = pdata->hw_feat.rx_fifo_size; pdata 308 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_desc_count = XGBE_TX_DESC_CNT; pdata 311 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_desc_count = XGBE_RX_DESC_CNT; pdata 314 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (pdata->channel_irq_count) { pdata 315 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, pdata 316 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->channel_irq_count); pdata 317 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, pdata 318 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->channel_irq_count); pdata 320 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (netif_msg_probe(pdata)) pdata 321 drivers/net/ethernet/amd/xgbe/xgbe-main.c dev_dbg(pdata->dev, pdata 323 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count, pdata->rx_ring_count); pdata 327 drivers/net/ethernet/amd/xgbe/xgbe-main.c netdev_rss_key_fill(pdata->rss_key, sizeof(pdata->rss_key)); pdata 329 drivers/net/ethernet/amd/xgbe/xgbe-main.c XGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, IP2TE, 1); pdata 330 drivers/net/ethernet/amd/xgbe/xgbe-main.c XGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, TCP4TE, 1); pdata 331 drivers/net/ethernet/amd/xgbe/xgbe-main.c XGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, UDP4TE, 1); pdata 334 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->debugfs_an_cdr_workaround = pdata->vdata->an_cdr_workaround; pdata 335 drivers/net/ethernet/amd/xgbe/xgbe-main.c ret = pdata->phy_if.phy_init(pdata); pdata 358 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (pdata->hw_feat.rss) pdata 361 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (pdata->hw_feat.vxn) { pdata 377 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->vxlan_offloads_set = 1; pdata 378 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->vxlan_features = NETIF_F_GSO_UDP_TUNNEL | pdata 390 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->netdev_features = netdev->features; pdata 399 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_init_rx_coalesce(pdata); pdata 400 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_init_tx_coalesce(pdata); pdata 410 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_ptp_register(pdata); pdata 412 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_debugfs_init(pdata); pdata 414 drivers/net/ethernet/amd/xgbe/xgbe-main.c netif_dbg(pdata, drv, pdata->netdev, "%u Tx software queues\n", pdata 415 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_ring_count); pdata 416 drivers/net/ethernet/amd/xgbe/xgbe-main.c netif_dbg(pdata, drv, pdata->netdev, "%u Rx software queues\n", pdata 417 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_ring_count); pdata 422 drivers/net/ethernet/amd/xgbe/xgbe-main.c void xgbe_deconfig_netdev(struct xgbe_prv_data *pdata) pdata 424 drivers/net/ethernet/amd/xgbe/xgbe-main.c struct net_device *netdev = pdata->netdev; pdata 426 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_debugfs_exit(pdata); pdata 429 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_ptp_unregister(pdata); pdata 433 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->phy_if.phy_exit(pdata); pdata 440 drivers/net/ethernet/amd/xgbe/xgbe-main.c struct xgbe_prv_data *pdata = netdev_priv(netdev); pdata 447 drivers/net/ethernet/amd/xgbe/xgbe-main.c xgbe_debugfs_rename(pdata); pdata 129 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_module_eeprom(struct xgbe_prv_data *pdata, pdata 132 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!pdata->phy_if.phy_impl.module_eeprom) pdata 135 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.module_eeprom(pdata, eeprom, data); pdata 138 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_module_info(struct xgbe_prv_data *pdata, pdata 141 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!pdata->phy_if.phy_impl.module_info) pdata 144 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.module_info(pdata, modinfo); pdata 147 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_clear_interrupts(struct xgbe_prv_data *pdata) pdata 151 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_STAT); pdata 153 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_STAT, reg); pdata 156 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_disable_interrupts(struct xgbe_prv_data *pdata) pdata 160 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_CTRL); pdata 162 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_CTRL, reg); pdata 164 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_PCS_DIG_CTRL); pdata 166 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_PCS_DIG_CTRL, reg); pdata 169 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_enable_interrupts(struct xgbe_prv_data *pdata) pdata 173 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_PCS_DIG_CTRL); pdata 175 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_PCS_DIG_CTRL, reg); pdata 177 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_CTRL); pdata 179 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_CTRL, reg); pdata 182 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_clear_interrupts(struct xgbe_prv_data *pdata) pdata 184 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_INT, 0); pdata 187 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_disable_interrupts(struct xgbe_prv_data *pdata) pdata 189 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_INTMASK, 0); pdata 192 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_enable_interrupts(struct xgbe_prv_data *pdata) pdata 194 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_INTMASK, XGBE_AN_CL73_INT_MASK); pdata 197 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an_enable_interrupts(struct xgbe_prv_data *pdata) pdata 199 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_mode) { pdata 202 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_enable_interrupts(pdata); pdata 206 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_enable_interrupts(pdata); pdata 213 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an_clear_interrupts_all(struct xgbe_prv_data *pdata) pdata 215 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_clear_interrupts(pdata); pdata 216 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_clear_interrupts(pdata); pdata 219 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_kr_mode(struct xgbe_prv_data *pdata) pdata 222 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.set_speed(pdata, SPEED_10000); pdata 225 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KR); pdata 228 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_kx_2500_mode(struct xgbe_prv_data *pdata) pdata 231 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.set_speed(pdata, SPEED_2500); pdata 234 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KX_2500); pdata 237 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_kx_1000_mode(struct xgbe_prv_data *pdata) pdata 240 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.set_speed(pdata, SPEED_1000); pdata 243 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_KX_1000); pdata 246 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_sfi_mode(struct xgbe_prv_data *pdata) pdata 249 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->kr_redrv) pdata 250 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return xgbe_kr_mode(pdata); pdata 253 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.set_speed(pdata, SPEED_10000); pdata 256 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SFI); pdata 259 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_x_mode(struct xgbe_prv_data *pdata) pdata 262 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.set_speed(pdata, SPEED_1000); pdata 265 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_X); pdata 268 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_sgmii_1000_mode(struct xgbe_prv_data *pdata) pdata 271 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.set_speed(pdata, SPEED_1000); pdata 274 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SGMII_1000); pdata 277 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_sgmii_100_mode(struct xgbe_prv_data *pdata) pdata 280 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.set_speed(pdata, SPEED_1000); pdata 283 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.set_mode(pdata, XGBE_MODE_SGMII_100); pdata 286 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static enum xgbe_mode xgbe_cur_mode(struct xgbe_prv_data *pdata) pdata 288 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.cur_mode(pdata); pdata 291 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static bool xgbe_in_kr_mode(struct xgbe_prv_data *pdata) pdata 293 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return (xgbe_cur_mode(pdata) == XGBE_MODE_KR); pdata 296 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_change_mode(struct xgbe_prv_data *pdata, pdata 301 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_kx_1000_mode(pdata); pdata 304 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_kx_2500_mode(pdata); pdata 307 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_kr_mode(pdata); pdata 310 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_sgmii_100_mode(pdata); pdata 313 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_sgmii_1000_mode(pdata); pdata 316 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_x_mode(pdata); pdata 319 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_sfi_mode(pdata); pdata 324 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, pdata 329 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_switch_mode(struct xgbe_prv_data *pdata) pdata 331 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_change_mode(pdata, pdata->phy_if.phy_impl.switch_mode(pdata)); pdata 334 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static bool xgbe_set_mode(struct xgbe_prv_data *pdata, pdata 337 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (mode == xgbe_cur_mode(pdata)) pdata 340 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_change_mode(pdata, mode); pdata 345 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static bool xgbe_use_mode(struct xgbe_prv_data *pdata, pdata 348 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.use_mode(pdata, mode); pdata 351 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_set(struct xgbe_prv_data *pdata, bool enable, pdata 356 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_CTRL1); pdata 365 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_CTRL1, reg); pdata 368 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_restart(struct xgbe_prv_data *pdata) pdata 370 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_enable_interrupts(pdata); pdata 371 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_set(pdata, true, true); pdata 373 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL37 AN enabled/restarted\n"); pdata 376 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_disable(struct xgbe_prv_data *pdata) pdata 378 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_set(pdata, false, false); pdata 379 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_disable_interrupts(pdata); pdata 381 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL37 AN disabled\n"); pdata 384 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_set(struct xgbe_prv_data *pdata, bool enable, pdata 390 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL); pdata 392 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL, reg); pdata 395 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_CTRL1); pdata 404 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_CTRL1, reg); pdata 407 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_restart(struct xgbe_prv_data *pdata) pdata 409 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_enable_interrupts(pdata); pdata 410 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_set(pdata, true, true); pdata 412 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL73 AN enabled/restarted\n"); pdata 415 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_disable(struct xgbe_prv_data *pdata) pdata 417 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_set(pdata, false, false); pdata 418 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_disable_interrupts(pdata); pdata 420 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_start = 0; pdata 422 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL73 AN disabled\n"); pdata 425 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an_restart(struct xgbe_prv_data *pdata) pdata 427 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.an_pre) pdata 428 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_pre(pdata); pdata 430 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_mode) { pdata 433 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_restart(pdata); pdata 437 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_restart(pdata); pdata 444 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an_disable(struct xgbe_prv_data *pdata) pdata 446 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.an_post) pdata 447 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_post(pdata); pdata 449 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_mode) { pdata 452 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_disable(pdata); pdata 456 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_disable(pdata); pdata 463 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an_disable_all(struct xgbe_prv_data *pdata) pdata 465 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_disable(pdata); pdata 466 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_disable(pdata); pdata 469 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static enum xgbe_an xgbe_an73_tx_training(struct xgbe_prv_data *pdata, pdata 477 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!xgbe_in_kr_mode(pdata)) pdata 481 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 2); pdata 482 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 2); pdata 484 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_FECCTRL); pdata 487 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg |= pdata->fec_ability; pdata 489 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_FECCTRL, reg); pdata 492 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.kr_training_pre) pdata 493 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.kr_training_pre(pdata); pdata 495 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL); pdata 498 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL, reg); pdata 500 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, pdata 503 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.kr_training_post) pdata 504 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.kr_training_post(pdata); pdata 509 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static enum xgbe_an xgbe_an73_tx_xnp(struct xgbe_prv_data *pdata, pdata 519 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_XNP + 2, 0); pdata 520 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_XNP + 1, 0); pdata 521 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_XNP, msg); pdata 526 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static enum xgbe_an xgbe_an73_rx_bpa(struct xgbe_prv_data *pdata, pdata 533 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 1); pdata 536 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c link_support = xgbe_in_kr_mode(pdata) ? 0x80 : 0x20; pdata 541 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE); pdata 542 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA); pdata 546 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ? xgbe_an73_tx_xnp(pdata, state) pdata 547 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c : xgbe_an73_tx_training(pdata, state); pdata 550 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static enum xgbe_an xgbe_an73_rx_xnp(struct xgbe_prv_data *pdata, pdata 556 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_XNP); pdata 557 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPX); pdata 561 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ? xgbe_an73_tx_xnp(pdata, state) pdata 562 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c : xgbe_an73_tx_training(pdata, state); pdata 565 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static enum xgbe_an xgbe_an73_page_received(struct xgbe_prv_data *pdata) pdata 571 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!pdata->an_start) { pdata 572 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_start = jiffies; pdata 574 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c an_timeout = pdata->an_start + pdata 578 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->kr_state = XGBE_RX_BPA; pdata 579 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->kx_state = XGBE_RX_BPA; pdata 581 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_start = jiffies; pdata 583 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, pdata 588 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c state = xgbe_in_kr_mode(pdata) ? &pdata->kr_state pdata 589 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c : &pdata->kx_state; pdata 593 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = xgbe_an73_rx_bpa(pdata, state); pdata 597 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = xgbe_an73_rx_xnp(pdata, state); pdata 607 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static enum xgbe_an xgbe_an73_incompat_link(struct xgbe_prv_data *pdata) pdata 609 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 612 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (xgbe_in_kr_mode(pdata)) { pdata 613 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->kr_state = XGBE_RX_ERROR; pdata 619 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->kx_state != XGBE_RX_BPA) pdata 622 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->kx_state = XGBE_RX_ERROR; pdata 627 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->kr_state != XGBE_RX_BPA) pdata 631 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_disable(pdata); pdata 633 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_switch_mode(pdata); pdata 635 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_restart(pdata); pdata 640 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_isr(struct xgbe_prv_data *pdata) pdata 645 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_disable_interrupts(pdata); pdata 648 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_STAT); pdata 649 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int = reg & XGBE_AN_CL37_INT_MASK; pdata 650 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_status = reg & ~XGBE_AN_CL37_INT_MASK; pdata 652 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_int) { pdata 655 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_STAT, reg); pdata 657 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c queue_work(pdata->an_workqueue, &pdata->an_irq_work); pdata 660 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_enable_interrupts(pdata); pdata 663 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->vdata->irq_reissue_support) pdata 664 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XP_IOWRITE(pdata, XP_INT_REISSUE_EN, 1 << 3); pdata 668 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_isr(struct xgbe_prv_data *pdata) pdata 671 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_disable_interrupts(pdata); pdata 674 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_INT); pdata 676 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_int) { pdata 678 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_INT, ~pdata->an_int); pdata 680 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c queue_work(pdata->an_workqueue, &pdata->an_irq_work); pdata 683 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_enable_interrupts(pdata); pdata 686 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->vdata->irq_reissue_support) pdata 687 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XP_IOWRITE(pdata, XP_INT_REISSUE_EN, 1 << 3); pdata 693 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct xgbe_prv_data *pdata = (struct xgbe_prv_data *)data; pdata 695 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, intr, pdata->netdev, "AN interrupt received\n"); pdata 697 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_mode) { pdata 700 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_isr(pdata); pdata 704 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_isr(pdata); pdata 713 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct xgbe_prv_data *pdata = (struct xgbe_prv_data *)data; pdata 715 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->isr_as_tasklet) pdata 716 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c tasklet_schedule(&pdata->tasklet_an); pdata 718 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_isr_task((unsigned long)pdata); pdata 723 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static irqreturn_t xgbe_an_combined_isr(struct xgbe_prv_data *pdata) pdata 725 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_isr_task((unsigned long)pdata); pdata 732 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct xgbe_prv_data *pdata = container_of(work, pdata 739 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c flush_work(&pdata->an_work); pdata 740 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c queue_work(pdata->an_workqueue, &pdata->an_work); pdata 763 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_state_machine(struct xgbe_prv_data *pdata) pdata 765 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enum xgbe_an cur_state = pdata->an_state; pdata 767 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!pdata->an_int) pdata 770 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_int & XGBE_AN_CL37_INT_CMPLT) { pdata 771 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_COMPLETE; pdata 772 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int &= ~XGBE_AN_CL37_INT_CMPLT; pdata 775 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if ((pdata->an_mode == XGBE_AN_MODE_CL37_SGMII) && pdata 776 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c !(pdata->an_status & XGBE_SGMII_AN_LINK_STATUS)) pdata 777 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_NO_LINK; pdata 780 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL37 AN %s\n", pdata 781 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_state_as_string(pdata->an_state)); pdata 783 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c cur_state = pdata->an_state; pdata 785 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_state) { pdata 790 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, pdata 798 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_ERROR; pdata 801 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_state == XGBE_AN_ERROR) { pdata 802 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netdev_err(pdata->netdev, pdata 806 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int = 0; pdata 807 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_clear_interrupts(pdata); pdata 810 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_state >= XGBE_AN_COMPLETE) { pdata 811 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_result = pdata->an_state; pdata 812 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_READY; pdata 814 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.an_post) pdata 815 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_post(pdata); pdata 817 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL37 AN result: %s\n", pdata 818 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_state_as_string(pdata->an_result)); pdata 821 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_enable_interrupts(pdata); pdata 824 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_state_machine(struct xgbe_prv_data *pdata) pdata 826 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enum xgbe_an cur_state = pdata->an_state; pdata 828 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!pdata->an_int) pdata 832 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_int & XGBE_AN_CL73_PG_RCV) { pdata 833 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_PAGE_RECEIVED; pdata 834 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int &= ~XGBE_AN_CL73_PG_RCV; pdata 835 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (pdata->an_int & XGBE_AN_CL73_INC_LINK) { pdata 836 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_INCOMPAT_LINK; pdata 837 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int &= ~XGBE_AN_CL73_INC_LINK; pdata 838 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (pdata->an_int & XGBE_AN_CL73_INT_CMPLT) { pdata 839 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_COMPLETE; pdata 840 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int &= ~XGBE_AN_CL73_INT_CMPLT; pdata 842 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_ERROR; pdata 846 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL73 AN %s\n", pdata 847 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_state_as_string(pdata->an_state)); pdata 849 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c cur_state = pdata->an_state; pdata 851 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_state) { pdata 853 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_supported = 0; pdata 857 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = xgbe_an73_page_received(pdata); pdata 858 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_supported++; pdata 862 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_supported = 0; pdata 863 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->parallel_detect = 0; pdata 864 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = xgbe_an73_incompat_link(pdata); pdata 868 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->parallel_detect = pdata->an_supported ? 0 : 1; pdata 869 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "%s successful\n", pdata 870 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_supported ? "Auto negotiation" pdata 878 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_ERROR; pdata 881 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_state == XGBE_AN_NO_LINK) { pdata 882 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int = 0; pdata 883 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_clear_interrupts(pdata); pdata 884 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (pdata->an_state == XGBE_AN_ERROR) { pdata 885 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netdev_err(pdata->netdev, pdata 889 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_int = 0; pdata 890 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_clear_interrupts(pdata); pdata 893 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_state >= XGBE_AN_COMPLETE) { pdata 894 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_result = pdata->an_state; pdata 895 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_READY; pdata 896 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->kr_state = XGBE_RX_BPA; pdata 897 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->kx_state = XGBE_RX_BPA; pdata 898 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_start = 0; pdata 900 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_if.phy_impl.an_post) pdata 901 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_post(pdata); pdata 903 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL73 AN result: %s\n", pdata 904 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_state_as_string(pdata->an_result)); pdata 907 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (cur_state != pdata->an_state) pdata 910 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->an_int) pdata 913 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_enable_interrupts(pdata); pdata 918 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct xgbe_prv_data *pdata = container_of(work, pdata 922 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mutex_lock(&pdata->an_mutex); pdata 924 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_mode) { pdata 927 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_state_machine(pdata); pdata 931 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_state_machine(pdata); pdata 938 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->vdata->irq_reissue_support) pdata 939 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XP_IOWRITE(pdata, XP_INT_REISSUE_EN, 1 << 3); pdata 941 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mutex_unlock(&pdata->an_mutex); pdata 944 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an37_init(struct xgbe_prv_data *pdata) pdata 949 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_advertising(pdata, &lks); pdata 952 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_ADVERTISE); pdata 967 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_ADVERTISE, reg); pdata 970 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_CTRL); pdata 974 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_mode) { pdata 987 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_CTRL, reg); pdata 989 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL37 AN (%s) initialized\n", pdata 990 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c (pdata->an_mode == XGBE_AN_MODE_CL37) ? "BaseX" : "SGMII"); pdata 993 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an73_init(struct xgbe_prv_data *pdata) pdata 998 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.an_advertising(pdata, &lks); pdata 1001 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 2); pdata 1007 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 2, reg); pdata 1010 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 1); pdata 1022 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 1, reg); pdata 1025 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE); pdata 1039 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE, reg); pdata 1041 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "CL73 AN initialized\n"); pdata 1044 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_an_init(struct xgbe_prv_data *pdata) pdata 1047 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_mode = pdata->phy_if.phy_impl.an_mode(pdata); pdata 1048 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (pdata->an_mode) { pdata 1051 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an73_init(pdata); pdata 1055 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an37_init(pdata); pdata 1062 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static const char *xgbe_phy_fc_string(struct xgbe_prv_data *pdata) pdata 1064 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->tx_pause && pdata->rx_pause) pdata 1066 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c else if (pdata->rx_pause) pdata 1068 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c else if (pdata->tx_pause) pdata 1092 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_phy_print_status(struct xgbe_prv_data *pdata) pdata 1094 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy.link) pdata 1095 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netdev_info(pdata->netdev, pdata 1097 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_speed_string(pdata->phy.speed), pdata 1098 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.duplex == DUPLEX_FULL ? "Full" : "Half", pdata 1099 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_fc_string(pdata)); pdata 1101 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netdev_info(pdata->netdev, "Link is Down\n"); pdata 1104 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_phy_adjust_link(struct xgbe_prv_data *pdata) pdata 1108 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy.link) { pdata 1110 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->pause_autoneg = pdata->phy.pause_autoneg; pdata 1112 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->tx_pause != pdata->phy.tx_pause) { pdata 1114 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->tx_pause = pdata->phy.tx_pause; pdata 1115 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.config_tx_flow_control(pdata); pdata 1118 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->rx_pause != pdata->phy.rx_pause) { pdata 1120 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->rx_pause = pdata->phy.rx_pause; pdata 1121 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->hw_if.config_rx_flow_control(pdata); pdata 1125 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_speed != pdata->phy.speed) { pdata 1127 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_speed = pdata->phy.speed; pdata 1130 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy_link != pdata->phy.link) { pdata 1132 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_link = pdata->phy.link; pdata 1134 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (pdata->phy_link) { pdata 1136 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_link = 0; pdata 1137 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_speed = SPEED_UNKNOWN; pdata 1140 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (new_state && netif_msg_link(pdata)) pdata 1141 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_print_status(pdata); pdata 1144 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static bool xgbe_phy_valid_speed(struct xgbe_prv_data *pdata, int speed) pdata 1146 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.valid_speed(pdata, speed); pdata 1149 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_config_fixed(struct xgbe_prv_data *pdata) pdata 1153 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "fixed PHY configuration\n"); pdata 1156 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_disable(pdata); pdata 1159 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mode = pdata->phy_if.phy_impl.get_mode(pdata, pdata->phy.speed); pdata 1175 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy.duplex != DUPLEX_FULL) pdata 1178 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, mode); pdata 1183 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int __xgbe_phy_config_aneg(struct xgbe_prv_data *pdata, bool set_mode) pdata 1187 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mutex_lock(&pdata->an_mutex); pdata 1189 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c set_bit(XGBE_LINK_INIT, &pdata->dev_state); pdata 1190 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->link_check = jiffies; pdata 1192 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = pdata->phy_if.phy_impl.an_config(pdata); pdata 1196 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy.autoneg != AUTONEG_ENABLE) { pdata 1197 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = xgbe_phy_config_fixed(pdata); pdata 1198 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (ret || !pdata->kr_redrv) pdata 1201 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "AN redriver support\n"); pdata 1203 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "AN PHY configuration\n"); pdata 1207 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c disable_irq(pdata->an_irq); pdata 1211 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (xgbe_use_mode(pdata, XGBE_MODE_KR)) { pdata 1212 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, XGBE_MODE_KR); pdata 1213 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_KX_2500)) { pdata 1214 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, XGBE_MODE_KX_2500); pdata 1215 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_KX_1000)) { pdata 1216 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, XGBE_MODE_KX_1000); pdata 1217 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_SFI)) { pdata 1218 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, XGBE_MODE_SFI); pdata 1219 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_X)) { pdata 1220 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, XGBE_MODE_X); pdata 1221 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_SGMII_1000)) { pdata 1222 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, XGBE_MODE_SGMII_1000); pdata 1223 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_SGMII_100)) { pdata 1224 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, XGBE_MODE_SGMII_100); pdata 1226 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enable_irq(pdata->an_irq); pdata 1233 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_disable_all(pdata); pdata 1236 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_clear_interrupts_all(pdata); pdata 1238 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_result = XGBE_AN_READY; pdata 1239 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->an_state = XGBE_AN_READY; pdata 1240 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->kr_state = XGBE_RX_BPA; pdata 1241 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->kx_state = XGBE_RX_BPA; pdata 1244 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enable_irq(pdata->an_irq); pdata 1246 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_init(pdata); pdata 1247 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_restart(pdata); pdata 1251 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c set_bit(XGBE_LINK_ERR, &pdata->dev_state); pdata 1253 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c clear_bit(XGBE_LINK_ERR, &pdata->dev_state); pdata 1255 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mutex_unlock(&pdata->an_mutex); pdata 1260 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_config_aneg(struct xgbe_prv_data *pdata) pdata 1262 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return __xgbe_phy_config_aneg(pdata, true); pdata 1265 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_reconfig_aneg(struct xgbe_prv_data *pdata) pdata 1267 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return __xgbe_phy_config_aneg(pdata, false); pdata 1270 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static bool xgbe_phy_aneg_done(struct xgbe_prv_data *pdata) pdata 1272 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return (pdata->an_result == XGBE_AN_COMPLETE); pdata 1275 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_check_link_timeout(struct xgbe_prv_data *pdata) pdata 1279 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c link_timeout = pdata->link_check + (XGBE_LINK_TIMEOUT * HZ); pdata 1281 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "AN link timeout\n"); pdata 1282 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_config_aneg(pdata); pdata 1286 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static enum xgbe_mode xgbe_phy_status_aneg(struct xgbe_prv_data *pdata) pdata 1288 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.an_outcome(pdata); pdata 1291 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_phy_status_result(struct xgbe_prv_data *pdata) pdata 1293 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1298 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if ((pdata->phy.autoneg != AUTONEG_ENABLE) || pdata->parallel_detect) pdata 1299 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mode = xgbe_cur_mode(pdata); pdata 1301 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mode = xgbe_phy_status_aneg(pdata); pdata 1305 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.speed = SPEED_100; pdata 1310 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.speed = SPEED_1000; pdata 1313 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.speed = SPEED_2500; pdata 1317 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.speed = SPEED_10000; pdata 1321 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.speed = SPEED_UNKNOWN; pdata 1324 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.duplex = DUPLEX_FULL; pdata 1326 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (xgbe_set_mode(pdata, mode) && pdata->an_again) pdata 1327 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_reconfig_aneg(pdata); pdata 1330 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_phy_status(struct xgbe_prv_data *pdata) pdata 1335 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (test_bit(XGBE_LINK_ERR, &pdata->dev_state)) { pdata 1336 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_carrier_off(pdata->netdev); pdata 1338 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.link = 0; pdata 1342 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c link_aneg = (pdata->phy.autoneg == AUTONEG_ENABLE); pdata 1344 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.link = pdata->phy_if.phy_impl.link_status(pdata, pdata 1347 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_config_aneg(pdata); pdata 1351 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->phy.link) { pdata 1352 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (link_aneg && !xgbe_phy_aneg_done(pdata)) { pdata 1353 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_check_link_timeout(pdata); pdata 1357 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_status_result(pdata); pdata 1359 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) pdata 1360 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c clear_bit(XGBE_LINK_INIT, &pdata->dev_state); pdata 1362 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_carrier_on(pdata->netdev); pdata 1364 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (test_bit(XGBE_LINK_INIT, &pdata->dev_state)) { pdata 1365 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_check_link_timeout(pdata); pdata 1371 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_status_result(pdata); pdata 1373 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_carrier_off(pdata->netdev); pdata 1377 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_adjust_link(pdata); pdata 1380 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_phy_stop(struct xgbe_prv_data *pdata) pdata 1382 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "stopping PHY\n"); pdata 1384 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (!pdata->phy_started) pdata 1388 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_started = 0; pdata 1391 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_disable_all(pdata); pdata 1393 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->dev_irq != pdata->an_irq) pdata 1394 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c devm_free_irq(pdata->dev, pdata->an_irq, pdata); pdata 1396 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.stop(pdata); pdata 1398 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.link = 0; pdata 1399 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_carrier_off(pdata->netdev); pdata 1401 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_phy_adjust_link(pdata); pdata 1404 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_start(struct xgbe_prv_data *pdata) pdata 1406 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct net_device *netdev = pdata->netdev; pdata 1409 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c netif_dbg(pdata, link, pdata->netdev, "starting PHY\n"); pdata 1411 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = pdata->phy_if.phy_impl.start(pdata); pdata 1416 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->dev_irq != pdata->an_irq) { pdata 1417 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c tasklet_init(&pdata->tasklet_an, xgbe_an_isr_task, pdata 1418 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c (unsigned long)pdata); pdata 1420 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = devm_request_irq(pdata->dev, pdata->an_irq, pdata 1421 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_isr, 0, pdata->an_name, pdata 1422 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata); pdata 1432 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (xgbe_use_mode(pdata, XGBE_MODE_KR)) { pdata 1433 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_kr_mode(pdata); pdata 1434 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_KX_2500)) { pdata 1435 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_kx_2500_mode(pdata); pdata 1436 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_KX_1000)) { pdata 1437 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_kx_1000_mode(pdata); pdata 1438 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_SFI)) { pdata 1439 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_sfi_mode(pdata); pdata 1440 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_X)) { pdata 1441 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_x_mode(pdata); pdata 1442 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_SGMII_1000)) { pdata 1443 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_sgmii_1000_mode(pdata); pdata 1444 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c } else if (xgbe_use_mode(pdata, XGBE_MODE_SGMII_100)) { pdata 1445 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_sgmii_100_mode(pdata); pdata 1452 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_started = 1; pdata 1454 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_init(pdata); pdata 1455 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_enable_interrupts(pdata); pdata 1457 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return xgbe_phy_config_aneg(pdata); pdata 1460 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->dev_irq != pdata->an_irq) pdata 1461 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c devm_free_irq(pdata->dev, pdata->an_irq, pdata); pdata 1464 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.stop(pdata); pdata 1469 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_reset(struct xgbe_prv_data *pdata) pdata 1473 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = pdata->phy_if.phy_impl.reset(pdata); pdata 1478 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_disable_all(pdata); pdata 1481 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_an_clear_interrupts_all(pdata); pdata 1486 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_dump_phy_registers(struct xgbe_prv_data *pdata) pdata 1488 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct device *dev = pdata->dev; pdata 1493 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1)); pdata 1495 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_STAT1)); pdata 1497 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_DEVID1)); pdata 1499 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_DEVID2)); pdata 1501 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_DEVS1)); pdata 1503 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_DEVS2)); pdata 1506 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_CTRL1)); pdata 1508 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_STAT1)); pdata 1511 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE)); pdata 1514 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 1)); pdata 1517 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 2)); pdata 1520 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_COMP_STAT)); pdata 1525 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_best_advertised_speed(struct xgbe_prv_data *pdata) pdata 1527 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1547 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static void xgbe_phy_exit(struct xgbe_prv_data *pdata) pdata 1549 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy_if.phy_impl.exit(pdata); pdata 1552 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c static int xgbe_phy_init(struct xgbe_prv_data *pdata) pdata 1554 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1557 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mutex_init(&pdata->an_mutex); pdata 1558 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c INIT_WORK(&pdata->an_irq_work, xgbe_an_irq_work); pdata 1559 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c INIT_WORK(&pdata->an_work, xgbe_an_state_machine); pdata 1560 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->mdio_mmd = MDIO_MMD_PCS; pdata 1563 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->fec_ability = XMDIO_READ(pdata, MDIO_MMD_PMAPMD, pdata 1565 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->fec_ability &= (MDIO_PMA_10GBR_FECABLE_ABLE | pdata 1569 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c ret = pdata->phy_if.phy_impl.init(pdata); pdata 1576 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.address = 0; pdata 1579 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.autoneg = AUTONEG_ENABLE; pdata 1580 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.speed = SPEED_UNKNOWN; pdata 1581 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.duplex = DUPLEX_UNKNOWN; pdata 1583 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.autoneg = AUTONEG_DISABLE; pdata 1584 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.speed = xgbe_phy_best_advertised_speed(pdata); pdata 1585 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.duplex = DUPLEX_FULL; pdata 1588 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.link = 0; pdata 1590 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.pause_autoneg = pdata->pause_autoneg; pdata 1591 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.tx_pause = pdata->tx_pause; pdata 1592 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c pdata->phy.rx_pause = pdata->rx_pause; pdata 1598 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->rx_pause) { pdata 1603 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (pdata->tx_pause) { pdata 1611 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (netif_msg_drv(pdata)) pdata 1612 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_dump_phy_registers(pdata); pdata 125 drivers/net/ethernet/amd/xgbe/xgbe-pci.c static int xgbe_config_multi_msi(struct xgbe_prv_data *pdata) pdata 132 drivers/net/ethernet/amd/xgbe/xgbe-pci.c vector_count += max(pdata->rx_ring_count, pdata 133 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_ring_count); pdata 135 drivers/net/ethernet/amd/xgbe/xgbe-pci.c ret = pci_alloc_irq_vectors(pdata->pcidev, XGBE_MSI_MIN_COUNT, pdata 138 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_info(pdata->dev, "multi MSI/MSI-X enablement failed\n"); pdata 142 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->isr_as_tasklet = 1; pdata 143 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->irq_count = ret; pdata 145 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->dev_irq = pci_irq_vector(pdata->pcidev, 0); pdata 146 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->ecc_irq = pci_irq_vector(pdata->pcidev, 1); pdata 147 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->i2c_irq = pci_irq_vector(pdata->pcidev, 2); pdata 148 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->an_irq = pci_irq_vector(pdata->pcidev, 3); pdata 151 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->channel_irq[j] = pci_irq_vector(pdata->pcidev, i); pdata 152 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->channel_irq_count = j; pdata 154 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->per_channel_irq = 1; pdata 155 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->channel_irq_mode = XGBE_IRQ_MODE_LEVEL; pdata 157 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) pdata 158 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(pdata->dev, "multi %s interrupts enabled\n", pdata 159 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->pcidev->msix_enabled ? "MSI-X" : "MSI"); pdata 164 drivers/net/ethernet/amd/xgbe/xgbe-pci.c static int xgbe_config_irqs(struct xgbe_prv_data *pdata) pdata 168 drivers/net/ethernet/amd/xgbe/xgbe-pci.c ret = xgbe_config_multi_msi(pdata); pdata 172 drivers/net/ethernet/amd/xgbe/xgbe-pci.c ret = pci_alloc_irq_vectors(pdata->pcidev, 1, 1, pdata 175 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_info(pdata->dev, "single IRQ enablement failed\n"); pdata 179 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->isr_as_tasklet = pdata->pcidev->msi_enabled ? 1 : 0; pdata 180 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->irq_count = 1; pdata 181 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->channel_irq_count = 1; pdata 183 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->dev_irq = pci_irq_vector(pdata->pcidev, 0); pdata 184 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->ecc_irq = pci_irq_vector(pdata->pcidev, 0); pdata 185 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->i2c_irq = pci_irq_vector(pdata->pcidev, 0); pdata 186 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->an_irq = pci_irq_vector(pdata->pcidev, 0); pdata 188 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) pdata 189 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(pdata->dev, "single %s interrupt enabled\n", pdata 190 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->pcidev->msi_enabled ? "MSI" : "legacy"); pdata 193 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) { pdata 196 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(pdata->dev, " dev irq=%d\n", pdata->dev_irq); pdata 197 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(pdata->dev, " ecc irq=%d\n", pdata->ecc_irq); pdata 198 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(pdata->dev, " i2c irq=%d\n", pdata->i2c_irq); pdata 199 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(pdata->dev, " an irq=%d\n", pdata->an_irq); pdata 200 drivers/net/ethernet/amd/xgbe/xgbe-pci.c for (i = 0; i < pdata->channel_irq_count; i++) pdata 201 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(pdata->dev, " dma%u irq=%d\n", pdata 202 drivers/net/ethernet/amd/xgbe/xgbe-pci.c i, pdata->channel_irq[i]); pdata 210 drivers/net/ethernet/amd/xgbe/xgbe-pci.c struct xgbe_prv_data *pdata; pdata 219 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata = xgbe_alloc_pdata(dev); pdata 220 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (IS_ERR(pdata)) { pdata 221 drivers/net/ethernet/amd/xgbe/xgbe-pci.c ret = PTR_ERR(pdata); pdata 225 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->pcidev = pdev; pdata 226 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pci_set_drvdata(pdev, pdata); pdata 229 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->vdata = (struct xgbe_version_data *)id->driver_data; pdata 252 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xgmac_regs = iomap_table[XGBE_XGMAC_BAR]; pdata 253 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (!pdata->xgmac_regs) { pdata 258 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xprop_regs = pdata->xgmac_regs + XGBE_MAC_PROP_OFFSET; pdata 259 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xi2c_regs = pdata->xgmac_regs + XGBE_I2C_CTRL_OFFSET; pdata 260 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) { pdata 261 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "xgmac_regs = %p\n", pdata->xgmac_regs); pdata 262 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "xprop_regs = %p\n", pdata->xprop_regs); pdata 263 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "xi2c_regs = %p\n", pdata->xi2c_regs); pdata 266 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_regs = iomap_table[XGBE_XPCS_BAR]; pdata 267 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (!pdata->xpcs_regs) { pdata 272 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) pdata 273 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "xpcs_regs = %p\n", pdata->xpcs_regs); pdata 279 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_def_reg = PCS_V2_RV_WINDOW_DEF; pdata 280 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_sel_reg = PCS_V2_RV_WINDOW_SELECT; pdata 282 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_def_reg = PCS_V2_WINDOW_DEF; pdata 283 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_sel_reg = PCS_V2_WINDOW_SELECT; pdata 288 drivers/net/ethernet/amd/xgbe/xgbe-pci.c reg = XPCS32_IOREAD(pdata, pdata->xpcs_window_def_reg); pdata 289 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window = XPCS_GET_BITS(reg, PCS_V2_WINDOW_DEF, OFFSET); pdata 290 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window <<= 6; pdata 291 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_size = XPCS_GET_BITS(reg, PCS_V2_WINDOW_DEF, SIZE); pdata 292 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_size = 1 << (pdata->xpcs_window_size + 7); pdata 293 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_mask = pdata->xpcs_window_size - 1; pdata 294 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) { pdata 296 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_def_reg); pdata 298 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_sel_reg); pdata 300 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window); pdata 302 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_size); pdata 304 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->xpcs_window_mask); pdata 310 drivers/net/ethernet/amd/xgbe/xgbe-pci.c XP_IOWRITE(pdata, XP_INT_EN, 0x1fffff); pdata 313 drivers/net/ethernet/amd/xgbe/xgbe-pci.c ma_lo = XP_IOREAD(pdata, XP_MAC_ADDR_LO); pdata 314 drivers/net/ethernet/amd/xgbe/xgbe-pci.c ma_hi = XP_IOREAD(pdata, XP_MAC_ADDR_HI); pdata 315 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->mac_addr[0] = ma_lo & 0xff; pdata 316 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->mac_addr[1] = (ma_lo >> 8) & 0xff; pdata 317 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->mac_addr[2] = (ma_lo >> 16) & 0xff; pdata 318 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->mac_addr[3] = (ma_lo >> 24) & 0xff; pdata 319 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->mac_addr[4] = ma_hi & 0xff; pdata 320 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->mac_addr[5] = (ma_hi >> 8) & 0xff; pdata 322 drivers/net/ethernet/amd/xgbe/xgbe-pci.c !is_valid_ether_addr(pdata->mac_addr)) { pdata 329 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->sysclk_rate = XGBE_V2_DMA_CLOCK_FREQ; pdata 330 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->ptpclk_rate = XGBE_V2_PTP_CLOCK_FREQ; pdata 333 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->coherent = 1; pdata 334 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->arcr = XGBE_DMA_PCI_ARCR; pdata 335 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->awcr = XGBE_DMA_PCI_AWCR; pdata 336 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->awarcr = XGBE_DMA_PCI_AWARCR; pdata 339 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->pp0 = XP_IOREAD(pdata, XP_PROP_0); pdata 340 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->pp1 = XP_IOREAD(pdata, XP_PROP_1); pdata 341 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->pp2 = XP_IOREAD(pdata, XP_PROP_2); pdata 342 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->pp3 = XP_IOREAD(pdata, XP_PROP_3); pdata 343 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->pp4 = XP_IOREAD(pdata, XP_PROP_4); pdata 344 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) { pdata 345 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "port property 0 = %#010x\n", pdata->pp0); pdata 346 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "port property 1 = %#010x\n", pdata->pp1); pdata 347 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "port property 2 = %#010x\n", pdata->pp2); pdata 348 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "port property 3 = %#010x\n", pdata->pp3); pdata 349 drivers/net/ethernet/amd/xgbe/xgbe-pci.c dev_dbg(dev, "port property 4 = %#010x\n", pdata->pp4); pdata 353 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_max_channel_count = XP_GET_BITS(pdata->pp1, XP_PROP_1, pdata 355 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->rx_max_channel_count = XP_GET_BITS(pdata->pp1, XP_PROP_1, pdata 357 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_max_q_count = XP_GET_BITS(pdata->pp1, XP_PROP_1, pdata 359 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->rx_max_q_count = XP_GET_BITS(pdata->pp1, XP_PROP_1, pdata 361 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) { pdata 363 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_max_channel_count, pdata 364 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->rx_max_channel_count); pdata 366 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_max_q_count, pdata->rx_max_q_count); pdata 370 drivers/net/ethernet/amd/xgbe/xgbe-pci.c xgbe_set_counts(pdata); pdata 373 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_max_fifo_size = XP_GET_BITS(pdata->pp2, XP_PROP_2, pdata 375 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_max_fifo_size *= 16384; pdata 376 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_max_fifo_size = min(pdata->tx_max_fifo_size, pdata 377 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->vdata->tx_max_fifo_size); pdata 378 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->rx_max_fifo_size = XP_GET_BITS(pdata->pp2, XP_PROP_2, pdata 380 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->rx_max_fifo_size *= 16384; pdata 381 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->rx_max_fifo_size = min(pdata->rx_max_fifo_size, pdata 382 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->vdata->rx_max_fifo_size); pdata 383 drivers/net/ethernet/amd/xgbe/xgbe-pci.c if (netif_msg_probe(pdata)) pdata 385 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->tx_max_fifo_size, pdata->rx_max_fifo_size); pdata 388 drivers/net/ethernet/amd/xgbe/xgbe-pci.c ret = xgbe_config_irqs(pdata); pdata 393 drivers/net/ethernet/amd/xgbe/xgbe-pci.c ret = xgbe_config_netdev(pdata); pdata 397 drivers/net/ethernet/amd/xgbe/xgbe-pci.c netdev_notice(pdata->netdev, "net device enabled\n"); pdata 402 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pci_free_irq_vectors(pdata->pcidev); pdata 405 drivers/net/ethernet/amd/xgbe/xgbe-pci.c xgbe_free_pdata(pdata); pdata 415 drivers/net/ethernet/amd/xgbe/xgbe-pci.c struct xgbe_prv_data *pdata = pci_get_drvdata(pdev); pdata 417 drivers/net/ethernet/amd/xgbe/xgbe-pci.c xgbe_deconfig_netdev(pdata); pdata 419 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pci_free_irq_vectors(pdata->pcidev); pdata 421 drivers/net/ethernet/amd/xgbe/xgbe-pci.c xgbe_free_pdata(pdata); pdata 427 drivers/net/ethernet/amd/xgbe/xgbe-pci.c struct xgbe_prv_data *pdata = pci_get_drvdata(pdev); pdata 428 drivers/net/ethernet/amd/xgbe/xgbe-pci.c struct net_device *netdev = pdata->netdev; pdata 434 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->lpm_ctrl = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); pdata 435 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->lpm_ctrl |= MDIO_CTRL1_LPOWER; pdata 436 drivers/net/ethernet/amd/xgbe/xgbe-pci.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, pdata->lpm_ctrl); pdata 443 drivers/net/ethernet/amd/xgbe/xgbe-pci.c struct xgbe_prv_data *pdata = pci_get_drvdata(pdev); pdata 444 drivers/net/ethernet/amd/xgbe/xgbe-pci.c struct net_device *netdev = pdata->netdev; pdata 447 drivers/net/ethernet/amd/xgbe/xgbe-pci.c XP_IOWRITE(pdata, XP_INT_EN, 0x1fffff); pdata 449 drivers/net/ethernet/amd/xgbe/xgbe-pci.c pdata->lpm_ctrl &= ~MDIO_CTRL1_LPOWER; pdata 450 drivers/net/ethernet/amd/xgbe/xgbe-pci.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, pdata->lpm_ctrl); pdata 458 drivers/net/ethernet/amd/xgbe/xgbe-pci.c schedule_work(&pdata->restart_work); pdata 222 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_kr_training_pre(struct xgbe_prv_data *pdata) pdata 224 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR0_IOWRITE_BITS(pdata, SIR0_KR_RT_1, RESET, 1); pdata 227 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_kr_training_post(struct xgbe_prv_data *pdata) pdata 229 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR0_IOWRITE_BITS(pdata, SIR0_KR_RT_1, RESET, 0); pdata 232 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static enum xgbe_mode xgbe_phy_an_outcome(struct xgbe_prv_data *pdata) pdata 234 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 235 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 243 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE); pdata 244 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA); pdata 250 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (pdata->phy.pause_autoneg) { pdata 252 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c pdata->phy.tx_pause = 0; pdata 253 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c pdata->phy.rx_pause = 0; pdata 256 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c pdata->phy.tx_pause = 1; pdata 257 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c pdata->phy.rx_pause = 1; pdata 260 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c pdata->phy.rx_pause = 1; pdata 262 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c pdata->phy.tx_pause = 1; pdata 267 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 1); pdata 268 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 1); pdata 291 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 2); pdata 292 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 2); pdata 299 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_an_advertising(struct xgbe_prv_data *pdata, pdata 302 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct ethtool_link_ksettings *slks = &pdata->phy.lks; pdata 307 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static int xgbe_phy_an_config(struct xgbe_prv_data *pdata) pdata 313 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static enum xgbe_an_mode xgbe_phy_an_mode(struct xgbe_prv_data *pdata) pdata 318 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_pcs_power_cycle(struct xgbe_prv_data *pdata) pdata 322 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); pdata 325 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, reg); pdata 330 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, reg); pdata 333 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_start_ratechange(struct xgbe_prv_data *pdata) pdata 336 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, RATECHANGE, 1); pdata 339 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_complete_ratechange(struct xgbe_prv_data *pdata) pdata 345 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, RATECHANGE, 0); pdata 352 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c status = XSIR0_IOREAD(pdata, SIR0_STATUS); pdata 358 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c netif_dbg(pdata, link, pdata->netdev, "SerDes rx/tx not ready (%#hx)\n", pdata 363 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG6, RESETB_RXD, 0); pdata 364 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG6, RESETB_RXD, 1); pdata 367 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_kr_mode(struct xgbe_prv_data *pdata) pdata 369 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 373 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL2); pdata 376 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL2, reg); pdata 378 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); pdata 381 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, reg); pdata 383 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_pcs_power_cycle(pdata); pdata 386 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_start_ratechange(pdata); pdata 388 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, DATARATE, XGBE_SPEED_10000_RATE); pdata 389 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, WORDMODE, XGBE_SPEED_10000_WORD); pdata 390 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, PLLSEL, XGBE_SPEED_10000_PLL); pdata 392 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, CDR_RATE, pdata 394 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, TXAMP, pdata 396 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG20, BLWC_ENA, pdata 398 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG114, PQ_REG, pdata 400 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG129, RXDFE_CONFIG, pdata 402 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE(pdata, RXTX_REG22, pdata 405 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_complete_ratechange(pdata); pdata 407 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c netif_dbg(pdata, link, pdata->netdev, "10GbE KR mode set\n"); pdata 410 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_kx_2500_mode(struct xgbe_prv_data *pdata) pdata 412 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 416 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL2); pdata 419 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL2, reg); pdata 421 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); pdata 424 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, reg); pdata 426 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_pcs_power_cycle(pdata); pdata 429 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_start_ratechange(pdata); pdata 431 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, DATARATE, XGBE_SPEED_2500_RATE); pdata 432 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, WORDMODE, XGBE_SPEED_2500_WORD); pdata 433 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, PLLSEL, XGBE_SPEED_2500_PLL); pdata 435 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, CDR_RATE, pdata 437 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, TXAMP, pdata 439 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG20, BLWC_ENA, pdata 441 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG114, PQ_REG, pdata 443 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG129, RXDFE_CONFIG, pdata 445 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE(pdata, RXTX_REG22, pdata 448 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_complete_ratechange(pdata); pdata 450 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c netif_dbg(pdata, link, pdata->netdev, "2.5GbE KX mode set\n"); pdata 453 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_kx_1000_mode(struct xgbe_prv_data *pdata) pdata 455 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 459 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL2); pdata 462 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL2, reg); pdata 464 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); pdata 467 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, reg); pdata 469 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_pcs_power_cycle(pdata); pdata 472 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_start_ratechange(pdata); pdata 474 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, DATARATE, XGBE_SPEED_1000_RATE); pdata 475 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, WORDMODE, XGBE_SPEED_1000_WORD); pdata 476 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, PLLSEL, XGBE_SPEED_1000_PLL); pdata 478 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, CDR_RATE, pdata 480 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XSIR1_IOWRITE_BITS(pdata, SIR1_SPEED, TXAMP, pdata 482 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG20, BLWC_ENA, pdata 484 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG114, PQ_REG, pdata 486 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE_BITS(pdata, RXTX_REG129, RXDFE_CONFIG, pdata 488 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XRXTX_IOWRITE(pdata, RXTX_REG22, pdata 491 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_complete_ratechange(pdata); pdata 493 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c netif_dbg(pdata, link, pdata->netdev, "1GbE KX mode set\n"); pdata 496 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static enum xgbe_mode xgbe_phy_cur_mode(struct xgbe_prv_data *pdata) pdata 498 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 502 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL2); pdata 517 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static enum xgbe_mode xgbe_phy_switch_mode(struct xgbe_prv_data *pdata) pdata 519 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 523 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (xgbe_phy_cur_mode(pdata) == XGBE_MODE_KR) { pdata 535 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static enum xgbe_mode xgbe_phy_get_mode(struct xgbe_prv_data *pdata, pdata 538 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 554 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_set_mode(struct xgbe_prv_data *pdata, enum xgbe_mode mode) pdata 558 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_kx_1000_mode(pdata); pdata 561 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_kx_2500_mode(pdata); pdata 564 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c xgbe_phy_kr_mode(pdata); pdata 571 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static bool xgbe_phy_check_mode(struct xgbe_prv_data *pdata, pdata 574 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (pdata->phy.autoneg == AUTONEG_ENABLE) { pdata 579 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c cur_mode = xgbe_phy_get_mode(pdata, pdata->phy.speed); pdata 587 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static bool xgbe_phy_use_mode(struct xgbe_prv_data *pdata, enum xgbe_mode mode) pdata 589 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 593 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return xgbe_phy_check_mode(pdata, mode, pdata 596 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return xgbe_phy_check_mode(pdata, mode, pdata 599 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return xgbe_phy_check_mode(pdata, mode, pdata 606 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static bool xgbe_phy_valid_speed(struct xgbe_prv_data *pdata, int speed) pdata 608 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 626 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static int xgbe_phy_link_status(struct xgbe_prv_data *pdata, int *an_restart) pdata 635 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_STAT1); pdata 636 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_STAT1); pdata 641 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_stop(struct xgbe_prv_data *pdata) pdata 646 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static int xgbe_phy_start(struct xgbe_prv_data *pdata) pdata 652 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static int xgbe_phy_reset(struct xgbe_prv_data *pdata) pdata 657 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); pdata 659 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, reg); pdata 664 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); pdata 673 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_exit(struct xgbe_prv_data *pdata) pdata 678 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static int xgbe_phy_init(struct xgbe_prv_data *pdata) pdata 680 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 684 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data = devm_kzalloc(pdata->dev, sizeof(*phy_data), GFP_KERNEL); pdata 689 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ret = device_property_read_u32(pdata->phy_dev, XGBE_SPEEDSET_PROPERTY, pdata 692 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c dev_err(pdata->dev, "invalid %s property\n", pdata 702 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c dev_err(pdata->dev, "invalid %s property\n", pdata 708 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (device_property_present(pdata->phy_dev, XGBE_BLWC_PROPERTY)) { pdata 709 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ret = device_property_read_u32_array(pdata->phy_dev, pdata 714 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c dev_err(pdata->dev, "invalid %s property\n", pdata 723 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (device_property_present(pdata->phy_dev, XGBE_CDR_RATE_PROPERTY)) { pdata 724 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ret = device_property_read_u32_array(pdata->phy_dev, pdata 729 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c dev_err(pdata->dev, "invalid %s property\n", pdata 738 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (device_property_present(pdata->phy_dev, XGBE_PQ_SKEW_PROPERTY)) { pdata 739 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ret = device_property_read_u32_array(pdata->phy_dev, pdata 744 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c dev_err(pdata->dev, "invalid %s property\n", pdata 753 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (device_property_present(pdata->phy_dev, XGBE_TX_AMP_PROPERTY)) { pdata 754 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ret = device_property_read_u32_array(pdata->phy_dev, pdata 759 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c dev_err(pdata->dev, "invalid %s property\n", pdata 768 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (device_property_present(pdata->phy_dev, XGBE_DFE_CFG_PROPERTY)) { pdata 769 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ret = device_property_read_u32_array(pdata->phy_dev, pdata 774 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c dev_err(pdata->dev, "invalid %s property\n", pdata 783 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (device_property_present(pdata->phy_dev, XGBE_DFE_ENA_PROPERTY)) { pdata 784 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c ret = device_property_read_u32_array(pdata->phy_dev, pdata 789 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c dev_err(pdata->dev, "invalid %s property\n", pdata 814 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (pdata->fec_ability & MDIO_PMA_10GBR_FECABLE_ABLE) pdata 817 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c pdata->phy_data = phy_data; pdata 387 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_an_mode xgbe_phy_an_mode(struct xgbe_prv_data *pdata); pdata 389 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_i2c_xfer(struct xgbe_prv_data *pdata, pdata 392 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return pdata->i2c_if.i2c_xfer(pdata, i2c_op); pdata 395 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_redrv_write(struct xgbe_prv_data *pdata, unsigned int reg, pdata 398 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 426 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); pdata 440 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); pdata 449 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, pdata 457 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_i2c_write(struct xgbe_prv_data *pdata, unsigned int target, pdata 470 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); pdata 477 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_i2c_read(struct xgbe_prv_data *pdata, unsigned int target, pdata 491 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); pdata 506 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_xfer(pdata, &i2c_op); pdata 513 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_sfp_put_mux(struct xgbe_prv_data *pdata) pdata 515 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 529 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_i2c_xfer(pdata, &i2c_op); pdata 532 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_sfp_get_mux(struct xgbe_prv_data *pdata) pdata 534 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 548 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_i2c_xfer(pdata, &i2c_op); pdata 551 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_put_comm_ownership(struct xgbe_prv_data *pdata) pdata 556 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_get_comm_ownership(struct xgbe_prv_data *pdata) pdata 558 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 569 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_IOWRITE(pdata, XP_I2C_MUTEX, XGBE_MUTEX_RELEASE); pdata 570 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_IOWRITE(pdata, XP_MDIO_MUTEX, XGBE_MUTEX_RELEASE); pdata 580 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (XP_IOREAD(pdata, XP_I2C_MUTEX) || pdata 581 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_IOREAD(pdata, XP_MDIO_MUTEX)) { pdata 587 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_IOWRITE(pdata, XP_I2C_MUTEX, mutex_id); pdata 588 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_IOWRITE(pdata, XP_MDIO_MUTEX, mutex_id); pdata 595 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, "unable to obtain hardware mutexes\n"); pdata 600 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_mdio_mii_write(struct xgbe_prv_data *pdata, int addr, pdata 603 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 613 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return pdata->hw_if.write_ext_mii_regs(pdata, addr, reg, val); pdata 616 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_i2c_mii_write(struct xgbe_prv_data *pdata, int reg, u16 val) pdata 622 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_sfp_get_mux(pdata); pdata 630 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_write(pdata, XGBE_SFP_PHY_ADDRESS, pdata 633 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_put_mux(pdata); pdata 640 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_prv_data *pdata = mii->priv; pdata 641 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 644 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_get_comm_ownership(pdata); pdata 649 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_mii_write(pdata, reg, val); pdata 651 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_mdio_mii_write(pdata, addr, reg, val); pdata 655 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_put_comm_ownership(pdata); pdata 660 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_mdio_mii_read(struct xgbe_prv_data *pdata, int addr, pdata 663 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 673 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return pdata->hw_if.read_ext_mii_regs(pdata, addr, reg); pdata 676 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_i2c_mii_read(struct xgbe_prv_data *pdata, int reg) pdata 682 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_sfp_get_mux(pdata); pdata 687 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_read(pdata, XGBE_SFP_PHY_ADDRESS, pdata 693 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_put_mux(pdata); pdata 700 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_prv_data *pdata = mii->priv; pdata 701 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 704 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_get_comm_ownership(pdata); pdata 709 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_mii_read(pdata, reg); pdata 711 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_mdio_mii_read(pdata, addr, reg); pdata 715 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_put_comm_ownership(pdata); pdata 720 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_phy_settings(struct xgbe_prv_data *pdata) pdata 722 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 723 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 731 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.speed = SPEED_UNKNOWN; pdata 732 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.duplex = DUPLEX_UNKNOWN; pdata 733 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.autoneg = AUTONEG_ENABLE; pdata 734 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.pause_autoneg = AUTONEG_ENABLE; pdata 752 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.speed = SPEED_UNKNOWN; pdata 753 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.duplex = DUPLEX_UNKNOWN; pdata 754 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.autoneg = AUTONEG_ENABLE; pdata 755 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.pause_autoneg = AUTONEG_ENABLE; pdata 774 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.speed = SPEED_10000; pdata 775 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.duplex = DUPLEX_FULL; pdata 776 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.autoneg = AUTONEG_DISABLE; pdata 777 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.pause_autoneg = AUTONEG_DISABLE; pdata 801 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.speed = SPEED_UNKNOWN; pdata 802 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.duplex = DUPLEX_UNKNOWN; pdata 803 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.autoneg = AUTONEG_DISABLE; pdata 804 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.pause_autoneg = AUTONEG_DISABLE; pdata 846 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_free_phy_device(struct xgbe_prv_data *pdata) pdata 848 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 858 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_finisar_phy_quirks(struct xgbe_prv_data *pdata) pdata 861 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 893 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, pdata 899 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_belfuse_phy_quirks(struct xgbe_prv_data *pdata) pdata 902 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 915 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->an_again = 1; pdata 971 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, pdata 977 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_external_phy_quirks(struct xgbe_prv_data *pdata) pdata 979 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (xgbe_phy_belfuse_phy_quirks(pdata)) pdata 982 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (xgbe_phy_finisar_phy_quirks(pdata)) pdata 986 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_find_phy_device(struct xgbe_prv_data *pdata) pdata 988 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 989 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 998 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->an_again = 0; pdata 1010 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->mdio_addr, pdata 1013 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, pdata 1023 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, "get_phy_device failed\n"); pdata 1026 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, "external PHY id is %#010x\n", pdata 1033 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, "phy_device_register failed\n"); pdata 1038 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = phy_attach_direct(pdata->netdev, phydev, phydev->dev_flags, pdata 1041 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, "phy_attach_direct failed\n"); pdata 1048 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_external_phy_quirks(pdata); pdata 1058 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_external_phy(struct xgbe_prv_data *pdata) pdata 1060 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1072 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_mii_read(pdata, MII_BMCR); pdata 1123 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_parse_eeprom(struct xgbe_prv_data *pdata) pdata 1125 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1191 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_eeprom_info(struct xgbe_prv_data *pdata, pdata 1197 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, "SFP detected:\n"); pdata 1201 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, " vendor: %s\n", pdata 1207 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, " part number: %s\n", pdata 1213 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, " revision level: %s\n", pdata 1219 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, " serial number: %s\n", pdata 1233 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_sfp_read_eeprom(struct xgbe_prv_data *pdata) pdata 1235 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1240 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_sfp_get_mux(pdata); pdata 1242 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err_once(pdata->dev, "%s: I2C error setting SFP MUX\n", pdata 1243 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_name(pdata->netdev)); pdata 1249 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_read(pdata, XGBE_SFP_SERIAL_ID_ADDRESS, pdata 1253 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err_once(pdata->dev, "%s: I2C error reading SFP EEPROM\n", pdata 1254 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_name(pdata->netdev)); pdata 1277 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (netif_msg_drv(pdata)) pdata 1278 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_eeprom_info(pdata, &sfp_eeprom); pdata 1282 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_free_phy_device(pdata); pdata 1288 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_put_mux(pdata); pdata 1293 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_signals(struct xgbe_prv_data *pdata) pdata 1295 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1301 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_read(pdata, phy_data->sfp_gpio_address, pdata 1305 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err_once(pdata->dev, "%s: I2C error reading SFP GPIOs\n", pdata 1306 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_name(pdata->netdev)); pdata 1315 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_mod_absent(struct xgbe_prv_data *pdata) pdata 1317 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1319 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_free_phy_device(pdata); pdata 1336 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_detect(struct xgbe_prv_data *pdata) pdata 1338 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1344 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_get_comm_ownership(pdata); pdata 1349 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_signals(pdata); pdata 1351 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_mod_absent(pdata); pdata 1355 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_sfp_read_eeprom(pdata); pdata 1359 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_mod_absent(pdata); pdata 1363 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_parse_eeprom(pdata); pdata 1365 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_external_phy(pdata); pdata 1368 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_phy_settings(pdata); pdata 1370 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_put_comm_ownership(pdata); pdata 1373 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_module_eeprom(struct xgbe_prv_data *pdata, pdata 1376 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1399 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!netif_running(pdata->netdev)) { pdata 1409 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_get_comm_ownership(pdata); pdata 1415 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_sfp_get_mux(pdata); pdata 1417 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, "I2C error setting SFP MUX\n"); pdata 1424 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_read(pdata, XGBE_SFP_SERIAL_ID_ADDRESS, pdata 1428 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, pdata 1439 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_read(pdata, XGBE_SFP_DIAG_INFO_ADDRESS, pdata 1444 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, pdata 1461 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_put_mux(pdata); pdata 1464 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_put_comm_ownership(pdata); pdata 1472 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_module_info(struct xgbe_prv_data *pdata, pdata 1475 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1480 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!netif_running(pdata->netdev)) pdata 1497 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_phydev_flowctrl(struct xgbe_prv_data *pdata) pdata 1499 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1500 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1504 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.tx_pause = 0; pdata 1505 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.rx_pause = 0; pdata 1523 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.tx_pause = 1; pdata 1525 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.rx_pause = 1; pdata 1528 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_an37_sgmii_outcome(struct xgbe_prv_data *pdata) pdata 1530 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1537 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->phy.pause_autoneg) pdata 1538 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_phydev_flowctrl(pdata); pdata 1540 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (pdata->an_status & XGBE_SGMII_AN_LINK_SPEED) { pdata 1542 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->an_status & XGBE_SGMII_AN_LINK_DUPLEX) { pdata 1552 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->an_status & XGBE_SGMII_AN_LINK_DUPLEX) { pdata 1568 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_an37_outcome(struct xgbe_prv_data *pdata) pdata 1570 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1578 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_ADVERTISE); pdata 1579 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_LP_ABILITY); pdata 1585 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->phy.pause_autoneg) { pdata 1587 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.tx_pause = 0; pdata 1588 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.rx_pause = 0; pdata 1591 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.tx_pause = 1; pdata 1592 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.rx_pause = 1; pdata 1595 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.rx_pause = 1; pdata 1597 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.tx_pause = 1; pdata 1611 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_an73_redrv_outcome(struct xgbe_prv_data *pdata) pdata 1613 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1614 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1622 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->phy.pause_autoneg) pdata 1623 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_phydev_flowctrl(pdata); pdata 1626 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 1); pdata 1627 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 1); pdata 1681 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 2); pdata 1682 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 2); pdata 1689 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_an73_outcome(struct xgbe_prv_data *pdata) pdata 1691 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1699 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE); pdata 1700 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA); pdata 1706 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->phy.pause_autoneg) { pdata 1708 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.tx_pause = 0; pdata 1709 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.rx_pause = 0; pdata 1712 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.tx_pause = 1; pdata 1713 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.rx_pause = 1; pdata 1716 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.rx_pause = 1; pdata 1718 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy.tx_pause = 1; pdata 1723 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 1); pdata 1724 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 1); pdata 1739 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 2); pdata 1740 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 2); pdata 1747 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_an_outcome(struct xgbe_prv_data *pdata) pdata 1749 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (pdata->an_mode) { pdata 1751 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_an73_outcome(pdata); pdata 1753 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_an73_redrv_outcome(pdata); pdata 1755 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_an37_outcome(pdata); pdata 1757 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_an37_sgmii_outcome(pdata); pdata 1763 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_an_advertising(struct xgbe_prv_data *pdata, pdata 1766 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *slks = &pdata->phy.lks; pdata 1767 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1780 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->fec_ability & MDIO_PMA_10GBR_FECABLE_ABLE) pdata 1824 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_an_config(struct xgbe_prv_data *pdata) pdata 1826 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 1827 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1830 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_find_phy_device(pdata); pdata 1837 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev->autoneg = pdata->phy.autoneg; pdata 1842 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->phy.autoneg != AUTONEG_ENABLE) { pdata 1843 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev->speed = pdata->phy.speed; pdata 1844 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev->duplex = pdata->phy.duplex; pdata 1866 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_an_mode xgbe_phy_an_mode(struct xgbe_prv_data *pdata) pdata 1868 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1896 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_set_redrv_mode_mdio(struct xgbe_prv_data *pdata, pdata 1899 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1905 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return pdata->hw_if.write_ext_mii_regs(pdata, phy_data->redrv_addr, pdata 1909 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_set_redrv_mode_i2c(struct xgbe_prv_data *pdata, pdata 1912 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1919 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_redrv_write(pdata, redrv_reg, mode); pdata 1924 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_set_redrv_mode(struct xgbe_prv_data *pdata) pdata 1926 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1939 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_get_comm_ownership(pdata); pdata 1944 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode_i2c(pdata, mode); pdata 1946 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode_mdio(pdata, mode); pdata 1948 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_put_comm_ownership(pdata); pdata 1951 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_perform_ratechange(struct xgbe_prv_data *pdata, pdata 1958 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (XP_IOREAD_BITS(pdata, XP_DRIVER_INT_RO, STATUS)) pdata 1959 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, pdata 1967 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_IOWRITE(pdata, XP_DRIVER_SCRATCH_0, s0); pdata 1968 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_IOWRITE(pdata, XP_DRIVER_SCRATCH_1, 0); pdata 1969 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_IOWRITE_BITS(pdata, XP_DRIVER_INT_REQ, REQUEST, 1); pdata 1974 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!XP_IOREAD_BITS(pdata, XP_DRIVER_INT_RO, STATUS)) pdata 1980 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, pdata 1984 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_rrc(struct xgbe_prv_data *pdata) pdata 1987 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 5, 0); pdata 1989 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "receiver reset complete\n"); pdata 1992 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_power_off(struct xgbe_prv_data *pdata) pdata 1994 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 1997 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 0, 0); pdata 2001 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "phy powered off\n"); pdata 2004 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfi_mode(struct xgbe_prv_data *pdata) pdata 2006 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2008 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode(pdata); pdata 2012 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 3, 0); pdata 2015 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 3, 1); pdata 2017 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 3, 2); pdata 2019 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 3, 3); pdata 2024 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "10GbE SFI mode set\n"); pdata 2027 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_x_mode(struct xgbe_prv_data *pdata) pdata 2029 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2031 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode(pdata); pdata 2034 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 1, 3); pdata 2038 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "1GbE X mode set\n"); pdata 2041 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sgmii_1000_mode(struct xgbe_prv_data *pdata) pdata 2043 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2045 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode(pdata); pdata 2048 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 1, 2); pdata 2052 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "1GbE SGMII mode set\n"); pdata 2055 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sgmii_100_mode(struct xgbe_prv_data *pdata) pdata 2057 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2059 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode(pdata); pdata 2062 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 1, 1); pdata 2066 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "100MbE SGMII mode set\n"); pdata 2069 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_kr_mode(struct xgbe_prv_data *pdata) pdata 2071 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2073 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode(pdata); pdata 2076 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 4, 0); pdata 2080 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "10GbE KR mode set\n"); pdata 2083 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_kx_2500_mode(struct xgbe_prv_data *pdata) pdata 2085 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2087 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode(pdata); pdata 2090 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 2, 0); pdata 2094 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "2.5GbE KX mode set\n"); pdata 2097 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_kx_1000_mode(struct xgbe_prv_data *pdata) pdata 2099 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2101 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode(pdata); pdata 2104 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_perform_ratechange(pdata, 1, 3); pdata 2108 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, link, pdata->netdev, "1GbE KX mode set\n"); pdata 2111 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_cur_mode(struct xgbe_prv_data *pdata) pdata 2113 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2118 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_switch_baset_mode(struct xgbe_prv_data *pdata) pdata 2120 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2124 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_cur_mode(pdata); pdata 2126 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (xgbe_phy_cur_mode(pdata)) { pdata 2136 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_switch_bp_2500_mode(struct xgbe_prv_data *pdata) pdata 2141 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_switch_bp_mode(struct xgbe_prv_data *pdata) pdata 2144 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (xgbe_phy_cur_mode(pdata)) { pdata 2153 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_switch_mode(struct xgbe_prv_data *pdata) pdata 2155 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2159 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_switch_bp_mode(pdata); pdata 2161 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_switch_bp_2500_mode(pdata); pdata 2165 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_switch_baset_mode(pdata); pdata 2170 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_cur_mode(pdata); pdata 2247 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_get_mode(struct xgbe_prv_data *pdata, pdata 2250 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2271 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_set_mode(struct xgbe_prv_data *pdata, enum xgbe_mode mode) pdata 2275 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_kx_1000_mode(pdata); pdata 2278 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_kx_2500_mode(pdata); pdata 2281 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_kr_mode(pdata); pdata 2284 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sgmii_100_mode(pdata); pdata 2287 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sgmii_1000_mode(pdata); pdata 2290 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_x_mode(pdata); pdata 2293 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfi_mode(pdata); pdata 2300 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_check_mode(struct xgbe_prv_data *pdata, pdata 2303 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->phy.autoneg == AUTONEG_ENABLE) { pdata 2308 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c cur_mode = xgbe_phy_get_mode(pdata, pdata->phy.speed); pdata 2316 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_use_basex_mode(struct xgbe_prv_data *pdata, pdata 2319 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 2323 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2326 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2333 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_use_baset_mode(struct xgbe_prv_data *pdata, pdata 2336 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 2340 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2343 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2346 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2349 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2356 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_use_sfp_mode(struct xgbe_prv_data *pdata, pdata 2359 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 2360 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2366 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2371 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2376 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2381 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2392 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_use_bp_2500_mode(struct xgbe_prv_data *pdata, pdata 2395 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 2399 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2406 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_use_bp_mode(struct xgbe_prv_data *pdata, pdata 2409 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 2413 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2416 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, pdata 2423 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_use_mode(struct xgbe_prv_data *pdata, enum xgbe_mode mode) pdata 2425 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2429 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_bp_mode(pdata, mode); pdata 2431 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_bp_2500_mode(pdata, mode); pdata 2435 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_baset_mode(pdata, mode); pdata 2438 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_basex_mode(pdata, mode); pdata 2440 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_sfp_mode(pdata, mode); pdata 2512 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_valid_speed(struct xgbe_prv_data *pdata, int speed) pdata 2514 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2535 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_link_status(struct xgbe_prv_data *pdata, int *an_restart) pdata 2537 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2545 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_detect(pdata); pdata 2562 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((pdata->phy.autoneg == AUTONEG_ENABLE) && pdata 2573 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_STAT1); pdata 2574 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_STAT1); pdata 2581 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_rrc(pdata); pdata 2587 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_gpio_setup(struct xgbe_prv_data *pdata) pdata 2589 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2592 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2595 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_mask = XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2598 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_rx_los = XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2600 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_tx_fault = XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2602 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_mod_absent = XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2604 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_rate_select = XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2607 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (netif_msg_probe(pdata)) { pdata 2608 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "SFP: gpio_address=%#x\n", pdata 2610 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "SFP: gpio_mask=%#x\n", pdata 2612 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "SFP: gpio_rx_los=%u\n", pdata 2614 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "SFP: gpio_tx_fault=%u\n", pdata 2616 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "SFP: gpio_mod_absent=%u\n", pdata 2618 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "SFP: gpio_rate_select=%u\n", pdata 2623 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_comm_setup(struct xgbe_prv_data *pdata) pdata 2625 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2628 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mux_addr_hi = XP_GET_BITS(pdata->pp4, XP_PROP_4, MUX_ADDR_HI); pdata 2629 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mux_addr_lo = XP_GET_BITS(pdata->pp4, XP_PROP_4, MUX_ADDR_LO); pdata 2635 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_mux_channel = XP_GET_BITS(pdata->pp4, XP_PROP_4, pdata 2638 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (netif_msg_probe(pdata)) { pdata 2639 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "SFP: mux_address=%#x\n", pdata 2641 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "SFP: mux_channel=%u\n", pdata 2646 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_setup(struct xgbe_prv_data *pdata) pdata 2648 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_comm_setup(pdata); pdata 2649 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_gpio_setup(pdata); pdata 2652 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_int_mdio_reset(struct xgbe_prv_data *pdata) pdata 2654 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2657 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_gpio(pdata, phy_data->mdio_reset_gpio); pdata 2661 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.clr_gpio(pdata, phy_data->mdio_reset_gpio); pdata 2666 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_i2c_mdio_reset(struct xgbe_prv_data *pdata) pdata 2668 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2674 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_read(pdata, phy_data->mdio_reset_addr, pdata 2692 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_write(pdata, phy_data->mdio_reset_addr, pdata 2704 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_write(pdata, phy_data->mdio_reset_addr, pdata 2710 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_mdio_reset(struct xgbe_prv_data *pdata) pdata 2712 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2718 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_get_comm_ownership(pdata); pdata 2723 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_mdio_reset(pdata); pdata 2725 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_int_mdio_reset(pdata); pdata 2727 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_put_comm_ownership(pdata); pdata 2756 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_mdio_reset_setup(struct xgbe_prv_data *pdata) pdata 2758 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2763 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_reset = XP_GET_BITS(pdata->pp3, XP_PROP_3, MDIO_RESET); pdata 2770 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err(pdata->dev, "unsupported MDIO reset (%#x)\n", pdata 2777 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2779 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_reset_gpio = XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2782 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_reset_gpio = XP_GET_BITS(pdata->pp3, XP_PROP_3, pdata 2789 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_port_mode_mismatch(struct xgbe_prv_data *pdata) pdata 2791 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2841 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_conn_type_mismatch(struct xgbe_prv_data *pdata) pdata 2843 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2870 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_port_enabled(struct xgbe_prv_data *pdata) pdata 2872 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!XP_GET_BITS(pdata->pp0, XP_PROP_0, PORT_SPEEDS)) pdata 2874 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!XP_GET_BITS(pdata->pp0, XP_PROP_0, CONN_TYPE)) pdata 2880 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_cdr_track(struct xgbe_prv_data *pdata) pdata 2882 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2884 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!pdata->debugfs_an_cdr_workaround) pdata 2893 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XMDIO_WRITE_BITS(pdata, MDIO_MMD_PMAPMD, MDIO_VEND2_PMA_CDR_CONTROL, pdata 2900 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_cdr_notrack(struct xgbe_prv_data *pdata) pdata 2902 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2904 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!pdata->debugfs_an_cdr_workaround) pdata 2910 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XMDIO_WRITE_BITS(pdata, MDIO_MMD_PMAPMD, MDIO_VEND2_PMA_CDR_CONTROL, pdata 2914 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_rrc(pdata); pdata 2919 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_kr_training_post(struct xgbe_prv_data *pdata) pdata 2921 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!pdata->debugfs_an_cdr_track_early) pdata 2922 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_cdr_track(pdata); pdata 2925 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_kr_training_pre(struct xgbe_prv_data *pdata) pdata 2927 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->debugfs_an_cdr_track_early) pdata 2928 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_cdr_track(pdata); pdata 2931 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_an_post(struct xgbe_prv_data *pdata) pdata 2933 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2935 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (pdata->an_mode) { pdata 2941 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_cdr_track(pdata); pdata 2943 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (pdata->an_result) { pdata 2960 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_an_pre(struct xgbe_prv_data *pdata) pdata 2962 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2964 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (pdata->an_mode) { pdata 2970 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_cdr_notrack(pdata); pdata 2977 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_stop(struct xgbe_prv_data *pdata) pdata 2979 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 2982 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_free_phy_device(pdata); pdata 2986 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_mod_absent(pdata); pdata 2989 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_cdr_track(pdata); pdata 2992 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_power_off(pdata); pdata 2995 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->i2c_if.i2c_stop(pdata); pdata 2998 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_start(struct xgbe_prv_data *pdata) pdata 3000 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 3004 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->i2c_if.i2c_start(pdata); pdata 3010 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->redrv_addr, pdata 3013 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netdev_err(pdata->netdev, pdata 3021 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_mode(pdata, phy_data->start_mode); pdata 3024 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_cdr_track(pdata); pdata 3029 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_detect(pdata); pdata 3036 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_find_phy_device(pdata); pdata 3043 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->i2c_if.i2c_stop(pdata); pdata 3048 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_reset(struct xgbe_prv_data *pdata) pdata 3050 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 3056 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_power_off(pdata); pdata 3057 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_mode(pdata, cur_mode); pdata 3063 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_mdio_reset(pdata); pdata 3070 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_exit(struct xgbe_prv_data *pdata) pdata 3072 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; pdata 3078 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static int xgbe_phy_init(struct xgbe_prv_data *pdata) pdata 3080 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct ethtool_link_ksettings *lks = &pdata->phy.lks; pdata 3086 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!xgbe_phy_port_enabled(pdata)) { pdata 3087 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_info(pdata->dev, "device is not enabled\n"); pdata 3092 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->i2c_if.i2c_init(pdata); pdata 3096 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data = devm_kzalloc(pdata->dev, sizeof(*phy_data), GFP_KERNEL); pdata 3099 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy_data = phy_data; pdata 3101 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->port_mode = XP_GET_BITS(pdata->pp0, XP_PROP_0, PORT_MODE); pdata 3102 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->port_id = XP_GET_BITS(pdata->pp0, XP_PROP_0, PORT_ID); pdata 3103 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->port_speeds = XP_GET_BITS(pdata->pp0, XP_PROP_0, PORT_SPEEDS); pdata 3104 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->conn_type = XP_GET_BITS(pdata->pp0, XP_PROP_0, CONN_TYPE); pdata 3105 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_addr = XP_GET_BITS(pdata->pp0, XP_PROP_0, MDIO_ADDR); pdata 3106 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (netif_msg_probe(pdata)) { pdata 3107 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "port mode=%u\n", phy_data->port_mode); pdata 3108 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "port id=%u\n", phy_data->port_id); pdata 3109 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "port speeds=%#x\n", phy_data->port_speeds); pdata 3110 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "conn type=%u\n", phy_data->conn_type); pdata 3111 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "mdio addr=%u\n", phy_data->mdio_addr); pdata 3114 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_PRESENT); pdata 3115 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_if = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_IF); pdata 3116 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_addr = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_ADDR); pdata 3117 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_lane = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_LANE); pdata 3118 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_model = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_MODEL); pdata 3119 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv && netif_msg_probe(pdata)) { pdata 3120 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv present\n"); pdata 3121 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv i/f=%u\n", phy_data->redrv_if); pdata 3122 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv addr=%#x\n", phy_data->redrv_addr); pdata 3123 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv lane=%u\n", phy_data->redrv_lane); pdata 3124 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv model=%u\n", phy_data->redrv_model); pdata 3128 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (xgbe_phy_conn_type_mismatch(pdata)) { pdata 3129 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err(pdata->dev, "phy mode/connection mismatch (%#x/%#x)\n", pdata 3135 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (xgbe_phy_port_mode_mismatch(pdata)) { pdata 3136 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err(pdata->dev, "phy mode/speed mismatch (%#x/%#x)\n", pdata 3142 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_mdio_reset_setup(pdata); pdata 3148 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err(pdata->dev, "phy re-driver settings error\n"); pdata 3151 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->kr_redrv = phy_data->redrv; pdata 3172 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->fec_ability & MDIO_PMA_10GBR_FECABLE_ABLE) pdata 3273 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (pdata->fec_ability & MDIO_PMA_10GBR_FECABLE_ABLE) pdata 3296 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_setup(pdata); pdata 3302 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (netif_msg_probe(pdata)) pdata 3303 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "phy supported=0x%*pb\n", pdata 3309 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->mdio_addr, pdata 3312 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err(pdata->dev, pdata 3320 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->redrv_addr, pdata 3323 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err(pdata->dev, pdata 3333 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mii = devm_mdiobus_alloc(pdata->dev); pdata 3335 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err(pdata->dev, "mdiobus_alloc failed\n"); pdata 3339 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mii->priv = pdata; pdata 3343 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mii->parent = pdata->dev; pdata 3345 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c snprintf(mii->id, sizeof(mii->id), "%s", dev_name(pdata->dev)); pdata 3348 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_err(pdata->dev, "mdiobus_register failed\n"); pdata 140 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static struct xgbe_version_data *xgbe_acpi_vdata(struct xgbe_prv_data *pdata) pdata 144 drivers/net/ethernet/amd/xgbe/xgbe-platform.c id = acpi_match_device(xgbe_acpi_match, pdata->dev); pdata 149 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static int xgbe_acpi_support(struct xgbe_prv_data *pdata) pdata 151 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct device *dev = pdata->dev; pdata 162 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->sysclk_rate = property; pdata 171 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->ptpclk_rate = property; pdata 176 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static struct xgbe_version_data *xgbe_acpi_vdata(struct xgbe_prv_data *pdata) pdata 181 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static int xgbe_acpi_support(struct xgbe_prv_data *pdata) pdata 190 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static struct xgbe_version_data *xgbe_of_vdata(struct xgbe_prv_data *pdata) pdata 194 drivers/net/ethernet/amd/xgbe/xgbe-platform.c id = of_match_device(xgbe_of_match, pdata->dev); pdata 199 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static int xgbe_of_support(struct xgbe_prv_data *pdata) pdata 201 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct device *dev = pdata->dev; pdata 204 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->sysclk = devm_clk_get(dev, XGBE_DMA_CLOCK); pdata 205 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (IS_ERR(pdata->sysclk)) { pdata 207 drivers/net/ethernet/amd/xgbe/xgbe-platform.c return PTR_ERR(pdata->sysclk); pdata 209 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->sysclk_rate = clk_get_rate(pdata->sysclk); pdata 212 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->ptpclk = devm_clk_get(dev, XGBE_PTP_CLOCK); pdata 213 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (IS_ERR(pdata->ptpclk)) { pdata 215 drivers/net/ethernet/amd/xgbe/xgbe-platform.c return PTR_ERR(pdata->ptpclk); pdata 217 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->ptpclk_rate = clk_get_rate(pdata->ptpclk); pdata 222 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static struct platform_device *xgbe_of_get_phy_pdev(struct xgbe_prv_data *pdata) pdata 224 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct device *dev = pdata->dev; pdata 241 drivers/net/ethernet/amd/xgbe/xgbe-platform.c phy_pdev = pdata->platdev; pdata 247 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static struct xgbe_version_data *xgbe_of_vdata(struct xgbe_prv_data *pdata) pdata 252 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static int xgbe_of_support(struct xgbe_prv_data *pdata) pdata 257 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static struct platform_device *xgbe_of_get_phy_pdev(struct xgbe_prv_data *pdata) pdata 279 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static struct platform_device *xgbe_get_phy_pdev(struct xgbe_prv_data *pdata) pdata 283 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (pdata->use_acpi) { pdata 284 drivers/net/ethernet/amd/xgbe/xgbe-platform.c get_device(pdata->dev); pdata 285 drivers/net/ethernet/amd/xgbe/xgbe-platform.c phy_pdev = pdata->platdev; pdata 287 drivers/net/ethernet/amd/xgbe/xgbe-platform.c phy_pdev = xgbe_of_get_phy_pdev(pdata); pdata 293 drivers/net/ethernet/amd/xgbe/xgbe-platform.c static struct xgbe_version_data *xgbe_get_vdata(struct xgbe_prv_data *pdata) pdata 295 drivers/net/ethernet/amd/xgbe/xgbe-platform.c return pdata->use_acpi ? xgbe_acpi_vdata(pdata) pdata 296 drivers/net/ethernet/amd/xgbe/xgbe-platform.c : xgbe_of_vdata(pdata); pdata 301 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct xgbe_prv_data *pdata; pdata 310 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata = xgbe_alloc_pdata(dev); pdata 311 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (IS_ERR(pdata)) { pdata 312 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = PTR_ERR(pdata); pdata 316 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->platdev = pdev; pdata 317 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->adev = ACPI_COMPANION(dev); pdata 318 drivers/net/ethernet/amd/xgbe/xgbe-platform.c platform_set_drvdata(pdev, pdata); pdata 321 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->use_acpi = dev->of_node ? 0 : 1; pdata 324 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->vdata = xgbe_get_vdata(pdata); pdata 326 drivers/net/ethernet/amd/xgbe/xgbe-platform.c phy_pdev = xgbe_get_phy_pdev(pdata); pdata 332 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->phy_platdev = phy_pdev; pdata 333 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->phy_dev = &phy_pdev->dev; pdata 355 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->xgmac_regs = devm_platform_ioremap_resource(pdev, 0); pdata 356 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (IS_ERR(pdata->xgmac_regs)) { pdata 358 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = PTR_ERR(pdata->xgmac_regs); pdata 361 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (netif_msg_probe(pdata)) pdata 362 drivers/net/ethernet/amd/xgbe/xgbe-platform.c dev_dbg(dev, "xgmac_regs = %p\n", pdata->xgmac_regs); pdata 364 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->xpcs_regs = devm_platform_ioremap_resource(pdev, 1); pdata 365 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (IS_ERR(pdata->xpcs_regs)) { pdata 367 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = PTR_ERR(pdata->xpcs_regs); pdata 370 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (netif_msg_probe(pdata)) pdata 371 drivers/net/ethernet/amd/xgbe/xgbe-platform.c dev_dbg(dev, "xpcs_regs = %p\n", pdata->xpcs_regs); pdata 373 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->rxtx_regs = devm_platform_ioremap_resource(phy_pdev, pdata 375 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (IS_ERR(pdata->rxtx_regs)) { pdata 377 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = PTR_ERR(pdata->rxtx_regs); pdata 380 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (netif_msg_probe(pdata)) pdata 381 drivers/net/ethernet/amd/xgbe/xgbe-platform.c dev_dbg(dev, "rxtx_regs = %p\n", pdata->rxtx_regs); pdata 383 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->sir0_regs = devm_platform_ioremap_resource(phy_pdev, pdata 385 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (IS_ERR(pdata->sir0_regs)) { pdata 387 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = PTR_ERR(pdata->sir0_regs); pdata 390 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (netif_msg_probe(pdata)) pdata 391 drivers/net/ethernet/amd/xgbe/xgbe-platform.c dev_dbg(dev, "sir0_regs = %p\n", pdata->sir0_regs); pdata 393 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->sir1_regs = devm_platform_ioremap_resource(phy_pdev, pdata 395 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (IS_ERR(pdata->sir1_regs)) { pdata 397 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = PTR_ERR(pdata->sir1_regs); pdata 400 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (netif_msg_probe(pdata)) pdata 401 drivers/net/ethernet/amd/xgbe/xgbe-platform.c dev_dbg(dev, "sir1_regs = %p\n", pdata->sir1_regs); pdata 405 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->mac_addr, pdata 406 drivers/net/ethernet/amd/xgbe/xgbe-platform.c sizeof(pdata->mac_addr)); pdata 407 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (ret || !is_valid_ether_addr(pdata->mac_addr)) { pdata 423 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->phy_mode = PHY_INTERFACE_MODE_XGMII; pdata 427 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->per_channel_irq = 1; pdata 428 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->channel_irq_mode = XGBE_IRQ_MODE_EDGE; pdata 432 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (pdata->use_acpi) pdata 433 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = xgbe_acpi_support(pdata); pdata 435 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = xgbe_of_support(pdata); pdata 446 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->coherent = (attr == DEV_DMA_COHERENT); pdata 447 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (pdata->coherent) { pdata 448 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->arcr = XGBE_DMA_OS_ARCR; pdata 449 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->awcr = XGBE_DMA_OS_AWCR; pdata 451 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->arcr = XGBE_DMA_SYS_ARCR; pdata 452 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->awcr = XGBE_DMA_SYS_AWCR; pdata 456 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->tx_max_fifo_size = pdata->vdata->tx_max_fifo_size; pdata 457 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->rx_max_fifo_size = pdata->vdata->rx_max_fifo_size; pdata 460 drivers/net/ethernet/amd/xgbe/xgbe-platform.c xgbe_set_counts(pdata); pdata 463 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->irq_count = 2; pdata 469 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->dev_irq = ret; pdata 472 drivers/net/ethernet/amd/xgbe/xgbe-platform.c if (pdata->per_channel_irq) { pdata 473 drivers/net/ethernet/amd/xgbe/xgbe-platform.c unsigned int i, max = ARRAY_SIZE(pdata->channel_irq); pdata 476 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = platform_get_irq(pdata->platdev, dma_irqnum++); pdata 480 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->channel_irq[i] = ret; pdata 483 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->channel_irq_count = max; pdata 485 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->irq_count += max; pdata 492 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->an_irq = ret; pdata 495 drivers/net/ethernet/amd/xgbe/xgbe-platform.c ret = xgbe_config_netdev(pdata); pdata 499 drivers/net/ethernet/amd/xgbe/xgbe-platform.c netdev_notice(pdata->netdev, "net device enabled\n"); pdata 507 drivers/net/ethernet/amd/xgbe/xgbe-platform.c xgbe_free_pdata(pdata); pdata 517 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct xgbe_prv_data *pdata = platform_get_drvdata(pdev); pdata 519 drivers/net/ethernet/amd/xgbe/xgbe-platform.c xgbe_deconfig_netdev(pdata); pdata 521 drivers/net/ethernet/amd/xgbe/xgbe-platform.c platform_device_put(pdata->phy_platdev); pdata 523 drivers/net/ethernet/amd/xgbe/xgbe-platform.c xgbe_free_pdata(pdata); pdata 531 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct xgbe_prv_data *pdata = dev_get_drvdata(dev); pdata 532 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct net_device *netdev = pdata->netdev; pdata 540 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->lpm_ctrl = XMDIO_READ(pdata, MDIO_MMD_PCS, MDIO_CTRL1); pdata 541 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->lpm_ctrl |= MDIO_CTRL1_LPOWER; pdata 542 drivers/net/ethernet/amd/xgbe/xgbe-platform.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, pdata->lpm_ctrl); pdata 551 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct xgbe_prv_data *pdata = dev_get_drvdata(dev); pdata 552 drivers/net/ethernet/amd/xgbe/xgbe-platform.c struct net_device *netdev = pdata->netdev; pdata 557 drivers/net/ethernet/amd/xgbe/xgbe-platform.c pdata->lpm_ctrl &= ~MDIO_CTRL1_LPOWER; pdata 558 drivers/net/ethernet/amd/xgbe/xgbe-platform.c XMDIO_WRITE(pdata, MDIO_MMD_PCS, MDIO_CTRL1, pdata->lpm_ctrl); pdata 566 drivers/net/ethernet/amd/xgbe/xgbe-platform.c schedule_work(&pdata->restart_work); pdata 127 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c struct xgbe_prv_data *pdata = container_of(cc, pdata 132 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c nsec = pdata->hw_if.get_tstamp_time(pdata); pdata 139 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c struct xgbe_prv_data *pdata = container_of(info, pdata 152 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c adjust = pdata->tstamp_addend; pdata 156 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c addend = (neg_adjust) ? pdata->tstamp_addend - diff : pdata 157 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c pdata->tstamp_addend + diff; pdata 159 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c spin_lock_irqsave(&pdata->tstamp_lock, flags); pdata 161 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c pdata->hw_if.update_tstamp_addend(pdata, addend); pdata 163 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c spin_unlock_irqrestore(&pdata->tstamp_lock, flags); pdata 170 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c struct xgbe_prv_data *pdata = container_of(info, pdata 175 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c spin_lock_irqsave(&pdata->tstamp_lock, flags); pdata 176 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c timecounter_adjtime(&pdata->tstamp_tc, delta); pdata 177 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c spin_unlock_irqrestore(&pdata->tstamp_lock, flags); pdata 184 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c struct xgbe_prv_data *pdata = container_of(info, pdata 190 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c spin_lock_irqsave(&pdata->tstamp_lock, flags); pdata 192 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c nsec = timecounter_read(&pdata->tstamp_tc); pdata 194 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c spin_unlock_irqrestore(&pdata->tstamp_lock, flags); pdata 204 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c struct xgbe_prv_data *pdata = container_of(info, pdata 212 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c spin_lock_irqsave(&pdata->tstamp_lock, flags); pdata 214 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, nsec); pdata 216 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c spin_unlock_irqrestore(&pdata->tstamp_lock, flags); pdata 227 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c void xgbe_ptp_register(struct xgbe_prv_data *pdata) pdata 229 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c struct ptp_clock_info *info = &pdata->ptp_clock_info; pdata 231 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c struct cyclecounter *cc = &pdata->tstamp_cc; pdata 235 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c netdev_name(pdata->netdev)); pdata 237 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c info->max_adj = pdata->ptpclk_rate; pdata 244 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c clock = ptp_clock_register(info, pdata->dev); pdata 246 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c dev_err(pdata->dev, "ptp_clock_register failed\n"); pdata 250 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c pdata->ptp_clock = clock; pdata 258 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c pdata->tstamp_addend = div_u64(dividend, pdata->ptpclk_rate); pdata 266 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c timecounter_init(&pdata->tstamp_tc, &pdata->tstamp_cc, pdata 270 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c XGMAC_IOWRITE(pdata, MAC_TSCR, 0); pdata 271 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c pdata->tstamp_config.tx_type = HWTSTAMP_TX_OFF; pdata 272 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c pdata->tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; pdata 275 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c void xgbe_ptp_unregister(struct xgbe_prv_data *pdata) pdata 277 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c if (pdata->ptp_clock) pdata 278 drivers/net/ethernet/amd/xgbe/xgbe-ptp.c ptp_clock_unregister(pdata->ptp_clock); pdata 499 drivers/net/ethernet/amd/xgbe/xgbe.h struct xgbe_prv_data *pdata; pdata 894 drivers/net/ethernet/amd/xgbe/xgbe.h int (*module_info)(struct xgbe_prv_data *pdata, pdata 896 drivers/net/ethernet/amd/xgbe/xgbe.h int (*module_eeprom)(struct xgbe_prv_data *pdata, pdata 921 drivers/net/ethernet/amd/xgbe/xgbe.h int (*module_info)(struct xgbe_prv_data *pdata, pdata 923 drivers/net/ethernet/amd/xgbe/xgbe.h int (*module_eeprom)(struct xgbe_prv_data *pdata, pdata 1342 drivers/net/ethernet/amd/xgbe/xgbe.h void xgbe_restart_dev(struct xgbe_prv_data *pdata); pdata 1343 drivers/net/ethernet/amd/xgbe/xgbe.h void xgbe_full_restart_dev(struct xgbe_prv_data *pdata); pdata 1348 drivers/net/ethernet/amd/xgbe/xgbe.h void xgbe_debugfs_rename(struct xgbe_prv_data *pdata); pdata 1350 drivers/net/ethernet/amd/xgbe/xgbe.h static inline void xgbe_debugfs_init(struct xgbe_prv_data *pdata) {} pdata 1351 drivers/net/ethernet/amd/xgbe/xgbe.h static inline void xgbe_debugfs_exit(struct xgbe_prv_data *pdata) {} pdata 1352 drivers/net/ethernet/amd/xgbe/xgbe.h static inline void xgbe_debugfs_rename(struct xgbe_prv_data *pdata) {} pdata 12 drivers/net/ethernet/apm/xgene-v2/enet.c void xge_wr_csr(struct xge_pdata *pdata, u32 offset, u32 val) pdata 14 drivers/net/ethernet/apm/xgene-v2/enet.c void __iomem *addr = pdata->resources.base_addr + offset; pdata 19 drivers/net/ethernet/apm/xgene-v2/enet.c u32 xge_rd_csr(struct xge_pdata *pdata, u32 offset) pdata 21 drivers/net/ethernet/apm/xgene-v2/enet.c void __iomem *addr = pdata->resources.base_addr + offset; pdata 28 drivers/net/ethernet/apm/xgene-v2/enet.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 29 drivers/net/ethernet/apm/xgene-v2/enet.c struct device *dev = &pdata->pdev->dev; pdata 32 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, ENET_CLKEN, 0x3); pdata 33 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, ENET_SRST, 0xf); pdata 34 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, ENET_SRST, 0); pdata 35 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, CFG_MEM_RAM_SHUTDOWN, 1); pdata 36 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, CFG_MEM_RAM_SHUTDOWN, 0); pdata 40 drivers/net/ethernet/apm/xgene-v2/enet.c data = xge_rd_csr(pdata, BLOCK_MEM_RDY); pdata 48 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, ENET_SHIM, DEVM_ARAUX_COH | DEVM_AWAUX_COH); pdata 55 drivers/net/ethernet/apm/xgene-v2/enet.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 57 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, CFG_FORCE_LINK_STATUS_EN, 1); pdata 58 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, FORCE_LINK_STATUS, 1); pdata 60 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, CFG_LINK_AGGR_RESUME, 1); pdata 61 drivers/net/ethernet/apm/xgene-v2/enet.c xge_wr_csr(pdata, RX_DV_GATE_REG, 1); pdata 66 drivers/net/ethernet/apm/xgene-v2/enet.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 68 drivers/net/ethernet/apm/xgene-v2/enet.c pdata->phy_speed = SPEED_1000; pdata 69 drivers/net/ethernet/apm/xgene-v2/enet.c xge_mac_init(pdata); pdata 28 drivers/net/ethernet/apm/xgene-v2/enet.h void xge_wr_csr(struct xge_pdata *pdata, u32 offset, u32 val); pdata 29 drivers/net/ethernet/apm/xgene-v2/enet.h u32 xge_rd_csr(struct xge_pdata *pdata, u32 offset); pdata 74 drivers/net/ethernet/apm/xgene-v2/ethtool.c static void xge_mac_get_extd_stats(struct xge_pdata *pdata) pdata 80 drivers/net/ethernet/apm/xgene-v2/ethtool.c data = xge_rd_csr(pdata, gstrings_extd_stats[i].addr); pdata 88 drivers/net/ethernet/apm/xgene-v2/ethtool.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 89 drivers/net/ethernet/apm/xgene-v2/ethtool.c struct platform_device *pdev = pdata->pdev; pdata 128 drivers/net/ethernet/apm/xgene-v2/ethtool.c void *pdata = netdev_priv(ndev); pdata 132 drivers/net/ethernet/apm/xgene-v2/ethtool.c *data++ = *(u64 *)(pdata + gstrings_stats[i].offset); pdata 134 drivers/net/ethernet/apm/xgene-v2/ethtool.c xge_mac_get_extd_stats(pdata); pdata 12 drivers/net/ethernet/apm/xgene-v2/mac.c void xge_mac_reset(struct xge_pdata *pdata) pdata 14 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, MAC_CONFIG_1, SOFT_RESET); pdata 15 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, MAC_CONFIG_1, 0); pdata 18 drivers/net/ethernet/apm/xgene-v2/mac.c void xge_mac_set_speed(struct xge_pdata *pdata) pdata 23 drivers/net/ethernet/apm/xgene-v2/mac.c icm0 = xge_rd_csr(pdata, ICM_CONFIG0_REG_0); pdata 24 drivers/net/ethernet/apm/xgene-v2/mac.c icm2 = xge_rd_csr(pdata, ICM_CONFIG2_REG_0); pdata 25 drivers/net/ethernet/apm/xgene-v2/mac.c ecm0 = xge_rd_csr(pdata, ECM_CONFIG0_REG_0); pdata 26 drivers/net/ethernet/apm/xgene-v2/mac.c rgmii = xge_rd_csr(pdata, RGMII_REG_0); pdata 27 drivers/net/ethernet/apm/xgene-v2/mac.c mc2 = xge_rd_csr(pdata, MAC_CONFIG_2); pdata 28 drivers/net/ethernet/apm/xgene-v2/mac.c intf_ctrl = xge_rd_csr(pdata, INTERFACE_CONTROL); pdata 31 drivers/net/ethernet/apm/xgene-v2/mac.c switch (pdata->phy_speed) { pdata 58 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, MAC_CONFIG_2, mc2); pdata 59 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, INTERFACE_CONTROL, intf_ctrl); pdata 60 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, RGMII_REG_0, rgmii); pdata 61 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, ICM_CONFIG0_REG_0, icm0); pdata 62 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, ICM_CONFIG2_REG_0, icm2); pdata 63 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, ECM_CONFIG0_REG_0, ecm0); pdata 66 drivers/net/ethernet/apm/xgene-v2/mac.c void xge_mac_set_station_addr(struct xge_pdata *pdata) pdata 68 drivers/net/ethernet/apm/xgene-v2/mac.c u8 *dev_addr = pdata->ndev->dev_addr; pdata 75 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, STATION_ADDR0, addr0); pdata 76 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, STATION_ADDR1, addr1); pdata 79 drivers/net/ethernet/apm/xgene-v2/mac.c void xge_mac_init(struct xge_pdata *pdata) pdata 81 drivers/net/ethernet/apm/xgene-v2/mac.c xge_mac_reset(pdata); pdata 82 drivers/net/ethernet/apm/xgene-v2/mac.c xge_mac_set_speed(pdata); pdata 83 drivers/net/ethernet/apm/xgene-v2/mac.c xge_mac_set_station_addr(pdata); pdata 86 drivers/net/ethernet/apm/xgene-v2/mac.c void xge_mac_enable(struct xge_pdata *pdata) pdata 90 drivers/net/ethernet/apm/xgene-v2/mac.c data = xge_rd_csr(pdata, MAC_CONFIG_1); pdata 92 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, MAC_CONFIG_1, data); pdata 94 drivers/net/ethernet/apm/xgene-v2/mac.c data = xge_rd_csr(pdata, MAC_CONFIG_1); pdata 97 drivers/net/ethernet/apm/xgene-v2/mac.c void xge_mac_disable(struct xge_pdata *pdata) pdata 101 drivers/net/ethernet/apm/xgene-v2/mac.c data = xge_rd_csr(pdata, MAC_CONFIG_1); pdata 103 drivers/net/ethernet/apm/xgene-v2/mac.c xge_wr_csr(pdata, MAC_CONFIG_1, data); pdata 88 drivers/net/ethernet/apm/xgene-v2/mac.h void xge_mac_reset(struct xge_pdata *pdata); pdata 89 drivers/net/ethernet/apm/xgene-v2/mac.h void xge_mac_set_speed(struct xge_pdata *pdata); pdata 90 drivers/net/ethernet/apm/xgene-v2/mac.h void xge_mac_enable(struct xge_pdata *pdata); pdata 91 drivers/net/ethernet/apm/xgene-v2/mac.h void xge_mac_disable(struct xge_pdata *pdata); pdata 92 drivers/net/ethernet/apm/xgene-v2/mac.h void xge_mac_init(struct xge_pdata *pdata); pdata 93 drivers/net/ethernet/apm/xgene-v2/mac.h void xge_mac_set_station_addr(struct xge_pdata *pdata); pdata 14 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_get_resources(struct xge_pdata *pdata) pdata 22 drivers/net/ethernet/apm/xgene-v2/main.c pdev = pdata->pdev; pdata 24 drivers/net/ethernet/apm/xgene-v2/main.c ndev = pdata->ndev; pdata 32 drivers/net/ethernet/apm/xgene-v2/main.c pdata->resources.base_addr = devm_ioremap(dev, res->start, pdata 34 drivers/net/ethernet/apm/xgene-v2/main.c if (!pdata->resources.base_addr) { pdata 49 drivers/net/ethernet/apm/xgene-v2/main.c pdata->resources.phy_mode = phy_mode; pdata 51 drivers/net/ethernet/apm/xgene-v2/main.c if (pdata->resources.phy_mode != PHY_INTERFACE_MODE_RGMII) { pdata 59 drivers/net/ethernet/apm/xgene-v2/main.c pdata->resources.irq = ret; pdata 66 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 67 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_desc_ring *ring = pdata->rx_ring; pdata 69 drivers/net/ethernet/apm/xgene-v2/main.c struct device *dev = &pdata->pdev->dev; pdata 116 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 124 drivers/net/ethernet/apm/xgene-v2/main.c pdata->nbufs = NUM_BUFS; pdata 131 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = data; pdata 133 drivers/net/ethernet/apm/xgene-v2/main.c if (napi_schedule_prep(&pdata->napi)) { pdata 134 drivers/net/ethernet/apm/xgene-v2/main.c xge_intr_disable(pdata); pdata 135 drivers/net/ethernet/apm/xgene-v2/main.c __napi_schedule(&pdata->napi); pdata 143 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 146 drivers/net/ethernet/apm/xgene-v2/main.c snprintf(pdata->irq_name, IRQ_ID_SIZE, "%s", ndev->name); pdata 148 drivers/net/ethernet/apm/xgene-v2/main.c ret = request_irq(pdata->resources.irq, xge_irq, 0, pdata->irq_name, pdata 149 drivers/net/ethernet/apm/xgene-v2/main.c pdata); pdata 151 drivers/net/ethernet/apm/xgene-v2/main.c netdev_err(ndev, "Failed to request irq %s\n", pdata->irq_name); pdata 158 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 160 drivers/net/ethernet/apm/xgene-v2/main.c free_irq(pdata->resources.irq, pdata); pdata 174 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 175 drivers/net/ethernet/apm/xgene-v2/main.c struct device *dev = &pdata->pdev->dev; pdata 184 drivers/net/ethernet/apm/xgene-v2/main.c tx_ring = pdata->tx_ring; pdata 220 drivers/net/ethernet/apm/xgene-v2/main.c xge_wr_csr(pdata, DMATXCTRL, 1); pdata 238 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 239 drivers/net/ethernet/apm/xgene-v2/main.c struct device *dev = &pdata->pdev->dev; pdata 248 drivers/net/ethernet/apm/xgene-v2/main.c tx_ring = pdata->tx_ring; pdata 251 drivers/net/ethernet/apm/xgene-v2/main.c data = xge_rd_csr(pdata, DMATXSTATUS); pdata 266 drivers/net/ethernet/apm/xgene-v2/main.c pdata->stats.tx_packets++; pdata 267 drivers/net/ethernet/apm/xgene-v2/main.c pdata->stats.tx_bytes += skb->len; pdata 274 drivers/net/ethernet/apm/xgene-v2/main.c xge_wr_csr(pdata, DMATXSTATUS, 1); pdata 287 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 288 drivers/net/ethernet/apm/xgene-v2/main.c struct device *dev = &pdata->pdev->dev; pdata 299 drivers/net/ethernet/apm/xgene-v2/main.c rx_ring = pdata->rx_ring; pdata 302 drivers/net/ethernet/apm/xgene-v2/main.c data = xge_rd_csr(pdata, DMARXSTATUS); pdata 323 drivers/net/ethernet/apm/xgene-v2/main.c pdata->stats.rx_errors++; pdata 331 drivers/net/ethernet/apm/xgene-v2/main.c pdata->stats.rx_packets++; pdata 332 drivers/net/ethernet/apm/xgene-v2/main.c pdata->stats.rx_bytes += len; pdata 333 drivers/net/ethernet/apm/xgene-v2/main.c napi_gro_receive(&pdata->napi, skb); pdata 336 drivers/net/ethernet/apm/xgene-v2/main.c xge_wr_csr(pdata, DMARXSTATUS, 1); pdata 337 drivers/net/ethernet/apm/xgene-v2/main.c xge_wr_csr(pdata, DMARXCTRL, 1); pdata 354 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 355 drivers/net/ethernet/apm/xgene-v2/main.c struct device *dev = &pdata->pdev->dev; pdata 371 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 372 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_desc_ring *ring = pdata->rx_ring; pdata 373 drivers/net/ethernet/apm/xgene-v2/main.c struct device *dev = &pdata->pdev->dev; pdata 393 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 396 drivers/net/ethernet/apm/xgene-v2/main.c xge_delete_desc_ring(ndev, pdata->tx_ring); pdata 400 drivers/net/ethernet/apm/xgene-v2/main.c xge_delete_desc_ring(ndev, pdata->rx_ring); pdata 405 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 406 drivers/net/ethernet/apm/xgene-v2/main.c struct device *dev = &pdata->pdev->dev; pdata 439 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 448 drivers/net/ethernet/apm/xgene-v2/main.c pdata->tx_ring = ring; pdata 449 drivers/net/ethernet/apm/xgene-v2/main.c xge_update_tx_desc_addr(pdata); pdata 456 drivers/net/ethernet/apm/xgene-v2/main.c pdata->rx_ring = ring; pdata 457 drivers/net/ethernet/apm/xgene-v2/main.c xge_update_rx_desc_addr(pdata); pdata 472 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 479 drivers/net/ethernet/apm/xgene-v2/main.c napi_enable(&pdata->napi); pdata 484 drivers/net/ethernet/apm/xgene-v2/main.c xge_intr_enable(pdata); pdata 485 drivers/net/ethernet/apm/xgene-v2/main.c xge_wr_csr(pdata, DMARXCTRL, 1); pdata 488 drivers/net/ethernet/apm/xgene-v2/main.c xge_mac_enable(pdata); pdata 496 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 499 drivers/net/ethernet/apm/xgene-v2/main.c xge_mac_disable(pdata); pdata 502 drivers/net/ethernet/apm/xgene-v2/main.c xge_intr_disable(pdata); pdata 504 drivers/net/ethernet/apm/xgene-v2/main.c napi_disable(&pdata->napi); pdata 513 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata; pdata 516 drivers/net/ethernet/apm/xgene-v2/main.c pdata = netdev_priv(ndev); pdata 523 drivers/net/ethernet/apm/xgene-v2/main.c xge_intr_enable(pdata); pdata 531 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 538 drivers/net/ethernet/apm/xgene-v2/main.c xge_mac_set_station_addr(pdata); pdata 553 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 554 drivers/net/ethernet/apm/xgene-v2/main.c struct device *dev = &pdata->pdev->dev; pdata 562 drivers/net/ethernet/apm/xgene-v2/main.c tx_ring = pdata->tx_ring; pdata 580 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 588 drivers/net/ethernet/apm/xgene-v2/main.c xge_intr_disable(pdata); pdata 589 drivers/net/ethernet/apm/xgene-v2/main.c napi_disable(&pdata->napi); pdata 591 drivers/net/ethernet/apm/xgene-v2/main.c xge_wr_csr(pdata, DMATXCTRL, 0); pdata 594 drivers/net/ethernet/apm/xgene-v2/main.c xge_wr_csr(pdata, DMATXSTATUS, ~0U); pdata 596 drivers/net/ethernet/apm/xgene-v2/main.c xge_setup_desc(pdata->tx_ring); pdata 597 drivers/net/ethernet/apm/xgene-v2/main.c xge_update_tx_desc_addr(pdata); pdata 598 drivers/net/ethernet/apm/xgene-v2/main.c xge_mac_init(pdata); pdata 600 drivers/net/ethernet/apm/xgene-v2/main.c napi_enable(&pdata->napi); pdata 601 drivers/net/ethernet/apm/xgene-v2/main.c xge_intr_enable(pdata); pdata 602 drivers/net/ethernet/apm/xgene-v2/main.c xge_mac_enable(pdata); pdata 612 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 613 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_stats *stats = &pdata->stats; pdata 636 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata; pdata 639 drivers/net/ethernet/apm/xgene-v2/main.c ndev = alloc_etherdev(sizeof(*pdata)); pdata 643 drivers/net/ethernet/apm/xgene-v2/main.c pdata = netdev_priv(ndev); pdata 645 drivers/net/ethernet/apm/xgene-v2/main.c pdata->pdev = pdev; pdata 646 drivers/net/ethernet/apm/xgene-v2/main.c pdata->ndev = ndev; pdata 648 drivers/net/ethernet/apm/xgene-v2/main.c platform_set_drvdata(pdev, pdata); pdata 654 drivers/net/ethernet/apm/xgene-v2/main.c ret = xge_get_resources(pdata); pdata 675 drivers/net/ethernet/apm/xgene-v2/main.c netif_napi_add(ndev, &pdata->napi, xge_napi, NAPI_POLL_WEIGHT); pdata 693 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata; pdata 696 drivers/net/ethernet/apm/xgene-v2/main.c pdata = platform_get_drvdata(pdev); pdata 697 drivers/net/ethernet/apm/xgene-v2/main.c ndev = pdata->ndev; pdata 713 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata; pdata 715 drivers/net/ethernet/apm/xgene-v2/main.c pdata = platform_get_drvdata(pdev); pdata 716 drivers/net/ethernet/apm/xgene-v2/main.c if (!pdata) pdata 719 drivers/net/ethernet/apm/xgene-v2/main.c if (!pdata->ndev) pdata 14 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = bus->priv; pdata 20 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_wr_csr(pdata, MII_MGMT_ADDRESS, val); pdata 22 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_wr_csr(pdata, MII_MGMT_CONTROL, data); pdata 25 drivers/net/ethernet/apm/xgene-v2/mdio.c done = xge_rd_csr(pdata, MII_MGMT_INDICATORS); pdata 38 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = bus->priv; pdata 44 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_wr_csr(pdata, MII_MGMT_ADDRESS, val); pdata 46 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_wr_csr(pdata, MII_MGMT_COMMAND, MII_READ_CYCLE); pdata 49 drivers/net/ethernet/apm/xgene-v2/mdio.c done = xge_rd_csr(pdata, MII_MGMT_INDICATORS); pdata 57 drivers/net/ethernet/apm/xgene-v2/mdio.c data = xge_rd_csr(pdata, MII_MGMT_STATUS); pdata 58 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_wr_csr(pdata, MII_MGMT_COMMAND, 0); pdata 65 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 69 drivers/net/ethernet/apm/xgene-v2/mdio.c if (pdata->phy_speed != phydev->speed) { pdata 70 drivers/net/ethernet/apm/xgene-v2/mdio.c pdata->phy_speed = phydev->speed; pdata 71 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_mac_set_speed(pdata); pdata 72 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_mac_enable(pdata); pdata 76 drivers/net/ethernet/apm/xgene-v2/mdio.c if (pdata->phy_speed != SPEED_UNKNOWN) { pdata 77 drivers/net/ethernet/apm/xgene-v2/mdio.c pdata->phy_speed = SPEED_UNKNOWN; pdata 78 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_mac_disable(pdata); pdata 86 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 87 drivers/net/ethernet/apm/xgene-v2/mdio.c struct mii_bus *mdio_bus = pdata->mdio_bus; pdata 101 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = netdev_priv(ndev); pdata 102 drivers/net/ethernet/apm/xgene-v2/mdio.c struct device *dev = &pdata->pdev->dev; pdata 114 drivers/net/ethernet/apm/xgene-v2/mdio.c mdio_bus->priv = pdata; pdata 117 drivers/net/ethernet/apm/xgene-v2/mdio.c pdata->mdio_bus = mdio_bus; pdata 132 drivers/net/ethernet/apm/xgene-v2/mdio.c pdata->resources.phy_mode); pdata 151 drivers/net/ethernet/apm/xgene-v2/mdio.c pdata->phy_speed = SPEED_UNKNOWN; pdata 34 drivers/net/ethernet/apm/xgene-v2/ring.c void xge_update_tx_desc_addr(struct xge_pdata *pdata) pdata 36 drivers/net/ethernet/apm/xgene-v2/ring.c struct xge_desc_ring *ring = pdata->tx_ring; pdata 39 drivers/net/ethernet/apm/xgene-v2/ring.c xge_wr_csr(pdata, DMATXDESCL, dma_addr); pdata 40 drivers/net/ethernet/apm/xgene-v2/ring.c xge_wr_csr(pdata, DMATXDESCH, upper_32_bits(dma_addr)); pdata 46 drivers/net/ethernet/apm/xgene-v2/ring.c void xge_update_rx_desc_addr(struct xge_pdata *pdata) pdata 48 drivers/net/ethernet/apm/xgene-v2/ring.c struct xge_desc_ring *ring = pdata->rx_ring; pdata 51 drivers/net/ethernet/apm/xgene-v2/ring.c xge_wr_csr(pdata, DMARXDESCL, dma_addr); pdata 52 drivers/net/ethernet/apm/xgene-v2/ring.c xge_wr_csr(pdata, DMARXDESCH, upper_32_bits(dma_addr)); pdata 58 drivers/net/ethernet/apm/xgene-v2/ring.c void xge_intr_enable(struct xge_pdata *pdata) pdata 63 drivers/net/ethernet/apm/xgene-v2/ring.c xge_wr_csr(pdata, DMAINTRMASK, data); pdata 66 drivers/net/ethernet/apm/xgene-v2/ring.c void xge_intr_disable(struct xge_pdata *pdata) pdata 68 drivers/net/ethernet/apm/xgene-v2/ring.c xge_wr_csr(pdata, DMAINTRMASK, 0); pdata 102 drivers/net/ethernet/apm/xgene-v2/ring.h void xge_update_tx_desc_addr(struct xge_pdata *pdata); pdata 103 drivers/net/ethernet/apm/xgene-v2/ring.h void xge_update_rx_desc_addr(struct xge_pdata *pdata); pdata 104 drivers/net/ethernet/apm/xgene-v2/ring.h void xge_intr_enable(struct xge_pdata *pdata); pdata 105 drivers/net/ethernet/apm/xgene-v2/ring.h void xge_intr_disable(struct xge_pdata *pdata); pdata 23 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static void xgene_cle_idt_to_hw(struct xgene_enet_pdata *pdata, pdata 27 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c if (pdata->enet_id == XGENE_ENET1) { pdata 38 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static void xgene_cle_dbptr_to_hw(struct xgene_enet_pdata *pdata, pdata 155 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static void xgene_cle_enable_ptree(struct xgene_enet_pdata *pdata, pdata 176 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static int xgene_cle_setup_dbptr(struct xgene_enet_pdata *pdata, pdata 186 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c xgene_cle_dbptr_to_hw(pdata, &ptree->dbptr[i], buf); pdata 563 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static int xgene_cle_setup_node(struct xgene_enet_pdata *pdata, pdata 595 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static int xgene_cle_setup_ptree(struct xgene_enet_pdata *pdata, pdata 600 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c ret = xgene_cle_setup_node(pdata, cle); pdata 604 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c ret = xgene_cle_setup_dbptr(pdata, cle); pdata 608 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c xgene_cle_enable_ptree(pdata, cle); pdata 613 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static void xgene_cle_setup_def_dbptr(struct xgene_enet_pdata *pdata, pdata 625 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c xgene_cle_dbptr_to_hw(pdata, dbptr, buf); pdata 697 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static int xgene_cle_set_rss_idt(struct xgene_enet_pdata *pdata) pdata 704 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c idx = i % pdata->rxq_cnt; pdata 705 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c pool_id = pdata->rx_ring[idx]->buf_pool->id; pdata 707 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c dstqid = xgene_enet_dst_ring_num(pdata->rx_ring[idx]); pdata 709 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c if (pdata->rx_ring[idx]->page_pool) { pdata 710 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c pool_id = pdata->rx_ring[idx]->page_pool->id; pdata 715 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c xgene_cle_idt_to_hw(pdata, dstqid, fpsel, nfpsel, &idt_reg); pdata 716 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c ret = xgene_cle_dram_wr(&pdata->cle, &idt_reg, 1, i, pdata 722 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c ret = xgene_cle_set_rss_skeys(&pdata->cle); pdata 729 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static int xgene_cle_setup_rss(struct xgene_enet_pdata *pdata) pdata 731 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c struct xgene_enet_cle *cle = &pdata->cle; pdata 754 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c ret = xgene_cle_set_rss_idt(pdata); pdata 761 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static int xgene_enet_cle_init(struct xgene_enet_pdata *pdata) pdata 763 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c struct xgene_enet_cle *enet_cle = &pdata->cle; pdata 770 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII) pdata 776 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c ret = xgene_cle_setup_rss(pdata); pdata 778 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c netdev_err(pdata->ndev, "RSS initialization failed\n"); pdata 782 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c def_qid = xgene_enet_dst_ring_num(pdata->rx_ring[0]); pdata 783 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c pool_id = pdata->rx_ring[0]->buf_pool->id; pdata 786 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c if (pdata->rx_ring[0]->page_pool) { pdata 787 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c pool_id = pdata->rx_ring[0]->page_pool->id; pdata 801 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c xgene_cle_setup_def_dbptr(pdata, enet_cle, &dbptr[DB_RES_DEF], pdata 817 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c return xgene_cle_setup_ptree(pdata, enet_cle); pdata 102 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 103 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct platform_device *pdev = pdata->pdev; pdata 114 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 118 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c if (phy_interface_mode_is_rgmii(pdata->phy_mode)) { pdata 125 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c } else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { pdata 126 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c if (pdata->mdio_driver) { pdata 169 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 172 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c if (phy_interface_mode_is_rgmii(pdata->phy_mode)) { pdata 179 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { pdata 180 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c if (pdata->mdio_driver) { pdata 218 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static void xgene_get_extd_stats(struct xgene_enet_pdata *pdata) pdata 225 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c tmp = xgene_enet_rd_stat(pdata, gstrings_extd_stats[i].addr); pdata 228 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[i] += (tmp & mask); pdata 232 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { pdata 234 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[RALN_IDX] = 0; pdata 237 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[RFCS_IDX] -= pdata->extd_stats[RALN_IDX]; pdata 238 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[RFLR_IDX] -= pdata->extd_stats[RUND_IDX]; pdata 239 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[TFCS_IDX] -= pdata->extd_stats[TFRG_IDX]; pdata 242 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->mac_ops->get_drop_cnt(pdata, &rx_drop, &tx_drop); pdata 243 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[RX_OVERRUN_IDX] += rx_drop; pdata 244 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[TX_UNDERRUN_IDX] += tx_drop; pdata 247 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[FALSE_RFLR_IDX] = pdata->false_rflr; pdata 249 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats[FALSE_RJBR_IDX] = pdata->vlan_rjbr; pdata 252 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c int xgene_extd_stats_init(struct xgene_enet_pdata *pdata) pdata 254 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->extd_stats = devm_kmalloc_array(&pdata->pdev->dev, pdata 256 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c if (!pdata->extd_stats) pdata 259 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c xgene_get_extd_stats(pdata); pdata 260 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c memset(pdata->extd_stats, 0, XGENE_EXTD_STATS_LEN * sizeof(u64)); pdata 269 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 277 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c xgene_get_extd_stats(pdata); pdata 279 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c data[i + XGENE_STATS_LEN] = pdata->extd_stats[i]; pdata 285 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 287 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pp->autoneg = pdata->pause_autoneg; pdata 288 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pp->tx_pause = pdata->tx_pause; pdata 289 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pp->rx_pause = pdata->rx_pause; pdata 295 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 298 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c if (phy_interface_mode_is_rgmii(pdata->phy_mode) || pdata 299 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { pdata 306 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->pause_autoneg = pp->autoneg; pdata 307 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->tx_pause = pp->tx_pause; pdata 308 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->rx_pause = pp->rx_pause; pdata 313 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); pdata 314 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); pdata 320 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->tx_pause = pp->tx_pause; pdata 321 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->rx_pause = pp->rx_pause; pdata 323 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); pdata 324 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); pdata 63 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); pdata 65 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c iowrite32(data, pdata->ring_csr_addr + offset); pdata 71 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); pdata 73 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c *data = ioread32(pdata->ring_csr_addr + offset); pdata 78 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); pdata 82 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c for (i = 0; i < pdata->ring_ops->num_ring_config; i++) { pdata 223 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_wr_csr(struct xgene_enet_pdata *pdata, pdata 226 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void __iomem *addr = pdata->eth_csr_addr + offset; pdata 231 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *pdata, pdata 234 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void __iomem *addr = pdata->eth_ring_if_addr + offset; pdata 239 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *pdata, pdata 242 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void __iomem *addr = pdata->eth_diag_csr_addr + offset; pdata 247 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_wr_mcx_csr(struct xgene_enet_pdata *pdata, pdata 250 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void __iomem *addr = pdata->mcx_mac_csr_addr + offset; pdata 255 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void xgene_enet_wr_mac(struct xgene_enet_pdata *pdata, u32 wr_addr, u32 wr_data) pdata 258 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; pdata 262 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (pdata->mdio_driver && ndev->phydev && pdata 263 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c phy_interface_mode_is_rgmii(pdata->phy_mode)) { pdata 269 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c addr = pdata->mcx_mac_addr + MAC_ADDR_REG_OFFSET; pdata 270 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c wr = pdata->mcx_mac_addr + MAC_WRITE_REG_OFFSET; pdata 271 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c cmd = pdata->mcx_mac_addr + MAC_COMMAND_REG_OFFSET; pdata 272 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c cmd_done = pdata->mcx_mac_addr + MAC_COMMAND_DONE_REG_OFFSET; pdata 274 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c spin_lock(&pdata->mac_lock); pdata 287 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c spin_unlock(&pdata->mac_lock); pdata 290 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_rd_csr(struct xgene_enet_pdata *pdata, pdata 293 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void __iomem *addr = pdata->eth_csr_addr + offset; pdata 298 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_rd_diag_csr(struct xgene_enet_pdata *pdata, pdata 301 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void __iomem *addr = pdata->eth_diag_csr_addr + offset; pdata 306 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_rd_mcx_csr(struct xgene_enet_pdata *pdata, pdata 309 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void __iomem *addr = pdata->mcx_mac_csr_addr + offset; pdata 314 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c u32 xgene_enet_rd_mac(struct xgene_enet_pdata *pdata, u32 rd_addr) pdata 317 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; pdata 321 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (pdata->mdio_driver && ndev->phydev && pdata 322 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c phy_interface_mode_is_rgmii(pdata->phy_mode)) { pdata 328 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c addr = pdata->mcx_mac_addr + MAC_ADDR_REG_OFFSET; pdata 329 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c rd = pdata->mcx_mac_addr + MAC_READ_REG_OFFSET; pdata 330 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c cmd = pdata->mcx_mac_addr + MAC_COMMAND_REG_OFFSET; pdata 331 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c cmd_done = pdata->mcx_mac_addr + MAC_COMMAND_DONE_REG_OFFSET; pdata 333 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c spin_lock(&pdata->mac_lock); pdata 345 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c spin_unlock(&pdata->mac_lock); pdata 350 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c u32 xgene_enet_rd_stat(struct xgene_enet_pdata *pdata, u32 rd_addr) pdata 356 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c addr = pdata->mcx_stats_addr + STAT_ADDR_REG_OFFSET; pdata 357 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c rd = pdata->mcx_stats_addr + STAT_READ_REG_OFFSET; pdata 358 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c cmd = pdata->mcx_stats_addr + STAT_COMMAND_REG_OFFSET; pdata 359 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c cmd_done = pdata->mcx_stats_addr + STAT_COMMAND_DONE_REG_OFFSET; pdata 361 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c spin_lock(&pdata->stats_lock); pdata 369 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_err(pdata->ndev, "mac stats read failed, addr: %04x\n", pdata 374 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c spin_unlock(&pdata->stats_lock); pdata 379 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_set_mac_addr(struct xgene_enet_pdata *pdata) pdata 382 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c u8 *dev_addr = pdata->ndev->dev_addr; pdata 388 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, STATION_ADDR0_ADDR, addr0); pdata 389 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, STATION_ADDR1_ADDR, addr1); pdata 392 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static int xgene_enet_ecc_init(struct xgene_enet_pdata *pdata) pdata 394 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; pdata 398 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_diag_csr(pdata, ENET_CFG_MEM_RAM_SHUTDOWN_ADDR, 0x0); pdata 401 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_diag_csr(pdata, ENET_BLOCK_MEM_RDY_ADDR, &data); pdata 412 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_reset(struct xgene_enet_pdata *pdata) pdata 414 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_1_ADDR, SOFT_RESET1); pdata 415 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_1_ADDR, 0); pdata 418 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_configure_clock(struct xgene_enet_pdata *pdata) pdata 420 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct device *dev = &pdata->pdev->dev; pdata 423 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct clk *parent = clk_get_parent(pdata->clk); pdata 425 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c switch (pdata->phy_speed) { pdata 439 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c switch (pdata->phy_speed) { pdata 457 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_set_speed(struct xgene_enet_pdata *pdata) pdata 462 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_mcx_csr(pdata, ICM_CONFIG0_REG_0_ADDR, &icm0); pdata 463 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_mcx_csr(pdata, ICM_CONFIG2_REG_0_ADDR, &icm2); pdata 464 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mc2 = xgene_enet_rd_mac(pdata, MAC_CONFIG_2_ADDR); pdata 465 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c intf_ctl = xgene_enet_rd_mac(pdata, INTERFACE_CONTROL_ADDR); pdata 466 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_csr(pdata, RGMII_REG_0_ADDR, &rgmii); pdata 468 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c switch (pdata->phy_speed) { pdata 490 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c CFG_TXCLK_MUXSEL0_SET(&rgmii, pdata->tx_delay); pdata 491 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c CFG_RXCLK_MUXSEL0_SET(&rgmii, pdata->rx_delay); pdata 494 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_csr(pdata, DEBUG_REG_ADDR, &value); pdata 496 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, DEBUG_REG_ADDR, value); pdata 501 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_2_ADDR, mc2); pdata 502 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, INTERFACE_CONTROL_ADDR, intf_ctl); pdata 503 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, RGMII_REG_0_ADDR, rgmii); pdata 504 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_configure_clock(pdata); pdata 506 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mcx_csr(pdata, ICM_CONFIG0_REG_0_ADDR, icm0); pdata 507 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mcx_csr(pdata, ICM_CONFIG2_REG_0_ADDR, icm2); pdata 510 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_set_frame_size(struct xgene_enet_pdata *pdata, int size) pdata 512 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAX_FRAME_LEN_ADDR, size); pdata 515 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_enable_tx_pause(struct xgene_enet_pdata *pdata, pdata 520 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_mcx_csr(pdata, CSR_ECM_CFG_0_ADDR, &data); pdata 527 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mcx_csr(pdata, CSR_ECM_CFG_0_ADDR, data); pdata 530 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_flowctl_tx(struct xgene_enet_pdata *pdata, bool enable) pdata 534 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c data = xgene_enet_rd_mac(pdata, MAC_CONFIG_1_ADDR); pdata 541 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_1_ADDR, data); pdata 543 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->mac_ops->enable_tx_pause(pdata, enable); pdata 546 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_flowctl_rx(struct xgene_enet_pdata *pdata, bool enable) pdata 550 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c data = xgene_enet_rd_mac(pdata, MAC_CONFIG_1_ADDR); pdata 557 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_1_ADDR, data); pdata 560 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_init(struct xgene_enet_pdata *pdata) pdata 564 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (!pdata->mdio_driver) pdata 565 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_gmac_reset(pdata); pdata 567 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_gmac_set_speed(pdata); pdata 568 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_gmac_set_mac_addr(pdata); pdata 571 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c value = xgene_enet_rd_mac(pdata, MII_MGMT_CONFIG_ADDR); pdata 573 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MII_MGMT_CONFIG_ADDR, value); pdata 576 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_csr(pdata, RSIF_CONFIG_REG_ADDR, &value); pdata 578 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, RSIF_CONFIG_REG_ADDR, value); pdata 581 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, RSIF_RAM_DBG_REG0_ADDR, 0); pdata 584 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_mcx_csr(pdata, CSR_MULTI_DPF0_ADDR, &value); pdata 586 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mcx_csr(pdata, CSR_MULTI_DPF0_ADDR, value); pdata 588 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, RXBUF_PAUSE_THRESH, DEF_PAUSE_THRES); pdata 589 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, RXBUF_PAUSE_OFF_THRESH, DEF_PAUSE_OFF_THRES); pdata 591 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_gmac_flowctl_tx(pdata, pdata->tx_pause); pdata 592 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_gmac_flowctl_rx(pdata, pdata->rx_pause); pdata 595 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, CFG_LINK_AGGR_RESUME_0_ADDR, TX_PORT0); pdata 597 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_mcx_csr(pdata, RX_DV_GATE_REG_0_ADDR, &value); pdata 601 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mcx_csr(pdata, RX_DV_GATE_REG_0_ADDR, value); pdata 603 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, CFG_BYPASS_ADDR, RESUME_TX); pdata 606 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_get_drop_cnt(struct xgene_enet_pdata *pdata, pdata 611 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_mcx_csr(pdata, ICM_ECM_DROP_COUNT_REG0_ADDR, &count); pdata 615 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_mcx_csr(pdata, ECM_CONFIG0_REG_0_ADDR, &count); pdata 618 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_config_ring_if_assoc(struct xgene_enet_pdata *pdata) pdata 622 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_ring_if(pdata, ENET_CFGSSQMIWQASSOC_ADDR, val); pdata 623 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_ring_if(pdata, ENET_CFGSSQMIFPQASSOC_ADDR, val); pdata 624 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_ring_if(pdata, ENET_CFGSSQMIQMLITEWQASSOC_ADDR, val); pdata 625 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_ring_if(pdata, ENET_CFGSSQMIQMLITEFPQASSOC_ADDR, val); pdata 628 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_cle_bypass(struct xgene_enet_pdata *pdata, pdata 638 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_csr(pdata, CLE_BYPASS_REG0_0_ADDR, &cb); pdata 642 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, CLE_BYPASS_REG0_0_ADDR, cb); pdata 644 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_rd_csr(pdata, CLE_BYPASS_REG1_0_ADDR, &cb); pdata 648 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_csr(pdata, CLE_BYPASS_REG1_0_ADDR, cb); pdata 651 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_rx_enable(struct xgene_enet_pdata *pdata) pdata 655 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c data = xgene_enet_rd_mac(pdata, MAC_CONFIG_1_ADDR); pdata 656 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_1_ADDR, data | RX_EN); pdata 659 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_tx_enable(struct xgene_enet_pdata *pdata) pdata 663 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c data = xgene_enet_rd_mac(pdata, MAC_CONFIG_1_ADDR); pdata 664 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_1_ADDR, data | TX_EN); pdata 667 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_rx_disable(struct xgene_enet_pdata *pdata) pdata 671 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c data = xgene_enet_rd_mac(pdata, MAC_CONFIG_1_ADDR); pdata 672 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_1_ADDR, data & ~RX_EN); pdata 675 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gmac_tx_disable(struct xgene_enet_pdata *pdata) pdata 679 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c data = xgene_enet_rd_mac(pdata, MAC_CONFIG_1_ADDR); pdata 680 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_mac(pdata, MAC_CONFIG_1_ADDR, data & ~TX_EN); pdata 694 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static int xgene_enet_reset(struct xgene_enet_pdata *pdata) pdata 696 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct device *dev = &pdata->pdev->dev; pdata 698 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (!xgene_ring_mgr_init(pdata)) pdata 701 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (pdata->mdio_driver) { pdata 702 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_config_ring_if_assoc(pdata); pdata 707 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c clk_prepare_enable(pdata->clk); pdata 709 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c clk_disable_unprepare(pdata->clk); pdata 711 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c clk_prepare_enable(pdata->clk); pdata 717 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c status = acpi_evaluate_object(ACPI_HANDLE(&pdata->pdev->dev), pdata 720 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c acpi_evaluate_object(ACPI_HANDLE(&pdata->pdev->dev), pdata 726 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_ecc_init(pdata); pdata 727 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_config_ring_if_assoc(pdata); pdata 732 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_clear(struct xgene_enet_pdata *pdata, pdata 745 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_wr_ring_if(pdata, addr, data); pdata 748 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_gport_shutdown(struct xgene_enet_pdata *pdata) pdata 750 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct device *dev = &pdata->pdev->dev; pdata 753 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (!IS_ERR(pdata->clk)) pdata 754 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c clk_disable_unprepare(pdata->clk); pdata 760 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 766 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (!phydev->duplex || !pdata->pause_autoneg) pdata 769 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (pdata->tx_pause) pdata 772 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (pdata->rx_pause) pdata 787 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (tx_pause != pdata->tx_pause) { pdata 788 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->tx_pause = tx_pause; pdata 789 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); pdata 792 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (rx_pause != pdata->rx_pause) { pdata 793 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->rx_pause = rx_pause; pdata 794 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); pdata 802 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 803 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c const struct xgene_mac_ops *mac_ops = pdata->mac_ops; pdata 807 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (pdata->phy_speed != phydev->speed) { pdata 808 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->phy_speed = phydev->speed; pdata 809 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mac_ops->set_speed(pdata); pdata 810 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mac_ops->rx_enable(pdata); pdata 811 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mac_ops->tx_enable(pdata); pdata 817 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mac_ops->rx_disable(pdata); pdata 818 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mac_ops->tx_disable(pdata); pdata 819 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->phy_speed = SPEED_UNKNOWN; pdata 845 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 848 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct device *dev = &pdata->pdev->dev; pdata 856 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 0, pdata->phy_mode); pdata 876 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->phy_mode)) { pdata 885 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->phy_speed = SPEED_UNKNOWN; pdata 894 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static int xgene_mdiobus_register(struct xgene_enet_pdata *pdata, pdata 897 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct device *dev = &pdata->pdev->dev; pdata 898 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; pdata 943 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c int xgene_enet_mdio_config(struct xgene_enet_pdata *pdata) pdata 945 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; pdata 959 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mdio_bus->priv = (void __force *)pdata->mcx_mac_addr; pdata 960 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mdio_bus->parent = &pdata->pdev->dev; pdata 962 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c ret = xgene_mdiobus_register(pdata, mdio_bus); pdata 968 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->mdio_bus = mdio_bus; pdata 972 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_mdio_remove(pdata); pdata 977 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void xgene_enet_phy_disconnect(struct xgene_enet_pdata *pdata) pdata 979 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; pdata 985 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c void xgene_enet_mdio_remove(struct xgene_enet_pdata *pdata) pdata 987 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; pdata 992 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mdiobus_unregister(pdata->mdio_bus); pdata 993 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c mdiobus_free(pdata->mdio_bus); pdata 994 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c pdata->mdio_bus = NULL; pdata 424 drivers/net/ethernet/apm/xgene/xgene_enet_hw.h int xgene_enet_mdio_config(struct xgene_enet_pdata *pdata); pdata 425 drivers/net/ethernet/apm/xgene/xgene_enet_hw.h void xgene_enet_mdio_remove(struct xgene_enet_pdata *pdata); pdata 428 drivers/net/ethernet/apm/xgene/xgene_enet_hw.h void xgene_enet_phy_disconnect(struct xgene_enet_pdata *pdata); pdata 429 drivers/net/ethernet/apm/xgene/xgene_enet_hw.h u32 xgene_enet_rd_mac(struct xgene_enet_pdata *pdata, u32 rd_addr); pdata 430 drivers/net/ethernet/apm/xgene/xgene_enet_hw.h void xgene_enet_wr_mac(struct xgene_enet_pdata *pdata, u32 wr_addr, pdata 432 drivers/net/ethernet/apm/xgene/xgene_enet_hw.h u32 xgene_enet_rd_stat(struct xgene_enet_pdata *pdata, u32 rd_addr); pdata 71 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 84 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); pdata 112 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops->wr_cmd(buf_pool, nbuf); pdata 123 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 134 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); pdata 161 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops->wr_cmd(buf_pool, nbuf); pdata 228 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(cp_ring->ndev); pdata 255 drivers/net/ethernet/apm/xgene/xgene_enet_main.c spin_lock(&pdata->mss_lock); pdata 256 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mss_refcnt[mss_index]--; pdata 257 drivers/net/ethernet/apm/xgene/xgene_enet_main.c spin_unlock(&pdata->mss_lock); pdata 278 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 282 drivers/net/ethernet/apm/xgene/xgene_enet_main.c spin_lock(&pdata->mss_lock); pdata 286 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->mss[i] == mss) { pdata 287 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mss_refcnt[i]++; pdata 294 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->mss_refcnt[i]) { pdata 295 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mss_refcnt[i]++; pdata 296 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mac_ops->set_mss(pdata, mss, i); pdata 297 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mss[i] = mss; pdata 302 drivers/net/ethernet/apm/xgene/xgene_enet_main.c spin_unlock(&pdata->mss_lock); pdata 410 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(tx_ring->ndev); pdata 543 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->tx_level[tx_ring->cp_ring->index] += count; pdata 552 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 555 drivers/net/ethernet/apm/xgene/xgene_enet_main.c u32 tx_level = pdata->tx_level[index]; pdata 558 drivers/net/ethernet/apm/xgene/xgene_enet_main.c tx_ring = pdata->tx_ring[index]; pdata 559 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (tx_level < pdata->txc_level[index]) pdata 560 drivers/net/ethernet/apm/xgene/xgene_enet_main.c tx_level += ((typeof(pdata->tx_level[index]))~0U); pdata 562 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if ((tx_level - pdata->txc_level[index]) > pdata->tx_qcnt_hi) { pdata 584 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops->wr_cmd(tx_ring, count); pdata 674 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 687 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); pdata 708 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->false_rflr++; pdata 710 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->vlan_rjbr++; pdata 785 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 829 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->txc_level[ring->index] += desc_count; pdata 836 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops->wr_cmd(ring, -count); pdata 864 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 868 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mac_ops->reset(pdata); pdata 870 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->txq_cnt; i++) { pdata 879 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 883 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 884 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->rx_ring[i]; pdata 885 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->cq_cnt) { pdata 894 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->cq_cnt; i++) { pdata 895 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->tx_ring[i]->cp_ring; pdata 903 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 909 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 910 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->rx_ring[i]; pdata 920 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->cq_cnt; i++) { pdata 921 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->tx_ring[i]->cp_ring; pdata 936 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 941 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); pdata 944 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 945 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->rx_ring[i]; pdata 950 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->cq_cnt; i++) { pdata 951 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->tx_ring[i]->cp_ring; pdata 957 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_napi_enable(struct xgene_enet_pdata *pdata) pdata 962 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 963 drivers/net/ethernet/apm/xgene/xgene_enet_main.c napi = &pdata->rx_ring[i]->napi; pdata 967 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->cq_cnt; i++) { pdata 968 drivers/net/ethernet/apm/xgene/xgene_enet_main.c napi = &pdata->tx_ring[i]->cp_ring->napi; pdata 973 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_napi_disable(struct xgene_enet_pdata *pdata) pdata 978 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 979 drivers/net/ethernet/apm/xgene/xgene_enet_main.c napi = &pdata->rx_ring[i]->napi; pdata 983 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->cq_cnt; i++) { pdata 984 drivers/net/ethernet/apm/xgene/xgene_enet_main.c napi = &pdata->tx_ring[i]->cp_ring->napi; pdata 991 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 992 drivers/net/ethernet/apm/xgene/xgene_enet_main.c const struct xgene_mac_ops *mac_ops = pdata->mac_ops; pdata 995 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = netif_set_real_num_tx_queues(ndev, pdata->txq_cnt); pdata 999 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = netif_set_real_num_rx_queues(ndev, pdata->rxq_cnt); pdata 1003 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_napi_enable(pdata); pdata 1011 drivers/net/ethernet/apm/xgene/xgene_enet_main.c schedule_delayed_work(&pdata->link_work, PHY_POLL_LINK_OFF); pdata 1015 drivers/net/ethernet/apm/xgene/xgene_enet_main.c mac_ops->tx_enable(pdata); pdata 1016 drivers/net/ethernet/apm/xgene/xgene_enet_main.c mac_ops->rx_enable(pdata); pdata 1024 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 1025 drivers/net/ethernet/apm/xgene/xgene_enet_main.c const struct xgene_mac_ops *mac_ops = pdata->mac_ops; pdata 1029 drivers/net/ethernet/apm/xgene/xgene_enet_main.c mac_ops->tx_disable(pdata); pdata 1030 drivers/net/ethernet/apm/xgene/xgene_enet_main.c mac_ops->rx_disable(pdata); pdata 1035 drivers/net/ethernet/apm/xgene/xgene_enet_main.c cancel_delayed_work_sync(&pdata->link_work); pdata 1038 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_napi_disable(pdata); pdata 1039 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) pdata 1040 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_process_ring(pdata->rx_ring[i], -1); pdata 1046 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 1049 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ring->ndev); pdata 1052 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops->clear(ring); pdata 1056 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_delete_desc_rings(struct xgene_enet_pdata *pdata) pdata 1062 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->txq_cnt; i++) { pdata 1063 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->tx_ring[i]; pdata 1066 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_ops->clear(pdata, ring); pdata 1067 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->cq_cnt) pdata 1069 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->tx_ring[i] = NULL; pdata 1074 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 1075 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->rx_ring[i]; pdata 1081 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_ops->clear(pdata, page_pool); pdata 1087 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_ops->clear(pdata, buf_pool); pdata 1090 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rx_ring[i] = NULL; pdata 1127 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 1134 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ring->ndev); pdata 1137 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops->clear(ring); pdata 1143 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_free_desc_rings(struct xgene_enet_pdata *pdata) pdata 1146 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = &pdata->pdev->dev; pdata 1151 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->txq_cnt; i++) { pdata 1152 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->tx_ring[i]; pdata 1157 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (ring->cp_ring && pdata->cq_cnt) pdata 1165 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 1166 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->rx_ring[i]; pdata 1191 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static bool is_irq_mbox_required(struct xgene_enet_pdata *pdata, pdata 1194 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if ((pdata->enet_id == XGENE_ENET2) && pdata 1202 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void __iomem *xgene_enet_ring_cmd_base(struct xgene_enet_pdata *pdata, pdata 1205 drivers/net/ethernet/apm/xgene/xgene_enet_main.c u8 num_ring_id_shift = pdata->ring_ops->num_ring_id_shift; pdata 1207 drivers/net/ethernet/apm/xgene/xgene_enet_main.c return pdata->ring_cmd_addr + (ring->num << num_ring_id_shift); pdata 1214 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 1242 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (is_irq_mbox_required(pdata, ring)) { pdata 1255 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring->cmd_base = xgene_enet_ring_cmd_base(pdata, ring); pdata 1257 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->ring_ops->setup(ring); pdata 1290 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static u8 xgene_start_cpu_bufnum(struct xgene_enet_pdata *pdata) pdata 1292 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = &pdata->pdev->dev; pdata 1298 drivers/net/ethernet/apm/xgene/xgene_enet_main.c return (!ret) ? cpu_bufnum : pdata->cpu_bufnum; pdata 1304 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 1308 drivers/net/ethernet/apm/xgene/xgene_enet_main.c u8 eth_bufnum = pdata->eth_bufnum; pdata 1309 drivers/net/ethernet/apm/xgene/xgene_enet_main.c u8 bp_bufnum = pdata->bp_bufnum; pdata 1310 drivers/net/ethernet/apm/xgene/xgene_enet_main.c u16 ring_num = pdata->ring_num; pdata 1318 drivers/net/ethernet/apm/xgene/xgene_enet_main.c cpu_bufnum = xgene_start_cpu_bufnum(pdata); pdata 1320 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 1322 drivers/net/ethernet/apm/xgene/xgene_enet_main.c owner = xgene_derive_ring_owner(pdata); pdata 1333 drivers/net/ethernet/apm/xgene/xgene_enet_main.c owner = xgene_derive_ring_owner(pdata); pdata 1345 drivers/net/ethernet/apm/xgene/xgene_enet_main.c rx_ring->irq = pdata->irqs[i]; pdata 1356 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rx_ring[i] = rx_ring; pdata 1358 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if ((pdata->enet_id == XGENE_ENET1 && pdata->rxq_cnt > 4) || pdata 1359 drivers/net/ethernet/apm/xgene/xgene_enet_main.c (pdata->enet_id == XGENE_ENET2 && pdata->rxq_cnt > 16)) { pdata 1364 drivers/net/ethernet/apm/xgene/xgene_enet_main.c owner = xgene_derive_ring_owner(pdata); pdata 1395 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->txq_cnt; i++) { pdata 1397 drivers/net/ethernet/apm/xgene/xgene_enet_main.c owner = xgene_derive_ring_owner(pdata); pdata 1416 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->tx_ring[i] = tx_ring; pdata 1418 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->cq_cnt) { pdata 1419 drivers/net/ethernet/apm/xgene/xgene_enet_main.c cp_ring = pdata->rx_ring[i]; pdata 1432 drivers/net/ethernet/apm/xgene/xgene_enet_main.c cp_ring->irq = pdata->irqs[pdata->rxq_cnt + i]; pdata 1457 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->ring_ops->coalesce) pdata 1458 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops->coalesce(pdata->tx_ring[0]); pdata 1459 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->tx_qcnt_hi = pdata->tx_ring[0]->slots - 128; pdata 1464 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_free_desc_rings(pdata); pdata 1472 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 1476 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->txq_cnt; i++) { pdata 1477 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->tx_ring[i]; pdata 1486 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 1487 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring = pdata->rx_ring[i]; pdata 1507 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 1513 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mac_ops->set_mac_addr(pdata); pdata 1520 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); pdata 1530 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mac_ops->set_framesize(pdata, frame_size); pdata 1548 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata) pdata 1555 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_id = 0; pdata 1557 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_id = temp; pdata 1564 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_get_port_id_dt(struct device *dev, struct xgene_enet_pdata *pdata) pdata 1570 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_id = id & BIT(0); pdata 1575 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_get_tx_delay(struct xgene_enet_pdata *pdata) pdata 1577 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = &pdata->pdev->dev; pdata 1582 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->tx_delay = 4; pdata 1591 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->tx_delay = delay; pdata 1596 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_get_rx_delay(struct xgene_enet_pdata *pdata) pdata 1598 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = &pdata->pdev->dev; pdata 1603 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rx_delay = 2; pdata 1612 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rx_delay = delay; pdata 1617 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_get_irqs(struct xgene_enet_pdata *pdata) pdata 1619 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct platform_device *pdev = pdata->pdev; pdata 1622 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (phy_interface_mode_is_rgmii(pdata->phy_mode)) pdata 1624 drivers/net/ethernet/apm/xgene/xgene_enet_main.c else if (pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) pdata 1632 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { pdata 1634 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rxq_cnt = max_irqs / 2; pdata 1635 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->txq_cnt = max_irqs / 2; pdata 1636 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cq_cnt = max_irqs / 2; pdata 1641 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->irqs[i] = ret; pdata 1647 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_check_phy_handle(struct xgene_enet_pdata *pdata) pdata 1651 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) pdata 1657 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_enet_phy_connect(pdata->ndev); pdata 1659 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mdio_driver = true; pdata 1662 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_gpiod_get(struct xgene_enet_pdata *pdata) pdata 1664 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = &pdata->pdev->dev; pdata 1666 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->sfp_gpio_en = false; pdata 1667 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII || pdata 1672 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->sfp_gpio_en = true; pdata 1673 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->sfp_rdy = gpiod_get(dev, "rxlos", GPIOD_IN); pdata 1674 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (IS_ERR(pdata->sfp_rdy)) pdata 1675 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->sfp_rdy = gpiod_get(dev, "sfp", GPIOD_IN); pdata 1678 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_get_resources(struct xgene_enet_pdata *pdata) pdata 1688 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdev = pdata->pdev; pdata 1690 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev = pdata->ndev; pdata 1697 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->base_addr = devm_ioremap(dev, res->start, resource_size(res)); pdata 1698 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->base_addr) { pdata 1708 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_csr_addr = devm_ioremap(dev, res->start, pdata 1710 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->ring_csr_addr) { pdata 1720 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_cmd_addr = devm_ioremap(dev, res->start, pdata 1722 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->ring_cmd_addr) { pdata 1728 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_get_port_id_dt(dev, pdata); pdata 1731 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_get_port_id_acpi(dev, pdata); pdata 1739 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->phy_mode = device_get_phy_mode(dev); pdata 1740 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode < 0) { pdata 1742 drivers/net/ethernet/apm/xgene/xgene_enet_main.c return pdata->phy_mode; pdata 1744 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!phy_interface_mode_is_rgmii(pdata->phy_mode) && pdata 1745 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->phy_mode != PHY_INTERFACE_MODE_SGMII && pdata 1746 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->phy_mode != PHY_INTERFACE_MODE_XGMII) { pdata 1751 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_get_tx_delay(pdata); pdata 1755 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_get_rx_delay(pdata); pdata 1759 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_enet_get_irqs(pdata); pdata 1763 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_gpiod_get(pdata); pdata 1765 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->clk = devm_clk_get(&pdev->dev, NULL); pdata 1766 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (IS_ERR(pdata->clk)) { pdata 1767 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode != PHY_INTERFACE_MODE_SGMII) { pdata 1772 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (PTR_ERR(pdata->clk) != -ENOENT || dev->of_node) pdata 1773 drivers/net/ethernet/apm/xgene/xgene_enet_main.c return PTR_ERR(pdata->clk); pdata 1779 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode != PHY_INTERFACE_MODE_XGMII) pdata 1780 drivers/net/ethernet/apm/xgene/xgene_enet_main.c base_addr = pdata->base_addr - (pdata->port_id * MAC_OFFSET); pdata 1782 drivers/net/ethernet/apm/xgene/xgene_enet_main.c base_addr = pdata->base_addr; pdata 1783 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_csr_addr = base_addr + BLOCK_ETH_CSR_OFFSET; pdata 1784 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cle.base = base_addr + BLOCK_ETH_CLE_CSR_OFFSET; pdata 1785 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_ring_if_addr = base_addr + BLOCK_ETH_RING_IF_OFFSET; pdata 1786 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_diag_csr_addr = base_addr + BLOCK_ETH_DIAG_CSR_OFFSET; pdata 1787 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (phy_interface_mode_is_rgmii(pdata->phy_mode) || pdata 1788 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->phy_mode == PHY_INTERFACE_MODE_SGMII) { pdata 1789 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mcx_mac_addr = pdata->base_addr + BLOCK_ETH_MAC_OFFSET; pdata 1790 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mcx_stats_addr = pdata 1791 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->base_addr + BLOCK_ETH_STATS_OFFSET; pdata 1792 drivers/net/ethernet/apm/xgene/xgene_enet_main.c offset = (pdata->enet_id == XGENE_ENET1) ? pdata 1795 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mcx_mac_csr_addr = base_addr + offset; pdata 1797 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mcx_mac_addr = base_addr + BLOCK_AXG_MAC_OFFSET; pdata 1798 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mcx_stats_addr = base_addr + BLOCK_AXG_STATS_OFFSET; pdata 1799 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mcx_mac_csr_addr = base_addr + BLOCK_AXG_MAC_CSR_OFFSET; pdata 1800 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->pcs_addr = base_addr + BLOCK_PCS_OFFSET; pdata 1802 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rx_buff_cnt = NUM_PKT_BUF; pdata 1807 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_init_hw(struct xgene_enet_pdata *pdata) pdata 1809 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_cle *enet_cle = &pdata->cle; pdata 1811 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev = pdata->ndev; pdata 1817 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = pdata->port_ops->reset(pdata); pdata 1828 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 1829 drivers/net/ethernet/apm/xgene/xgene_enet_main.c buf_pool = pdata->rx_ring[i]->buf_pool; pdata 1831 drivers/net/ethernet/apm/xgene/xgene_enet_main.c page_pool = pdata->rx_ring[i]->page_pool; pdata 1834 drivers/net/ethernet/apm/xgene/xgene_enet_main.c count = pdata->rx_buff_cnt; pdata 1845 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dst_ring_num = xgene_enet_dst_ring_num(pdata->rx_ring[0]); pdata 1846 drivers/net/ethernet/apm/xgene/xgene_enet_main.c buf_pool = pdata->rx_ring[0]->buf_pool; pdata 1847 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { pdata 1856 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = pdata->cle_ops->cle_init(pdata); pdata 1863 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dst_ring_num = xgene_enet_dst_ring_num(pdata->rx_ring[0]); pdata 1864 drivers/net/ethernet/apm/xgene/xgene_enet_main.c buf_pool = pdata->rx_ring[0]->buf_pool; pdata 1865 drivers/net/ethernet/apm/xgene/xgene_enet_main.c page_pool = pdata->rx_ring[0]->page_pool; pdata 1867 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_ops->cle_bypass(pdata, dst_ring_num, pdata 1872 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->phy_speed = SPEED_UNKNOWN; pdata 1873 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mac_ops->init(pdata); pdata 1878 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_delete_desc_rings(pdata); pdata 1882 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_setup_ops(struct xgene_enet_pdata *pdata) pdata 1884 drivers/net/ethernet/apm/xgene/xgene_enet_main.c switch (pdata->phy_mode) { pdata 1889 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mac_ops = &xgene_gmac_ops; pdata 1890 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_ops = &xgene_gport_ops; pdata 1891 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rm = RM3; pdata 1892 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rxq_cnt = 1; pdata 1893 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->txq_cnt = 1; pdata 1894 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cq_cnt = 0; pdata 1897 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mac_ops = &xgene_sgmac_ops; pdata 1898 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_ops = &xgene_sgport_ops; pdata 1899 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rm = RM1; pdata 1900 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rxq_cnt = 1; pdata 1901 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->txq_cnt = 1; pdata 1902 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cq_cnt = 1; pdata 1905 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->mac_ops = &xgene_xgmac_ops; pdata 1906 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_ops = &xgene_xgport_ops; pdata 1907 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cle_ops = &xgene_cle3in_ops; pdata 1908 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rm = RM0; pdata 1909 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->rxq_cnt) { pdata 1910 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rxq_cnt = XGENE_NUM_RX_RING; pdata 1911 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->txq_cnt = XGENE_NUM_TX_RING; pdata 1912 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cq_cnt = XGENE_NUM_TXC_RING; pdata 1917 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->enet_id == XGENE_ENET1) { pdata 1918 drivers/net/ethernet/apm/xgene/xgene_enet_main.c switch (pdata->port_id) { pdata 1920 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { pdata 1921 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cpu_bufnum = X2_START_CPU_BUFNUM_0; pdata 1922 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_bufnum = X2_START_ETH_BUFNUM_0; pdata 1923 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->bp_bufnum = X2_START_BP_BUFNUM_0; pdata 1924 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_num = START_RING_NUM_0; pdata 1926 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cpu_bufnum = START_CPU_BUFNUM_0; pdata 1927 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_bufnum = START_ETH_BUFNUM_0; pdata 1928 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->bp_bufnum = START_BP_BUFNUM_0; pdata 1929 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_num = START_RING_NUM_0; pdata 1933 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { pdata 1934 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cpu_bufnum = XG_START_CPU_BUFNUM_1; pdata 1935 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_bufnum = XG_START_ETH_BUFNUM_1; pdata 1936 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->bp_bufnum = XG_START_BP_BUFNUM_1; pdata 1937 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_num = XG_START_RING_NUM_1; pdata 1939 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cpu_bufnum = START_CPU_BUFNUM_1; pdata 1940 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_bufnum = START_ETH_BUFNUM_1; pdata 1941 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->bp_bufnum = START_BP_BUFNUM_1; pdata 1942 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_num = START_RING_NUM_1; pdata 1948 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops = &xgene_ring1_ops; pdata 1950 drivers/net/ethernet/apm/xgene/xgene_enet_main.c switch (pdata->port_id) { pdata 1952 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cpu_bufnum = X2_START_CPU_BUFNUM_0; pdata 1953 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_bufnum = X2_START_ETH_BUFNUM_0; pdata 1954 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->bp_bufnum = X2_START_BP_BUFNUM_0; pdata 1955 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_num = X2_START_RING_NUM_0; pdata 1958 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->cpu_bufnum = X2_START_CPU_BUFNUM_1; pdata 1959 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->eth_bufnum = X2_START_ETH_BUFNUM_1; pdata 1960 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->bp_bufnum = X2_START_BP_BUFNUM_1; pdata 1961 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_num = X2_START_RING_NUM_1; pdata 1966 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->rm = RM0; pdata 1967 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ring_ops = &xgene_ring2_ops; pdata 1971 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_napi_add(struct xgene_enet_pdata *pdata) pdata 1976 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->rxq_cnt; i++) { pdata 1977 drivers/net/ethernet/apm/xgene/xgene_enet_main.c napi = &pdata->rx_ring[i]->napi; pdata 1978 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_napi_add(pdata->ndev, napi, xgene_enet_napi, pdata 1982 drivers/net/ethernet/apm/xgene/xgene_enet_main.c for (i = 0; i < pdata->cq_cnt; i++) { pdata 1983 drivers/net/ethernet/apm/xgene/xgene_enet_main.c napi = &pdata->tx_ring[i]->cp_ring->napi; pdata 1984 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_napi_add(pdata->ndev, napi, xgene_enet_napi, pdata 2016 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 2027 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); pdata 2029 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->pdev = pdev; pdata 2030 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ndev = ndev; pdata 2032 drivers/net/ethernet/apm/xgene/xgene_enet_main.c platform_set_drvdata(pdev, pdata); pdata 2042 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->enet_id = (enum xgene_enet_id)of_id->data; pdata 2050 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->enet_id = (enum xgene_enet_id) acpi_id->driver_data; pdata 2053 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->enet_id) { pdata 2058 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_enet_get_resources(pdata); pdata 2062 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_setup_ops(pdata); pdata 2063 drivers/net/ethernet/apm/xgene/xgene_enet_main.c spin_lock_init(&pdata->mac_lock); pdata 2065 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { pdata 2067 drivers/net/ethernet/apm/xgene/xgene_enet_main.c spin_lock_init(&pdata->mss_lock); pdata 2077 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_check_phy_handle(pdata); pdata 2079 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_enet_init_hw(pdata); pdata 2083 drivers/net/ethernet/apm/xgene/xgene_enet_main.c link_state = pdata->mac_ops->link_state; pdata 2084 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->phy_mode == PHY_INTERFACE_MODE_XGMII) { pdata 2085 drivers/net/ethernet/apm/xgene/xgene_enet_main.c INIT_DELAYED_WORK(&pdata->link_work, link_state); pdata 2086 drivers/net/ethernet/apm/xgene/xgene_enet_main.c } else if (!pdata->mdio_driver) { pdata 2087 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (phy_interface_mode_is_rgmii(pdata->phy_mode)) pdata 2088 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_enet_mdio_config(pdata); pdata 2090 drivers/net/ethernet/apm/xgene/xgene_enet_main.c INIT_DELAYED_WORK(&pdata->link_work, link_state); pdata 2096 drivers/net/ethernet/apm/xgene/xgene_enet_main.c spin_lock_init(&pdata->stats_lock); pdata 2097 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_extd_stats_init(pdata); pdata 2101 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_napi_add(pdata); pdata 2116 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_delete_desc_rings(pdata); pdata 2119 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->mdio_driver) pdata 2120 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_phy_disconnect(pdata); pdata 2121 drivers/net/ethernet/apm/xgene/xgene_enet_main.c else if (phy_interface_mode_is_rgmii(pdata->phy_mode)) pdata 2122 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_mdio_remove(pdata); pdata 2130 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 2133 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = platform_get_drvdata(pdev); pdata 2134 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev = pdata->ndev; pdata 2141 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (pdata->mdio_driver) pdata 2142 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_phy_disconnect(pdata); pdata 2143 drivers/net/ethernet/apm/xgene/xgene_enet_main.c else if (phy_interface_mode_is_rgmii(pdata->phy_mode)) pdata 2144 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_mdio_remove(pdata); pdata 2147 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_delete_desc_rings(pdata); pdata 2148 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->port_ops->shutdown(pdata); pdata 2156 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata; pdata 2158 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = platform_get_drvdata(pdev); pdata 2159 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata) pdata 2162 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->ndev) pdata 143 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*init)(struct xgene_enet_pdata *pdata); pdata 144 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*reset)(struct xgene_enet_pdata *pdata); pdata 145 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*tx_enable)(struct xgene_enet_pdata *pdata); pdata 146 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*rx_enable)(struct xgene_enet_pdata *pdata); pdata 147 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*tx_disable)(struct xgene_enet_pdata *pdata); pdata 148 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*rx_disable)(struct xgene_enet_pdata *pdata); pdata 149 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*get_drop_cnt)(struct xgene_enet_pdata *pdata, u32 *rx, u32 *tx); pdata 150 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*set_speed)(struct xgene_enet_pdata *pdata); pdata 151 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*set_mac_addr)(struct xgene_enet_pdata *pdata); pdata 152 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*set_framesize)(struct xgene_enet_pdata *pdata, int framesize); pdata 153 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*set_mss)(struct xgene_enet_pdata *pdata, u16 mss, u8 index); pdata 155 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*enable_tx_pause)(struct xgene_enet_pdata *pdata, bool enable); pdata 156 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*flowctl_rx)(struct xgene_enet_pdata *pdata, bool enable); pdata 157 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*flowctl_tx)(struct xgene_enet_pdata *pdata, bool enable); pdata 161 drivers/net/ethernet/apm/xgene/xgene_enet_main.h int (*reset)(struct xgene_enet_pdata *pdata); pdata 162 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*clear)(struct xgene_enet_pdata *pdata, pdata 164 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*cle_bypass)(struct xgene_enet_pdata *pdata, pdata 166 drivers/net/ethernet/apm/xgene/xgene_enet_main.h void (*shutdown)(struct xgene_enet_pdata *pdata); pdata 180 drivers/net/ethernet/apm/xgene/xgene_enet_main.h int (*cle_init)(struct xgene_enet_pdata *pdata); pdata 257 drivers/net/ethernet/apm/xgene/xgene_enet_main.h struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); pdata 259 drivers/net/ethernet/apm/xgene/xgene_enet_main.h return ((u16)pdata->rm << 10) | ring->num; pdata 263 drivers/net/ethernet/apm/xgene/xgene_enet_main.h int xgene_extd_stats_init(struct xgene_enet_pdata *pdata); pdata 58 drivers/net/ethernet/apm/xgene/xgene_enet_ring2.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); pdata 60 drivers/net/ethernet/apm/xgene/xgene_enet_ring2.c iowrite32(data, pdata->ring_csr_addr + offset); pdata 65 drivers/net/ethernet/apm/xgene/xgene_enet_ring2.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); pdata 69 drivers/net/ethernet/apm/xgene/xgene_enet_ring2.c for (i = 0; i < pdata->ring_ops->num_ring_config; i++) { pdata 37 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c static void xgene_enet_wr_mcx_csr(struct xgene_enet_pdata *pdata, pdata 40 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c void __iomem *addr = pdata->mcx_mac_csr_addr + offset; pdata 86 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c static void xgene_sgmac_get_drop_cnt(struct xgene_enet_pdata *pdata, pdata 91 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c addr = (pdata->enet_id != XGENE_ENET1) ? pdata 93 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c ICM_ECM_DROP_COUNT_REG0_ADDR + pdata->port_id * OFFSET_4; pdata 94 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c count = xgene_enet_rd_mcx_csr(pdata, addr); pdata 98 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c addr = (pdata->enet_id != XGENE_ENET1) ? pdata 100 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c ECM_CONFIG0_REG_0_ADDR + pdata->port_id * OFFSET_4; pdata 101 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c xgene_enet_rd_mcx_csr(pdata, addr); pdata 281 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c static void xgene_sgmac_set_frame_size(struct xgene_enet_pdata *pdata, int size) pdata 283 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c xgene_enet_wr_mac(pdata, MAX_FRAME_LEN_ADDR, size); pdata 324 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c static void xgene_sgmac_flowctl_rx(struct xgene_enet_pdata *pdata, bool enable) pdata 326 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c xgene_sgmac_rxtx(pdata, RX_FLOW_EN, enable); pdata 508 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c static void xgene_enet_clear(struct xgene_enet_pdata *pdata, pdata 521 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c xgene_enet_wr_ring_if(pdata, addr, data); pdata 15 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_wr_csr(struct xgene_enet_pdata *pdata, pdata 18 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c void __iomem *addr = pdata->eth_csr_addr + offset; pdata 23 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *pdata, pdata 26 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c void __iomem *addr = pdata->eth_ring_if_addr + offset; pdata 31 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *pdata, pdata 34 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c void __iomem *addr = pdata->eth_diag_csr_addr + offset; pdata 62 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_wr_pcs(struct xgene_enet_pdata *pdata, pdata 67 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c addr = pdata->pcs_addr + PCS_ADDR_REG_OFFSET; pdata 68 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c wr = pdata->pcs_addr + PCS_WRITE_REG_OFFSET; pdata 69 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c cmd = pdata->pcs_addr + PCS_COMMAND_REG_OFFSET; pdata 70 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c cmd_done = pdata->pcs_addr + PCS_COMMAND_DONE_REG_OFFSET; pdata 73 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netdev_err(pdata->ndev, "PCS write failed, addr: %04x\n", pdata 77 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_wr_axg_csr(struct xgene_enet_pdata *pdata, pdata 80 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c void __iomem *addr = pdata->mcx_mac_csr_addr + offset; pdata 85 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_rd_csr(struct xgene_enet_pdata *pdata, pdata 88 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c void __iomem *addr = pdata->eth_csr_addr + offset; pdata 93 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_rd_diag_csr(struct xgene_enet_pdata *pdata, pdata 96 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c void __iomem *addr = pdata->eth_diag_csr_addr + offset; pdata 124 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static bool xgene_enet_rd_pcs(struct xgene_enet_pdata *pdata, pdata 130 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c addr = pdata->pcs_addr + PCS_ADDR_REG_OFFSET; pdata 131 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c rd = pdata->pcs_addr + PCS_READ_REG_OFFSET; pdata 132 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c cmd = pdata->pcs_addr + PCS_COMMAND_REG_OFFSET; pdata 133 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c cmd_done = pdata->pcs_addr + PCS_COMMAND_DONE_REG_OFFSET; pdata 137 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netdev_err(pdata->ndev, "PCS read failed, addr: %04x\n", pdata 143 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_rd_axg_csr(struct xgene_enet_pdata *pdata, pdata 146 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c void __iomem *addr = pdata->mcx_mac_csr_addr + offset; pdata 151 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static int xgene_enet_ecc_init(struct xgene_enet_pdata *pdata) pdata 153 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c struct net_device *ndev = pdata->ndev; pdata 157 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_diag_csr(pdata, ENET_CFG_MEM_RAM_SHUTDOWN_ADDR, 0x0); pdata 160 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_diag_csr(pdata, ENET_BLOCK_MEM_RDY_ADDR, &data); pdata 171 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_get_drop_cnt(struct xgene_enet_pdata *pdata, pdata 176 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_axg_csr(pdata, XGENET_ICM_ECM_DROP_COUNT_REG0, &count); pdata 180 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_axg_csr(pdata, XGENET_ECM_CONFIG0_REG_0, &count); pdata 183 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_config_ring_if_assoc(struct xgene_enet_pdata *pdata) pdata 185 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_ring_if(pdata, ENET_CFGSSQMIWQASSOC_ADDR, 0); pdata 186 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_ring_if(pdata, ENET_CFGSSQMIFPQASSOC_ADDR, 0); pdata 187 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_ring_if(pdata, ENET_CFGSSQMIQMLITEWQASSOC_ADDR, 0); pdata 188 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_ring_if(pdata, ENET_CFGSSQMIQMLITEFPQASSOC_ADDR, 0); pdata 191 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_reset(struct xgene_enet_pdata *pdata) pdata 193 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_0, HSTMACRST); pdata 194 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_0, 0); pdata 197 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_pcs_reset(struct xgene_enet_pdata *pdata) pdata 201 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (!xgene_enet_rd_pcs(pdata, PCS_CONTROL_1, &data)) pdata 204 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_pcs(pdata, PCS_CONTROL_1, data | PCS_CTRL_PCS_RST); pdata 205 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_pcs(pdata, PCS_CONTROL_1, data & ~PCS_CTRL_PCS_RST); pdata 208 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_set_mac_addr(struct xgene_enet_pdata *pdata) pdata 211 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c u8 *dev_addr = pdata->ndev->dev_addr; pdata 217 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, HSTMACADR_LSW_ADDR, addr0); pdata 218 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, HSTMACADR_MSW_ADDR, addr1); pdata 221 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_set_mss(struct xgene_enet_pdata *pdata, pdata 228 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_csr(pdata, XG_TSIF_MSS_REG0_ADDR + offset, &data); pdata 236 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XG_TSIF_MSS_REG0_ADDR + offset, data); pdata 239 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_set_frame_size(struct xgene_enet_pdata *pdata, int size) pdata 241 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, HSTMAXFRAME_LENGTH_ADDR, pdata 245 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static u32 xgene_enet_link_status(struct xgene_enet_pdata *pdata) pdata 249 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_csr(pdata, XG_LINK_STATUS_ADDR, &data); pdata 254 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_enable_tx_pause(struct xgene_enet_pdata *pdata, pdata 259 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_axg_csr(pdata, XGENET_CSR_ECM_CFG_0_ADDR, &data); pdata 266 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_axg_csr(pdata, XGENET_CSR_ECM_CFG_0_ADDR, data); pdata 269 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_flowctl_tx(struct xgene_enet_pdata *pdata, bool enable) pdata 273 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c data = xgene_enet_rd_mac(pdata, AXGMAC_CONFIG_1); pdata 280 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_1, data); pdata 282 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c pdata->mac_ops->enable_tx_pause(pdata, enable); pdata 285 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_flowctl_rx(struct xgene_enet_pdata *pdata, bool enable) pdata 289 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c data = xgene_enet_rd_mac(pdata, AXGMAC_CONFIG_1); pdata 296 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_1, data); pdata 299 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_init(struct xgene_enet_pdata *pdata) pdata 303 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_xgmac_reset(pdata); pdata 305 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c data = xgene_enet_rd_mac(pdata, AXGMAC_CONFIG_1); pdata 308 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_1, data); pdata 310 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_xgmac_set_mac_addr(pdata); pdata 312 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_csr(pdata, XG_RSIF_CONFIG_REG_ADDR, &data); pdata 316 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XG_RSIF_CONFIG_REG_ADDR, data); pdata 319 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_csr(pdata, XG_RSIF_CONFIG1_REG_ADDR, &data); pdata 321 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XG_RSIF_CONFIG1_REG_ADDR, data); pdata 323 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_csr(pdata, XG_ENET_SPARE_CFG_REG_ADDR, &data); pdata 325 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XG_ENET_SPARE_CFG_REG_ADDR, data); pdata 326 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XG_ENET_SPARE_CFG_REG_1_ADDR, 0x82); pdata 327 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XGENET_RX_DV_GATE_REG_0_ADDR, 0); pdata 328 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XG_CFG_BYPASS_ADDR, RESUME_TX); pdata 331 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_axg_csr(pdata, XGENET_CSR_MULTI_DPF0_ADDR, &data); pdata 333 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_axg_csr(pdata, XGENET_CSR_MULTI_DPF0_ADDR, data); pdata 335 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (pdata->enet_id != XGENE_ENET1) { pdata 336 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_axg_csr(pdata, XGENET_CSR_MULTI_DPF1_ADDR, &data); pdata 338 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_axg_csr(pdata, XGENET_CSR_MULTI_DPF1_ADDR, data); pdata 342 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XG_RXBUF_PAUSE_THRESH, data); pdata 344 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_xgmac_flowctl_tx(pdata, pdata->tx_pause); pdata 345 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_xgmac_flowctl_rx(pdata, pdata->rx_pause); pdata 348 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_rx_enable(struct xgene_enet_pdata *pdata) pdata 352 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c data = xgene_enet_rd_mac(pdata, AXGMAC_CONFIG_1); pdata 353 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_1, data | HSTRFEN); pdata 356 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_tx_enable(struct xgene_enet_pdata *pdata) pdata 360 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c data = xgene_enet_rd_mac(pdata, AXGMAC_CONFIG_1); pdata 361 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_1, data | HSTTFEN); pdata 364 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_rx_disable(struct xgene_enet_pdata *pdata) pdata 368 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c data = xgene_enet_rd_mac(pdata, AXGMAC_CONFIG_1); pdata 369 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_1, data & ~HSTRFEN); pdata 372 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_xgmac_tx_disable(struct xgene_enet_pdata *pdata) pdata 376 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c data = xgene_enet_rd_mac(pdata, AXGMAC_CONFIG_1); pdata 377 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_mac(pdata, AXGMAC_CONFIG_1, data & ~HSTTFEN); pdata 380 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static int xgene_enet_reset(struct xgene_enet_pdata *pdata) pdata 382 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c struct device *dev = &pdata->pdev->dev; pdata 384 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (!xgene_ring_mgr_init(pdata)) pdata 388 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c clk_prepare_enable(pdata->clk); pdata 390 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c clk_disable_unprepare(pdata->clk); pdata 392 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c clk_prepare_enable(pdata->clk); pdata 398 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c status = acpi_evaluate_object(ACPI_HANDLE(&pdata->pdev->dev), pdata 401 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c acpi_evaluate_object(ACPI_HANDLE(&pdata->pdev->dev), pdata 407 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_ecc_init(pdata); pdata 408 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_config_ring_if_assoc(pdata); pdata 413 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_xgcle_bypass(struct xgene_enet_pdata *pdata, pdata 419 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_csr(pdata, XCLE_BYPASS_REG0_ADDR, &cb); pdata 422 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XCLE_BYPASS_REG0_ADDR, cb); pdata 426 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_rd_csr(pdata, XCLE_BYPASS_REG1_ADDR, &cb); pdata 430 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_csr(pdata, XCLE_BYPASS_REG1_ADDR, cb); pdata 434 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_shutdown(struct xgene_enet_pdata *pdata) pdata 436 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c struct device *dev = &pdata->pdev->dev; pdata 439 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (!IS_ERR(pdata->clk)) pdata 440 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c clk_disable_unprepare(pdata->clk); pdata 444 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static void xgene_enet_clear(struct xgene_enet_pdata *pdata, pdata 457 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_enet_wr_ring_if(pdata, addr, data); pdata 460 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c static int xgene_enet_gpio_lookup(struct xgene_enet_pdata *pdata) pdata 462 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c struct device *dev = &pdata->pdev->dev; pdata 464 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c pdata->sfp_rdy = gpiod_get(dev, "rxlos", GPIOD_IN); pdata 465 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (IS_ERR(pdata->sfp_rdy)) pdata 466 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c pdata->sfp_rdy = gpiod_get(dev, "sfp", GPIOD_IN); pdata 468 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (IS_ERR(pdata->sfp_rdy)) pdata 476 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c struct xgene_enet_pdata *pdata = container_of(to_delayed_work(work), pdata 478 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c struct net_device *ndev = pdata->ndev; pdata 481 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c link_status = xgene_enet_link_status(pdata); pdata 482 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (pdata->sfp_gpio_en && link_status && pdata 483 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c (!IS_ERR(pdata->sfp_rdy) || !xgene_enet_gpio_lookup(pdata)) && pdata 484 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c !gpiod_get_value(pdata->sfp_rdy)) pdata 490 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_xgmac_rx_enable(pdata); pdata 491 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_xgmac_tx_enable(pdata); pdata 497 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_xgmac_rx_disable(pdata); pdata 498 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_xgmac_tx_disable(pdata); pdata 504 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c xgene_pcs_reset(pdata); pdata 507 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c schedule_delayed_work(&pdata->link_work, poll_interval); pdata 139 drivers/net/ethernet/atheros/alx/hw.c static int __alx_read_phy_ext(struct alx_hw *hw, u8 dev, u16 reg, u16 *pdata) pdata 141 drivers/net/ethernet/atheros/alx/hw.c return alx_read_phy_core(hw, true, dev, reg, pdata); pdata 149 drivers/net/ethernet/atheros/alx/hw.c static int __alx_read_phy_dbg(struct alx_hw *hw, u16 reg, u16 *pdata) pdata 157 drivers/net/ethernet/atheros/alx/hw.c return __alx_read_phy_reg(hw, ALX_MII_DBG_DATA, pdata); pdata 193 drivers/net/ethernet/atheros/alx/hw.c int alx_read_phy_ext(struct alx_hw *hw, u8 dev, u16 reg, u16 *pdata) pdata 198 drivers/net/ethernet/atheros/alx/hw.c err = __alx_read_phy_ext(hw, dev, reg, pdata); pdata 215 drivers/net/ethernet/atheros/alx/hw.c static int alx_read_phy_dbg(struct alx_hw *hw, u16 reg, u16 *pdata) pdata 220 drivers/net/ethernet/atheros/alx/hw.c err = __alx_read_phy_dbg(hw, reg, pdata); pdata 554 drivers/net/ethernet/atheros/alx/hw.h int alx_read_phy_ext(struct alx_hw *hw, u8 dev, u16 reg, u16 *pdata); pdata 552 drivers/net/ethernet/atheros/atl1c/atl1c.h #define AT_READ_REG(a, reg, pdata) do { \ pdata 555 drivers/net/ethernet/atheros/atl1c/atl1c.h *(u32 *)pdata = readl((a)->hw_addr + reg); \ pdata 557 drivers/net/ethernet/atheros/atl1c/atl1c.h *(u32 *)pdata = readl((a)->hw_addr + reg); \ pdata 570 drivers/net/ethernet/atheros/atl1c/atl1c.h #define AT_READ_REGW(a, reg, pdata) do { \ pdata 573 drivers/net/ethernet/atheros/atl1c/atl1c.h *(u16 *)pdata = readw((a)->hw_addr + reg); \ pdata 575 drivers/net/ethernet/atheros/atl1c/atl1c.h *(u16 *)pdata = readw((a)->hw_addr + reg); \ pdata 339 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h struct cmng_struct_per_port *pdata = &ram_data->port; pdata 345 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h pdata->rs_vars.rs_periodic_timeout = pdata 352 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h pdata->rs_vars.rs_threshold = pdata 376 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h struct cmng_struct_per_port *pdata = &ram_data->port; pdata 387 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h pdata->fair_vars.fair_threshold = QM_ARB_BYTES; pdata 392 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h pdata->fair_vars.upper_bound = r_param * tFair * FAIR_MEM; pdata 395 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h pdata->fair_vars.fairness_timeout = pdata 416 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h pdata->fair_vars.fair_threshold + pdata 419 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h pdata->fair_vars.fair_threshold + pdata 432 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h struct cmng_struct_per_port *pdata = &ram_data->port; pdata 452 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h if (ccd[cos] < pdata->fair_vars.fair_threshold pdata 455 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h pdata->fair_vars.fair_threshold + pdata 127 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init_ops.h u64 *pdata = ((u64 *)(GUNZIP_BUF(bp))) + i; pdata 129 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init_ops.h *pdata = data64; pdata 405 drivers/net/ethernet/broadcom/bnxt/bnxt.c void *pdata = tx_push_buf->data; pdata 428 drivers/net/ethernet/broadcom/bnxt/bnxt.c end = pdata + length; pdata 432 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_copy_from_linear_data(skb, pdata, len); pdata 433 drivers/net/ethernet/broadcom/bnxt/bnxt.c pdata += len; pdata 442 drivers/net/ethernet/broadcom/bnxt/bnxt.c memcpy(pdata, fptr, skb_frag_size(frag)); pdata 443 drivers/net/ethernet/broadcom/bnxt/bnxt.c pdata += skb_frag_size(frag); pdata 421 drivers/net/ethernet/broadcom/genet/bcmmii.c struct bcmgenet_platform_data *pdata = pdev->dev.platform_data; pdata 456 drivers/net/ethernet/broadcom/genet/bcmmii.c if (pdata) pdata 3384 drivers/net/ethernet/cadence/macb_main.c struct macb_platform_data *pdata; pdata 3387 drivers/net/ethernet/cadence/macb_main.c pdata = dev_get_platdata(&pdev->dev); pdata 3388 drivers/net/ethernet/cadence/macb_main.c if (pdata) { pdata 3389 drivers/net/ethernet/cadence/macb_main.c *pclk = pdata->pclk; pdata 3390 drivers/net/ethernet/cadence/macb_main.c *hclk = pdata->hclk; pdata 108 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c struct cxgbi_ppod_data *pdata = ppm->ppod_data + i; pdata 110 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c pdata->caller_data = caller_data; pdata 111 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c pdata->npods = count; pdata 113 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c if (pdata->color == ((1 << PPOD_IDX_SHIFT) - 1)) pdata 114 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c pdata->color = 0; pdata 116 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c pdata->color++; pdata 229 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c struct cxgbi_ppod_data *pdata; pdata 236 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c pdata = ppm->ppod_data + idx; pdata 237 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c if (!pdata->npods) { pdata 242 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c pr_debug("release idx %u, npods %u.\n", idx, pdata->npods); pdata 243 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c ppm_unmark_entries(ppm, idx, pdata->npods); pdata 251 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c struct cxgbi_ppod_data *pdata; pdata 275 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c pdata = ppm->ppod_data + idx; pdata 278 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c tag = cxgbi_ppm_make_ddp_tag(hwidx, pdata->color); pdata 1389 drivers/net/ethernet/davicom/dm9000.c struct dm9000_plat_data *pdata; pdata 1396 drivers/net/ethernet/davicom/dm9000.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 1397 drivers/net/ethernet/davicom/dm9000.c if (!pdata) pdata 1401 drivers/net/ethernet/davicom/dm9000.c pdata->flags |= DM9000_PLATF_EXT_PHY; pdata 1403 drivers/net/ethernet/davicom/dm9000.c pdata->flags |= DM9000_PLATF_NO_EEPROM; pdata 1407 drivers/net/ethernet/davicom/dm9000.c ether_addr_copy(pdata->dev_addr, mac_addr); pdata 1411 drivers/net/ethernet/davicom/dm9000.c return pdata; pdata 1420 drivers/net/ethernet/davicom/dm9000.c struct dm9000_plat_data *pdata = dev_get_platdata(&pdev->dev); pdata 1467 drivers/net/ethernet/davicom/dm9000.c if (!pdata) { pdata 1468 drivers/net/ethernet/davicom/dm9000.c pdata = dm9000_parse_dt(&pdev->dev); pdata 1469 drivers/net/ethernet/davicom/dm9000.c if (IS_ERR(pdata)) pdata 1470 drivers/net/ethernet/davicom/dm9000.c return PTR_ERR(pdata); pdata 1575 drivers/net/ethernet/davicom/dm9000.c if (pdata != NULL) { pdata 1579 drivers/net/ethernet/davicom/dm9000.c if (pdata->flags & DM9000_PLATF_8BITONLY) pdata 1582 drivers/net/ethernet/davicom/dm9000.c if (pdata->flags & DM9000_PLATF_16BITONLY) pdata 1585 drivers/net/ethernet/davicom/dm9000.c if (pdata->flags & DM9000_PLATF_32BITONLY) pdata 1591 drivers/net/ethernet/davicom/dm9000.c if (pdata->inblk != NULL) pdata 1592 drivers/net/ethernet/davicom/dm9000.c db->inblk = pdata->inblk; pdata 1594 drivers/net/ethernet/davicom/dm9000.c if (pdata->outblk != NULL) pdata 1595 drivers/net/ethernet/davicom/dm9000.c db->outblk = pdata->outblk; pdata 1597 drivers/net/ethernet/davicom/dm9000.c if (pdata->dumpblk != NULL) pdata 1598 drivers/net/ethernet/davicom/dm9000.c db->dumpblk = pdata->dumpblk; pdata 1600 drivers/net/ethernet/davicom/dm9000.c db->flags = pdata->flags; pdata 1671 drivers/net/ethernet/davicom/dm9000.c if (!is_valid_ether_addr(ndev->dev_addr) && pdata != NULL) { pdata 1673 drivers/net/ethernet/davicom/dm9000.c memcpy(ndev->dev_addr, pdata->dev_addr, ETH_ALEN); pdata 1029 drivers/net/ethernet/ethoc.c struct ethoc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1030 drivers/net/ethernet/ethoc.c u32 eth_clkfreq = pdata ? pdata->eth_clkfreq : 0; pdata 1120 drivers/net/ethernet/ethoc.c priv->big_endian = pdata ? pdata->big_endian : pdata 1146 drivers/net/ethernet/ethoc.c if (pdata) { pdata 1147 drivers/net/ethernet/ethoc.c ether_addr_copy(netdev->dev_addr, pdata->hwaddr); pdata 1148 drivers/net/ethernet/ethoc.c priv->phy_id = pdata->phy_id; pdata 1135 drivers/net/ethernet/freescale/fec_main.c struct fec_platform_data *pdata = fep->pdev->dev.platform_data; pdata 1146 drivers/net/ethernet/freescale/fec_main.c } else if (pdata && pdata->sleep_mode_enable) { pdata 1147 drivers/net/ethernet/freescale/fec_main.c pdata->sleep_mode_enable(enabled); pdata 1696 drivers/net/ethernet/freescale/fec_main.c struct fec_platform_data *pdata = dev_get_platdata(&fep->pdev->dev); pdata 1727 drivers/net/ethernet/freescale/fec_main.c if (pdata) pdata 1728 drivers/net/ethernet/freescale/fec_main.c iap = (unsigned char *)&pdata->mac; pdata 3489 drivers/net/ethernet/freescale/fec_main.c struct fec_platform_data *pdata; pdata 3571 drivers/net/ethernet/freescale/fec_main.c pdata = dev_get_platdata(&pdev->dev); pdata 3572 drivers/net/ethernet/freescale/fec_main.c if (pdata) pdata 3573 drivers/net/ethernet/freescale/fec_main.c fep->phy_interface = pdata->phy; pdata 655 drivers/net/ethernet/intel/ice/ice_adminq_cmd.h } __packed pdata; pdata 33 drivers/net/ethernet/intel/ice/ice_switch.c sizeof(((struct ice_aqc_sw_rules_elem *)0)->pdata) + \ pdata 37 drivers/net/ethernet/intel/ice/ice_switch.c sizeof(((struct ice_aqc_sw_rules_elem *)0)->pdata) + \ pdata 41 drivers/net/ethernet/intel/ice/ice_switch.c sizeof(((struct ice_aqc_sw_rules_elem *)0)->pdata) + \ pdata 47 drivers/net/ethernet/intel/ice/ice_switch.c sizeof(((struct ice_aqc_sw_rules_elem *)0)->pdata) + \ pdata 728 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.lkup_tx_rx.act = 0; pdata 729 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.lkup_tx_rx.index = pdata 731 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.lkup_tx_rx.hdr_len = 0; pdata 736 drivers/net/ethernet/intel/ice/ice_switch.c eth_hdr = s_rule->pdata.lkup_tx_rx.hdr; pdata 824 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.lkup_tx_rx.recipe_id = cpu_to_le16(f_info->lkup_type); pdata 825 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.lkup_tx_rx.src = cpu_to_le16(f_info->src); pdata 826 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.lkup_tx_rx.act = cpu_to_le32(act); pdata 838 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.lkup_tx_rx.hdr_len = cpu_to_le16(eth_hdr_sz); pdata 886 drivers/net/ethernet/intel/ice/ice_switch.c lg_act->pdata.lg_act.index = cpu_to_le16(l_id); pdata 887 drivers/net/ethernet/intel/ice/ice_switch.c lg_act->pdata.lg_act.size = cpu_to_le16(num_lg_acts); pdata 900 drivers/net/ethernet/intel/ice/ice_switch.c lg_act->pdata.lg_act.act[0] = cpu_to_le32(act); pdata 906 drivers/net/ethernet/intel/ice/ice_switch.c lg_act->pdata.lg_act.act[1] = cpu_to_le32(act); pdata 916 drivers/net/ethernet/intel/ice/ice_switch.c lg_act->pdata.lg_act.act[2] = cpu_to_le32(act); pdata 923 drivers/net/ethernet/intel/ice/ice_switch.c rx_tx->pdata.lkup_tx_rx.act = pdata 932 drivers/net/ethernet/intel/ice/ice_switch.c rx_tx->pdata.lkup_tx_rx.index = pdata 1028 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.vsi_list.vsi[i] = pdata 1033 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.vsi_list.number_vsi = cpu_to_le16(num_vsi); pdata 1034 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.vsi_list.index = cpu_to_le16(vsi_list_id); pdata 1117 drivers/net/ethernet/intel/ice/ice_switch.c le16_to_cpu(s_rule->pdata.lkup_tx_rx.index); pdata 1119 drivers/net/ethernet/intel/ice/ice_switch.c le16_to_cpu(s_rule->pdata.lkup_tx_rx.index); pdata 1154 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.lkup_tx_rx.index = cpu_to_le16(f_info->fltr_rule_id); pdata 1448 drivers/net/ethernet/intel/ice/ice_switch.c s_rule->pdata.vsi_list.index = cpu_to_le16(vsi_list_id); pdata 1767 drivers/net/ethernet/intel/ice/ice_switch.c le16_to_cpu(r_iter->pdata.lkup_tx_rx.index); pdata 2116 drivers/net/ethernet/intel/ice/ice_switch.c u16 index = le16_to_cpu(s_rule->pdata.lkup_tx_rx.index); pdata 401 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c void *pdata; pdata 417 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c pdata = MLX5_ADDR_OF(packet_reformat_context_in, prctx, reformat_data); pdata 421 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c memcpy(pdata, reformat_data, reformat_size); pdata 1134 drivers/net/ethernet/micrel/ks8842.c struct ks8842_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1166 drivers/net/ethernet/micrel/ks8842.c if (!(adapter->conf_flags & MICREL_KS884X) && pdata && pdata 1167 drivers/net/ethernet/micrel/ks8842.c (pdata->tx_dma_channel != -1) && pdata 1168 drivers/net/ethernet/micrel/ks8842.c (pdata->rx_dma_channel != -1)) { pdata 1169 drivers/net/ethernet/micrel/ks8842.c adapter->dma_rx.channel = pdata->rx_dma_channel; pdata 1170 drivers/net/ethernet/micrel/ks8842.c adapter->dma_tx.channel = pdata->tx_dma_channel; pdata 1184 drivers/net/ethernet/micrel/ks8842.c if (pdata) { pdata 1186 drivers/net/ethernet/micrel/ks8842.c if (pdata->macaddr[i] != 0) pdata 1191 drivers/net/ethernet/micrel/ks8842.c memcpy(netdev->dev_addr, pdata->macaddr, pdata 689 drivers/net/ethernet/micrel/ks8851_mll.c static void ks_write_qmu(struct ks_net *ks, u8 *pdata, u16 len) pdata 700 drivers/net/ethernet/micrel/ks8851_mll.c ks_outblk(ks, (u16 *)pdata, ALIGN(len, 4)); pdata 1333 drivers/net/ethernet/micrel/ks8851_mll.c struct ks8851_mll_platform_data *pdata; pdata 1335 drivers/net/ethernet/micrel/ks8851_mll.c pdata = dev_get_platdata(&pdev->dev); pdata 1336 drivers/net/ethernet/micrel/ks8851_mll.c if (!pdata) { pdata 1341 drivers/net/ethernet/micrel/ks8851_mll.c memcpy(ks->mac_addr, pdata->mac_addr, ETH_ALEN); pdata 210 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c nfp_flower_xmit_tun_conf(struct nfp_app *app, u8 mtype, u16 plen, void *pdata, pdata 221 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c memcpy(msg, pdata, nfp_flower_cmsg_get_data_len(skb)); pdata 594 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h struct pch_gbe_privdata *pdata; pdata 2538 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c adapter->pdata = (struct pch_gbe_privdata *)pci_id->driver_data; pdata 2539 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c if (adapter->pdata && adapter->pdata->platform_init) pdata 2540 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c adapter->pdata->platform_init(pdev); pdata 2617 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c if (adapter->pdata && adapter->pdata->phy_disable_hibernate) pdata 324 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_phy.c if (adapter->pdata && adapter->pdata->phy_tx_clk_delay) pdata 3189 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_plat_data *pdata; pdata 3193 drivers/net/ethernet/renesas/sh_eth.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 3194 drivers/net/ethernet/renesas/sh_eth.c if (!pdata) pdata 3200 drivers/net/ethernet/renesas/sh_eth.c pdata->phy_interface = ret; pdata 3204 drivers/net/ethernet/renesas/sh_eth.c ether_addr_copy(pdata->mac_addr, mac_addr); pdata 3206 drivers/net/ethernet/renesas/sh_eth.c pdata->no_ether_link = pdata 3208 drivers/net/ethernet/renesas/sh_eth.c pdata->ether_link_active_low = pdata 3211 drivers/net/ethernet/renesas/sh_eth.c return pdata; pdata 76 drivers/net/ethernet/smsc/smsc911x.c u32 (*reg_read)(struct smsc911x_data *pdata, u32 reg); pdata 77 drivers/net/ethernet/smsc/smsc911x.c void (*reg_write)(struct smsc911x_data *pdata, u32 reg, u32 val); pdata 78 drivers/net/ethernet/smsc/smsc911x.c void (*rx_readfifo)(struct smsc911x_data *pdata, pdata 80 drivers/net/ethernet/smsc/smsc911x.c void (*tx_writefifo)(struct smsc911x_data *pdata, pdata 146 drivers/net/ethernet/smsc/smsc911x.c #define __smsc_shift(pdata, reg) ((reg) << ((pdata)->config.shift)) pdata 148 drivers/net/ethernet/smsc/smsc911x.c static inline u32 __smsc911x_reg_read(struct smsc911x_data *pdata, u32 reg) pdata 150 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_32BIT) pdata 151 drivers/net/ethernet/smsc/smsc911x.c return readl(pdata->ioaddr + reg); pdata 153 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_16BIT) pdata 154 drivers/net/ethernet/smsc/smsc911x.c return ((readw(pdata->ioaddr + reg) & 0xFFFF) | pdata 155 drivers/net/ethernet/smsc/smsc911x.c ((readw(pdata->ioaddr + reg + 2) & 0xFFFF) << 16)); pdata 162 drivers/net/ethernet/smsc/smsc911x.c __smsc911x_reg_read_shift(struct smsc911x_data *pdata, u32 reg) pdata 164 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_32BIT) pdata 165 drivers/net/ethernet/smsc/smsc911x.c return readl(pdata->ioaddr + __smsc_shift(pdata, reg)); pdata 167 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_16BIT) pdata 168 drivers/net/ethernet/smsc/smsc911x.c return (readw(pdata->ioaddr + pdata 169 drivers/net/ethernet/smsc/smsc911x.c __smsc_shift(pdata, reg)) & 0xFFFF) | pdata 170 drivers/net/ethernet/smsc/smsc911x.c ((readw(pdata->ioaddr + pdata 171 drivers/net/ethernet/smsc/smsc911x.c __smsc_shift(pdata, reg + 2)) & 0xFFFF) << 16); pdata 177 drivers/net/ethernet/smsc/smsc911x.c static inline u32 smsc911x_reg_read(struct smsc911x_data *pdata, u32 reg) pdata 182 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->dev_lock, flags); pdata 183 drivers/net/ethernet/smsc/smsc911x.c data = pdata->ops->reg_read(pdata, reg); pdata 184 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->dev_lock, flags); pdata 189 drivers/net/ethernet/smsc/smsc911x.c static inline void __smsc911x_reg_write(struct smsc911x_data *pdata, u32 reg, pdata 192 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_32BIT) { pdata 193 drivers/net/ethernet/smsc/smsc911x.c writel(val, pdata->ioaddr + reg); pdata 197 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_16BIT) { pdata 198 drivers/net/ethernet/smsc/smsc911x.c writew(val & 0xFFFF, pdata->ioaddr + reg); pdata 199 drivers/net/ethernet/smsc/smsc911x.c writew((val >> 16) & 0xFFFF, pdata->ioaddr + reg + 2); pdata 207 drivers/net/ethernet/smsc/smsc911x.c __smsc911x_reg_write_shift(struct smsc911x_data *pdata, u32 reg, u32 val) pdata 209 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_32BIT) { pdata 210 drivers/net/ethernet/smsc/smsc911x.c writel(val, pdata->ioaddr + __smsc_shift(pdata, reg)); pdata 214 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_16BIT) { pdata 216 drivers/net/ethernet/smsc/smsc911x.c pdata->ioaddr + __smsc_shift(pdata, reg)); pdata 218 drivers/net/ethernet/smsc/smsc911x.c pdata->ioaddr + __smsc_shift(pdata, reg + 2)); pdata 225 drivers/net/ethernet/smsc/smsc911x.c static inline void smsc911x_reg_write(struct smsc911x_data *pdata, u32 reg, pdata 230 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->dev_lock, flags); pdata 231 drivers/net/ethernet/smsc/smsc911x.c pdata->ops->reg_write(pdata, reg, val); pdata 232 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->dev_lock, flags); pdata 237 drivers/net/ethernet/smsc/smsc911x.c smsc911x_tx_writefifo(struct smsc911x_data *pdata, unsigned int *buf, pdata 242 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->dev_lock, flags); pdata 244 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_SWAP_FIFO) { pdata 246 drivers/net/ethernet/smsc/smsc911x.c __smsc911x_reg_write(pdata, TX_DATA_FIFO, pdata 251 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_32BIT) { pdata 252 drivers/net/ethernet/smsc/smsc911x.c iowrite32_rep(pdata->ioaddr + TX_DATA_FIFO, buf, wordcount); pdata 256 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_16BIT) { pdata 258 drivers/net/ethernet/smsc/smsc911x.c __smsc911x_reg_write(pdata, TX_DATA_FIFO, *buf++); pdata 264 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->dev_lock, flags); pdata 269 drivers/net/ethernet/smsc/smsc911x.c smsc911x_tx_writefifo_shift(struct smsc911x_data *pdata, unsigned int *buf, pdata 274 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->dev_lock, flags); pdata 276 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_SWAP_FIFO) { pdata 278 drivers/net/ethernet/smsc/smsc911x.c __smsc911x_reg_write_shift(pdata, TX_DATA_FIFO, pdata 283 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_32BIT) { pdata 284 drivers/net/ethernet/smsc/smsc911x.c iowrite32_rep(pdata->ioaddr + __smsc_shift(pdata, pdata 289 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_16BIT) { pdata 291 drivers/net/ethernet/smsc/smsc911x.c __smsc911x_reg_write_shift(pdata, pdata 298 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->dev_lock, flags); pdata 303 drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_readfifo(struct smsc911x_data *pdata, unsigned int *buf, pdata 308 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->dev_lock, flags); pdata 310 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_SWAP_FIFO) { pdata 312 drivers/net/ethernet/smsc/smsc911x.c *buf++ = swab32(__smsc911x_reg_read(pdata, pdata 317 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_32BIT) { pdata 318 drivers/net/ethernet/smsc/smsc911x.c ioread32_rep(pdata->ioaddr + RX_DATA_FIFO, buf, wordcount); pdata 322 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_16BIT) { pdata 324 drivers/net/ethernet/smsc/smsc911x.c *buf++ = __smsc911x_reg_read(pdata, RX_DATA_FIFO); pdata 330 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->dev_lock, flags); pdata 335 drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_readfifo_shift(struct smsc911x_data *pdata, unsigned int *buf, pdata 340 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->dev_lock, flags); pdata 342 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_SWAP_FIFO) { pdata 344 drivers/net/ethernet/smsc/smsc911x.c *buf++ = swab32(__smsc911x_reg_read_shift(pdata, pdata 349 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_32BIT) { pdata 350 drivers/net/ethernet/smsc/smsc911x.c ioread32_rep(pdata->ioaddr + __smsc_shift(pdata, pdata 355 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_USE_16BIT) { pdata 357 drivers/net/ethernet/smsc/smsc911x.c *buf++ = __smsc911x_reg_read_shift(pdata, pdata 364 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->dev_lock, flags); pdata 373 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); pdata 376 drivers/net/ethernet/smsc/smsc911x.c ret = regulator_bulk_enable(ARRAY_SIZE(pdata->supplies), pdata 377 drivers/net/ethernet/smsc/smsc911x.c pdata->supplies); pdata 382 drivers/net/ethernet/smsc/smsc911x.c if (!IS_ERR(pdata->clk)) { pdata 383 drivers/net/ethernet/smsc/smsc911x.c ret = clk_prepare_enable(pdata->clk); pdata 397 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); pdata 400 drivers/net/ethernet/smsc/smsc911x.c ret = regulator_bulk_disable(ARRAY_SIZE(pdata->supplies), pdata 401 drivers/net/ethernet/smsc/smsc911x.c pdata->supplies); pdata 403 drivers/net/ethernet/smsc/smsc911x.c if (!IS_ERR(pdata->clk)) pdata 404 drivers/net/ethernet/smsc/smsc911x.c clk_disable_unprepare(pdata->clk); pdata 419 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); pdata 423 drivers/net/ethernet/smsc/smsc911x.c pdata->supplies[0].supply = "vdd33a"; pdata 424 drivers/net/ethernet/smsc/smsc911x.c pdata->supplies[1].supply = "vddvario"; pdata 426 drivers/net/ethernet/smsc/smsc911x.c ARRAY_SIZE(pdata->supplies), pdata 427 drivers/net/ethernet/smsc/smsc911x.c pdata->supplies); pdata 440 drivers/net/ethernet/smsc/smsc911x.c pdata->reset_gpiod = devm_gpiod_get_optional(&pdev->dev, pdata 445 drivers/net/ethernet/smsc/smsc911x.c pdata->clk = clk_get(&pdev->dev, NULL); pdata 446 drivers/net/ethernet/smsc/smsc911x.c if (IS_ERR(pdata->clk)) pdata 448 drivers/net/ethernet/smsc/smsc911x.c PTR_ERR(pdata->clk)); pdata 460 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); pdata 463 drivers/net/ethernet/smsc/smsc911x.c regulator_bulk_free(ARRAY_SIZE(pdata->supplies), pdata 464 drivers/net/ethernet/smsc/smsc911x.c pdata->supplies); pdata 467 drivers/net/ethernet/smsc/smsc911x.c if (!IS_ERR(pdata->clk)) { pdata 468 drivers/net/ethernet/smsc/smsc911x.c clk_put(pdata->clk); pdata 469 drivers/net/ethernet/smsc/smsc911x.c pdata->clk = NULL; pdata 475 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_mac_complete(struct smsc911x_data *pdata) pdata 480 drivers/net/ethernet/smsc/smsc911x.c SMSC_ASSERT_MAC_LOCK(pdata); pdata 483 drivers/net/ethernet/smsc/smsc911x.c val = smsc911x_reg_read(pdata, MAC_CSR_CMD); pdata 487 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "Timed out waiting for MAC not BUSY. " pdata 493 drivers/net/ethernet/smsc/smsc911x.c static u32 smsc911x_mac_read(struct smsc911x_data *pdata, unsigned int offset) pdata 497 drivers/net/ethernet/smsc/smsc911x.c SMSC_ASSERT_MAC_LOCK(pdata); pdata 499 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, MAC_CSR_CMD); pdata 501 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "MAC busy at entry"); pdata 506 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, MAC_CSR_CMD, ((offset & 0xFF) | pdata 510 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, BYTE_TEST); pdata 513 drivers/net/ethernet/smsc/smsc911x.c if (likely(smsc911x_mac_complete(pdata) == 0)) pdata 514 drivers/net/ethernet/smsc/smsc911x.c return smsc911x_reg_read(pdata, MAC_CSR_DATA); pdata 516 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "MAC busy after read"); pdata 521 drivers/net/ethernet/smsc/smsc911x.c static void smsc911x_mac_write(struct smsc911x_data *pdata, pdata 526 drivers/net/ethernet/smsc/smsc911x.c SMSC_ASSERT_MAC_LOCK(pdata); pdata 528 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, MAC_CSR_CMD); pdata 530 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, pdata 536 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, MAC_CSR_DATA, val); pdata 539 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, MAC_CSR_CMD, ((offset & 0xFF) | pdata 543 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, BYTE_TEST); pdata 546 drivers/net/ethernet/smsc/smsc911x.c if (likely(smsc911x_mac_complete(pdata) == 0)) pdata 549 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "smsc911x_mac_write failed, MAC busy after write"); pdata 555 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = (struct smsc911x_data *)bus->priv; pdata 560 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 563 drivers/net/ethernet/smsc/smsc911x.c if (unlikely(smsc911x_mac_read(pdata, MII_ACC) & MII_ACC_MII_BUSY_)) { pdata 564 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "MII is busy in smsc911x_mii_read???"); pdata 571 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MII_ACC, addr); pdata 575 drivers/net/ethernet/smsc/smsc911x.c if (!(smsc911x_mac_read(pdata, MII_ACC) & MII_ACC_MII_BUSY_)) { pdata 576 drivers/net/ethernet/smsc/smsc911x.c reg = smsc911x_mac_read(pdata, MII_DATA); pdata 580 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "Timed out waiting for MII read to finish"); pdata 584 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 592 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = (struct smsc911x_data *)bus->priv; pdata 597 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 600 drivers/net/ethernet/smsc/smsc911x.c if (unlikely(smsc911x_mac_read(pdata, MII_ACC) & MII_ACC_MII_BUSY_)) { pdata 601 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "MII is busy in smsc911x_mii_write???"); pdata 607 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MII_DATA, val); pdata 612 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MII_ACC, addr); pdata 616 drivers/net/ethernet/smsc/smsc911x.c if (!(smsc911x_mac_read(pdata, MII_ACC) & MII_ACC_MII_BUSY_)) { pdata 621 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "Timed out waiting for MII write to finish"); pdata 625 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 630 drivers/net/ethernet/smsc/smsc911x.c static void smsc911x_phy_enable_external(struct smsc911x_data *pdata) pdata 632 drivers/net/ethernet/smsc/smsc911x.c unsigned int hwcfg = smsc911x_reg_read(pdata, HW_CFG); pdata 637 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, HW_CFG, hwcfg); pdata 642 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, HW_CFG, hwcfg); pdata 647 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, HW_CFG, hwcfg); pdata 651 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, HW_CFG, hwcfg); pdata 657 drivers/net/ethernet/smsc/smsc911x.c static void smsc911x_phy_initialise_external(struct smsc911x_data *pdata) pdata 659 drivers/net/ethernet/smsc/smsc911x.c unsigned int hwcfg = smsc911x_reg_read(pdata, HW_CFG); pdata 661 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_FORCE_INTERNAL_PHY) { pdata 662 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "Forcing internal PHY"); pdata 663 drivers/net/ethernet/smsc/smsc911x.c pdata->using_extphy = 0; pdata 664 drivers/net/ethernet/smsc/smsc911x.c } else if (pdata->config.flags & SMSC911X_FORCE_EXTERNAL_PHY) { pdata 665 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "Forcing external PHY"); pdata 666 drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_enable_external(pdata); pdata 667 drivers/net/ethernet/smsc/smsc911x.c pdata->using_extphy = 1; pdata 669 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, pdata 671 drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_enable_external(pdata); pdata 672 drivers/net/ethernet/smsc/smsc911x.c pdata->using_extphy = 1; pdata 674 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, pdata 676 drivers/net/ethernet/smsc/smsc911x.c pdata->using_extphy = 0; pdata 681 drivers/net/ethernet/smsc/smsc911x.c static unsigned int smsc911x_tx_get_txstatus(struct smsc911x_data *pdata) pdata 684 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_read(pdata, TX_FIFO_INF) & TX_FIFO_INF_TSUSED_; pdata 687 drivers/net/ethernet/smsc/smsc911x.c result = smsc911x_reg_read(pdata, TX_STATUS_FIFO); pdata 693 drivers/net/ethernet/smsc/smsc911x.c static unsigned int smsc911x_rx_get_rxstatus(struct smsc911x_data *pdata) pdata 696 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_read(pdata, RX_FIFO_INF) & RX_FIFO_INF_RXSUSED_; pdata 699 drivers/net/ethernet/smsc/smsc911x.c result = smsc911x_reg_read(pdata, RX_STATUS_FIFO); pdata 705 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_phy_check_loopbackpkt(struct smsc911x_data *pdata) pdata 720 drivers/net/ethernet/smsc/smsc911x.c memset(pdata->loopback_rx_pkt, 0, MIN_PACKET_SIZE); pdata 723 drivers/net/ethernet/smsc/smsc911x.c txcmd_a = (u32)((ulong)pdata->loopback_tx_pkt & 0x03) << 16; pdata 729 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, TX_DATA_FIFO, txcmd_a); pdata 730 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, TX_DATA_FIFO, txcmd_b); pdata 732 drivers/net/ethernet/smsc/smsc911x.c bufp = (ulong)pdata->loopback_tx_pkt & (~0x3); pdata 734 drivers/net/ethernet/smsc/smsc911x.c wrsz += (u32)((ulong)pdata->loopback_tx_pkt & 0x3); pdata 737 drivers/net/ethernet/smsc/smsc911x.c pdata->ops->tx_writefifo(pdata, (unsigned int *)bufp, wrsz); pdata 743 drivers/net/ethernet/smsc/smsc911x.c status = smsc911x_tx_get_txstatus(pdata); pdata 747 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, pdata 752 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, pdata 761 drivers/net/ethernet/smsc/smsc911x.c status = smsc911x_rx_get_rxstatus(pdata); pdata 765 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, pdata 770 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, pdata 776 drivers/net/ethernet/smsc/smsc911x.c bufp = (ulong)pdata->loopback_rx_pkt; pdata 778 drivers/net/ethernet/smsc/smsc911x.c rdsz += (u32)((ulong)pdata->loopback_rx_pkt & 0x3); pdata 781 drivers/net/ethernet/smsc/smsc911x.c pdata->ops->rx_readfifo(pdata, (unsigned int *)bufp, rdsz); pdata 784 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "Unexpected packet size " pdata 791 drivers/net/ethernet/smsc/smsc911x.c if (pdata->loopback_tx_pkt[j] pdata 792 drivers/net/ethernet/smsc/smsc911x.c != pdata->loopback_rx_pkt[j]) { pdata 798 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "Successfully verified " pdata 802 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "Data mismatch " pdata 811 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_phy_reset(struct smsc911x_data *pdata) pdata 816 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, PMT_CTRL); pdata 817 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, PMT_CTRL, temp | PMT_CTRL_PHY_RST_); pdata 820 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, PMT_CTRL); pdata 824 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "PHY reset failed to complete"); pdata 837 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 844 drivers/net/ethernet/smsc/smsc911x.c eth_broadcast_addr(pdata->loopback_tx_pkt); pdata 848 drivers/net/ethernet/smsc/smsc911x.c pdata->loopback_tx_pkt[i] = (char)i; pdata 851 drivers/net/ethernet/smsc/smsc911x.c pdata->loopback_tx_pkt[12] = 0x00; pdata 852 drivers/net/ethernet/smsc/smsc911x.c pdata->loopback_tx_pkt[13] = 0x00; pdata 855 drivers/net/ethernet/smsc/smsc911x.c pdata->loopback_tx_pkt[i] = (char)i; pdata 857 drivers/net/ethernet/smsc/smsc911x.c val = smsc911x_reg_read(pdata, HW_CFG); pdata 860 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, HW_CFG, val); pdata 862 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, TX_CFG, TX_CFG_TX_ON_); pdata 863 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, RX_CFG, pdata 864 drivers/net/ethernet/smsc/smsc911x.c (u32)((ulong)pdata->loopback_rx_pkt & 0x03) << 8); pdata 872 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 873 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MAC_CR, MAC_CR_FDPX_ pdata 875 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 877 drivers/net/ethernet/smsc/smsc911x.c if (smsc911x_phy_check_loopbackpkt(pdata) == 0) { pdata 881 drivers/net/ethernet/smsc/smsc911x.c pdata->resetcount++; pdata 884 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 885 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MAC_CR, 0); pdata 886 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 888 drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_reset(pdata); pdata 892 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 893 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MAC_CR, 0); pdata 894 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 899 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, TX_CFG, 0); pdata 900 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, RX_CFG, 0); pdata 906 drivers/net/ethernet/smsc/smsc911x.c static void smsc911x_phy_update_flowcontrol(struct smsc911x_data *pdata) pdata 908 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = pdata->dev; pdata 910 drivers/net/ethernet/smsc/smsc911x.c u32 afc = smsc911x_reg_read(pdata, AFC_CFG); pdata 929 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "rx pause %s, tx pause %s", pdata 933 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "half duplex"); pdata 938 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 939 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, FLOW, flow); pdata 940 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 942 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, AFC_CFG, afc); pdata 949 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 954 drivers/net/ethernet/smsc/smsc911x.c if (phy_dev->duplex != pdata->last_duplex) { pdata 956 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "duplex state has changed"); pdata 958 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 959 drivers/net/ethernet/smsc/smsc911x.c mac_cr = smsc911x_mac_read(pdata, MAC_CR); pdata 961 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, pdata 965 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, pdata 969 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MAC_CR, mac_cr); pdata 970 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 972 drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_update_flowcontrol(pdata); pdata 973 drivers/net/ethernet/smsc/smsc911x.c pdata->last_duplex = phy_dev->duplex; pdata 977 drivers/net/ethernet/smsc/smsc911x.c if (carrier != pdata->last_carrier) { pdata 978 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "carrier state has changed"); pdata 980 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "configuring for carrier OK"); pdata 981 drivers/net/ethernet/smsc/smsc911x.c if ((pdata->gpio_orig_setting & GPIO_CFG_LED1_EN_) && pdata 982 drivers/net/ethernet/smsc/smsc911x.c (!pdata->using_extphy)) { pdata 984 drivers/net/ethernet/smsc/smsc911x.c pdata->gpio_setting = pdata->gpio_orig_setting; pdata 985 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, GPIO_CFG, pdata 986 drivers/net/ethernet/smsc/smsc911x.c pdata->gpio_setting); pdata 989 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "configuring for no carrier"); pdata 992 drivers/net/ethernet/smsc/smsc911x.c pdata->gpio_setting = smsc911x_reg_read(pdata, pdata 994 drivers/net/ethernet/smsc/smsc911x.c if ((pdata->gpio_setting & GPIO_CFG_LED1_EN_) && pdata 995 drivers/net/ethernet/smsc/smsc911x.c (!pdata->using_extphy)) { pdata 998 drivers/net/ethernet/smsc/smsc911x.c pdata->gpio_orig_setting = pdata->gpio_setting; pdata 1000 drivers/net/ethernet/smsc/smsc911x.c pdata->gpio_setting &= ~GPIO_CFG_LED1_EN_; pdata 1001 drivers/net/ethernet/smsc/smsc911x.c pdata->gpio_setting |= (GPIO_CFG_GPIOBUF0_ pdata 1004 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, GPIO_CFG, pdata 1005 drivers/net/ethernet/smsc/smsc911x.c pdata->gpio_setting); pdata 1008 drivers/net/ethernet/smsc/smsc911x.c pdata->last_carrier = carrier; pdata 1014 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1019 drivers/net/ethernet/smsc/smsc911x.c phydev = phy_find_first(pdata->mii_bus); pdata 1025 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, "PHY: addr %d, phy_id 0x%08X", pdata 1029 drivers/net/ethernet/smsc/smsc911x.c pdata->config.phy_interface); pdata 1043 drivers/net/ethernet/smsc/smsc911x.c pdata->last_duplex = -1; pdata 1044 drivers/net/ethernet/smsc/smsc911x.c pdata->last_carrier = -1; pdata 1048 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "Failed Loop Back Test"); pdata 1052 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "Passed Loop Back Test"); pdata 1055 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "phy initialised successfully"); pdata 1062 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1065 drivers/net/ethernet/smsc/smsc911x.c pdata->mii_bus = mdiobus_alloc(); pdata 1066 drivers/net/ethernet/smsc/smsc911x.c if (!pdata->mii_bus) { pdata 1071 drivers/net/ethernet/smsc/smsc911x.c pdata->mii_bus->name = SMSC_MDIONAME; pdata 1072 drivers/net/ethernet/smsc/smsc911x.c snprintf(pdata->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", pdata 1074 drivers/net/ethernet/smsc/smsc911x.c pdata->mii_bus->priv = pdata; pdata 1075 drivers/net/ethernet/smsc/smsc911x.c pdata->mii_bus->read = smsc911x_mii_read; pdata 1076 drivers/net/ethernet/smsc/smsc911x.c pdata->mii_bus->write = smsc911x_mii_write; pdata 1078 drivers/net/ethernet/smsc/smsc911x.c pdata->mii_bus->parent = &pdev->dev; pdata 1080 drivers/net/ethernet/smsc/smsc911x.c switch (pdata->idrev & 0xFFFF0000) { pdata 1086 drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_initialise_external(pdata); pdata 1089 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "External PHY is not supported, " pdata 1091 drivers/net/ethernet/smsc/smsc911x.c pdata->using_extphy = 0; pdata 1095 drivers/net/ethernet/smsc/smsc911x.c if (!pdata->using_extphy) { pdata 1097 drivers/net/ethernet/smsc/smsc911x.c pdata->mii_bus->phy_mask = ~(1 << 1); pdata 1100 drivers/net/ethernet/smsc/smsc911x.c if (mdiobus_register(pdata->mii_bus)) { pdata 1101 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, "Error registering mii bus"); pdata 1108 drivers/net/ethernet/smsc/smsc911x.c mdiobus_free(pdata->mii_bus); pdata 1114 drivers/net/ethernet/smsc/smsc911x.c static unsigned int smsc911x_tx_get_txstatcount(struct smsc911x_data *pdata) pdata 1116 drivers/net/ethernet/smsc/smsc911x.c return (smsc911x_reg_read(pdata, TX_FIFO_INF) pdata 1123 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1126 drivers/net/ethernet/smsc/smsc911x.c while ((tx_stat = smsc911x_tx_get_txstatus(pdata)) != 0) { pdata 1135 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "Packet tag reserved bit is high"); pdata 1184 drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_fastforward(struct smsc911x_data *pdata, unsigned int pktwords) pdata 1189 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, RX_DP_CTRL, RX_DP_CTRL_RX_FFWD_); pdata 1192 drivers/net/ethernet/smsc/smsc911x.c val = smsc911x_reg_read(pdata, RX_DP_CTRL); pdata 1196 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "Timed out waiting for " pdata 1201 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, RX_DATA_FIFO); pdata 1208 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = pdata 1210 drivers/net/ethernet/smsc/smsc911x.c struct net_device *dev = pdata->dev; pdata 1217 drivers/net/ethernet/smsc/smsc911x.c unsigned int rxstat = smsc911x_rx_get_rxstatus(pdata); pdata 1223 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_STS, INT_STS_RSFL_); pdata 1225 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, INT_EN); pdata 1227 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_EN, temp); pdata 1240 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, rx_err, pdata 1244 drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_fastforward(pdata, pktwords); pdata 1251 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, rx_err, pdata 1254 drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_fastforward(pdata, pktwords); pdata 1259 drivers/net/ethernet/smsc/smsc911x.c pdata->ops->rx_readfifo(pdata, pdata 1286 drivers/net/ethernet/smsc/smsc911x.c static void smsc911x_rx_multicast_update(struct smsc911x_data *pdata) pdata 1292 drivers/net/ethernet/smsc/smsc911x.c SMSC_ASSERT_MAC_LOCK(pdata); pdata 1294 drivers/net/ethernet/smsc/smsc911x.c mac_cr = smsc911x_mac_read(pdata, MAC_CR); pdata 1295 drivers/net/ethernet/smsc/smsc911x.c mac_cr |= pdata->set_bits_mask; pdata 1296 drivers/net/ethernet/smsc/smsc911x.c mac_cr &= ~(pdata->clear_bits_mask); pdata 1297 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MAC_CR, mac_cr); pdata 1298 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, HASHH, pdata->hashhi); pdata 1299 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, HASHL, pdata->hashlo); pdata 1300 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "maccr 0x%08X, HASHH 0x%08X, HASHL 0x%08X", pdata 1301 drivers/net/ethernet/smsc/smsc911x.c mac_cr, pdata->hashhi, pdata->hashlo); pdata 1304 drivers/net/ethernet/smsc/smsc911x.c static void smsc911x_rx_multicast_update_workaround(struct smsc911x_data *pdata) pdata 1315 drivers/net/ethernet/smsc/smsc911x.c spin_lock(&pdata->mac_lock); pdata 1318 drivers/net/ethernet/smsc/smsc911x.c if (smsc911x_mac_read(pdata, MAC_CR) & MAC_CR_RXEN_) pdata 1319 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Rx not stopped"); pdata 1322 drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_multicast_update(pdata); pdata 1325 drivers/net/ethernet/smsc/smsc911x.c mac_cr = smsc911x_mac_read(pdata, MAC_CR); pdata 1327 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MAC_CR, mac_cr); pdata 1329 drivers/net/ethernet/smsc/smsc911x.c pdata->multicast_update_pending = 0; pdata 1331 drivers/net/ethernet/smsc/smsc911x.c spin_unlock(&pdata->mac_lock); pdata 1334 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_phy_general_power_up(struct smsc911x_data *pdata) pdata 1336 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = pdata->dev; pdata 1352 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed reading PHY control reg"); pdata 1362 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed writing PHY control reg"); pdata 1372 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_phy_disable_energy_detect(struct smsc911x_data *pdata) pdata 1374 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = pdata->dev; pdata 1384 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed reading PHY control reg"); pdata 1395 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed writing PHY control reg"); pdata 1405 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_phy_enable_energy_detect(struct smsc911x_data *pdata) pdata 1407 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = pdata->dev; pdata 1417 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed reading PHY control reg"); pdata 1428 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed writing PHY control reg"); pdata 1435 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_soft_reset(struct smsc911x_data *pdata) pdata 1447 drivers/net/ethernet/smsc/smsc911x.c ret = smsc911x_phy_general_power_up(pdata); pdata 1449 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed to power-up the PHY chip"); pdata 1459 drivers/net/ethernet/smsc/smsc911x.c if (pdata->generation == 4) { pdata 1460 drivers/net/ethernet/smsc/smsc911x.c ret = smsc911x_phy_disable_energy_detect(pdata); pdata 1463 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed to wakeup the PHY chip"); pdata 1468 drivers/net/ethernet/smsc/smsc911x.c if ((pdata->idrev & 0xFFFF0000) == LAN9250) { pdata 1475 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, reset_offset, reset_mask); pdata 1481 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, reset_offset); pdata 1485 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed to complete reset"); pdata 1489 drivers/net/ethernet/smsc/smsc911x.c if (pdata->generation == 4) { pdata 1490 drivers/net/ethernet/smsc/smsc911x.c ret = smsc911x_phy_enable_energy_detect(pdata); pdata 1493 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed to wakeup the PHY chip"); pdata 1503 drivers/net/ethernet/smsc/smsc911x.c smsc911x_set_hw_mac_address(struct smsc911x_data *pdata, u8 dev_addr[6]) pdata 1509 drivers/net/ethernet/smsc/smsc911x.c SMSC_ASSERT_MAC_LOCK(pdata); pdata 1511 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, ADDRH, mac_high16); pdata 1512 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, ADDRL, mac_low32); pdata 1517 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1519 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_EN, 0); pdata 1520 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_STS, 0xFFFFFFFF); pdata 1526 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1527 drivers/net/ethernet/smsc/smsc911x.c u32 intsts = smsc911x_reg_read(pdata, INT_STS); pdata 1528 drivers/net/ethernet/smsc/smsc911x.c u32 inten = smsc911x_reg_read(pdata, INT_EN); pdata 1533 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, INT_EN); pdata 1535 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_EN, temp); pdata 1536 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_STS, INT_STS_SW_INT_); pdata 1537 drivers/net/ethernet/smsc/smsc911x.c pdata->software_irq_signal = 1; pdata 1545 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, intr, "RX Stop interrupt"); pdata 1546 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_STS, INT_STS_RXSTOP_INT_); pdata 1547 drivers/net/ethernet/smsc/smsc911x.c if (pdata->multicast_update_pending) pdata 1548 drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_multicast_update_workaround(pdata); pdata 1553 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, FIFO_INT); pdata 1555 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, FIFO_INT, temp); pdata 1556 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_STS, INT_STS_TDFA_); pdata 1562 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, intr, "RX Error interrupt"); pdata 1563 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_STS, INT_STS_RXE_); pdata 1568 drivers/net/ethernet/smsc/smsc911x.c if (likely(napi_schedule_prep(&pdata->napi))) { pdata 1570 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, INT_EN); pdata 1572 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_EN, temp); pdata 1574 drivers/net/ethernet/smsc/smsc911x.c __napi_schedule(&pdata->napi); pdata 1576 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, rx_err, "napi_schedule_prep failed"); pdata 1586 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1597 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, "Error starting phy"); pdata 1603 drivers/net/ethernet/smsc/smsc911x.c retval = smsc911x_soft_reset(pdata); pdata 1605 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, hw, "soft reset failed"); pdata 1609 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, HW_CFG, 0x00050000); pdata 1610 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, AFC_CFG, 0x006E3740); pdata 1613 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irq(&pdata->mac_lock); pdata 1614 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, VLAN1, ETH_P_8021Q); pdata 1615 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irq(&pdata->mac_lock); pdata 1619 drivers/net/ethernet/smsc/smsc911x.c while ((smsc911x_reg_read(pdata, E2P_CMD) & E2P_CMD_EPC_BUSY_) && pdata 1625 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, ifup, pdata 1628 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, GPIO_CFG, 0x70070000); pdata 1632 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irq(&pdata->mac_lock); pdata 1633 drivers/net/ethernet/smsc/smsc911x.c smsc911x_set_hw_mac_address(pdata, dev->dev_addr); pdata 1634 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irq(&pdata->mac_lock); pdata 1642 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.irq_polarity) { pdata 1643 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, ifup, "irq polarity: active high"); pdata 1646 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, ifup, "irq polarity: active low"); pdata 1649 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.irq_type) { pdata 1650 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, ifup, "irq type: push-pull"); pdata 1653 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, ifup, "irq type: open drain"); pdata 1656 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_CFG, intcfg); pdata 1658 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, ifup, "Testing irq handler using IRQ %d", dev->irq); pdata 1659 drivers/net/ethernet/smsc/smsc911x.c pdata->software_irq_signal = 0; pdata 1666 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, pdata 1671 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, INT_EN); pdata 1673 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_EN, temp); pdata 1677 drivers/net/ethernet/smsc/smsc911x.c if (pdata->software_irq_signal) pdata 1682 drivers/net/ethernet/smsc/smsc911x.c if (!pdata->software_irq_signal) { pdata 1688 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, ifup, "IRQ handler passed test using IRQ %d", pdata 1692 drivers/net/ethernet/smsc/smsc911x.c (unsigned long)pdata->ioaddr, dev->irq); pdata 1695 drivers/net/ethernet/smsc/smsc911x.c pdata->last_duplex = -1; pdata 1696 drivers/net/ethernet/smsc/smsc911x.c pdata->last_carrier = -1; pdata 1701 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, HW_CFG); pdata 1705 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, HW_CFG, temp); pdata 1707 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, FIFO_INT); pdata 1710 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, FIFO_INT, temp); pdata 1713 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, RX_CFG, (NET_IP_ALIGN << 8)); pdata 1716 drivers/net/ethernet/smsc/smsc911x.c napi_enable(&pdata->napi); pdata 1718 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, INT_EN); pdata 1720 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_EN, temp); pdata 1722 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irq(&pdata->mac_lock); pdata 1723 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_mac_read(pdata, MAC_CR); pdata 1725 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MAC_CR, temp); pdata 1726 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irq(&pdata->mac_lock); pdata 1728 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, TX_CFG, TX_CFG_TX_ON_); pdata 1745 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1749 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, INT_CFG); pdata 1751 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, INT_CFG, temp); pdata 1755 drivers/net/ethernet/smsc/smsc911x.c napi_disable(&pdata->napi); pdata 1758 drivers/net/ethernet/smsc/smsc911x.c dev->stats.rx_dropped += smsc911x_reg_read(pdata, RX_DROP); pdata 1771 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, ifdown, "Interface stopped"); pdata 1779 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1787 drivers/net/ethernet/smsc/smsc911x.c freespace = smsc911x_reg_read(pdata, TX_FIFO_INF) & TX_FIFO_INF_TDFREE_; pdata 1790 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, tx_err, pdata 1801 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, TX_DATA_FIFO, tx_cmd_a); pdata 1802 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, TX_DATA_FIFO, tx_cmd_b); pdata 1809 drivers/net/ethernet/smsc/smsc911x.c pdata->ops->tx_writefifo(pdata, (unsigned int *)bufp, wrsz); pdata 1814 drivers/net/ethernet/smsc/smsc911x.c if (unlikely(smsc911x_tx_get_txstatcount(pdata) >= 30)) pdata 1819 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, FIFO_INT); pdata 1822 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, FIFO_INT, temp); pdata 1831 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1833 drivers/net/ethernet/smsc/smsc911x.c dev->stats.rx_dropped += smsc911x_reg_read(pdata, RX_DROP); pdata 1840 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1845 drivers/net/ethernet/smsc/smsc911x.c pdata->set_bits_mask = MAC_CR_PRMS_; pdata 1846 drivers/net/ethernet/smsc/smsc911x.c pdata->clear_bits_mask = (MAC_CR_MCPAS_ | MAC_CR_HPFILT_); pdata 1847 drivers/net/ethernet/smsc/smsc911x.c pdata->hashhi = 0; pdata 1848 drivers/net/ethernet/smsc/smsc911x.c pdata->hashlo = 0; pdata 1851 drivers/net/ethernet/smsc/smsc911x.c pdata->set_bits_mask = MAC_CR_MCPAS_; pdata 1852 drivers/net/ethernet/smsc/smsc911x.c pdata->clear_bits_mask = (MAC_CR_PRMS_ | MAC_CR_HPFILT_); pdata 1853 drivers/net/ethernet/smsc/smsc911x.c pdata->hashhi = 0; pdata 1854 drivers/net/ethernet/smsc/smsc911x.c pdata->hashlo = 0; pdata 1861 drivers/net/ethernet/smsc/smsc911x.c pdata->set_bits_mask = MAC_CR_HPFILT_; pdata 1862 drivers/net/ethernet/smsc/smsc911x.c pdata->clear_bits_mask = (MAC_CR_PRMS_ | MAC_CR_MCPAS_); pdata 1874 drivers/net/ethernet/smsc/smsc911x.c pdata->hashhi = hash_high; pdata 1875 drivers/net/ethernet/smsc/smsc911x.c pdata->hashlo = hash_low; pdata 1878 drivers/net/ethernet/smsc/smsc911x.c pdata->set_bits_mask = 0; pdata 1879 drivers/net/ethernet/smsc/smsc911x.c pdata->clear_bits_mask = pdata 1881 drivers/net/ethernet/smsc/smsc911x.c pdata->hashhi = 0; pdata 1882 drivers/net/ethernet/smsc/smsc911x.c pdata->hashlo = 0; pdata 1885 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 1887 drivers/net/ethernet/smsc/smsc911x.c if (pdata->generation <= 1) { pdata 1890 drivers/net/ethernet/smsc/smsc911x.c if (!pdata->multicast_update_pending) { pdata 1892 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, hw, "scheduling mcast update"); pdata 1893 drivers/net/ethernet/smsc/smsc911x.c pdata->multicast_update_pending = 1; pdata 1897 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_mac_read(pdata, MAC_CR); pdata 1899 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mac_write(pdata, MAC_CR, temp); pdata 1906 drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_multicast_update(pdata); pdata 1909 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 1923 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1929 drivers/net/ethernet/smsc/smsc911x.c if (pdata->generation <= 1 && netif_running(dev)) pdata 1937 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irq(&pdata->mac_lock); pdata 1938 drivers/net/ethernet/smsc/smsc911x.c smsc911x_set_hw_mac_address(pdata, dev->dev_addr); pdata 1939 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irq(&pdata->mac_lock); pdata 1966 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1967 drivers/net/ethernet/smsc/smsc911x.c return pdata->msg_enable; pdata 1972 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1973 drivers/net/ethernet/smsc/smsc911x.c pdata->msg_enable = level; pdata 1986 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 1993 drivers/net/ethernet/smsc/smsc911x.c regs->version = pdata->idrev; pdata 1995 drivers/net/ethernet/smsc/smsc911x.c data[j++] = smsc911x_reg_read(pdata, i); pdata 1998 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irqsave(&pdata->mac_lock, flags); pdata 1999 drivers/net/ethernet/smsc/smsc911x.c data[j++] = smsc911x_mac_read(pdata, i); pdata 2000 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irqrestore(&pdata->mac_lock, flags); pdata 2008 drivers/net/ethernet/smsc/smsc911x.c static void smsc911x_eeprom_enable_access(struct smsc911x_data *pdata) pdata 2010 drivers/net/ethernet/smsc/smsc911x.c unsigned int temp = smsc911x_reg_read(pdata, GPIO_CFG); pdata 2012 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, GPIO_CFG, temp); pdata 2016 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_eeprom_send_cmd(struct smsc911x_data *pdata, u32 op) pdata 2021 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "op 0x%08x", op); pdata 2022 drivers/net/ethernet/smsc/smsc911x.c if (smsc911x_reg_read(pdata, E2P_CMD) & E2P_CMD_EPC_BUSY_) { pdata 2023 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Busy at start"); pdata 2028 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, E2P_CMD, e2cmd); pdata 2032 drivers/net/ethernet/smsc/smsc911x.c e2cmd = smsc911x_reg_read(pdata, E2P_CMD); pdata 2036 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "TIMED OUT"); pdata 2041 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "Error occurred during eeprom operation"); pdata 2048 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_eeprom_read_location(struct smsc911x_data *pdata, pdata 2054 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "address 0x%x", address); pdata 2055 drivers/net/ethernet/smsc/smsc911x.c ret = smsc911x_eeprom_send_cmd(pdata, op); pdata 2058 drivers/net/ethernet/smsc/smsc911x.c data[address] = smsc911x_reg_read(pdata, E2P_DATA); pdata 2063 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_eeprom_write_location(struct smsc911x_data *pdata, pdata 2070 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "address 0x%x, data 0x%x", address, data); pdata 2071 drivers/net/ethernet/smsc/smsc911x.c ret = smsc911x_eeprom_send_cmd(pdata, op); pdata 2075 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, E2P_DATA, (u32)data); pdata 2078 drivers/net/ethernet/smsc/smsc911x.c temp = smsc911x_reg_read(pdata, BYTE_TEST); pdata 2080 drivers/net/ethernet/smsc/smsc911x.c ret = smsc911x_eeprom_send_cmd(pdata, op); pdata 2094 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 2099 drivers/net/ethernet/smsc/smsc911x.c smsc911x_eeprom_enable_access(pdata); pdata 2103 drivers/net/ethernet/smsc/smsc911x.c int ret = smsc911x_eeprom_read_location(pdata, i, eeprom_data); pdata 2119 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 2121 drivers/net/ethernet/smsc/smsc911x.c smsc911x_eeprom_enable_access(pdata); pdata 2122 drivers/net/ethernet/smsc/smsc911x.c smsc911x_eeprom_send_cmd(pdata, E2P_CMD_EPC_CMD_EWEN_); pdata 2123 drivers/net/ethernet/smsc/smsc911x.c ret = smsc911x_eeprom_write_location(pdata, eeprom->offset, *data); pdata 2124 drivers/net/ethernet/smsc/smsc911x.c smsc911x_eeprom_send_cmd(pdata, E2P_CMD_EPC_CMD_EWDS_); pdata 2165 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 2166 drivers/net/ethernet/smsc/smsc911x.c u32 mac_high16 = smsc911x_mac_read(pdata, ADDRH); pdata 2167 drivers/net/ethernet/smsc/smsc911x.c u32 mac_low32 = smsc911x_mac_read(pdata, ADDRL); pdata 2180 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(dev); pdata 2184 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, "Driver Parameters:"); pdata 2185 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, "LAN base: 0x%08lX", pdata 2186 drivers/net/ethernet/smsc/smsc911x.c (unsigned long)pdata->ioaddr); pdata 2187 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, "IRQ: %d", dev->irq); pdata 2188 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, "PHY will be autodetected."); pdata 2190 drivers/net/ethernet/smsc/smsc911x.c spin_lock_init(&pdata->dev_lock); pdata 2191 drivers/net/ethernet/smsc/smsc911x.c spin_lock_init(&pdata->mac_lock); pdata 2193 drivers/net/ethernet/smsc/smsc911x.c if (pdata->ioaddr == NULL) { pdata 2194 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, "pdata->ioaddr: 0x00000000"); pdata 2214 drivers/net/ethernet/smsc/smsc911x.c while (!(smsc911x_reg_read(pdata, PMT_CTRL) & mask) && --to) pdata 2223 drivers/net/ethernet/smsc/smsc911x.c byte_test = smsc911x_reg_read(pdata, BYTE_TEST); pdata 2224 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, "BYTE_TEST: 0x%08X", byte_test); pdata 2226 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, "BYTE_TEST looks swapped, " pdata 2228 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, WORD_SWAP, 0xffffffff); pdata 2232 drivers/net/ethernet/smsc/smsc911x.c byte_test = smsc911x_reg_read(pdata, BYTE_TEST); pdata 2234 drivers/net/ethernet/smsc/smsc911x.c byte_test = smsc911x_reg_read(pdata, BYTE_TEST); pdata 2238 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "BYTE_TEST: 0x%08X", byte_test); pdata 2240 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, pdata 2242 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, pdata 2250 drivers/net/ethernet/smsc/smsc911x.c pdata->generation = 0; pdata 2252 drivers/net/ethernet/smsc/smsc911x.c pdata->idrev = smsc911x_reg_read(pdata, ID_REV); pdata 2253 drivers/net/ethernet/smsc/smsc911x.c switch (pdata->idrev & 0xFFFF0000) { pdata 2260 drivers/net/ethernet/smsc/smsc911x.c pdata->generation = pdata->idrev & 0x0000FFFF; pdata 2268 drivers/net/ethernet/smsc/smsc911x.c pdata->generation = 3; pdata 2277 drivers/net/ethernet/smsc/smsc911x.c pdata->generation = 4; pdata 2281 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, "LAN911x not identified, idrev: 0x%08X", pdata 2282 drivers/net/ethernet/smsc/smsc911x.c pdata->idrev); pdata 2286 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, pdata 2288 drivers/net/ethernet/smsc/smsc911x.c pdata->idrev, pdata->generation); pdata 2290 drivers/net/ethernet/smsc/smsc911x.c if (pdata->generation == 0) pdata 2291 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, pdata 2297 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.flags & SMSC911X_SAVE_MAC_ADDRESS) { pdata 2298 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irq(&pdata->mac_lock); pdata 2300 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irq(&pdata->mac_lock); pdata 2304 drivers/net/ethernet/smsc/smsc911x.c if (smsc911x_phy_reset(pdata) || smsc911x_soft_reset(pdata)) pdata 2308 drivers/net/ethernet/smsc/smsc911x.c netif_napi_add(dev, &pdata->napi, smsc911x_poll, SMSC_NAPI_WEIGHT); pdata 2318 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata; pdata 2323 drivers/net/ethernet/smsc/smsc911x.c pdata = netdev_priv(dev); pdata 2324 drivers/net/ethernet/smsc/smsc911x.c BUG_ON(!pdata); pdata 2325 drivers/net/ethernet/smsc/smsc911x.c BUG_ON(!pdata->ioaddr); pdata 2327 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, ifdown, "Stopping driver"); pdata 2331 drivers/net/ethernet/smsc/smsc911x.c mdiobus_unregister(pdata->mii_bus); pdata 2332 drivers/net/ethernet/smsc/smsc911x.c mdiobus_free(pdata->mii_bus); pdata 2341 drivers/net/ethernet/smsc/smsc911x.c iounmap(pdata->ioaddr); pdata 2415 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata; pdata 2455 drivers/net/ethernet/smsc/smsc911x.c pdata = netdev_priv(dev); pdata 2457 drivers/net/ethernet/smsc/smsc911x.c pdata->ioaddr = ioremap_nocache(res->start, res_size); pdata 2458 drivers/net/ethernet/smsc/smsc911x.c if (!pdata->ioaddr) { pdata 2463 drivers/net/ethernet/smsc/smsc911x.c pdata->dev = dev; pdata 2464 drivers/net/ethernet/smsc/smsc911x.c pdata->msg_enable = ((1 << debug) - 1); pdata 2476 drivers/net/ethernet/smsc/smsc911x.c if (pdata->ioaddr == NULL) { pdata 2477 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, "Error smsc911x base address invalid"); pdata 2482 drivers/net/ethernet/smsc/smsc911x.c retval = smsc911x_probe_config(&pdata->config, &pdev->dev); pdata 2485 drivers/net/ethernet/smsc/smsc911x.c memcpy(&pdata->config, config, sizeof(pdata->config)); pdata 2490 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, "Error smsc911x config not found"); pdata 2495 drivers/net/ethernet/smsc/smsc911x.c pdata->ops = &standard_smsc911x_ops; pdata 2497 drivers/net/ethernet/smsc/smsc911x.c if (pdata->config.shift) pdata 2498 drivers/net/ethernet/smsc/smsc911x.c pdata->ops = &shifted_smsc911x_ops; pdata 2511 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, "Error %i initialising mii", retval); pdata 2517 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, probe, "Error %i registering device", retval); pdata 2520 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, pdata 2524 drivers/net/ethernet/smsc/smsc911x.c spin_lock_irq(&pdata->mac_lock); pdata 2528 drivers/net/ethernet/smsc/smsc911x.c smsc911x_set_hw_mac_address(pdata, dev->dev_addr); pdata 2529 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, pdata 2531 drivers/net/ethernet/smsc/smsc911x.c } else if (is_valid_ether_addr(pdata->config.mac)) { pdata 2532 drivers/net/ethernet/smsc/smsc911x.c memcpy(dev->dev_addr, pdata->config.mac, ETH_ALEN); pdata 2533 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, pdata 2542 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, pdata 2547 drivers/net/ethernet/smsc/smsc911x.c smsc911x_set_hw_mac_address(pdata, dev->dev_addr); pdata 2548 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, probe, pdata 2553 drivers/net/ethernet/smsc/smsc911x.c spin_unlock_irq(&pdata->mac_lock); pdata 2567 drivers/net/ethernet/smsc/smsc911x.c iounmap(pdata->ioaddr); pdata 2585 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); pdata 2594 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, PMT_CTRL, pdata 2607 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); pdata 2617 drivers/net/ethernet/smsc/smsc911x.c smsc911x_reg_write(pdata, BYTE_TEST, 0); pdata 2622 drivers/net/ethernet/smsc/smsc911x.c while (!(smsc911x_reg_read(pdata, PMT_CTRL) & PMT_CTRL_READY_) && --to) pdata 40 drivers/net/ethernet/smsc/smsc911x.h #define SMSC_WARN(pdata, nlevel, fmt, args...) \ pdata 41 drivers/net/ethernet/smsc/smsc911x.h netif_warn(pdata, nlevel, (pdata)->dev, \ pdata 44 drivers/net/ethernet/smsc/smsc911x.h #define SMSC_WARN(pdata, nlevel, fmt, args...) \ pdata 49 drivers/net/ethernet/smsc/smsc911x.h #define SMSC_TRACE(pdata, nlevel, fmt, args...) \ pdata 50 drivers/net/ethernet/smsc/smsc911x.h netif_info(pdata, nlevel, pdata->dev, fmt "\n", ##args) pdata 52 drivers/net/ethernet/smsc/smsc911x.h #define SMSC_TRACE(pdata, nlevel, fmt, args...) \ pdata 57 drivers/net/ethernet/smsc/smsc911x.h #define SMSC_ASSERT_MAC_LOCK(pdata) \ pdata 58 drivers/net/ethernet/smsc/smsc911x.h lockdep_assert_held(&pdata->mac_lock) pdata 60 drivers/net/ethernet/smsc/smsc911x.h #define SMSC_ASSERT_MAC_LOCK(pdata) do {} while (0) pdata 34 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c static void xlgmac_read_mac_addr(struct xlgmac_pdata *pdata) pdata 36 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c struct net_device *netdev = pdata->netdev; pdata 39 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c memcpy(pdata->mac_addr, dev_addr, netdev->addr_len); pdata 42 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c static void xlgmac_default_config(struct xlgmac_pdata *pdata) pdata 44 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_osp_mode = DMA_OSP_ENABLE; pdata 45 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_sf_mode = MTL_TSF_ENABLE; pdata 46 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_sf_mode = MTL_RSF_DISABLE; pdata 47 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->pblx8 = DMA_PBL_X8_ENABLE; pdata 48 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_pbl = DMA_PBL_32; pdata 49 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_pbl = DMA_PBL_32; pdata 50 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_threshold = MTL_TX_THRESHOLD_128; pdata 51 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_threshold = MTL_RX_THRESHOLD_128; pdata 52 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_pause = 1; pdata 53 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_pause = 1; pdata 54 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->phy_speed = SPEED_25000; pdata 55 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->sysclk_rate = XLGMAC_SYSCLOCK; pdata 57 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c strlcpy(pdata->drv_name, XLGMAC_DRV_NAME, sizeof(pdata->drv_name)); pdata 58 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c strlcpy(pdata->drv_ver, XLGMAC_DRV_VERSION, sizeof(pdata->drv_ver)); pdata 61 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c static void xlgmac_init_all_ops(struct xlgmac_pdata *pdata) pdata 63 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c xlgmac_init_desc_ops(&pdata->desc_ops); pdata 64 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c xlgmac_init_hw_ops(&pdata->hw_ops); pdata 67 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c static int xlgmac_init(struct xlgmac_pdata *pdata) pdata 69 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 70 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c struct net_device *netdev = pdata->netdev; pdata 75 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c xlgmac_default_config(pdata); pdata 78 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c netdev->irq = pdata->dev_irq; pdata 79 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c netdev->base_addr = (unsigned long)pdata->mac_regs; pdata 80 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c xlgmac_read_mac_addr(pdata); pdata 81 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c memcpy(netdev->dev_addr, pdata->mac_addr, netdev->addr_len); pdata 84 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c xlgmac_init_all_ops(pdata); pdata 87 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_ops->exit(pdata); pdata 90 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c xlgmac_get_all_hw_features(pdata); pdata 91 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c xlgmac_print_all_hw_features(pdata); pdata 96 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c ret = dma_set_mask_and_coherent(pdata->dev, pdata 97 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c DMA_BIT_MASK(pdata->hw_feat.dma_width)); pdata 99 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c dev_err(pdata->dev, "dma_set_mask_and_coherent failed\n"); pdata 111 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_desc_count = XLGMAC_TX_DESC_CNT; pdata 112 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->tx_desc_count & (pdata->tx_desc_count - 1)) { pdata 113 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c dev_err(pdata->dev, "tx descriptor count (%d) is not valid\n", pdata 114 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_desc_count); pdata 119 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_desc_count = XLGMAC_RX_DESC_CNT; pdata 120 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->rx_desc_count & (pdata->rx_desc_count - 1)) { pdata 121 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c dev_err(pdata->dev, "rx descriptor count (%d) is not valid\n", pdata 122 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_desc_count); pdata 127 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_ring_count = min_t(unsigned int, num_online_cpus(), pdata 128 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_ch_cnt); pdata 129 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_ring_count = min_t(unsigned int, pdata->tx_ring_count, pdata 130 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_q_cnt); pdata 131 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_q_count = pdata->tx_ring_count; pdata 132 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c ret = netif_set_real_num_tx_queues(netdev, pdata->tx_q_count); pdata 134 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c dev_err(pdata->dev, "error setting real tx queue count\n"); pdata 138 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_ring_count = min_t(unsigned int, pdata 140 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_ch_cnt); pdata 141 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_ring_count = min_t(unsigned int, pdata->rx_ring_count, pdata 142 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_q_cnt); pdata 143 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_q_count = pdata->rx_ring_count; pdata 144 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c ret = netif_set_real_num_rx_queues(netdev, pdata->rx_q_count); pdata 146 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c dev_err(pdata->dev, "error setting real rx queue count\n"); pdata 150 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->channel_count = pdata 151 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c max_t(unsigned int, pdata->tx_ring_count, pdata->rx_ring_count); pdata 154 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c netdev_rss_key_fill(pdata->rss_key, sizeof(pdata->rss_key)); pdata 157 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rss_table[i] = XLGMAC_SET_REG_BITS( pdata 158 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rss_table[i], pdata 161 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c i % pdata->rx_ring_count); pdata 163 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rss_options = XLGMAC_SET_REG_BITS( pdata 164 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rss_options, pdata 167 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rss_options = XLGMAC_SET_REG_BITS( pdata 168 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rss_options, pdata 171 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rss_options = XLGMAC_SET_REG_BITS( pdata 172 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rss_options, pdata 181 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.tso) { pdata 187 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c } else if (pdata->hw_feat.tx_coe) { pdata 192 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.rx_coe) { pdata 197 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.rss) pdata 203 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.sa_vlan_ins) pdata 205 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.vlhash) pdata 209 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->netdev_features = netdev->features; pdata 217 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_usecs = XLGMAC_INIT_DMA_TX_USECS; pdata 218 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->tx_frames = XLGMAC_INIT_DMA_TX_FRAMES; pdata 221 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_riwt = hw_ops->usec_to_riwt(pdata, XLGMAC_INIT_DMA_RX_USECS); pdata 222 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_usecs = XLGMAC_INIT_DMA_RX_USECS; pdata 223 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->rx_frames = XLGMAC_INIT_DMA_RX_FRAMES; pdata 230 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c struct xlgmac_pdata *pdata; pdata 244 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata = netdev_priv(netdev); pdata 245 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->dev = dev; pdata 246 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->netdev = netdev; pdata 248 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->dev_irq = res->irq; pdata 249 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->mac_regs = res->addr; pdata 251 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c mutex_init(&pdata->rss_mutex); pdata 252 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->msg_enable = netif_msg_init(debug, default_msg_level); pdata 254 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c ret = xlgmac_init(pdata); pdata 284 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c void xlgmac_dump_tx_desc(struct xlgmac_pdata *pdata, pdata 297 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c netdev_dbg(pdata->netdev, "TX: dma_desc=%p, dma_desc_addr=%pad\n", pdata 299 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c netdev_dbg(pdata->netdev, pdata 311 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c void xlgmac_dump_rx_desc(struct xlgmac_pdata *pdata, pdata 321 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c netdev_dbg(pdata->netdev, "RX: dma_desc=%p, dma_desc_addr=%pad\n", pdata 323 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c netdev_dbg(pdata->netdev, pdata 359 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c void xlgmac_get_all_hw_features(struct xlgmac_pdata *pdata) pdata 361 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c struct xlgmac_hw_features *hw_feat = &pdata->hw_feat; pdata 364 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c mac_hfr0 = readl(pdata->mac_regs + MAC_HWF0R); pdata 365 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c mac_hfr1 = readl(pdata->mac_regs + MAC_HWF1R); pdata 366 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c mac_hfr2 = readl(pdata->mac_regs + MAC_HWF2R); pdata 370 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->version = readl(pdata->mac_regs + MAC_VR); pdata 514 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c void xlgmac_print_all_hw_features(struct xlgmac_pdata *pdata) pdata 525 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.vlhash ? "YES" : "NO"); pdata 527 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.sma ? "YES" : "NO"); pdata 529 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rwk ? "YES" : "NO"); pdata 531 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.mgk ? "YES" : "NO"); pdata 533 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.mmc ? "YES" : "NO"); pdata 535 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.aoe ? "YES" : "NO"); pdata 537 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.ts ? "YES" : "NO"); pdata 539 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.eee ? "YES" : "NO"); pdata 541 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_coe ? "YES" : "NO"); pdata 543 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_coe ? "YES" : "NO"); pdata 545 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.addn_mac ? "YES" : "NO"); pdata 547 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.ts_src) { pdata 564 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.sa_vlan_ins ? "YES" : "NO"); pdata 567 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.rx_fifo_size) { pdata 609 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.tx_fifo_size) { pdata 652 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.adv_ts_hi ? "YES" : "NO"); pdata 654 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.dma_width); pdata 656 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.dcb ? "YES" : "NO"); pdata 658 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.sph ? "YES" : "NO"); pdata 660 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tso ? "YES" : "NO"); pdata 662 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.dma_debug ? "YES" : "NO"); pdata 664 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rss ? "YES" : "NO"); pdata 666 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c (pdata->hw_feat.tc_cnt)); pdata 668 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.hash_table_size); pdata 670 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.l3l4_filter_num); pdata 674 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_q_cnt); pdata 676 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_q_cnt); pdata 678 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_ch_cnt); pdata 680 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_ch_cnt); pdata 682 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.pps_out_num) { pdata 703 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.aux_snap_num) { pdata 21 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static void xlgmac_unmap_desc_data(struct xlgmac_pdata *pdata, pdata 26 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_unmap_page(pdata->dev, desc_data->skb_dma, pdata 29 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_unmap_single(pdata->dev, desc_data->skb_dma, pdata 45 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_unmap_page(pdata->dev, desc_data->rx.hdr.pa_unmap.pages_dma, pdata 55 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_unmap_page(pdata->dev, desc_data->rx.buf.pa_unmap.pages_dma, pdata 74 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static void xlgmac_free_ring(struct xlgmac_pdata *pdata, pdata 86 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c xlgmac_unmap_desc_data(pdata, desc_data); pdata 94 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_unmap_page(pdata->dev, ring->rx_hdr_pa.pages_dma, pdata 105 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_unmap_page(pdata->dev, ring->rx_buf_pa.pages_dma, pdata 116 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c dma_free_coherent(pdata->dev, pdata 125 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static int xlgmac_init_ring(struct xlgmac_pdata *pdata, pdata 134 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c ring->dma_desc_head = dma_alloc_coherent(pdata->dev, pdata 149 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, pdata 158 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static void xlgmac_free_rings(struct xlgmac_pdata *pdata) pdata 163 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (!pdata->channel_head) pdata 166 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c channel = pdata->channel_head; pdata 167 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 168 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c xlgmac_free_ring(pdata, channel->tx_ring); pdata 169 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c xlgmac_free_ring(pdata, channel->rx_ring); pdata 173 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static int xlgmac_alloc_rings(struct xlgmac_pdata *pdata) pdata 179 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c channel = pdata->channel_head; pdata 180 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 181 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, "%s - Tx ring:\n", pdata 184 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c ret = xlgmac_init_ring(pdata, channel->tx_ring, pdata 185 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pdata->tx_desc_count); pdata 188 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netdev_alert(pdata->netdev, pdata 193 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, "%s - Rx ring:\n", pdata 196 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c ret = xlgmac_init_ring(pdata, channel->rx_ring, pdata 197 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pdata->rx_desc_count); pdata 199 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netdev_alert(pdata->netdev, pdata 208 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c xlgmac_free_rings(pdata); pdata 213 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static void xlgmac_free_channels(struct xlgmac_pdata *pdata) pdata 215 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (!pdata->channel_head) pdata 218 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c kfree(pdata->channel_head->tx_ring); pdata 219 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pdata->channel_head->tx_ring = NULL; pdata 221 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c kfree(pdata->channel_head->rx_ring); pdata 222 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pdata->channel_head->rx_ring = NULL; pdata 224 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c kfree(pdata->channel_head); pdata 226 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pdata->channel_head = NULL; pdata 227 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pdata->channel_count = 0; pdata 230 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static int xlgmac_alloc_channels(struct xlgmac_pdata *pdata) pdata 237 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c channel_head = kcalloc(pdata->channel_count, pdata 242 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, pdata 245 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c tx_ring = kcalloc(pdata->tx_ring_count, sizeof(struct xlgmac_ring), pdata 250 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c rx_ring = kcalloc(pdata->rx_ring_count, sizeof(struct xlgmac_ring), pdata 255 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c for (i = 0, channel = channel_head; i < pdata->channel_count; pdata 258 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c channel->pdata = pdata; pdata 260 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c channel->dma_regs = pdata->mac_regs + DMA_CH_BASE + pdata 263 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (pdata->per_channel_irq) { pdata 265 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c ret = pdata->channel_irq[i]; pdata 267 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netdev_err(pdata->netdev, pdata 275 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (i < pdata->tx_ring_count) pdata 278 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (i < pdata->rx_ring_count) pdata 281 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, pdata 287 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pdata->channel_head = channel_head; pdata 303 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static void xlgmac_free_channels_and_rings(struct xlgmac_pdata *pdata) pdata 305 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c xlgmac_free_rings(pdata); pdata 307 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c xlgmac_free_channels(pdata); pdata 310 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static int xlgmac_alloc_channels_and_rings(struct xlgmac_pdata *pdata) pdata 314 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c ret = xlgmac_alloc_channels(pdata); pdata 318 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c ret = xlgmac_alloc_rings(pdata); pdata 325 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c xlgmac_free_channels_and_rings(pdata); pdata 330 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static int xlgmac_alloc_pages(struct xlgmac_pdata *pdata, pdata 350 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pages_dma = dma_map_page(pdata->dev, pages, 0, pdata 352 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (dma_mapping_error(pdata->dev, pages_dma)) { pdata 389 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static int xlgmac_map_rx_buffer(struct xlgmac_pdata *pdata, pdata 396 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c ret = xlgmac_alloc_pages(pdata, &ring->rx_hdr_pa, pdata 404 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c ret = xlgmac_alloc_pages(pdata, &ring->rx_buf_pa, pdata 416 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c pdata->rx_buf_size); pdata 421 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static void xlgmac_tx_desc_init(struct xlgmac_pdata *pdata) pdata 423 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 431 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c channel = pdata->channel_head; pdata 432 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 458 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c static void xlgmac_rx_desc_init(struct xlgmac_pdata *pdata) pdata 460 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 468 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c channel = pdata->channel_head; pdata 469 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 483 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (xlgmac_map_rx_buffer(pdata, ring, desc_data)) pdata 500 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c struct xlgmac_pdata *pdata = channel->pdata; pdata 534 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c skb_dma = dma_map_single(pdata->dev, skb->data, pdata 536 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (dma_mapping_error(pdata->dev, skb_dma)) { pdata 537 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netdev_alert(pdata->netdev, "dma_map_single failed\n"); pdata 542 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 558 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c skb_dma = dma_map_single(pdata->dev, skb->data + offset, len, pdata 560 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (dma_mapping_error(pdata->dev, skb_dma)) { pdata 561 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netdev_alert(pdata->netdev, "dma_map_single failed\n"); pdata 566 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 580 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 590 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c skb_dma = skb_frag_dma_map(pdata->dev, frag, offset, pdata 592 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c if (dma_mapping_error(pdata->dev, skb_dma)) { pdata 593 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netdev_alert(pdata->netdev, pdata 600 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 629 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c xlgmac_unmap_desc_data(pdata, desc_data); pdata 101 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 102 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c u32 ver = pdata->hw_feat.version; pdata 105 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c strlcpy(drvinfo->driver, pdata->drv_name, sizeof(drvinfo->driver)); pdata 106 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c strlcpy(drvinfo->version, pdata->drv_ver, sizeof(drvinfo->version)); pdata 107 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c strlcpy(drvinfo->bus_info, dev_name(pdata->dev), pdata 125 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 127 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c return pdata->msg_enable; pdata 133 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 135 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c pdata->msg_enable = msglevel; pdata 141 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 145 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c channel->rx_count = pdata->rx_q_count; pdata 146 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c channel->tx_count = pdata->tx_q_count; pdata 152 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 155 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c ec->rx_coalesce_usecs = pdata->rx_usecs; pdata 156 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c ec->rx_max_coalesced_frames = pdata->rx_frames; pdata 157 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c ec->tx_max_coalesced_frames = pdata->tx_frames; pdata 165 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 166 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 185 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c rx_riwt = hw_ops->usec_to_riwt(pdata, rx_usecs); pdata 191 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c (rx_frames > pdata->rx_desc_count)) pdata 194 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c if (tx_frames > pdata->tx_desc_count) pdata 197 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c pdata->rx_riwt = rx_riwt; pdata 198 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c pdata->rx_usecs = rx_usecs; pdata 199 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c pdata->rx_frames = rx_frames; pdata 200 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c hw_ops->config_rx_coalesce(pdata); pdata 202 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c pdata->tx_frames = tx_frames; pdata 203 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c hw_ops->config_tx_coalesce(pdata); pdata 248 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 252 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c pdata->hw_ops.read_mmc_stats(pdata); pdata 254 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c stat = (u8 *)pdata + xlgmac_gstring_stats[i].stat_offset; pdata 36 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_disable_rx_csum(struct xlgmac_pdata *pdata) pdata 40 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RCR); pdata 43 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RCR); pdata 48 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_enable_rx_csum(struct xlgmac_pdata *pdata) pdata 52 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RCR); pdata 55 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RCR); pdata 60 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_mac_address(struct xlgmac_pdata *pdata, u8 *addr) pdata 68 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(mac_addr_hi, pdata->mac_regs + MAC_MACA0HR); pdata 69 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(mac_addr_lo, pdata->mac_regs + MAC_MACA0LR); pdata 74 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_set_mac_reg(struct xlgmac_pdata *pdata, pdata 94 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, pdata 104 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(mac_addr_hi, pdata->mac_regs + *mac_reg); pdata 106 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(mac_addr_lo, pdata->mac_regs + *mac_reg); pdata 110 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_enable_rx_vlan_stripping(struct xlgmac_pdata *pdata) pdata 114 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_VLANTR); pdata 130 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_VLANTR); pdata 135 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_disable_rx_vlan_stripping(struct xlgmac_pdata *pdata) pdata 139 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_VLANTR); pdata 142 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_VLANTR); pdata 147 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_enable_rx_vlan_filtering(struct xlgmac_pdata *pdata) pdata 151 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_PFR); pdata 155 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_PFR); pdata 157 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_VLANTR); pdata 175 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_VLANTR); pdata 180 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_disable_rx_vlan_filtering(struct xlgmac_pdata *pdata) pdata 184 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_PFR); pdata 188 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_PFR); pdata 217 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_update_vlan_hash_table(struct xlgmac_pdata *pdata) pdata 226 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for_each_set_bit(vid, pdata->active_vlans, VLAN_N_VID) { pdata 234 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_VLANHTR); pdata 238 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_VLANHTR); pdata 243 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_promiscuous_mode(struct xlgmac_pdata *pdata, pdata 249 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + MAC_PFR), pdata 254 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, "%s promiscuous mode\n", pdata 257 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_PFR); pdata 260 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_PFR); pdata 264 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_disable_rx_vlan_filtering(pdata); pdata 266 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER) pdata 267 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_rx_vlan_filtering(pdata); pdata 273 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_all_multicast_mode(struct xlgmac_pdata *pdata, pdata 279 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + MAC_PFR), pdata 284 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, "%s allmulti mode\n", pdata 287 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_PFR); pdata 290 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_PFR); pdata 295 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_set_mac_addn_addrs(struct xlgmac_pdata *pdata) pdata 297 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct net_device *netdev = pdata->netdev; pdata 303 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c addn_macs = pdata->hw_feat.addn_mac; pdata 306 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_promiscuous_mode(pdata, 1); pdata 309 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_mac_reg(pdata, ha, &mac_reg); pdata 314 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_all_multicast_mode(pdata, 1); pdata 317 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_mac_reg(pdata, ha, &mac_reg); pdata 325 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_mac_reg(pdata, NULL, &mac_reg); pdata 328 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_set_mac_hash_table(struct xlgmac_pdata *pdata) pdata 332 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct net_device *netdev = pdata->netdev; pdata 338 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c hash_table_shift = 26 - (pdata->hw_feat.hash_table_size >> 7); pdata 339 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c hash_table_count = pdata->hw_feat.hash_table_size / 32; pdata 358 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(hash_table[i], pdata->mac_regs + hash_reg); pdata 363 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_add_mac_addresses(struct xlgmac_pdata *pdata) pdata 365 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->hw_feat.hash_table_size) pdata 366 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_mac_hash_table(pdata); pdata 368 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_mac_addn_addrs(pdata); pdata 373 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_mac_address(struct xlgmac_pdata *pdata) pdata 377 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_mac_address(pdata, pdata->netdev->dev_addr); pdata 380 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->hw_feat.hash_table_size) { pdata 381 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_PFR); pdata 388 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_PFR); pdata 392 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_jumbo_enable(struct xlgmac_pdata *pdata) pdata 397 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c val = (pdata->netdev->mtu > XLGMAC_STD_PACKET_MTU) ? 1 : 0; pdata 399 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RCR); pdata 402 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RCR); pdata 405 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_checksum_offload(struct xlgmac_pdata *pdata) pdata 407 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->netdev->features & NETIF_F_RXCSUM) pdata 408 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_rx_csum(pdata); pdata 410 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_disable_rx_csum(pdata); pdata 413 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_vlan_support(struct xlgmac_pdata *pdata) pdata 417 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_VLANIR); pdata 423 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_VLANIR); pdata 426 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_update_vlan_hash_table(pdata); pdata 428 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER) pdata 429 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_rx_vlan_filtering(pdata); pdata 431 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_disable_rx_vlan_filtering(pdata); pdata 433 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->netdev->features & NETIF_F_HW_VLAN_CTAG_RX) pdata 434 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_rx_vlan_stripping(pdata); pdata 436 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_disable_rx_vlan_stripping(pdata); pdata 439 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_rx_mode(struct xlgmac_pdata *pdata) pdata 441 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct net_device *netdev = pdata->netdev; pdata 447 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_promiscuous_mode(pdata, pr_mode); pdata 448 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_all_multicast_mode(pdata, am_mode); pdata 450 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_add_mac_addresses(pdata); pdata 455 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_prepare_tx_stop(struct xlgmac_pdata *pdata, pdata 481 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c tx_status = readl(pdata->mac_regs + tx_dsr); pdata 492 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netdev_info(pdata->netdev, pdata 497 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_enable_tx(struct xlgmac_pdata *pdata) pdata 504 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 505 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 516 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->tx_q_count; i++) { pdata 517 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 521 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 525 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_TCR); pdata 528 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_TCR); pdata 531 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_disable_tx(struct xlgmac_pdata *pdata) pdata 538 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 539 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 543 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_prepare_tx_stop(pdata, channel); pdata 547 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_TCR); pdata 550 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_TCR); pdata 553 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->tx_q_count; i++) { pdata 554 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 557 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 561 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 562 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 573 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_prepare_rx_stop(struct xlgmac_pdata *pdata, pdata 585 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c rx_status = readl(XLGMAC_MTL_REG(pdata, queue, MTL_Q_RQDR)); pdata 597 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netdev_info(pdata->netdev, pdata 602 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_enable_rx(struct xlgmac_pdata *pdata) pdata 608 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 609 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 621 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) pdata 623 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RQC0R); pdata 626 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RCR); pdata 635 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RCR); pdata 638 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_disable_rx(struct xlgmac_pdata *pdata) pdata 645 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RCR); pdata 654 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RCR); pdata 657 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) pdata 658 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_prepare_rx_stop(pdata, i); pdata 661 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(0, pdata->mac_regs + MAC_RQC0R); pdata 664 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 665 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 679 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_pdata *pdata = channel->pdata; pdata 693 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->tx_usecs && !channel->tx_timer_active) { pdata 696 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c jiffies + usecs_to_jiffies(pdata->tx_usecs)); pdata 704 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_pdata *pdata = channel->pdata; pdata 748 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->tx_frames) pdata 750 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c else if (pkt_info->tx_packets > pdata->tx_frames) pdata 752 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c else if ((ring->coalesce_count % pdata->tx_frames) < pdata 764 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 793 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, tx_queued, pdata->netdev, pdata 844 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->stats.tx_vlan_packets++; pdata 896 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->stats.tx_tso_packets++; pdata 990 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (netif_msg_tx_queued(pdata)) pdata 991 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_dump_tx_desc(pdata, ring, start_index, pdata 999 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_xmit_stopped(netdev_get_tx_queue(pdata->netdev, pdata 1082 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_rx_desc_reset(struct xlgmac_pdata *pdata, pdata 1087 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c unsigned int rx_frames = pdata->rx_frames; pdata 1088 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c unsigned int rx_usecs = pdata->rx_usecs; pdata 1141 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_pdata *pdata = channel->pdata; pdata 1152 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_rx_desc_reset(pdata, desc_data, i); pdata 1188 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_disable_tx_flow_control(struct xlgmac_pdata *pdata) pdata 1195 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 1196 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1199 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1204 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c q_count = min_t(unsigned int, pdata->tx_q_count, max_q_count); pdata 1207 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + reg); pdata 1212 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + reg); pdata 1220 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_enable_tx_flow_control(struct xlgmac_pdata *pdata) pdata 1227 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 1228 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1231 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1236 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c q_count = min_t(unsigned int, pdata->tx_q_count, max_q_count); pdata 1239 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + reg); pdata 1248 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + reg); pdata 1256 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_disable_rx_flow_control(struct xlgmac_pdata *pdata) pdata 1260 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RFCR); pdata 1263 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RFCR); pdata 1268 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_enable_rx_flow_control(struct xlgmac_pdata *pdata) pdata 1272 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RFCR); pdata 1275 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RFCR); pdata 1280 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_tx_flow_control(struct xlgmac_pdata *pdata) pdata 1282 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->tx_pause) pdata 1283 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_tx_flow_control(pdata); pdata 1285 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_disable_tx_flow_control(pdata); pdata 1290 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_rx_flow_control(struct xlgmac_pdata *pdata) pdata 1292 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->rx_pause) pdata 1293 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_rx_flow_control(pdata); pdata 1295 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_disable_rx_flow_control(pdata); pdata 1300 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_rx_coalesce(struct xlgmac_pdata *pdata) pdata 1306 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 1307 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1314 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rx_riwt); pdata 1321 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_flow_control(struct xlgmac_pdata *pdata) pdata 1323 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_tx_flow_control(pdata); pdata 1324 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_flow_control(pdata); pdata 1327 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_rx_fep_enable(struct xlgmac_pdata *pdata) pdata 1332 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 1333 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1336 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1340 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_rx_fup_enable(struct xlgmac_pdata *pdata) pdata 1345 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 1346 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1349 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1353 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_tx_coalesce(struct xlgmac_pdata *pdata) pdata 1358 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_rx_buffer_size(struct xlgmac_pdata *pdata) pdata 1364 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 1365 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1372 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rx_buf_size); pdata 1377 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_tso_mode(struct xlgmac_pdata *pdata) pdata 1383 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 1384 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1388 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->hw_feat.tso) { pdata 1397 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_sph_mode(struct xlgmac_pdata *pdata) pdata 1403 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 1404 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1414 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RCR); pdata 1418 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RCR); pdata 1421 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static unsigned int xlgmac_usec_to_riwt(struct xlgmac_pdata *pdata, pdata 1427 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c rate = pdata->sysclk_rate; pdata 1439 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static unsigned int xlgmac_riwt_to_usec(struct xlgmac_pdata *pdata, pdata 1445 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c rate = pdata->sysclk_rate; pdata 1457 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_rx_threshold(struct xlgmac_pdata *pdata, pdata 1463 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 1464 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1467 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1473 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_mtl_mode(struct xlgmac_pdata *pdata) pdata 1479 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MTL_OMR); pdata 1482 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MTL_OMR); pdata 1485 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { pdata 1486 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_TC_ETSCR)); pdata 1489 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_TC_ETSCR)); pdata 1491 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_TC_QWR)); pdata 1494 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_TC_QWR)); pdata 1498 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MTL_OMR); pdata 1501 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MTL_OMR); pdata 1504 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_queue_mapping(struct xlgmac_pdata *pdata) pdata 1515 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c qptc = pdata->tx_q_count / pdata->hw_feat.tc_cnt; pdata 1516 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c qptc_extra = pdata->tx_q_count % pdata->hw_feat.tc_cnt; pdata 1518 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0, queue = 0; i < pdata->hw_feat.tc_cnt; i++) { pdata 1520 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, pdata 1522 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, queue, pdata 1528 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, queue, pdata 1534 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, pdata 1536 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, queue, pdata 1542 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, queue, pdata 1550 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rx_q_count); pdata 1559 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, pdata 1566 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, pdata 1577 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + reg); pdata 1586 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + reg); pdata 1589 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + reg); pdata 1592 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + reg); pdata 1595 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + reg); pdata 1598 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + reg); pdata 1601 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + reg); pdata 1630 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_tx_fifo_size(struct xlgmac_pdata *pdata) pdata 1637 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->hw_feat.tx_fifo_size, pdata 1638 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->tx_q_count); pdata 1640 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->tx_q_count; i++) { pdata 1641 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 1644 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 1647 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_info(pdata, drv, pdata->netdev, pdata 1649 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->tx_q_count, ((fifo_size + 1) * 256)); pdata 1652 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_rx_fifo_size(struct xlgmac_pdata *pdata) pdata 1659 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->hw_feat.rx_fifo_size, pdata 1660 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rx_q_count); pdata 1662 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 1663 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1666 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1669 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_info(pdata, drv, pdata->netdev, pdata 1671 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rx_q_count, ((fifo_size + 1) * 256)); pdata 1674 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_flow_control_threshold(struct xlgmac_pdata *pdata) pdata 1679 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 1680 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_RQFCR)); pdata 1687 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_RQFCR)); pdata 1691 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_tx_threshold(struct xlgmac_pdata *pdata, pdata 1697 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->tx_q_count; i++) { pdata 1698 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 1701 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 1707 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_rsf_mode(struct xlgmac_pdata *pdata, pdata 1713 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->rx_q_count; i++) { pdata 1714 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1717 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_RQOMR)); pdata 1723 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_tsf_mode(struct xlgmac_pdata *pdata, pdata 1729 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->tx_q_count; i++) { pdata 1730 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 1733 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 1739 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_osp_mode(struct xlgmac_pdata *pdata) pdata 1745 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 1746 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1753 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->tx_osp_mode); pdata 1760 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_pblx8(struct xlgmac_pdata *pdata) pdata 1766 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 1767 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1771 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->pblx8); pdata 1778 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_get_tx_pbl_val(struct xlgmac_pdata *pdata) pdata 1782 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_DMA_REG(pdata->channel_head, DMA_CH_TCR)); pdata 1788 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_tx_pbl_val(struct xlgmac_pdata *pdata) pdata 1794 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 1795 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1802 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->tx_pbl); pdata 1809 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_get_rx_pbl_val(struct xlgmac_pdata *pdata) pdata 1813 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_DMA_REG(pdata->channel_head, DMA_CH_RCR)); pdata 1819 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_config_rx_pbl_val(struct xlgmac_pdata *pdata) pdata 1825 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 1826 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1833 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rx_pbl); pdata 1840 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static u64 xlgmac_mmc_read(struct xlgmac_pdata *pdata, unsigned int reg_lo) pdata 1858 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c val = (u64)readl(pdata->mac_regs + reg_lo); pdata 1861 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c val |= ((u64)readl(pdata->mac_regs + reg_lo + 4) << 32); pdata 1866 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_tx_mmc_int(struct xlgmac_pdata *pdata) pdata 1868 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c unsigned int mmc_isr = readl(pdata->mac_regs + MMC_TISR); pdata 1869 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_stats *stats = &pdata->stats; pdata 1875 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXOCTETCOUNT_GB_LO); pdata 1881 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXFRAMECOUNT_GB_LO); pdata 1887 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXBROADCASTFRAMES_G_LO); pdata 1893 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXMULTICASTFRAMES_G_LO); pdata 1899 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX64OCTETS_GB_LO); pdata 1905 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX65TO127OCTETS_GB_LO); pdata 1911 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX128TO255OCTETS_GB_LO); pdata 1917 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX256TO511OCTETS_GB_LO); pdata 1923 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX512TO1023OCTETS_GB_LO); pdata 1929 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX1024TOMAXOCTETS_GB_LO); pdata 1935 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXUNICASTFRAMES_GB_LO); pdata 1941 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXMULTICASTFRAMES_GB_LO); pdata 1947 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXBROADCASTFRAMES_GB_LO); pdata 1953 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXUNDERFLOWERROR_LO); pdata 1959 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXOCTETCOUNT_G_LO); pdata 1965 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXFRAMECOUNT_G_LO); pdata 1971 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXPAUSEFRAMES_LO); pdata 1977 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXVLANFRAMES_G_LO); pdata 1980 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_rx_mmc_int(struct xlgmac_pdata *pdata) pdata 1982 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c unsigned int mmc_isr = readl(pdata->mac_regs + MMC_RISR); pdata 1983 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_stats *stats = &pdata->stats; pdata 1989 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXFRAMECOUNT_GB_LO); pdata 1995 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXOCTETCOUNT_GB_LO); pdata 2001 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXOCTETCOUNT_G_LO); pdata 2007 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXBROADCASTFRAMES_G_LO); pdata 2013 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXMULTICASTFRAMES_G_LO); pdata 2019 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXCRCERROR_LO); pdata 2025 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXRUNTERROR); pdata 2031 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXJABBERERROR); pdata 2037 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXUNDERSIZE_G); pdata 2043 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXOVERSIZE_G); pdata 2049 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX64OCTETS_GB_LO); pdata 2055 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX65TO127OCTETS_GB_LO); pdata 2061 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX128TO255OCTETS_GB_LO); pdata 2067 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX256TO511OCTETS_GB_LO); pdata 2073 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX512TO1023OCTETS_GB_LO); pdata 2079 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX1024TOMAXOCTETS_GB_LO); pdata 2085 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXUNICASTFRAMES_G_LO); pdata 2091 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXLENGTHERROR_LO); pdata 2097 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXOUTOFRANGETYPE_LO); pdata 2103 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXPAUSEFRAMES_LO); pdata 2109 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXFIFOOVERFLOW_LO); pdata 2115 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXVLANFRAMES_GB_LO); pdata 2121 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXWATCHDOGERROR); pdata 2124 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_read_mmc_stats(struct xlgmac_pdata *pdata) pdata 2126 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_stats *stats = &pdata->stats; pdata 2130 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MMC_CR); pdata 2133 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MMC_CR); pdata 2136 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXOCTETCOUNT_GB_LO); pdata 2139 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXFRAMECOUNT_GB_LO); pdata 2142 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXBROADCASTFRAMES_G_LO); pdata 2145 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXMULTICASTFRAMES_G_LO); pdata 2148 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX64OCTETS_GB_LO); pdata 2151 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX65TO127OCTETS_GB_LO); pdata 2154 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX128TO255OCTETS_GB_LO); pdata 2157 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX256TO511OCTETS_GB_LO); pdata 2160 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX512TO1023OCTETS_GB_LO); pdata 2163 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TX1024TOMAXOCTETS_GB_LO); pdata 2166 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXUNICASTFRAMES_GB_LO); pdata 2169 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXMULTICASTFRAMES_GB_LO); pdata 2172 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXBROADCASTFRAMES_GB_LO); pdata 2175 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXUNDERFLOWERROR_LO); pdata 2178 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXOCTETCOUNT_G_LO); pdata 2181 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXFRAMECOUNT_G_LO); pdata 2184 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXPAUSEFRAMES_LO); pdata 2187 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_TXVLANFRAMES_G_LO); pdata 2190 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXFRAMECOUNT_GB_LO); pdata 2193 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXOCTETCOUNT_GB_LO); pdata 2196 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXOCTETCOUNT_G_LO); pdata 2199 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXBROADCASTFRAMES_G_LO); pdata 2202 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXMULTICASTFRAMES_G_LO); pdata 2205 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXCRCERROR_LO); pdata 2208 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXRUNTERROR); pdata 2211 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXJABBERERROR); pdata 2214 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXUNDERSIZE_G); pdata 2217 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXOVERSIZE_G); pdata 2220 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX64OCTETS_GB_LO); pdata 2223 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX65TO127OCTETS_GB_LO); pdata 2226 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX128TO255OCTETS_GB_LO); pdata 2229 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX256TO511OCTETS_GB_LO); pdata 2232 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX512TO1023OCTETS_GB_LO); pdata 2235 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RX1024TOMAXOCTETS_GB_LO); pdata 2238 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXUNICASTFRAMES_G_LO); pdata 2241 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXLENGTHERROR_LO); pdata 2244 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXOUTOFRANGETYPE_LO); pdata 2247 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXPAUSEFRAMES_LO); pdata 2250 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXFIFOOVERFLOW_LO); pdata 2253 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXVLANFRAMES_GB_LO); pdata 2256 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_mmc_read(pdata, MMC_RXWATCHDOGERROR); pdata 2259 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MMC_CR); pdata 2262 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MMC_CR); pdata 2265 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_mmc(struct xlgmac_pdata *pdata) pdata 2269 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MMC_CR); pdata 2276 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MMC_CR); pdata 2279 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_write_rss_reg(struct xlgmac_pdata *pdata, unsigned int type, pdata 2286 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c mutex_lock(&pdata->rss_mutex); pdata 2288 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + MAC_RSSAR), pdata 2295 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(val, pdata->mac_regs + MAC_RSSDR); pdata 2297 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RSSAR); pdata 2306 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RSSAR); pdata 2310 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + MAC_RSSAR), pdata 2322 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c mutex_unlock(&pdata->rss_mutex); pdata 2327 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_write_rss_hash_key(struct xlgmac_pdata *pdata) pdata 2329 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c unsigned int key_regs = sizeof(pdata->rss_key) / sizeof(u32); pdata 2330 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c unsigned int *key = (unsigned int *)&pdata->rss_key; pdata 2334 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c ret = xlgmac_write_rss_reg(pdata, XLGMAC_RSS_HASH_KEY_TYPE, pdata 2343 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_write_rss_lookup_table(struct xlgmac_pdata *pdata) pdata 2348 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) { pdata 2349 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c ret = xlgmac_write_rss_reg(pdata, pdata 2351 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rss_table[i]); pdata 2359 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_rss_hash_key(struct xlgmac_pdata *pdata, const u8 *key) pdata 2361 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c memcpy(pdata->rss_key, key, sizeof(pdata->rss_key)); pdata 2363 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c return xlgmac_write_rss_hash_key(pdata); pdata 2366 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_rss_lookup_table(struct xlgmac_pdata *pdata, pdata 2372 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) { pdata 2374 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rss_table[i] = XLGMAC_SET_REG_BITS( pdata 2375 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->rss_table[i], pdata 2381 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c return xlgmac_write_rss_lookup_table(pdata); pdata 2384 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_enable_rss(struct xlgmac_pdata *pdata) pdata 2389 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->hw_feat.rss) pdata 2393 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c ret = xlgmac_write_rss_hash_key(pdata); pdata 2398 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c ret = xlgmac_write_rss_lookup_table(pdata); pdata 2403 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(pdata->rss_options, pdata->mac_regs + MAC_RSSCR); pdata 2406 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RSSCR); pdata 2409 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RSSCR); pdata 2414 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_disable_rss(struct xlgmac_pdata *pdata) pdata 2418 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->hw_feat.rss) pdata 2421 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_RSSCR); pdata 2424 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_RSSCR); pdata 2429 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_rss(struct xlgmac_pdata *pdata) pdata 2433 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->hw_feat.rss) pdata 2436 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->netdev->features & NETIF_F_RXHASH) pdata 2437 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c ret = xlgmac_enable_rss(pdata); pdata 2439 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c ret = xlgmac_disable_rss(pdata); pdata 2442 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netdev_err(pdata->netdev, pdata 2446 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_enable_dma_interrupts(struct xlgmac_pdata *pdata) pdata 2452 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c channel = pdata->channel_head; pdata 2453 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 2481 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->per_channel_irq) pdata 2499 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->per_channel_irq) pdata 2511 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_enable_mtl_interrupts(struct xlgmac_pdata *pdata) pdata 2516 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c q_count = max(pdata->hw_feat.tx_q_cnt, pdata->hw_feat.rx_q_cnt); pdata 2519 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c mtl_q_isr = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_ISR)); pdata 2520 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(mtl_q_isr, XLGMAC_MTL_REG(pdata, i, MTL_Q_ISR)); pdata 2523 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(0, XLGMAC_MTL_REG(pdata, i, MTL_Q_IER)); pdata 2527 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_enable_mac_interrupts(struct xlgmac_pdata *pdata) pdata 2536 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(mac_ier, pdata->mac_regs + MAC_IER); pdata 2539 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MMC_RIER); pdata 2542 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MMC_RIER); pdata 2543 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MMC_TIER); pdata 2546 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MMC_TIER); pdata 2549 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_xlgmii_25000_speed(struct xlgmac_pdata *pdata) pdata 2553 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + MAC_TCR), pdata 2558 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_TCR); pdata 2561 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_TCR); pdata 2566 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_xlgmii_40000_speed(struct xlgmac_pdata *pdata) pdata 2570 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + MAC_TCR), pdata 2575 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_TCR); pdata 2578 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_TCR); pdata 2583 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_xlgmii_50000_speed(struct xlgmac_pdata *pdata) pdata 2587 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + MAC_TCR), pdata 2592 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_TCR); pdata 2595 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_TCR); pdata 2600 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_set_xlgmii_100000_speed(struct xlgmac_pdata *pdata) pdata 2604 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + MAC_TCR), pdata 2609 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + MAC_TCR); pdata 2612 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + MAC_TCR); pdata 2617 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_mac_speed(struct xlgmac_pdata *pdata) pdata 2619 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c switch (pdata->phy_speed) { pdata 2621 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_xlgmii_100000_speed(pdata); pdata 2625 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_xlgmii_50000_speed(pdata); pdata 2629 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_xlgmii_40000_speed(pdata); pdata 2633 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_set_xlgmii_25000_speed(pdata); pdata 2640 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_pdata *pdata = channel->pdata; pdata 2642 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct net_device *netdev = pdata->netdev; pdata 2661 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (netif_msg_rx_status(pdata)) pdata 2662 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_dump_rx_desc(pdata, ring, ring->cur); pdata 2708 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->stats.rx_split_header_packets++; pdata 2777 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, rx_status, netdev, "err=%u, etlt=%#x\n", err, etlt); pdata 2792 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, rx_status, netdev, "vlan-ctag=%#06x\n", pdata 2943 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_flush_tx_queues(struct xlgmac_pdata *pdata) pdata 2948 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->tx_q_count; i++) { pdata 2949 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 2952 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 2956 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->tx_q_count; i++) { pdata 2958 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(XLGMAC_MTL_REG(pdata, i, MTL_Q_TQOMR)); pdata 2971 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static void xlgmac_config_dma_bus(struct xlgmac_pdata *pdata) pdata 2975 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + DMA_SBMR); pdata 2984 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + DMA_SBMR); pdata 2987 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_hw_init(struct xlgmac_pdata *pdata) pdata 2989 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c struct xlgmac_desc_ops *desc_ops = &pdata->desc_ops; pdata 2993 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c ret = xlgmac_flush_tx_queues(pdata); pdata 2998 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_dma_bus(pdata); pdata 2999 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_osp_mode(pdata); pdata 3000 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_pblx8(pdata); pdata 3001 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_tx_pbl_val(pdata); pdata 3002 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_pbl_val(pdata); pdata 3003 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_coalesce(pdata); pdata 3004 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_tx_coalesce(pdata); pdata 3005 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_buffer_size(pdata); pdata 3006 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_tso_mode(pdata); pdata 3007 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_sph_mode(pdata); pdata 3008 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rss(pdata); pdata 3009 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c desc_ops->tx_desc_init(pdata); pdata 3010 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c desc_ops->rx_desc_init(pdata); pdata 3011 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_dma_interrupts(pdata); pdata 3014 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_mtl_mode(pdata); pdata 3015 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_queue_mapping(pdata); pdata 3016 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_tsf_mode(pdata, pdata->tx_sf_mode); pdata 3017 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rsf_mode(pdata, pdata->rx_sf_mode); pdata 3018 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_tx_threshold(pdata, pdata->tx_threshold); pdata 3019 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_threshold(pdata, pdata->rx_threshold); pdata 3020 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_tx_fifo_size(pdata); pdata 3021 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_fifo_size(pdata); pdata 3022 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_flow_control_threshold(pdata); pdata 3023 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_fep_enable(pdata); pdata 3024 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_fup_enable(pdata); pdata 3025 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_mtl_interrupts(pdata); pdata 3028 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_mac_address(pdata); pdata 3029 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_rx_mode(pdata); pdata 3030 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_jumbo_enable(pdata); pdata 3031 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_flow_control(pdata); pdata 3032 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_mac_speed(pdata); pdata 3033 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_checksum_offload(pdata); pdata 3034 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_vlan_support(pdata); pdata 3035 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_config_mmc(pdata); pdata 3036 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c xlgmac_enable_mac_interrupts(pdata); pdata 3041 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c static int xlgmac_hw_exit(struct xlgmac_pdata *pdata) pdata 3047 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c regval = readl(pdata->mac_regs + DMA_MR); pdata 3050 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c writel(regval, pdata->mac_regs + DMA_MR); pdata 3055 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c XLGMAC_GET_REG_BITS(readl(pdata->mac_regs + DMA_MR), pdata 43 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = channel->pdata; pdata 46 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_info(pdata, drv, pdata->netdev, pdata 48 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_stop_subqueue(pdata->netdev, channel->queue_index); pdata 55 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->hw_ops.tx_start_xmit(channel, ring); pdata 114 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_prep_tx_pkt(struct xlgmac_pdata *pdata, pdata 207 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_enable_rx_tx_ints(struct xlgmac_pdata *pdata) pdata 209 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 214 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 215 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 229 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_disable_rx_tx_ints(struct xlgmac_pdata *pdata) pdata 231 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 236 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 237 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 254 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = data; pdata 259 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops = &pdata->hw_ops; pdata 265 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c dma_isr = readl(pdata->mac_regs + DMA_ISR); pdata 269 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_dbg(pdata, intr, pdata->netdev, "DMA_ISR=%#010x\n", dma_isr); pdata 271 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++) { pdata 275 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head + i; pdata 278 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_dbg(pdata, intr, pdata->netdev, "DMA_CH%u_ISR=%#010x\n", pdata 289 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (!pdata->per_channel_irq && (ti || ri)) { pdata 290 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (napi_schedule_prep(&pdata->napi)) { pdata 292 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_disable_rx_tx_ints(pdata); pdata 294 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->stats.napi_poll_isr++; pdata 296 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c __napi_schedule_irqoff(&pdata->napi); pdata 302 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->stats.tx_process_stopped++; pdata 306 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->stats.rx_process_stopped++; pdata 310 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->stats.tx_buffer_unavailable++; pdata 314 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->stats.rx_buffer_unavailable++; pdata 319 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->stats.fatal_bus_error++; pdata 320 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c schedule_work(&pdata->restart_work); pdata 329 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c mac_isr = readl(pdata->mac_regs + MAC_ISR); pdata 333 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->tx_mmc_int(pdata); pdata 337 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->rx_mmc_int(pdata); pdata 364 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = channel->pdata; pdata 367 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; pdata 371 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (pdata->per_channel_irq) pdata 374 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_disable_rx_tx_ints(pdata); pdata 376 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->stats.napi_poll_txtimer++; pdata 384 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_init_timers(struct xlgmac_pdata *pdata) pdata 389 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 390 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 398 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_stop_timers(struct xlgmac_pdata *pdata) pdata 403 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 404 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 412 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_napi_enable(struct xlgmac_pdata *pdata, unsigned int add) pdata 417 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (pdata->per_channel_irq) { pdata 418 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 419 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 421 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_napi_add(pdata->netdev, &channel->napi, pdata 429 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_napi_add(pdata->netdev, &pdata->napi, pdata 432 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c napi_enable(&pdata->napi); pdata 436 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_napi_disable(struct xlgmac_pdata *pdata, unsigned int del) pdata 441 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (pdata->per_channel_irq) { pdata 442 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 443 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 450 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c napi_disable(&pdata->napi); pdata 453 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_napi_del(&pdata->napi); pdata 457 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static int xlgmac_request_irqs(struct xlgmac_pdata *pdata) pdata 459 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct net_device *netdev = pdata->netdev; pdata 464 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = devm_request_irq(pdata->dev, pdata->dev_irq, xlgmac_isr, pdata 465 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c IRQF_SHARED, netdev->name, pdata); pdata 468 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->dev_irq); pdata 472 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (!pdata->per_channel_irq) pdata 475 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 476 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 482 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = devm_request_irq(pdata->dev, channel->dma_irq, pdata 496 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i--, channel--; i < pdata->channel_count; i--, channel--) pdata 497 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c devm_free_irq(pdata->dev, channel->dma_irq, channel); pdata 499 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c devm_free_irq(pdata->dev, pdata->dev_irq, pdata); pdata 504 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_free_irqs(struct xlgmac_pdata *pdata) pdata 509 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c devm_free_irq(pdata->dev, pdata->dev_irq, pdata); pdata 511 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (!pdata->per_channel_irq) pdata 514 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 515 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) pdata 516 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c devm_free_irq(pdata->dev, channel->dma_irq, channel); pdata 519 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_free_tx_data(struct xlgmac_pdata *pdata) pdata 521 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_desc_ops *desc_ops = &pdata->desc_ops; pdata 527 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 528 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 535 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops->unmap_desc_data(pdata, desc_data); pdata 540 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_free_rx_data(struct xlgmac_pdata *pdata) pdata 542 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_desc_ops *desc_ops = &pdata->desc_ops; pdata 548 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 549 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 556 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops->unmap_desc_data(pdata, desc_data); pdata 561 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static int xlgmac_start(struct xlgmac_pdata *pdata) pdata 563 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 564 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct net_device *netdev = pdata->netdev; pdata 567 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->init(pdata); pdata 568 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_napi_enable(pdata, 1); pdata 570 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = xlgmac_request_irqs(pdata); pdata 574 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->enable_tx(pdata); pdata 575 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->enable_rx(pdata); pdata 581 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_napi_disable(pdata, 1); pdata 582 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->exit(pdata); pdata 587 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_stop(struct xlgmac_pdata *pdata) pdata 589 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 590 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct net_device *netdev = pdata->netdev; pdata 596 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_stop_timers(pdata); pdata 597 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->disable_tx(pdata); pdata 598 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->disable_rx(pdata); pdata 599 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_free_irqs(pdata); pdata 600 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_napi_disable(pdata, 1); pdata 601 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->exit(pdata); pdata 603 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 604 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 613 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static void xlgmac_restart_dev(struct xlgmac_pdata *pdata) pdata 616 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (!netif_running(pdata->netdev)) pdata 619 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_stop(pdata); pdata 621 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_free_tx_data(pdata); pdata 622 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_free_rx_data(pdata); pdata 624 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_start(pdata); pdata 629 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = container_of(work, pdata 635 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_restart_dev(pdata); pdata 642 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 646 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops = &pdata->desc_ops; pdata 654 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->rx_buf_size = ret; pdata 657 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = desc_ops->alloc_channles_and_rings(pdata); pdata 661 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c INIT_WORK(&pdata->restart_work, xlgmac_restart); pdata 662 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_init_timers(pdata); pdata 664 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = xlgmac_start(pdata); pdata 671 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops->free_channels_and_rings(pdata); pdata 678 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 681 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops = &pdata->desc_ops; pdata 684 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_stop(pdata); pdata 687 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops->free_channels_and_rings(pdata); pdata 694 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 697 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c schedule_work(&pdata->restart_work); pdata 702 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 711 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops = &pdata->desc_ops; pdata 712 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops = &pdata->hw_ops; pdata 716 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head + skb->queue_mapping; pdata 722 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_err(pdata, tx_err, netdev, pdata 730 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_prep_tx_pkt(pdata, ring, skb, tx_pkt_info); pdata 740 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_err(pdata, tx_err, netdev, pdata 758 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (netif_msg_pktdata(pdata)) pdata 770 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 771 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_stats *pstats = &pdata->stats; pdata 773 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->hw_ops.read_mmc_stats(pdata); pdata 794 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 795 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 803 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->set_mac_address(pdata, netdev->dev_addr); pdata 819 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 826 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->rx_buf_size = ret; pdata 829 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_restart_dev(pdata); pdata 838 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 839 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 841 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c set_bit(vid, pdata->active_vlans); pdata 842 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->update_vlan_hash_table(pdata); pdata 851 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 852 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 854 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c clear_bit(vid, pdata->active_vlans); pdata 855 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->update_vlan_hash_table(pdata); pdata 863 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 867 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (pdata->per_channel_irq) { pdata 868 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 869 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) pdata 872 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c disable_irq(pdata->dev_irq); pdata 873 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_isr(pdata->dev_irq, pdata); pdata 874 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c enable_irq(pdata->dev_irq); pdata 883 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 884 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 887 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c rxhash = pdata->netdev_features & NETIF_F_RXHASH; pdata 888 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c rxcsum = pdata->netdev_features & NETIF_F_RXCSUM; pdata 889 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c rxvlan = pdata->netdev_features & NETIF_F_HW_VLAN_CTAG_RX; pdata 890 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c rxvlan_filter = pdata->netdev_features & NETIF_F_HW_VLAN_CTAG_FILTER; pdata 893 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = hw_ops->enable_rss(pdata); pdata 895 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = hw_ops->disable_rss(pdata); pdata 900 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->enable_rx_csum(pdata); pdata 902 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->disable_rx_csum(pdata); pdata 905 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->enable_rx_vlan_stripping(pdata); pdata 907 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->disable_rx_vlan_stripping(pdata); pdata 910 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->enable_rx_vlan_filtering(pdata); pdata 912 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->disable_rx_vlan_filtering(pdata); pdata 914 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->netdev_features = features; pdata 921 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = netdev_priv(netdev); pdata 922 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; pdata 924 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->config_rx_mode(pdata); pdata 953 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = channel->pdata; pdata 959 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops = &pdata->desc_ops; pdata 960 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops = &pdata->hw_ops; pdata 966 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops->unmap_desc_data(pdata, desc_data); pdata 968 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (desc_ops->map_rx_buffer(pdata, ring, desc_data)) pdata 971 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops->rx_desc_reset(pdata, desc_data, ring->dirty); pdata 987 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static struct sk_buff *xlgmac_create_skb(struct xlgmac_pdata *pdata, pdata 1003 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c dma_sync_single_range_for_cpu(pdata->dev, desc_data->rx.hdr.dma_base, pdata 1018 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c dma_sync_single_range_for_cpu(pdata->dev, pdata 1036 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = channel->pdata; pdata 1038 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct net_device *netdev = pdata->netdev; pdata 1048 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops = &pdata->desc_ops; pdata 1049 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops = &pdata->hw_ops; pdata 1075 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (netif_msg_tx_done(pdata)) pdata 1076 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_dump_tx_desc(pdata, ring, ring->dirty, 1, 0); pdata 1084 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c desc_ops->unmap_desc_data(pdata, desc_data); pdata 1109 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = channel->pdata; pdata 1111 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct net_device *netdev = pdata->netdev; pdata 1123 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c hw_ops = &pdata->hw_ops; pdata 1132 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; pdata 1180 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_err(pdata, rx_err, netdev, pdata 1192 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c skb = xlgmac_create_skb(pdata, napi, desc_data, pdata 1198 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->dev, pdata 1227 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_err(pdata, rx_err, netdev, pdata 1233 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (netif_msg_pktdata(pdata)) pdata 1247 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c pdata->stats.rx_vlan_packets++; pdata 1311 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c struct xlgmac_pdata *pdata = container_of(napi, pdata 1322 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ring_budget = budget / pdata->rx_ring_count; pdata 1326 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c channel = pdata->channel_head; pdata 1327 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c for (i = 0; i < pdata->channel_count; i++, channel++) { pdata 1344 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c xlgmac_enable_rx_tx_ints(pdata); pdata 739 drivers/net/ethernet/synopsys/dwc-xlgmac-reg.h #define XLGMAC_MTL_REG(pdata, n, reg) \ pdata 740 drivers/net/ethernet/synopsys/dwc-xlgmac-reg.h ((pdata)->mac_regs + MTL_Q_BASE + ((n) * MTL_Q_INC) + (reg)) pdata 359 drivers/net/ethernet/synopsys/dwc-xlgmac.h struct xlgmac_pdata *pdata; pdata 382 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*alloc_channles_and_rings)(struct xlgmac_pdata *pdata); pdata 383 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*free_channels_and_rings)(struct xlgmac_pdata *pdata); pdata 386 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*map_rx_buffer)(struct xlgmac_pdata *pdata, pdata 389 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*unmap_desc_data)(struct xlgmac_pdata *pdata, pdata 391 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*tx_desc_init)(struct xlgmac_pdata *pdata); pdata 392 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*rx_desc_init)(struct xlgmac_pdata *pdata); pdata 396 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*init)(struct xlgmac_pdata *pdata); pdata 397 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*exit)(struct xlgmac_pdata *pdata); pdata 401 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*enable_tx)(struct xlgmac_pdata *pdata); pdata 402 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*disable_tx)(struct xlgmac_pdata *pdata); pdata 403 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*enable_rx)(struct xlgmac_pdata *pdata); pdata 404 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*disable_rx)(struct xlgmac_pdata *pdata); pdata 413 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*set_mac_address)(struct xlgmac_pdata *pdata, u8 *addr); pdata 414 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_rx_mode)(struct xlgmac_pdata *pdata); pdata 415 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*enable_rx_csum)(struct xlgmac_pdata *pdata); pdata 416 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*disable_rx_csum)(struct xlgmac_pdata *pdata); pdata 419 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*set_xlgmii_25000_speed)(struct xlgmac_pdata *pdata); pdata 420 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*set_xlgmii_40000_speed)(struct xlgmac_pdata *pdata); pdata 421 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*set_xlgmii_50000_speed)(struct xlgmac_pdata *pdata); pdata 422 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*set_xlgmii_100000_speed)(struct xlgmac_pdata *pdata); pdata 428 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*rx_desc_reset)(struct xlgmac_pdata *pdata, pdata 437 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_tx_flow_control)(struct xlgmac_pdata *pdata); pdata 438 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_rx_flow_control)(struct xlgmac_pdata *pdata); pdata 441 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*enable_rx_vlan_stripping)(struct xlgmac_pdata *pdata); pdata 442 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*disable_rx_vlan_stripping)(struct xlgmac_pdata *pdata); pdata 443 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*enable_rx_vlan_filtering)(struct xlgmac_pdata *pdata); pdata 444 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*disable_rx_vlan_filtering)(struct xlgmac_pdata *pdata); pdata 445 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*update_vlan_hash_table)(struct xlgmac_pdata *pdata); pdata 448 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_rx_coalesce)(struct xlgmac_pdata *pdata); pdata 449 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_tx_coalesce)(struct xlgmac_pdata *pdata); pdata 450 drivers/net/ethernet/synopsys/dwc-xlgmac.h unsigned int (*usec_to_riwt)(struct xlgmac_pdata *pdata, pdata 452 drivers/net/ethernet/synopsys/dwc-xlgmac.h unsigned int (*riwt_to_usec)(struct xlgmac_pdata *pdata, pdata 456 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_rx_threshold)(struct xlgmac_pdata *pdata, pdata 458 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_tx_threshold)(struct xlgmac_pdata *pdata, pdata 462 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_rsf_mode)(struct xlgmac_pdata *pdata, pdata 464 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_tsf_mode)(struct xlgmac_pdata *pdata, pdata 468 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_osp_mode)(struct xlgmac_pdata *pdata); pdata 471 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_rx_pbl_val)(struct xlgmac_pdata *pdata); pdata 472 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*get_rx_pbl_val)(struct xlgmac_pdata *pdata); pdata 473 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_tx_pbl_val)(struct xlgmac_pdata *pdata); pdata 474 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*get_tx_pbl_val)(struct xlgmac_pdata *pdata); pdata 475 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*config_pblx8)(struct xlgmac_pdata *pdata); pdata 478 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*rx_mmc_int)(struct xlgmac_pdata *pdata); pdata 479 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*tx_mmc_int)(struct xlgmac_pdata *pdata); pdata 480 drivers/net/ethernet/synopsys/dwc-xlgmac.h void (*read_mmc_stats)(struct xlgmac_pdata *pdata); pdata 483 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*enable_rss)(struct xlgmac_pdata *pdata); pdata 484 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*disable_rss)(struct xlgmac_pdata *pdata); pdata 485 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*set_rss_hash_key)(struct xlgmac_pdata *pdata, pdata 487 drivers/net/ethernet/synopsys/dwc-xlgmac.h int (*set_rss_lookup_table)(struct xlgmac_pdata *pdata, pdata 636 drivers/net/ethernet/synopsys/dwc-xlgmac.h void xlgmac_dump_tx_desc(struct xlgmac_pdata *pdata, pdata 641 drivers/net/ethernet/synopsys/dwc-xlgmac.h void xlgmac_dump_rx_desc(struct xlgmac_pdata *pdata, pdata 646 drivers/net/ethernet/synopsys/dwc-xlgmac.h void xlgmac_get_all_hw_features(struct xlgmac_pdata *pdata); pdata 647 drivers/net/ethernet/synopsys/dwc-xlgmac.h void xlgmac_print_all_hw_features(struct xlgmac_pdata *pdata); pdata 615 drivers/net/ethernet/ti/cpmac.c struct plat_cpmac_data *pdata = dev_get_platdata(&priv->pdev->dev); pdata 617 drivers/net/ethernet/ti/cpmac.c ar7_device_reset(pdata->reset_bit); pdata 638 drivers/net/ethernet/ti/cpmac.c struct plat_cpmac_data *pdata = dev_get_platdata(&priv->pdev->dev); pdata 640 drivers/net/ethernet/ti/cpmac.c ar7_device_reset(pdata->reset_bit); pdata 1071 drivers/net/ethernet/ti/cpmac.c struct plat_cpmac_data *pdata; pdata 1074 drivers/net/ethernet/ti/cpmac.c pdata = dev_get_platdata(&pdev->dev); pdata 1081 drivers/net/ethernet/ti/cpmac.c if (!(pdata->phy_mask & (1 << phy_id))) pdata 1125 drivers/net/ethernet/ti/cpmac.c memcpy(dev->dev_addr, pdata->dev_addr, sizeof(pdata->dev_addr)); pdata 1688 drivers/net/ethernet/ti/davinci_emac.c struct emac_platform_data *pdata = NULL; pdata 1694 drivers/net/ethernet/ti/davinci_emac.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1695 drivers/net/ethernet/ti/davinci_emac.c if (!pdata) pdata 1699 drivers/net/ethernet/ti/davinci_emac.c pdata->version = EMAC_VERSION_2; pdata 1701 drivers/net/ethernet/ti/davinci_emac.c if (!is_valid_ether_addr(pdata->mac_addr)) { pdata 1704 drivers/net/ethernet/ti/davinci_emac.c ether_addr_copy(pdata->mac_addr, mac_addr); pdata 1708 drivers/net/ethernet/ti/davinci_emac.c &pdata->ctrl_reg_offset); pdata 1711 drivers/net/ethernet/ti/davinci_emac.c &pdata->ctrl_mod_reg_offset); pdata 1714 drivers/net/ethernet/ti/davinci_emac.c &pdata->ctrl_ram_offset); pdata 1717 drivers/net/ethernet/ti/davinci_emac.c &pdata->ctrl_ram_size); pdata 1719 drivers/net/ethernet/ti/davinci_emac.c of_property_read_u8(np, "ti,davinci-rmii-en", &pdata->rmii_en); pdata 1721 drivers/net/ethernet/ti/davinci_emac.c pdata->no_bd_ram = of_property_read_bool(np, "ti,davinci-no-bd-ram"); pdata 1726 drivers/net/ethernet/ti/davinci_emac.c pdata->phy_id = NULL; pdata 1733 drivers/net/ethernet/ti/davinci_emac.c pdata->interrupt_enable = auxdata->interrupt_enable; pdata 1734 drivers/net/ethernet/ti/davinci_emac.c pdata->interrupt_disable = auxdata->interrupt_disable; pdata 1740 drivers/net/ethernet/ti/davinci_emac.c pdata->version = auxdata->version; pdata 1741 drivers/net/ethernet/ti/davinci_emac.c pdata->hw_ram_addr = auxdata->hw_ram_addr; pdata 1744 drivers/net/ethernet/ti/davinci_emac.c return pdata; pdata 1772 drivers/net/ethernet/ti/davinci_emac.c struct emac_platform_data *pdata; pdata 1801 drivers/net/ethernet/ti/davinci_emac.c pdata = davinci_emac_of_get_pdata(pdev, priv); pdata 1802 drivers/net/ethernet/ti/davinci_emac.c if (!pdata) { pdata 1809 drivers/net/ethernet/ti/davinci_emac.c memcpy(priv->mac_addr, pdata->mac_addr, ETH_ALEN); pdata 1810 drivers/net/ethernet/ti/davinci_emac.c priv->phy_id = pdata->phy_id; pdata 1811 drivers/net/ethernet/ti/davinci_emac.c priv->rmii_en = pdata->rmii_en; pdata 1812 drivers/net/ethernet/ti/davinci_emac.c priv->version = pdata->version; pdata 1813 drivers/net/ethernet/ti/davinci_emac.c priv->int_enable = pdata->interrupt_enable; pdata 1814 drivers/net/ethernet/ti/davinci_emac.c priv->int_disable = pdata->interrupt_disable; pdata 1821 drivers/net/ethernet/ti/davinci_emac.c priv->emac_base_phys = res->start + pdata->ctrl_reg_offset; pdata 1837 drivers/net/ethernet/ti/davinci_emac.c priv->ctrl_base = priv->remap_addr + pdata->ctrl_mod_reg_offset; pdata 1840 drivers/net/ethernet/ti/davinci_emac.c priv->emac_base = priv->remap_addr + pdata->ctrl_reg_offset; pdata 1843 drivers/net/ethernet/ti/davinci_emac.c hw_ram_addr = pdata->hw_ram_addr; pdata 1845 drivers/net/ethernet/ti/davinci_emac.c hw_ram_addr = (u32 __force)res->start + pdata->ctrl_ram_offset; pdata 1859 drivers/net/ethernet/ti/davinci_emac.c dma_params.desc_mem_size = pdata->ctrl_ram_size; pdata 1862 drivers/net/ethernet/ti/davinci_emac.c dma_params.desc_mem_phys = pdata->no_bd_ram ? 0 : pdata 1863 drivers/net/ethernet/ti/davinci_emac.c (u32 __force)res->start + pdata->ctrl_ram_offset; pdata 81 drivers/net/ethernet/ti/davinci_mdio.c struct mdio_platform_data pdata; pdata 100 drivers/net/ethernet/ti/davinci_mdio.c div = (mdio_in / data->pdata.bus_freq) - 1; pdata 151 drivers/net/ethernet/ti/davinci_mdio.c data->pdata.bus_freq); pdata 342 drivers/net/ethernet/ti/davinci_mdio.c struct mdio_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 363 drivers/net/ethernet/ti/davinci_mdio.c ret = davinci_mdio_probe_dt(&data->pdata, pdev); pdata 378 drivers/net/ethernet/ti/davinci_mdio.c data->pdata = pdata ? (*pdata) : default_pdata; pdata 1275 drivers/net/ethernet/xilinx/ll_temac_main.c struct ll_temac_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1318 drivers/net/ethernet/xilinx/ll_temac_main.c if (pdata) { pdata 1319 drivers/net/ethernet/xilinx/ll_temac_main.c if (!pdata->indirect_lock) { pdata 1324 drivers/net/ethernet/xilinx/ll_temac_main.c lp->indirect_lock = pdata->indirect_lock; pdata 1348 drivers/net/ethernet/xilinx/ll_temac_main.c } else if (pdata) { pdata 1349 drivers/net/ethernet/xilinx/ll_temac_main.c little_endian = pdata->reg_little_endian; pdata 1368 drivers/net/ethernet/xilinx/ll_temac_main.c } else if (pdata) { pdata 1369 drivers/net/ethernet/xilinx/ll_temac_main.c if (pdata->txcsum) pdata 1371 drivers/net/ethernet/xilinx/ll_temac_main.c if (pdata->rxcsum) pdata 1426 drivers/net/ethernet/xilinx/ll_temac_main.c } else if (pdata) { pdata 1436 drivers/net/ethernet/xilinx/ll_temac_main.c if (pdata->dma_little_endian) { pdata 1449 drivers/net/ethernet/xilinx/ll_temac_main.c if (pdata->tx_irq_timeout || pdata->tx_irq_count) pdata 1450 drivers/net/ethernet/xilinx/ll_temac_main.c lp->tx_chnl_ctrl = (pdata->tx_irq_timeout << 24) | pdata 1451 drivers/net/ethernet/xilinx/ll_temac_main.c (pdata->tx_irq_count << 16); pdata 1454 drivers/net/ethernet/xilinx/ll_temac_main.c if (pdata->rx_irq_timeout || pdata->rx_irq_count) { pdata 1455 drivers/net/ethernet/xilinx/ll_temac_main.c lp->rx_chnl_ctrl = (pdata->rx_irq_timeout << 24) | pdata 1456 drivers/net/ethernet/xilinx/ll_temac_main.c (pdata->rx_irq_count << 16); pdata 1457 drivers/net/ethernet/xilinx/ll_temac_main.c lp->coalesce_count_rx = pdata->rx_irq_count; pdata 1484 drivers/net/ethernet/xilinx/ll_temac_main.c } else if (pdata) { pdata 1485 drivers/net/ethernet/xilinx/ll_temac_main.c temac_init_mac_address(ndev, pdata->mac_addr); pdata 1496 drivers/net/ethernet/xilinx/ll_temac_main.c } else if (pdata) { pdata 1498 drivers/net/ethernet/xilinx/ll_temac_main.c PHY_ID_FMT, lp->mii_bus->id, pdata->phy_addr); pdata 1499 drivers/net/ethernet/xilinx/ll_temac_main.c lp->phy_interface = pdata->phy_interface; pdata 65 drivers/net/ethernet/xilinx/ll_temac_mdio.c struct ll_temac_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 77 drivers/net/ethernet/xilinx/ll_temac_mdio.c else if (pdata) pdata 78 drivers/net/ethernet/xilinx/ll_temac_mdio.c bus_hz = pdata->mdio_clk_freq; pdata 102 drivers/net/ethernet/xilinx/ll_temac_mdio.c } else if (pdata) { pdata 104 drivers/net/ethernet/xilinx/ll_temac_mdio.c pdata->mdio_bus_id); pdata 1483 drivers/net/ieee802154/at86rf230.c struct at86rf230_platform_data *pdata = spi->dev.platform_data; pdata 1487 drivers/net/ieee802154/at86rf230.c if (!pdata) pdata 1490 drivers/net/ieee802154/at86rf230.c *rstn = pdata->rstn; pdata 1491 drivers/net/ieee802154/at86rf230.c *slp_tr = pdata->slp_tr; pdata 1492 drivers/net/ieee802154/at86rf230.c *xtal_trim = pdata->xtal_trim; pdata 514 drivers/net/ieee802154/ca8210.c } pdata; pdata 671 drivers/net/ieee802154/ca8210.c struct ca8210_platform_data *pdata = spi->dev.platform_data; pdata 675 drivers/net/ieee802154/ca8210.c gpio_set_value(pdata->gpio_reset, 0); pdata 678 drivers/net/ieee802154/ca8210.c gpio_set_value(pdata->gpio_reset, 1); pdata 1117 drivers/net/ieee802154/ca8210.c command.pdata.tdme_set_sfr_req.sfr_page = sfr_page; pdata 1118 drivers/net/ieee802154/ca8210.c command.pdata.tdme_set_sfr_req.sfr_address = sfr_address; pdata 1119 drivers/net/ieee802154/ca8210.c command.pdata.tdme_set_sfr_req.sfr_value = sfr_value; pdata 1141 drivers/net/ieee802154/ca8210.c return response.pdata.tdme_set_sfr_cnf.status; pdata 1487 drivers/net/ieee802154/ca8210.c command.pdata.data_req.src_addr_mode = src_addr_mode; pdata 1488 drivers/net/ieee802154/ca8210.c command.pdata.data_req.dst.mode = dst_address_mode; pdata 1490 drivers/net/ieee802154/ca8210.c command.pdata.data_req.dst.pan_id[0] = LS_BYTE(dst_pan_id); pdata 1491 drivers/net/ieee802154/ca8210.c command.pdata.data_req.dst.pan_id[1] = MS_BYTE(dst_pan_id); pdata 1493 drivers/net/ieee802154/ca8210.c command.pdata.data_req.dst.address[0] = LS_BYTE( pdata 1496 drivers/net/ieee802154/ca8210.c command.pdata.data_req.dst.address[1] = MS_BYTE( pdata 1501 drivers/net/ieee802154/ca8210.c command.pdata.data_req.dst.address, pdata 1507 drivers/net/ieee802154/ca8210.c command.pdata.data_req.msdu_length = msdu_length; pdata 1508 drivers/net/ieee802154/ca8210.c command.pdata.data_req.msdu_handle = msdu_handle; pdata 1509 drivers/net/ieee802154/ca8210.c command.pdata.data_req.tx_options = tx_options; pdata 1510 drivers/net/ieee802154/ca8210.c memcpy(command.pdata.data_req.msdu, msdu, msdu_length); pdata 1511 drivers/net/ieee802154/ca8210.c psec = (struct secspec *)(command.pdata.data_req.msdu + msdu_length); pdata 1547 drivers/net/ieee802154/ca8210.c command.pdata.u8param = set_default_pib; pdata 1561 drivers/net/ieee802154/ca8210.c status = response.pdata.status; pdata 1624 drivers/net/ieee802154/ca8210.c command.pdata.set_req.pib_attribute = pib_attribute; pdata 1625 drivers/net/ieee802154/ca8210.c command.pdata.set_req.pib_attribute_index = pib_attribute_index; pdata 1626 drivers/net/ieee802154/ca8210.c command.pdata.set_req.pib_attribute_length = pib_attribute_length; pdata 1628 drivers/net/ieee802154/ca8210.c command.pdata.set_req.pib_attribute_value, pdata 1644 drivers/net/ieee802154/ca8210.c return response.pdata.status; pdata 1667 drivers/net/ieee802154/ca8210.c command.pdata.hwme_set_req.hw_attribute = hw_attribute; pdata 1668 drivers/net/ieee802154/ca8210.c command.pdata.hwme_set_req.hw_attribute_length = hw_attribute_length; pdata 1670 drivers/net/ieee802154/ca8210.c command.pdata.hwme_set_req.hw_attribute_value, pdata 1686 drivers/net/ieee802154/ca8210.c return response.pdata.hwme_set_cnf.status; pdata 1709 drivers/net/ieee802154/ca8210.c command.pdata.hwme_get_req.hw_attribute = hw_attribute; pdata 1722 drivers/net/ieee802154/ca8210.c if (response.pdata.hwme_get_cnf.status == MAC_SUCCESS) { pdata 1724 drivers/net/ieee802154/ca8210.c response.pdata.hwme_get_cnf.hw_attribute_length; pdata 1727 drivers/net/ieee802154/ca8210.c response.pdata.hwme_get_cnf.hw_attribute_value, pdata 1732 drivers/net/ieee802154/ca8210.c return response.pdata.hwme_get_cnf.status; pdata 2688 drivers/net/ieee802154/ca8210.c struct ca8210_platform_data *pdata pdata 2696 drivers/net/ieee802154/ca8210.c pdata->extclockenable = of_property_read_bool( pdata 2700 drivers/net/ieee802154/ca8210.c if (pdata->extclockenable) { pdata 2704 drivers/net/ieee802154/ca8210.c &pdata->extclockfreq pdata 2712 drivers/net/ieee802154/ca8210.c &pdata->extclockgpio pdata 2732 drivers/net/ieee802154/ca8210.c struct ca8210_platform_data *pdata, pdata 2741 drivers/net/ieee802154/ca8210.c switch (pdata->extclockfreq) { pdata 2761 drivers/net/ieee802154/ca8210.c clkparam[1] = pdata->extclockgpio; pdata 2782 drivers/net/ieee802154/ca8210.c struct ca8210_platform_data *pdata = spi->dev.platform_data; pdata 2793 drivers/net/ieee802154/ca8210.c pdata->extclockfreq pdata 2840 drivers/net/ieee802154/ca8210.c struct ca8210_platform_data *pdata = spi->dev.platform_data; pdata 2842 drivers/net/ieee802154/ca8210.c pdata->gpio_reset = of_get_named_gpio( pdata 2848 drivers/net/ieee802154/ca8210.c ret = gpio_direction_output(pdata->gpio_reset, 1); pdata 2853 drivers/net/ieee802154/ca8210.c pdata->gpio_reset pdata 2869 drivers/net/ieee802154/ca8210.c struct ca8210_platform_data *pdata = spi->dev.platform_data; pdata 2871 drivers/net/ieee802154/ca8210.c pdata->gpio_irq = of_get_named_gpio( pdata 2877 drivers/net/ieee802154/ca8210.c pdata->irq_id = gpio_to_irq(pdata->gpio_irq); pdata 2878 drivers/net/ieee802154/ca8210.c if (pdata->irq_id < 0) { pdata 2882 drivers/net/ieee802154/ca8210.c pdata->gpio_irq pdata 2884 drivers/net/ieee802154/ca8210.c gpio_free(pdata->gpio_irq); pdata 2885 drivers/net/ieee802154/ca8210.c return pdata->irq_id; pdata 2889 drivers/net/ieee802154/ca8210.c pdata->irq_id, pdata 2896 drivers/net/ieee802154/ca8210.c dev_crit(&spi->dev, "request_irq %d failed\n", pdata->irq_id); pdata 2897 drivers/net/ieee802154/ca8210.c gpio_unexport(pdata->gpio_irq); pdata 2898 drivers/net/ieee802154/ca8210.c gpio_free(pdata->gpio_irq); pdata 3054 drivers/net/ieee802154/ca8210.c struct ca8210_platform_data *pdata; pdata 3058 drivers/net/ieee802154/ca8210.c pdata = spi_device->dev.platform_data; pdata 3059 drivers/net/ieee802154/ca8210.c if (pdata) { pdata 3060 drivers/net/ieee802154/ca8210.c if (pdata->extclockenable) { pdata 3062 drivers/net/ieee802154/ca8210.c ca8210_config_extern_clk(pdata, spi_device, 0); pdata 3064 drivers/net/ieee802154/ca8210.c free_irq(pdata->irq_id, spi_device->dev.driver_data); pdata 3065 drivers/net/ieee802154/ca8210.c kfree(pdata); pdata 3105 drivers/net/ieee802154/ca8210.c struct ca8210_platform_data *pdata; pdata 3142 drivers/net/ieee802154/ca8210.c pdata = kmalloc(sizeof(*pdata), GFP_KERNEL); pdata 3143 drivers/net/ieee802154/ca8210.c if (!pdata) { pdata 3148 drivers/net/ieee802154/ca8210.c priv->spi->dev.platform_data = pdata; pdata 3149 drivers/net/ieee802154/ca8210.c ret = ca8210_get_platform_data(priv->spi, pdata); pdata 3182 drivers/net/ieee802154/ca8210.c if (pdata->extclockenable) { pdata 3183 drivers/net/ieee802154/ca8210.c ret = ca8210_config_extern_clk(pdata, priv->spi, 1); pdata 918 drivers/net/ieee802154/cc2520.c struct cc2520_platform_data *pdata) pdata 928 drivers/net/ieee802154/cc2520.c *pdata = *spi_pdata; pdata 929 drivers/net/ieee802154/cc2520.c priv->fifo_pin = pdata->fifo; pdata 933 drivers/net/ieee802154/cc2520.c pdata->fifo = of_get_named_gpio(np, "fifo-gpio", 0); pdata 934 drivers/net/ieee802154/cc2520.c priv->fifo_pin = pdata->fifo; pdata 936 drivers/net/ieee802154/cc2520.c pdata->fifop = of_get_named_gpio(np, "fifop-gpio", 0); pdata 938 drivers/net/ieee802154/cc2520.c pdata->sfd = of_get_named_gpio(np, "sfd-gpio", 0); pdata 939 drivers/net/ieee802154/cc2520.c pdata->cca = of_get_named_gpio(np, "cca-gpio", 0); pdata 940 drivers/net/ieee802154/cc2520.c pdata->vreg = of_get_named_gpio(np, "vreg-gpio", 0); pdata 941 drivers/net/ieee802154/cc2520.c pdata->reset = of_get_named_gpio(np, "reset-gpio", 0); pdata 955 drivers/net/ieee802154/cc2520.c struct cc2520_platform_data pdata; pdata 957 drivers/net/ieee802154/cc2520.c ret = cc2520_get_platform_data(priv->spi, &pdata); pdata 1076 drivers/net/ieee802154/cc2520.c struct cc2520_platform_data pdata; pdata 1085 drivers/net/ieee802154/cc2520.c ret = cc2520_get_platform_data(spi, &pdata); pdata 1107 drivers/net/ieee802154/cc2520.c if (!gpio_is_valid(pdata.fifo)) { pdata 1113 drivers/net/ieee802154/cc2520.c ret = devm_gpio_request_one(&spi->dev, pdata.fifo, pdata 1118 drivers/net/ieee802154/cc2520.c if (!gpio_is_valid(pdata.cca)) { pdata 1124 drivers/net/ieee802154/cc2520.c ret = devm_gpio_request_one(&spi->dev, pdata.cca, pdata 1129 drivers/net/ieee802154/cc2520.c if (!gpio_is_valid(pdata.fifop)) { pdata 1135 drivers/net/ieee802154/cc2520.c ret = devm_gpio_request_one(&spi->dev, pdata.fifop, pdata 1140 drivers/net/ieee802154/cc2520.c if (!gpio_is_valid(pdata.sfd)) { pdata 1146 drivers/net/ieee802154/cc2520.c ret = devm_gpio_request_one(&spi->dev, pdata.sfd, pdata 1151 drivers/net/ieee802154/cc2520.c if (!gpio_is_valid(pdata.reset)) { pdata 1157 drivers/net/ieee802154/cc2520.c ret = devm_gpio_request_one(&spi->dev, pdata.reset, pdata 1162 drivers/net/ieee802154/cc2520.c if (!gpio_is_valid(pdata.vreg)) { pdata 1168 drivers/net/ieee802154/cc2520.c ret = devm_gpio_request_one(&spi->dev, pdata.vreg, pdata 1173 drivers/net/ieee802154/cc2520.c gpio_set_value(pdata.vreg, HIGH); pdata 1176 drivers/net/ieee802154/cc2520.c gpio_set_value(pdata.reset, HIGH); pdata 1185 drivers/net/ieee802154/cc2520.c gpio_to_irq(pdata.fifop), pdata 1197 drivers/net/ieee802154/cc2520.c gpio_to_irq(pdata.sfd), pdata 219 drivers/net/phy/mdio-bcm-unimac.c struct unimac_mdio_pdata *pdata = pdev->dev.platform_data; pdata 266 drivers/net/phy/mdio-bcm-unimac.c if (pdata) { pdata 267 drivers/net/phy/mdio-bcm-unimac.c bus->name = pdata->bus_name; pdata 268 drivers/net/phy/mdio-bcm-unimac.c priv->wait_func = pdata->wait_func; pdata 269 drivers/net/phy/mdio-bcm-unimac.c priv->wait_func_data = pdata->wait_func_data; pdata 270 drivers/net/phy/mdio-bcm-unimac.c bus->phy_mask = ~pdata->phy_mask; pdata 113 drivers/net/phy/mdio-gpio.c struct mdio_gpio_platform_data *pdata = dev_get_platdata(dev); pdata 130 drivers/net/phy/mdio-gpio.c if (pdata) { pdata 131 drivers/net/phy/mdio-gpio.c new_bus->phy_mask = pdata->phy_mask; pdata 132 drivers/net/phy/mdio-gpio.c new_bus->phy_ignore_ta_mask = pdata->phy_ignore_ta_mask; pdata 25 drivers/net/phy/mdio-xgene.c u32 xgene_mdio_rd_mac(struct xgene_mdio_pdata *pdata, u32 rd_addr) pdata 31 drivers/net/phy/mdio-xgene.c addr = pdata->mac_csr_addr + MAC_ADDR_REG_OFFSET; pdata 32 drivers/net/phy/mdio-xgene.c rd = pdata->mac_csr_addr + MAC_READ_REG_OFFSET; pdata 33 drivers/net/phy/mdio-xgene.c cmd = pdata->mac_csr_addr + MAC_COMMAND_REG_OFFSET; pdata 34 drivers/net/phy/mdio-xgene.c cmd_done = pdata->mac_csr_addr + MAC_COMMAND_DONE_REG_OFFSET; pdata 36 drivers/net/phy/mdio-xgene.c spin_lock(&pdata->mac_lock); pdata 47 drivers/net/phy/mdio-xgene.c spin_unlock(&pdata->mac_lock); pdata 53 drivers/net/phy/mdio-xgene.c void xgene_mdio_wr_mac(struct xgene_mdio_pdata *pdata, u32 wr_addr, u32 data) pdata 59 drivers/net/phy/mdio-xgene.c addr = pdata->mac_csr_addr + MAC_ADDR_REG_OFFSET; pdata 60 drivers/net/phy/mdio-xgene.c wr = pdata->mac_csr_addr + MAC_WRITE_REG_OFFSET; pdata 61 drivers/net/phy/mdio-xgene.c cmd = pdata->mac_csr_addr + MAC_COMMAND_REG_OFFSET; pdata 62 drivers/net/phy/mdio-xgene.c cmd_done = pdata->mac_csr_addr + MAC_COMMAND_DONE_REG_OFFSET; pdata 64 drivers/net/phy/mdio-xgene.c spin_lock(&pdata->mac_lock); pdata 76 drivers/net/phy/mdio-xgene.c spin_unlock(&pdata->mac_lock); pdata 82 drivers/net/phy/mdio-xgene.c struct xgene_mdio_pdata *pdata = (struct xgene_mdio_pdata *)bus->priv; pdata 87 drivers/net/phy/mdio-xgene.c xgene_mdio_wr_mac(pdata, MII_MGMT_ADDRESS_ADDR, data); pdata 88 drivers/net/phy/mdio-xgene.c xgene_mdio_wr_mac(pdata, MII_MGMT_COMMAND_ADDR, READ_CYCLE_MASK); pdata 91 drivers/net/phy/mdio-xgene.c done = xgene_mdio_rd_mac(pdata, MII_MGMT_INDICATORS_ADDR); pdata 99 drivers/net/phy/mdio-xgene.c data = xgene_mdio_rd_mac(pdata, MII_MGMT_STATUS_ADDR); pdata 100 drivers/net/phy/mdio-xgene.c xgene_mdio_wr_mac(pdata, MII_MGMT_COMMAND_ADDR, 0); pdata 108 drivers/net/phy/mdio-xgene.c struct xgene_mdio_pdata *pdata = (struct xgene_mdio_pdata *)bus->priv; pdata 113 drivers/net/phy/mdio-xgene.c xgene_mdio_wr_mac(pdata, MII_MGMT_ADDRESS_ADDR, val); pdata 115 drivers/net/phy/mdio-xgene.c xgene_mdio_wr_mac(pdata, MII_MGMT_CONTROL_ADDR, data); pdata 118 drivers/net/phy/mdio-xgene.c done = xgene_mdio_rd_mac(pdata, MII_MGMT_INDICATORS_ADDR); pdata 130 drivers/net/phy/mdio-xgene.c static u32 xgene_menet_rd_diag_csr(struct xgene_mdio_pdata *pdata, u32 offset) pdata 132 drivers/net/phy/mdio-xgene.c return ioread32(pdata->diag_csr_addr + offset); pdata 135 drivers/net/phy/mdio-xgene.c static void xgene_menet_wr_diag_csr(struct xgene_mdio_pdata *pdata, pdata 138 drivers/net/phy/mdio-xgene.c iowrite32(val, pdata->diag_csr_addr + offset); pdata 141 drivers/net/phy/mdio-xgene.c static int xgene_enet_ecc_init(struct xgene_mdio_pdata *pdata) pdata 146 drivers/net/phy/mdio-xgene.c xgene_menet_wr_diag_csr(pdata, MENET_CFG_MEM_RAM_SHUTDOWN_ADDR, 0x0); pdata 149 drivers/net/phy/mdio-xgene.c data = xgene_menet_rd_diag_csr(pdata, MENET_BLOCK_MEM_RDY_ADDR); pdata 153 drivers/net/phy/mdio-xgene.c dev_err(pdata->dev, "Failed to release memory from shutdown\n"); pdata 160 drivers/net/phy/mdio-xgene.c static void xgene_gmac_reset(struct xgene_mdio_pdata *pdata) pdata 162 drivers/net/phy/mdio-xgene.c xgene_mdio_wr_mac(pdata, MAC_CONFIG_1_ADDR, SOFT_RESET); pdata 163 drivers/net/phy/mdio-xgene.c xgene_mdio_wr_mac(pdata, MAC_CONFIG_1_ADDR, 0); pdata 166 drivers/net/phy/mdio-xgene.c static int xgene_mdio_reset(struct xgene_mdio_pdata *pdata) pdata 170 drivers/net/phy/mdio-xgene.c if (pdata->dev->of_node) { pdata 171 drivers/net/phy/mdio-xgene.c clk_prepare_enable(pdata->clk); pdata 173 drivers/net/phy/mdio-xgene.c clk_disable_unprepare(pdata->clk); pdata 175 drivers/net/phy/mdio-xgene.c clk_prepare_enable(pdata->clk); pdata 179 drivers/net/phy/mdio-xgene.c acpi_evaluate_object(ACPI_HANDLE(pdata->dev), pdata 184 drivers/net/phy/mdio-xgene.c ret = xgene_enet_ecc_init(pdata); pdata 186 drivers/net/phy/mdio-xgene.c if (pdata->dev->of_node) pdata 187 drivers/net/phy/mdio-xgene.c clk_disable_unprepare(pdata->clk); pdata 190 drivers/net/phy/mdio-xgene.c xgene_gmac_reset(pdata); pdata 331 drivers/net/phy/mdio-xgene.c struct xgene_mdio_pdata *pdata; pdata 351 drivers/net/phy/mdio-xgene.c pdata = devm_kzalloc(dev, sizeof(struct xgene_mdio_pdata), GFP_KERNEL); pdata 352 drivers/net/phy/mdio-xgene.c if (!pdata) pdata 354 drivers/net/phy/mdio-xgene.c pdata->mdio_id = mdio_id; pdata 355 drivers/net/phy/mdio-xgene.c pdata->dev = dev; pdata 360 drivers/net/phy/mdio-xgene.c pdata->mac_csr_addr = csr_base; pdata 361 drivers/net/phy/mdio-xgene.c pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET; pdata 362 drivers/net/phy/mdio-xgene.c pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET; pdata 365 drivers/net/phy/mdio-xgene.c spin_lock_init(&pdata->mac_lock); pdata 368 drivers/net/phy/mdio-xgene.c pdata->clk = devm_clk_get(dev, NULL); pdata 369 drivers/net/phy/mdio-xgene.c if (IS_ERR(pdata->clk)) { pdata 371 drivers/net/phy/mdio-xgene.c return PTR_ERR(pdata->clk); pdata 375 drivers/net/phy/mdio-xgene.c ret = xgene_mdio_reset(pdata); pdata 390 drivers/net/phy/mdio-xgene.c mdio_bus->priv = (void __force *)pdata; pdata 396 drivers/net/phy/mdio-xgene.c mdio_bus->priv = (void __force *)pdata->mdio_csr_addr; pdata 402 drivers/net/phy/mdio-xgene.c platform_set_drvdata(pdev, pdata); pdata 422 drivers/net/phy/mdio-xgene.c pdata->mdio_bus = mdio_bus; pdata 432 drivers/net/phy/mdio-xgene.c clk_disable_unprepare(pdata->clk); pdata 439 drivers/net/phy/mdio-xgene.c struct xgene_mdio_pdata *pdata = platform_get_drvdata(pdev); pdata 440 drivers/net/phy/mdio-xgene.c struct mii_bus *mdio_bus = pdata->mdio_bus; pdata 447 drivers/net/phy/mdio-xgene.c clk_disable_unprepare(pdata->clk); pdata 124 drivers/net/phy/mdio-xgene.h u32 xgene_mdio_rd_mac(struct xgene_mdio_pdata *pdata, u32 rd_addr); pdata 125 drivers/net/phy/mdio-xgene.h void xgene_mdio_wr_mac(struct xgene_mdio_pdata *pdata, u32 wr_addr, u32 data); pdata 148 drivers/net/phy/spi_ks8995.c struct ks8995_pdata *pdata; pdata 413 drivers/net/phy/spi_ks8995.c struct ks8995_pdata *pdata = ks->pdata; pdata 418 drivers/net/phy/spi_ks8995.c pdata->reset_gpio = of_get_named_gpio_flags(np, "reset-gpios", 0, pdata 419 drivers/net/phy/spi_ks8995.c &pdata->reset_gpio_flags); pdata 453 drivers/net/phy/spi_ks8995.c ks->pdata = devm_kzalloc(&spi->dev, sizeof(*ks->pdata), pdata 455 drivers/net/phy/spi_ks8995.c if (!ks->pdata) pdata 458 drivers/net/phy/spi_ks8995.c ks->pdata->reset_gpio = -1; pdata 463 drivers/net/phy/spi_ks8995.c if (!ks->pdata) pdata 464 drivers/net/phy/spi_ks8995.c ks->pdata = spi->dev.platform_data; pdata 467 drivers/net/phy/spi_ks8995.c if (ks->pdata && gpio_is_valid(ks->pdata->reset_gpio)) { pdata 470 drivers/net/phy/spi_ks8995.c flags = (ks->pdata->reset_gpio_flags == OF_GPIO_ACTIVE_LOW ? pdata 474 drivers/net/phy/spi_ks8995.c ks->pdata->reset_gpio, pdata 482 drivers/net/phy/spi_ks8995.c gpiod_set_value(gpio_to_desc(ks->pdata->reset_gpio), 0); pdata 527 drivers/net/phy/spi_ks8995.c if (ks->pdata && gpio_is_valid(ks->pdata->reset_gpio)) pdata 528 drivers/net/phy/spi_ks8995.c gpiod_set_value(gpio_to_desc(ks->pdata->reset_gpio), 1); pdata 180 drivers/net/usb/kaweth.c void *pdata; pdata 977 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 984 drivers/net/usb/lan78xx.c mutex_lock(&pdata->dataport_mutex); pdata 1009 drivers/net/usb/lan78xx.c mutex_unlock(&pdata->dataport_mutex); pdata 1015 drivers/net/usb/lan78xx.c static void lan78xx_set_addr_filter(struct lan78xx_priv *pdata, pdata 1020 drivers/net/usb/lan78xx.c if ((pdata) && (index > 0) && (index < NUM_OF_MAF)) { pdata 1025 drivers/net/usb/lan78xx.c pdata->pfilter_table[index][1] = temp; pdata 1029 drivers/net/usb/lan78xx.c pdata->pfilter_table[index][0] = temp; pdata 1041 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = pdata 1043 drivers/net/usb/lan78xx.c struct lan78xx_net *dev = pdata->dev; pdata 1048 drivers/net/usb/lan78xx.c pdata->rfe_ctl); pdata 1051 drivers/net/usb/lan78xx.c DP_SEL_VHF_HASH_LEN, pdata->mchash_table); pdata 1056 drivers/net/usb/lan78xx.c pdata->pfilter_table[i][1]); pdata 1058 drivers/net/usb/lan78xx.c pdata->pfilter_table[i][0]); pdata 1061 drivers/net/usb/lan78xx.c ret = lan78xx_write_reg(dev, RFE_CTL, pdata->rfe_ctl); pdata 1067 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 1071 drivers/net/usb/lan78xx.c spin_lock_irqsave(&pdata->rfe_ctl_lock, flags); pdata 1073 drivers/net/usb/lan78xx.c pdata->rfe_ctl &= ~(RFE_CTL_UCAST_EN_ | RFE_CTL_MCAST_EN_ | pdata 1077 drivers/net/usb/lan78xx.c pdata->mchash_table[i] = 0; pdata 1080 drivers/net/usb/lan78xx.c pdata->pfilter_table[i][0] = pdata 1081 drivers/net/usb/lan78xx.c pdata->pfilter_table[i][1] = 0; pdata 1084 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_BCAST_EN_; pdata 1088 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_MCAST_EN_ | RFE_CTL_UCAST_EN_; pdata 1093 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_MCAST_EN_; pdata 1103 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_DA_PERFECT_; pdata 1109 drivers/net/usb/lan78xx.c lan78xx_set_addr_filter(pdata, i, ha->addr); pdata 1113 drivers/net/usb/lan78xx.c pdata->mchash_table[bitnum / 32] |= pdata 1115 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_MCAST_HASH_; pdata 1121 drivers/net/usb/lan78xx.c spin_unlock_irqrestore(&pdata->rfe_ctl_lock, flags); pdata 1124 drivers/net/usb/lan78xx.c schedule_work(&pdata->set_multicast); pdata 1361 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 1373 drivers/net/usb/lan78xx.c wol->wolopts = pdata->wol; pdata 1387 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 1397 drivers/net/usb/lan78xx.c pdata->wol = wol->wolopts; pdata 2343 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 2347 drivers/net/usb/lan78xx.c spin_lock_irqsave(&pdata->rfe_ctl_lock, flags); pdata 2350 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_TCPUDP_COE_ | RFE_CTL_IP_COE_; pdata 2351 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_ICMP_COE_ | RFE_CTL_IGMP_COE_; pdata 2353 drivers/net/usb/lan78xx.c pdata->rfe_ctl &= ~(RFE_CTL_TCPUDP_COE_ | RFE_CTL_IP_COE_); pdata 2354 drivers/net/usb/lan78xx.c pdata->rfe_ctl &= ~(RFE_CTL_ICMP_COE_ | RFE_CTL_IGMP_COE_); pdata 2358 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_VLAN_STRIP_; pdata 2360 drivers/net/usb/lan78xx.c pdata->rfe_ctl &= ~RFE_CTL_VLAN_STRIP_; pdata 2363 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_VLAN_FILTER_; pdata 2365 drivers/net/usb/lan78xx.c pdata->rfe_ctl &= ~RFE_CTL_VLAN_FILTER_; pdata 2367 drivers/net/usb/lan78xx.c spin_unlock_irqrestore(&pdata->rfe_ctl_lock, flags); pdata 2369 drivers/net/usb/lan78xx.c ret = lan78xx_write_reg(dev, RFE_CTL, pdata->rfe_ctl); pdata 2376 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = pdata 2378 drivers/net/usb/lan78xx.c struct lan78xx_net *dev = pdata->dev; pdata 2381 drivers/net/usb/lan78xx.c DP_SEL_VHF_VLAN_LEN, pdata->vlan_table); pdata 2388 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 2395 drivers/net/usb/lan78xx.c pdata->vlan_table[vid_dword_index] |= (1 << vid_bit_index); pdata 2398 drivers/net/usb/lan78xx.c schedule_work(&pdata->set_vlan); pdata 2407 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 2414 drivers/net/usb/lan78xx.c pdata->vlan_table[vid_dword_index] &= ~(1 << vid_bit_index); pdata 2417 drivers/net/usb/lan78xx.c schedule_work(&pdata->set_vlan); pdata 2463 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 2539 drivers/net/usb/lan78xx.c ret = lan78xx_read_reg(dev, RFE_CTL, &pdata->rfe_ctl); pdata 2540 drivers/net/usb/lan78xx.c pdata->rfe_ctl |= RFE_CTL_BCAST_EN_ | RFE_CTL_DA_PERFECT_; pdata 2541 drivers/net/usb/lan78xx.c ret = lan78xx_write_reg(dev, RFE_CTL, pdata->rfe_ctl); pdata 2932 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = NULL; pdata 2943 drivers/net/usb/lan78xx.c dev->data[0] = (unsigned long)kzalloc(sizeof(*pdata), GFP_KERNEL); pdata 2945 drivers/net/usb/lan78xx.c pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 2946 drivers/net/usb/lan78xx.c if (!pdata) { pdata 2951 drivers/net/usb/lan78xx.c pdata->dev = dev; pdata 2953 drivers/net/usb/lan78xx.c spin_lock_init(&pdata->rfe_ctl_lock); pdata 2954 drivers/net/usb/lan78xx.c mutex_init(&pdata->dataport_mutex); pdata 2956 drivers/net/usb/lan78xx.c INIT_WORK(&pdata->set_multicast, lan78xx_deferred_multicast_write); pdata 2959 drivers/net/usb/lan78xx.c pdata->vlan_table[i] = 0; pdata 2961 drivers/net/usb/lan78xx.c INIT_WORK(&pdata->set_vlan, lan78xx_deferred_vlan_write); pdata 3007 drivers/net/usb/lan78xx.c pdata->wol = WAKE_MAGIC; pdata 3016 drivers/net/usb/lan78xx.c cancel_work_sync(&pdata->set_multicast); pdata 3017 drivers/net/usb/lan78xx.c cancel_work_sync(&pdata->set_vlan); pdata 3018 drivers/net/usb/lan78xx.c kfree(pdata); pdata 3024 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 3030 drivers/net/usb/lan78xx.c if (pdata) { pdata 3031 drivers/net/usb/lan78xx.c cancel_work_sync(&pdata->set_multicast); pdata 3032 drivers/net/usb/lan78xx.c cancel_work_sync(&pdata->set_vlan); pdata 3034 drivers/net/usb/lan78xx.c kfree(pdata); pdata 3035 drivers/net/usb/lan78xx.c pdata = NULL; pdata 4009 drivers/net/usb/lan78xx.c struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]); pdata 4093 drivers/net/usb/lan78xx.c lan78xx_set_suspend(dev, pdata->wol); pdata 460 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 464 drivers/net/usb/smsc75xx.c mutex_lock(&pdata->dataport_mutex); pdata 513 drivers/net/usb/smsc75xx.c mutex_unlock(&pdata->dataport_mutex); pdata 525 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = pdata 527 drivers/net/usb/smsc75xx.c struct usbnet *dev = pdata->dev; pdata 531 drivers/net/usb/smsc75xx.c pdata->rfe_ctl); pdata 534 drivers/net/usb/smsc75xx.c DP_SEL_VHF_HASH_LEN, pdata->multicast_hash_table); pdata 536 drivers/net/usb/smsc75xx.c ret = smsc75xx_write_reg(dev, RFE_CTL, pdata->rfe_ctl); pdata 544 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 548 drivers/net/usb/smsc75xx.c spin_lock_irqsave(&pdata->rfe_ctl_lock, flags); pdata 550 drivers/net/usb/smsc75xx.c pdata->rfe_ctl &= pdata 552 drivers/net/usb/smsc75xx.c pdata->rfe_ctl |= RFE_CTL_AB; pdata 555 drivers/net/usb/smsc75xx.c pdata->multicast_hash_table[i] = 0; pdata 559 drivers/net/usb/smsc75xx.c pdata->rfe_ctl |= RFE_CTL_AM | RFE_CTL_AU; pdata 562 drivers/net/usb/smsc75xx.c pdata->rfe_ctl |= RFE_CTL_AM | RFE_CTL_DPF; pdata 568 drivers/net/usb/smsc75xx.c pdata->rfe_ctl |= RFE_CTL_MHF | RFE_CTL_DPF; pdata 572 drivers/net/usb/smsc75xx.c pdata->multicast_hash_table[bitnum / 32] |= pdata 577 drivers/net/usb/smsc75xx.c pdata->rfe_ctl |= RFE_CTL_DPF; pdata 580 drivers/net/usb/smsc75xx.c spin_unlock_irqrestore(&pdata->rfe_ctl_lock, flags); pdata 583 drivers/net/usb/smsc75xx.c schedule_work(&pdata->set_multicast); pdata 708 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 711 drivers/net/usb/smsc75xx.c wolinfo->wolopts = pdata->wolopts; pdata 718 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 724 drivers/net/usb/smsc75xx.c pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; pdata 726 drivers/net/usb/smsc75xx.c ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); pdata 938 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 942 drivers/net/usb/smsc75xx.c spin_lock_irqsave(&pdata->rfe_ctl_lock, flags); pdata 945 drivers/net/usb/smsc75xx.c pdata->rfe_ctl |= RFE_CTL_TCPUDP_CKM | RFE_CTL_IP_CKM; pdata 947 drivers/net/usb/smsc75xx.c pdata->rfe_ctl &= ~(RFE_CTL_TCPUDP_CKM | RFE_CTL_IP_CKM); pdata 949 drivers/net/usb/smsc75xx.c spin_unlock_irqrestore(&pdata->rfe_ctl_lock, flags); pdata 952 drivers/net/usb/smsc75xx.c ret = smsc75xx_write_reg(dev, RFE_CTL, pdata->rfe_ctl); pdata 1044 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 1295 drivers/net/usb/smsc75xx.c ret = smsc75xx_read_reg(dev, RFE_CTL, &pdata->rfe_ctl); pdata 1301 drivers/net/usb/smsc75xx.c pdata->rfe_ctl |= RFE_CTL_AB | RFE_CTL_DPF; pdata 1303 drivers/net/usb/smsc75xx.c ret = smsc75xx_write_reg(dev, RFE_CTL, pdata->rfe_ctl); pdata 1309 drivers/net/usb/smsc75xx.c ret = smsc75xx_read_reg(dev, RFE_CTL, &pdata->rfe_ctl); pdata 1316 drivers/net/usb/smsc75xx.c pdata->rfe_ctl); pdata 1448 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = NULL; pdata 1462 drivers/net/usb/smsc75xx.c pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 1463 drivers/net/usb/smsc75xx.c if (!pdata) pdata 1466 drivers/net/usb/smsc75xx.c pdata->dev = dev; pdata 1468 drivers/net/usb/smsc75xx.c spin_lock_init(&pdata->rfe_ctl_lock); pdata 1469 drivers/net/usb/smsc75xx.c mutex_init(&pdata->dataport_mutex); pdata 1471 drivers/net/usb/smsc75xx.c INIT_WORK(&pdata->set_multicast, smsc75xx_deferred_multicast_write); pdata 1508 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 1509 drivers/net/usb/smsc75xx.c if (pdata) { pdata 1510 drivers/net/usb/smsc75xx.c cancel_work_sync(&pdata->set_multicast); pdata 1512 drivers/net/usb/smsc75xx.c kfree(pdata); pdata 1513 drivers/net/usb/smsc75xx.c pdata = NULL; pdata 1565 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 1584 drivers/net/usb/smsc75xx.c pdata->suspend_flags |= SUSPEND_SUSPEND0; pdata 1591 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 1620 drivers/net/usb/smsc75xx.c pdata->suspend_flags |= SUSPEND_SUSPEND1; pdata 1627 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 1646 drivers/net/usb/smsc75xx.c pdata->suspend_flags |= SUSPEND_SUSPEND2; pdata 1653 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 1693 drivers/net/usb/smsc75xx.c pdata->suspend_flags |= SUSPEND_SUSPEND3; pdata 1788 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 1798 drivers/net/usb/smsc75xx.c if (pdata->suspend_flags) { pdata 1800 drivers/net/usb/smsc75xx.c pdata->suspend_flags = 0; pdata 1815 drivers/net/usb/smsc75xx.c if (!(pdata->wolopts & SUPPORTED_WAKE) || pdata 1816 drivers/net/usb/smsc75xx.c !(link_up || (pdata->wolopts & WAKE_PHY))) { pdata 1852 drivers/net/usb/smsc75xx.c if (pdata->wolopts & WAKE_PHY) { pdata 1886 drivers/net/usb/smsc75xx.c if (pdata->wolopts & (WAKE_MCAST | WAKE_ARP)) { pdata 1898 drivers/net/usb/smsc75xx.c if (pdata->wolopts & WAKE_MCAST) { pdata 1911 drivers/net/usb/smsc75xx.c if (pdata->wolopts & WAKE_ARP) { pdata 1985 drivers/net/usb/smsc75xx.c if (pdata->wolopts & WAKE_PHY) { pdata 2005 drivers/net/usb/smsc75xx.c if (pdata->wolopts & WAKE_MAGIC) { pdata 2023 drivers/net/usb/smsc75xx.c if (pdata->wolopts & WAKE_BCAST) { pdata 2040 drivers/net/usb/smsc75xx.c if (pdata->wolopts & WAKE_UCAST) { pdata 2089 drivers/net/usb/smsc75xx.c struct smsc75xx_priv *pdata = (struct smsc75xx_priv *)(dev->data[0]); pdata 2090 drivers/net/usb/smsc75xx.c u8 suspend_flags = pdata->suspend_flags; pdata 2097 drivers/net/usb/smsc75xx.c pdata->suspend_flags = 0; pdata 458 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 462 drivers/net/usb/smsc95xx.c pdata->hash_hi = 0; pdata 463 drivers/net/usb/smsc95xx.c pdata->hash_lo = 0; pdata 465 drivers/net/usb/smsc95xx.c spin_lock_irqsave(&pdata->mac_cr_lock, flags); pdata 469 drivers/net/usb/smsc95xx.c pdata->mac_cr |= MAC_CR_PRMS_; pdata 470 drivers/net/usb/smsc95xx.c pdata->mac_cr &= ~(MAC_CR_MCPAS_ | MAC_CR_HPFILT_); pdata 473 drivers/net/usb/smsc95xx.c pdata->mac_cr |= MAC_CR_MCPAS_; pdata 474 drivers/net/usb/smsc95xx.c pdata->mac_cr &= ~(MAC_CR_PRMS_ | MAC_CR_HPFILT_); pdata 478 drivers/net/usb/smsc95xx.c pdata->mac_cr |= MAC_CR_HPFILT_; pdata 479 drivers/net/usb/smsc95xx.c pdata->mac_cr &= ~(MAC_CR_PRMS_ | MAC_CR_MCPAS_); pdata 485 drivers/net/usb/smsc95xx.c pdata->hash_hi |= mask; pdata 487 drivers/net/usb/smsc95xx.c pdata->hash_lo |= mask; pdata 491 drivers/net/usb/smsc95xx.c pdata->hash_hi, pdata->hash_lo); pdata 494 drivers/net/usb/smsc95xx.c pdata->mac_cr &= pdata 498 drivers/net/usb/smsc95xx.c spin_unlock_irqrestore(&pdata->mac_cr_lock, flags); pdata 501 drivers/net/usb/smsc95xx.c ret = smsc95xx_write_reg_async(dev, HASHH, pdata->hash_hi); pdata 505 drivers/net/usb/smsc95xx.c ret = smsc95xx_write_reg_async(dev, HASHL, pdata->hash_lo); pdata 509 drivers/net/usb/smsc95xx.c ret = smsc95xx_write_reg_async(dev, MAC_CR, pdata->mac_cr); pdata 553 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 578 drivers/net/usb/smsc95xx.c spin_lock_irqsave(&pdata->mac_cr_lock, flags); pdata 580 drivers/net/usb/smsc95xx.c pdata->mac_cr &= ~MAC_CR_FDPX_; pdata 581 drivers/net/usb/smsc95xx.c pdata->mac_cr |= MAC_CR_RCVOWN_; pdata 583 drivers/net/usb/smsc95xx.c pdata->mac_cr &= ~MAC_CR_RCVOWN_; pdata 584 drivers/net/usb/smsc95xx.c pdata->mac_cr |= MAC_CR_FDPX_; pdata 586 drivers/net/usb/smsc95xx.c spin_unlock_irqrestore(&pdata->mac_cr_lock, flags); pdata 588 drivers/net/usb/smsc95xx.c ret = smsc95xx_write_reg(dev, MAC_CR, pdata->mac_cr); pdata 621 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 623 drivers/net/usb/smsc95xx.c if (pdata->link_ok == link) pdata 626 drivers/net/usb/smsc95xx.c pdata->link_ok = link; pdata 636 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = container_of(work, struct smsc95xx_priv, pdata 638 drivers/net/usb/smsc95xx.c struct usbnet *dev = pdata->dev; pdata 641 drivers/net/usb/smsc95xx.c if (pdata->suspend_flags != 0) pdata 654 drivers/net/usb/smsc95xx.c schedule_delayed_work(&pdata->carrier_check, CARRIER_CHECK_DELAY); pdata 750 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 753 drivers/net/usb/smsc95xx.c wolinfo->wolopts = pdata->wolopts; pdata 760 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 766 drivers/net/usb/smsc95xx.c pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; pdata 768 drivers/net/usb/smsc95xx.c ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); pdata 799 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 802 drivers/net/usb/smsc95xx.c if ((pdata->chip_id == ID_REV_CHIP_ID_9500A_) || pdata 803 drivers/net/usb/smsc95xx.c (pdata->chip_id == ID_REV_CHIP_ID_9530_) || pdata 804 drivers/net/usb/smsc95xx.c (pdata->chip_id == ID_REV_CHIP_ID_89530_) || pdata 805 drivers/net/usb/smsc95xx.c (pdata->chip_id == ID_REV_CHIP_ID_9730_)) { pdata 841 drivers/net/usb/smsc95xx.c pdata->mdix_ctrl = mdix_ctrl; pdata 848 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 853 drivers/net/usb/smsc95xx.c cmd->base.eth_tp_mdix = pdata->mdix_ctrl; pdata 854 drivers/net/usb/smsc95xx.c cmd->base.eth_tp_mdix_ctrl = pdata->mdix_ctrl; pdata 863 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 866 drivers/net/usb/smsc95xx.c if (pdata->mdix_ctrl != cmd->base.eth_tp_mdix_ctrl) pdata 945 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 950 drivers/net/usb/smsc95xx.c spin_lock_irqsave(&pdata->mac_cr_lock, flags); pdata 951 drivers/net/usb/smsc95xx.c pdata->mac_cr |= MAC_CR_TXEN_; pdata 952 drivers/net/usb/smsc95xx.c spin_unlock_irqrestore(&pdata->mac_cr_lock, flags); pdata 954 drivers/net/usb/smsc95xx.c ret = smsc95xx_write_reg(dev, MAC_CR, pdata->mac_cr); pdata 965 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 968 drivers/net/usb/smsc95xx.c spin_lock_irqsave(&pdata->mac_cr_lock, flags); pdata 969 drivers/net/usb/smsc95xx.c pdata->mac_cr |= MAC_CR_RXEN_; pdata 970 drivers/net/usb/smsc95xx.c spin_unlock_irqrestore(&pdata->mac_cr_lock, flags); pdata 972 drivers/net/usb/smsc95xx.c return __smsc95xx_write_reg(dev, MAC_CR, pdata->mac_cr, in_pm); pdata 1022 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1182 drivers/net/usb/smsc95xx.c ret = smsc95xx_read_reg(dev, MAC_CR, &pdata->mac_cr); pdata 1250 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = NULL; pdata 1265 drivers/net/usb/smsc95xx.c pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1266 drivers/net/usb/smsc95xx.c if (!pdata) pdata 1269 drivers/net/usb/smsc95xx.c spin_lock_init(&pdata->mac_cr_lock); pdata 1296 drivers/net/usb/smsc95xx.c pdata->chip_id = val; pdata 1297 drivers/net/usb/smsc95xx.c pdata->mdix_ctrl = get_mdix_status(dev->net); pdata 1301 drivers/net/usb/smsc95xx.c pdata->features = (FEATURE_8_WAKEUP_FILTERS | pdata 1305 drivers/net/usb/smsc95xx.c pdata->features = FEATURE_8_WAKEUP_FILTERS; pdata 1315 drivers/net/usb/smsc95xx.c pdata->dev = dev; pdata 1316 drivers/net/usb/smsc95xx.c INIT_DELAYED_WORK(&pdata->carrier_check, check_carrier); pdata 1317 drivers/net/usb/smsc95xx.c schedule_delayed_work(&pdata->carrier_check, CARRIER_CHECK_DELAY); pdata 1324 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1326 drivers/net/usb/smsc95xx.c if (pdata) { pdata 1327 drivers/net/usb/smsc95xx.c cancel_delayed_work(&pdata->carrier_check); pdata 1329 drivers/net/usb/smsc95xx.c kfree(pdata); pdata 1330 drivers/net/usb/smsc95xx.c pdata = NULL; pdata 1384 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1404 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_PHY) pdata 1416 drivers/net/usb/smsc95xx.c pdata->suspend_flags |= SUSPEND_SUSPEND0; pdata 1423 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1431 drivers/net/usb/smsc95xx.c if (pdata->features & FEATURE_PHY_NLP_CROSSOVER) pdata 1464 drivers/net/usb/smsc95xx.c pdata->suspend_flags |= SUSPEND_SUSPEND1; pdata 1471 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1486 drivers/net/usb/smsc95xx.c pdata->suspend_flags |= SUSPEND_SUSPEND2; pdata 1493 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1525 drivers/net/usb/smsc95xx.c pdata->suspend_flags |= SUSPEND_SUSPEND3; pdata 1532 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1546 drivers/net/usb/smsc95xx.c if (!(pdata->features & FEATURE_PHY_NLP_CROSSOVER)) { pdata 1580 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1590 drivers/net/usb/smsc95xx.c cancel_delayed_work_sync(&pdata->carrier_check); pdata 1592 drivers/net/usb/smsc95xx.c if (pdata->suspend_flags) { pdata 1594 drivers/net/usb/smsc95xx.c pdata->suspend_flags = 0; pdata 1601 drivers/net/usb/smsc95xx.c (pdata->features & FEATURE_REMOTE_WAKEUP)) { pdata 1610 drivers/net/usb/smsc95xx.c if (!(pdata->wolopts & SUPPORTED_WAKE) || pdata 1611 drivers/net/usb/smsc95xx.c !(link_up || (pdata->wolopts & WAKE_PHY))) { pdata 1639 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_PHY) { pdata 1657 drivers/net/usb/smsc95xx.c if (pdata->wolopts & (WAKE_BCAST | WAKE_MCAST | WAKE_ARP | WAKE_UCAST)) { pdata 1663 drivers/net/usb/smsc95xx.c (pdata->features & FEATURE_8_WAKEUP_FILTERS) ? pdata 1677 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_BCAST) { pdata 1690 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_MCAST) { pdata 1703 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_ARP) { pdata 1716 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_UCAST) { pdata 1767 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_MAGIC) { pdata 1785 drivers/net/usb/smsc95xx.c if (pdata->wolopts & (WAKE_BCAST | WAKE_MCAST | WAKE_ARP | WAKE_UCAST)) { pdata 1793 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_MAGIC) { pdata 1813 drivers/net/usb/smsc95xx.c if (pdata->wolopts & WAKE_PHY) pdata 1836 drivers/net/usb/smsc95xx.c schedule_delayed_work(&pdata->carrier_check, pdata 1845 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata; pdata 1851 drivers/net/usb/smsc95xx.c pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 1852 drivers/net/usb/smsc95xx.c suspend_flags = pdata->suspend_flags; pdata 1857 drivers/net/usb/smsc95xx.c pdata->suspend_flags = 0; pdata 1858 drivers/net/usb/smsc95xx.c schedule_delayed_work(&pdata->carrier_check, CARRIER_CHECK_DELAY); pdata 2071 drivers/net/usb/smsc95xx.c struct smsc95xx_priv *pdata = (struct smsc95xx_priv *)(dev->data[0]); pdata 2075 drivers/net/usb/smsc95xx.c if (pdata->features & FEATURE_REMOTE_WAKEUP) pdata 118 drivers/net/wireless/ath/ath9k/btcoex.c struct ath9k_platform_data *pdata = ah->dev->platform_data; pdata 125 drivers/net/wireless/ath/ath9k/btcoex.c if (pdata && (pdata->bt_active_pin || pdata->bt_priority_pin || pdata 126 drivers/net/wireless/ath/ath9k/btcoex.c pdata->wlan_active_pin)) { pdata 127 drivers/net/wireless/ath/ath9k/btcoex.c btcoex_hw->btactive_gpio = pdata->bt_active_pin; pdata 128 drivers/net/wireless/ath/ath9k/btcoex.c btcoex_hw->wlanactive_gpio = pdata->wlan_active_pin; pdata 129 drivers/net/wireless/ath/ath9k/btcoex.c btcoex_hw->btpriority_gpio = pdata->bt_priority_pin; pdata 122 drivers/net/wireless/ath/ath9k/eeprom.c static bool ath9k_hw_nvram_read_pdata(struct ath9k_platform_data *pdata, pdata 125 drivers/net/wireless/ath/ath9k/eeprom.c return ath9k_hw_nvram_read_array(pdata->eeprom_data, pdata 126 drivers/net/wireless/ath/ath9k/eeprom.c ARRAY_SIZE(pdata->eeprom_data), pdata 141 drivers/net/wireless/ath/ath9k/eeprom.c struct ath9k_platform_data *pdata = ah->dev->platform_data; pdata 146 drivers/net/wireless/ath/ath9k/eeprom.c else if (pdata && !pdata->use_eeprom) pdata 147 drivers/net/wireless/ath/ath9k/eeprom.c ret = ath9k_hw_nvram_read_pdata(pdata, off, data); pdata 574 drivers/net/wireless/ath/ath9k/init.c struct ath9k_platform_data *pdata = sc->dev->platform_data; pdata 579 drivers/net/wireless/ath/ath9k/init.c if (!pdata) pdata 582 drivers/net/wireless/ath/ath9k/init.c if (!pdata->use_eeprom) { pdata 584 drivers/net/wireless/ath/ath9k/init.c ah->gpio_mask = pdata->gpio_mask; pdata 585 drivers/net/wireless/ath/ath9k/init.c ah->gpio_val = pdata->gpio_val; pdata 586 drivers/net/wireless/ath/ath9k/init.c ah->led_pin = pdata->led_pin; pdata 587 drivers/net/wireless/ath/ath9k/init.c ah->is_clk_25mhz = pdata->is_clk_25mhz; pdata 588 drivers/net/wireless/ath/ath9k/init.c ah->get_mac_revision = pdata->get_mac_revision; pdata 589 drivers/net/wireless/ath/ath9k/init.c ah->external_reset = pdata->external_reset; pdata 590 drivers/net/wireless/ath/ath9k/init.c ah->disable_2ghz = pdata->disable_2ghz; pdata 591 drivers/net/wireless/ath/ath9k/init.c ah->disable_5ghz = pdata->disable_5ghz; pdata 593 drivers/net/wireless/ath/ath9k/init.c if (!pdata->endian_check) pdata 597 drivers/net/wireless/ath/ath9k/init.c if (pdata->eeprom_name) { pdata 598 drivers/net/wireless/ath/ath9k/init.c ret = ath9k_eeprom_request(sc, pdata->eeprom_name); pdata 603 drivers/net/wireless/ath/ath9k/init.c if (pdata->led_active_high) pdata 606 drivers/net/wireless/ath/ath9k/init.c if (pdata->tx_gain_buffalo) pdata 609 drivers/net/wireless/ath/ath9k/init.c if (pdata->macaddr) pdata 610 drivers/net/wireless/ath/ath9k/init.c ether_addr_copy(common->macaddr, pdata->macaddr); pdata 96 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c struct brcmfmac_sdio_pd *pdata; pdata 101 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c pdata = &sdiodev->settings->bus.sdio; pdata 102 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c if (pdata->oob_irq_supported) { pdata 104 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c pdata->oob_irq_nr); pdata 108 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c ret = request_irq(pdata->oob_irq_nr, brcmf_sdiod_oob_irqhandler, pdata 109 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c pdata->oob_irq_flags, "brcmf_oob_intr", pdata 117 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c ret = enable_irq_wake(pdata->oob_irq_nr); pdata 147 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c if (pdata->oob_irq_flags & IRQF_TRIGGER_HIGH) pdata 172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c struct brcmfmac_sdio_pd *pdata; pdata 174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c pdata = &sdiodev->settings->bus.sdio; pdata 182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c disable_irq_wake(pdata->oob_irq_nr); pdata 185 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c free_irq(pdata->oob_irq_nr, &sdiodev->func1->dev); pdata 1597 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c const u8 *pdata; pdata 1605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c pdata = wl->fw.fw_bin[i]->data + pdata 1610 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c memcpy(*pbuf, pdata, len); pdata 1629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c const u8 *pdata; pdata 1636 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c pdata = wl->fw.fw_bin[i]->data + pdata 1643 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c *n_bytes = le32_to_cpu(*((__le32 *) pdata)); pdata 2065 drivers/net/wireless/intel/iwlegacy/3945-mac.c dma_addr_t pdata; pdata 2069 drivers/net/wireless/intel/iwlegacy/3945-mac.c pdata = il->ucode_data_backup.p_addr; pdata 2073 drivers/net/wireless/intel/iwlegacy/3945-mac.c il_wr_prph(il, BSM_DRAM_DATA_PTR_REG, pdata); pdata 2561 drivers/net/wireless/intel/iwlegacy/3945.c dma_addr_t pdata; pdata 2581 drivers/net/wireless/intel/iwlegacy/3945.c pdata = il->ucode_init_data.p_addr; pdata 2586 drivers/net/wireless/intel/iwlegacy/3945.c il_wr_prph(il, BSM_DRAM_DATA_PTR_REG, pdata); pdata 332 drivers/net/wireless/intel/iwlegacy/4965.c dma_addr_t pdata; pdata 355 drivers/net/wireless/intel/iwlegacy/4965.c pdata = il->ucode_init_data.p_addr >> 4; pdata 360 drivers/net/wireless/intel/iwlegacy/4965.c il_wr_prph(il, BSM_DRAM_DATA_PTR_REG, pdata); pdata 417 drivers/net/wireless/intel/iwlegacy/4965.c dma_addr_t pdata; pdata 422 drivers/net/wireless/intel/iwlegacy/4965.c pdata = il->ucode_data_backup.p_addr >> 4; pdata 426 drivers/net/wireless/intel/iwlegacy/4965.c il_wr_prph(il, BSM_DRAM_DATA_PTR_REG, pdata); pdata 857 drivers/net/wireless/marvell/libertas/debugfs.c char *pdata; pdata 867 drivers/net/wireless/marvell/libertas/debugfs.c pdata = memdup_user_nul(buf, cnt); pdata 868 drivers/net/wireless/marvell/libertas/debugfs.c if (IS_ERR(pdata)) pdata 869 drivers/net/wireless/marvell/libertas/debugfs.c return PTR_ERR(pdata); pdata 871 drivers/net/wireless/marvell/libertas/debugfs.c p0 = pdata; pdata 897 drivers/net/wireless/marvell/libertas/debugfs.c kfree(pdata); pdata 44 drivers/net/wireless/marvell/libertas/if_spi.c struct libertas_spi_platform_data *pdata; pdata 1013 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_init(card, card->pdata->use_dummy_writes); pdata 1079 drivers/net/wireless/marvell/libertas/if_spi.c if (card->pdata->setup) pdata 1080 drivers/net/wireless/marvell/libertas/if_spi.c card->pdata->setup(card->spi); pdata 1098 drivers/net/wireless/marvell/libertas/if_spi.c struct libertas_spi_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 1101 drivers/net/wireless/marvell/libertas/if_spi.c if (!pdata) { pdata 1106 drivers/net/wireless/marvell/libertas/if_spi.c if (pdata->setup) { pdata 1107 drivers/net/wireless/marvell/libertas/if_spi.c err = pdata->setup(spi); pdata 1119 drivers/net/wireless/marvell/libertas/if_spi.c card->pdata = pdata; pdata 1191 drivers/net/wireless/marvell/libertas/if_spi.c if (pdata->teardown) pdata 1192 drivers/net/wireless/marvell/libertas/if_spi.c pdata->teardown(spi); pdata 1211 drivers/net/wireless/marvell/libertas/if_spi.c if (card->pdata->teardown) pdata 1212 drivers/net/wireless/marvell/libertas/if_spi.c card->pdata->teardown(spi); pdata 1228 drivers/net/wireless/marvell/libertas/if_spi.c if (card->pdata->teardown) pdata 1229 drivers/net/wireless/marvell/libertas/if_spi.c card->pdata->teardown(spi); pdata 871 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c u8 *pdata; pdata 895 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c pdata = skb->data + hds; pdata 904 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c memcpy(pdata, pblk, len); pdata 905 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c hdr->crc = cpu_to_le32(~crc32(0, pdata, len)); pdata 31 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[MAC_REG].pdata = RTL8192CUMAC_2T_ARRAY; pdata 35 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[PHY_REG_PG].pdata = pdata 40 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[PHY_REG_PG].pdata = pdata 46 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[PHY_REG_2T].pdata = pdata 50 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[RADIOA_2T].pdata = pdata 54 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[RADIOB_2T].pdata = pdata 58 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[AGCTAB_2T].pdata = pdata 64 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[PHY_REG_1T].pdata = pdata 68 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[RADIOA_1T].pdata = pdata 72 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[RADIOB_1T].pdata = pdata 76 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[AGCTAB_1T].pdata = pdata 81 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[PHY_REG_1T].pdata = pdata 85 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[RADIOA_1T].pdata = pdata 89 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[RADIOB_1T].pdata = pdata 93 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c rtlphy->hwparam_tables[AGCTAB_1T].pdata = pdata 126 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c ptrarray = rtlphy->hwparam_tables[MAC_REG].pdata; pdata 146 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c agctab_array_table = rtlphy->hwparam_tables[AGCTAB_2T].pdata; pdata 148 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c phy_regarray_table = rtlphy->hwparam_tables[PHY_REG_2T].pdata; pdata 151 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c agctab_array_table = rtlphy->hwparam_tables[AGCTAB_1T].pdata; pdata 153 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c phy_regarray_table = rtlphy->hwparam_tables[PHY_REG_1T].pdata; pdata 191 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c phy_regarray_table_pg = rtlphy->hwparam_tables[PHY_REG_PG].pdata; pdata 220 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c radioa_array_table = rtlphy->hwparam_tables[RADIOA_2T].pdata; pdata 222 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c radiob_array_table = rtlphy->hwparam_tables[RADIOB_2T].pdata; pdata 229 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c radioa_array_table = rtlphy->hwparam_tables[RADIOA_1T].pdata; pdata 231 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c radiob_array_table = rtlphy->hwparam_tables[RADIOB_1T].pdata; pdata 37 drivers/net/wireless/realtek/rtlwifi/usb.c u16 value, u16 index, void *pdata, pdata 77 drivers/net/wireless/realtek/rtlwifi/usb.c memcpy(databuf, pdata, len); pdata 91 drivers/net/wireless/realtek/rtlwifi/usb.c u16 value, u16 index, void *pdata, pdata 105 drivers/net/wireless/realtek/rtlwifi/usb.c index, pdata, len, 1000); pdata 118 drivers/net/wireless/realtek/rtlwifi/usb.c value, status, *(u32 *)pdata); pdata 1298 drivers/net/wireless/realtek/rtlwifi/wifi.h u32 *pdata; pdata 40 drivers/net/wireless/st/cw1200/cw1200_sdio.c void __init cw1200_sdio_set_platform_data(struct cw1200_platform_data_sdio *pdata) pdata 42 drivers/net/wireless/st/cw1200/cw1200_sdio.c global_plat_data = pdata; pdata 48 drivers/net/wireless/st/cw1200/cw1200_sdio.c const struct cw1200_platform_data_sdio *pdata; pdata 137 drivers/net/wireless/st/cw1200/cw1200_sdio.c ret = enable_irq_wake(self->pdata->irq); pdata 142 drivers/net/wireless/st/cw1200/cw1200_sdio.c ret = request_threaded_irq(self->pdata->irq, cw1200_gpio_hardirq, pdata 161 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (self->pdata->irq) pdata 176 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (self->pdata->irq) { pdata 177 drivers/net/wireless/st/cw1200/cw1200_sdio.c disable_irq_wake(self->pdata->irq); pdata 178 drivers/net/wireless/st/cw1200/cw1200_sdio.c free_irq(self->pdata->irq, self); pdata 187 drivers/net/wireless/st/cw1200/cw1200_sdio.c static int cw1200_sdio_off(const struct cw1200_platform_data_sdio *pdata) pdata 189 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->reset) { pdata 190 drivers/net/wireless/st/cw1200/cw1200_sdio.c gpio_set_value(pdata->reset, 0); pdata 192 drivers/net/wireless/st/cw1200/cw1200_sdio.c gpio_free(pdata->reset); pdata 195 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->power_ctrl) pdata 196 drivers/net/wireless/st/cw1200/cw1200_sdio.c pdata->power_ctrl(pdata, false); pdata 197 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->clk_ctrl) pdata 198 drivers/net/wireless/st/cw1200/cw1200_sdio.c pdata->clk_ctrl(pdata, false); pdata 203 drivers/net/wireless/st/cw1200/cw1200_sdio.c static int cw1200_sdio_on(const struct cw1200_platform_data_sdio *pdata) pdata 206 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->reset) { pdata 207 drivers/net/wireless/st/cw1200/cw1200_sdio.c gpio_request(pdata->reset, "cw1200_wlan_reset"); pdata 208 drivers/net/wireless/st/cw1200/cw1200_sdio.c gpio_direction_output(pdata->reset, 0); pdata 210 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->powerup) { pdata 211 drivers/net/wireless/st/cw1200/cw1200_sdio.c gpio_request(pdata->powerup, "cw1200_wlan_powerup"); pdata 212 drivers/net/wireless/st/cw1200/cw1200_sdio.c gpio_direction_output(pdata->powerup, 0); pdata 214 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->reset || pdata->powerup) pdata 218 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->power_ctrl) { pdata 219 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->power_ctrl(pdata, true)) { pdata 226 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->clk_ctrl) { pdata 227 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->clk_ctrl(pdata, true)) { pdata 235 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->powerup) { pdata 236 drivers/net/wireless/st/cw1200/cw1200_sdio.c gpio_set_value(pdata->powerup, 1); pdata 240 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (pdata->reset) { pdata 241 drivers/net/wireless/st/cw1200/cw1200_sdio.c gpio_set_value(pdata->reset, 1); pdata 249 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (self->pdata->no_nptb) pdata 261 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (self->pdata->irq) pdata 262 drivers/net/wireless/st/cw1200/cw1200_sdio.c ret = irq_set_irq_wake(self->pdata->irq, suspend); pdata 296 drivers/net/wireless/st/cw1200/cw1200_sdio.c self->pdata = global_plat_data; /* FIXME */ pdata 307 drivers/net/wireless/st/cw1200/cw1200_sdio.c self->pdata->ref_clk, pdata 308 drivers/net/wireless/st/cw1200/cw1200_sdio.c self->pdata->macaddr, pdata 309 drivers/net/wireless/st/cw1200/cw1200_sdio.c self->pdata->sdd_file, pdata 310 drivers/net/wireless/st/cw1200/cw1200_sdio.c self->pdata->have_5ghz); pdata 388 drivers/net/wireless/st/cw1200/cw1200_sdio.c const struct cw1200_platform_data_sdio *pdata; pdata 392 drivers/net/wireless/st/cw1200/cw1200_sdio.c pdata = global_plat_data; pdata 394 drivers/net/wireless/st/cw1200/cw1200_sdio.c if (cw1200_sdio_on(pdata)) { pdata 406 drivers/net/wireless/st/cw1200/cw1200_sdio.c cw1200_sdio_off(pdata); pdata 413 drivers/net/wireless/st/cw1200/cw1200_sdio.c const struct cw1200_platform_data_sdio *pdata; pdata 416 drivers/net/wireless/st/cw1200/cw1200_sdio.c pdata = global_plat_data; pdata 418 drivers/net/wireless/st/cw1200/cw1200_sdio.c cw1200_sdio_off(pdata); pdata 38 drivers/net/wireless/st/cw1200/cw1200_spi.c const struct cw1200_platform_data_spi *pdata; pdata 282 drivers/net/wireless/st/cw1200/cw1200_spi.c static int cw1200_spi_off(const struct cw1200_platform_data_spi *pdata) pdata 284 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->reset) { pdata 285 drivers/net/wireless/st/cw1200/cw1200_spi.c gpio_set_value(pdata->reset, 0); pdata 287 drivers/net/wireless/st/cw1200/cw1200_spi.c gpio_free(pdata->reset); pdata 290 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->power_ctrl) pdata 291 drivers/net/wireless/st/cw1200/cw1200_spi.c pdata->power_ctrl(pdata, false); pdata 292 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->clk_ctrl) pdata 293 drivers/net/wireless/st/cw1200/cw1200_spi.c pdata->clk_ctrl(pdata, false); pdata 298 drivers/net/wireless/st/cw1200/cw1200_spi.c static int cw1200_spi_on(const struct cw1200_platform_data_spi *pdata) pdata 301 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->reset) { pdata 302 drivers/net/wireless/st/cw1200/cw1200_spi.c gpio_request(pdata->reset, "cw1200_wlan_reset"); pdata 303 drivers/net/wireless/st/cw1200/cw1200_spi.c gpio_direction_output(pdata->reset, 0); pdata 305 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->powerup) { pdata 306 drivers/net/wireless/st/cw1200/cw1200_spi.c gpio_request(pdata->powerup, "cw1200_wlan_powerup"); pdata 307 drivers/net/wireless/st/cw1200/cw1200_spi.c gpio_direction_output(pdata->powerup, 0); pdata 309 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->reset || pdata->powerup) pdata 313 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->power_ctrl) { pdata 314 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->power_ctrl(pdata, true)) { pdata 321 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->clk_ctrl) { pdata 322 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->clk_ctrl(pdata, true)) { pdata 330 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->powerup) { pdata 331 drivers/net/wireless/st/cw1200/cw1200_spi.c gpio_set_value(pdata->powerup, 1); pdata 335 drivers/net/wireless/st/cw1200/cw1200_spi.c if (pdata->reset) { pdata 336 drivers/net/wireless/st/cw1200/cw1200_spi.c gpio_set_value(pdata->reset, 1); pdata 404 drivers/net/wireless/st/cw1200/cw1200_spi.c self->pdata = plat_data; pdata 416 drivers/net/wireless/st/cw1200/cw1200_spi.c self->pdata->ref_clk, pdata 417 drivers/net/wireless/st/cw1200/cw1200_spi.c self->pdata->macaddr, pdata 418 drivers/net/wireless/st/cw1200/cw1200_spi.c self->pdata->sdd_file, pdata 419 drivers/net/wireless/st/cw1200/cw1200_spi.c self->pdata->have_5ghz); pdata 229 drivers/net/wireless/ti/wl1251/spi.c struct wl1251_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 235 drivers/net/wireless/ti/wl1251/spi.c if (!np && !pdata) { pdata 265 drivers/net/wireless/ti/wl1251/spi.c } else if (pdata) { pdata 266 drivers/net/wireless/ti/wl1251/spi.c wl->power_gpio = pdata->power_gpio; pdata 267 drivers/net/wireless/ti/wl1251/spi.c wl->use_eeprom = pdata->use_eeprom; pdata 1441 drivers/net/wireless/ti/wl18xx/main.c struct wlcore_platdev_data *pdata = dev_get_platdata(&pdev->dev); pdata 1445 drivers/net/wireless/ti/wl18xx/main.c pdata->family->cfg_name) < 0) { pdata 472 drivers/net/wireless/wl3501_cs.c u8 *pdata = (char *)data; pdata 487 drivers/net/wireless/wl3501_cs.c memcpy(&sig.daddr[0], pdata, 12); pdata 489 drivers/net/wireless/wl3501_cs.c pdata += 12; pdata 491 drivers/net/wireless/wl3501_cs.c if (((*pdata) * 256 + (*(pdata + 1))) > 1500) { pdata 509 drivers/net/wireless/wl3501_cs.c pdata, tmplen); pdata 510 drivers/net/wireless/wl3501_cs.c pdata += tmplen; pdata 515 drivers/net/wireless/wl3501_cs.c pdata += 2; pdata 526 drivers/net/wireless/wl3501_cs.c pdata, tmplen); pdata 527 drivers/net/wireless/wl3501_cs.c pdata += tmplen; pdata 539 drivers/net/wireless/wl3501_cs.c wl3501_set_to_wla(this, bf + 2, pdata, tmplen); pdata 540 drivers/net/wireless/wl3501_cs.c pdata += tmplen; pdata 418 drivers/net/wireless/zydas/zd1201.c unsigned char *pdata; pdata 464 drivers/net/wireless/zydas/zd1201.c pdata = zd->rxdata; pdata 472 drivers/net/wireless/zydas/zd1201.c if (pdata[0] != 0x3) { pdata 474 drivers/net/wireless/zydas/zd1201.c pdata[0]); pdata 485 drivers/net/wireless/zydas/zd1201.c pdata += 8; pdata 488 drivers/net/wireless/zydas/zd1201.c pdata += 4; pdata 492 drivers/net/wireless/zydas/zd1201.c memcpy(riddata, pdata, actual_length); pdata 494 drivers/net/wireless/zydas/zd1201.c pdata += actual_length; pdata 173 drivers/nfc/nfcmrvl/i2c.c struct nfcmrvl_platform_data *pdata) pdata 177 drivers/nfc/nfcmrvl/i2c.c ret = nfcmrvl_parse_dt(node, pdata); pdata 184 drivers/nfc/nfcmrvl/i2c.c pdata->irq_polarity = IRQF_TRIGGER_FALLING; pdata 186 drivers/nfc/nfcmrvl/i2c.c pdata->irq_polarity = IRQF_TRIGGER_RISING; pdata 193 drivers/nfc/nfcmrvl/i2c.c pdata->irq = ret; pdata 202 drivers/nfc/nfcmrvl/i2c.c struct nfcmrvl_platform_data *pdata; pdata 221 drivers/nfc/nfcmrvl/i2c.c pdata = client->dev.platform_data; pdata 223 drivers/nfc/nfcmrvl/i2c.c if (!pdata && client->dev.of_node) pdata 225 drivers/nfc/nfcmrvl/i2c.c pdata = &config; pdata 227 drivers/nfc/nfcmrvl/i2c.c if (!pdata) pdata 231 drivers/nfc/nfcmrvl/i2c.c ret = devm_request_threaded_irq(&drv_data->i2c->dev, pdata->irq, pdata 233 drivers/nfc/nfcmrvl/i2c.c pdata->irq_polarity | IRQF_ONESHOT, pdata 243 drivers/nfc/nfcmrvl/i2c.c &drv_data->i2c->dev, pdata); pdata 107 drivers/nfc/nfcmrvl/main.c struct nfcmrvl_platform_data *pdata) pdata 124 drivers/nfc/nfcmrvl/main.c memcpy(&priv->config, pdata, sizeof(*pdata)); pdata 263 drivers/nfc/nfcmrvl/main.c struct nfcmrvl_platform_data *pdata) pdata 274 drivers/nfc/nfcmrvl/main.c pdata->reset_n_io = reset_n_io; pdata 277 drivers/nfc/nfcmrvl/main.c pdata->hci_muxed = 1; pdata 279 drivers/nfc/nfcmrvl/main.c pdata->hci_muxed = 0; pdata 108 drivers/nfc/nfcmrvl/nfcmrvl.h struct nfcmrvl_platform_data *pdata); pdata 115 drivers/nfc/nfcmrvl/nfcmrvl.h struct nfcmrvl_platform_data *pdata); pdata 121 drivers/nfc/nfcmrvl/spi.c struct nfcmrvl_platform_data *pdata) pdata 125 drivers/nfc/nfcmrvl/spi.c ret = nfcmrvl_parse_dt(node, pdata); pdata 136 drivers/nfc/nfcmrvl/spi.c pdata->irq = ret; pdata 143 drivers/nfc/nfcmrvl/spi.c struct nfcmrvl_platform_data *pdata; pdata 156 drivers/nfc/nfcmrvl/spi.c pdata = spi->dev.platform_data; pdata 158 drivers/nfc/nfcmrvl/spi.c if (!pdata && spi->dev.of_node) pdata 160 drivers/nfc/nfcmrvl/spi.c pdata = &config; pdata 162 drivers/nfc/nfcmrvl/spi.c if (!pdata) pdata 165 drivers/nfc/nfcmrvl/spi.c ret = devm_request_threaded_irq(&drv_data->spi->dev, pdata->irq, pdata 177 drivers/nfc/nfcmrvl/spi.c pdata); pdata 71 drivers/nfc/nfcmrvl/uart.c struct nfcmrvl_platform_data *pdata) pdata 83 drivers/nfc/nfcmrvl/uart.c ret = nfcmrvl_parse_dt(matched_node, pdata); pdata 91 drivers/nfc/nfcmrvl/uart.c pdata->flow_control = 1; pdata 93 drivers/nfc/nfcmrvl/uart.c pdata->flow_control = 0; pdata 96 drivers/nfc/nfcmrvl/uart.c pdata->break_control = 1; pdata 98 drivers/nfc/nfcmrvl/uart.c pdata->break_control = 0; pdata 112 drivers/nfc/nfcmrvl/uart.c struct nfcmrvl_platform_data *pdata = NULL; pdata 124 drivers/nfc/nfcmrvl/uart.c pdata = &config; pdata 126 drivers/nfc/nfcmrvl/uart.c if (!pdata) { pdata 132 drivers/nfc/nfcmrvl/uart.c pdata = &config; pdata 136 drivers/nfc/nfcmrvl/uart.c dev, pdata); pdata 31 drivers/parisc/iommu.h struct pci_hba_data *pdata = parisc_walk_tree(dev); pdata 33 drivers/parisc/iommu.h if (!pdata) pdata 35 drivers/parisc/iommu.h return pdata->iommu; pdata 2952 drivers/parport/parport_pc.c struct parport *pdata; pdata 2981 drivers/parport/parport_pc.c pdata = parport_pc_probe_port(io_lo, io_hi, irq, dma, &dev->dev, 0); pdata 2982 drivers/parport/parport_pc.c if (pdata == NULL) pdata 2985 drivers/parport/parport_pc.c pnp_set_drvdata(dev, pdata); pdata 2991 drivers/parport/parport_pc.c struct parport *pdata = (struct parport *)pnp_get_drvdata(dev); pdata 2992 drivers/parport/parport_pc.c if (!pdata) pdata 2995 drivers/parport/parport_pc.c parport_pc_unregister_port(pdata); pdata 42 drivers/pcmcia/pxa2xx_viper.c struct arcom_pcmcia_pdata *pdata = viper_get_pdata(); pdata 45 drivers/pcmcia/pxa2xx_viper.c skt->stat[SOC_STAT_CD].gpio = pdata->cd_gpio; pdata 47 drivers/pcmcia/pxa2xx_viper.c skt->stat[SOC_STAT_RDY].gpio = pdata->rdy_gpio; pdata 50 drivers/pcmcia/pxa2xx_viper.c if (gpio_request(pdata->pwr_gpio, "CF power")) pdata 55 drivers/pcmcia/pxa2xx_viper.c if (gpio_direction_output(pdata->pwr_gpio, 0)) { pdata 65 drivers/pcmcia/pxa2xx_viper.c gpio_free(pdata->pwr_gpio); pdata 76 drivers/pcmcia/pxa2xx_viper.c struct arcom_pcmcia_pdata *pdata = viper_get_pdata(); pdata 78 drivers/pcmcia/pxa2xx_viper.c gpio_free(pdata->pwr_gpio); pdata 91 drivers/pcmcia/pxa2xx_viper.c struct arcom_pcmcia_pdata *pdata = viper_get_pdata(); pdata 94 drivers/pcmcia/pxa2xx_viper.c pdata->reset(state->flags & SS_RESET); pdata 99 drivers/pcmcia/pxa2xx_viper.c gpio_set_value(pdata->pwr_gpio, 0); pdata 102 drivers/pcmcia/pxa2xx_viper.c gpio_set_value(pdata->pwr_gpio, 1); pdata 311 drivers/phy/mediatek/phy-mtk-tphy.c const struct mtk_phy_pdata *pdata; pdata 347 drivers/phy/mediatek/phy-mtk-tphy.c if (tphy->pdata->version == MTK_PHY_V1) pdata 481 drivers/phy/mediatek/phy-mtk-tphy.c if (tphy->pdata->avoid_rx_sen_degradation) { pdata 532 drivers/phy/mediatek/phy-mtk-tphy.c if (tphy->pdata->avoid_rx_sen_degradation && index) { pdata 566 drivers/phy/mediatek/phy-mtk-tphy.c if (tphy->pdata->avoid_rx_sen_degradation && index) { pdata 587 drivers/phy/mediatek/phy-mtk-tphy.c if (tphy->pdata->avoid_rx_sen_degradation && index) { pdata 629 drivers/phy/mediatek/phy-mtk-tphy.c if (tphy->pdata->version != MTK_PHY_V1) pdata 1018 drivers/phy/mediatek/phy-mtk-tphy.c if (tphy->pdata->version == MTK_PHY_V1) { pdata 1020 drivers/phy/mediatek/phy-mtk-tphy.c } else if (tphy->pdata->version == MTK_PHY_V2) { pdata 1081 drivers/phy/mediatek/phy-mtk-tphy.c tphy->pdata = of_device_get_match_data(dev); pdata 1082 drivers/phy/mediatek/phy-mtk-tphy.c if (!tphy->pdata) pdata 1096 drivers/phy/mediatek/phy-mtk-tphy.c if (sif_res && tphy->pdata->version == MTK_PHY_V1) { pdata 57 drivers/phy/rockchip/phy-rockchip-usb.c const struct rockchip_usb_phy_pdata *pdata); pdata 64 drivers/phy/rockchip/phy-rockchip-usb.c const struct rockchip_usb_phy_pdata *pdata; pdata 236 drivers/phy/rockchip/phy-rockchip-usb.c while (base->pdata->phys[i].reg) { pdata 237 drivers/phy/rockchip/phy-rockchip-usb.c if (base->pdata->phys[i].reg == reg_offset) { pdata 238 drivers/phy/rockchip/phy-rockchip-usb.c init.name = base->pdata->phys[i].pll_name; pdata 249 drivers/phy/rockchip/phy-rockchip-usb.c if (enable_usb_uart && base->pdata->usb_uart_phy == i) { pdata 325 drivers/phy/rockchip/phy-rockchip-usb.c const struct rockchip_usb_phy_pdata *pdata) pdata 327 drivers/phy/rockchip/phy-rockchip-usb.c int regoffs = pdata->phys[pdata->usb_uart_phy].reg; pdata 375 drivers/phy/rockchip/phy-rockchip-usb.c const struct rockchip_usb_phy_pdata *pdata) pdata 380 drivers/phy/rockchip/phy-rockchip-usb.c ret = rockchip_init_usb_uart_common(grf, pdata); pdata 425 drivers/phy/rockchip/phy-rockchip-usb.c const struct rockchip_usb_phy_pdata *pdata) pdata 430 drivers/phy/rockchip/phy-rockchip-usb.c ret = rockchip_init_usb_uart_common(grf, pdata); pdata 475 drivers/phy/rockchip/phy-rockchip-usb.c phy_base->pdata = match->data; pdata 142 drivers/phy/ti/phy-da8xx-usb.c struct da8xx_usb_phy_platform_data *pdata = dev->platform_data; pdata 150 drivers/phy/ti/phy-da8xx-usb.c if (pdata) pdata 151 drivers/phy/ti/phy-da8xx-usb.c d_phy->regmap = pdata->cfgchip; pdata 669 drivers/phy/ti/phy-twl4030-usb.c struct twl4030_usb_data *pdata = dev_get_platdata(&pdev->dev); pdata 684 drivers/phy/ti/phy-twl4030-usb.c else if (pdata) { pdata 685 drivers/phy/ti/phy-twl4030-usb.c twl->usb_mode = pdata->usb_mode; pdata 763 drivers/phy/ti/phy-twl4030-usb.c if (pdata) pdata 15 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 17 drivers/pinctrl/aspeed/pinctrl-aspeed.c return pdata->pinmux.ngroups; pdata 23 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 25 drivers/pinctrl/aspeed/pinctrl-aspeed.c return pdata->pinmux.groups[group].name; pdata 32 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 34 drivers/pinctrl/aspeed/pinctrl-aspeed.c *pins = &pdata->pinmux.groups[group].pins[0]; pdata 35 drivers/pinctrl/aspeed/pinctrl-aspeed.c *npins = pdata->pinmux.groups[group].npins; pdata 48 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 50 drivers/pinctrl/aspeed/pinctrl-aspeed.c return pdata->pinmux.nfunctions; pdata 56 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 58 drivers/pinctrl/aspeed/pinctrl-aspeed.c return pdata->pinmux.functions[function].name; pdata 66 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 68 drivers/pinctrl/aspeed/pinctrl-aspeed.c *groups = pdata->pinmux.functions[function].groups; pdata 69 drivers/pinctrl/aspeed/pinctrl-aspeed.c *num_groups = pdata->pinmux.functions[function].ngroups; pdata 220 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 221 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pin_group *pgroup = &pdata->pinmux.groups[group]; pdata 223 drivers/pinctrl/aspeed/pinctrl-aspeed.c &pdata->pinmux.functions[function]; pdata 227 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pin_desc *pdesc = pdata->pins[pin].drv_data; pdata 249 drivers/pinctrl/aspeed/pinctrl-aspeed.c ret = aspeed_disable_sig(&pdata->pinmux, funcs); pdata 269 drivers/pinctrl/aspeed/pinctrl-aspeed.c ret = aspeed_sig_expr_enable(&pdata->pinmux, expr); pdata 308 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 309 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pin_desc *pdesc = pdata->pins[offset].drv_data; pdata 325 drivers/pinctrl/aspeed/pinctrl-aspeed.c ret = aspeed_disable_sig(&pdata->pinmux, funcs); pdata 356 drivers/pinctrl/aspeed/pinctrl-aspeed.c return aspeed_sig_expr_enable(&pdata->pinmux, expr); pdata 361 drivers/pinctrl/aspeed/pinctrl-aspeed.c struct aspeed_pinctrl_data *pdata) pdata 372 drivers/pinctrl/aspeed/pinctrl-aspeed.c pdata->scu = syscon_node_to_regmap(parent->of_node); pdata 373 drivers/pinctrl/aspeed/pinctrl-aspeed.c if (IS_ERR(pdata->scu)) { pdata 375 drivers/pinctrl/aspeed/pinctrl-aspeed.c return PTR_ERR(pdata->scu); pdata 378 drivers/pinctrl/aspeed/pinctrl-aspeed.c pdata->pinmux.maps[ASPEED_IP_SCU] = pdata->scu; pdata 380 drivers/pinctrl/aspeed/pinctrl-aspeed.c pctl = pinctrl_register(pdesc, &pdev->dev, pdata); pdata 387 drivers/pinctrl/aspeed/pinctrl-aspeed.c platform_set_drvdata(pdev, pdata); pdata 399 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pinctrl_data *pdata, pdata 405 drivers/pinctrl/aspeed/pinctrl-aspeed.c for (i = 0; i < pdata->nconfigs; i++) { pdata 406 drivers/pinctrl/aspeed/pinctrl-aspeed.c if (param == pdata->configs[i].param && pdata 407 drivers/pinctrl/aspeed/pinctrl-aspeed.c pin_in_config_range(offset, &pdata->configs[i])) pdata 408 drivers/pinctrl/aspeed/pinctrl-aspeed.c return &pdata->configs[i]; pdata 479 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pinctrl_data *pdata; pdata 485 drivers/pinctrl/aspeed/pinctrl-aspeed.c pdata = pinctrl_dev_get_drvdata(pctldev); pdata 486 drivers/pinctrl/aspeed/pinctrl-aspeed.c pconf = find_pinconf_config(pdata, offset, param); pdata 490 drivers/pinctrl/aspeed/pinctrl-aspeed.c rc = regmap_read(pdata->scu, pconf->reg, &val); pdata 518 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pinctrl_data *pdata; pdata 522 drivers/pinctrl/aspeed/pinctrl-aspeed.c pdata = pinctrl_dev_get_drvdata(pctldev); pdata 534 drivers/pinctrl/aspeed/pinctrl-aspeed.c pconf = find_pinconf_config(pdata, offset, param); pdata 545 drivers/pinctrl/aspeed/pinctrl-aspeed.c rc = regmap_update_bits(pdata->scu, pconf->reg, pdata 72 drivers/pinctrl/aspeed/pinctrl-aspeed.h struct aspeed_pinctrl_data *pdata); pdata 953 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 955 drivers/pinctrl/bcm/pinctrl-bcm281xx.c if (pin >= pdata->npins) pdata 958 drivers/pinctrl/bcm/pinctrl-bcm281xx.c return *(enum bcm281xx_pin_type *)(pdata->pins[pin].drv_data); pdata 989 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 991 drivers/pinctrl/bcm/pinctrl-bcm281xx.c return pdata->npins; pdata 997 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 999 drivers/pinctrl/bcm/pinctrl-bcm281xx.c return pdata->pins[group].name; pdata 1007 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1009 drivers/pinctrl/bcm/pinctrl-bcm281xx.c *pins = &pdata->pins[group].number; pdata 1033 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1035 drivers/pinctrl/bcm/pinctrl-bcm281xx.c return pdata->nfunctions; pdata 1041 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1043 drivers/pinctrl/bcm/pinctrl-bcm281xx.c return pdata->functions[function].name; pdata 1051 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1053 drivers/pinctrl/bcm/pinctrl-bcm281xx.c *groups = pdata->functions[function].groups; pdata 1054 drivers/pinctrl/bcm/pinctrl-bcm281xx.c *num_groups = pdata->functions[function].ngroups; pdata 1063 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1064 drivers/pinctrl/bcm/pinctrl-bcm281xx.c const struct bcm281xx_pin_function *f = &pdata->functions[function]; pdata 1065 drivers/pinctrl/bcm/pinctrl-bcm281xx.c u32 offset = 4 * pdata->pins[group].number; pdata 1070 drivers/pinctrl/bcm/pinctrl-bcm281xx.c __func__, f->name, function, pdata->pins[group].name, pdata 1071 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pdata->pins[group].number, offset); pdata 1073 drivers/pinctrl/bcm/pinctrl-bcm281xx.c rc = regmap_update_bits(pdata->regmap, offset, pdata 1079 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pdata->pins[group].name, pdata->pins[group].number); pdata 1107 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1178 drivers/pinctrl/bcm/pinctrl-bcm281xx.c arg, pdata->pins[pin].name, pin); pdata 1189 drivers/pinctrl/bcm/pinctrl-bcm281xx.c param, pdata->pins[pin].name, pin); pdata 1223 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1243 drivers/pinctrl/bcm/pinctrl-bcm281xx.c arg, pdata->pins[pin].name, pin); pdata 1276 drivers/pinctrl/bcm/pinctrl-bcm281xx.c param, pdata->pins[pin].name, pin); pdata 1293 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1321 drivers/pinctrl/bcm/pinctrl-bcm281xx.c param, pdata->pins[pin].name, pin); pdata 1335 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = pinctrl_dev_get_drvdata(pctldev); pdata 1364 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pdata->pins[pin].name, pin); pdata 1374 drivers/pinctrl/bcm/pinctrl-bcm281xx.c __func__, pdata->pins[pin].name, pin, cfg_val, cfg_mask); pdata 1376 drivers/pinctrl/bcm/pinctrl-bcm281xx.c rc = regmap_update_bits(pdata->regmap, offset, cfg_mask, cfg_val); pdata 1380 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pdata->pins[pin].name, pin); pdata 1402 drivers/pinctrl/bcm/pinctrl-bcm281xx.c struct bcm281xx_pinctrl_data *pdata = &bcm281xx_pinctrl; pdata 1408 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pdata->reg_base = devm_ioremap_resource(&pdev->dev, res); pdata 1409 drivers/pinctrl/bcm/pinctrl-bcm281xx.c if (IS_ERR(pdata->reg_base)) { pdata 1415 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pdata->regmap = devm_regmap_init_mmio(&pdev->dev, pdata->reg_base, pdata 1417 drivers/pinctrl/bcm/pinctrl-bcm281xx.c if (IS_ERR(pdata->regmap)) { pdata 1426 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pctl = devm_pinctrl_register(&pdev->dev, &bcm281xx_pinctrl_desc, pdata); pdata 1432 drivers/pinctrl/bcm/pinctrl-bcm281xx.c platform_set_drvdata(pdev, pdata); pdata 999 drivers/pinctrl/cirrus/pinctrl-madera-core.c const struct madera_pdata *pdata = &madera->pdata; pdata 1060 drivers/pinctrl/cirrus/pinctrl-madera-core.c if (pdata->gpio_configs) { pdata 1061 drivers/pinctrl/cirrus/pinctrl-madera-core.c ret = pinctrl_register_mappings(pdata->gpio_configs, pdata 1062 drivers/pinctrl/cirrus/pinctrl-madera-core.c pdata->n_gpio_configs); pdata 917 drivers/pinctrl/pinctrl-mcp23s08.c struct mcp23s08_platform_data *pdata, local_pdata; pdata 921 drivers/pinctrl/pinctrl-mcp23s08.c pdata = dev_get_platdata(&client->dev); pdata 922 drivers/pinctrl/pinctrl-mcp23s08.c if (!pdata) { pdata 923 drivers/pinctrl/pinctrl-mcp23s08.c pdata = &local_pdata; pdata 924 drivers/pinctrl/pinctrl-mcp23s08.c pdata->base = -1; pdata 940 drivers/pinctrl/pinctrl-mcp23s08.c id->driver_data, pdata->base, 0); pdata 989 drivers/pinctrl/pinctrl-mcp23s08.c struct mcp23s08_platform_data *pdata, local_pdata; pdata 1003 drivers/pinctrl/pinctrl-mcp23s08.c pdata = dev_get_platdata(&spi->dev); pdata 1004 drivers/pinctrl/pinctrl-mcp23s08.c if (!pdata) { pdata 1005 drivers/pinctrl/pinctrl-mcp23s08.c pdata = &local_pdata; pdata 1006 drivers/pinctrl/pinctrl-mcp23s08.c pdata->base = -1; pdata 1009 drivers/pinctrl/pinctrl-mcp23s08.c "microchip,spi-present-mask", &pdata->spi_present_mask); pdata 1013 drivers/pinctrl/pinctrl-mcp23s08.c &pdata->spi_present_mask); pdata 1022 drivers/pinctrl/pinctrl-mcp23s08.c if (!pdata->spi_present_mask || pdata->spi_present_mask > 0xff) { pdata 1028 drivers/pinctrl/pinctrl-mcp23s08.c if (pdata->spi_present_mask & BIT(addr)) pdata 1043 drivers/pinctrl/pinctrl-mcp23s08.c if (!(pdata->spi_present_mask & BIT(addr))) pdata 1057 drivers/pinctrl/pinctrl-mcp23s08.c pdata->base, addr); pdata 1061 drivers/pinctrl/pinctrl-mcp23s08.c if (pdata->base != -1) pdata 1062 drivers/pinctrl/pinctrl-mcp23s08.c pdata->base += data->mcp[addr]->chip.ngpio; pdata 1754 drivers/pinctrl/pinctrl-single.c struct pcs_pdata *pdata; pdata 1876 drivers/pinctrl/pinctrl-single.c pdata = dev_get_platdata(&pdev->dev); pdata 1877 drivers/pinctrl/pinctrl-single.c if (pdata) { pdata 1878 drivers/pinctrl/pinctrl-single.c if (pdata->rearm) pdata 1879 drivers/pinctrl/pinctrl-single.c pcs->socdata.rearm = pdata->rearm; pdata 1880 drivers/pinctrl/pinctrl-single.c if (pdata->irq) { pdata 1881 drivers/pinctrl/pinctrl-single.c pcs->socdata.irq = pdata->irq; pdata 285 drivers/pinctrl/sirf/pinctrl-sirf.c const struct sirfsoc_pinctrl_data *pdata; pdata 309 drivers/pinctrl/sirf/pinctrl-sirf.c pdata = of_match_node(pinmux_ids, np)->data; pdata 310 drivers/pinctrl/sirf/pinctrl-sirf.c sirfsoc_pin_groups = pdata->grps; pdata 311 drivers/pinctrl/sirf/pinctrl-sirf.c sirfsoc_pingrp_cnt = pdata->grps_cnt; pdata 312 drivers/pinctrl/sirf/pinctrl-sirf.c sirfsoc_pmx_functions = pdata->funcs; pdata 313 drivers/pinctrl/sirf/pinctrl-sirf.c sirfsoc_pmxfunc_cnt = pdata->funcs_cnt; pdata 314 drivers/pinctrl/sirf/pinctrl-sirf.c sirfsoc_pinmux_desc.pins = pdata->pads; pdata 315 drivers/pinctrl/sirf/pinctrl-sirf.c sirfsoc_pinmux_desc.npins = pdata->pads_cnt; pdata 559 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_platform *pdata = dev_get_platdata(ec_dev->dev); pdata 567 drivers/platform/chrome/cros_ec_lightbar.c if (strcmp(pdata->ec_name, CROS_EC_DEV_NAME) != 0) pdata 103 drivers/platform/mellanox/mlxreg-hotplug.c struct mlxreg_core_hotplug_platform_data *pdata; pdata 115 drivers/platform/mellanox/mlxreg-hotplug.c pdata = dev_get_platdata(&priv->pdev->dev); pdata 117 drivers/platform/mellanox/mlxreg-hotplug.c pdata->shift_nr); pdata 120 drivers/platform/mellanox/mlxreg-hotplug.c data->hpdev.nr + pdata->shift_nr); pdata 129 drivers/platform/mellanox/mlxreg-hotplug.c pdata->shift_nr, data->hpdev.brdinfo->addr); pdata 162 drivers/platform/mellanox/mlxreg-hotplug.c struct mlxreg_core_hotplug_platform_data *pdata; pdata 170 drivers/platform/mellanox/mlxreg-hotplug.c pdata = dev_get_platdata(&priv->pdev->dev); pdata 171 drivers/platform/mellanox/mlxreg-hotplug.c item = pdata->items + nr; pdata 196 drivers/platform/mellanox/mlxreg-hotplug.c struct mlxreg_core_hotplug_platform_data *pdata; pdata 201 drivers/platform/mellanox/mlxreg-hotplug.c pdata = dev_get_platdata(&priv->pdev->dev); pdata 202 drivers/platform/mellanox/mlxreg-hotplug.c item = pdata->items; pdata 205 drivers/platform/mellanox/mlxreg-hotplug.c for (i = 0; i < pdata->counter; i++, item++) { pdata 417 drivers/platform/mellanox/mlxreg-hotplug.c struct mlxreg_core_hotplug_platform_data *pdata; pdata 426 drivers/platform/mellanox/mlxreg-hotplug.c pdata = dev_get_platdata(&priv->pdev->dev); pdata 427 drivers/platform/mellanox/mlxreg-hotplug.c item = pdata->items; pdata 430 drivers/platform/mellanox/mlxreg-hotplug.c ret = regmap_write(priv->regmap, pdata->cell + pdata 436 drivers/platform/mellanox/mlxreg-hotplug.c ret = regmap_read(priv->regmap, pdata->cell, ®val); pdata 440 drivers/platform/mellanox/mlxreg-hotplug.c regval &= pdata->mask; pdata 451 drivers/platform/mellanox/mlxreg-hotplug.c aggr_asserted = pdata->mask; pdata 457 drivers/platform/mellanox/mlxreg-hotplug.c for (i = 0; i < pdata->counter; i++, item++) { pdata 487 drivers/platform/mellanox/mlxreg-hotplug.c ret = regmap_write(priv->regmap, pdata->cell + pdata 488 drivers/platform/mellanox/mlxreg-hotplug.c MLXREG_HOTPLUG_AGGR_MASK_OFF, pdata->mask); pdata 497 drivers/platform/mellanox/mlxreg-hotplug.c struct mlxreg_core_hotplug_platform_data *pdata; pdata 503 drivers/platform/mellanox/mlxreg-hotplug.c pdata = dev_get_platdata(&priv->pdev->dev); pdata 504 drivers/platform/mellanox/mlxreg-hotplug.c item = pdata->items; pdata 506 drivers/platform/mellanox/mlxreg-hotplug.c for (i = 0; i < pdata->counter; i++, item++) { pdata 544 drivers/platform/mellanox/mlxreg-hotplug.c ret = regmap_write(priv->regmap, pdata->cell + pdata 545 drivers/platform/mellanox/mlxreg-hotplug.c MLXREG_HOTPLUG_AGGR_MASK_OFF, pdata->mask); pdata 550 drivers/platform/mellanox/mlxreg-hotplug.c if (pdata->cell_low) { pdata 551 drivers/platform/mellanox/mlxreg-hotplug.c ret = regmap_write(priv->regmap, pdata->cell_low + pdata 553 drivers/platform/mellanox/mlxreg-hotplug.c pdata->mask_low); pdata 570 drivers/platform/mellanox/mlxreg-hotplug.c struct mlxreg_core_hotplug_platform_data *pdata; pdata 575 drivers/platform/mellanox/mlxreg-hotplug.c pdata = dev_get_platdata(&priv->pdev->dev); pdata 576 drivers/platform/mellanox/mlxreg-hotplug.c item = pdata->items; pdata 581 drivers/platform/mellanox/mlxreg-hotplug.c if (pdata->cell_low) pdata 582 drivers/platform/mellanox/mlxreg-hotplug.c regmap_write(priv->regmap, pdata->cell_low + pdata 586 drivers/platform/mellanox/mlxreg-hotplug.c regmap_write(priv->regmap, pdata->cell + MLXREG_HOTPLUG_AGGR_MASK_OFF, pdata 590 drivers/platform/mellanox/mlxreg-hotplug.c for (i = 0; i < pdata->counter; i++, item++) { pdata 620 drivers/platform/mellanox/mlxreg-hotplug.c struct mlxreg_core_hotplug_platform_data *pdata; pdata 625 drivers/platform/mellanox/mlxreg-hotplug.c pdata = dev_get_platdata(&pdev->dev); pdata 626 drivers/platform/mellanox/mlxreg-hotplug.c if (!pdata) { pdata 632 drivers/platform/mellanox/mlxreg-hotplug.c deferred_adap = i2c_get_adapter(pdata->deferred_nr); pdata 641 drivers/platform/mellanox/mlxreg-hotplug.c if (pdata->irq) { pdata 642 drivers/platform/mellanox/mlxreg-hotplug.c priv->irq = pdata->irq; pdata 649 drivers/platform/mellanox/mlxreg-hotplug.c priv->regmap = pdata->regmap; pdata 36 drivers/platform/mellanox/mlxreg-io.c struct mlxreg_core_platform_data *pdata; pdata 98 drivers/platform/mellanox/mlxreg-io.c struct mlxreg_core_data *data = priv->pdata->data + index; pdata 102 drivers/platform/mellanox/mlxreg-io.c ret = mlxreg_io_get_reg(priv->pdata->regmap, data, 0, true, ®val); pdata 118 drivers/platform/mellanox/mlxreg-io.c struct mlxreg_core_data *data = priv->pdata->data + index; pdata 130 drivers/platform/mellanox/mlxreg-io.c ret = mlxreg_io_get_reg(priv->pdata->regmap, data, input_val, false, pdata 135 drivers/platform/mellanox/mlxreg-io.c ret = regmap_write(priv->pdata->regmap, data->reg, regval); pdata 156 drivers/platform/mellanox/mlxreg-io.c priv->pdata->counter, pdata 162 drivers/platform/mellanox/mlxreg-io.c for (i = 0; i < priv->pdata->counter; i++) { pdata 171 drivers/platform/mellanox/mlxreg-io.c priv->pdata->data[i].label); pdata 180 drivers/platform/mellanox/mlxreg-io.c priv->pdata->data[i].mode; pdata 203 drivers/platform/mellanox/mlxreg-io.c priv->pdata = dev_get_platdata(&pdev->dev); pdata 204 drivers/platform/mellanox/mlxreg-io.c if (!priv->pdata) { pdata 629 drivers/platform/x86/intel_scu_ipc.c struct intel_scu_ipc_pdata_t *pdata; pdata 634 drivers/platform/x86/intel_scu_ipc.c pdata = (struct intel_scu_ipc_pdata_t *)id->driver_data; pdata 635 drivers/platform/x86/intel_scu_ipc.c if (!pdata) pdata 650 drivers/platform/x86/intel_scu_ipc.c scu->i2c_base = ioremap_nocache(pdata->i2c_base, pdata->i2c_len); pdata 668 drivers/platform/x86/intel_scu_ipc.c #define SCU_DEVICE(id, pdata) {PCI_VDEVICE(INTEL, id), (kernel_ulong_t)&pdata} pdata 201 drivers/platform/x86/pcengines-apuv2.c const void *pdata, pdata 211 drivers/platform/x86/pcengines-apuv2.c pdata, pdata 211 drivers/power/avs/smartreflex.c struct omap_sr_data *pdata = sr_info->pdev->dev.platform_data; pdata 222 drivers/power/avs/smartreflex.c if (pdata && pdata->enable_on_init) pdata 826 drivers/power/avs/smartreflex.c struct omap_sr_data *pdata = pdev->dev.platform_data; pdata 842 drivers/power/avs/smartreflex.c if (!pdata) { pdata 859 drivers/power/avs/smartreflex.c snprintf(sr_info->name, SMARTREFLEX_NAME_LEN, "%s", pdata->name); pdata 863 drivers/power/avs/smartreflex.c sr_info->voltdm = pdata->voltdm; pdata 864 drivers/power/avs/smartreflex.c sr_info->nvalue_table = pdata->nvalue_table; pdata 865 drivers/power/avs/smartreflex.c sr_info->nvalue_count = pdata->nvalue_count; pdata 866 drivers/power/avs/smartreflex.c sr_info->senn_mod = pdata->senn_mod; pdata 867 drivers/power/avs/smartreflex.c sr_info->senp_mod = pdata->senp_mod; pdata 868 drivers/power/avs/smartreflex.c sr_info->err_weight = pdata->err_weight; pdata 869 drivers/power/avs/smartreflex.c sr_info->err_maxlimit = pdata->err_maxlimit; pdata 870 drivers/power/avs/smartreflex.c sr_info->accum_data = pdata->accum_data; pdata 871 drivers/power/avs/smartreflex.c sr_info->senn_avgweight = pdata->senn_avgweight; pdata 872 drivers/power/avs/smartreflex.c sr_info->senp_avgweight = pdata->senp_avgweight; pdata 874 drivers/power/avs/smartreflex.c sr_info->ip_type = pdata->ip_type; pdata 954 drivers/power/avs/smartreflex.c struct omap_sr_data *pdata = pdev->dev.platform_data; pdata 957 drivers/power/avs/smartreflex.c if (!pdata) { pdata 962 drivers/power/avs/smartreflex.c sr_info = _sr_lookup(pdata->voltdm); pdata 980 drivers/power/avs/smartreflex.c struct omap_sr_data *pdata = pdev->dev.platform_data; pdata 983 drivers/power/avs/smartreflex.c if (!pdata) { pdata 988 drivers/power/avs/smartreflex.c sr_info = _sr_lookup(pdata->voltdm); pdata 914 drivers/power/supply/88pm860x_battery.c struct pm860x_power_pdata *pdata; pdata 938 drivers/power/supply/88pm860x_battery.c pdata = pdev->dev.platform_data; pdata 945 drivers/power/supply/88pm860x_battery.c if (pdata && pdata->max_capacity) pdata 946 drivers/power/supply/88pm860x_battery.c info->max_capacity = pdata->max_capacity; pdata 949 drivers/power/supply/88pm860x_battery.c if (pdata && pdata->resistor) pdata 950 drivers/power/supply/88pm860x_battery.c info->resistor = pdata->resistor; pdata 1531 drivers/power/supply/bq2415x_charger.c struct bq2415x_platform_data *pdata = client->dev.platform_data; pdata 1536 drivers/power/supply/bq2415x_charger.c if (!np && !pdata && !ACPI_HANDLE(&client->dev)) { pdata 1622 drivers/power/supply/bq2415x_charger.c memcpy(&bq->init_data, pdata, sizeof(bq->init_data)); pdata 578 drivers/power/supply/bq24190_charger.c struct bq24190_platform_data *pdata = bdi->dev->platform_data; pdata 584 drivers/power/supply/bq24190_charger.c if (pdata && pdata->regulator_init_data) pdata 585 drivers/power/supply/bq24190_charger.c cfg.init_data = pdata->regulator_init_data; pdata 50 drivers/power/supply/bq24735-charger.c struct bq24735_platform *pdata; pdata 110 drivers/power/supply/bq24735-charger.c struct bq24735_platform *pdata = charger->pdata; pdata 114 drivers/power/supply/bq24735-charger.c if (pdata->ext_control) pdata 117 drivers/power/supply/bq24735-charger.c if (pdata->charge_current) { pdata 118 drivers/power/supply/bq24735-charger.c value = pdata->charge_current & BQ24735_CHARGE_CURRENT_MASK; pdata 130 drivers/power/supply/bq24735-charger.c if (pdata->charge_voltage) { pdata 131 drivers/power/supply/bq24735-charger.c value = pdata->charge_voltage & BQ24735_CHARGE_VOLTAGE_MASK; pdata 143 drivers/power/supply/bq24735-charger.c if (pdata->input_current) { pdata 144 drivers/power/supply/bq24735-charger.c value = pdata->input_current & BQ24735_INPUT_CURRENT_MASK; pdata 163 drivers/power/supply/bq24735-charger.c if (charger->pdata->ext_control) pdata 176 drivers/power/supply/bq24735-charger.c if (charger->pdata->ext_control) pdata 323 drivers/power/supply/bq24735-charger.c struct bq24735_platform *pdata; pdata 328 drivers/power/supply/bq24735-charger.c pdata = devm_kzalloc(&client->dev, sizeof(*pdata), GFP_KERNEL); pdata 329 drivers/power/supply/bq24735-charger.c if (!pdata) { pdata 337 drivers/power/supply/bq24735-charger.c pdata->charge_current = val; pdata 341 drivers/power/supply/bq24735-charger.c pdata->charge_voltage = val; pdata 345 drivers/power/supply/bq24735-charger.c pdata->input_current = val; pdata 347 drivers/power/supply/bq24735-charger.c pdata->ext_control = of_property_read_bool(np, "ti,external-control"); pdata 349 drivers/power/supply/bq24735-charger.c return pdata; pdata 367 drivers/power/supply/bq24735-charger.c charger->pdata = client->dev.platform_data; pdata 369 drivers/power/supply/bq24735-charger.c if (IS_ENABLED(CONFIG_OF) && !charger->pdata && client->dev.of_node) pdata 370 drivers/power/supply/bq24735-charger.c charger->pdata = bq24735_parse_dt_data(client); pdata 372 drivers/power/supply/bq24735-charger.c if (!charger->pdata) { pdata 377 drivers/power/supply/bq24735-charger.c name = (char *)charger->pdata->name; pdata 401 drivers/power/supply/bq24735-charger.c psy_cfg.supplied_to = charger->pdata->supplied_to; pdata 402 drivers/power/supply/bq24735-charger.c psy_cfg.num_supplicants = charger->pdata->num_supplicants; pdata 422 drivers/power/supply/da9030_battery.c struct da9030_battery_info *pdata) pdata 424 drivers/power/supply/da9030_battery.c charger->thresholds.tbat_low = pdata->tbat_low; pdata 425 drivers/power/supply/da9030_battery.c charger->thresholds.tbat_high = pdata->tbat_high; pdata 426 drivers/power/supply/da9030_battery.c charger->thresholds.tbat_restart = pdata->tbat_restart; pdata 429 drivers/power/supply/da9030_battery.c da9030_millivolt_to_reg(pdata->vbat_low); pdata 431 drivers/power/supply/da9030_battery.c da9030_millivolt_to_reg(pdata->vbat_crit); pdata 433 drivers/power/supply/da9030_battery.c da9030_millivolt_to_reg(pdata->vbat_charge_start); pdata 435 drivers/power/supply/da9030_battery.c da9030_millivolt_to_reg(pdata->vbat_charge_stop); pdata 437 drivers/power/supply/da9030_battery.c da9030_millivolt_to_reg(pdata->vbat_charge_restart); pdata 440 drivers/power/supply/da9030_battery.c da9030_millivolt_to_reg(pdata->vcharge_min); pdata 442 drivers/power/supply/da9030_battery.c da9030_millivolt_to_reg(pdata->vcharge_max); pdata 495 drivers/power/supply/da9030_battery.c struct da9030_battery_info *pdata = pdev->dev.platform_data; pdata 498 drivers/power/supply/da9030_battery.c if (pdata == NULL) pdata 501 drivers/power/supply/da9030_battery.c if (pdata->charge_milliamp >= 1500 || pdata 502 drivers/power/supply/da9030_battery.c pdata->charge_millivolt < 4000 || pdata 503 drivers/power/supply/da9030_battery.c pdata->charge_millivolt > 4350) pdata 515 drivers/power/supply/da9030_battery.c (pdata->batmon_interval ? : 10) * 1000); pdata 517 drivers/power/supply/da9030_battery.c charger->charge_milliamp = pdata->charge_milliamp; pdata 518 drivers/power/supply/da9030_battery.c charger->charge_millivolt = pdata->charge_millivolt; pdata 519 drivers/power/supply/da9030_battery.c charger->battery_info = pdata->battery_info; pdata 520 drivers/power/supply/da9030_battery.c charger->battery_low = pdata->battery_low; pdata 521 drivers/power/supply/da9030_battery.c charger->battery_critical = pdata->battery_critical; pdata 523 drivers/power/supply/da9030_battery.c da9030_battery_convert_thresholds(charger, pdata); pdata 587 drivers/power/supply/da9052-battery.c struct da9052_pdata *pdata; pdata 606 drivers/power/supply/da9052-battery.c pdata = bat->da9052->dev->platform_data; pdata 607 drivers/power/supply/da9052-battery.c if (pdata != NULL && pdata->use_for_apm) pdata 608 drivers/power/supply/da9052-battery.c psy_desc.use_for_apm = pdata->use_for_apm; pdata 421 drivers/power/supply/da9150-fg.c struct da9150_fg_pdata *pdata; pdata 423 drivers/power/supply/da9150-fg.c pdata = devm_kzalloc(dev, sizeof(struct da9150_fg_pdata), GFP_KERNEL); pdata 424 drivers/power/supply/da9150-fg.c if (!pdata) pdata 428 drivers/power/supply/da9150-fg.c &pdata->update_interval); pdata 430 drivers/power/supply/da9150-fg.c &pdata->warn_soc_lvl); pdata 432 drivers/power/supply/da9150-fg.c &pdata->crit_soc_lvl); pdata 434 drivers/power/supply/da9150-fg.c return pdata; pdata 376 drivers/power/supply/ds2782_battery.c struct ds278x_platform_data *pdata = client->dev.platform_data; pdata 386 drivers/power/supply/ds2782_battery.c if (id->driver_data == DS2786 && !pdata) { pdata 413 drivers/power/supply/ds2782_battery.c info->rsns = pdata->rsns; pdata 50 drivers/power/supply/generic-adc-battery.c struct gab_platform_data *pdata; pdata 94 drivers/power/supply/generic-adc-battery.c struct gab_platform_data *pdata = adc_bat->pdata; pdata 95 drivers/power/supply/generic-adc-battery.c bool ret = gpio_get_value(pdata->gpio_charge_finished); pdata 96 drivers/power/supply/generic-adc-battery.c bool inv = pdata->gpio_inverted; pdata 98 drivers/power/supply/generic-adc-battery.c if (!gpio_is_valid(pdata->gpio_charge_finished)) pdata 105 drivers/power/supply/generic-adc-battery.c struct gab_platform_data *pdata = adc_bat->pdata; pdata 108 drivers/power/supply/generic-adc-battery.c bat_info = &pdata->battery_info; pdata 148 drivers/power/supply/generic-adc-battery.c struct gab_platform_data *pdata; pdata 158 drivers/power/supply/generic-adc-battery.c pdata = adc_bat->pdata; pdata 159 drivers/power/supply/generic-adc-battery.c bat_info = &pdata->battery_info; pdata 169 drivers/power/supply/generic-adc-battery.c val->intval = pdata->cal_charge(result); pdata 229 drivers/power/supply/generic-adc-battery.c struct gab_platform_data *pdata = adc_bat->pdata; pdata 232 drivers/power/supply/generic-adc-battery.c delay = pdata->jitter_delay ? pdata->jitter_delay : JITTER_DEFAULT; pdata 243 drivers/power/supply/generic-adc-battery.c struct gab_platform_data *pdata = pdev->dev.platform_data; pdata 257 drivers/power/supply/generic-adc-battery.c psy_desc->name = pdata->battery_info.name; pdata 265 drivers/power/supply/generic-adc-battery.c adc_bat->pdata = pdata; pdata 330 drivers/power/supply/generic-adc-battery.c if (gpio_is_valid(pdata->gpio_charge_finished)) { pdata 332 drivers/power/supply/generic-adc-battery.c ret = gpio_request(pdata->gpio_charge_finished, "charged"); pdata 336 drivers/power/supply/generic-adc-battery.c irq = gpio_to_irq(pdata->gpio_charge_finished); pdata 352 drivers/power/supply/generic-adc-battery.c gpio_free(pdata->gpio_charge_finished); pdata 370 drivers/power/supply/generic-adc-battery.c struct gab_platform_data *pdata = adc_bat->pdata; pdata 374 drivers/power/supply/generic-adc-battery.c if (gpio_is_valid(pdata->gpio_charge_finished)) { pdata 375 drivers/power/supply/generic-adc-battery.c free_irq(gpio_to_irq(pdata->gpio_charge_finished), adc_bat); pdata 376 drivers/power/supply/generic-adc-battery.c gpio_free(pdata->gpio_charge_finished); pdata 401 drivers/power/supply/generic-adc-battery.c struct gab_platform_data *pdata = adc_bat->pdata; pdata 404 drivers/power/supply/generic-adc-battery.c delay = pdata->jitter_delay ? pdata->jitter_delay : JITTER_DEFAULT; pdata 123 drivers/power/supply/gpio-charger.c const struct gpio_charger_platform_data *pdata = dev->platform_data; pdata 132 drivers/power/supply/gpio-charger.c if (!pdata && !dev->of_node) { pdata 153 drivers/power/supply/gpio-charger.c if (!gpio_is_valid(pdata->gpio)) { pdata 158 drivers/power/supply/gpio-charger.c if (pdata->gpio_active_low) pdata 160 drivers/power/supply/gpio-charger.c ret = devm_gpio_request_one(dev, pdata->gpio, flags, pdata 167 drivers/power/supply/gpio-charger.c gpio_charger->gpiod = gpio_to_desc(pdata->gpio); pdata 192 drivers/power/supply/gpio-charger.c if (pdata) { pdata 193 drivers/power/supply/gpio-charger.c charger_desc->name = pdata->name; pdata 194 drivers/power/supply/gpio-charger.c charger_desc->type = pdata->type; pdata 195 drivers/power/supply/gpio-charger.c psy_cfg.supplied_to = pdata->supplied_to; pdata 196 drivers/power/supply/gpio-charger.c psy_cfg.num_supplicants = pdata->num_supplicants; pdata 89 drivers/power/supply/lp8727_charger.c struct lp8727_platform_data *pdata; pdata 181 drivers/power/supply/lp8727_charger.c struct lp8727_platform_data *pdata = pchg->pdata; pdata 188 drivers/power/supply/lp8727_charger.c pchg->chg_param = pdata ? pdata->ac : NULL; pdata 192 drivers/power/supply/lp8727_charger.c pchg->chg_param = pdata ? pdata->ac : NULL; pdata 195 drivers/power/supply/lp8727_charger.c pchg->chg_param = pdata ? pdata->usb : NULL; pdata 258 drivers/power/supply/lp8727_charger.c unsigned delay_msec = pchg->pdata ? pchg->pdata->debounce_msec : pdata 337 drivers/power/supply/lp8727_charger.c struct lp8727_platform_data *pdata = pchg->pdata; pdata 363 drivers/power/supply/lp8727_charger.c if (!pdata) pdata 366 drivers/power/supply/lp8727_charger.c if (pdata->get_batt_present) pdata 367 drivers/power/supply/lp8727_charger.c val->intval = pdata->get_batt_present(); pdata 370 drivers/power/supply/lp8727_charger.c if (!pdata) pdata 373 drivers/power/supply/lp8727_charger.c if (pdata->get_batt_level) pdata 374 drivers/power/supply/lp8727_charger.c val->intval = pdata->get_batt_level(); pdata 377 drivers/power/supply/lp8727_charger.c if (!pdata) pdata 380 drivers/power/supply/lp8727_charger.c if (pdata->get_batt_capacity) pdata 381 drivers/power/supply/lp8727_charger.c val->intval = pdata->get_batt_capacity(); pdata 384 drivers/power/supply/lp8727_charger.c if (!pdata) pdata 387 drivers/power/supply/lp8727_charger.c if (pdata->get_batt_temp) pdata 388 drivers/power/supply/lp8727_charger.c val->intval = pdata->get_batt_temp(); pdata 511 drivers/power/supply/lp8727_charger.c struct lp8727_platform_data *pdata; pdata 514 drivers/power/supply/lp8727_charger.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 515 drivers/power/supply/lp8727_charger.c if (!pdata) pdata 518 drivers/power/supply/lp8727_charger.c of_property_read_u32(np, "debounce-ms", &pdata->debounce_msec); pdata 522 drivers/power/supply/lp8727_charger.c return pdata; pdata 528 drivers/power/supply/lp8727_charger.c pdata->ac = lp8727_parse_charge_pdata(dev, child); pdata 531 drivers/power/supply/lp8727_charger.c pdata->usb = lp8727_parse_charge_pdata(dev, child); pdata 534 drivers/power/supply/lp8727_charger.c return pdata; pdata 546 drivers/power/supply/lp8727_charger.c struct lp8727_platform_data *pdata; pdata 553 drivers/power/supply/lp8727_charger.c pdata = lp8727_parse_dt(&cl->dev); pdata 554 drivers/power/supply/lp8727_charger.c if (IS_ERR(pdata)) pdata 555 drivers/power/supply/lp8727_charger.c return PTR_ERR(pdata); pdata 557 drivers/power/supply/lp8727_charger.c pdata = dev_get_platdata(&cl->dev); pdata 566 drivers/power/supply/lp8727_charger.c pchg->pdata = pdata; pdata 110 drivers/power/supply/lp8788-charger.c struct lp8788_charger_platform_data *pdata; pdata 253 drivers/power/supply/lp8788-charger.c struct lp8788_charger_platform_data *pdata = pchg->pdata; pdata 260 drivers/power/supply/lp8788-charger.c if (!pdata) pdata 263 drivers/power/supply/lp8788-charger.c max_vbatt = pdata->max_vbatt_mv; pdata 369 drivers/power/supply/lp8788-charger.c struct lp8788_charger_platform_data *pdata = pchg->pdata; pdata 374 drivers/power/supply/lp8788-charger.c if (!pdata || !pdata->chg_params) { pdata 380 drivers/power/supply/lp8788-charger.c for (i = 0; i < pdata->num_chg_params; i++) { pdata 381 drivers/power/supply/lp8788-charger.c param = pdata->chg_params + i; pdata 419 drivers/power/supply/lp8788-charger.c struct lp8788_charger_platform_data *pdata = pchg->pdata; pdata 422 drivers/power/supply/lp8788-charger.c pdata->charger_event(pchg->lp, event); pdata 444 drivers/power/supply/lp8788-charger.c struct lp8788_charger_platform_data *pdata = pchg->pdata; pdata 464 drivers/power/supply/lp8788-charger.c if (!pdata) pdata 467 drivers/power/supply/lp8788-charger.c if (pdata->charger_event && id == LP8788_INT_CHG_INPUT_STATE) pdata 568 drivers/power/supply/lp8788-charger.c struct lp8788_charger_platform_data *pdata = pchg->pdata; pdata 571 drivers/power/supply/lp8788-charger.c if (!pdata) pdata 575 drivers/power/supply/lp8788-charger.c chan = iio_channel_get(dev, pdata->adc_vbatt); pdata 579 drivers/power/supply/lp8788-charger.c chan = iio_channel_get(dev, pdata->adc_batt_temp); pdata 711 drivers/power/supply/lp8788-charger.c pchg->pdata = lp->pdata ? lp->pdata->chg_pdata : NULL; pdata 19 drivers/power/supply/max14577_charger.c struct max14577_charger_platform_data *pdata; pdata 354 drivers/power/supply/max14577_charger.c ret = max14577_init_constant_voltage(chg, chg->pdata->constant_uvolt); pdata 358 drivers/power/supply/max14577_charger.c ret = max14577_init_eoc(chg, chg->pdata->eoc_uamp); pdata 362 drivers/power/supply/max14577_charger.c ret = max14577_init_fast_charge(chg, chg->pdata->fast_charge_uamp); pdata 372 drivers/power/supply/max14577_charger.c switch (chg->pdata->ovp_uvolt) { pdata 379 drivers/power/supply/max14577_charger.c reg_data = 0x1 + (chg->pdata->ovp_uvolt - 6000000) / 500000; pdata 383 drivers/power/supply/max14577_charger.c chg->pdata->ovp_uvolt); pdata 459 drivers/power/supply/max14577_charger.c struct max14577_charger_platform_data *pdata; pdata 468 drivers/power/supply/max14577_charger.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 469 drivers/power/supply/max14577_charger.c if (!pdata) pdata 473 drivers/power/supply/max14577_charger.c &pdata->constant_uvolt); pdata 480 drivers/power/supply/max14577_charger.c &pdata->fast_charge_uamp); pdata 486 drivers/power/supply/max14577_charger.c ret = of_property_read_u32(np, "maxim,eoc-uamp", &pdata->eoc_uamp); pdata 492 drivers/power/supply/max14577_charger.c ret = of_property_read_u32(np, "maxim,ovp-uvolt", &pdata->ovp_uvolt); pdata 498 drivers/power/supply/max14577_charger.c return pdata; pdata 574 drivers/power/supply/max14577_charger.c chg->pdata = max14577_charger_dt_init(pdev); pdata 575 drivers/power/supply/max14577_charger.c if (IS_ERR_OR_NULL(chg->pdata)) pdata 576 drivers/power/supply/max14577_charger.c return PTR_ERR(chg->pdata); pdata 35 drivers/power/supply/max17040_battery.c struct max17040_platform_data *pdata; pdata 134 drivers/power/supply/max17040_battery.c if (chip->pdata && chip->pdata->battery_online) pdata 135 drivers/power/supply/max17040_battery.c chip->online = chip->pdata->battery_online(); pdata 144 drivers/power/supply/max17040_battery.c if (!chip->pdata || !chip->pdata->charger_online pdata 145 drivers/power/supply/max17040_battery.c || !chip->pdata->charger_enable) { pdata 150 drivers/power/supply/max17040_battery.c if (chip->pdata->charger_online()) { pdata 151 drivers/power/supply/max17040_battery.c if (chip->pdata->charger_enable()) pdata 208 drivers/power/supply/max17040_battery.c chip->pdata = client->dev.platform_data; pdata 60 drivers/power/supply/max17042_battery.c struct max17042_platform_data *pdata; pdata 152 drivers/power/supply/max17042_battery.c if (!chip->pdata->enable_current_sense) { pdata 162 drivers/power/supply/max17042_battery.c avg_current *= 1562500 / chip->pdata->r_sns; pdata 195 drivers/power/supply/max17042_battery.c if (vavg < chip->pdata->vmin) { pdata 200 drivers/power/supply/max17042_battery.c if (vbatt > chip->pdata->vmax + MAX17042_VMAX_TOLERANCE) { pdata 209 drivers/power/supply/max17042_battery.c if (temp < chip->pdata->temp_min) { pdata 214 drivers/power/supply/max17042_battery.c if (temp > chip->pdata->temp_max) { pdata 327 drivers/power/supply/max17042_battery.c do_div(data64, chip->pdata->r_sns); pdata 336 drivers/power/supply/max17042_battery.c do_div(data64, chip->pdata->r_sns); pdata 345 drivers/power/supply/max17042_battery.c do_div(data64, chip->pdata->r_sns); pdata 375 drivers/power/supply/max17042_battery.c val->intval = chip->pdata->temp_min; pdata 378 drivers/power/supply/max17042_battery.c val->intval = chip->pdata->temp_max; pdata 389 drivers/power/supply/max17042_battery.c if (chip->pdata->enable_current_sense) { pdata 395 drivers/power/supply/max17042_battery.c val->intval *= 1562500 / chip->pdata->r_sns; pdata 401 drivers/power/supply/max17042_battery.c if (chip->pdata->enable_current_sense) { pdata 407 drivers/power/supply/max17042_battery.c val->intval *= 1562500 / chip->pdata->r_sns; pdata 538 drivers/power/supply/max17042_battery.c chip->pdata->config_data->cell_char_tbl[i]); pdata 573 drivers/power/supply/max17042_battery.c int table_size = ARRAY_SIZE(chip->pdata->config_data->cell_char_tbl); pdata 588 drivers/power/supply/max17042_battery.c chip->pdata->config_data->cell_char_tbl, pdata 601 drivers/power/supply/max17042_battery.c int table_size = ARRAY_SIZE(chip->pdata->config_data->cell_char_tbl); pdata 621 drivers/power/supply/max17042_battery.c struct max17042_config_data *config = chip->pdata->config_data; pdata 637 drivers/power/supply/max17042_battery.c struct max17042_config_data *config = chip->pdata->config_data; pdata 661 drivers/power/supply/max17042_battery.c struct max17042_config_data *config = chip->pdata->config_data; pdata 687 drivers/power/supply/max17042_battery.c struct max17042_config_data *config = chip->pdata->config_data; pdata 726 drivers/power/supply/max17042_battery.c struct max17042_config_data *config = chip->pdata->config_data; pdata 864 drivers/power/supply/max17042_battery.c if (chip->pdata->enable_por_init && chip->pdata->config_data) { pdata 880 drivers/power/supply/max17042_battery.c struct max17042_platform_data *pdata; pdata 882 drivers/power/supply/max17042_battery.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 883 drivers/power/supply/max17042_battery.c if (!pdata) pdata 891 drivers/power/supply/max17042_battery.c pdata->r_sns = prop; pdata 892 drivers/power/supply/max17042_battery.c pdata->enable_current_sense = true; pdata 895 drivers/power/supply/max17042_battery.c if (of_property_read_s32(np, "maxim,cold-temp", &pdata->temp_min)) pdata 896 drivers/power/supply/max17042_battery.c pdata->temp_min = INT_MIN; pdata 897 drivers/power/supply/max17042_battery.c if (of_property_read_s32(np, "maxim,over-heat-temp", &pdata->temp_max)) pdata 898 drivers/power/supply/max17042_battery.c pdata->temp_max = INT_MAX; pdata 899 drivers/power/supply/max17042_battery.c if (of_property_read_s32(np, "maxim,dead-volt", &pdata->vmin)) pdata 900 drivers/power/supply/max17042_battery.c pdata->vmin = INT_MIN; pdata 901 drivers/power/supply/max17042_battery.c if (of_property_read_s32(np, "maxim,over-volt", &pdata->vmax)) pdata 902 drivers/power/supply/max17042_battery.c pdata->vmax = INT_MAX; pdata 904 drivers/power/supply/max17042_battery.c return pdata; pdata 920 drivers/power/supply/max17042_battery.c struct max17042_platform_data *pdata; pdata 928 drivers/power/supply/max17042_battery.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 929 drivers/power/supply/max17042_battery.c if (!pdata) pdata 930 drivers/power/supply/max17042_battery.c return pdata; pdata 933 drivers/power/supply/max17042_battery.c pdata->init_data = max17047_default_pdata_init_regs; pdata 934 drivers/power/supply/max17042_battery.c pdata->num_init_data = pdata 944 drivers/power/supply/max17042_battery.c pdata->enable_current_sense = false; pdata 946 drivers/power/supply/max17042_battery.c pdata->enable_current_sense = true; pdata 948 drivers/power/supply/max17042_battery.c pdata->vmin = MAX17042_DEFAULT_VMIN; pdata 949 drivers/power/supply/max17042_battery.c pdata->vmax = MAX17042_DEFAULT_VMAX; pdata 950 drivers/power/supply/max17042_battery.c pdata->temp_min = MAX17042_DEFAULT_TEMP_MIN; pdata 951 drivers/power/supply/max17042_battery.c pdata->temp_max = MAX17042_DEFAULT_TEMP_MAX; pdata 953 drivers/power/supply/max17042_battery.c return pdata; pdata 1041 drivers/power/supply/max17042_battery.c chip->pdata = max17042_get_pdata(chip); pdata 1042 drivers/power/supply/max17042_battery.c if (!chip->pdata) { pdata 1053 drivers/power/supply/max17042_battery.c if (!chip->pdata->enable_current_sense) pdata 1056 drivers/power/supply/max17042_battery.c if (chip->pdata->r_sns == 0) pdata 1057 drivers/power/supply/max17042_battery.c chip->pdata->r_sns = MAX17042_DEFAULT_SNS_RESISTOR; pdata 1059 drivers/power/supply/max17042_battery.c if (chip->pdata->init_data) pdata 1060 drivers/power/supply/max17042_battery.c for (i = 0; i < chip->pdata->num_init_data; i++) pdata 1062 drivers/power/supply/max17042_battery.c chip->pdata->init_data[i].addr, pdata 1063 drivers/power/supply/max17042_battery.c chip->pdata->init_data[i].data); pdata 1065 drivers/power/supply/max17042_battery.c if (!chip->pdata->enable_current_sense) { pdata 21 drivers/power/supply/max8903_charger.c struct max8903_pdata *pdata; pdata 45 drivers/power/supply/max8903_charger.c if (gpio_is_valid(data->pdata->chg)) { pdata 46 drivers/power/supply/max8903_charger.c if (gpio_get_value(data->pdata->chg) == 0) pdata 74 drivers/power/supply/max8903_charger.c struct max8903_pdata *pdata = data->pdata; pdata 78 drivers/power/supply/max8903_charger.c ta_in = gpio_get_value(pdata->dok) ? false : true; pdata 86 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->dcm)) pdata 87 drivers/power/supply/max8903_charger.c gpio_set_value(pdata->dcm, ta_in ? 1 : 0); pdata 90 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->cen)) pdata 91 drivers/power/supply/max8903_charger.c gpio_set_value(pdata->cen, ta_in ? 0 : pdata 115 drivers/power/supply/max8903_charger.c struct max8903_pdata *pdata = data->pdata; pdata 119 drivers/power/supply/max8903_charger.c usb_in = gpio_get_value(pdata->uok) ? false : true; pdata 129 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->cen)) pdata 130 drivers/power/supply/max8903_charger.c gpio_set_value(pdata->cen, usb_in ? 0 : pdata 154 drivers/power/supply/max8903_charger.c struct max8903_pdata *pdata = data->pdata; pdata 157 drivers/power/supply/max8903_charger.c fault = gpio_get_value(pdata->flt) ? false : true; pdata 175 drivers/power/supply/max8903_charger.c struct max8903_pdata *pdata = NULL; pdata 180 drivers/power/supply/max8903_charger.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 181 drivers/power/supply/max8903_charger.c if (!pdata) pdata 184 drivers/power/supply/max8903_charger.c pdata->dc_valid = false; pdata 185 drivers/power/supply/max8903_charger.c pdata->usb_valid = false; pdata 187 drivers/power/supply/max8903_charger.c pdata->cen = of_get_named_gpio(np, "cen-gpios", 0); pdata 188 drivers/power/supply/max8903_charger.c if (!gpio_is_valid(pdata->cen)) pdata 189 drivers/power/supply/max8903_charger.c pdata->cen = -EINVAL; pdata 191 drivers/power/supply/max8903_charger.c pdata->chg = of_get_named_gpio(np, "chg-gpios", 0); pdata 192 drivers/power/supply/max8903_charger.c if (!gpio_is_valid(pdata->chg)) pdata 193 drivers/power/supply/max8903_charger.c pdata->chg = -EINVAL; pdata 195 drivers/power/supply/max8903_charger.c pdata->flt = of_get_named_gpio(np, "flt-gpios", 0); pdata 196 drivers/power/supply/max8903_charger.c if (!gpio_is_valid(pdata->flt)) pdata 197 drivers/power/supply/max8903_charger.c pdata->flt = -EINVAL; pdata 199 drivers/power/supply/max8903_charger.c pdata->usus = of_get_named_gpio(np, "usus-gpios", 0); pdata 200 drivers/power/supply/max8903_charger.c if (!gpio_is_valid(pdata->usus)) pdata 201 drivers/power/supply/max8903_charger.c pdata->usus = -EINVAL; pdata 203 drivers/power/supply/max8903_charger.c pdata->dcm = of_get_named_gpio(np, "dcm-gpios", 0); pdata 204 drivers/power/supply/max8903_charger.c if (!gpio_is_valid(pdata->dcm)) pdata 205 drivers/power/supply/max8903_charger.c pdata->dcm = -EINVAL; pdata 207 drivers/power/supply/max8903_charger.c pdata->dok = of_get_named_gpio(np, "dok-gpios", 0); pdata 208 drivers/power/supply/max8903_charger.c if (!gpio_is_valid(pdata->dok)) pdata 209 drivers/power/supply/max8903_charger.c pdata->dok = -EINVAL; pdata 211 drivers/power/supply/max8903_charger.c pdata->dc_valid = true; pdata 213 drivers/power/supply/max8903_charger.c pdata->uok = of_get_named_gpio(np, "uok-gpios", 0); pdata 214 drivers/power/supply/max8903_charger.c if (!gpio_is_valid(pdata->uok)) pdata 215 drivers/power/supply/max8903_charger.c pdata->uok = -EINVAL; pdata 217 drivers/power/supply/max8903_charger.c pdata->usb_valid = true; pdata 219 drivers/power/supply/max8903_charger.c return pdata; pdata 226 drivers/power/supply/max8903_charger.c struct max8903_pdata *pdata = pdev->dev.platform_data; pdata 232 drivers/power/supply/max8903_charger.c if (pdata->dc_valid) { pdata 233 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->dok)) { pdata 234 drivers/power/supply/max8903_charger.c ret = devm_gpio_request(dev, pdata->dok, pdata 239 drivers/power/supply/max8903_charger.c pdata->dok, ret); pdata 243 drivers/power/supply/max8903_charger.c gpio = pdata->dok; /* PULL_UPed Interrupt */ pdata 251 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->dcm)) { pdata 252 drivers/power/supply/max8903_charger.c ret = devm_gpio_request(dev, pdata->dcm, data->psy_desc.name); pdata 256 drivers/power/supply/max8903_charger.c pdata->dcm, ret); pdata 260 drivers/power/supply/max8903_charger.c gpio = pdata->dcm; /* Output */ pdata 264 drivers/power/supply/max8903_charger.c if (pdata->usb_valid) { pdata 265 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->uok)) { pdata 266 drivers/power/supply/max8903_charger.c ret = devm_gpio_request(dev, pdata->uok, pdata 271 drivers/power/supply/max8903_charger.c pdata->uok, ret); pdata 275 drivers/power/supply/max8903_charger.c gpio = pdata->uok; pdata 284 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->cen)) { pdata 285 drivers/power/supply/max8903_charger.c ret = devm_gpio_request(dev, pdata->cen, data->psy_desc.name); pdata 289 drivers/power/supply/max8903_charger.c pdata->cen, ret); pdata 293 drivers/power/supply/max8903_charger.c gpio_set_value(pdata->cen, (ta_in || usb_in) ? 0 : 1); pdata 296 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->chg)) { pdata 297 drivers/power/supply/max8903_charger.c ret = devm_gpio_request(dev, pdata->chg, data->psy_desc.name); pdata 301 drivers/power/supply/max8903_charger.c pdata->chg, ret); pdata 306 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->flt)) { pdata 307 drivers/power/supply/max8903_charger.c ret = devm_gpio_request(dev, pdata->flt, data->psy_desc.name); pdata 311 drivers/power/supply/max8903_charger.c pdata->flt, ret); pdata 316 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->usus)) { pdata 317 drivers/power/supply/max8903_charger.c ret = devm_gpio_request(dev, pdata->usus, data->psy_desc.name); pdata 321 drivers/power/supply/max8903_charger.c pdata->usus, ret); pdata 337 drivers/power/supply/max8903_charger.c struct max8903_pdata *pdata = pdev->dev.platform_data; pdata 345 drivers/power/supply/max8903_charger.c if (IS_ENABLED(CONFIG_OF) && !pdata && dev->of_node) pdata 346 drivers/power/supply/max8903_charger.c pdata = max8903_parse_dt_data(dev); pdata 348 drivers/power/supply/max8903_charger.c if (!pdata) { pdata 353 drivers/power/supply/max8903_charger.c pdev->dev.platform_data = pdata; pdata 354 drivers/power/supply/max8903_charger.c data->pdata = pdata; pdata 358 drivers/power/supply/max8903_charger.c if (pdata->dc_valid == false && pdata->usb_valid == false) { pdata 384 drivers/power/supply/max8903_charger.c if (pdata->dc_valid) { pdata 385 drivers/power/supply/max8903_charger.c ret = devm_request_threaded_irq(dev, gpio_to_irq(pdata->dok), pdata 392 drivers/power/supply/max8903_charger.c gpio_to_irq(pdata->dok), ret); pdata 397 drivers/power/supply/max8903_charger.c if (pdata->usb_valid) { pdata 398 drivers/power/supply/max8903_charger.c ret = devm_request_threaded_irq(dev, gpio_to_irq(pdata->uok), pdata 405 drivers/power/supply/max8903_charger.c gpio_to_irq(pdata->uok), ret); pdata 410 drivers/power/supply/max8903_charger.c if (gpio_is_valid(pdata->flt)) { pdata 411 drivers/power/supply/max8903_charger.c ret = devm_request_threaded_irq(dev, gpio_to_irq(pdata->flt), pdata 418 drivers/power/supply/max8903_charger.c gpio_to_irq(pdata->flt), ret); pdata 463 drivers/power/supply/max8925_power.c struct max8925_power_pdata *pdata; pdata 474 drivers/power/supply/max8925_power.c pdata = devm_kzalloc(&pdev->dev, pdata 477 drivers/power/supply/max8925_power.c if (!pdata) pdata 486 drivers/power/supply/max8925_power.c pdata->batt_detect = batt_detect; pdata 487 drivers/power/supply/max8925_power.c pdata->fast_charge = fast_charge; pdata 488 drivers/power/supply/max8925_power.c pdata->topoff_threshold = topoff_threshold; pdata 489 drivers/power/supply/max8925_power.c pdata->no_insert_detect = no_insert_detect; pdata 490 drivers/power/supply/max8925_power.c pdata->no_temp_support = no_temp_support; pdata 494 drivers/power/supply/max8925_power.c return pdata; pdata 508 drivers/power/supply/max8925_power.c struct max8925_power_pdata *pdata = NULL; pdata 512 drivers/power/supply/max8925_power.c pdata = max8925_power_dt_init(pdev); pdata 513 drivers/power/supply/max8925_power.c if (!pdata) { pdata 528 drivers/power/supply/max8925_power.c psy_cfg.supplied_to = pdata->supplied_to; pdata 529 drivers/power/supply/max8925_power.c psy_cfg.num_supplicants = pdata->num_supplicants; pdata 552 drivers/power/supply/max8925_power.c info->batt_detect = pdata->batt_detect; pdata 553 drivers/power/supply/max8925_power.c info->topoff_threshold = pdata->topoff_threshold; pdata 554 drivers/power/supply/max8925_power.c info->fast_charge = pdata->fast_charge; pdata 555 drivers/power/supply/max8925_power.c info->set_charger = pdata->set_charger; pdata 556 drivers/power/supply/max8925_power.c info->no_temp_support = pdata->no_temp_support; pdata 557 drivers/power/supply/max8925_power.c info->no_insert_detect = pdata->no_insert_detect; pdata 87 drivers/power/supply/max8997_charger.c struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); pdata 90 drivers/power/supply/max8997_charger.c if (!pdata) pdata 93 drivers/power/supply/max8997_charger.c if (pdata->eoc_mA) { pdata 94 drivers/power/supply/max8997_charger.c int val = (pdata->eoc_mA - 50) / 10; pdata 108 drivers/power/supply/max8997_charger.c switch (pdata->timeout) { pdata 127 drivers/power/supply/max8997_charger.c pdata->timeout); pdata 75 drivers/power/supply/max8998_charger.c struct max8998_platform_data *pdata = iodev->pdata; pdata 81 drivers/power/supply/max8998_charger.c if (!pdata) { pdata 99 drivers/power/supply/max8998_charger.c if (pdata->eoc >= 10 && pdata->eoc <= 45) { pdata 101 drivers/power/supply/max8998_charger.c (pdata->eoc / 5 - 2) << 5, 0x7 << 5); pdata 102 drivers/power/supply/max8998_charger.c } else if (pdata->eoc == 0) { pdata 111 drivers/power/supply/max8998_charger.c switch (pdata->restart) { pdata 134 drivers/power/supply/max8998_charger.c switch (pdata->timeout) { pdata 76 drivers/power/supply/pcf50633-charger.c if (mbc->pcf->pdata->charger_reference_current_ma) { pdata 77 drivers/power/supply/pcf50633-charger.c mbcc5 = (ma << 8) / mbc->pcf->pdata->charger_reference_current_ma; pdata 205 drivers/power/supply/pcf50633-charger.c if (!mbc->pcf->pdata->charger_reference_current_ma) pdata 208 drivers/power/supply/pcf50633-charger.c ma = (mbc->pcf->pdata->charger_reference_current_ma * mbcc5) >> 8; pdata 221 drivers/power/supply/pcf50633-charger.c if (!mbc->pcf->pdata->charger_reference_current_ma) pdata 228 drivers/power/supply/pcf50633-charger.c mbcc5 = (ma << 8) / mbc->pcf->pdata->charger_reference_current_ma; pdata 275 drivers/power/supply/pcf50633-charger.c if (mbc->pcf->pdata->mbc_event_callback) pdata 276 drivers/power/supply/pcf50633-charger.c mbc->pcf->pdata->mbc_event_callback(mbc->pcf, irq); pdata 402 drivers/power/supply/pcf50633-charger.c psy_cfg.supplied_to = mbc->pcf->pdata->batteries; pdata 403 drivers/power/supply/pcf50633-charger.c psy_cfg.num_supplicants = mbc->pcf->pdata->num_batteries; pdata 28 drivers/power/supply/pda_power.c static struct pda_power_pdata *pdata; pdata 60 drivers/power/supply/pda_power.c val->intval = pdata->is_ac_online ? pdata 61 drivers/power/supply/pda_power.c pdata->is_ac_online() : 0; pdata 63 drivers/power/supply/pda_power.c val->intval = pdata->is_usb_online ? pdata 64 drivers/power/supply/pda_power.c pdata->is_usb_online() : 0; pdata 99 drivers/power/supply/pda_power.c if (pdata->is_ac_online) pdata 100 drivers/power/supply/pda_power.c new_ac_status = !!pdata->is_ac_online(); pdata 102 drivers/power/supply/pda_power.c if (pdata->is_usb_online) pdata 103 drivers/power/supply/pda_power.c new_usb_status = !!pdata->is_usb_online(); pdata 109 drivers/power/supply/pda_power.c int max_uA = pdata->ac_max_uA; pdata 111 drivers/power/supply/pda_power.c if (pdata->set_charge) { pdata 114 drivers/power/supply/pda_power.c pdata->set_charge(PDA_POWER_CHARGE_AC); pdata 117 drivers/power/supply/pda_power.c pdata->set_charge(PDA_POWER_CHARGE_USB); pdata 120 drivers/power/supply/pda_power.c pdata->set_charge(0); pdata 163 drivers/power/supply/pda_power.c msecs_to_jiffies(pdata->wait_for_charger)); pdata 187 drivers/power/supply/pda_power.c msecs_to_jiffies(pdata->wait_for_status)); pdata 215 drivers/power/supply/pda_power.c msecs_to_jiffies(pdata->polling_interval)); pdata 255 drivers/power/supply/pda_power.c msecs_to_jiffies(pdata->wait_for_status)); pdata 275 drivers/power/supply/pda_power.c pdata = pdev->dev.platform_data; pdata 277 drivers/power/supply/pda_power.c if (pdata->init) { pdata 278 drivers/power/supply/pda_power.c ret = pdata->init(dev); pdata 292 drivers/power/supply/pda_power.c if (!pdata->wait_for_status) pdata 293 drivers/power/supply/pda_power.c pdata->wait_for_status = 500; pdata 295 drivers/power/supply/pda_power.c if (!pdata->wait_for_charger) pdata 296 drivers/power/supply/pda_power.c pdata->wait_for_charger = 500; pdata 298 drivers/power/supply/pda_power.c if (!pdata->polling_interval) pdata 299 drivers/power/supply/pda_power.c pdata->polling_interval = 2000; pdata 301 drivers/power/supply/pda_power.c if (!pdata->ac_max_uA) pdata 302 drivers/power/supply/pda_power.c pdata->ac_max_uA = 500000; pdata 310 drivers/power/supply/pda_power.c if (pdata->supplied_to) { pdata 311 drivers/power/supply/pda_power.c psy_cfg.supplied_to = pdata->supplied_to; pdata 312 drivers/power/supply/pda_power.c psy_cfg.num_supplicants = pdata->num_supplicants; pdata 321 drivers/power/supply/pda_power.c if (!pdata->is_usb_online) pdata 322 drivers/power/supply/pda_power.c pdata->is_usb_online = otg_is_usb_online; pdata 323 drivers/power/supply/pda_power.c if (!pdata->is_ac_online) pdata 324 drivers/power/supply/pda_power.c pdata->is_ac_online = otg_is_ac_online; pdata 328 drivers/power/supply/pda_power.c if (pdata->is_ac_online) { pdata 351 drivers/power/supply/pda_power.c if (pdata->is_usb_online) { pdata 376 drivers/power/supply/pda_power.c if (!IS_ERR_OR_NULL(transceiver) && pdata->use_otg_notifier) { pdata 392 drivers/power/supply/pda_power.c msecs_to_jiffies(pdata->polling_interval)); pdata 402 drivers/power/supply/pda_power.c if (pdata->is_usb_online && usb_irq) pdata 406 drivers/power/supply/pda_power.c if (pdata->is_usb_online) pdata 409 drivers/power/supply/pda_power.c if (pdata->is_ac_online && ac_irq) pdata 416 drivers/power/supply/pda_power.c if (pdata->is_ac_online) pdata 423 drivers/power/supply/pda_power.c if (pdata->exit) pdata 424 drivers/power/supply/pda_power.c pdata->exit(dev); pdata 432 drivers/power/supply/pda_power.c if (pdata->is_usb_online && usb_irq) pdata 434 drivers/power/supply/pda_power.c if (pdata->is_ac_online && ac_irq) pdata 442 drivers/power/supply/pda_power.c if (pdata->is_usb_online) pdata 444 drivers/power/supply/pda_power.c if (pdata->is_ac_online) pdata 454 drivers/power/supply/pda_power.c if (pdata->exit) pdata 455 drivers/power/supply/pda_power.c pdata->exit(dev); pdata 466 drivers/power/supply/pda_power.c if (pdata->suspend) { pdata 467 drivers/power/supply/pda_power.c int ret = pdata->suspend(state); pdata 492 drivers/power/supply/pda_power.c if (pdata->resume) pdata 493 drivers/power/supply/pda_power.c return pdata->resume(); pdata 497 drivers/power/supply/pm2301_charger.c } while (gpio_get_value(pm2->pdata->gpio_irq_number) == 0); pdata 1008 drivers/power/supply/pm2301_charger.c pm2->pdata = pl_data->wall_charger; pdata 1033 drivers/power/supply/pm2301_charger.c pm2->ac_chg_desc.name = pm2->pdata->label; pdata 1039 drivers/power/supply/pm2301_charger.c psy_cfg.supplied_to = pm2->pdata->supplied_to; pdata 1040 drivers/power/supply/pm2301_charger.c psy_cfg.num_supplicants = pm2->pdata->num_supplicants; pdata 1095 drivers/power/supply/pm2301_charger.c ret = request_threaded_irq(gpio_to_irq(pm2->pdata->gpio_irq_number), pdata 1098 drivers/power/supply/pm2301_charger.c pm2->pdata->irq_type, pdata 1104 drivers/power/supply/pm2301_charger.c gpio_to_irq(pm2->pdata->gpio_irq_number), ret); pdata 1118 drivers/power/supply/pm2301_charger.c ret = enable_irq_wake(gpio_to_irq(pm2->pdata->gpio_irq_number)); pdata 1126 drivers/power/supply/pm2301_charger.c if (gpio_is_valid(pm2->pdata->lpn_gpio)) { pdata 1128 drivers/power/supply/pm2301_charger.c pm2->lpn_pin = pm2->pdata->lpn_gpio; pdata 1172 drivers/power/supply/pm2301_charger.c disable_irq_wake(gpio_to_irq(pm2->pdata->gpio_irq_number)); pdata 1175 drivers/power/supply/pm2301_charger.c free_irq(gpio_to_irq(pm2->pdata->gpio_irq_number), pm2); pdata 1200 drivers/power/supply/pm2301_charger.c disable_irq_wake(gpio_to_irq(pm2->pdata->gpio_irq_number)); pdata 1203 drivers/power/supply/pm2301_charger.c free_irq(gpio_to_irq(pm2->pdata->gpio_irq_number), pm2); pdata 481 drivers/power/supply/pm2301_charger.h struct pm2xxx_charger_platform_data *pdata; pdata 33 drivers/power/supply/s3c_adc_battery.c struct s3c_adc_bat_pdata *pdata; pdata 87 drivers/power/supply/s3c_adc_battery.c bat->pdata->backup_volt_samples, pdata 88 drivers/power/supply/s3c_adc_battery.c bat->pdata->backup_volt_channel); pdata 89 drivers/power/supply/s3c_adc_battery.c bat->volt_value *= bat->pdata->backup_volt_mult; pdata 98 drivers/power/supply/s3c_adc_battery.c val->intval = bat->pdata->backup_volt_min; pdata 101 drivers/power/supply/s3c_adc_battery.c val->intval = bat->pdata->backup_volt_max; pdata 135 drivers/power/supply/s3c_adc_battery.c return bat->pdata->gpio_inverted ? pdata 136 drivers/power/supply/s3c_adc_battery.c !gpio_get_value(bat->pdata->gpio_charge_finished) : pdata 137 drivers/power/supply/s3c_adc_battery.c gpio_get_value(bat->pdata->gpio_charge_finished); pdata 156 drivers/power/supply/s3c_adc_battery.c lut = bat->pdata->lut_noac; pdata 157 drivers/power/supply/s3c_adc_battery.c lut_size = bat->pdata->lut_noac_cnt; pdata 163 drivers/power/supply/s3c_adc_battery.c bat->pdata->volt_samples, pdata 164 drivers/power/supply/s3c_adc_battery.c bat->pdata->volt_channel) * bat->pdata->volt_mult; pdata 166 drivers/power/supply/s3c_adc_battery.c bat->pdata->current_samples, pdata 167 drivers/power/supply/s3c_adc_battery.c bat->pdata->current_channel) * bat->pdata->current_mult; pdata 172 drivers/power/supply/s3c_adc_battery.c ((bat->pdata->gpio_charge_finished < 0) || pdata 174 drivers/power/supply/s3c_adc_battery.c lut = bat->pdata->lut_acin; pdata 175 drivers/power/supply/s3c_adc_battery.c lut_size = bat->pdata->lut_acin_cnt; pdata 180 drivers/power/supply/s3c_adc_battery.c (bat->cur_value / 1000), bat->pdata->internal_impedance); pdata 183 drivers/power/supply/s3c_adc_battery.c bat->pdata->internal_impedance)) { pdata 190 drivers/power/supply/s3c_adc_battery.c bat->pdata->internal_impedance); pdata 192 drivers/power/supply/s3c_adc_battery.c bat->pdata->internal_impedance); pdata 209 drivers/power/supply/s3c_adc_battery.c if (bat->pdata->gpio_charge_finished < 0) pdata 259 drivers/power/supply/s3c_adc_battery.c if (bat->pdata->enable_charger) pdata 260 drivers/power/supply/s3c_adc_battery.c bat->pdata->enable_charger(); pdata 263 drivers/power/supply/s3c_adc_battery.c if (bat->pdata->disable_charger) pdata 264 drivers/power/supply/s3c_adc_battery.c bat->pdata->disable_charger(); pdata 268 drivers/power/supply/s3c_adc_battery.c if ((bat->pdata->gpio_charge_finished >= 0) && is_plugged) { pdata 271 drivers/power/supply/s3c_adc_battery.c if (bat->pdata->disable_charger) pdata 272 drivers/power/supply/s3c_adc_battery.c bat->pdata->disable_charger(); pdata 275 drivers/power/supply/s3c_adc_battery.c if (bat->pdata->enable_charger) pdata 276 drivers/power/supply/s3c_adc_battery.c bat->pdata->enable_charger(); pdata 295 drivers/power/supply/s3c_adc_battery.c struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data; pdata 308 drivers/power/supply/s3c_adc_battery.c main_bat.pdata = pdata; pdata 320 drivers/power/supply/s3c_adc_battery.c if (pdata->backup_volt_mult) { pdata 325 drivers/power/supply/s3c_adc_battery.c backup_bat.pdata = pdev->dev.platform_data; pdata 338 drivers/power/supply/s3c_adc_battery.c if (pdata->gpio_charge_finished >= 0) { pdata 339 drivers/power/supply/s3c_adc_battery.c ret = gpio_request(pdata->gpio_charge_finished, "charged"); pdata 343 drivers/power/supply/s3c_adc_battery.c ret = request_irq(gpio_to_irq(pdata->gpio_charge_finished), pdata 351 drivers/power/supply/s3c_adc_battery.c if (pdata->init) { pdata 352 drivers/power/supply/s3c_adc_battery.c ret = pdata->init(); pdata 367 drivers/power/supply/s3c_adc_battery.c if (pdata->gpio_charge_finished >= 0) pdata 368 drivers/power/supply/s3c_adc_battery.c free_irq(gpio_to_irq(pdata->gpio_charge_finished), NULL); pdata 370 drivers/power/supply/s3c_adc_battery.c if (pdata->gpio_charge_finished >= 0) pdata 371 drivers/power/supply/s3c_adc_battery.c gpio_free(pdata->gpio_charge_finished); pdata 373 drivers/power/supply/s3c_adc_battery.c if (pdata->backup_volt_mult) pdata 384 drivers/power/supply/s3c_adc_battery.c struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data; pdata 387 drivers/power/supply/s3c_adc_battery.c if (pdata->backup_volt_mult) pdata 392 drivers/power/supply/s3c_adc_battery.c if (pdata->gpio_charge_finished >= 0) { pdata 393 drivers/power/supply/s3c_adc_battery.c free_irq(gpio_to_irq(pdata->gpio_charge_finished), NULL); pdata 394 drivers/power/supply/s3c_adc_battery.c gpio_free(pdata->gpio_charge_finished); pdata 399 drivers/power/supply/s3c_adc_battery.c if (pdata->exit) pdata 400 drivers/power/supply/s3c_adc_battery.c pdata->exit(); pdata 409 drivers/power/supply/s3c_adc_battery.c struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data; pdata 411 drivers/power/supply/s3c_adc_battery.c if (pdata->gpio_charge_finished >= 0) { pdata 414 drivers/power/supply/s3c_adc_battery.c gpio_to_irq(pdata->gpio_charge_finished)); pdata 416 drivers/power/supply/s3c_adc_battery.c disable_irq(gpio_to_irq(pdata->gpio_charge_finished)); pdata 417 drivers/power/supply/s3c_adc_battery.c main_bat.pdata->disable_charger(); pdata 426 drivers/power/supply/s3c_adc_battery.c struct s3c_adc_bat_pdata *pdata = pdev->dev.platform_data; pdata 428 drivers/power/supply/s3c_adc_battery.c if (pdata->gpio_charge_finished >= 0) { pdata 431 drivers/power/supply/s3c_adc_battery.c gpio_to_irq(pdata->gpio_charge_finished)); pdata 433 drivers/power/supply/s3c_adc_battery.c enable_irq(gpio_to_irq(pdata->gpio_charge_finished)); pdata 822 drivers/power/supply/sbs-battery.c struct sbs_platform_data *pdata = client->dev.platform_data; pdata 862 drivers/power/supply/sbs-battery.c if (pdata) { pdata 863 drivers/power/supply/sbs-battery.c chip->poll_retry_count = pdata->poll_retry_count; pdata 864 drivers/power/supply/sbs-battery.c chip->i2c_retry_count = pdata->i2c_retry_count; pdata 145 drivers/power/supply/smb347-charger.c const struct smb347_charger_platform_data *pdata; pdata 244 drivers/power/supply/smb347-charger.c if (smb->pdata->use_mains) pdata 246 drivers/power/supply/smb347-charger.c if (smb->pdata->use_usb) pdata 304 drivers/power/supply/smb347-charger.c if (smb->pdata->enable_control != SMB347_CHG_ENABLE_SW) { pdata 356 drivers/power/supply/smb347-charger.c if (smb->pdata->max_charge_current) { pdata 358 drivers/power/supply/smb347-charger.c smb->pdata->max_charge_current); pdata 369 drivers/power/supply/smb347-charger.c if (smb->pdata->pre_charge_current) { pdata 371 drivers/power/supply/smb347-charger.c smb->pdata->pre_charge_current); pdata 382 drivers/power/supply/smb347-charger.c if (smb->pdata->termination_current) { pdata 384 drivers/power/supply/smb347-charger.c smb->pdata->termination_current); pdata 401 drivers/power/supply/smb347-charger.c if (smb->pdata->mains_current_limit) { pdata 403 drivers/power/supply/smb347-charger.c smb->pdata->mains_current_limit); pdata 414 drivers/power/supply/smb347-charger.c if (smb->pdata->usb_hc_current_limit) { pdata 416 drivers/power/supply/smb347-charger.c smb->pdata->usb_hc_current_limit); pdata 433 drivers/power/supply/smb347-charger.c if (smb->pdata->pre_to_fast_voltage) { pdata 434 drivers/power/supply/smb347-charger.c ret = smb->pdata->pre_to_fast_voltage; pdata 447 drivers/power/supply/smb347-charger.c if (smb->pdata->max_charge_voltage) { pdata 448 drivers/power/supply/smb347-charger.c ret = smb->pdata->max_charge_voltage; pdata 469 drivers/power/supply/smb347-charger.c if (smb->pdata->chip_temp_threshold) { pdata 470 drivers/power/supply/smb347-charger.c val = smb->pdata->chip_temp_threshold; pdata 483 drivers/power/supply/smb347-charger.c if (smb->pdata->soft_cold_temp_limit != SMB347_TEMP_USE_DEFAULT) { pdata 484 drivers/power/supply/smb347-charger.c val = smb->pdata->soft_cold_temp_limit; pdata 500 drivers/power/supply/smb347-charger.c if (smb->pdata->soft_hot_temp_limit != SMB347_TEMP_USE_DEFAULT) { pdata 501 drivers/power/supply/smb347-charger.c val = smb->pdata->soft_hot_temp_limit; pdata 515 drivers/power/supply/smb347-charger.c if (smb->pdata->hard_cold_temp_limit != SMB347_TEMP_USE_DEFAULT) { pdata 516 drivers/power/supply/smb347-charger.c val = smb->pdata->hard_cold_temp_limit; pdata 532 drivers/power/supply/smb347-charger.c if (smb->pdata->hard_hot_temp_limit != SMB347_TEMP_USE_DEFAULT) { pdata 533 drivers/power/supply/smb347-charger.c val = smb->pdata->hard_hot_temp_limit; pdata 564 drivers/power/supply/smb347-charger.c if (smb->pdata->suspend_on_hard_temp_limit) { pdata 571 drivers/power/supply/smb347-charger.c if (smb->pdata->soft_temp_limit_compensation != pdata 573 drivers/power/supply/smb347-charger.c val = smb->pdata->soft_temp_limit_compensation & 0x3; pdata 588 drivers/power/supply/smb347-charger.c if (smb->pdata->charge_current_compensation) { pdata 590 drivers/power/supply/smb347-charger.c smb->pdata->charge_current_compensation); pdata 649 drivers/power/supply/smb347-charger.c if (!smb->pdata->use_usb) { pdata 662 drivers/power/supply/smb347-charger.c smb->pdata->use_usb_otg ? CFG_OTHER_RID_ENABLED_AUTO_OTG : 0); pdata 671 drivers/power/supply/smb347-charger.c switch (smb->pdata->enable_control) { pdata 777 drivers/power/supply/smb347-charger.c if (smb->pdata->use_mains) pdata 779 drivers/power/supply/smb347-charger.c if (smb->pdata->use_usb) pdata 834 drivers/power/supply/smb347-charger.c const struct smb347_charger_platform_data *pdata = smb->pdata; pdata 835 drivers/power/supply/smb347-charger.c int ret, irq = gpio_to_irq(pdata->irq_gpio); pdata 837 drivers/power/supply/smb347-charger.c ret = gpio_request_one(pdata->irq_gpio, GPIOF_IN, client->name); pdata 870 drivers/power/supply/smb347-charger.c gpio_free(pdata->irq_gpio); pdata 1063 drivers/power/supply/smb347-charger.c const struct smb347_charger_platform_data *pdata = smb->pdata; pdata 1100 drivers/power/supply/smb347-charger.c val->intval = pdata->battery_info.technology; pdata 1104 drivers/power/supply/smb347-charger.c val->intval = pdata->battery_info.voltage_min_design; pdata 1108 drivers/power/supply/smb347-charger.c val->intval = pdata->battery_info.voltage_max_design; pdata 1112 drivers/power/supply/smb347-charger.c val->intval = pdata->battery_info.charge_full_design; pdata 1116 drivers/power/supply/smb347-charger.c val->strval = pdata->battery_info.name; pdata 1214 drivers/power/supply/smb347-charger.c const struct smb347_charger_platform_data *pdata; pdata 1220 drivers/power/supply/smb347-charger.c pdata = dev->platform_data; pdata 1221 drivers/power/supply/smb347-charger.c if (!pdata) pdata 1224 drivers/power/supply/smb347-charger.c if (!pdata->use_mains && !pdata->use_usb) pdata 1235 drivers/power/supply/smb347-charger.c smb->pdata = pdata; pdata 1248 drivers/power/supply/smb347-charger.c if (smb->pdata->use_mains) { pdata 1255 drivers/power/supply/smb347-charger.c if (smb->pdata->use_usb) { pdata 1259 drivers/power/supply/smb347-charger.c if (smb->pdata->use_mains) pdata 1269 drivers/power/supply/smb347-charger.c if (smb->pdata->use_usb) pdata 1271 drivers/power/supply/smb347-charger.c if (smb->pdata->use_mains) pdata 1280 drivers/power/supply/smb347-charger.c if (pdata->irq_gpio >= 0) { pdata 1300 drivers/power/supply/smb347-charger.c gpio_free(smb->pdata->irq_gpio); pdata 1304 drivers/power/supply/smb347-charger.c if (smb->pdata->use_usb) pdata 1306 drivers/power/supply/smb347-charger.c if (smb->pdata->use_mains) pdata 37 drivers/power/supply/tps65090-charger.c struct tps65090_platform_data *pdata; pdata 95 drivers/power/supply/tps65090-charger.c if (charger->pdata->enable_low_current_chrg) { pdata 190 drivers/power/supply/tps65090-charger.c struct tps65090_platform_data *pdata; pdata 194 drivers/power/supply/tps65090-charger.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 195 drivers/power/supply/tps65090-charger.c if (!pdata) { pdata 201 drivers/power/supply/tps65090-charger.c pdata->enable_low_current_chrg = prop; pdata 203 drivers/power/supply/tps65090-charger.c pdata->irq_base = -1; pdata 205 drivers/power/supply/tps65090-charger.c return pdata; pdata 232 drivers/power/supply/tps65090-charger.c struct tps65090_platform_data *pdata; pdata 238 drivers/power/supply/tps65090-charger.c pdata = dev_get_platdata(pdev->dev.parent); pdata 240 drivers/power/supply/tps65090-charger.c if (IS_ENABLED(CONFIG_OF) && !pdata && pdev->dev.of_node) pdata 241 drivers/power/supply/tps65090-charger.c pdata = tps65090_parse_dt_charger_data(pdev); pdata 243 drivers/power/supply/tps65090-charger.c if (!pdata) { pdata 258 drivers/power/supply/tps65090-charger.c cdata->pdata = pdata; pdata 260 drivers/power/supply/tps65090-charger.c psy_cfg.supplied_to = pdata->supplied_to; pdata 261 drivers/power/supply/tps65090-charger.c psy_cfg.num_supplicants = pdata->num_supplicants; pdata 933 drivers/power/supply/twl4030_charger.c struct twl4030_bci_platform_data *pdata; pdata 938 drivers/power/supply/twl4030_charger.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 939 drivers/power/supply/twl4030_charger.c if (!pdata) pdata 940 drivers/power/supply/twl4030_charger.c return pdata; pdata 943 drivers/power/supply/twl4030_charger.c pdata->bb_uvolt = num; pdata 945 drivers/power/supply/twl4030_charger.c pdata->bb_uamp = num; pdata 946 drivers/power/supply/twl4030_charger.c return pdata; pdata 979 drivers/power/supply/twl4030_charger.c const struct twl4030_bci_platform_data *pdata = pdev->dev.platform_data; pdata 987 drivers/power/supply/twl4030_charger.c if (!pdata) pdata 988 drivers/power/supply/twl4030_charger.c pdata = twl4030_bci_parse_dt(&pdev->dev); pdata 1103 drivers/power/supply/twl4030_charger.c if (pdata) pdata 1104 drivers/power/supply/twl4030_charger.c twl4030_charger_enable_backup(pdata->bb_uvolt, pdata 1105 drivers/power/supply/twl4030_charger.c pdata->bb_uamp); pdata 26 drivers/power/supply/twl4030_madc_battery.c struct twl4030_madc_bat_platform_data *pdata; pdata 83 drivers/power/supply/twl4030_madc_battery.c calibration = bat->pdata->charging; pdata 85 drivers/power/supply/twl4030_madc_battery.c calibration = bat->pdata->discharging; pdata 141 drivers/power/supply/twl4030_madc_battery.c val->intval = (percent * bat->pdata->capacity) / 100; pdata 149 drivers/power/supply/twl4030_madc_battery.c val->intval = bat->pdata->capacity; pdata 158 drivers/power/supply/twl4030_madc_battery.c int chg = (percent * (bat->pdata->capacity/1000))/100; pdata 195 drivers/power/supply/twl4030_madc_battery.c struct twl4030_madc_bat_platform_data *pdata = pdev->dev.platform_data; pdata 223 drivers/power/supply/twl4030_madc_battery.c sort(pdata->charging, pdata->charging_size, pdata 226 drivers/power/supply/twl4030_madc_battery.c sort(pdata->discharging, pdata->discharging_size, pdata 230 drivers/power/supply/twl4030_madc_battery.c twl4030_madc_bat->pdata = pdata; pdata 46 drivers/power/supply/wm831x_backup.c struct wm831x_backup_pdata *pdata; pdata 55 drivers/power/supply/wm831x_backup.c pdata = wm831x_pdata->backup; pdata 59 drivers/power/supply/wm831x_backup.c if (pdata->charger_enable) pdata 61 drivers/power/supply/wm831x_backup.c if (pdata->no_constant_voltage) pdata 64 drivers/power/supply/wm831x_backup.c switch (pdata->vlim) { pdata 72 drivers/power/supply/wm831x_backup.c pdata->vlim); pdata 75 drivers/power/supply/wm831x_backup.c switch (pdata->ilim) { pdata 89 drivers/power/supply/wm831x_backup.c pdata->ilim); pdata 259 drivers/power/supply/wm831x_power.c struct wm831x_battery_pdata *pdata; pdata 268 drivers/power/supply/wm831x_power.c pdata = wm831x_pdata->battery; pdata 273 drivers/power/supply/wm831x_power.c if (!pdata->enable) { pdata 279 drivers/power/supply/wm831x_power.c if (pdata->off_mask) pdata 281 drivers/power/supply/wm831x_power.c if (pdata->fast_enable) pdata 286 drivers/power/supply/wm831x_power.c pdata->trickle_ilim, ®2, pdata 290 drivers/power/supply/wm831x_power.c pdata->vsel, ®2, pdata 294 drivers/power/supply/wm831x_power.c pdata->fast_ilim, ®2, pdata 298 drivers/power/supply/wm831x_power.c pdata->eoc_iterm, ®1, pdata 302 drivers/power/supply/wm831x_power.c pdata->timeout, ®2, pdata 29 drivers/power/supply/wm97xx_battery.c struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); pdata 32 drivers/power/supply/wm97xx_battery.c pdata->batt_aux) * pdata->batt_mult / pdata 33 drivers/power/supply/wm97xx_battery.c pdata->batt_div; pdata 38 drivers/power/supply/wm97xx_battery.c struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); pdata 41 drivers/power/supply/wm97xx_battery.c pdata->temp_aux) * pdata->temp_mult / pdata 42 drivers/power/supply/wm97xx_battery.c pdata->temp_div; pdata 49 drivers/power/supply/wm97xx_battery.c struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); pdata 56 drivers/power/supply/wm97xx_battery.c val->intval = pdata->batt_tech; pdata 59 drivers/power/supply/wm97xx_battery.c if (pdata->batt_aux >= 0) pdata 65 drivers/power/supply/wm97xx_battery.c if (pdata->temp_aux >= 0) pdata 71 drivers/power/supply/wm97xx_battery.c if (pdata->max_voltage >= 0) pdata 72 drivers/power/supply/wm97xx_battery.c val->intval = pdata->max_voltage; pdata 77 drivers/power/supply/wm97xx_battery.c if (pdata->min_voltage >= 0) pdata 78 drivers/power/supply/wm97xx_battery.c val->intval = pdata->min_voltage; pdata 99 drivers/power/supply/wm97xx_battery.c struct wm97xx_batt_pdata *pdata = power_supply_get_drvdata(bat_ps); pdata 103 drivers/power/supply/wm97xx_battery.c bat_status = (pdata->charge_gpio >= 0) ? pdata 104 drivers/power/supply/wm97xx_battery.c (gpio_get_value(pdata->charge_gpio) ? pdata 161 drivers/power/supply/wm97xx_battery.c struct wm97xx_batt_pdata *pdata = dev->dev.platform_data; pdata 164 drivers/power/supply/wm97xx_battery.c if (!pdata) { pdata 169 drivers/power/supply/wm97xx_battery.c cfg.drv_data = pdata; pdata 174 drivers/power/supply/wm97xx_battery.c if (gpio_is_valid(pdata->charge_gpio)) { pdata 175 drivers/power/supply/wm97xx_battery.c ret = gpio_request(pdata->charge_gpio, "BATT CHRG"); pdata 178 drivers/power/supply/wm97xx_battery.c ret = gpio_direction_input(pdata->charge_gpio); pdata 181 drivers/power/supply/wm97xx_battery.c ret = request_irq(gpio_to_irq(pdata->charge_gpio), pdata 189 drivers/power/supply/wm97xx_battery.c if (pdata->batt_tech >= 0) pdata 191 drivers/power/supply/wm97xx_battery.c if (pdata->temp_aux >= 0) pdata 193 drivers/power/supply/wm97xx_battery.c if (pdata->batt_aux >= 0) pdata 195 drivers/power/supply/wm97xx_battery.c if (pdata->max_voltage >= 0) pdata 197 drivers/power/supply/wm97xx_battery.c if (pdata->min_voltage >= 0) pdata 207 drivers/power/supply/wm97xx_battery.c if (pdata->charge_gpio >= 0) pdata 209 drivers/power/supply/wm97xx_battery.c if (pdata->batt_tech >= 0) pdata 211 drivers/power/supply/wm97xx_battery.c if (pdata->temp_aux >= 0) pdata 213 drivers/power/supply/wm97xx_battery.c if (pdata->batt_aux >= 0) pdata 215 drivers/power/supply/wm97xx_battery.c if (pdata->max_voltage >= 0) pdata 217 drivers/power/supply/wm97xx_battery.c if (pdata->min_voltage >= 0) pdata 222 drivers/power/supply/wm97xx_battery.c if (!pdata->batt_name) { pdata 228 drivers/power/supply/wm97xx_battery.c bat_psy_desc.name = pdata->batt_name; pdata 245 drivers/power/supply/wm97xx_battery.c if (gpio_is_valid(pdata->charge_gpio)) pdata 246 drivers/power/supply/wm97xx_battery.c free_irq(gpio_to_irq(pdata->charge_gpio), dev); pdata 248 drivers/power/supply/wm97xx_battery.c if (gpio_is_valid(pdata->charge_gpio)) pdata 249 drivers/power/supply/wm97xx_battery.c gpio_free(pdata->charge_gpio); pdata 256 drivers/power/supply/wm97xx_battery.c struct wm97xx_batt_pdata *pdata = dev->dev.platform_data; pdata 258 drivers/power/supply/wm97xx_battery.c if (pdata && gpio_is_valid(pdata->charge_gpio)) { pdata 259 drivers/power/supply/wm97xx_battery.c free_irq(gpio_to_irq(pdata->charge_gpio), dev); pdata 260 drivers/power/supply/wm97xx_battery.c gpio_free(pdata->charge_gpio); pdata 170 drivers/pps/clients/pps-gpio.c const struct pps_gpio_platform_data *pdata = pdev->dev.platform_data; pdata 179 drivers/pps/clients/pps-gpio.c if (pdata) { pdata 180 drivers/pps/clients/pps-gpio.c data->gpio_pin = pdata->gpio_pin; pdata 181 drivers/pps/clients/pps-gpio.c data->echo_pin = pdata->echo_pin; pdata 183 drivers/pps/clients/pps-gpio.c data->assert_falling_edge = pdata->assert_falling_edge; pdata 184 drivers/pps/clients/pps-gpio.c data->capture_clear = pdata->capture_clear; pdata 185 drivers/pps/clients/pps-gpio.c data->echo_active_ms = pdata->echo_active_ms; pdata 25 drivers/pwm/pwm-lp3943.c struct lp3943_platform_data *pdata; pdata 36 drivers/pwm/pwm-lp3943.c struct lp3943_platform_data *pdata = lp3943_pwm->pdata; pdata 45 drivers/pwm/pwm-lp3943.c pwm_map->output = pdata->pwms[hwpwm]->output; pdata 46 drivers/pwm/pwm-lp3943.c pwm_map->num_outputs = pdata->pwms[hwpwm]->num_outputs; pdata 199 drivers/pwm/pwm-lp3943.c struct lp3943_platform_data *pdata; pdata 208 drivers/pwm/pwm-lp3943.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 209 drivers/pwm/pwm-lp3943.c if (!pdata) pdata 241 drivers/pwm/pwm-lp3943.c pdata->pwms[i] = pwm_map; pdata 249 drivers/pwm/pwm-lp3943.c lp3943_pwm->pdata = pdata; pdata 263 drivers/pwm/pwm-lp3943.c lp3943_pwm->pdata = lp3943->pdata; pdata 264 drivers/pwm/pwm-lp3943.c if (!lp3943_pwm->pdata) { pdata 38 drivers/pwm/pwm-omap-dmtimer.c const struct omap_dm_timer_ops *pdata; pdata 63 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->enable(omap->dm_timer); pdata 64 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->write_counter(omap->dm_timer, DM_TIMER_LOAD_MIN); pdata 65 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->disable(omap->dm_timer); pdata 67 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->start(omap->dm_timer); pdata 88 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->stop(omap->dm_timer); pdata 114 drivers/pwm/pwm-omap-dmtimer.c fclk = omap->pdata->get_fclk(omap->dm_timer); pdata 184 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->stop(omap->dm_timer); pdata 186 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->set_load(omap->dm_timer, true, load_value); pdata 187 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->set_match(omap->dm_timer, true, match_value); pdata 192 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->set_pwm(omap->dm_timer, pdata 222 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->set_pwm(omap->dm_timer, pdata 246 drivers/pwm/pwm-omap-dmtimer.c const struct omap_dm_timer_ops *pdata; pdata 270 drivers/pwm/pwm-omap-dmtimer.c pdata = timer_pdata->timer_ops; pdata 272 drivers/pwm/pwm-omap-dmtimer.c if (!pdata || !pdata->request_by_node || pdata 273 drivers/pwm/pwm-omap-dmtimer.c !pdata->free || pdata 274 drivers/pwm/pwm-omap-dmtimer.c !pdata->enable || pdata 275 drivers/pwm/pwm-omap-dmtimer.c !pdata->disable || pdata 276 drivers/pwm/pwm-omap-dmtimer.c !pdata->get_fclk || pdata 277 drivers/pwm/pwm-omap-dmtimer.c !pdata->start || pdata 278 drivers/pwm/pwm-omap-dmtimer.c !pdata->stop || pdata 279 drivers/pwm/pwm-omap-dmtimer.c !pdata->set_load || pdata 280 drivers/pwm/pwm-omap-dmtimer.c !pdata->set_match || pdata 281 drivers/pwm/pwm-omap-dmtimer.c !pdata->set_pwm || pdata 282 drivers/pwm/pwm-omap-dmtimer.c !pdata->set_prescaler || pdata 283 drivers/pwm/pwm-omap-dmtimer.c !pdata->write_counter) { pdata 295 drivers/pwm/pwm-omap-dmtimer.c dm_timer = pdata->request_by_node(timer); pdata 307 drivers/pwm/pwm-omap-dmtimer.c omap->pdata = pdata; pdata 316 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->stop(omap->dm_timer); pdata 319 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->set_prescaler(omap->dm_timer, v); pdata 323 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->set_source(omap->dm_timer, v); pdata 354 drivers/pwm/pwm-omap-dmtimer.c pdata->free(dm_timer); pdata 378 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->stop(omap->dm_timer); pdata 380 drivers/pwm/pwm-omap-dmtimer.c omap->pdata->free(omap->dm_timer); pdata 229 drivers/regulator/88pm800-regulator.c struct pm80x_platform_data *pdata = dev_get_platdata(pdev->dev.parent); pdata 234 drivers/regulator/88pm800-regulator.c if (pdata && pdata->num_regulators) { pdata 238 drivers/regulator/88pm800-regulator.c for (i = 0; i < ARRAY_SIZE(pdata->regulators); i++) { pdata 239 drivers/regulator/88pm800-regulator.c if (pdata->regulators[i]) pdata 242 drivers/regulator/88pm800-regulator.c if (count != pdata->num_regulators) pdata 251 drivers/regulator/88pm800-regulator.c if (pdata && pdata->num_regulators) { pdata 252 drivers/regulator/88pm800-regulator.c init_data = pdata->regulators[i]; pdata 319 drivers/regulator/88pm8607.c struct regulator_init_data *pdata = dev_get_platdata(&pdev->dev); pdata 352 drivers/regulator/88pm8607.c if (pdata) pdata 353 drivers/regulator/88pm8607.c config.init_data = pdata; pdata 791 drivers/regulator/ab8500-ext.c struct ab8500_regulator_platform_data *pdata = &ab8500_regulator_plat_data; pdata 802 drivers/regulator/ab8500-ext.c if (pdata->num_ext_regulator != ARRAY_SIZE(ab8500_ext_regulator_info)) { pdata 826 drivers/regulator/ab8500-ext.c pdata->ext_regulator[i].driver_data; pdata 830 drivers/regulator/ab8500-ext.c config.init_data = &pdata->ext_regulator[i]; pdata 563 drivers/regulator/act8865-regulator.c int id, struct act8865_platform_data *pdata) pdata 567 drivers/regulator/act8865-regulator.c for (i = 0; i < pdata->num_regulators; i++) { pdata 568 drivers/regulator/act8865-regulator.c if (pdata->regulators[i].id == id) pdata 569 drivers/regulator/act8865-regulator.c return &pdata->regulators[i]; pdata 658 drivers/regulator/act8865-regulator.c struct act8865_platform_data *pdata = NULL; pdata 681 drivers/regulator/act8865-regulator.c pdata = dev_get_platdata(dev); pdata 748 drivers/regulator/act8865-regulator.c if (pdata) { pdata 751 drivers/regulator/act8865-regulator.c rdata = act8865_get_regulator_data(desc->id, pdata); pdata 190 drivers/regulator/arizona-ldo1.c static int arizona_ldo1_of_get_pdata(struct arizona_ldo1_pdata *pdata, pdata 215 drivers/regulator/arizona-ldo1.c pdata->init_data = init_data; pdata 229 drivers/regulator/arizona-ldo1.c struct arizona_ldo1_pdata *pdata, pdata 248 drivers/regulator/arizona-ldo1.c ret = arizona_ldo1_of_get_pdata(pdata, pdata 267 drivers/regulator/arizona-ldo1.c if (pdata->init_data) pdata 268 drivers/regulator/arizona-ldo1.c config.init_data = pdata->init_data; pdata 334 drivers/regulator/arizona-ldo1.c &arizona->pdata.ldo1, pdata 368 drivers/regulator/arizona-ldo1.c &madera->pdata.ldo1, pdata 228 drivers/regulator/arizona-micsupp.c static int arizona_micsupp_of_get_pdata(struct arizona_micsupp_pdata *pdata, pdata 247 drivers/regulator/arizona-micsupp.c pdata->init_data = init_data; pdata 257 drivers/regulator/arizona-micsupp.c struct arizona_micsupp_pdata *pdata) pdata 275 drivers/regulator/arizona-micsupp.c ret = arizona_micsupp_of_get_pdata(pdata, &config, pdata 282 drivers/regulator/arizona-micsupp.c if (pdata->init_data) pdata 283 drivers/regulator/arizona-micsupp.c config.init_data = pdata->init_data; pdata 341 drivers/regulator/arizona-micsupp.c &arizona->pdata.micvdd); pdata 359 drivers/regulator/arizona-micsupp.c &madera->pdata.micvdd); pdata 175 drivers/regulator/as3711-regulator.c struct as3711_regulator_pdata *pdata = dev_get_platdata(dev); pdata 196 drivers/regulator/as3711-regulator.c pdata->init_data[i] = match->init_data; pdata 205 drivers/regulator/as3711-regulator.c struct as3711_regulator_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 213 drivers/regulator/as3711-regulator.c if (!pdata) { pdata 227 drivers/regulator/as3711-regulator.c config.init_data = pdata->init_data[id]; pdata 398 drivers/regulator/da9052-regulator.c struct da9052_pdata *pdata; pdata 406 drivers/regulator/da9052-regulator.c pdata = dev_get_platdata(da9052->dev); pdata 419 drivers/regulator/da9052-regulator.c if (pdata) pdata 420 drivers/regulator/da9052-regulator.c config.init_data = pdata->regulators[cell->id]; pdata 418 drivers/regulator/da9055-regulator.c struct da9055_pdata *pdata, int id) pdata 423 drivers/regulator/da9055-regulator.c if (!pdata) pdata 426 drivers/regulator/da9055-regulator.c if (pdata->gpio_ren && pdata->gpio_ren[id]) { pdata 428 drivers/regulator/da9055-regulator.c int gpio_mux = pdata->gpio_ren[id]; pdata 430 drivers/regulator/da9055-regulator.c config->ena_gpiod = pdata->ena_gpiods[id]; pdata 448 drivers/regulator/da9055-regulator.c pdata->reg_ren[id] pdata 454 drivers/regulator/da9055-regulator.c if (pdata->gpio_rsel && pdata->gpio_rsel[id]) { pdata 456 drivers/regulator/da9055-regulator.c int gpio_mux = pdata->gpio_rsel[id]; pdata 458 drivers/regulator/da9055-regulator.c regulator->reg_rselect = pdata->reg_rsel[id]; pdata 476 drivers/regulator/da9055-regulator.c pdata->reg_rsel[id] pdata 515 drivers/regulator/da9055-regulator.c struct da9055_pdata *pdata = dev_get_platdata(da9055->dev); pdata 534 drivers/regulator/da9055-regulator.c if (pdata) pdata 535 drivers/regulator/da9055-regulator.c config.init_data = pdata->regulators[pdev->id]; pdata 537 drivers/regulator/da9055-regulator.c ret = da9055_gpio_init(regulator, &config, pdata, pdev->id); pdata 665 drivers/regulator/da9063-regulator.c struct da9063_regulators_pdata *pdata; pdata 688 drivers/regulator/da9063-regulator.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 689 drivers/regulator/da9063-regulator.c if (!pdata) pdata 692 drivers/regulator/da9063-regulator.c pdata->regulator_data = devm_kcalloc(&pdev->dev, pdata 693 drivers/regulator/da9063-regulator.c num, sizeof(*pdata->regulator_data), pdata 695 drivers/regulator/da9063-regulator.c if (!pdata->regulator_data) pdata 697 drivers/regulator/da9063-regulator.c pdata->n_regulators = num; pdata 704 drivers/regulator/da9063-regulator.c rdata = &pdata->regulator_data[n]; pdata 712 drivers/regulator/da9063-regulator.c return pdata; pdata 139 drivers/regulator/da9210-regulator.c struct da9210_pdata *pdata = dev_get_platdata(dev); pdata 145 drivers/regulator/da9210-regulator.c if (i2c->dev.of_node && !pdata) { pdata 167 drivers/regulator/da9210-regulator.c config.init_data = pdata ? &pdata->da9210_constraints : pdata 38 drivers/regulator/da9211-regulator.c struct da9211_pdata *pdata; pdata 255 drivers/regulator/da9211-regulator.c struct da9211_pdata *pdata; pdata 273 drivers/regulator/da9211-regulator.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 274 drivers/regulator/da9211-regulator.c if (!pdata) pdata 277 drivers/regulator/da9211-regulator.c pdata->num_buck = num; pdata 284 drivers/regulator/da9211-regulator.c pdata->init_data[n] = da9211_matches[i].init_data; pdata 285 drivers/regulator/da9211-regulator.c pdata->reg_node[n] = da9211_matches[i].of_node; pdata 286 drivers/regulator/da9211-regulator.c pdata->gpiod_ren[n] = devm_gpiod_get_from_of_node(dev, pdata 292 drivers/regulator/da9211-regulator.c if (IS_ERR(pdata->gpiod_ren[n])) pdata 293 drivers/regulator/da9211-regulator.c pdata->gpiod_ren[n] = NULL; pdata 297 drivers/regulator/da9211-regulator.c return pdata; pdata 367 drivers/regulator/da9211-regulator.c if (chip->pdata->num_buck == 1 && data == 0x00) pdata 369 drivers/regulator/da9211-regulator.c else if (chip->pdata->num_buck == 2 && data != 0x00) pdata 377 drivers/regulator/da9211-regulator.c config.init_data = chip->pdata->init_data[i]; pdata 381 drivers/regulator/da9211-regulator.c config.of_node = chip->pdata->reg_node[i]; pdata 383 drivers/regulator/da9211-regulator.c if (chip->pdata->gpiod_ren[i]) pdata 384 drivers/regulator/da9211-regulator.c config.ena_gpiod = chip->pdata->gpiod_ren[i]; pdata 441 drivers/regulator/da9211-regulator.c chip->pdata = i2c->dev.platform_data; pdata 464 drivers/regulator/da9211-regulator.c if (!chip->pdata) pdata 465 drivers/regulator/da9211-regulator.c chip->pdata = da9211_parse_regulators_dt(chip->dev); pdata 467 drivers/regulator/da9211-regulator.c if (IS_ERR(chip->pdata)) { pdata 469 drivers/regulator/da9211-regulator.c return PTR_ERR(chip->pdata); pdata 325 drivers/regulator/fan53555.c struct fan53555_platform_data *pdata) pdata 330 drivers/regulator/fan53555.c switch (pdata->sleep_vsel_id) { pdata 349 drivers/regulator/fan53555.c switch (pdata->sleep_vsel_id) { pdata 419 drivers/regulator/fan53555.c struct fan53555_platform_data *pdata; pdata 423 drivers/regulator/fan53555.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 424 drivers/regulator/fan53555.c if (!pdata) pdata 427 drivers/regulator/fan53555.c pdata->regulator = of_get_regulator_init_data(dev, np, desc); pdata 432 drivers/regulator/fan53555.c pdata->sleep_vsel_id = tmp; pdata 434 drivers/regulator/fan53555.c return pdata; pdata 460 drivers/regulator/fan53555.c struct fan53555_platform_data *pdata; pdata 471 drivers/regulator/fan53555.c pdata = dev_get_platdata(&client->dev); pdata 472 drivers/regulator/fan53555.c if (!pdata) pdata 473 drivers/regulator/fan53555.c pdata = fan53555_parse_dt(&client->dev, np, &di->desc); pdata 475 drivers/regulator/fan53555.c if (!pdata || !pdata->regulator) { pdata 480 drivers/regulator/fan53555.c di->regulator = pdata->regulator; pdata 487 drivers/regulator/fan53555.c if (pdata->slew_rate >= ARRAY_SIZE(slew_rates)) { pdata 493 drivers/regulator/fan53555.c = slew_rates[pdata->slew_rate]; pdata 523 drivers/regulator/fan53555.c ret = fan53555_device_setup(di, pdata); pdata 369 drivers/regulator/hi6421-regulator.c struct hi6421_regulator_pdata *pdata; pdata 371 drivers/regulator/hi6421-regulator.c pdata = dev_get_drvdata(rdev->dev.parent); pdata 377 drivers/regulator/hi6421-regulator.c mutex_lock(&pdata->lock); pdata 382 drivers/regulator/hi6421-regulator.c mutex_unlock(&pdata->lock); pdata 536 drivers/regulator/hi6421-regulator.c struct hi6421_regulator_pdata *pdata; pdata 542 drivers/regulator/hi6421-regulator.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 543 drivers/regulator/hi6421-regulator.c if (!pdata) pdata 545 drivers/regulator/hi6421-regulator.c mutex_init(&pdata->lock); pdata 546 drivers/regulator/hi6421-regulator.c platform_set_drvdata(pdev, pdata); pdata 144 drivers/regulator/isl9305.c struct isl9305_pdata *pdata = i2c->dev.platform_data; pdata 159 drivers/regulator/isl9305.c if (pdata) pdata 160 drivers/regulator/isl9305.c config.init_data = pdata->init_data[i]; pdata 376 drivers/regulator/lp3971.c struct lp3971_platform_data *pdata) pdata 381 drivers/regulator/lp3971.c for (i = 0; i < pdata->num_regulators; i++) { pdata 383 drivers/regulator/lp3971.c struct lp3971_regulator_subdev *reg = &pdata->regulators[i]; pdata 407 drivers/regulator/lp3971.c struct lp3971_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 411 drivers/regulator/lp3971.c if (!pdata) { pdata 434 drivers/regulator/lp3971.c ret = setup_regulators(lp3971, pdata); pdata 471 drivers/regulator/lp3972.c struct lp3972_platform_data *pdata) pdata 476 drivers/regulator/lp3972.c for (i = 0; i < pdata->num_regulators; i++) { pdata 477 drivers/regulator/lp3972.c struct lp3972_regulator_subdev *reg = &pdata->regulators[i]; pdata 502 drivers/regulator/lp3972.c struct lp3972_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 506 drivers/regulator/lp3972.c if (!pdata) { pdata 532 drivers/regulator/lp3972.c ret = setup_regulators(lp3972, pdata); pdata 105 drivers/regulator/lp872x.c struct lp872x_platform_data *pdata; pdata 322 drivers/regulator/lp872x.c struct lp872x_dvs *dvs = lp->pdata ? lp->pdata->dvs : NULL; pdata 679 drivers/regulator/lp872x.c struct lp872x_dvs *dvs = lp->pdata ? lp->pdata->dvs : NULL; pdata 711 drivers/regulator/lp872x.c if (!lp->pdata) pdata 714 drivers/regulator/lp872x.c gpio = lp->pdata->enable_gpio; pdata 736 drivers/regulator/lp872x.c struct lp872x_platform_data *pdata = lp->pdata; pdata 739 drivers/regulator/lp872x.c if (!pdata || !pdata->update_config) pdata 742 drivers/regulator/lp872x.c ret = lp872x_write_byte(lp, LP872X_GENERAL_CFG, pdata->general_config); pdata 753 drivers/regulator/lp872x.c struct lp872x_platform_data *pdata = lp->pdata; pdata 756 drivers/regulator/lp872x.c if (!pdata) pdata 760 drivers/regulator/lp872x.c if (pdata->regulator_data[i].id == id) pdata 761 drivers/regulator/lp872x.c return pdata->regulator_data[i].init_data; pdata 828 drivers/regulator/lp872x.c struct lp872x_platform_data *pdata; pdata 835 drivers/regulator/lp872x.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 836 drivers/regulator/lp872x.c if (!pdata) pdata 839 drivers/regulator/lp872x.c of_property_read_u8(np, "ti,general-config", &pdata->general_config); pdata 841 drivers/regulator/lp872x.c pdata->update_config = true; pdata 843 drivers/regulator/lp872x.c pdata->dvs = devm_kzalloc(dev, sizeof(struct lp872x_dvs), GFP_KERNEL); pdata 844 drivers/regulator/lp872x.c if (!pdata->dvs) pdata 847 drivers/regulator/lp872x.c pdata->dvs->gpio = of_get_named_gpio(np, "ti,dvs-gpio", 0); pdata 848 drivers/regulator/lp872x.c of_property_read_u8(np, "ti,dvs-vsel", (u8 *)&pdata->dvs->vsel); pdata 850 drivers/regulator/lp872x.c pdata->dvs->init_state = dvs_state ? DVS_HIGH : DVS_LOW; pdata 852 drivers/regulator/lp872x.c pdata->enable_gpio = of_get_named_gpio(np, "enable-gpios", 0); pdata 875 drivers/regulator/lp872x.c pdata->regulator_data[i].id = pdata 877 drivers/regulator/lp872x.c pdata->regulator_data[i].init_data = match[i].init_data; pdata 880 drivers/regulator/lp872x.c return pdata; pdata 893 drivers/regulator/lp872x.c struct lp872x_platform_data *pdata; pdata 901 drivers/regulator/lp872x.c pdata = lp872x_populate_pdata_from_dt(&cl->dev, pdata 903 drivers/regulator/lp872x.c if (IS_ERR(pdata)) pdata 904 drivers/regulator/lp872x.c return PTR_ERR(pdata); pdata 906 drivers/regulator/lp872x.c pdata = dev_get_platdata(&cl->dev); pdata 923 drivers/regulator/lp872x.c lp->pdata = pdata; pdata 43 drivers/regulator/lp8755.c struct lp8755_platform_data *pdata; pdata 278 drivers/regulator/lp8755.c struct lp8755_platform_data *pdata = pchip->pdata; pdata 289 drivers/regulator/lp8755.c pdata->buck_data[buck_num] = &lp8755_reg_default[buck_num]; pdata 326 drivers/regulator/lp8755.c struct lp8755_platform_data *pdata = pchip->pdata; pdata 335 drivers/regulator/lp8755.c rconfig.init_data = pdata->buck_data[buck_num]; pdata 450 drivers/regulator/lp8755.c struct lp8755_platform_data *pdata = dev_get_platdata(&client->dev); pdata 471 drivers/regulator/lp8755.c if (pdata != NULL) { pdata 472 drivers/regulator/lp8755.c pchip->pdata = pdata; pdata 473 drivers/regulator/lp8755.c pchip->mphase = pdata->mphase; pdata 475 drivers/regulator/lp8755.c pchip->pdata = devm_kzalloc(pchip->dev, pdata 478 drivers/regulator/lp8755.c if (!pchip->pdata) pdata 426 drivers/regulator/lp8788-buck.c struct lp8788_platform_data *pdata = buck->lp->pdata; pdata 433 drivers/regulator/lp8788-buck.c gpio = pdata->buck1_dvs->gpio; pdata 439 drivers/regulator/lp8788-buck.c buck->dvs = pdata->buck1_dvs; pdata 443 drivers/regulator/lp8788-buck.c gpio = pdata->buck2_dvs->gpio[i]; pdata 449 drivers/regulator/lp8788-buck.c buck->dvs = pdata->buck2_dvs; pdata 461 drivers/regulator/lp8788-buck.c struct lp8788_platform_data *pdata = buck->lp->pdata; pdata 471 drivers/regulator/lp8788-buck.c if (!pdata) pdata 474 drivers/regulator/lp8788-buck.c if ((id == BUCK1 && !pdata->buck1_dvs) || pdata 475 drivers/regulator/lp8788-buck.c (id == BUCK2 && !pdata->buck2_dvs)) pdata 512 drivers/regulator/lp8788-buck.c cfg.init_data = lp->pdata ? lp->pdata->buck_data[id] : NULL; pdata 545 drivers/regulator/lp8788-ldo.c cfg.init_data = lp->pdata ? lp->pdata->dldo_data[id] : NULL; pdata 592 drivers/regulator/lp8788-ldo.c cfg.init_data = lp->pdata ? lp->pdata->aldo_data[id] : NULL; pdata 186 drivers/regulator/max14577-regulator.c struct max14577_platform_data *pdata = dev_get_platdata(max14577->dev); pdata 213 drivers/regulator/max14577-regulator.c if (pdata && pdata->regulators) { pdata 214 drivers/regulator/max14577-regulator.c config.init_data = pdata->regulators[i].initdata; pdata 215 drivers/regulator/max14577-regulator.c config.of_node = pdata->regulators[i].of_node; pdata 150 drivers/regulator/max1586.c struct max1586_platform_data *pdata) pdata 158 drivers/regulator/max1586.c &pdata->v3_gain) < 0) { pdata 184 drivers/regulator/max1586.c pdata->subdevs = devm_kcalloc(dev, pdata 188 drivers/regulator/max1586.c if (!pdata->subdevs) pdata 191 drivers/regulator/max1586.c pdata->num_subdevs = matched; pdata 192 drivers/regulator/max1586.c sub = pdata->subdevs; pdata 213 drivers/regulator/max1586.c struct max1586_platform_data *pdata, pdata_of; pdata 219 drivers/regulator/max1586.c pdata = dev_get_platdata(&client->dev); pdata 220 drivers/regulator/max1586.c if (client->dev.of_node && !pdata) { pdata 230 drivers/regulator/max1586.c pdata = &pdata_of; pdata 240 drivers/regulator/max1586.c if (!pdata->v3_gain) pdata 243 drivers/regulator/max1586.c max1586->min_uV = MAX1586_V3_MIN_UV / 1000 * pdata->v3_gain / 1000; pdata 244 drivers/regulator/max1586.c max1586->max_uV = MAX1586_V3_MAX_UV / 1000 * pdata->v3_gain / 1000; pdata 250 drivers/regulator/max1586.c for (i = 0; i < pdata->num_subdevs && i <= MAX1586_V6; i++) { pdata 253 drivers/regulator/max1586.c id = pdata->subdevs[i].id; pdata 254 drivers/regulator/max1586.c if (!pdata->subdevs[i].platform_data) pdata 269 drivers/regulator/max1586.c config.init_data = pdata->subdevs[i].platform_data; pdata 151 drivers/regulator/max8649.c struct max8649_platform_data *pdata = dev_get_platdata(&client->dev); pdata 174 drivers/regulator/max8649.c info->mode = pdata->mode; pdata 204 drivers/regulator/max8649.c info->extclk = pdata->extclk; pdata 210 drivers/regulator/max8649.c info->extclk_freq = pdata->extclk_freq; pdata 215 drivers/regulator/max8649.c if (pdata->ramp_timing) { pdata 216 drivers/regulator/max8649.c info->ramp_timing = pdata->ramp_timing; pdata 221 drivers/regulator/max8649.c info->ramp_down = pdata->ramp_down; pdata 228 drivers/regulator/max8649.c config.init_data = pdata->regulator; pdata 320 drivers/regulator/max8660.c struct max8660_platform_data *pdata) pdata 341 drivers/regulator/max8660.c pdata->subdevs = devm_kcalloc(dev, pdata 345 drivers/regulator/max8660.c if (!pdata->subdevs) pdata 348 drivers/regulator/max8660.c pdata->num_subdevs = matched; pdata 349 drivers/regulator/max8660.c sub = pdata->subdevs; pdata 364 drivers/regulator/max8660.c struct max8660_platform_data *pdata) pdata 374 drivers/regulator/max8660.c struct max8660_platform_data pdata_of, *pdata = dev_get_platdata(dev); pdata 381 drivers/regulator/max8660.c if (dev->of_node && !pdata) { pdata 392 drivers/regulator/max8660.c pdata = &pdata_of; pdata 399 drivers/regulator/max8660.c if (pdata->num_subdevs > MAX8660_V_END) { pdata 410 drivers/regulator/max8660.c if (pdata->en34_is_high) { pdata 431 drivers/regulator/max8660.c for (i = 0; i < pdata->num_subdevs; i++) { pdata 433 drivers/regulator/max8660.c if (!pdata->subdevs[i].platform_data) pdata 436 drivers/regulator/max8660.c boot_on = pdata->subdevs[i].platform_data->constraints.boot_on; pdata 438 drivers/regulator/max8660.c switch (pdata->subdevs[i].id) { pdata 469 drivers/regulator/max8660.c pdata->subdevs[i].name); pdata 475 drivers/regulator/max8660.c for (i = 0; i < pdata->num_subdevs; i++) { pdata 478 drivers/regulator/max8660.c id = pdata->subdevs[i].id; pdata 481 drivers/regulator/max8660.c config.init_data = pdata->subdevs[i].platform_data; pdata 277 drivers/regulator/max8907-regulator.c struct max8907_platform_data *pdata = dev_get_platdata(max8907->dev); pdata 315 drivers/regulator/max8907-regulator.c if (pdata) pdata 316 drivers/regulator/max8907-regulator.c idata = pdata->init_data[i]; pdata 221 drivers/regulator/max8925-regulator.c struct regulator_init_data *pdata = dev_get_platdata(&pdev->dev); pdata 249 drivers/regulator/max8925-regulator.c if (pdata) pdata 250 drivers/regulator/max8925-regulator.c config.init_data = pdata; pdata 37 drivers/regulator/max8952.c struct max8952_platform_data *pdata; pdata 68 drivers/regulator/max8952.c return (max8952->pdata->dvs_mode[selector] * 10 + 770) * 1000; pdata 178 drivers/regulator/max8952.c struct max8952_platform_data *pdata = dev_get_platdata(&client->dev); pdata 188 drivers/regulator/max8952.c pdata = max8952_parse_dt(&client->dev); pdata 190 drivers/regulator/max8952.c if (!pdata) { pdata 204 drivers/regulator/max8952.c max8952->pdata = pdata; pdata 207 drivers/regulator/max8952.c config.init_data = pdata->reg_data; pdata 211 drivers/regulator/max8952.c if (pdata->reg_data->constraints.boot_on) pdata 235 drivers/regulator/max8952.c max8952->vid0 = pdata->default_mode & 0x1; pdata 236 drivers/regulator/max8952.c max8952->vid1 = (pdata->default_mode >> 1) & 0x1; pdata 284 drivers/regulator/max8952.c (pdata->dvs_mode[0] & 0x3F)); pdata 288 drivers/regulator/max8952.c (pdata->dvs_mode[1] & 0x3F)); pdata 292 drivers/regulator/max8952.c (pdata->dvs_mode[2] & 0x3F)); pdata 296 drivers/regulator/max8952.c (pdata->dvs_mode[3] & 0x3F)); pdata 300 drivers/regulator/max8952.c ((pdata->sync_freq & 0x3) << 6)); pdata 303 drivers/regulator/max8952.c ((pdata->ramp_speed & 0x7) << 5)); pdata 355 drivers/regulator/max8973-regulator.c struct max8973_regulator_platform_data *pdata) pdata 384 drivers/regulator/max8973-regulator.c if (pdata->control_flags & MAX8973_CONTROL_REMOTE_SENSE_ENABLE) pdata 387 drivers/regulator/max8973-regulator.c if (!(pdata->control_flags & MAX8973_CONTROL_FALLING_SLEW_RATE_ENABLE)) pdata 390 drivers/regulator/max8973-regulator.c if (pdata->control_flags & MAX8973_CONTROL_OUTPUT_ACTIVE_DISCH_ENABLE) pdata 393 drivers/regulator/max8973-regulator.c if (pdata->control_flags & MAX8973_CONTROL_BIAS_ENABLE) { pdata 400 drivers/regulator/max8973-regulator.c if (pdata->control_flags & MAX8973_CONTROL_FREQ_SHIFT_9PER_ENABLE) pdata 403 drivers/regulator/max8973-regulator.c if ((pdata->junction_temp_warning == MAX77621_TJINT_WARNING_TEMP_120) && pdata 407 drivers/regulator/max8973-regulator.c if (!(pdata->control_flags & MAX8973_CONTROL_PULL_DOWN_ENABLE)) pdata 411 drivers/regulator/max8973-regulator.c switch (pdata->control_flags & MAX8973_CONTROL_CLKADV_TRIP_MASK) { pdata 430 drivers/regulator/max8973-regulator.c switch (pdata->control_flags & MAX8973_CONTROL_INDUCTOR_VALUE_MASK) { pdata 557 drivers/regulator/max8973-regulator.c struct max8973_regulator_platform_data *pdata; pdata 564 drivers/regulator/max8973-regulator.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 565 drivers/regulator/max8973-regulator.c if (!pdata) pdata 568 drivers/regulator/max8973-regulator.c pdata->enable_ext_control = of_property_read_bool(np, pdata 570 drivers/regulator/max8973-regulator.c pdata->dvs_gpio = of_get_named_gpio(np, "maxim,dvs-gpio", 0); pdata 574 drivers/regulator/max8973-regulator.c pdata->dvs_def_state = pval; pdata 577 drivers/regulator/max8973-regulator.c pdata->control_flags |= MAX8973_CONTROL_REMOTE_SENSE_ENABLE; pdata 580 drivers/regulator/max8973-regulator.c pdata->control_flags |= pdata 584 drivers/regulator/max8973-regulator.c pdata->control_flags |= pdata 588 drivers/regulator/max8973-regulator.c pdata->control_flags |= MAX8973_CONTROL_FREQ_SHIFT_9PER_ENABLE; pdata 591 drivers/regulator/max8973-regulator.c pdata->control_flags |= MAX8973_CONTROL_BIAS_ENABLE; pdata 601 drivers/regulator/max8973-regulator.c pdata->control_flags |= pdata 604 drivers/regulator/max8973-regulator.c pdata->control_flags |= pdata 607 drivers/regulator/max8973-regulator.c pdata->control_flags |= MAX8973_CONTROL_CLKADV_TRIP_DISABLED; pdata 610 drivers/regulator/max8973-regulator.c pdata->junction_temp_warning = MAX77621_TJINT_WARNING_TEMP_140; pdata 613 drivers/regulator/max8973-regulator.c pdata->junction_temp_warning = MAX77621_TJINT_WARNING_TEMP_120; pdata 615 drivers/regulator/max8973-regulator.c return pdata; pdata 628 drivers/regulator/max8973-regulator.c struct max8973_regulator_platform_data *pdata; pdata 639 drivers/regulator/max8973-regulator.c pdata = dev_get_platdata(&client->dev); pdata 641 drivers/regulator/max8973-regulator.c if (!pdata && client->dev.of_node) { pdata 642 drivers/regulator/max8973-regulator.c pdata = max8973_parse_dt(&client->dev); pdata 646 drivers/regulator/max8973-regulator.c if (!pdata) { pdata 651 drivers/regulator/max8973-regulator.c if (pdata->dvs_gpio == -EPROBE_DEFER) pdata 698 drivers/regulator/max8973-regulator.c max->dvs_gpio = (pdata->dvs_gpio) ? pdata->dvs_gpio : -EINVAL; pdata 699 drivers/regulator/max8973-regulator.c max->enable_external_control = pdata->enable_ext_control; pdata 700 drivers/regulator/max8973-regulator.c max->curr_gpio_val = pdata->dvs_def_state; pdata 701 drivers/regulator/max8973-regulator.c max->curr_vout_reg = MAX8973_VOUT + pdata->dvs_def_state; pdata 702 drivers/regulator/max8973-regulator.c max->junction_temp_warning = pdata->junction_temp_warning; pdata 710 drivers/regulator/max8973-regulator.c gpio_flags = (pdata->dvs_def_state) ? pdata 741 drivers/regulator/max8973-regulator.c pdata->reg_init_data = of_get_regulator_init_data(&client->dev, pdata 744 drivers/regulator/max8973-regulator.c ridata = pdata->reg_init_data; pdata 747 drivers/regulator/max8973-regulator.c if (!pdata->enable_ext_control) { pdata 799 drivers/regulator/max8973-regulator.c ret = max8973_init_dcdc(max, pdata); pdata 806 drivers/regulator/max8973-regulator.c config.init_data = pdata->reg_init_data; pdata 877 drivers/regulator/max8997-regulator.c struct max8997_platform_data *pdata, pdata 889 drivers/regulator/max8997-regulator.c pdata->buck125_gpios[i] = gpio; pdata 895 drivers/regulator/max8997-regulator.c struct max8997_platform_data *pdata) pdata 915 drivers/regulator/max8997-regulator.c pdata->num_regulators = of_get_child_count(regulators_np); pdata 918 drivers/regulator/max8997-regulator.c pdata->num_regulators, sizeof(*rdata), pdata 925 drivers/regulator/max8997-regulator.c pdata->regulators = rdata; pdata 947 drivers/regulator/max8997-regulator.c pdata->buck1_gpiodvs = true; pdata 950 drivers/regulator/max8997-regulator.c pdata->buck2_gpiodvs = true; pdata 953 drivers/regulator/max8997-regulator.c pdata->buck5_gpiodvs = true; pdata 955 drivers/regulator/max8997-regulator.c if (pdata->buck1_gpiodvs || pdata->buck2_gpiodvs || pdata 956 drivers/regulator/max8997-regulator.c pdata->buck5_gpiodvs) { pdata 957 drivers/regulator/max8997-regulator.c ret = max8997_pmic_dt_parse_dvs_gpio(pdev, pdata, pmic_np); pdata 963 drivers/regulator/max8997-regulator.c &pdata->buck125_default_idx)) { pdata 964 drivers/regulator/max8997-regulator.c pdata->buck125_default_idx = 0; pdata 966 drivers/regulator/max8997-regulator.c if (pdata->buck125_default_idx >= 8) { pdata 967 drivers/regulator/max8997-regulator.c pdata->buck125_default_idx = 0; pdata 974 drivers/regulator/max8997-regulator.c pdata->ignore_gpiodvs_side_effect = true; pdata 981 drivers/regulator/max8997-regulator.c pdata->buck1_voltage, dvs_voltage_nr)) { pdata 988 drivers/regulator/max8997-regulator.c pdata->buck2_voltage, dvs_voltage_nr)) { pdata 995 drivers/regulator/max8997-regulator.c pdata->buck5_voltage, dvs_voltage_nr)) { pdata 1004 drivers/regulator/max8997-regulator.c struct max8997_platform_data *pdata) pdata 1013 drivers/regulator/max8997-regulator.c struct max8997_platform_data *pdata = iodev->pdata; pdata 1021 drivers/regulator/max8997-regulator.c if (!pdata) { pdata 1027 drivers/regulator/max8997-regulator.c ret = max8997_pmic_dt_parse_pdata(pdev, pdata); pdata 1039 drivers/regulator/max8997-regulator.c max8997->num_regulators = pdata->num_regulators; pdata 1043 drivers/regulator/max8997-regulator.c max8997->buck125_gpioindex = pdata->buck125_default_idx; pdata 1044 drivers/regulator/max8997-regulator.c max8997->buck1_gpiodvs = pdata->buck1_gpiodvs; pdata 1045 drivers/regulator/max8997-regulator.c max8997->buck2_gpiodvs = pdata->buck2_gpiodvs; pdata 1046 drivers/regulator/max8997-regulator.c max8997->buck5_gpiodvs = pdata->buck5_gpiodvs; pdata 1047 drivers/regulator/max8997-regulator.c memcpy(max8997->buck125_gpios, pdata->buck125_gpios, sizeof(int) * 3); pdata 1048 drivers/regulator/max8997-regulator.c max8997->ignore_gpiodvs_side_effect = pdata->ignore_gpiodvs_side_effect; pdata 1050 drivers/regulator/max8997-regulator.c nr_dvs = (pdata->buck1_gpiodvs || pdata->buck2_gpiodvs || pdata 1051 drivers/regulator/max8997-regulator.c pdata->buck5_gpiodvs) ? 8 : 1; pdata 1057 drivers/regulator/max8997-regulator.c pdata->buck1_voltage[i], pdata 1058 drivers/regulator/max8997-regulator.c pdata->buck1_voltage[i] + pdata 1066 drivers/regulator/max8997-regulator.c pdata->buck2_voltage[i], pdata 1067 drivers/regulator/max8997-regulator.c pdata->buck2_voltage[i] + pdata 1075 drivers/regulator/max8997-regulator.c pdata->buck5_voltage[i], pdata 1076 drivers/regulator/max8997-regulator.c pdata->buck5_voltage[i] + pdata 1116 drivers/regulator/max8997-regulator.c if (pdata->buck1_gpiodvs || pdata->buck2_gpiodvs || pdata 1117 drivers/regulator/max8997-regulator.c pdata->buck5_gpiodvs) { pdata 1119 drivers/regulator/max8997-regulator.c if (!gpio_is_valid(pdata->buck125_gpios[0]) || pdata 1120 drivers/regulator/max8997-regulator.c !gpio_is_valid(pdata->buck125_gpios[1]) || pdata 1121 drivers/regulator/max8997-regulator.c !gpio_is_valid(pdata->buck125_gpios[2])) { pdata 1126 drivers/regulator/max8997-regulator.c ret = devm_gpio_request(&pdev->dev, pdata->buck125_gpios[0], pdata 1131 drivers/regulator/max8997-regulator.c ret = devm_gpio_request(&pdev->dev, pdata->buck125_gpios[1], pdata 1136 drivers/regulator/max8997-regulator.c ret = devm_gpio_request(&pdev->dev, pdata->buck125_gpios[2], pdata 1141 drivers/regulator/max8997-regulator.c gpio_direction_output(pdata->buck125_gpios[0], pdata 1144 drivers/regulator/max8997-regulator.c gpio_direction_output(pdata->buck125_gpios[1], pdata 1147 drivers/regulator/max8997-regulator.c gpio_direction_output(pdata->buck125_gpios[2], pdata 1153 drivers/regulator/max8997-regulator.c max8997_update_reg(i2c, MAX8997_REG_BUCK1CTRL, (pdata->buck1_gpiodvs) ? pdata 1155 drivers/regulator/max8997-regulator.c max8997_update_reg(i2c, MAX8997_REG_BUCK2CTRL, (pdata->buck2_gpiodvs) ? pdata 1157 drivers/regulator/max8997-regulator.c max8997_update_reg(i2c, MAX8997_REG_BUCK5CTRL, (pdata->buck5_gpiodvs) ? pdata 1164 drivers/regulator/max8997-regulator.c for (i = 0; i < pdata->num_regulators; i++) { pdata 1166 drivers/regulator/max8997-regulator.c int id = pdata->regulators[i].id; pdata 1180 drivers/regulator/max8997-regulator.c config.init_data = pdata->regulators[i].initdata; pdata 1182 drivers/regulator/max8997-regulator.c config.of_node = pdata->regulators[i].reg_node; pdata 232 drivers/regulator/max8998.c struct max8998_platform_data *pdata = max8998->iodev->pdata; pdata 250 drivers/regulator/max8998.c if (gpio_is_valid(pdata->buck1_set1) && pdata 251 drivers/regulator/max8998.c gpio_is_valid(pdata->buck1_set2)) { pdata 258 drivers/regulator/max8998.c buck1_gpio_set(pdata->buck1_set1, pdata 259 drivers/regulator/max8998.c pdata->buck1_set2, j); pdata 264 drivers/regulator/max8998.c if (pdata->buck_voltage_lock) pdata 276 drivers/regulator/max8998.c buck1_gpio_set(pdata->buck1_set1, pdata 277 drivers/regulator/max8998.c pdata->buck1_set2, max8998->buck1_idx); pdata 281 drivers/regulator/max8998.c i2c->name, gpio_get_value(pdata->buck1_set1), pdata 282 drivers/regulator/max8998.c gpio_get_value(pdata->buck1_set2)); pdata 293 drivers/regulator/max8998.c if (gpio_is_valid(pdata->buck2_set3)) { pdata 300 drivers/regulator/max8998.c buck2_gpio_set(pdata->buck2_set3, j); pdata 305 drivers/regulator/max8998.c if (pdata->buck_voltage_lock) pdata 312 drivers/regulator/max8998.c buck2_gpio_set(pdata->buck2_set3, max8998->buck2_idx); pdata 315 drivers/regulator/max8998.c gpio_get_value(pdata->buck2_set3)); pdata 438 drivers/regulator/max8998.c struct max8998_platform_data *pdata, pdata 448 drivers/regulator/max8998.c pdata->buck1_set1 = gpio; pdata 455 drivers/regulator/max8998.c pdata->buck1_set2 = gpio; pdata 462 drivers/regulator/max8998.c pdata->buck2_set3 = gpio; pdata 468 drivers/regulator/max8998.c struct max8998_platform_data *pdata) pdata 483 drivers/regulator/max8998.c pdata->num_regulators = of_get_child_count(regulators_np); pdata 486 drivers/regulator/max8998.c pdata->num_regulators, sizeof(*rdata), pdata 493 drivers/regulator/max8998.c pdata->regulators = rdata; pdata 507 drivers/regulator/max8998.c pdata->num_regulators = rdata - pdata->regulators; pdata 512 drivers/regulator/max8998.c ret = max8998_pmic_dt_parse_dvs_gpio(iodev, pdata, pmic_np); pdata 517 drivers/regulator/max8998.c pdata->buck_voltage_lock = true; pdata 521 drivers/regulator/max8998.c &pdata->buck1_default_idx); pdata 522 drivers/regulator/max8998.c if (!ret && pdata->buck1_default_idx >= 4) { pdata 523 drivers/regulator/max8998.c pdata->buck1_default_idx = 0; pdata 529 drivers/regulator/max8998.c &pdata->buck2_default_idx); pdata 530 drivers/regulator/max8998.c if (!ret && pdata->buck2_default_idx >= 2) { pdata 531 drivers/regulator/max8998.c pdata->buck2_default_idx = 0; pdata 537 drivers/regulator/max8998.c pdata->buck1_voltage, pdata 538 drivers/regulator/max8998.c ARRAY_SIZE(pdata->buck1_voltage)); pdata 546 drivers/regulator/max8998.c pdata->buck2_voltage, pdata 547 drivers/regulator/max8998.c ARRAY_SIZE(pdata->buck2_voltage)); pdata 559 drivers/regulator/max8998.c struct max8998_platform_data *pdata = iodev->pdata; pdata 567 drivers/regulator/max8998.c if (!pdata) { pdata 573 drivers/regulator/max8998.c ret = max8998_pmic_dt_parse_pdata(iodev, pdata); pdata 585 drivers/regulator/max8998.c max8998->num_regulators = pdata->num_regulators; pdata 589 drivers/regulator/max8998.c max8998->buck1_idx = pdata->buck1_default_idx; pdata 590 drivers/regulator/max8998.c max8998->buck2_idx = pdata->buck2_default_idx; pdata 597 drivers/regulator/max8998.c if (gpio_is_valid(pdata->buck1_set1) && pdata 598 drivers/regulator/max8998.c gpio_is_valid(pdata->buck1_set2)) { pdata 600 drivers/regulator/max8998.c if (!pdata->buck1_set1) { pdata 603 drivers/regulator/max8998.c WARN_ON(!pdata->buck1_set1); pdata 607 drivers/regulator/max8998.c if (!pdata->buck1_set2) { pdata 610 drivers/regulator/max8998.c WARN_ON(!pdata->buck1_set2); pdata 614 drivers/regulator/max8998.c gpio_request(pdata->buck1_set1, "MAX8998 BUCK1_SET1"); pdata 615 drivers/regulator/max8998.c gpio_direction_output(pdata->buck1_set1, pdata 619 drivers/regulator/max8998.c gpio_request(pdata->buck1_set2, "MAX8998 BUCK1_SET2"); pdata 620 drivers/regulator/max8998.c gpio_direction_output(pdata->buck1_set2, pdata 624 drivers/regulator/max8998.c for (v = 0; v < ARRAY_SIZE(pdata->buck1_voltage); ++v) { pdata 630 drivers/regulator/max8998.c < pdata->buck1_voltage[v]) pdata 641 drivers/regulator/max8998.c if (gpio_is_valid(pdata->buck2_set3)) { pdata 643 drivers/regulator/max8998.c if (!pdata->buck2_set3) { pdata 646 drivers/regulator/max8998.c WARN_ON(!pdata->buck2_set3); pdata 649 drivers/regulator/max8998.c gpio_request(pdata->buck2_set3, "MAX8998 BUCK2_SET3"); pdata 650 drivers/regulator/max8998.c gpio_direction_output(pdata->buck2_set3, pdata 654 drivers/regulator/max8998.c for (v = 0; v < ARRAY_SIZE(pdata->buck2_voltage); ++v) { pdata 660 drivers/regulator/max8998.c < pdata->buck2_voltage[v]) pdata 671 drivers/regulator/max8998.c for (i = 0; i < pdata->num_regulators; i++) { pdata 672 drivers/regulator/max8998.c int index = pdata->regulators[i].id - MAX8998_LDO2; pdata 675 drivers/regulator/max8998.c config.of_node = pdata->regulators[i].reg_node; pdata 676 drivers/regulator/max8998.c config.init_data = pdata->regulators[i].initdata; pdata 395 drivers/regulator/mc13783-regulator.c struct mc13xxx_regulator_platform_data *pdata = pdata 403 drivers/regulator/mc13783-regulator.c if (num_regulators <= 0 && pdata) pdata 404 drivers/regulator/mc13783-regulator.c num_regulators = pdata->num_regulators; pdata 433 drivers/regulator/mc13783-regulator.c id = pdata->regulators[i].id; pdata 434 drivers/regulator/mc13783-regulator.c init_data = pdata->regulators[i].init_data; pdata 531 drivers/regulator/mc13892-regulator.c struct mc13xxx_regulator_platform_data *pdata = pdata 541 drivers/regulator/mc13892-regulator.c if (num_regulators <= 0 && pdata) pdata 542 drivers/regulator/mc13892-regulator.c num_regulators = pdata->num_regulators; pdata 603 drivers/regulator/mc13892-regulator.c id = pdata->regulators[i].id; pdata 604 drivers/regulator/mc13892-regulator.c init_data = pdata->regulators[i].init_data; pdata 892 drivers/regulator/palmas-regulator.c struct palmas_pmic_platform_data *pdata, pdata 903 drivers/regulator/palmas-regulator.c if (pdata && pdata->reg_init[id]) pdata 904 drivers/regulator/palmas-regulator.c reg_init = pdata->reg_init[id]; pdata 938 drivers/regulator/palmas-regulator.c if (pdata && (id == PALMAS_REG_LDO8) && pdata 939 drivers/regulator/palmas-regulator.c pdata->enable_ldo8_tracking) { pdata 946 drivers/regulator/palmas-regulator.c if (pdata && pdata->ldo6_vibrator && pdata 973 drivers/regulator/palmas-regulator.c if (pdata) pdata 974 drivers/regulator/palmas-regulator.c config.init_data = pdata->reg_data[id]; pdata 990 drivers/regulator/palmas-regulator.c if (pdata) { pdata 991 drivers/regulator/palmas-regulator.c reg_init = pdata->reg_init[id]; pdata 1010 drivers/regulator/palmas-regulator.c struct palmas_pmic_platform_data *pdata, pdata 1021 drivers/regulator/palmas-regulator.c if (pdata && pdata->reg_init[id]) pdata 1022 drivers/regulator/palmas-regulator.c reg_init = pdata->reg_init[id]; pdata 1080 drivers/regulator/palmas-regulator.c if (pdata) pdata 1081 drivers/regulator/palmas-regulator.c config.init_data = pdata->reg_data[id]; pdata 1097 drivers/regulator/palmas-regulator.c if (pdata) { pdata 1098 drivers/regulator/palmas-regulator.c reg_init = pdata->reg_init[id]; pdata 1117 drivers/regulator/palmas-regulator.c struct palmas_pmic_platform_data *pdata, pdata 1184 drivers/regulator/palmas-regulator.c if (pdata && pdata->reg_init[id]) { pdata 1185 drivers/regulator/palmas-regulator.c reg_init = pdata->reg_init[id]; pdata 1265 drivers/regulator/palmas-regulator.c if (pdata) pdata 1266 drivers/regulator/palmas-regulator.c config.init_data = pdata->reg_data[id]; pdata 1287 drivers/regulator/palmas-regulator.c struct palmas_pmic_platform_data *pdata, pdata 1310 drivers/regulator/palmas-regulator.c if (pdata && pdata->reg_init[id]) { pdata 1311 drivers/regulator/palmas-regulator.c reg_init = pdata->reg_init[id]; pdata 1369 drivers/regulator/palmas-regulator.c if (pdata) pdata 1370 drivers/regulator/palmas-regulator.c config.init_data = pdata->reg_data[id]; pdata 1468 drivers/regulator/palmas-regulator.c struct palmas_pmic_platform_data *pdata, pdata 1504 drivers/regulator/palmas-regulator.c pdata->reg_data[idx] = match->init_data; pdata 1505 drivers/regulator/palmas-regulator.c pdata->reg_init[idx] = rinit; pdata 1546 drivers/regulator/palmas-regulator.c pdata->enable_ldo8_tracking = of_property_read_bool( pdata 1550 drivers/regulator/palmas-regulator.c pdata->ldo6_vibrator = of_property_read_bool(node, "ti,ldo6-vibrator"); pdata 1598 drivers/regulator/palmas-regulator.c struct palmas_pmic_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1614 drivers/regulator/palmas-regulator.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1615 drivers/regulator/palmas-regulator.c if (!pdata) pdata 1634 drivers/regulator/palmas-regulator.c ret = palmas_dt_to_pdata(&pdev->dev, node, pdata, driver_data); pdata 1655 drivers/regulator/palmas-regulator.c ret = driver_data->smps_register(pmic, driver_data, pdata, pdev_name, pdata 1660 drivers/regulator/palmas-regulator.c ret = driver_data->ldo_register(pmic, driver_data, pdata, pdev_name, pdata 95 drivers/regulator/pcf50633-regulator.c if (pcf->pdata->regulator_registered) pdata 96 drivers/regulator/pcf50633-regulator.c pcf->pdata->regulator_registered(pcf, pdev->id); pdata 690 drivers/regulator/pfuze100-regulator.c struct pfuze_regulator_platform_data *pdata = pdata 784 drivers/regulator/pfuze100-regulator.c if (pdata) pdata 785 drivers/regulator/pfuze100-regulator.c init_data = pdata->init_data[i]; pdata 103 drivers/regulator/rc5t583-regulator.c struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); pdata 110 drivers/regulator/rc5t583-regulator.c if (!pdata) { pdata 123 drivers/regulator/rc5t583-regulator.c pdata->regulator_ext_pwr_control[id], pdata 124 drivers/regulator/rc5t583-regulator.c pdata->regulator_deepsleep_slot[id]); pdata 135 drivers/regulator/rc5t583-regulator.c config.init_data = pdata->reg_init_data[id]; pdata 220 drivers/regulator/rk808-regulator.c struct rk808_regulator_data *pdata = rdev_get_drvdata(rdev); pdata 222 drivers/regulator/rk808-regulator.c struct gpio_desc *gpio = pdata->dvs_gpio[id]; pdata 293 drivers/regulator/rk808-regulator.c struct rk808_regulator_data *pdata = rdev_get_drvdata(rdev); pdata 295 drivers/regulator/rk808-regulator.c struct gpio_desc *gpio = pdata->dvs_gpio[id]; pdata 332 drivers/regulator/rk808-regulator.c struct rk808_regulator_data *pdata = rdev_get_drvdata(rdev); pdata 334 drivers/regulator/rk808-regulator.c struct gpio_desc *gpio = pdata->dvs_gpio[id]; pdata 1280 drivers/regulator/rk808-regulator.c struct rk808_regulator_data *pdata) pdata 1289 drivers/regulator/rk808-regulator.c for (i = 0; i < ARRAY_SIZE(pdata->dvs_gpio); i++) { pdata 1290 drivers/regulator/rk808-regulator.c pdata->dvs_gpio[i] = pdata 1293 drivers/regulator/rk808-regulator.c if (IS_ERR(pdata->dvs_gpio[i])) { pdata 1294 drivers/regulator/rk808-regulator.c ret = PTR_ERR(pdata->dvs_gpio[i]); pdata 1299 drivers/regulator/rk808-regulator.c if (!pdata->dvs_gpio[i]) { pdata 1306 drivers/regulator/rk808-regulator.c gpiod_is_active_low(pdata->dvs_gpio[i]) ? pdata 1321 drivers/regulator/rk808-regulator.c struct rk808_regulator_data *pdata; pdata 1325 drivers/regulator/rk808-regulator.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1326 drivers/regulator/rk808-regulator.c if (!pdata) pdata 1330 drivers/regulator/rk808-regulator.c rk808->regmap, pdata); pdata 1334 drivers/regulator/rk808-regulator.c platform_set_drvdata(pdev, pdata); pdata 1364 drivers/regulator/rk808-regulator.c config.driver_data = pdata; pdata 343 drivers/regulator/s2mpa01.c struct sec_platform_data *pdata = dev_get_platdata(iodev->dev); pdata 359 drivers/regulator/s2mpa01.c if (pdata) pdata 360 drivers/regulator/s2mpa01.c config.init_data = pdata->regulators[i].initdata; pdata 1124 drivers/regulator/s2mps11.c struct sec_platform_data *pdata = NULL; pdata 1176 drivers/regulator/s2mps11.c if (iodev->pdata) { pdata 1177 drivers/regulator/s2mps11.c pdata = iodev->pdata; pdata 1206 drivers/regulator/s2mps11.c if (pdata) { pdata 1207 drivers/regulator/s2mps11.c config.init_data = pdata->regulators[i].initdata; pdata 1208 drivers/regulator/s2mps11.c config.of_node = pdata->regulators[i].reg_node; pdata 485 drivers/regulator/s5m8767.c struct sec_platform_data *pdata, pdata 497 drivers/regulator/s5m8767.c pdata->buck_gpios[i] = gpio; pdata 503 drivers/regulator/s5m8767.c struct sec_platform_data *pdata, pdata 515 drivers/regulator/s5m8767.c pdata->buck_ds[i] = gpio; pdata 521 drivers/regulator/s5m8767.c struct sec_platform_data *pdata) pdata 542 drivers/regulator/s5m8767.c pdata->num_regulators = of_get_child_count(regulators_np); pdata 545 drivers/regulator/s5m8767.c pdata->num_regulators, sizeof(*rdata), pdata 551 drivers/regulator/s5m8767.c pdata->num_regulators, sizeof(*rmode), pdata 556 drivers/regulator/s5m8767.c pdata->regulators = rdata; pdata 557 drivers/regulator/s5m8767.c pdata->opmode = rmode; pdata 603 drivers/regulator/s5m8767.c pdata->buck2_gpiodvs = true; pdata 607 drivers/regulator/s5m8767.c pdata->buck2_voltage, dvs_voltage_nr)) { pdata 614 drivers/regulator/s5m8767.c pdata->buck3_gpiodvs = true; pdata 618 drivers/regulator/s5m8767.c pdata->buck3_voltage, dvs_voltage_nr)) { pdata 625 drivers/regulator/s5m8767.c pdata->buck4_gpiodvs = true; pdata 629 drivers/regulator/s5m8767.c pdata->buck4_voltage, dvs_voltage_nr)) { pdata 635 drivers/regulator/s5m8767.c if (pdata->buck2_gpiodvs || pdata->buck3_gpiodvs || pdata 636 drivers/regulator/s5m8767.c pdata->buck4_gpiodvs) { pdata 637 drivers/regulator/s5m8767.c ret = s5m8767_pmic_dt_parse_dvs_gpio(iodev, pdata, pmic_np); pdata 643 drivers/regulator/s5m8767.c &pdata->buck_default_idx)) { pdata 644 drivers/regulator/s5m8767.c pdata->buck_default_idx = 0; pdata 646 drivers/regulator/s5m8767.c if (pdata->buck_default_idx >= 8) { pdata 647 drivers/regulator/s5m8767.c pdata->buck_default_idx = 0; pdata 654 drivers/regulator/s5m8767.c ret = s5m8767_pmic_dt_parse_ds_gpio(iodev, pdata, pmic_np); pdata 659 drivers/regulator/s5m8767.c pdata->buck2_ramp_enable = true; pdata 662 drivers/regulator/s5m8767.c pdata->buck3_ramp_enable = true; pdata 665 drivers/regulator/s5m8767.c pdata->buck4_ramp_enable = true; pdata 667 drivers/regulator/s5m8767.c if (pdata->buck2_ramp_enable || pdata->buck3_ramp_enable pdata 668 drivers/regulator/s5m8767.c || pdata->buck4_ramp_enable) { pdata 670 drivers/regulator/s5m8767.c &pdata->buck_ramp_delay)) pdata 671 drivers/regulator/s5m8767.c pdata->buck_ramp_delay = 0; pdata 678 drivers/regulator/s5m8767.c struct sec_platform_data *pdata) pdata 687 drivers/regulator/s5m8767.c struct sec_platform_data *pdata = iodev->pdata; pdata 692 drivers/regulator/s5m8767.c if (!pdata) { pdata 698 drivers/regulator/s5m8767.c ret = s5m8767_pmic_dt_parse_pdata(pdev, pdata); pdata 703 drivers/regulator/s5m8767.c if (pdata->buck2_gpiodvs) { pdata 704 drivers/regulator/s5m8767.c if (pdata->buck3_gpiodvs || pdata->buck4_gpiodvs) { pdata 710 drivers/regulator/s5m8767.c if (pdata->buck3_gpiodvs) { pdata 711 drivers/regulator/s5m8767.c if (pdata->buck2_gpiodvs || pdata->buck4_gpiodvs) { pdata 717 drivers/regulator/s5m8767.c if (pdata->buck4_gpiodvs) { pdata 718 drivers/regulator/s5m8767.c if (pdata->buck2_gpiodvs || pdata->buck3_gpiodvs) { pdata 731 drivers/regulator/s5m8767.c s5m8767->num_regulators = pdata->num_regulators; pdata 734 drivers/regulator/s5m8767.c s5m8767->buck_gpioindex = pdata->buck_default_idx; pdata 735 drivers/regulator/s5m8767.c s5m8767->buck2_gpiodvs = pdata->buck2_gpiodvs; pdata 736 drivers/regulator/s5m8767.c s5m8767->buck3_gpiodvs = pdata->buck3_gpiodvs; pdata 737 drivers/regulator/s5m8767.c s5m8767->buck4_gpiodvs = pdata->buck4_gpiodvs; pdata 738 drivers/regulator/s5m8767.c s5m8767->buck_gpios[0] = pdata->buck_gpios[0]; pdata 739 drivers/regulator/s5m8767.c s5m8767->buck_gpios[1] = pdata->buck_gpios[1]; pdata 740 drivers/regulator/s5m8767.c s5m8767->buck_gpios[2] = pdata->buck_gpios[2]; pdata 741 drivers/regulator/s5m8767.c s5m8767->buck_ds[0] = pdata->buck_ds[0]; pdata 742 drivers/regulator/s5m8767.c s5m8767->buck_ds[1] = pdata->buck_ds[1]; pdata 743 drivers/regulator/s5m8767.c s5m8767->buck_ds[2] = pdata->buck_ds[2]; pdata 745 drivers/regulator/s5m8767.c s5m8767->ramp_delay = pdata->buck_ramp_delay; pdata 746 drivers/regulator/s5m8767.c s5m8767->buck2_ramp = pdata->buck2_ramp_enable; pdata 747 drivers/regulator/s5m8767.c s5m8767->buck3_ramp = pdata->buck3_ramp_enable; pdata 748 drivers/regulator/s5m8767.c s5m8767->buck4_ramp = pdata->buck4_ramp_enable; pdata 749 drivers/regulator/s5m8767.c s5m8767->opmode = pdata->opmode; pdata 752 drivers/regulator/s5m8767.c pdata->buck2_init); pdata 758 drivers/regulator/s5m8767.c pdata->buck3_init); pdata 764 drivers/regulator/s5m8767.c pdata->buck4_init); pdata 774 drivers/regulator/s5m8767.c pdata->buck2_voltage[i]); pdata 781 drivers/regulator/s5m8767.c pdata->buck3_voltage[i]); pdata 788 drivers/regulator/s5m8767.c pdata->buck4_voltage[i]); pdata 792 drivers/regulator/s5m8767.c if (pdata->buck2_gpiodvs || pdata->buck3_gpiodvs || pdata 793 drivers/regulator/s5m8767.c pdata->buck4_gpiodvs) { pdata 795 drivers/regulator/s5m8767.c if (!gpio_is_valid(pdata->buck_gpios[0]) || pdata 796 drivers/regulator/s5m8767.c !gpio_is_valid(pdata->buck_gpios[1]) || pdata 797 drivers/regulator/s5m8767.c !gpio_is_valid(pdata->buck_gpios[2])) { pdata 802 drivers/regulator/s5m8767.c ret = devm_gpio_request(&pdev->dev, pdata->buck_gpios[0], pdata 807 drivers/regulator/s5m8767.c ret = devm_gpio_request(&pdev->dev, pdata->buck_gpios[1], pdata 812 drivers/regulator/s5m8767.c ret = devm_gpio_request(&pdev->dev, pdata->buck_gpios[2], pdata 818 drivers/regulator/s5m8767.c gpio_direction_output(pdata->buck_gpios[0], pdata 821 drivers/regulator/s5m8767.c gpio_direction_output(pdata->buck_gpios[1], pdata 824 drivers/regulator/s5m8767.c gpio_direction_output(pdata->buck_gpios[2], pdata 828 drivers/regulator/s5m8767.c ret = devm_gpio_request(&pdev->dev, pdata->buck_ds[0], "S5M8767 DS2"); pdata 832 drivers/regulator/s5m8767.c ret = devm_gpio_request(&pdev->dev, pdata->buck_ds[1], "S5M8767 DS3"); pdata 836 drivers/regulator/s5m8767.c ret = devm_gpio_request(&pdev->dev, pdata->buck_ds[2], "S5M8767 DS4"); pdata 841 drivers/regulator/s5m8767.c gpio_direction_output(pdata->buck_ds[0], 0x0); pdata 843 drivers/regulator/s5m8767.c gpio_direction_output(pdata->buck_ds[1], 0x0); pdata 845 drivers/regulator/s5m8767.c gpio_direction_output(pdata->buck_ds[2], 0x0); pdata 847 drivers/regulator/s5m8767.c if (pdata->buck2_gpiodvs || pdata->buck3_gpiodvs || pdata 848 drivers/regulator/s5m8767.c pdata->buck4_gpiodvs) { pdata 851 drivers/regulator/s5m8767.c (pdata->buck2_gpiodvs) ? (1 << 1) : (0 << 1)); pdata 854 drivers/regulator/s5m8767.c (pdata->buck3_gpiodvs) ? (1 << 1) : (0 << 1)); pdata 857 drivers/regulator/s5m8767.c (pdata->buck4_gpiodvs) ? (1 << 1) : (0 << 1)); pdata 921 drivers/regulator/s5m8767.c for (i = 0; i < pdata->num_regulators; i++) { pdata 923 drivers/regulator/s5m8767.c int id = pdata->regulators[i].id; pdata 952 drivers/regulator/s5m8767.c config.init_data = pdata->regulators[i].initdata; pdata 955 drivers/regulator/s5m8767.c config.of_node = pdata->regulators[i].reg_node; pdata 957 drivers/regulator/s5m8767.c if (pdata->regulators[i].ext_control_gpiod) { pdata 960 drivers/regulator/s5m8767.c &pdata->regulators[i], &config); pdata 977 drivers/regulator/s5m8767.c if (pdata->regulators[i].ext_control_gpiod) { pdata 120 drivers/regulator/tps51632-regulator.c struct tps51632_regulator_platform_data *pdata) pdata 126 drivers/regulator/tps51632-regulator.c if (!pdata->enable_pwm_dvfs) pdata 130 drivers/regulator/tps51632-regulator.c vsel = TPS51632_VOLT_VSEL(pdata->base_voltage_uV); pdata 137 drivers/regulator/tps51632-regulator.c if (pdata->dvfs_step_20mV) pdata 140 drivers/regulator/tps51632-regulator.c if (pdata->max_voltage_uV) { pdata 154 drivers/regulator/tps51632-regulator.c vsel = TPS51632_VOLT_VSEL(pdata->max_voltage_uV); pdata 230 drivers/regulator/tps51632-regulator.c struct tps51632_regulator_platform_data *pdata; pdata 233 drivers/regulator/tps51632-regulator.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 234 drivers/regulator/tps51632-regulator.c if (!pdata) pdata 237 drivers/regulator/tps51632-regulator.c pdata->reg_init_data = of_get_regulator_init_data(dev, dev->of_node, pdata 239 drivers/regulator/tps51632-regulator.c if (!pdata->reg_init_data) { pdata 244 drivers/regulator/tps51632-regulator.c pdata->enable_pwm_dvfs = pdata 246 drivers/regulator/tps51632-regulator.c pdata->dvfs_step_20mV = of_property_read_bool(np, "ti,dvfs-step-20mV"); pdata 248 drivers/regulator/tps51632-regulator.c pdata->base_voltage_uV = pdata->reg_init_data->constraints.min_uV ? : pdata 250 drivers/regulator/tps51632-regulator.c pdata->max_voltage_uV = pdata->reg_init_data->constraints.max_uV ? : pdata 252 drivers/regulator/tps51632-regulator.c return pdata; pdata 266 drivers/regulator/tps51632-regulator.c struct tps51632_regulator_platform_data *pdata; pdata 298 drivers/regulator/tps51632-regulator.c pdata = dev_get_platdata(&client->dev); pdata 299 drivers/regulator/tps51632-regulator.c if (!pdata && client->dev.of_node) pdata 300 drivers/regulator/tps51632-regulator.c pdata = of_get_tps51632_platform_data(&client->dev, &tps->desc); pdata 301 drivers/regulator/tps51632-regulator.c if (!pdata) { pdata 306 drivers/regulator/tps51632-regulator.c if (pdata->enable_pwm_dvfs) { pdata 307 drivers/regulator/tps51632-regulator.c if ((pdata->base_voltage_uV < TPS51632_MIN_VOLTAGE) || pdata 308 drivers/regulator/tps51632-regulator.c (pdata->base_voltage_uV > TPS51632_MAX_VOLTAGE)) { pdata 313 drivers/regulator/tps51632-regulator.c if ((pdata->max_voltage_uV) && pdata 314 drivers/regulator/tps51632-regulator.c ((pdata->max_voltage_uV < TPS51632_MIN_VOLTAGE) || pdata 315 drivers/regulator/tps51632-regulator.c (pdata->max_voltage_uV > TPS51632_MAX_VOLTAGE))) { pdata 321 drivers/regulator/tps51632-regulator.c if (pdata->enable_pwm_dvfs) pdata 335 drivers/regulator/tps51632-regulator.c ret = tps51632_init_dcdc(tps, pdata); pdata 343 drivers/regulator/tps51632-regulator.c config.init_data = pdata->reg_init_data; pdata 60 drivers/regulator/tps6105x-regulator.c struct tps6105x_platform_data *pdata = tps6105x->pdata; pdata 65 drivers/regulator/tps6105x-regulator.c if (pdata->mode != TPS6105X_MODE_VOLTAGE) { pdata 72 drivers/regulator/tps6105x-regulator.c config.init_data = pdata->regulator_data; pdata 247 drivers/regulator/tps62360-regulator.c struct tps62360_regulator_platform_data *pdata) pdata 299 drivers/regulator/tps62360-regulator.c struct tps62360_regulator_platform_data *pdata; pdata 302 drivers/regulator/tps62360-regulator.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 303 drivers/regulator/tps62360-regulator.c if (!pdata) pdata 306 drivers/regulator/tps62360-regulator.c pdata->reg_init_data = of_get_regulator_init_data(dev, dev->of_node, pdata 308 drivers/regulator/tps62360-regulator.c if (!pdata->reg_init_data) { pdata 313 drivers/regulator/tps62360-regulator.c pdata->vsel0_gpio = of_get_named_gpio(np, "vsel0-gpio", 0); pdata 314 drivers/regulator/tps62360-regulator.c pdata->vsel1_gpio = of_get_named_gpio(np, "vsel1-gpio", 0); pdata 317 drivers/regulator/tps62360-regulator.c pdata->vsel0_def_state = 1; pdata 320 drivers/regulator/tps62360-regulator.c pdata->vsel1_def_state = 1; pdata 323 drivers/regulator/tps62360-regulator.c pdata->en_internal_pulldn = true; pdata 326 drivers/regulator/tps62360-regulator.c pdata->en_discharge = true; pdata 328 drivers/regulator/tps62360-regulator.c return pdata; pdata 346 drivers/regulator/tps62360-regulator.c struct tps62360_regulator_platform_data *pdata; pdata 353 drivers/regulator/tps62360-regulator.c pdata = dev_get_platdata(&client->dev); pdata 375 drivers/regulator/tps62360-regulator.c if (!pdata) pdata 376 drivers/regulator/tps62360-regulator.c pdata = of_get_tps62360_platform_data(&client->dev, pdata 385 drivers/regulator/tps62360-regulator.c if (!pdata) { pdata 391 drivers/regulator/tps62360-regulator.c tps->en_discharge = pdata->en_discharge; pdata 392 drivers/regulator/tps62360-regulator.c tps->en_internal_pulldn = pdata->en_internal_pulldn; pdata 393 drivers/regulator/tps62360-regulator.c tps->vsel0_gpio = pdata->vsel0_gpio; pdata 394 drivers/regulator/tps62360-regulator.c tps->vsel1_gpio = pdata->vsel1_gpio; pdata 424 drivers/regulator/tps62360-regulator.c tps->curr_vset_id = (pdata->vsel1_def_state & 1) * 2 + pdata 425 drivers/regulator/tps62360-regulator.c (pdata->vsel0_def_state & 1); pdata 431 drivers/regulator/tps62360-regulator.c gpio_flags = (pdata->vsel0_def_state) ? pdata 442 drivers/regulator/tps62360-regulator.c gpio_flags = (pdata->vsel1_def_state) ? pdata 464 drivers/regulator/tps62360-regulator.c ret = tps62360_init_dcdc(tps, pdata); pdata 472 drivers/regulator/tps62360-regulator.c config.init_data = pdata->reg_init_data; pdata 224 drivers/regulator/tps65217-regulator.c struct tps65217_board *pdata = dev_get_platdata(tps->dev); pdata 242 drivers/regulator/tps65217-regulator.c if (pdata) pdata 243 drivers/regulator/tps65217-regulator.c config.init_data = pdata->tps65217_init_data[i]; pdata 402 drivers/regulator/tps6586x-regulator.c struct tps6586x_platform_data *pdata; pdata 418 drivers/regulator/tps6586x-regulator.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 419 drivers/regulator/tps6586x-regulator.c if (!pdata) pdata 427 drivers/regulator/tps6586x-regulator.c pdata->reg_init_data[i] = tps6586x_matches[i].init_data; pdata 430 drivers/regulator/tps6586x-regulator.c sys_rail = pdata->reg_init_data[i]->constraints.name; pdata 433 drivers/regulator/tps6586x-regulator.c pdata->reg_init_data[i]->supply_regulator = sys_rail; pdata 436 drivers/regulator/tps6586x-regulator.c return pdata; pdata 454 drivers/regulator/tps6586x-regulator.c struct tps6586x_platform_data *pdata; pdata 462 drivers/regulator/tps6586x-regulator.c pdata = dev_get_platdata(pdev->dev.parent); pdata 463 drivers/regulator/tps6586x-regulator.c if ((!pdata) && (pdev->dev.parent->of_node)) pdata 464 drivers/regulator/tps6586x-regulator.c pdata = tps6586x_parse_regulator_dt(pdev, pdata 467 drivers/regulator/tps6586x-regulator.c if (!pdata) { pdata 475 drivers/regulator/tps6586x-regulator.c reg_data = pdata->reg_init_data[id]; pdata 662 drivers/regulator/tps80031-regulator.c struct tps80031_platform_data *pdata; pdata 672 drivers/regulator/tps80031-regulator.c pdata = dev_get_platdata(pdev->dev.parent); pdata 674 drivers/regulator/tps80031-regulator.c if (!pdata) { pdata 685 drivers/regulator/tps80031-regulator.c tps_pdata = pdata->regulator_pdata[num]; pdata 105 drivers/regulator/userspace-consumer.c struct regulator_userspace_consumer_data *pdata; pdata 109 drivers/regulator/userspace-consumer.c pdata = dev_get_platdata(&pdev->dev); pdata 110 drivers/regulator/userspace-consumer.c if (!pdata) pdata 119 drivers/regulator/userspace-consumer.c drvdata->name = pdata->name; pdata 120 drivers/regulator/userspace-consumer.c drvdata->num_supplies = pdata->num_supplies; pdata 121 drivers/regulator/userspace-consumer.c drvdata->supplies = pdata->supplies; pdata 136 drivers/regulator/userspace-consumer.c if (pdata->init_on) { pdata 146 drivers/regulator/userspace-consumer.c drvdata->enabled = pdata->init_on; pdata 334 drivers/regulator/wm831x-dcdc.c struct wm831x_buckv_pdata *pdata) pdata 340 drivers/regulator/wm831x-dcdc.c if (!pdata) pdata 346 drivers/regulator/wm831x-dcdc.c dcdc->dvs_gpio_state = pdata->dvs_init_state; pdata 356 drivers/regulator/wm831x-dcdc.c switch (pdata->dvs_control_src) { pdata 365 drivers/regulator/wm831x-dcdc.c pdata->dvs_control_src, dcdc->name); pdata 394 drivers/regulator/wm831x-dcdc.c struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); pdata 401 drivers/regulator/wm831x-dcdc.c if (pdata && pdata->wm831x_num) pdata 402 drivers/regulator/wm831x-dcdc.c id = (pdata->wm831x_num * 10) + 1; pdata 459 drivers/regulator/wm831x-dcdc.c if (pdata && pdata->dcdc[id]) pdata 461 drivers/regulator/wm831x-dcdc.c pdata->dcdc[id]->driver_data); pdata 464 drivers/regulator/wm831x-dcdc.c if (pdata) pdata 465 drivers/regulator/wm831x-dcdc.c config.init_data = pdata->dcdc[id]; pdata 552 drivers/regulator/wm831x-dcdc.c struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); pdata 559 drivers/regulator/wm831x-dcdc.c if (pdata && pdata->wm831x_num) pdata 560 drivers/regulator/wm831x-dcdc.c id = (pdata->wm831x_num * 10) + 1; pdata 602 drivers/regulator/wm831x-dcdc.c if (pdata) pdata 603 drivers/regulator/wm831x-dcdc.c config.init_data = pdata->dcdc[id]; pdata 684 drivers/regulator/wm831x-dcdc.c struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); pdata 686 drivers/regulator/wm831x-dcdc.c int id = pdev->id % ARRAY_SIZE(pdata->dcdc); pdata 693 drivers/regulator/wm831x-dcdc.c if (pdata == NULL || pdata->dcdc[id] == NULL) pdata 719 drivers/regulator/wm831x-dcdc.c if (pdata) pdata 720 drivers/regulator/wm831x-dcdc.c config.init_data = pdata->dcdc[id]; pdata 776 drivers/regulator/wm831x-dcdc.c struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); pdata 778 drivers/regulator/wm831x-dcdc.c int id = pdev->id % ARRAY_SIZE(pdata->epe); pdata 803 drivers/regulator/wm831x-dcdc.c if (pdata) pdata 804 drivers/regulator/wm831x-dcdc.c config.init_data = pdata->epe[id]; pdata 115 drivers/regulator/wm831x-isink.c struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); pdata 117 drivers/regulator/wm831x-isink.c int id = pdev->id % ARRAY_SIZE(pdata->isink); pdata 124 drivers/regulator/wm831x-isink.c if (pdata == NULL || pdata->isink[id] == NULL) pdata 157 drivers/regulator/wm831x-isink.c config.init_data = pdata->isink[id]; pdata 219 drivers/regulator/wm831x-ldo.c struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); pdata 226 drivers/regulator/wm831x-ldo.c if (pdata && pdata->wm831x_num) pdata 227 drivers/regulator/wm831x-ldo.c id = (pdata->wm831x_num * 10) + 1; pdata 270 drivers/regulator/wm831x-ldo.c if (pdata) pdata 271 drivers/regulator/wm831x-ldo.c config.init_data = pdata->ldo[id]; pdata 429 drivers/regulator/wm831x-ldo.c struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); pdata 436 drivers/regulator/wm831x-ldo.c if (pdata && pdata->wm831x_num) pdata 437 drivers/regulator/wm831x-ldo.c id = (pdata->wm831x_num * 10) + 1; pdata 480 drivers/regulator/wm831x-ldo.c if (pdata) pdata 481 drivers/regulator/wm831x-ldo.c config.init_data = pdata->ldo[id]; pdata 573 drivers/regulator/wm831x-ldo.c struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); pdata 580 drivers/regulator/wm831x-ldo.c if (pdata && pdata->wm831x_num) pdata 581 drivers/regulator/wm831x-ldo.c id = (pdata->wm831x_num * 10) + 1; pdata 624 drivers/regulator/wm831x-ldo.c if (pdata) pdata 625 drivers/regulator/wm831x-ldo.c config.init_data = pdata->ldo[id]; pdata 1233 drivers/regulator/wm8350-regulator.c struct wm8350_led_platform_data *pdata) pdata 1262 drivers/regulator/wm8350-regulator.c led->isink_init.constraints.max_uA = pdata->max_uA; pdata 1293 drivers/regulator/wm8350-regulator.c pdev->dev.platform_data = pdata; pdata 123 drivers/regulator/wm8994-regulator.c struct wm8994_pdata *pdata = dev_get_platdata(wm8994->dev); pdata 124 drivers/regulator/wm8994-regulator.c int id = pdev->id % ARRAY_SIZE(pdata->ldo); pdata 158 drivers/regulator/wm8994-regulator.c if (!pdata || !pdata->ldo[id].init_data || wm8994->dev->of_node) { pdata 167 drivers/regulator/wm8994-regulator.c ldo->init_data = *pdata->ldo[id].init_data; pdata 107 drivers/remoteproc/omap_remoteproc.c struct omap_rproc_pdata *pdata = pdev->dev.platform_data; pdata 111 drivers/remoteproc/omap_remoteproc.c if (pdata->set_bootaddr) pdata 112 drivers/remoteproc/omap_remoteproc.c pdata->set_bootaddr(rproc->bootaddr); pdata 120 drivers/remoteproc/omap_remoteproc.c oproc->mbox = omap_mbox_request_channel(client, pdata->mbox_name); pdata 141 drivers/remoteproc/omap_remoteproc.c ret = pdata->device_enable(pdev); pdata 159 drivers/remoteproc/omap_remoteproc.c struct omap_rproc_pdata *pdata = pdev->dev.platform_data; pdata 163 drivers/remoteproc/omap_remoteproc.c ret = pdata->device_shutdown(pdev); pdata 180 drivers/remoteproc/omap_remoteproc.c struct omap_rproc_pdata *pdata = pdev->dev.platform_data; pdata 191 drivers/remoteproc/omap_remoteproc.c rproc = rproc_alloc(&pdev->dev, pdata->name, &omap_rproc_ops, pdata 192 drivers/remoteproc/omap_remoteproc.c pdata->firmware, sizeof(*oproc)); pdata 58 drivers/remoteproc/wkup_m3_rproc.c struct wkup_m3_platform_data *pdata = dev_get_platdata(dev); pdata 60 drivers/remoteproc/wkup_m3_rproc.c if (pdata->deassert_reset(pdev, pdata->reset_name)) { pdata 73 drivers/remoteproc/wkup_m3_rproc.c struct wkup_m3_platform_data *pdata = dev_get_platdata(dev); pdata 75 drivers/remoteproc/wkup_m3_rproc.c if (pdata->assert_reset(pdev, pdata->reset_name)) { pdata 122 drivers/remoteproc/wkup_m3_rproc.c struct wkup_m3_platform_data *pdata = dev->platform_data; pdata 135 drivers/remoteproc/wkup_m3_rproc.c if (!(pdata && pdata->deassert_reset && pdata->assert_reset && pdata 136 drivers/remoteproc/wkup_m3_rproc.c pdata->reset_name)) { pdata 242 drivers/rtc/rtc-88pm80x.c struct pm80x_rtc_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 247 drivers/rtc/rtc-88pm80x.c if (!pdata && !node) { pdata 253 drivers/rtc/rtc-88pm80x.c if (!pdata) { pdata 254 drivers/rtc/rtc-88pm80x.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 255 drivers/rtc/rtc-88pm80x.c if (!pdata) { pdata 309 drivers/rtc/rtc-88pm80x.c info->rtc_dev->dev.platform_data = &pdata->rtc_wakeup; pdata 318 drivers/rtc/rtc-88pm860x.c struct pm860x_rtc_pdata *pdata = NULL; pdata 324 drivers/rtc/rtc-88pm860x.c pdata = dev_get_platdata(&pdev->dev); pdata 378 drivers/rtc/rtc-88pm860x.c if (pdata && pdata->sync) { pdata 379 drivers/rtc/rtc-88pm860x.c pdata->sync(ticks); pdata 380 drivers/rtc/rtc-88pm860x.c info->sync = pdata->sync; pdata 399 drivers/rtc/rtc-88pm860x.c if (pdata && pdata->vrtc) pdata 400 drivers/rtc/rtc-88pm860x.c info->vrtc = pdata->vrtc & 0x3; pdata 227 drivers/rtc/rtc-da9055.c struct da9055_pdata *pdata) pdata 248 drivers/rtc/rtc-da9055.c if (pdata && pdata->reset_enable) { pdata 269 drivers/rtc/rtc-da9055.c struct da9055_pdata *pdata = NULL; pdata 277 drivers/rtc/rtc-da9055.c pdata = dev_get_platdata(rtc->da9055->dev); pdata 280 drivers/rtc/rtc-da9055.c ret = da9055_rtc_device_init(rtc->da9055, pdata); pdata 553 drivers/rtc/rtc-ds1305.c struct ds1305_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 637 drivers/rtc/rtc-ds1305.c if (pdata) { pdata 641 drivers/rtc/rtc-ds1305.c | pdata->trickle; pdata 646 drivers/rtc/rtc-ds1305.c if (pdata->is_ds1306) { pdata 647 drivers/rtc/rtc-ds1305.c if (pdata->en_1hz) { pdata 1585 drivers/rtc/rtc-ds1307.c struct ds1307_platform_data *pdata = dev_get_platdata(&client->dev); pdata 1624 drivers/rtc/rtc-ds1307.c if (!pdata) pdata 1626 drivers/rtc/rtc-ds1307.c else if (pdata->trickle_charger_setup) pdata 1627 drivers/rtc/rtc-ds1307.c trickle_charger_setup = pdata->trickle_charger_setup; pdata 289 drivers/rtc/rtc-ds1511.c ds1511_rtc_update_alarm(struct rtc_plat_data *pdata) pdata 293 drivers/rtc/rtc-ds1511.c spin_lock_irqsave(&pdata->lock, flags); pdata 294 drivers/rtc/rtc-ds1511.c rtc_write(pdata->alrm_mday < 0 || (pdata->irqen & RTC_UF) ? pdata 295 drivers/rtc/rtc-ds1511.c 0x80 : bin2bcd(pdata->alrm_mday) & 0x3f, pdata 297 drivers/rtc/rtc-ds1511.c rtc_write(pdata->alrm_hour < 0 || (pdata->irqen & RTC_UF) ? pdata 298 drivers/rtc/rtc-ds1511.c 0x80 : bin2bcd(pdata->alrm_hour) & 0x3f, pdata 300 drivers/rtc/rtc-ds1511.c rtc_write(pdata->alrm_min < 0 || (pdata->irqen & RTC_UF) ? pdata 301 drivers/rtc/rtc-ds1511.c 0x80 : bin2bcd(pdata->alrm_min) & 0x7f, pdata 303 drivers/rtc/rtc-ds1511.c rtc_write(pdata->alrm_sec < 0 || (pdata->irqen & RTC_UF) ? pdata 304 drivers/rtc/rtc-ds1511.c 0x80 : bin2bcd(pdata->alrm_sec) & 0x7f, pdata 306 drivers/rtc/rtc-ds1511.c rtc_write(rtc_read(RTC_CMD) | (pdata->irqen ? RTC_TIE : 0), RTC_CMD); pdata 308 drivers/rtc/rtc-ds1511.c spin_unlock_irqrestore(&pdata->lock, flags); pdata 314 drivers/rtc/rtc-ds1511.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 316 drivers/rtc/rtc-ds1511.c if (pdata->irq <= 0) pdata 319 drivers/rtc/rtc-ds1511.c pdata->alrm_mday = alrm->time.tm_mday; pdata 320 drivers/rtc/rtc-ds1511.c pdata->alrm_hour = alrm->time.tm_hour; pdata 321 drivers/rtc/rtc-ds1511.c pdata->alrm_min = alrm->time.tm_min; pdata 322 drivers/rtc/rtc-ds1511.c pdata->alrm_sec = alrm->time.tm_sec; pdata 324 drivers/rtc/rtc-ds1511.c pdata->irqen |= RTC_AF; pdata 326 drivers/rtc/rtc-ds1511.c ds1511_rtc_update_alarm(pdata); pdata 333 drivers/rtc/rtc-ds1511.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 335 drivers/rtc/rtc-ds1511.c if (pdata->irq <= 0) pdata 338 drivers/rtc/rtc-ds1511.c alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; pdata 339 drivers/rtc/rtc-ds1511.c alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; pdata 340 drivers/rtc/rtc-ds1511.c alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; pdata 341 drivers/rtc/rtc-ds1511.c alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; pdata 342 drivers/rtc/rtc-ds1511.c alrm->enabled = (pdata->irqen & RTC_AF) ? 1 : 0; pdata 350 drivers/rtc/rtc-ds1511.c struct rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 353 drivers/rtc/rtc-ds1511.c spin_lock(&pdata->lock); pdata 363 drivers/rtc/rtc-ds1511.c rtc_update_irq(pdata->rtc, 1, events); pdata 365 drivers/rtc/rtc-ds1511.c spin_unlock(&pdata->lock); pdata 371 drivers/rtc/rtc-ds1511.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 373 drivers/rtc/rtc-ds1511.c if (pdata->irq <= 0) pdata 376 drivers/rtc/rtc-ds1511.c pdata->irqen |= RTC_AF; pdata 378 drivers/rtc/rtc-ds1511.c pdata->irqen &= ~RTC_AF; pdata 379 drivers/rtc/rtc-ds1511.c ds1511_rtc_update_alarm(pdata); pdata 418 drivers/rtc/rtc-ds1511.c struct rtc_plat_data *pdata; pdata 430 drivers/rtc/rtc-ds1511.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 431 drivers/rtc/rtc-ds1511.c if (!pdata) pdata 438 drivers/rtc/rtc-ds1511.c pdata->ioaddr = ds1511_base; pdata 439 drivers/rtc/rtc-ds1511.c pdata->irq = platform_get_irq(pdev, 0); pdata 462 drivers/rtc/rtc-ds1511.c spin_lock_init(&pdata->lock); pdata 463 drivers/rtc/rtc-ds1511.c platform_set_drvdata(pdev, pdata); pdata 465 drivers/rtc/rtc-ds1511.c pdata->rtc = devm_rtc_allocate_device(&pdev->dev); pdata 466 drivers/rtc/rtc-ds1511.c if (IS_ERR(pdata->rtc)) pdata 467 drivers/rtc/rtc-ds1511.c return PTR_ERR(pdata->rtc); pdata 469 drivers/rtc/rtc-ds1511.c pdata->rtc->ops = &ds1511_rtc_ops; pdata 471 drivers/rtc/rtc-ds1511.c pdata->rtc->nvram_old_abi = true; pdata 473 drivers/rtc/rtc-ds1511.c ret = rtc_register_device(pdata->rtc); pdata 477 drivers/rtc/rtc-ds1511.c rtc_nvmem_register(pdata->rtc, &ds1511_nvmem_cfg); pdata 483 drivers/rtc/rtc-ds1511.c if (pdata->irq > 0) { pdata 485 drivers/rtc/rtc-ds1511.c if (devm_request_irq(&pdev->dev, pdata->irq, ds1511_interrupt, pdata 489 drivers/rtc/rtc-ds1511.c pdata->irq = 0; pdata 73 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 74 drivers/rtc/rtc-ds1553.c void __iomem *ioaddr = pdata->ioaddr; pdata 79 drivers/rtc/rtc-ds1553.c writeb(RTC_WRITE, pdata->ioaddr + RTC_CONTROL); pdata 97 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 98 drivers/rtc/rtc-ds1553.c void __iomem *ioaddr = pdata->ioaddr; pdata 103 drivers/rtc/rtc-ds1553.c if (pdata->last_jiffies == jiffies) pdata 105 drivers/rtc/rtc-ds1553.c pdata->last_jiffies = jiffies; pdata 128 drivers/rtc/rtc-ds1553.c static void ds1553_rtc_update_alarm(struct rtc_plat_data *pdata) pdata 130 drivers/rtc/rtc-ds1553.c void __iomem *ioaddr = pdata->ioaddr; pdata 133 drivers/rtc/rtc-ds1553.c spin_lock_irqsave(&pdata->lock, flags); pdata 134 drivers/rtc/rtc-ds1553.c writeb(pdata->alrm_mday < 0 || (pdata->irqen & RTC_UF) ? pdata 135 drivers/rtc/rtc-ds1553.c 0x80 : bin2bcd(pdata->alrm_mday), pdata 137 drivers/rtc/rtc-ds1553.c writeb(pdata->alrm_hour < 0 || (pdata->irqen & RTC_UF) ? pdata 138 drivers/rtc/rtc-ds1553.c 0x80 : bin2bcd(pdata->alrm_hour), pdata 140 drivers/rtc/rtc-ds1553.c writeb(pdata->alrm_min < 0 || (pdata->irqen & RTC_UF) ? pdata 141 drivers/rtc/rtc-ds1553.c 0x80 : bin2bcd(pdata->alrm_min), pdata 143 drivers/rtc/rtc-ds1553.c writeb(pdata->alrm_sec < 0 || (pdata->irqen & RTC_UF) ? pdata 144 drivers/rtc/rtc-ds1553.c 0x80 : bin2bcd(pdata->alrm_sec), pdata 146 drivers/rtc/rtc-ds1553.c writeb(pdata->irqen ? RTC_INTS_AE : 0, ioaddr + RTC_INTERRUPTS); pdata 148 drivers/rtc/rtc-ds1553.c spin_unlock_irqrestore(&pdata->lock, flags); pdata 153 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 155 drivers/rtc/rtc-ds1553.c if (pdata->irq <= 0) pdata 157 drivers/rtc/rtc-ds1553.c pdata->alrm_mday = alrm->time.tm_mday; pdata 158 drivers/rtc/rtc-ds1553.c pdata->alrm_hour = alrm->time.tm_hour; pdata 159 drivers/rtc/rtc-ds1553.c pdata->alrm_min = alrm->time.tm_min; pdata 160 drivers/rtc/rtc-ds1553.c pdata->alrm_sec = alrm->time.tm_sec; pdata 162 drivers/rtc/rtc-ds1553.c pdata->irqen |= RTC_AF; pdata 163 drivers/rtc/rtc-ds1553.c ds1553_rtc_update_alarm(pdata); pdata 169 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 171 drivers/rtc/rtc-ds1553.c if (pdata->irq <= 0) pdata 173 drivers/rtc/rtc-ds1553.c alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; pdata 174 drivers/rtc/rtc-ds1553.c alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; pdata 175 drivers/rtc/rtc-ds1553.c alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; pdata 176 drivers/rtc/rtc-ds1553.c alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; pdata 177 drivers/rtc/rtc-ds1553.c alrm->enabled = (pdata->irqen & RTC_AF) ? 1 : 0; pdata 184 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 185 drivers/rtc/rtc-ds1553.c void __iomem *ioaddr = pdata->ioaddr; pdata 188 drivers/rtc/rtc-ds1553.c spin_lock(&pdata->lock); pdata 196 drivers/rtc/rtc-ds1553.c rtc_update_irq(pdata->rtc, 1, events); pdata 198 drivers/rtc/rtc-ds1553.c spin_unlock(&pdata->lock); pdata 204 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 206 drivers/rtc/rtc-ds1553.c if (pdata->irq <= 0) pdata 209 drivers/rtc/rtc-ds1553.c pdata->irqen |= RTC_AF; pdata 211 drivers/rtc/rtc-ds1553.c pdata->irqen &= ~RTC_AF; pdata 212 drivers/rtc/rtc-ds1553.c ds1553_rtc_update_alarm(pdata); pdata 228 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 229 drivers/rtc/rtc-ds1553.c void __iomem *ioaddr = pdata->ioaddr; pdata 241 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 242 drivers/rtc/rtc-ds1553.c void __iomem *ioaddr = pdata->ioaddr; pdata 254 drivers/rtc/rtc-ds1553.c struct rtc_plat_data *pdata; pdata 267 drivers/rtc/rtc-ds1553.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 268 drivers/rtc/rtc-ds1553.c if (!pdata) pdata 275 drivers/rtc/rtc-ds1553.c pdata->ioaddr = ioaddr; pdata 276 drivers/rtc/rtc-ds1553.c pdata->irq = platform_get_irq(pdev, 0); pdata 290 drivers/rtc/rtc-ds1553.c spin_lock_init(&pdata->lock); pdata 291 drivers/rtc/rtc-ds1553.c pdata->last_jiffies = jiffies; pdata 292 drivers/rtc/rtc-ds1553.c platform_set_drvdata(pdev, pdata); pdata 294 drivers/rtc/rtc-ds1553.c pdata->rtc = devm_rtc_allocate_device(&pdev->dev); pdata 295 drivers/rtc/rtc-ds1553.c if (IS_ERR(pdata->rtc)) pdata 296 drivers/rtc/rtc-ds1553.c return PTR_ERR(pdata->rtc); pdata 298 drivers/rtc/rtc-ds1553.c pdata->rtc->ops = &ds1553_rtc_ops; pdata 299 drivers/rtc/rtc-ds1553.c pdata->rtc->nvram_old_abi = true; pdata 301 drivers/rtc/rtc-ds1553.c ret = rtc_register_device(pdata->rtc); pdata 305 drivers/rtc/rtc-ds1553.c if (pdata->irq > 0) { pdata 307 drivers/rtc/rtc-ds1553.c if (devm_request_irq(&pdev->dev, pdata->irq, pdata 311 drivers/rtc/rtc-ds1553.c pdata->irq = 0; pdata 315 drivers/rtc/rtc-ds1553.c if (rtc_nvmem_register(pdata->rtc, &nvmem_cfg)) pdata 1045 drivers/rtc/rtc-ds1685.c struct ds1685_rtc_platform_data *pdata; pdata 1057 drivers/rtc/rtc-ds1685.c pdata = (struct ds1685_rtc_platform_data *) pdev->dev.platform_data; pdata 1058 drivers/rtc/rtc-ds1685.c if (!pdata) pdata 1072 drivers/rtc/rtc-ds1685.c if (pdata->alloc_io_resources) { pdata 1094 drivers/rtc/rtc-ds1685.c rtc->alloc_io_resources = pdata->alloc_io_resources; pdata 1097 drivers/rtc/rtc-ds1685.c if (pdata->regstep > 0) pdata 1098 drivers/rtc/rtc-ds1685.c rtc->regstep = pdata->regstep; pdata 1103 drivers/rtc/rtc-ds1685.c if (pdata->plat_read) pdata 1104 drivers/rtc/rtc-ds1685.c rtc->read = pdata->plat_read; pdata 1106 drivers/rtc/rtc-ds1685.c if (pdata->alloc_io_resources) pdata 1112 drivers/rtc/rtc-ds1685.c if (pdata->plat_write) pdata 1113 drivers/rtc/rtc-ds1685.c rtc->write = pdata->plat_write; pdata 1115 drivers/rtc/rtc-ds1685.c if (pdata->alloc_io_resources) pdata 1121 drivers/rtc/rtc-ds1685.c if (pdata->plat_prepare_poweroff) pdata 1122 drivers/rtc/rtc-ds1685.c rtc->prepare_poweroff = pdata->plat_prepare_poweroff; pdata 1125 drivers/rtc/rtc-ds1685.c if (pdata->plat_wake_alarm) pdata 1126 drivers/rtc/rtc-ds1685.c rtc->wake_alarm = pdata->plat_wake_alarm; pdata 1129 drivers/rtc/rtc-ds1685.c if (pdata->plat_post_ram_clear) pdata 1130 drivers/rtc/rtc-ds1685.c rtc->post_ram_clear = pdata->plat_post_ram_clear; pdata 1170 drivers/rtc/rtc-ds1685.c if (pdata->bcd_mode) pdata 1174 drivers/rtc/rtc-ds1685.c rtc->bcd_mode = pdata->bcd_mode; pdata 1272 drivers/rtc/rtc-ds1685.c if (pdata->uie_unsupported) pdata 1274 drivers/rtc/rtc-ds1685.c rtc->uie_unsupported = pdata->uie_unsupported; pdata 1286 drivers/rtc/rtc-ds1685.c if (!pdata->no_irq) { pdata 1306 drivers/rtc/rtc-ds1685.c rtc->no_irq = pdata->no_irq; pdata 58 drivers/rtc/rtc-ds1742.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 59 drivers/rtc/rtc-ds1742.c void __iomem *ioaddr = pdata->ioaddr_rtc; pdata 82 drivers/rtc/rtc-ds1742.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 83 drivers/rtc/rtc-ds1742.c void __iomem *ioaddr = pdata->ioaddr_rtc; pdata 88 drivers/rtc/rtc-ds1742.c if (pdata->last_jiffies == jiffies) pdata 90 drivers/rtc/rtc-ds1742.c pdata->last_jiffies = jiffies; pdata 121 drivers/rtc/rtc-ds1742.c struct rtc_plat_data *pdata = priv; pdata 122 drivers/rtc/rtc-ds1742.c void __iomem *ioaddr = pdata->ioaddr_nvram; pdata 133 drivers/rtc/rtc-ds1742.c struct rtc_plat_data *pdata = priv; pdata 134 drivers/rtc/rtc-ds1742.c void __iomem *ioaddr = pdata->ioaddr_nvram; pdata 147 drivers/rtc/rtc-ds1742.c struct rtc_plat_data *pdata; pdata 157 drivers/rtc/rtc-ds1742.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 158 drivers/rtc/rtc-ds1742.c if (!pdata) pdata 166 drivers/rtc/rtc-ds1742.c pdata->ioaddr_nvram = ioaddr; pdata 167 drivers/rtc/rtc-ds1742.c pdata->ioaddr_rtc = ioaddr + resource_size(res) - RTC_SIZE; pdata 170 drivers/rtc/rtc-ds1742.c nvmem_cfg.priv = pdata; pdata 173 drivers/rtc/rtc-ds1742.c ioaddr = pdata->ioaddr_rtc; pdata 185 drivers/rtc/rtc-ds1742.c pdata->last_jiffies = jiffies; pdata 186 drivers/rtc/rtc-ds1742.c platform_set_drvdata(pdev, pdata); pdata 47 drivers/rtc/rtc-ds2404.c struct ds2404_platform_data *pdata) pdata 51 drivers/rtc/rtc-ds2404.c ds2404_gpio[DS2404_RST].gpio = pdata->gpio_rst; pdata 52 drivers/rtc/rtc-ds2404.c ds2404_gpio[DS2404_CLK].gpio = pdata->gpio_clk; pdata 53 drivers/rtc/rtc-ds2404.c ds2404_gpio[DS2404_DQ].gpio = pdata->gpio_dq; pdata 208 drivers/rtc/rtc-ds2404.c struct ds2404_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 220 drivers/rtc/rtc-ds2404.c retval = ds2404_gpio_map(chip, pdev, pdata); pdata 293 drivers/rtc/rtc-lp8788.c rtc->alarm = lp->pdata ? lp->pdata->alarm_sel : DEFAULT_ALARM_SEL; pdata 25 drivers/rtc/rtc-m48t59.c #define M48T59_READ(reg) (pdata->read_byte(dev, pdata->offset + reg)) pdata 27 drivers/rtc/rtc-m48t59.c (pdata->write_byte(dev, pdata->offset + reg, val)) pdata 65 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(dev); pdata 80 drivers/rtc/rtc-m48t59.c if ((pdata->type == M48T59RTC_TYPE_M48T59) && pdata 105 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(dev); pdata 135 drivers/rtc/rtc-m48t59.c if (pdata->type == M48T59RTC_TYPE_M48T59 && (year / 100)) pdata 151 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(dev); pdata 195 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(dev); pdata 255 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(dev); pdata 271 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(dev); pdata 291 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(dev); pdata 326 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(&pdev->dev); pdata 347 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(&pdev->dev); pdata 365 drivers/rtc/rtc-m48t59.c struct m48t59_plat_data *pdata = dev_get_platdata(&pdev->dev); pdata 391 drivers/rtc/rtc-m48t59.c if (!pdata || !pdata->write_byte || !pdata->read_byte) pdata 395 drivers/rtc/rtc-m48t59.c if (!pdata) { pdata 396 drivers/rtc/rtc-m48t59.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), pdata 398 drivers/rtc/rtc-m48t59.c if (!pdata) pdata 401 drivers/rtc/rtc-m48t59.c pdev->dev.platform_data = pdata; pdata 403 drivers/rtc/rtc-m48t59.c if (!pdata->type) pdata 404 drivers/rtc/rtc-m48t59.c pdata->type = M48T59RTC_TYPE_M48T59; pdata 407 drivers/rtc/rtc-m48t59.c if (!pdata->write_byte) pdata 408 drivers/rtc/rtc-m48t59.c pdata->write_byte = m48t59_mem_writeb; pdata 409 drivers/rtc/rtc-m48t59.c if (!pdata->read_byte) pdata 410 drivers/rtc/rtc-m48t59.c pdata->read_byte = m48t59_mem_readb; pdata 417 drivers/rtc/rtc-m48t59.c m48t59->ioaddr = pdata->ioaddr; pdata 441 drivers/rtc/rtc-m48t59.c switch (pdata->type) { pdata 444 drivers/rtc/rtc-m48t59.c pdata->offset = 0x1ff0; pdata 448 drivers/rtc/rtc-m48t59.c pdata->offset = 0x7f0; pdata 452 drivers/rtc/rtc-m48t59.c pdata->offset = 0x1ff0; pdata 469 drivers/rtc/rtc-m48t59.c nvmem_cfg.size = pdata->offset; pdata 250 drivers/rtc/rtc-max8998.c struct max8998_platform_data *pdata = max8998->pdata; pdata 292 drivers/rtc/rtc-max8998.c if (pdata && pdata->rtc_delay) { pdata 48 drivers/rtc/rtc-mv.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 49 drivers/rtc/rtc-mv.c void __iomem *ioaddr = pdata->ioaddr; pdata 68 drivers/rtc/rtc-mv.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 69 drivers/rtc/rtc-mv.c void __iomem *ioaddr = pdata->ioaddr; pdata 99 drivers/rtc/rtc-mv.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 100 drivers/rtc/rtc-mv.c void __iomem *ioaddr = pdata->ioaddr; pdata 132 drivers/rtc/rtc-mv.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 133 drivers/rtc/rtc-mv.c void __iomem *ioaddr = pdata->ioaddr; pdata 172 drivers/rtc/rtc-mv.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 173 drivers/rtc/rtc-mv.c void __iomem *ioaddr = pdata->ioaddr; pdata 175 drivers/rtc/rtc-mv.c if (pdata->irq < 0) pdata 187 drivers/rtc/rtc-mv.c struct rtc_plat_data *pdata = data; pdata 188 drivers/rtc/rtc-mv.c void __iomem *ioaddr = pdata->ioaddr; pdata 196 drivers/rtc/rtc-mv.c rtc_update_irq(pdata->rtc, 1, RTC_IRQF | RTC_AF); pdata 216 drivers/rtc/rtc-mv.c struct rtc_plat_data *pdata; pdata 220 drivers/rtc/rtc-mv.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 221 drivers/rtc/rtc-mv.c if (!pdata) pdata 225 drivers/rtc/rtc-mv.c pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res); pdata 226 drivers/rtc/rtc-mv.c if (IS_ERR(pdata->ioaddr)) pdata 227 drivers/rtc/rtc-mv.c return PTR_ERR(pdata->ioaddr); pdata 229 drivers/rtc/rtc-mv.c pdata->clk = devm_clk_get(&pdev->dev, NULL); pdata 231 drivers/rtc/rtc-mv.c if (!IS_ERR(pdata->clk)) pdata 232 drivers/rtc/rtc-mv.c clk_prepare_enable(pdata->clk); pdata 235 drivers/rtc/rtc-mv.c rtc_time = readl(pdata->ioaddr + RTC_TIME_REG_OFFS); pdata 245 drivers/rtc/rtc-mv.c rtc_time = readl(pdata->ioaddr + RTC_TIME_REG_OFFS); pdata 253 drivers/rtc/rtc-mv.c pdata->irq = platform_get_irq(pdev, 0); pdata 255 drivers/rtc/rtc-mv.c platform_set_drvdata(pdev, pdata); pdata 257 drivers/rtc/rtc-mv.c pdata->rtc = devm_rtc_allocate_device(&pdev->dev); pdata 258 drivers/rtc/rtc-mv.c if (IS_ERR(pdata->rtc)) { pdata 259 drivers/rtc/rtc-mv.c ret = PTR_ERR(pdata->rtc); pdata 263 drivers/rtc/rtc-mv.c if (pdata->irq >= 0) { pdata 264 drivers/rtc/rtc-mv.c writel(0, pdata->ioaddr + RTC_ALARM_INTERRUPT_MASK_REG_OFFS); pdata 265 drivers/rtc/rtc-mv.c if (devm_request_irq(&pdev->dev, pdata->irq, mv_rtc_interrupt, pdata 267 drivers/rtc/rtc-mv.c pdev->name, pdata) < 0) { pdata 269 drivers/rtc/rtc-mv.c pdata->irq = -1; pdata 273 drivers/rtc/rtc-mv.c if (pdata->irq >= 0) { pdata 275 drivers/rtc/rtc-mv.c pdata->rtc->ops = &mv_rtc_alarm_ops; pdata 277 drivers/rtc/rtc-mv.c pdata->rtc->ops = &mv_rtc_ops; pdata 280 drivers/rtc/rtc-mv.c pdata->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; pdata 281 drivers/rtc/rtc-mv.c pdata->rtc->range_max = RTC_TIMESTAMP_END_2099; pdata 283 drivers/rtc/rtc-mv.c ret = rtc_register_device(pdata->rtc); pdata 287 drivers/rtc/rtc-mv.c if (!IS_ERR(pdata->clk)) pdata 288 drivers/rtc/rtc-mv.c clk_disable_unprepare(pdata->clk); pdata 295 drivers/rtc/rtc-mv.c struct rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 297 drivers/rtc/rtc-mv.c if (pdata->irq >= 0) pdata 300 drivers/rtc/rtc-mv.c if (!IS_ERR(pdata->clk)) pdata 301 drivers/rtc/rtc-mv.c clk_disable_unprepare(pdata->clk); pdata 106 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 107 drivers/rtc/rtc-mxc.c void __iomem *ioaddr = pdata->ioaddr; pdata 135 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 136 drivers/rtc/rtc-mxc.c void __iomem *ioaddr = pdata->ioaddr; pdata 171 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 172 drivers/rtc/rtc-mxc.c void __iomem *ioaddr = pdata->ioaddr; pdata 184 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 185 drivers/rtc/rtc-mxc.c void __iomem *ioaddr = pdata->ioaddr; pdata 189 drivers/rtc/rtc-mxc.c spin_lock_irqsave(&pdata->rtc->irq_lock, flags); pdata 198 drivers/rtc/rtc-mxc.c spin_unlock_irqrestore(&pdata->rtc->irq_lock, flags); pdata 205 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 206 drivers/rtc/rtc-mxc.c void __iomem *ioaddr = pdata->ioaddr; pdata 211 drivers/rtc/rtc-mxc.c spin_lock_irqsave(&pdata->rtc->irq_lock, flags); pdata 226 drivers/rtc/rtc-mxc.c rtc_update_irq(pdata->rtc, 1, events); pdata 227 drivers/rtc/rtc-mxc.c spin_unlock_irqrestore(&pdata->rtc->irq_lock, flags); pdata 277 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 278 drivers/rtc/rtc-mxc.c void __iomem *ioaddr = pdata->ioaddr; pdata 291 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 295 drivers/rtc/rtc-mxc.c memcpy(&pdata->g_rtc_alarm, &alrm->time, sizeof(struct rtc_time)); pdata 313 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = NULL; pdata 319 drivers/rtc/rtc-mxc.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 320 drivers/rtc/rtc-mxc.c if (!pdata) pdata 325 drivers/rtc/rtc-mxc.c pdata->devtype = (enum imx_rtc_type)of_id->data; pdata 327 drivers/rtc/rtc-mxc.c pdata->devtype = pdev->id_entry->driver_data; pdata 329 drivers/rtc/rtc-mxc.c pdata->ioaddr = devm_platform_ioremap_resource(pdev, 0); pdata 330 drivers/rtc/rtc-mxc.c if (IS_ERR(pdata->ioaddr)) pdata 331 drivers/rtc/rtc-mxc.c return PTR_ERR(pdata->ioaddr); pdata 337 drivers/rtc/rtc-mxc.c pdata->rtc = rtc; pdata 339 drivers/rtc/rtc-mxc.c if (is_imx1_rtc(pdata)) { pdata 357 drivers/rtc/rtc-mxc.c pdata->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); pdata 358 drivers/rtc/rtc-mxc.c if (IS_ERR(pdata->clk_ipg)) { pdata 360 drivers/rtc/rtc-mxc.c return PTR_ERR(pdata->clk_ipg); pdata 363 drivers/rtc/rtc-mxc.c ret = clk_prepare_enable(pdata->clk_ipg); pdata 367 drivers/rtc/rtc-mxc.c pdata->clk_ref = devm_clk_get(&pdev->dev, "ref"); pdata 368 drivers/rtc/rtc-mxc.c if (IS_ERR(pdata->clk_ref)) { pdata 370 drivers/rtc/rtc-mxc.c ret = PTR_ERR(pdata->clk_ref); pdata 374 drivers/rtc/rtc-mxc.c ret = clk_prepare_enable(pdata->clk_ref); pdata 378 drivers/rtc/rtc-mxc.c rate = clk_get_rate(pdata->clk_ref); pdata 393 drivers/rtc/rtc-mxc.c writew(reg, (pdata->ioaddr + RTC_RTCCTL)); pdata 394 drivers/rtc/rtc-mxc.c if (((readw(pdata->ioaddr + RTC_RTCCTL)) & RTC_ENABLE_BIT) == 0) { pdata 400 drivers/rtc/rtc-mxc.c platform_set_drvdata(pdev, pdata); pdata 403 drivers/rtc/rtc-mxc.c pdata->irq = platform_get_irq(pdev, 0); pdata 405 drivers/rtc/rtc-mxc.c if (pdata->irq >= 0 && pdata 406 drivers/rtc/rtc-mxc.c devm_request_irq(&pdev->dev, pdata->irq, mxc_rtc_interrupt, pdata 409 drivers/rtc/rtc-mxc.c pdata->irq = -1; pdata 412 drivers/rtc/rtc-mxc.c if (pdata->irq >= 0) { pdata 414 drivers/rtc/rtc-mxc.c ret = dev_pm_set_wake_irq(&pdev->dev, pdata->irq); pdata 426 drivers/rtc/rtc-mxc.c clk_disable_unprepare(pdata->clk_ref); pdata 428 drivers/rtc/rtc-mxc.c clk_disable_unprepare(pdata->clk_ipg); pdata 435 drivers/rtc/rtc-mxc.c struct rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 437 drivers/rtc/rtc-mxc.c clk_disable_unprepare(pdata->clk_ref); pdata 438 drivers/rtc/rtc-mxc.c clk_disable_unprepare(pdata->clk_ipg); pdata 75 drivers/rtc/rtc-mxc_v2.c struct mxc_rtc_data *pdata = dev_get_drvdata(dev); pdata 76 drivers/rtc/rtc-mxc_v2.c void __iomem *ioaddr = pdata->ioaddr; pdata 81 drivers/rtc/rtc-mxc_v2.c spin_lock_irqsave(&pdata->lock, flags); pdata 82 drivers/rtc/rtc-mxc_v2.c if (clk_enable(pdata->clk)) { pdata 83 drivers/rtc/rtc-mxc_v2.c spin_unlock_irqrestore(&pdata->lock, flags); pdata 93 drivers/rtc/rtc-mxc_v2.c rtc_update_irq(pdata->rtc, 1, RTC_AF | RTC_IRQF); pdata 106 drivers/rtc/rtc-mxc_v2.c clk_disable(pdata->clk); pdata 107 drivers/rtc/rtc-mxc_v2.c spin_unlock_irqrestore(&pdata->lock, flags); pdata 115 drivers/rtc/rtc-mxc_v2.c static int mxc_rtc_lock(struct mxc_rtc_data *const pdata) pdata 119 drivers/rtc/rtc-mxc_v2.c spin_lock_irq(&pdata->lock); pdata 120 drivers/rtc/rtc-mxc_v2.c ret = clk_enable(pdata->clk); pdata 122 drivers/rtc/rtc-mxc_v2.c spin_unlock_irq(&pdata->lock); pdata 128 drivers/rtc/rtc-mxc_v2.c static int mxc_rtc_unlock(struct mxc_rtc_data *const pdata) pdata 130 drivers/rtc/rtc-mxc_v2.c clk_disable(pdata->clk); pdata 131 drivers/rtc/rtc-mxc_v2.c spin_unlock_irq(&pdata->lock); pdata 144 drivers/rtc/rtc-mxc_v2.c struct mxc_rtc_data *pdata = dev_get_drvdata(dev); pdata 145 drivers/rtc/rtc-mxc_v2.c const int clk_failed = clk_enable(pdata->clk); pdata 148 drivers/rtc/rtc-mxc_v2.c const time64_t now = readl(pdata->ioaddr + SRTC_LPSCMR); pdata 151 drivers/rtc/rtc-mxc_v2.c clk_disable(pdata->clk); pdata 166 drivers/rtc/rtc-mxc_v2.c struct mxc_rtc_data *pdata = dev_get_drvdata(dev); pdata 170 drivers/rtc/rtc-mxc_v2.c ret = mxc_rtc_lock(pdata); pdata 174 drivers/rtc/rtc-mxc_v2.c writel(time, pdata->ioaddr + SRTC_LPSCMR); pdata 175 drivers/rtc/rtc-mxc_v2.c mxc_rtc_sync_lp_locked(dev, pdata->ioaddr); pdata 176 drivers/rtc/rtc-mxc_v2.c return mxc_rtc_unlock(pdata); pdata 190 drivers/rtc/rtc-mxc_v2.c struct mxc_rtc_data *pdata = dev_get_drvdata(dev); pdata 191 drivers/rtc/rtc-mxc_v2.c void __iomem *ioaddr = pdata->ioaddr; pdata 194 drivers/rtc/rtc-mxc_v2.c ret = mxc_rtc_lock(pdata); pdata 200 drivers/rtc/rtc-mxc_v2.c return mxc_rtc_unlock(pdata); pdata 207 drivers/rtc/rtc-mxc_v2.c static void mxc_rtc_alarm_irq_enable_locked(struct mxc_rtc_data *pdata, pdata 210 drivers/rtc/rtc-mxc_v2.c u32 lp_cr = readl(pdata->ioaddr + SRTC_LPCR); pdata 217 drivers/rtc/rtc-mxc_v2.c writel(lp_cr, pdata->ioaddr + SRTC_LPCR); pdata 222 drivers/rtc/rtc-mxc_v2.c struct mxc_rtc_data *pdata = dev_get_drvdata(dev); pdata 223 drivers/rtc/rtc-mxc_v2.c int ret = mxc_rtc_lock(pdata); pdata 228 drivers/rtc/rtc-mxc_v2.c mxc_rtc_alarm_irq_enable_locked(pdata, enable); pdata 229 drivers/rtc/rtc-mxc_v2.c return mxc_rtc_unlock(pdata); pdata 242 drivers/rtc/rtc-mxc_v2.c struct mxc_rtc_data *pdata = dev_get_drvdata(dev); pdata 243 drivers/rtc/rtc-mxc_v2.c int ret = mxc_rtc_lock(pdata); pdata 248 drivers/rtc/rtc-mxc_v2.c writel((u32)time, pdata->ioaddr + SRTC_LPSAR); pdata 251 drivers/rtc/rtc-mxc_v2.c writel(SRTC_LPSR_ALP, pdata->ioaddr + SRTC_LPSR); pdata 252 drivers/rtc/rtc-mxc_v2.c mxc_rtc_sync_lp_locked(dev, pdata->ioaddr); pdata 254 drivers/rtc/rtc-mxc_v2.c mxc_rtc_alarm_irq_enable_locked(pdata, alrm->enabled); pdata 255 drivers/rtc/rtc-mxc_v2.c mxc_rtc_sync_lp_locked(dev, pdata->ioaddr); pdata 256 drivers/rtc/rtc-mxc_v2.c mxc_rtc_unlock(pdata); pdata 281 drivers/rtc/rtc-mxc_v2.c struct mxc_rtc_data *pdata; pdata 285 drivers/rtc/rtc-mxc_v2.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 286 drivers/rtc/rtc-mxc_v2.c if (!pdata) pdata 289 drivers/rtc/rtc-mxc_v2.c pdata->ioaddr = devm_platform_ioremap_resource(pdev, 0); pdata 290 drivers/rtc/rtc-mxc_v2.c if (IS_ERR(pdata->ioaddr)) pdata 291 drivers/rtc/rtc-mxc_v2.c return PTR_ERR(pdata->ioaddr); pdata 293 drivers/rtc/rtc-mxc_v2.c ioaddr = pdata->ioaddr; pdata 295 drivers/rtc/rtc-mxc_v2.c pdata->clk = devm_clk_get(&pdev->dev, NULL); pdata 296 drivers/rtc/rtc-mxc_v2.c if (IS_ERR(pdata->clk)) { pdata 298 drivers/rtc/rtc-mxc_v2.c return PTR_ERR(pdata->clk); pdata 301 drivers/rtc/rtc-mxc_v2.c spin_lock_init(&pdata->lock); pdata 302 drivers/rtc/rtc-mxc_v2.c pdata->irq = platform_get_irq(pdev, 0); pdata 303 drivers/rtc/rtc-mxc_v2.c if (pdata->irq < 0) pdata 304 drivers/rtc/rtc-mxc_v2.c return pdata->irq; pdata 307 drivers/rtc/rtc-mxc_v2.c ret = dev_pm_set_wake_irq(&pdev->dev, pdata->irq); pdata 311 drivers/rtc/rtc-mxc_v2.c ret = clk_prepare_enable(pdata->clk); pdata 325 drivers/rtc/rtc-mxc_v2.c clk_disable_unprepare(pdata->clk); pdata 335 drivers/rtc/rtc-mxc_v2.c clk_disable_unprepare(pdata->clk); pdata 339 drivers/rtc/rtc-mxc_v2.c pdata->rtc = devm_rtc_allocate_device(&pdev->dev); pdata 340 drivers/rtc/rtc-mxc_v2.c if (IS_ERR(pdata->rtc)) pdata 341 drivers/rtc/rtc-mxc_v2.c return PTR_ERR(pdata->rtc); pdata 343 drivers/rtc/rtc-mxc_v2.c pdata->rtc->ops = &mxc_rtc_ops; pdata 344 drivers/rtc/rtc-mxc_v2.c pdata->rtc->range_max = U32_MAX; pdata 346 drivers/rtc/rtc-mxc_v2.c clk_disable(pdata->clk); pdata 347 drivers/rtc/rtc-mxc_v2.c platform_set_drvdata(pdev, pdata); pdata 349 drivers/rtc/rtc-mxc_v2.c devm_request_irq(&pdev->dev, pdata->irq, mxc_rtc_interrupt, 0, pdata 353 drivers/rtc/rtc-mxc_v2.c clk_unprepare(pdata->clk); pdata 357 drivers/rtc/rtc-mxc_v2.c ret = rtc_register_device(pdata->rtc); pdata 359 drivers/rtc/rtc-mxc_v2.c clk_unprepare(pdata->clk); pdata 366 drivers/rtc/rtc-mxc_v2.c struct mxc_rtc_data *pdata = platform_get_drvdata(pdev); pdata 368 drivers/rtc/rtc-mxc_v2.c clk_disable_unprepare(pdata->clk); pdata 65 drivers/rtc/rtc-pic32.c static void pic32_rtc_alarm_clk_enable(struct pic32_rtc_dev *pdata, pdata 70 drivers/rtc/rtc-pic32.c spin_lock_irqsave(&pdata->alarm_lock, flags); pdata 72 drivers/rtc/rtc-pic32.c if (!pdata->alarm_clk_enabled) { pdata 73 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 74 drivers/rtc/rtc-pic32.c pdata->alarm_clk_enabled = true; pdata 77 drivers/rtc/rtc-pic32.c if (pdata->alarm_clk_enabled) { pdata 78 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 79 drivers/rtc/rtc-pic32.c pdata->alarm_clk_enabled = false; pdata 82 drivers/rtc/rtc-pic32.c spin_unlock_irqrestore(&pdata->alarm_lock, flags); pdata 87 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = (struct pic32_rtc_dev *)id; pdata 89 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 90 drivers/rtc/rtc-pic32.c rtc_update_irq(pdata->rtc, 1, RTC_AF | RTC_IRQF); pdata 91 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 93 drivers/rtc/rtc-pic32.c pic32_rtc_alarm_clk_enable(pdata, false); pdata 100 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = dev_get_drvdata(dev); pdata 101 drivers/rtc/rtc-pic32.c void __iomem *base = pdata->reg_base; pdata 103 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 109 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 111 drivers/rtc/rtc-pic32.c pic32_rtc_alarm_clk_enable(pdata, enabled); pdata 118 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = dev_get_drvdata(dev); pdata 119 drivers/rtc/rtc-pic32.c void __iomem *base = pdata->reg_base; pdata 121 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 127 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 134 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = dev_get_drvdata(dev); pdata 135 drivers/rtc/rtc-pic32.c void __iomem *base = pdata->reg_base; pdata 138 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 167 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 173 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = dev_get_drvdata(dev); pdata 174 drivers/rtc/rtc-pic32.c void __iomem *base = pdata->reg_base; pdata 178 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 185 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 192 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = dev_get_drvdata(dev); pdata 194 drivers/rtc/rtc-pic32.c void __iomem *base = pdata->reg_base; pdata 197 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 218 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 224 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = dev_get_drvdata(dev); pdata 226 drivers/rtc/rtc-pic32.c void __iomem *base = pdata->reg_base; pdata 228 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 236 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 242 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = dev_get_drvdata(dev); pdata 243 drivers/rtc/rtc-pic32.c void __iomem *base = pdata->reg_base; pdata 246 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 252 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 265 drivers/rtc/rtc-pic32.c static void pic32_rtc_enable(struct pic32_rtc_dev *pdata, int en) pdata 267 drivers/rtc/rtc-pic32.c void __iomem *base = pdata->reg_base; pdata 272 drivers/rtc/rtc-pic32.c clk_enable(pdata->clk); pdata 284 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 289 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata = platform_get_drvdata(pdev); pdata 292 drivers/rtc/rtc-pic32.c clk_unprepare(pdata->clk); pdata 293 drivers/rtc/rtc-pic32.c pdata->clk = NULL; pdata 300 drivers/rtc/rtc-pic32.c struct pic32_rtc_dev *pdata; pdata 304 drivers/rtc/rtc-pic32.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 305 drivers/rtc/rtc-pic32.c if (!pdata) pdata 308 drivers/rtc/rtc-pic32.c platform_set_drvdata(pdev, pdata); pdata 310 drivers/rtc/rtc-pic32.c pdata->alarm_irq = platform_get_irq(pdev, 0); pdata 311 drivers/rtc/rtc-pic32.c if (pdata->alarm_irq < 0) pdata 312 drivers/rtc/rtc-pic32.c return pdata->alarm_irq; pdata 315 drivers/rtc/rtc-pic32.c pdata->reg_base = devm_ioremap_resource(&pdev->dev, res); pdata 316 drivers/rtc/rtc-pic32.c if (IS_ERR(pdata->reg_base)) pdata 317 drivers/rtc/rtc-pic32.c return PTR_ERR(pdata->reg_base); pdata 319 drivers/rtc/rtc-pic32.c pdata->clk = devm_clk_get(&pdev->dev, NULL); pdata 320 drivers/rtc/rtc-pic32.c if (IS_ERR(pdata->clk)) { pdata 322 drivers/rtc/rtc-pic32.c ret = PTR_ERR(pdata->clk); pdata 323 drivers/rtc/rtc-pic32.c pdata->clk = NULL; pdata 327 drivers/rtc/rtc-pic32.c spin_lock_init(&pdata->alarm_lock); pdata 329 drivers/rtc/rtc-pic32.c clk_prepare_enable(pdata->clk); pdata 331 drivers/rtc/rtc-pic32.c pic32_rtc_enable(pdata, 1); pdata 335 drivers/rtc/rtc-pic32.c pdata->rtc = devm_rtc_allocate_device(&pdev->dev); pdata 336 drivers/rtc/rtc-pic32.c if (IS_ERR(pdata->rtc)) pdata 337 drivers/rtc/rtc-pic32.c return PTR_ERR(pdata->rtc); pdata 339 drivers/rtc/rtc-pic32.c pdata->rtc->ops = &pic32_rtcops; pdata 340 drivers/rtc/rtc-pic32.c pdata->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; pdata 341 drivers/rtc/rtc-pic32.c pdata->rtc->range_max = RTC_TIMESTAMP_END_2099; pdata 343 drivers/rtc/rtc-pic32.c ret = rtc_register_device(pdata->rtc); pdata 347 drivers/rtc/rtc-pic32.c pdata->rtc->max_user_freq = 128; pdata 350 drivers/rtc/rtc-pic32.c ret = devm_request_irq(&pdev->dev, pdata->alarm_irq, pdata 352 drivers/rtc/rtc-pic32.c dev_name(&pdev->dev), pdata); pdata 355 drivers/rtc/rtc-pic32.c "IRQ %d error %d\n", pdata->alarm_irq, ret); pdata 359 drivers/rtc/rtc-pic32.c clk_disable(pdata->clk); pdata 364 drivers/rtc/rtc-pic32.c pic32_rtc_enable(pdata, 0); pdata 365 drivers/rtc/rtc-pic32.c clk_disable_unprepare(pdata->clk); pdata 62 drivers/rtc/rtc-rs5c348.c struct rs5c348_plat_data *pdata = dev_get_platdata(&spi->dev); pdata 87 drivers/rtc/rtc-rs5c348.c if (pdata->rtc_24h) { pdata 109 drivers/rtc/rtc-rs5c348.c struct rs5c348_plat_data *pdata = dev_get_platdata(&spi->dev); pdata 140 drivers/rtc/rtc-rs5c348.c if (!pdata->rtc_24h) { pdata 168 drivers/rtc/rtc-rs5c348.c struct rs5c348_plat_data *pdata; pdata 170 drivers/rtc/rtc-rs5c348.c pdata = devm_kzalloc(&spi->dev, sizeof(struct rs5c348_plat_data), pdata 172 drivers/rtc/rtc-rs5c348.c if (!pdata) pdata 174 drivers/rtc/rtc-rs5c348.c spi->dev.platform_data = pdata; pdata 190 drivers/rtc/rtc-rs5c348.c pdata->rtc_24h = 1; pdata 196 drivers/rtc/rtc-rs5c348.c pdata->rtc = rtc; pdata 716 drivers/rtc/rtc-s5m.c struct sec_platform_data *pdata = s5m87xx->pdata; pdata 721 drivers/rtc/rtc-s5m.c if (!pdata) { pdata 238 drivers/rtc/rtc-sirfsoc.c static irqreturn_t sirfsoc_rtc_irq_handler(int irq, void *pdata) pdata 240 drivers/rtc/rtc-sirfsoc.c struct sirfsoc_rtc_drv *rtcdrv = pdata; pdata 74 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 75 drivers/rtc/rtc-stk17ta8.c void __iomem *ioaddr = pdata->ioaddr; pdata 78 drivers/rtc/rtc-stk17ta8.c flags = readb(pdata->ioaddr + RTC_FLAGS); pdata 79 drivers/rtc/rtc-stk17ta8.c writeb(flags | RTC_WRITE, pdata->ioaddr + RTC_FLAGS); pdata 90 drivers/rtc/rtc-stk17ta8.c writeb(flags & ~RTC_WRITE, pdata->ioaddr + RTC_FLAGS); pdata 96 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 97 drivers/rtc/rtc-stk17ta8.c void __iomem *ioaddr = pdata->ioaddr; pdata 103 drivers/rtc/rtc-stk17ta8.c if (pdata->last_jiffies == jiffies) pdata 105 drivers/rtc/rtc-stk17ta8.c pdata->last_jiffies = jiffies; pdata 107 drivers/rtc/rtc-stk17ta8.c flags = readb(pdata->ioaddr + RTC_FLAGS); pdata 130 drivers/rtc/rtc-stk17ta8.c static void stk17ta8_rtc_update_alarm(struct rtc_plat_data *pdata) pdata 132 drivers/rtc/rtc-stk17ta8.c void __iomem *ioaddr = pdata->ioaddr; pdata 136 drivers/rtc/rtc-stk17ta8.c spin_lock_irqsave(&pdata->lock, irqflags); pdata 141 drivers/rtc/rtc-stk17ta8.c writeb(pdata->alrm_mday < 0 || (pdata->irqen & RTC_UF) ? pdata 142 drivers/rtc/rtc-stk17ta8.c 0x80 : bin2bcd(pdata->alrm_mday), pdata 144 drivers/rtc/rtc-stk17ta8.c writeb(pdata->alrm_hour < 0 || (pdata->irqen & RTC_UF) ? pdata 145 drivers/rtc/rtc-stk17ta8.c 0x80 : bin2bcd(pdata->alrm_hour), pdata 147 drivers/rtc/rtc-stk17ta8.c writeb(pdata->alrm_min < 0 || (pdata->irqen & RTC_UF) ? pdata 148 drivers/rtc/rtc-stk17ta8.c 0x80 : bin2bcd(pdata->alrm_min), pdata 150 drivers/rtc/rtc-stk17ta8.c writeb(pdata->alrm_sec < 0 || (pdata->irqen & RTC_UF) ? pdata 151 drivers/rtc/rtc-stk17ta8.c 0x80 : bin2bcd(pdata->alrm_sec), pdata 153 drivers/rtc/rtc-stk17ta8.c writeb(pdata->irqen ? RTC_INTS_AIE : 0, ioaddr + RTC_INTERRUPTS); pdata 156 drivers/rtc/rtc-stk17ta8.c spin_unlock_irqrestore(&pdata->lock, irqflags); pdata 161 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 163 drivers/rtc/rtc-stk17ta8.c if (pdata->irq <= 0) pdata 165 drivers/rtc/rtc-stk17ta8.c pdata->alrm_mday = alrm->time.tm_mday; pdata 166 drivers/rtc/rtc-stk17ta8.c pdata->alrm_hour = alrm->time.tm_hour; pdata 167 drivers/rtc/rtc-stk17ta8.c pdata->alrm_min = alrm->time.tm_min; pdata 168 drivers/rtc/rtc-stk17ta8.c pdata->alrm_sec = alrm->time.tm_sec; pdata 170 drivers/rtc/rtc-stk17ta8.c pdata->irqen |= RTC_AF; pdata 171 drivers/rtc/rtc-stk17ta8.c stk17ta8_rtc_update_alarm(pdata); pdata 177 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 179 drivers/rtc/rtc-stk17ta8.c if (pdata->irq <= 0) pdata 181 drivers/rtc/rtc-stk17ta8.c alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; pdata 182 drivers/rtc/rtc-stk17ta8.c alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; pdata 183 drivers/rtc/rtc-stk17ta8.c alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; pdata 184 drivers/rtc/rtc-stk17ta8.c alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; pdata 185 drivers/rtc/rtc-stk17ta8.c alrm->enabled = (pdata->irqen & RTC_AF) ? 1 : 0; pdata 192 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 193 drivers/rtc/rtc-stk17ta8.c void __iomem *ioaddr = pdata->ioaddr; pdata 196 drivers/rtc/rtc-stk17ta8.c spin_lock(&pdata->lock); pdata 204 drivers/rtc/rtc-stk17ta8.c rtc_update_irq(pdata->rtc, 1, events); pdata 206 drivers/rtc/rtc-stk17ta8.c spin_unlock(&pdata->lock); pdata 213 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 215 drivers/rtc/rtc-stk17ta8.c if (pdata->irq <= 0) pdata 218 drivers/rtc/rtc-stk17ta8.c pdata->irqen |= RTC_AF; pdata 220 drivers/rtc/rtc-stk17ta8.c pdata->irqen &= ~RTC_AF; pdata 221 drivers/rtc/rtc-stk17ta8.c stk17ta8_rtc_update_alarm(pdata); pdata 236 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata = priv; pdata 237 drivers/rtc/rtc-stk17ta8.c void __iomem *ioaddr = pdata->ioaddr; pdata 248 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata = priv; pdata 249 drivers/rtc/rtc-stk17ta8.c void __iomem *ioaddr = pdata->ioaddr; pdata 262 drivers/rtc/rtc-stk17ta8.c struct rtc_plat_data *pdata; pdata 274 drivers/rtc/rtc-stk17ta8.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 275 drivers/rtc/rtc-stk17ta8.c if (!pdata) pdata 282 drivers/rtc/rtc-stk17ta8.c pdata->ioaddr = ioaddr; pdata 283 drivers/rtc/rtc-stk17ta8.c pdata->irq = platform_get_irq(pdev, 0); pdata 297 drivers/rtc/rtc-stk17ta8.c spin_lock_init(&pdata->lock); pdata 298 drivers/rtc/rtc-stk17ta8.c pdata->last_jiffies = jiffies; pdata 299 drivers/rtc/rtc-stk17ta8.c platform_set_drvdata(pdev, pdata); pdata 300 drivers/rtc/rtc-stk17ta8.c if (pdata->irq > 0) { pdata 302 drivers/rtc/rtc-stk17ta8.c if (devm_request_irq(&pdev->dev, pdata->irq, pdata 307 drivers/rtc/rtc-stk17ta8.c pdata->irq = 0; pdata 311 drivers/rtc/rtc-stk17ta8.c pdata->rtc = devm_rtc_allocate_device(&pdev->dev); pdata 312 drivers/rtc/rtc-stk17ta8.c if (IS_ERR(pdata->rtc)) pdata 313 drivers/rtc/rtc-stk17ta8.c return PTR_ERR(pdata->rtc); pdata 315 drivers/rtc/rtc-stk17ta8.c pdata->rtc->ops = &stk17ta8_rtc_ops; pdata 316 drivers/rtc/rtc-stk17ta8.c pdata->rtc->nvram_old_abi = true; pdata 318 drivers/rtc/rtc-stk17ta8.c nvmem_cfg.priv = pdata; pdata 319 drivers/rtc/rtc-stk17ta8.c ret = rtc_nvmem_register(pdata->rtc, &nvmem_cfg); pdata 323 drivers/rtc/rtc-stk17ta8.c return rtc_register_device(pdata->rtc); pdata 62 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 63 drivers/rtc/rtc-tx4939.c struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; pdata 74 drivers/rtc/rtc-tx4939.c spin_lock_irq(&pdata->lock); pdata 81 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 87 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 88 drivers/rtc/rtc-tx4939.c struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; pdata 93 drivers/rtc/rtc-tx4939.c spin_lock_irq(&pdata->lock); pdata 98 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 104 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 113 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 114 drivers/rtc/rtc-tx4939.c struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; pdata 126 drivers/rtc/rtc-tx4939.c spin_lock_irq(&pdata->lock); pdata 132 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 138 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 139 drivers/rtc/rtc-tx4939.c struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; pdata 145 drivers/rtc/rtc-tx4939.c spin_lock_irq(&pdata->lock); pdata 150 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 159 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 168 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = dev_get_drvdata(dev); pdata 170 drivers/rtc/rtc-tx4939.c spin_lock_irq(&pdata->lock); pdata 171 drivers/rtc/rtc-tx4939.c tx4939_rtc_cmd(pdata->rtcreg, pdata 174 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 180 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = dev_get_drvdata(dev_id); pdata 181 drivers/rtc/rtc-tx4939.c struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; pdata 184 drivers/rtc/rtc-tx4939.c spin_lock(&pdata->lock); pdata 189 drivers/rtc/rtc-tx4939.c spin_unlock(&pdata->lock); pdata 190 drivers/rtc/rtc-tx4939.c rtc_update_irq(pdata->rtc, 1, events); pdata 206 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = priv; pdata 207 drivers/rtc/rtc-tx4939.c struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; pdata 210 drivers/rtc/rtc-tx4939.c spin_lock_irq(&pdata->lock); pdata 215 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 222 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = priv; pdata 223 drivers/rtc/rtc-tx4939.c struct tx4939_rtc_reg __iomem *rtcreg = pdata->rtcreg; pdata 226 drivers/rtc/rtc-tx4939.c spin_lock_irq(&pdata->lock); pdata 231 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 238 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata; pdata 251 drivers/rtc/rtc-tx4939.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 252 drivers/rtc/rtc-tx4939.c if (!pdata) pdata 254 drivers/rtc/rtc-tx4939.c platform_set_drvdata(pdev, pdata); pdata 257 drivers/rtc/rtc-tx4939.c pdata->rtcreg = devm_ioremap_resource(&pdev->dev, res); pdata 258 drivers/rtc/rtc-tx4939.c if (IS_ERR(pdata->rtcreg)) pdata 259 drivers/rtc/rtc-tx4939.c return PTR_ERR(pdata->rtcreg); pdata 261 drivers/rtc/rtc-tx4939.c spin_lock_init(&pdata->lock); pdata 262 drivers/rtc/rtc-tx4939.c tx4939_rtc_cmd(pdata->rtcreg, TX4939_RTCCTL_COMMAND_NOP); pdata 274 drivers/rtc/rtc-tx4939.c pdata->rtc = rtc; pdata 276 drivers/rtc/rtc-tx4939.c nvmem_cfg.priv = pdata; pdata 286 drivers/rtc/rtc-tx4939.c struct tx4939rtc_plat_data *pdata = platform_get_drvdata(pdev); pdata 288 drivers/rtc/rtc-tx4939.c spin_lock_irq(&pdata->lock); pdata 289 drivers/rtc/rtc-tx4939.c tx4939_rtc_cmd(pdata->rtcreg, TX4939_RTCCTL_COMMAND_NOP); pdata 290 drivers/rtc/rtc-tx4939.c spin_unlock_irq(&pdata->lock); pdata 37 drivers/rtc/rtc-v3020.c struct v3020_platform_data *pdata); pdata 63 drivers/rtc/rtc-v3020.c struct v3020_platform_data *pdata) pdata 71 drivers/rtc/rtc-v3020.c chip->leftshift = pdata->leftshift; pdata 109 drivers/rtc/rtc-v3020.c struct v3020_platform_data *pdata) pdata 113 drivers/rtc/rtc-v3020.c v3020_gpio[V3020_CS].gpio = pdata->gpio_cs; pdata 114 drivers/rtc/rtc-v3020.c v3020_gpio[V3020_WR].gpio = pdata->gpio_wr; pdata 115 drivers/rtc/rtc-v3020.c v3020_gpio[V3020_RD].gpio = pdata->gpio_rd; pdata 116 drivers/rtc/rtc-v3020.c v3020_gpio[V3020_IO].gpio = pdata->gpio_io; pdata 283 drivers/rtc/rtc-v3020.c struct v3020_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 293 drivers/rtc/rtc-v3020.c if (pdata->use_gpio) pdata 298 drivers/rtc/rtc-v3020.c retval = chip->ops->map_io(chip, pdev, pdata); pdata 319 drivers/rtc/rtc-v3020.c if (pdata->use_gpio) pdata 46 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); pdata 48 drivers/rtc/rtc-xgene.c rtc_time64_to_tm(readl(pdata->csr_base + RTC_CCVR), tm); pdata 54 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); pdata 60 drivers/rtc/rtc-xgene.c writel((u32)rtc_tm_to_time64(tm), pdata->csr_base + RTC_CLR); pdata 61 drivers/rtc/rtc-xgene.c readl(pdata->csr_base + RTC_CLR); /* Force a barrier */ pdata 68 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); pdata 72 drivers/rtc/rtc-xgene.c alrm->enabled = readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE; pdata 79 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); pdata 82 drivers/rtc/rtc-xgene.c ccr = readl(pdata->csr_base + RTC_CCR); pdata 90 drivers/rtc/rtc-xgene.c writel(ccr, pdata->csr_base + RTC_CCR); pdata 97 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); pdata 99 drivers/rtc/rtc-xgene.c return readl(pdata->csr_base + RTC_CCR) & RTC_CCR_IE ? 1 : 0; pdata 104 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = dev_get_drvdata(dev); pdata 106 drivers/rtc/rtc-xgene.c writel((u32)rtc_tm_to_time64(&alrm->time), pdata->csr_base + RTC_CMR); pdata 123 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = id; pdata 126 drivers/rtc/rtc-xgene.c if (!(readl(pdata->csr_base + RTC_STAT) & RTC_STAT_BIT)) pdata 130 drivers/rtc/rtc-xgene.c readl(pdata->csr_base + RTC_EOI); pdata 132 drivers/rtc/rtc-xgene.c rtc_update_irq(pdata->rtc, 1, RTC_IRQF | RTC_AF); pdata 139 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata; pdata 144 drivers/rtc/rtc-xgene.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 145 drivers/rtc/rtc-xgene.c if (!pdata) pdata 147 drivers/rtc/rtc-xgene.c platform_set_drvdata(pdev, pdata); pdata 148 drivers/rtc/rtc-xgene.c pdata->dev = &pdev->dev; pdata 151 drivers/rtc/rtc-xgene.c pdata->csr_base = devm_ioremap_resource(&pdev->dev, res); pdata 152 drivers/rtc/rtc-xgene.c if (IS_ERR(pdata->csr_base)) pdata 153 drivers/rtc/rtc-xgene.c return PTR_ERR(pdata->csr_base); pdata 155 drivers/rtc/rtc-xgene.c pdata->rtc = devm_rtc_allocate_device(&pdev->dev); pdata 156 drivers/rtc/rtc-xgene.c if (IS_ERR(pdata->rtc)) pdata 157 drivers/rtc/rtc-xgene.c return PTR_ERR(pdata->rtc); pdata 163 drivers/rtc/rtc-xgene.c dev_name(&pdev->dev), pdata); pdata 169 drivers/rtc/rtc-xgene.c pdata->clk = devm_clk_get(&pdev->dev, NULL); pdata 170 drivers/rtc/rtc-xgene.c if (IS_ERR(pdata->clk)) { pdata 174 drivers/rtc/rtc-xgene.c ret = clk_prepare_enable(pdata->clk); pdata 179 drivers/rtc/rtc-xgene.c writel(RTC_CCR_EN, pdata->csr_base + RTC_CCR); pdata 183 drivers/rtc/rtc-xgene.c clk_disable_unprepare(pdata->clk); pdata 188 drivers/rtc/rtc-xgene.c pdata->rtc->uie_unsupported = 1; pdata 189 drivers/rtc/rtc-xgene.c pdata->rtc->ops = &xgene_rtc_ops; pdata 190 drivers/rtc/rtc-xgene.c pdata->rtc->range_max = U32_MAX; pdata 192 drivers/rtc/rtc-xgene.c ret = rtc_register_device(pdata->rtc); pdata 194 drivers/rtc/rtc-xgene.c clk_disable_unprepare(pdata->clk); pdata 203 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = platform_get_drvdata(pdev); pdata 207 drivers/rtc/rtc-xgene.c clk_disable_unprepare(pdata->clk); pdata 214 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = platform_get_drvdata(pdev); pdata 226 drivers/rtc/rtc-xgene.c pdata->irq_wake = 1; pdata 228 drivers/rtc/rtc-xgene.c pdata->irq_enabled = xgene_rtc_alarm_irq_enabled(dev); pdata 230 drivers/rtc/rtc-xgene.c clk_disable_unprepare(pdata->clk); pdata 238 drivers/rtc/rtc-xgene.c struct xgene_rtc_dev *pdata = platform_get_drvdata(pdev); pdata 245 drivers/rtc/rtc-xgene.c if (pdata->irq_wake) { pdata 247 drivers/rtc/rtc-xgene.c pdata->irq_wake = 0; pdata 250 drivers/rtc/rtc-xgene.c rc = clk_prepare_enable(pdata->clk); pdata 255 drivers/rtc/rtc-xgene.c xgene_rtc_alarm_irq_enable(dev, pdata->irq_enabled); pdata 6923 drivers/scsi/aic7xxx/aic79xx_core.c struct scb_platform_data *pdata; pdata 6930 drivers/scsi/aic7xxx/aic79xx_core.c pdata = kmalloc(sizeof(*pdata), GFP_ATOMIC); pdata 6931 drivers/scsi/aic7xxx/aic79xx_core.c if (pdata == NULL) { pdata 6935 drivers/scsi/aic7xxx/aic79xx_core.c next_scb->platform_data = pdata; pdata 5000 drivers/scsi/aic7xxx/aic7xxx_core.c struct scb_platform_data *pdata; pdata 5002 drivers/scsi/aic7xxx/aic7xxx_core.c pdata = kmalloc(sizeof(*pdata), GFP_ATOMIC); pdata 5003 drivers/scsi/aic7xxx/aic7xxx_core.c if (pdata == NULL) pdata 5005 drivers/scsi/aic7xxx/aic7xxx_core.c next_scb->platform_data = pdata; pdata 1408 drivers/scsi/be2iscsi/be_main.c struct pdu_base *phdr, void *pdata, unsigned int dlen) pdata 1420 drivers/scsi/be2iscsi/be_main.c pdata = NULL; pdata 1426 drivers/scsi/be2iscsi/be_main.c WARN_ON(!pdata); pdata 1446 drivers/scsi/be2iscsi/be_main.c __iscsi_complete_pdu(conn, (struct iscsi_hdr *)phdr, pdata, dlen); pdata 1594 drivers/scsi/be2iscsi/be_main.c void *phdr = NULL, *pdata = NULL; pdata 1608 drivers/scsi/be2iscsi/be_main.c if (!pdata) { pdata 1609 drivers/scsi/be2iscsi/be_main.c pdata = pasync_handle->pbuffer; pdata 1617 drivers/scsi/be2iscsi/be_main.c memcpy(pdata + dlen, pasync_handle->pbuffer, pdata 1633 drivers/scsi/be2iscsi/be_main.c status = beiscsi_complete_pdu(beiscsi_conn, phdr, pdata, dlen); pdata 4116 drivers/scsi/ips.c mdata.pdata.pg3.PageCode = 3; pdata 4117 drivers/scsi/ips.c mdata.pdata.pg3.PageLength = sizeof (IPS_SCSI_MODE_PAGE3); pdata 4119 drivers/scsi/ips.c 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg3.PageLength; pdata 4120 drivers/scsi/ips.c mdata.pdata.pg3.TracksPerZone = 0; pdata 4121 drivers/scsi/ips.c mdata.pdata.pg3.AltSectorsPerZone = 0; pdata 4122 drivers/scsi/ips.c mdata.pdata.pg3.AltTracksPerZone = 0; pdata 4123 drivers/scsi/ips.c mdata.pdata.pg3.AltTracksPerVolume = 0; pdata 4124 drivers/scsi/ips.c mdata.pdata.pg3.SectorsPerTrack = cpu_to_be16(sectors); pdata 4125 drivers/scsi/ips.c mdata.pdata.pg3.BytesPerSector = cpu_to_be16(IPS_BLKSIZE); pdata 4126 drivers/scsi/ips.c mdata.pdata.pg3.Interleave = cpu_to_be16(1); pdata 4127 drivers/scsi/ips.c mdata.pdata.pg3.TrackSkew = 0; pdata 4128 drivers/scsi/ips.c mdata.pdata.pg3.CylinderSkew = 0; pdata 4129 drivers/scsi/ips.c mdata.pdata.pg3.flags = IPS_SCSI_MP3_SoftSector; pdata 4133 drivers/scsi/ips.c mdata.pdata.pg4.PageCode = 4; pdata 4134 drivers/scsi/ips.c mdata.pdata.pg4.PageLength = sizeof (IPS_SCSI_MODE_PAGE4); pdata 4136 drivers/scsi/ips.c 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg4.PageLength; pdata 4137 drivers/scsi/ips.c mdata.pdata.pg4.CylindersHigh = pdata 4139 drivers/scsi/ips.c mdata.pdata.pg4.CylindersLow = (cylinders & 0xFF); pdata 4140 drivers/scsi/ips.c mdata.pdata.pg4.Heads = heads; pdata 4141 drivers/scsi/ips.c mdata.pdata.pg4.WritePrecompHigh = 0; pdata 4142 drivers/scsi/ips.c mdata.pdata.pg4.WritePrecompLow = 0; pdata 4143 drivers/scsi/ips.c mdata.pdata.pg4.ReducedWriteCurrentHigh = 0; pdata 4144 drivers/scsi/ips.c mdata.pdata.pg4.ReducedWriteCurrentLow = 0; pdata 4145 drivers/scsi/ips.c mdata.pdata.pg4.StepRate = cpu_to_be16(1); pdata 4146 drivers/scsi/ips.c mdata.pdata.pg4.LandingZoneHigh = 0; pdata 4147 drivers/scsi/ips.c mdata.pdata.pg4.LandingZoneLow = 0; pdata 4148 drivers/scsi/ips.c mdata.pdata.pg4.flags = 0; pdata 4149 drivers/scsi/ips.c mdata.pdata.pg4.RotationalOffset = 0; pdata 4150 drivers/scsi/ips.c mdata.pdata.pg4.MediumRotationRate = 0; pdata 4153 drivers/scsi/ips.c mdata.pdata.pg8.PageCode = 8; pdata 4154 drivers/scsi/ips.c mdata.pdata.pg8.PageLength = sizeof (IPS_SCSI_MODE_PAGE8); pdata 4156 drivers/scsi/ips.c 3 + mdata.hdr.BlockDescLength + mdata.pdata.pg8.PageLength; pdata 919 drivers/scsi/ips.h } pdata; pdata 141 drivers/spi/spi-ath79.c struct ath79_spi_platform_data *pdata; pdata 155 drivers/spi/spi-ath79.c pdata = dev_get_platdata(&pdev->dev); pdata 161 drivers/spi/spi-ath79.c if (pdata) { pdata 162 drivers/spi/spi-ath79.c master->bus_num = pdata->bus_num; pdata 163 drivers/spi/spi-ath79.c master->num_chipselect = pdata->num_chipselect; pdata 71 drivers/spi/spi-au1550.c struct au1550_spi_info *pdata; pdata 104 drivers/spi/spi-au1550.c u32 mainclk_hz = hw->pdata->mainclk_hz; pdata 169 drivers/spi/spi-au1550.c if (hw->pdata->deactivate_cs) pdata 170 drivers/spi/spi-au1550.c hw->pdata->deactivate_cs(hw->pdata, spi->chip_select, pdata 214 drivers/spi/spi-au1550.c if (hw->pdata->activate_cs) pdata 215 drivers/spi/spi-au1550.c hw->pdata->activate_cs(hw->pdata, spi->chip_select, pdata 743 drivers/spi/spi-au1550.c hw->pdata = dev_get_platdata(&pdev->dev); pdata 746 drivers/spi/spi-au1550.c if (hw->pdata == NULL) { pdata 861 drivers/spi/spi-au1550.c master->num_chipselect = hw->pdata->num_chipselect; pdata 875 drivers/spi/spi-au1550.c master->max_speed_hz = hw->pdata->mainclk_hz / min_div; pdata 877 drivers/spi/spi-au1550.c hw->pdata->mainclk_hz / (max_div + 1) + 1; pdata 342 drivers/spi/spi-coldfire-qspi.c struct mcfqspi_platform_data *pdata; pdata 345 drivers/spi/spi-coldfire-qspi.c pdata = dev_get_platdata(&pdev->dev); pdata 346 drivers/spi/spi-coldfire-qspi.c if (!pdata) { pdata 351 drivers/spi/spi-coldfire-qspi.c if (!pdata->cs_control) { pdata 392 drivers/spi/spi-coldfire-qspi.c master->bus_num = pdata->bus_num; pdata 393 drivers/spi/spi-coldfire-qspi.c master->num_chipselect = pdata->num_chipselect; pdata 395 drivers/spi/spi-coldfire-qspi.c mcfqspi->cs_control = pdata->cs_control; pdata 123 drivers/spi/spi-davinci.c struct davinci_spi_platform_data pdata; pdata 578 drivers/spi/spi-davinci.c struct davinci_spi_platform_data *pdata; pdata 582 drivers/spi/spi-davinci.c pdata = &dspi->pdata; pdata 657 drivers/spi/spi-davinci.c if (pdata->cshold_bug) pdata 821 drivers/spi/spi-davinci.c struct davinci_spi_platform_data *pdata; pdata 825 drivers/spi/spi-davinci.c pdata = &dspi->pdata; pdata 833 drivers/spi/spi-davinci.c pdata->version = spi_data->version; pdata 834 drivers/spi/spi-davinci.c pdata->prescaler_limit = spi_data->prescaler_limit; pdata 844 drivers/spi/spi-davinci.c pdata->num_chipselect = num_cs; pdata 846 drivers/spi/spi-davinci.c pdata->intr_line = intr_line; pdata 872 drivers/spi/spi-davinci.c struct davinci_spi_platform_data *pdata; pdata 888 drivers/spi/spi-davinci.c pdata = dev_get_platdata(&pdev->dev); pdata 889 drivers/spi/spi-davinci.c dspi->pdata = *pdata; pdata 898 drivers/spi/spi-davinci.c pdata = &dspi->pdata; pdata 901 drivers/spi/spi-davinci.c pdata->num_chipselect, pdata 951 drivers/spi/spi-davinci.c master->num_chipselect = pdata->num_chipselect; pdata 960 drivers/spi/spi-davinci.c dspi->prescaler_limit = pdata->prescaler_limit; pdata 961 drivers/spi/spi-davinci.c dspi->version = pdata->version; pdata 990 drivers/spi/spi-davinci.c if (pdata->intr_line) pdata 682 drivers/spi/spi-dln2.c struct dln2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 703 drivers/spi/spi-dln2.c dln2->port = pdata->port; pdata 78 drivers/spi/spi-efm32.c struct efm32_spi_pdata pdata; pdata 313 drivers/spi/spi-efm32.c ddata->pdata.location = location; pdata 425 drivers/spi/spi-efm32.c REG_ROUTE_LOCATION(ddata->pdata.location), REG_ROUTE); pdata 820 drivers/spi/spi-fsl-dspi.c struct fsl_dspi_platform_data *pdata; pdata 833 drivers/spi/spi-fsl-dspi.c pdata = dev_get_platdata(&dspi->pdev->dev); pdata 835 drivers/spi/spi-fsl-dspi.c if (!pdata) { pdata 842 drivers/spi/spi-fsl-dspi.c cs_sck_delay = pdata->cs_sck_delay; pdata 843 drivers/spi/spi-fsl-dspi.c sck_cs_delay = pdata->sck_cs_delay; pdata 999 drivers/spi/spi-fsl-dspi.c struct fsl_dspi_platform_data *pdata; pdata 1021 drivers/spi/spi-fsl-dspi.c pdata = dev_get_platdata(&pdev->dev); pdata 1022 drivers/spi/spi-fsl-dspi.c if (pdata) { pdata 1023 drivers/spi/spi-fsl-dspi.c ctlr->num_chipselect = pdata->cs_num; pdata 1024 drivers/spi/spi-fsl-dspi.c ctlr->bus_num = pdata->bus_num; pdata 58 drivers/spi/spi-fsl-lib.c struct mpc8xxx_spi_probe_info *to_of_pinfo(struct fsl_spi_platform_data *pdata) pdata 60 drivers/spi/spi-fsl-lib.c return container_of(pdata, struct mpc8xxx_spi_probe_info, pdata); pdata 83 drivers/spi/spi-fsl-lib.c struct fsl_spi_platform_data *pdata = dev_get_platdata(dev); pdata 99 drivers/spi/spi-fsl-lib.c mpc8xxx_spi->flags = pdata->flags; pdata 100 drivers/spi/spi-fsl-lib.c mpc8xxx_spi->spibrg = pdata->sysclk; pdata 106 drivers/spi/spi-fsl-lib.c master->bus_num = pdata->bus_num; pdata 107 drivers/spi/spi-fsl-lib.c master->num_chipselect = pdata->max_chipselect; pdata 118 drivers/spi/spi-fsl-lib.c struct fsl_spi_platform_data *pdata; pdata 126 drivers/spi/spi-fsl-lib.c pdata = &pinfo->pdata; pdata 127 drivers/spi/spi-fsl-lib.c dev->platform_data = pdata; pdata 130 drivers/spi/spi-fsl-lib.c pdata->bus_num = -1; pdata 134 drivers/spi/spi-fsl-lib.c pdata->sysclk = get_brgfreq(); pdata 135 drivers/spi/spi-fsl-lib.c if (pdata->sysclk == -1) { pdata 136 drivers/spi/spi-fsl-lib.c pdata->sysclk = fsl_get_sys_freq(); pdata 137 drivers/spi/spi-fsl-lib.c if (pdata->sysclk == -1) pdata 141 drivers/spi/spi-fsl-lib.c ret = of_property_read_u32(np, "clock-frequency", &pdata->sysclk); pdata 148 drivers/spi/spi-fsl-lib.c pdata->flags = SPI_QE_CPU_MODE; pdata 150 drivers/spi/spi-fsl-lib.c pdata->flags = SPI_CPM_MODE | SPI_QE; pdata 152 drivers/spi/spi-fsl-lib.c pdata->flags = SPI_CPM_MODE | SPI_CPM2; pdata 154 drivers/spi/spi-fsl-lib.c pdata->flags = SPI_CPM_MODE | SPI_CPM1; pdata 93 drivers/spi/spi-fsl-lib.h struct fsl_spi_platform_data pdata; pdata 105 drivers/spi/spi-fsl-lib.h struct fsl_spi_platform_data *pdata); pdata 117 drivers/spi/spi-fsl-spi.c struct fsl_spi_platform_data *pdata; pdata 121 drivers/spi/spi-fsl-spi.c pdata = spi->dev.parent->parent->platform_data; pdata 124 drivers/spi/spi-fsl-spi.c if (pdata->cs_control) pdata 125 drivers/spi/spi-fsl-spi.c pdata->cs_control(spi, !pol); pdata 136 drivers/spi/spi-fsl-spi.c if (pdata->cs_control) pdata 137 drivers/spi/spi-fsl-spi.c pdata->cs_control(spi, pol); pdata 569 drivers/spi/spi-fsl-spi.c struct fsl_spi_platform_data *pdata = dev_get_platdata(dev); pdata 589 drivers/spi/spi-fsl-spi.c pdata->cs_control = fsl_spi_grlib_cs_control; pdata 595 drivers/spi/spi-fsl-spi.c struct fsl_spi_platform_data *pdata = dev_get_platdata(dev); pdata 662 drivers/spi/spi-fsl-spi.c regval = pdata->initial_spmode | SPMODE_INIT_VAL | SPMODE_ENABLE; pdata 695 drivers/spi/spi-fsl-spi.c struct fsl_spi_platform_data *pdata = dev_get_platdata(dev); pdata 696 drivers/spi/spi-fsl-spi.c struct mpc8xxx_spi_probe_info *pinfo = to_of_pinfo(pdata); pdata 719 drivers/spi/spi-fsl-spi.c struct fsl_spi_platform_data *pdata = dev_get_platdata(dev); pdata 721 drivers/spi/spi-fsl-spi.c struct mpc8xxx_spi_probe_info *pinfo = to_of_pinfo(pdata); pdata 741 drivers/spi/spi-fsl-spi.c pdata->max_chipselect = 1; pdata 743 drivers/spi/spi-fsl-spi.c pdata->cs_control = fsl_spi_cs_control; pdata 323 drivers/spi/spi-gpio.c struct spi_gpio_platform_data *pdata = dev_get_platdata(dev); pdata 328 drivers/spi/spi-gpio.c if (!pdata || !pdata->num_chipselect) pdata 335 drivers/spi/spi-gpio.c master->num_chipselect = pdata->num_chipselect ?: 1; pdata 488 drivers/spi/spi-mpc512x-psc.c struct fsl_spi_platform_data *pdata = dev_get_platdata(dev); pdata 504 drivers/spi/spi-mpc512x-psc.c if (pdata == NULL) { pdata 507 drivers/spi/spi-mpc512x-psc.c mps->cs_control = pdata->cs_control; pdata 508 drivers/spi/spi-mpc512x-psc.c master->bus_num = pdata->bus_num; pdata 509 drivers/spi/spi-mpc512x-psc.c master->num_chipselect = pdata->max_chipselect; pdata 364 drivers/spi/spi-mpc52xx-psc.c struct fsl_spi_platform_data *pdata = dev_get_platdata(dev); pdata 380 drivers/spi/spi-mpc52xx-psc.c if (pdata == NULL) { pdata 388 drivers/spi/spi-mpc52xx-psc.c mps->cs_control = pdata->cs_control; pdata 389 drivers/spi/spi-mpc52xx-psc.c mps->sysclk = pdata->sysclk; pdata 390 drivers/spi/spi-mpc52xx-psc.c master->bus_num = pdata->bus_num; pdata 391 drivers/spi/spi-mpc52xx-psc.c master->num_chipselect = pdata->max_chipselect; pdata 1394 drivers/spi/spi-omap2-mcspi.c const struct omap2_mcspi_platform_config *pdata; pdata 1432 drivers/spi/spi-omap2-mcspi.c pdata = match->data; pdata 1439 drivers/spi/spi-omap2-mcspi.c pdata = dev_get_platdata(&pdev->dev); pdata 1440 drivers/spi/spi-omap2-mcspi.c master->num_chipselect = pdata->num_cs; pdata 1441 drivers/spi/spi-omap2-mcspi.c mcspi->pin_dir = pdata->pin_dir; pdata 1443 drivers/spi/spi-omap2-mcspi.c regs_offset = pdata->regs_offset; pdata 193 drivers/spi/spi-pxa2xx-dma.c struct pxa2xx_spi_controller *pdata = drv_data->controller_info; pdata 202 drivers/spi/spi-pxa2xx-dma.c pdata->dma_filter, pdata->tx_param, dev, "tx"); pdata 207 drivers/spi/spi-pxa2xx-dma.c pdata->dma_filter, pdata->rx_param, dev, "rx"); pdata 1543 drivers/spi/spi-pxa2xx.c struct pxa2xx_spi_controller *pdata; pdata 1575 drivers/spi/spi-pxa2xx.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 1576 drivers/spi/spi-pxa2xx.c if (!pdata) pdata 1583 drivers/spi/spi-pxa2xx.c ssp = &pdata->ssp; pdata 1592 drivers/spi/spi-pxa2xx.c pdata->tx_param = pdev->dev.parent; pdata 1593 drivers/spi/spi-pxa2xx.c pdata->rx_param = pdev->dev.parent; pdata 1594 drivers/spi/spi-pxa2xx.c pdata->dma_filter = pxa2xx_spi_idma_filter; pdata 1610 drivers/spi/spi-pxa2xx.c pdata->is_slave = of_property_read_bool(pdev->dev.of_node, "spi-slave"); pdata 1611 drivers/spi/spi-pxa2xx.c pdata->num_chipselect = 1; pdata 1612 drivers/spi/spi-pxa2xx.c pdata->enable_dma = true; pdata 1613 drivers/spi/spi-pxa2xx.c pdata->dma_burst_size = 1; pdata 1615 drivers/spi/spi-pxa2xx.c return pdata; pdata 77 drivers/spi/spi-s3c24xx.c struct s3c2410_spi_info *pdata; pdata 103 drivers/spi/spi-s3c24xx.c hw->set_cs(hw->pdata, spi->chip_select, cspol^1); pdata 110 drivers/spi/spi-s3c24xx.c hw->set_cs(hw->pdata, spi->chip_select, cspol); pdata 375 drivers/spi/spi-s3c24xx.c return hw->pdata->use_fiq; pdata 476 drivers/spi/spi-s3c24xx.c if (hw->pdata) { pdata 478 drivers/spi/spi-s3c24xx.c gpio_direction_output(hw->pdata->pin_cs, 1); pdata 480 drivers/spi/spi-s3c24xx.c if (hw->pdata->gpio_setup) pdata 481 drivers/spi/spi-s3c24xx.c hw->pdata->gpio_setup(hw->pdata, 1); pdata 487 drivers/spi/spi-s3c24xx.c struct s3c2410_spi_info *pdata; pdata 501 drivers/spi/spi-s3c24xx.c hw->pdata = pdata = dev_get_platdata(&pdev->dev); pdata 504 drivers/spi/spi-s3c24xx.c if (pdata == NULL) { pdata 522 drivers/spi/spi-s3c24xx.c master->num_chipselect = hw->pdata->num_cs; pdata 523 drivers/spi/spi-s3c24xx.c master->bus_num = pdata->bus_num; pdata 566 drivers/spi/spi-s3c24xx.c if (!pdata->set_cs) { pdata 567 drivers/spi/spi-s3c24xx.c if (pdata->pin_cs < 0) { pdata 573 drivers/spi/spi-s3c24xx.c err = devm_gpio_request(&pdev->dev, pdata->pin_cs, pdata 581 drivers/spi/spi-s3c24xx.c gpio_direction_output(pdata->pin_cs, 1); pdata 583 drivers/spi/spi-s3c24xx.c hw->set_cs = pdata->set_cs; pdata 627 drivers/spi/spi-s3c24xx.c if (hw->pdata && hw->pdata->gpio_setup) pdata 628 drivers/spi/spi-s3c24xx.c hw->pdata->gpio_setup(hw->pdata, 0); pdata 239 drivers/spi/spi-sc18is602.c struct sc18is602_platform_data *pdata = dev_get_platdata(dev); pdata 279 drivers/spi/spi-sc18is602.c if (pdata) { pdata 280 drivers/spi/spi-sc18is602.c hw->freq = pdata->clock_frequency; pdata 242 drivers/spi/spi-tle62x0.c struct tle62x0_pdata *pdata; pdata 246 drivers/spi/spi-tle62x0.c pdata = dev_get_platdata(&spi->dev); pdata 247 drivers/spi/spi-tle62x0.c if (pdata == NULL) { pdata 257 drivers/spi/spi-tle62x0.c st->nr_gpio = pdata->gpio_count; pdata 258 drivers/spi/spi-tle62x0.c st->gpio_state = pdata->init_state; pdata 268 drivers/spi/spi-tle62x0.c for (ptr = 0; ptr < pdata->gpio_count; ptr++) { pdata 392 drivers/spi/spi-xilinx.c struct xspi_platform_data *pdata; pdata 399 drivers/spi/spi-xilinx.c pdata = dev_get_platdata(&pdev->dev); pdata 400 drivers/spi/spi-xilinx.c if (pdata) { pdata 401 drivers/spi/spi-xilinx.c num_cs = pdata->num_chipselect; pdata 402 drivers/spi/spi-xilinx.c bits_per_word = pdata->bits_per_word; pdata 492 drivers/spi/spi-xilinx.c if (pdata) { pdata 493 drivers/spi/spi-xilinx.c for (i = 0; i < pdata->num_devices; i++) pdata 494 drivers/spi/spi-xilinx.c spi_new_device(master, pdata->devices + i); pdata 1594 drivers/staging/emxx_udc/emxx_udc.c static inline void _nbu2ss_read_request_data(struct nbu2ss_udc *udc, u32 *pdata) pdata 1596 drivers/staging/emxx_udc/emxx_udc.c *pdata = _nbu2ss_readl(&udc->p_regs->SETUP_DATA0); pdata 1597 drivers/staging/emxx_udc/emxx_udc.c pdata++; pdata 1598 drivers/staging/emxx_udc/emxx_udc.c *pdata = _nbu2ss_readl(&udc->p_regs->SETUP_DATA1); pdata 29 drivers/staging/fbtft/fb_ssd1351.c if (par->pdata && pdata 30 drivers/staging/fbtft/fb_ssd1351.c par->pdata->display.backlight == FBTFT_ONBOARD_BACKLIGHT) { pdata 224 drivers/staging/fbtft/fb_uc1611.c switch (par->pdata->display.buswidth) { pdata 296 drivers/staging/fbtft/fb_uc1611.c par->pdata->display.buswidth); pdata 547 drivers/staging/fbtft/fbtft-core.c struct fbtft_platform_data *pdata) pdata 580 drivers/staging/fbtft/fbtft-core.c if (!pdata) { pdata 586 drivers/staging/fbtft/fbtft-core.c if (pdata->fps) pdata 587 drivers/staging/fbtft/fbtft-core.c fps = pdata->fps; pdata 588 drivers/staging/fbtft/fbtft-core.c if (pdata->txbuflen) pdata 589 drivers/staging/fbtft/fbtft-core.c txbuflen = pdata->txbuflen; pdata 590 drivers/staging/fbtft/fbtft-core.c if (pdata->display.init_sequence) pdata 591 drivers/staging/fbtft/fbtft-core.c init_sequence = pdata->display.init_sequence; pdata 592 drivers/staging/fbtft/fbtft-core.c if (pdata->gamma) pdata 593 drivers/staging/fbtft/fbtft-core.c gamma = pdata->gamma; pdata 594 drivers/staging/fbtft/fbtft-core.c if (pdata->display.debug) pdata 595 drivers/staging/fbtft/fbtft-core.c display->debug = pdata->display.debug; pdata 596 drivers/staging/fbtft/fbtft-core.c if (pdata->display.backlight) pdata 597 drivers/staging/fbtft/fbtft-core.c display->backlight = pdata->display.backlight; pdata 598 drivers/staging/fbtft/fbtft-core.c if (pdata->display.width) pdata 599 drivers/staging/fbtft/fbtft-core.c display->width = pdata->display.width; pdata 600 drivers/staging/fbtft/fbtft-core.c if (pdata->display.height) pdata 601 drivers/staging/fbtft/fbtft-core.c display->height = pdata->display.height; pdata 602 drivers/staging/fbtft/fbtft-core.c if (pdata->display.buswidth) pdata 603 drivers/staging/fbtft/fbtft-core.c display->buswidth = pdata->display.buswidth; pdata 604 drivers/staging/fbtft/fbtft-core.c if (pdata->display.regwidth) pdata 605 drivers/staging/fbtft/fbtft-core.c display->regwidth = pdata->display.regwidth; pdata 610 drivers/staging/fbtft/fbtft-core.c switch (pdata->rotate) { pdata 679 drivers/staging/fbtft/fbtft-core.c info->var.rotate = pdata->rotate; pdata 701 drivers/staging/fbtft/fbtft-core.c par->pdata = pdata; pdata 705 drivers/staging/fbtft/fbtft-core.c par->bgr = pdata->bgr; pdata 706 drivers/staging/fbtft/fbtft-core.c par->startbyte = pdata->startbyte; pdata 1110 drivers/staging/fbtft/fbtft-core.c struct fbtft_platform_data *pdata = par->pdata; pdata 1115 drivers/staging/fbtft/fbtft-core.c if (pdata->display.buswidth != 9 && par->startbyte == 0 && pdata 1129 drivers/staging/fbtft/fbtft-core.c for (i = 0; i < pdata->display.buswidth; i++) { pdata 1157 drivers/staging/fbtft/fbtft-core.c struct fbtft_platform_data *pdata; pdata 1164 drivers/staging/fbtft/fbtft-core.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 1165 drivers/staging/fbtft/fbtft-core.c if (!pdata) pdata 1168 drivers/staging/fbtft/fbtft-core.c pdata->display.width = fbtft_of_value(node, "width"); pdata 1169 drivers/staging/fbtft/fbtft-core.c pdata->display.height = fbtft_of_value(node, "height"); pdata 1170 drivers/staging/fbtft/fbtft-core.c pdata->display.regwidth = fbtft_of_value(node, "regwidth"); pdata 1171 drivers/staging/fbtft/fbtft-core.c pdata->display.buswidth = fbtft_of_value(node, "buswidth"); pdata 1172 drivers/staging/fbtft/fbtft-core.c pdata->display.backlight = fbtft_of_value(node, "backlight"); pdata 1173 drivers/staging/fbtft/fbtft-core.c pdata->display.bpp = fbtft_of_value(node, "bpp"); pdata 1174 drivers/staging/fbtft/fbtft-core.c pdata->display.debug = fbtft_of_value(node, "debug"); pdata 1175 drivers/staging/fbtft/fbtft-core.c pdata->rotate = fbtft_of_value(node, "rotate"); pdata 1176 drivers/staging/fbtft/fbtft-core.c pdata->bgr = of_property_read_bool(node, "bgr"); pdata 1177 drivers/staging/fbtft/fbtft-core.c pdata->fps = fbtft_of_value(node, "fps"); pdata 1178 drivers/staging/fbtft/fbtft-core.c pdata->txbuflen = fbtft_of_value(node, "txbuflen"); pdata 1179 drivers/staging/fbtft/fbtft-core.c pdata->startbyte = fbtft_of_value(node, "startbyte"); pdata 1180 drivers/staging/fbtft/fbtft-core.c of_property_read_string(node, "gamma", (const char **)&pdata->gamma); pdata 1183 drivers/staging/fbtft/fbtft-core.c pdata->display.backlight = 1; pdata 1185 drivers/staging/fbtft/fbtft-core.c pdata->display.fbtftops.init_display = fbtft_init_display_dt; pdata 1186 drivers/staging/fbtft/fbtft-core.c pdata->display.fbtftops.request_gpios = fbtft_request_gpios_dt; pdata 1188 drivers/staging/fbtft/fbtft-core.c return pdata; pdata 1217 drivers/staging/fbtft/fbtft-core.c struct fbtft_platform_data *pdata; pdata 1228 drivers/staging/fbtft/fbtft-core.c pdata = dev->platform_data; pdata 1229 drivers/staging/fbtft/fbtft-core.c if (!pdata) { pdata 1230 drivers/staging/fbtft/fbtft-core.c pdata = fbtft_probe_dt(dev); pdata 1231 drivers/staging/fbtft/fbtft-core.c if (IS_ERR(pdata)) pdata 1232 drivers/staging/fbtft/fbtft-core.c return PTR_ERR(pdata); pdata 1235 drivers/staging/fbtft/fbtft-core.c info = fbtft_framebuffer_alloc(display, dev, pdata); pdata 1309 drivers/staging/fbtft/fbtft-core.c fbtft_merge_fbtftops(&par->fbtftops, &pdata->display.fbtftops); pdata 195 drivers/staging/fbtft/fbtft.h struct fbtft_platform_data *pdata; pdata 246 drivers/staging/fbtft/fbtft.h struct fbtft_platform_data *pdata); pdata 50 drivers/staging/gs_fpgaboot/io.c void xl_shift_bytes_out(enum wbus bus_byte, unsigned char *pdata) pdata 56 drivers/staging/gs_fpgaboot/io.c byte0_out(pdata[0]); pdata 58 drivers/staging/gs_fpgaboot/io.c byte1_out(pdata[1]); pdata 71 drivers/staging/gs_fpgaboot/io.h void xl_shift_bytes_out(enum wbus bus_byte, unsigned char *pdata); pdata 916 drivers/staging/iio/adc/ad7280a.c const struct ad7280_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 932 drivers/staging/iio/adc/ad7280a.c if (!pdata) pdata 933 drivers/staging/iio/adc/ad7280a.c pdata = &ad7793_default_pdata; pdata 941 drivers/staging/iio/adc/ad7280a.c st->ctrl_lb = AD7280A_CTRL_LB_ACQ_TIME(pdata->acquisition_time & 0x3); pdata 942 drivers/staging/iio/adc/ad7280a.c st->ctrl_hb = AD7280A_CTRL_HB_CONV_AVG(pdata->conversion_averaging pdata 943 drivers/staging/iio/adc/ad7280a.c & 0x3) | (pdata->thermistor_term_en ? pdata 968 drivers/staging/iio/adc/ad7280a.c ((t_acq_ns[pdata->acquisition_time & 0x3] + 695) * pdata 969 drivers/staging/iio/adc/ad7280a.c (AD7280A_NUM_CH * n_avg[pdata->conversion_averaging & 0x3])) - pdata 970 drivers/staging/iio/adc/ad7280a.c t_acq_ns[pdata->acquisition_time & 0x3] + st->slave_num * 250; pdata 1006 drivers/staging/iio/adc/ad7280a.c (pdata->chain_last_alert_ignore & 0xF)); pdata 679 drivers/staging/iio/cdc/ad7746.c struct ad7746_platform_data *pdata = client->dev.platform_data; pdata 708 drivers/staging/iio/cdc/ad7746.c if (pdata) { pdata 709 drivers/staging/iio/cdc/ad7746.c if (pdata->exca_en) { pdata 710 drivers/staging/iio/cdc/ad7746.c if (pdata->exca_inv_en) pdata 716 drivers/staging/iio/cdc/ad7746.c if (pdata->excb_en) { pdata 717 drivers/staging/iio/cdc/ad7746.c if (pdata->excb_inv_en) pdata 723 drivers/staging/iio/cdc/ad7746.c regval |= AD7746_EXCSETUP_EXCLVL(pdata->exclvl); pdata 299 drivers/staging/iio/frequency/ad9832.c struct ad9832_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 304 drivers/staging/iio/frequency/ad9832.c if (!pdata) { pdata 401 drivers/staging/iio/frequency/ad9832.c ret = ad9832_write_frequency(st, AD9832_FREQ0HM, pdata->freq0); pdata 405 drivers/staging/iio/frequency/ad9832.c ret = ad9832_write_frequency(st, AD9832_FREQ1HM, pdata->freq1); pdata 409 drivers/staging/iio/frequency/ad9832.c ret = ad9832_write_phase(st, AD9832_PHASE0H, pdata->phase0); pdata 413 drivers/staging/iio/frequency/ad9832.c ret = ad9832_write_phase(st, AD9832_PHASE1H, pdata->phase1); pdata 417 drivers/staging/iio/frequency/ad9832.c ret = ad9832_write_phase(st, AD9832_PHASE2H, pdata->phase2); pdata 421 drivers/staging/iio/frequency/ad9832.c ret = ad9832_write_phase(st, AD9832_PHASE3H, pdata->phase3); pdata 1923 drivers/staging/media/imx/imx-media-csi.c struct ipu_client_platformdata *pdata; pdata 1943 drivers/staging/media/imx/imx-media-csi.c pdata = priv->dev->platform_data; pdata 1944 drivers/staging/media/imx/imx-media-csi.c priv->csi_id = pdata->csi; pdata 1958 drivers/staging/media/imx/imx-media-csi.c priv->sd.fwnode = of_fwnode_handle(pdata->of_node); pdata 1982 drivers/staging/media/imx/imx-media-csi.c priv->dev->of_node = pdata->of_node; pdata 983 drivers/staging/media/omap4iss/iss.c struct iss_platform_data *pdata = iss->pdata; pdata 1029 drivers/staging/media/omap4iss/iss.c for (subdevs = pdata->subdevs; subdevs && subdevs->subdevs; ++subdevs) { pdata 1201 drivers/staging/media/omap4iss/iss.c struct iss_platform_data *pdata = pdev->dev.platform_data; pdata 1206 drivers/staging/media/omap4iss/iss.c if (!pdata) pdata 1216 drivers/staging/media/omap4iss/iss.c iss->pdata = pdata; pdata 92 drivers/staging/media/omap4iss/iss.h struct iss_platform_data *pdata; pdata 527 drivers/staging/media/omap4iss/iss_csi2.c const struct iss_v4l2_subdevs_group *pdata; pdata 543 drivers/staging/media/omap4iss/iss_csi2.c pdata = sensor->host_priv; pdata 548 drivers/staging/media/omap4iss/iss_csi2.c csi2->ctrl.vp_out_ctrl = pdata->bus.csi2.vpclk_div; pdata 550 drivers/staging/media/omap4iss/iss_csi2.c csi2->ctrl.ecc_enable = pdata->bus.csi2.crc; pdata 886 drivers/staging/media/omap4iss/iss_video.c if (video->iss->pdata->set_constraints) pdata 887 drivers/staging/media/omap4iss/iss_video.c video->iss->pdata->set_constraints(video->iss, true); pdata 980 drivers/staging/media/omap4iss/iss_video.c if (video->iss->pdata->set_constraints) pdata 981 drivers/staging/media/omap4iss/iss_video.c video->iss->pdata->set_constraints(video->iss, false); pdata 1030 drivers/staging/media/omap4iss/iss_video.c if (video->iss->pdata->set_constraints) pdata 1031 drivers/staging/media/omap4iss/iss_video.c video->iss->pdata->set_constraints(video->iss, false); pdata 887 drivers/staging/media/soc_camera/soc_mt9v022.c struct mt9v022_platform_data *pdata; pdata 905 drivers/staging/media/soc_camera/soc_mt9v022.c pdata = ssdd->drv_priv; pdata 954 drivers/staging/media/soc_camera/soc_mt9v022.c mt9v022->y_skip_top = pdata ? pdata->y_skip_top : 0; pdata 726 drivers/staging/most/dim2/dim2.c const struct dim2_platform_data *pdata; pdata 764 drivers/staging/most/dim2/dim2.c pdata = of_id->data; pdata 765 drivers/staging/most/dim2/dim2.c ret = pdata && pdata->enable ? pdata->enable(pdev) : 0; pdata 769 drivers/staging/most/dim2/dim2.c dev->disable_platform = pdata ? pdata->disable : NULL; pdata 37 drivers/staging/olpc_dcon/olpc_dcon.c static struct dcon_platform_data *pdata; pdata 72 drivers/staging/olpc_dcon/olpc_dcon.c rc = pdata->init(dcon); pdata 133 drivers/staging/olpc_dcon/olpc_dcon.c pdata->bus_stabilize_wiggle(); pdata 317 drivers/staging/olpc_dcon/olpc_dcon.c pdata->set_dconload(1); pdata 329 drivers/staging/olpc_dcon/olpc_dcon.c pdata->set_dconload(0); pdata 352 drivers/staging/olpc_dcon/olpc_dcon.c pdata->set_dconload(1); pdata 354 drivers/staging/olpc_dcon/olpc_dcon.c pdata->set_dconload(0); pdata 569 drivers/staging/olpc_dcon/olpc_dcon.c pdata->set_dconload(1); pdata 589 drivers/staging/olpc_dcon/olpc_dcon.c if (!pdata) pdata 731 drivers/staging/olpc_dcon/olpc_dcon.c if (pdata->read_status(&status)) pdata 796 drivers/staging/olpc_dcon/olpc_dcon.c pdata = &dcon_pdata_xo_1_5; pdata 799 drivers/staging/olpc_dcon/olpc_dcon.c if (!pdata) pdata 800 drivers/staging/olpc_dcon/olpc_dcon.c pdata = &dcon_pdata_xo_1; pdata 1495 drivers/staging/rtl8188eu/core/rtw_recv.c unsigned char *pdata; pdata 1511 drivers/staging/rtl8188eu/core/rtw_recv.c pdata = prframe->pkt->data; pdata 1515 drivers/staging/rtl8188eu/core/rtw_recv.c nSubframe_Length = get_unaligned_be16(pdata + 12); pdata 1523 drivers/staging/rtl8188eu/core/rtw_recv.c pdata += ETH_HLEN; pdata 1530 drivers/staging/rtl8188eu/core/rtw_recv.c skb_put_data(sub_skb, pdata, nSubframe_Length); pdata 1534 drivers/staging/rtl8188eu/core/rtw_recv.c sub_skb->data = pdata; pdata 1550 drivers/staging/rtl8188eu/core/rtw_recv.c pdata += nSubframe_Length; pdata 1560 drivers/staging/rtl8188eu/core/rtw_recv.c pdata += padding_len; pdata 268 drivers/staging/rtl8188eu/os_dep/os_intfs.c u8 *pdata = skb->data; pdata 270 drivers/staging/rtl8188eu/os_dep/os_intfs.c memcpy(ð_type, pdata + (ETH_ALEN << 1), 2); pdata 274 drivers/staging/rtl8188eu/os_dep/os_intfs.c piphdr = (struct iphdr *)(pdata + ETH_HLEN); pdata 201 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c static int usbctrl_vendorreq(struct adapter *adapt, u8 request, u16 value, u16 index, void *pdata, u16 len, u8 requesttype) pdata 247 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c memcpy(pIo_buf, pdata, len); pdata 254 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c memcpy(pdata, pIo_buf, len); pdata 258 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c len, status, *(u32 *)pdata, vendorreq_times); pdata 269 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c memcpy(pdata, pIo_buf, len); pdata 459 drivers/staging/rtl8192u/ieee80211/ieee80211.h u8 *pdata = (u8 *)data; \ pdata 462 drivers/staging/rtl8192u/ieee80211/ieee80211.h printk("%2x ", pdata[i]); \ pdata 115 drivers/staging/rtl8192u/r8192U.h u8 *pdata = (u8 *)data; \ pdata 118 drivers/staging/rtl8192u/r8192U.h printk("%2x ", pdata[i]); \ pdata 52 drivers/staging/rtl8712/recv_linux.c precvbuf->pdata = NULL; pdata 114 drivers/staging/rtl8712/rtl8712_recv.c precvbuf->pdata = precvbuf->pbuf; pdata 117 drivers/staging/rtl8712/rtl8712_recv.c precvbuf->pend = precvbuf->pdata + MAX_RECVBUF_SZ; pdata 327 drivers/staging/rtl8712/rtl8712_recv.c unsigned char *pdata; pdata 339 drivers/staging/rtl8712/rtl8712_recv.c pdata = prframe->u.hdr.rx_data; pdata 342 drivers/staging/rtl8712/rtl8712_recv.c nSubframe_Length = *((u16 *)(pdata + 12)); pdata 352 drivers/staging/rtl8712/rtl8712_recv.c pdata += ETH_HLEN; pdata 359 drivers/staging/rtl8712/rtl8712_recv.c skb_put_data(sub_skb, pdata, nSubframe_Length); pdata 365 drivers/staging/rtl8712/rtl8712_recv.c pdata += nSubframe_Length; pdata 373 drivers/staging/rtl8712/rtl8712_recv.c pdata += padding_len; pdata 99 drivers/staging/rtl8712/rtl8712_recv.h u8 *pdata; pdata 1948 drivers/staging/rtl8712/rtl871x_ioctl_linux.c struct iw_point *pdata = &wrqu->data; pdata 1957 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (padapter->driver_stopped || (pdata == NULL)) pdata 1966 drivers/staging/rtl8712/rtl871x_ioctl_linux.c pdata->flags = 0; pdata 1967 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (pdata->length < 32) pdata 1969 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (copy_from_user(data, pdata->pointer, 32)) pdata 1993 drivers/staging/rtl8712/rtl871x_ioctl_linux.c pdata->flags = 1; pdata 1999 drivers/staging/rtl8712/rtl871x_ioctl_linux.c pdata->flags = 2; pdata 2006 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (pdata->length >= 34) { pdata 2007 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (copy_to_user((u8 __user *)pdata->pointer + 32, pdata 2008 drivers/staging/rtl8712/rtl871x_ioctl_linux.c (u8 *)&pdata->flags, 1)) pdata 2019 drivers/staging/rtl8712/rtl871x_ioctl_linux.c struct iw_point *pdata = &wrqu->data; pdata 2021 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if ((padapter->driver_stopped) || (pdata == NULL)) pdata 2023 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (copy_from_user(&padapter->pid, pdata->pointer, sizeof(int))) pdata 2034 drivers/staging/rtl8712/rtl871x_ioctl_linux.c struct iw_point *pdata = &wrqu->data; pdata 2037 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if ((padapter->driver_stopped) || (pdata == NULL)) { pdata 2054 drivers/staging/rtl8712/rtl871x_ioctl_linux.c struct iw_point *pdata = &wrqu->data; pdata 2057 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if ((padapter->driver_stopped) || (pdata == NULL)) pdata 2059 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (copy_from_user((void *)&u32wps_start, pdata->pointer, 4)) pdata 399 drivers/staging/rtl8712/usb_intf.c u8 *pdata = padapter->eeprompriv.efuse_eeprom_data; pdata 444 drivers/staging/rtl8712/usb_intf.c &pdata[i]); pdata 450 drivers/staging/rtl8712/usb_intf.c ether_addr_copy(mac, &pdata[0x12]); pdata 452 drivers/staging/rtl8712/usb_intf.c eeprom_CustomerID = pdata[0x52]; pdata 35 drivers/staging/rtl8712/usb_ops.h u16 index, void *pdata, u16 len, u8 requesttype); pdata 274 drivers/staging/rtl8712/usb_ops_linux.c precvbuf->pdata = precvbuf->pskb->data; pdata 280 drivers/staging/rtl8712/usb_ops_linux.c precvbuf->pdata = precvbuf->pskb->data; pdata 470 drivers/staging/rtl8712/usb_ops_linux.c u16 index, void *pdata, u16 len, u8 requesttype) pdata 493 drivers/staging/rtl8712/usb_ops_linux.c memcpy(pIo_buf, pdata, len); pdata 502 drivers/staging/rtl8712/usb_ops_linux.c memcpy(pdata, pIo_buf, status); pdata 1898 drivers/staging/rtl8723bs/core/rtw_recv.c u8 *pdata; pdata 1912 drivers/staging/rtl8723bs/core/rtw_recv.c pdata = prframe->u.hdr.rx_data; pdata 1917 drivers/staging/rtl8723bs/core/rtw_recv.c nSubframe_Length = RTW_GET_BE16(pdata + 12); pdata 1924 drivers/staging/rtl8723bs/core/rtw_recv.c sub_pkt = rtw_os_alloc_msdu_pkt(prframe, nSubframe_Length, pdata); pdata 1931 drivers/staging/rtl8723bs/core/rtw_recv.c pdata += ETH_HLEN; pdata 1941 drivers/staging/rtl8723bs/core/rtw_recv.c pdata += nSubframe_Length; pdata 1953 drivers/staging/rtl8723bs/core/rtw_recv.c pdata += padding_len; pdata 149 drivers/staging/rtl8723bs/core/rtw_xmit.c pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead; pdata 228 drivers/staging/rtl8723bs/core/rtw_xmit.c pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead; pdata 258 drivers/staging/rtl8723bs/core/rtw_xmit.c pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead; pdata 1627 drivers/staging/rtl8723bs/core/rtw_xmit.c pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead; pdata 1704 drivers/staging/rtl8723bs/core/rtw_xmit.c pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead; pdata 1776 drivers/staging/rtl8723bs/core/rtw_xmit.c pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead; pdata 3623 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c void CCX_FwC2HTxRpt_8723b(struct adapter *padapter, u8 *pdata, u8 len) pdata 3633 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c seq_no = *(pdata+6); pdata 3635 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c if (GET_8723B_C2H_TX_RPT_RETRY_OVER(pdata) | GET_8723B_C2H_TX_RPT_LIFE_TIME_OVER(pdata)) { pdata 259 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c ptr = precvbuf->pdata; pdata 393 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c precvbuf->pdata += pkt_offset; pdata 394 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c ptr = precvbuf->pdata; pdata 495 drivers/staging/rtl8723bs/hal/sdio_ops.c err = sd_write(intfhdl, addr, cnt, xmitbuf->pdata); pdata 945 drivers/staging/rtl8723bs/hal/sdio_ops.c recvbuf->pdata = recvbuf->pskb->data; pdata 34 drivers/staging/rtl8723bs/include/recv_osdep.h _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata); pdata 289 drivers/staging/rtl8723bs/include/rtl8723b_hal.h void CCX_FwC2HTxRpt_8723b(struct adapter *padapter, u8 *pdata, u8 len); pdata 87 drivers/staging/rtl8723bs/include/rtw_io.h int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata); pdata 312 drivers/staging/rtl8723bs/include/rtw_recv.h u8 *pdata; pdata 270 drivers/staging/rtl8723bs/include/rtw_xmit.h u8 *pdata; pdata 16 drivers/staging/rtl8723bs/include/sdio_ops_linux.h s32 _sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); pdata 17 drivers/staging/rtl8723bs/include/sdio_ops_linux.h s32 _sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); pdata 18 drivers/staging/rtl8723bs/include/sdio_ops_linux.h s32 sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); pdata 19 drivers/staging/rtl8723bs/include/sdio_ops_linux.h s32 sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); pdata 23 drivers/staging/rtl8723bs/include/sdio_ops_linux.h s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); pdata 24 drivers/staging/rtl8723bs/include/sdio_ops_linux.h s32 sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); pdata 27 drivers/staging/rtl8723bs/include/sdio_ops_linux.h s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); pdata 28 drivers/staging/rtl8723bs/include/sdio_ops_linux.h s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); pdata 2441 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c unsigned char *pdata; pdata 2495 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c pdata = (unsigned char*)skb->data; pdata 2496 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(pdata, dst_mac_addr, sizeof(dst_mac_addr)); pdata 2497 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c memcpy(pdata + sizeof(dst_mac_addr), src_mac_addr, sizeof(src_mac_addr)); pdata 2449 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c struct iw_point *pdata = &wrqu->data; pdata 2453 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if ((padapter->bDriverStopped) || (pdata == NULL)) { pdata 2467 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c pdata->flags = 0; pdata 2468 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (pdata->length>=32) { pdata 2469 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (copy_from_user(data, pdata->pointer, 32)) { pdata 2502 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c pdata->flags = 1; pdata 2508 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c pdata->flags = 2; pdata 2519 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (pdata->length>=34) { pdata 2520 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (copy_to_user((u8 __force __user *)pdata->pointer+32, (u8 *)&pdata->flags, 1)) { pdata 2539 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c int *pdata = (int *)wrqu; pdata 2542 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if ((padapter->bDriverStopped) || (pdata == NULL)) { pdata 2547 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c selector = *pdata; pdata 2549 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c padapter->pid[selector] = *(pdata+1); pdata 2568 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c struct iw_point *pdata = &wrqu->data; pdata 2572 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if ((true == padapter->bDriverStopped) ||(true ==padapter->bSurpriseRemoved) || (NULL == pdata)) { pdata 2577 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c uintRet = copy_from_user((void *)&u32wps_start, pdata->pointer, 4); pdata 2671 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c u32 extra_arg, *pdata, val32; pdata 2681 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c pdata = (u32 *)&wrqu->data; pdata 2683 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c val32 = *pdata; pdata 2688 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c extra_arg = *(pdata+1); pdata 418 drivers/staging/rtl8723bs/os_dep/os_intfs.c u8 *pdata = skb->data; pdata 420 drivers/staging/rtl8723bs/os_dep/os_intfs.c memcpy(ð_type, pdata + (ETH_ALEN << 1), 2); pdata 425 drivers/staging/rtl8723bs/os_dep/os_intfs.c piphdr = (struct iphdr *)(pdata + ETH_HLEN); pdata 53 drivers/staging/rtl8723bs/os_dep/recv_linux.c _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata) pdata 64 drivers/staging/rtl8723bs/os_dep/recv_linux.c skb_put_data(sub_skb, (pdata + ETH_HLEN), nSubframe_Length); pdata 68 drivers/staging/rtl8723bs/os_dep/recv_linux.c sub_skb->data = pdata + ETH_HLEN; pdata 66 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c s32 _sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) pdata 87 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c pdata[i] = sdio_readb(func, addr+i, &err); pdata 101 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c s32 sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) pdata 125 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c err = _sd_cmd52_read(pintfhdl, addr, cnt, pdata); pdata 136 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c s32 _sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) pdata 157 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c sdio_writeb(func, pdata[i], addr+i, &err); pdata 159 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c DBG_871X(KERN_ERR "%s: FAIL!(%d) addr = 0x%05x val = 0x%02x\n", __func__, err, addr+i, pdata[i]); pdata 171 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c s32 sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) pdata 195 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c err = _sd_cmd52_write(pintfhdl, addr, cnt, pdata); pdata 399 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) pdata 421 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c u8 *pbuf = pdata; pdata 434 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c err = sdio_memcpy_fromio(func, pdata, addr, cnt); pdata 454 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c s32 sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) pdata 477 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c err = _sd_read(pintfhdl, addr, cnt, pdata); pdata 498 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) pdata 522 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c u8 *pbuf = pdata; pdata 536 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c err = sdio_memcpy_toio(func, addr, pdata, size); pdata 556 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) pdata 579 drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c err = _sd_write(pintfhdl, addr, cnt, pdata); pdata 101 drivers/tty/serial/8250/8250_fintek.c static u8 sio_read_reg(struct fintek_8250 *pdata, u8 reg) pdata 103 drivers/tty/serial/8250/8250_fintek.c outb(reg, pdata->base_port + ADDR_PORT); pdata 104 drivers/tty/serial/8250/8250_fintek.c return inb(pdata->base_port + DATA_PORT); pdata 107 drivers/tty/serial/8250/8250_fintek.c static void sio_write_reg(struct fintek_8250 *pdata, u8 reg, u8 data) pdata 109 drivers/tty/serial/8250/8250_fintek.c outb(reg, pdata->base_port + ADDR_PORT); pdata 110 drivers/tty/serial/8250/8250_fintek.c outb(data, pdata->base_port + DATA_PORT); pdata 113 drivers/tty/serial/8250/8250_fintek.c static void sio_write_mask_reg(struct fintek_8250 *pdata, u8 reg, u8 mask, pdata 118 drivers/tty/serial/8250/8250_fintek.c tmp = (sio_read_reg(pdata, reg) & ~mask) | (mask & data); pdata 119 drivers/tty/serial/8250/8250_fintek.c sio_write_reg(pdata, reg, tmp); pdata 142 drivers/tty/serial/8250/8250_fintek.c static int fintek_8250_check_id(struct fintek_8250 *pdata) pdata 146 drivers/tty/serial/8250/8250_fintek.c if (sio_read_reg(pdata, VENDOR_ID1) != VENDOR_ID1_VAL) pdata 149 drivers/tty/serial/8250/8250_fintek.c if (sio_read_reg(pdata, VENDOR_ID2) != VENDOR_ID2_VAL) pdata 152 drivers/tty/serial/8250/8250_fintek.c chip = sio_read_reg(pdata, CHIP_ID1); pdata 153 drivers/tty/serial/8250/8250_fintek.c chip |= sio_read_reg(pdata, CHIP_ID2) << 8; pdata 166 drivers/tty/serial/8250/8250_fintek.c pdata->pid = chip; pdata 170 drivers/tty/serial/8250/8250_fintek.c static int fintek_8250_get_ldn_range(struct fintek_8250 *pdata, int *min, pdata 173 drivers/tty/serial/8250/8250_fintek.c switch (pdata->pid) { pdata 195 drivers/tty/serial/8250/8250_fintek.c struct fintek_8250 *pdata = port->private_data; pdata 197 drivers/tty/serial/8250/8250_fintek.c if (!pdata) pdata 216 drivers/tty/serial/8250/8250_fintek.c if (pdata->index) { pdata 234 drivers/tty/serial/8250/8250_fintek.c if (fintek_8250_enter_key(pdata->base_port, pdata->key)) pdata 237 drivers/tty/serial/8250/8250_fintek.c sio_write_reg(pdata, LDN, pdata->index); pdata 238 drivers/tty/serial/8250/8250_fintek.c sio_write_reg(pdata, RS485, config); pdata 239 drivers/tty/serial/8250/8250_fintek.c fintek_8250_exit_key(pdata->base_port); pdata 246 drivers/tty/serial/8250/8250_fintek.c static void fintek_8250_set_irq_mode(struct fintek_8250 *pdata, bool is_level) pdata 248 drivers/tty/serial/8250/8250_fintek.c sio_write_reg(pdata, LDN, pdata->index); pdata 250 drivers/tty/serial/8250/8250_fintek.c switch (pdata->pid) { pdata 252 drivers/tty/serial/8250/8250_fintek.c sio_write_mask_reg(pdata, F81866_FIFO_CTRL, F81866_IRQ_MODE1, pdata 256 drivers/tty/serial/8250/8250_fintek.c sio_write_mask_reg(pdata, F81866_IRQ_MODE, F81866_IRQ_SHARE, pdata 258 drivers/tty/serial/8250/8250_fintek.c sio_write_mask_reg(pdata, F81866_IRQ_MODE, F81866_IRQ_MODE0, pdata 265 drivers/tty/serial/8250/8250_fintek.c sio_write_mask_reg(pdata, FINTEK_IRQ_MODE, IRQ_SHARE, pdata 267 drivers/tty/serial/8250/8250_fintek.c sio_write_mask_reg(pdata, FINTEK_IRQ_MODE, IRQ_MODE_MASK, pdata 273 drivers/tty/serial/8250/8250_fintek.c static void fintek_8250_set_max_fifo(struct fintek_8250 *pdata) pdata 275 drivers/tty/serial/8250/8250_fintek.c switch (pdata->pid) { pdata 278 drivers/tty/serial/8250/8250_fintek.c sio_write_mask_reg(pdata, FIFO_CTRL, pdata 289 drivers/tty/serial/8250/8250_fintek.c struct fintek_8250 *pdata) pdata 291 drivers/tty/serial/8250/8250_fintek.c sio_write_reg(pdata, LDN, pdata->index); pdata 293 drivers/tty/serial/8250/8250_fintek.c switch (pdata->pid) { pdata 295 drivers/tty/serial/8250/8250_fintek.c sio_write_mask_reg(pdata, F81866_UART_CLK, pdata 310 drivers/tty/serial/8250/8250_fintek.c struct fintek_8250 *pdata = port->private_data; pdata 326 drivers/tty/serial/8250/8250_fintek.c switch (pdata->pid) { pdata 337 drivers/tty/serial/8250/8250_fintek.c __func__, pdata->pid); pdata 348 drivers/tty/serial/8250/8250_fintek.c if (fintek_8250_enter_key(pdata->base_port, pdata->key)) pdata 353 drivers/tty/serial/8250/8250_fintek.c sio_write_reg(pdata, LDN, pdata->index); pdata 354 drivers/tty/serial/8250/8250_fintek.c sio_write_mask_reg(pdata, reg, F81866_UART_CLK_MASK, pdata 357 drivers/tty/serial/8250/8250_fintek.c fintek_8250_exit_key(pdata->base_port); pdata 372 drivers/tty/serial/8250/8250_fintek.c struct fintek_8250 *pdata = uart->port.private_data; pdata 374 drivers/tty/serial/8250/8250_fintek.c switch (pdata->pid) { pdata 385 drivers/tty/serial/8250/8250_fintek.c static int probe_setup_port(struct fintek_8250 *pdata, pdata 396 drivers/tty/serial/8250/8250_fintek.c pdata->base_port = addr[i]; pdata 397 drivers/tty/serial/8250/8250_fintek.c pdata->key = keys[j]; pdata 401 drivers/tty/serial/8250/8250_fintek.c if (fintek_8250_check_id(pdata) || pdata 402 drivers/tty/serial/8250/8250_fintek.c fintek_8250_get_ldn_range(pdata, &min, &max)) { pdata 410 drivers/tty/serial/8250/8250_fintek.c sio_write_reg(pdata, LDN, k); pdata 411 drivers/tty/serial/8250/8250_fintek.c aux = sio_read_reg(pdata, IO_ADDR1); pdata 412 drivers/tty/serial/8250/8250_fintek.c aux |= sio_read_reg(pdata, IO_ADDR2) << 8; pdata 416 drivers/tty/serial/8250/8250_fintek.c pdata->index = k; pdata 423 drivers/tty/serial/8250/8250_fintek.c fintek_8250_set_irq_mode(pdata, level_mode); pdata 424 drivers/tty/serial/8250/8250_fintek.c fintek_8250_set_max_fifo(pdata); pdata 425 drivers/tty/serial/8250/8250_fintek.c fintek_8250_goto_highspeed(uart, pdata); pdata 441 drivers/tty/serial/8250/8250_fintek.c struct fintek_8250 *pdata = uart->port.private_data; pdata 443 drivers/tty/serial/8250/8250_fintek.c switch (pdata->pid) { pdata 458 drivers/tty/serial/8250/8250_fintek.c struct fintek_8250 *pdata; pdata 464 drivers/tty/serial/8250/8250_fintek.c pdata = devm_kzalloc(uart->port.dev, sizeof(*pdata), GFP_KERNEL); pdata 465 drivers/tty/serial/8250/8250_fintek.c if (!pdata) pdata 468 drivers/tty/serial/8250/8250_fintek.c memcpy(pdata, &probe_data, sizeof(probe_data)); pdata 469 drivers/tty/serial/8250/8250_fintek.c uart->port.private_data = pdata; pdata 178 drivers/tty/serial/8250/8250_lpss.c chip->pdata = &qrk_serial_dma_pdata; pdata 86 drivers/tty/serial/efm32-uart.c struct efm32_uart_pdata pdata; pdata 305 drivers/tty/serial/efm32-uart.c UARTn_ROUTE_LOCATION(efm_port->pdata.location) | pdata 690 drivers/tty/serial/efm32-uart.c efm_port->pdata.location = location; pdata 757 drivers/tty/serial/efm32-uart.c const struct efm32_uart_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 761 drivers/tty/serial/efm32-uart.c if (pdata) pdata 762 drivers/tty/serial/efm32-uart.c efm_port->pdata = *pdata; pdata 2207 drivers/tty/serial/imx.c struct imxuart_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 2212 drivers/tty/serial/imx.c if (!pdata) pdata 2215 drivers/tty/serial/imx.c if (pdata->flags & IMXUART_HAVE_RTSCTS) pdata 740 drivers/tty/serial/max3100.c struct plat_max3100 *pdata; pdata 775 drivers/tty/serial/max3100.c pdata = dev_get_platdata(&spi->dev); pdata 776 drivers/tty/serial/max3100.c max3100s[i]->crystal = pdata->crystal; pdata 777 drivers/tty/serial/max3100.c max3100s[i]->loopback = pdata->loopback; pdata 778 drivers/tty/serial/max3100.c max3100s[i]->poll_time = msecs_to_jiffies(pdata->poll_time); pdata 779 drivers/tty/serial/max3100.c if (pdata->poll_time > 0 && max3100s[i]->poll_time == 0) pdata 781 drivers/tty/serial/max3100.c max3100s[i]->max3100_hw_suspend = pdata->max3100_hw_suspend; pdata 201 drivers/tty/serial/omap-serial.c struct omap_uart_port_info *pdata = dev_get_platdata(up->dev); pdata 203 drivers/tty/serial/omap-serial.c if (!pdata || !pdata->get_context_loss_count) pdata 206 drivers/tty/serial/omap-serial.c return pdata->get_context_loss_count(up->dev); pdata 212 drivers/tty/serial/omap-serial.c struct omap_uart_port_info *pdata = dev_get_platdata(up->dev); pdata 214 drivers/tty/serial/omap-serial.c if (!pdata || !pdata->enable_wakeup) pdata 217 drivers/tty/serial/omap-serial.c pdata->enable_wakeup(up->dev, enable); pdata 134 drivers/tty/serial/sccnxp.c struct sccnxp_pdata pdata; pdata 379 drivers/tty/serial/sccnxp.c if (s->pdata.mctrl_cfg[port->line] & MCTRL_MASK(sig)) { pdata 380 drivers/tty/serial/sccnxp.c bitmask = 1 << MCTRL_OBIT(s->pdata.mctrl_cfg[port->line], sig); pdata 512 drivers/tty/serial/sccnxp.c mod_timer(&s->timer, jiffies + usecs_to_jiffies(s->pdata.poll_time_us)); pdata 601 drivers/tty/serial/sccnxp.c if (s->pdata.mctrl_cfg[port->line] & MCTRL_MASK(DSR_IP)) { pdata 602 drivers/tty/serial/sccnxp.c bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], pdata 607 drivers/tty/serial/sccnxp.c if (s->pdata.mctrl_cfg[port->line] & MCTRL_MASK(CTS_IP)) { pdata 608 drivers/tty/serial/sccnxp.c bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], pdata 613 drivers/tty/serial/sccnxp.c if (s->pdata.mctrl_cfg[port->line] & MCTRL_MASK(DCD_IP)) { pdata 614 drivers/tty/serial/sccnxp.c bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], pdata 619 drivers/tty/serial/sccnxp.c if (s->pdata.mctrl_cfg[port->line] & MCTRL_MASK(RNG_IP)) { pdata 620 drivers/tty/serial/sccnxp.c bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], pdata 888 drivers/tty/serial/sccnxp.c struct sccnxp_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 952 drivers/tty/serial/sccnxp.c if (pdata) pdata 953 drivers/tty/serial/sccnxp.c memcpy(&s->pdata, pdata, sizeof(struct sccnxp_pdata)); pdata 955 drivers/tty/serial/sccnxp.c if (s->pdata.poll_time_us) { pdata 957 drivers/tty/serial/sccnxp.c s->pdata.poll_time_us); pdata 1000 drivers/tty/serial/sccnxp.c s->port[i].regshift = s->pdata.reg_shift; pdata 1026 drivers/tty/serial/sccnxp.c usecs_to_jiffies(s->pdata.poll_time_us)); pdata 108 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 110 drivers/tty/serial/uartlite.c return pdata->reg_ops->in(port->membase + offset); pdata 115 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 117 drivers/tty/serial/uartlite.c pdata->reg_ops->out(val, port->membase + offset); pdata 274 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 277 drivers/tty/serial/uartlite.c ret = clk_enable(pdata->clk); pdata 297 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 302 drivers/tty/serial/uartlite.c clk_disable(pdata->clk); pdata 352 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 370 drivers/tty/serial/uartlite.c pdata->reg_ops = &uartlite_be; pdata 376 drivers/tty/serial/uartlite.c pdata->reg_ops = &uartlite_le; pdata 620 drivers/tty/serial/uartlite.c struct uartlite_data *pdata) pdata 657 drivers/tty/serial/uartlite.c port->private_data = pdata; pdata 700 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 702 drivers/tty/serial/uartlite.c rc = uart_remove_one_port(pdata->ulite_uart_driver, port); pdata 721 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 723 drivers/tty/serial/uartlite.c uart_suspend_port(pdata->ulite_uart_driver, port); pdata 740 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 742 drivers/tty/serial/uartlite.c uart_resume_port(pdata->ulite_uart_driver, port); pdata 751 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 753 drivers/tty/serial/uartlite.c clk_disable(pdata->clk); pdata 760 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 762 drivers/tty/serial/uartlite.c clk_enable(pdata->clk); pdata 788 drivers/tty/serial/uartlite.c struct uartlite_data *pdata; pdata 814 drivers/tty/serial/uartlite.c pdata = devm_kzalloc(&pdev->dev, sizeof(struct uartlite_data), pdata 816 drivers/tty/serial/uartlite.c if (!pdata) pdata 827 drivers/tty/serial/uartlite.c pdata->clk = devm_clk_get(&pdev->dev, "s_axi_aclk"); pdata 828 drivers/tty/serial/uartlite.c if (IS_ERR(pdata->clk)) { pdata 829 drivers/tty/serial/uartlite.c if (PTR_ERR(pdata->clk) != -ENOENT) pdata 830 drivers/tty/serial/uartlite.c return PTR_ERR(pdata->clk); pdata 836 drivers/tty/serial/uartlite.c pdata->clk = NULL; pdata 839 drivers/tty/serial/uartlite.c pdata->ulite_uart_driver = &ulite_uart_driver; pdata 840 drivers/tty/serial/uartlite.c ret = clk_prepare_enable(pdata->clk); pdata 851 drivers/tty/serial/uartlite.c ret = ulite_assign(&pdev->dev, id, res->start, irq, pdata); pdata 862 drivers/tty/serial/uartlite.c struct uartlite_data *pdata = port->private_data; pdata 865 drivers/tty/serial/uartlite.c clk_unprepare(pdata->clk); pdata 148 drivers/uio/uio_dmem_genirq.c struct uio_dmem_genirq_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 149 drivers/uio/uio_dmem_genirq.c struct uio_info *uioinfo = &pdata->uioinfo; pdata 231 drivers/uio/uio_dmem_genirq.c priv->num_dmem_regions = pdata->num_dynamic_regions; pdata 233 drivers/uio/uio_dmem_genirq.c for (i = 0; i < pdata->num_dynamic_regions; ++i) { pdata 242 drivers/uio/uio_dmem_genirq.c uiomem->size = pdata->dynamic_region_sizes[i]; pdata 81 drivers/uio/uio_hv_generic.c struct hv_uio_private_data *pdata = info->priv; pdata 82 drivers/uio/uio_hv_generic.c struct hv_device *dev = pdata->device; pdata 97 drivers/uio/uio_hv_generic.c struct hv_uio_private_data *pdata = hv_get_drvdata(hv_dev); pdata 102 drivers/uio/uio_hv_generic.c uio_event_notify(&pdata->info); pdata 111 drivers/uio/uio_hv_generic.c struct hv_uio_private_data *pdata = hv_get_drvdata(hv_dev); pdata 117 drivers/uio/uio_hv_generic.c pdata->info.irq = 0; pdata 120 drivers/uio/uio_hv_generic.c uio_event_notify(&pdata->info); pdata 180 drivers/uio/uio_hv_generic.c hv_uio_cleanup(struct hv_device *dev, struct hv_uio_private_data *pdata) pdata 182 drivers/uio/uio_hv_generic.c if (pdata->send_gpadl) { pdata 183 drivers/uio/uio_hv_generic.c vmbus_teardown_gpadl(dev->channel, pdata->send_gpadl); pdata 184 drivers/uio/uio_hv_generic.c pdata->send_gpadl = 0; pdata 185 drivers/uio/uio_hv_generic.c vfree(pdata->send_buf); pdata 188 drivers/uio/uio_hv_generic.c if (pdata->recv_gpadl) { pdata 189 drivers/uio/uio_hv_generic.c vmbus_teardown_gpadl(dev->channel, pdata->recv_gpadl); pdata 190 drivers/uio/uio_hv_generic.c pdata->recv_gpadl = 0; pdata 191 drivers/uio/uio_hv_generic.c vfree(pdata->recv_buf); pdata 199 drivers/uio/uio_hv_generic.c struct hv_uio_private_data *pdata pdata 201 drivers/uio/uio_hv_generic.c struct hv_device *dev = pdata->device; pdata 204 drivers/uio/uio_hv_generic.c if (atomic_inc_return(&pdata->refcnt) != 1) pdata 215 drivers/uio/uio_hv_generic.c atomic_dec(&pdata->refcnt); pdata 224 drivers/uio/uio_hv_generic.c struct hv_uio_private_data *pdata pdata 226 drivers/uio/uio_hv_generic.c struct hv_device *dev = pdata->device; pdata 229 drivers/uio/uio_hv_generic.c if (atomic_dec_and_test(&pdata->refcnt)) pdata 240 drivers/uio/uio_hv_generic.c struct hv_uio_private_data *pdata; pdata 250 drivers/uio/uio_hv_generic.c pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); pdata 251 drivers/uio/uio_hv_generic.c if (!pdata) pdata 262 drivers/uio/uio_hv_generic.c pdata->info.name = "uio_hv_generic"; pdata 263 drivers/uio/uio_hv_generic.c pdata->info.version = DRIVER_VERSION; pdata 264 drivers/uio/uio_hv_generic.c pdata->info.irqcontrol = hv_uio_irqcontrol; pdata 265 drivers/uio/uio_hv_generic.c pdata->info.open = hv_uio_open; pdata 266 drivers/uio/uio_hv_generic.c pdata->info.release = hv_uio_release; pdata 267 drivers/uio/uio_hv_generic.c pdata->info.irq = UIO_IRQ_CUSTOM; pdata 268 drivers/uio/uio_hv_generic.c atomic_set(&pdata->refcnt, 0); pdata 271 drivers/uio/uio_hv_generic.c pdata->info.mem[TXRX_RING_MAP].name = "txrx_rings"; pdata 273 drivers/uio/uio_hv_generic.c pdata->info.mem[TXRX_RING_MAP].addr pdata 275 drivers/uio/uio_hv_generic.c pdata->info.mem[TXRX_RING_MAP].size pdata 277 drivers/uio/uio_hv_generic.c pdata->info.mem[TXRX_RING_MAP].memtype = UIO_MEM_IOVA; pdata 279 drivers/uio/uio_hv_generic.c pdata->info.mem[INT_PAGE_MAP].name = "int_page"; pdata 280 drivers/uio/uio_hv_generic.c pdata->info.mem[INT_PAGE_MAP].addr pdata 282 drivers/uio/uio_hv_generic.c pdata->info.mem[INT_PAGE_MAP].size = PAGE_SIZE; pdata 283 drivers/uio/uio_hv_generic.c pdata->info.mem[INT_PAGE_MAP].memtype = UIO_MEM_LOGICAL; pdata 285 drivers/uio/uio_hv_generic.c pdata->info.mem[MON_PAGE_MAP].name = "monitor_page"; pdata 286 drivers/uio/uio_hv_generic.c pdata->info.mem[MON_PAGE_MAP].addr pdata 288 drivers/uio/uio_hv_generic.c pdata->info.mem[MON_PAGE_MAP].size = PAGE_SIZE; pdata 289 drivers/uio/uio_hv_generic.c pdata->info.mem[MON_PAGE_MAP].memtype = UIO_MEM_LOGICAL; pdata 291 drivers/uio/uio_hv_generic.c pdata->recv_buf = vzalloc(RECV_BUFFER_SIZE); pdata 292 drivers/uio/uio_hv_generic.c if (pdata->recv_buf == NULL) { pdata 297 drivers/uio/uio_hv_generic.c ret = vmbus_establish_gpadl(channel, pdata->recv_buf, pdata 298 drivers/uio/uio_hv_generic.c RECV_BUFFER_SIZE, &pdata->recv_gpadl); pdata 303 drivers/uio/uio_hv_generic.c snprintf(pdata->recv_name, sizeof(pdata->recv_name), pdata 304 drivers/uio/uio_hv_generic.c "recv:%u", pdata->recv_gpadl); pdata 305 drivers/uio/uio_hv_generic.c pdata->info.mem[RECV_BUF_MAP].name = pdata->recv_name; pdata 306 drivers/uio/uio_hv_generic.c pdata->info.mem[RECV_BUF_MAP].addr pdata 307 drivers/uio/uio_hv_generic.c = (uintptr_t)pdata->recv_buf; pdata 308 drivers/uio/uio_hv_generic.c pdata->info.mem[RECV_BUF_MAP].size = RECV_BUFFER_SIZE; pdata 309 drivers/uio/uio_hv_generic.c pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL; pdata 311 drivers/uio/uio_hv_generic.c pdata->send_buf = vzalloc(SEND_BUFFER_SIZE); pdata 312 drivers/uio/uio_hv_generic.c if (pdata->send_buf == NULL) { pdata 317 drivers/uio/uio_hv_generic.c ret = vmbus_establish_gpadl(channel, pdata->send_buf, pdata 318 drivers/uio/uio_hv_generic.c SEND_BUFFER_SIZE, &pdata->send_gpadl); pdata 322 drivers/uio/uio_hv_generic.c snprintf(pdata->send_name, sizeof(pdata->send_name), pdata 323 drivers/uio/uio_hv_generic.c "send:%u", pdata->send_gpadl); pdata 324 drivers/uio/uio_hv_generic.c pdata->info.mem[SEND_BUF_MAP].name = pdata->send_name; pdata 325 drivers/uio/uio_hv_generic.c pdata->info.mem[SEND_BUF_MAP].addr pdata 326 drivers/uio/uio_hv_generic.c = (uintptr_t)pdata->send_buf; pdata 327 drivers/uio/uio_hv_generic.c pdata->info.mem[SEND_BUF_MAP].size = SEND_BUFFER_SIZE; pdata 328 drivers/uio/uio_hv_generic.c pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL; pdata 330 drivers/uio/uio_hv_generic.c pdata->info.priv = pdata; pdata 331 drivers/uio/uio_hv_generic.c pdata->device = dev; pdata 333 drivers/uio/uio_hv_generic.c ret = uio_register_device(&dev->device, &pdata->info); pdata 344 drivers/uio/uio_hv_generic.c hv_set_drvdata(dev, pdata); pdata 349 drivers/uio/uio_hv_generic.c hv_uio_cleanup(dev, pdata); pdata 351 drivers/uio/uio_hv_generic.c kfree(pdata); pdata 359 drivers/uio/uio_hv_generic.c struct hv_uio_private_data *pdata = hv_get_drvdata(dev); pdata 361 drivers/uio/uio_hv_generic.c if (!pdata) pdata 364 drivers/uio/uio_hv_generic.c uio_unregister_device(&pdata->info); pdata 365 drivers/uio/uio_hv_generic.c hv_uio_cleanup(dev, pdata); pdata 369 drivers/uio/uio_hv_generic.c kfree(pdata); pdata 126 drivers/uio/uio_pruss.c struct uio_pruss_pdata *pdata = dev_get_platdata(dev); pdata 165 drivers/uio/uio_pruss.c if (pdata->sram_pool) { pdata 166 drivers/uio/uio_pruss.c gdev->sram_pool = pdata->sram_pool; pdata 193 drivers/uio/uio_pruss.c gdev->pintc_base = pdata->pintc_base; pdata 237 drivers/uio/uio_pruss.c if (pdata->sram_pool) pdata 40 drivers/usb/c67x00/c67x00-drv.c sie->mode = c67x00_sie_config(dev->pdata->sie_config, sie_num); pdata 108 drivers/usb/c67x00/c67x00-drv.c struct c67x00_platform_data *pdata; pdata 120 drivers/usb/c67x00/c67x00-drv.c pdata = dev_get_platdata(&pdev->dev); pdata 121 drivers/usb/c67x00/c67x00-drv.c if (!pdata) pdata 142 drivers/usb/c67x00/c67x00-drv.c c67x00->hpi.regstep = pdata->hpi_regstep; pdata 143 drivers/usb/c67x00/c67x00-drv.c c67x00->pdata = dev_get_platdata(&pdev->dev); pdata 240 drivers/usb/c67x00/c67x00.h struct c67x00_platform_data *pdata; pdata 299 drivers/usb/chipidea/ci_hdrc_imx.c struct ci_hdrc_platform_data pdata = { pdata 322 drivers/usb/chipidea/ci_hdrc_imx.c pdata.flags |= imx_platform_flag->flags; pdata 330 drivers/usb/chipidea/ci_hdrc_imx.c pdata.flags |= CI_HDRC_IMX_IS_HSIC; pdata 384 drivers/usb/chipidea/ci_hdrc_imx.c if (pdata.flags & CI_HDRC_PMQOS) pdata 406 drivers/usb/chipidea/ci_hdrc_imx.c pdata.usb_phy = data->phy; pdata 409 drivers/usb/chipidea/ci_hdrc_imx.c of_device_is_compatible(np, "fsl,imx51-usb")) && pdata.usb_phy && pdata 411 drivers/usb/chipidea/ci_hdrc_imx.c pdata.flags |= CI_HDRC_OVERRIDE_PHY_CONTROL; pdata 413 drivers/usb/chipidea/ci_hdrc_imx.c usb_phy_init(pdata.usb_phy); pdata 416 drivers/usb/chipidea/ci_hdrc_imx.c if (pdata.flags & CI_HDRC_SUPPORTS_RUNTIME_PM) pdata 427 drivers/usb/chipidea/ci_hdrc_imx.c &pdata); pdata 459 drivers/usb/chipidea/ci_hdrc_imx.c if (pdata.flags & CI_HDRC_PMQOS) pdata 41 drivers/usb/chipidea/ci_hdrc_msm.c struct ci_hdrc_platform_data pdata; pdata 188 drivers/usb/chipidea/ci_hdrc_msm.c ci->pdata.name = "ci_hdrc_msm"; pdata 189 drivers/usb/chipidea/ci_hdrc_msm.c ci->pdata.capoffset = DEF_CAPOFFSET; pdata 190 drivers/usb/chipidea/ci_hdrc_msm.c ci->pdata.flags = CI_HDRC_REGS_SHARED | CI_HDRC_DISABLE_STREAMING | pdata 193 drivers/usb/chipidea/ci_hdrc_msm.c ci->pdata.notify_event = ci_hdrc_msm_notify_event; pdata 254 drivers/usb/chipidea/ci_hdrc_msm.c pdev->num_resources, &ci->pdata); pdata 337 drivers/usb/dwc3/dwc3-qcom.c const struct dwc3_acpi_pdata *pdata = qcom->acpi_pdata; pdata 340 drivers/usb/dwc3/dwc3-qcom.c pdata ? pdata->hs_phy_irq_index : -1); pdata 356 drivers/usb/dwc3/dwc3-qcom.c pdata ? pdata->dp_hs_phy_irq_index : -1); pdata 371 drivers/usb/dwc3/dwc3-qcom.c pdata ? pdata->dm_hs_phy_irq_index : -1); pdata 386 drivers/usb/dwc3/dwc3-qcom.c pdata ? pdata->ss_phy_irq_index : -1); pdata 31 drivers/usb/gadget/udc/fsl_mxc_udc.c struct fsl_usb2_platform_data *pdata; pdata 35 drivers/usb/gadget/udc/fsl_mxc_udc.c pdata = dev_get_platdata(&pdev->dev); pdata 62 drivers/usb/gadget/udc/fsl_mxc_udc.c if (pdata->phy_mode != FSL_USB2_PHY_ULPI && pdata 82 drivers/usb/gadget/udc/fsl_mxc_udc.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 86 drivers/usb/gadget/udc/fsl_mxc_udc.c if (pdata->workaround & FLS_USB2_WORKAROUND_ENGCM09152) { pdata 108 drivers/usb/gadget/udc/fsl_mxc_udc.c if (pdata->phy_mode == FSL_USB2_PHY_ULPI) { pdata 116 drivers/usb/gadget/udc/fsl_udc_core.c static inline void fsl_set_accessors(struct fsl_usb2_platform_data *pdata) pdata 118 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->big_endian_mmio) { pdata 129 drivers/usb/gadget/udc/fsl_udc_core.c return udc_controller->pdata->big_endian_desc pdata 136 drivers/usb/gadget/udc/fsl_udc_core.c return udc_controller->pdata->big_endian_desc pdata 141 drivers/usb/gadget/udc/fsl_udc_core.c static inline void fsl_set_accessors(struct fsl_usb2_platform_data *pdata) {} pdata 241 drivers/usb/gadget/udc/fsl_udc_core.c if (udc->pdata->have_sysif_regs) { pdata 242 drivers/usb/gadget/udc/fsl_udc_core.c if (udc->pdata->controller_ver) { pdata 257 drivers/usb/gadget/udc/fsl_udc_core.c if (udc->pdata->have_sysif_regs) { pdata 258 drivers/usb/gadget/udc/fsl_udc_core.c if (udc->pdata->controller_ver) { pdata 303 drivers/usb/gadget/udc/fsl_udc_core.c if (udc->pdata->es) pdata 328 drivers/usb/gadget/udc/fsl_udc_core.c if (udc->pdata->have_sysif_regs) { pdata 339 drivers/usb/gadget/udc/fsl_udc_core.c if (udc->pdata->have_sysif_regs) { pdata 1561 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_usb2_platform_data *pdata = udc->pdata; pdata 1576 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->le_setup_buf) { pdata 2160 drivers/usb/gadget/udc/fsl_udc_core.c if (udc->pdata->have_sysif_regs) { pdata 2245 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_usb2_platform_data *pdata; pdata 2248 drivers/usb/gadget/udc/fsl_udc_core.c pdata = dev_get_platdata(&pdev->dev); pdata 2249 drivers/usb/gadget/udc/fsl_udc_core.c udc->phy_mode = pdata->phy_mode; pdata 2364 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_usb2_platform_data *pdata; pdata 2374 drivers/usb/gadget/udc/fsl_udc_core.c pdata = dev_get_platdata(&pdev->dev); pdata 2375 drivers/usb/gadget/udc/fsl_udc_core.c udc_controller->pdata = pdata; pdata 2380 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->operating_mode == FSL_USB2_DR_OTG) { pdata 2396 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->operating_mode == FSL_USB2_DR_DEVICE) { pdata 2411 drivers/usb/gadget/udc/fsl_udc_core.c pdata->regs = (void __iomem *)dr_regs; pdata 2416 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->init && pdata->init(pdev)) { pdata 2422 drivers/usb/gadget/udc/fsl_udc_core.c fsl_set_accessors(pdata); pdata 2425 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->have_sysif_regs) pdata 2536 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->exit) pdata 2537 drivers/usb/gadget/udc/fsl_udc_core.c pdata->exit(pdev); pdata 2542 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->operating_mode == FSL_USB2_DR_DEVICE) pdata 2556 drivers/usb/gadget/udc/fsl_udc_core.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 2579 drivers/usb/gadget/udc/fsl_udc_core.c if (res && (pdata->operating_mode == FSL_USB2_DR_DEVICE)) pdata 2589 drivers/usb/gadget/udc/fsl_udc_core.c if (pdata->exit) pdata 2590 drivers/usb/gadget/udc/fsl_udc_core.c pdata->exit(pdev); pdata 475 drivers/usb/gadget/udc/fsl_usb2_udc.h struct fsl_usb2_platform_data *pdata; pdata 218 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->on_chip) pdata 315 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->on_chip) pdata 336 drivers/usb/gadget/udc/m66592-udc.c } else if (!m66592->pdata->on_chip && m66592->num_dma == 1) { pdata 591 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->on_chip) { pdata 592 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->endian) pdata 616 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->endian) pdata 621 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->vif) pdata 626 drivers/usb/gadget/udc/m66592-udc.c switch (m66592->pdata->xtal) { pdata 682 drivers/usb/gadget/udc/m66592-udc.c if (!m66592->pdata->on_chip) { pdata 697 drivers/usb/gadget/udc/m66592-udc.c if (!m66592->pdata->on_chip) { pdata 1207 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->on_chip && !intsts0 && !intenb0) { pdata 1526 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->on_chip) { pdata 1582 drivers/usb/gadget/udc/m66592-udc.c m66592->pdata = dev_get_platdata(&pdev->dev); pdata 1602 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->on_chip) { pdata 1672 drivers/usb/gadget/udc/m66592-udc.c if (m66592->pdata->on_chip) { pdata 466 drivers/usb/gadget/udc/m66592-udc.h struct m66592_platdata *pdata; pdata 532 drivers/usb/gadget/udc/m66592-udc.h if (m66592->pdata->on_chip) { pdata 568 drivers/usb/gadget/udc/m66592-udc.h if (m66592->pdata->on_chip) { pdata 592 drivers/usb/gadget/udc/m66592-udc.h if (m66592->pdata->wr0_shorted_to_wr1) pdata 595 drivers/usb/gadget/udc/m66592-udc.h if (m66592->pdata->wr0_shorted_to_wr1) pdata 1093 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_usb_platform_data *pdata = dev_get_platdata(u3d->dev); pdata 1106 drivers/usb/gadget/udc/mv_u3d_core.c if (pdata->phy_init) { pdata 1107 drivers/usb/gadget/udc/mv_u3d_core.c retval = pdata->phy_init(u3d->phy_regs); pdata 1122 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_usb_platform_data *pdata = dev_get_platdata(u3d->dev); pdata 1125 drivers/usb/gadget/udc/mv_u3d_core.c if (pdata->phy_deinit) pdata 1126 drivers/usb/gadget/udc/mv_u3d_core.c pdata->phy_deinit(u3d->phy_regs); pdata 1230 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_usb_platform_data *pdata = dev_get_platdata(u3d->dev); pdata 1240 drivers/usb/gadget/udc/mv_u3d_core.c if (pdata->phy_init) pdata 1241 drivers/usb/gadget/udc/mv_u3d_core.c pdata->phy_init(u3d->phy_regs); pdata 1260 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_usb_platform_data *pdata = dev_get_platdata(u3d->dev); pdata 1268 drivers/usb/gadget/udc/mv_u3d_core.c if (pdata->phy_init) pdata 1269 drivers/usb/gadget/udc/mv_u3d_core.c pdata->phy_init(u3d->phy_regs); pdata 1277 drivers/usb/gadget/udc/mv_u3d_core.c if (pdata->phy_deinit) pdata 1278 drivers/usb/gadget/udc/mv_u3d_core.c pdata->phy_deinit(u3d->phy_regs); pdata 1785 drivers/usb/gadget/udc/mv_u3d_core.c struct mv_usb_platform_data *pdata = dev_get_platdata(&dev->dev); pdata 1807 drivers/usb/gadget/udc/mv_u3d_core.c u3d->vbus = pdata->vbus; pdata 1841 drivers/usb/gadget/udc/mv_u3d_core.c if (pdata->phy_init) { pdata 1842 drivers/usb/gadget/udc/mv_u3d_core.c retval = pdata->phy_init(u3d->phy_regs); pdata 1865 drivers/usb/gadget/udc/mv_u3d_core.c if (pdata->phy_deinit) pdata 1866 drivers/usb/gadget/udc/mv_u3d_core.c pdata->phy_deinit(u3d->phy_regs); pdata 218 drivers/usb/gadget/udc/mv_udc.h struct mv_usb_platform_data *pdata; pdata 1072 drivers/usb/gadget/udc/mv_udc_core.c if (udc->pdata->phy_init) { pdata 1073 drivers/usb/gadget/udc/mv_udc_core.c retval = udc->pdata->phy_init(udc->phy_regs); pdata 1098 drivers/usb/gadget/udc/mv_udc_core.c if (udc->pdata->phy_deinit) pdata 1099 drivers/usb/gadget/udc/mv_udc_core.c udc->pdata->phy_deinit(udc->phy_regs); pdata 2058 drivers/usb/gadget/udc/mv_udc_core.c if (!udc->pdata->vbus) pdata 2061 drivers/usb/gadget/udc/mv_udc_core.c vbus = udc->pdata->vbus->poll(); pdata 2110 drivers/usb/gadget/udc/mv_udc_core.c struct mv_usb_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 2116 drivers/usb/gadget/udc/mv_udc_core.c if (pdata == NULL) { pdata 2126 drivers/usb/gadget/udc/mv_udc_core.c udc->pdata = dev_get_platdata(&pdev->dev); pdata 2131 drivers/usb/gadget/udc/mv_udc_core.c if (pdata->mode == MV_USB_MODE_OTG) { pdata 2272 drivers/usb/gadget/udc/mv_udc_core.c else if (pdata->vbus) { pdata 2275 drivers/usb/gadget/udc/mv_udc_core.c pdata->vbus->irq, NULL, pdata 2339 drivers/usb/gadget/udc/mv_udc_core.c if (udc->pdata->vbus && udc->pdata->vbus->poll) pdata 2340 drivers/usb/gadget/udc/mv_udc_core.c if (udc->pdata->vbus->poll() == VBUS_HIGH) { pdata 263 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597->pdata->on_chip) pdata 802 drivers/usb/gadget/udc/r8a66597-udc.c u16 vif = r8a66597->pdata->vif ? LDRV : 0; pdata 804 drivers/usb/gadget/udc/r8a66597-udc.c u16 endian = r8a66597->pdata->endian ? BIGEND : 0; pdata 806 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597->pdata->on_chip) { pdata 807 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597->pdata->buswait) pdata 808 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, r8a66597->pdata->buswait, pdata 826 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_mdfy(r8a66597, get_xtal_from_pdata(r8a66597->pdata), pdata 851 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597->pdata->on_chip) { pdata 885 drivers/usb/gadget/udc/r8a66597-udc.c if (!r8a66597->pdata->on_chip) { pdata 1816 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597->pdata->on_chip) { pdata 1870 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->pdata = dev_get_platdata(dev); pdata 1880 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597->pdata->on_chip) { pdata 1890 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597->pdata->sudmac) { pdata 1959 drivers/usb/gadget/udc/r8a66597-udc.c if (r8a66597->pdata->on_chip) pdata 40 drivers/usb/gadget/udc/r8a66597-udc.h #define r8a66597_is_sudmac(r8a66597) (r8a66597->pdata->sudmac) pdata 90 drivers/usb/gadget/udc/r8a66597-udc.h struct r8a66597_platdata *pdata; pdata 136 drivers/usb/gadget/udc/r8a66597-udc.h if (r8a66597->pdata->on_chip) { pdata 203 drivers/usb/gadget/udc/r8a66597-udc.h if (r8a66597->pdata->on_chip) { pdata 221 drivers/usb/gadget/udc/r8a66597-udc.h if (r8a66597->pdata->on_chip) pdata 227 drivers/usb/gadget/udc/r8a66597-udc.h if (r8a66597->pdata->wr0_shorted_to_wr1) pdata 231 drivers/usb/gadget/udc/r8a66597-udc.h if (r8a66597->pdata->wr0_shorted_to_wr1) pdata 235 drivers/usb/gadget/udc/r8a66597-udc.h static inline u16 get_xtal_from_pdata(struct r8a66597_platdata *pdata) pdata 239 drivers/usb/gadget/udc/r8a66597-udc.h switch (pdata->xtal) { pdata 49 drivers/usb/host/ehci-fsl.c struct fsl_usb2_platform_data *pdata; pdata 59 drivers/usb/host/ehci-fsl.c pdata = dev_get_platdata(&pdev->dev); pdata 60 drivers/usb/host/ehci-fsl.c if (!pdata) { pdata 70 drivers/usb/host/ehci-fsl.c if (!((pdata->operating_mode == FSL_USB2_DR_HOST) || pdata 71 drivers/usb/host/ehci-fsl.c (pdata->operating_mode == FSL_USB2_MPH_HOST) || pdata 72 drivers/usb/host/ehci-fsl.c (pdata->operating_mode == FSL_USB2_DR_OTG))) { pdata 105 drivers/usb/host/ehci-fsl.c pdata->regs = hcd->regs; pdata 107 drivers/usb/host/ehci-fsl.c if (pdata->power_budget) pdata 108 drivers/usb/host/ehci-fsl.c hcd->power_budget = pdata->power_budget; pdata 113 drivers/usb/host/ehci-fsl.c if (pdata->init && pdata->init(pdev)) { pdata 119 drivers/usb/host/ehci-fsl.c if (pdata->have_sysif_regs && pdata->controller_ver < FSL_USB_VER_1_6) { pdata 127 drivers/usb/host/ehci-fsl.c if (pdata->controller_ver == FSL_USB_VER_2_5 && pdata 128 drivers/usb/host/ehci-fsl.c pdata->phy_mode == FSL_USB2_PHY_ULPI) pdata 135 drivers/usb/host/ehci-fsl.c if (pdata->has_fsl_erratum_a007792) { pdata 152 drivers/usb/host/ehci-fsl.c if (pdata->operating_mode == FSL_USB2_DR_OTG) { pdata 181 drivers/usb/host/ehci-fsl.c if (pdata->exit) pdata 182 drivers/usb/host/ehci-fsl.c pdata->exit(pdev); pdata 205 drivers/usb/host/ehci-fsl.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(dev); pdata 207 drivers/usb/host/ehci-fsl.c if (pdata->controller_ver < 0) { pdata 217 drivers/usb/host/ehci-fsl.c if (pdata->have_sysif_regs && pdata->controller_ver) { pdata 243 drivers/usb/host/ehci-fsl.c if (pdata->has_fsl_erratum_a006918) { pdata 253 drivers/usb/host/ehci-fsl.c if (pdata->controller_ver > FSL_USB_VER_2_4 && pdata 254 drivers/usb/host/ehci-fsl.c pdata->have_sysif_regs && !usb_phy_clk_valid(hcd)) { pdata 259 drivers/usb/host/ehci-fsl.c if (pdata->have_sysif_regs && pdata->controller_ver) { pdata 270 drivers/usb/host/ehci-fsl.c if (pdata->have_sysif_regs) { pdata 282 drivers/usb/host/ehci-fsl.c if (pdata->have_sysif_regs && pdata 283 drivers/usb/host/ehci-fsl.c pdata->controller_ver > FSL_USB_VER_1_6 && pdata 291 drivers/usb/host/ehci-fsl.c if (phy_mode != FSL_USB2_PHY_ULPI && pdata->have_sysif_regs) { pdata 304 drivers/usb/host/ehci-fsl.c struct fsl_usb2_platform_data *pdata; pdata 307 drivers/usb/host/ehci-fsl.c pdata = dev_get_platdata(hcd->self.controller); pdata 309 drivers/usb/host/ehci-fsl.c if (pdata->have_sysif_regs) { pdata 325 drivers/usb/host/ehci-fsl.c if (pdata->has_fsl_erratum_a005275 == 1) pdata 328 drivers/usb/host/ehci-fsl.c if (pdata->has_fsl_erratum_a005697 == 1) pdata 331 drivers/usb/host/ehci-fsl.c if ((pdata->operating_mode == FSL_USB2_DR_HOST) || pdata 332 drivers/usb/host/ehci-fsl.c (pdata->operating_mode == FSL_USB2_DR_OTG)) pdata 333 drivers/usb/host/ehci-fsl.c if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) pdata 336 drivers/usb/host/ehci-fsl.c if (pdata->operating_mode == FSL_USB2_MPH_HOST) { pdata 339 drivers/usb/host/ehci-fsl.c if (pdata->has_fsl_erratum_14 == 1) pdata 342 drivers/usb/host/ehci-fsl.c if (pdata->port_enables & FSL_USB2_PORT0_ENABLED) pdata 343 drivers/usb/host/ehci-fsl.c if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 0)) pdata 346 drivers/usb/host/ehci-fsl.c if (pdata->port_enables & FSL_USB2_PORT1_ENABLED) pdata 347 drivers/usb/host/ehci-fsl.c if (ehci_fsl_setup_phy(hcd, pdata->phy_mode, 1)) pdata 351 drivers/usb/host/ehci-fsl.c if (pdata->have_sysif_regs) { pdata 379 drivers/usb/host/ehci-fsl.c struct fsl_usb2_platform_data *pdata; pdata 383 drivers/usb/host/ehci-fsl.c pdata = dev_get_platdata(hcd->self.controller); pdata 384 drivers/usb/host/ehci-fsl.c ehci->big_endian_desc = pdata->big_endian_desc; pdata 385 drivers/usb/host/ehci-fsl.c ehci->big_endian_mmio = pdata->big_endian_mmio; pdata 435 drivers/usb/host/ehci-fsl.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(dev); pdata 444 drivers/usb/host/ehci-fsl.c "mode=%d usbcmd %08x\n", pdata->suspended, pdata 445 drivers/usb/host/ehci-fsl.c pdata->already_suspended, mode, tmp); pdata 453 drivers/usb/host/ehci-fsl.c if (pdata->suspended) { pdata 455 drivers/usb/host/ehci-fsl.c pdata->already_suspended = 1; pdata 473 drivers/usb/host/ehci-fsl.c pdata->pm_command = ehci_readl(ehci, &ehci->regs->command); pdata 474 drivers/usb/host/ehci-fsl.c pdata->pm_command &= ~CMD_RUN; pdata 475 drivers/usb/host/ehci-fsl.c pdata->pm_status = ehci_readl(ehci, &ehci->regs->status); pdata 476 drivers/usb/host/ehci-fsl.c pdata->pm_intr_enable = ehci_readl(ehci, &ehci->regs->intr_enable); pdata 477 drivers/usb/host/ehci-fsl.c pdata->pm_frame_index = ehci_readl(ehci, &ehci->regs->frame_index); pdata 478 drivers/usb/host/ehci-fsl.c pdata->pm_segment = ehci_readl(ehci, &ehci->regs->segment); pdata 479 drivers/usb/host/ehci-fsl.c pdata->pm_frame_list = ehci_readl(ehci, &ehci->regs->frame_list); pdata 480 drivers/usb/host/ehci-fsl.c pdata->pm_async_next = ehci_readl(ehci, &ehci->regs->async_next); pdata 481 drivers/usb/host/ehci-fsl.c pdata->pm_configured_flag = pdata 483 drivers/usb/host/ehci-fsl.c pdata->pm_portsc = ehci_readl(ehci, &ehci->regs->port_status[0]); pdata 484 drivers/usb/host/ehci-fsl.c pdata->pm_usbgenctrl = ehci_readl(ehci, pdata 488 drivers/usb/host/ehci-fsl.c pdata->pm_portsc &= cpu_to_hc32(ehci, ~PORT_RWC_BITS); pdata 490 drivers/usb/host/ehci-fsl.c pdata->suspended = 1; pdata 504 drivers/usb/host/ehci-fsl.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(dev); pdata 508 drivers/usb/host/ehci-fsl.c pdata->suspended, pdata->already_suspended); pdata 514 drivers/usb/host/ehci-fsl.c if (pdata->already_suspended) { pdata 516 drivers/usb/host/ehci-fsl.c pdata->already_suspended = 0; pdata 520 drivers/usb/host/ehci-fsl.c if (!pdata->suspended) { pdata 525 drivers/usb/host/ehci-fsl.c pdata->suspended = 0; pdata 530 drivers/usb/host/ehci-fsl.c tmp = USBMODE_CM_HOST | (pdata->es ? USBMODE_ES : 0); pdata 533 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_usbgenctrl, pdata 541 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_command, &ehci->regs->command); pdata 542 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_intr_enable, &ehci->regs->intr_enable); pdata 543 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_frame_index, &ehci->regs->frame_index); pdata 544 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_segment, &ehci->regs->segment); pdata 545 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_frame_list, &ehci->regs->frame_list); pdata 546 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_async_next, &ehci->regs->async_next); pdata 547 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_configured_flag, pdata 549 drivers/usb/host/ehci-fsl.c ehci_writel(ehci, pdata->pm_portsc, &ehci->regs->port_status[0]); pdata 695 drivers/usb/host/ehci-fsl.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 709 drivers/usb/host/ehci-fsl.c if (pdata->exit) pdata 710 drivers/usb/host/ehci-fsl.c pdata->exit(pdev); pdata 95 drivers/usb/host/ehci-mv.c struct mv_usb_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 114 drivers/usb/host/ehci-mv.c if (pdata) { pdata 115 drivers/usb/host/ehci-mv.c ehci_mv->mode = pdata->mode; pdata 116 drivers/usb/host/ehci-mv.c ehci_mv->set_vbus = pdata->set_vbus; pdata 39 drivers/usb/host/ehci-mxc.c struct mxc_usbh_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 47 drivers/usb/host/ehci-mxc.c if (!pdata) { pdata 95 drivers/usb/host/ehci-mxc.c if (pdata->init) { pdata 96 drivers/usb/host/ehci-mxc.c ret = pdata->init(pdev); pdata 111 drivers/usb/host/ehci-mxc.c ehci_writel(ehci, pdata->portsc, &ehci->regs->port_status[0]); pdata 117 drivers/usb/host/ehci-mxc.c if (pdata->otg) { pdata 118 drivers/usb/host/ehci-mxc.c pdata->otg->io_priv = hcd->regs + ULPI_VIEWPORT_OFFSET; pdata 119 drivers/usb/host/ehci-mxc.c ret = usb_phy_init(pdata->otg); pdata 125 drivers/usb/host/ehci-mxc.c ret = otg_set_vbus(pdata->otg->otg, 1); pdata 142 drivers/usb/host/ehci-mxc.c if (pdata && pdata->exit) pdata 143 drivers/usb/host/ehci-mxc.c pdata->exit(pdev); pdata 158 drivers/usb/host/ehci-mxc.c struct mxc_usbh_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 165 drivers/usb/host/ehci-mxc.c if (pdata && pdata->exit) pdata 166 drivers/usb/host/ehci-mxc.c pdata->exit(pdev); pdata 168 drivers/usb/host/ehci-mxc.c if (pdata && pdata->otg) pdata 169 drivers/usb/host/ehci-mxc.c usb_phy_shutdown(pdata->otg); pdata 89 drivers/usb/host/ehci-omap.c struct usbhs_omap_platform_data *pdata = dev_get_platdata(dev); pdata 108 drivers/usb/host/ehci-omap.c pdata = dev_get_platdata(dev->parent); pdata 109 drivers/usb/host/ehci-omap.c dev->platform_data = pdata; pdata 112 drivers/usb/host/ehci-omap.c if (!pdata) { pdata 149 drivers/usb/host/ehci-omap.c omap->nports = pdata->nports; pdata 174 drivers/usb/host/ehci-omap.c if (pdata->port_mode[i] == OMAP_EHCI_PORT_MODE_PHY) { pdata 211 drivers/usb/host/ehci-omap.c pdata->port_mode[i] == OMAP_EHCI_PORT_MODE_PHY) pdata 54 drivers/usb/host/ehci-platform.c struct usb_ehci_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 58 drivers/usb/host/ehci-platform.c ehci->has_synopsys_hc_bug = pdata->has_synopsys_hc_bug; pdata 60 drivers/usb/host/ehci-platform.c if (pdata->pre_setup) { pdata 61 drivers/usb/host/ehci-platform.c retval = pdata->pre_setup(hcd); pdata 66 drivers/usb/host/ehci-platform.c ehci->caps = hcd->regs + pdata->caps_offset; pdata 71 drivers/usb/host/ehci-platform.c if (pdata->no_io_watchdog) pdata 125 drivers/usb/host/ehci-platform.c struct usb_ehci_pdata *pdata = dev_get_platdata(&dev->dev); pdata 137 drivers/usb/host/ehci-platform.c if (!pdata) pdata 138 drivers/usb/host/ehci-platform.c pdata = &ehci_platform_defaults; pdata 141 drivers/usb/host/ehci-platform.c pdata->dma_mask_64 ? DMA_BIT_MASK(64) : DMA_BIT_MASK(32)); pdata 157 drivers/usb/host/ehci-platform.c dev->dev.platform_data = pdata; pdata 161 drivers/usb/host/ehci-platform.c if (pdata == &ehci_platform_defaults && dev->dev.of_node) { pdata 201 drivers/usb/host/ehci-platform.c if (pdata->big_endian_desc) pdata 203 drivers/usb/host/ehci-platform.c if (pdata->big_endian_mmio) pdata 205 drivers/usb/host/ehci-platform.c if (pdata->has_tt) pdata 207 drivers/usb/host/ehci-platform.c if (pdata->reset_on_resume) pdata 227 drivers/usb/host/ehci-platform.c if (pdata->power_on) { pdata 228 drivers/usb/host/ehci-platform.c err = pdata->power_on(dev); pdata 253 drivers/usb/host/ehci-platform.c if (pdata->power_off) pdata 254 drivers/usb/host/ehci-platform.c pdata->power_off(dev); pdata 261 drivers/usb/host/ehci-platform.c if (pdata == &ehci_platform_defaults) pdata 272 drivers/usb/host/ehci-platform.c struct usb_ehci_pdata *pdata = dev_get_platdata(&dev->dev); pdata 278 drivers/usb/host/ehci-platform.c if (pdata->power_off) pdata 279 drivers/usb/host/ehci-platform.c pdata->power_off(dev); pdata 288 drivers/usb/host/ehci-platform.c if (pdata == &ehci_platform_defaults) pdata 298 drivers/usb/host/ehci-platform.c struct usb_ehci_pdata *pdata = dev_get_platdata(dev); pdata 307 drivers/usb/host/ehci-platform.c if (pdata->power_suspend) pdata 308 drivers/usb/host/ehci-platform.c pdata->power_suspend(pdev); pdata 316 drivers/usb/host/ehci-platform.c struct usb_ehci_pdata *pdata = dev_get_platdata(dev); pdata 321 drivers/usb/host/ehci-platform.c if (pdata->power_on) { pdata 322 drivers/usb/host/ehci-platform.c int err = pdata->power_on(pdev); pdata 79 drivers/usb/host/ehci-sh.c struct ehci_sh_platdata *pdata; pdata 92 drivers/usb/host/ehci-sh.c pdata = dev_get_platdata(&pdev->dev); pdata 130 drivers/usb/host/ehci-sh.c if (pdata && pdata->phy_init) pdata 131 drivers/usb/host/ehci-sh.c pdata->phy_init(); pdata 53 drivers/usb/host/ehci-st.c struct usb_ehci_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 61 drivers/usb/host/ehci-st.c ehci->caps = hcd->regs + pdata->caps_offset; pdata 153 drivers/usb/host/ehci-st.c struct usb_ehci_pdata *pdata = &ehci_platform_defaults; pdata 175 drivers/usb/host/ehci-st.c dev->dev.platform_data = pdata; pdata 221 drivers/usb/host/ehci-st.c if (pdata->power_on) { pdata 222 drivers/usb/host/ehci-st.c err = pdata->power_on(dev); pdata 249 drivers/usb/host/ehci-st.c if (pdata == &ehci_platform_defaults) pdata 260 drivers/usb/host/ehci-st.c struct usb_ehci_pdata *pdata = dev_get_platdata(&dev->dev); pdata 266 drivers/usb/host/ehci-st.c if (pdata->power_off) pdata 267 drivers/usb/host/ehci-st.c pdata->power_off(dev); pdata 274 drivers/usb/host/ehci-st.c if (pdata == &ehci_platform_defaults) pdata 285 drivers/usb/host/ehci-st.c struct usb_ehci_pdata *pdata = dev_get_platdata(dev); pdata 294 drivers/usb/host/ehci-st.c if (pdata->power_suspend) pdata 295 drivers/usb/host/ehci-st.c pdata->power_suspend(pdev); pdata 305 drivers/usb/host/ehci-st.c struct usb_ehci_pdata *pdata = dev_get_platdata(dev); pdata 311 drivers/usb/host/ehci-st.c if (pdata->power_on) { pdata 312 drivers/usb/host/ehci-st.c err = pdata->power_on(pdev); pdata 79 drivers/usb/host/fsl-mph-dr-of.c struct fsl_usb2_platform_data *pdata, pdata 102 drivers/usb/host/fsl-mph-dr-of.c retval = platform_device_add_data(pdev, pdata, sizeof(*pdata)); pdata 175 drivers/usb/host/fsl-mph-dr-of.c struct fsl_usb2_platform_data data, *pdata; pdata 189 drivers/usb/host/fsl-mph-dr-of.c pdata = &data; pdata 191 drivers/usb/host/fsl-mph-dr-of.c memcpy(pdata, match->data, sizeof(data)); pdata 193 drivers/usb/host/fsl-mph-dr-of.c memset(pdata, 0, sizeof(data)); pdata 199 drivers/usb/host/fsl-mph-dr-of.c pdata->port_enables |= FSL_USB2_PORT0_ENABLED; pdata 202 drivers/usb/host/fsl-mph-dr-of.c pdata->port_enables |= FSL_USB2_PORT1_ENABLED; pdata 204 drivers/usb/host/fsl-mph-dr-of.c pdata->operating_mode = FSL_USB2_MPH_HOST; pdata 207 drivers/usb/host/fsl-mph-dr-of.c pdata->invert_drvvbus = 1; pdata 210 drivers/usb/host/fsl-mph-dr-of.c pdata->invert_pwr_fault = 1; pdata 213 drivers/usb/host/fsl-mph-dr-of.c pdata->operating_mode = dev_data->op_mode; pdata 217 drivers/usb/host/fsl-mph-dr-of.c pdata->phy_mode = determine_usb_phy(prop); pdata 218 drivers/usb/host/fsl-mph-dr-of.c pdata->controller_ver = usb_get_ver_info(np); pdata 221 drivers/usb/host/fsl-mph-dr-of.c pdata->has_fsl_erratum_a007792 = pdata 223 drivers/usb/host/fsl-mph-dr-of.c pdata->has_fsl_erratum_a005275 = pdata 225 drivers/usb/host/fsl-mph-dr-of.c pdata->has_fsl_erratum_a005697 = pdata 227 drivers/usb/host/fsl-mph-dr-of.c pdata->has_fsl_erratum_a006918 = pdata 229 drivers/usb/host/fsl-mph-dr-of.c pdata->has_fsl_erratum_14 = pdata 236 drivers/usb/host/fsl-mph-dr-of.c pdata->check_phy_clk_valid = pdata 239 drivers/usb/host/fsl-mph-dr-of.c if (pdata->have_sysif_regs) { pdata 240 drivers/usb/host/fsl-mph-dr-of.c if (pdata->controller_ver == FSL_USB_VER_NONE) { pdata 249 drivers/usb/host/fsl-mph-dr-of.c usb_dev = fsl_usb2_device_register(ofdev, pdata, pdata 291 drivers/usb/host/fsl-mph-dr-of.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 305 drivers/usb/host/fsl-mph-dr-of.c pdata->clk = clk; pdata 307 drivers/usb/host/fsl-mph-dr-of.c if (pdata->phy_mode == FSL_USB2_PHY_UTMI_WIDE) { pdata 310 drivers/usb/host/fsl-mph-dr-of.c if (pdata->invert_drvvbus) pdata 313 drivers/usb/host/fsl-mph-dr-of.c if (pdata->invert_pwr_fault) pdata 316 drivers/usb/host/fsl-mph-dr-of.c out_be32(pdata->regs + ISIPHYCTRL, PHYCTRL_PHYE | PHYCTRL_PXE); pdata 317 drivers/usb/host/fsl-mph-dr-of.c out_be32(pdata->regs + USBGENCTRL, reg); pdata 324 drivers/usb/host/fsl-mph-dr-of.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 326 drivers/usb/host/fsl-mph-dr-of.c pdata->regs = NULL; pdata 328 drivers/usb/host/fsl-mph-dr-of.c if (pdata->clk) pdata 329 drivers/usb/host/fsl-mph-dr-of.c clk_disable_unprepare(pdata->clk); pdata 1691 drivers/usb/host/imx21-hcd.c hw_mode |= ((imx21->pdata->host_xcvr << USBOTG_HWMODE_HOSTXCVR_SHIFT) & pdata 1693 drivers/usb/host/imx21-hcd.c hw_mode |= ((imx21->pdata->otg_xcvr << USBOTG_HWMODE_OTGXCVR_SHIFT) & pdata 1696 drivers/usb/host/imx21-hcd.c if (imx21->pdata->host1_txenoe) pdata 1699 drivers/usb/host/imx21-hcd.c if (!imx21->pdata->host1_xcverless) pdata 1702 drivers/usb/host/imx21-hcd.c if (imx21->pdata->otg_ext_xcvr) pdata 1725 drivers/usb/host/imx21-hcd.c if (imx21->pdata->enable_otg_host) pdata 1729 drivers/usb/host/imx21-hcd.c if (imx21->pdata->enable_host1) pdata 1733 drivers/usb/host/imx21-hcd.c if (imx21->pdata->enable_host2) pdata 1853 drivers/usb/host/imx21-hcd.c imx21->pdata = dev_get_platdata(&pdev->dev); pdata 1854 drivers/usb/host/imx21-hcd.c if (!imx21->pdata) pdata 1855 drivers/usb/host/imx21-hcd.c imx21->pdata = &default_pdata; pdata 410 drivers/usb/host/imx21-hcd.h struct mx21_usbh_platform_data *pdata; pdata 1699 drivers/usb/host/max3421-hcd.c struct max3421_hcd_platform_data *pdata; pdata 1703 drivers/usb/host/max3421-hcd.c pdata = spi->dev.platform_data; pdata 1716 drivers/usb/host/max3421-hcd.c max3421_gpout_set_value(hcd, pdata->vbus_gpout, pdata 1717 drivers/usb/host/max3421-hcd.c !pdata->vbus_active_level); pdata 1766 drivers/usb/host/max3421-hcd.c max3421_gpout_set_value(hcd, pdata->vbus_gpout, pdata 1767 drivers/usb/host/max3421-hcd.c pdata->vbus_active_level); pdata 1822 drivers/usb/host/max3421-hcd.c max3421_of_vbus_en_pin(struct device *dev, struct max3421_hcd_platform_data *pdata) pdata 1827 drivers/usb/host/max3421-hcd.c if (!pdata) pdata 1837 drivers/usb/host/max3421-hcd.c pdata->vbus_gpout = value[0]; pdata 1838 drivers/usb/host/max3421-hcd.c pdata->vbus_active_level = value[1]; pdata 1849 drivers/usb/host/max3421-hcd.c struct max3421_hcd_platform_data *pdata = NULL; pdata 1863 drivers/usb/host/max3421-hcd.c pdata = devm_kzalloc(&spi->dev, sizeof(*pdata), GFP_KERNEL); pdata 1864 drivers/usb/host/max3421-hcd.c if (!pdata) { pdata 1868 drivers/usb/host/max3421-hcd.c retval = max3421_of_vbus_en_pin(dev, pdata); pdata 1872 drivers/usb/host/max3421-hcd.c spi->dev.platform_data = pdata; pdata 1875 drivers/usb/host/max3421-hcd.c pdata = spi->dev.platform_data; pdata 1876 drivers/usb/host/max3421-hcd.c if (!pdata) { pdata 1881 drivers/usb/host/max3421-hcd.c if (pdata->vbus_active_level > 1) { pdata 1882 drivers/usb/host/max3421-hcd.c dev_err(&spi->dev, "vbus active level value %d is out of range (0/1)\n", pdata->vbus_active_level); pdata 1886 drivers/usb/host/max3421-hcd.c if (pdata->vbus_gpout < 1 || pdata->vbus_gpout > MAX3421_GPOUT_COUNT) { pdata 1887 drivers/usb/host/max3421-hcd.c dev_err(&spi->dev, "vbus gpout value %d is out of range (1..8)\n", pdata->vbus_gpout); pdata 1934 drivers/usb/host/max3421-hcd.c if (IS_ENABLED(CONFIG_OF) && dev->of_node && pdata) { pdata 1935 drivers/usb/host/max3421-hcd.c devm_kfree(&spi->dev, pdata); pdata 267 drivers/usb/host/ohci-at91.c static void ohci_at91_usb_set_power(struct at91_usbh_data *pdata, int port, int enable) pdata 272 drivers/usb/host/ohci-at91.c gpiod_set_value(pdata->vbus_pin[port], enable); pdata 275 drivers/usb/host/ohci-at91.c static int ohci_at91_usb_get_power(struct at91_usbh_data *pdata, int port) pdata 280 drivers/usb/host/ohci-at91.c return gpiod_get_value(pdata->vbus_pin[port]); pdata 288 drivers/usb/host/ohci-at91.c struct at91_usbh_data *pdata = hcd->self.controller->platform_data; pdata 293 drivers/usb/host/ohci-at91.c if (pdata->overcurrent_changed[port]) { pdata 331 drivers/usb/host/ohci-at91.c struct at91_usbh_data *pdata = dev_get_platdata(hcd->self.controller); pdata 349 drivers/usb/host/ohci-at91.c ohci_at91_usb_set_power(pdata, wIndex, 1); pdata 373 drivers/usb/host/ohci-at91.c pdata->overcurrent_changed[wIndex] = 0; pdata 374 drivers/usb/host/ohci-at91.c pdata->overcurrent_status[wIndex] = 0; pdata 384 drivers/usb/host/ohci-at91.c pdata->overcurrent_status[wIndex] = 0; pdata 393 drivers/usb/host/ohci-at91.c ohci_at91_usb_set_power(pdata, wIndex, 0); pdata 432 drivers/usb/host/ohci-at91.c if (pdata->overcurrent_supported) { pdata 449 drivers/usb/host/ohci-at91.c if (!ohci_at91_usb_get_power(pdata, wIndex)) pdata 452 drivers/usb/host/ohci-at91.c if (pdata->overcurrent_changed[wIndex]) pdata 455 drivers/usb/host/ohci-at91.c if (pdata->overcurrent_status[wIndex]) pdata 469 drivers/usb/host/ohci-at91.c struct at91_usbh_data *pdata = dev_get_platdata(&pdev->dev); pdata 475 drivers/usb/host/ohci-at91.c if (gpiod_to_irq(pdata->overcurrent_pin[port]) == irq) pdata 484 drivers/usb/host/ohci-at91.c val = gpiod_get_value(pdata->overcurrent_pin[port]); pdata 490 drivers/usb/host/ohci-at91.c ohci_at91_usb_set_power(pdata, port, 0); pdata 491 drivers/usb/host/ohci-at91.c pdata->overcurrent_status[port] = 1; pdata 492 drivers/usb/host/ohci-at91.c pdata->overcurrent_changed[port] = 1; pdata 513 drivers/usb/host/ohci-at91.c struct at91_usbh_data *pdata; pdata 527 drivers/usb/host/ohci-at91.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 528 drivers/usb/host/ohci-at91.c if (!pdata) pdata 531 drivers/usb/host/ohci-at91.c pdev->dev.platform_data = pdata; pdata 534 drivers/usb/host/ohci-at91.c pdata->ports = ports; pdata 537 drivers/usb/host/ohci-at91.c if (i >= pdata->ports) pdata 540 drivers/usb/host/ohci-at91.c pdata->vbus_pin[i] = pdata 543 drivers/usb/host/ohci-at91.c if (IS_ERR(pdata->vbus_pin[i])) { pdata 544 drivers/usb/host/ohci-at91.c err = PTR_ERR(pdata->vbus_pin[i]); pdata 551 drivers/usb/host/ohci-at91.c if (i >= pdata->ports) pdata 554 drivers/usb/host/ohci-at91.c pdata->overcurrent_pin[i] = pdata 557 drivers/usb/host/ohci-at91.c if (!pdata->overcurrent_pin[i]) pdata 559 drivers/usb/host/ohci-at91.c if (IS_ERR(pdata->overcurrent_pin[i])) { pdata 560 drivers/usb/host/ohci-at91.c err = PTR_ERR(pdata->overcurrent_pin[i]); pdata 566 drivers/usb/host/ohci-at91.c gpiod_to_irq(pdata->overcurrent_pin[i]), pdata 580 drivers/usb/host/ohci-at91.c struct at91_usbh_data *pdata = dev_get_platdata(&pdev->dev); pdata 583 drivers/usb/host/ohci-at91.c if (pdata) { pdata 585 drivers/usb/host/ohci-at91.c ohci_at91_usb_set_power(pdata, i, 0); pdata 94 drivers/usb/host/ohci-platform.c struct usb_ohci_pdata *pdata = dev_get_platdata(&dev->dev); pdata 106 drivers/usb/host/ohci-platform.c if (!pdata) pdata 107 drivers/usb/host/ohci-platform.c pdata = &ohci_platform_defaults; pdata 123 drivers/usb/host/ohci-platform.c dev->dev.platform_data = pdata; pdata 127 drivers/usb/host/ohci-platform.c if (pdata == &ohci_platform_defaults && dev->dev.of_node) { pdata 170 drivers/usb/host/ohci-platform.c if (pdata->big_endian_desc) pdata 172 drivers/usb/host/ohci-platform.c if (pdata->big_endian_mmio) pdata 174 drivers/usb/host/ohci-platform.c if (pdata->no_big_frame_no) pdata 176 drivers/usb/host/ohci-platform.c if (pdata->num_ports) pdata 177 drivers/usb/host/ohci-platform.c ohci->num_ports = pdata->num_ports; pdata 198 drivers/usb/host/ohci-platform.c if (pdata->power_on) { pdata 199 drivers/usb/host/ohci-platform.c err = pdata->power_on(dev); pdata 224 drivers/usb/host/ohci-platform.c if (pdata->power_off) pdata 225 drivers/usb/host/ohci-platform.c pdata->power_off(dev); pdata 233 drivers/usb/host/ohci-platform.c if (pdata == &ohci_platform_defaults) pdata 244 drivers/usb/host/ohci-platform.c struct usb_ohci_pdata *pdata = dev_get_platdata(&dev->dev); pdata 251 drivers/usb/host/ohci-platform.c if (pdata->power_off) pdata 252 drivers/usb/host/ohci-platform.c pdata->power_off(dev); pdata 264 drivers/usb/host/ohci-platform.c if (pdata == &ohci_platform_defaults) pdata 274 drivers/usb/host/ohci-platform.c struct usb_ohci_pdata *pdata = dev->platform_data; pdata 283 drivers/usb/host/ohci-platform.c if (pdata->power_suspend) pdata 284 drivers/usb/host/ohci-platform.c pdata->power_suspend(pdev); pdata 292 drivers/usb/host/ohci-platform.c struct usb_ohci_pdata *pdata = dev_get_platdata(dev); pdata 295 drivers/usb/host/ohci-platform.c if (pdata->power_on) { pdata 296 drivers/usb/host/ohci-platform.c int err = pdata->power_on(pdev); pdata 354 drivers/usb/host/ohci-pxa27x.c struct pxaohci_platform_data *pdata; pdata 369 drivers/usb/host/ohci-pxa27x.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 370 drivers/usb/host/ohci-pxa27x.c if (!pdata) pdata 374 drivers/usb/host/ohci-pxa27x.c pdata->flags |= ENABLE_PORT1; pdata 376 drivers/usb/host/ohci-pxa27x.c pdata->flags |= ENABLE_PORT2; pdata 378 drivers/usb/host/ohci-pxa27x.c pdata->flags |= ENABLE_PORT3; pdata 380 drivers/usb/host/ohci-pxa27x.c pdata->flags |= POWER_SENSE_LOW; pdata 382 drivers/usb/host/ohci-pxa27x.c pdata->flags |= POWER_CONTROL_LOW; pdata 384 drivers/usb/host/ohci-pxa27x.c pdata->flags |= NO_OC_PROTECTION; pdata 386 drivers/usb/host/ohci-pxa27x.c pdata->flags |= OC_MODE_PERPORT; pdata 388 drivers/usb/host/ohci-pxa27x.c pdata->power_on_delay = tmp; pdata 390 drivers/usb/host/ohci-pxa27x.c pdata->port_mode = tmp; pdata 392 drivers/usb/host/ohci-pxa27x.c pdata->power_budget = tmp; pdata 394 drivers/usb/host/ohci-pxa27x.c pdev->dev.platform_data = pdata; pdata 133 drivers/usb/host/ohci-st.c struct usb_ohci_pdata *pdata = &ohci_platform_defaults; pdata 156 drivers/usb/host/ohci-st.c dev->dev.platform_data = pdata; pdata 198 drivers/usb/host/ohci-st.c if (pdata->power_on) { pdata 199 drivers/usb/host/ohci-st.c err = pdata->power_on(dev); pdata 223 drivers/usb/host/ohci-st.c if (pdata->power_off) pdata 224 drivers/usb/host/ohci-st.c pdata->power_off(dev); pdata 230 drivers/usb/host/ohci-st.c if (pdata == &ohci_platform_defaults) pdata 241 drivers/usb/host/ohci-st.c struct usb_ohci_pdata *pdata = dev_get_platdata(&dev->dev); pdata 247 drivers/usb/host/ohci-st.c if (pdata->power_off) pdata 248 drivers/usb/host/ohci-st.c pdata->power_off(dev); pdata 256 drivers/usb/host/ohci-st.c if (pdata == &ohci_platform_defaults) pdata 267 drivers/usb/host/ohci-st.c struct usb_ohci_pdata *pdata = dev->platform_data; pdata 276 drivers/usb/host/ohci-st.c if (pdata->power_suspend) pdata 277 drivers/usb/host/ohci-st.c pdata->power_suspend(pdev); pdata 285 drivers/usb/host/ohci-st.c struct usb_ohci_pdata *pdata = dev_get_platdata(dev); pdata 289 drivers/usb/host/ohci-st.c if (pdata->power_on) { pdata 290 drivers/usb/host/ohci-st.c err = pdata->power_on(pdev); pdata 83 drivers/usb/host/r8a66597-hcd.c if (r8a66597->pdata->on_chip) { pdata 104 drivers/usb/host/r8a66597-hcd.c r8a66597_mdfy(r8a66597, get_xtal_from_pdata(r8a66597->pdata), pdata 127 drivers/usb/host/r8a66597-hcd.c if (r8a66597->pdata->on_chip) { pdata 171 drivers/usb/host/r8a66597-hcd.c u16 vif = r8a66597->pdata->vif ? LDRV : 0; pdata 173 drivers/usb/host/r8a66597-hcd.c u16 endian = r8a66597->pdata->endian ? BIGEND : 0; pdata 503 drivers/usb/host/r8a66597-hcd.c if (r8a66597->pdata->on_chip) pdata 765 drivers/usb/host/r8a66597-hcd.c if (r8a66597->pdata->on_chip) pdata 2393 drivers/usb/host/r8a66597-hcd.c if (r8a66597->pdata->on_chip) pdata 2455 drivers/usb/host/r8a66597-hcd.c r8a66597->pdata = dev_get_platdata(&pdev->dev); pdata 2458 drivers/usb/host/r8a66597-hcd.c if (r8a66597->pdata->on_chip) { pdata 2503 drivers/usb/host/r8a66597-hcd.c if (r8a66597->pdata->on_chip) pdata 109 drivers/usb/host/r8a66597.h struct r8a66597_platdata *pdata; pdata 172 drivers/usb/host/r8a66597.h if (r8a66597->pdata->on_chip) { pdata 217 drivers/usb/host/r8a66597.h if (r8a66597->pdata->on_chip) { pdata 237 drivers/usb/host/r8a66597.h if (r8a66597->pdata->wr0_shorted_to_wr1) pdata 240 drivers/usb/host/r8a66597.h if (r8a66597->pdata->wr0_shorted_to_wr1) pdata 288 drivers/usb/host/r8a66597.h if (r8a66597->pdata->port_power) { pdata 289 drivers/usb/host/r8a66597.h r8a66597->pdata->port_power(port, power); pdata 298 drivers/usb/host/r8a66597.h static inline u16 get_xtal_from_pdata(struct r8a66597_platdata *pdata) pdata 302 drivers/usb/host/r8a66597.h switch (pdata->xtal) { pdata 229 drivers/usb/isp1760/isp1760-if.c struct isp1760_platform_data *pdata = pdata 232 drivers/usb/isp1760/isp1760-if.c if (pdata->is_isp1761) pdata 234 drivers/usb/isp1760/isp1760-if.c if (pdata->bus_width_16) pdata 236 drivers/usb/isp1760/isp1760-if.c if (pdata->port1_otg) pdata 238 drivers/usb/isp1760/isp1760-if.c if (pdata->analog_oc) pdata 240 drivers/usb/isp1760/isp1760-if.c if (pdata->dack_polarity_high) pdata 242 drivers/usb/isp1760/isp1760-if.c if (pdata->dreq_polarity_high) pdata 79 drivers/usb/misc/appledisplay.c struct appledisplay *pdata = urb->context; pdata 80 drivers/usb/misc/appledisplay.c struct device *dev = &pdata->udev->dev; pdata 91 drivers/usb/misc/appledisplay.c ACD_URB_BUFFER_LEN, pdata->urb->actual_length); pdata 106 drivers/usb/misc/appledisplay.c switch(pdata->urbdata[1]) { pdata 109 drivers/usb/misc/appledisplay.c pdata->button_pressed = 1; pdata 110 drivers/usb/misc/appledisplay.c schedule_delayed_work(&pdata->work, 0); pdata 114 drivers/usb/misc/appledisplay.c pdata->button_pressed = 0; pdata 119 drivers/usb/misc/appledisplay.c retval = usb_submit_urb(pdata->urb, GFP_ATOMIC); pdata 128 drivers/usb/misc/appledisplay.c struct appledisplay *pdata = bl_get_data(bd); pdata 131 drivers/usb/misc/appledisplay.c mutex_lock(&pdata->sysfslock); pdata 132 drivers/usb/misc/appledisplay.c pdata->msgdata[0] = 0x10; pdata 133 drivers/usb/misc/appledisplay.c pdata->msgdata[1] = bd->props.brightness; pdata 136 drivers/usb/misc/appledisplay.c pdata->udev, pdata 137 drivers/usb/misc/appledisplay.c usb_sndctrlpipe(pdata->udev, 0), pdata 142 drivers/usb/misc/appledisplay.c pdata->msgdata, 2, pdata 144 drivers/usb/misc/appledisplay.c mutex_unlock(&pdata->sysfslock); pdata 154 drivers/usb/misc/appledisplay.c struct appledisplay *pdata = bl_get_data(bd); pdata 157 drivers/usb/misc/appledisplay.c mutex_lock(&pdata->sysfslock); pdata 159 drivers/usb/misc/appledisplay.c pdata->udev, pdata 160 drivers/usb/misc/appledisplay.c usb_rcvctrlpipe(pdata->udev, 0), pdata 165 drivers/usb/misc/appledisplay.c pdata->msgdata, 2, pdata 171 drivers/usb/misc/appledisplay.c brightness = pdata->msgdata[1]; pdata 173 drivers/usb/misc/appledisplay.c mutex_unlock(&pdata->sysfslock); pdata 188 drivers/usb/misc/appledisplay.c struct appledisplay *pdata = pdata 192 drivers/usb/misc/appledisplay.c retval = appledisplay_bl_get_brightness(pdata->bd); pdata 194 drivers/usb/misc/appledisplay.c pdata->bd->props.brightness = retval; pdata 197 drivers/usb/misc/appledisplay.c if (pdata->button_pressed) pdata 198 drivers/usb/misc/appledisplay.c schedule_delayed_work(&pdata->work, HZ / 8); pdata 205 drivers/usb/misc/appledisplay.c struct appledisplay *pdata; pdata 223 drivers/usb/misc/appledisplay.c pdata = kzalloc(sizeof(struct appledisplay), GFP_KERNEL); pdata 224 drivers/usb/misc/appledisplay.c if (!pdata) { pdata 229 drivers/usb/misc/appledisplay.c pdata->udev = udev; pdata 231 drivers/usb/misc/appledisplay.c INIT_DELAYED_WORK(&pdata->work, appledisplay_work); pdata 232 drivers/usb/misc/appledisplay.c mutex_init(&pdata->sysfslock); pdata 235 drivers/usb/misc/appledisplay.c pdata->msgdata = kmalloc(ACD_MSG_BUFFER_LEN, GFP_KERNEL); pdata 236 drivers/usb/misc/appledisplay.c if (!pdata->msgdata) { pdata 242 drivers/usb/misc/appledisplay.c pdata->urb = usb_alloc_urb(0, GFP_KERNEL); pdata 243 drivers/usb/misc/appledisplay.c if (!pdata->urb) { pdata 249 drivers/usb/misc/appledisplay.c pdata->urbdata = usb_alloc_coherent(pdata->udev, ACD_URB_BUFFER_LEN, pdata 250 drivers/usb/misc/appledisplay.c GFP_KERNEL, &pdata->urb->transfer_dma); pdata 251 drivers/usb/misc/appledisplay.c if (!pdata->urbdata) { pdata 258 drivers/usb/misc/appledisplay.c usb_fill_int_urb(pdata->urb, udev, pdata 260 drivers/usb/misc/appledisplay.c pdata->urbdata, ACD_URB_BUFFER_LEN, appledisplay_complete, pdata 261 drivers/usb/misc/appledisplay.c pdata, 1); pdata 262 drivers/usb/misc/appledisplay.c pdata->urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; pdata 263 drivers/usb/misc/appledisplay.c if (usb_submit_urb(pdata->urb, GFP_KERNEL)) { pdata 275 drivers/usb/misc/appledisplay.c pdata->bd = backlight_device_register(bl_name, NULL, pdata, pdata 277 drivers/usb/misc/appledisplay.c if (IS_ERR(pdata->bd)) { pdata 279 drivers/usb/misc/appledisplay.c retval = PTR_ERR(pdata->bd); pdata 284 drivers/usb/misc/appledisplay.c brightness = appledisplay_bl_get_brightness(pdata->bd); pdata 294 drivers/usb/misc/appledisplay.c pdata->bd->props.brightness = brightness; pdata 297 drivers/usb/misc/appledisplay.c usb_set_intfdata(iface, pdata); pdata 304 drivers/usb/misc/appledisplay.c if (pdata) { pdata 305 drivers/usb/misc/appledisplay.c if (pdata->urb) { pdata 306 drivers/usb/misc/appledisplay.c usb_kill_urb(pdata->urb); pdata 307 drivers/usb/misc/appledisplay.c cancel_delayed_work_sync(&pdata->work); pdata 308 drivers/usb/misc/appledisplay.c if (pdata->urbdata) pdata 309 drivers/usb/misc/appledisplay.c usb_free_coherent(pdata->udev, ACD_URB_BUFFER_LEN, pdata 310 drivers/usb/misc/appledisplay.c pdata->urbdata, pdata->urb->transfer_dma); pdata 311 drivers/usb/misc/appledisplay.c usb_free_urb(pdata->urb); pdata 313 drivers/usb/misc/appledisplay.c if (!IS_ERR(pdata->bd)) pdata 314 drivers/usb/misc/appledisplay.c backlight_device_unregister(pdata->bd); pdata 315 drivers/usb/misc/appledisplay.c kfree(pdata->msgdata); pdata 318 drivers/usb/misc/appledisplay.c kfree(pdata); pdata 324 drivers/usb/misc/appledisplay.c struct appledisplay *pdata = usb_get_intfdata(iface); pdata 326 drivers/usb/misc/appledisplay.c if (pdata) { pdata 327 drivers/usb/misc/appledisplay.c usb_kill_urb(pdata->urb); pdata 328 drivers/usb/misc/appledisplay.c cancel_delayed_work_sync(&pdata->work); pdata 329 drivers/usb/misc/appledisplay.c backlight_device_unregister(pdata->bd); pdata 330 drivers/usb/misc/appledisplay.c usb_free_coherent(pdata->udev, ACD_URB_BUFFER_LEN, pdata 331 drivers/usb/misc/appledisplay.c pdata->urbdata, pdata->urb->transfer_dma); pdata 332 drivers/usb/misc/appledisplay.c usb_free_urb(pdata->urb); pdata 333 drivers/usb/misc/appledisplay.c kfree(pdata->msgdata); pdata 334 drivers/usb/misc/appledisplay.c kfree(pdata); pdata 161 drivers/usb/misc/usb3503.c struct usb3503_platform_data *pdata = dev_get_platdata(dev); pdata 168 drivers/usb/misc/usb3503.c if (pdata) { pdata 169 drivers/usb/misc/usb3503.c hub->port_off_mask = pdata->port_off_mask; pdata 170 drivers/usb/misc/usb3503.c hub->gpio_intn = pdata->gpio_intn; pdata 171 drivers/usb/misc/usb3503.c hub->gpio_connect = pdata->gpio_connect; pdata 172 drivers/usb/misc/usb3503.c hub->gpio_reset = pdata->gpio_reset; pdata 173 drivers/usb/misc/usb3503.c hub->mode = pdata->initial_mode; pdata 445 drivers/usb/musb/am35x.c struct musb_hdrc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 488 drivers/usb/musb/am35x.c pdata->platform_ops = &am35x_ops; pdata 501 drivers/usb/musb/am35x.c pinfo.data = pdata; pdata 502 drivers/usb/musb/am35x.c pinfo.size_data = sizeof(*pdata); pdata 509 drivers/usb/musb/da8xx.c struct musb_hdrc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 537 drivers/usb/musb/da8xx.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 538 drivers/usb/musb/da8xx.c if (!pdata) pdata 541 drivers/usb/musb/da8xx.c pdata->config = &da8xx_config; pdata 542 drivers/usb/musb/da8xx.c pdata->mode = musb_get_mode(&pdev->dev); pdata 543 drivers/usb/musb/da8xx.c pdata->power = get_vbus_power(&pdev->dev); pdata 546 drivers/usb/musb/da8xx.c pdata->platform_ops = &da8xx_ops; pdata 578 drivers/usb/musb/da8xx.c pinfo.data = pdata; pdata 579 drivers/usb/musb/da8xx.c pinfo.size_data = sizeof(*pdata); pdata 497 drivers/usb/musb/davinci.c struct musb_hdrc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 525 drivers/usb/musb/davinci.c pdata->platform_ops = &davinci_ops; pdata 556 drivers/usb/musb/davinci.c pinfo.data = pdata; pdata 557 drivers/usb/musb/davinci.c pinfo.size_data = sizeof(*pdata); pdata 113 drivers/usb/musb/jz4740.c struct musb_hdrc_platform_data *pdata = &jz4740_musb_platform_data; pdata 148 drivers/usb/musb/jz4740.c pdata->platform_ops = &jz4740_musb_ops; pdata 159 drivers/usb/musb/jz4740.c ret = platform_device_add_data(musb, pdata, sizeof(*pdata)); pdata 725 drivers/usb/musb/musb_dsps.c struct musb_hdrc_platform_data pdata; pdata 776 drivers/usb/musb/musb_dsps.c pdata.config = config; pdata 777 drivers/usb/musb/musb_dsps.c pdata.platform_ops = &dsps_ops; pdata 782 drivers/usb/musb/musb_dsps.c pdata.mode = musb_get_mode(dev); pdata 784 drivers/usb/musb/musb_dsps.c pdata.power = get_int_prop(dn, "mentor,power") / 2; pdata 803 drivers/usb/musb/musb_dsps.c ret = platform_device_add_data(musb, &pdata, sizeof(pdata)); pdata 146 drivers/usb/musb/omap2430.c struct musb_hdrc_platform_data *pdata = pdata 148 drivers/usb/musb/omap2430.c struct omap_musb_board_data *data = pdata->board_data; pdata 297 drivers/usb/musb/omap2430.c struct musb_hdrc_platform_data *pdata = dev_get_platdata(dev); pdata 298 drivers/usb/musb/omap2430.c struct omap_musb_board_data *data = pdata->board_data; pdata 375 drivers/usb/musb/omap2430.c struct musb_hdrc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 407 drivers/usb/musb/omap2430.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 408 drivers/usb/musb/omap2430.c if (!pdata) pdata 419 drivers/usb/musb/omap2430.c of_property_read_u32(np, "mode", (u32 *)&pdata->mode); pdata 424 drivers/usb/musb/omap2430.c of_property_read_u32(np, "power", (u32 *)&pdata->power); pdata 430 drivers/usb/musb/omap2430.c pdata->board_data = data; pdata 431 drivers/usb/musb/omap2430.c pdata->config = config; pdata 444 drivers/usb/musb/omap2430.c pdata->platform_ops = &omap2430_ops; pdata 481 drivers/usb/musb/omap2430.c ret = platform_device_add_data(musb, pdata, sizeof(*pdata)); pdata 668 drivers/usb/musb/sunxi.c struct musb_hdrc_platform_data pdata; pdata 683 drivers/usb/musb/sunxi.c memset(&pdata, 0, sizeof(pdata)); pdata 687 drivers/usb/musb/sunxi.c pdata.mode = MUSB_HOST; pdata 693 drivers/usb/musb/sunxi.c pdata.mode = MUSB_PERIPHERAL; pdata 699 drivers/usb/musb/sunxi.c pdata.mode = MUSB_OTG; pdata 707 drivers/usb/musb/sunxi.c pdata.platform_ops = &sunxi_musb_ops; pdata 709 drivers/usb/musb/sunxi.c pdata.config = &sunxi_musb_hdrc_config; pdata 711 drivers/usb/musb/sunxi.c pdata.config = &sunxi_musb_hdrc_config_h3; pdata 786 drivers/usb/musb/sunxi.c pinfo.data = &pdata; pdata 787 drivers/usb/musb/sunxi.c pinfo.size_data = sizeof(pdata); pdata 1202 drivers/usb/musb/tusb6010.c struct musb_hdrc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1214 drivers/usb/musb/tusb6010.c pdata->platform_ops = &tusb_ops; pdata 1241 drivers/usb/musb/tusb6010.c pinfo.data = pdata; pdata 1242 drivers/usb/musb/tusb6010.c pinfo.size_data = sizeof(*pdata); pdata 191 drivers/usb/musb/ux500.c struct musb_hdrc_platform_data *pdata; pdata 195 drivers/usb/musb/ux500.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 196 drivers/usb/musb/ux500.c if (!pdata) pdata 207 drivers/usb/musb/ux500.c pdata->mode = MUSB_HOST; pdata 209 drivers/usb/musb/ux500.c pdata->mode = MUSB_OTG; pdata 211 drivers/usb/musb/ux500.c pdata->mode = MUSB_PERIPHERAL; pdata 214 drivers/usb/musb/ux500.c return pdata; pdata 220 drivers/usb/musb/ux500.c struct musb_hdrc_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 227 drivers/usb/musb/ux500.c if (!pdata) { pdata 229 drivers/usb/musb/ux500.c pdata = ux500_of_probe(pdev, np); pdata 230 drivers/usb/musb/ux500.c if (!pdata) pdata 233 drivers/usb/musb/ux500.c pdev->dev.platform_data = pdata; pdata 271 drivers/usb/musb/ux500.c pdata->platform_ops = &ux500_ops; pdata 272 drivers/usb/musb/ux500.c pdata->config = &ux500_musb_hdrc_config; pdata 296 drivers/usb/musb/ux500.c ret = platform_device_add_data(musb, pdata, sizeof(*pdata)); pdata 840 drivers/usb/phy/phy-fsl-usb.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 859 drivers/usb/phy/phy-fsl-usb.c pdata->regs = (void *)usb_dr_regs; pdata 861 drivers/usb/phy/phy-fsl-usb.c if (pdata->init && pdata->init(pdev) != 0) pdata 865 drivers/usb/phy/phy-fsl-usb.c if (pdata->big_endian_mmio) { pdata 902 drivers/usb/phy/phy-fsl-usb.c temp = USB_MODE_STREAM_DISABLE | (pdata->es ? USB_MODE_ES : 0); pdata 908 drivers/usb/phy/phy-fsl-usb.c switch (pdata->phy_mode) { pdata 923 drivers/usb/phy/phy-fsl-usb.c if (pdata->have_sysif_regs) { pdata 1145 drivers/usb/phy/phy-fsl-usb.c struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1158 drivers/usb/phy/phy-fsl-usb.c if (pdata->exit) pdata 1159 drivers/usb/phy/phy-fsl-usb.c pdata->exit(pdev); pdata 208 drivers/usb/phy/phy-generic.c struct usb_phy_generic_platform_data *pdata) pdata 233 drivers/usb/phy/phy-generic.c } else if (pdata) { pdata 234 drivers/usb/phy/phy-generic.c type = pdata->type; pdata 235 drivers/usb/phy/phy-generic.c clk_rate = pdata->clk_rate; pdata 236 drivers/usb/phy/phy-generic.c needs_vcc = pdata->needs_vcc; pdata 237 drivers/usb/phy/phy-generic.c if (gpio_is_valid(pdata->gpio_reset)) { pdata 238 drivers/usb/phy/phy-generic.c err = devm_gpio_request_one(dev, pdata->gpio_reset, pdata 243 drivers/usb/phy/phy-generic.c gpio_to_desc(pdata->gpio_reset); pdata 245 drivers/usb/phy/phy-generic.c nop->gpiod_vbus = pdata->gpiod_vbus; pdata 26 drivers/usb/phy/phy-generic.h struct usb_phy_generic_platform_data *pdata); pdata 86 drivers/usb/phy/phy-gpio-vbus-usb.c static int is_vbus_powered(struct gpio_vbus_mach_info *pdata) pdata 90 drivers/usb/phy/phy-gpio-vbus-usb.c vbus = gpio_get_value(pdata->gpio_vbus); pdata 91 drivers/usb/phy/phy-gpio-vbus-usb.c if (pdata->gpio_vbus_inverted) pdata 101 drivers/usb/phy/phy-gpio-vbus-usb.c struct gpio_vbus_mach_info *pdata = dev_get_platdata(gpio_vbus->dev); pdata 107 drivers/usb/phy/phy-gpio-vbus-usb.c vbus = is_vbus_powered(pdata); pdata 117 drivers/usb/phy/phy-gpio-vbus-usb.c gpio = pdata->gpio_pullup; pdata 130 drivers/usb/phy/phy-gpio-vbus-usb.c gpio_set_value(gpio, !pdata->gpio_pullup_inverted); pdata 138 drivers/usb/phy/phy-gpio-vbus-usb.c gpio_set_value(gpio, pdata->gpio_pullup_inverted); pdata 157 drivers/usb/phy/phy-gpio-vbus-usb.c struct gpio_vbus_mach_info *pdata = dev_get_platdata(&pdev->dev); pdata 162 drivers/usb/phy/phy-gpio-vbus-usb.c is_vbus_powered(pdata) ? "supplied" : "inactive", pdata 178 drivers/usb/phy/phy-gpio-vbus-usb.c struct gpio_vbus_mach_info *pdata; pdata 184 drivers/usb/phy/phy-gpio-vbus-usb.c pdata = dev_get_platdata(gpio_vbus->dev); pdata 185 drivers/usb/phy/phy-gpio-vbus-usb.c gpio = pdata->gpio_pullup; pdata 193 drivers/usb/phy/phy-gpio-vbus-usb.c gpio_set_value(gpio, pdata->gpio_pullup_inverted); pdata 245 drivers/usb/phy/phy-gpio-vbus-usb.c struct gpio_vbus_mach_info *pdata = dev_get_platdata(&pdev->dev); pdata 251 drivers/usb/phy/phy-gpio-vbus-usb.c if (!pdata || !gpio_is_valid(pdata->gpio_vbus)) pdata 253 drivers/usb/phy/phy-gpio-vbus-usb.c gpio = pdata->gpio_vbus; pdata 296 drivers/usb/phy/phy-gpio-vbus-usb.c gpio = pdata->gpio_pullup; pdata 305 drivers/usb/phy/phy-gpio-vbus-usb.c gpio_direction_output(gpio, pdata->gpio_pullup_inverted); pdata 333 drivers/usb/phy/phy-gpio-vbus-usb.c device_init_wakeup(&pdev->dev, pdata->wakeup); pdata 54 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->set_vbus == NULL) pdata 57 drivers/usb/phy/phy-mv-usb.c return mvotg->pdata->set_vbus(on); pdata 176 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->vbus == NULL) { pdata 183 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->id == NULL) { pdata 250 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->phy_init) { pdata 251 drivers/usb/phy/phy-mv-usb.c retval = mvotg->pdata->phy_init(mvotg->phy_regs); pdata 277 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->phy_deinit) pdata 278 drivers/usb/phy/phy-mv-usb.c mvotg->pdata->phy_deinit(mvotg->phy_regs); pdata 297 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->vbus) { pdata 298 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->vbus->poll() == VBUS_HIGH) { pdata 310 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->id) pdata 311 drivers/usb/phy/phy-mv-usb.c otg_ctrl->id = !!mvotg->pdata->id->poll(); pdata 315 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->otg_force_a_bus_req && !otg_ctrl->id) pdata 491 drivers/usb/phy/phy-mv-usb.c if (mvotg->pdata->vbus) pdata 667 drivers/usb/phy/phy-mv-usb.c struct mv_usb_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 673 drivers/usb/phy/phy-mv-usb.c if (pdata == NULL) { pdata 689 drivers/usb/phy/phy-mv-usb.c mvotg->pdata = pdata; pdata 760 drivers/usb/phy/phy-mv-usb.c if (pdata->id) { pdata 761 drivers/usb/phy/phy-mv-usb.c retval = devm_request_threaded_irq(&pdev->dev, pdata->id->irq, pdata 767 drivers/usb/phy/phy-mv-usb.c pdata->id = NULL; pdata 771 drivers/usb/phy/phy-mv-usb.c if (pdata->vbus) { pdata 773 drivers/usb/phy/phy-mv-usb.c retval = devm_request_threaded_irq(&pdev->dev, pdata->vbus->irq, pdata 781 drivers/usb/phy/phy-mv-usb.c pdata->vbus = NULL; pdata 785 drivers/usb/phy/phy-mv-usb.c if (pdata->disable_otg_clock_gating) pdata 153 drivers/usb/phy/phy-mv-usb.h struct mv_usb_platform_data *pdata; pdata 725 drivers/vfio/pci/vfio_pci_config.c __le32 *pdata = (__le32 *)(vdev->vconfig + pos - offset + PCI_VPD_DATA); pdata 742 drivers/vfio/pci/vfio_pci_config.c data = le32_to_cpu(*pdata); pdata 749 drivers/vfio/pci/vfio_pci_config.c *pdata = cpu_to_le32(data); pdata 194 drivers/video/backlight/88pm860x_bl.c struct pm860x_backlight_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 232 drivers/video/backlight/88pm860x_bl.c if (pdata) { pdata 233 drivers/video/backlight/88pm860x_bl.c data->pwm = pdata->pwm; pdata 234 drivers/video/backlight/88pm860x_bl.c data->iset = pdata->iset; pdata 111 drivers/video/backlight/aat2870_bl.c struct aat2870_bl_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 117 drivers/video/backlight/aat2870_bl.c if (!pdata) { pdata 155 drivers/video/backlight/aat2870_bl.c if (pdata->channels > 0) pdata 156 drivers/video/backlight/aat2870_bl.c aat2870_bl->channels = pdata->channels; pdata 160 drivers/video/backlight/aat2870_bl.c if (pdata->max_current > 0) pdata 161 drivers/video/backlight/aat2870_bl.c aat2870_bl->max_current = pdata->max_current; pdata 165 drivers/video/backlight/aat2870_bl.c if (pdata->max_brightness > 0) pdata 166 drivers/video/backlight/aat2870_bl.c bd->props.max_brightness = pdata->max_brightness; pdata 19 drivers/video/backlight/adp5520_bl.c struct adp5520_backlight_platform_data *pdata; pdata 32 drivers/video/backlight/adp5520_bl.c if (data->pdata->en_ambl_sens) { pdata 99 drivers/video/backlight/adp5520_bl.c struct adp5520_backlight_platform_data *pdata = data->pdata; pdata 103 drivers/video/backlight/adp5520_bl.c pdata->l1_daylight_max); pdata 105 drivers/video/backlight/adp5520_bl.c pdata->l1_daylight_dim); pdata 107 drivers/video/backlight/adp5520_bl.c if (pdata->en_ambl_sens) { pdata 108 drivers/video/backlight/adp5520_bl.c data->cached_daylight_max = pdata->l1_daylight_max; pdata 110 drivers/video/backlight/adp5520_bl.c pdata->l2_office_max); pdata 112 drivers/video/backlight/adp5520_bl.c pdata->l2_office_dim); pdata 114 drivers/video/backlight/adp5520_bl.c pdata->l3_dark_max); pdata 116 drivers/video/backlight/adp5520_bl.c pdata->l3_dark_dim); pdata 118 drivers/video/backlight/adp5520_bl.c pdata->l2_trip); pdata 120 drivers/video/backlight/adp5520_bl.c pdata->l2_hyst); pdata 122 drivers/video/backlight/adp5520_bl.c pdata->l3_trip); pdata 124 drivers/video/backlight/adp5520_bl.c pdata->l3_hyst); pdata 126 drivers/video/backlight/adp5520_bl.c ALS_CMPR_CFG_VAL(pdata->abml_filt, pdata 131 drivers/video/backlight/adp5520_bl.c BL_CTRL_VAL(pdata->fade_led_law, pdata 132 drivers/video/backlight/adp5520_bl.c pdata->en_ambl_sens)); pdata 134 drivers/video/backlight/adp5520_bl.c ret |= adp5520_write(master, ADP5520_BL_FADE, FADE_VAL(pdata->fade_in, pdata 135 drivers/video/backlight/adp5520_bl.c pdata->fade_out)); pdata 300 drivers/video/backlight/adp5520_bl.c data->pdata = dev_get_platdata(&pdev->dev); pdata 302 drivers/video/backlight/adp5520_bl.c if (data->pdata == NULL) { pdata 324 drivers/video/backlight/adp5520_bl.c if (data->pdata->en_ambl_sens) pdata 337 drivers/video/backlight/adp5520_bl.c if (data->pdata->en_ambl_sens) pdata 355 drivers/video/backlight/adp5520_bl.c if (data->pdata->en_ambl_sens) pdata 109 drivers/video/backlight/adp8860_bl.c struct adp8860_backlight_platform_data *pdata; pdata 218 drivers/video/backlight/adp8860_bl.c struct adp8860_backlight_platform_data *pdata = pdata 225 drivers/video/backlight/adp8860_bl.c led = devm_kcalloc(&client->dev, pdata->num_leds, sizeof(*led), pdata 230 drivers/video/backlight/adp8860_bl.c ret = adp8860_write(client, ADP8860_ISCFR, pdata->led_fade_law); pdata 232 drivers/video/backlight/adp8860_bl.c (pdata->led_on_time & 0x3) << 6); pdata 234 drivers/video/backlight/adp8860_bl.c FADE_VAL(pdata->led_fade_in, pdata->led_fade_out)); pdata 241 drivers/video/backlight/adp8860_bl.c for (i = 0; i < pdata->num_leds; ++i) { pdata 242 drivers/video/backlight/adp8860_bl.c cur_led = &pdata->leds[i]; pdata 254 drivers/video/backlight/adp8860_bl.c if (pdata->bl_led_assign & (1 << (led_dat->id - 1))) { pdata 300 drivers/video/backlight/adp8860_bl.c struct adp8860_backlight_platform_data *pdata = pdata 305 drivers/video/backlight/adp8860_bl.c for (i = 0; i < pdata->num_leds; i++) { pdata 391 drivers/video/backlight/adp8860_bl.c struct adp8860_backlight_platform_data *pdata = data->pdata; pdata 394 drivers/video/backlight/adp8860_bl.c ret |= adp8860_write(client, ADP8860_BLSEN, ~pdata->bl_led_assign); pdata 395 drivers/video/backlight/adp8860_bl.c ret |= adp8860_write(client, ADP8860_BLMX1, pdata->l1_daylight_max); pdata 396 drivers/video/backlight/adp8860_bl.c ret |= adp8860_write(client, ADP8860_BLDM1, pdata->l1_daylight_dim); pdata 399 drivers/video/backlight/adp8860_bl.c data->cached_daylight_max = pdata->l1_daylight_max; pdata 401 drivers/video/backlight/adp8860_bl.c pdata->l2_office_max); pdata 403 drivers/video/backlight/adp8860_bl.c pdata->l2_office_dim); pdata 405 drivers/video/backlight/adp8860_bl.c pdata->l3_dark_max); pdata 407 drivers/video/backlight/adp8860_bl.c pdata->l3_dark_dim); pdata 409 drivers/video/backlight/adp8860_bl.c ret |= adp8860_write(client, ADP8860_L2_TRP, pdata->l2_trip); pdata 410 drivers/video/backlight/adp8860_bl.c ret |= adp8860_write(client, ADP8860_L2_HYS, pdata->l2_hyst); pdata 411 drivers/video/backlight/adp8860_bl.c ret |= adp8860_write(client, ADP8860_L3_TRP, pdata->l3_trip); pdata 412 drivers/video/backlight/adp8860_bl.c ret |= adp8860_write(client, ADP8860_L3_HYS, pdata->l3_hyst); pdata 414 drivers/video/backlight/adp8860_bl.c ALS_CCFG_VAL(pdata->abml_filt)); pdata 418 drivers/video/backlight/adp8860_bl.c BL_CFGR_VAL(pdata->bl_fade_law, 0)); pdata 420 drivers/video/backlight/adp8860_bl.c ret |= adp8860_write(client, ADP8860_BLFR, FADE_VAL(pdata->bl_fade_in, pdata 421 drivers/video/backlight/adp8860_bl.c pdata->bl_fade_out)); pdata 664 drivers/video/backlight/adp8860_bl.c struct adp8860_backlight_platform_data *pdata = pdata 676 drivers/video/backlight/adp8860_bl.c if (!pdata) { pdata 691 drivers/video/backlight/adp8860_bl.c data->gdwn_dis = !!pdata->gdwn_dis; pdata 694 drivers/video/backlight/adp8860_bl.c data->en_ambl_sens = !!pdata->en_ambl_sens; pdata 697 drivers/video/backlight/adp8860_bl.c data->gdwn_dis = !!pdata->gdwn_dis; pdata 708 drivers/video/backlight/adp8860_bl.c data->pdata = pdata; pdata 751 drivers/video/backlight/adp8860_bl.c if (pdata->num_leds) pdata 111 drivers/video/backlight/adp8870_bl.c struct adp8870_backlight_platform_data *pdata; pdata 241 drivers/video/backlight/adp8870_bl.c struct adp8870_backlight_platform_data *pdata = pdata 248 drivers/video/backlight/adp8870_bl.c led = devm_kcalloc(&client->dev, pdata->num_leds, sizeof(*led), pdata 253 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_ISCLAW, pdata->led_fade_law); pdata 258 drivers/video/backlight/adp8870_bl.c (pdata->led_on_time & 0x3) << 6); pdata 263 drivers/video/backlight/adp8870_bl.c FADE_VAL(pdata->led_fade_in, pdata->led_fade_out)); pdata 267 drivers/video/backlight/adp8870_bl.c for (i = 0; i < pdata->num_leds; ++i) { pdata 268 drivers/video/backlight/adp8870_bl.c cur_led = &pdata->leds[i]; pdata 280 drivers/video/backlight/adp8870_bl.c if (pdata->bl_led_assign & (1 << (led_dat->id - 1))) { pdata 326 drivers/video/backlight/adp8870_bl.c struct adp8870_backlight_platform_data *pdata = pdata 331 drivers/video/backlight/adp8870_bl.c for (i = 0; i < pdata->num_leds; i++) { pdata 356 drivers/video/backlight/adp8870_bl.c if (data->pdata->en_ambl_sens) { pdata 429 drivers/video/backlight/adp8870_bl.c struct adp8870_backlight_platform_data *pdata = data->pdata; pdata 432 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_BLSEL, ~pdata->bl_led_assign); pdata 436 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_PWMLED, pdata->pwm_assign); pdata 440 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_BLMX1, pdata->l1_daylight_max); pdata 444 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_BLDM1, pdata->l1_daylight_dim); pdata 448 drivers/video/backlight/adp8870_bl.c if (pdata->en_ambl_sens) { pdata 449 drivers/video/backlight/adp8870_bl.c data->cached_daylight_max = pdata->l1_daylight_max; pdata 451 drivers/video/backlight/adp8870_bl.c pdata->l2_bright_max); pdata 455 drivers/video/backlight/adp8870_bl.c pdata->l2_bright_dim); pdata 460 drivers/video/backlight/adp8870_bl.c pdata->l3_office_max); pdata 464 drivers/video/backlight/adp8870_bl.c pdata->l3_office_dim); pdata 469 drivers/video/backlight/adp8870_bl.c pdata->l4_indoor_max); pdata 474 drivers/video/backlight/adp8870_bl.c pdata->l4_indor_dim); pdata 479 drivers/video/backlight/adp8870_bl.c pdata->l5_dark_max); pdata 484 drivers/video/backlight/adp8870_bl.c pdata->l5_dark_dim); pdata 488 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_L2TRP, pdata->l2_trip); pdata 492 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_L2HYS, pdata->l2_hyst); pdata 496 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_L3TRP, pdata->l3_trip); pdata 500 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_L3HYS, pdata->l3_hyst); pdata 504 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_L4TRP, pdata->l4_trip); pdata 508 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_L4HYS, pdata->l4_hyst); pdata 512 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_L5TRP, pdata->l5_trip); pdata 516 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_L5HYS, pdata->l5_hyst); pdata 526 drivers/video/backlight/adp8870_bl.c ALS_CMPR_CFG_VAL(pdata->abml_filt)); pdata 532 drivers/video/backlight/adp8870_bl.c BL_CFGR_VAL(pdata->bl_fade_law, 0)); pdata 536 drivers/video/backlight/adp8870_bl.c ret = adp8870_write(client, ADP8870_BLFR, FADE_VAL(pdata->bl_fade_in, pdata 537 drivers/video/backlight/adp8870_bl.c pdata->bl_fade_out)); pdata 853 drivers/video/backlight/adp8870_bl.c struct adp8870_backlight_platform_data *pdata = pdata 864 drivers/video/backlight/adp8870_bl.c if (!pdata) { pdata 884 drivers/video/backlight/adp8870_bl.c data->pdata = pdata; pdata 904 drivers/video/backlight/adp8870_bl.c if (pdata->en_ambl_sens) { pdata 923 drivers/video/backlight/adp8870_bl.c if (pdata->num_leds) pdata 929 drivers/video/backlight/adp8870_bl.c if (data->pdata->en_ambl_sens) pdata 945 drivers/video/backlight/adp8870_bl.c if (data->pdata->en_ambl_sens) pdata 91 drivers/video/backlight/arcxcnn_bl.c struct arcxcnn_platform_data *pdata; pdata 156 drivers/video/backlight/arcxcnn_bl.c const char *name = lp->pdata->name ? : "arctic_bl"; pdata 165 drivers/video/backlight/arcxcnn_bl.c if (lp->pdata->initial_brightness > props->max_brightness) pdata 166 drivers/video/backlight/arcxcnn_bl.c lp->pdata->initial_brightness = props->max_brightness; pdata 168 drivers/video/backlight/arcxcnn_bl.c props->brightness = lp->pdata->initial_brightness; pdata 186 drivers/video/backlight/arcxcnn_bl.c ret = of_property_read_string(node, "label", &lp->pdata->name); pdata 188 drivers/video/backlight/arcxcnn_bl.c lp->pdata->name = NULL; pdata 192 drivers/video/backlight/arcxcnn_bl.c lp->pdata->initial_brightness = prog_val; pdata 196 drivers/video/backlight/arcxcnn_bl.c lp->pdata->led_config_0 = (u8)prog_val; pdata 200 drivers/video/backlight/arcxcnn_bl.c lp->pdata->led_config_1 = (u8)prog_val; pdata 204 drivers/video/backlight/arcxcnn_bl.c lp->pdata->dim_freq = (u8)prog_val; pdata 208 drivers/video/backlight/arcxcnn_bl.c lp->pdata->comp_config = (u8)prog_val; pdata 212 drivers/video/backlight/arcxcnn_bl.c lp->pdata->filter_config = (u8)prog_val; pdata 216 drivers/video/backlight/arcxcnn_bl.c lp->pdata->trim_config = (u8)prog_val; pdata 220 drivers/video/backlight/arcxcnn_bl.c lp->pdata->leden = ARCXCNN_LEDEN_MASK; /* all on is default */ pdata 233 drivers/video/backlight/arcxcnn_bl.c lp->pdata->leden = 0; pdata 239 drivers/video/backlight/arcxcnn_bl.c lp->pdata->leden |= onbit; pdata 258 drivers/video/backlight/arcxcnn_bl.c lp->pdata = dev_get_platdata(&cl->dev); pdata 266 drivers/video/backlight/arcxcnn_bl.c if (!lp->pdata) { pdata 267 drivers/video/backlight/arcxcnn_bl.c lp->pdata = devm_kzalloc(lp->dev, pdata 268 drivers/video/backlight/arcxcnn_bl.c sizeof(*lp->pdata), GFP_KERNEL); pdata 269 drivers/video/backlight/arcxcnn_bl.c if (!lp->pdata) pdata 273 drivers/video/backlight/arcxcnn_bl.c lp->pdata->name = NULL; pdata 274 drivers/video/backlight/arcxcnn_bl.c lp->pdata->initial_brightness = INIT_BRIGHT; pdata 275 drivers/video/backlight/arcxcnn_bl.c lp->pdata->leden = ARCXCNN_LEDEN_MASK; pdata 277 drivers/video/backlight/arcxcnn_bl.c lp->pdata->led_config_0 = i2c_smbus_read_byte_data( pdata 280 drivers/video/backlight/arcxcnn_bl.c lp->pdata->led_config_1 = i2c_smbus_read_byte_data( pdata 283 drivers/video/backlight/arcxcnn_bl.c lp->pdata->led_config_1 |= ARCXCNN_ILED_DIM_INT; pdata 285 drivers/video/backlight/arcxcnn_bl.c lp->pdata->dim_freq = i2c_smbus_read_byte_data( pdata 288 drivers/video/backlight/arcxcnn_bl.c lp->pdata->comp_config = i2c_smbus_read_byte_data( pdata 291 drivers/video/backlight/arcxcnn_bl.c lp->pdata->filter_config = i2c_smbus_read_byte_data( pdata 294 drivers/video/backlight/arcxcnn_bl.c lp->pdata->trim_config = i2c_smbus_read_byte_data( pdata 304 drivers/video/backlight/arcxcnn_bl.c if (lp->pdata->initial_brightness > MAX_BRIGHTNESS) pdata 305 drivers/video/backlight/arcxcnn_bl.c lp->pdata->initial_brightness = MAX_BRIGHTNESS; pdata 308 drivers/video/backlight/arcxcnn_bl.c ret = arcxcnn_set_brightness(lp, lp->pdata->initial_brightness); pdata 314 drivers/video/backlight/arcxcnn_bl.c lp->pdata->led_config_0); pdata 319 drivers/video/backlight/arcxcnn_bl.c lp->pdata->led_config_1); pdata 324 drivers/video/backlight/arcxcnn_bl.c lp->pdata->dim_freq); pdata 329 drivers/video/backlight/arcxcnn_bl.c lp->pdata->comp_config); pdata 334 drivers/video/backlight/arcxcnn_bl.c lp->pdata->filter_config); pdata 339 drivers/video/backlight/arcxcnn_bl.c lp->pdata->trim_config); pdata 345 drivers/video/backlight/arcxcnn_bl.c ARCXCNN_LEDEN_MASK, lp->pdata->leden); pdata 36 drivers/video/backlight/as3711_bl.c const struct as3711_bl_pdata *pdata; pdata 56 drivers/video/backlight/as3711_bl.c const struct as3711_bl_pdata *pdata = supply->pdata; pdata 60 drivers/video/backlight/as3711_bl.c if (pdata->su2_auto_curr1) pdata 63 drivers/video/backlight/as3711_bl.c if (!ret && pdata->su2_auto_curr2) pdata 66 drivers/video/backlight/as3711_bl.c if (!ret && pdata->su2_auto_curr3) pdata 88 drivers/video/backlight/as3711_bl.c 3, supply->pdata->su2_fbprot); pdata 123 drivers/video/backlight/as3711_bl.c const struct as3711_bl_pdata *pdata = supply->pdata; pdata 125 drivers/video/backlight/as3711_bl.c switch (pdata->su2_feedback) { pdata 183 drivers/video/backlight/as3711_bl.c const struct as3711_bl_pdata *pdata = supply->pdata; pdata 187 drivers/video/backlight/as3711_bl.c dev_dbg(as3711->dev, "%s(): use %u\n", __func__, pdata->su2_feedback); pdata 194 drivers/video/backlight/as3711_bl.c switch (pdata->su2_feedback) { pdata 211 drivers/video/backlight/as3711_bl.c if (pdata->su2_auto_curr1) pdata 213 drivers/video/backlight/as3711_bl.c if (pdata->su2_auto_curr2) pdata 215 drivers/video/backlight/as3711_bl.c if (pdata->su2_auto_curr3) pdata 259 drivers/video/backlight/as3711_bl.c struct as3711_bl_pdata *pdata = dev_get_platdata(dev); pdata 273 drivers/video/backlight/as3711_bl.c pdata->su1_fb = true; pdata 275 drivers/video/backlight/as3711_bl.c ret = of_property_read_u32(bl, "su1-max-uA", &pdata->su1_max_uA); pdata 276 drivers/video/backlight/as3711_bl.c if (pdata->su1_max_uA <= 0) pdata 288 drivers/video/backlight/as3711_bl.c pdata->su2_fb = true; pdata 290 drivers/video/backlight/as3711_bl.c ret = of_property_read_u32(bl, "su2-max-uA", &pdata->su2_max_uA); pdata 291 drivers/video/backlight/as3711_bl.c if (pdata->su2_max_uA <= 0) pdata 297 drivers/video/backlight/as3711_bl.c pdata->su2_feedback = AS3711_SU2_VOLTAGE; pdata 301 drivers/video/backlight/as3711_bl.c pdata->su2_feedback = AS3711_SU2_CURR1; pdata 305 drivers/video/backlight/as3711_bl.c pdata->su2_feedback = AS3711_SU2_CURR2; pdata 309 drivers/video/backlight/as3711_bl.c pdata->su2_feedback = AS3711_SU2_CURR3; pdata 313 drivers/video/backlight/as3711_bl.c pdata->su2_feedback = AS3711_SU2_CURR_AUTO; pdata 323 drivers/video/backlight/as3711_bl.c pdata->su2_fbprot = AS3711_SU2_LX_SD4; pdata 327 drivers/video/backlight/as3711_bl.c pdata->su2_fbprot = AS3711_SU2_GPIO2; pdata 331 drivers/video/backlight/as3711_bl.c pdata->su2_fbprot = AS3711_SU2_GPIO3; pdata 335 drivers/video/backlight/as3711_bl.c pdata->su2_fbprot = AS3711_SU2_GPIO4; pdata 345 drivers/video/backlight/as3711_bl.c pdata->su2_auto_curr1 = true; pdata 349 drivers/video/backlight/as3711_bl.c pdata->su2_auto_curr2 = true; pdata 353 drivers/video/backlight/as3711_bl.c pdata->su2_auto_curr3 = true; pdata 361 drivers/video/backlight/as3711_bl.c if (!count ^ (pdata->su2_feedback != AS3711_SU2_CURR_AUTO)) { pdata 379 drivers/video/backlight/as3711_bl.c struct as3711_bl_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 386 drivers/video/backlight/as3711_bl.c if (!pdata) { pdata 399 drivers/video/backlight/as3711_bl.c if (!pdata->su1_fb && !pdata->su2_fb) { pdata 409 drivers/video/backlight/as3711_bl.c if (pdata->su1_fb || pdata 410 drivers/video/backlight/as3711_bl.c pdata->su2_fbprot != AS3711_SU2_GPIO4 || pdata 411 drivers/video/backlight/as3711_bl.c pdata->su2_feedback != AS3711_SU2_CURR_AUTO) { pdata 423 drivers/video/backlight/as3711_bl.c supply->pdata = pdata; pdata 425 drivers/video/backlight/as3711_bl.c if (pdata->su1_fb) { pdata 429 drivers/video/backlight/as3711_bl.c max_brightness = min(pdata->su1_max_uA, 31); pdata 435 drivers/video/backlight/as3711_bl.c if (pdata->su2_fb) { pdata 439 drivers/video/backlight/as3711_bl.c switch (pdata->su2_fbprot) { pdata 449 drivers/video/backlight/as3711_bl.c switch (pdata->su2_feedback) { pdata 451 drivers/video/backlight/as3711_bl.c max_brightness = min(pdata->su2_max_uA, 31); pdata 457 drivers/video/backlight/as3711_bl.c max_brightness = min(pdata->su2_max_uA / 150, 255); pdata 73 drivers/video/backlight/bd6107.c struct bd6107_platform_data *pdata; pdata 97 drivers/video/backlight/bd6107.c gpio_set_value(bd->pdata->reset, 0); pdata 99 drivers/video/backlight/bd6107.c gpio_set_value(bd->pdata->reset, 1); pdata 110 drivers/video/backlight/bd6107.c return bd->pdata->fbdev == NULL || bd->pdata->fbdev == info->dev; pdata 122 drivers/video/backlight/bd6107.c struct bd6107_platform_data *pdata = dev_get_platdata(&client->dev); pdata 128 drivers/video/backlight/bd6107.c if (pdata == NULL || !pdata->reset) { pdata 145 drivers/video/backlight/bd6107.c bd->pdata = pdata; pdata 147 drivers/video/backlight/bd6107.c ret = devm_gpio_request_one(&client->dev, pdata->reset, pdata 157 drivers/video/backlight/bd6107.c props.brightness = clamp_t(unsigned int, pdata->def_value, 0, pdata 482 drivers/video/backlight/corgi_lcd.c struct corgi_lcd_platform_data *pdata) pdata 490 drivers/video/backlight/corgi_lcd.c if (gpio_is_valid(pdata->gpio_backlight_on)) { pdata 491 drivers/video/backlight/corgi_lcd.c err = devm_gpio_request(&spi->dev, pdata->gpio_backlight_on, pdata 496 drivers/video/backlight/corgi_lcd.c pdata->gpio_backlight_on); pdata 500 drivers/video/backlight/corgi_lcd.c lcd->gpio_backlight_on = pdata->gpio_backlight_on; pdata 504 drivers/video/backlight/corgi_lcd.c if (gpio_is_valid(pdata->gpio_backlight_cont)) { pdata 505 drivers/video/backlight/corgi_lcd.c err = devm_gpio_request(&spi->dev, pdata->gpio_backlight_cont, pdata 510 drivers/video/backlight/corgi_lcd.c pdata->gpio_backlight_cont); pdata 514 drivers/video/backlight/corgi_lcd.c lcd->gpio_backlight_cont = pdata->gpio_backlight_cont; pdata 533 drivers/video/backlight/corgi_lcd.c struct corgi_lcd_platform_data *pdata = dev_get_platdata(&spi->dev); pdata 537 drivers/video/backlight/corgi_lcd.c if (pdata == NULL) { pdata 554 drivers/video/backlight/corgi_lcd.c lcd->mode = (pdata) ? pdata->init_mode : CORGI_LCD_MODE_VGA; pdata 558 drivers/video/backlight/corgi_lcd.c props.max_brightness = pdata->max_intensity; pdata 565 drivers/video/backlight/corgi_lcd.c lcd->bl_dev->props.brightness = pdata->default_intensity; pdata 568 drivers/video/backlight/corgi_lcd.c ret = setup_gpio_backlight(lcd, pdata); pdata 572 drivers/video/backlight/corgi_lcd.c lcd->kick_battery = pdata->kick_battery; pdata 578 drivers/video/backlight/corgi_lcd.c lcd->limit_mask = pdata->limit_mask; pdata 109 drivers/video/backlight/da903x_bl.c struct da9034_backlight_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 137 drivers/video/backlight/da903x_bl.c if (pdata) pdata 139 drivers/video/backlight/da903x_bl.c DA9034_WLED_ISET(pdata->output_current)); pdata 98 drivers/video/backlight/gpio_backlight.c struct gpio_backlight_platform_data *pdata = pdata 115 drivers/video/backlight/gpio_backlight.c } else if (pdata) { pdata 123 drivers/video/backlight/gpio_backlight.c gbl->fbdev = pdata->fbdev; pdata 124 drivers/video/backlight/gpio_backlight.c gbl->def_value = pdata->def_value; pdata 127 drivers/video/backlight/gpio_backlight.c ret = devm_gpio_request_one(gbl->dev, pdata->gpio, flags, pdata 128 drivers/video/backlight/gpio_backlight.c pdata ? pdata->name : "backlight"); pdata 133 drivers/video/backlight/gpio_backlight.c gbl->gpiod = gpio_to_desc(pdata->gpio); pdata 48 drivers/video/backlight/l4f00242t03.c struct l4f00242t03_pdata *pdata = dev_get_platdata(&spi->dev); pdata 79 drivers/video/backlight/l4f00242t03.c l4f00242t03_reset(pdata->reset_gpio); pdata 81 drivers/video/backlight/l4f00242t03.c gpio_set_value(pdata->data_enable_gpio, 1); pdata 88 drivers/video/backlight/l4f00242t03.c struct l4f00242t03_pdata *pdata = dev_get_platdata(&spi->dev); pdata 93 drivers/video/backlight/l4f00242t03.c gpio_set_value(pdata->data_enable_gpio, 0); pdata 171 drivers/video/backlight/l4f00242t03.c struct l4f00242t03_pdata *pdata = dev_get_platdata(&spi->dev); pdata 174 drivers/video/backlight/l4f00242t03.c if (pdata == NULL) { pdata 190 drivers/video/backlight/l4f00242t03.c ret = devm_gpio_request_one(&spi->dev, pdata->reset_gpio, pdata 198 drivers/video/backlight/l4f00242t03.c ret = devm_gpio_request_one(&spi->dev, pdata->data_enable_gpio, pdata 257 drivers/video/backlight/lm3533_bl.c struct lm3533_bl_platform_data *pdata) pdata 261 drivers/video/backlight/lm3533_bl.c ret = lm3533_ctrlbank_set_max_current(&bl->cb, pdata->max_current); pdata 265 drivers/video/backlight/lm3533_bl.c return lm3533_ctrlbank_set_pwm(&bl->cb, pdata->pwm); pdata 271 drivers/video/backlight/lm3533_bl.c struct lm3533_bl_platform_data *pdata; pdata 283 drivers/video/backlight/lm3533_bl.c pdata = dev_get_platdata(&pdev->dev); pdata 284 drivers/video/backlight/lm3533_bl.c if (!pdata) { pdata 308 drivers/video/backlight/lm3533_bl.c props.brightness = pdata->default_brightness; pdata 309 drivers/video/backlight/lm3533_bl.c bd = devm_backlight_device_register(&pdev->dev, pdata->name, pdata 330 drivers/video/backlight/lm3533_bl.c ret = lm3533_bl_setup(bl, pdata); pdata 48 drivers/video/backlight/lm3630a_bl.c struct lm3630a_platform_data *pdata; pdata 84 drivers/video/backlight/lm3630a_bl.c struct lm3630a_platform_data *pdata = pchip->pdata; pdata 90 drivers/video/backlight/lm3630a_bl.c rval |= lm3630a_update(pchip, REG_CONFIG, 0x07, pdata->pwm_ctrl); pdata 98 drivers/video/backlight/lm3630a_bl.c rval |= lm3630a_update(pchip, REG_CTRL, 0x14, pdata->leda_ctrl); pdata 99 drivers/video/backlight/lm3630a_bl.c rval |= lm3630a_update(pchip, REG_CTRL, 0x0B, pdata->ledb_ctrl); pdata 102 drivers/video/backlight/lm3630a_bl.c rval |= lm3630a_write(pchip, REG_BRT_A, pdata->leda_init_brt); pdata 103 drivers/video/backlight/lm3630a_bl.c rval |= lm3630a_write(pchip, REG_BRT_B, pdata->ledb_init_brt); pdata 170 drivers/video/backlight/lm3630a_bl.c unsigned int period = pchip->pdata->pwm_period; pdata 185 drivers/video/backlight/lm3630a_bl.c enum lm3630a_pwm_ctrl pwm_ctrl = pchip->pdata->pwm_ctrl; pdata 219 drivers/video/backlight/lm3630a_bl.c enum lm3630a_pwm_ctrl pwm_ctrl = pchip->pdata->pwm_ctrl; pdata 262 drivers/video/backlight/lm3630a_bl.c enum lm3630a_pwm_ctrl pwm_ctrl = pchip->pdata->pwm_ctrl; pdata 296 drivers/video/backlight/lm3630a_bl.c enum lm3630a_pwm_ctrl pwm_ctrl = pchip->pdata->pwm_ctrl; pdata 336 drivers/video/backlight/lm3630a_bl.c struct lm3630a_platform_data *pdata = pchip->pdata; pdata 341 drivers/video/backlight/lm3630a_bl.c if (pdata->leda_ctrl != LM3630A_LEDA_DISABLE) { pdata 342 drivers/video/backlight/lm3630a_bl.c props.brightness = pdata->leda_init_brt; pdata 343 drivers/video/backlight/lm3630a_bl.c props.max_brightness = pdata->leda_max_brt; pdata 344 drivers/video/backlight/lm3630a_bl.c label = pdata->leda_label ? pdata->leda_label : "lm3630a_leda"; pdata 353 drivers/video/backlight/lm3630a_bl.c if ((pdata->ledb_ctrl != LM3630A_LEDB_DISABLE) && pdata 354 drivers/video/backlight/lm3630a_bl.c (pdata->ledb_ctrl != LM3630A_LEDB_ON_A)) { pdata 355 drivers/video/backlight/lm3630a_bl.c props.brightness = pdata->ledb_init_brt; pdata 356 drivers/video/backlight/lm3630a_bl.c props.max_brightness = pdata->ledb_max_brt; pdata 357 drivers/video/backlight/lm3630a_bl.c label = pdata->ledb_label ? pdata->ledb_label : "lm3630a_ledb"; pdata 401 drivers/video/backlight/lm3630a_bl.c static int lm3630a_parse_bank(struct lm3630a_platform_data *pdata, pdata 432 drivers/video/backlight/lm3630a_bl.c pdata->ledb_ctrl = linear ? pdata 439 drivers/video/backlight/lm3630a_bl.c pdata->leda_ctrl = linear ? pdata 444 drivers/video/backlight/lm3630a_bl.c pdata->ledb_ctrl = LM3630A_LEDB_ON_A; pdata 450 drivers/video/backlight/lm3630a_bl.c pdata->ledb_label = label; pdata 452 drivers/video/backlight/lm3630a_bl.c pdata->leda_label = label; pdata 459 drivers/video/backlight/lm3630a_bl.c pdata->ledb_init_brt = val; pdata 461 drivers/video/backlight/lm3630a_bl.c pdata->leda_init_brt = val; pdata 467 drivers/video/backlight/lm3630a_bl.c pdata->ledb_max_brt = val; pdata 469 drivers/video/backlight/lm3630a_bl.c pdata->leda_max_brt = val; pdata 476 drivers/video/backlight/lm3630a_bl.c struct lm3630a_platform_data *pdata) pdata 482 drivers/video/backlight/lm3630a_bl.c ret = lm3630a_parse_bank(pdata, node, &seen_led_sources); pdata 493 drivers/video/backlight/lm3630a_bl.c struct lm3630a_platform_data *pdata = dev_get_platdata(&client->dev); pdata 516 drivers/video/backlight/lm3630a_bl.c if (pdata == NULL) { pdata 517 drivers/video/backlight/lm3630a_bl.c pdata = devm_kzalloc(pchip->dev, pdata 520 drivers/video/backlight/lm3630a_bl.c if (pdata == NULL) pdata 524 drivers/video/backlight/lm3630a_bl.c pdata->leda_max_brt = LM3630A_MAX_BRIGHTNESS; pdata 525 drivers/video/backlight/lm3630a_bl.c pdata->ledb_max_brt = LM3630A_MAX_BRIGHTNESS; pdata 526 drivers/video/backlight/lm3630a_bl.c pdata->leda_init_brt = LM3630A_MAX_BRIGHTNESS; pdata 527 drivers/video/backlight/lm3630a_bl.c pdata->ledb_init_brt = LM3630A_MAX_BRIGHTNESS; pdata 529 drivers/video/backlight/lm3630a_bl.c rval = lm3630a_parse_node(pchip, pdata); pdata 535 drivers/video/backlight/lm3630a_bl.c pchip->pdata = pdata; pdata 550 drivers/video/backlight/lm3630a_bl.c if (pdata->pwm_ctrl != LM3630A_PWM_DISABLE) { pdata 34 drivers/video/backlight/lm3639_bl.c struct lm3639_platform_data *pdata; pdata 51 drivers/video/backlight/lm3639_bl.c struct lm3639_platform_data *pdata = pchip->pdata; pdata 56 drivers/video/backlight/lm3639_bl.c pdata->pin_pwm); pdata 60 drivers/video/backlight/lm3639_bl.c reg_val = (pdata->pin_pwm & 0x40) | pdata->pin_strobe | pdata->pin_tx; pdata 66 drivers/video/backlight/lm3639_bl.c ret = regmap_write(pchip->regmap, REG_BL_CONF_4, pdata->init_brt_led); pdata 70 drivers/video/backlight/lm3639_bl.c ret = regmap_write(pchip->regmap, REG_BL_CONF_3, pdata->init_brt_led); pdata 75 drivers/video/backlight/lm3639_bl.c if (!pdata->init_brt_led) { pdata 76 drivers/video/backlight/lm3639_bl.c reg_val = pdata->fled_pins; pdata 77 drivers/video/backlight/lm3639_bl.c reg_val |= pdata->bled_pins; pdata 79 drivers/video/backlight/lm3639_bl.c reg_val = pdata->fled_pins; pdata 80 drivers/video/backlight/lm3639_bl.c reg_val |= pdata->bled_pins | 0x01; pdata 99 drivers/video/backlight/lm3639_bl.c struct lm3639_platform_data *pdata = pchip->pdata; pdata 109 drivers/video/backlight/lm3639_bl.c if (pdata->pin_pwm) { pdata 110 drivers/video/backlight/lm3639_bl.c if (pdata->pwm_set_intensity) pdata 111 drivers/video/backlight/lm3639_bl.c pdata->pwm_set_intensity(bl->props.brightness, pdata 112 drivers/video/backlight/lm3639_bl.c pdata->max_brt_led); pdata 145 drivers/video/backlight/lm3639_bl.c struct lm3639_platform_data *pdata = pchip->pdata; pdata 147 drivers/video/backlight/lm3639_bl.c if (pdata->pin_pwm) { pdata 148 drivers/video/backlight/lm3639_bl.c if (pdata->pwm_get_intensity) pdata 149 drivers/video/backlight/lm3639_bl.c bl->props.brightness = pdata->pwm_get_intensity(); pdata 304 drivers/video/backlight/lm3639_bl.c struct lm3639_platform_data *pdata = dev_get_platdata(&client->dev); pdata 312 drivers/video/backlight/lm3639_bl.c if (pdata == NULL) { pdata 322 drivers/video/backlight/lm3639_bl.c pchip->pdata = pdata; pdata 343 drivers/video/backlight/lm3639_bl.c props.brightness = pdata->init_brt_led; pdata 344 drivers/video/backlight/lm3639_bl.c props.max_brightness = pdata->max_brt_led; pdata 128 drivers/video/backlight/lms283gf05.c struct lms283gf05_pdata *pdata = dev_get_platdata(&spi->dev); pdata 131 drivers/video/backlight/lms283gf05.c if (pdata) pdata 132 drivers/video/backlight/lms283gf05.c lms283gf05_reset(pdata->reset_gpio, pdata 133 drivers/video/backlight/lms283gf05.c pdata->reset_inverted); pdata 137 drivers/video/backlight/lms283gf05.c if (pdata) pdata 138 drivers/video/backlight/lms283gf05.c gpio_set_value(pdata->reset_gpio, pdata 139 drivers/video/backlight/lms283gf05.c pdata->reset_inverted); pdata 153 drivers/video/backlight/lms283gf05.c struct lms283gf05_pdata *pdata = dev_get_platdata(&spi->dev); pdata 157 drivers/video/backlight/lms283gf05.c if (pdata != NULL) { pdata 158 drivers/video/backlight/lms283gf05.c ret = devm_gpio_request_one(&spi->dev, pdata->reset_gpio, pdata 159 drivers/video/backlight/lms283gf05.c GPIOF_DIR_OUT | (!pdata->reset_inverted ? pdata 182 drivers/video/backlight/lms283gf05.c if (pdata) pdata 183 drivers/video/backlight/lms283gf05.c lms283gf05_reset(pdata->reset_gpio, pdata->reset_inverted); pdata 71 drivers/video/backlight/lp855x_bl.c struct lp855x_platform_data *pdata; pdata 171 drivers/video/backlight/lp855x_bl.c struct lp855x_platform_data *pd = lp->pdata; pdata 236 drivers/video/backlight/lp855x_bl.c unsigned int period = lp->pdata->period_ns; pdata 287 drivers/video/backlight/lp855x_bl.c struct lp855x_platform_data *pdata = lp->pdata; pdata 288 drivers/video/backlight/lp855x_bl.c const char *name = pdata->name ? : DEFAULT_BL_NAME; pdata 294 drivers/video/backlight/lp855x_bl.c if (pdata->initial_brightness > props.max_brightness) pdata 295 drivers/video/backlight/lp855x_bl.c pdata->initial_brightness = props.max_brightness; pdata 297 drivers/video/backlight/lp855x_bl.c props.brightness = pdata->initial_brightness; pdata 349 drivers/video/backlight/lp855x_bl.c struct lp855x_platform_data *pdata; pdata 357 drivers/video/backlight/lp855x_bl.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 358 drivers/video/backlight/lp855x_bl.c if (!pdata) pdata 361 drivers/video/backlight/lp855x_bl.c of_property_read_string(node, "bl-name", &pdata->name); pdata 362 drivers/video/backlight/lp855x_bl.c of_property_read_u8(node, "dev-ctrl", &pdata->device_control); pdata 363 drivers/video/backlight/lp855x_bl.c of_property_read_u8(node, "init-brt", &pdata->initial_brightness); pdata 364 drivers/video/backlight/lp855x_bl.c of_property_read_u32(node, "pwm-period", &pdata->period_ns); pdata 383 drivers/video/backlight/lp855x_bl.c pdata->size_program = rom_length; pdata 384 drivers/video/backlight/lp855x_bl.c pdata->rom_data = &rom[0]; pdata 387 drivers/video/backlight/lp855x_bl.c lp->pdata = pdata; pdata 414 drivers/video/backlight/lp855x_bl.c lp->pdata = dev_get_platdata(&cl->dev); pdata 416 drivers/video/backlight/lp855x_bl.c if (!lp->pdata) { pdata 422 drivers/video/backlight/lp855x_bl.c if (lp->pdata->period_ns > 0) pdata 46 drivers/video/backlight/lp8788_bl.c struct lp8788_backlight_platform_data *pdata; pdata 73 drivers/video/backlight/lp8788_bl.c struct lp8788_backlight_platform_data *pdata = bl->pdata; pdata 82 drivers/video/backlight/lp8788_bl.c if (pdata) { pdata 83 drivers/video/backlight/lp8788_bl.c cfg->bl_mode = pdata->bl_mode; pdata 84 drivers/video/backlight/lp8788_bl.c cfg->dim_mode = pdata->dim_mode; pdata 85 drivers/video/backlight/lp8788_bl.c cfg->full_scale = pdata->full_scale; pdata 86 drivers/video/backlight/lp8788_bl.c cfg->rise_time = pdata->rise_time; pdata 87 drivers/video/backlight/lp8788_bl.c cfg->fall_time = pdata->fall_time; pdata 88 drivers/video/backlight/lp8788_bl.c cfg->pwm_pol = pdata->pwm_pol; pdata 128 drivers/video/backlight/lp8788_bl.c if (!bl->pdata) pdata 131 drivers/video/backlight/lp8788_bl.c period = bl->pdata->period_ns; pdata 190 drivers/video/backlight/lp8788_bl.c struct lp8788_backlight_platform_data *pdata = bl->pdata; pdata 198 drivers/video/backlight/lp8788_bl.c if (pdata) pdata 199 drivers/video/backlight/lp8788_bl.c init_brt = min_t(int, pdata->initial_brightness, pdata 207 drivers/video/backlight/lp8788_bl.c if (!pdata || !pdata->name) pdata 210 drivers/video/backlight/lp8788_bl.c name = pdata->name; pdata 268 drivers/video/backlight/lp8788_bl.c if (lp->pdata) pdata 269 drivers/video/backlight/lp8788_bl.c bl->pdata = lp->pdata->bl_pdata; pdata 38 drivers/video/backlight/lv5207lp.c struct lv5207lp_platform_data *pdata; pdata 75 drivers/video/backlight/lv5207lp.c return lv->pdata->fbdev == NULL || lv->pdata->fbdev == info->dev; pdata 87 drivers/video/backlight/lv5207lp.c struct lv5207lp_platform_data *pdata = dev_get_platdata(&client->dev); pdata 92 drivers/video/backlight/lv5207lp.c if (pdata == NULL) { pdata 109 drivers/video/backlight/lv5207lp.c lv->pdata = pdata; pdata 113 drivers/video/backlight/lv5207lp.c props.max_brightness = min_t(unsigned int, pdata->max_value, pdata 115 drivers/video/backlight/lv5207lp.c props.brightness = clamp_t(unsigned int, pdata->def_value, 0, pdata 104 drivers/video/backlight/max8925_bl.c struct max8925_backlight_pdata *pdata; pdata 110 drivers/video/backlight/max8925_bl.c pdata = devm_kzalloc(&pdev->dev, pdata 113 drivers/video/backlight/max8925_bl.c if (!pdata) pdata 123 drivers/video/backlight/max8925_bl.c pdata->dual_string = val; pdata 127 drivers/video/backlight/max8925_bl.c pdev->dev.platform_data = pdata; pdata 133 drivers/video/backlight/max8925_bl.c struct max8925_backlight_pdata *pdata; pdata 180 drivers/video/backlight/max8925_bl.c pdata = pdev->dev.platform_data; pdata 181 drivers/video/backlight/max8925_bl.c if (pdata) { pdata 182 drivers/video/backlight/max8925_bl.c if (pdata->lxw_scl) pdata 184 drivers/video/backlight/max8925_bl.c if (pdata->lxw_freq) pdata 185 drivers/video/backlight/max8925_bl.c value |= (LWX_FREQ(pdata->lxw_freq) << 4); pdata 186 drivers/video/backlight/max8925_bl.c if (pdata->dual_string) pdata 27 drivers/video/backlight/omap1_bl.c struct omap_backlight_config *pdata; pdata 42 drivers/video/backlight/omap1_bl.c if (bl->pdata->set_power) pdata 43 drivers/video/backlight/omap1_bl.c bl->pdata->set_power(bl->dev, mode); pdata 124 drivers/video/backlight/omap1_bl.c struct omap_backlight_config *pdata = dev_get_platdata(&pdev->dev); pdata 126 drivers/video/backlight/omap1_bl.c if (!pdata) pdata 145 drivers/video/backlight/omap1_bl.c bl->pdata = pdata; pdata 153 drivers/video/backlight/omap1_bl.c dev->props.brightness = pdata->default_intensity; pdata 99 drivers/video/backlight/pcf50633-backlight.c struct pcf50633_bl_platform_data *pdata = pcf50633_data->backlight_data; pdata 111 drivers/video/backlight/pcf50633-backlight.c if (pdata) { pdata 112 drivers/video/backlight/pcf50633-backlight.c bl_props.brightness = pdata->default_brightness; pdata 113 drivers/video/backlight/pcf50633-backlight.c pcf_bl->brightness_limit = pdata->default_brightness_limit; pdata 130 drivers/video/backlight/pcf50633-backlight.c pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDDIM, pdata->ramp_time); pdata 23 drivers/video/backlight/platform_lcd.c struct plat_lcd_data *pdata; pdata 49 drivers/video/backlight/platform_lcd.c plcd->pdata->set_power(plcd->pdata, lcd_power); pdata 58 drivers/video/backlight/platform_lcd.c struct plat_lcd_data *pdata = plcd->pdata; pdata 60 drivers/video/backlight/platform_lcd.c if (pdata->match_fb) pdata 61 drivers/video/backlight/platform_lcd.c return pdata->match_fb(pdata, info); pdata 74 drivers/video/backlight/platform_lcd.c struct plat_lcd_data *pdata; pdata 79 drivers/video/backlight/platform_lcd.c pdata = dev_get_platdata(&pdev->dev); pdata 80 drivers/video/backlight/platform_lcd.c if (!pdata) { pdata 85 drivers/video/backlight/platform_lcd.c if (pdata->probe) { pdata 86 drivers/video/backlight/platform_lcd.c err = pdata->probe(pdata); pdata 97 drivers/video/backlight/platform_lcd.c plcd->pdata = pdata; pdata 49 drivers/video/backlight/sky81452-backlight.c const struct sky81452_bl_platform_data *pdata = pdata 61 drivers/video/backlight/sky81452-backlight.c pdata->enable << CTZ(SKY81452_EN)); pdata 165 drivers/video/backlight/sky81452-backlight.c struct sky81452_bl_platform_data *pdata; pdata 175 drivers/video/backlight/sky81452-backlight.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 176 drivers/video/backlight/sky81452-backlight.c if (!pdata) { pdata 181 drivers/video/backlight/sky81452-backlight.c of_property_read_string(np, "name", &pdata->name); pdata 182 drivers/video/backlight/sky81452-backlight.c pdata->ignore_pwm = of_property_read_bool(np, "skyworks,ignore-pwm"); pdata 183 drivers/video/backlight/sky81452-backlight.c pdata->dpwm_mode = of_property_read_bool(np, "skyworks,dpwm-mode"); pdata 184 drivers/video/backlight/sky81452-backlight.c pdata->phase_shift = of_property_read_bool(np, "skyworks,phase-shift"); pdata 185 drivers/video/backlight/sky81452-backlight.c pdata->gpio_enable = of_get_gpio(np, 0); pdata 189 drivers/video/backlight/sky81452-backlight.c pdata->enable = SKY81452_EN >> CTZ(SKY81452_EN); pdata 202 drivers/video/backlight/sky81452-backlight.c pdata->enable = 0; pdata 204 drivers/video/backlight/sky81452-backlight.c pdata->enable |= (1 << sources[num_entry]); pdata 209 drivers/video/backlight/sky81452-backlight.c &pdata->short_detection_threshold); pdata 211 drivers/video/backlight/sky81452-backlight.c pdata->short_detection_threshold = 7; pdata 214 drivers/video/backlight/sky81452-backlight.c &pdata->boost_current_limit); pdata 216 drivers/video/backlight/sky81452-backlight.c pdata->boost_current_limit = 2750; pdata 219 drivers/video/backlight/sky81452-backlight.c return pdata; pdata 230 drivers/video/backlight/sky81452-backlight.c struct sky81452_bl_platform_data *pdata) pdata 234 drivers/video/backlight/sky81452-backlight.c value = pdata->ignore_pwm ? SKY81452_IGPW : 0; pdata 235 drivers/video/backlight/sky81452-backlight.c value |= pdata->dpwm_mode ? SKY81452_PWMMD : 0; pdata 236 drivers/video/backlight/sky81452-backlight.c value |= pdata->phase_shift ? 0 : SKY81452_PHASE; pdata 238 drivers/video/backlight/sky81452-backlight.c if (pdata->boost_current_limit == 2300) pdata 240 drivers/video/backlight/sky81452-backlight.c else if (pdata->boost_current_limit != 2750) pdata 243 drivers/video/backlight/sky81452-backlight.c if (pdata->short_detection_threshold < 4 || pdata 244 drivers/video/backlight/sky81452-backlight.c pdata->short_detection_threshold > 7) pdata 246 drivers/video/backlight/sky81452-backlight.c value |= (7 - pdata->short_detection_threshold) << CTZ(SKY81452_VSHRT); pdata 255 drivers/video/backlight/sky81452-backlight.c struct sky81452_bl_platform_data *pdata = dev_get_platdata(dev); pdata 261 drivers/video/backlight/sky81452-backlight.c if (!pdata) { pdata 262 drivers/video/backlight/sky81452-backlight.c pdata = sky81452_bl_parse_dt(dev); pdata 263 drivers/video/backlight/sky81452-backlight.c if (IS_ERR(pdata)) pdata 264 drivers/video/backlight/sky81452-backlight.c return PTR_ERR(pdata); pdata 267 drivers/video/backlight/sky81452-backlight.c if (gpio_is_valid(pdata->gpio_enable)) { pdata 268 drivers/video/backlight/sky81452-backlight.c ret = devm_gpio_request_one(dev, pdata->gpio_enable, pdata 276 drivers/video/backlight/sky81452-backlight.c ret = sky81452_bl_init_device(regmap, pdata); pdata 284 drivers/video/backlight/sky81452-backlight.c name = pdata->name ? pdata->name : SKY81452_DEFAULT_NAME; pdata 305 drivers/video/backlight/sky81452-backlight.c const struct sky81452_bl_platform_data *pdata = pdata 315 drivers/video/backlight/sky81452-backlight.c if (gpio_is_valid(pdata->gpio_enable)) pdata 316 drivers/video/backlight/sky81452-backlight.c gpio_set_value_cansleep(pdata->gpio_enable, 0); pdata 336 drivers/video/backlight/tdo24m.c struct tdo24m_platform_data *pdata; pdata 340 drivers/video/backlight/tdo24m.c pdata = dev_get_platdata(&spi->dev); pdata 341 drivers/video/backlight/tdo24m.c if (pdata) pdata 342 drivers/video/backlight/tdo24m.c model = pdata->model; pdata 118 drivers/video/backlight/tps65217_bl.c struct tps65217_bl_pdata *pdata) pdata 126 drivers/video/backlight/tps65217_bl.c switch (pdata->isel) { pdata 162 drivers/video/backlight/tps65217_bl.c "invalid value for current level: %d\n", pdata->isel); pdata 170 drivers/video/backlight/tps65217_bl.c pdata->fdim, pdata 188 drivers/video/backlight/tps65217_bl.c struct tps65217_bl_pdata *pdata, *err; pdata 195 drivers/video/backlight/tps65217_bl.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 196 drivers/video/backlight/tps65217_bl.c if (!pdata) { pdata 201 drivers/video/backlight/tps65217_bl.c pdata->isel = TPS65217_BL_ISET1; pdata 211 drivers/video/backlight/tps65217_bl.c pdata->isel = val; pdata 214 drivers/video/backlight/tps65217_bl.c pdata->fdim = TPS65217_BL_FDIM_200HZ; pdata 218 drivers/video/backlight/tps65217_bl.c pdata->fdim = TPS65217_BL_FDIM_100HZ; pdata 222 drivers/video/backlight/tps65217_bl.c pdata->fdim = TPS65217_BL_FDIM_200HZ; pdata 226 drivers/video/backlight/tps65217_bl.c pdata->fdim = TPS65217_BL_FDIM_500HZ; pdata 230 drivers/video/backlight/tps65217_bl.c pdata->fdim = TPS65217_BL_FDIM_1000HZ; pdata 249 drivers/video/backlight/tps65217_bl.c pdata->dft_brightness = val; pdata 254 drivers/video/backlight/tps65217_bl.c return pdata; pdata 274 drivers/video/backlight/tps65217_bl.c struct tps65217_bl_pdata *pdata; pdata 277 drivers/video/backlight/tps65217_bl.c pdata = tps65217_bl_parse_dt(pdev); pdata 278 drivers/video/backlight/tps65217_bl.c if (IS_ERR(pdata)) pdata 279 drivers/video/backlight/tps65217_bl.c return PTR_ERR(pdata); pdata 290 drivers/video/backlight/tps65217_bl.c rc = tps65217_bl_hw_init(tps65217_bl, pdata); pdata 307 drivers/video/backlight/tps65217_bl.c tps65217_bl->bl->props.brightness = pdata->dft_brightness; pdata 125 drivers/video/backlight/wm831x_bl.c struct wm831x_backlight_pdata *pdata; pdata 133 drivers/video/backlight/wm831x_bl.c pdata = wm831x_pdata->backlight; pdata 135 drivers/video/backlight/wm831x_bl.c pdata = NULL; pdata 137 drivers/video/backlight/wm831x_bl.c if (!pdata) { pdata 144 drivers/video/backlight/wm831x_bl.c if (wm831x_isinkv_values[i] > pdata->max_uA) pdata 149 drivers/video/backlight/wm831x_bl.c dev_err(&pdev->dev, "Invalid max_uA: %duA\n", pdata->max_uA); pdata 154 drivers/video/backlight/wm831x_bl.c if (pdata->max_uA != wm831x_isinkv_values[max_isel]) pdata 157 drivers/video/backlight/wm831x_bl.c wm831x_isinkv_values[max_isel], pdata->max_uA); pdata 159 drivers/video/backlight/wm831x_bl.c switch (pdata->isink) { pdata 169 drivers/video/backlight/wm831x_bl.c dev_err(&pdev->dev, "Invalid ISINK %d\n", pdata->isink); pdata 58 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata pdata; pdata 207 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata *pdata = &sinfo->pdata; pdata 210 drivers/video/fbdev/atmel_lcdfb.c if (pdata->lcdcon_pol_negative) pdata 217 drivers/video/fbdev/atmel_lcdfb.c if (pdata->lcdcon_is_backlight) pdata 224 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata *pdata = &sinfo->pdata; pdata 226 drivers/video/fbdev/atmel_lcdfb.c if (pdata->atmel_lcdfb_power_control) pdata 227 drivers/video/fbdev/atmel_lcdfb.c pdata->atmel_lcdfb_power_control(pdata, on); pdata 281 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata *pdata = &sinfo->pdata; pdata 285 drivers/video/fbdev/atmel_lcdfb.c pdata->guard_time << ATMEL_LCDC_GUARDT_OFFSET); pdata 305 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata *pdata = &sinfo->pdata; pdata 307 drivers/video/fbdev/atmel_lcdfb.c lcdc_writel(sinfo, ATMEL_LCDC_DMACON, pdata->default_dmacon); pdata 309 drivers/video/fbdev/atmel_lcdfb.c (pdata->guard_time << ATMEL_LCDC_GUARDT_OFFSET) pdata 409 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata *pdata = &sinfo->pdata; pdata 496 drivers/video/fbdev/atmel_lcdfb.c if (pdata->lcd_wiring_mode == ATMEL_LCDC_WIRING_RGB) { pdata 513 drivers/video/fbdev/atmel_lcdfb.c if (pdata->lcd_wiring_mode == ATMEL_LCDC_WIRING_RGB) { pdata 562 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata *pdata = &sinfo->pdata; pdata 624 drivers/video/fbdev/atmel_lcdfb.c value = pdata->default_lcdcon2; pdata 728 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata *pdata = &sinfo->pdata; pdata 765 drivers/video/fbdev/atmel_lcdfb.c if (pdata->lcd_wiring_mode == ATMEL_LCDC_WIRING_RGB) { pdata 932 drivers/video/fbdev/atmel_lcdfb.c static void atmel_lcdfb_power_control_gpio(struct atmel_lcdfb_pdata *pdata, int on) pdata 936 drivers/video/fbdev/atmel_lcdfb.c list_for_each_entry(og, &pdata->pwr_gpios, list) pdata 943 drivers/video/fbdev/atmel_lcdfb.c struct atmel_lcdfb_pdata *pdata = &sinfo->pdata; pdata 971 drivers/video/fbdev/atmel_lcdfb.c ret = of_property_read_u32(display_np, "atmel,guard-time", &pdata->guard_time); pdata 977 drivers/video/fbdev/atmel_lcdfb.c ret = of_property_read_u32(display_np, "atmel,lcdcon2", &pdata->default_lcdcon2); pdata 983 drivers/video/fbdev/atmel_lcdfb.c ret = of_property_read_u32(display_np, "atmel,dmacon", &pdata->default_dmacon); pdata 989 drivers/video/fbdev/atmel_lcdfb.c INIT_LIST_HEAD(&pdata->pwr_gpios); pdata 1009 drivers/video/fbdev/atmel_lcdfb.c list_add(&og->list, &pdata->pwr_gpios); pdata 1013 drivers/video/fbdev/atmel_lcdfb.c pdata->atmel_lcdfb_power_control = atmel_lcdfb_power_control_gpio; pdata 1020 drivers/video/fbdev/atmel_lcdfb.c pdata->lcd_wiring_mode = ret; pdata 1022 drivers/video/fbdev/atmel_lcdfb.c pdata->lcdcon_is_backlight = of_property_read_bool(display_np, "atmel,lcdcon-backlight"); pdata 1023 drivers/video/fbdev/atmel_lcdfb.c pdata->lcdcon_pol_negative = of_property_read_bool(display_np, "atmel,lcdcon-backlight-inverted"); pdata 25 drivers/video/fbdev/aty/radeon_backlight.c static int radeon_bl_get_level_brightness(struct radeon_bl_privdata *pdata, pdata 32 drivers/video/fbdev/aty/radeon_backlight.c rlevel = pdata->rinfo->info->bl_curve[level] * pdata 40 drivers/video/fbdev/aty/radeon_backlight.c if (pdata->negative) pdata 48 drivers/video/fbdev/aty/radeon_backlight.c struct radeon_bl_privdata *pdata = bl_get_data(bd); pdata 49 drivers/video/fbdev/aty/radeon_backlight.c struct radeonfb_info *rinfo = pdata->rinfo; pdata 78 drivers/video/fbdev/aty/radeon_backlight.c (radeon_bl_get_level_brightness(pdata, level) << pdata 88 drivers/video/fbdev/aty/radeon_backlight.c (radeon_bl_get_level_brightness(pdata, level) << pdata 103 drivers/video/fbdev/aty/radeon_backlight.c lvds_gen_cntl |= (radeon_bl_get_level_brightness(pdata, 0) << pdata 131 drivers/video/fbdev/aty/radeon_backlight.c struct radeon_bl_privdata *pdata; pdata 143 drivers/video/fbdev/aty/radeon_backlight.c pdata = kmalloc(sizeof(struct radeon_bl_privdata), GFP_KERNEL); pdata 144 drivers/video/fbdev/aty/radeon_backlight.c if (!pdata) { pdata 154 drivers/video/fbdev/aty/radeon_backlight.c bd = backlight_device_register(name, rinfo->info->dev, pdata, pdata 162 drivers/video/fbdev/aty/radeon_backlight.c pdata->rinfo = rinfo; pdata 167 drivers/video/fbdev/aty/radeon_backlight.c pdata->negative = pdata 174 drivers/video/fbdev/aty/radeon_backlight.c pdata->negative = pdata->negative || pdata 194 drivers/video/fbdev/aty/radeon_backlight.c kfree(pdata); pdata 203 drivers/video/fbdev/aty/radeon_backlight.c struct radeon_bl_privdata *pdata; pdata 205 drivers/video/fbdev/aty/radeon_backlight.c pdata = bl_get_data(bd); pdata 207 drivers/video/fbdev/aty/radeon_backlight.c kfree(pdata); pdata 1240 drivers/video/fbdev/au1200fb.c static void set_global(u_int cmd, struct au1200_lcd_global_regs_t *pdata) pdata 1247 drivers/video/fbdev/au1200fb.c if (pdata->flags & SCREEN_BACKCOLOR) pdata 1248 drivers/video/fbdev/au1200fb.c lcd->backcolor = pdata->backcolor; pdata 1250 drivers/video/fbdev/au1200fb.c if (pdata->flags & SCREEN_BRIGHTNESS) { pdata 1253 drivers/video/fbdev/au1200fb.c if (pdata->brightness < 30) { pdata 1254 drivers/video/fbdev/au1200fb.c pdata->brightness = 30; pdata 1257 drivers/video/fbdev/au1200fb.c hi1 = (((pdata->brightness & 0xFF)+1) * divider >> 8); pdata 1262 drivers/video/fbdev/au1200fb.c if (pdata->flags & SCREEN_COLORKEY) pdata 1263 drivers/video/fbdev/au1200fb.c lcd->colorkey = pdata->colorkey; pdata 1265 drivers/video/fbdev/au1200fb.c if (pdata->flags & SCREEN_MASK) pdata 1266 drivers/video/fbdev/au1200fb.c lcd->colorkeymsk = pdata->mask; pdata 1270 drivers/video/fbdev/au1200fb.c static void get_global(u_int cmd, struct au1200_lcd_global_regs_t *pdata) pdata 1274 drivers/video/fbdev/au1200fb.c pdata->xsize = ((lcd->screen & LCD_SCREEN_SX) >> 19) + 1; pdata 1275 drivers/video/fbdev/au1200fb.c pdata->ysize = ((lcd->screen & LCD_SCREEN_SY) >> 8) + 1; pdata 1277 drivers/video/fbdev/au1200fb.c pdata->backcolor = lcd->backcolor; pdata 1278 drivers/video/fbdev/au1200fb.c pdata->colorkey = lcd->colorkey; pdata 1279 drivers/video/fbdev/au1200fb.c pdata->mask = lcd->colorkeymsk; pdata 1284 drivers/video/fbdev/au1200fb.c pdata->brightness = ((hi1 << 8) / divider) - 1; pdata 1289 drivers/video/fbdev/au1200fb.c struct au1200_lcd_window_regs_t *pdata) pdata 1294 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_POSITION) { pdata 1297 drivers/video/fbdev/au1200fb.c val |= ((pdata->xpos << 21) & LCD_WINCTRL0_OX); pdata 1298 drivers/video/fbdev/au1200fb.c val |= ((pdata->ypos << 10) & LCD_WINCTRL0_OY); pdata 1301 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_ALPHA_COLOR) { pdata 1303 drivers/video/fbdev/au1200fb.c val |= ((pdata->alpha_color << 2) & LCD_WINCTRL0_A); pdata 1306 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_ALPHA_MODE) { pdata 1308 drivers/video/fbdev/au1200fb.c val |= ((pdata->alpha_mode << 1) & LCD_WINCTRL0_AEN); pdata 1313 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_PRIORITY) { pdata 1315 drivers/video/fbdev/au1200fb.c val |= ((pdata->priority << 30) & LCD_WINCTRL1_PRI); pdata 1318 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_CHANNEL) { pdata 1320 drivers/video/fbdev/au1200fb.c val |= ((pdata->channel << 29) & LCD_WINCTRL1_PIPE); pdata 1323 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_BUFFER_FORMAT) { pdata 1325 drivers/video/fbdev/au1200fb.c val |= ((pdata->buffer_format << 25) & LCD_WINCTRL1_FRM); pdata 1328 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_COLOR_ORDER) { pdata 1330 drivers/video/fbdev/au1200fb.c val |= ((pdata->color_order << 24) & LCD_WINCTRL1_CCO); pdata 1333 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_PIXEL_ORDER) { pdata 1335 drivers/video/fbdev/au1200fb.c val |= ((pdata->pixel_order << 22) & LCD_WINCTRL1_PO); pdata 1338 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_SIZE) { pdata 1341 drivers/video/fbdev/au1200fb.c val |= (((pdata->xsize << 11) - 1) & LCD_WINCTRL1_SZX); pdata 1342 drivers/video/fbdev/au1200fb.c val |= (((pdata->ysize) - 1) & LCD_WINCTRL1_SZY); pdata 1347 drivers/video/fbdev/au1200fb.c val |= (((pdata->xsize * bpp) << 8) & LCD_WINCTRL2_BX); pdata 1352 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_COLORKEY_MODE) { pdata 1354 drivers/video/fbdev/au1200fb.c val |= ((pdata->colorkey_mode << 24) & LCD_WINCTRL2_CKMODE); pdata 1357 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_DOUBLE_BUFFER_MODE) { pdata 1359 drivers/video/fbdev/au1200fb.c val |= ((pdata->double_buffer_mode << 23) & LCD_WINCTRL2_DBM); pdata 1362 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_RAM_ARRAY_MODE) { pdata 1364 drivers/video/fbdev/au1200fb.c val |= ((pdata->ram_array_mode << 21) & LCD_WINCTRL2_RAM); pdata 1370 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_BUFFER_SCALE) { pdata 1373 drivers/video/fbdev/au1200fb.c val |= ((pdata->xsize << 11) & LCD_WINCTRL2_SCX); pdata 1374 drivers/video/fbdev/au1200fb.c val |= ((pdata->ysize) & LCD_WINCTRL2_SCY); pdata 1378 drivers/video/fbdev/au1200fb.c if (pdata->flags & WIN_ENABLE) { pdata 1381 drivers/video/fbdev/au1200fb.c val |= (pdata->enable & 1) << plane; pdata 1388 drivers/video/fbdev/au1200fb.c struct au1200_lcd_window_regs_t *pdata) pdata 1391 drivers/video/fbdev/au1200fb.c pdata->xpos = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_OX) >> 21; pdata 1392 drivers/video/fbdev/au1200fb.c pdata->ypos = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_OY) >> 10; pdata 1393 drivers/video/fbdev/au1200fb.c pdata->alpha_color = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_A) >> 2; pdata 1394 drivers/video/fbdev/au1200fb.c pdata->alpha_mode = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_AEN) >> 1; pdata 1397 drivers/video/fbdev/au1200fb.c pdata->priority = (lcd->window[plane].winctrl1& LCD_WINCTRL1_PRI) >> 30; pdata 1398 drivers/video/fbdev/au1200fb.c pdata->channel = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_PIPE) >> 29; pdata 1399 drivers/video/fbdev/au1200fb.c pdata->buffer_format = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_FRM) >> 25; pdata 1400 drivers/video/fbdev/au1200fb.c pdata->color_order = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_CCO) >> 24; pdata 1401 drivers/video/fbdev/au1200fb.c pdata->pixel_order = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_PO) >> 22; pdata 1402 drivers/video/fbdev/au1200fb.c pdata->xsize = ((lcd->window[plane].winctrl1 & LCD_WINCTRL1_SZX) >> 11) + 1; pdata 1403 drivers/video/fbdev/au1200fb.c pdata->ysize = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_SZY) + 1; pdata 1406 drivers/video/fbdev/au1200fb.c pdata->colorkey_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_CKMODE) >> 24; pdata 1407 drivers/video/fbdev/au1200fb.c pdata->double_buffer_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_DBM) >> 23; pdata 1408 drivers/video/fbdev/au1200fb.c pdata->ram_array_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_RAM) >> 21; pdata 1410 drivers/video/fbdev/au1200fb.c pdata->enable = (lcd->winenable >> plane) & 1; pdata 658 drivers/video/fbdev/imxfb.c struct imx_fb_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 692 drivers/video/fbdev/imxfb.c if (pdata) { pdata 693 drivers/video/fbdev/imxfb.c fbi->lscr1 = pdata->lscr1; pdata 694 drivers/video/fbdev/imxfb.c fbi->dmacr = pdata->dmacr; pdata 695 drivers/video/fbdev/imxfb.c fbi->pwmr = pdata->pwmr; pdata 851 drivers/video/fbdev/imxfb.c struct imx_fb_platform_data *pdata; pdata 872 drivers/video/fbdev/imxfb.c pdata = dev_get_platdata(&pdev->dev); pdata 886 drivers/video/fbdev/imxfb.c if (pdata) { pdata 888 drivers/video/fbdev/imxfb.c fb_mode = pdata->mode[0].mode.name; pdata 890 drivers/video/fbdev/imxfb.c fbi->mode = pdata->mode; pdata 891 drivers/video/fbdev/imxfb.c fbi->num_modes = pdata->num_modes; pdata 987 drivers/video/fbdev/imxfb.c if (pdata && pdata->init) { pdata 988 drivers/video/fbdev/imxfb.c ret = pdata->init(fbi->pdev); pdata 1045 drivers/video/fbdev/imxfb.c if (pdata && pdata->exit) pdata 1046 drivers/video/fbdev/imxfb.c pdata->exit(fbi->pdev); pdata 1065 drivers/video/fbdev/imxfb.c struct imx_fb_platform_data *pdata; pdata 1076 drivers/video/fbdev/imxfb.c pdata = dev_get_platdata(&pdev->dev); pdata 1077 drivers/video/fbdev/imxfb.c if (pdata && pdata->exit) pdata 1078 drivers/video/fbdev/imxfb.c pdata->exit(fbi->pdev); pdata 891 drivers/video/fbdev/mbx/mbxfb.c struct mbxfb_platform_data *pdata; pdata 895 drivers/video/fbdev/mbx/mbxfb.c pdata = dev_get_platdata(&dev->dev); pdata 896 drivers/video/fbdev/mbx/mbxfb.c if (!pdata) { pdata 909 drivers/video/fbdev/mbx/mbxfb.c if (pdata->probe) pdata 910 drivers/video/fbdev/mbx/mbxfb.c mfbi->platform_probe = pdata->probe; pdata 911 drivers/video/fbdev/mbx/mbxfb.c if (pdata->remove) pdata 912 drivers/video/fbdev/mbx/mbxfb.c mfbi->platform_remove = pdata->remove; pdata 960 drivers/video/fbdev/mbx/mbxfb.c fbi->screen_size = pdata->memsize; pdata 966 drivers/video/fbdev/mbx/mbxfb.c fbi->fix.smem_len = pdata->memsize; pdata 513 drivers/video/fbdev/omap/lcd_mipid.c struct mipid_platform_data *pdata; pdata 516 drivers/video/fbdev/omap/lcd_mipid.c pdata = md->spi->dev.platform_data; pdata 517 drivers/video/fbdev/omap/lcd_mipid.c if (pdata == NULL) { pdata 541 drivers/video/fbdev/omap/lcd_mipid.c md->panel.data_lines = pdata->data_lines; pdata 189 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct connector_atv_platform_data *pdata; pdata 192 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c pdata = dev_get_platdata(&pdev->dev); pdata 194 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c in = omap_dss_find_output(pdata->source); pdata 202 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata->invert_polarity = pdata->invert_polarity; pdata 205 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c dssdev->name = pdata->name; pdata 156 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c const struct panel_dpi_platform_data *pdata; pdata 162 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c pdata = dev_get_platdata(&pdev->dev); pdata 164 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c in = omap_dss_find_output(pdata->source); pdata 167 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c pdata->source); pdata 173 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->data_lines = pdata->data_lines; pdata 175 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c videomode_from_timing(pdata->display_timing, &vm); pdata 179 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c dssdev->name = pdata->name; pdata 181 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c r = devm_gpio_request_one(&pdev->dev, pdata->enable_gpio, pdata 186 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->enable_gpio = gpio_to_desc(pdata->enable_gpio); pdata 188 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->backlight_gpio = pdata->backlight_gpio; pdata 698 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c const struct panel_acx565akm_platform_data *pdata; pdata 702 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c pdata = dev_get_platdata(&spi->dev); pdata 704 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->reset_gpio = pdata->reset_gpio; pdata 706 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c in = omap_dss_find_output(pdata->source); pdata 709 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c pdata->source); pdata 714 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->datapairs = pdata->datapairs; pdata 717 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dssdev->name = pdata->name; pdata 50 drivers/video/fbdev/omap2/omapfb/dss/core.c struct omap_dss_board_info *pdata = core.pdev->dev.platform_data; pdata 51 drivers/video/fbdev/omap2/omapfb/dss/core.c return pdata->version; pdata 82 drivers/video/fbdev/omap2/omapfb/dss/core.c struct omap_dss_board_info *pdata = core.pdev->dev.platform_data; pdata 84 drivers/video/fbdev/omap2/omapfb/dss/core.c if (pdata->set_min_bus_tput) pdata 85 drivers/video/fbdev/omap2/omapfb/dss/core.c return pdata->set_min_bus_tput(dev, tput); pdata 654 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c struct omap_hdmi_audio_pdata pdata = { pdata 663 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c &pdata, sizeof(pdata)); pdata 685 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c struct omap_hdmi_audio_pdata pdata = { pdata 694 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c &pdata, sizeof(pdata)); pdata 2239 drivers/video/fbdev/pxafb.c struct pxafb_mach_info *inf, *pdata; pdata 2246 drivers/video/fbdev/pxafb.c pdata = dev_get_platdata(&dev->dev); pdata 2251 drivers/video/fbdev/pxafb.c if (pdata) { pdata 2252 drivers/video/fbdev/pxafb.c *inf = *pdata; pdata 2254 drivers/video/fbdev/pxafb.c devm_kmalloc_array(&dev->dev, pdata->num_modes, pdata 2259 drivers/video/fbdev/pxafb.c inf->modes[i] = pdata->modes[i]; pdata 2262 drivers/video/fbdev/pxafb.c if (!pdata) pdata 759 drivers/video/fbdev/s1d13xxxfb.c struct s1d13xxxfb_pdata *pdata = NULL; pdata 770 drivers/video/fbdev/s1d13xxxfb.c pdata = dev_get_platdata(&pdev->dev); pdata 772 drivers/video/fbdev/s1d13xxxfb.c if (pdata && pdata->platform_init_video) pdata 773 drivers/video/fbdev/s1d13xxxfb.c pdata->platform_init_video(); pdata 883 drivers/video/fbdev/s1d13xxxfb.c if (pdata && pdata->initregs) pdata 884 drivers/video/fbdev/s1d13xxxfb.c s1d13xxxfb_runinit(info->par, pdata->initregs, pdata->initregssize); pdata 908 drivers/video/fbdev/s1d13xxxfb.c struct s1d13xxxfb_pdata *pdata = NULL; pdata 915 drivers/video/fbdev/s1d13xxxfb.c pdata = dev_get_platdata(&dev->dev); pdata 945 drivers/video/fbdev/s1d13xxxfb.c if (pdata && pdata->platform_suspend_video) pdata 946 drivers/video/fbdev/s1d13xxxfb.c return pdata->platform_suspend_video(); pdata 955 drivers/video/fbdev/s1d13xxxfb.c struct s1d13xxxfb_pdata *pdata = NULL; pdata 965 drivers/video/fbdev/s1d13xxxfb.c pdata = dev_get_platdata(&dev->dev); pdata 984 drivers/video/fbdev/s1d13xxxfb.c if (pdata && pdata->platform_resume_video) pdata 985 drivers/video/fbdev/s1d13xxxfb.c return pdata->platform_resume_video(); pdata 213 drivers/video/fbdev/s3c-fb.c struct s3c_fb_platdata *pdata; pdata 1192 drivers/video/fbdev/s3c-fb.c windata = sfb->pdata->win[win_no]; pdata 1193 drivers/video/fbdev/s3c-fb.c initmode = *sfb->pdata->vtiming; pdata 1290 drivers/video/fbdev/s3c-fb.c struct fb_videomode *vmode = sfb->pdata->vtiming; pdata 1300 drivers/video/fbdev/s3c-fb.c data = sfb->pdata->vidcon0; pdata 1388 drivers/video/fbdev/s3c-fb.c sfb->pdata = pd; pdata 1566 drivers/video/fbdev/s3c-fb.c struct s3c_fb_platdata *pd = sfb->pdata; pdata 1641 drivers/video/fbdev/s3c-fb.c struct s3c_fb_platdata *pd = sfb->pdata; pdata 2510 drivers/video/fbdev/sh_mobile_lcdcfb.c struct sh_mobile_lcdc_info *pdata = pdev->dev.platform_data; pdata 2517 drivers/video/fbdev/sh_mobile_lcdcfb.c if (!pdata) { pdata 2549 drivers/video/fbdev/sh_mobile_lcdcfb.c for (i = 0, num_channels = 0; i < ARRAY_SIZE(pdata->ch); i++) { pdata 2553 drivers/video/fbdev/sh_mobile_lcdcfb.c ch->cfg = &pdata->ch[i]; pdata 2567 drivers/video/fbdev/sh_mobile_lcdcfb.c switch (pdata->ch[i].chan) { pdata 2589 drivers/video/fbdev/sh_mobile_lcdcfb.c priv->forced_fourcc = pdata->ch[0].fourcc; pdata 2597 drivers/video/fbdev/sh_mobile_lcdcfb.c error = sh_mobile_lcdc_setup_clocks(priv, pdata->clock_source); pdata 2614 drivers/video/fbdev/sh_mobile_lcdcfb.c for (i = 0; i < ARRAY_SIZE(pdata->overlays); i++) { pdata 2617 drivers/video/fbdev/sh_mobile_lcdcfb.c ovl->cfg = &pdata->overlays[i]; pdata 2639 drivers/video/fbdev/sh_mobile_lcdcfb.c for (i = 0; i < ARRAY_SIZE(pdata->overlays); i++) { pdata 87 drivers/video/fbdev/sm501fb.c struct sm501_platdata_fb *pdata; /* our platform data */ pdata 353 drivers/video/fbdev/sm501fb.c if (sm->pdata->flags & SM501_FBPD_SWAP_FB_ENDIAN) { pdata 371 drivers/video/fbdev/sm501fb.c if (sm->pdata->flags & SM501_FBPD_SWAP_FB_ENDIAN) { pdata 716 drivers/video/fbdev/sm501fb.c struct sm501_platdata_fbsub *pd = fbi->pdata->fb_pnl; pdata 1686 drivers/video/fbdev/sm501fb.c pd = info->pdata->fb_crt; pdata 1691 drivers/video/fbdev/sm501fb.c if (info->pdata->fb_route != SM501_FB_CRT_PANEL) { pdata 1699 drivers/video/fbdev/sm501fb.c pd = info->pdata->fb_pnl; pdata 1716 drivers/video/fbdev/sm501fb.c if (head == HEAD_CRT && info->pdata->fb_route == SM501_FB_CRT_PANEL) { pdata 1867 drivers/video/fbdev/sm501fb.c pd = (head == HEAD_CRT) ? info->pdata->fb_crt : info->pdata->fb_pnl; pdata 1949 drivers/video/fbdev/sm501fb.c info->pdata = pd->fb; pdata 1952 drivers/video/fbdev/sm501fb.c if (info->pdata == NULL) { pdata 1960 drivers/video/fbdev/sm501fb.c info->pdata = &sm501fb_def_pdata; pdata 1977 drivers/video/fbdev/sm501fb.c info->pdata = &sm501fb_def_pdata; pdata 107 drivers/video/fbdev/via/via_i2c.c int viafb_i2c_readbyte(u8 adap, u8 slave_addr, u8 index, u8 *pdata) pdata 115 drivers/video/fbdev/via/via_i2c.c *pdata = 0; pdata 121 drivers/video/fbdev/via/via_i2c.c msgs[0].buf = mm1; msgs[1].buf = pdata; pdata 265 drivers/video/fbdev/xilinxfb.c struct xilinxfb_platform_data *pdata) pdata 269 drivers/video/fbdev/xilinxfb.c int fbsize = pdata->xvirt * pdata->yvirt * BYTES_PER_PIXEL; pdata 283 drivers/video/fbdev/xilinxfb.c if (pdata->fb_phys) { pdata 284 drivers/video/fbdev/xilinxfb.c drvdata->fb_phys = pdata->fb_phys; pdata 285 drivers/video/fbdev/xilinxfb.c drvdata->fb_virt = ioremap(pdata->fb_phys, fbsize); pdata 312 drivers/video/fbdev/xilinxfb.c if (pdata->rotate_screen) pdata 323 drivers/video/fbdev/xilinxfb.c drvdata->info.fix.line_length = pdata->xvirt * BYTES_PER_PIXEL; pdata 328 drivers/video/fbdev/xilinxfb.c drvdata->info.var.height = pdata->screen_height_mm; pdata 329 drivers/video/fbdev/xilinxfb.c drvdata->info.var.width = pdata->screen_width_mm; pdata 330 drivers/video/fbdev/xilinxfb.c drvdata->info.var.xres = pdata->xres; pdata 331 drivers/video/fbdev/xilinxfb.c drvdata->info.var.yres = pdata->yres; pdata 332 drivers/video/fbdev/xilinxfb.c drvdata->info.var.xres_virtual = pdata->xvirt; pdata 333 drivers/video/fbdev/xilinxfb.c drvdata->info.var.yres_virtual = pdata->yvirt; pdata 415 drivers/video/fbdev/xilinxfb.c struct xilinxfb_platform_data pdata; pdata 420 drivers/video/fbdev/xilinxfb.c pdata = xilinx_fb_default_pdata; pdata 456 drivers/video/fbdev/xilinxfb.c pdata.screen_width_mm = prop[0]; pdata 457 drivers/video/fbdev/xilinxfb.c pdata.screen_height_mm = prop[1]; pdata 462 drivers/video/fbdev/xilinxfb.c pdata.xres = prop[0]; pdata 463 drivers/video/fbdev/xilinxfb.c pdata.yres = prop[1]; pdata 468 drivers/video/fbdev/xilinxfb.c pdata.xvirt = prop[0]; pdata 469 drivers/video/fbdev/xilinxfb.c pdata.yvirt = prop[1]; pdata 473 drivers/video/fbdev/xilinxfb.c pdata.rotate_screen = 1; pdata 476 drivers/video/fbdev/xilinxfb.c return xilinxfb_assign(pdev, drvdata, &pdata); pdata 79 drivers/w1/masters/sgi_w1.c struct sgi_w1_platform_data *pdata; pdata 96 drivers/w1/masters/sgi_w1.c pdata = dev_get_platdata(&pdev->dev); pdata 97 drivers/w1/masters/sgi_w1.c if (pdata) { pdata 98 drivers/w1/masters/sgi_w1.c strlcpy(sdev->dev_id, pdata->dev_id, sizeof(sdev->dev_id)); pdata 23 drivers/w1/masters/w1-gpio.c struct w1_gpio_platform_data *pdata = data; pdata 26 drivers/w1/masters/w1-gpio.c pdata->pullup_duration = delay; pdata 28 drivers/w1/masters/w1-gpio.c if (pdata->pullup_duration) { pdata 33 drivers/w1/masters/w1-gpio.c gpiod_set_raw_value(pdata->gpiod, 1); pdata 34 drivers/w1/masters/w1-gpio.c msleep(pdata->pullup_duration); pdata 39 drivers/w1/masters/w1-gpio.c gpiod_set_value(pdata->gpiod, 1); pdata 41 drivers/w1/masters/w1-gpio.c pdata->pullup_duration = 0; pdata 49 drivers/w1/masters/w1-gpio.c struct w1_gpio_platform_data *pdata = data; pdata 51 drivers/w1/masters/w1-gpio.c gpiod_set_value(pdata->gpiod, bit); pdata 56 drivers/w1/masters/w1-gpio.c struct w1_gpio_platform_data *pdata = data; pdata 58 drivers/w1/masters/w1-gpio.c return gpiod_get_value(pdata->gpiod) ? 1 : 0; pdata 72 drivers/w1/masters/w1-gpio.c struct w1_gpio_platform_data *pdata; pdata 80 drivers/w1/masters/w1-gpio.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 81 drivers/w1/masters/w1-gpio.c if (!pdata) pdata 93 drivers/w1/masters/w1-gpio.c pdev->dev.platform_data = pdata; pdata 95 drivers/w1/masters/w1-gpio.c pdata = dev_get_platdata(dev); pdata 97 drivers/w1/masters/w1-gpio.c if (!pdata) { pdata 109 drivers/w1/masters/w1-gpio.c pdata->gpiod = devm_gpiod_get_index(dev, NULL, 0, gflags); pdata 110 drivers/w1/masters/w1-gpio.c if (IS_ERR(pdata->gpiod)) { pdata 112 drivers/w1/masters/w1-gpio.c return PTR_ERR(pdata->gpiod); pdata 115 drivers/w1/masters/w1-gpio.c pdata->pullup_gpiod = pdata 117 drivers/w1/masters/w1-gpio.c if (IS_ERR(pdata->pullup_gpiod)) { pdata 120 drivers/w1/masters/w1-gpio.c return PTR_ERR(pdata->pullup_gpiod); pdata 123 drivers/w1/masters/w1-gpio.c master->data = pdata; pdata 125 drivers/w1/masters/w1-gpio.c gpiod_direction_output(pdata->gpiod, 1); pdata 143 drivers/w1/masters/w1-gpio.c if (pdata->enable_external_pullup) pdata 144 drivers/w1/masters/w1-gpio.c pdata->enable_external_pullup(1); pdata 146 drivers/w1/masters/w1-gpio.c if (pdata->pullup_gpiod) pdata 147 drivers/w1/masters/w1-gpio.c gpiod_set_value(pdata->pullup_gpiod, 1); pdata 157 drivers/w1/masters/w1-gpio.c struct w1_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 159 drivers/w1/masters/w1-gpio.c if (pdata->enable_external_pullup) pdata 160 drivers/w1/masters/w1-gpio.c pdata->enable_external_pullup(0); pdata 162 drivers/w1/masters/w1-gpio.c if (pdata->pullup_gpiod) pdata 163 drivers/w1/masters/w1-gpio.c gpiod_set_value(pdata->pullup_gpiod, 0); pdata 172 drivers/w1/masters/w1-gpio.c struct w1_gpio_platform_data *pdata = dev_get_platdata(dev); pdata 174 drivers/w1/masters/w1-gpio.c if (pdata->enable_external_pullup) pdata 175 drivers/w1/masters/w1-gpio.c pdata->enable_external_pullup(0); pdata 182 drivers/w1/masters/w1-gpio.c struct w1_gpio_platform_data *pdata = dev_get_platdata(dev); pdata 184 drivers/w1/masters/w1-gpio.c if (pdata->enable_external_pullup) pdata 185 drivers/w1/masters/w1-gpio.c pdata->enable_external_pullup(1); pdata 237 drivers/watchdog/iTCO_wdt.c struct itco_wdt_platform_data *pdata) pdata 239 drivers/watchdog/iTCO_wdt.c if (pdata->update_no_reboot_bit) { pdata 240 drivers/watchdog/iTCO_wdt.c p->update_no_reboot_bit = pdata->update_no_reboot_bit; pdata 241 drivers/watchdog/iTCO_wdt.c p->no_reboot_priv = pdata->no_reboot_priv; pdata 444 drivers/watchdog/iTCO_wdt.c struct itco_wdt_platform_data *pdata = dev_get_platdata(dev); pdata 449 drivers/watchdog/iTCO_wdt.c if (!pdata) pdata 462 drivers/watchdog/iTCO_wdt.c p->iTCO_version = pdata->version; pdata 481 drivers/watchdog/iTCO_wdt.c iTCO_wdt_no_reboot_bit_setup(p, pdata); pdata 488 drivers/watchdog/iTCO_wdt.c !pdata->update_no_reboot_bit) { pdata 526 drivers/watchdog/iTCO_wdt.c pdata->name, pdata->version, (u64)TCOBASE(p)); pdata 112 drivers/watchdog/intel-mid_wdt.c struct intel_mid_wdt_pdata *pdata = dev->platform_data; pdata 115 drivers/watchdog/intel-mid_wdt.c if (!pdata) { pdata 120 drivers/watchdog/intel-mid_wdt.c if (pdata->probe) { pdata 121 drivers/watchdog/intel-mid_wdt.c ret = pdata->probe(pdev); pdata 139 drivers/watchdog/intel-mid_wdt.c ret = devm_request_irq(dev, pdata->irq, mid_wdt_irq, pdata 143 drivers/watchdog/intel-mid_wdt.c dev_err(dev, "error requesting warning irq %d\n", pdata->irq); pdata 45 drivers/watchdog/mlx_wdt.c struct mlxreg_core_platform_data *pdata; pdata 67 drivers/watchdog/mlx_wdt.c reg_data = &wdt->pdata->data[wdt->reset_idx]; pdata 81 drivers/watchdog/mlx_wdt.c struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->action_idx]; pdata 90 drivers/watchdog/mlx_wdt.c struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->action_idx]; pdata 99 drivers/watchdog/mlx_wdt.c struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->ping_idx]; pdata 110 drivers/watchdog/mlx_wdt.c struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->timeout_idx]; pdata 149 drivers/watchdog/mlx_wdt.c struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->tleft_idx]; pdata 188 drivers/watchdog/mlx_wdt.c struct mlxreg_core_platform_data *pdata) pdata 190 drivers/watchdog/mlx_wdt.c struct mlxreg_core_data *data = pdata->data; pdata 194 drivers/watchdog/mlx_wdt.c for (i = 0; i < pdata->counter; i++, data++) { pdata 207 drivers/watchdog/mlx_wdt.c wdt->pdata = pdata; pdata 208 drivers/watchdog/mlx_wdt.c if (strnstr(pdata->identity, mlxreg_wdt_main_info.identity, pdata 214 drivers/watchdog/mlx_wdt.c wdt->wdt_type = pdata->version; pdata 226 drivers/watchdog/mlx_wdt.c struct mlxreg_core_platform_data *pdata) pdata 230 drivers/watchdog/mlx_wdt.c timeout = pdata->data[wdt->timeout_idx].health_cntr; pdata 237 drivers/watchdog/mlx_wdt.c struct mlxreg_core_platform_data *pdata; pdata 241 drivers/watchdog/mlx_wdt.c pdata = dev_get_platdata(dev); pdata 242 drivers/watchdog/mlx_wdt.c if (!pdata) { pdata 251 drivers/watchdog/mlx_wdt.c wdt->regmap = pdata->regmap; pdata 252 drivers/watchdog/mlx_wdt.c mlxreg_wdt_config(wdt, pdata); pdata 254 drivers/watchdog/mlx_wdt.c if ((pdata->features & MLXREG_CORE_WD_FEATURE_NOWAYOUT)) pdata 259 drivers/watchdog/mlx_wdt.c rc = mlxreg_wdt_init_timeout(wdt, pdata); pdata 263 drivers/watchdog/mlx_wdt.c if ((pdata->features & MLXREG_CORE_WD_FEATURE_START_AT_BOOT)) { pdata 256 drivers/watchdog/mv64x60_wdt.c struct mv64x60_wdt_pdata *pdata = dev_get_platdata(&dev->dev); pdata 261 drivers/watchdog/mv64x60_wdt.c if (pdata) { pdata 262 drivers/watchdog/mv64x60_wdt.c timeout = pdata->timeout; pdata 263 drivers/watchdog/mv64x60_wdt.c bus_clk = pdata->bus_clk; pdata 231 drivers/watchdog/omap_wdt.c struct omap_wd_timer_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 265 drivers/watchdog/omap_wdt.c if (pdata && pdata->read_reset_sources) { pdata 266 drivers/watchdog/omap_wdt.c u32 rs = pdata->read_reset_sources(); pdata 217 drivers/watchdog/rdc321x_wdt.c struct rdc321x_wdt_pdata *pdata; pdata 219 drivers/watchdog/rdc321x_wdt.c pdata = dev_get_platdata(&pdev->dev); pdata 220 drivers/watchdog/rdc321x_wdt.c if (!pdata) { pdata 231 drivers/watchdog/rdc321x_wdt.c rdc321x_wdt_device.sb_pdev = pdata->sb_pdev; pdata 30 drivers/watchdog/stmp3xxx_rtc_wdt.c struct stmp3xxx_wdt_pdata *pdata = dev_get_platdata(dev); pdata 32 drivers/watchdog/stmp3xxx_rtc_wdt.c pdata->wdt_set_timeout(dev->parent, wdd->timeout * WDOG_TICK_RATE); pdata 39 drivers/watchdog/stmp3xxx_rtc_wdt.c struct stmp3xxx_wdt_pdata *pdata = dev_get_platdata(dev); pdata 41 drivers/watchdog/stmp3xxx_rtc_wdt.c pdata->wdt_set_timeout(dev->parent, 0); pdata 90 drivers/watchdog/ux500_wdt.c struct ux500_wdt_data *pdata = dev_get_platdata(dev); pdata 92 drivers/watchdog/ux500_wdt.c if (pdata) { pdata 93 drivers/watchdog/ux500_wdt.c if (pdata->timeout > 0) pdata 94 drivers/watchdog/ux500_wdt.c timeout = pdata->timeout; pdata 95 drivers/watchdog/ux500_wdt.c if (pdata->has_28_bits_resolution) pdata 186 drivers/watchdog/wm831x_wdt.c struct wm831x_watchdog_pdata *pdata; pdata 230 drivers/watchdog/wm831x_wdt.c pdata = chip_pdata->watchdog; pdata 232 drivers/watchdog/wm831x_wdt.c pdata = NULL; pdata 234 drivers/watchdog/wm831x_wdt.c if (pdata) { pdata 238 drivers/watchdog/wm831x_wdt.c reg |= pdata->primary << WM831X_WDOG_PRIMACT_SHIFT; pdata 239 drivers/watchdog/wm831x_wdt.c reg |= pdata->secondary << WM831X_WDOG_SECACT_SHIFT; pdata 240 drivers/watchdog/wm831x_wdt.c reg |= pdata->software << WM831X_WDOG_RST_SRC_SHIFT; pdata 242 drivers/watchdog/wm831x_wdt.c if (pdata->update_gpio) { pdata 243 drivers/watchdog/wm831x_wdt.c ret = devm_gpio_request_one(dev, pdata->update_gpio, pdata 253 drivers/watchdog/wm831x_wdt.c driver_data->update_gpio = pdata->update_gpio; pdata 1137 fs/cifs/cifssmb.c OPEN_PSX_REQ *pdata; pdata 1169 fs/cifs/cifssmb.c pdata = (OPEN_PSX_REQ *)(((char *)&pSMB->hdr.Protocol) + offset); pdata 1170 fs/cifs/cifssmb.c pdata->Level = cpu_to_le16(SMB_QUERY_FILE_UNIX_BASIC); pdata 1171 fs/cifs/cifssmb.c pdata->Permissions = cpu_to_le64(mode); pdata 1172 fs/cifs/cifssmb.c pdata->PosixOpenFlags = cpu_to_le32(posix_flags); pdata 1173 fs/cifs/cifssmb.c pdata->OpenFlags = cpu_to_le32(*pOplock); pdata 4006 fs/cifs/cifssmb.c char *pdata; pdata 4010 fs/cifs/cifssmb.c &pdata, &parm_len, pbuflen); pdata 4042 fs/cifs/cifssmb.c *acl_inf = kmemdup(pdata, *pbuflen, GFP_KERNEL); pdata 670 fs/pstore/ram.c struct ramoops_platform_data *pdata) pdata 687 fs/pstore/ram.c pdata->mem_size = resource_size(res); pdata 688 fs/pstore/ram.c pdata->mem_address = res->start; pdata 689 fs/pstore/ram.c pdata->mem_type = of_property_read_bool(of_node, "unbuffered"); pdata 690 fs/pstore/ram.c pdata->dump_oops = !of_property_read_bool(of_node, "no-dump-oops"); pdata 699 fs/pstore/ram.c parse_size("record-size", pdata->record_size); pdata 700 fs/pstore/ram.c parse_size("console-size", pdata->console_size); pdata 701 fs/pstore/ram.c parse_size("ftrace-size", pdata->ftrace_size); pdata 702 fs/pstore/ram.c parse_size("pmsg-size", pdata->pmsg_size); pdata 703 fs/pstore/ram.c parse_size("ecc-size", pdata->ecc_info.ecc_size); pdata 704 fs/pstore/ram.c parse_size("flags", pdata->flags); pdata 721 fs/pstore/ram.c !pdata->console_size && !pdata->ftrace_size && pdata 722 fs/pstore/ram.c !pdata->pmsg_size && !pdata->ecc_info.ecc_size) { pdata 723 fs/pstore/ram.c pdata->console_size = pdata->record_size; pdata 724 fs/pstore/ram.c pdata->pmsg_size = pdata->record_size; pdata 734 fs/pstore/ram.c struct ramoops_platform_data *pdata = dev->platform_data; pdata 750 fs/pstore/ram.c if (dev_of_node(dev) && !pdata) { pdata 751 fs/pstore/ram.c pdata = &pdata_local; pdata 752 fs/pstore/ram.c memset(pdata, 0, sizeof(*pdata)); pdata 754 fs/pstore/ram.c err = ramoops_parse_dt(pdev, pdata); pdata 760 fs/pstore/ram.c if (!pdata) { pdata 765 fs/pstore/ram.c if (!pdata->mem_size || (!pdata->record_size && !pdata->console_size && pdata 766 fs/pstore/ram.c !pdata->ftrace_size && !pdata->pmsg_size)) { pdata 772 fs/pstore/ram.c if (pdata->record_size && !is_power_of_2(pdata->record_size)) pdata 773 fs/pstore/ram.c pdata->record_size = rounddown_pow_of_two(pdata->record_size); pdata 774 fs/pstore/ram.c if (pdata->console_size && !is_power_of_2(pdata->console_size)) pdata 775 fs/pstore/ram.c pdata->console_size = rounddown_pow_of_two(pdata->console_size); pdata 776 fs/pstore/ram.c if (pdata->ftrace_size && !is_power_of_2(pdata->ftrace_size)) pdata 777 fs/pstore/ram.c pdata->ftrace_size = rounddown_pow_of_two(pdata->ftrace_size); pdata 778 fs/pstore/ram.c if (pdata->pmsg_size && !is_power_of_2(pdata->pmsg_size)) pdata 779 fs/pstore/ram.c pdata->pmsg_size = rounddown_pow_of_two(pdata->pmsg_size); pdata 781 fs/pstore/ram.c cxt->size = pdata->mem_size; pdata 782 fs/pstore/ram.c cxt->phys_addr = pdata->mem_address; pdata 783 fs/pstore/ram.c cxt->memtype = pdata->mem_type; pdata 784 fs/pstore/ram.c cxt->record_size = pdata->record_size; pdata 785 fs/pstore/ram.c cxt->console_size = pdata->console_size; pdata 786 fs/pstore/ram.c cxt->ftrace_size = pdata->ftrace_size; pdata 787 fs/pstore/ram.c cxt->pmsg_size = pdata->pmsg_size; pdata 788 fs/pstore/ram.c cxt->dump_oops = pdata->dump_oops; pdata 789 fs/pstore/ram.c cxt->flags = pdata->flags; pdata 790 fs/pstore/ram.c cxt->ecc_info = pdata->ecc_info; pdata 865 fs/pstore/ram.c mem_size = pdata->mem_size; pdata 866 fs/pstore/ram.c mem_address = pdata->mem_address; pdata 867 fs/pstore/ram.c record_size = pdata->record_size; pdata 868 fs/pstore/ram.c dump_oops = pdata->dump_oops; pdata 869 fs/pstore/ram.c ramoops_console_size = pdata->console_size; pdata 870 fs/pstore/ram.c ramoops_pmsg_size = pdata->pmsg_size; pdata 871 fs/pstore/ram.c ramoops_ftrace_size = pdata->ftrace_size; pdata 931 fs/pstore/ram.c struct ramoops_platform_data pdata; pdata 943 fs/pstore/ram.c memset(&pdata, 0, sizeof(pdata)); pdata 944 fs/pstore/ram.c pdata.mem_size = mem_size; pdata 945 fs/pstore/ram.c pdata.mem_address = mem_address; pdata 946 fs/pstore/ram.c pdata.mem_type = mem_type; pdata 947 fs/pstore/ram.c pdata.record_size = record_size; pdata 948 fs/pstore/ram.c pdata.console_size = ramoops_console_size; pdata 949 fs/pstore/ram.c pdata.ftrace_size = ramoops_ftrace_size; pdata 950 fs/pstore/ram.c pdata.pmsg_size = ramoops_pmsg_size; pdata 951 fs/pstore/ram.c pdata.dump_oops = dump_oops; pdata 952 fs/pstore/ram.c pdata.flags = RAMOOPS_FLAG_FTRACE_PER_CPU; pdata 958 fs/pstore/ram.c pdata.ecc_info.ecc_size = ramoops_ecc == 1 ? 16 : ramoops_ecc; pdata 961 fs/pstore/ram.c &pdata, sizeof(pdata)); pdata 141 include/drm/bridge/dw_hdmi.h const struct dw_hdmi_plat_data *pdata, pdata 115 include/linux/amba/bus.h int irq1, int irq2, void *pdata, pdata 119 include/linux/amba/bus.h int irq1, int irq2, void *pdata, pdata 124 include/linux/amba/bus.h int irq2, void *pdata, unsigned int periphid, pdata 129 include/linux/amba/bus.h int irq2, void *pdata, unsigned int periphid, pdata 19 include/linux/atmel-ssc.h struct atmel_ssc_platform_data *pdata; pdata 120 include/linux/coresight.h struct coresight_platform_data *pdata; pdata 158 include/linux/coresight.h struct coresight_platform_data *pdata; pdata 99 include/linux/crc8.h u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc); pdata 988 include/linux/device.h void devm_free_percpu(struct device *dev, void __percpu *pdata); pdata 38 include/linux/dma/dw.h const struct dw_dma_platform_data *pdata; pdata 283 include/linux/iio/common/st_sensors.h struct st_sensors_platform_data *pdata); pdata 93 include/linux/lcd.h void *pdata; pdata 536 include/linux/leds.h int id, const struct gpio_led_platform_data *pdata); pdata 539 include/linux/leds.h int id, const struct gpio_led_platform_data *pdata) pdata 319 include/linux/mfd/88pm80x.h struct pm80x_platform_data *pdata); pdata 131 include/linux/mfd/arizona/core.h struct arizona_pdata pdata; pdata 40 include/linux/mfd/htc-pasic3.h struct pasic3_leds_machinfo *pdata; pdata 102 include/linux/mfd/lp3943.h struct lp3943_platform_data *pdata; pdata 321 include/linux/mfd/lp8788.h struct lp8788_platform_data *pdata; pdata 181 include/linux/mfd/madera/core.h struct madera_pdata pdata; pdata 370 include/linux/mfd/max8997-private.h struct max8997_platform_data *pdata; pdata 141 include/linux/mfd/max8998-private.h struct max8998_platform_data *pdata; pdata 122 include/linux/mfd/palmas.h struct palmas_pmic_platform_data *pdata, pdata 127 include/linux/mfd/palmas.h struct palmas_pmic_platform_data *pdata, pdata 136 include/linux/mfd/pcf50633/core.h struct pcf50633_platform_data *pdata; pdata 65 include/linux/mfd/samsung/core.h struct sec_platform_data *pdata; pdata 139 include/linux/mfd/stmpe.h struct stmpe_platform_data *pdata; pdata 122 include/linux/mfd/tc3589x.h struct tc3589x_platform_data *pdata; pdata 90 include/linux/mfd/tps6105x.h struct tps6105x_platform_data *pdata; pdata 265 include/linux/mfd/tps65217.h struct tps65217_board *pdata; pdata 259 include/linux/mfd/wl1273-core.h struct wl1273_fm_platform_data *pdata; pdata 367 include/linux/mfd/wm831x/core.h struct wm831x_pdata pdata; pdata 640 include/linux/mfd/wm8350/core.h struct wm8350_platform_data *pdata); pdata 685 include/linux/mfd/wm8350/core.h struct wm8350_platform_data *pdata); pdata 753 include/linux/mfd/wm8350/pmic.h struct wm8350_led_platform_data *pdata); pdata 54 include/linux/mfd/wm8994/core.h struct wm8994_pdata pdata; pdata 32 include/linux/platform_data/asoc-ti-mcbsp.h void omap3_mcbsp_init_pdata_callback(struct omap_mcbsp_platform_data *pdata); pdata 25 include/linux/platform_data/ata-samsung_cf.h extern void s3c_ide_set_platdata(struct s3c_ide_platdata *pdata); pdata 46 include/linux/platform_data/cyttsp4.h int (*xres)(struct cyttsp4_core_platform_data *pdata, pdata 48 include/linux/platform_data/cyttsp4.h int (*init)(struct cyttsp4_core_platform_data *pdata, pdata 50 include/linux/platform_data/cyttsp4.h int (*power)(struct cyttsp4_core_platform_data *pdata, pdata 52 include/linux/platform_data/cyttsp4.h int (*irq_stat)(struct cyttsp4_core_platform_data *pdata, pdata 21 include/linux/platform_data/lcd-mipid.h void (*shutdown)(struct mipid_platform_data *pdata); pdata 22 include/linux/platform_data/lcd-mipid.h void (*set_bklight_level)(struct mipid_platform_data *pdata, pdata 24 include/linux/platform_data/lcd-mipid.h int (*get_bklight_level)(struct mipid_platform_data *pdata); pdata 25 include/linux/platform_data/lcd-mipid.h int (*get_bklight_max)(struct mipid_platform_data *pdata); pdata 47 include/linux/platform_data/mmc-s3cmci.h extern void s3c24xx_mci_set_platdata(struct s3c24xx_mci_pdata *pdata); pdata 19 include/linux/platform_data/net-cw1200.h int (*power_ctrl)(const struct cw1200_platform_data_spi *pdata, pdata 21 include/linux/platform_data/net-cw1200.h int (*clk_ctrl)(const struct cw1200_platform_data_spi *pdata, pdata 36 include/linux/platform_data/net-cw1200.h int (*power_ctrl)(const struct cw1200_platform_data_sdio *pdata, pdata 38 include/linux/platform_data/net-cw1200.h int (*clk_ctrl)(const struct cw1200_platform_data_sdio *pdata, pdata 79 include/linux/platform_data/net-cw1200.h void __init cw1200_sdio_set_platform_data(struct cw1200_platform_data_sdio *pdata); pdata 214 include/linux/powercap.h void *pdata) pdata 217 include/linux/powercap.h power_zone->private_data = pdata; pdata 269 include/linux/rmi.h struct rmi_device_platform_data pdata; pdata 54 include/linux/spi/ads7846.h int (*filter_init) (const struct ads7846_platform_data *pdata, pdata 21 include/linux/via_i2c.h int viafb_i2c_readbyte(u8 adap, u8 slave_addr, u8 index, u8 *pdata); pdata 871 include/media/v4l2-subdev.h struct v4l2_subdev_platform_data *pdata; pdata 2535 include/rdma/ib_verbs.h int (*iw_reject)(struct iw_cm_id *cm_id, const void *pdata, pdata 98 include/sound/soc-acpi.h void *pdata; pdata 31 include/video/atmel_lcdc.h void (*atmel_lcdfb_power_control)(struct atmel_lcdfb_pdata *pdata, int on); pdata 2533 kernel/trace/trace_events.c void **pdata; pdata 2535 kernel/trace/trace_events.c pdata = ftrace_func_mapper_find_ip(mapper, ip); pdata 2536 kernel/trace/trace_events.c if (!pdata || !*pdata) pdata 2539 kernel/trace/trace_events.c edata = *pdata; pdata 2550 kernel/trace/trace_events.c void **pdata; pdata 2552 kernel/trace/trace_events.c pdata = ftrace_func_mapper_find_ip(mapper, ip); pdata 2553 kernel/trace/trace_events.c if (!pdata || !*pdata) pdata 2556 kernel/trace/trace_events.c edata = *pdata; pdata 2577 kernel/trace/trace_events.c void **pdata; pdata 2579 kernel/trace/trace_events.c pdata = ftrace_func_mapper_find_ip(mapper, ip); pdata 2581 kernel/trace/trace_events.c if (WARN_ON_ONCE(!pdata || !*pdata)) pdata 2584 kernel/trace/trace_events.c edata = *pdata; pdata 202 lib/bch.c const uint32_t *pdata, *p0, *p1, *p2, *p3; pdata 224 lib/bch.c pdata = (uint32_t *)data; pdata 243 lib/bch.c w = r[0]^cpu_to_be32(*pdata++); pdata 74 lib/crc8.c u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc) pdata 78 lib/crc8.c crc = table[(crc ^ *pdata++) & 0xff]; pdata 214 net/9p/trans_virtio.c struct page **pdata, int nr_pages, size_t offs, int count) pdata 232 net/9p/trans_virtio.c sg_set_page(&sg[index++], pdata[i++], s, data_off); pdata 826 net/dsa/dsa2.c struct dsa_chip_data *pdata = ds->dev->platform_data; pdata 832 net/dsa/dsa2.c else if (pdata) pdata 833 net/dsa/dsa2.c err = dsa_switch_parse(ds, pdata); pdata 109 net/ipv4/netfilter/nf_nat_snmp_basic_main.c __be32 *pdata; pdata 113 net/ipv4/netfilter/nf_nat_snmp_basic_main.c pdata = (__be32 *)data; pdata 114 net/ipv4/netfilter/nf_nat_snmp_basic_main.c if (*pdata == ctx->from) { pdata 120 net/ipv4/netfilter/nf_nat_snmp_basic_main.c *pdata = ctx->to; pdata 822 net/ncsi/ncsi-rsp.c unsigned char *pdata; pdata 857 net/ncsi/ncsi-rsp.c pdata = (unsigned char *)rsp + 48; pdata 862 net/ncsi/ncsi-rsp.c for (i = 0; i < rsp->mac_cnt; i++, pdata += 6) { pdata 868 net/ncsi/ncsi-rsp.c memcpy(&ncmf->addrs[i * ETH_ALEN], pdata, ETH_ALEN); pdata 877 net/ncsi/ncsi-rsp.c for (i = 0; i < rsp->vlan_cnt; i++, pdata += 2) { pdata 883 net/ncsi/ncsi-rsp.c ncvf->vids[i] = ntohs(*(__be16 *)pdata); pdata 321 sound/arm/pxa2xx-ac97-lib.c pxa2xx_audio_ops_t *pdata = dev->dev.platform_data; pdata 323 sound/arm/pxa2xx-ac97-lib.c if (pdata) { pdata 324 sound/arm/pxa2xx-ac97-lib.c switch (pdata->reset_gpio) { pdata 327 sound/arm/pxa2xx-ac97-lib.c reset_gpio = pdata->reset_gpio; pdata 336 sound/arm/pxa2xx-ac97-lib.c pdata->reset_gpio); pdata 338 sound/arm/pxa2xx-ac97-lib.c } else if (!pdata && dev->dev.of_node) { pdata 339 sound/arm/pxa2xx-ac97-lib.c pdata = devm_kzalloc(&dev->dev, sizeof(*pdata), GFP_KERNEL); pdata 340 sound/arm/pxa2xx-ac97-lib.c if (!pdata) pdata 342 sound/arm/pxa2xx-ac97-lib.c pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, pdata 344 sound/arm/pxa2xx-ac97-lib.c if (pdata->reset_gpio == -ENOENT) pdata 345 sound/arm/pxa2xx-ac97-lib.c pdata->reset_gpio = -1; pdata 346 sound/arm/pxa2xx-ac97-lib.c else if (pdata->reset_gpio < 0) pdata 347 sound/arm/pxa2xx-ac97-lib.c return pdata->reset_gpio; pdata 348 sound/arm/pxa2xx-ac97-lib.c reset_gpio = pdata->reset_gpio; pdata 226 sound/arm/pxa2xx-ac97.c pxa2xx_audio_ops_t *pdata = dev->dev.platform_data; pdata 262 sound/arm/pxa2xx-ac97.c if (pdata && pdata->codec_pdata[0]) pdata 263 sound/arm/pxa2xx-ac97.c snd_ac97_dev_add_pdata(ac97_bus->codec[0], pdata->codec_pdata[0]); pdata 183 sound/pci/asihpi/hpi6000.c static void hpi_write_block(struct dsp_obj *pdo, u32 address, u32 *pdata, pdata 186 sound/pci/asihpi/hpi6000.c static void hpi_read_block(struct dsp_obj *pdo, u32 address, u32 *pdata, pdata 1169 sound/pci/asihpi/hpi6000.c static void hpi_write_block(struct dsp_obj *pdo, u32 address, u32 *pdata, pdata 1180 sound/pci/asihpi/hpi6000.c iowrite32_rep(pdo->prHPI_data_auto_inc, pdata, length16); pdata 1184 sound/pci/asihpi/hpi6000.c iowrite32(*(pdata + length - 1), pdo->prHPI_data); pdata 1189 sound/pci/asihpi/hpi6000.c static void hpi_read_block(struct dsp_obj *pdo, u32 address, u32 *pdata, pdata 1200 sound/pci/asihpi/hpi6000.c ioread32_rep(pdo->prHPI_data_auto_inc, pdata, length16); pdata 1204 sound/pci/asihpi/hpi6000.c *(pdata + length - 1) = ioread32(pdo->prHPI_data); pdata 1217 sound/pci/asihpi/hpi6000.c u32 *pdata = source; pdata 1227 sound/pci/asihpi/hpi6000.c hpi_write_block(pdo, local_hpi_address, pdata, pdata 1234 sound/pci/asihpi/hpi6000.c pdata += xfer_size; pdata 1255 sound/pci/asihpi/hpi6000.c u32 *pdata = dest; pdata 1266 sound/pci/asihpi/hpi6000.c hpi_read_block(pdo, local_hpi_address, pdata, pdata 1273 sound/pci/asihpi/hpi6000.c pdata += xfer_size; pdata 47 sound/pci/asihpi/hpidebug.c void hpi_debug_data(u16 *pdata, u32 len) pdata 60 sound/pci/asihpi/hpidebug.c printk(KERN_DEBUG "%p:", (pdata + i)); pdata 63 sound/pci/asihpi/hpidebug.c printk(KERN_CONT "%s%04x", k == 0 ? "" : " ", pdata[i]); pdata 61 sound/pci/asihpi/hpidebug.h void hpi_debug_data(u16 *pdata, u32 len); pdata 63 sound/pci/asihpi/hpidebug.h #define HPI_DEBUG_DATA(pdata, len) \ pdata 66 sound/pci/asihpi/hpidebug.h hpi_debug_data(pdata, len); \ pdata 50 sound/sh/sh_dac_audio.c struct dac_audio_pdata *pdata; pdata 111 sound/sh/sh_dac_audio.c chip->pdata->start(chip->pdata); pdata 123 sound/sh/sh_dac_audio.c chip->pdata->stop(chip->pdata); pdata 146 sound/sh/sh_dac_audio.c memset(chip->data_buffer, 0, chip->pdata->buffer_size); pdata 309 sound/sh/sh_dac_audio.c sh_dac_output(*chip->buffer_begin, chip->pdata->channel); pdata 361 sound/sh/sh_dac_audio.c chip->pdata = devptr->dev.platform_data; pdata 363 sound/sh/sh_dac_audio.c chip->data_buffer = kmalloc(chip->pdata->buffer_size, GFP_KERNEL); pdata 1242 sound/soc/amd/acp-pcm-dma.c const u32 *pdata = pdev->dev.platform_data; pdata 1244 sound/soc/amd/acp-pcm-dma.c if (!pdata) { pdata 1269 sound/soc/amd/acp-pcm-dma.c audio_drv_data->asic_type = *pdata; pdata 34 sound/soc/atmel/atmel-classd.c const struct atmel_classd_pdata *pdata; pdata 50 sound/soc/atmel/atmel-classd.c struct atmel_classd_pdata *pdata; pdata 59 sound/soc/atmel/atmel-classd.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 60 sound/soc/atmel/atmel-classd.c if (!pdata) pdata 65 sound/soc/atmel/atmel-classd.c pdata->pwm_type = CLASSD_MR_PWMTYP_DIFF; pdata 67 sound/soc/atmel/atmel-classd.c pdata->pwm_type = CLASSD_MR_PWMTYP_SINGLE; pdata 70 sound/soc/atmel/atmel-classd.c "atmel,non-overlap-time", &pdata->non_overlap_time); pdata 72 sound/soc/atmel/atmel-classd.c pdata->non_overlap_enable = false; pdata 74 sound/soc/atmel/atmel-classd.c pdata->non_overlap_enable = true; pdata 76 sound/soc/atmel/atmel-classd.c ret = of_property_read_string(np, "atmel,model", &pdata->card_name); pdata 78 sound/soc/atmel/atmel-classd.c pdata->card_name = "CLASSD"; pdata 80 sound/soc/atmel/atmel-classd.c return pdata; pdata 252 sound/soc/atmel/atmel-classd.c const struct atmel_classd_pdata *pdata = dd->pdata; pdata 256 sound/soc/atmel/atmel-classd.c val = pdata->pwm_type << CLASSD_MR_PWMTYP_SHIFT; pdata 259 sound/soc/atmel/atmel-classd.c if (pdata->non_overlap_enable) { pdata 264 sound/soc/atmel/atmel-classd.c switch (pdata->non_overlap_time) { pdata 286 sound/soc/atmel/atmel-classd.c pdata->non_overlap_time); pdata 295 sound/soc/atmel/atmel-classd.c pwm_type[pdata->pwm_type], pdata 296 sound/soc/atmel/atmel-classd.c pdata->non_overlap_enable?"enabled":"disabled"); pdata 527 sound/soc/atmel/atmel-classd.c card->name = dd->pdata->card_name; pdata 556 sound/soc/atmel/atmel-classd.c const struct atmel_classd_pdata *pdata; pdata 560 sound/soc/atmel/atmel-classd.c pdata = dev_get_platdata(dev); pdata 561 sound/soc/atmel/atmel-classd.c if (!pdata) { pdata 562 sound/soc/atmel/atmel-classd.c pdata = atmel_classd_dt_init(dev); pdata 563 sound/soc/atmel/atmel-classd.c if (IS_ERR(pdata)) pdata 564 sound/soc/atmel/atmel-classd.c return PTR_ERR(pdata); pdata 571 sound/soc/atmel/atmel-classd.c dd->pdata = pdata; pdata 35 sound/soc/atmel/atmel-pdmic.c const struct atmel_pdmic_pdata *pdata; pdata 53 sound/soc/atmel/atmel-pdmic.c struct atmel_pdmic_pdata *pdata; pdata 60 sound/soc/atmel/atmel-pdmic.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 61 sound/soc/atmel/atmel-pdmic.c if (!pdata) pdata 64 sound/soc/atmel/atmel-pdmic.c if (of_property_read_string(np, "atmel,model", &pdata->card_name)) pdata 65 sound/soc/atmel/atmel-pdmic.c pdata->card_name = "PDMIC"; pdata 68 sound/soc/atmel/atmel-pdmic.c &pdata->mic_min_freq)) { pdata 74 sound/soc/atmel/atmel-pdmic.c &pdata->mic_max_freq)) { pdata 79 sound/soc/atmel/atmel-pdmic.c if (pdata->mic_max_freq < pdata->mic_min_freq) { pdata 85 sound/soc/atmel/atmel-pdmic.c if (of_property_read_s32(np, "atmel,mic-offset", &pdata->mic_offset)) pdata 86 sound/soc/atmel/atmel-pdmic.c pdata->mic_offset = 0; pdata 88 sound/soc/atmel/atmel-pdmic.c if (pdata->mic_offset > PDMIC_OFFSET_MAX_VAL) { pdata 91 sound/soc/atmel/atmel-pdmic.c pdata->mic_offset, PDMIC_OFFSET_MAX_VAL); pdata 92 sound/soc/atmel/atmel-pdmic.c pdata->mic_offset = PDMIC_OFFSET_MAX_VAL; pdata 93 sound/soc/atmel/atmel-pdmic.c } else if (pdata->mic_offset < PDMIC_OFFSET_MIN_VAL) { pdata 96 sound/soc/atmel/atmel-pdmic.c pdata->mic_offset, PDMIC_OFFSET_MIN_VAL); pdata 97 sound/soc/atmel/atmel-pdmic.c pdata->mic_offset = PDMIC_OFFSET_MIN_VAL; pdata 100 sound/soc/atmel/atmel-pdmic.c return pdata; pdata 353 sound/soc/atmel/atmel-pdmic.c (u32)(dd->pdata->mic_offset << PDMIC_DSPR1_OFFSET_SHIFT)); pdata 538 sound/soc/atmel/atmel-pdmic.c card->name = dd->pdata->card_name; pdata 547 sound/soc/atmel/atmel-pdmic.c u32 mic_min_freq = dd->pdata->mic_min_freq; pdata 548 sound/soc/atmel/atmel-pdmic.c u32 mic_max_freq = dd->pdata->mic_max_freq; pdata 598 sound/soc/atmel/atmel-pdmic.c const struct atmel_pdmic_pdata *pdata; pdata 603 sound/soc/atmel/atmel-pdmic.c pdata = atmel_pdmic_dt_init(dev); pdata 604 sound/soc/atmel/atmel-pdmic.c if (IS_ERR(pdata)) pdata 605 sound/soc/atmel/atmel-pdmic.c return PTR_ERR(pdata); pdata 611 sound/soc/atmel/atmel-pdmic.c dd->pdata = pdata; pdata 657 sound/soc/atmel/atmel_ssc_dai.c if (fslen_ext && !ssc->pdata->has_fslen_ext) { pdata 668 sound/soc/atmel/atmel_ssc_dai.c if (!ssc_p->ssc->pdata->use_dma) { pdata 877 sound/soc/atmel/atmel_ssc_dai.c if (ssc->pdata->use_dma) pdata 1353 sound/soc/codecs/adau1373.c struct adau1373_platform_data *pdata = component->dev->platform_data; pdata 1358 sound/soc/codecs/adau1373.c if (pdata) { pdata 1359 sound/soc/codecs/adau1373.c if (pdata->num_drc > ARRAY_SIZE(pdata->drc_setting)) pdata 1362 sound/soc/codecs/adau1373.c if (!adau1373_valid_micbias(pdata->micbias1) || pdata 1363 sound/soc/codecs/adau1373.c !adau1373_valid_micbias(pdata->micbias2)) pdata 1366 sound/soc/codecs/adau1373.c for (i = 0; i < pdata->num_drc; ++i) { pdata 1368 sound/soc/codecs/adau1373.c pdata->drc_setting[i]); pdata 1372 sound/soc/codecs/adau1373.c pdata->num_drc); pdata 1376 sound/soc/codecs/adau1373.c if (pdata->input_differential[i]) pdata 1382 sound/soc/codecs/adau1373.c if (pdata->lineout_differential) pdata 1384 sound/soc/codecs/adau1373.c if (pdata->lineout_ground_sense) pdata 1388 sound/soc/codecs/adau1373.c lineout_differential = pdata->lineout_differential; pdata 1391 sound/soc/codecs/adau1373.c (pdata->micbias1 << ADAU1373_EP_CTRL_MICBIAS1_OFFSET) | pdata 1392 sound/soc/codecs/adau1373.c (pdata->micbias2 << ADAU1373_EP_CTRL_MICBIAS2_OFFSET)); pdata 478 sound/soc/codecs/adau1761.c struct adau1761_platform_data *pdata = component->dev->platform_data; pdata 480 sound/soc/codecs/adau1761.c if (pdata) pdata 481 sound/soc/codecs/adau1761.c return pdata->lineout_mode; pdata 489 sound/soc/codecs/adau1761.c struct adau1761_platform_data *pdata = component->dev->platform_data; pdata 495 sound/soc/codecs/adau1761.c if (pdata) pdata 496 sound/soc/codecs/adau1761.c mode = pdata->digmic_jackdetect_pin_mode; pdata 502 sound/soc/codecs/adau1761.c switch (pdata->jackdetect_debounce_time) { pdata 507 sound/soc/codecs/adau1761.c val |= pdata->jackdetect_debounce_time << 6; pdata 512 sound/soc/codecs/adau1761.c if (pdata->jackdetect_active_low) pdata 553 sound/soc/codecs/adau1761.c struct adau1761_platform_data *pdata = component->dev->platform_data; pdata 557 sound/soc/codecs/adau1761.c if (pdata) pdata 558 sound/soc/codecs/adau1761.c mode = pdata->headphone_mode; pdata 646 sound/soc/codecs/adau1761.c struct adau1761_platform_data *pdata = component->dev->platform_data; pdata 654 sound/soc/codecs/adau1761.c if (pdata && pdata->input_differential) { pdata 385 sound/soc/codecs/adau1781.c struct adau1781_platform_data *pdata = dev_get_platdata(component->dev); pdata 393 sound/soc/codecs/adau1781.c if (pdata) { pdata 395 sound/soc/codecs/adau1781.c pdata->left_input_differential); pdata 399 sound/soc/codecs/adau1781.c pdata->right_input_differential); pdata 404 sound/soc/codecs/adau1781.c if (pdata && pdata->use_dmic) { pdata 884 sound/soc/codecs/adau1977.c struct adau1977_platform_data *pdata = adau1977->dev->platform_data; pdata 887 sound/soc/codecs/adau1977.c if (pdata) pdata 888 sound/soc/codecs/adau1977.c micbias = pdata->micbias; pdata 419 sound/soc/codecs/ak4641.c struct ak4641_platform_data *pdata = component->dev->platform_data; pdata 433 sound/soc/codecs/ak4641.c if (pdata && gpio_is_valid(pdata->gpio_power)) pdata 434 sound/soc/codecs/ak4641.c gpio_set_value(pdata->gpio_power, 1); pdata 436 sound/soc/codecs/ak4641.c if (pdata && gpio_is_valid(pdata->gpio_npdn)) pdata 437 sound/soc/codecs/ak4641.c gpio_set_value(pdata->gpio_npdn, 1); pdata 452 sound/soc/codecs/ak4641.c if (pdata && gpio_is_valid(pdata->gpio_npdn)) pdata 453 sound/soc/codecs/ak4641.c gpio_set_value(pdata->gpio_npdn, 0); pdata 454 sound/soc/codecs/ak4641.c if (pdata && gpio_is_valid(pdata->gpio_power)) pdata 455 sound/soc/codecs/ak4641.c gpio_set_value(pdata->gpio_power, 0); pdata 552 sound/soc/codecs/ak4641.c struct ak4641_platform_data *pdata = i2c->dev.platform_data; pdata 565 sound/soc/codecs/ak4641.c if (pdata) { pdata 566 sound/soc/codecs/ak4641.c if (gpio_is_valid(pdata->gpio_power)) { pdata 567 sound/soc/codecs/ak4641.c ret = gpio_request_one(pdata->gpio_power, pdata 572 sound/soc/codecs/ak4641.c if (gpio_is_valid(pdata->gpio_npdn)) { pdata 573 sound/soc/codecs/ak4641.c ret = gpio_request_one(pdata->gpio_npdn, pdata 579 sound/soc/codecs/ak4641.c gpio_set_value(pdata->gpio_npdn, 1); pdata 594 sound/soc/codecs/ak4641.c if (pdata) { pdata 595 sound/soc/codecs/ak4641.c if (gpio_is_valid(pdata->gpio_power)) pdata 596 sound/soc/codecs/ak4641.c gpio_set_value(pdata->gpio_power, 0); pdata 597 sound/soc/codecs/ak4641.c if (gpio_is_valid(pdata->gpio_npdn)) pdata 598 sound/soc/codecs/ak4641.c gpio_free(pdata->gpio_npdn); pdata 601 sound/soc/codecs/ak4641.c if (pdata && gpio_is_valid(pdata->gpio_power)) pdata 602 sound/soc/codecs/ak4641.c gpio_free(pdata->gpio_power); pdata 609 sound/soc/codecs/ak4641.c struct ak4641_platform_data *pdata = i2c->dev.platform_data; pdata 611 sound/soc/codecs/ak4641.c if (pdata) { pdata 612 sound/soc/codecs/ak4641.c if (gpio_is_valid(pdata->gpio_power)) { pdata 613 sound/soc/codecs/ak4641.c gpio_set_value(pdata->gpio_power, 0); pdata 614 sound/soc/codecs/ak4641.c gpio_free(pdata->gpio_power); pdata 616 sound/soc/codecs/ak4641.c if (gpio_is_valid(pdata->gpio_npdn)) pdata 617 sound/soc/codecs/ak4641.c gpio_free(pdata->gpio_npdn); pdata 979 sound/soc/codecs/alc5623.c struct alc5623_platform_data *pdata; pdata 1021 sound/soc/codecs/alc5623.c pdata = client->dev.platform_data; pdata 1022 sound/soc/codecs/alc5623.c if (pdata) { pdata 1023 sound/soc/codecs/alc5623.c alc5623->add_ctrl = pdata->add_ctrl; pdata 1024 sound/soc/codecs/alc5623.c alc5623->jack_det_ctrl = pdata->jack_det_ctrl; pdata 247 sound/soc/codecs/arizona.c if (arizona->pdata.out_mono[i]) pdata 274 sound/soc/codecs/arizona.c for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) { pdata 275 sound/soc/codecs/arizona.c switch (arizona->pdata.gpio_defaults[i] & ARIZONA_GPN_FN_MASK) { pdata 295 sound/soc/codecs/arizona.c struct arizona_pdata *pdata = &arizona->pdata; pdata 303 sound/soc/codecs/arizona.c if (pdata->out_mono[i]) pdata 314 sound/soc/codecs/arizona.c if (pdata->spk_mute[i]) pdata 319 sound/soc/codecs/arizona.c pdata->spk_mute[i]); pdata 321 sound/soc/codecs/arizona.c if (pdata->spk_fmt[i]) pdata 325 sound/soc/codecs/arizona.c pdata->spk_fmt[i]); pdata 330 sound/soc/codecs/arizona.c val = pdata->dmic_ref[i] << ARIZONA_IN1_DMIC_SUP_SHIFT; pdata 331 sound/soc/codecs/arizona.c if (pdata->inmode[i] & ARIZONA_INMODE_DMIC) pdata 340 sound/soc/codecs/arizona.c (pdata->inmode[i] & ARIZONA_INMODE_SE) pdata 346 sound/soc/codecs/arizona.c (pdata->inmode[i] & ARIZONA_INMODE_SE) pdata 353 sound/soc/codecs/arizona.c if (pdata->inmode[i] & ARIZONA_INMODE_SE) pdata 375 sound/soc/codecs/arizona.c for (i = 0; i < ARRAY_SIZE(arizona->pdata.out_vol_limit); ++i) { pdata 376 sound/soc/codecs/arizona.c if (arizona->pdata.out_vol_limit[i]) pdata 380 sound/soc/codecs/arizona.c arizona->pdata.out_vol_limit[i]); pdata 1785 sound/soc/codecs/arizona.c int chan_limit = arizona->pdata.max_channels_clocked[dai->id - 1]; pdata 2786 sound/soc/codecs/arizona.c struct arizona_pdata *pdata = &arizona->pdata; pdata 2797 sound/soc/codecs/arizona.c if (count == ARRAY_SIZE(pdata->inmode)) pdata 2800 sound/soc/codecs/arizona.c pdata->inmode[count] = val; pdata 2806 sound/soc/codecs/arizona.c if (count == ARRAY_SIZE(pdata->dmic_ref)) pdata 2809 sound/soc/codecs/arizona.c pdata->dmic_ref[count] = val; pdata 2815 sound/soc/codecs/arizona.c if (count == ARRAY_SIZE(pdata->out_mono)) pdata 2818 sound/soc/codecs/arizona.c pdata->out_mono[count] = !!val; pdata 2824 sound/soc/codecs/arizona.c if (count == ARRAY_SIZE(pdata->max_channels_clocked)) pdata 2827 sound/soc/codecs/arizona.c pdata->max_channels_clocked[count] = val; pdata 2833 sound/soc/codecs/arizona.c if (count == ARRAY_SIZE(pdata->out_vol_limit)) pdata 2836 sound/soc/codecs/arizona.c pdata->out_vol_limit[count] = val; pdata 2844 sound/soc/codecs/arizona.c for (count = 0; count < ARRAY_SIZE(pdata->spk_fmt); ++count) pdata 2845 sound/soc/codecs/arizona.c pdata->spk_fmt[count] = pdm_val[count]; pdata 2851 sound/soc/codecs/arizona.c for (count = 0; count < ARRAY_SIZE(pdata->spk_mute); ++count) pdata 2852 sound/soc/codecs/arizona.c pdata->spk_mute[count] = pdm_val[count]; pdata 44 sound/soc/codecs/cs35l32.c struct cs35l32_platform_data pdata; pdata 267 sound/soc/codecs/cs35l32.c struct cs35l32_platform_data *pdata) pdata 273 sound/soc/codecs/cs35l32.c pdata->sdout_share = val; pdata 283 sound/soc/codecs/cs35l32.c pdata->boost_mng = val; pdata 289 sound/soc/codecs/cs35l32.c pdata->boost_mng = CS35L32_BOOST_MGR_BYPASS; pdata 299 sound/soc/codecs/cs35l32.c pdata->sdout_datacfg = val; pdata 305 sound/soc/codecs/cs35l32.c pdata->sdout_datacfg = CS35L32_DATA_CFG_LR; pdata 315 sound/soc/codecs/cs35l32.c pdata->batt_thresh = val; pdata 321 sound/soc/codecs/cs35l32.c pdata->batt_thresh = CS35L32_BATT_THRESH_3_3V; pdata 333 sound/soc/codecs/cs35l32.c pdata->batt_recov = val; pdata 339 sound/soc/codecs/cs35l32.c pdata->batt_recov = CS35L32_BATT_RECOV_3_4V; pdata 349 sound/soc/codecs/cs35l32.c struct cs35l32_platform_data *pdata = pdata 368 sound/soc/codecs/cs35l32.c if (pdata) { pdata 369 sound/soc/codecs/cs35l32.c cs35l32->pdata = *pdata; pdata 371 sound/soc/codecs/cs35l32.c pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), pdata 373 sound/soc/codecs/cs35l32.c if (!pdata) pdata 378 sound/soc/codecs/cs35l32.c &cs35l32->pdata); pdata 447 sound/soc/codecs/cs35l32.c if (cs35l32->pdata.boost_mng) pdata 450 sound/soc/codecs/cs35l32.c cs35l32->pdata.boost_mng); pdata 453 sound/soc/codecs/cs35l32.c if (cs35l32->pdata.sdout_share) pdata 456 sound/soc/codecs/cs35l32.c cs35l32->pdata.sdout_share << 3); pdata 459 sound/soc/codecs/cs35l32.c if (cs35l32->pdata.sdout_datacfg) pdata 462 sound/soc/codecs/cs35l32.c cs35l32->pdata.sdout_datacfg << 4); pdata 465 sound/soc/codecs/cs35l32.c if (cs35l32->pdata.batt_recov) pdata 468 sound/soc/codecs/cs35l32.c cs35l32->pdata.batt_recov << 1); pdata 471 sound/soc/codecs/cs35l32.c if (cs35l32->pdata.batt_thresh) pdata 474 sound/soc/codecs/cs35l32.c cs35l32->pdata.batt_thresh << 4); pdata 42 sound/soc/codecs/cs35l33.c struct cs35l33_pdata pdata; pdata 698 sound/soc/codecs/cs35l33.c struct cs35l33_pdata *pdata) pdata 700 sound/soc/codecs/cs35l33.c struct cs35l33_hg *hg_config = &pdata->hg_config; pdata 792 sound/soc/codecs/cs35l33.c CS35L33_BST_CTL_MASK, cs35l33->pdata.boost_ctl); pdata 795 sound/soc/codecs/cs35l33.c cs35l33->pdata.amp_drv_sel << CS35L33_AMP_DRV_SEL_SHIFT); pdata 797 sound/soc/codecs/cs35l33.c if (cs35l33->pdata.boost_ipk) pdata 798 sound/soc/codecs/cs35l33.c cs35l33_set_bst_ipk(component, cs35l33->pdata.boost_ipk); pdata 804 sound/soc/codecs/cs35l33.c CS35L33_DSR_RATE, cs35l33->pdata.ramp_rate); pdata 811 sound/soc/codecs/cs35l33.c if (cs35l33->pdata.imon_adc_scale != 0x8) pdata 813 sound/soc/codecs/cs35l33.c CS35L33_IMON_SCALE, cs35l33->pdata.imon_adc_scale); pdata 815 sound/soc/codecs/cs35l33.c cs35l33_set_hg_data(component, &(cs35l33->pdata)); pdata 922 sound/soc/codecs/cs35l33.c struct cs35l33_pdata *pdata) pdata 925 sound/soc/codecs/cs35l33.c struct cs35l33_hg *hg_config = &pdata->hg_config; pdata 1083 sound/soc/codecs/cs35l33.c struct cs35l33_pdata *pdata = &cs35l33->pdata; pdata 1090 sound/soc/codecs/cs35l33.c pdata->boost_ctl = val32; pdata 1091 sound/soc/codecs/cs35l33.c pdata->amp_drv_sel = 1; pdata 1095 sound/soc/codecs/cs35l33.c pdata->ramp_rate = val32; pdata 1100 sound/soc/codecs/cs35l33.c pdata->boost_ipk = val32; pdata 1104 sound/soc/codecs/cs35l33.c pdata->imon_adc_scale = val32; pdata 1107 sound/soc/codecs/cs35l33.c pdata->imon_adc_scale = 0x8; pdata 1110 sound/soc/codecs/cs35l33.c pdata->imon_adc_scale = 0x8; pdata 1113 sound/soc/codecs/cs35l33.c cs35l33_get_hg_data(np, pdata); pdata 1122 sound/soc/codecs/cs35l33.c struct cs35l33_pdata *pdata = dev_get_platdata(&i2c_client->dev); pdata 1156 sound/soc/codecs/cs35l33.c if (pdata) { pdata 1157 sound/soc/codecs/cs35l33.c cs35l33->pdata = *pdata; pdata 1160 sound/soc/codecs/cs35l33.c pdata = &cs35l33->pdata; pdata 43 sound/soc/codecs/cs35l34.c struct cs35l34_platform_data pdata; pdata 347 sound/soc/codecs/cs35l34.c CS35L34_BST_CVTL_MASK, priv->pdata.boost_vtge); pdata 736 sound/soc/codecs/cs35l34.c if (cs35l34->pdata.boost_peak) pdata 739 sound/soc/codecs/cs35l34.c cs35l34->pdata.boost_peak); pdata 741 sound/soc/codecs/cs35l34.c if (cs35l34->pdata.gain_zc_disable) pdata 748 sound/soc/codecs/cs35l34.c if (cs35l34->pdata.aif_half_drv) pdata 752 sound/soc/codecs/cs35l34.c if (cs35l34->pdata.digsft_disable) pdata 756 sound/soc/codecs/cs35l34.c if (cs35l34->pdata.amp_inv) pdata 760 sound/soc/codecs/cs35l34.c if (cs35l34->pdata.boost_ind) pdata 761 sound/soc/codecs/cs35l34.c ret = cs35l34_boost_inductor(cs35l34, cs35l34->pdata.boost_ind); pdata 763 sound/soc/codecs/cs35l34.c if (cs35l34->pdata.i2s_sdinloc) pdata 766 sound/soc/codecs/cs35l34.c cs35l34->pdata.i2s_sdinloc << CS35L34_I2S_LOC_SHIFT); pdata 768 sound/soc/codecs/cs35l34.c if (cs35l34->pdata.tdm_rising_edge) pdata 806 sound/soc/codecs/cs35l34.c struct cs35l34_platform_data *pdata) pdata 820 sound/soc/codecs/cs35l34.c pdata->boost_vtge = 0; /* Use VP */ pdata 822 sound/soc/codecs/cs35l34.c pdata->boost_vtge = ((val - 3300)/100) + 1; pdata 829 sound/soc/codecs/cs35l34.c pdata->boost_ind = val; pdata 841 sound/soc/codecs/cs35l34.c pdata->boost_peak = ((val - 1200)/80) + 1; pdata 844 sound/soc/codecs/cs35l34.c pdata->aif_half_drv = of_property_read_bool(np, pdata 846 sound/soc/codecs/cs35l34.c pdata->digsft_disable = of_property_read_bool(np, pdata 849 sound/soc/codecs/cs35l34.c pdata->gain_zc_disable = of_property_read_bool(np, pdata 851 sound/soc/codecs/cs35l34.c pdata->amp_inv = of_property_read_bool(np, "cirrus,amp-inv"); pdata 854 sound/soc/codecs/cs35l34.c pdata->i2s_sdinloc = val; pdata 856 sound/soc/codecs/cs35l34.c pdata->tdm_rising_edge = val; pdata 997 sound/soc/codecs/cs35l34.c struct cs35l34_platform_data *pdata = pdata 1037 sound/soc/codecs/cs35l34.c if (pdata) { pdata 1038 sound/soc/codecs/cs35l34.c cs35l34->pdata = *pdata; pdata 1040 sound/soc/codecs/cs35l34.c pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), pdata 1042 sound/soc/codecs/cs35l34.c if (!pdata) pdata 1046 sound/soc/codecs/cs35l34.c ret = cs35l34_handle_of_data(i2c_client, pdata); pdata 1051 sound/soc/codecs/cs35l34.c cs35l34->pdata = *pdata; pdata 173 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.ext_bst) { pdata 246 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.bst_pdn_fet_on) pdata 276 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.bst_pdn_fet_on) pdata 295 sound/soc/codecs/cs35l35.c cs35l35->pdata.bst_vctl pdata 471 sound/soc/codecs/cs35l35.c struct classh_cfg *classh = &cs35l35->pdata.classh_algo; pdata 539 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.stereo) { pdata 836 sound/soc/codecs/cs35l35.c struct classh_cfg *classh = &cs35l35->pdata.classh_algo; pdata 837 sound/soc/codecs/cs35l35.c struct monitor_cfg *monitor_config = &cs35l35->pdata.mon_cfg; pdata 841 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.bst_vctl) pdata 844 sound/soc/codecs/cs35l35.c cs35l35->pdata.bst_vctl); pdata 846 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.bst_ipk) pdata 849 sound/soc/codecs/cs35l35.c cs35l35->pdata.bst_ipk << pdata 852 sound/soc/codecs/cs35l35.c ret = cs35l35_boost_inductor(cs35l35, cs35l35->pdata.boost_ind); pdata 856 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.gain_zc) pdata 859 sound/soc/codecs/cs35l35.c cs35l35->pdata.gain_zc << pdata 862 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.aud_channel) pdata 866 sound/soc/codecs/cs35l35.c cs35l35->pdata.aud_channel << pdata 869 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.stereo) { pdata 873 sound/soc/codecs/cs35l35.c cs35l35->pdata.adv_channel << pdata 875 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.shared_bst) pdata 885 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.sp_drv_str) pdata 888 sound/soc/codecs/cs35l35.c cs35l35->pdata.sp_drv_str << pdata 890 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.sp_drv_unused) pdata 893 sound/soc/codecs/cs35l35.c cs35l35->pdata.sp_drv_unused << pdata 1241 sound/soc/codecs/cs35l35.c struct cs35l35_platform_data *pdata) pdata 1245 sound/soc/codecs/cs35l35.c struct classh_cfg *classh_config = &pdata->classh_algo; pdata 1246 sound/soc/codecs/cs35l35.c struct monitor_cfg *monitor_config = &pdata->mon_cfg; pdata 1256 sound/soc/codecs/cs35l35.c pdata->bst_pdn_fet_on = of_property_read_bool(np, pdata 1266 sound/soc/codecs/cs35l35.c pdata->bst_vctl = ((val32 - 2600) / 100) + 1; pdata 1277 sound/soc/codecs/cs35l35.c pdata->bst_ipk = ((val32 - 1680) / 110) | CS35L35_VALID_PDATA; pdata 1282 sound/soc/codecs/cs35l35.c pdata->boost_ind = val32; pdata 1289 sound/soc/codecs/cs35l35.c pdata->sp_drv_str = val32; pdata 1291 sound/soc/codecs/cs35l35.c pdata->sp_drv_unused = val32 | CS35L35_VALID_PDATA; pdata 1293 sound/soc/codecs/cs35l35.c pdata->stereo = of_property_read_bool(np, "cirrus,stereo-config"); pdata 1295 sound/soc/codecs/cs35l35.c if (pdata->stereo) { pdata 1298 sound/soc/codecs/cs35l35.c pdata->aud_channel = val32; pdata 1303 sound/soc/codecs/cs35l35.c pdata->adv_channel = val32; pdata 1305 sound/soc/codecs/cs35l35.c pdata->shared_bst = of_property_read_bool(np, pdata 1309 sound/soc/codecs/cs35l35.c pdata->ext_bst = of_property_read_bool(np, "cirrus,external-boost"); pdata 1311 sound/soc/codecs/cs35l35.c pdata->gain_zc = of_property_read_bool(np, "cirrus,amp-gain-zc"); pdata 1474 sound/soc/codecs/cs35l35.c struct cs35l35_platform_data *pdata = dev_get_platdata(dev); pdata 1506 sound/soc/codecs/cs35l35.c if (pdata) { pdata 1507 sound/soc/codecs/cs35l35.c cs35l35->pdata = *pdata; pdata 1509 sound/soc/codecs/cs35l35.c pdata = devm_kzalloc(dev, sizeof(struct cs35l35_platform_data), pdata 1511 sound/soc/codecs/cs35l35.c if (!pdata) pdata 1514 sound/soc/codecs/cs35l35.c ret = cs35l35_handle_of_data(i2c_client, pdata); pdata 1519 sound/soc/codecs/cs35l35.c cs35l35->pdata = *pdata; pdata 1601 sound/soc/codecs/cs35l35.c if (cs35l35->pdata.bst_pdn_fet_on) pdata 277 sound/soc/codecs/cs35l35.h struct cs35l35_platform_data pdata; pdata 50 sound/soc/codecs/cs35l36.c struct cs35l36_platform_data pdata; pdata 565 sound/soc/codecs/cs35l36.c if (!cs35l36->pdata.extern_boost) pdata 572 sound/soc/codecs/cs35l36.c if (!cs35l36->pdata.extern_boost) pdata 1161 sound/soc/codecs/cs35l36.c if ((cs35l36->rev_id == CS35L36_REV_A0) && cs35l36->pdata.dcm_mode) { pdata 1184 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.amp_pcm_inv) pdata 1189 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.multi_amp_mode) pdata 1194 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.imon_pol_inv) pdata 1198 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.vmon_pol_inv) pdata 1202 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.bst_vctl) pdata 1205 sound/soc/codecs/cs35l36.c cs35l36->pdata.bst_vctl); pdata 1207 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.bst_vctl_sel) pdata 1210 sound/soc/codecs/cs35l36.c cs35l36->pdata.bst_vctl_sel); pdata 1212 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.bst_ipk) pdata 1215 sound/soc/codecs/cs35l36.c cs35l36->pdata.bst_ipk); pdata 1217 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.boost_ind) { pdata 1218 sound/soc/codecs/cs35l36.c ret = cs35l36_boost_inductor(cs35l36, cs35l36->pdata.boost_ind); pdata 1226 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.temp_warn_thld) pdata 1229 sound/soc/codecs/cs35l36.c cs35l36->pdata.temp_warn_thld); pdata 1231 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.irq_drv_sel) pdata 1234 sound/soc/codecs/cs35l36.c cs35l36->pdata.irq_drv_sel << pdata 1237 sound/soc/codecs/cs35l36.c if (cs35l36->pdata.irq_gpio_sel) pdata 1240 sound/soc/codecs/cs35l36.c cs35l36->pdata.irq_gpio_sel << pdata 1432 sound/soc/codecs/cs35l36.c struct cs35l36_platform_data *pdata) pdata 1435 sound/soc/codecs/cs35l36.c struct cs35l36_vpbr_cfg *vpbr_config = &pdata->vpbr_config; pdata 1450 sound/soc/codecs/cs35l36.c pdata->bst_vctl = (((val - 2550) / 100) + 1) << 1; pdata 1459 sound/soc/codecs/cs35l36.c pdata->bst_vctl_sel = val | CS35L36_VALID_PDATA; pdata 1469 sound/soc/codecs/cs35l36.c pdata->bst_ipk = (val - 1600) / 50; pdata 1476 sound/soc/codecs/cs35l36.c pdata->multi_amp_mode = of_property_read_bool(np, pdata 1479 sound/soc/codecs/cs35l36.c pdata->dcm_mode = of_property_read_bool(np, pdata 1482 sound/soc/codecs/cs35l36.c pdata->amp_pcm_inv = of_property_read_bool(np, pdata 1485 sound/soc/codecs/cs35l36.c pdata->imon_pol_inv = of_property_read_bool(np, pdata 1488 sound/soc/codecs/cs35l36.c pdata->vmon_pol_inv = of_property_read_bool(np, pdata 1492 sound/soc/codecs/cs35l36.c pdata->temp_warn_thld = val | CS35L36_VALID_PDATA; pdata 1495 sound/soc/codecs/cs35l36.c pdata->boost_ind = val; pdata 1502 sound/soc/codecs/cs35l36.c pdata->irq_drv_sel = val | CS35L36_VALID_PDATA; pdata 1505 sound/soc/codecs/cs35l36.c pdata->irq_gpio_sel = val | CS35L36_VALID_PDATA; pdata 1611 sound/soc/codecs/cs35l36.c struct cs35l36_platform_data *pdata = &cs35l36->pdata; pdata 1612 sound/soc/codecs/cs35l36.c struct cs35l36_vpbr_cfg *vpbr_config = &pdata->vpbr_config; pdata 1708 sound/soc/codecs/cs35l36.c struct cs35l36_platform_data *pdata = dev_get_platdata(dev); pdata 1738 sound/soc/codecs/cs35l36.c if (pdata) { pdata 1739 sound/soc/codecs/cs35l36.c cs35l36->pdata = *pdata; pdata 1741 sound/soc/codecs/cs35l36.c pdata = devm_kzalloc(dev, sizeof(struct cs35l36_platform_data), pdata 1743 sound/soc/codecs/cs35l36.c if (!pdata) pdata 1747 sound/soc/codecs/cs35l36.c ret = cs35l36_handle_of_data(i2c_client, pdata); pdata 1753 sound/soc/codecs/cs35l36.c cs35l36->pdata = *pdata; pdata 1844 sound/soc/codecs/cs35l36.c if (pdata->vpbr_config.is_present) pdata 44 sound/soc/codecs/cs42l52.c struct cs42l52_platform_data pdata; pdata 475 sound/soc/codecs/cs42l52.c struct cs42l52_platform_data *pdata = &cs42l52->pdata; pdata 477 sound/soc/codecs/cs42l52.c if (!pdata->mica_diff_cfg) pdata 481 sound/soc/codecs/cs42l52.c if (!pdata->micb_diff_cfg) pdata 1092 sound/soc/codecs/cs42l52.c struct cs42l52_platform_data *pdata = dev_get_platdata(&i2c_client->dev); pdata 1109 sound/soc/codecs/cs42l52.c if (pdata) { pdata 1110 sound/soc/codecs/cs42l52.c cs42l52->pdata = *pdata; pdata 1112 sound/soc/codecs/cs42l52.c pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), pdata 1114 sound/soc/codecs/cs42l52.c if (!pdata) pdata 1120 sound/soc/codecs/cs42l52.c pdata->mica_diff_cfg = true; pdata 1124 sound/soc/codecs/cs42l52.c pdata->micb_diff_cfg = true; pdata 1128 sound/soc/codecs/cs42l52.c pdata->micbias_lvl = val32; pdata 1132 sound/soc/codecs/cs42l52.c pdata->chgfreq = val32; pdata 1134 sound/soc/codecs/cs42l52.c pdata->reset_gpio = pdata 1138 sound/soc/codecs/cs42l52.c cs42l52->pdata = *pdata; pdata 1141 sound/soc/codecs/cs42l52.c if (cs42l52->pdata.reset_gpio) { pdata 1143 sound/soc/codecs/cs42l52.c cs42l52->pdata.reset_gpio, pdata 1148 sound/soc/codecs/cs42l52.c cs42l52->pdata.reset_gpio, ret); pdata 1151 sound/soc/codecs/cs42l52.c gpio_set_value_cansleep(cs42l52->pdata.reset_gpio, 0); pdata 1152 sound/soc/codecs/cs42l52.c gpio_set_value_cansleep(cs42l52->pdata.reset_gpio, 1); pdata 1177 sound/soc/codecs/cs42l52.c if (cs42l52->pdata.mica_diff_cfg) pdata 1180 sound/soc/codecs/cs42l52.c cs42l52->pdata.mica_diff_cfg << pdata 1183 sound/soc/codecs/cs42l52.c if (cs42l52->pdata.micb_diff_cfg) pdata 1186 sound/soc/codecs/cs42l52.c cs42l52->pdata.micb_diff_cfg << pdata 1189 sound/soc/codecs/cs42l52.c if (cs42l52->pdata.chgfreq) pdata 1192 sound/soc/codecs/cs42l52.c cs42l52->pdata.chgfreq << pdata 1195 sound/soc/codecs/cs42l52.c if (cs42l52->pdata.micbias_lvl) pdata 1198 sound/soc/codecs/cs42l52.c cs42l52->pdata.micbias_lvl); pdata 46 sound/soc/codecs/cs42l56.c struct cs42l56_platform_data pdata; pdata 1132 sound/soc/codecs/cs42l56.c struct cs42l56_platform_data *pdata) pdata 1138 sound/soc/codecs/cs42l56.c pdata->ain1a_ref_cfg = true; pdata 1141 sound/soc/codecs/cs42l56.c pdata->ain2a_ref_cfg = true; pdata 1144 sound/soc/codecs/cs42l56.c pdata->ain1b_ref_cfg = true; pdata 1147 sound/soc/codecs/cs42l56.c pdata->ain2b_ref_cfg = true; pdata 1150 sound/soc/codecs/cs42l56.c pdata->micbias_lvl = val32; pdata 1153 sound/soc/codecs/cs42l56.c pdata->chgfreq = val32; pdata 1156 sound/soc/codecs/cs42l56.c pdata->adaptive_pwr = val32; pdata 1159 sound/soc/codecs/cs42l56.c pdata->hpfa_freq = val32; pdata 1162 sound/soc/codecs/cs42l56.c pdata->hpfb_freq = val32; pdata 1164 sound/soc/codecs/cs42l56.c pdata->gpio_nreset = of_get_named_gpio(np, "cirrus,gpio-nreset", 0); pdata 1173 sound/soc/codecs/cs42l56.c struct cs42l56_platform_data *pdata = pdata 1192 sound/soc/codecs/cs42l56.c if (pdata) { pdata 1193 sound/soc/codecs/cs42l56.c cs42l56->pdata = *pdata; pdata 1195 sound/soc/codecs/cs42l56.c pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), pdata 1197 sound/soc/codecs/cs42l56.c if (!pdata) pdata 1202 sound/soc/codecs/cs42l56.c &cs42l56->pdata); pdata 1206 sound/soc/codecs/cs42l56.c cs42l56->pdata = *pdata; pdata 1209 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.gpio_nreset) { pdata 1210 sound/soc/codecs/cs42l56.c ret = gpio_request_one(cs42l56->pdata.gpio_nreset, pdata 1215 sound/soc/codecs/cs42l56.c cs42l56->pdata.gpio_nreset, ret); pdata 1218 sound/soc/codecs/cs42l56.c gpio_set_value_cansleep(cs42l56->pdata.gpio_nreset, 0); pdata 1219 sound/soc/codecs/cs42l56.c gpio_set_value_cansleep(cs42l56->pdata.gpio_nreset, 1); pdata 1260 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.ain1a_ref_cfg) pdata 1265 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.ain1b_ref_cfg) pdata 1270 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.ain2a_ref_cfg) pdata 1275 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.ain2b_ref_cfg) pdata 1280 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.micbias_lvl) pdata 1283 sound/soc/codecs/cs42l56.c cs42l56->pdata.micbias_lvl); pdata 1285 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.chgfreq) pdata 1288 sound/soc/codecs/cs42l56.c cs42l56->pdata.chgfreq); pdata 1290 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.hpfb_freq) pdata 1293 sound/soc/codecs/cs42l56.c cs42l56->pdata.hpfb_freq); pdata 1295 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.hpfa_freq) pdata 1298 sound/soc/codecs/cs42l56.c cs42l56->pdata.hpfa_freq); pdata 1300 sound/soc/codecs/cs42l56.c if (cs42l56->pdata.adaptive_pwr) pdata 1303 sound/soc/codecs/cs42l56.c cs42l56->pdata.adaptive_pwr); pdata 36 sound/soc/codecs/cs42l73.c struct cs42l73_platform_data pdata; pdata 1233 sound/soc/codecs/cs42l73.c if (cs42l73->pdata.chgfreq) pdata 1236 sound/soc/codecs/cs42l73.c cs42l73->pdata.chgfreq << 4); pdata 1277 sound/soc/codecs/cs42l73.c struct cs42l73_platform_data *pdata = dev_get_platdata(&i2c_client->dev); pdata 1294 sound/soc/codecs/cs42l73.c if (pdata) { pdata 1295 sound/soc/codecs/cs42l73.c cs42l73->pdata = *pdata; pdata 1297 sound/soc/codecs/cs42l73.c pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), pdata 1299 sound/soc/codecs/cs42l73.c if (!pdata) pdata 1305 sound/soc/codecs/cs42l73.c pdata->chgfreq = val32; pdata 1307 sound/soc/codecs/cs42l73.c pdata->reset_gpio = of_get_named_gpio(i2c_client->dev.of_node, pdata 1309 sound/soc/codecs/cs42l73.c cs42l73->pdata = *pdata; pdata 1314 sound/soc/codecs/cs42l73.c if (cs42l73->pdata.reset_gpio) { pdata 1316 sound/soc/codecs/cs42l73.c cs42l73->pdata.reset_gpio, pdata 1321 sound/soc/codecs/cs42l73.c cs42l73->pdata.reset_gpio, ret); pdata 1324 sound/soc/codecs/cs42l73.c gpio_set_value_cansleep(cs42l73->pdata.reset_gpio, 0); pdata 1325 sound/soc/codecs/cs42l73.c gpio_set_value_cansleep(cs42l73->pdata.reset_gpio, 1); pdata 99 sound/soc/codecs/cs47l92.c out_mono = madera->pdata.codec.out_mono[2 + mux]; pdata 1651 sound/soc/codecs/da7213.c struct da7213_platform_data *pdata; pdata 1655 sound/soc/codecs/da7213.c pdata = devm_kzalloc(component->dev, sizeof(*pdata), GFP_KERNEL); pdata 1656 sound/soc/codecs/da7213.c if (!pdata) pdata 1660 sound/soc/codecs/da7213.c pdata->micbias1_lvl = da7213_of_micbias_lvl(component, fw_val32); pdata 1662 sound/soc/codecs/da7213.c pdata->micbias1_lvl = DA7213_MICBIAS_2_2V; pdata 1665 sound/soc/codecs/da7213.c pdata->micbias2_lvl = da7213_of_micbias_lvl(component, fw_val32); pdata 1667 sound/soc/codecs/da7213.c pdata->micbias2_lvl = DA7213_MICBIAS_2_2V; pdata 1670 sound/soc/codecs/da7213.c pdata->dmic_data_sel = da7213_of_dmic_data_sel(component, fw_str); pdata 1672 sound/soc/codecs/da7213.c pdata->dmic_data_sel = DA7213_DMIC_DATA_LRISE_RFALL; pdata 1675 sound/soc/codecs/da7213.c pdata->dmic_samplephase = pdata 1678 sound/soc/codecs/da7213.c pdata->dmic_samplephase = DA7213_DMIC_SAMPLE_ON_CLKEDGE; pdata 1681 sound/soc/codecs/da7213.c pdata->dmic_clk_rate = da7213_of_dmic_clkrate(component, fw_val32); pdata 1683 sound/soc/codecs/da7213.c pdata->dmic_clk_rate = DA7213_DMIC_CLK_3_0MHZ; pdata 1685 sound/soc/codecs/da7213.c return pdata; pdata 1753 sound/soc/codecs/da7213.c da7213->pdata = dev_get_platdata(component->dev); pdata 1754 sound/soc/codecs/da7213.c if (!da7213->pdata) pdata 1755 sound/soc/codecs/da7213.c da7213->pdata = da7213_fw_to_pdata(component); pdata 1758 sound/soc/codecs/da7213.c if (da7213->pdata) { pdata 1759 sound/soc/codecs/da7213.c struct da7213_platform_data *pdata = da7213->pdata; pdata 1763 sound/soc/codecs/da7213.c switch (pdata->micbias1_lvl) { pdata 1768 sound/soc/codecs/da7213.c micbias_lvl |= (pdata->micbias1_lvl << pdata 1772 sound/soc/codecs/da7213.c switch (pdata->micbias2_lvl) { pdata 1777 sound/soc/codecs/da7213.c micbias_lvl |= (pdata->micbias2_lvl << pdata 1786 sound/soc/codecs/da7213.c switch (pdata->dmic_data_sel) { pdata 1789 sound/soc/codecs/da7213.c dmic_cfg |= (pdata->dmic_data_sel << pdata 1793 sound/soc/codecs/da7213.c switch (pdata->dmic_samplephase) { pdata 1796 sound/soc/codecs/da7213.c dmic_cfg |= (pdata->dmic_samplephase << pdata 1800 sound/soc/codecs/da7213.c switch (pdata->dmic_clk_rate) { pdata 1803 sound/soc/codecs/da7213.c dmic_cfg |= (pdata->dmic_clk_rate << pdata 533 sound/soc/codecs/da7213.h struct da7213_platform_data *pdata; pdata 2448 sound/soc/codecs/da7218.c struct da7218_pdata *pdata; pdata 2453 sound/soc/codecs/da7218.c pdata = devm_kzalloc(component->dev, sizeof(*pdata), GFP_KERNEL); pdata 2454 sound/soc/codecs/da7218.c if (!pdata) pdata 2458 sound/soc/codecs/da7218.c pdata->micbias1_lvl = da7218_of_micbias_lvl(component, of_val32); pdata 2460 sound/soc/codecs/da7218.c pdata->micbias1_lvl = DA7218_MICBIAS_1_6V; pdata 2463 sound/soc/codecs/da7218.c pdata->micbias2_lvl = da7218_of_micbias_lvl(component, of_val32); pdata 2465 sound/soc/codecs/da7218.c pdata->micbias2_lvl = DA7218_MICBIAS_1_6V; pdata 2468 sound/soc/codecs/da7218.c pdata->mic1_amp_in_sel = pdata 2471 sound/soc/codecs/da7218.c pdata->mic1_amp_in_sel = DA7218_MIC_AMP_IN_SEL_DIFF; pdata 2474 sound/soc/codecs/da7218.c pdata->mic2_amp_in_sel = pdata 2477 sound/soc/codecs/da7218.c pdata->mic2_amp_in_sel = DA7218_MIC_AMP_IN_SEL_DIFF; pdata 2480 sound/soc/codecs/da7218.c pdata->dmic1_data_sel = da7218_of_dmic_data_sel(component, of_str); pdata 2482 sound/soc/codecs/da7218.c pdata->dmic1_data_sel = DA7218_DMIC_DATA_LRISE_RFALL; pdata 2485 sound/soc/codecs/da7218.c pdata->dmic1_samplephase = pdata 2488 sound/soc/codecs/da7218.c pdata->dmic1_samplephase = DA7218_DMIC_SAMPLE_ON_CLKEDGE; pdata 2491 sound/soc/codecs/da7218.c pdata->dmic1_clk_rate = da7218_of_dmic_clkrate(component, of_val32); pdata 2493 sound/soc/codecs/da7218.c pdata->dmic1_clk_rate = DA7218_DMIC_CLK_3_0MHZ; pdata 2496 sound/soc/codecs/da7218.c pdata->dmic2_data_sel = da7218_of_dmic_data_sel(component, of_str); pdata 2498 sound/soc/codecs/da7218.c pdata->dmic2_data_sel = DA7218_DMIC_DATA_LRISE_RFALL; pdata 2501 sound/soc/codecs/da7218.c pdata->dmic2_samplephase = pdata 2504 sound/soc/codecs/da7218.c pdata->dmic2_samplephase = DA7218_DMIC_SAMPLE_ON_CLKEDGE; pdata 2507 sound/soc/codecs/da7218.c pdata->dmic2_clk_rate = da7218_of_dmic_clkrate(component, of_val32); pdata 2509 sound/soc/codecs/da7218.c pdata->dmic2_clk_rate = DA7218_DMIC_CLK_3_0MHZ; pdata 2513 sound/soc/codecs/da7218.c pdata->hp_diff_single_supply = true; pdata 2519 sound/soc/codecs/da7218.c return pdata; pdata 2525 sound/soc/codecs/da7218.c return pdata; pdata 2527 sound/soc/codecs/da7218.c pdata->hpldet_pdata = hpldet_pdata; pdata 2563 sound/soc/codecs/da7218.c return pdata; pdata 2678 sound/soc/codecs/da7218.c struct da7218_pdata *pdata = da7218->pdata; pdata 2680 sound/soc/codecs/da7218.c if (pdata) { pdata 2684 sound/soc/codecs/da7218.c switch (pdata->micbias1_lvl) { pdata 2696 sound/soc/codecs/da7218.c micbias_lvl |= (pdata->micbias1_lvl << pdata 2701 sound/soc/codecs/da7218.c switch (pdata->micbias2_lvl) { pdata 2713 sound/soc/codecs/da7218.c micbias_lvl |= (pdata->micbias2_lvl << pdata 2721 sound/soc/codecs/da7218.c switch (pdata->mic1_amp_in_sel) { pdata 2726 sound/soc/codecs/da7218.c pdata->mic1_amp_in_sel); pdata 2730 sound/soc/codecs/da7218.c switch (pdata->mic2_amp_in_sel) { pdata 2735 sound/soc/codecs/da7218.c pdata->mic2_amp_in_sel); pdata 2740 sound/soc/codecs/da7218.c switch (pdata->dmic1_data_sel) { pdata 2743 sound/soc/codecs/da7218.c dmic_cfg |= (pdata->dmic1_data_sel << pdata 2748 sound/soc/codecs/da7218.c switch (pdata->dmic1_samplephase) { pdata 2751 sound/soc/codecs/da7218.c dmic_cfg |= (pdata->dmic1_samplephase << pdata 2756 sound/soc/codecs/da7218.c switch (pdata->dmic1_clk_rate) { pdata 2759 sound/soc/codecs/da7218.c dmic_cfg |= (pdata->dmic1_clk_rate << pdata 2770 sound/soc/codecs/da7218.c switch (pdata->dmic2_data_sel) { pdata 2773 sound/soc/codecs/da7218.c dmic_cfg |= (pdata->dmic2_data_sel << pdata 2778 sound/soc/codecs/da7218.c switch (pdata->dmic2_samplephase) { pdata 2781 sound/soc/codecs/da7218.c dmic_cfg |= (pdata->dmic2_samplephase << pdata 2786 sound/soc/codecs/da7218.c switch (pdata->dmic2_clk_rate) { pdata 2789 sound/soc/codecs/da7218.c dmic_cfg |= (pdata->dmic2_clk_rate << pdata 2802 sound/soc/codecs/da7218.c pdata->hp_diff_single_supply; pdata 2815 sound/soc/codecs/da7218.c (pdata->hpldet_pdata)) { pdata 2817 sound/soc/codecs/da7218.c pdata->hpldet_pdata; pdata 2889 sound/soc/codecs/da7218.c da7218->pdata = da7218_of_to_pdata(component); pdata 2891 sound/soc/codecs/da7218.c da7218->pdata = dev_get_platdata(component->dev); pdata 1386 sound/soc/codecs/da7218.h struct da7218_pdata *pdata; pdata 712 sound/soc/codecs/da7219-aad.c struct da7219_pdata *pdata = da7219->pdata; pdata 714 sound/soc/codecs/da7219-aad.c if ((pdata) && (pdata->aad_pdata)) { pdata 715 sound/soc/codecs/da7219-aad.c struct da7219_aad_pdata *aad_pdata = pdata->aad_pdata; pdata 902 sound/soc/codecs/da7219-aad.c if (da7219->pdata && !da7219->pdata->aad_pdata) pdata 903 sound/soc/codecs/da7219-aad.c da7219->pdata->aad_pdata = da7219_aad_fw_to_pdata(component); pdata 1757 sound/soc/codecs/da7219.c struct da7219_pdata *pdata; pdata 1761 sound/soc/codecs/da7219.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 1762 sound/soc/codecs/da7219.c if (!pdata) pdata 1765 sound/soc/codecs/da7219.c pdata->wakeup_source = device_property_read_bool(dev, "wakeup-source"); pdata 1767 sound/soc/codecs/da7219.c pdata->dai_clk_names[DA7219_DAI_WCLK_IDX] = "da7219-dai-wclk"; pdata 1768 sound/soc/codecs/da7219.c pdata->dai_clk_names[DA7219_DAI_BCLK_IDX] = "da7219-dai-bclk"; pdata 1770 sound/soc/codecs/da7219.c pdata->dai_clk_names, pdata 1773 sound/soc/codecs/da7219.c pdata->dai_clk_names[DA7219_DAI_WCLK_IDX], pdata 1774 sound/soc/codecs/da7219.c pdata->dai_clk_names[DA7219_DAI_BCLK_IDX]); pdata 1777 sound/soc/codecs/da7219.c pdata->micbias_lvl = da7219_fw_micbias_lvl(dev, of_val32); pdata 1779 sound/soc/codecs/da7219.c pdata->micbias_lvl = DA7219_MICBIAS_2_2V; pdata 1782 sound/soc/codecs/da7219.c pdata->mic_amp_in_sel = da7219_fw_mic_amp_in_sel(dev, of_str); pdata 1784 sound/soc/codecs/da7219.c pdata->mic_amp_in_sel = DA7219_MIC_AMP_IN_SEL_DIFF; pdata 1786 sound/soc/codecs/da7219.c return pdata; pdata 2123 sound/soc/codecs/da7219.c struct da7219_pdata *pdata = da7219->pdata; pdata 2160 sound/soc/codecs/da7219.c init.name = pdata->dai_clk_names[i]; pdata 2210 sound/soc/codecs/da7219.c struct da7219_pdata *pdata = da7219->pdata; pdata 2212 sound/soc/codecs/da7219.c if (pdata) { pdata 2215 sound/soc/codecs/da7219.c da7219->wakeup_source = pdata->wakeup_source; pdata 2218 sound/soc/codecs/da7219.c switch (pdata->micbias_lvl) { pdata 2225 sound/soc/codecs/da7219.c micbias_lvl |= (pdata->micbias_lvl << pdata 2237 sound/soc/codecs/da7219.c (pdata->micbias_lvl * pdata 2241 sound/soc/codecs/da7219.c switch (pdata->mic_amp_in_sel) { pdata 2246 sound/soc/codecs/da7219.c pdata->mic_amp_in_sel); pdata 2292 sound/soc/codecs/da7219.c da7219->pdata = dev_get_platdata(component->dev); pdata 2293 sound/soc/codecs/da7219.c if (!da7219->pdata) pdata 2294 sound/soc/codecs/da7219.c da7219->pdata = da7219_fw_to_pdata(component); pdata 810 sound/soc/codecs/da7219.h struct da7219_pdata *pdata; pdata 941 sound/soc/codecs/da9055.c struct da9055_platform_data *pdata; pdata 1425 sound/soc/codecs/da9055.c if (da9055->pdata) { pdata 1427 sound/soc/codecs/da9055.c if (da9055->pdata->micbias_source) { pdata 1436 sound/soc/codecs/da9055.c switch (da9055->pdata->micbias) { pdata 1443 sound/soc/codecs/da9055.c (da9055->pdata->micbias) << 4); pdata 1479 sound/soc/codecs/da9055.c struct da9055_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 1487 sound/soc/codecs/da9055.c if (pdata) pdata 1488 sound/soc/codecs/da9055.c da9055->pdata = pdata; pdata 352 sound/soc/codecs/madera.c struct madera_codec_pdata *pdata = &madera->pdata.codec; pdata 356 sound/soc/codecs/madera.c BUILD_BUG_ON(ARRAY_SIZE(pdata->inmode) != MADERA_MAX_INPUT); pdata 357 sound/soc/codecs/madera.c BUILD_BUG_ON(ARRAY_SIZE(pdata->inmode[0]) != MADERA_MAX_MUXED_CHANNELS); pdata 368 sound/soc/codecs/madera.c pdata->inmode[in_idx][ch_idx] = tmp[i]; pdata 380 sound/soc/codecs/madera.c struct madera_codec_pdata *pdata = &madera->pdata.codec; pdata 381 sound/soc/codecs/madera.c u32 out_mono[ARRAY_SIZE(pdata->out_mono)]; pdata 390 sound/soc/codecs/madera.c pdata->out_mono[i] = !!out_mono[i]; pdata 394 sound/soc/codecs/madera.c pdata->max_channels_clocked, pdata 395 sound/soc/codecs/madera.c ARRAY_SIZE(pdata->max_channels_clocked), pdata 399 sound/soc/codecs/madera.c pdata->pdm_fmt, pdata 400 sound/soc/codecs/madera.c ARRAY_SIZE(pdata->pdm_fmt), 1); pdata 403 sound/soc/codecs/madera.c pdata->pdm_mute, pdata 404 sound/soc/codecs/madera.c ARRAY_SIZE(pdata->pdm_mute), 1); pdata 407 sound/soc/codecs/madera.c pdata->dmic_ref, pdata 408 sound/soc/codecs/madera.c ARRAY_SIZE(pdata->dmic_ref), 1); pdata 537 sound/soc/codecs/madera.c if (!ep_sel && !madera->pdata.codec.out_mono[0]) pdata 620 sound/soc/codecs/madera.c inmode = madera->pdata.codec.inmode[0][2 * mux]; pdata 623 sound/soc/codecs/madera.c inmode = madera->pdata.codec.inmode[0][1 + (2 * mux)]; pdata 626 sound/soc/codecs/madera.c inmode = madera->pdata.codec.inmode[1][2 * mux]; pdata 629 sound/soc/codecs/madera.c inmode = madera->pdata.codec.inmode[1][1 + (2 * mux)]; pdata 1088 sound/soc/codecs/madera.c madera->pdata.codec.inmode[i][0], pdata 1089 sound/soc/codecs/madera.c madera->pdata.codec.inmode[i][1], pdata 1090 sound/soc/codecs/madera.c madera->pdata.codec.inmode[i][2], pdata 1091 sound/soc/codecs/madera.c madera->pdata.codec.inmode[i][3]); pdata 1093 sound/soc/codecs/madera.c dig_mode = madera->pdata.codec.dmic_ref[i] << pdata 1096 sound/soc/codecs/madera.c switch (madera->pdata.codec.inmode[i][0]) { pdata 1106 sound/soc/codecs/madera.c i + 1, madera->pdata.codec.inmode[i][0]); pdata 1110 sound/soc/codecs/madera.c switch (madera->pdata.codec.inmode[i][1]) { pdata 1120 sound/soc/codecs/madera.c i + 1, madera->pdata.codec.inmode[i][1]); pdata 1171 sound/soc/codecs/madera.c const struct madera_codec_pdata *pdata = &madera->pdata.codec; pdata 1184 sound/soc/codecs/madera.c if (pdata->out_mono[i]) { pdata 1201 sound/soc/codecs/madera.c pdata->pdm_fmt[i], pdata->pdm_mute[i]); pdata 1203 sound/soc/codecs/madera.c if (pdata->pdm_mute[i]) pdata 1208 sound/soc/codecs/madera.c pdata->pdm_mute[i]); pdata 1210 sound/soc/codecs/madera.c if (pdata->pdm_fmt[i]) pdata 1214 sound/soc/codecs/madera.c pdata->pdm_fmt[i]); pdata 3078 sound/soc/codecs/madera.c madera->pdata.codec.max_channels_clocked[dai->id - 1]; pdata 174 sound/soc/codecs/max9768.c struct max9768_pdata *pdata = client->dev.platform_data; pdata 181 sound/soc/codecs/max9768.c if (pdata) { pdata 183 sound/soc/codecs/max9768.c err = devm_gpio_request_one(&client->dev, pdata->mute_gpio, pdata 185 sound/soc/codecs/max9768.c max9768->mute_gpio = err ?: pdata->mute_gpio; pdata 188 sound/soc/codecs/max9768.c err = devm_gpio_request_one(&client->dev, pdata->shdn_gpio, pdata 190 sound/soc/codecs/max9768.c max9768->shdn_gpio = err ?: pdata->shdn_gpio; pdata 192 sound/soc/codecs/max9768.c max9768->flags = pdata->flags; pdata 42 sound/soc/codecs/max98088.c struct max98088_pdata *pdata; pdata 1414 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; pdata 1421 sound/soc/codecs/max98088.c if (!pdata || !max98088->eq_textcnt) pdata 1430 sound/soc/codecs/max98088.c for (i = 0; i < pdata->eq_cfgcnt; i++) { pdata 1431 sound/soc/codecs/max98088.c if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 && pdata 1432 sound/soc/codecs/max98088.c abs(pdata->eq_cfg[i].rate - fs) < best_val) { pdata 1434 sound/soc/codecs/max98088.c best_val = abs(pdata->eq_cfg[i].rate - fs); pdata 1439 sound/soc/codecs/max98088.c pdata->eq_cfg[best].name, pdata 1440 sound/soc/codecs/max98088.c pdata->eq_cfg[best].rate, fs); pdata 1446 sound/soc/codecs/max98088.c coef_set = &pdata->eq_cfg[sel]; pdata 1461 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; pdata 1468 sound/soc/codecs/max98088.c if (!pdata || !max98088->eq_textcnt) pdata 1477 sound/soc/codecs/max98088.c for (i = 0; i < pdata->eq_cfgcnt; i++) { pdata 1478 sound/soc/codecs/max98088.c if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 && pdata 1479 sound/soc/codecs/max98088.c abs(pdata->eq_cfg[i].rate - fs) < best_val) { pdata 1481 sound/soc/codecs/max98088.c best_val = abs(pdata->eq_cfg[i].rate - fs); pdata 1486 sound/soc/codecs/max98088.c pdata->eq_cfg[best].name, pdata 1487 sound/soc/codecs/max98088.c pdata->eq_cfg[best].rate, fs); pdata 1493 sound/soc/codecs/max98088.c coef_set = &pdata->eq_cfg[sel]; pdata 1511 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; pdata 1521 sound/soc/codecs/max98088.c if (sel >= pdata->eq_cfgcnt) pdata 1557 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; pdata 1575 sound/soc/codecs/max98088.c cfg = pdata->eq_cfg; pdata 1576 sound/soc/codecs/max98088.c cfgcnt = pdata->eq_cfgcnt; pdata 1617 sound/soc/codecs/max98088.c struct max98088_pdata *pdata = max98088->pdata; pdata 1620 sound/soc/codecs/max98088.c if (!pdata) { pdata 1626 sound/soc/codecs/max98088.c if (pdata->digmic_left_mode) pdata 1629 sound/soc/codecs/max98088.c if (pdata->digmic_right_mode) pdata 1637 sound/soc/codecs/max98088.c regval = ((pdata->receiver_mode) ? M98088_REC_LINEMODE : 0); pdata 1642 sound/soc/codecs/max98088.c if (pdata->eq_cfgcnt) pdata 1754 sound/soc/codecs/max98088.c max98088->pdata = i2c->dev.platform_data; pdata 2545 sound/soc/codecs/max98090.c max98090->pdata = i2c->dev.platform_data; pdata 1521 sound/soc/codecs/max98090.h struct max98090_pdata *pdata; pdata 43 sound/soc/codecs/max98095.c struct max98095_pdata *pdata; pdata 1496 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; pdata 1507 sound/soc/codecs/max98095.c if (!pdata || !max98095->eq_textcnt) pdata 1510 sound/soc/codecs/max98095.c if (sel >= pdata->eq_cfgcnt) pdata 1520 sound/soc/codecs/max98095.c for (i = 0; i < pdata->eq_cfgcnt; i++) { pdata 1521 sound/soc/codecs/max98095.c if (strcmp(pdata->eq_cfg[i].name, max98095->eq_texts[sel]) == 0 && pdata 1522 sound/soc/codecs/max98095.c abs(pdata->eq_cfg[i].rate - fs) < best_val) { pdata 1524 sound/soc/codecs/max98095.c best_val = abs(pdata->eq_cfg[i].rate - fs); pdata 1529 sound/soc/codecs/max98095.c pdata->eq_cfg[best].name, pdata 1530 sound/soc/codecs/max98095.c pdata->eq_cfg[best].rate, fs); pdata 1532 sound/soc/codecs/max98095.c coef_set = &pdata->eq_cfg[best]; pdata 1572 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; pdata 1590 sound/soc/codecs/max98095.c cfg = pdata->eq_cfg; pdata 1591 sound/soc/codecs/max98095.c cfgcnt = pdata->eq_cfgcnt; pdata 1647 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; pdata 1658 sound/soc/codecs/max98095.c if (!pdata || !max98095->bq_textcnt) pdata 1661 sound/soc/codecs/max98095.c if (sel >= pdata->bq_cfgcnt) pdata 1671 sound/soc/codecs/max98095.c for (i = 0; i < pdata->bq_cfgcnt; i++) { pdata 1672 sound/soc/codecs/max98095.c if (strcmp(pdata->bq_cfg[i].name, max98095->bq_texts[sel]) == 0 && pdata 1673 sound/soc/codecs/max98095.c abs(pdata->bq_cfg[i].rate - fs) < best_val) { pdata 1675 sound/soc/codecs/max98095.c best_val = abs(pdata->bq_cfg[i].rate - fs); pdata 1680 sound/soc/codecs/max98095.c pdata->bq_cfg[best].name, pdata 1681 sound/soc/codecs/max98095.c pdata->bq_cfg[best].rate, fs); pdata 1683 sound/soc/codecs/max98095.c coef_set = &pdata->bq_cfg[best]; pdata 1723 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; pdata 1742 sound/soc/codecs/max98095.c cfg = pdata->bq_cfg; pdata 1743 sound/soc/codecs/max98095.c cfgcnt = pdata->bq_cfgcnt; pdata 1784 sound/soc/codecs/max98095.c struct max98095_pdata *pdata = max98095->pdata; pdata 1787 sound/soc/codecs/max98095.c if (!pdata) { pdata 1793 sound/soc/codecs/max98095.c if (pdata->digmic_left_mode) pdata 1796 sound/soc/codecs/max98095.c if (pdata->digmic_right_mode) pdata 1802 sound/soc/codecs/max98095.c if (pdata->eq_cfgcnt) pdata 1806 sound/soc/codecs/max98095.c if (pdata->bq_cfgcnt) pdata 1857 sound/soc/codecs/max98095.c if (max98095->pdata->jack_detect_pin5en) pdata 1860 sound/soc/codecs/max98095.c if (max98095->pdata->jack_detect_delay) pdata 1861 sound/soc/codecs/max98095.c slew = max98095->pdata->jack_detect_delay; pdata 2137 sound/soc/codecs/max98095.c max98095->pdata = i2c->dev.platform_data; pdata 822 sound/soc/codecs/max98925.h struct max98925_pdata *pdata; pdata 257 sound/soc/codecs/max98927.h struct max98927_pdata *pdata; pdata 737 sound/soc/codecs/mc13783.c struct mc13xxx_codec_platform_data *pdata = pdev->dev.platform_data; pdata 745 sound/soc/codecs/mc13783.c if (pdata) { pdata 746 sound/soc/codecs/mc13783.c priv->adc_ssi_port = pdata->adc_ssi_port; pdata 747 sound/soc/codecs/mc13783.c priv->dac_ssi_port = pdata->dac_ssi_port; pdata 41 sound/soc/codecs/rt286.c struct rt286_platform_data pdata; pdata 225 sound/soc/codecs/rt286.c if (rt286->pdata.cbj_en) { pdata 1132 sound/soc/codecs/rt286.c struct rt286_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 1178 sound/soc/codecs/rt286.c if (pdata) pdata 1179 sound/soc/codecs/rt286.c rt286->pdata = *pdata; pdata 1183 sound/soc/codecs/rt286.c rt286->pdata.cbj_en = true; pdata 1192 sound/soc/codecs/rt286.c if (!rt286->pdata.cbj_en) { pdata 1204 sound/soc/codecs/rt286.c if (!rt286->pdata.gpio2_en) pdata 40 sound/soc/codecs/rt298.c struct rt298_platform_data pdata; pdata 232 sound/soc/codecs/rt298.c if (rt298->pdata.cbj_en) { pdata 1175 sound/soc/codecs/rt298.c struct rt298_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 1219 sound/soc/codecs/rt298.c if (pdata) pdata 1220 sound/soc/codecs/rt298.c rt298->pdata = *pdata; pdata 1225 sound/soc/codecs/rt298.c rt298->pdata = *(struct rt298_platform_data *) pdata 1230 sound/soc/codecs/rt298.c rt298->pdata.cbj_en = true; pdata 1231 sound/soc/codecs/rt298.c rt298->pdata.gpio2_en = false; pdata 1247 sound/soc/codecs/rt298.c if (!rt298->pdata.cbj_en) { pdata 1259 sound/soc/codecs/rt298.c if (!rt298->pdata.gpio2_en) pdata 340 sound/soc/codecs/rt5514.c if (rt5514->pdata.dsp_calib_clk_name && pdata 343 sound/soc/codecs/rt5514.c rt5514->pdata.dsp_calib_clk_rate)) pdata 401 sound/soc/codecs/rt5514.c if (rt5514->pdata.dsp_calib_clk_name && pdata 530 sound/soc/codecs/rt5514.c if (rt5514->pdata.dmic_init_delay) pdata 531 sound/soc/codecs/rt5514.c msleep(rt5514->pdata.dmic_init_delay); pdata 1105 sound/soc/codecs/rt5514.c if (rt5514->pdata.dsp_calib_clk_name) { pdata 1107 sound/soc/codecs/rt5514.c rt5514->pdata.dsp_calib_clk_name); pdata 1231 sound/soc/codecs/rt5514.c &rt5514->pdata.dmic_init_delay); pdata 1233 sound/soc/codecs/rt5514.c &rt5514->pdata.dsp_calib_clk_name); pdata 1235 sound/soc/codecs/rt5514.c &rt5514->pdata.dsp_calib_clk_rate); pdata 1258 sound/soc/codecs/rt5514.c struct rt5514_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 1270 sound/soc/codecs/rt5514.c if (pdata) pdata 1271 sound/soc/codecs/rt5514.c rt5514->pdata = *pdata; pdata 271 sound/soc/codecs/rt5514.h struct rt5514_platform_data pdata; pdata 413 sound/soc/codecs/rt5645.c struct rt5645_platform_data pdata; pdata 3186 sound/soc/codecs/rt5645.c if (rt5645->pdata.level_trigger_irq) pdata 3203 sound/soc/codecs/rt5645.c if (rt5645->pdata.jd_mode == 0) pdata 3207 sound/soc/codecs/rt5645.c if (rt5645->pdata.level_trigger_irq) pdata 3260 sound/soc/codecs/rt5645.c switch (rt5645->pdata.jd_mode) { pdata 3409 sound/soc/codecs/rt5645.c if (rt5645->pdata.jd_mode) { pdata 3415 sound/soc/codecs/rt5645.c if (rt5645->pdata.long_name) pdata 3416 sound/soc/codecs/rt5645.c component->card->long_name = rt5645->pdata.long_name; pdata 3764 sound/soc/codecs/rt5645.c rt5645->pdata.in2_diff = device_property_read_bool(dev, pdata 3767 sound/soc/codecs/rt5645.c "realtek,dmic1-data-pin", &rt5645->pdata.dmic1_data_pin); pdata 3769 sound/soc/codecs/rt5645.c "realtek,dmic2-data-pin", &rt5645->pdata.dmic2_data_pin); pdata 3771 sound/soc/codecs/rt5645.c "realtek,jd-mode", &rt5645->pdata.jd_mode); pdata 3779 sound/soc/codecs/rt5645.c struct rt5645_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 3797 sound/soc/codecs/rt5645.c pdata = dmi_data->driver_data; pdata 3800 sound/soc/codecs/rt5645.c if (pdata) pdata 3801 sound/soc/codecs/rt5645.c rt5645->pdata = *pdata; pdata 3805 sound/soc/codecs/rt5645.c rt5645->pdata = jd_mode3_platform_data; pdata 3808 sound/soc/codecs/rt5645.c rt5645->pdata.in2_diff = QUIRK_IN2_DIFF(quirk); pdata 3809 sound/soc/codecs/rt5645.c rt5645->pdata.level_trigger_irq = QUIRK_LEVEL_IRQ(quirk); pdata 3810 sound/soc/codecs/rt5645.c rt5645->pdata.inv_jd1_1 = QUIRK_INV_JD1_1(quirk); pdata 3811 sound/soc/codecs/rt5645.c rt5645->pdata.jd_mode = QUIRK_JD_MODE(quirk); pdata 3812 sound/soc/codecs/rt5645.c rt5645->pdata.dmic1_data_pin = QUIRK_DMIC1_DATA_PIN(quirk); pdata 3813 sound/soc/codecs/rt5645.c rt5645->pdata.dmic2_data_pin = QUIRK_DMIC2_DATA_PIN(quirk); pdata 3909 sound/soc/codecs/rt5645.c if (rt5645->pdata.in2_diff) pdata 3913 sound/soc/codecs/rt5645.c if (rt5645->pdata.dmic1_data_pin || rt5645->pdata.dmic2_data_pin) { pdata 3917 sound/soc/codecs/rt5645.c switch (rt5645->pdata.dmic1_data_pin) { pdata 3944 sound/soc/codecs/rt5645.c switch (rt5645->pdata.dmic2_data_pin) { pdata 3977 sound/soc/codecs/rt5645.c if (rt5645->pdata.jd_mode) { pdata 3993 sound/soc/codecs/rt5645.c switch (rt5645->pdata.jd_mode) { pdata 4013 sound/soc/codecs/rt5645.c if (rt5645->pdata.inv_jd1_1) { pdata 4022 sound/soc/codecs/rt5645.c if (rt5645->pdata.level_trigger_irq) { pdata 3844 sound/soc/codecs/rt5659.c rt5659->pdata.in1_diff = device_property_read_bool(dev, pdata 3846 sound/soc/codecs/rt5659.c rt5659->pdata.in3_diff = device_property_read_bool(dev, pdata 3848 sound/soc/codecs/rt5659.c rt5659->pdata.in4_diff = device_property_read_bool(dev, pdata 3853 sound/soc/codecs/rt5659.c &rt5659->pdata.dmic1_data_pin); pdata 3855 sound/soc/codecs/rt5659.c &rt5659->pdata.dmic2_data_pin); pdata 3857 sound/soc/codecs/rt5659.c &rt5659->pdata.jd_src); pdata 4115 sound/soc/codecs/rt5659.c struct rt5659_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 4128 sound/soc/codecs/rt5659.c if (pdata) pdata 4129 sound/soc/codecs/rt5659.c rt5659->pdata = *pdata; pdata 4173 sound/soc/codecs/rt5659.c if (rt5659->pdata.in1_diff) pdata 4176 sound/soc/codecs/rt5659.c if (rt5659->pdata.in3_diff) pdata 4179 sound/soc/codecs/rt5659.c if (rt5659->pdata.in4_diff) pdata 4184 sound/soc/codecs/rt5659.c if (rt5659->pdata.dmic1_data_pin != RT5659_DMIC1_NULL || pdata 4185 sound/soc/codecs/rt5659.c rt5659->pdata.dmic2_data_pin != RT5659_DMIC2_NULL) { pdata 4189 sound/soc/codecs/rt5659.c switch (rt5659->pdata.dmic1_data_pin) { pdata 4226 sound/soc/codecs/rt5659.c switch (rt5659->pdata.dmic2_data_pin) { pdata 4287 sound/soc/codecs/rt5659.c switch (rt5659->pdata.jd_src) { pdata 1794 sound/soc/codecs/rt5659.h struct rt5659_platform_data pdata; pdata 1151 sound/soc/codecs/rt5660.c if (rt5660->pdata.poweroff_codec_in_suspend) pdata 1253 sound/soc/codecs/rt5660.c rt5660->pdata.in1_diff = device_property_read_bool(dev, pdata 1255 sound/soc/codecs/rt5660.c rt5660->pdata.in3_diff = device_property_read_bool(dev, pdata 1257 sound/soc/codecs/rt5660.c rt5660->pdata.poweroff_codec_in_suspend = device_property_read_bool(dev, pdata 1260 sound/soc/codecs/rt5660.c &rt5660->pdata.dmic1_data_pin); pdata 1268 sound/soc/codecs/rt5660.c struct rt5660_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 1286 sound/soc/codecs/rt5660.c if (pdata) pdata 1287 sound/soc/codecs/rt5660.c rt5660->pdata = *pdata; pdata 1317 sound/soc/codecs/rt5660.c if (rt5660->pdata.dmic1_data_pin) { pdata 1321 sound/soc/codecs/rt5660.c if (rt5660->pdata.dmic1_data_pin == RT5660_DMIC1_DATA_GPIO2) pdata 1325 sound/soc/codecs/rt5660.c else if (rt5660->pdata.dmic1_data_pin == RT5660_DMIC1_DATA_IN1P) pdata 832 sound/soc/codecs/rt5660.h struct rt5660_platform_data pdata; pdata 59 sound/soc/codecs/rt5663.c struct rt5663_platform_data pdata; pdata 1611 sound/soc/codecs/rt5663.c if (rt5663->pdata.impedance_sensing_num) pdata 1614 sound/soc/codecs/rt5663.c if (rt5663->pdata.dc_offset_l_manual_mic) { pdata 1616 sound/soc/codecs/rt5663.c rt5663->pdata.dc_offset_l_manual_mic >> pdata 1619 sound/soc/codecs/rt5663.c rt5663->pdata.dc_offset_l_manual_mic & pdata 1623 sound/soc/codecs/rt5663.c if (rt5663->pdata.dc_offset_r_manual_mic) { pdata 1625 sound/soc/codecs/rt5663.c rt5663->pdata.dc_offset_r_manual_mic >> pdata 1628 sound/soc/codecs/rt5663.c rt5663->pdata.dc_offset_r_manual_mic & pdata 1638 sound/soc/codecs/rt5663.c if (rt5663->pdata.impedance_sensing_num) pdata 1641 sound/soc/codecs/rt5663.c if (rt5663->pdata.dc_offset_l_manual) { pdata 1643 sound/soc/codecs/rt5663.c rt5663->pdata.dc_offset_l_manual >> 16); pdata 1645 sound/soc/codecs/rt5663.c rt5663->pdata.dc_offset_l_manual & pdata 1649 sound/soc/codecs/rt5663.c if (rt5663->pdata.dc_offset_r_manual) { pdata 1651 sound/soc/codecs/rt5663.c rt5663->pdata.dc_offset_r_manual >> 16); pdata 1653 sound/soc/codecs/rt5663.c rt5663->pdata.dc_offset_r_manual & pdata 1676 sound/soc/codecs/rt5663.c for (i = 0; i < rt5663->pdata.impedance_sensing_num; i++) { pdata 1808 sound/soc/codecs/rt5663.c for (i = 0; i < rt5663->pdata.impedance_sensing_num; i++) { pdata 1920 sound/soc/codecs/rt5663.c if (rt5663->pdata.impedance_sensing_num) pdata 3466 sound/soc/codecs/rt5663.c &rt5663->pdata.dc_offset_l_manual); pdata 3468 sound/soc/codecs/rt5663.c &rt5663->pdata.dc_offset_r_manual); pdata 3470 sound/soc/codecs/rt5663.c &rt5663->pdata.dc_offset_l_manual_mic); pdata 3472 sound/soc/codecs/rt5663.c &rt5663->pdata.dc_offset_r_manual_mic); pdata 3474 sound/soc/codecs/rt5663.c &rt5663->pdata.impedance_sensing_num); pdata 3476 sound/soc/codecs/rt5663.c if (rt5663->pdata.impedance_sensing_num) { pdata 3478 sound/soc/codecs/rt5663.c rt5663->pdata.impedance_sensing_num; pdata 3491 sound/soc/codecs/rt5663.c struct rt5663_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 3505 sound/soc/codecs/rt5663.c if (pdata) pdata 3506 sound/soc/codecs/rt5663.c rt5663->pdata = *pdata; pdata 45 sound/soc/codecs/rt5665.c struct rt5665_platform_data pdata; pdata 1204 sound/soc/codecs/rt5665.c sar_hs_type = rt5665->pdata.sar_hs_type ? pdata 1205 sound/soc/codecs/rt5665.c rt5665->pdata.sar_hs_type : 729; pdata 1266 sound/soc/codecs/rt5665.c switch (rt5665->pdata.jd_src) { pdata 4645 sound/soc/codecs/rt5665.c rt5665->pdata.in1_diff = of_property_read_bool(dev->of_node, pdata 4647 sound/soc/codecs/rt5665.c rt5665->pdata.in2_diff = of_property_read_bool(dev->of_node, pdata 4649 sound/soc/codecs/rt5665.c rt5665->pdata.in3_diff = of_property_read_bool(dev->of_node, pdata 4651 sound/soc/codecs/rt5665.c rt5665->pdata.in4_diff = of_property_read_bool(dev->of_node, pdata 4655 sound/soc/codecs/rt5665.c &rt5665->pdata.dmic1_data_pin); pdata 4657 sound/soc/codecs/rt5665.c &rt5665->pdata.dmic2_data_pin); pdata 4659 sound/soc/codecs/rt5665.c &rt5665->pdata.jd_src); pdata 4661 sound/soc/codecs/rt5665.c rt5665->pdata.ldo1_en = of_get_named_gpio(dev->of_node, pdata 4763 sound/soc/codecs/rt5665.c struct rt5665_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 4776 sound/soc/codecs/rt5665.c if (pdata) pdata 4777 sound/soc/codecs/rt5665.c rt5665->pdata = *pdata; pdata 4798 sound/soc/codecs/rt5665.c if (gpio_is_valid(rt5665->pdata.ldo1_en)) { pdata 4799 sound/soc/codecs/rt5665.c if (devm_gpio_request_one(&i2c->dev, rt5665->pdata.ldo1_en, pdata 4836 sound/soc/codecs/rt5665.c if (rt5665->pdata.in1_diff) pdata 4839 sound/soc/codecs/rt5665.c if (rt5665->pdata.in2_diff) pdata 4842 sound/soc/codecs/rt5665.c if (rt5665->pdata.in3_diff) pdata 4845 sound/soc/codecs/rt5665.c if (rt5665->pdata.in4_diff) pdata 4850 sound/soc/codecs/rt5665.c if (rt5665->pdata.dmic1_data_pin != RT5665_DMIC1_NULL || pdata 4851 sound/soc/codecs/rt5665.c rt5665->pdata.dmic2_data_pin != RT5665_DMIC2_NULL) { pdata 4856 sound/soc/codecs/rt5665.c switch (rt5665->pdata.dmic1_data_pin) { pdata 4874 sound/soc/codecs/rt5665.c switch (rt5665->pdata.dmic2_data_pin) { pdata 45 sound/soc/codecs/rt5668.c struct rt5668_platform_data pdata; pdata 977 sound/soc/codecs/rt5668.c switch (rt5668->pdata.jd_src) { pdata 2389 sound/soc/codecs/rt5668.c &rt5668->pdata.dmic1_data_pin); pdata 2391 sound/soc/codecs/rt5668.c &rt5668->pdata.dmic1_clk_pin); pdata 2393 sound/soc/codecs/rt5668.c &rt5668->pdata.jd_src); pdata 2395 sound/soc/codecs/rt5668.c rt5668->pdata.ldo1_en = of_get_named_gpio(dev->of_node, pdata 2457 sound/soc/codecs/rt5668.c struct rt5668_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 2470 sound/soc/codecs/rt5668.c if (pdata) pdata 2471 sound/soc/codecs/rt5668.c rt5668->pdata = *pdata; pdata 2500 sound/soc/codecs/rt5668.c if (gpio_is_valid(rt5668->pdata.ldo1_en)) { pdata 2501 sound/soc/codecs/rt5668.c if (devm_gpio_request_one(&i2c->dev, rt5668->pdata.ldo1_en, pdata 2525 sound/soc/codecs/rt5668.c if (rt5668->pdata.dmic1_data_pin != RT5668_DMIC1_NULL) { pdata 2526 sound/soc/codecs/rt5668.c switch (rt5668->pdata.dmic1_data_pin) { pdata 2546 sound/soc/codecs/rt5668.c switch (rt5668->pdata.dmic1_clk_pin) { pdata 520 sound/soc/codecs/rt5670.c if (rt5670->pdata.jd_mode == 1) /* 2 port */ pdata 2597 sound/soc/codecs/rt5670.c if (rt5670->pdata.jd_mode) pdata 2900 sound/soc/codecs/rt5670.c struct rt5670_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 2913 sound/soc/codecs/rt5670.c if (pdata) pdata 2914 sound/soc/codecs/rt5670.c rt5670->pdata = *pdata; pdata 2924 sound/soc/codecs/rt5670.c rt5670->pdata.dev_gpio = true; pdata 2928 sound/soc/codecs/rt5670.c rt5670->pdata.in2_diff = true; pdata 2932 sound/soc/codecs/rt5670.c rt5670->pdata.dmic_en = true; pdata 2936 sound/soc/codecs/rt5670.c rt5670->pdata.dmic1_data_pin = RT5670_DMIC_DATA_IN2P; pdata 2940 sound/soc/codecs/rt5670.c rt5670->pdata.dmic1_data_pin = RT5670_DMIC_DATA_GPIO6; pdata 2944 sound/soc/codecs/rt5670.c rt5670->pdata.dmic1_data_pin = RT5670_DMIC_DATA_GPIO7; pdata 2948 sound/soc/codecs/rt5670.c rt5670->pdata.dmic2_data_pin = RT5670_DMIC_DATA_IN3N; pdata 2952 sound/soc/codecs/rt5670.c rt5670->pdata.dmic2_data_pin = RT5670_DMIC_DATA_GPIO8; pdata 2956 sound/soc/codecs/rt5670.c rt5670->pdata.dmic3_data_pin = RT5670_DMIC_DATA_GPIO5; pdata 2961 sound/soc/codecs/rt5670.c rt5670->pdata.jd_mode = 1; pdata 2965 sound/soc/codecs/rt5670.c rt5670->pdata.jd_mode = 2; pdata 2969 sound/soc/codecs/rt5670.c rt5670->pdata.jd_mode = 3; pdata 3010 sound/soc/codecs/rt5670.c if (rt5670->pdata.in2_diff) pdata 3014 sound/soc/codecs/rt5670.c if (rt5670->pdata.dev_gpio) { pdata 3026 sound/soc/codecs/rt5670.c if (rt5670->pdata.jd_mode) { pdata 3041 sound/soc/codecs/rt5670.c switch (rt5670->pdata.jd_mode) { pdata 3062 sound/soc/codecs/rt5670.c if (rt5670->pdata.dmic_en) { pdata 3067 sound/soc/codecs/rt5670.c switch (rt5670->pdata.dmic1_data_pin) { pdata 3096 sound/soc/codecs/rt5670.c switch (rt5670->pdata.dmic2_data_pin) { pdata 3116 sound/soc/codecs/rt5670.c switch (rt5670->pdata.dmic3_data_pin) { pdata 1991 sound/soc/codecs/rt5670.h struct rt5670_platform_data pdata; pdata 4633 sound/soc/codecs/rt5677.c if ((rt5677->pdata.jd1_gpio == 1 && offset == RT5677_GPIO1) || pdata 4634 sound/soc/codecs/rt5677.c (rt5677->pdata.jd1_gpio == 2 && pdata 4636 sound/soc/codecs/rt5677.c (rt5677->pdata.jd1_gpio == 3 && pdata 4639 sound/soc/codecs/rt5677.c } else if ((rt5677->pdata.jd2_gpio == 1 && offset == RT5677_GPIO4) || pdata 4640 sound/soc/codecs/rt5677.c (rt5677->pdata.jd2_gpio == 2 && pdata 4642 sound/soc/codecs/rt5677.c (rt5677->pdata.jd2_gpio == 3 && pdata 4645 sound/soc/codecs/rt5677.c } else if ((rt5677->pdata.jd3_gpio == 1 && pdata 4647 sound/soc/codecs/rt5677.c (rt5677->pdata.jd3_gpio == 2 && pdata 4649 sound/soc/codecs/rt5677.c (rt5677->pdata.jd3_gpio == 3 && pdata 4714 sound/soc/codecs/rt5677.c if (rt5677->pdata.dmic2_clk_pin == RT5677_DMIC_CLK2) { pdata 4732 sound/soc/codecs/rt5677.c rt5677_gpio_config(rt5677, i, rt5677->pdata.gpio_config[i]); pdata 5012 sound/soc/codecs/rt5677.c rt5677->pdata.in1_diff = pdata 5016 sound/soc/codecs/rt5677.c rt5677->pdata.in2_diff = pdata 5020 sound/soc/codecs/rt5677.c rt5677->pdata.lout1_diff = pdata 5024 sound/soc/codecs/rt5677.c rt5677->pdata.lout2_diff = pdata 5028 sound/soc/codecs/rt5677.c rt5677->pdata.lout3_diff = pdata 5033 sound/soc/codecs/rt5677.c rt5677->pdata.gpio_config, pdata 5038 sound/soc/codecs/rt5677.c rt5677->pdata.dmic2_clk_pin = val; pdata 5042 sound/soc/codecs/rt5677.c rt5677->pdata.jd1_gpio = val; pdata 5046 sound/soc/codecs/rt5677.c rt5677->pdata.jd2_gpio = val; pdata 5050 sound/soc/codecs/rt5677.c rt5677->pdata.jd3_gpio = val; pdata 5204 sound/soc/codecs/rt5677.c if (!rt5677->pdata.jd1_gpio && pdata 5205 sound/soc/codecs/rt5677.c !rt5677->pdata.jd2_gpio && pdata 5206 sound/soc/codecs/rt5677.c !rt5677->pdata.jd3_gpio) pdata 5228 sound/soc/codecs/rt5677.c if (rt5677->pdata.jd1_gpio) { pdata 5230 sound/soc/codecs/rt5677.c jd_val |= rt5677->pdata.jd1_gpio << RT5677_SEL_GPIO_JD1_SFT; pdata 5232 sound/soc/codecs/rt5677.c if (rt5677->pdata.jd2_gpio) { pdata 5234 sound/soc/codecs/rt5677.c jd_val |= rt5677->pdata.jd2_gpio << RT5677_SEL_GPIO_JD2_SFT; pdata 5236 sound/soc/codecs/rt5677.c if (rt5677->pdata.jd3_gpio) { pdata 5238 sound/soc/codecs/rt5677.c jd_val |= rt5677->pdata.jd3_gpio << RT5677_SEL_GPIO_JD3_SFT; pdata 5353 sound/soc/codecs/rt5677.c if (rt5677->pdata.in1_diff) pdata 5357 sound/soc/codecs/rt5677.c if (rt5677->pdata.in2_diff) pdata 5361 sound/soc/codecs/rt5677.c if (rt5677->pdata.lout1_diff) pdata 5365 sound/soc/codecs/rt5677.c if (rt5677->pdata.lout2_diff) pdata 5369 sound/soc/codecs/rt5677.c if (rt5677->pdata.lout3_diff) pdata 5373 sound/soc/codecs/rt5677.c if (rt5677->pdata.dmic2_clk_pin == RT5677_DMIC_CLK2) { pdata 5382 sound/soc/codecs/rt5677.c if (rt5677->pdata.micbias1_vdd_3v3) pdata 1829 sound/soc/codecs/rt5677.h struct rt5677_platform_data pdata; pdata 51 sound/soc/codecs/rt5682.c struct rt5682_platform_data pdata; pdata 1009 sound/soc/codecs/rt5682.c switch (rt5682->pdata.jd_src) { pdata 2466 sound/soc/codecs/rt5682.c &rt5682->pdata.dmic1_data_pin); pdata 2468 sound/soc/codecs/rt5682.c &rt5682->pdata.dmic1_clk_pin); pdata 2470 sound/soc/codecs/rt5682.c &rt5682->pdata.jd_src); pdata 2472 sound/soc/codecs/rt5682.c rt5682->pdata.ldo1_en = of_get_named_gpio(dev->of_node, pdata 2533 sound/soc/codecs/rt5682.c struct rt5682_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 2546 sound/soc/codecs/rt5682.c rt5682->pdata = i2s_default_platform_data; pdata 2548 sound/soc/codecs/rt5682.c if (pdata) pdata 2549 sound/soc/codecs/rt5682.c rt5682->pdata = *pdata; pdata 2578 sound/soc/codecs/rt5682.c if (gpio_is_valid(rt5682->pdata.ldo1_en)) { pdata 2579 sound/soc/codecs/rt5682.c if (devm_gpio_request_one(&i2c->dev, rt5682->pdata.ldo1_en, pdata 2609 sound/soc/codecs/rt5682.c if (rt5682->pdata.dmic1_data_pin != RT5682_DMIC1_NULL) { pdata 2610 sound/soc/codecs/rt5682.c switch (rt5682->pdata.dmic1_data_pin) { pdata 2630 sound/soc/codecs/rt5682.c switch (rt5682->pdata.dmic1_clk_pin) { pdata 740 sound/soc/codecs/ssm2518.c struct ssm2518_platform_data *pdata = i2c->dev.platform_data; pdata 748 sound/soc/codecs/ssm2518.c if (pdata) { pdata 749 sound/soc/codecs/ssm2518.c ssm2518->enable_gpio = pdata->enable_gpio; pdata 145 sound/soc/codecs/sta32x.c struct sta32x_platform_data *pdata; pdata 417 sound/soc/codecs/sta32x.c if (sta32x->pdata->needs_esd_watchdog) { pdata 427 sound/soc/codecs/sta32x.c if (sta32x->pdata->needs_esd_watchdog) { pdata 878 sound/soc/codecs/sta32x.c struct sta32x_platform_data *pdata = sta32x->pdata; pdata 906 sound/soc/codecs/sta32x.c if (!pdata->thermal_warning_recovery) pdata 908 sound/soc/codecs/sta32x.c if (!pdata->thermal_warning_adjustment) pdata 910 sound/soc/codecs/sta32x.c if (!pdata->fault_detect_recovery) pdata 920 sound/soc/codecs/sta32x.c pdata->drop_compensation_ns pdata 926 sound/soc/codecs/sta32x.c pdata->max_power_use_mpcc ? pdata 930 sound/soc/codecs/sta32x.c pdata->max_power_correction ? pdata 934 sound/soc/codecs/sta32x.c pdata->am_reduction_mode ? pdata 938 sound/soc/codecs/sta32x.c pdata->odd_pwm_speed_mode ? pdata 944 sound/soc/codecs/sta32x.c pdata->invalid_input_detect_mute ? pdata 950 sound/soc/codecs/sta32x.c pdata->output_conf pdata 956 sound/soc/codecs/sta32x.c pdata->ch1_output_mapping pdata 960 sound/soc/codecs/sta32x.c pdata->ch2_output_mapping pdata 964 sound/soc/codecs/sta32x.c pdata->ch3_output_mapping pdata 978 sound/soc/codecs/sta32x.c if (sta32x->pdata->needs_esd_watchdog) pdata 1038 sound/soc/codecs/sta32x.c struct sta32x_platform_data *pdata; pdata 1041 sound/soc/codecs/sta32x.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 1042 sound/soc/codecs/sta32x.c if (!pdata) pdata 1046 sound/soc/codecs/sta32x.c &pdata->output_conf); pdata 1048 sound/soc/codecs/sta32x.c &pdata->ch1_output_mapping); pdata 1050 sound/soc/codecs/sta32x.c &pdata->ch2_output_mapping); pdata 1052 sound/soc/codecs/sta32x.c &pdata->ch3_output_mapping); pdata 1055 sound/soc/codecs/sta32x.c pdata->fault_detect_recovery = 1; pdata 1057 sound/soc/codecs/sta32x.c pdata->thermal_warning_recovery = 1; pdata 1059 sound/soc/codecs/sta32x.c pdata->thermal_warning_adjustment = 1; pdata 1061 sound/soc/codecs/sta32x.c pdata->needs_esd_watchdog = 1; pdata 1065 sound/soc/codecs/sta32x.c pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20; pdata 1069 sound/soc/codecs/sta32x.c pdata->max_power_use_mpcc = 1; pdata 1072 sound/soc/codecs/sta32x.c pdata->max_power_correction = 1; pdata 1075 sound/soc/codecs/sta32x.c pdata->am_reduction_mode = 1; pdata 1078 sound/soc/codecs/sta32x.c pdata->odd_pwm_speed_mode = 1; pdata 1082 sound/soc/codecs/sta32x.c pdata->invalid_input_detect_mute = 1; pdata 1084 sound/soc/codecs/sta32x.c sta32x->pdata = pdata; pdata 1103 sound/soc/codecs/sta32x.c sta32x->pdata = dev_get_platdata(dev); pdata 168 sound/soc/codecs/sta350.c struct sta350_platform_data *pdata; pdata 913 sound/soc/codecs/sta350.c struct sta350_platform_data *pdata = sta350->pdata; pdata 930 sound/soc/codecs/sta350.c if (!pdata->thermal_warning_recovery) pdata 932 sound/soc/codecs/sta350.c if (!pdata->thermal_warning_adjustment) pdata 934 sound/soc/codecs/sta350.c if (!pdata->fault_detect_recovery) pdata 944 sound/soc/codecs/sta350.c pdata->ffx_power_output_mode pdata 948 sound/soc/codecs/sta350.c pdata->drop_compensation_ns pdata 953 sound/soc/codecs/sta350.c pdata->oc_warning_adjustment ? pdata 959 sound/soc/codecs/sta350.c pdata->max_power_use_mpcc ? pdata 963 sound/soc/codecs/sta350.c pdata->max_power_correction ? pdata 967 sound/soc/codecs/sta350.c pdata->am_reduction_mode ? pdata 971 sound/soc/codecs/sta350.c pdata->odd_pwm_speed_mode ? pdata 975 sound/soc/codecs/sta350.c pdata->distortion_compensation ? pdata 980 sound/soc/codecs/sta350.c pdata->invalid_input_detect_mute ? pdata 984 sound/soc/codecs/sta350.c pdata->output_conf pdata 990 sound/soc/codecs/sta350.c pdata->ch1_output_mapping pdata 994 sound/soc/codecs/sta350.c pdata->ch2_output_mapping pdata 998 sound/soc/codecs/sta350.c pdata->ch3_output_mapping pdata 1004 sound/soc/codecs/sta350.c pdata->activate_mute_output ? pdata 1008 sound/soc/codecs/sta350.c pdata->bridge_immediate_off ? pdata 1012 sound/soc/codecs/sta350.c pdata->noise_shape_dc_cut ? pdata 1016 sound/soc/codecs/sta350.c pdata->powerdown_master_vol ? pdata 1021 sound/soc/codecs/sta350.c pdata->powerdown_delay_divider pdata 1095 sound/soc/codecs/sta350.c struct sta350_platform_data *pdata; pdata 1100 sound/soc/codecs/sta350.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 1101 sound/soc/codecs/sta350.c if (!pdata) pdata 1105 sound/soc/codecs/sta350.c &pdata->output_conf); pdata 1107 sound/soc/codecs/sta350.c &pdata->ch1_output_mapping); pdata 1109 sound/soc/codecs/sta350.c &pdata->ch2_output_mapping); pdata 1111 sound/soc/codecs/sta350.c &pdata->ch3_output_mapping); pdata 1114 sound/soc/codecs/sta350.c pdata->thermal_warning_recovery = 1; pdata 1116 sound/soc/codecs/sta350.c pdata->thermal_warning_adjustment = 1; pdata 1118 sound/soc/codecs/sta350.c pdata->fault_detect_recovery = 1; pdata 1120 sound/soc/codecs/sta350.c pdata->ffx_power_output_mode = STA350_FFX_PM_VARIABLE_DROP_COMP; pdata 1133 sound/soc/codecs/sta350.c pdata->ffx_power_output_mode = mode; pdata 1138 sound/soc/codecs/sta350.c pdata->drop_compensation_ns = clamp_t(u16, tmp, 0, 300) / 20; pdata 1141 sound/soc/codecs/sta350.c pdata->oc_warning_adjustment = 1; pdata 1145 sound/soc/codecs/sta350.c pdata->max_power_use_mpcc = 1; pdata 1148 sound/soc/codecs/sta350.c pdata->max_power_correction = 1; pdata 1151 sound/soc/codecs/sta350.c pdata->am_reduction_mode = 1; pdata 1154 sound/soc/codecs/sta350.c pdata->odd_pwm_speed_mode = 1; pdata 1157 sound/soc/codecs/sta350.c pdata->distortion_compensation = 1; pdata 1161 sound/soc/codecs/sta350.c pdata->invalid_input_detect_mute = 1; pdata 1165 sound/soc/codecs/sta350.c pdata->activate_mute_output = 1; pdata 1168 sound/soc/codecs/sta350.c pdata->bridge_immediate_off = 1; pdata 1171 sound/soc/codecs/sta350.c pdata->noise_shape_dc_cut = 1; pdata 1174 sound/soc/codecs/sta350.c pdata->powerdown_master_vol = 1; pdata 1178 sound/soc/codecs/sta350.c pdata->powerdown_delay_divider = ilog2(tmp8); pdata 1184 sound/soc/codecs/sta350.c sta350->pdata = pdata; pdata 1202 sound/soc/codecs/sta350.c sta350->pdata = dev_get_platdata(dev); pdata 191 sound/soc/codecs/sta529.c int pdata, play_freq_val, record_freq_val; pdata 196 sound/soc/codecs/sta529.c pdata = 1; pdata 200 sound/soc/codecs/sta529.c pdata = 2; pdata 204 sound/soc/codecs/sta529.c pdata = 3; pdata 237 sound/soc/codecs/sta529.c pdata << 6); pdata 244 sound/soc/codecs/sta529.c pdata << 6); pdata 165 sound/soc/codecs/tlv320aic31xx.c struct aic31xx_pdata pdata; pdata 1547 sound/soc/codecs/tlv320aic31xx.c memcpy(&aic31xx->pdata, dev_get_platdata(aic31xx->dev), sizeof(aic31xx->pdata)); pdata 1548 sound/soc/codecs/tlv320aic31xx.c aic31xx->codec_type = aic31xx->pdata.codec_type; pdata 1549 sound/soc/codecs/tlv320aic31xx.c aic31xx->micbias_vg = aic31xx->pdata.micbias_vg; pdata 1157 sound/soc/codecs/tlv320aic32x4.c struct aic32x4_pdata *pdata = dev->platform_data; pdata 1172 sound/soc/codecs/tlv320aic32x4.c if (pdata) { pdata 1173 sound/soc/codecs/tlv320aic32x4.c aic32x4->power_cfg = pdata->power_cfg; pdata 1174 sound/soc/codecs/tlv320aic32x4.c aic32x4->swapdacs = pdata->swapdacs; pdata 1175 sound/soc/codecs/tlv320aic32x4.c aic32x4->micpga_routing = pdata->micpga_routing; pdata 1176 sound/soc/codecs/tlv320aic32x4.c aic32x4->rstn_gpio = pdata->rstn_gpio; pdata 1776 sound/soc/codecs/tlv320aic3x.c struct aic3x_pdata *pdata = i2c->dev.platform_data; pdata 1796 sound/soc/codecs/tlv320aic3x.c if (pdata) { pdata 1797 sound/soc/codecs/tlv320aic3x.c aic3x->gpio_reset = pdata->gpio_reset; pdata 1798 sound/soc/codecs/tlv320aic3x.c aic3x->setup = pdata->setup; pdata 1799 sound/soc/codecs/tlv320aic3x.c aic3x->micbias_vg = pdata->micbias_vg; pdata 1469 sound/soc/codecs/tlv320dac33.c struct tlv320dac33_platform_data *pdata; pdata 1477 sound/soc/codecs/tlv320dac33.c pdata = client->dev.platform_data; pdata 1497 sound/soc/codecs/tlv320dac33.c dac33->power_gpio = pdata->power_gpio; pdata 1498 sound/soc/codecs/tlv320dac33.c dac33->burst_bclkdiv = pdata->burst_bclkdiv; pdata 1499 sound/soc/codecs/tlv320dac33.c dac33->keep_bclk = pdata->keep_bclk; pdata 1500 sound/soc/codecs/tlv320dac33.c dac33->mode1_latency = pdata->mode1_latency; pdata 217 sound/soc/codecs/tpa6130a2.c struct tpa6130a2_platform_data *pdata = client->dev.platform_data; pdata 235 sound/soc/codecs/tpa6130a2.c if (pdata) { pdata 236 sound/soc/codecs/tpa6130a2.c data->power_gpio = pdata->power_gpio; pdata 61 sound/soc/codecs/twl4030.c struct twl4030_codec_data *pdata; pdata 196 sound/soc/codecs/twl4030.c static void twl4030_setup_pdata_of(struct twl4030_codec_data *pdata, pdata 202 sound/soc/codecs/twl4030.c &pdata->digimic_delay); pdata 204 sound/soc/codecs/twl4030.c &pdata->ramp_delay_value); pdata 206 sound/soc/codecs/twl4030.c &pdata->offset_cncl_path); pdata 208 sound/soc/codecs/twl4030.c pdata->hs_extmute = value; pdata 210 sound/soc/codecs/twl4030.c pdata->hs_extmute_gpio = of_get_named_gpio(node, pdata 212 sound/soc/codecs/twl4030.c if (gpio_is_valid(pdata->hs_extmute_gpio)) pdata 213 sound/soc/codecs/twl4030.c pdata->hs_extmute = 1; pdata 218 sound/soc/codecs/twl4030.c struct twl4030_codec_data *pdata = dev_get_platdata(component->dev); pdata 224 sound/soc/codecs/twl4030.c if (!pdata && twl4030_codec_node) { pdata 225 sound/soc/codecs/twl4030.c pdata = devm_kzalloc(component->dev, pdata 228 sound/soc/codecs/twl4030.c if (!pdata) { pdata 232 sound/soc/codecs/twl4030.c twl4030_setup_pdata_of(pdata, twl4030_codec_node); pdata 236 sound/soc/codecs/twl4030.c return pdata; pdata 241 sound/soc/codecs/twl4030.c struct twl4030_codec_data *pdata; pdata 246 sound/soc/codecs/twl4030.c pdata = twl4030_get_pdata(component); pdata 248 sound/soc/codecs/twl4030.c if (pdata && pdata->hs_extmute) { pdata 249 sound/soc/codecs/twl4030.c if (gpio_is_valid(pdata->hs_extmute_gpio)) { pdata 252 sound/soc/codecs/twl4030.c if (!pdata->hs_extmute_gpio) pdata 256 sound/soc/codecs/twl4030.c ret = gpio_request_one(pdata->hs_extmute_gpio, pdata 262 sound/soc/codecs/twl4030.c pdata->hs_extmute_gpio = -1; pdata 293 sound/soc/codecs/twl4030.c if (!pdata) pdata 296 sound/soc/codecs/twl4030.c twl4030->pdata = pdata; pdata 300 sound/soc/codecs/twl4030.c reg |= (pdata->ramp_delay_value << 2); pdata 308 sound/soc/codecs/twl4030.c reg |= pdata->offset_cncl_path; pdata 695 sound/soc/codecs/twl4030.c struct twl4030_codec_data *pdata = twl4030->pdata; pdata 708 sound/soc/codecs/twl4030.c if (pdata && pdata->hs_extmute) { pdata 709 sound/soc/codecs/twl4030.c if (gpio_is_valid(pdata->hs_extmute_gpio)) { pdata 710 sound/soc/codecs/twl4030.c gpio_set_value(pdata->hs_extmute_gpio, 1); pdata 744 sound/soc/codecs/twl4030.c if (pdata && pdata->hs_extmute) { pdata 745 sound/soc/codecs/twl4030.c if (gpio_is_valid(pdata->hs_extmute_gpio)) { pdata 746 sound/soc/codecs/twl4030.c gpio_set_value(pdata->hs_extmute_gpio, 0); pdata 809 sound/soc/codecs/twl4030.c struct twl4030_codec_data *pdata = twl4030->pdata; pdata 811 sound/soc/codecs/twl4030.c if (pdata && pdata->digimic_delay) pdata 812 sound/soc/codecs/twl4030.c twl4030_wait_ms(pdata->digimic_delay); pdata 2173 sound/soc/codecs/twl4030.c struct twl4030_codec_data *pdata = twl4030->pdata; pdata 2175 sound/soc/codecs/twl4030.c if (pdata && pdata->hs_extmute && gpio_is_valid(pdata->hs_extmute_gpio)) pdata 2176 sound/soc/codecs/twl4030.c gpio_free(pdata->hs_extmute_gpio); pdata 153 sound/soc/codecs/uda1380.c struct uda1380_platform_data *pdata = component->dev->platform_data; pdata 156 sound/soc/codecs/uda1380.c if (gpio_is_valid(pdata->gpio_reset)) { pdata 157 sound/soc/codecs/uda1380.c gpio_set_value(pdata->gpio_reset, 1); pdata 159 sound/soc/codecs/uda1380.c gpio_set_value(pdata->gpio_reset, 0); pdata 593 sound/soc/codecs/uda1380.c struct uda1380_platform_data *pdata = component->dev->platform_data; pdata 603 sound/soc/codecs/uda1380.c if (gpio_is_valid(pdata->gpio_power)) { pdata 604 sound/soc/codecs/uda1380.c gpio_set_value(pdata->gpio_power, 1); pdata 614 sound/soc/codecs/uda1380.c if (!gpio_is_valid(pdata->gpio_power)) pdata 617 sound/soc/codecs/uda1380.c gpio_set_value(pdata->gpio_power, 0); pdata 696 sound/soc/codecs/uda1380.c struct uda1380_platform_data *pdata =component->dev->platform_data; pdata 702 sound/soc/codecs/uda1380.c if (!gpio_is_valid(pdata->gpio_power)) { pdata 711 sound/soc/codecs/uda1380.c switch (pdata->dac_clk) { pdata 745 sound/soc/codecs/uda1380.c struct uda1380_platform_data *pdata = i2c->dev.platform_data; pdata 749 sound/soc/codecs/uda1380.c if (!pdata) pdata 757 sound/soc/codecs/uda1380.c if (gpio_is_valid(pdata->gpio_reset)) { pdata 758 sound/soc/codecs/uda1380.c ret = devm_gpio_request_one(&i2c->dev, pdata->gpio_reset, pdata 764 sound/soc/codecs/uda1380.c if (gpio_is_valid(pdata->gpio_power)) { pdata 765 sound/soc/codecs/uda1380.c ret = devm_gpio_request_one(&i2c->dev, pdata->gpio_power, pdata 95 sound/soc/codecs/wm0010.c struct wm0010_pdata pdata; pdata 888 sound/soc/codecs/wm0010.c memcpy(&wm0010->pdata, dev_get_platdata(&spi->dev), pdata 889 sound/soc/codecs/wm0010.c sizeof(wm0010->pdata)); pdata 910 sound/soc/codecs/wm0010.c if (wm0010->pdata.gpio_reset) { pdata 911 sound/soc/codecs/wm0010.c wm0010->gpio_reset = wm0010->pdata.gpio_reset; pdata 913 sound/soc/codecs/wm0010.c if (wm0010->pdata.reset_active_high) pdata 939 sound/soc/codecs/wm0010.c if (wm0010->pdata.irq_flags) pdata 940 sound/soc/codecs/wm0010.c trigger = wm0010->pdata.irq_flags; pdata 152 sound/soc/codecs/wm1250-ev1.c struct wm1250_ev1_pdata *pdata = dev_get_platdata(&i2c->dev); pdata 156 sound/soc/codecs/wm1250-ev1.c if (!pdata) pdata 166 sound/soc/codecs/wm1250-ev1.c wm1250->gpios[i].gpio = pdata->gpios[i]; pdata 814 sound/soc/codecs/wm2000.c struct wm2000_platform_data *pdata; pdata 888 sound/soc/codecs/wm2000.c pdata = dev_get_platdata(&i2c->dev); pdata 889 sound/soc/codecs/wm2000.c if (pdata) { pdata 890 sound/soc/codecs/wm2000.c wm2000->speech_clarity = !pdata->speech_enh_disable; pdata 892 sound/soc/codecs/wm2000.c if (pdata->download_file) pdata 893 sound/soc/codecs/wm2000.c filename = pdata->download_file; pdata 88 sound/soc/codecs/wm2200.c struct wm2200_pdata pdata; pdata 986 sound/soc/codecs/wm2200.c if (wm2200->pdata.reset) { pdata 987 sound/soc/codecs/wm2200.c gpio_set_value_cansleep(wm2200->pdata.reset, 0); pdata 988 sound/soc/codecs/wm2200.c gpio_set_value_cansleep(wm2200->pdata.reset, 1); pdata 2190 sound/soc/codecs/wm2200.c struct wm2200_pdata *pdata = dev_get_platdata(&i2c->dev); pdata 2234 sound/soc/codecs/wm2200.c if (pdata) pdata 2235 sound/soc/codecs/wm2200.c wm2200->pdata = *pdata; pdata 2259 sound/soc/codecs/wm2200.c if (wm2200->pdata.ldo_ena) { pdata 2260 sound/soc/codecs/wm2200.c ret = devm_gpio_request_one(&i2c->dev, wm2200->pdata.ldo_ena, pdata 2265 sound/soc/codecs/wm2200.c wm2200->pdata.ldo_ena, ret); pdata 2271 sound/soc/codecs/wm2200.c if (wm2200->pdata.reset) { pdata 2272 sound/soc/codecs/wm2200.c ret = devm_gpio_request_one(&i2c->dev, wm2200->pdata.reset, pdata 2277 sound/soc/codecs/wm2200.c wm2200->pdata.reset, ret); pdata 2327 sound/soc/codecs/wm2200.c for (i = 0; i < ARRAY_SIZE(wm2200->pdata.gpio_defaults); i++) { pdata 2328 sound/soc/codecs/wm2200.c if (!wm2200->pdata.gpio_defaults[i]) pdata 2332 sound/soc/codecs/wm2200.c wm2200->pdata.gpio_defaults[i]); pdata 2346 sound/soc/codecs/wm2200.c if (!wm2200->pdata.micbias[i].mb_lvl && pdata 2347 sound/soc/codecs/wm2200.c !wm2200->pdata.micbias[i].bypass) pdata 2351 sound/soc/codecs/wm2200.c if (!wm2200->pdata.micbias[i].mb_lvl) pdata 2352 sound/soc/codecs/wm2200.c wm2200->pdata.micbias[i].mb_lvl pdata 2355 sound/soc/codecs/wm2200.c val = (wm2200->pdata.micbias[i].mb_lvl -1) pdata 2358 sound/soc/codecs/wm2200.c if (wm2200->pdata.micbias[i].discharge) pdata 2361 sound/soc/codecs/wm2200.c if (wm2200->pdata.micbias[i].fast_start) pdata 2364 sound/soc/codecs/wm2200.c if (wm2200->pdata.micbias[i].bypass) pdata 2375 sound/soc/codecs/wm2200.c for (i = 0; i < ARRAY_SIZE(wm2200->pdata.in_mode); i++) { pdata 2379 sound/soc/codecs/wm2200.c (wm2200->pdata.in_mode[i] << pdata 2381 sound/soc/codecs/wm2200.c (wm2200->pdata.dmic_sup[i] << pdata 2416 sound/soc/codecs/wm2200.c if (wm2200->pdata.reset) pdata 2417 sound/soc/codecs/wm2200.c gpio_set_value_cansleep(wm2200->pdata.reset, 0); pdata 2419 sound/soc/codecs/wm2200.c if (wm2200->pdata.ldo_ena) pdata 2420 sound/soc/codecs/wm2200.c gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 0); pdata 2434 sound/soc/codecs/wm2200.c if (wm2200->pdata.reset) pdata 2435 sound/soc/codecs/wm2200.c gpio_set_value_cansleep(wm2200->pdata.reset, 0); pdata 2436 sound/soc/codecs/wm2200.c if (wm2200->pdata.ldo_ena) pdata 2437 sound/soc/codecs/wm2200.c gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 0); pdata 2451 sound/soc/codecs/wm2200.c if (wm2200->pdata.ldo_ena) pdata 2452 sound/soc/codecs/wm2200.c gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 0); pdata 2472 sound/soc/codecs/wm2200.c if (wm2200->pdata.ldo_ena) { pdata 2473 sound/soc/codecs/wm2200.c gpio_set_value_cansleep(wm2200->pdata.ldo_ena, 1); pdata 78 sound/soc/codecs/wm5100.c struct wm5100_pdata pdata; pdata 208 sound/soc/codecs/wm5100.c if (wm5100->pdata.reset) { pdata 209 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.reset, 0); pdata 210 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.reset, 1); pdata 1972 sound/soc/codecs/wm5100.c struct wm5100_jack_mode *mode = &wm5100->pdata.jack_modes[the_mode]; pdata 1974 sound/soc/codecs/wm5100.c if (WARN_ON(the_mode >= ARRAY_SIZE(wm5100->pdata.jack_modes))) pdata 1977 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.hp_pol, mode->hp_pol); pdata 2303 sound/soc/codecs/wm5100.c if (wm5100->pdata.gpio_base) pdata 2304 sound/soc/codecs/wm5100.c wm5100->gpio_chip.base = wm5100->pdata.gpio_base; pdata 2352 sound/soc/codecs/wm5100.c if (wm5100->pdata.hp_pol) { pdata 2353 sound/soc/codecs/wm5100.c ret = gpio_request_one(wm5100->pdata.hp_pol, pdata 2357 sound/soc/codecs/wm5100.c wm5100->pdata.hp_pol, ret); pdata 2373 sound/soc/codecs/wm5100.c if (wm5100->pdata.hp_pol) { pdata 2374 sound/soc/codecs/wm5100.c gpio_free(wm5100->pdata.hp_pol); pdata 2417 sound/soc/codecs/wm5100.c struct wm5100_pdata *pdata = dev_get_platdata(&i2c->dev); pdata 2440 sound/soc/codecs/wm5100.c if (pdata) pdata 2441 sound/soc/codecs/wm5100.c wm5100->pdata = *pdata; pdata 2465 sound/soc/codecs/wm5100.c if (wm5100->pdata.ldo_ena) { pdata 2466 sound/soc/codecs/wm5100.c ret = gpio_request_one(wm5100->pdata.ldo_ena, pdata 2470 sound/soc/codecs/wm5100.c wm5100->pdata.ldo_ena, ret); pdata 2476 sound/soc/codecs/wm5100.c if (wm5100->pdata.reset) { pdata 2477 sound/soc/codecs/wm5100.c ret = gpio_request_one(wm5100->pdata.reset, pdata 2481 sound/soc/codecs/wm5100.c wm5100->pdata.reset, ret); pdata 2535 sound/soc/codecs/wm5100.c for (i = 0; i < ARRAY_SIZE(wm5100->pdata.gpio_defaults); i++) { pdata 2536 sound/soc/codecs/wm5100.c if (!wm5100->pdata.gpio_defaults[i]) pdata 2540 sound/soc/codecs/wm5100.c wm5100->pdata.gpio_defaults[i]); pdata 2543 sound/soc/codecs/wm5100.c for (i = 0; i < ARRAY_SIZE(wm5100->pdata.in_mode); i++) { pdata 2547 sound/soc/codecs/wm5100.c (wm5100->pdata.in_mode[i] << pdata 2549 sound/soc/codecs/wm5100.c (wm5100->pdata.dmic_sup[i] << pdata 2554 sound/soc/codecs/wm5100.c if (wm5100->pdata.irq_flags) pdata 2555 sound/soc/codecs/wm5100.c irq_flags = wm5100->pdata.irq_flags; pdata 2624 sound/soc/codecs/wm5100.c if (wm5100->pdata.reset) { pdata 2625 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.reset, 0); pdata 2626 sound/soc/codecs/wm5100.c gpio_free(wm5100->pdata.reset); pdata 2629 sound/soc/codecs/wm5100.c if (wm5100->pdata.ldo_ena) { pdata 2630 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.ldo_ena, 0); pdata 2631 sound/soc/codecs/wm5100.c gpio_free(wm5100->pdata.ldo_ena); pdata 2648 sound/soc/codecs/wm5100.c if (wm5100->pdata.reset) { pdata 2649 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.reset, 0); pdata 2650 sound/soc/codecs/wm5100.c gpio_free(wm5100->pdata.reset); pdata 2652 sound/soc/codecs/wm5100.c if (wm5100->pdata.ldo_ena) { pdata 2653 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.ldo_ena, 0); pdata 2654 sound/soc/codecs/wm5100.c gpio_free(wm5100->pdata.ldo_ena); pdata 2667 sound/soc/codecs/wm5100.c if (wm5100->pdata.ldo_ena) pdata 2668 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.ldo_ena, 0); pdata 2688 sound/soc/codecs/wm5100.c if (wm5100->pdata.ldo_ena) { pdata 2689 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.ldo_ena, 1); pdata 38 sound/soc/codecs/wm8741.c struct wm8741_platform_data pdata; pdata 419 sound/soc/codecs/wm8741.c switch (wm8741->pdata.diff_mode) { pdata 426 sound/soc/codecs/wm8741.c wm8741->pdata.diff_mode << WM8741_DIFF_SHIFT); pdata 449 sound/soc/codecs/wm8741.c switch (wm8741->pdata.diff_mode) { pdata 551 sound/soc/codecs/wm8741.c const struct wm8741_platform_data *pdata = dev_get_platdata(dev); pdata 557 sound/soc/codecs/wm8741.c wm8741->pdata.diff_mode = diff_mode; pdata 559 sound/soc/codecs/wm8741.c if (pdata != NULL) pdata 560 sound/soc/codecs/wm8741.c memcpy(&wm8741->pdata, pdata, sizeof(wm8741->pdata)); pdata 125 sound/soc/codecs/wm8903.c struct wm8903_platform_data *pdata; pdata 1852 sound/soc/codecs/wm8903.c struct wm8903_platform_data *pdata = wm8903->pdata; pdata 1859 sound/soc/codecs/wm8903.c if (pdata->gpio_base) pdata 1860 sound/soc/codecs/wm8903.c wm8903->gpio_chip.base = pdata->gpio_base; pdata 1914 sound/soc/codecs/wm8903.c struct wm8903_platform_data *pdata) pdata 1932 sound/soc/codecs/wm8903.c pdata->irq_active_low = false; pdata 1935 sound/soc/codecs/wm8903.c pdata->irq_active_low = true; pdata 1943 sound/soc/codecs/wm8903.c struct wm8903_platform_data *pdata) pdata 1950 sound/soc/codecs/wm8903.c pdata->micdet_cfg = val32; pdata 1953 sound/soc/codecs/wm8903.c pdata->micdet_delay = val32; pdata 1955 sound/soc/codecs/wm8903.c if (of_property_read_u32_array(np, "gpio-cfg", pdata->gpio_cfg, pdata 1956 sound/soc/codecs/wm8903.c ARRAY_SIZE(pdata->gpio_cfg)) >= 0) { pdata 1969 sound/soc/codecs/wm8903.c for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { pdata 1970 sound/soc/codecs/wm8903.c if (pdata->gpio_cfg[i] == 0) { pdata 1971 sound/soc/codecs/wm8903.c pdata->gpio_cfg[i] = WM8903_GPIO_CONFIG_ZERO; pdata 1972 sound/soc/codecs/wm8903.c } else if (pdata->gpio_cfg[i] == 0xffffffff) { pdata 1973 sound/soc/codecs/wm8903.c pdata->gpio_cfg[i] = 0; pdata 1974 sound/soc/codecs/wm8903.c } else if (pdata->gpio_cfg[i] > 0x7fff) { pdata 1976 sound/soc/codecs/wm8903.c i, pdata->gpio_cfg[i]); pdata 1988 sound/soc/codecs/wm8903.c struct wm8903_platform_data *pdata = dev_get_platdata(&i2c->dev); pdata 2013 sound/soc/codecs/wm8903.c if (pdata) { pdata 2014 sound/soc/codecs/wm8903.c wm8903->pdata = pdata; pdata 2016 sound/soc/codecs/wm8903.c wm8903->pdata = devm_kzalloc(&i2c->dev, sizeof(*wm8903->pdata), pdata 2018 sound/soc/codecs/wm8903.c if (!wm8903->pdata) pdata 2022 sound/soc/codecs/wm8903.c ret = wm8903_set_pdata_irq_trigger(i2c, wm8903->pdata); pdata 2028 sound/soc/codecs/wm8903.c ret = wm8903_set_pdata_from_of(i2c, wm8903->pdata); pdata 2034 sound/soc/codecs/wm8903.c pdata = wm8903->pdata; pdata 2078 sound/soc/codecs/wm8903.c for (i = 0; i < ARRAY_SIZE(pdata->gpio_cfg); i++) { pdata 2079 sound/soc/codecs/wm8903.c if ((!pdata->gpio_cfg[i]) || pdata 2080 sound/soc/codecs/wm8903.c (pdata->gpio_cfg[i] > WM8903_GPIO_CONFIG_ZERO)) pdata 2084 sound/soc/codecs/wm8903.c pdata->gpio_cfg[i] & 0x7fff); pdata 2086 sound/soc/codecs/wm8903.c val = (pdata->gpio_cfg[i] & WM8903_GP1_FN_MASK) pdata 2101 sound/soc/codecs/wm8903.c pdata->micdet_cfg); pdata 2104 sound/soc/codecs/wm8903.c if (pdata->micdet_cfg) pdata 2114 sound/soc/codecs/wm8903.c WARN_ON(!mic_gpio && (pdata->micdet_cfg & WM8903_MICDET_ENA)); pdata 2116 sound/soc/codecs/wm8903.c wm8903->mic_delay = pdata->micdet_delay; pdata 2119 sound/soc/codecs/wm8903.c if (pdata->irq_active_low) { pdata 54 sound/soc/codecs/wm8904.c struct wm8904_pdata *pdata; pdata 373 sound/soc/codecs/wm8904.c struct wm8904_pdata *pdata = wm8904->pdata; pdata 381 sound/soc/codecs/wm8904.c pdata->drc_cfgs[wm8904->drc_cfg].regs[i]); pdata 393 sound/soc/codecs/wm8904.c struct wm8904_pdata *pdata = wm8904->pdata; pdata 396 sound/soc/codecs/wm8904.c if (value >= pdata->num_drc_cfgs) pdata 420 sound/soc/codecs/wm8904.c struct wm8904_pdata *pdata = wm8904->pdata; pdata 423 sound/soc/codecs/wm8904.c if (!pdata || !wm8904->num_retune_mobile_texts) pdata 431 sound/soc/codecs/wm8904.c for (i = 0; i < pdata->num_retune_mobile_cfgs; i++) { pdata 432 sound/soc/codecs/wm8904.c if (strcmp(pdata->retune_mobile_cfgs[i].name, pdata 434 sound/soc/codecs/wm8904.c abs(pdata->retune_mobile_cfgs[i].rate pdata 437 sound/soc/codecs/wm8904.c best_val = abs(pdata->retune_mobile_cfgs[i].rate pdata 443 sound/soc/codecs/wm8904.c pdata->retune_mobile_cfgs[best].name, pdata 444 sound/soc/codecs/wm8904.c pdata->retune_mobile_cfgs[best].rate, pdata 454 sound/soc/codecs/wm8904.c pdata->retune_mobile_cfgs[best].regs[i]); pdata 464 sound/soc/codecs/wm8904.c struct wm8904_pdata *pdata = wm8904->pdata; pdata 467 sound/soc/codecs/wm8904.c if (value >= pdata->num_retune_mobile_cfgs) pdata 1969 sound/soc/codecs/wm8904.c struct wm8904_pdata *pdata = wm8904->pdata; pdata 1984 sound/soc/codecs/wm8904.c for (i = 0; i < pdata->num_retune_mobile_cfgs; i++) { pdata 1986 sound/soc/codecs/wm8904.c if (strcmp(pdata->retune_mobile_cfgs[i].name, pdata 2004 sound/soc/codecs/wm8904.c pdata->retune_mobile_cfgs[i].name; pdata 2026 sound/soc/codecs/wm8904.c struct wm8904_pdata *pdata = wm8904->pdata; pdata 2029 sound/soc/codecs/wm8904.c if (!pdata) { pdata 2035 sound/soc/codecs/wm8904.c dev_dbg(component->dev, "%d DRC configurations\n", pdata->num_drc_cfgs); pdata 2037 sound/soc/codecs/wm8904.c if (pdata->num_drc_cfgs) { pdata 2043 sound/soc/codecs/wm8904.c wm8904->drc_texts = kmalloc_array(pdata->num_drc_cfgs, pdata 2049 sound/soc/codecs/wm8904.c for (i = 0; i < pdata->num_drc_cfgs; i++) pdata 2050 sound/soc/codecs/wm8904.c wm8904->drc_texts[i] = pdata->drc_cfgs[i].name; pdata 2052 sound/soc/codecs/wm8904.c wm8904->drc_enum.items = pdata->num_drc_cfgs; pdata 2064 sound/soc/codecs/wm8904.c pdata->num_retune_mobile_cfgs); pdata 2066 sound/soc/codecs/wm8904.c if (pdata->num_retune_mobile_cfgs) pdata 2181 sound/soc/codecs/wm8904.c wm8904->pdata = i2c->dev.platform_data; pdata 2250 sound/soc/codecs/wm8904.c if (wm8904->pdata) { pdata 2252 sound/soc/codecs/wm8904.c if (!wm8904->pdata->gpio_cfg[i]) pdata 2258 sound/soc/codecs/wm8904.c wm8904->pdata->gpio_cfg[i]); pdata 2266 sound/soc/codecs/wm8904.c wm8904->pdata->mic_cfg[i]); pdata 695 sound/soc/codecs/wm8940.c struct wm8940_setup_data *pdata = component->dev->platform_data; pdata 711 sound/soc/codecs/wm8940.c if (!pdata) pdata 715 sound/soc/codecs/wm8940.c ret = snd_soc_component_write(component, WM8940_OUTPUTCTL, reg | pdata->vroi); pdata 869 sound/soc/codecs/wm8955.c struct wm8955_pdata *pdata = dev_get_platdata(component->dev); pdata 919 sound/soc/codecs/wm8955.c if (pdata) { pdata 920 sound/soc/codecs/wm8955.c if (pdata->out2_speaker) pdata 924 sound/soc/codecs/wm8955.c if (pdata->monoin_diff) pdata 210 sound/soc/codecs/wm8958-dsp2.c if (control->pdata.num_mbc_cfgs) { pdata 212 sound/soc/codecs/wm8958-dsp2.c = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; pdata 249 sound/soc/codecs/wm8958-dsp2.c if (control->pdata.num_mbc_cfgs) { pdata 251 sound/soc/codecs/wm8958-dsp2.c = &control->pdata.mbc_cfgs[wm8994->mbc_cfg]; pdata 258 sound/soc/codecs/wm8958-dsp2.c if (control->pdata.num_vss_cfgs) { pdata 260 sound/soc/codecs/wm8958-dsp2.c = &control->pdata.vss_cfgs[wm8994->vss_cfg]; pdata 266 sound/soc/codecs/wm8958-dsp2.c if (control->pdata.num_vss_hpf_cfgs) { pdata 268 sound/soc/codecs/wm8958-dsp2.c = &control->pdata.vss_hpf_cfgs[wm8994->vss_hpf_cfg]; pdata 309 sound/soc/codecs/wm8958-dsp2.c if (control->pdata.num_enh_eq_cfgs) { pdata 311 sound/soc/codecs/wm8958-dsp2.c = &control->pdata.enh_eq_cfgs[wm8994->enh_eq_cfg]; pdata 467 sound/soc/codecs/wm8958-dsp2.c if (value >= control->pdata.num_mbc_cfgs) pdata 557 sound/soc/codecs/wm8958-dsp2.c if (value >= control->pdata.num_vss_cfgs) pdata 590 sound/soc/codecs/wm8958-dsp2.c if (value >= control->pdata.num_vss_hpf_cfgs) pdata 757 sound/soc/codecs/wm8958-dsp2.c if (value >= control->pdata.num_enh_eq_cfgs) pdata 901 sound/soc/codecs/wm8958-dsp2.c struct wm8994_pdata *pdata = &control->pdata; pdata 925 sound/soc/codecs/wm8958-dsp2.c if (pdata->num_mbc_cfgs) { pdata 932 sound/soc/codecs/wm8958-dsp2.c wm8994->mbc_texts = kmalloc_array(pdata->num_mbc_cfgs, pdata 938 sound/soc/codecs/wm8958-dsp2.c for (i = 0; i < pdata->num_mbc_cfgs; i++) pdata 939 sound/soc/codecs/wm8958-dsp2.c wm8994->mbc_texts[i] = pdata->mbc_cfgs[i].name; pdata 941 sound/soc/codecs/wm8958-dsp2.c wm8994->mbc_enum.items = pdata->num_mbc_cfgs; pdata 951 sound/soc/codecs/wm8958-dsp2.c if (pdata->num_vss_cfgs) { pdata 958 sound/soc/codecs/wm8958-dsp2.c wm8994->vss_texts = kmalloc_array(pdata->num_vss_cfgs, pdata 964 sound/soc/codecs/wm8958-dsp2.c for (i = 0; i < pdata->num_vss_cfgs; i++) pdata 965 sound/soc/codecs/wm8958-dsp2.c wm8994->vss_texts[i] = pdata->vss_cfgs[i].name; pdata 967 sound/soc/codecs/wm8958-dsp2.c wm8994->vss_enum.items = pdata->num_vss_cfgs; pdata 977 sound/soc/codecs/wm8958-dsp2.c if (pdata->num_vss_hpf_cfgs) { pdata 985 sound/soc/codecs/wm8958-dsp2.c wm8994->vss_hpf_texts = kmalloc_array(pdata->num_vss_hpf_cfgs, pdata 991 sound/soc/codecs/wm8958-dsp2.c for (i = 0; i < pdata->num_vss_hpf_cfgs; i++) pdata 992 sound/soc/codecs/wm8958-dsp2.c wm8994->vss_hpf_texts[i] = pdata->vss_hpf_cfgs[i].name; pdata 994 sound/soc/codecs/wm8958-dsp2.c wm8994->vss_hpf_enum.items = pdata->num_vss_hpf_cfgs; pdata 1005 sound/soc/codecs/wm8958-dsp2.c if (pdata->num_enh_eq_cfgs) { pdata 1013 sound/soc/codecs/wm8958-dsp2.c wm8994->enh_eq_texts = kmalloc_array(pdata->num_enh_eq_cfgs, pdata 1019 sound/soc/codecs/wm8958-dsp2.c for (i = 0; i < pdata->num_enh_eq_cfgs; i++) pdata 1020 sound/soc/codecs/wm8958-dsp2.c wm8994->enh_eq_texts[i] = pdata->enh_eq_cfgs[i].name; pdata 1022 sound/soc/codecs/wm8958-dsp2.c wm8994->enh_eq_enum.items = pdata->num_enh_eq_cfgs; pdata 135 sound/soc/codecs/wm8960.c struct wm8960_data pdata; pdata 473 sound/soc/codecs/wm8960.c struct wm8960_data *pdata = &wm8960->pdata; pdata 485 sound/soc/codecs/wm8960.c if (pdata && pdata->capless) { pdata 1346 sound/soc/codecs/wm8960.c struct wm8960_data *pdata = &wm8960->pdata; pdata 1348 sound/soc/codecs/wm8960.c if (pdata->capless) pdata 1383 sound/soc/codecs/wm8960.c struct wm8960_data *pdata) pdata 1388 sound/soc/codecs/wm8960.c pdata->capless = true; pdata 1391 sound/soc/codecs/wm8960.c pdata->shared_lrclk = true; pdata 1397 sound/soc/codecs/wm8960.c struct wm8960_data *pdata = dev_get_platdata(&i2c->dev); pdata 1416 sound/soc/codecs/wm8960.c if (pdata) pdata 1417 sound/soc/codecs/wm8960.c memcpy(&wm8960->pdata, pdata, sizeof(struct wm8960_data)); pdata 1419 sound/soc/codecs/wm8960.c wm8960_set_pdata_from_of(i2c, &wm8960->pdata); pdata 1427 sound/soc/codecs/wm8960.c if (wm8960->pdata.shared_lrclk) { pdata 52 sound/soc/codecs/wm8962.c struct wm8962_pdata pdata; pdata 2356 sound/soc/codecs/wm8962.c struct wm8962_pdata *pdata = &wm8962->pdata; pdata 2361 sound/soc/codecs/wm8962.c if (pdata->spk_mono) pdata 2371 sound/soc/codecs/wm8962.c if (pdata->spk_mono) pdata 2380 sound/soc/codecs/wm8962.c if (pdata->spk_mono) pdata 3369 sound/soc/codecs/wm8962.c struct wm8962_pdata *pdata = &wm8962->pdata; pdata 3376 sound/soc/codecs/wm8962.c if (pdata->gpio_base) pdata 3377 sound/soc/codecs/wm8962.c wm8962->gpio_chip.base = pdata->gpio_base; pdata 3504 sound/soc/codecs/wm8962.c struct wm8962_pdata *pdata) pdata 3511 sound/soc/codecs/wm8962.c pdata->spk_mono = true; pdata 3514 sound/soc/codecs/wm8962.c pdata->mic_cfg = val32; pdata 3516 sound/soc/codecs/wm8962.c if (of_property_read_u32_array(np, "gpio-cfg", pdata->gpio_init, pdata 3517 sound/soc/codecs/wm8962.c ARRAY_SIZE(pdata->gpio_init)) >= 0) pdata 3518 sound/soc/codecs/wm8962.c for (i = 0; i < ARRAY_SIZE(pdata->gpio_init); i++) { pdata 3524 sound/soc/codecs/wm8962.c if (pdata->gpio_init[i] > 0xffff) pdata 3525 sound/soc/codecs/wm8962.c pdata->gpio_init[i] = 0x0; pdata 3528 sound/soc/codecs/wm8962.c pdata->mclk = devm_clk_get(&i2c->dev, NULL); pdata 3536 sound/soc/codecs/wm8962.c struct wm8962_pdata *pdata = dev_get_platdata(&i2c->dev); pdata 3554 sound/soc/codecs/wm8962.c if (pdata) { pdata 3555 sound/soc/codecs/wm8962.c memcpy(&wm8962->pdata, pdata, sizeof(struct wm8962_pdata)); pdata 3557 sound/soc/codecs/wm8962.c ret = wm8962_set_pdata_from_of(i2c, &wm8962->pdata); pdata 3563 sound/soc/codecs/wm8962.c if (IS_ERR(wm8962->pdata.mclk)) { pdata 3565 sound/soc/codecs/wm8962.c if (PTR_ERR(wm8962->pdata.mclk) == -EPROBE_DEFER) pdata 3567 sound/soc/codecs/wm8962.c wm8962->pdata.mclk = NULL; pdata 3649 sound/soc/codecs/wm8962.c for (i = 0; i < ARRAY_SIZE(wm8962->pdata.gpio_init); i++) pdata 3650 sound/soc/codecs/wm8962.c if (wm8962->pdata.gpio_init[i]) { pdata 3653 sound/soc/codecs/wm8962.c wm8962->pdata.gpio_init[i] & 0xffff); pdata 3658 sound/soc/codecs/wm8962.c if (wm8962->pdata.spk_mono) pdata 3664 sound/soc/codecs/wm8962.c if (wm8962->pdata.mic_cfg) pdata 3670 sound/soc/codecs/wm8962.c wm8962->pdata.mic_cfg); pdata 3704 sound/soc/codecs/wm8962.c if (wm8962->pdata.in4_dc_measure) { pdata 3715 sound/soc/codecs/wm8962.c if (wm8962->pdata.irq_active_low) { pdata 3780 sound/soc/codecs/wm8962.c ret = clk_prepare_enable(wm8962->pdata.mclk); pdata 3830 sound/soc/codecs/wm8962.c clk_disable_unprepare(wm8962->pdata.mclk); pdata 3850 sound/soc/codecs/wm8962.c clk_disable_unprepare(wm8962->pdata.mclk); pdata 208 sound/soc/codecs/wm8993.c struct wm8993_platform_data pdata; pdata 1015 sound/soc/codecs/wm8993.c if (!wm8993->pdata.lineout1_diff || pdata 1016 sound/soc/codecs/wm8993.c !wm8993->pdata.lineout2_diff) pdata 1301 sound/soc/codecs/wm8993.c if (wm8993->pdata.num_retune_configs) { pdata 1306 sound/soc/codecs/wm8993.c best_val = abs(wm8993->pdata.retune_configs[0].rate pdata 1308 sound/soc/codecs/wm8993.c for (i = 0; i < wm8993->pdata.num_retune_configs; i++) { pdata 1309 sound/soc/codecs/wm8993.c cur_val = abs(wm8993->pdata.retune_configs[i].rate pdata 1316 sound/soc/codecs/wm8993.c s = &wm8993->pdata.retune_configs[best]; pdata 1505 sound/soc/codecs/wm8993.c wm_hubs_handle_analogue_pdata(component, wm8993->pdata.lineout1_diff, pdata 1506 sound/soc/codecs/wm8993.c wm8993->pdata.lineout2_diff, pdata 1507 sound/soc/codecs/wm8993.c wm8993->pdata.lineout1fb, pdata 1508 sound/soc/codecs/wm8993.c wm8993->pdata.lineout2fb, pdata 1509 sound/soc/codecs/wm8993.c wm8993->pdata.jd_scthr, pdata 1510 sound/soc/codecs/wm8993.c wm8993->pdata.jd_thr, pdata 1511 sound/soc/codecs/wm8993.c wm8993->pdata.micbias1_delay, pdata 1512 sound/soc/codecs/wm8993.c wm8993->pdata.micbias2_delay, pdata 1513 sound/soc/codecs/wm8993.c wm8993->pdata.micbias1_lvl, pdata 1514 sound/soc/codecs/wm8993.c wm8993->pdata.micbias2_lvl); pdata 1518 sound/soc/codecs/wm8993.c if (wm8993->pdata.num_retune_configs != 0) { pdata 1531 sound/soc/codecs/wm8993.c wm_hubs_add_analogue_routes(component, wm8993->pdata.lineout1_diff, pdata 1532 sound/soc/codecs/wm8993.c wm8993->pdata.lineout2_diff); pdata 1537 sound/soc/codecs/wm8993.c if (wm8993->pdata.lineout1_diff && wm8993->pdata.lineout2_diff) pdata 122 sound/soc/codecs/wm8994.c if (control->pdata.micd_rates) { pdata 123 sound/soc/codecs/wm8994.c rates = control->pdata.micd_rates; pdata 124 sound/soc/codecs/wm8994.c num_rates = control->pdata.num_micd_rates; pdata 322 sound/soc/codecs/wm8994.c struct wm8994_pdata *pdata = &control->pdata; pdata 334 sound/soc/codecs/wm8994.c pdata->drc_cfgs[cfg].regs[i]); pdata 359 sound/soc/codecs/wm8994.c struct wm8994_pdata *pdata = &control->pdata; pdata 366 sound/soc/codecs/wm8994.c if (value >= pdata->num_drc_cfgs) pdata 394 sound/soc/codecs/wm8994.c struct wm8994_pdata *pdata = &control->pdata; pdata 398 sound/soc/codecs/wm8994.c if (!pdata || !wm8994->num_retune_mobile_texts) pdata 418 sound/soc/codecs/wm8994.c for (i = 0; i < pdata->num_retune_mobile_cfgs; i++) { pdata 419 sound/soc/codecs/wm8994.c if (strcmp(pdata->retune_mobile_cfgs[i].name, pdata 421 sound/soc/codecs/wm8994.c abs(pdata->retune_mobile_cfgs[i].rate pdata 424 sound/soc/codecs/wm8994.c best_val = abs(pdata->retune_mobile_cfgs[i].rate pdata 431 sound/soc/codecs/wm8994.c pdata->retune_mobile_cfgs[best].name, pdata 432 sound/soc/codecs/wm8994.c pdata->retune_mobile_cfgs[best].rate, pdata 443 sound/soc/codecs/wm8994.c pdata->retune_mobile_cfgs[best].regs[i]); pdata 466 sound/soc/codecs/wm8994.c struct wm8994_pdata *pdata = &control->pdata; pdata 473 sound/soc/codecs/wm8994.c if (value >= pdata->num_retune_mobile_cfgs) pdata 2777 sound/soc/codecs/wm8994.c struct wm8994_pdata *pdata = &control->pdata; pdata 2845 sound/soc/codecs/wm8994.c if (pdata->max_channels_clocked[id] && pdata 2846 sound/soc/codecs/wm8994.c wm8994->channels[id] > pdata->max_channels_clocked[id]) { pdata 2848 sound/soc/codecs/wm8994.c pdata->max_channels_clocked[id], wm8994->channels[id]); pdata 2849 sound/soc/codecs/wm8994.c wm8994->channels[id] = pdata->max_channels_clocked[id]; pdata 3205 sound/soc/codecs/wm8994.c struct wm8994_pdata *pdata = &control->pdata; pdata 3229 sound/soc/codecs/wm8994.c for (i = 0; i < pdata->num_retune_mobile_cfgs; i++) { pdata 3231 sound/soc/codecs/wm8994.c if (strcmp(pdata->retune_mobile_cfgs[i].name, pdata 3249 sound/soc/codecs/wm8994.c pdata->retune_mobile_cfgs[i].name; pdata 3273 sound/soc/codecs/wm8994.c struct wm8994_pdata *pdata = &control->pdata; pdata 3276 sound/soc/codecs/wm8994.c if (!pdata) pdata 3279 sound/soc/codecs/wm8994.c wm_hubs_handle_analogue_pdata(component, pdata->lineout1_diff, pdata 3280 sound/soc/codecs/wm8994.c pdata->lineout2_diff, pdata 3281 sound/soc/codecs/wm8994.c pdata->lineout1fb, pdata 3282 sound/soc/codecs/wm8994.c pdata->lineout2fb, pdata 3283 sound/soc/codecs/wm8994.c pdata->jd_scthr, pdata 3284 sound/soc/codecs/wm8994.c pdata->jd_thr, pdata 3285 sound/soc/codecs/wm8994.c pdata->micb1_delay, pdata 3286 sound/soc/codecs/wm8994.c pdata->micb2_delay, pdata 3287 sound/soc/codecs/wm8994.c pdata->micbias1_lvl, pdata 3288 sound/soc/codecs/wm8994.c pdata->micbias2_lvl); pdata 3290 sound/soc/codecs/wm8994.c dev_dbg(component->dev, "%d DRC configurations\n", pdata->num_drc_cfgs); pdata 3292 sound/soc/codecs/wm8994.c if (pdata->num_drc_cfgs) { pdata 3304 sound/soc/codecs/wm8994.c pdata->num_drc_cfgs, sizeof(char *), GFP_KERNEL); pdata 3308 sound/soc/codecs/wm8994.c for (i = 0; i < pdata->num_drc_cfgs; i++) pdata 3309 sound/soc/codecs/wm8994.c wm8994->drc_texts[i] = pdata->drc_cfgs[i].name; pdata 3311 sound/soc/codecs/wm8994.c wm8994->drc_enum.items = pdata->num_drc_cfgs; pdata 3330 sound/soc/codecs/wm8994.c pdata->num_retune_mobile_cfgs); pdata 3332 sound/soc/codecs/wm8994.c if (pdata->num_retune_mobile_cfgs) pdata 3338 sound/soc/codecs/wm8994.c for (i = 0; i < ARRAY_SIZE(pdata->micbias); i++) { pdata 3339 sound/soc/codecs/wm8994.c if (pdata->micbias[i]) { pdata 3341 sound/soc/codecs/wm8994.c pdata->micbias[i] & 0xffff); pdata 3520 sound/soc/codecs/wm8994.c if (wm8994->wm8994->pdata.jd_ext_cap) pdata 3635 sound/soc/codecs/wm8994.c if (control->pdata.jd_ext_cap) { pdata 3703 sound/soc/codecs/wm8994.c delay = control->pdata.micdet_delay; pdata 3729 sound/soc/codecs/wm8994.c if (control->pdata.jd_ext_cap && !present) pdata 3814 sound/soc/codecs/wm8994.c if (control->pdata.micd_lvl_sel) pdata 3815 sound/soc/codecs/wm8994.c micd_lvl_sel = control->pdata.micd_lvl_sel; pdata 3949 sound/soc/codecs/wm8994.c id_delay = wm8994->wm8994->pdata.mic_id_delay; pdata 4024 sound/soc/codecs/wm8994.c wm8994->micdet_irq = control->pdata.micdet_irq; pdata 4033 sound/soc/codecs/wm8994.c if (!control->pdata.lineout1_diff || pdata 4034 sound/soc/codecs/wm8994.c !control->pdata.lineout2_diff) pdata 75 sound/soc/codecs/wm8996.c struct wm8996_pdata pdata; pdata 337 sound/soc/codecs/wm8996.c struct wm8996_pdata *pdata = &wm8996->pdata; pdata 369 sound/soc/codecs/wm8996.c for (i = 0; i < pdata->num_retune_mobile_cfgs; i++) { pdata 370 sound/soc/codecs/wm8996.c if (strcmp(pdata->retune_mobile_cfgs[i].name, pdata 372 sound/soc/codecs/wm8996.c abs(pdata->retune_mobile_cfgs[i].rate pdata 375 sound/soc/codecs/wm8996.c best_val = abs(pdata->retune_mobile_cfgs[i].rate pdata 382 sound/soc/codecs/wm8996.c pdata->retune_mobile_cfgs[best].name, pdata 383 sound/soc/codecs/wm8996.c pdata->retune_mobile_cfgs[best].rate, pdata 392 sound/soc/codecs/wm8996.c for (i = 0; i < ARRAY_SIZE(pdata->retune_mobile_cfgs[best].regs); i++) pdata 394 sound/soc/codecs/wm8996.c pdata->retune_mobile_cfgs[best].regs[i]); pdata 414 sound/soc/codecs/wm8996.c struct wm8996_pdata *pdata = &wm8996->pdata; pdata 421 sound/soc/codecs/wm8996.c if (value >= pdata->num_retune_mobile_cfgs) pdata 1599 sound/soc/codecs/wm8996.c if (wm8996->pdata.ldo_ena >= 0) { pdata 1600 sound/soc/codecs/wm8996.c gpio_set_value_cansleep(wm8996->pdata.ldo_ena, pdata 1618 sound/soc/codecs/wm8996.c if (wm8996->pdata.ldo_ena >= 0) { pdata 1619 sound/soc/codecs/wm8996.c gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0); pdata 2201 sound/soc/codecs/wm8996.c if (wm8996->pdata.gpio_base) pdata 2202 sound/soc/codecs/wm8996.c wm8996->gpio_chip.base = wm8996->pdata.gpio_base; pdata 2541 sound/soc/codecs/wm8996.c struct wm8996_pdata *pdata = &wm8996->pdata; pdata 2562 sound/soc/codecs/wm8996.c for (i = 0; i < pdata->num_retune_mobile_cfgs; i++) { pdata 2564 sound/soc/codecs/wm8996.c if (strcmp(pdata->retune_mobile_cfgs[i].name, pdata 2582 sound/soc/codecs/wm8996.c pdata->retune_mobile_cfgs[i].name; pdata 2625 sound/soc/codecs/wm8996.c if (wm8996->pdata.num_retune_mobile_cfgs) pdata 2632 sound/soc/codecs/wm8996.c if (wm8996->pdata.irq_flags) pdata 2633 sound/soc/codecs/wm8996.c irq_flags = wm8996->pdata.irq_flags; pdata 2771 sound/soc/codecs/wm8996.c memcpy(&wm8996->pdata, dev_get_platdata(&i2c->dev), pdata 2772 sound/soc/codecs/wm8996.c sizeof(wm8996->pdata)); pdata 2774 sound/soc/codecs/wm8996.c if (wm8996->pdata.ldo_ena > 0) { pdata 2775 sound/soc/codecs/wm8996.c ret = gpio_request_one(wm8996->pdata.ldo_ena, pdata 2779 sound/soc/codecs/wm8996.c wm8996->pdata.ldo_ena, ret); pdata 2817 sound/soc/codecs/wm8996.c if (wm8996->pdata.ldo_ena > 0) { pdata 2818 sound/soc/codecs/wm8996.c gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 1); pdata 2850 sound/soc/codecs/wm8996.c if (wm8996->pdata.ldo_ena > 0) { pdata 2851 sound/soc/codecs/wm8996.c gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0); pdata 2867 sound/soc/codecs/wm8996.c wm8996->pdata.inl_mode << WM8996_INL_MODE_SHIFT | pdata 2868 sound/soc/codecs/wm8996.c wm8996->pdata.inr_mode); pdata 2870 sound/soc/codecs/wm8996.c for (i = 0; i < ARRAY_SIZE(wm8996->pdata.gpio_default); i++) { pdata 2871 sound/soc/codecs/wm8996.c if (!wm8996->pdata.gpio_default[i]) pdata 2875 sound/soc/codecs/wm8996.c wm8996->pdata.gpio_default[i] & 0xffff); pdata 2878 sound/soc/codecs/wm8996.c if (wm8996->pdata.spkmute_seq) pdata 2883 sound/soc/codecs/wm8996.c wm8996->pdata.spkmute_seq); pdata 2887 sound/soc/codecs/wm8996.c WM8996_MICD_SRC, wm8996->pdata.micdet_def); pdata 3057 sound/soc/codecs/wm8996.c if (wm8996->pdata.ldo_ena > 0) pdata 3058 sound/soc/codecs/wm8996.c gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0); pdata 3061 sound/soc/codecs/wm8996.c if (wm8996->pdata.ldo_ena > 0) pdata 3062 sound/soc/codecs/wm8996.c gpio_free(wm8996->pdata.ldo_ena); pdata 3073 sound/soc/codecs/wm8996.c if (wm8996->pdata.ldo_ena > 0) { pdata 3074 sound/soc/codecs/wm8996.c gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0); pdata 3075 sound/soc/codecs/wm8996.c gpio_free(wm8996->pdata.ldo_ena); pdata 127 sound/soc/codecs/wm8998.c inmode = arizona->pdata.inmode[mode_index]; pdata 156 sound/soc/codecs/wm9081.c struct wm9081_pdata pdata; pdata 1109 sound/soc/codecs/wm9081.c if (wm9081->pdata.num_retune_configs) { pdata 1110 sound/soc/codecs/wm9081.c struct wm9081_pdata *pdata = &wm9081->pdata; pdata 1115 sound/soc/codecs/wm9081.c best_val = abs(pdata->retune_configs[0].rate - wm9081->fs); pdata 1116 sound/soc/codecs/wm9081.c for (i = 0; i < pdata->num_retune_configs; i++) { pdata 1117 sound/soc/codecs/wm9081.c cur_val = abs(pdata->retune_configs[i].rate - pdata 1124 sound/soc/codecs/wm9081.c s = &pdata->retune_configs[best]; pdata 1264 sound/soc/codecs/wm9081.c if (!wm9081->pdata.num_retune_configs) { pdata 1339 sound/soc/codecs/wm9081.c memcpy(&wm9081->pdata, dev_get_platdata(&i2c->dev), pdata 1340 sound/soc/codecs/wm9081.c sizeof(wm9081->pdata)); pdata 1343 sound/soc/codecs/wm9081.c if (wm9081->pdata.irq_high) pdata 1345 sound/soc/codecs/wm9081.c if (!wm9081->pdata.irq_cmos) pdata 64 sound/soc/codecs/wm9090.c struct wm9090_platform_data pdata; pdata 423 sound/soc/codecs/wm9090.c if (wm9090->pdata.lin1_diff) { pdata 433 sound/soc/codecs/wm9090.c if (wm9090->pdata.lin2_diff) { pdata 443 sound/soc/codecs/wm9090.c if (wm9090->pdata.agc_ena) { pdata 444 sound/soc/codecs/wm9090.c for (i = 0; i < ARRAY_SIZE(wm9090->pdata.agc); i++) pdata 446 sound/soc/codecs/wm9090.c wm9090->pdata.agc[i]); pdata 596 sound/soc/codecs/wm9090.c memcpy(&wm9090->pdata, i2c->dev.platform_data, pdata 597 sound/soc/codecs/wm9090.c sizeof(wm9090->pdata)); pdata 541 sound/soc/dwc/dwc-i2s.c const struct i2s_platform_data *pdata) pdata 550 sound/soc/dwc/dwc-i2s.c ret = dw_configure_dai(dev, dw_i2s_dai, pdata->snd_rates); pdata 557 sound/soc/dwc/dwc-i2s.c dev->play_dma_data.pd.data = pdata->play_dma_data; pdata 558 sound/soc/dwc/dwc-i2s.c dev->capture_dma_data.pd.data = pdata->capture_dma_data; pdata 565 sound/soc/dwc/dwc-i2s.c dev->play_dma_data.pd.filter = pdata->filter; pdata 566 sound/soc/dwc/dwc-i2s.c dev->capture_dma_data.pd.filter = pdata->filter; pdata 616 sound/soc/dwc/dwc-i2s.c const struct i2s_platform_data *pdata = pdev->dev.platform_data; pdata 654 sound/soc/dwc/dwc-i2s.c if (pdata) { pdata 655 sound/soc/dwc/dwc-i2s.c dev->capability = pdata->cap; pdata 657 sound/soc/dwc/dwc-i2s.c dev->quirks = pdata->quirks; pdata 659 sound/soc/dwc/dwc-i2s.c dev->i2s_reg_comp1 = pdata->i2s_reg_comp1; pdata 660 sound/soc/dwc/dwc-i2s.c dev->i2s_reg_comp2 = pdata->i2s_reg_comp2; pdata 662 sound/soc/dwc/dwc-i2s.c ret = dw_configure_dai_by_pd(dev, dw_i2s_dai, res, pdata); pdata 671 sound/soc/dwc/dwc-i2s.c if (pdata) { pdata 672 sound/soc/dwc/dwc-i2s.c dev->i2s_clk_cfg = pdata->i2s_clk_cfg; pdata 696 sound/soc/dwc/dwc-i2s.c if (!pdata) { pdata 507 sound/soc/fsl/imx-ssi.c struct imx_ssi_platform_data *pdata = pdev->dev.platform_data; pdata 516 sound/soc/fsl/imx-ssi.c if (pdata) { pdata 517 sound/soc/fsl/imx-ssi.c ssi->ac97_reset = pdata->ac97_reset; pdata 518 sound/soc/fsl/imx-ssi.c ssi->ac97_warm_reset = pdata->ac97_warm_reset; pdata 519 sound/soc/fsl/imx-ssi.c ssi->flags = pdata->flags; pdata 165 sound/soc/fsl/mx27vis-aic32x4.c struct snd_mx27vis_platform_data *pdata = pdev->dev.platform_data; pdata 168 sound/soc/fsl/mx27vis-aic32x4.c if (!pdata) { pdata 173 sound/soc/fsl/mx27vis-aic32x4.c mx27vis_amp_gain0_gpio = pdata->amp_gain0_gpio; pdata 174 sound/soc/fsl/mx27vis-aic32x4.c mx27vis_amp_gain1_gpio = pdata->amp_gain1_gpio; pdata 175 sound/soc/fsl/mx27vis-aic32x4.c mx27vis_amp_mutel_gpio = pdata->amp_mutel_gpio; pdata 176 sound/soc/fsl/mx27vis-aic32x4.c mx27vis_amp_muter_gpio = pdata->amp_muter_gpio; pdata 61 sound/soc/fsl/pcm030-audio-fabric.c struct pcm030_audio_data *pdata; pdata 69 sound/soc/fsl/pcm030-audio-fabric.c pdata = devm_kzalloc(&op->dev, sizeof(struct pcm030_audio_data), pdata 71 sound/soc/fsl/pcm030-audio-fabric.c if (!pdata) pdata 76 sound/soc/fsl/pcm030-audio-fabric.c pdata->card = card; pdata 91 sound/soc/fsl/pcm030-audio-fabric.c pdata->codec_device = platform_device_alloc("wm9712-codec", -1); pdata 92 sound/soc/fsl/pcm030-audio-fabric.c if (!pdata->codec_device) pdata 95 sound/soc/fsl/pcm030-audio-fabric.c ret = platform_device_add(pdata->codec_device); pdata 103 sound/soc/fsl/pcm030-audio-fabric.c platform_set_drvdata(op, pdata); pdata 110 sound/soc/fsl/pcm030-audio-fabric.c struct pcm030_audio_data *pdata = platform_get_drvdata(op); pdata 113 sound/soc/fsl/pcm030-audio-fabric.c ret = snd_soc_unregister_card(pdata->card); pdata 114 sound/soc/fsl/pcm030-audio-fabric.c platform_device_unregister(pdata->codec_device); pdata 182 sound/soc/intel/atom/sst-mfld-platform-pcm.c map = ctx->pdata->pdev_strm_map; pdata 183 sound/soc/intel/atom/sst-mfld-platform-pcm.c map_size = ctx->pdata->strm_map_size; pdata 721 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_platform_data *pdata; pdata 728 sound/soc/intel/atom/sst-mfld-platform-pcm.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 729 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (pdata == NULL) { pdata 733 sound/soc/intel/atom/sst-mfld-platform-pcm.c pdata->pdev_strm_map = dpcm_strm_map; pdata 734 sound/soc/intel/atom/sst-mfld-platform-pcm.c pdata->strm_map_size = ARRAY_SIZE(dpcm_strm_map); pdata 735 sound/soc/intel/atom/sst-mfld-platform-pcm.c drv->pdata = pdata; pdata 170 sound/soc/intel/atom/sst-mfld-platform.h struct sst_platform_data *pdata; pdata 268 sound/soc/intel/atom/sst/sst.c if (!ctx->pdata) pdata 271 sound/soc/intel/atom/sst/sst.c if (!ctx->pdata->probe_data) pdata 274 sound/soc/intel/atom/sst/sst.c memcpy(&ctx->info, ctx->pdata->probe_data, sizeof(ctx->info)); pdata 294 sound/soc/intel/atom/sst/sst.c ctx->mailbox_recv_offset = ctx->pdata->ipc_info->mbox_recv_off; pdata 295 sound/soc/intel/atom/sst/sst.c ctx->ipc_reg.ipcx = SST_IPCX + ctx->pdata->ipc_info->ipc_offset; pdata 296 sound/soc/intel/atom/sst/sst.c ctx->ipc_reg.ipcd = SST_IPCD + ctx->pdata->ipc_info->ipc_offset; pdata 445 sound/soc/intel/atom/sst/sst.c if (ctx->pdata->streams_lost_on_suspend) { pdata 552 sound/soc/intel/atom/sst/sst.c if (ctx->pdata->streams_lost_on_suspend) { pdata 371 sound/soc/intel/atom/sst/sst.h struct sst_platform_info *pdata; pdata 157 sound/soc/intel/atom/sst/sst_acpi.c ctx->pdata->res_info->acpi_lpe_res_index); pdata 165 sound/soc/intel/atom/sst/sst_acpi.c ctx->iram_base = rsrc->start + ctx->pdata->res_info->iram_offset; pdata 166 sound/soc/intel/atom/sst/sst_acpi.c ctx->iram_end = ctx->iram_base + ctx->pdata->res_info->iram_size - 1; pdata 169 sound/soc/intel/atom/sst/sst_acpi.c ctx->pdata->res_info->iram_size); pdata 175 sound/soc/intel/atom/sst/sst_acpi.c ctx->dram_base = rsrc->start + ctx->pdata->res_info->dram_offset; pdata 176 sound/soc/intel/atom/sst/sst_acpi.c ctx->dram_end = ctx->dram_base + ctx->pdata->res_info->dram_size - 1; pdata 179 sound/soc/intel/atom/sst/sst_acpi.c ctx->pdata->res_info->dram_size); pdata 185 sound/soc/intel/atom/sst/sst_acpi.c ctx->shim_phy_add = rsrc->start + ctx->pdata->res_info->shim_offset; pdata 188 sound/soc/intel/atom/sst/sst_acpi.c ctx->pdata->res_info->shim_size); pdata 195 sound/soc/intel/atom/sst/sst_acpi.c ctx->shim_phy_add = ctx->pdata->res_info->shim_phy_addr; pdata 198 sound/soc/intel/atom/sst/sst_acpi.c ctx->mailbox_add = rsrc->start + ctx->pdata->res_info->mbox_offset; pdata 201 sound/soc/intel/atom/sst/sst_acpi.c ctx->pdata->res_info->mbox_size); pdata 211 sound/soc/intel/atom/sst/sst_acpi.c ctx->pdata->res_info->acpi_ddr_index); pdata 228 sound/soc/intel/atom/sst/sst_acpi.c ctx->pdata->res_info->acpi_ipc_irq_index); pdata 244 sound/soc/intel/atom/sst/sst_acpi.c struct sst_platform_info *pdata; pdata 260 sound/soc/intel/atom/sst/sst_acpi.c mach->pdata = &byt_rvp_platform_data; pdata 262 sound/soc/intel/atom/sst/sst_acpi.c mach->pdata = &chv_platform_data; pdata 263 sound/soc/intel/atom/sst/sst_acpi.c pdata = mach->pdata; pdata 284 sound/soc/intel/atom/sst/sst_acpi.c pdata->res_info->acpi_ipc_irq_index; pdata 286 sound/soc/intel/atom/sst/sst_acpi.c plat_dev = platform_device_register_data(dev, pdata->platform, -1, pdata 290 sound/soc/intel/atom/sst/sst_acpi.c pdata->platform); pdata 307 sound/soc/intel/atom/sst/sst_acpi.c ctx->pdata = pdata; pdata 40 sound/soc/intel/atom/sst/sst_pci.c if (!ctx->pdata->lib_info) { pdata 45 sound/soc/intel/atom/sst/sst_pci.c if (ddr_base != ctx->pdata->lib_info->mod_base) { pdata 124 sound/soc/intel/atom/sst/sst_pci.c sst_drv_ctx->pdata = sst_pdata; pdata 208 sound/soc/intel/baytrail/sst-baytrail-dsp.c &sst->pdata->fw_base, sizeof(u32)); pdata 250 sound/soc/intel/baytrail/sst-baytrail-dsp.c static int sst_byt_resource_map(struct sst_dsp *sst, struct sst_pdata *pdata) pdata 252 sound/soc/intel/baytrail/sst-baytrail-dsp.c sst->addr.lpe_base = pdata->lpe_base; pdata 253 sound/soc/intel/baytrail/sst-baytrail-dsp.c sst->addr.lpe = ioremap(pdata->lpe_base, pdata->lpe_size); pdata 258 sound/soc/intel/baytrail/sst-baytrail-dsp.c sst->addr.pci_cfg = ioremap(pdata->pcicfg_base, pdata->pcicfg_size); pdata 265 sound/soc/intel/baytrail/sst-baytrail-dsp.c sst->addr.fw_ext = ioremap(pdata->fw_base, pdata->fw_size); pdata 280 sound/soc/intel/baytrail/sst-baytrail-dsp.c sst->irq = pdata->irq; pdata 285 sound/soc/intel/baytrail/sst-baytrail-dsp.c static int sst_byt_init(struct sst_dsp *sst, struct sst_pdata *pdata) pdata 307 sound/soc/intel/baytrail/sst-baytrail-dsp.c ret = sst_byt_resource_map(sst, pdata); pdata 156 sound/soc/intel/baytrail/sst-baytrail-ipc.c void *pdata; pdata 284 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->notify_position(stream, stream->pdata); pdata 353 sound/soc/intel/baytrail/sst-baytrail-ipc.c stream->pdata = data; pdata 564 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_dsp_suspend_late(struct device *dev, struct sst_pdata *pdata) pdata 566 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt *byt = pdata->dsp; pdata 580 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_dsp_boot(struct device *dev, struct sst_pdata *pdata) pdata 582 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt *byt = pdata->dsp; pdata 604 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_dsp_wait_for_ready(struct device *dev, struct sst_pdata *pdata) pdata 606 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt *byt = pdata->dsp; pdata 673 sound/soc/intel/baytrail/sst-baytrail-ipc.c int sst_byt_dsp_init(struct device *dev, struct sst_pdata *pdata) pdata 708 sound/soc/intel/baytrail/sst-baytrail-ipc.c byt->dsp = sst_dsp_new(dev, &byt_dev, pdata); pdata 719 sound/soc/intel/baytrail/sst-baytrail-ipc.c byt_sst_fw = sst_fw_new(byt->dsp, pdata->fw, byt); pdata 745 sound/soc/intel/baytrail/sst-baytrail-ipc.c pdata->dsp = byt; pdata 763 sound/soc/intel/baytrail/sst-baytrail-ipc.c void sst_byt_dsp_free(struct device *dev, struct sst_pdata *pdata) pdata 765 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct sst_byt *byt = pdata->dsp; pdata 58 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_dsp_init(struct device *dev, struct sst_pdata *pdata); pdata 59 sound/soc/intel/baytrail/sst-baytrail-ipc.h void sst_byt_dsp_free(struct device *dev, struct sst_pdata *pdata); pdata 61 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_dsp_suspend_late(struct device *dev, struct sst_pdata *pdata); pdata 62 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_dsp_boot(struct device *dev, struct sst_pdata *pdata); pdata 63 sound/soc/intel/baytrail/sst-baytrail-ipc.h int sst_byt_dsp_wait_for_ready(struct device *dev, struct sst_pdata *pdata); pdata 66 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 67 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pdata 68 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt *byt = pdata->byt; pdata 138 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 139 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pdata 140 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt *byt = pdata->byt; pdata 171 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 172 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pdata 173 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt *byt = pdata->byt; pdata 183 sound/soc/intel/baytrail/sst-baytrail-pcm.c if (pdata->restore_stream) pdata 195 sound/soc/intel/baytrail/sst-baytrail-pcm.c pdata->restore_stream = false; pdata 214 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 215 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt *byt = pdata->byt; pdata 236 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 237 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pdata 248 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 249 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pdata 250 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt *byt = pdata->byt; pdata 276 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 277 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; pdata 278 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_byt *byt = pdata->byt; pdata 322 sound/soc/intel/baytrail/sst-baytrail-pcm.c struct sst_pdata *pdata = dev_get_platdata(component->dev); pdata 328 sound/soc/intel/baytrail/sst-baytrail-pcm.c pdata->dma_dev, pdata 176 sound/soc/intel/boards/bdw-rt5677.c struct sst_pdata *pdata = dev_get_platdata(component->dev); pdata 177 sound/soc/intel/boards/bdw-rt5677.c struct sst_hsw *broadwell = pdata->dsp; pdata 129 sound/soc/intel/boards/broadwell.c struct sst_pdata *pdata = dev_get_platdata(component->dev); pdata 130 sound/soc/intel/boards/broadwell.c struct sst_hsw *broadwell = pdata->dsp; pdata 83 sound/soc/intel/boards/haswell.c struct sst_pdata *pdata = dev_get_platdata(component->dev); pdata 84 sound/soc/intel/boards/haswell.c struct sst_hsw *haswell = pdata->dsp; pdata 32 sound/soc/intel/common/soc-acpi-intel-cnl-match.c .pdata = &cnl_pdata, pdata 33 sound/soc/intel/common/soc-acpi-intel-hda-match.c .pdata = &hda_pdata, pdata 22 sound/soc/intel/common/soc-acpi-intel-icl-match.c .pdata = &icl_pdata, pdata 57 sound/soc/intel/common/soc-acpi-intel-kbl-match.c .pdata = &skl_dmic_data, pdata 65 sound/soc/intel/common/soc-acpi-intel-kbl-match.c .pdata = &skl_dmic_data, pdata 73 sound/soc/intel/common/soc-acpi-intel-kbl-match.c .pdata = &skl_dmic_data, pdata 81 sound/soc/intel/common/soc-acpi-intel-kbl-match.c .pdata = &skl_dmic_data, pdata 94 sound/soc/intel/common/soc-acpi-intel-kbl-match.c .pdata = &skl_dmic_data, pdata 102 sound/soc/intel/common/soc-acpi-intel-kbl-match.c .pdata = &skl_dmic_data pdata 120 sound/soc/intel/common/soc-acpi-intel-kbl-match.c .pdata = &skl_dmic_data pdata 126 sound/soc/intel/common/soc-acpi-intel-kbl-match.c .pdata = &skl_dmic_data pdata 32 sound/soc/intel/common/soc-acpi-intel-skl-match.c .pdata = &skl_dmic_data, pdata 40 sound/soc/intel/common/soc-acpi-intel-skl-match.c .pdata = &skl_dmic_data, pdata 144 sound/soc/intel/common/sst-acpi.c mach->pdata = sst_pdata; pdata 54 sound/soc/intel/common/sst-dsp-priv.h int (*init)(struct sst_dsp *sst, struct sst_pdata *pdata); pdata 298 sound/soc/intel/common/sst-dsp-priv.h struct sst_pdata *pdata; pdata 213 sound/soc/intel/common/sst-dsp.h struct sst_dsp_device *sst_dev, struct sst_pdata *pdata); pdata 266 sound/soc/intel/common/sst-firmware.c struct sst_pdata *sst_pdata = sst->pdata; pdata 271 sound/soc/intel/common/sst-firmware.c if (sst->pdata->resindex_dma_base == -1) pdata 277 sound/soc/intel/common/sst-firmware.c switch (sst->pdata->dma_engine) { pdata 282 sound/soc/intel/common/sst-firmware.c sst->pdata->dma_engine); pdata 1204 sound/soc/intel/common/sst-firmware.c struct sst_dsp_device *sst_dev, struct sst_pdata *pdata) pdata 1209 sound/soc/intel/common/sst-firmware.c dev_dbg(dev, "initialising audio DSP id 0x%x\n", pdata->id); pdata 1218 sound/soc/intel/common/sst-firmware.c sst->dma_dev = pdata->dma_dev; pdata 1221 sound/soc/intel/common/sst-firmware.c sst->id = pdata->id; pdata 1222 sound/soc/intel/common/sst-firmware.c sst->irq = pdata->irq; pdata 1224 sound/soc/intel/common/sst-firmware.c sst->pdata = pdata; pdata 1233 sound/soc/intel/common/sst-firmware.c err = sst->ops->init(sst, pdata); pdata 462 sound/soc/intel/haswell/sst-haswell-dsp.c static int hsw_acpi_resource_map(struct sst_dsp *sst, struct sst_pdata *pdata) pdata 465 sound/soc/intel/haswell/sst-haswell-dsp.c sst->addr.lpe_base = pdata->lpe_base; pdata 466 sound/soc/intel/haswell/sst-haswell-dsp.c sst->addr.lpe = ioremap(pdata->lpe_base, pdata->lpe_size); pdata 471 sound/soc/intel/haswell/sst-haswell-dsp.c sst->addr.pci_cfg = ioremap(pdata->pcicfg_base, pdata->pcicfg_size); pdata 611 sound/soc/intel/haswell/sst-haswell-dsp.c static int hsw_init(struct sst_dsp *sst, struct sst_pdata *pdata) pdata 642 sound/soc/intel/haswell/sst-haswell-dsp.c ret = hsw_acpi_resource_map(sst, pdata); pdata 238 sound/soc/intel/haswell/sst-haswell-ipc.c void *pdata; pdata 494 sound/soc/intel/haswell/sst-haswell-ipc.c stream->notify_position(stream, stream->pdata); pdata 978 sound/soc/intel/haswell/sst-haswell-ipc.c stream->pdata = data; pdata 1849 sound/soc/intel/haswell/sst-haswell-ipc.c fw = dsp->pdata->fw; pdata 2098 sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_dsp_init(struct device *dev, struct sst_pdata *pdata) pdata 2133 sound/soc/intel/haswell/sst-haswell-ipc.c hsw->dsp = sst_dsp_new(dev, &hsw_dev, pdata); pdata 2193 sound/soc/intel/haswell/sst-haswell-ipc.c pdata->dsp = hsw; pdata 2211 sound/soc/intel/haswell/sst-haswell-ipc.c void sst_hsw_dsp_free(struct device *dev, struct sst_pdata *pdata) pdata 2213 sound/soc/intel/haswell/sst-haswell-ipc.c struct sst_hsw *hsw = pdata->dsp; pdata 490 sound/soc/intel/haswell/sst-haswell-ipc.h int sst_hsw_dsp_init(struct device *dev, struct sst_pdata *pdata); pdata 491 sound/soc/intel/haswell/sst-haswell-ipc.h void sst_hsw_dsp_free(struct device *dev, struct sst_pdata *pdata); pdata 178 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = pdata 181 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 187 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][stream]; pdata 190 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_get_sync(pdata->dev); pdata 197 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_mark_last_busy(pdata->dev); pdata 198 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_put_autosuspend(pdata->dev); pdata 215 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_mark_last_busy(pdata->dev); pdata 216 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_put_autosuspend(pdata->dev); pdata 227 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = pdata 230 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 236 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][stream]; pdata 239 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_get_sync(pdata->dev); pdata 246 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_mark_last_busy(pdata->dev); pdata 247 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_put_autosuspend(pdata->dev); pdata 257 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_mark_last_busy(pdata->dev); pdata 258 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_put_autosuspend(pdata->dev); pdata 268 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 269 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 272 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_get_sync(pdata->dev); pdata 288 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_mark_last_busy(pdata->dev); pdata 289 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_put_autosuspend(pdata->dev); pdata 297 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 298 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 301 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_get_sync(pdata->dev); pdata 308 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_mark_last_busy(pdata->dev); pdata 309 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_put_autosuspend(pdata->dev); pdata 317 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 318 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 331 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 332 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 365 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 366 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 376 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 377 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 431 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata, struct snd_soc_pcm_runtime *rtd, pdata 449 sound/soc/intel/haswell/sst-haswell-pcm.c pg_table = (u32 *)(pdata->dmab[pcm][stream].area + idx); pdata 467 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 469 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 480 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pdata 604 sound/soc/intel/haswell/sst-haswell-pcm.c ret = create_adsp_page_table(substream, pdata, rtd, runtime->dma_area, pdata 618 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->dmab[rtd->cpu_dai->id][substream->stream].addr, pdata 669 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 672 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 678 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pdata 713 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 714 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 778 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 780 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 787 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pdata 802 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 804 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 808 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pdata 811 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_get_sync(pdata->dev); pdata 821 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_mark_last_busy(pdata->dev); pdata 822 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_put_autosuspend(pdata->dev); pdata 835 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = snd_soc_component_get_drvdata(component); pdata 837 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 841 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[dai][substream->stream]; pdata 859 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_mark_last_busy(pdata->dev); pdata 860 sound/soc/intel/haswell/sst-haswell-pcm.c pm_runtime_put_autosuspend(pdata->dev); pdata 876 sound/soc/intel/haswell/sst-haswell-pcm.c static int hsw_pcm_create_modules(struct hsw_priv_data *pdata) pdata 878 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 883 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pdata 896 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->runtime_waves = sst_hsw_runtime_module_create(hsw, pdata 898 sound/soc/intel/haswell/sst-haswell-pcm.c if (pdata->runtime_waves == NULL) pdata 906 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pdata 913 sound/soc/intel/haswell/sst-haswell-pcm.c static void hsw_pcm_free_modules(struct hsw_priv_data *pdata) pdata 915 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 920 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pdata 927 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->runtime_waves) { pdata 928 sound/soc/intel/haswell/sst-haswell-pcm.c sst_hsw_runtime_module_free(pdata->runtime_waves); pdata 929 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->runtime_waves = NULL; pdata 937 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_pdata *pdata = dev_get_platdata(component->dev); pdata 939 sound/soc/intel/haswell/sst-haswell-pcm.c struct device *dev = pdata->dma_dev; pdata 1043 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_pdata *pdata = dev_get_platdata(component->dev); pdata 1047 sound/soc/intel/haswell/sst-haswell-pcm.c if (!pdata) pdata 1051 sound/soc/intel/haswell/sst-haswell-pcm.c dma_dev = pdata->dma_dev; pdata 1053 sound/soc/intel/haswell/sst-haswell-pcm.c priv_data->hsw = pdata->dsp; pdata 1184 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = dev_get_drvdata(dev); pdata 1185 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 1190 sound/soc/intel/haswell/sst-haswell-pcm.c hsw_pcm_free_modules(pdata); pdata 1198 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = dev_get_drvdata(dev); pdata 1199 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 1202 sound/soc/intel/haswell/sst-haswell-pcm.c if (pdata->pm_state >= HSW_PM_STATE_RTD3) pdata 1213 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->pm_state = HSW_PM_STATE_RTD3; pdata 1220 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = dev_get_drvdata(dev); pdata 1221 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 1224 sound/soc/intel/haswell/sst-haswell-pcm.c if (pdata->pm_state != HSW_PM_STATE_RTD3) pdata 1233 sound/soc/intel/haswell/sst-haswell-pcm.c ret = hsw_pcm_create_modules(pdata); pdata 1258 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->pm_state = HSW_PM_STATE_D0; pdata 1272 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = dev_get_drvdata(dev); pdata 1273 sound/soc/intel/haswell/sst-haswell-pcm.c struct sst_hsw *hsw = pdata->hsw; pdata 1277 sound/soc/intel/haswell/sst-haswell-pcm.c if (pdata->pm_state != HSW_PM_STATE_D3) pdata 1286 sound/soc/intel/haswell/sst-haswell-pcm.c err = hsw_pcm_create_modules(pdata); pdata 1293 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pdata 1304 sound/soc/intel/haswell/sst-haswell-pcm.c snd_soc_resume(pdata->soc_card->dev); pdata 1312 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->pm_state = HSW_PM_STATE_D0; pdata 1318 sound/soc/intel/haswell/sst-haswell-pcm.c struct hsw_priv_data *pdata = dev_get_drvdata(dev); pdata 1322 sound/soc/intel/haswell/sst-haswell-pcm.c if (pdata->pm_state == HSW_PM_STATE_D3) pdata 1324 sound/soc/intel/haswell/sst-haswell-pcm.c else if (pdata->pm_state == HSW_PM_STATE_D0) { pdata 1327 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pdata 1340 sound/soc/intel/haswell/sst-haswell-pcm.c pcm_data = &pdata->pcm[mod_map[i].dai_id][mod_map[i].stream]; pdata 1354 sound/soc/intel/haswell/sst-haswell-pcm.c snd_soc_suspend(pdata->soc_card->dev); pdata 1355 sound/soc/intel/haswell/sst-haswell-pcm.c snd_soc_poweroff(pdata->soc_card->dev); pdata 1357 sound/soc/intel/haswell/sst-haswell-pcm.c pdata->pm_state = HSW_PM_STATE_D3; pdata 30 sound/soc/intel/skylake/skl-ssp-clk.c struct skl_clk_pdata *pdata; pdata 191 sound/soc/intel/skylake/skl-ssp-clk.c rcfg = skl_get_rate_cfg(clkdev->pdata->ssp_clks[clkdev->id].rate_cfg, pdata 196 sound/soc/intel/skylake/skl-ssp-clk.c return skl_send_clk_dma_control(clkdev->pdata->pvt_data, rcfg, pdata 224 sound/soc/intel/skylake/skl-ssp-clk.c rcfg = skl_get_rate_cfg(clkdev->pdata->ssp_clks[clkdev->id].rate_cfg, pdata 334 sound/soc/intel/skylake/skl-ssp-clk.c clkdev->pdata = clk_pdata; pdata 503 sound/soc/intel/skylake/skl.c struct skl_machine_pdata *pdata; pdata 517 sound/soc/intel/skylake/skl.c pdata = mach->pdata; pdata 519 sound/soc/intel/skylake/skl.c if (pdata) { pdata 520 sound/soc/intel/skylake/skl.c skl->use_tplg_pcm = pdata->use_tplg_pcm; pdata 221 sound/soc/pxa/mmp-pcm.c struct mmp_audio_platdata *pdata = pdev->dev.platform_data; pdata 223 sound/soc/pxa/mmp-pcm.c if (pdata) { pdata 225 sound/soc/pxa/mmp-pcm.c pdata->buffer_max_playback; pdata 227 sound/soc/pxa/mmp-pcm.c pdata->period_max_playback; pdata 229 sound/soc/pxa/mmp-pcm.c pdata->buffer_max_capture; pdata 231 sound/soc/pxa/mmp-pcm.c pdata->period_max_capture; pdata 227 sound/soc/pxa/pxa2xx-ac97.c pxa2xx_audio_ops_t *pdata = pdev->dev.platform_data; pdata 241 sound/soc/pxa/pxa2xx-ac97.c codecs_pdata = pdata ? pdata->codec_pdata : NULL; pdata 40 sound/soc/qcom/apq8016_sbc.c struct apq8016_sbc_data *pdata = snd_soc_card_get_drvdata(card); pdata 45 sound/soc/qcom/apq8016_sbc.c writel(readl(pdata->spkr_iomux) | SPKR_CTL_PRI_WS_SLAVE_SEL_11, pdata 46 sound/soc/qcom/apq8016_sbc.c pdata->spkr_iomux); pdata 51 sound/soc/qcom/apq8016_sbc.c writel(readl(pdata->mic_iomux) | MIC_CTRL_QUA_WS_SLAVE_SEL_10 | pdata 53 sound/soc/qcom/apq8016_sbc.c pdata->mic_iomux); pdata 56 sound/soc/qcom/apq8016_sbc.c writel(readl(pdata->mic_iomux) | MIC_CTRL_TER_WS_SLAVE_SEL | pdata 58 sound/soc/qcom/apq8016_sbc.c pdata->mic_iomux); pdata 68 sound/soc/qcom/apq8016_sbc.c if (!pdata->jack_setup) { pdata 77 sound/soc/qcom/apq8016_sbc.c &pdata->jack, NULL, 0); pdata 84 sound/soc/qcom/apq8016_sbc.c jack = pdata->jack.jack; pdata 90 sound/soc/qcom/apq8016_sbc.c pdata->jack_setup = true; pdata 104 sound/soc/qcom/apq8016_sbc.c rval = snd_soc_component_set_jack(component, &pdata->jack, NULL); pdata 843 sound/soc/qcom/qdsp6/q6afe.c struct afe_port_param_data_v2 *pdata; pdata 850 sound/soc/qcom/qdsp6/q6afe.c pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; pdata 857 sound/soc/qcom/qdsp6/q6afe.c pdata = p + APR_HDR_SIZE + sizeof(*param); pdata 858 sound/soc/qcom/qdsp6/q6afe.c pl = p + APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata); pdata 870 sound/soc/qcom/qdsp6/q6afe.c param->payload_size = sizeof(*pdata) + psize; pdata 874 sound/soc/qcom/qdsp6/q6afe.c pdata->module_id = module_id; pdata 875 sound/soc/qcom/qdsp6/q6afe.c pdata->param_id = param_id; pdata 876 sound/soc/qcom/qdsp6/q6afe.c pdata->param_size = psize; pdata 891 sound/soc/qcom/qdsp6/q6afe.c struct afe_port_param_data_v2 *pdata; pdata 898 sound/soc/qcom/qdsp6/q6afe.c pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; pdata 905 sound/soc/qcom/qdsp6/q6afe.c pdata = p + APR_HDR_SIZE + sizeof(*param); pdata 906 sound/soc/qcom/qdsp6/q6afe.c pl = p + APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata); pdata 919 sound/soc/qcom/qdsp6/q6afe.c param->payload_size = sizeof(*pdata) + psize; pdata 923 sound/soc/qcom/qdsp6/q6afe.c pdata->module_id = module_id; pdata 924 sound/soc/qcom/qdsp6/q6afe.c pdata->param_id = param_id; pdata 925 sound/soc/qcom/qdsp6/q6afe.c pdata->param_size = psize; pdata 215 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_data *pdata; pdata 218 sound/soc/qcom/qdsp6/q6asm-dai.c pdata = snd_soc_component_get_drvdata(c); pdata 219 sound/soc/qcom/qdsp6/q6asm-dai.c if (!pdata) pdata 332 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_data *pdata; pdata 339 sound/soc/qcom/qdsp6/q6asm-dai.c pdata = snd_soc_component_get_drvdata(c); pdata 340 sound/soc/qcom/qdsp6/q6asm-dai.c if (!pdata) { pdata 407 sound/soc/qcom/qdsp6/q6asm-dai.c if (pdata->sid < 0) pdata 410 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->phys = substream->dma_buffer.addr | (pdata->sid << 32); pdata 553 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_data *pdata; pdata 559 sound/soc/qcom/qdsp6/q6asm-dai.c pdata = snd_soc_component_get_drvdata(c); pdata 560 sound/soc/qcom/qdsp6/q6asm-dai.c if (!pdata) { pdata 588 sound/soc/qcom/qdsp6/q6asm-dai.c if (pdata->sid < 0) pdata 591 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->phys = prtd->dma_buffer.addr | (pdata->sid << 32); pdata 637 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_data *pdata; pdata 643 sound/soc/qcom/qdsp6/q6asm-dai.c pdata = snd_soc_component_get_drvdata(c); pdata 644 sound/soc/qcom/qdsp6/q6asm-dai.c if (!pdata) pdata 873 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_data *pdata) pdata 912 sound/soc/qcom/qdsp6/q6asm-dai.c struct q6asm_dai_data *pdata; pdata 915 sound/soc/qcom/qdsp6/q6asm-dai.c pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata 916 sound/soc/qcom/qdsp6/q6asm-dai.c if (!pdata) pdata 921 sound/soc/qcom/qdsp6/q6asm-dai.c pdata->sid = -1; pdata 923 sound/soc/qcom/qdsp6/q6asm-dai.c pdata->sid = args.args[0] & SID_MASK_DEFAULT; pdata 925 sound/soc/qcom/qdsp6/q6asm-dai.c dev_set_drvdata(dev, pdata); pdata 927 sound/soc/qcom/qdsp6/q6asm-dai.c of_q6asm_parse_dai_data(dev, pdata); pdata 315 sound/soc/qcom/qdsp6/q6routing.c struct session_data *session, *pdata; pdata 323 sound/soc/qcom/qdsp6/q6routing.c pdata = &routing_data->port_data[session->port_id]; pdata 328 sound/soc/qcom/qdsp6/q6routing.c session->path_type = pdata->path_type; pdata 329 sound/soc/qcom/qdsp6/q6routing.c session->sample_rate = pdata->sample_rate; pdata 330 sound/soc/qcom/qdsp6/q6routing.c session->channels = pdata->channels; pdata 331 sound/soc/qcom/qdsp6/q6routing.c session->bits_per_sample = pdata->bits_per_sample; pdata 174 sound/soc/qcom/sdm845.c struct sdm845_snd_data *pdata = snd_soc_card_get_drvdata(card); pdata 178 sound/soc/qcom/sdm845.c if (!pdata->jack_setup) { pdata 184 sound/soc/qcom/sdm845.c &pdata->jack, NULL, 0); pdata 191 sound/soc/qcom/sdm845.c jack = pdata->jack.jack; pdata 197 sound/soc/qcom/sdm845.c pdata->jack_setup = true; pdata 202 sound/soc/qcom/sdm845.c jack = pdata->jack.jack; pdata 208 sound/soc/qcom/sdm845.c &pdata->jack, NULL); pdata 155 sound/soc/samsung/s3c2412-i2s.c struct s3c_audio_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 157 sound/soc/samsung/s3c2412-i2s.c if (!pdata) { pdata 168 sound/soc/samsung/s3c2412-i2s.c s3c2412_i2s_pcm_stereo_out.filter_data = pdata->dma_playback; pdata 170 sound/soc/samsung/s3c2412-i2s.c s3c2412_i2s_pcm_stereo_in.filter_data = pdata->dma_capture; pdata 173 sound/soc/samsung/s3c2412-i2s.c pdata->dma_filter, pdata 16 sound/soc/samsung/s3c24xx_simtec.c static struct s3c24xx_audio_simtec_pdata *pdata; pdata 42 sound/soc/samsung/s3c24xx_simtec.c gpio_set_value_cansleep(pdata->amp_gain[0], value & 1); pdata 43 sound/soc/samsung/s3c24xx_simtec.c gpio_set_value_cansleep(pdata->amp_gain[1], value >> 1); pdata 85 sound/soc/samsung/s3c24xx_simtec.c gpio_set_value(pdata->amp_gpio, to); pdata 88 sound/soc/samsung/s3c24xx_simtec.c if (to && pdata->amp_gain[0] > 0) pdata 134 sound/soc/samsung/s3c24xx_simtec.c if (pdata->amp_gpio > 0) { pdata 141 sound/soc/samsung/s3c24xx_simtec.c if (pdata->amp_gain[0] > 0) { pdata 174 sound/soc/samsung/s3c24xx_simtec.c if (pdata->use_mpllin) { pdata 185 sound/soc/samsung/s3c24xx_simtec.c if (pdata->output_cdclk) { pdata 227 sound/soc/samsung/s3c24xx_simtec.c if (pdata->amp_gain[0] > 0) { pdata 237 sound/soc/samsung/s3c24xx_simtec.c gpio_free(pdata->amp_gain[0]); pdata 246 sound/soc/samsung/s3c24xx_simtec.c if (pdata->amp_gpio > 0) { pdata 283 sound/soc/samsung/s3c24xx_simtec.c simtec_call_startup(pdata); pdata 303 sound/soc/samsung/s3c24xx_simtec.c pdata = pdev->dev.platform_data; pdata 304 sound/soc/samsung/s3c24xx_simtec.c if (!pdata) { pdata 309 sound/soc/samsung/s3c24xx_simtec.c simtec_call_startup(pdata); pdata 319 sound/soc/samsung/s3c24xx_simtec.c ret = attach_gpio_amp(&pdev->dev, pdata); pdata 345 sound/soc/samsung/s3c24xx_simtec.c detach_gpio_amp(pdata); pdata 359 sound/soc/samsung/s3c24xx_simtec.c detach_gpio_amp(pdata); pdata 332 sound/soc/sh/siu_pcm.c struct siu_platform *pdata = component->dev->platform_data; pdata 349 sound/soc/sh/siu_pcm.c param->shdma_slave.slave_id = port ? pdata->dma_slave_tx_b : pdata 350 sound/soc/sh/siu_pcm.c pdata->dma_slave_tx_a; pdata 354 sound/soc/sh/siu_pcm.c param->shdma_slave.slave_id = port ? pdata->dma_slave_rx_b : pdata 355 sound/soc/sh/siu_pcm.c pdata->dma_slave_rx_a; pdata 261 sound/soc/sof/core.c struct snd_sof_pdata *plat_data = sdev->pdata; pdata 333 sound/soc/sof/core.c struct snd_sof_pdata *plat_data = sdev->pdata; pdata 485 sound/soc/sof/core.c sdev->pdata = plat_data; pdata 530 sound/soc/sof/core.c struct snd_sof_pdata *pdata = sdev->pdata; pdata 547 sound/soc/sof/core.c if (!IS_ERR_OR_NULL(pdata->pdev_mach)) pdata 548 sound/soc/sof/core.c platform_device_unregister(pdata->pdev_mach); pdata 560 sound/soc/sof/core.c release_firmware(pdata->fw); pdata 561 sound/soc/sof/core.c pdata->fw = NULL; pdata 427 sound/soc/sof/intel/bdw.c struct snd_sof_pdata *pdata = sdev->pdata; pdata 428 sound/soc/sof/intel/bdw.c const struct sof_dev_desc *desc = pdata->desc; pdata 395 sound/soc/sof/intel/byt.c struct snd_sof_pdata *pdata = sdev->pdata; pdata 396 sound/soc/sof/intel/byt.c const struct sof_dev_desc *desc = pdata->desc; pdata 530 sound/soc/sof/intel/byt.c struct snd_sof_pdata *pdata = sdev->pdata; pdata 531 sound/soc/sof/intel/byt.c const struct sof_dev_desc *desc = pdata->desc; pdata 258 sound/soc/sof/intel/hda-dsp.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 273 sound/soc/sof/intel/hda-dsp.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 287 sound/soc/sof/intel/hda-dsp.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 84 sound/soc/sof/intel/hda-loader.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 267 sound/soc/sof/intel/hda-loader.c struct snd_sof_pdata *plat_data = sdev->pdata; pdata 90 sound/soc/sof/intel/hda-pcm.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 142 sound/soc/sof/intel/hda-pcm.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 83 sound/soc/sof/intel/hda-stream.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 24 sound/soc/sof/intel/hda-trace.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 42 sound/soc/sof/intel/hda-trace.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 73 sound/soc/sof/intel/hda-trace.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 91 sound/soc/sof/intel/hda-trace.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 351 sound/soc/sof/intel/hda.c struct snd_sof_pdata *pdata = sdev->pdata; pdata 411 sound/soc/sof/intel/hda.c if (!pdata->machine && codec_num <= 2 && pdata 414 sound/soc/sof/intel/hda.c pdata->machine = hda_mach; pdata 417 sound/soc/sof/intel/hda.c pdata->tplg_filename = pdata 421 sound/soc/sof/intel/hda.c mach = pdata->desc->machines; pdata 422 sound/soc/sof/intel/hda.c pdata->fw_filename = mach->sof_fw_filename; pdata 452 sound/soc/sof/intel/hda.c tplg_filename = pdata->tplg_filename; pdata 459 sound/soc/sof/intel/hda.c pdata->tplg_filename = tplg_filename; pdata 464 sound/soc/sof/intel/hda.c if (pdata->machine) { pdata 466 sound/soc/sof/intel/hda.c &pdata->machine->mach_params; pdata 486 sound/soc/sof/intel/hda.c *get_chip_info(struct snd_sof_pdata *pdata) pdata 488 sound/soc/sof/intel/hda.c const struct sof_dev_desc *desc = pdata->desc; pdata 520 sound/soc/sof/intel/hda.c chip = get_chip_info(sdev->pdata); pdata 531 sound/soc/sof/intel/hda.c sdev->pdata->hw_pdata = hdev; pdata 682 sound/soc/sof/intel/hda.c struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; pdata 408 sound/soc/sof/intel/hda.h struct sof_intel_hda_dev *hda = s->pdata->hw_pdata; pdata 415 sound/soc/sof/intel/hda.h struct sof_intel_hda_dev *hda = s->pdata->hw_pdata; pdata 428 sound/soc/sof/loader.c struct snd_sof_pdata *plat_data = sdev->pdata; pdata 460 sound/soc/sof/loader.c struct snd_sof_pdata *plat_data = sdev->pdata; pdata 22 sound/soc/sof/ops.h ((sdev)->pdata->desc->ops) pdata 706 sound/soc/sof/pcm.c struct snd_sof_pdata *plat_data = sdev->pdata; pdata 747 sound/soc/sof/pcm.c struct snd_sof_pdata *plat_data = sdev->pdata; pdata 217 sound/soc/sof/sof-priv.h #define sof_arch_ops(sdev) ((sdev)->pdata->desc->arch_ops) pdata 391 sound/soc/sof/sof-priv.h struct snd_sof_pdata *pdata; pdata 48 sound/soc/sof/topology.c struct sof_abi_hdr *pdata; pdata 1800 sound/soc/sof/topology.c wdata[i].pdata = wdata[i].control->control_data->data; pdata 1801 sound/soc/sof/topology.c if (!wdata[i].pdata) pdata 1805 sound/soc/sof/topology.c if (wdata[i].pdata->magic != SOF_ABI_MAGIC) pdata 1808 sound/soc/sof/topology.c *size += wdata[i].pdata->size; pdata 1913 sound/soc/sof/topology.c wdata[i].pdata->data, pdata 1914 sound/soc/sof/topology.c wdata[i].pdata->size); pdata 1915 sound/soc/sof/topology.c offset += wdata[i].pdata->size; pdata 204 sound/soc/spear/spdif_in.c struct spear_spdif_platform_data *pdata; pdata 232 sound/soc/spear/spdif_in.c pdata = dev_get_platdata(&pdev->dev); pdata 234 sound/soc/spear/spdif_in.c if (!pdata) pdata 237 sound/soc/spear/spdif_in.c host->dma_params.data = pdata->dma_params; pdata 241 sound/soc/spear/spdif_in.c host->reset_perip = pdata->reset_perip; pdata 259 sound/soc/spear/spdif_in.c pdata->filter); pdata 280 sound/soc/spear/spdif_out.c struct spear_spdif_platform_data *pdata; pdata 297 sound/soc/spear/spdif_out.c pdata = dev_get_platdata(&pdev->dev); pdata 299 sound/soc/spear/spdif_out.c host->dma_params.data = pdata->dma_params; pdata 312 sound/soc/spear/spdif_out.c pdata->filter); pdata 259 sound/soc/stm/stm32_sai.h ((ip)->pdata->conf.has_spdif_pdm) pdata 55 sound/soc/stm/stm32_sai_sub.c #define STM_SAI_HAS_SPDIF(x) ((x)->pdata->conf.has_spdif_pdm) pdata 56 sound/soc/stm/stm32_sai_sub.c #define STM_SAI_HAS_PDM(x) ((x)->pdata->conf.has_spdif_pdm) pdata 57 sound/soc/stm/stm32_sai_sub.c #define STM_SAI_HAS_EXT_SYNC(x) (!STM_SAI_IS_F4(sai->pdata)) pdata 106 sound/soc/stm/stm32_sai_sub.c struct stm32_sai_data *pdata; pdata 193 sound/soc/stm/stm32_sai_sub.c ret = clk_enable(sai->pdata->pclk); pdata 199 sound/soc/stm/stm32_sai_sub.c clk_disable(sai->pdata->pclk); pdata 210 sound/soc/stm/stm32_sai_sub.c ret = clk_enable(sai->pdata->pclk); pdata 216 sound/soc/stm/stm32_sai_sub.c clk_disable(sai->pdata->pclk); pdata 226 sound/soc/stm/stm32_sai_sub.c ret = clk_enable(sai->pdata->pclk); pdata 232 sound/soc/stm/stm32_sai_sub.c clk_disable(sai->pdata->pclk); pdata 317 sound/soc/stm/stm32_sai_sub.c int version = sai->pdata->conf.version; pdata 338 sound/soc/stm/stm32_sai_sub.c int version = sai->pdata->conf.version; pdata 359 sound/soc/stm/stm32_sai_sub.c struct clk *parent_clk = sai->pdata->clk_x8k; pdata 363 sound/soc/stm/stm32_sai_sub.c parent_clk = sai->pdata->clk_x11k; pdata 1003 sound/soc/stm/stm32_sai_sub.c if (STM_SAI_IS_F4(sai->pdata)) { pdata 1192 sound/soc/stm/stm32_sai_sub.c if (sai->pdata->conf.fifo_size < 8) pdata 1213 sound/soc/stm/stm32_sai_sub.c ret = sai->pdata->set_sync(sai->pdata, sai->np_sync_provider, pdata 1435 sound/soc/stm/stm32_sai_sub.c if (sai->np_sync_provider != sai->pdata->pdev->dev.of_node) { pdata 1478 sound/soc/stm/stm32_sai_sub.c ret = clk_prepare(sai->pdata->pclk); pdata 1482 sound/soc/stm/stm32_sai_sub.c if (STM_SAI_IS_F4(sai->pdata)) pdata 1523 sound/soc/stm/stm32_sai_sub.c sai->pdata = dev_get_drvdata(pdev->dev.parent); pdata 1524 sound/soc/stm/stm32_sai_sub.c if (!sai->pdata) { pdata 1539 sound/soc/stm/stm32_sai_sub.c ret = devm_request_irq(&pdev->dev, sai->pdata->irq, stm32_sai_isr, pdata 1567 sound/soc/stm/stm32_sai_sub.c clk_unprepare(sai->pdata->pclk); pdata 1580 sound/soc/stm/stm32_sai_sub.c ret = clk_enable(sai->pdata->pclk); pdata 1587 sound/soc/stm/stm32_sai_sub.c clk_disable(sai->pdata->pclk); pdata 1597 sound/soc/stm/stm32_sai_sub.c ret = clk_enable(sai->pdata->pclk); pdata 1604 sound/soc/stm/stm32_sai_sub.c clk_disable(sai->pdata->pclk); pdata 1730 sound/soc/ti/davinci-mcasp.c struct davinci_mcasp_pdata *pdata = NULL; pdata 1740 sound/soc/ti/davinci-mcasp.c pdata = pdev->dev.platform_data; pdata 1741 sound/soc/ti/davinci-mcasp.c pdata->dismod = DISMOD_LOW; pdata 1742 sound/soc/ti/davinci-mcasp.c return pdata; pdata 1744 sound/soc/ti/davinci-mcasp.c pdata = devm_kmemdup(&pdev->dev, match->data, sizeof(*pdata), pdata 1746 sound/soc/ti/davinci-mcasp.c if (!pdata) { pdata 1748 sound/soc/ti/davinci-mcasp.c return pdata; pdata 1758 sound/soc/ti/davinci-mcasp.c pdata->op_mode = val; pdata 1769 sound/soc/ti/davinci-mcasp.c pdata->tdm_slots = val; pdata 1786 sound/soc/ti/davinci-mcasp.c pdata->num_serializer = val; pdata 1787 sound/soc/ti/davinci-mcasp.c pdata->serial_dir = of_serial_dir; pdata 1799 sound/soc/ti/davinci-mcasp.c pdata->tx_dma_channel = dma_spec.args[0]; pdata 1802 sound/soc/ti/davinci-mcasp.c if (pdata->op_mode != DAVINCI_MCASP_DIT_MODE) { pdata 1812 sound/soc/ti/davinci-mcasp.c pdata->rx_dma_channel = dma_spec.args[0]; pdata 1817 sound/soc/ti/davinci-mcasp.c pdata->txnumevt = val; pdata 1821 sound/soc/ti/davinci-mcasp.c pdata->rxnumevt = val; pdata 1825 sound/soc/ti/davinci-mcasp.c pdata->sram_size_playback = val; pdata 1829 sound/soc/ti/davinci-mcasp.c pdata->sram_size_capture = val; pdata 1834 sound/soc/ti/davinci-mcasp.c pdata->dismod = DISMOD_VAL(val); pdata 1837 sound/soc/ti/davinci-mcasp.c pdata->dismod = DISMOD_LOW; pdata 1840 sound/soc/ti/davinci-mcasp.c pdata->dismod = DISMOD_LOW; pdata 1843 sound/soc/ti/davinci-mcasp.c return pdata; pdata 1849 sound/soc/ti/davinci-mcasp.c pdata = NULL; pdata 1851 sound/soc/ti/davinci-mcasp.c return pdata; pdata 1898 sound/soc/ti/davinci-mcasp.c static u32 davinci_mcasp_txdma_offset(struct davinci_mcasp_pdata *pdata) pdata 1903 sound/soc/ti/davinci-mcasp.c if (pdata->version != MCASP_VERSION_4) pdata 1904 sound/soc/ti/davinci-mcasp.c return pdata->tx_dma_offset; pdata 1906 sound/soc/ti/davinci-mcasp.c for (i = 0; i < pdata->num_serializer; i++) { pdata 1907 sound/soc/ti/davinci-mcasp.c if (pdata->serial_dir[i] == TX_MODE) { pdata 1921 sound/soc/ti/davinci-mcasp.c static u32 davinci_mcasp_rxdma_offset(struct davinci_mcasp_pdata *pdata) pdata 1926 sound/soc/ti/davinci-mcasp.c if (pdata->version != MCASP_VERSION_4) pdata 1927 sound/soc/ti/davinci-mcasp.c return pdata->rx_dma_offset; pdata 1929 sound/soc/ti/davinci-mcasp.c for (i = 0; i < pdata->num_serializer; i++) { pdata 1930 sound/soc/ti/davinci-mcasp.c if (pdata->serial_dir[i] == RX_MODE) { pdata 2105 sound/soc/ti/davinci-mcasp.c struct davinci_mcasp_pdata *pdata; pdata 2122 sound/soc/ti/davinci-mcasp.c pdata = davinci_mcasp_set_pdata_from_of(pdev); pdata 2123 sound/soc/ti/davinci-mcasp.c if (!pdata) { pdata 2145 sound/soc/ti/davinci-mcasp.c mcasp->op_mode = pdata->op_mode; pdata 2148 sound/soc/ti/davinci-mcasp.c if (pdata->tdm_slots < 2) { pdata 2150 sound/soc/ti/davinci-mcasp.c pdata->tdm_slots); pdata 2152 sound/soc/ti/davinci-mcasp.c } else if (pdata->tdm_slots > 32) { pdata 2154 sound/soc/ti/davinci-mcasp.c pdata->tdm_slots); pdata 2157 sound/soc/ti/davinci-mcasp.c mcasp->tdm_slots = pdata->tdm_slots; pdata 2161 sound/soc/ti/davinci-mcasp.c mcasp->num_serializer = pdata->num_serializer; pdata 2171 sound/soc/ti/davinci-mcasp.c mcasp->serial_dir = pdata->serial_dir; pdata 2172 sound/soc/ti/davinci-mcasp.c mcasp->version = pdata->version; pdata 2173 sound/soc/ti/davinci-mcasp.c mcasp->txnumevt = pdata->txnumevt; pdata 2174 sound/soc/ti/davinci-mcasp.c mcasp->rxnumevt = pdata->rxnumevt; pdata 2175 sound/soc/ti/davinci-mcasp.c mcasp->dismod = pdata->dismod; pdata 2246 sound/soc/ti/davinci-mcasp.c dma_data->addr = mem->start + davinci_mcasp_txdma_offset(pdata); pdata 2253 sound/soc/ti/davinci-mcasp.c *dma = pdata->tx_dma_channel; pdata 2268 sound/soc/ti/davinci-mcasp.c mem->start + davinci_mcasp_rxdma_offset(pdata); pdata 2275 sound/soc/ti/davinci-mcasp.c *dma = pdata->rx_dma_channel; pdata 2340 sound/soc/ti/davinci-mcasp.c &davinci_mcasp_dai[pdata->op_mode], 1); pdata 262 sound/soc/ti/omap-mcbsp-priv.h struct omap_mcbsp_platform_data *pdata; pdata 284 sound/soc/ti/omap-mcbsp-priv.h void __iomem *addr = mcbsp->io_base + reg * mcbsp->pdata->reg_step; pdata 286 sound/soc/ti/omap-mcbsp-priv.h if (mcbsp->pdata->reg_size == 2) { pdata 298 sound/soc/ti/omap-mcbsp-priv.h void __iomem *addr = mcbsp->io_base + reg * mcbsp->pdata->reg_step; pdata 300 sound/soc/ti/omap-mcbsp-priv.h if (mcbsp->pdata->reg_size == 2) { pdata 83 sound/soc/ti/omap-mcbsp-st.c if (mcbsp->pdata->force_ick_on) pdata 84 sound/soc/ti/omap-mcbsp-st.c mcbsp->pdata->force_ick_on(mcbsp->st_data->mcbsp_iclk, true); pdata 113 sound/soc/ti/omap-mcbsp-st.c if (mcbsp->pdata->force_ick_on) pdata 114 sound/soc/ti/omap-mcbsp-st.c mcbsp->pdata->force_ick_on(mcbsp->st_data->mcbsp_iclk, false); pdata 195 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->has_ccr) { pdata 200 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->has_wakeup) pdata 223 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->reg_size == 2) pdata 228 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->reg_size == 2) pdata 234 sound/soc/ti/omap-mcbsp.c return mcbsp->phys_dma_base + data_reg * mcbsp->pdata->reg_step; pdata 270 sound/soc/ti/omap-mcbsp.c return mcbsp->pdata->buffer_size - buffstat; pdata 313 sound/soc/ti/omap-mcbsp.c if(mcbsp->pdata->ops && mcbsp->pdata->ops->request) pdata 314 sound/soc/ti/omap-mcbsp.c mcbsp->pdata->ops->request(mcbsp->id - 1); pdata 350 sound/soc/ti/omap-mcbsp.c if(mcbsp->pdata->ops && mcbsp->pdata->ops->free) pdata 351 sound/soc/ti/omap-mcbsp.c mcbsp->pdata->ops->free(mcbsp->id - 1); pdata 354 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->has_wakeup) pdata 371 sound/soc/ti/omap-mcbsp.c if(mcbsp->pdata->ops && mcbsp->pdata->ops->free) pdata 372 sound/soc/ti/omap-mcbsp.c mcbsp->pdata->ops->free(mcbsp->id - 1); pdata 375 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->has_wakeup) pdata 462 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->has_ccr) { pdata 485 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->has_ccr) { pdata 495 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->has_ccr) { pdata 516 sound/soc/ti/omap-mcbsp.c #define max_thres(m) (mcbsp->pdata->buffer_size) pdata 697 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->buffer_size) { pdata 725 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->buffer_size) pdata 745 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->buffer_size == 0) pdata 778 sound/soc/ti/omap-mcbsp.c size = mcbsp->pdata->buffer_size; pdata 809 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->buffer_size) { pdata 911 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->buffer_size == 0) pdata 939 sound/soc/ti/omap-mcbsp.c unsigned int buffer_size = mcbsp->pdata->buffer_size; pdata 1101 sound/soc/ti/omap-mcbsp.c if (!mcbsp->pdata->has_ccr) { pdata 1107 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->has_ccr) { pdata 1377 sound/soc/ti/omap-mcbsp.c struct omap_mcbsp_platform_data *pdata = dev_get_platdata(&pdev->dev); pdata 1385 sound/soc/ti/omap-mcbsp.c struct omap_mcbsp_platform_data *pdata_quirk = pdata; pdata 1388 sound/soc/ti/omap-mcbsp.c pdata = devm_kzalloc(&pdev->dev, pdata 1391 sound/soc/ti/omap-mcbsp.c if (!pdata) pdata 1394 sound/soc/ti/omap-mcbsp.c memcpy(pdata, match->data, sizeof(*pdata)); pdata 1396 sound/soc/ti/omap-mcbsp.c pdata->buffer_size = buffer_size; pdata 1398 sound/soc/ti/omap-mcbsp.c pdata->force_ick_on = pdata_quirk->force_ick_on; pdata 1399 sound/soc/ti/omap-mcbsp.c } else if (!pdata) { pdata 1408 sound/soc/ti/omap-mcbsp.c mcbsp->pdata = pdata; pdata 1416 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->reg_size == 2) { pdata 1434 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->ops && mcbsp->pdata->ops->free) pdata 1435 sound/soc/ti/omap-mcbsp.c mcbsp->pdata->ops->free(mcbsp->id); pdata 1440 sound/soc/ti/omap-mcbsp.c if (mcbsp->pdata->buffer_size) pdata 150 sound/soc/ti/omap-twl4030.c struct omap_tw4030_pdata *pdata = dev_get_platdata(card->dev); pdata 176 sound/soc/ti/omap-twl4030.c if (!pdata || !pdata->custom_routing) pdata 180 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_ear, "Earpiece Spk"); pdata 181 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_hf, "Handsfree Spk"); pdata 182 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_hs, "Headset Stereophone"); pdata 183 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_predriv, "Ext Spk"); pdata 184 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_carkit, "Carkit Spk"); pdata 186 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_mainmic, "Main Mic"); pdata 187 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_submic, "Sub Mic"); pdata 188 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_hsmic, "Headset Mic"); pdata 189 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_carkitmic, "Carkit Mic"); pdata 190 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_digimic0, "Digital0 Mic"); pdata 191 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_digimic1, "Digital1 Mic"); pdata 192 sound/soc/ti/omap-twl4030.c twl4030_disconnect_pin(dapm, pdata->has_linein, "Line In"); pdata 239 sound/soc/ti/omap-twl4030.c struct omap_tw4030_pdata *pdata = dev_get_platdata(&pdev->dev); pdata 295 sound/soc/ti/omap-twl4030.c } else if (pdata) { pdata 296 sound/soc/ti/omap-twl4030.c if (pdata->card_name) { pdata 297 sound/soc/ti/omap-twl4030.c card->name = pdata->card_name; pdata 303 sound/soc/ti/omap-twl4030.c if (!pdata->voice_connected) pdata 306 sound/soc/ti/omap-twl4030.c priv->jack_detect = pdata->jack_detect; pdata 48 sound/soc/ti/rx51.c struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); pdata 83 sound/soc/ti/rx51.c gpiod_set_value(pdata->tvout_selection_gpio, tvout); pdata 145 sound/soc/ti/rx51.c struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); pdata 147 sound/soc/ti/rx51.c gpiod_set_raw_value_cansleep(pdata->speaker_amp_gpio, pdata 266 sound/soc/ti/rx51.c struct rx51_audio_pdata *pdata = snd_soc_card_get_drvdata(card); pdata 287 sound/soc/ti/rx51.c rx51_av_jack_gpios[0].gpio = desc_to_gpio(pdata->jack_detection_gpio); pdata 288 sound/soc/ti/rx51.c devm_gpiod_put(card->dev, pdata->jack_detection_gpio); pdata 362 sound/soc/ti/rx51.c struct rx51_audio_pdata *pdata; pdata 414 sound/soc/ti/rx51.c pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata 415 sound/soc/ti/rx51.c if (pdata == NULL) pdata 418 sound/soc/ti/rx51.c snd_soc_card_set_drvdata(card, pdata); pdata 420 sound/soc/ti/rx51.c pdata->tvout_selection_gpio = devm_gpiod_get(card->dev, pdata 423 sound/soc/ti/rx51.c if (IS_ERR(pdata->tvout_selection_gpio)) { pdata 425 sound/soc/ti/rx51.c return PTR_ERR(pdata->tvout_selection_gpio); pdata 428 sound/soc/ti/rx51.c pdata->jack_detection_gpio = devm_gpiod_get(card->dev, pdata 431 sound/soc/ti/rx51.c if (IS_ERR(pdata->jack_detection_gpio)) { pdata 433 sound/soc/ti/rx51.c return PTR_ERR(pdata->jack_detection_gpio); pdata 436 sound/soc/ti/rx51.c pdata->eci_sw_gpio = devm_gpiod_get(card->dev, "eci-switch", pdata 438 sound/soc/ti/rx51.c if (IS_ERR(pdata->eci_sw_gpio)) { pdata 440 sound/soc/ti/rx51.c return PTR_ERR(pdata->eci_sw_gpio); pdata 443 sound/soc/ti/rx51.c pdata->speaker_amp_gpio = devm_gpiod_get(card->dev, pdata 446 sound/soc/ti/rx51.c if (IS_ERR(pdata->speaker_amp_gpio)) { pdata 448 sound/soc/ti/rx51.c return PTR_ERR(pdata->speaker_amp_gpio); pdata 690 sound/soc/ux500/ux500_msp_dai.c struct msp_i2s_platform_data *pdata = dai->dev->platform_data; pdata 693 sound/soc/ux500/ux500_msp_dai.c if (!pdata) { pdata 743 sound/soc/ux500/ux500_msp_dai.c struct msp_i2s_platform_data *pdata = pdev->dev.platform_data; pdata 747 sound/soc/ux500/ux500_msp_dai.c if (!pdata && !np) { pdata 649 sound/soc/ux500/ux500_msp_i2s.c struct msp_i2s_platform_data *pdata; pdata 654 sound/soc/ux500/ux500_msp_i2s.c pdata = *platform_data; pdata 655 sound/soc/ux500/ux500_msp_i2s.c if (!pdata) pdata 89 sound/soc/ux500/ux500_pcm.c struct msp_i2s_platform_data *pdata = rtd->cpu_dai->dev->platform_data; pdata 95 sound/soc/ux500/ux500_pcm.c if (pdata) { pdata 1567 sound/x86/intel_hdmi_audio.c struct intel_hdmi_lpe_audio_pdata *pdata = ctx->dev->platform_data; pdata 1568 sound/x86/intel_hdmi_audio.c struct intel_hdmi_lpe_audio_port_pdata *ppdata = &pdata->port[ctx->port]; pdata 1667 sound/x86/intel_hdmi_audio.c struct intel_hdmi_lpe_audio_pdata *pdata = card_ctx->dev->platform_data; pdata 1670 sound/x86/intel_hdmi_audio.c spin_lock_irq(&pdata->lpe_audio_slock); pdata 1671 sound/x86/intel_hdmi_audio.c pdata->notify_audio_lpe = NULL; pdata 1672 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&pdata->lpe_audio_slock); pdata 1698 sound/x86/intel_hdmi_audio.c struct intel_hdmi_lpe_audio_pdata *pdata; pdata 1703 sound/x86/intel_hdmi_audio.c pdata = pdev->dev.platform_data; pdata 1704 sound/x86/intel_hdmi_audio.c if (!pdata) { pdata 1741 sound/x86/intel_hdmi_audio.c card_ctx->num_pipes = pdata->num_pipes; pdata 1742 sound/x86/intel_hdmi_audio.c card_ctx->num_ports = single_port ? 1 : pdata->num_ports; pdata 1784 sound/x86/intel_hdmi_audio.c card_ctx->num_pipes = pdata->num_pipes; pdata 1785 sound/x86/intel_hdmi_audio.c card_ctx->num_ports = single_port ? 1 : pdata->num_ports; pdata 1842 sound/x86/intel_hdmi_audio.c spin_lock_irq(&pdata->lpe_audio_slock); pdata 1843 sound/x86/intel_hdmi_audio.c pdata->notify_audio_lpe = notify_audio_lpe; pdata 1844 sound/x86/intel_hdmi_audio.c spin_unlock_irq(&pdata->lpe_audio_slock);