/drivers/tty/serial/cpm_uart/ |
D | cpm_uart_core.c | 51 static void cpm_uart_init_smc(struct uart_cpm_port *pinfo); 52 static void cpm_uart_init_scc(struct uart_cpm_port *pinfo); 53 static void cpm_uart_initbd(struct uart_cpm_port *pinfo); 64 struct uart_cpm_port *pinfo = in cpm_uart_tx_empty() local 66 cbd_t __iomem *bdp = pinfo->tx_bd_base; in cpm_uart_tx_empty() 87 struct uart_cpm_port *pinfo = in cpm_uart_set_mctrl() local 90 if (pinfo->gpios[GPIO_RTS]) in cpm_uart_set_mctrl() 91 gpiod_set_value(pinfo->gpios[GPIO_RTS], !(mctrl & TIOCM_RTS)); in cpm_uart_set_mctrl() 93 if (pinfo->gpios[GPIO_DTR]) in cpm_uart_set_mctrl() 94 gpiod_set_value(pinfo->gpios[GPIO_DTR], !(mctrl & TIOCM_DTR)); in cpm_uart_set_mctrl() [all …]
|
D | cpm_uart_cpm1.c | 61 int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con) in cpm_uart_allocbuf() argument 69 pr_debug("CPM uart[%d]:allocbuf\n", pinfo->port.line); in cpm_uart_allocbuf() 71 dpmemsz = sizeof(cbd_t) * (pinfo->rx_nrfifos + pinfo->tx_nrfifos); in cpm_uart_allocbuf() 80 memsz = L1_CACHE_ALIGN(pinfo->rx_nrfifos * pinfo->rx_fifosize) + in cpm_uart_allocbuf() 81 L1_CACHE_ALIGN(pinfo->tx_nrfifos * pinfo->tx_fifosize); in cpm_uart_allocbuf() 88 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf() 98 pinfo->dp_addr = dp_offset; in cpm_uart_allocbuf() 99 pinfo->mem_addr = mem_addr; /* virtual address*/ in cpm_uart_allocbuf() 100 pinfo->dma_addr = dma_addr; /* physical address*/ in cpm_uart_allocbuf() 101 pinfo->mem_size = memsz; in cpm_uart_allocbuf() [all …]
|
D | cpm_uart_cpm2.c | 96 int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con) in cpm_uart_allocbuf() argument 104 pr_debug("CPM uart[%d]:allocbuf\n", pinfo->port.line); in cpm_uart_allocbuf() 106 dpmemsz = sizeof(cbd_t) * (pinfo->rx_nrfifos + pinfo->tx_nrfifos); in cpm_uart_allocbuf() 116 memsz = L1_CACHE_ALIGN(pinfo->rx_nrfifos * pinfo->rx_fifosize) + in cpm_uart_allocbuf() 117 L1_CACHE_ALIGN(pinfo->tx_nrfifos * pinfo->tx_fifosize); in cpm_uart_allocbuf() 123 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf() 133 pinfo->dp_addr = dp_offset; in cpm_uart_allocbuf() 134 pinfo->mem_addr = mem_addr; in cpm_uart_allocbuf() 135 pinfo->dma_addr = dma_addr; in cpm_uart_allocbuf() 136 pinfo->mem_size = memsz; in cpm_uart_allocbuf() [all …]
|
D | cpm_uart.h | 27 #define IS_SMC(pinfo) (pinfo->flags & FLAG_SMC) argument 28 #define IS_DISCARDING(pinfo) (pinfo->flags & FLAG_DISCARDING) argument 97 int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con); 98 void cpm_uart_freebuf(struct uart_cpm_port *pinfo); 100 void smc1_lineif(struct uart_cpm_port *pinfo); 101 void smc2_lineif(struct uart_cpm_port *pinfo); 102 void scc1_lineif(struct uart_cpm_port *pinfo); 103 void scc2_lineif(struct uart_cpm_port *pinfo); 104 void scc3_lineif(struct uart_cpm_port *pinfo); 105 void scc4_lineif(struct uart_cpm_port *pinfo); [all …]
|
/drivers/gpu/drm/panel/ |
D | panel-boe-himax8279d.c | 61 static void disable_gpios(struct panel_info *pinfo) in disable_gpios() argument 63 gpiod_set_value(pinfo->enable_gpio, 0); in disable_gpios() 64 gpiod_set_value(pinfo->pp33_gpio, 0); in disable_gpios() 65 gpiod_set_value(pinfo->pp18_gpio, 0); in disable_gpios() 70 struct panel_info *pinfo = to_panel_info(panel); in send_mipi_cmds() local 74 for (i = 0; i < pinfo->desc->on_cmds_num; i++) { in send_mipi_cmds() 75 err = mipi_dsi_dcs_write_buffer(pinfo->link, &cmds[i], in send_mipi_cmds() 87 struct panel_info *pinfo = to_panel_info(panel); in boe_panel_disable() local 90 if (!pinfo->enabled) in boe_panel_disable() 93 err = mipi_dsi_dcs_set_display_off(pinfo->link); in boe_panel_disable() [all …]
|
/drivers/video/fbdev/ |
D | platinumfb.c | 88 static int read_platinum_sense(struct fb_info_platinum *pinfo); 89 static void set_platinum_clock(struct fb_info_platinum *pinfo); 90 static void platinum_set_hardware(struct fb_info_platinum *pinfo); 92 struct fb_info_platinum *pinfo, 123 struct fb_info_platinum *pinfo = info->par; in platinumfb_set_par() local 127 if((err = platinum_var_to_par(&info->var, pinfo, 0))) { in platinumfb_set_par() 133 platinum_set_hardware(pinfo); in platinumfb_set_par() 135 init = platinum_reg_init[pinfo->vmode-1]; in platinumfb_set_par() 137 if ((pinfo->vmode == VMODE_832_624_75) && (pinfo->cmode > CMODE_8)) in platinumfb_set_par() 140 info->screen_base = pinfo->frame_buffer + init->fb_offset + offset; in platinumfb_set_par() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ddp.c | 35 struct i40e_profile_info *pinfo) in i40e_ddp_does_profile_exist() argument 49 if (i40e_ddp_profiles_eq(pinfo, &profile_list->p_info[i])) in i40e_ddp_does_profile_exist() 90 struct i40e_profile_info *pinfo) in i40e_ddp_does_profile_overlap() argument 104 if (i40e_ddp_profiles_overlap(pinfo, in i40e_ddp_does_profile_overlap() 125 struct i40e_profile_info *pinfo; in i40e_add_pinfo() local 136 pinfo = (struct i40e_profile_info *)(profile_info_sec + in i40e_add_pinfo() 138 pinfo->track_id = track_id; in i40e_add_pinfo() 139 pinfo->version = profile->version; in i40e_add_pinfo() 140 pinfo->op = I40E_DDP_ADD_TRACKID; in i40e_add_pinfo() 143 memset(pinfo->reserved, 0, sizeof(pinfo->reserved)); in i40e_add_pinfo() [all …]
|
/drivers/platform/x86/ |
D | intel_mid_thermal.c | 467 struct platform_info *pinfo; in mid_thermal_probe() local 469 pinfo = devm_kzalloc(&pdev->dev, sizeof(struct platform_info), in mid_thermal_probe() 471 if (!pinfo) in mid_thermal_probe() 489 pinfo->tzd[i] = thermal_zone_device_register(name[i], in mid_thermal_probe() 491 if (IS_ERR(pinfo->tzd[i])) { in mid_thermal_probe() 493 ret = PTR_ERR(pinfo->tzd[i]); in mid_thermal_probe() 496 ret = thermal_zone_device_enable(pinfo->tzd[i]); in mid_thermal_probe() 499 thermal_zone_device_unregister(pinfo->tzd[i]); in mid_thermal_probe() 504 pinfo->pdev = pdev; in mid_thermal_probe() 505 platform_set_drvdata(pdev, pinfo); in mid_thermal_probe() [all …]
|
/drivers/firmware/arm_scmi/ |
D | power.c | 251 struct scmi_power_info *pinfo = ph->get_priv(ph); in scmi_power_get_num_sources() local 253 if (!pinfo) in scmi_power_get_num_sources() 256 return pinfo->num_domains; in scmi_power_get_num_sources() 285 struct scmi_power_info *pinfo; in scmi_power_protocol_init() local 292 pinfo = devm_kzalloc(ph->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_power_protocol_init() 293 if (!pinfo) in scmi_power_protocol_init() 296 scmi_power_attributes_get(ph, pinfo); in scmi_power_protocol_init() 298 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_power_protocol_init() 299 sizeof(*pinfo->dom_info), GFP_KERNEL); in scmi_power_protocol_init() 300 if (!pinfo->dom_info) in scmi_power_protocol_init() [all …]
|
D | reset.c | 265 struct scmi_reset_info *pinfo = ph->get_priv(ph); in scmi_reset_get_num_sources() local 267 if (!pinfo) in scmi_reset_get_num_sources() 270 return pinfo->num_domains; in scmi_reset_get_num_sources() 298 struct scmi_reset_info *pinfo; in scmi_reset_protocol_init() local 305 pinfo = devm_kzalloc(ph->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_reset_protocol_init() 306 if (!pinfo) in scmi_reset_protocol_init() 309 scmi_reset_attributes_get(ph, pinfo); in scmi_reset_protocol_init() 311 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_reset_protocol_init() 312 sizeof(*pinfo->dom_info), GFP_KERNEL); in scmi_reset_protocol_init() 313 if (!pinfo->dom_info) in scmi_reset_protocol_init() [all …]
|
D | system.c | 117 struct scmi_system_info *pinfo; in scmi_system_protocol_init() local 124 pinfo = devm_kzalloc(ph->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_system_protocol_init() 125 if (!pinfo) in scmi_system_protocol_init() 128 pinfo->version = version; in scmi_system_protocol_init() 129 return ph->set_priv(ph, pinfo); in scmi_system_protocol_init()
|
D | perf.c | 878 struct scmi_perf_info *pinfo; in scmi_perf_protocol_init() local 885 pinfo = devm_kzalloc(ph->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_perf_protocol_init() 886 if (!pinfo) in scmi_perf_protocol_init() 889 scmi_perf_attributes_get(ph, pinfo); in scmi_perf_protocol_init() 891 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_perf_protocol_init() 892 sizeof(*pinfo->dom_info), GFP_KERNEL); in scmi_perf_protocol_init() 893 if (!pinfo->dom_info) in scmi_perf_protocol_init() 896 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_perf_protocol_init() 897 struct perf_dom_info *dom = pinfo->dom_info + domain; in scmi_perf_protocol_init() 906 pinfo->version = version; in scmi_perf_protocol_init() [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | smu10_hwmgr.c | 465 struct smu10_clock_voltage_information *pinfo = &(smu10_data->clock_vol_info); in smu10_populate_clock_table() local 474 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_dcefclk, in smu10_populate_clock_table() 477 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_socclk, in smu10_populate_clock_table() 480 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_fclk, in smu10_populate_clock_table() 483 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_mclk, in smu10_populate_clock_table() 487 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_dcefclk, in smu10_populate_clock_table() 490 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_socclk, in smu10_populate_clock_table() 493 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_fclk, in smu10_populate_clock_table() 497 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_dispclk, in smu10_populate_clock_table() 500 smu10_get_clock_voltage_dependency_table(hwmgr, &pinfo->vdd_dep_on_dppclk, in smu10_populate_clock_table() [all …]
|
/drivers/gpu/drm/i915/display/ |
D | intel_lpe_audio.c | 83 struct platform_device_info pinfo = {}; in lpe_audio_platdev_create() local 109 pinfo.parent = dev->dev; in lpe_audio_platdev_create() 110 pinfo.name = "hdmi-lpe-audio"; in lpe_audio_platdev_create() 111 pinfo.id = -1; in lpe_audio_platdev_create() 112 pinfo.res = rsc; in lpe_audio_platdev_create() 113 pinfo.num_res = 2; in lpe_audio_platdev_create() 114 pinfo.data = pdata; in lpe_audio_platdev_create() 115 pinfo.size_data = sizeof(*pdata); in lpe_audio_platdev_create() 116 pinfo.dma_mask = DMA_BIT_MASK(32); in lpe_audio_platdev_create() 125 platdev = platform_device_register_full(&pinfo); in lpe_audio_platdev_create()
|
/drivers/infiniband/hw/i40iw/ |
D | i40iw_pble.c | 64 struct i40iw_pble_pool *pinfo = &pble_rsrc->pinfo; in i40iw_destroy_pble_pool() local 66 if (pinfo->pool) { in i40iw_destroy_pble_pool() 67 list_for_each_safe(clist, tlist, &pinfo->clist) { in i40iw_destroy_pble_pool() 73 gen_pool_destroy(pinfo->pool); in i40iw_destroy_pble_pool() 98 pble_rsrc->pinfo.pool_shift = POOL_SHIFT; in i40iw_hmc_init_pble() 99 pble_rsrc->pinfo.pool = gen_pool_create(pble_rsrc->pinfo.pool_shift, -1); in i40iw_hmc_init_pble() 100 INIT_LIST_HEAD(&pble_rsrc->pinfo.clist); in i40iw_hmc_init_pble() 101 if (!pble_rsrc->pinfo.pool) in i40iw_hmc_init_pble() 385 if (gen_pool_add_virt(pble_rsrc->pinfo.pool, (unsigned long)chunk->vaddr, in add_pble_pool() 408 list_add(&chunk->list, &pble_rsrc->pinfo.clist); in add_pble_pool() [all …]
|
/drivers/usb/host/ |
D | pci-quirks.c | 151 static int amd_chipset_sb_type_init(struct amd_chipset_info *pinfo) in amd_chipset_sb_type_init() argument 154 pinfo->sb_type.gen = AMD_CHIPSET_UNKNOWN; in amd_chipset_sb_type_init() 156 pinfo->smbus_dev = pci_get_device(PCI_VENDOR_ID_ATI, in amd_chipset_sb_type_init() 158 if (pinfo->smbus_dev) { in amd_chipset_sb_type_init() 159 rev = pinfo->smbus_dev->revision; in amd_chipset_sb_type_init() 161 pinfo->sb_type.gen = AMD_CHIPSET_SB600; in amd_chipset_sb_type_init() 163 pinfo->sb_type.gen = AMD_CHIPSET_SB700; in amd_chipset_sb_type_init() 165 pinfo->sb_type.gen = AMD_CHIPSET_SB800; in amd_chipset_sb_type_init() 167 pinfo->smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD, in amd_chipset_sb_type_init() 170 if (pinfo->smbus_dev) { in amd_chipset_sb_type_init() [all …]
|
/drivers/staging/media/atomisp/pci/hmm/ |
D | hmm.c | 122 struct hmm_reserved_pool_info *pinfo = reserved_pool.pool_info; in reserved_pool_show() local 125 if (!pinfo || !pinfo->initialized) in reserved_pool_show() 128 spin_lock_irqsave(&pinfo->list_lock, flags); in reserved_pool_show() 130 pinfo->index, pinfo->pgnr); in reserved_pool_show() 131 spin_unlock_irqrestore(&pinfo->list_lock, flags); in reserved_pool_show() 145 struct hmm_dynamic_pool_info *pinfo = dynamic_pool.pool_info; in dynamic_pool_show() local 148 if (!pinfo || !pinfo->initialized) in dynamic_pool_show() 151 spin_lock_irqsave(&pinfo->list_lock, flags); in dynamic_pool_show() 153 pinfo->pgnr, pinfo->pool_size); in dynamic_pool_show() 154 spin_unlock_irqrestore(&pinfo->list_lock, flags); in dynamic_pool_show()
|
/drivers/spi/ |
D | spi-fsl-lib.c | 117 struct mpc8xxx_spi_probe_info *pinfo; in of_mpc8xxx_spi_probe() local 122 pinfo = devm_kzalloc(&ofdev->dev, sizeof(*pinfo), GFP_KERNEL); in of_mpc8xxx_spi_probe() 123 if (!pinfo) in of_mpc8xxx_spi_probe() 126 pdata = &pinfo->pdata; in of_mpc8xxx_spi_probe()
|
/drivers/usb/musb/ |
D | sunxi.c | 669 struct platform_device_info pinfo; in sunxi_musb_probe() local 780 memset(&pinfo, 0, sizeof(pinfo)); in sunxi_musb_probe() 781 pinfo.name = "musb-hdrc"; in sunxi_musb_probe() 782 pinfo.id = PLATFORM_DEVID_AUTO; in sunxi_musb_probe() 783 pinfo.parent = &pdev->dev; in sunxi_musb_probe() 784 pinfo.fwnode = of_fwnode_handle(pdev->dev.of_node); in sunxi_musb_probe() 785 pinfo.of_node_reused = true; in sunxi_musb_probe() 786 pinfo.res = pdev->resource; in sunxi_musb_probe() 787 pinfo.num_res = pdev->num_resources; in sunxi_musb_probe() 788 pinfo.data = &pdata; in sunxi_musb_probe() [all …]
|
D | davinci.c | 500 struct platform_device_info pinfo; in davinci_probe() local 561 pinfo = davinci_dev_info; in davinci_probe() 562 pinfo.parent = &pdev->dev; in davinci_probe() 563 pinfo.res = musb_resources; in davinci_probe() 564 pinfo.num_res = ARRAY_SIZE(musb_resources); in davinci_probe() 565 pinfo.data = pdata; in davinci_probe() 566 pinfo.size_data = sizeof(*pdata); in davinci_probe() 568 glue->musb = musb = platform_device_register_full(&pinfo); in davinci_probe()
|
D | am35x.c | 448 struct platform_device_info pinfo; in am35x_probe() local 497 pinfo = am35x_dev_info; in am35x_probe() 498 pinfo.parent = &pdev->dev; in am35x_probe() 499 pinfo.res = pdev->resource; in am35x_probe() 500 pinfo.num_res = pdev->num_resources; in am35x_probe() 501 pinfo.data = pdata; in am35x_probe() 502 pinfo.size_data = sizeof(*pdata); in am35x_probe() 504 glue->musb = musb = platform_device_register_full(&pinfo); in am35x_probe()
|
D | da8xx.c | 511 struct platform_device_info pinfo; in da8xx_probe() local 574 pinfo = da8xx_dev_info; in da8xx_probe() 575 pinfo.parent = &pdev->dev; in da8xx_probe() 576 pinfo.res = musb_resources; in da8xx_probe() 577 pinfo.num_res = ARRAY_SIZE(musb_resources); in da8xx_probe() 578 pinfo.data = pdata; in da8xx_probe() 579 pinfo.size_data = sizeof(*pdata); in da8xx_probe() 581 glue->musb = platform_device_register_full(&pinfo); in da8xx_probe()
|
/drivers/ata/ |
D | pata_macio.c | 1009 struct ata_port_info *pinfo) in pmac_macio_calc_timing_masks() argument 1013 pinfo->pio_mask = 0; in pmac_macio_calc_timing_masks() 1014 pinfo->mwdma_mask = 0; in pmac_macio_calc_timing_masks() 1015 pinfo->udma_mask = 0; in pmac_macio_calc_timing_masks() 1021 pinfo->pio_mask |= (mask >> 8); in pmac_macio_calc_timing_masks() 1024 pinfo->mwdma_mask |= mask; in pmac_macio_calc_timing_masks() 1027 pinfo->udma_mask |= mask; in pmac_macio_calc_timing_masks() 1033 pinfo->pio_mask, pinfo->mwdma_mask, pinfo->udma_mask); in pmac_macio_calc_timing_masks() 1042 struct ata_port_info pinfo; in pata_macio_common_init() local 1043 const struct ata_port_info *ppi[] = { &pinfo, NULL }; in pata_macio_common_init() [all …]
|
/drivers/media/platform/qcom/venus/ |
D | hfi_parser.c | 160 struct hfi_uncompressed_plane_info *pinfo = fmt->plane_info; in parse_raw_formats() local 168 num_planes = pinfo->num_planes; in parse_raw_formats() 170 rawfmts[i].fmt = pinfo->format; in parse_raw_formats() 177 if (pinfo->num_planes > MAX_PLANES) in parse_raw_formats() 180 pinfo = (void *)pinfo + sizeof(*constr) * num_planes + in parse_raw_formats()
|
/drivers/staging/rtl8723bs/hal/ |
D | hal_btcoex.c | 33 static void DBG_BT_INFO_INIT(PBTCDBGINFO pinfo, u8 *pbuf, u32 size) in DBG_BT_INFO_INIT() argument 35 if (!pinfo) in DBG_BT_INFO_INIT() 38 memset(pinfo, 0, sizeof(BTCDBGINFO)); in DBG_BT_INFO_INIT() 41 pinfo->info = pbuf; in DBG_BT_INFO_INIT() 42 pinfo->size = size; in DBG_BT_INFO_INIT() 48 PBTCDBGINFO pinfo; in DBG_BT_INFO() local 53 pinfo = &GLBtcDbgInfo; in DBG_BT_INFO() 55 if (!pinfo->info) in DBG_BT_INFO() 59 if (pinfo->len + msglen > pinfo->size) in DBG_BT_INFO() 62 pbuf = pinfo->info + pinfo->len; in DBG_BT_INFO() [all …]
|