/drivers/platform/x86/ |
D | intel_pmic_gpio.c | 164 struct pmic_gpio *pg = irq_data_get_irq_chip_data(data); in pmic_irq_type() local 165 u32 gpio = data->irq - pg->irq_base; in pmic_irq_type() 167 if (gpio >= pg->chip.ngpio) in pmic_irq_type() 170 pg->trigger_type = type; in pmic_irq_type() 171 pg->update_type = gpio | GPIO_UPDATE_TYPE; in pmic_irq_type() 177 struct pmic_gpio *pg = container_of(chip, struct pmic_gpio, chip); in pmic_gpio_to_irq() local 179 return pg->irq_base + offset; in pmic_gpio_to_irq() 184 struct pmic_gpio *pg = irq_data_get_irq_chip_data(data); in pmic_bus_lock() local 186 mutex_lock(&pg->buslock); in pmic_bus_lock() 191 struct pmic_gpio *pg = irq_data_get_irq_chip_data(data); in pmic_bus_sync_unlock() local [all …]
|
/drivers/md/ |
D | dm-mpath.c | 33 struct priority_group *pg; /* Owning PG */ member 152 struct priority_group *pg; in alloc_priority_group() local 154 pg = kzalloc(sizeof(*pg), GFP_KERNEL); in alloc_priority_group() 156 if (pg) in alloc_priority_group() 157 INIT_LIST_HEAD(&pg->pgpaths); in alloc_priority_group() 159 return pg; in alloc_priority_group() 176 static void free_priority_group(struct priority_group *pg, in free_priority_group() argument 179 struct path_selector *ps = &pg->ps; in free_priority_group() 186 free_pgpaths(&pg->pgpaths, ti); in free_priority_group() 187 kfree(pg); in free_priority_group() [all …]
|
/drivers/block/paride/ |
D | pg.c | 208 struct pg { struct 223 static struct pg devices[PG_UNITS]; argument 225 static int pg_identify(struct pg *dev, int log); 249 struct pg *dev = &devices[unit]; in pg_init_units() 262 static inline int status_reg(struct pg *dev) in status_reg() 267 static inline int read_reg(struct pg *dev, int reg) in read_reg() 272 static inline void write_reg(struct pg *dev, int reg, int val) in write_reg() 277 static inline u8 DRIVE(struct pg *dev) in DRIVE() 287 static int pg_wait(struct pg *dev, int go, int stop, unsigned long tmo, char *msg) in pg_wait() 319 static int pg_command(struct pg *dev, char *cmd, int dlen, unsigned long tmo) in pg_command() [all …]
|
D | mkd | 27 for u in 0 1 2 3 ; do mkdev pg$u c 97 $u ; done
|
D | Makefile | 28 obj-$(CONFIG_PARIDE_PG) += pg.o
|
/drivers/gpu/drm/gma500/ |
D | gtt.c | 422 struct psb_gtt *pg; in psb_gtt_init() local 432 pg = &dev_priv->gtt; in psb_gtt_init() 446 pg->gtt_phys_start = dev_priv->pge_ctl & PAGE_MASK; in psb_gtt_init() 454 pg->mmu_gatt_start = 0xE0000000; in psb_gtt_init() 456 pg->gtt_start = pci_resource_start(dev->pdev, PSB_GTT_RESOURCE); in psb_gtt_init() 460 if (pg->gtt_start == 0 || gtt_pages == 0) { in psb_gtt_init() 463 pg->gtt_start = dev_priv->pge_ctl; in psb_gtt_init() 466 pg->gatt_start = pci_resource_start(dev->pdev, PSB_GATT_RESOURCE); in psb_gtt_init() 467 pg->gatt_pages = pci_resource_len(dev->pdev, PSB_GATT_RESOURCE) in psb_gtt_init() 471 if (pg->gatt_pages == 0 || pg->gatt_start == 0) { in psb_gtt_init() [all …]
|
D | psb_drv.c | 168 struct psb_gtt *pg = &dev_priv->gtt; in psb_do_init() local 174 if (pg->mmu_gatt_start & 0x0FFFFFFF) { in psb_do_init() 181 stolen_gtt = (pg->stolen_size >> PAGE_SHIFT) * 4; in psb_do_init() 184 (stolen_gtt < pg->gtt_pages) ? stolen_gtt : pg->gtt_pages; in psb_do_init() 186 dev_priv->gatt_free_offset = pg->mmu_gatt_start + in psb_do_init() 200 PSB_WSGX32(pg->gatt_start, PSB_CR_BIF_TWOD_REQ_BASE); in psb_do_init() 228 struct psb_gtt *pg = &dev_priv->gtt; in psb_driver_unload() local 230 down_read(&pg->sem); in psb_driver_unload() 234 pg->mmu_gatt_start, in psb_driver_unload() 236 up_read(&pg->sem); in psb_driver_unload()
|
/drivers/gpio/ |
D | gpio-palmas.c | 41 struct palmas_gpio *pg = to_palmas_gpio(gc); in palmas_gpio_get() local 42 struct palmas *palmas = pg->palmas; in palmas_gpio_get() 57 struct palmas_gpio *pg = to_palmas_gpio(gc); in palmas_gpio_set() local 58 struct palmas *palmas = pg->palmas; in palmas_gpio_set() 76 struct palmas_gpio *pg = to_palmas_gpio(gc); in palmas_gpio_output() local 77 struct palmas *palmas = pg->palmas; in palmas_gpio_output() 92 struct palmas_gpio *pg = to_palmas_gpio(gc); in palmas_gpio_input() local 93 struct palmas *palmas = pg->palmas; in palmas_gpio_input() 105 struct palmas_gpio *pg = to_palmas_gpio(gc); in palmas_gpio_to_irq() local 106 struct palmas *palmas = pg->palmas; in palmas_gpio_to_irq()
|
/drivers/net/wireless/mwifiex/ |
D | sta_ioctl.c | 608 struct mwifiex_power_group *pg; in mwifiex_set_tx_power() local 635 pg = (struct mwifiex_power_group *) in mwifiex_set_tx_power() 639 pg->first_rate_code = 0x00; in mwifiex_set_tx_power() 640 pg->last_rate_code = 0x03; in mwifiex_set_tx_power() 641 pg->modulation_class = MOD_CLASS_HR_DSSS; in mwifiex_set_tx_power() 642 pg->power_step = 0; in mwifiex_set_tx_power() 643 pg->power_min = (s8) dbm; in mwifiex_set_tx_power() 644 pg->power_max = (s8) dbm; in mwifiex_set_tx_power() 645 pg++; in mwifiex_set_tx_power() 647 pg->first_rate_code = 0x00; in mwifiex_set_tx_power() [all …]
|
D | sta_cmdresp.c | 334 struct mwifiex_power_group *pg; in mwifiex_get_power_level() local 341 pg = (struct mwifiex_power_group *) in mwifiex_get_power_level() 345 max_power = pg->power_max; in mwifiex_get_power_level() 346 min_power = pg->power_min; in mwifiex_get_power_level() 350 pg++; in mwifiex_get_power_level() 351 if (max_power < pg->power_max) in mwifiex_get_power_level() 352 max_power = pg->power_max; in mwifiex_get_power_level() 354 if (min_power > pg->power_min) in mwifiex_get_power_level() 355 min_power = pg->power_min; in mwifiex_get_power_level() 380 struct mwifiex_power_group *pg; in mwifiex_ret_tx_power_cfg() local [all …]
|
/drivers/hv/ |
D | hv_balloon.c | 552 struct page *pg; in hv_bring_pgs_online() local 553 pg = pfn_to_page(start_pfn + i); in hv_bring_pgs_online() 554 __online_page_set_limits(pg); in hv_bring_pgs_online() 555 __online_page_increment_counters(pg); in hv_bring_pgs_online() 556 __online_page_free(pg); in hv_bring_pgs_online() 624 static void hv_online_page(struct page *pg) in hv_online_page() argument 642 if (((unsigned long)pg >= cur_start_pgp) && in hv_online_page() 643 ((unsigned long)pg < cur_end_pgp)) { in hv_online_page() 648 __online_page_set_limits(pg); in hv_online_page() 649 __online_page_increment_counters(pg); in hv_online_page() [all …]
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_dcb.c | 1083 data[i].pg = DCBX_ILLEGAL_PG; in bnx2x_dcbx_get_num_pg_traf_type() 1093 if (data[traf_type].pg == add_pg) { in bnx2x_dcbx_get_num_pg_traf_type() 1105 data[help_data->num_of_pg].pg = add_pg; in bnx2x_dcbx_get_num_pg_traf_type() 1205 if (pg_help_data->data[0].pg < DCBX_MAX_NUM_PG_BW_ENTRIES) { in bnx2x_dcbx_2cos_limit_cee_single_pg_to_cos_params() 1332 u8 pg[DCBX_COS_MAX_NUM_E2] = { 0 }; in bnx2x_dcbx_2cos_limit_cee_two_pg_to_cos_params() local 1361 pg[0] = pg_help_data->data[0].pg; in bnx2x_dcbx_2cos_limit_cee_two_pg_to_cos_params() 1364 pg[1] = pg_help_data->data[1].pg; in bnx2x_dcbx_2cos_limit_cee_two_pg_to_cos_params() 1368 pg[0] = pg_help_data->data[1].pg; in bnx2x_dcbx_2cos_limit_cee_two_pg_to_cos_params() 1371 pg[1] = pg_help_data->data[0].pg; in bnx2x_dcbx_2cos_limit_cee_two_pg_to_cos_params() 1381 pg[0] = pg_help_data->data[0].pg; in bnx2x_dcbx_2cos_limit_cee_two_pg_to_cos_params() [all …]
|
/drivers/staging/tidspbridge/core/ |
D | tiomap3430.c | 228 static void bad_page_dump(u32 pa, struct page *pg) in bad_page_dump() argument 234 current->comm, pg, (int)(2 * sizeof(unsigned long)), in bad_page_dump() 235 (unsigned long)pg->flags, pg->mapping, in bad_page_dump() 236 page_mapcount(pg), page_count(pg)); in bad_page_dump() 1137 struct page *mapped_page, *pg; in bridge_brd_mem_map() local 1257 pg = PHYS_TO_PAGE(pa); in bridge_brd_mem_map() 1258 get_page(pg); in bridge_brd_mem_map() 1259 if (page_count(pg) < 1) { in bridge_brd_mem_map() 1261 bad_page_dump(pa, pg); in bridge_brd_mem_map() 1360 struct page *pg = NULL; in bridge_brd_mem_un_map() local [all …]
|
/drivers/target/ |
D | target_core_rd.c | 90 struct page *pg; in rd_release_device_space() local 103 pg = sg_page(&sg[j]); in rd_release_device_space() 104 if (pg) { in rd_release_device_space() 105 __free_page(pg); in rd_release_device_space() 134 struct page *pg; in rd_build_device_space() local 177 pg = alloc_pages(GFP_KERNEL, 0); in rd_build_device_space() 178 if (!pg) { in rd_build_device_space() 183 sg_assign_page(&sg[j], pg); in rd_build_device_space()
|
/drivers/char/agp/ |
D | i460-agp.c | 403 int i, start_offset, end_offset, idx, pg, num_entries; in i460_insert_memory_large_io_page() local 443 pg = lp - i460.lp_desc; in i460_insert_memory_large_io_page() 444 WR_GATT(pg, i460_mask_memory(agp_bridge, in i460_insert_memory_large_io_page() 446 WR_FLUSH_GATT(pg); in i460_insert_memory_large_io_page() 464 int i, pg, start_offset, end_offset, idx, num_entries; in i460_remove_memory_large_io_page() local 489 pg = lp - i460.lp_desc; in i460_remove_memory_large_io_page() 490 WR_GATT(pg, 0); in i460_remove_memory_large_io_page() 491 WR_FLUSH_GATT(pg); in i460_remove_memory_large_io_page()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | digest.c | 34 struct page *pg = sg[i].page; in update() local 42 char *p = kmap_atomic(pg) + offset; in update() 50 pg++; in update()
|
/drivers/mtd/tests/ |
D | mtd_readtest.c | 100 int pg, oob; in dump_eraseblock() local 117 for (pg = 0, i = 0; pg < pgcnt; pg++) in dump_eraseblock()
|
D | mtd_oobtest.c | 638 int pg; in mtd_oobtest_init() local 643 for (pg = 0; pg < cnt; ++pg) { in mtd_oobtest_init()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_dcb_nl.c | 101 __u8 pg[IEEE_8021QAZ_MAX_TCS] = { 0 }; in mlx4_en_config_port_scheduler() local 110 pg[i] = num_strict++; in mlx4_en_config_port_scheduler() 114 pg[i] = MLX4_EN_TC_ETS; in mlx4_en_config_port_scheduler() 120 return mlx4_SET_PORT_SCHEDULER(mdev->dev, priv->port, tc_tx_bw, pg, in mlx4_en_config_port_scheduler()
|
/drivers/mmc/host/ |
D | tifm_sd.c | 114 static void tifm_sd_read_fifo(struct tifm_sd *host, struct page *pg, in tifm_sd_read_fifo() argument 121 buf = kmap_atomic(pg) + off; in tifm_sd_read_fifo() 140 static void tifm_sd_write_fifo(struct tifm_sd *host, struct page *pg, in tifm_sd_write_fifo() argument 147 buf = kmap_atomic(pg) + off; in tifm_sd_write_fifo() 173 struct page *pg; in tifm_sd_transfer_data() local 195 pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT); in tifm_sd_transfer_data() 202 tifm_sd_read_fifo(host, pg, p_off, p_cnt); in tifm_sd_transfer_data() 204 tifm_sd_write_fifo(host, pg, p_off, p_cnt); in tifm_sd_transfer_data() 230 struct page *pg; in tifm_sd_bounce_block() local 244 pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT); in tifm_sd_bounce_block() [all …]
|
/drivers/staging/csr/ |
D | csr_wifi_hip_chiphelper.c | 754 u16 of, pg; in ChipHelper_DecodeWindow() local 777 pg = (u16)(offset >> mode->page_shift) + mode->page_offset; in ChipHelper_DecodeWindow() 785 pg--; in ChipHelper_DecodeWindow() 787 *page = pg; in ChipHelper_DecodeWindow()
|
/drivers/media/common/saa7146/ |
D | saa7146_core.c | 152 struct page *pg; in vmalloc_to_sg() local 160 pg = vmalloc_to_page(virt); in vmalloc_to_sg() 161 if (NULL == pg) in vmalloc_to_sg() 163 BUG_ON(PageHighMem(pg)); in vmalloc_to_sg() 164 sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); in vmalloc_to_sg()
|
/drivers/media/v4l2-core/ |
D | videobuf-dma-sg.c | 69 struct page *pg; in videobuf_vmalloc_to_sg() local 77 pg = vmalloc_to_page(virt); in videobuf_vmalloc_to_sg() 78 if (NULL == pg) in videobuf_vmalloc_to_sg() 80 BUG_ON(PageHighMem(pg)); in videobuf_vmalloc_to_sg() 81 sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); in videobuf_vmalloc_to_sg()
|
/drivers/iommu/ |
D | omap-iovmm.c | 427 struct page *pg; in sgtable_fill_vmalloc() local 433 pg = vmalloc_to_page(va); in sgtable_fill_vmalloc() 434 BUG_ON(!pg); in sgtable_fill_vmalloc() 435 sg_set_page(sg, pg, bytes, 0); in sgtable_fill_vmalloc()
|
/drivers/media/platform/omap3isp/ |
D | ispstat.c | 81 struct page *pg; in __isp_stat_buf_sync_magic() local 86 pg = vmalloc_to_page(buf->virt_addr); in __isp_stat_buf_sync_magic() 87 dma_addr = pfn_to_dma(dev, page_to_pfn(pg)); in __isp_stat_buf_sync_magic() 91 pg = vmalloc_to_page(buf->virt_addr + buf_size); in __isp_stat_buf_sync_magic() 92 dma_addr = pfn_to_dma(dev, page_to_pfn(pg)); in __isp_stat_buf_sync_magic()
|