Home
last modified time | relevance | path

Searched refs:mapping (Results 1 – 25 of 184) sorted by relevance

12345678

/drivers/media/usb/uvc/
Duvc_ctrl.c368 static __s32 uvc_ctrl_get_zoom(struct uvc_control_mapping *mapping, in uvc_ctrl_get_zoom() argument
386 static void uvc_ctrl_set_zoom(struct uvc_control_mapping *mapping, in uvc_ctrl_set_zoom() argument
393 static __s32 uvc_ctrl_get_rel_speed(struct uvc_control_mapping *mapping, in uvc_ctrl_get_rel_speed() argument
396 unsigned int first = mapping->offset / 8; in uvc_ctrl_get_rel_speed()
413 static void uvc_ctrl_set_rel_speed(struct uvc_control_mapping *mapping, in uvc_ctrl_set_rel_speed() argument
416 unsigned int first = mapping->offset / 8; in uvc_ctrl_set_rel_speed()
767 static __s32 uvc_get_le_value(struct uvc_control_mapping *mapping, in uvc_get_le_value() argument
770 int bits = mapping->size; in uvc_get_le_value()
771 int offset = mapping->offset; in uvc_get_le_value()
788 if (mapping->data_type == UVC_CTRL_DATA_TYPE_SIGNED) in uvc_get_le_value()
[all …]
/drivers/gpu/drm/exynos/
Dexynos_drm_iommu.c31 struct dma_iommu_mapping *mapping = NULL; in drm_create_iommu_mapping() local
40 mapping = arm_iommu_create_mapping(&platform_bus_type, priv->da_start, in drm_create_iommu_mapping()
43 if (IS_ERR(mapping)) in drm_create_iommu_mapping()
44 return PTR_ERR(mapping); in drm_create_iommu_mapping()
52 dev->archdata.mapping = mapping; in drm_create_iommu_mapping()
56 arm_iommu_release_mapping(mapping); in drm_create_iommu_mapping()
72 arm_iommu_release_mapping(dev->archdata.mapping); in drm_release_iommu_mapping()
90 if (!dev->archdata.mapping) { in drm_iommu_attach_device()
103 ret = arm_iommu_attach_device(subdrv_dev, dev->archdata.mapping); in drm_iommu_attach_device()
136 struct dma_iommu_mapping *mapping = dev->archdata.mapping; in drm_iommu_detach_device() local
[all …]
/drivers/net/wireless/mwifiex/
Dutil.h52 struct mwifiex_dma_mapping *mapping) in mwifiex_store_mapping() argument
56 memcpy(&cb->dma_mapping, mapping, sizeof(*mapping)); in mwifiex_store_mapping()
60 struct mwifiex_dma_mapping *mapping) in mwifiex_get_mapping() argument
64 memcpy(mapping, &cb->dma_mapping, sizeof(*mapping)); in mwifiex_get_mapping()
69 struct mwifiex_dma_mapping mapping; in MWIFIEX_SKB_DMA_ADDR() local
71 mwifiex_get_mapping(skb, &mapping); in MWIFIEX_SKB_DMA_ADDR()
73 return mapping.addr; in MWIFIEX_SKB_DMA_ADDR()
/drivers/sh/clk/
Dcore.c339 struct clk_mapping *mapping = clk->mapping; in clk_establish_mapping() local
344 if (!mapping) { in clk_establish_mapping()
351 clk->mapping = &dummy_mapping; in clk_establish_mapping()
360 mapping = clkp->mapping; in clk_establish_mapping()
361 BUG_ON(!mapping); in clk_establish_mapping()
367 if (!mapping->base && mapping->phys) { in clk_establish_mapping()
368 kref_init(&mapping->ref); in clk_establish_mapping()
370 mapping->base = ioremap_nocache(mapping->phys, mapping->len); in clk_establish_mapping()
371 if (unlikely(!mapping->base)) in clk_establish_mapping()
373 } else if (mapping->base) { in clk_establish_mapping()
[all …]
Dcpg.c414 value = __raw_readl(clk->mapping->base); in fsidiv_recalc()
430 __raw_writel(0, clk->mapping->base); in fsidiv_disable()
437 value = __raw_readl(clk->mapping->base) >> 16; in fsidiv_enable()
441 __raw_writel((value << 16) | 0x3, clk->mapping->base); in fsidiv_enable()
452 __raw_writel(0, clk->mapping->base); in fsidiv_set_rate()
454 __raw_writel(idx << 16, clk->mapping->base); in fsidiv_set_rate()
486 clks[i].mapping = map; in sh_clk_fsidiv_register()
/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c95 u64 mapping[IPOIB_UD_RX_SG]) in ipoib_ud_dma_unmap_rx()
98 ib_dma_unmap_single(priv->ca, mapping[0], IPOIB_UD_HEAD_SIZE, in ipoib_ud_dma_unmap_rx()
100 ib_dma_unmap_page(priv->ca, mapping[1], PAGE_SIZE, in ipoib_ud_dma_unmap_rx()
103 ib_dma_unmap_single(priv->ca, mapping[0], in ipoib_ud_dma_unmap_rx()
139 priv->rx_sge[0].addr = priv->rx_ring[id].mapping[0]; in ipoib_ib_post_receive()
140 priv->rx_sge[1].addr = priv->rx_ring[id].mapping[1]; in ipoib_ib_post_receive()
146 ipoib_ud_dma_unmap_rx(priv, priv->rx_ring[id].mapping); in ipoib_ib_post_receive()
160 u64 *mapping; in ipoib_alloc_rx_skb() local
181 mapping = priv->rx_ring[id].mapping; in ipoib_alloc_rx_skb()
182 mapping[0] = ib_dma_map_single(priv->ca, skb->data, buf_size, in ipoib_alloc_rx_skb()
[all …]
Dipoib_cm.c81 u64 mapping[IPOIB_CM_RX_SG]) in ipoib_cm_dma_unmap_rx()
85 ib_dma_unmap_single(priv->ca, mapping[0], IPOIB_CM_HEAD_SIZE, DMA_FROM_DEVICE); in ipoib_cm_dma_unmap_rx()
88 ib_dma_unmap_page(priv->ca, mapping[i + 1], PAGE_SIZE, DMA_FROM_DEVICE); in ipoib_cm_dma_unmap_rx()
100 priv->cm.rx_sge[i].addr = priv->cm.srq_ring[id].mapping[i]; in ipoib_cm_post_receive_srq()
106 priv->cm.srq_ring[id].mapping); in ipoib_cm_post_receive_srq()
126 sge[i].addr = rx->rx_ring[id].mapping[i]; in ipoib_cm_post_receive_nonsrq()
132 rx->rx_ring[id].mapping); in ipoib_cm_post_receive_nonsrq()
143 u64 mapping[IPOIB_CM_RX_SG], in ipoib_cm_alloc_rx_skb()
160 mapping[0] = ib_dma_map_single(priv->ca, skb->data, IPOIB_CM_HEAD_SIZE, in ipoib_cm_alloc_rx_skb()
162 if (unlikely(ib_dma_mapping_error(priv->ca, mapping[0]))) { in ipoib_cm_alloc_rx_skb()
[all …]
/drivers/net/ethernet/dec/tulip/
Dinterrupt.c70 dma_addr_t mapping; in tulip_refill_rx() local
77 mapping = pci_map_single(tp->pdev, skb->data, PKT_BUF_SZ, in tulip_refill_rx()
79 if (dma_mapping_error(&tp->pdev->dev, mapping)) { in tulip_refill_rx()
85 tp->rx_buffers[entry].mapping = mapping; in tulip_refill_rx()
87 tp->rx_ring[entry].buffer1 = cpu_to_le32(mapping); in tulip_refill_rx()
214 tp->rx_buffers[entry].mapping, in tulip_poll()
226 tp->rx_buffers[entry].mapping, in tulip_poll()
233 if (tp->rx_buffers[entry].mapping != in tulip_poll()
238 (unsigned long long)tp->rx_buffers[entry].mapping, in tulip_poll()
243 pci_unmap_single(tp->pdev, tp->rx_buffers[entry].mapping, in tulip_poll()
[all …]
Dtulip_core.c355 dma_addr_t mapping; in tulip_up() local
364 mapping = pci_map_single(tp->pdev, tp->setup_frame, in tulip_up()
368 tp->tx_buffers[tp->cur_tx].mapping = mapping; in tulip_up()
372 tp->tx_ring[tp->cur_tx].buffer1 = cpu_to_le32(mapping); in tulip_up()
630 tp->rx_buffers[i].mapping = 0; in tulip_init_ring()
637 dma_addr_t mapping; in tulip_init_ring() local
646 mapping = pci_map_single(tp->pdev, skb->data, in tulip_init_ring()
648 tp->rx_buffers[i].mapping = mapping; in tulip_init_ring()
650 tp->rx_ring[i].buffer1 = cpu_to_le32(mapping); in tulip_init_ring()
658 tp->tx_buffers[i].mapping = 0; in tulip_init_ring()
[all …]
Dde2104x.c294 dma_addr_t mapping; member
411 dma_addr_t mapping; in de_rx() local
423 mapping = de->rx_skb[rx_tail].mapping; in de_rx()
451 pci_unmap_single(de->pdev, mapping, in de_rx()
455 mapping = in de_rx()
456 de->rx_skb[rx_tail].mapping = in de_rx()
461 pci_dma_sync_single_for_cpu(de->pdev, mapping, len, PCI_DMA_FROMDEVICE); in de_rx()
465 pci_dma_sync_single_for_device(de->pdev, mapping, len, PCI_DMA_FROMDEVICE); in de_rx()
485 de->rx_ring[rx_tail].addr1 = cpu_to_le32(mapping); in de_rx()
562 pci_unmap_single(de->pdev, de->tx_skb[tx_tail].mapping, in de_tx()
[all …]
/drivers/mfd/
Dhtc-pasic3.c25 void __iomem *mapping; member
41 void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); in pasic3_write_register()
42 void __iomem *data = asic->mapping + (REG_DATA << bus_shift); in pasic3_write_register()
56 void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); in pasic3_read_register()
57 void __iomem *data = asic->mapping + (REG_DATA << bus_shift); in pasic3_read_register()
156 asic->mapping = ioremap(r->start, resource_size(r)); in pasic3_probe()
157 if (!asic->mapping) { in pasic3_probe()
194 iounmap(asic->mapping); in pasic3_remove()
/drivers/staging/lustre/lustre/include/linux/
Dlustre_patchless_compat.h50 truncate_complete_page(struct address_space *mapping, struct page *page) in truncate_complete_page() argument
52 if (page->mapping != mapping) in truncate_complete_page()
56 page->mapping->a_ops->invalidatepage(page, 0, PAGE_CACHE_SIZE); in truncate_complete_page()
Dlustre_compat25.h94 #define TREE_READ_LOCK_IRQ(mapping) spin_lock_irq(&(mapping)->tree_lock) argument
95 #define TREE_READ_UNLOCK_IRQ(mapping) spin_unlock_irq(&(mapping)->tree_lock) argument
/drivers/staging/lustre/lustre/llite/
Drw26.c93 inode = vmpage->mapping->host; in ll_invalidatepage()
123 struct address_space *mapping; in ll_releasepage() local
130 mapping = vmpage->mapping; in ll_releasepage()
131 if (mapping == NULL) in ll_releasepage()
134 obj = ll_i2info(mapping->host)->lli_clob; in ll_releasepage()
168 struct vvp_object *obj = cl_inode2vvp(vmpage->mapping->host); in ll_set_page_dirty()
335 struct address_space *mapping, in ll_direct_IO_26_seg() argument
472 static int ll_write_begin(struct file *file, struct address_space *mapping, in ll_write_begin() argument
481 page = grab_cache_page_write_begin(mapping, index, flags); in ll_write_begin()
495 static int ll_write_end(struct file *file, struct address_space *mapping, in ll_write_end() argument
[all …]
Drw.c99 clob = ll_i2info(vmpage->mapping->host)->lli_clob; in ll_cl_init()
115 struct inode *inode = vmpage->mapping->host; in ll_cl_init()
363 void ll_ra_stats_inc(struct address_space *mapping, enum ra_stat which) in ll_ra_stats_inc() argument
365 struct ll_sb_info *sbi = ll_i2sbi(mapping->host); in ll_ra_stats_inc()
495 pgoff_t index, struct address_space *mapping) in ll_read_ahead_page() argument
498 struct cl_object *clob = ll_i2info(mapping->host)->lli_clob; in ll_read_ahead_page()
504 vmpage = grab_cache_page_nowait(mapping, index); in ll_read_ahead_page()
507 if (vmpage->mapping == mapping) { in ll_read_ahead_page()
533 ll_ra_stats_inc(mapping, which); in ll_read_ahead_page()
641 struct address_space *mapping, in ll_read_ahead_pages() argument
[all …]
/drivers/input/joystick/
Dxpad.c119 u8 mapping; member
344 int mapping; /* map d-pad to buttons or to axes */ member
363 if (!(xpad->mapping & MAP_STICKS_TO_NULL)) { in xpad_process_packet()
378 if (xpad->mapping & MAP_TRIGGERS_TO_BUTTONS) { in xpad_process_packet()
387 if (xpad->mapping & MAP_DPAD_TO_BUTTONS) { in xpad_process_packet()
435 if (xpad->mapping & MAP_DPAD_TO_BUTTONS) { in xpad360_process_packet()
449 if (!(xpad->mapping & MAP_DPAD_TO_BUTTONS) || in xpad360_process_packet()
474 if (!(xpad->mapping & MAP_STICKS_TO_NULL)) { in xpad360_process_packet()
489 if (xpad->mapping & MAP_TRIGGERS_TO_BUTTONS) { in xpad360_process_packet()
558 if (xpad->mapping & MAP_DPAD_TO_BUTTONS) { in xpadone_process_buttons()
[all …]
/drivers/misc/cxl/
Dcontext.c38 struct address_space *mapping) in cxl_context_init() argument
47 ctx->mapping = mapping; in cxl_context_init()
156 if (ctx->mapping) in __detach_context()
157 unmap_mapping_range(ctx->mapping, 0, 0, 1); in __detach_context()
/drivers/net/ethernet/alteon/
Dacenic.c640 dma_addr_t mapping; in acenic_remove_one() local
643 mapping = dma_unmap_addr(ringp, mapping); in acenic_remove_one()
644 pci_unmap_page(ap->pdev, mapping, in acenic_remove_one()
660 dma_addr_t mapping; in acenic_remove_one() local
663 mapping = dma_unmap_addr(ringp,mapping); in acenic_remove_one()
664 pci_unmap_page(ap->pdev, mapping, in acenic_remove_one()
679 dma_addr_t mapping; in acenic_remove_one() local
682 mapping = dma_unmap_addr(ringp, mapping); in acenic_remove_one()
683 pci_unmap_page(ap->pdev, mapping, in acenic_remove_one()
1642 dma_addr_t mapping; in ace_load_std_rx_ring() local
[all …]
/drivers/mtd/devices/
Dblock2mtd.c38 static struct page *page_read(struct address_space *mapping, int index) in page_read() argument
40 return read_mapping_page(mapping, index, NULL); in page_read()
46 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_erase() local
54 page = page_read(mapping, index); in _block2mtd_erase()
65 balance_dirty_pages_ratelimited(mapping); in _block2mtd_erase()
135 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_write() local
147 page = page_read(mapping, index); in _block2mtd_write()
156 balance_dirty_pages_ratelimited(mapping); in _block2mtd_write()
/drivers/remoteproc/
Dremoteproc_core.c483 struct rproc_mem_entry *mapping; in rproc_handle_devmem() local
502 mapping = kzalloc(sizeof(*mapping), GFP_KERNEL); in rproc_handle_devmem()
503 if (!mapping) { in rproc_handle_devmem()
521 mapping->da = rsc->da; in rproc_handle_devmem()
522 mapping->len = rsc->len; in rproc_handle_devmem()
523 list_add_tail(&mapping->node, &rproc->mappings); in rproc_handle_devmem()
531 kfree(mapping); in rproc_handle_devmem()
558 struct rproc_mem_entry *carveout, *mapping; in rproc_handle_carveout() local
612 mapping = kzalloc(sizeof(*mapping), GFP_KERNEL); in rproc_handle_carveout()
613 if (!mapping) { in rproc_handle_carveout()
[all …]
/drivers/iommu/
Dshmobile-iommu.c339 struct dma_iommu_mapping *mapping; in shmobile_iommu_add_device() local
343 mapping = archdata->iommu_mapping; in shmobile_iommu_add_device()
344 if (!mapping) { in shmobile_iommu_add_device()
345 mapping = arm_iommu_create_mapping(&platform_bus_type, 0, in shmobile_iommu_add_device()
347 if (IS_ERR(mapping)) in shmobile_iommu_add_device()
348 return PTR_ERR(mapping); in shmobile_iommu_add_device()
349 archdata->iommu_mapping = mapping; in shmobile_iommu_add_device()
352 if (arm_iommu_attach_device(dev, mapping)) in shmobile_iommu_add_device()
Dipmmu-vmsa.c35 struct dma_iommu_mapping *mapping; member
454 if (!mmu->mapping) in ipmmu_irq()
457 io_domain = mmu->mapping->domain; in ipmmu_irq()
1086 if (!mmu->mapping) { in ipmmu_add_device()
1087 struct dma_iommu_mapping *mapping; in ipmmu_add_device() local
1089 mapping = arm_iommu_create_mapping(&platform_bus_type, in ipmmu_add_device()
1091 if (IS_ERR(mapping)) { in ipmmu_add_device()
1093 return PTR_ERR(mapping); in ipmmu_add_device()
1096 mmu->mapping = mapping; in ipmmu_add_device()
1100 ret = arm_iommu_attach_device(dev, mmu->mapping); in ipmmu_add_device()
[all …]
/drivers/net/ethernet/broadcom/
Db44.c633 rp->mapping, in b44_tx()
664 dma_addr_t mapping; in b44_alloc_rx_skb() local
677 mapping = dma_map_single(bp->sdev->dma_dev, skb->data, in b44_alloc_rx_skb()
683 if (dma_mapping_error(bp->sdev->dma_dev, mapping) || in b44_alloc_rx_skb()
684 mapping + RX_PKT_BUF_SZ > DMA_BIT_MASK(30)) { in b44_alloc_rx_skb()
686 if (!dma_mapping_error(bp->sdev->dma_dev, mapping)) in b44_alloc_rx_skb()
687 dma_unmap_single(bp->sdev->dma_dev, mapping, in b44_alloc_rx_skb()
693 mapping = dma_map_single(bp->sdev->dma_dev, skb->data, in b44_alloc_rx_skb()
696 if (dma_mapping_error(bp->sdev->dma_dev, mapping) || in b44_alloc_rx_skb()
697 mapping + RX_PKT_BUF_SZ > DMA_BIT_MASK(30)) { in b44_alloc_rx_skb()
[all …]
/drivers/net/ethernet/smsc/
Dsmsc9420.c53 dma_addr_t mapping; member
557 BUG_ON(!pd->tx_buffers[i].mapping); in smsc9420_free_tx_ring()
558 pci_unmap_single(pd->pdev, pd->tx_buffers[i].mapping, in smsc9420_free_tx_ring()
590 if (pd->rx_buffers[i].mapping) in smsc9420_free_rx_ring()
591 pci_unmap_single(pd->pdev, pd->rx_buffers[i].mapping, in smsc9420_free_rx_ring()
811 pci_unmap_single(pd->pdev, pd->rx_buffers[index].mapping, in smsc9420_rx_handoff()
813 pd->rx_buffers[index].mapping = 0; in smsc9420_rx_handoff()
836 dma_addr_t mapping; in smsc9420_alloc_rx_buffer() local
839 BUG_ON(pd->rx_buffers[index].mapping); in smsc9420_alloc_rx_buffer()
844 mapping = pci_map_single(pd->pdev, skb_tail_pointer(skb), in smsc9420_alloc_rx_buffer()
[all …]
/drivers/staging/comedi/drivers/
Dserial2002.c350 unsigned char *mapping, in serial2002_setup_subdevice() argument
383 if (mapping) in serial2002_setup_subdevice()
384 mapping[chan] = j; in serial2002_setup_subdevice()
489 unsigned char *mapping = NULL; in serial2002_setup_subdevs() local
498 mapping = devpriv->digital_in_mapping; in serial2002_setup_subdevs()
503 mapping = devpriv->digital_out_mapping; in serial2002_setup_subdevs()
508 mapping = devpriv->analog_in_mapping; in serial2002_setup_subdevs()
514 mapping = devpriv->analog_out_mapping; in serial2002_setup_subdevs()
520 mapping = devpriv->encoder_in_mapping; in serial2002_setup_subdevs()
526 if (serial2002_setup_subdevice(s, cfg, range, mapping, kind)) in serial2002_setup_subdevs()

12345678