Home
last modified time | relevance | path

Searched refs:pmap (Results 1 – 25 of 54) sorted by relevance

123

/OK3568_Linux_fs/external/xserver/dix/
H A Dcolormap.c243 ColormapPtr pmap; in CreateColormap() local
260 pmap = malloc(sizebytes); in CreateColormap()
261 if (!pmap) in CreateColormap()
263 if (!dixAllocatePrivates(&pmap->devPrivates, PRIVATE_COLORMAP)) { in CreateColormap()
264 free(pmap); in CreateColormap()
269 pmap = _dixAllocateObjectWithPrivates(sizebytes, sizebytes, in CreateColormap()
273 if (!pmap) in CreateColormap()
276 pmap->red = (EntryPtr) ((char *) pmap + sizeof(ColormapRec)); in CreateColormap()
278 pmap->clientPixelsRed = (Pixel **) ((char *) pmap->red + sizebytes); in CreateColormap()
279 pmap->numPixelsRed = (int *) ((char *) pmap->clientPixelsRed + in CreateColormap()
[all …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/
H A Dpinctrl-digicolor.c59 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pctldev); in dc_get_group_name() local
62 return pmap->desc->pins[selector].name; in dc_get_group_name()
69 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pctldev); in dc_get_group_pins() local
71 *pins = &pmap->desc->pins[selector].number; in dc_get_group_pins()
106 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pctldev); in dc_get_groups() local
108 *groups = pmap->pin_names; in dc_get_groups()
128 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pctldev); in dc_set_mux() local
134 reg = readb_relaxed(pmap->regs + reg_off); in dc_set_mux()
137 writeb_relaxed(reg, pmap->regs + reg_off); in dc_set_mux()
146 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pcdev); in dc_pmx_request_gpio() local
[all …]
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Dbrcmstb-avs-cpufreq.c168 struct pmap { struct
181 struct pmap pmap; argument
359 static int brcm_avs_get_pmap(struct private_data *priv, struct pmap *pmap) in brcm_avs_get_pmap() argument
365 if (ret || !pmap) in brcm_avs_get_pmap()
368 pmap->mode = args[0]; in brcm_avs_get_pmap()
369 pmap->p1 = args[1]; in brcm_avs_get_pmap()
370 pmap->p2 = args[2]; in brcm_avs_get_pmap()
371 pmap->state = args[3]; in brcm_avs_get_pmap()
376 static int brcm_avs_set_pmap(struct private_data *priv, struct pmap *pmap) in brcm_avs_set_pmap() argument
380 args[0] = pmap->mode; in brcm_avs_set_pmap()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xfree86/common/
H A Dxf86cmap.c67 #define LOAD_PALETTE(pmap) \ argument
68 ((pmap == GetInstalledmiColormap(pmap->pScreen)) && \
70 xf86ScreenToScrn(pmap->pScreen)->vtSema || pScreenPriv->isDGAmode))
262 CMapAllocateColormapPrivate(ColormapPtr pmap) in CMapAllocateColormapPrivate() argument
265 (CMapScreenPtr) dixLookupPrivate(&pmap->pScreen->devPrivates, in CMapAllocateColormapPrivate()
272 if (CMapColormapUseMax(pmap->pVisual, pScreenPriv)) in CMapAllocateColormapPrivate()
273 numColors = pmap->pVisual->ColormapEntries; in CMapAllocateColormapPrivate()
275 numColors = 1 << pmap->pVisual->nplanes; in CMapAllocateColormapPrivate()
285 dixSetPrivate(&pmap->devPrivates, CMapColormapKey, pColPriv); in CMapAllocateColormapPrivate()
295 pLink->cmap = pmap; in CMapAllocateColormapPrivate()
[all …]
H A Dxf86DGA.c87 static void DGADestroyColormap(ColormapPtr pmap);
88 static void DGAInstallColormap(ColormapPtr pmap);
89 static void DGAUninstallColormap(ColormapPtr pmap);
292 DGADestroyColormap(ColormapPtr pmap) in DGADestroyColormap() argument
294 ScreenPtr pScreen = pmap->pScreen; in DGADestroyColormap()
296 VisualPtr pVisual = pmap->pVisual; in DGADestroyColormap()
314 (*pScreen->DestroyColormap) (pmap); in DGADestroyColormap()
320 DGAInstallColormap(ColormapPtr pmap) in DGAInstallColormap() argument
322 ScreenPtr pScreen = pmap->pScreen; in DGAInstallColormap()
326 if (pmap != pScreenPriv->dgaColormap) { in DGAInstallColormap()
[all …]
/OK3568_Linux_fs/external/xserver/mi/
H A Dmicmap.c55 miInstallColormap(ColormapPtr pmap) in miInstallColormap() argument
57 ColormapPtr oldpmap = GetInstalledmiColormap(pmap->pScreen); in miInstallColormap()
59 if (pmap != oldpmap) { in miInstallColormap()
63 WalkTree(pmap->pScreen, TellLostMap, (char *) &oldpmap->mid); in miInstallColormap()
65 SetInstalledmiColormap(pmap->pScreen, pmap); in miInstallColormap()
66 WalkTree(pmap->pScreen, TellGainedMap, (char *) &pmap->mid); in miInstallColormap()
72 miUninstallColormap(ColormapPtr pmap) in miUninstallColormap() argument
74 ColormapPtr curpmap = GetInstalledmiColormap(pmap->pScreen); in miUninstallColormap()
76 if (pmap == curpmap) { in miUninstallColormap()
77 if (pmap->mid != pmap->pScreen->defColormap) { in miUninstallColormap()
[all …]
H A Dmicmap.h22 extern _X_EXPORT void miInstallColormap(ColormapPtr pmap);
23 extern _X_EXPORT void miUninstallColormap(ColormapPtr pmap);
/OK3568_Linux_fs/external/xserver/hw/xwin/
H A Dwincmap.c47 winStoreColors(ColormapPtr pmap, int ndef, xColorItem * pdefs);
50 winInstallColormap(ColormapPtr pmap);
53 winUninstallColormap(ColormapPtr pmap);
62 winCreateColormap(ColormapPtr pmap);
65 winDestroyColormap(ColormapPtr pmap);
155 winUninstallColormap(ColormapPtr pmap) in winUninstallColormap() argument
157 winScreenPriv(pmap->pScreen); in winUninstallColormap()
165 if (pmap != curpmap) { in winUninstallColormap()
179 if (pmap->mid != pmap->pScreen->defColormap) { in winUninstallColormap()
180 dixLookupResourceByType((void *) &curpmap, pmap->pScreen->defColormap, in winUninstallColormap()
[all …]
/OK3568_Linux_fs/external/xserver/fb/
H A Dfbcmap_mi.c45 fbInstallColormap(ColormapPtr pmap) in fbInstallColormap() argument
47 miInstallColormap(pmap); in fbInstallColormap()
51 fbUninstallColormap(ColormapPtr pmap) in fbUninstallColormap() argument
53 miUninstallColormap(pmap); in fbUninstallColormap()
64 fbInitializeColormap(ColormapPtr pmap) in fbInitializeColormap() argument
66 return miInitializeColormap(pmap); in fbInitializeColormap()
70 fbExpandDirectColors(ColormapPtr pmap, in fbExpandDirectColors() argument
73 return miExpandDirectColors(pmap, ndef, indefs, outdefs); in fbExpandDirectColors()
/OK3568_Linux_fs/kernel/block/
H A Dt10-pi.c150 void *p, *pmap; in t10_pi_type1_prepare() local
153 pmap = kmap_atomic(iv.bv_page); in t10_pi_type1_prepare()
154 p = pmap + iv.bv_offset; in t10_pi_type1_prepare()
165 kunmap_atomic(pmap); in t10_pi_type1_prepare()
198 void *p, *pmap; in t10_pi_type1_complete() local
201 pmap = kmap_atomic(iv.bv_page); in t10_pi_type1_complete()
202 p = pmap + iv.bv_offset; in t10_pi_type1_complete()
214 kunmap_atomic(pmap); in t10_pi_type1_complete()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_debugfs.c249 unsigned long pmap; in mvpp2_dbgfs_port_vid_show() local
257 pmap = mvpp2_prs_tcam_port_map_get(&pe); in mvpp2_dbgfs_port_vid_show()
262 if (!test_bit(port->id, &pmap)) in mvpp2_dbgfs_port_vid_show()
283 unsigned long pmap; in mvpp2_dbgfs_port_parser_show() local
289 pmap = mvpp2_prs_tcam_port_map_get(&pe); in mvpp2_dbgfs_port_parser_show()
290 if (priv->prs_shadow[i].valid && test_bit(port->id, &pmap)) in mvpp2_dbgfs_port_parser_show()
304 unsigned long pmap; in mvpp2_dbgfs_filter_show() local
318 pmap = mvpp2_prs_tcam_port_map_get(&pe); in mvpp2_dbgfs_filter_show()
321 if (!test_bit(port->id, &pmap)) in mvpp2_dbgfs_filter_show()
353 unsigned int pmap; in mvpp2_dbgfs_prs_pmap_show() local
[all …]
H A Dmvpp2_cls.c864 u8 qh, ql, pmap; in mvpp2_port_c2_cls_init() local
870 pmap = BIT(port->id); in mvpp2_port_c2_cls_init()
871 c2.tcam[4] = MVPP22_CLS_C2_PORT_ID(pmap); in mvpp2_port_c2_cls_init()
872 c2.tcam[4] |= MVPP22_CLS_C2_TCAM_EN(MVPP22_CLS_C2_PORT_ID(pmap)); in mvpp2_port_c2_cls_init()
1082 u8 qh, ql, pmap; in mvpp2_port_c2_tcam_rule_add() local
1108 pmap = BIT(port->id); in mvpp2_port_c2_tcam_rule_add()
1109 c2.tcam[4] = MVPP22_CLS_C2_PORT_ID(pmap); in mvpp2_port_c2_tcam_rule_add()
1110 c2.tcam[4] |= MVPP22_CLS_C2_TCAM_EN(MVPP22_CLS_C2_PORT_ID(pmap)); in mvpp2_port_c2_tcam_rule_add()
/OK3568_Linux_fs/external/xserver/hw/vfb/
H A DInitOutput.c394 vfbInstallColormap(ColormapPtr pmap) in vfbInstallColormap() argument
396 ColormapPtr oldpmap = GetInstalledmiColormap(pmap->pScreen); in vfbInstallColormap()
398 if (pmap != oldpmap) { in vfbInstallColormap()
407 miInstallColormap(pmap); in vfbInstallColormap()
409 entries = pmap->pVisual->ColormapEntries; in vfbInstallColormap()
410 pXWDHeader = vfbScreens[pmap->pScreen->myNum].pXWDHeader; in vfbInstallColormap()
411 pVisual = pmap->pVisual; in vfbInstallColormap()
427 QueryColors(pmap, entries, ppix, prgb, serverClient); in vfbInstallColormap()
436 (*pmap->pScreen->StoreColors) (pmap, entries, defs); in vfbInstallColormap()
445 vfbStoreColors(ColormapPtr pmap, int ndef, xColorItem * pdefs) in vfbStoreColors() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/cxgbi/
H A Dlibcxgbi.c78 struct cxgbi_ports_map *pmap = &cdev->pmap; in cxgbi_device_portmap_create() local
80 pmap->port_csk = kvzalloc(array_size(max_conn, in cxgbi_device_portmap_create()
83 if (!pmap->port_csk) { in cxgbi_device_portmap_create()
88 pmap->max_connect = max_conn; in cxgbi_device_portmap_create()
89 pmap->sport_base = base; in cxgbi_device_portmap_create()
90 spin_lock_init(&pmap->lock); in cxgbi_device_portmap_create()
97 struct cxgbi_ports_map *pmap = &cdev->pmap; in cxgbi_device_portmap_cleanup() local
101 for (i = 0; i < pmap->max_connect; i++) { in cxgbi_device_portmap_cleanup()
102 if (pmap->port_csk[i]) { in cxgbi_device_portmap_cleanup()
103 csk = pmap->port_csk[i]; in cxgbi_device_portmap_cleanup()
[all …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/aspeed/
H A Dpinctrl-aspeed.c532 const struct aspeed_pin_config_map *pmap; in aspeed_pin_config_get() local
548 pmap = find_pinconf_map(pdata, param, MAP_TYPE_VAL, in aspeed_pin_config_get()
551 if (!pmap) in aspeed_pin_config_get()
555 arg = (u32) pmap->arg; in aspeed_pin_config_get()
557 arg = !!pmap->arg; in aspeed_pin_config_get()
579 const struct aspeed_pin_config_map *pmap; in aspeed_pin_config_set() local
592 pmap = find_pinconf_map(pdata, param, MAP_TYPE_ARG, arg); in aspeed_pin_config_set()
594 if (WARN_ON(!pmap)) in aspeed_pin_config_set()
597 val = pmap->val << __ffs(pconf->mask); in aspeed_pin_config_set()
/OK3568_Linux_fs/kernel/arch/sparc/kernel/
H A Dperf_event.c132 static unsigned long perf_event_encode(const struct perf_event_map *pmap) in perf_event_encode() argument
134 return ((unsigned long) pmap->encoding << 16) | pmap->pic_mask; in perf_event_encode()
1199 const struct perf_event_map *pmap; in sparc_map_cache_event() local
1216 pmap = &((*sparc_pmu->cache_map)[cache_type][cache_op][cache_result]); in sparc_map_cache_event()
1218 if (pmap->encoding == CACHE_OP_UNSUPPORTED) in sparc_map_cache_event()
1221 if (pmap->encoding == CACHE_OP_NONSENSE) in sparc_map_cache_event()
1224 return pmap; in sparc_map_cache_event()
1422 const struct perf_event_map *pmap; in sparc_pmu_event_init() local
1436 pmap = sparc_pmu->event_map(attr->config); in sparc_pmu_event_init()
1440 pmap = sparc_map_cache_event(attr->config); in sparc_pmu_event_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Diqs5xx.c755 const char *fw_file, u8 *pmap) in iqs5xx_fw_file_parse() argument
856 memcpy(pmap + rec_addr - IQS5XX_CHKSM, in iqs5xx_fw_file_parse()
888 u8 *pmap; in iqs5xx_fw_file_write() local
893 pmap = kzalloc(IQS5XX_PMAP_LEN, GFP_KERNEL); in iqs5xx_fw_file_write()
894 if (!pmap) in iqs5xx_fw_file_write()
897 error = iqs5xx_fw_file_parse(client, fw_file, pmap); in iqs5xx_fw_file_write()
919 error = iqs5xx_bl_write(client, IQS5XX_CHKSM, pmap, IQS5XX_PMAP_LEN); in iqs5xx_fw_file_write()
928 pmap + IQS5XX_CHKSM_LEN + IQS5XX_APP_LEN, in iqs5xx_fw_file_write()
950 kfree(pmap); in iqs5xx_fw_file_write()
/OK3568_Linux_fs/external/xserver/hw/xfree86/ramdac/
H A Dxf86HWCurs.c354 ColormapPtr pmap = ScreenPriv->pInstalledMap; in xf86RecolorCursor_locked() local
356 if (!pmap) in xf86RecolorCursor_locked()
362 FakeAllocColor(pmap, &sourceColor); in xf86RecolorCursor_locked()
366 FakeAllocColor(pmap, &maskColor); in xf86RecolorCursor_locked()
367 FakeFreeColor(pmap, sourceColor.pixel); in xf86RecolorCursor_locked()
368 FakeFreeColor(pmap, maskColor.pixel); in xf86RecolorCursor_locked()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dmem.c133 nvkm_mem_map_host(struct nvkm_memory *memory, void **pmap) in nvkm_mem_map_host() argument
137 *pmap = vmap(mem->mem, mem->pages, VM_MAP, PAGE_KERNEL); in nvkm_mem_map_host()
138 return *pmap ? 0 : -EFAULT; in nvkm_mem_map_host()
H A Dmem.h7 int nvkm_mem_map_host(struct nvkm_memory *, void **pmap);
/OK3568_Linux_fs/kernel/arch/x86/boot/compressed/
H A Dkaslr.c690 unsigned long pmap; in process_efi_entries() local
706 pmap = e->efi_memmap; in process_efi_entries()
708 pmap = (e->efi_memmap | ((__u64)e->efi_memmap_hi << 32)); in process_efi_entries()
713 md = efi_early_memdesc_ptr(pmap, e->efi_memdesc_size, i); in process_efi_entries()
721 md = efi_early_memdesc_ptr(pmap, e->efi_memdesc_size, i); in process_efi_entries()
/OK3568_Linux_fs/buildroot/package/procps-ng/
H A D0001-configure-Add--disable-w.patch30 pmap \
39 pmap.1 \
/OK3568_Linux_fs/kernel/arch/x86/platform/efi/
H A Defi.c219 phys_addr_t pmap; in efi_memblock_x86_reserve_range() local
230 pmap = (phys_addr_t)(e->efi_memmap | ((u64)e->efi_memmap_hi << 32)); in efi_memblock_x86_reserve_range()
232 data.phys_map = pmap; in efi_memblock_x86_reserve_range()
250 memblock_reserve(pmap, efi.memmap.nr_map * efi.memmap.desc_size); in efi_memblock_x86_reserve_range()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_rdma.c325 u64 *pmap = (u64 *)bmap->bitmap; in qed_rdma_bmap_free() local
338 if (bitmap_weight((unsigned long *)&pmap[item], 64 * 8)) in qed_rdma_bmap_free()
342 pmap[item], in qed_rdma_bmap_free()
343 pmap[item + 1], in qed_rdma_bmap_free()
344 pmap[item + 2], in qed_rdma_bmap_free()
345 pmap[item + 3], in qed_rdma_bmap_free()
346 pmap[item + 4], in qed_rdma_bmap_free()
347 pmap[item + 5], in qed_rdma_bmap_free()
348 pmap[item + 6], pmap[item + 7]); in qed_rdma_bmap_free()
352 (bitmap_weight((unsigned long *)&pmap[item], in qed_rdma_bmap_free()
[all …]
/OK3568_Linux_fs/kernel/net/netlabel/
H A Dnetlabel_mgmt.c79 void *pmap = NULL; in netlbl_mgmt_add_common() local
179 pmap = map; in netlbl_mgmt_add_common()
226 pmap = map; in netlbl_mgmt_add_common()
255 kfree(pmap); in netlbl_mgmt_add_common()

123