Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 39) sorted by relevance

12

/arch/sparc/kernel/
Dleon_pci_grpci1.c102 static int grpci1_cfg_w32(struct grpci1_priv *priv, unsigned int bus,
107 struct grpci1_priv *priv = dev->bus->sysdata; in grpci1_map_irq() local
114 return priv->irq_map[pin]; in grpci1_map_irq()
117 static int grpci1_cfg_r32(struct grpci1_priv *priv, unsigned int bus, in grpci1_cfg_r32() argument
133 cfg = REGLOAD(priv->regs->cfg_stat); in grpci1_cfg_r32()
134 REGSTORE(priv->regs->cfg_stat, (cfg & ~(0xf << 23)) | (bus << 23)); in grpci1_cfg_r32()
137 pci_conf = (u32 *) (priv->pci_conf | (devfn << 8) | (where & 0xfc)); in grpci1_cfg_r32()
141 if (REGLOAD(priv->regs->cfg_stat) & CFGSTAT_CTO) { in grpci1_cfg_r32()
144 tmp = REGLOAD(priv->regs->stat_cmd); in grpci1_cfg_r32()
145 grpci1_cfg_w32(priv, TGT, 0, PCI_COMMAND, tmp); in grpci1_cfg_r32()
[all …]
Dleon_pci_grpci2.c224 struct grpci2_priv *priv = dev->bus->sysdata; in grpci2_map_irq() local
231 return priv->irq_map[pin]; in grpci2_map_irq()
234 static int grpci2_cfg_r32(struct grpci2_priv *priv, unsigned int bus, in grpci2_cfg_r32() argument
253 REGSTORE(priv->regs->ctrl, (REGLOAD(priv->regs->ctrl) & ~(0xff << 16)) | in grpci2_cfg_r32()
258 REGSTORE(priv->regs->sts_cap, (STS_CFGERR | STS_CFGERRVALID)); in grpci2_cfg_r32()
260 pci_conf = (unsigned int *) (priv->pci_conf | in grpci2_cfg_r32()
267 while ((REGLOAD(priv->regs->sts_cap) & STS_CFGERRVALID) == 0) in grpci2_cfg_r32()
270 if (REGLOAD(priv->regs->sts_cap) & STS_CFGERR) { in grpci2_cfg_r32()
280 static int grpci2_cfg_r16(struct grpci2_priv *priv, unsigned int bus, in grpci2_cfg_r16() argument
288 ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); in grpci2_cfg_r16()
[all …]
/arch/powerpc/sysdev/
Dmpic_timer.c85 static void convert_ticks_to_time(struct timer_group_priv *priv, in convert_ticks_to_time() argument
88 *time = (u64)div_u64(ticks, priv->timerfreq); in convert_ticks_to_time()
92 static int convert_time_to_ticks(struct timer_group_priv *priv, in convert_time_to_ticks() argument
97 max_value = div_u64(ULLONG_MAX, priv->timerfreq); in convert_time_to_ticks()
102 *ticks = (u64)time * (u64)priv->timerfreq; in convert_time_to_ticks()
109 struct timer_group_priv *priv) in detect_idle_cascade_timer() argument
120 spin_lock_irqsave(&priv->lock, flags); in detect_idle_cascade_timer()
121 map = casc_priv->cascade_map & priv->idle; in detect_idle_cascade_timer()
124 priv->timer[num].cascade_handle = casc_priv; in detect_idle_cascade_timer()
127 priv->idle &= ~casc_priv->cascade_map; in detect_idle_cascade_timer()
[all …]
Dfsl_rio.c136 struct rio_priv *priv = mport->priv; in fsl_local_config_read() local
139 *data = in_be32(priv->regs_win + offset); in fsl_local_config_read()
158 struct rio_priv *priv = mport->priv; in fsl_local_config_write() local
162 out_be32(priv->regs_win + offset, data); in fsl_local_config_write()
184 struct rio_priv *priv = mport->priv; in fsl_rio_config_read() local
201 out_be32(&priv->maint_atmu_regs->rowtar, in fsl_rio_config_read()
203 out_be32(&priv->maint_atmu_regs->rowtear, (destid >> 10)); in fsl_rio_config_read()
205 data = (u8 *) priv->maint_win + (offset & (RIO_MAINT_WIN_SIZE - 1)); in fsl_rio_config_read()
249 struct rio_priv *priv = mport->priv; in fsl_rio_config_write() local
266 out_be32(&priv->maint_atmu_regs->rowtar, in fsl_rio_config_write()
[all …]
Dfsl_rmu.c33 (((struct rio_priv *)(mport->priv))->rmm_handle)
723 struct rio_priv *priv = mport->priv; in fsl_open_outb_mbox() local
738 dma_alloc_coherent(priv->dev, RIO_MSG_BUFFER_SIZE, in fsl_open_outb_mbox()
744 dma_free_coherent(priv->dev, in fsl_open_outb_mbox()
755 rmu->msg_tx_ring.virt = dma_alloc_coherent(priv->dev, in fsl_open_outb_mbox()
802 dma_free_coherent(priv->dev, in fsl_open_outb_mbox()
808 dma_free_coherent(priv->dev, RIO_MSG_BUFFER_SIZE, in fsl_open_outb_mbox()
825 struct rio_priv *priv = mport->priv; in fsl_close_outb_mbox() local
832 dma_free_coherent(priv->dev, in fsl_close_outb_mbox()
855 struct rio_priv *priv = mport->priv; in fsl_open_inb_mbox() local
[all …]
Dfsl_rio.h30 #define RIO_REGS_WIN(mport) (((struct rio_priv *)(mport->priv))->regs_win)
/arch/powerpc/platforms/82xx/
Dpq2ads-pci-pic.c40 struct pq2ads_pci_pic *priv = irq_data_get_irq_chip_data(d); in pq2ads_pci_mask_irq() local
47 setbits32(&priv->regs->mask, 1 << irq); in pq2ads_pci_mask_irq()
56 struct pq2ads_pci_pic *priv = irq_data_get_irq_chip_data(d); in pq2ads_pci_unmask_irq() local
63 clrbits32(&priv->regs->mask, 1 << irq); in pq2ads_pci_unmask_irq()
80 struct pq2ads_pci_pic *priv = irq_desc_get_handler_data(desc); in pq2ads_pci_irq_demux() local
85 stat = in_be32(&priv->regs->stat); in pq2ads_pci_irq_demux()
86 mask = in_be32(&priv->regs->mask); in pq2ads_pci_irq_demux()
95 generic_handle_domain_irq(priv->host, bit); in pq2ads_pci_irq_demux()
115 struct pq2ads_pci_pic *priv; in pq2ads_pci_init_irq() local
133 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in pq2ads_pci_init_irq()
[all …]
/arch/powerpc/platforms/cell/
Dspider-pci.c27 struct spiderpci_iowa_private *priv; in spiderpci_io_flush() local
29 priv = bus->private; in spiderpci_io_flush()
30 in_be32(priv->regs + SPIDER_PCI_DUMMY_READ); in spiderpci_io_flush()
114 struct spiderpci_iowa_private *priv; in spiderpci_iowa_init() local
122 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in spiderpci_iowa_init()
123 if (!priv) { in spiderpci_iowa_init()
139 priv->regs = regs; in spiderpci_iowa_init()
140 bus->private = priv; in spiderpci_iowa_init()
148 kfree(priv); in spiderpci_iowa_init()
/arch/m68k/emu/
Dnfeth.c63 struct nfeth_private *priv = netdev_priv(dev); in nfeth_open() local
66 res = nf_call(nfEtherID + XIF_START, priv->ethX); in nfeth_open()
77 struct nfeth_private *priv = netdev_priv(dev); in nfeth_stop() local
82 nf_call(nfEtherID + XIF_STOP, priv->ethX); in nfeth_stop()
92 struct nfeth_private *priv = netdev_priv(dev); in recv_packet() local
97 pktlen = nf_call(nfEtherID + XIF_READLENGTH, priv->ethX); in recv_packet()
118 nf_call(nfEtherID + XIF_READBLOCK, priv->ethX, virt_to_phys(skb->data), in recv_packet()
148 struct nfeth_private *priv = netdev_priv(dev); in nfeth_xmit() local
160 nf_call(nfEtherID + XIF_WRITEBLOCK, priv->ethX, virt_to_phys(data), in nfeth_xmit()
188 struct nfeth_private *priv; in nfeth_probe() local
[all …]
/arch/powerpc/platforms/pasemi/
Dgpio_mdio.c34 #define MDC_PIN(bus) (((struct gpio_priv *)bus->priv)->mdc_pin)
35 #define MDIO_PIN(bus) (((struct gpio_priv *)bus->priv)->mdio_pin)
212 struct gpio_priv *priv; in gpio_mdio_probe() local
217 priv = kzalloc(sizeof(struct gpio_priv), GFP_KERNEL); in gpio_mdio_probe()
218 if (!priv) in gpio_mdio_probe()
233 new_bus->priv = priv; in gpio_mdio_probe()
236 priv->mdc_pin = *prop; in gpio_mdio_probe()
239 priv->mdio_pin = *prop; in gpio_mdio_probe()
257 kfree(priv); in gpio_mdio_probe()
271 kfree(bus->priv); in gpio_mdio_remove()
[all …]
/arch/um/drivers/
Dvirt-pci.c174 static unsigned long um_pci_cfgspace_read(void *priv, unsigned int offset, in um_pci_cfgspace_read() argument
177 struct um_pci_device_reg *reg = priv; in um_pci_cfgspace_read()
237 static void um_pci_cfgspace_write(void *priv, unsigned int offset, int size, in um_pci_cfgspace_write() argument
240 struct um_pci_device_reg *reg = priv; in um_pci_cfgspace_write()
285 static void um_pci_bar_copy_from(void *priv, void *buffer, in um_pci_bar_copy_from() argument
288 u8 *resptr = priv; in um_pci_bar_copy_from()
304 static unsigned long um_pci_bar_read(void *priv, unsigned int offset, in um_pci_bar_read() argument
328 um_pci_bar_copy_from(priv, data, offset, size); in um_pci_bar_read()
354 static void um_pci_bar_copy_to(void *priv, unsigned int offset, in um_pci_bar_copy_to() argument
357 u8 *resptr = priv; in um_pci_bar_copy_to()
[all …]
Dvirtio_uml.c776 struct virtio_uml_vq_info *info = vq->priv; in vu_notify()
803 struct virtio_uml_vq_info *info = vq->priv; in vu_interrupt()
857 struct virtio_uml_vq_info *info = vq->priv; in vu_del_vq()
895 struct virtio_uml_vq_info *info = vq->priv; in vu_setup_vq_call_fd()
961 vq->priv = info; in vu_setup_vq()
1044 struct virtio_uml_vq_info *info = vq->priv; in vu_find_vqs()
1404 struct virtio_uml_vq_info *info = vq->priv; in virtio_uml_suspend()
1427 struct virtio_uml_vq_info *info = vq->priv; in virtio_uml_resume()
/arch/csky/mm/
Dcachev2.c17 void local_icache_inv_all(void *priv) in local_icache_inv_all() argument
46 void local_icache_inv_range(void *priv) in local_icache_inv_range() argument
48 struct cache_range *param = priv; in local_icache_inv_range()
Dcachev1.c97 void local_icache_inv_all(void *priv) in local_icache_inv_all() argument
/arch/riscv/kernel/
Dcpu_ops_sbi.c18 unsigned long priv) in sbi_hsm_hart_start() argument
23 hartid, saddr, priv, 0, 0, 0); in sbi_hsm_hart_start()
/arch/arm/mach-pxa/include/mach/
Daudio.h24 void *priv; member
/arch/x86/kernel/cpu/resctrl/
Drdtgroup.c241 struct rftype *rft = of->kn->priv; in rdtgroup_seqfile_show()
251 struct rftype *rft = of->kn->priv; in rdtgroup_file_write()
272 struct rftype *rft = of->kn->priv; in is_cpu_list()
867 struct resctrl_schema *s = of->kn->parent->priv; in rdt_num_closids_show()
876 struct resctrl_schema *s = of->kn->parent->priv; in rdt_default_ctrl_show()
886 struct resctrl_schema *s = of->kn->parent->priv; in rdt_min_cbm_bits_show()
896 struct resctrl_schema *s = of->kn->parent->priv; in rdt_shareable_bits_show()
920 struct resctrl_schema *s = of->kn->parent->priv; in rdt_bit_usage_show()
1000 struct resctrl_schema *s = of->kn->parent->priv; in rdt_min_bw_show()
1010 struct rdt_resource *r = of->kn->parent->priv; in rdt_num_rmids_show()
[all …]
/arch/csky/include/asm/
Dcache.h19 void local_icache_inv_all(void *priv);
/arch/s390/kvm/
DMakefile12 kvm-objs := $(common-objs) kvm-s390.o intercept.o interrupt.o priv.o sigp.o
/arch/arm/mach-omap1/
Dboard-ams-delta.c757 struct modem_private_data *priv = port->private_data; in modem_pm() local
760 if (!priv) in modem_pm()
763 if (IS_ERR(priv->regulator)) in modem_pm()
770 ret = regulator_enable(priv->regulator); in modem_pm()
772 ret = regulator_disable(priv->regulator); in modem_pm()
/arch/arm/mach-pxa/
Dmainstone.c154 static int mst_audio_startup(struct snd_pcm_substream *substream, void *priv) in mst_audio_startup() argument
161 static void mst_audio_shutdown(struct snd_pcm_substream *substream, void *priv) in mst_audio_shutdown() argument
169 static void mst_audio_suspend(void *priv) in mst_audio_suspend() argument
175 static void mst_audio_resume(void *priv) in mst_audio_resume() argument
/arch/arm/nwfpe/
Dfpmodule.c40 void fp_send_sig(unsigned long sig, struct task_struct *p, int priv);
/arch/x86/kernel/cpu/
Dcacheinfo.c353 struct amd_northbridge *nb = this_leaf->priv; in show_cache_disable()
441 struct amd_northbridge *nb = this_leaf->priv; in store_cache_disable()
514 if (!this_leaf->priv) in cache_private_attrs_is_visible()
564 struct amd_northbridge *nb = this_leaf->priv; in cache_get_priv_group()
985 this_leaf->priv = base->nb; in ci_leaf_init()
/arch/arm/xen/
Denlighten.c95 unsigned long was_set, void *priv) in xen_pvclock_gtod_notify() argument
102 struct timekeeper *tk = priv; in xen_pvclock_gtod_notify()
/arch/powerpc/kvm/
De500_mmu_host.c590 struct tlbe_priv *priv; in kvmppc_mmu_map() local
599 priv = &vcpu_e500->gtlb_priv[tlbsel][esel]; in kvmppc_mmu_map()
602 if (!(priv->ref.flags & E500_TLB_VALID)) { in kvmppc_mmu_map()
606 &priv->ref, eaddr, &stlbe); in kvmppc_mmu_map()

12