/drivers/isdn/hardware/eicon/ |
D | diva_dma.c | 42 diva_dma_map_entry_t *pmap = diva_os_malloc(0, sizeof(*pmap) * (nentries + 1)); in diva_alloc_dma_map() local 43 if (pmap) in diva_alloc_dma_map() 44 memset(pmap, 0, sizeof(*pmap) * (nentries + 1)); in diva_alloc_dma_map() 45 return pmap; in diva_alloc_dma_map() 50 void diva_free_dma_mapping(struct _diva_dma_map_entry *pmap) { in diva_free_dma_mapping() argument 51 if (pmap) { in diva_free_dma_mapping() 52 diva_os_free(0, pmap); in diva_free_dma_mapping() 58 void diva_init_dma_map_entry(struct _diva_dma_map_entry *pmap, in diva_init_dma_map_entry() argument 61 pmap[nr].phys_bus_addr = phys; in diva_init_dma_map_entry() 62 pmap[nr].local_ram_addr = virt; in diva_init_dma_map_entry() [all …]
|
D | diva_dma.h | 30 void diva_init_dma_map_entry(struct _diva_dma_map_entry *pmap, 33 int diva_alloc_dma_map_entry(struct _diva_dma_map_entry *pmap); 34 void diva_free_dma_map_entry(struct _diva_dma_map_entry *pmap, int entry); 35 void diva_get_dma_map_entry(struct _diva_dma_map_entry *pmap, int nr, 37 void diva_free_dma_mapping(struct _diva_dma_map_entry *pmap); 46 struct _diva_dma_map_entry *pmap); 47 void *diva_get_entry_handle(struct _diva_dma_map_entry *pmap, int nr);
|
D | divasmain.c | 352 struct _diva_dma_map_entry *pmap = in diva_init_dma_map() local 355 if (pmap) { in diva_init_dma_map() 369 diva_init_dma_map_entry(pmap, i, cpu_addr, in diva_init_dma_map() 378 *ppmap = pmap; in diva_init_dma_map() 385 void diva_free_dma_map(void *hdev, struct _diva_dma_map_entry *pmap) in diva_free_dma_map() argument 394 for (i = 0; (pmap != NULL); i++) { in diva_free_dma_map() 395 diva_get_dma_map_entry(pmap, i, &cpu_addr, &phys_addr); in diva_free_dma_map() 399 addr_handle = diva_get_entry_handle(pmap, i); in diva_free_dma_map() 408 diva_free_dma_mapping(pmap); in diva_free_dma_map()
|
/drivers/pinctrl/ |
D | pinctrl-digicolor.c | 64 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pctldev); in dc_get_group_name() local 67 return pmap->desc->pins[selector].name; in dc_get_group_name() 74 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pctldev); in dc_get_group_pins() local 76 *pins = &pmap->desc->pins[selector].number; in dc_get_group_pins() 111 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pctldev); in dc_get_groups() local 113 *groups = pmap->pin_names; in dc_get_groups() 133 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pctldev); in dc_set_mux() local 139 reg = readb_relaxed(pmap->regs + reg_off); in dc_set_mux() 142 writeb_relaxed(reg, pmap->regs + reg_off); in dc_set_mux() 151 struct dc_pinmap *pmap = pinctrl_dev_get_drvdata(pcdev); in dc_pmx_request_gpio() local [all …]
|
/drivers/cpufreq/ |
D | brcmstb-avs-cpufreq.c | 174 struct pmap { struct 190 struct pmap pmap; argument 420 static int brcm_avs_get_pmap(struct private_data *priv, struct pmap *pmap) in brcm_avs_get_pmap() argument 426 if (ret || !pmap) in brcm_avs_get_pmap() 429 pmap->mode = args[0]; in brcm_avs_get_pmap() 430 pmap->p1 = args[1]; in brcm_avs_get_pmap() 431 pmap->p2 = args[2]; in brcm_avs_get_pmap() 432 pmap->state = args[3]; in brcm_avs_get_pmap() 437 static int brcm_avs_set_pmap(struct private_data *priv, struct pmap *pmap) in brcm_avs_set_pmap() argument 441 args[0] = pmap->mode; in brcm_avs_set_pmap() [all …]
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 78 struct cxgbi_ports_map *pmap = &cdev->pmap; in cxgbi_device_portmap_create() local 80 pmap->port_csk = cxgbi_alloc_big_mem(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 …]
|
D | libcxgbi.h | 481 struct cxgbi_ports_map pmap; member
|
/drivers/pinctrl/aspeed/ |
D | pinctrl-aspeed.c | 656 const struct aspeed_pin_config_map *pmap; in aspeed_pin_config_get() local 672 pmap = find_pinconf_map(param, MAP_TYPE_VAL, in aspeed_pin_config_get() 675 if (!pmap) in aspeed_pin_config_get() 679 arg = (u32) pmap->arg; in aspeed_pin_config_get() 681 arg = !!pmap->arg; in aspeed_pin_config_get() 703 const struct aspeed_pin_config_map *pmap; in aspeed_pin_config_set() local 716 pmap = find_pinconf_map(param, MAP_TYPE_ARG, arg); in aspeed_pin_config_set() 718 if (unlikely(WARN_ON(!pmap))) in aspeed_pin_config_set() 721 val = pmap->val << pconf->bit; in aspeed_pin_config_set() 730 __func__, pconf->reg, pconf->bit, pmap->val, in aspeed_pin_config_set()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_rdma.c | 297 u64 *pmap = (u64 *)bmap->bitmap; in qed_rdma_bmap_free() local 310 if (bitmap_weight((unsigned long *)&pmap[item], 64 * 8)) in qed_rdma_bmap_free() 314 pmap[item], in qed_rdma_bmap_free() 315 pmap[item + 1], in qed_rdma_bmap_free() 316 pmap[item + 2], in qed_rdma_bmap_free() 317 pmap[item + 3], in qed_rdma_bmap_free() 318 pmap[item + 4], in qed_rdma_bmap_free() 319 pmap[item + 5], in qed_rdma_bmap_free() 320 pmap[item + 6], pmap[item + 7]); in qed_rdma_bmap_free() 324 (bitmap_weight((unsigned long *)&pmap[item], in qed_rdma_bmap_free() [all …]
|
/drivers/gpu/drm/qxl/ |
D | qxl_object.c | 187 struct qxl_bo *bo, void *pmap) in qxl_bo_kunmap_atomic_page() argument 199 io_mapping_unmap_atomic(pmap); in qxl_bo_kunmap_atomic_page()
|
/drivers/nvme/host/ |
D | pci.c | 514 void *p, *pmap; in nvme_dif_remap() local 524 pmap = kmap_atomic(bip->bip_vec->bv_page) + bip->bip_vec->bv_offset; in nvme_dif_remap() 526 p = pmap; in nvme_dif_remap() 537 kunmap_atomic(pmap); in nvme_dif_remap()
|
/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 2817 char *pmap; in qla2x00_get_fcal_position_map() local 2824 pmap = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &pmap_dma); in qla2x00_get_fcal_position_map() 2825 if (pmap == NULL) { in qla2x00_get_fcal_position_map() 2830 memset(pmap, 0, FCAL_MAP_SIZE); in qla2x00_get_fcal_position_map() 2847 mcp->mb[0], mcp->mb[1], (unsigned)pmap[0]); in qla2x00_get_fcal_position_map() 2849 pmap, pmap[0] + 1); in qla2x00_get_fcal_position_map() 2852 memcpy(pos_map, pmap, FCAL_MAP_SIZE); in qla2x00_get_fcal_position_map() 2854 dma_pool_free(ha->s_dma_pool, pmap, pmap_dma); in qla2x00_get_fcal_position_map()
|
/drivers/net/ethernet/marvell/ |
D | mvpp2.c | 3394 mvpp2_prs_mac_da_range_find(struct mvpp2 *priv, int pmap, const u8 *da, in mvpp2_prs_mac_da_range_find() argument 3420 entry_pmap == pmap) in mvpp2_prs_mac_da_range_find() 3433 unsigned int pmap, len, ri; in mvpp2_prs_mac_da_accept() local 3476 pmap = mvpp2_prs_tcam_port_map_get(pe); in mvpp2_prs_mac_da_accept() 3477 if (pmap == 0) { in mvpp2_prs_mac_da_accept()
|