/drivers/media/usb/pvrusb2/ |
D | pvrusb2-context.c | 43 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/ethernet/apple/ |
D | mace.c | 91 static inline void mace_clean_rings(struct mace_data *mp); 113 struct mace_data *mp; in mace_probe() local 155 mp = netdev_priv(dev); in mace_probe() 156 mp->mdev = mdev; in mace_probe() 160 mp->mace = ioremap(dev->base_addr, 0x1000); in mace_probe() 161 if (mp->mace == NULL) { in mace_probe() 172 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe() 173 in_8(&mp->mace->chipid_lo); in mace_probe() 176 mp = netdev_priv(dev); in mace_probe() 177 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 | 434 static inline u32 rdl(struct mv643xx_eth_private *mp, int offset) in rdl() argument 436 return readl(mp->shared->base + offset); in rdl() 439 static inline u32 rdlp(struct mv643xx_eth_private *mp, int offset) in rdlp() argument 441 return readl(mp->base + offset); in rdlp() 444 static inline void wrl(struct mv643xx_eth_private *mp, int offset, u32 data) in wrl() argument 446 writel(data, mp->shared->base + offset); in wrl() 449 static inline void wrlp(struct mv643xx_eth_private *mp, int offset, u32 data) in wrlp() argument 451 writel(data, mp->base + offset); in wrlp() 468 struct mv643xx_eth_private *mp = rxq_to_mp(rxq); in rxq_enable() local 469 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 | 39 struct malidp_plane *mp = to_malidp_plane(plane); in malidp_de_plane_destroy() local 41 if (mp->base.fb) in malidp_de_plane_destroy() 42 drm_framebuffer_unreference(mp->base.fb); in malidp_de_plane_destroy() 46 devm_kfree(plane->dev->dev, mp); in malidp_de_plane_destroy() 87 struct malidp_plane *mp = to_malidp_plane(plane); in malidp_de_plane_check() local 95 format_id = malidp_hw_get_format_id(&mp->hwdev->map, mp->layer->id, in malidp_de_plane_check() 103 if ((state->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check() 104 (state->crtc_h > mp->hwdev->max_line_size) || in malidp_de_plane_check() 105 (state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check() 106 (state->crtc_h < mp->hwdev->min_line_size) || 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 | 311 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; in vivid_g_fmt_vid_out() local 315 mp->width = dev->fmt_out_rect.width; in vivid_g_fmt_vid_out() 316 mp->height = dev->fmt_out_rect.height; in vivid_g_fmt_vid_out() 317 mp->field = dev->field_out; in vivid_g_fmt_vid_out() 318 mp->pixelformat = fmt->fourcc; in vivid_g_fmt_vid_out() 319 mp->colorspace = dev->colorspace_out; in vivid_g_fmt_vid_out() 320 mp->xfer_func = dev->xfer_func_out; in vivid_g_fmt_vid_out() 321 mp->ycbcr_enc = dev->ycbcr_enc_out; in vivid_g_fmt_vid_out() 322 mp->quantization = dev->quantization_out; in vivid_g_fmt_vid_out() 323 mp->num_planes = fmt->buffers; in vivid_g_fmt_vid_out() [all …]
|
D | vivid-vid-common.c | 605 struct v4l2_pix_format_mplane *mp = &mp_fmt->fmt.pix_mp; in fmt_sp2mp() local 606 struct v4l2_plane_pix_format *ppix = &mp->plane_fmt[0]; in fmt_sp2mp() 610 memset(mp->reserved, 0, sizeof(mp->reserved)); in fmt_sp2mp() 613 mp->width = pix->width; in fmt_sp2mp() 614 mp->height = pix->height; in fmt_sp2mp() 615 mp->pixelformat = pix->pixelformat; in fmt_sp2mp() 616 mp->field = pix->field; in fmt_sp2mp() 617 mp->colorspace = pix->colorspace; in fmt_sp2mp() 618 mp->xfer_func = pix->xfer_func; in fmt_sp2mp() 619 mp->ycbcr_enc = pix->ycbcr_enc; in fmt_sp2mp() [all …]
|
D | vivid-vid-cap.c | 524 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; in vivid_g_fmt_vid_cap() local 527 mp->width = dev->fmt_cap_rect.width; in vivid_g_fmt_vid_cap() 528 mp->height = dev->fmt_cap_rect.height; in vivid_g_fmt_vid_cap() 529 mp->field = dev->field_cap; in vivid_g_fmt_vid_cap() 530 mp->pixelformat = dev->fmt_cap->fourcc; in vivid_g_fmt_vid_cap() 531 mp->colorspace = vivid_colorspace_cap(dev); in vivid_g_fmt_vid_cap() 532 mp->xfer_func = vivid_xfer_func_cap(dev); in vivid_g_fmt_vid_cap() 533 mp->ycbcr_enc = vivid_ycbcr_enc_cap(dev); in vivid_g_fmt_vid_cap() 534 mp->quantization = vivid_quantization_cap(dev); in vivid_g_fmt_vid_cap() 535 mp->num_planes = dev->fmt_cap->buffers; in vivid_g_fmt_vid_cap() [all …]
|
/drivers/scsi/libfc/ |
D | fc_exch.c | 127 struct fc_exch_mgr *mp; member 323 struct fc_exch_mgr *mp; in fc_exch_release() local 326 mp = ep->em; in fc_exch_release() 330 mempool_free(ep, mp->ep_pool); in fc_exch_release() 802 struct fc_exch_mgr *mp) in fc_exch_em_alloc() argument 810 ep = mempool_alloc(mp->ep_pool, GFP_ATOMIC); in fc_exch_em_alloc() 812 atomic_inc(&mp->stats.no_free_exch); in fc_exch_em_alloc() 818 pool = per_cpu_ptr(mp->pool, cpu); in fc_exch_em_alloc() 837 index = index == mp->pool_max_index ? 0 : index + 1; in fc_exch_em_alloc() 841 pool->next_index = index == mp->pool_max_index ? 0 : index + 1; in fc_exch_em_alloc() [all …]
|
/drivers/tee/optee/ |
D | core.c | 55 const struct optee_msg_param *mp = msg_params + n; in optee_from_msg_param() local 56 u32 attr = mp->attr & OPTEE_MSG_ATTR_TYPE_MASK; in optee_from_msg_param() 68 p->u.value.a = mp->u.value.a; in optee_from_msg_param() 69 p->u.value.b = mp->u.value.b; in optee_from_msg_param() 70 p->u.value.c = mp->u.value.c; in optee_from_msg_param() 77 p->u.memref.size = mp->u.tmem.size; in optee_from_msg_param() 79 mp->u.tmem.shm_ref; in optee_from_msg_param() 88 p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa; in optee_from_msg_param() 106 p->u.memref.size = mp->u.rmem.size; in optee_from_msg_param() 108 mp->u.rmem.shm_ref; in optee_from_msg_param() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_mem.c | 296 struct lpfc_dmabuf *mp; in lpfc_mem_free_all() local 300 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free_all() 301 if (mp) { in lpfc_mem_free_all() 302 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all() 303 kfree(mp); in lpfc_mem_free_all() 310 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free_all() 311 if (mp) { in lpfc_mem_free_all() 312 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_mem_free_all() 313 kfree(mp); in lpfc_mem_free_all() 324 mp = (struct lpfc_dmabuf *) (mbox->context1); in lpfc_mem_free_all() [all …]
|
D | lpfc_mbox.c | 61 struct lpfc_dmabuf *mp; in lpfc_dump_static_vport() local 81 mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_dump_static_vport() 82 if (mp) in lpfc_dump_static_vport() 83 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); in lpfc_dump_static_vport() 85 if (!mp || !mp->virt) { in lpfc_dump_static_vport() 86 kfree(mp); in lpfc_dump_static_vport() 92 memset(mp->virt, 0, LPFC_BPL_SIZE); in lpfc_dump_static_vport() 93 INIT_LIST_HEAD(&mp->list); in lpfc_dump_static_vport() 95 pmb->context1 = (uint8_t *)mp; in lpfc_dump_static_vport() 96 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_dump_static_vport() [all …]
|
D | lpfc_ct.c | 79 struct lpfc_dmabuf *mp, uint32_t size) in lpfc_ct_ignore_hbq_buffer() argument 81 if (!mp) { in lpfc_ct_ignore_hbq_buffer() 95 struct lpfc_dmabuf *mp, uint32_t size) in lpfc_ct_unsol_buffer() argument 97 lpfc_ct_ignore_hbq_buffer(phba, piocbq, mp, size); in lpfc_ct_unsol_buffer() 104 struct lpfc_dmabuf *mp = NULL; in lpfc_ct_unsol_event() local 166 mp = lpfc_sli_ringpostbuf_get(phba, pring, in lpfc_ct_unsol_event() 169 lpfc_ct_unsol_buffer(phba, iocbq, mp, size); in lpfc_ct_unsol_event() 170 lpfc_in_buf_free(phba, mp); in lpfc_ct_unsol_event() 219 struct lpfc_dmabuf *mp; in lpfc_alloc_ct_rsp() local 227 mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_alloc_ct_rsp() [all …]
|
D | lpfc_vport.c | 118 struct lpfc_dmabuf *mp; in lpfc_vport_sparm() local 137 mp = (struct lpfc_dmabuf *) pmb->context1; in lpfc_vport_sparm() 147 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm() 148 kfree(mp); in lpfc_vport_sparm() 157 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm() 158 kfree(mp); in lpfc_vport_sparm() 165 memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm)); in lpfc_vport_sparm() 171 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vport_sparm() 172 kfree(mp); in lpfc_vport_sparm()
|
/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/lightnvm/ |
D | gennvm.c | 40 struct gen_dev *gn = dev->mp; in gen_create_tgt() 143 struct gen_dev *gn = dev->mp; in gen_remove_tgt() 163 struct gen_dev *gn = dev->mp; in gen_get_area() 207 struct gen_dev *gn = dev->mp; in gen_put_area() 225 struct gen_dev *gn = dev->mp; in gen_blocks_free() 238 struct gen_dev *gn = dev->mp; in gen_luns_free() 296 struct gen_dev *gn = dev->mp; in gen_block_map() 417 kfree(dev->mp); in gen_free() 418 dev->mp = NULL; in gen_free() 438 dev->mp = gn; in gen_register() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_ppp.c | 1620 static struct sk_buff *isdn_ppp_mp_discard(ippp_bundle *mp, 1624 static void isdn_ppp_mp_free_skb(ippp_bundle *mp, struct sk_buff *skb); 1632 ippp_bundle *mp; in isdn_ppp_mp_receive() local 1640 mp = net_dev->pb; in isdn_ppp_mp_receive() 1641 stats = &mp->stats; in isdn_ppp_mp_receive() 1648 spin_unlock_irqrestore(&mp->lock, flags); in isdn_ppp_mp_receive() 1652 if (++mp->frames > stats->max_queue_len) in isdn_ppp_mp_receive() 1653 stats->max_queue_len = mp->frames; in isdn_ppp_mp_receive() 1665 if (mp->seq > MP_LONGSEQ_MAX && (newseq & MP_LONGSEQ_MAXBIT)) { in isdn_ppp_mp_receive() 1666 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 …]
|