Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 43) sorted by relevance

12

/drivers/media/video/pvrusb2/
Dpvrusb2-context.c43 static void pvr2_context_set_notify(struct pvr2_context *mp, int fl) in pvr2_context_set_notify() argument
48 if (!mp->notify_flag) { in pvr2_context_set_notify()
50 mp->notify_prev = pvr2_context_notify_last; in pvr2_context_set_notify()
51 mp->notify_next = NULL; in pvr2_context_set_notify()
52 pvr2_context_notify_last = mp; in pvr2_context_set_notify()
53 if (mp->notify_prev) { in pvr2_context_set_notify()
54 mp->notify_prev->notify_next = mp; in pvr2_context_set_notify()
56 pvr2_context_notify_first = mp; in pvr2_context_set_notify()
58 mp->notify_flag = !0; in pvr2_context_set_notify()
61 if (mp->notify_flag) { in pvr2_context_set_notify()
[all …]
/drivers/net/
Dmyri_sbus.c115 static inline void bang_the_chip(struct myri_eth *mp) in bang_the_chip() argument
117 struct myri_shmem __iomem *shmem = mp->shmem; in bang_the_chip()
118 void __iomem *cregs = mp->cregs; in bang_the_chip()
124 static int myri_do_handshake(struct myri_eth *mp) in myri_do_handshake() argument
126 struct myri_shmem __iomem *shmem = mp->shmem; in myri_do_handshake()
127 void __iomem *cregs = mp->cregs; in myri_do_handshake()
137 myri_disable_irq(mp->lregs, cregs); in myri_do_handshake()
162 myri_enable_irq(mp->lregs, cregs); in myri_do_handshake()
172 static int __devinit myri_load_lanai(struct myri_eth *mp) in myri_load_lanai() argument
174 struct net_device *dev = mp->dev; in myri_load_lanai()
[all …]
Dmv643xx_eth.c407 static inline u32 rdl(struct mv643xx_eth_private *mp, int offset) in rdl() argument
409 return readl(mp->shared->base + offset); in rdl()
412 static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset) in rdlp() argument
414 return readl(mp->base + offset); in rdlp()
417 static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data) in wrl() argument
419 writel(data, mp->shared->base + offset); in wrl()
422 static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data) in wrlp() argument
424 writel(data, mp->base + offset); in wrlp()
441 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_enable() local
442 wrlp(mp, RXQ_COMMAND, 1 << rxq->index); in rxq_enable()
[all …]
Dmace.c89 static inline void mace_clean_rings(struct mace_data *mp);
101 struct mace_data *mp; in mace_probe() local
146 mp = netdev_priv(dev); in mace_probe()
147 mp->mdev = mdev; in mace_probe()
151 mp->mace = ioremap(dev->base_addr, 0x1000); in mace_probe()
152 if (mp->mace == NULL) { in mace_probe()
163 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe()
164 in_8(&mp->mace->chipid_lo); in mace_probe()
167 mp = netdev_priv(dev); in mace_probe()
168 mp->maccc = ENXMT | ENRCV; in mace_probe()
[all …]
Dmacmace.c108 struct mace_data *mp = netdev_priv(dev); in mace_load_rxdma_base() local
111 psc_write_long(PSC_ENETRD_ADDR + set, (u32) mp->rx_ring_phys); in mace_load_rxdma_base()
114 mp->rx_tail = 0; in mace_load_rxdma_base()
123 struct mace_data *mp = netdev_priv(dev); in mace_rxdma_reset() local
124 volatile struct mace *mace = mp->mace; in mace_rxdma_reset()
138 mp->rx_slot = 0; in mace_rxdma_reset()
150 struct mace_data *mp = netdev_priv(dev); in mace_txdma_reset() local
151 volatile struct mace *mace = mp->mace; in mace_txdma_reset()
159 mp->tx_slot = mp->tx_sloti = 0; in mace_txdma_reset()
160 mp->tx_count = N_TX_RING; in mace_txdma_reset()
[all …]
Dniu.c3807 struct niu_xmac_stats *mp = &np->mac_stats.xmac; in niu_xmac_interrupt() local
3812 mp->tx_frames += TXMAC_FRM_CNT_COUNT; in niu_xmac_interrupt()
3814 mp->tx_bytes += TXMAC_BYTE_CNT_COUNT; in niu_xmac_interrupt()
3816 mp->tx_fifo_errors++; in niu_xmac_interrupt()
3818 mp->tx_overflow_errors++; in niu_xmac_interrupt()
3820 mp->tx_max_pkt_size_errors++; in niu_xmac_interrupt()
3822 mp->tx_underflow_errors++; in niu_xmac_interrupt()
3826 mp->rx_local_faults++; in niu_xmac_interrupt()
3828 mp->rx_remote_faults++; in niu_xmac_interrupt()
3830 mp->rx_link_faults += LINK_FAULT_CNT_COUNT; in niu_xmac_interrupt()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_malloc.c60 static void *___sym_malloc(m_pool_p mp, int size) in ___sym_malloc() argument
66 m_link_p h = mp->h; in ___sym_malloc()
106 static void ___sym_mfree(m_pool_p mp, void *ptr, int size) in ___sym_mfree() argument
112 m_link_p h = mp->h; in ___sym_mfree()
158 static void *__sym_calloc2(m_pool_p mp, int size, char *name, int uflags) in __sym_calloc2() argument
162 p = ___sym_malloc(mp, size); in __sym_calloc2()
174 #define __sym_calloc(mp, s, n) __sym_calloc2(mp, s, n, SYM_MEM_WARN) argument
179 static void __sym_mfree(m_pool_p mp, void *ptr, int size, char *name) in __sym_mfree() argument
184 ___sym_mfree(mp, ptr, size); in __sym_mfree()
193 static void *___mp0_get_mem_cluster(m_pool_p mp) in ___mp0_get_mem_cluster() argument
[all …]
Dsym_hipd.h1163 #define M_GET_MEM_CLUSTER() mp->get_mem_cluster(mp)
1164 #define M_FREE_MEM_CLUSTER(p) mp->free_mem_cluster(mp, p)
1200 static __inline void *sym_m_get_dma_mem_cluster(m_pool_p mp, m_vtob_p vbp) in sym_m_get_dma_mem_cluster() argument
1205 vaddr = dma_alloc_coherent(mp->dev_dmat, SYM_MEM_CLUSTER_SIZE, &baddr, in sym_m_get_dma_mem_cluster()
1214 static __inline void sym_m_free_dma_mem_cluster(m_pool_p mp, m_vtob_p vbp) in sym_m_free_dma_mem_cluster() argument
1216 dma_free_coherent(mp->dev_dmat, SYM_MEM_CLUSTER_SIZE, vbp->vaddr, in sym_m_free_dma_mem_cluster()
/drivers/isdn/capi/
Dcapi.c167 static int capincci_add_ack(struct capiminor *mp, u16 datahandle) in capincci_add_ack() argument
179 spin_lock_irqsave(&mp->ackqlock, flags); in capincci_add_ack()
180 list_add_tail(&n->list, &mp->ackqueue); in capincci_add_ack()
181 mp->nack++; in capincci_add_ack()
182 spin_unlock_irqrestore(&mp->ackqlock, flags); in capincci_add_ack()
186 static int capiminor_del_ack(struct capiminor *mp, u16 datahandle) in capiminor_del_ack() argument
191 spin_lock_irqsave(&mp->ackqlock, flags); in capiminor_del_ack()
192 list_for_each_entry_safe(p, tmp, &mp->ackqueue, list) { in capiminor_del_ack()
196 mp->nack--; in capiminor_del_ack()
197 spin_unlock_irqrestore(&mp->ackqlock, flags); in capiminor_del_ack()
[all …]
/drivers/net/ixp2000/
Dixp2400-msf.c26 static void ixp2400_pll_init(struct ixp2400_msf_parameters *mp) in ixp2400_pll_init() argument
36 rx_dual_clock = !!(mp->rx_mode & IXP2400_RX_MODE_WIDTH_MASK); in ixp2400_pll_init()
37 tx_dual_clock = !!(mp->tx_mode & IXP2400_TX_MODE_WIDTH_MASK); in ixp2400_pll_init()
60 value |= mp->rxclk01_multiplier << 16; in ixp2400_pll_init()
61 value |= mp->rxclk23_multiplier << 18; in ixp2400_pll_init()
62 value |= mp->txclk01_multiplier << 20; in ixp2400_pll_init()
63 value |= mp->txclk23_multiplier << 22; in ixp2400_pll_init()
93 static void ixp2400_msf_free_rbuf_entries(struct ixp2400_msf_parameters *mp) in ixp2400_msf_free_rbuf_entries() argument
103 size_bits = mp->rx_mode & IXP2400_RX_MODE_RBUF_SIZE_MASK; in ixp2400_msf_free_rbuf_entries()
154 static void ixp2400_msf_enable_rx(struct ixp2400_msf_parameters *mp) in ixp2400_msf_enable_rx() argument
[all …]
/drivers/mtd/devices/
Dms02-nv.c60 struct ms02nv_private *mp = mtd->priv; in ms02nv_read() local
65 memcpy(buf, mp->uaddr + from, len); in ms02nv_read()
74 struct ms02nv_private *mp = mtd->priv; in ms02nv_write() local
79 memcpy(mp->uaddr + to, buf, len); in ms02nv_write()
119 struct ms02nv_private *mp; in ms02nv_init_one() local
156 mp = kzalloc(sizeof(*mp), GFP_KERNEL); in ms02nv_init_one()
157 if (!mp) in ms02nv_init_one()
160 mtd->priv = mp; in ms02nv_init_one()
161 mp->resource.module = mod_res; in ms02nv_init_one()
174 mp->resource.diag_ram = diag_res; in ms02nv_init_one()
[all …]
/drivers/scsi/libfc/
Dfc_exch.c276 struct fc_exch_mgr *mp; in fc_exch_release() local
279 mp = ep->em; in fc_exch_release()
283 ep->lp->tt.exch_put(ep->lp, mp, ep->xid); in fc_exch_release()
285 mempool_free(ep, mp->ep_pool); in fc_exch_release()
315 struct fc_exch_mgr *mp; in fc_exch_mgr_delete_ep() local
317 mp = ep->em; in fc_exch_mgr_delete_ep()
318 spin_lock_bh(&mp->em_lock); in fc_exch_mgr_delete_ep()
319 WARN_ON(mp->total_exches <= 0); in fc_exch_mgr_delete_ep()
320 mp->total_exches--; in fc_exch_mgr_delete_ep()
321 mp->exches[ep->xid - mp->min_xid] = NULL; in fc_exch_mgr_delete_ep()
[all …]
/drivers/scsi/lpfc/
Dlpfc_mem.c154 struct lpfc_dmabuf *mp; in lpfc_mem_free() local
161 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free()
162 if (mp) { in lpfc_mem_free()
163 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free()
164 kfree(mp); in lpfc_mem_free()
170 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free()
171 if (mp) { in lpfc_mem_free()
172 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free()
173 kfree(mp); in lpfc_mem_free()
182 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free()
[all …]
Dlpfc_ct.c63 struct lpfc_dmabuf *mp, uint32_t size) in lpfc_ct_ignore_hbq_buffer() argument
65 if (!mp) { in lpfc_ct_ignore_hbq_buffer()
79 struct lpfc_dmabuf *mp, uint32_t size) in lpfc_ct_unsol_buffer() argument
81 lpfc_ct_ignore_hbq_buffer(phba, piocbq, mp, size); in lpfc_ct_unsol_buffer()
89 struct lpfc_dmabuf *mp = NULL; in lpfc_ct_unsol_event() local
147 mp = lpfc_sli_ringpostbuf_get(phba, pring, in lpfc_ct_unsol_event()
150 lpfc_ct_unsol_buffer(phba, iocbq, mp, size); in lpfc_ct_unsol_event()
151 lpfc_in_buf_free(phba, mp); in lpfc_ct_unsol_event()
179 struct lpfc_dmabuf *mp; in lpfc_alloc_ct_rsp() local
187 mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_alloc_ct_rsp()
[all …]
Dlpfc_mbox.c207 lpfc_read_la(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmb, struct lpfc_dmabuf *mp) in lpfc_read_la() argument
216 INIT_LIST_HEAD(&mp->list); in lpfc_read_la()
219 mb->un.varReadLA.un.lilpBde64.addrHigh = putPaddrHigh(mp->phys); in lpfc_read_la()
220 mb->un.varReadLA.un.lilpBde64.addrLow = putPaddrLow(mp->phys); in lpfc_read_la()
225 pmb->context1 = (uint8_t *) mp; in lpfc_read_la()
489 struct lpfc_dmabuf *mp; in lpfc_read_sparam() local
501 mp = kmalloc(sizeof (struct lpfc_dmabuf), GFP_KERNEL); in lpfc_read_sparam()
502 if (mp) in lpfc_read_sparam()
503 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); in lpfc_read_sparam()
504 if (!mp || !mp->virt) { in lpfc_read_sparam()
[all …]
Dlpfc_hbadisc.c965 struct lpfc_dmabuf *mp = (struct lpfc_dmabuf *) pmb->context1; in lpfc_mbx_cmpl_read_sparam() local
980 memcpy((uint8_t *) &vport->fc_sparam, (uint8_t *) mp->virt, in lpfc_mbx_cmpl_read_sparam()
997 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mbx_cmpl_read_sparam()
998 kfree(mp); in lpfc_mbx_cmpl_read_sparam()
1004 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mbx_cmpl_read_sparam()
1005 kfree(mp); in lpfc_mbx_cmpl_read_sparam()
1017 struct lpfc_dmabuf *mp; in lpfc_mbx_process_link_up() local
1114 mp = (struct lpfc_dmabuf *) sparam_mbox->context1; in lpfc_mbx_process_link_up()
1115 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mbx_process_link_up()
1116 kfree(mp); in lpfc_mbx_process_link_up()
[all …]
Dlpfc_vport.c109 struct lpfc_dmabuf *mp; in lpfc_vport_sparm() local
123 mp = (struct lpfc_dmabuf *) pmb->context1; in lpfc_vport_sparm()
133 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm()
134 kfree(mp); in lpfc_vport_sparm()
143 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm()
144 kfree(mp); in lpfc_vport_sparm()
151 memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm)); in lpfc_vport_sparm()
157 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm()
158 kfree(mp); in lpfc_vport_sparm()
Dlpfc_init.c308 struct lpfc_dmabuf *mp; in lpfc_config_port_post() local
339 mp = (struct lpfc_dmabuf *) pmb->context1; in lpfc_config_port_post()
341 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_config_port_post()
342 kfree(mp); in lpfc_config_port_post()
346 mp = (struct lpfc_dmabuf *) pmb->context1; in lpfc_config_port_post()
348 memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm)); in lpfc_config_port_post()
349 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_config_port_post()
350 kfree(mp); in lpfc_config_port_post()
601 struct lpfc_dmabuf *mp, *next_mp; in lpfc_hba_down_post() local
612 list_for_each_entry_safe(mp, next_mp, &pring->postbufq, list) { in lpfc_hba_down_post()
[all …]
/drivers/block/aoe/
Daoechr.c121 char *mp; in aoechr_error() local
134 mp = kmalloc(n, GFP_ATOMIC); in aoechr_error()
135 if (mp == NULL) { in aoechr_error()
140 memcpy(mp, msg, n); in aoechr_error()
141 em->msg = mp; in aoechr_error()
208 char *mp; in aoechr_read() local
246 mp = em->msg; in aoechr_read()
256 n = copy_to_user(buf, mp, len); in aoechr_read()
257 kfree(mp); in aoechr_read()
/drivers/isdn/i4l/
Disdn_ppp.c1586 static void isdn_ppp_mp_discard(ippp_bundle *mp, struct sk_buff *from,
1591 static void isdn_ppp_mp_free_skb(ippp_bundle *mp, struct sk_buff *skb);
1603 ippp_bundle *mp; in isdn_ppp_mp_receive() local
1607 mp = net_dev->pb; in isdn_ppp_mp_receive()
1608 stats = &mp->stats; in isdn_ppp_mp_receive()
1615 spin_unlock_irqrestore(&mp->lock, flags); in isdn_ppp_mp_receive()
1619 if (++mp->frames > stats->max_queue_len) in isdn_ppp_mp_receive()
1620 stats->max_queue_len = mp->frames; in isdn_ppp_mp_receive()
1631 if (mp->seq > MP_LONGSEQ_MAX && (newseq & MP_LONGSEQ_MAXBIT)) { in isdn_ppp_mp_receive()
1632 mp->seq = newseq; /* the first packet: required for in isdn_ppp_mp_receive()
[all …]
/drivers/net/hamradio/
Dhdlcdrv.c546 bi.data.mp.iobase = dev->base_addr; in hdlcdrv_ioctl()
547 bi.data.mp.irq = dev->irq; in hdlcdrv_ioctl()
548 bi.data.mp.dma = dev->dma; in hdlcdrv_ioctl()
549 bi.data.mp.dma2 = s->ptt_out.dma2; in hdlcdrv_ioctl()
550 bi.data.mp.seriobase = s->ptt_out.seriobase; in hdlcdrv_ioctl()
551 bi.data.mp.pariobase = s->ptt_out.pariobase; in hdlcdrv_ioctl()
552 bi.data.mp.midiiobase = s->ptt_out.midiiobase; in hdlcdrv_ioctl()
558 dev->base_addr = bi.data.mp.iobase; in hdlcdrv_ioctl()
559 dev->irq = bi.data.mp.irq; in hdlcdrv_ioctl()
560 dev->dma = bi.data.mp.dma; in hdlcdrv_ioctl()
[all …]
/drivers/misc/
Datmel_pwm.c309 u32 *mp = pdev->dev.platform_data; in pwm_probe() local
315 if (!r || irq < 0 || !mp || !*mp) in pwm_probe()
317 if (*mp & ~((1<<PWM_NCHAN)-1)) { in pwm_probe()
319 *mp, PWM_NCHAN); in pwm_probe()
329 p->mask = *mp; in pwm_probe()
/drivers/scsi/
Dncr53c8xx.c234 static void *___m_alloc(m_pool_s *mp, int size) in ___m_alloc() argument
240 m_link_s *h = mp->h; in ___m_alloc()
253 h[j].next = (m_link_s *)mp->getp(mp); in ___m_alloc()
277 static void ___m_free(m_pool_s *mp, void *ptr, int size) in ___m_free() argument
283 m_link_s *h = mp->h; in ___m_free()
302 mp->freep(mp, a); in ___m_free()
325 static void *__m_calloc2(m_pool_s *mp, int size, char *name, int uflags) in __m_calloc2() argument
329 p = ___m_alloc(mp, size); in __m_calloc2()
342 #define __m_calloc(mp, s, n) __m_calloc2(mp, s, n, MEMO_WARN) argument
344 static void __m_free(m_pool_s *mp, void *ptr, int size, char *name) in __m_free() argument
[all …]
/drivers/media/dvb/bt8xx/
Dbt878.c344 bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp) in bt878_device_control() argument
356 mp->enb.mask, in bt878_device_control()
357 mp->enb.enable); in bt878_device_control()
362 mp->outp.mask, in bt878_device_control()
363 mp->outp.highvals); in bt878_device_control()
368 retval = bttv_read_gpio(bt->bttv_nr, &mp->rd.value); in bt878_device_control()
373 bt->TS_Size = mp->psize; in bt878_device_control()
/drivers/s390/cio/
Dcio.h25 u32 mp : 1; /* multipath mode */ member
56 u32 mp:1; member

12