/linux-2.4.37.9/drivers/char/ |
D | ppdev.c | 98 static inline void pp_enable_irq (struct pp_struct *pp) in pp_enable_irq() argument 100 struct parport *port = pp->pdev->port; in pp_enable_irq() 108 struct pp_struct *pp = file->private_data; in pp_read() local 114 if (!(pp->flags & PP_CLAIMED)) { in pp_read() 129 pport = pp->pdev->port; in pp_read() 132 parport_set_timeout (pp->pdev, in pp_read() 135 pp->default_inactivity); in pp_read() 145 if (pp->flags & PP_W91284PIC) { in pp_read() 148 if (pp->flags & PP_FASTREAD) { in pp_read() 178 parport_set_timeout (pp->pdev, pp->default_inactivity); in pp_read() [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | uss720.c | 66 static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val) in get_1284_register() argument 68 struct parport_uss720_private *priv = pp->private_data; in get_1284_register() 91 parport_generic_irq(0, pp, NULL); in get_1284_register() 99 static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val) in set_1284_register() argument 101 struct parport_uss720_private *priv = pp->private_data; in set_1284_register() 130 static int change_mode(struct parport *pp, int m) in change_mode() argument 132 struct parport_uss720_private *priv = pp->private_data; in change_mode() 135 if (get_1284_register(pp, 6, NULL)) in change_mode() 143 if (change_mode(pp, ECR_PS2)) in change_mode() 149 long expire = jiffies + pp->physport->cad->timeout; in change_mode() [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | ptifddi.c | 22 static inline void pti_reset(struct ptifddi *pp) in pti_reset() argument 24 pp->reset = 1; in pti_reset() 27 static inline void pti_unreset(struct ptifddi *pp) in pti_unreset() argument 29 pp->unreset = 1; in pti_unreset() 37 static inline void pti_clear_dpram(struct ptifddi *pp) in pti_clear_dpram() argument 39 memset(pp->dpram, 0, DPRAM_SIZE); in pti_clear_dpram() 44 static inline int pti_card_test(struct ptifddi *pp) in pti_card_test() argument 46 struct dfddi_ram *rp = pp->dpram; in pti_card_test() 52 pti_clear_dpram(pp); in pti_card_test() 59 pti_load_code_base(pp, test_firmware_dev_addr); in pti_card_test() [all …]
|
/linux-2.4.37.9/fs/jffs2/ |
D | pushpull.c | 42 void init_pushpull(struct pushpull *pp, char *buf, unsigned buflen, unsigned ofs, unsigned reserve) in init_pushpull() argument 44 pp->buf = buf; in init_pushpull() 45 pp->buflen = buflen; in init_pushpull() 46 pp->ofs = ofs; in init_pushpull() 47 pp->reserve = reserve; in init_pushpull() 51 int pushbit(struct pushpull *pp, int bit, int use_reserved) in pushbit() argument 53 if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) { in pushbit() 58 pp->buf[pp->ofs >> 3] |= (1<<(7-(pp->ofs &7))); in pushbit() 61 pp->buf[pp->ofs >> 3] &= ~(1<<(7-(pp->ofs &7))); in pushbit() 63 pp->ofs++; in pushbit() [all …]
|
D | pushpull.h | 48 int pushbit(struct pushpull *pp, int bit, int use_reserved); 49 int pushedbits(struct pushpull *pp); 51 static inline int pullbit(struct pushpull *pp) in pullbit() argument 55 bit = (pp->buf[pp->ofs >> 3] >> (7-(pp->ofs & 7))) & 1; in pullbit() 57 pp->ofs++; in pullbit() 61 static inline int pulledbits(struct pushpull *pp) in pulledbits() argument 63 return pp->ofs; in pulledbits()
|
/linux-2.4.37.9/drivers/net/hamradio/ |
D | baycom_par.c | 200 struct parport *pp = bc->pdev->port; in par96_tx() local 213 pp->ops->write_data(pp, val); in par96_tx() 214 pp->ops->write_data(pp, val | PAR96_BURST); in par96_tx() 224 struct parport *pp = bc->pdev->port; in par96_rx() local 231 if (pp->ops->read_status(pp) & PAR96_RXBIT) in par96_rx() 236 pp->ops->write_data(pp, PAR97_POWER | PAR96_PTT); in par96_rx() 242 pp->ops->write_data(pp, PAR97_POWER | PAR96_PTT | PAR96_BURST); in par96_rx() 267 hdlcdrv_setdcd(&bc->hdrv, !!(pp->ops->read_status(pp) & PAR96_DCD)); in par96_rx() 318 struct parport *pp = parport_enumerate(); in par96_open() local 322 while (pp && pp->base != dev->base_addr) in par96_open() [all …]
|
D | baycom_epp.c | 582 struct parport *pp = bc->pdev->port; in transmit() local 621 if (j != pp->ops->epp_write_data(pp, tmp, j, 0)) in transmit() 639 if (i != pp->ops->epp_write_data(pp, bc->hdlctx.bufptr, i, 0)) in transmit() 657 if (j != pp->ops->epp_write_data(pp, tmp, j, 0)) in transmit() 673 if (j != pp->ops->epp_write_data(pp, tmp, j, 0)) in transmit() 746 struct parport *pp = bc->pdev->port; in receive() local 759 if (cnt2 != pp->ops->epp_read_data(pp, tmp, cnt2, 0)) { in receive() 822 struct parport *pp; in epp_bh() local 833 pp = bc->pdev->port; in epp_bh() 835 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) in epp_bh() [all …]
|
/linux-2.4.37.9/fs/freevxfs/ |
D | vxfs_subr.c | 54 vxfs_put_page(struct page *pp) in vxfs_put_page() argument 56 kunmap(pp); in vxfs_put_page() 57 page_cache_release(pp); in vxfs_put_page() 74 struct page * pp; in vxfs_get_page() local 76 pp = read_cache_page(mapping, n, in vxfs_get_page() 79 if (!IS_ERR(pp)) { in vxfs_get_page() 80 wait_on_page(pp); in vxfs_get_page() 81 kmap(pp); in vxfs_get_page() 82 if (!Page_Uptodate(pp)) in vxfs_get_page() 86 if (PageError(pp)) in vxfs_get_page() [all …]
|
D | vxfs_lookup.c | 127 struct page *pp; in vxfs_find_entry() local 129 pp = vxfs_get_page(ip->i_mapping, page); in vxfs_find_entry() 130 if (IS_ERR(pp)) in vxfs_find_entry() 132 kaddr = (caddr_t)page_address(pp); in vxfs_find_entry() 151 *ppp = pp; in vxfs_find_entry() 156 vxfs_put_page(pp); in vxfs_find_entry() 178 struct page *pp; in vxfs_inode_by_name() local 181 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name() 184 kunmap(pp); in vxfs_inode_by_name() 185 page_cache_release(pp); in vxfs_inode_by_name() [all …]
|
D | vxfs_immed.c | 123 vxfs_immed_readpage(struct file *fp, struct page *pp) in vxfs_immed_readpage() argument 125 struct vxfs_inode_info *vip = VXFS_INO(pp->mapping->host); in vxfs_immed_readpage() 126 u_int64_t offset = pp->index << PAGE_CACHE_SHIFT; in vxfs_immed_readpage() 129 kaddr = kmap(pp); in vxfs_immed_readpage() 131 kunmap(pp); in vxfs_immed_readpage() 133 flush_dcache_page(pp); in vxfs_immed_readpage() 134 SetPageUptodate(pp); in vxfs_immed_readpage() 135 UnlockPage(pp); in vxfs_immed_readpage()
|
D | vxfs_inode.c | 146 struct page *pp; in __vxfs_iget() local 150 pp = vxfs_get_page(ilistp->i_mapping, ino * VXFS_ISIZE / PAGE_SIZE); in __vxfs_iget() 152 if (!IS_ERR(pp)) { in __vxfs_iget() 155 caddr_t kaddr = (char *)page_address(pp); in __vxfs_iget() 164 vxfs_put_page(pp); in __vxfs_iget() 168 printk(KERN_WARNING "vxfs: error on page %p\n", pp); in __vxfs_iget() 173 vxfs_put_page(pp); in __vxfs_iget()
|
/linux-2.4.37.9/fs/proc/ |
D | proc_devtree.c | 22 struct property *pp = data; in property_read_proc() local 25 if (off >= pp->length) { in property_read_proc() 29 n = pp->length - off; in property_read_proc() 34 memcpy(page, pp->value + off, n); in property_read_proc() 49 struct property *pp; in add_node() local 57 for (pp = np->properties; pp != 0; pp = pp->next) { in add_node() 62 ent = create_proc_read_entry(pp->name, strncmp(pp->name, "security-", 9) ? in add_node() 63 S_IRUGO : S_IRUSR, de, property_read_proc, pp); in add_node() 66 if (!strncmp(pp->name, "security-", 9)) in add_node() 69 ent->size = pp->length; in add_node()
|
/linux-2.4.37.9/drivers/scsi/ |
D | sata_qstor.c | 241 struct qs_port_priv *pp = ap->private_data; in qs_phy_reset() local 243 pp->state = qs_state_idle; in qs_phy_reset() 250 struct qs_port_priv *pp = ap->private_data; in qs_eng_timeout() local 252 if (pp->state != qs_state_idle) /* healthy paranoia */ in qs_eng_timeout() 253 pp->state = qs_state_mmio; in qs_eng_timeout() 276 struct qs_port_priv *pp = ap->private_data; in qs_fill_sg() local 278 u8 *prd = pp->pkt + QS_CPB_BYTES; in qs_fill_sg() 306 struct qs_port_priv *pp = qc->ap->private_data; in qs_qc_prep() local 307 u8 dflags = QS_DF_PORD, *buf = pp->pkt; in qs_qc_prep() 332 addr = ((u64)pp->pkt_dma) + QS_CPB_BYTES; in qs_qc_prep() [all …]
|
D | sata_sx4.c | 261 struct pdc_port_priv *pp; in pdc_port_start() local 268 pp = kmalloc(sizeof(*pp), GFP_KERNEL); in pdc_port_start() 269 if (!pp) { in pdc_port_start() 273 memset(pp, 0, sizeof(*pp)); in pdc_port_start() 275 pp->pkt = dma_alloc_coherent(dev, 128, &pp->pkt_dma, GFP_KERNEL); in pdc_port_start() 276 if (!pp->pkt) { in pdc_port_start() 281 ap->private_data = pp; in pdc_port_start() 286 kfree(pp); in pdc_port_start() 296 struct pdc_port_priv *pp = ap->private_data; in pdc_port_stop() local 299 dma_free_coherent(dev, 128, pp->pkt, pp->pkt_dma); in pdc_port_stop() [all …]
|
D | sata_promise.c | 244 struct pdc_port_priv *pp; in pdc_port_start() local 251 pp = kmalloc(sizeof(*pp), GFP_KERNEL); in pdc_port_start() 252 if (!pp) { in pdc_port_start() 256 memset(pp, 0, sizeof(*pp)); in pdc_port_start() 258 pp->pkt = dma_alloc_coherent(dev, 128, &pp->pkt_dma, GFP_KERNEL); in pdc_port_start() 259 if (!pp->pkt) { in pdc_port_start() 264 ap->private_data = pp; in pdc_port_start() 269 kfree(pp); in pdc_port_start() 279 struct pdc_port_priv *pp = ap->private_data; in pdc_port_stop() local 282 dma_free_coherent(dev, 128, pp->pkt, pp->pkt_dma); in pdc_port_stop() [all …]
|
D | ahci.c | 520 struct ahci_port_priv *pp; in ahci_port_start() local 527 pp = kmalloc(sizeof(*pp), GFP_KERNEL); in ahci_port_start() 528 if (!pp) in ahci_port_start() 530 memset(pp, 0, sizeof(*pp)); in ahci_port_start() 534 kfree(pp); in ahci_port_start() 541 kfree(pp); in ahci_port_start() 550 pp->cmd_slot = mem; in ahci_port_start() 551 pp->cmd_slot_dma = mem_dma; in ahci_port_start() 559 pp->rx_fis = mem; in ahci_port_start() 560 pp->rx_fis_dma = mem_dma; in ahci_port_start() [all …]
|
/linux-2.4.37.9/drivers/isdn/avmb1/ |
D | kcapi.c | 685 struct msgidqueue **pp; in mq_dequeue() local 687 for (pp = &np->msgidqueue; *pp; pp = &(*pp)->next) { in mq_dequeue() 688 if ((*pp)->msgid == msgid) { in mq_dequeue() 689 struct msgidqueue *mq = *pp; in mq_dequeue() 690 *pp = mq->next; in mq_dequeue() 710 struct capi_ncci **pp, **nextpp; in controllercb_appl_released() local 711 for (pp = &APPL(appl)->nccilist; *pp; pp = nextpp) { in controllercb_appl_released() 712 if (NCCI2CTRL((*pp)->ncci) == card->cnr) { in controllercb_appl_released() 713 struct capi_ncci *np = *pp; in controllercb_appl_released() 714 *pp = np->next; in controllercb_appl_released() [all …]
|
D | capi.c | 171 struct datahandle_queue *n, **pp; in capincci_add_ack() local 181 for (pp = &mp->ackqueue; *pp; pp = &(*pp)->next) ; in capincci_add_ack() 182 *pp = n; in capincci_add_ack() 189 struct datahandle_queue **pp, *p; in capiminor_del_ack() local 191 for (pp = &mp->ackqueue; *pp; pp = &(*pp)->next) { in capiminor_del_ack() 192 if ((*pp)->datahandle == datahandle) { in capiminor_del_ack() 193 p = *pp; in capiminor_del_ack() 194 *pp = (*pp)->next; in capiminor_del_ack() 205 struct datahandle_queue **pp, *p; in capiminor_del_all_ack() local 207 pp = &mp->ackqueue; in capiminor_del_all_ack() [all …]
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | prom_init.c | 467 struct property *pp, **prev_propp; in inspect_node() local 491 pp = (struct property *) mem_start; in inspect_node() 492 namep = (char *) (pp + 1); in inspect_node() 493 pp->name = PTRUNRELOC(namep); in inspect_node() 500 pp->value = PTRUNRELOC(valp); in inspect_node() 501 pp->length = (int) in inspect_node() 504 if (pp->length < 0) in inspect_node() 507 if (pp->length > MAX_PROPERTY_LENGTH) in inspect_node() 510 mem_start = ALIGN(mem_start + pp->length); in inspect_node() 511 *prev_propp = PTRUNRELOC(pp); in inspect_node() [all …]
|
D | prom.c | 454 struct property *pp; in relocate_nodes() local 467 for (pp = np->properties; pp != 0; pp = pp->next) { in relocate_nodes() 468 ADDBASE(pp->name); in relocate_nodes() 469 ADDBASE(pp->value); in relocate_nodes() 470 ADDBASE(pp->next); in relocate_nodes() 955 struct property *pp; in get_property() local 957 for (pp = np->properties; pp != 0; pp = pp->next) in get_property() 958 if (pp->name != NULL && strcmp(pp->name, name) == 0) { in get_property() 960 *lenp = pp->length; in get_property() 961 return pp->value; in get_property() [all …]
|
/linux-2.4.37.9/drivers/parport/ |
D | parport_mfc3.c | 336 struct pia *pp; in parport_mfc3_init() local 347 pp = (struct pia *)ZTWO_VADDR(piabase); in parport_mfc3_init() 348 pp->crb = 0; in parport_mfc3_init() 349 pp->pddrb = 255; /* all data pins output */ in parport_mfc3_init() 350 pp->crb = PIA_DDR|32|8; in parport_mfc3_init() 351 dummy = pp->pddrb; /* reading clears interrupt */ in parport_mfc3_init() 352 pp->cra = 0; in parport_mfc3_init() 353 pp->pddra = 0xe0; /* /RESET, /DIR ,/AUTO-FEED output */ in parport_mfc3_init() 354 pp->cra = PIA_DDR; in parport_mfc3_init() 355 pp->ppra = 0; /* reset printer */ in parport_mfc3_init() [all …]
|
/linux-2.4.37.9/arch/s390x/kernel/ |
D | smp.c | 435 ec_creg_mask_parms *pp; in smp_ctl_bit_callback() local 439 pp = (ec_creg_mask_parms *) info; in smp_ctl_bit_callback() 443 : : "a" (cregs+pp->start_ctl), in smp_ctl_bit_callback() 444 "a" ((pp->start_ctl<<4) + pp->end_ctl) in smp_ctl_bit_callback() 446 for (i = pp->start_ctl; i <= pp->end_ctl; i++) in smp_ctl_bit_callback() 447 cregs[i] = (cregs[i] & pp->andvals[i]) | pp->orvals[i]; in smp_ctl_bit_callback() 451 : : "a" (cregs+pp->start_ctl), in smp_ctl_bit_callback() 452 "a" ((pp->start_ctl<<4) + pp->end_ctl) in smp_ctl_bit_callback()
|
/linux-2.4.37.9/arch/s390/kernel/ |
D | smp.c | 453 ec_creg_mask_parms *pp; in smp_ctl_bit_callback() local 457 pp = (ec_creg_mask_parms *) info; in smp_ctl_bit_callback() 461 : : "a" (cregs+pp->start_ctl), in smp_ctl_bit_callback() 462 "a" ((pp->start_ctl<<4) + pp->end_ctl) in smp_ctl_bit_callback() 464 for (i = pp->start_ctl; i <= pp->end_ctl; i++) in smp_ctl_bit_callback() 465 cregs[i] = (cregs[i] & pp->andvals[i]) | pp->orvals[i]; in smp_ctl_bit_callback() 469 : : "a" (cregs+pp->start_ctl), in smp_ctl_bit_callback() 470 "a" ((pp->start_ctl<<4) + pp->end_ctl) in smp_ctl_bit_callback()
|
/linux-2.4.37.9/arch/ppc/mm/ |
D | fault.c | 374 #define pp ((long)pte_val(*pte)) in print_8xx_pte() macro 377 pp>>12, /* rpn */ in print_8xx_pte() 378 (pp>>10)&3, /* pp */ in print_8xx_pte() 379 (pp>>3)&1, /* small */ in print_8xx_pte() 380 (pp>>2)&1, /* shared */ in print_8xx_pte() 381 (pp>>1)&1, /* cache inhibit */ in print_8xx_pte() 382 pp&1 /* valid */ in print_8xx_pte() 384 #undef pp in print_8xx_pte()
|
/linux-2.4.37.9/drivers/macintosh/ |
D | via-pmu.c | 2607 struct pmu_private *pp; in pmu_pass_intr() local 2612 if (len > sizeof(pp->rb_buf[0].data)) in pmu_pass_intr() 2613 len = sizeof(pp->rb_buf[0].data); in pmu_pass_intr() 2616 pp = list_entry(list, struct pmu_private, list); in pmu_pass_intr() 2617 spin_lock(&pp->lock); in pmu_pass_intr() 2618 i = pp->rb_put + 1; in pmu_pass_intr() 2621 if (i != pp->rb_get) { in pmu_pass_intr() 2622 struct rb_entry *rp = &pp->rb_buf[pp->rb_put]; in pmu_pass_intr() 2625 pp->rb_put = i; in pmu_pass_intr() 2626 wake_up_interruptible(&pp->wait); in pmu_pass_intr() [all …]
|