/linux/drivers/net/ethernet/smsc/ |
A D | smsc9420.c | 297 netif_info(pd, hw, pd->dev, in smsc9420_eeprom_send_cmd() 424 netif_dbg(pd, probe, pd->dev, in smsc9420_check_mac_address() 441 netif_dbg(pd, probe, pd->dev, in smsc9420_check_mac_address() 447 netif_dbg(pd, probe, pd->dev, in smsc9420_check_mac_address() 584 netif_warn(pd, ifdown, pd->dev, in smsc9420_stop_rx() 702 free_irq(pd->pdev->irq, pd); in smsc9420_stop() 1149 pd->mii_bus->priv = pd; in smsc9420_mii_init() 1274 netif_warn(pd, ifup, pd->dev, in smsc9420_open() 1368 netif_warn(pd, ifup, pd->dev, in smsc9420_open() 1376 netif_warn(pd, ifup, pd->dev, in smsc9420_open() [all …]
|
/linux/drivers/i2c/busses/ |
A D | i2c-sh_mobile.c | 244 pd->iccl, pd->icch); in sh_mobile_i2c_check_timing() 260 dev_dbg(pd->dev, "timing values: L/H=0x%x/0x%x\n", pd->iccl, pd->icch); in sh_mobile_i2c_check_timing() 321 iic_wr(pd, ICDR, pd->msg->buf[pd->pos]); in i2c_op() 356 if (pd->pos == pd->msg->len) { in sh_mobile_i2c_isr_tx() 413 pd->pos, pd->msg->len); in sh_mobile_i2c_isr() 448 ? pd->dma_rx : pd->dma_tx; in sh_mobile_i2c_dma_unmap() 451 pd->msg->len, pd->dma_direction); in sh_mobile_i2c_dma_unmap() 473 pd->pos = pd->msg->len; in sh_mobile_i2c_dma_callback() 542 sg_dma_len(&pd->sg) = pd->msg->len; in sh_mobile_i2c_xfer_dma() 580 iic_wr(pd, ICCL, pd->iccl & 0xff); in start_ch() [all …]
|
A D | i2c-simtec.c | 68 if (pd == NULL) in simtec_i2c_probe() 99 pd->adap.algo_data = &pd->bit; in simtec_i2c_probe() 102 strlcpy(pd->adap.name, "Simtec I2C", sizeof(pd->adap.name)); in simtec_i2c_probe() 104 pd->bit.data = pd; in simtec_i2c_probe() 109 pd->bit.timeout = HZ; in simtec_i2c_probe() 110 pd->bit.udelay = 20; in simtec_i2c_probe() 119 iounmap(pd->reg); in simtec_i2c_probe() 125 kfree(pd); in simtec_i2c_probe() 135 iounmap(pd->reg); in simtec_i2c_remove() 136 release_mem_region(pd->ioarea->start, resource_size(pd->ioarea)); in simtec_i2c_remove() [all …]
|
/linux/drivers/block/ |
A D | pktcdvd.c | 130 p->pd = pd; in pkt_kobj_create() 616 pkt->pd = pd; in pkt_grow_pktlist() 906 pkt_set_speed(pd, pd->write_speed, pd->read_speed); in pkt_iosched_process_queue() 910 pd->read_speed = pd->write_speed; in pkt_iosched_process_queue() 911 pkt_set_speed(pd, pd->write_speed, pd->read_speed); in pkt_iosched_process_queue() 950 struct pktcdvd_device *pd = pkt->pd; in pkt_end_io_read() local 969 struct pktcdvd_device *pd = pkt->pd; in pkt_end_io_packet_write() local 2296 struct pktcdvd_device *pd = psd->pd; in pkt_end_io_read_cloned() local 2310 psd->pd = pd; in pkt_make_request_read() 2579 pd->cdrw.thread = kthread_run(kcdrwd, pd, "%s", pd->name); in pkt_new_dev() [all …]
|
/linux/drivers/media/pci/dt3155/ |
A D | dt3155.c | 129 unsigned size = pd->width * pd->height; in dt3155_queue_setup() 158 iowrite32(pd->width, pd->regs + EVEN_DMA_STRIDE); in dt3155_start_streaming() 159 iowrite32(pd->width, pd->regs + ODD_DMA_STRIDE); in dt3155_start_streaming() 167 write_i2c_reg(pd->regs, CONFIG, pd->config); in dt3155_start_streaming() 183 write_i2c_reg_nowait(pd->regs, CSR2, pd->csr2); in dt3155_stop_streaming() 502 if (!pd) in dt3155_probe() 509 pd->vdev.v4l2_dev = &pd->v4l2_dev; in dt3155_probe() 524 pd->vidq.drv_priv = pd; in dt3155_probe() 529 pd->vdev.queue = &pd->vidq; in dt3155_probe() 560 free_irq(pd->pdev->irq, pd); in dt3155_probe() [all …]
|
/linux/drivers/soc/mediatek/ |
A D | mtk-pm-domains.c | 214 ret = clk_bulk_prepare_enable(pd->num_clks, pd->clks); in scpsys_power_on() 251 clk_bulk_disable_unprepare(pd->num_clks, pd->clks); in scpsys_power_on() 287 clk_bulk_disable_unprepare(pd->num_clks, pd->clks); in scpsys_power_off() 326 pd = devm_kzalloc(scpsys->dev, sizeof(*pd), GFP_KERNEL); in scpsys_add_one_domain() 327 if (!pd) in scpsys_add_one_domain() 377 pd->clks = devm_kcalloc(scpsys->dev, pd->num_clks, sizeof(*pd->clks), GFP_KERNEL); in scpsys_add_one_domain() 441 pd->genpd.name = pd->data->name; in scpsys_add_one_domain() 456 clk_bulk_put(pd->num_subsys_clks, pd->subsys_clks); in scpsys_add_one_domain() 458 clk_bulk_put(pd->num_clks, pd->clks); in scpsys_add_one_domain() 533 clk_bulk_put(pd->num_clks, pd->clks); in scpsys_remove_one_domain() [all …]
|
/linux/drivers/clk/sifive/ |
A D | sifive-prci.c | 211 struct __prci_data *pd = pc->pd; in sifive_prci_wrpll_set_rate() local 232 struct __prci_data *pd = pc->pd; in sifive_clk_is_enabled() local 247 struct __prci_data *pd = pc->pd; in sifive_prci_clock_enable() local 264 struct __prci_data *pd = pc->pd; in sifive_prci_clock_disable() local 282 struct __prci_data *pd = pc->pd; in sifive_prci_tlclksel_recalc_rate() local 299 struct __prci_data *pd = pc->pd; in sifive_prci_hfpclkplldiv_recalc_rate() local 460 struct __prci_data *pd = pc->pd; in sifive_prci_pcie_aux_clock_is_enabled() local 474 struct __prci_data *pd = pc->pd; in sifive_prci_pcie_aux_clock_enable() local 489 struct __prci_data *pd = pc->pd; in sifive_prci_pcie_aux_clock_disable() local 532 pic->pd = pd; in __prci_register_clocks() [all …]
|
/linux/drivers/gpu/drm/gma500/ |
A D | mmu.c | 160 struct psb_mmu_pd *pd = kmalloc(sizeof(*pd), GFP_KERNEL); in psb_mmu_alloc_pd() local 164 if (!pd) in psb_mmu_alloc_pd() 168 if (!pd->p) in psb_mmu_alloc_pd() 197 kunmap(pd->p); in psb_mmu_alloc_pd() 210 return pd; in psb_mmu_alloc_pd() 219 kfree(pd); in psb_mmu_alloc_pd() 256 kfree(pd); in psb_mmu_free_pagedir() 288 if (pd->driver->has_clflush && pd->hw_context != -1) { in psb_mmu_alloc_pt() 300 pt->pd = pd; in psb_mmu_alloc_pt() 365 struct psb_mmu_pd *pd = pt->pd; in psb_mmu_pt_unmap_unlock() local [all …]
|
/linux/net/l2tp/ |
A D | l2tp_debugfs.c | 48 pd->tunnel = l2tp_tunnel_get_nth(pd->net, pd->tunnel_idx); in l2tp_dfs_next_tunnel() 58 pd->session = l2tp_session_get_nth(pd->tunnel, pd->session_idx); in l2tp_dfs_next_session() 76 pd = NULL; in l2tp_dfs_seq_start() 87 if (!pd->tunnel && !pd->session) in l2tp_dfs_seq_start() 88 pd = NULL; in l2tp_dfs_seq_start() 91 return pd; in l2tp_dfs_seq_start() 104 if (!pd || pd == SEQ_START_TOKEN) in l2tp_dfs_seq_stop() 275 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in l2tp_dfs_seq_open() 276 if (!pd) in l2tp_dfs_seq_open() 301 kfree(pd); in l2tp_dfs_seq_open() [all …]
|
/linux/drivers/soc/samsung/ |
A D | pm_domains.c | 42 pd = container_of(domain, struct exynos_pm_domain, pd); in exynos_pd_power() 113 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in exynos_pd_probe() 114 if (!pd) in exynos_pd_probe() 117 pd->pd.name = exynos_get_domain_name(np); in exynos_pd_probe() 118 if (!pd->pd.name) in exynos_pd_probe() 123 kfree_const(pd->pd.name); in exynos_pd_probe() 127 pd->pd.power_off = exynos_pd_power_off; in exynos_pd_probe() 128 pd->pd.power_on = exynos_pd_power_on; in exynos_pd_probe() 131 on = readl_relaxed(pd->base + 0x4) & pd->local_pwr_cfg; in exynos_pd_probe() 133 pm_genpd_init(&pd->pd, NULL, !on); in exynos_pd_probe() [all …]
|
/linux/arch/powerpc/platforms/ps3/ |
A D | interrupt.c | 105 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_mask() 126 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_unmask() 144 lv1_end_of_interrupt_ext(pd->ppe_id, pd->thread_id, d->irq); in ps3_chip_eoi() 224 __LINE__, pd->ppe_id, pd->thread_id, virq); in ps3_virq_destroy() 260 result = lv1_connect_irq_plug_ext(pd->ppe_id, pd->thread_id, *virq, in ps3_irq_plug_setup() 294 __LINE__, pd->ppe_id, pd->thread_id, virq); in ps3_irq_plug_destroy() 640 _dump_64_bmp("stat", &pd->bmp.status, pd->thread_id, func, line); in _dump_bmp() 705 u64 x = (pd->bmp.status & pd->bmp.mask); in ps3_get_irq() 735 lv1_end_of_interrupt_ext(pd->ppe_id, pd->thread_id, plug); in ps3_get_irq() 757 __func__, __LINE__, pd->ppe_id, pd->thread_id, in ps3_init_IRQ() [all …]
|
/linux/drivers/soc/xilinx/ |
A D | zynqmp_pm_domains.c | 75 struct zynqmp_pm_domain *pd; in zynqmp_gpd_power_on() local 105 struct zynqmp_pm_domain *pd; in zynqmp_gpd_power_off() local 156 struct zynqmp_pm_domain *pd; in zynqmp_gpd_attach_dev() local 189 struct zynqmp_pm_domain *pd; in zynqmp_gpd_detach_dev() local 225 if (pd[i].node_id == idx) in zynqmp_gpd_xlate() 234 if (pd[i].node_id == 0) { in zynqmp_gpd_xlate() 235 pd[i].node_id = idx; in zynqmp_gpd_xlate() 255 pd = devm_kcalloc(dev, ZYNQMP_NUM_DOMAINS, sizeof(*pd), GFP_KERNEL); in zynqmp_gpd_probe() 256 if (!pd) in zynqmp_gpd_probe() 275 pd->node_id = 0; in zynqmp_gpd_probe() [all …]
|
/linux/arch/arm/mach-s3c/ |
A D | devs.c | 337 if (!pd) { in s3c_i2c0_set_platdata() 365 if (!pd) { in s3c_i2c1_set_platdata() 394 if (!pd) { in s3c_i2c2_set_platdata() 423 if (!pd) { in s3c_i2c3_set_platdata() 452 if (!pd) { in s3c_i2c4_set_platdata() 481 if (!pd) { in s3c_i2c5_set_platdata() 510 if (!pd) { in s3c_i2c6_set_platdata() 539 if (!pd) { in s3c_i2c7_set_platdata() 954 if (!pd) in s3c64xx_ts_set_platdata() 1125 s3c_set_platdata(&pd, sizeof(pd), &s3c64xx_device_spi0); in s3c64xx_spi0_set_platdata() [all …]
|
A D | platformdata.c | 20 if (!pd) { in s3c_set_platdata() 37 set->cd_type = pd->cd_type; in s3c_sdhci_set_platdata() 43 if (pd->max_width) in s3c_sdhci_set_platdata() 44 set->max_width = pd->max_width; in s3c_sdhci_set_platdata() 45 if (pd->cfg_gpio) in s3c_sdhci_set_platdata() 46 set->cfg_gpio = pd->cfg_gpio; in s3c_sdhci_set_platdata() 47 if (pd->host_caps) in s3c_sdhci_set_platdata() 48 set->host_caps |= pd->host_caps; in s3c_sdhci_set_platdata() 49 if (pd->host_caps2) in s3c_sdhci_set_platdata() 51 if (pd->pm_caps) in s3c_sdhci_set_platdata() [all …]
|
/linux/drivers/soc/rockchip/ |
A D | pm_domains.c | 283 (pd->info->pwr_mask | pd->info->pwr_w_mask)); in rockchip_do_pmu_set_power_domain() 307 ret = clk_bulk_enable(pd->num_clks, pd->clks); in rockchip_pd_power() 330 clk_bulk_disable(pd->num_clks, pd->clks); in rockchip_pd_power() 421 if (!pd) in rockchip_pm_add_one_domain() 429 pd->clks = devm_kcalloc(pmu->dev, pd->num_clks, in rockchip_pm_add_one_domain() 450 error = clk_bulk_prepare(pd->num_clks, pd->clks); in rockchip_pm_add_one_domain() 502 pd->genpd.name = pd->info->name; in rockchip_pm_add_one_domain() 518 clk_bulk_unprepare(pd->num_clks, pd->clks); in rockchip_pm_add_one_domain() 520 clk_bulk_put(pd->num_clks, pd->clks); in rockchip_pm_add_one_domain() 537 clk_bulk_unprepare(pd->num_clks, pd->clks); in rockchip_pm_remove_one_domain() [all …]
|
/linux/drivers/soc/ti/ |
A D | ti_sci_pm_domains.c | 47 struct generic_pm_domain pd; member 75 if (pd->exclusive) in ti_sci_pd_power_on() 77 pd->idx); in ti_sci_pd_power_on() 159 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in ti_sci_pm_domain_probe() 160 if (!pd) in ti_sci_pm_domain_probe() 163 pd->pd.name = devm_kasprintf(dev, GFP_KERNEL, in ti_sci_pm_domain_probe() 166 if (!pd->pd.name) in ti_sci_pm_domain_probe() 169 pd->pd.power_off = ti_sci_pd_power_off; in ti_sci_pm_domain_probe() 170 pd->pd.power_on = ti_sci_pd_power_on; in ti_sci_pm_domain_probe() 174 pm_genpd_init(&pd->pd, NULL, true); in ti_sci_pm_domain_probe() [all …]
|
/linux/drivers/media/tuners/ |
A D | tda18271-maps.c | 13 u8 pd; /* post div */ member 25 { .lomax = 32000, .pd = 0x5f, .d = 0xf0 }, 26 { .lomax = 35000, .pd = 0x5e, .d = 0xe0 }, 27 { .lomax = 37000, .pd = 0x5d, .d = 0xd0 }, 28 { .lomax = 41000, .pd = 0x5c, .d = 0xc0 }, 29 { .lomax = 44000, .pd = 0x5b, .d = 0xb0 }, 30 { .lomax = 49000, .pd = 0x5a, .d = 0xa0 }, 31 { .lomax = 54000, .pd = 0x59, .d = 0x90 }, 32 { .lomax = 61000, .pd = 0x58, .d = 0x80 }, 33 { .lomax = 65000, .pd = 0x4f, .d = 0x78 }, [all …]
|
/linux/drivers/soc/amlogic/ |
A D | meson-gx-pwrc-vpu.c | 80 clk_disable_unprepare(pd->vpu_clk); in meson_gx_pwrc_vpu_power_off() 81 clk_disable_unprepare(pd->vapb_clk); in meson_gx_pwrc_vpu_power_off() 123 clk_disable_unprepare(pd->vpu_clk); in meson_g12a_pwrc_vpu_power_off() 124 clk_disable_unprepare(pd->vapb_clk); in meson_g12a_pwrc_vpu_power_off() 133 ret = clk_prepare_enable(pd->vpu_clk); in meson_gx_pwrc_vpu_setup_clk() 137 ret = clk_prepare_enable(pd->vapb_clk); in meson_gx_pwrc_vpu_setup_clk() 139 clk_disable_unprepare(pd->vpu_clk); in meson_gx_pwrc_vpu_setup_clk() 174 ret = reset_control_assert(pd->rstc); in meson_gx_pwrc_vpu_power_on() 185 ret = meson_gx_pwrc_vpu_setup_clk(pd); in meson_gx_pwrc_vpu_power_on() 228 ret = reset_control_assert(pd->rstc); in meson_g12a_pwrc_vpu_power_on() [all …]
|
/linux/drivers/soc/qcom/ |
A D | rpmhpd.c | 69 .pd = { .name = "ebi", }, 95 .pd = { .name = "mx", }, 109 .pd = { .name = "cx", }, 111 .parent = &sdm845_mx.pd, 329 .addr = pd->addr, in rpmhpd_send_corner() 348 if (pd->active_only) in to_active_sleep() 411 corner = max(pd->corner, pd->enable_corner); in rpmhpd_power_on() 414 pd->enabled = true; in rpmhpd_power_on() 430 pd->enabled = false; in rpmhpd_power_off() 456 if (pd->enabled) { in rpmhpd_set_performance_state() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | intel_ppgtt.c | 37 pd = kzalloc(sizeof(*pd), I915_GFP_ALLOW_FAIL); in __alloc_pd() 38 if (unlikely(!pd)) in __alloc_pd() 41 pd->entry = kcalloc(count, sizeof(*pd->entry), I915_GFP_ALLOW_FAIL); in __alloc_pd() 43 kfree(pd); in __alloc_pd() 48 return pd; in __alloc_pd() 56 if (unlikely(!pd)) in alloc_pd() 61 kfree(pd->entry); in alloc_pd() 62 kfree(pd); in alloc_pd() 66 return pd; in alloc_pd() 76 kfree(pd->entry); in free_px() [all …]
|
/linux/drivers/dma/ |
A D | pch_dma.c | 744 pd->regs.dma_ctl0 = dma_readl(pd, CTL0); in pch_dma_save_regs() 745 pd->regs.dma_ctl1 = dma_readl(pd, CTL1); in pch_dma_save_regs() 746 pd->regs.dma_ctl2 = dma_readl(pd, CTL2); in pch_dma_save_regs() 747 pd->regs.dma_ctl3 = dma_readl(pd, CTL3); in pch_dma_save_regs() 767 dma_writel(pd, CTL0, pd->regs.dma_ctl0); in pch_dma_restore_regs() 768 dma_writel(pd, CTL1, pd->regs.dma_ctl1); in pch_dma_restore_regs() 769 dma_writel(pd, CTL2, pd->regs.dma_ctl2); in pch_dma_restore_regs() 770 dma_writel(pd, CTL3, pd->regs.dma_ctl3); in pch_dma_restore_regs() 788 if (pd) in pch_dma_suspend() 798 if (pd) in pch_dma_resume() [all …]
|
/linux/drivers/soc/renesas/ |
A D | rmobile-sysc.c | 147 struct device_node *pd; member 167 if (!pd) in add_special_pd() 171 if (pd == special_pds[i].pd && type == special_pds[i].type) { in add_special_pd() 172 of_node_put(pd); in add_special_pd() 178 of_node_put(pd); in add_special_pd() 184 special_pds[num_special_pds].pd = pd; in add_special_pd() 220 if (pd == special_pds[i].pd) in pd_type() 292 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in rmobile_add_pm_domains() 293 if (!pd) { in rmobile_add_pm_domains() 299 pd->base = base; in rmobile_add_pm_domains() [all …]
|
/linux/kernel/ |
A D | padata.c | 177 pd = rcu_dereference_bh(ps->pd); in padata_do_parallel() 202 padata->pd = pd; in padata_do_parallel() 328 reorder = per_cpu_ptr(pd->reorder_list, pd->cpu); in padata_reorder() 352 pd = squeue->pd; in padata_serial_worker() 387 struct parallel_data *pd = padata->pd; in padata_do_serial() local 534 squeue->pd = pd; in padata_init_squeues() 559 if (!pd) in padata_alloc_pd() 585 pd->cpu = cpumask_first(pd->cpumask.pcpu); in padata_alloc_pd() 588 return pd; in padata_alloc_pd() 1068 if (!pd) in padata_alloc_shell() [all …]
|
/linux/drivers/infiniband/hw/usnic/ |
A D | usnic_uiom.c | 228 spin_lock(&pd->lock); in __usnic_uiom_reg_release() 255 struct usnic_uiom_pd *pd = uiomr->pd; in usnic_uiom_map_sorted_intervals() local 367 uiomr->pd = pd; in usnic_uiom_reg_get() 381 &pd->root, in usnic_uiom_reg_get() 447 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in usnic_uiom_alloc_pd() 448 if (!pd) in usnic_uiom_alloc_pd() 454 kfree(pd); in usnic_uiom_alloc_pd() 463 return pd; in usnic_uiom_alloc_pd() 469 kfree(pd); in usnic_uiom_dealloc_pd() 495 pd->dev_cnt++; in usnic_uiom_attach_dev_to_pd() [all …]
|
/linux/net/netfilter/ipvs/ |
A D | ip_vs_proto.c | 69 struct ip_vs_proto_data *pd = in register_ip_vs_proto_netns() local 72 if (!pd) in register_ip_vs_proto_netns() 85 kfree(pd); in register_ip_vs_proto_netns() 125 if (*pd_p == pd) { in unregister_ip_vs_proto_netns() 126 *pd_p = pd->next; in unregister_ip_vs_proto_netns() 128 pd->pp->exit_netns(ipvs, pd); in unregister_ip_vs_proto_netns() 129 kfree(pd); in unregister_ip_vs_proto_netns() 163 for (pd = ipvs->proto_data_table[hash]; pd; pd = pd->next) { in ip_vs_proto_data_get() 165 return pd; in ip_vs_proto_data_get() 181 for (pd = ipvs->proto_data_table[i]; pd; pd = pd->next) { in ip_vs_protocol_timeout_change() [all …]
|