Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/pinctrl/
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 …]
/kernel/linux/linux-5.10/drivers/cpufreq/
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 …]
/kernel/linux/linux-5.10/block/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/mvpp2/
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 …]
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()
Dmvpp2_prs.c2217 mvpp2_prs_mac_da_range_find(struct mvpp2 *priv, int pmap, const u8 *da, in mvpp2_prs_mac_da_range_find() argument
2237 entry_pmap == pmap) in mvpp2_prs_mac_da_range_find()
2249 unsigned int pmap, len, ri; in mvpp2_prs_mac_da_accept() local
2286 pmap = mvpp2_prs_tcam_port_map_get(&pe); in mvpp2_prs_mac_da_accept()
2287 if (pmap == 0) { in mvpp2_prs_mac_da_accept()
2358 unsigned long pmap; in mvpp2_prs_mac_del_all() local
2372 pmap = mvpp2_prs_tcam_port_map_get(&pe); in mvpp2_prs_mac_del_all()
2375 if (!test_bit(port->id, &pmap)) in mvpp2_prs_mac_del_all()
/kernel/linux/linux-5.10/drivers/pinctrl/aspeed/
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()
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/
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 …]
Dlibcxgbi.h501 struct cxgbi_ports_map pmap; member
/kernel/linux/linux-5.10/arch/sparc/kernel/
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 …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
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()
Dmem.h7 int nvkm_mem_map_host(struct nvkm_memory *, void **pmap);
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
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()
/kernel/linux/linux-5.10/arch/x86/platform/efi/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
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 …]
/kernel/linux/linux-5.10/net/netlabel/
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()
/kernel/linux/linux-5.10/fs/jfs/
Djfs_imap.h75 __le32 pmap[EXTSPERIAG]; /* 512: persistent allocation map */ member
Djfs_dmap.c514 dp->pmap[word] &= in dbUpdatePMap()
517 dp->pmap[word] |= in dbUpdatePMap()
533 memset(&dp->pmap[word], 0, in dbUpdatePMap()
536 memset(&dp->pmap[word], (int) ONES, in dbUpdatePMap()
3770 memset(&dp->pmap[0], 0, LPERDMAP * 4); in dbInitDmap()
3797 dp->pmap[w] &= cpu_to_le32(~(ONES << (DBWORD - nb) in dbInitDmap()
3806 memset(&dp->pmap[w], 0, nw * 4); in dbInitDmap()
3829 dp->wmap[w] = dp->pmap[w] = cpu_to_le32(ONES >> b); in dbInitDmap()
3835 dp->pmap[i] = dp->wmap[i] = cpu_to_le32(ONES); in dbInitDmap()
Djfs_imap.c1179 if (iagp->pmap[extno] != 0) { in diFree()
2051 if (((le32_to_cpu(iagp->pmap[extno]) & mask) != 0) || in diAllocBit()
2339 iagp->pmap[extno] = 0; in diNewExt()
2767 if (!(le32_to_cpu(iagp->pmap[extno]) & mask)) { in diUpdatePMap()
2773 iagp->pmap[extno] &= cpu_to_le32(~mask); in diUpdatePMap()
2788 if ((le32_to_cpu(iagp->pmap[extno]) & mask) != 0) { in diUpdatePMap()
2795 iagp->pmap[extno] |= cpu_to_le32(mask); in diUpdatePMap()
Djfs_dmap.h154 __le32 pmap[LPERDMAP]; /* 1024: bits of the persistent map */ member
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_object.c219 struct qxl_bo *bo, void *pmap) in qxl_bo_kunmap_atomic_page() argument
225 io_mapping_unmap_atomic(pmap); in qxl_bo_kunmap_atomic_page()
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c2387 struct cxgbi_ports_map *pmap; in cxgb4_dcb_change_notify() local
2424 pmap = &cdev->pmap; in cxgb4_dcb_change_notify()
2426 for (i = 0; i < pmap->used; i++) { in cxgb4_dcb_change_notify()
2427 if (pmap->port_csk[i]) { in cxgb4_dcb_change_notify()
2428 struct cxgbi_sock *csk = pmap->port_csk[i]; in cxgb4_dcb_change_notify()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c4076 struct ice_prof_map *pmap; in ice_rem_prof() local
4081 pmap = ice_search_prof_id(hw, blk, id); in ice_rem_prof()
4082 if (!pmap) { in ice_rem_prof()
4088 status = ice_rem_flow_all(hw, blk, pmap->profile_cookie); in ice_rem_prof()
4093 ice_prof_dec_ref(hw, blk, pmap->prof_id); in ice_rem_prof()
4095 list_del(&pmap->list); in ice_rem_prof()
4096 devm_kfree(ice_hw_to_dev(hw), pmap); in ice_rem_prof()
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_mbx.c3026 char *pmap; in qla2x00_get_fcal_position_map() local
3033 pmap = dma_pool_zalloc(ha->s_dma_pool, GFP_KERNEL, &pmap_dma); in qla2x00_get_fcal_position_map()
3034 if (pmap == NULL) { in qla2x00_get_fcal_position_map()
3055 mcp->mb[0], mcp->mb[1], (unsigned)pmap[0]); in qla2x00_get_fcal_position_map()
3057 pmap, pmap[0] + 1); in qla2x00_get_fcal_position_map()
3060 memcpy(pos_map, pmap, FCAL_MAP_SIZE); in qla2x00_get_fcal_position_map()
3062 *num_entries = pmap[0]; in qla2x00_get_fcal_position_map()
3064 dma_pool_free(ha->s_dma_pool, pmap, pmap_dma); in qla2x00_get_fcal_position_map()

12