/drivers/media/usb/pvrusb2/ |
D | pvrusb2-context.c | 39 static void pvr2_context_set_notify(struct pvr2_context *mp, int fl) in pvr2_context_set_notify() argument 44 if (!mp->notify_flag) { in pvr2_context_set_notify() 46 mp->notify_prev = pvr2_context_notify_last; in pvr2_context_set_notify() 47 mp->notify_next = NULL; in pvr2_context_set_notify() 48 pvr2_context_notify_last = mp; in pvr2_context_set_notify() 49 if (mp->notify_prev) { in pvr2_context_set_notify() 50 mp->notify_prev->notify_next = mp; in pvr2_context_set_notify() 52 pvr2_context_notify_first = mp; in pvr2_context_set_notify() 54 mp->notify_flag = !0; in pvr2_context_set_notify() 57 if (mp->notify_flag) { in pvr2_context_set_notify() [all …]
|
/drivers/net/ethernet/apple/ |
D | mace.c | 91 static inline void mace_clean_rings(struct mace_data *mp); 112 struct mace_data *mp; in mace_probe() local 154 mp = netdev_priv(dev); in mace_probe() 155 mp->mdev = mdev; in mace_probe() 159 mp->mace = ioremap(dev->base_addr, 0x1000); in mace_probe() 160 if (mp->mace == NULL) { in mace_probe() 171 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe() 172 in_8(&mp->mace->chipid_lo); in mace_probe() 175 mp = netdev_priv(dev); in mace_probe() 176 mp->maccc = ENXMT | ENRCV; in mace_probe() [all …]
|
D | macmace.c | 107 struct mace_data *mp = netdev_priv(dev); in mace_load_rxdma_base() local 110 psc_write_long(PSC_ENETRD_ADDR + set, (u32) mp->rx_ring_phys); in mace_load_rxdma_base() 113 mp->rx_tail = 0; in mace_load_rxdma_base() 122 struct mace_data *mp = netdev_priv(dev); in mace_rxdma_reset() local 123 volatile struct mace *mace = mp->mace; in mace_rxdma_reset() 137 mp->rx_slot = 0; in mace_rxdma_reset() 149 struct mace_data *mp = netdev_priv(dev); in mace_txdma_reset() local 150 volatile struct mace *mace = mp->mace; in mace_txdma_reset() 158 mp->tx_slot = mp->tx_sloti = 0; in mace_txdma_reset() 159 mp->tx_count = N_TX_RING; in mace_txdma_reset() [all …]
|
/drivers/net/ethernet/marvell/ |
D | mv643xx_eth.c | 430 static inline u32 rdl(struct mv643xx_eth_private *mp, int offset) in rdl() argument 432 return readl(mp->shared->base + offset); in rdl() 435 static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset) in rdlp() argument 437 return readl(mp->base + offset); in rdlp() 440 static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data) in wrl() argument 442 writel(data, mp->shared->base + offset); in wrl() 445 static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data) in wrlp() argument 447 writel(data, mp->base + offset); in wrlp() 464 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_enable() local 465 wrlp(mp, RXQ_COMMAND, 1 << rxq->index); in rxq_enable() [all …]
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_malloc.c | 60 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 …]
|
/drivers/isdn/capi/ |
D | capi.c | 141 static int capiminor_add_ack(struct capiminor *mp, u16 datahandle) in capiminor_add_ack() argument 152 spin_lock_bh(&mp->ackqlock); in capiminor_add_ack() 153 list_add_tail(&n->list, &mp->ackqueue); in capiminor_add_ack() 154 mp->nack++; in capiminor_add_ack() 155 spin_unlock_bh(&mp->ackqlock); in capiminor_add_ack() 159 static int capiminor_del_ack(struct capiminor *mp, u16 datahandle) in capiminor_del_ack() argument 163 spin_lock_bh(&mp->ackqlock); in capiminor_del_ack() 164 list_for_each_entry_safe(p, tmp, &mp->ackqueue, list) { in capiminor_del_ack() 167 mp->nack--; in capiminor_del_ack() 168 spin_unlock_bh(&mp->ackqlock); in capiminor_del_ack() [all …]
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | apply.c | 142 struct mgr_priv_data *mp; in apply_init_priv() local 182 mp = &dss_data.mgr_priv_data_array[OMAP_DSS_CHANNEL_DIGIT]; in apply_init_priv() 184 mp->lcd_config.video_port_width = 24; in apply_init_priv() 185 mp->lcd_config.clock_info.lck_div = 1; in apply_init_priv() 186 mp->lcd_config.clock_info.pck_div = 1; in apply_init_priv() 196 struct mgr_priv_data *mp = get_mgr_priv(ovl->manager); in ovl_manual_update() local 198 return mp->lcd_config.stallmode; in ovl_manual_update() 203 struct mgr_priv_data *mp = get_mgr_priv(mgr); in mgr_manual_update() local 205 return mp->lcd_config.stallmode; in mgr_manual_update() 216 struct mgr_priv_data *mp; in dss_check_settings_low() local [all …]
|
/drivers/pinctrl/intel/ |
D | pinctrl-merrifield.c | 440 static const struct mrfld_family *mrfld_get_family(struct mrfld_pinctrl *mp, in mrfld_get_family() argument 446 for (i = 0; i < mp->nfamilies; i++) { in mrfld_get_family() 447 family = &mp->families[i]; in mrfld_get_family() 453 dev_warn(mp->dev, "failed to find family for pin %u\n", pin); in mrfld_get_family() 457 static bool mrfld_buf_available(struct mrfld_pinctrl *mp, unsigned int pin) in mrfld_buf_available() argument 461 family = mrfld_get_family(mp, pin); in mrfld_buf_available() 468 static void __iomem *mrfld_get_bufcfg(struct mrfld_pinctrl *mp, unsigned int pin) in mrfld_get_bufcfg() argument 473 family = mrfld_get_family(mp, pin); in mrfld_get_bufcfg() 483 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_groups_count() local 485 return mp->ngroups; in mrfld_get_groups_count() [all …]
|
/drivers/gpu/drm/arm/ |
D | malidp_planes.c | 58 struct malidp_plane *mp = to_malidp_plane(plane); in malidp_de_plane_destroy() local 60 if (mp->base.fb) in malidp_de_plane_destroy() 61 drm_framebuffer_unreference(mp->base.fb); in malidp_de_plane_destroy() 65 devm_kfree(plane->dev->dev, mp); in malidp_de_plane_destroy() 139 static int malidp_se_check_scaling(struct malidp_plane *mp, in malidp_se_check_scaling() argument 162 mc->scaled_planes_mask &= ~(mp->layer->id); in malidp_se_check_scaling() 166 if (mp->layer->id & (DE_SMART | DE_GRAPHICS2)) in malidp_se_check_scaling() 171 mc->scaled_planes_mask |= mp->layer->id; in malidp_se_check_scaling() 179 struct malidp_plane *mp = to_malidp_plane(plane); in malidp_de_plane_check() local 189 ms->format = malidp_hw_get_format_id(&mp->hwdev->map, mp->layer->id, in malidp_de_plane_check() [all …]
|
/drivers/mtd/devices/ |
D | ms02-nv.c | 60 struct ms02nv_private *mp = mtd->priv; in ms02nv_read() local 62 memcpy(buf, mp->uaddr + from, len); in ms02nv_read() 70 struct ms02nv_private *mp = mtd->priv; in ms02nv_write() local 72 memcpy(mp->uaddr + to, buf, len); in ms02nv_write() 111 struct ms02nv_private *mp; in ms02nv_init_one() local 148 mp = kzalloc(sizeof(*mp), GFP_KERNEL); in ms02nv_init_one() 149 if (!mp) in ms02nv_init_one() 152 mtd->priv = mp; in ms02nv_init_one() 153 mp->resource.module = mod_res; in ms02nv_init_one() 166 mp->resource.diag_ram = diag_res; in ms02nv_init_one() [all …]
|
/drivers/media/platform/vivid/ |
D | vivid-vid-out.c | 309 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; in vivid_g_fmt_vid_out() local 313 mp->width = dev->fmt_out_rect.width; in vivid_g_fmt_vid_out() 314 mp->height = dev->fmt_out_rect.height; in vivid_g_fmt_vid_out() 315 mp->field = dev->field_out; in vivid_g_fmt_vid_out() 316 mp->pixelformat = fmt->fourcc; in vivid_g_fmt_vid_out() 317 mp->colorspace = dev->colorspace_out; in vivid_g_fmt_vid_out() 318 mp->xfer_func = dev->xfer_func_out; in vivid_g_fmt_vid_out() 319 mp->ycbcr_enc = dev->ycbcr_enc_out; in vivid_g_fmt_vid_out() 320 mp->quantization = dev->quantization_out; in vivid_g_fmt_vid_out() 321 mp->num_planes = fmt->buffers; in vivid_g_fmt_vid_out() [all …]
|
D | vivid-vid-common.c | 621 struct v4l2_pix_format_mplane *mp = &mp_fmt->fmt.pix_mp; in fmt_sp2mp() local 622 struct v4l2_plane_pix_format *ppix = &mp->plane_fmt[0]; in fmt_sp2mp() 626 memset(mp->reserved, 0, sizeof(mp->reserved)); in fmt_sp2mp() 629 mp->width = pix->width; in fmt_sp2mp() 630 mp->height = pix->height; in fmt_sp2mp() 631 mp->pixelformat = pix->pixelformat; in fmt_sp2mp() 632 mp->field = pix->field; in fmt_sp2mp() 633 mp->colorspace = pix->colorspace; in fmt_sp2mp() 634 mp->xfer_func = pix->xfer_func; in fmt_sp2mp() 636 mp->ycbcr_enc = pix->ycbcr_enc; in fmt_sp2mp() [all …]
|
D | vivid-vid-cap.c | 533 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; in vivid_g_fmt_vid_cap() local 536 mp->width = dev->fmt_cap_rect.width; in vivid_g_fmt_vid_cap() 537 mp->height = dev->fmt_cap_rect.height; in vivid_g_fmt_vid_cap() 538 mp->field = dev->field_cap; in vivid_g_fmt_vid_cap() 539 mp->pixelformat = dev->fmt_cap->fourcc; in vivid_g_fmt_vid_cap() 540 mp->colorspace = vivid_colorspace_cap(dev); in vivid_g_fmt_vid_cap() 541 mp->xfer_func = vivid_xfer_func_cap(dev); in vivid_g_fmt_vid_cap() 543 mp->hsv_enc = vivid_hsv_enc_cap(dev); in vivid_g_fmt_vid_cap() 545 mp->ycbcr_enc = vivid_ycbcr_enc_cap(dev); in vivid_g_fmt_vid_cap() 546 mp->quantization = vivid_quantization_cap(dev); in vivid_g_fmt_vid_cap() [all …]
|
/drivers/scsi/libfc/ |
D | fc_exch.c | 128 struct fc_exch_mgr *mp; member 324 struct fc_exch_mgr *mp; in fc_exch_release() local 327 mp = ep->em; in fc_exch_release() 331 mempool_free(ep, mp->ep_pool); in fc_exch_release() 821 struct fc_exch_mgr *mp) in fc_exch_em_alloc() argument 829 ep = mempool_alloc(mp->ep_pool, GFP_ATOMIC); in fc_exch_em_alloc() 831 atomic_inc(&mp->stats.no_free_exch); in fc_exch_em_alloc() 837 pool = per_cpu_ptr(mp->pool, cpu); in fc_exch_em_alloc() 860 index = index == mp->pool_max_index ? 0 : index + 1; in fc_exch_em_alloc() 864 pool->next_index = index == mp->pool_max_index ? 0 : index + 1; in fc_exch_em_alloc() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_mbox.c | 63 struct lpfc_dmabuf *mp; in lpfc_dump_static_vport() local 83 mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_dump_static_vport() 84 if (mp) in lpfc_dump_static_vport() 85 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); in lpfc_dump_static_vport() 87 if (!mp || !mp->virt) { in lpfc_dump_static_vport() 88 kfree(mp); in lpfc_dump_static_vport() 94 memset(mp->virt, 0, LPFC_BPL_SIZE); in lpfc_dump_static_vport() 95 INIT_LIST_HEAD(&mp->list); in lpfc_dump_static_vport() 97 pmb->context1 = (uint8_t *)mp; in lpfc_dump_static_vport() 98 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_dump_static_vport() [all …]
|
D | lpfc_mem.c | 328 struct lpfc_dmabuf *mp; in lpfc_mem_free_all() local 332 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free_all() 333 if (mp) { in lpfc_mem_free_all() 334 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all() 335 kfree(mp); in lpfc_mem_free_all() 342 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free_all() 343 if (mp) { in lpfc_mem_free_all() 344 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all() 345 kfree(mp); in lpfc_mem_free_all() 356 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free_all() [all …]
|
D | lpfc_ct.c | 82 struct lpfc_dmabuf *mp, uint32_t size) in lpfc_ct_ignore_hbq_buffer() argument 84 if (!mp) { in lpfc_ct_ignore_hbq_buffer() 98 struct lpfc_dmabuf *mp, uint32_t size) in lpfc_ct_unsol_buffer() argument 100 lpfc_ct_ignore_hbq_buffer(phba, piocbq, mp, size); in lpfc_ct_unsol_buffer() 107 struct lpfc_dmabuf *mp = NULL; in lpfc_ct_unsol_event() local 169 mp = lpfc_sli_ringpostbuf_get(phba, pring, in lpfc_ct_unsol_event() 172 lpfc_ct_unsol_buffer(phba, iocbq, mp, size); in lpfc_ct_unsol_event() 173 lpfc_in_buf_free(phba, mp); in lpfc_ct_unsol_event() 222 struct lpfc_dmabuf *mp; in lpfc_alloc_ct_rsp() local 230 mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_alloc_ct_rsp() [all …]
|
D | lpfc_vport.c | 122 struct lpfc_dmabuf *mp; in lpfc_vport_sparm() local 141 mp = (struct lpfc_dmabuf *) pmb->context1; in lpfc_vport_sparm() 151 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm() 152 kfree(mp); in lpfc_vport_sparm() 161 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm() 162 kfree(mp); in lpfc_vport_sparm() 169 memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm)); in lpfc_vport_sparm() 175 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm() 176 kfree(mp); in lpfc_vport_sparm()
|
/drivers/tee/optee/ |
D | core.c | 54 const struct optee_msg_param *mp = msg_params + n; in optee_from_msg_param() local 55 u32 attr = mp->attr & OPTEE_MSG_ATTR_TYPE_MASK; in optee_from_msg_param() 67 p->u.value.a = mp->u.value.a; in optee_from_msg_param() 68 p->u.value.b = mp->u.value.b; in optee_from_msg_param() 69 p->u.value.c = mp->u.value.c; in optee_from_msg_param() 76 p->u.memref.size = mp->u.tmem.size; in optee_from_msg_param() 78 mp->u.tmem.shm_ref; in optee_from_msg_param() 87 p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa; in optee_from_msg_param() 123 struct optee_msg_param *mp = msg_params + n; in optee_to_msg_param() local 127 mp->attr = TEE_IOCTL_PARAM_ATTR_TYPE_NONE; in optee_to_msg_param() [all …]
|
/drivers/media/platform/vsp1/ |
D | vsp1_uds.c | 62 unsigned int mp; in uds_output_size() local 64 mp = ratio / 4096; in uds_output_size() 65 mp = mp < 4 ? 1 : (mp < 8 ? 2 : 4); in uds_output_size() 67 return (input - 1) / mp * mp * 4096 / ratio + 1; in uds_output_size() 95 unsigned int mp; in uds_passband_width() local 97 mp = ratio / 4096; in uds_passband_width() 98 mp = mp < 4 ? 1 : (mp < 8 ? 2 : 4); in uds_passband_width() 100 return 64 * 4096 * mp / ratio; in uds_passband_width()
|
/drivers/block/aoe/ |
D | aoechr.c | 129 char *mp; in aoechr_error() local 142 mp = kmemdup(msg, n, GFP_ATOMIC); in aoechr_error() 143 if (mp == NULL) { in aoechr_error() 148 em->msg = mp; in aoechr_error() 216 char *mp; in aoechr_read() local 254 mp = em->msg; in aoechr_read() 264 n = copy_to_user(buf, mp, len); in aoechr_read() 265 kfree(mp); in aoechr_read()
|
/drivers/isdn/i4l/ |
D | isdn_ppp.c | 1617 static struct sk_buff *isdn_ppp_mp_discard(ippp_bundle *mp, 1621 static void isdn_ppp_mp_free_skb(ippp_bundle *mp, struct sk_buff *skb); 1629 ippp_bundle *mp; in isdn_ppp_mp_receive() local 1637 mp = net_dev->pb; in isdn_ppp_mp_receive() 1638 stats = &mp->stats; in isdn_ppp_mp_receive() 1645 spin_unlock_irqrestore(&mp->lock, flags); in isdn_ppp_mp_receive() 1649 if (++mp->frames > stats->max_queue_len) in isdn_ppp_mp_receive() 1650 stats->max_queue_len = mp->frames; in isdn_ppp_mp_receive() 1662 if (mp->seq > MP_LONGSEQ_MAX && (newseq & MP_LONGSEQ_MAXBIT)) { in isdn_ppp_mp_receive() 1663 mp->seq = newseq; /* the first packet: required for in isdn_ppp_mp_receive() [all …]
|
/drivers/net/hamradio/ |
D | hdlcdrv.c | 539 bi.data.mp.iobase = dev->base_addr; in hdlcdrv_ioctl() 540 bi.data.mp.irq = dev->irq; in hdlcdrv_ioctl() 541 bi.data.mp.dma = dev->dma; in hdlcdrv_ioctl() 542 bi.data.mp.dma2 = s->ptt_out.dma2; in hdlcdrv_ioctl() 543 bi.data.mp.seriobase = s->ptt_out.seriobase; in hdlcdrv_ioctl() 544 bi.data.mp.pariobase = s->ptt_out.pariobase; in hdlcdrv_ioctl() 545 bi.data.mp.midiiobase = s->ptt_out.midiiobase; in hdlcdrv_ioctl() 551 dev->base_addr = bi.data.mp.iobase; in hdlcdrv_ioctl() 552 dev->irq = bi.data.mp.irq; in hdlcdrv_ioctl() 553 dev->dma = bi.data.mp.dma; in hdlcdrv_ioctl() [all …]
|
/drivers/hid/ |
D | hid-wiimote-modules.c | 2087 input_report_abs(wdata->mp, ABS_RX, x); in wiimod_mp_in_mp() 2088 input_report_abs(wdata->mp, ABS_RY, y); in wiimod_mp_in_mp() 2089 input_report_abs(wdata->mp, ABS_RZ, z); in wiimod_mp_in_mp() 2090 input_sync(wdata->mp); in wiimod_mp_in_mp() 2124 wdata->mp = input_allocate_device(); in wiimod_mp_probe() 2125 if (!wdata->mp) in wiimod_mp_probe() 2128 input_set_drvdata(wdata->mp, wdata); in wiimod_mp_probe() 2129 wdata->mp->open = wiimod_mp_open; in wiimod_mp_probe() 2130 wdata->mp->close = wiimod_mp_close; in wiimod_mp_probe() 2131 wdata->mp->dev.parent = &wdata->hdev->dev; in wiimod_mp_probe() [all …]
|
/drivers/scsi/ |
D | ncr53c8xx.c | 234 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 …]
|