Home
last modified time | relevance | path

Searched refs:pt (Results 1 – 25 of 58) sorted by relevance

123

/drivers/media/common/
Dsaa7146_core.c179 void *saa7146_vmalloc_build_pgtable(struct pci_dev *pci, long length, struct saa7146_pgtable *pt) in saa7146_vmalloc_build_pgtable() argument
188 if (!(pt->slist = vmalloc_to_sg(mem, pages))) in saa7146_vmalloc_build_pgtable()
191 if (saa7146_pgtable_alloc(pci, pt)) in saa7146_vmalloc_build_pgtable()
194 pt->nents = pages; in saa7146_vmalloc_build_pgtable()
195 slen = pci_map_sg(pci,pt->slist,pt->nents,PCI_DMA_FROMDEVICE); in saa7146_vmalloc_build_pgtable()
199 if (0 != saa7146_pgtable_build_single(pci, pt, pt->slist, slen)) in saa7146_vmalloc_build_pgtable()
205 pci_unmap_sg(pci, pt->slist, pt->nents, PCI_DMA_FROMDEVICE); in saa7146_vmalloc_build_pgtable()
207 saa7146_pgtable_free(pci, pt); in saa7146_vmalloc_build_pgtable()
209 kfree(pt->slist); in saa7146_vmalloc_build_pgtable()
210 pt->slist = NULL; in saa7146_vmalloc_build_pgtable()
[all …]
Dsaa7146_hlp.c723 vdma1.base_page = buf->pt[0].dma | ME1 | sfmt->swap; in calculate_video_dma_grab_packed()
726 vdma1.prot_addr = buf->pt[0].offset; in calculate_video_dma_grab_packed()
727 vdma1.base_even = buf->pt[0].offset+(vdma1.pitch/2)*height; in calculate_video_dma_grab_packed()
730 vdma1.base_even = buf->pt[0].offset; in calculate_video_dma_grab_packed()
732 vdma1.prot_addr = buf->pt[0].offset+(vdma1.pitch/2)*height; in calculate_video_dma_grab_packed()
774 vdma2->prot_addr = buf->pt[1].offset; in calc_planar_422()
775 vdma2->base_even = ((vdma2->pitch/2)*height)+buf->pt[1].offset; in calc_planar_422()
778 vdma3->prot_addr = buf->pt[2].offset; in calc_planar_422()
779 vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[2].offset; in calc_planar_422()
782 vdma3->base_even = buf->pt[2].offset; in calc_planar_422()
[all …]
Dsaa7146_vbi.c151 vdma3.base_even = buf->pt[2].offset; in saa7146_set_vbi_capture()
152 vdma3.base_odd = buf->pt[2].offset + 16 * vbi_pixel_to_capture; in saa7146_set_vbi_capture()
153 vdma3.prot_addr = buf->pt[2].offset + 16 * 2 * vbi_pixel_to_capture; in saa7146_set_vbi_capture()
155 vdma3.base_page = buf->pt[2].dma | ME1; in saa7146_set_vbi_capture()
249 saa7146_pgtable_free(dev->pci, &buf->pt[2]); in buffer_prepare()
250 saa7146_pgtable_alloc(dev->pci, &buf->pt[2]); in buffer_prepare()
255 err = saa7146_pgtable_build_single(dev->pci, &buf->pt[2], in buffer_prepare()
Dsaa7146_video.c606 struct saa7146_pgtable *pt1 = &buf->pt[0]; in saa7146_pgtable_build()
607 struct saa7146_pgtable *pt2 = &buf->pt[1]; in saa7146_pgtable_build()
608 struct saa7146_pgtable *pt3 = &buf->pt[2]; in saa7146_pgtable_build()
703 struct saa7146_pgtable *pt = &buf->pt[0]; in saa7146_pgtable_build() local
704 return saa7146_pgtable_build_single(pci, pt, list, length); in saa7146_pgtable_build()
1295 saa7146_pgtable_free(dev->pci, &buf->pt[0]); in buffer_prepare()
1296 saa7146_pgtable_free(dev->pci, &buf->pt[1]); in buffer_prepare()
1297 saa7146_pgtable_free(dev->pci, &buf->pt[2]); in buffer_prepare()
1299 saa7146_pgtable_alloc(dev->pci, &buf->pt[0]); in buffer_prepare()
1300 saa7146_pgtable_alloc(dev->pci, &buf->pt[1]); in buffer_prepare()
[all …]
/drivers/gpu/drm/
Ddrm_edid.c292 struct detailed_pixel_timing *pt = &timing->data.pixel_data; in drm_mode_detailed() local
294 if (pt->stereo) { in drm_mode_detailed()
298 if (!pt->separate_sync) { in drm_mode_detailed()
314 mode->hdisplay = (pt->hactive_hi << 8) | pt->hactive_lo; in drm_mode_detailed()
315 mode->hsync_start = mode->hdisplay + ((pt->hsync_offset_hi << 8) | in drm_mode_detailed()
316 pt->hsync_offset_lo); in drm_mode_detailed()
318 ((pt->hsync_pulse_width_hi << 8) | in drm_mode_detailed()
319 pt->hsync_pulse_width_lo); in drm_mode_detailed()
320 mode->htotal = mode->hdisplay + ((pt->hblank_hi << 8) | pt->hblank_lo); in drm_mode_detailed()
322 mode->vdisplay = (pt->vactive_hi << 8) | pt->vactive_lo; in drm_mode_detailed()
[all …]
Ddrm_auth.c51 struct drm_magic_entry *pt; in drm_find_file() local
57 pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item); in drm_find_file()
58 retval = pt->priv; in drm_find_file()
107 struct drm_magic_entry *pt; in drm_remove_magic() local
118 pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item); in drm_remove_magic()
120 list_del(&pt->head); in drm_remove_magic()
123 drm_free(pt, sizeof(*pt), DRM_MEM_MAGIC); in drm_remove_magic()
Ddrm_vm.c211 struct drm_vma_entry *pt, *temp; in drm_vm_shm_close() local
223 list_for_each_entry_safe(pt, temp, &dev->vmalist, head) { in drm_vm_shm_close()
224 if (pt->vma->vm_private_data == map) in drm_vm_shm_close()
226 if (pt->vma == vma) { in drm_vm_shm_close()
227 list_del(&pt->head); in drm_vm_shm_close()
228 drm_free(pt, sizeof(*pt), DRM_MEM_VMAS); in drm_vm_shm_close()
445 struct drm_vma_entry *pt, *temp; in drm_vm_close() local
452 list_for_each_entry_safe(pt, temp, &dev->vmalist, head) { in drm_vm_close()
453 if (pt->vma == vma) { in drm_vm_close()
454 list_del(&pt->head); in drm_vm_close()
[all …]
Ddrm_ioctl.c238 struct drm_file *pt; in drm_getclient() local
246 list_for_each_entry(pt, &dev->filelist, lhead) { in drm_getclient()
248 client->auth = pt->authenticated; in drm_getclient()
249 client->pid = pt->pid; in drm_getclient()
250 client->uid = pt->uid; in drm_getclient()
251 client->magic = pt->magic; in drm_getclient()
252 client->iocs = pt->ioctl_count; in drm_getclient()
Ddrm_memory.c70 void *pt; in drm_realloc() local
72 if (!(pt = kmalloc(size, GFP_KERNEL))) in drm_realloc()
75 memcpy(pt, oldpt, oldsize); in drm_realloc()
78 return pt; in drm_realloc()
Ddrm_stub.c119 struct drm_magic_entry *pt, *next; in drm_master_destroy() local
141 list_for_each_entry_safe(pt, next, &master->magicfree, head) { in drm_master_destroy()
142 list_del(&pt->head); in drm_master_destroy()
143 drm_ht_remove_item(&master->magiclist, &pt->hash_item); in drm_master_destroy()
144 drm_free(pt, sizeof(*pt), DRM_MEM_MAGIC); in drm_master_destroy()
/drivers/net/skfp/
Dpmf.c318 const struct s_p_tab *pt ; in smt_build_pmf_response() local
431 pt = smt_get_ptab(pa->p_type) ; in smt_build_pmf_response()
432 if (pt && pt->p_access == AC_GROUP && !set) { in smt_build_pmf_response()
433 pt++ ; in smt_build_pmf_response()
434 while (pt->p_access == AC_G || in smt_build_pmf_response()
435 pt->p_access == AC_GR) { in smt_build_pmf_response()
436 smt_add_para(smc,&pcon,pt->p_num, in smt_build_pmf_response()
438 pt++ ; in smt_build_pmf_response()
463 if (pt && pt->p_access == AC_S) { in smt_build_pmf_response()
554 const struct s_p_tab *pt ; in smt_add_para() local
[all …]
/drivers/mtd/maps/
Dimpa7.c79 static struct { u_long addr; u_long size; } pt[NUM_FLASHBANKS] = { in init_impa7() local
88 pt[i].size, pt[i].addr); in init_impa7()
90 impa7_map[i].phys = pt[i].addr; in init_impa7()
91 impa7_map[i].virt = ioremap(pt[i].addr, pt[i].size); in init_impa7()
Dsbc8240.c144 } pt[NUM_FLASH_BANKS] = { in init_sbc8240_mtd() local
160 "Probing 0x%08lx at 0x%08lx\n", pt[i].size, pt[i].addr); in init_sbc8240_mtd()
163 (unsigned long) ioremap (pt[i].addr, pt[i].size); in init_sbc8240_mtd()
/drivers/scsi/
Dips.c1053 ips_passthru_t *pt; in ips_queue() local
1103 pt = (ips_passthru_t *) scsi_sglist(SC); in ips_queue()
1104 if ((pt->CoppCP.cmd.reset.op_code == IPS_CMD_RESET_CHANNEL) && in ips_queue()
1105 (pt->CoppCP.cmd.reset.adapter_flag == 1)) { in ips_queue()
1570 ips_passthru_t *pt; in ips_make_passthru() local
1590 pt = (ips_passthru_t *) ha->ioctl_data; in ips_make_passthru()
1591 ips_scmd_buf_read(SC, pt, sizeof (ips_passthru_t)); in ips_make_passthru()
1592 pt->BasicStatus = 0x0B; in ips_make_passthru()
1593 pt->ExtendedStatus = 0x00; in ips_make_passthru()
1594 ips_scmd_buf_write(SC, pt, sizeof (ips_passthru_t)); in ips_make_passthru()
[all …]
Dfdomain.c1016 char *pt; in fdomain_16x0_info() local
1021 pt = strrchr( buffer, '$') - 1; in fdomain_16x0_info()
1022 if (!pt) /* Stripped RCS Revision string? */ in fdomain_16x0_info()
1023 pt = buffer + strlen( buffer ) - 1; in fdomain_16x0_info()
1024 if (*pt != ' ') in fdomain_16x0_info()
1025 ++pt; in fdomain_16x0_info()
1026 *pt = '\0'; in fdomain_16x0_info()
/drivers/net/ehea/
Dehea_qmr.c820 static u64 ehea_reg_mr_section(int top, int dir, int idx, u64 *pt, in ehea_reg_mr_section() argument
827 u64 pt_abs = virt_to_abs(pt); in ehea_reg_mr_section()
835 pt[m] = virt_to_abs(pg); in ehea_reg_mr_section()
851 static u64 ehea_reg_mr_sections(int top, int dir, u64 *pt, in ehea_reg_mr_sections() argument
862 hret = ehea_reg_mr_section(top, dir, idx, pt, adapter, mr); in ehea_reg_mr_sections()
869 static u64 ehea_reg_mr_dir_sections(int top, u64 *pt, in ehea_reg_mr_dir_sections() argument
880 hret = ehea_reg_mr_sections(top, dir, pt, adapter, mr); in ehea_reg_mr_dir_sections()
890 u64 *pt; in ehea_reg_kernel_mr() local
896 pt = (void *)get_zeroed_page(GFP_KERNEL); in ehea_reg_kernel_mr()
897 if (!pt) { in ehea_reg_kernel_mr()
[all …]
/drivers/media/video/saa7134/
Dsaa7134-core.c215 int saa7134_pgtable_alloc(struct pci_dev *pci, struct saa7134_pgtable *pt) in saa7134_pgtable_alloc() argument
223 pt->size = SAA7134_PGTABLE_SIZE; in saa7134_pgtable_alloc()
224 pt->cpu = cpu; in saa7134_pgtable_alloc()
225 pt->dma = dma_addr; in saa7134_pgtable_alloc()
229 int saa7134_pgtable_build(struct pci_dev *pci, struct saa7134_pgtable *pt, in saa7134_pgtable_build() argument
236 BUG_ON(NULL == pt || NULL == pt->cpu); in saa7134_pgtable_build()
238 ptr = pt->cpu + startpage; in saa7134_pgtable_build()
245 void saa7134_pgtable_free(struct pci_dev *pci, struct saa7134_pgtable *pt) in saa7134_pgtable_free() argument
247 if (NULL == pt->cpu) in saa7134_pgtable_free()
249 pci_free_consistent(pci, pt->size, pt->cpu, pt->dma); in saa7134_pgtable_free()
[all …]
Dsaa7134.h389 struct saa7134_pgtable *pt; member
446 struct saa7134_pgtable pt; member
630 int saa7134_pgtable_alloc(struct pci_dev *pci, struct saa7134_pgtable *pt);
631 int saa7134_pgtable_build(struct pci_dev *pci, struct saa7134_pgtable *pt,
634 void saa7134_pgtable_free(struct pci_dev *pci, struct saa7134_pgtable *pt);
Dsaa7134-ts.c118 buf->pt = &dev->ts.pt_ts; in buffer_prepare()
123 err = saa7134_pgtable_build(dev->pci,buf->pt, in buffer_prepare()
138 (buf->pt->dma >> 12); in buffer_prepare()
Dsaa7134-vbi.c100 (buf->pt->dma >> 12); in buffer_activate()
145 buf->pt = &fh->pt_vbi; in buffer_prepare()
150 err = saa7134_pgtable_build(dev->pci,buf->pt, in buffer_prepare()
/drivers/block/paride/
Dpt.c229 static struct pt_unit pt[PT_UNITS]; variable
606 struct pt_unit *tape = &pt[unit]; in pt_detect()
629 tape = pt; in pt_detect()
650 struct pt_unit *tape = pt + unit; in pt_open()
969 if (pt[unit].present) in pt_init()
970 pi_release(pt[unit].pi); in pt_init()
981 if (pt[unit].present) { in pt_init()
999 if (pt[unit].present) { in pt_exit()
1006 if (pt[unit].present) in pt_exit()
1007 pi_release(pt[unit].pi); in pt_exit()
/drivers/media/dvb/ttpci/
Dbudget-core.c148 saa7146_write(dev, BASE_PAGE3, budget->pt.dma | ME1 | 0x90); in start_ts_capture()
198 pci_dma_sync_sg_for_cpu(budget->dev->pci, budget->pt.slist, budget->pt.nents, PCI_DMA_FROMDEVICE); in vpeirq()
512 budget->grabbing = saa7146_vmalloc_build_pgtable(dev->pci, budget->buffer_size, &budget->pt); in ttpci_budget_init()
532 saa7146_vfree_destroy_pgtable(dev->pci, budget->grabbing, &budget->pt); in ttpci_budget_init()
561 saa7146_vfree_destroy_pgtable(dev->pci, budget->grabbing, &budget->pt); in ttpci_budget_deinit()
/drivers/staging/otus/80211core/
Dcagg.h114 #define zm_agg_inQ(tid_tx, pt) ((((pt - tid_tx->aggTail) & ZM_AGGQ_SIZE_MASK) < \ argument
116 #define zm_agg_plus(pt) pt = (pt + 1) & ZM_AGGQ_SIZE_MASK argument
/drivers/isdn/hardware/mISDN/
Dhfcmulti.c3749 int i, pt; in hfcmulti_initmode() local
3877 pt = hc->chan[i].port; in hfcmulti_initmode()
3879 HFC_outb(hc, R_ST_SEL, pt); in hfcmulti_initmode()
3886 __func__, pt); in hfcmulti_initmode()
3890 hc->hw.a_st_ctrl0[pt] = V_ST_MD; in hfcmulti_initmode()
3895 __func__, pt); in hfcmulti_initmode()
3899 hc->hw.a_st_ctrl0[pt] = 0; in hfcmulti_initmode()
3902 hc->hw.a_st_ctrl0[pt] |= V_TX_LI; in hfcmulti_initmode()
3904 HFC_outb(hc, A_ST_CTRL0, hc->hw.a_st_ctrl0[pt]); in hfcmulti_initmode()
3917 hc->hw.r_sci_msk |= 1 << pt; in hfcmulti_initmode()
[all …]
/drivers/media/video/
Dmeye.c114 u32 *pt; in ptable_alloc() local
132 pt = meye.mchip_ptable_toc; in ptable_alloc()
141 pt = meye.mchip_ptable_toc; in ptable_alloc()
143 dma = (dma_addr_t) *pt; in ptable_alloc()
147 pt++; in ptable_alloc()
157 *pt = (u32) dma; in ptable_alloc()
158 pt++; in ptable_alloc()
165 u32 *pt; in ptable_free() local
168 pt = meye.mchip_ptable_toc; in ptable_free()
170 dma_addr_t dma = (dma_addr_t) *pt; in ptable_free()
[all …]

123