/drivers/media/video/pvrusb2/ |
D | pvrusb2-ctrl.c | 28 static int pvr2_ctrl_range_check(struct pvr2_ctrl *cptr,int val) in pvr2_ctrl_range_check() argument 30 if (cptr->info->check_value) { in pvr2_ctrl_range_check() 31 if (!cptr->info->check_value(cptr,val)) return -ERANGE; in pvr2_ctrl_range_check() 32 } else if (cptr->info->type == pvr2_ctl_enum) { in pvr2_ctrl_range_check() 34 if (val >= cptr->info->def.type_enum.count) return -ERANGE; in pvr2_ctrl_range_check() 37 lim = cptr->info->def.type_int.min_value; in pvr2_ctrl_range_check() 38 if (cptr->info->get_min_value) { in pvr2_ctrl_range_check() 39 cptr->info->get_min_value(cptr,&lim); in pvr2_ctrl_range_check() 42 lim = cptr->info->def.type_int.max_value; in pvr2_ctrl_range_check() 43 if (cptr->info->get_max_value) { in pvr2_ctrl_range_check() [all …]
|
D | pvrusb2-hdw.c | 358 static int ctrl_channelfreq_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelfreq_get() argument 360 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_get() 369 static int ctrl_channelfreq_set(struct pvr2_ctrl *cptr,int m,int v) in ctrl_channelfreq_set() argument 371 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_set() 391 static int ctrl_channelprog_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelprog_get() argument 393 *vp = cptr->hdw->freqProgSlot; in ctrl_channelprog_get() 397 static int ctrl_channelprog_set(struct pvr2_ctrl *cptr,int m,int v) in ctrl_channelprog_set() argument 399 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelprog_set() 406 static int ctrl_channel_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channel_get() argument 408 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channel_get() [all …]
|
D | pvrusb2-sysfs.c | 73 struct pvr2_ctrl *cptr; member 94 name = pvr2_ctrl_get_desc(cip->cptr); in show_name() 109 tp = pvr2_ctrl_get_type(cip->cptr); in show_type() 130 val = pvr2_ctrl_get_min(cip->cptr); in show_min() 143 val = pvr2_ctrl_get_max(cip->cptr); in show_max() 158 ret = pvr2_ctrl_get_def(cip->cptr, &val); in show_def() 160 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_def() 177 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_norm() 179 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_val_norm() 196 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_custom() [all …]
|
D | pvrusb2-v4l2.c | 257 struct pvr2_ctrl *cptr; in pvr2_v4l2_do_ioctl() local 263 cptr = pvr2_hdw_get_ctrl_by_id(hdw,PVR2_CID_INPUT); in pvr2_v4l2_do_ioctl() 290 pvr2_ctrl_get_valname(cptr,val, in pvr2_v4l2_do_ioctl() 313 struct pvr2_ctrl *cptr; in pvr2_v4l2_do_ioctl() local 316 cptr = pvr2_hdw_get_ctrl_by_id(hdw,PVR2_CID_INPUT); in pvr2_v4l2_do_ioctl() 318 ret = pvr2_ctrl_get_value(cptr,&val); in pvr2_v4l2_do_ioctl() 598 struct pvr2_ctrl *cptr; in pvr2_v4l2_do_ioctl() local 603 cptr = pvr2_hdw_get_ctrl_nextv4l( in pvr2_v4l2_do_ioctl() 605 if (cptr) vc->id = pvr2_ctrl_get_v4lid(cptr); in pvr2_v4l2_do_ioctl() 607 cptr = pvr2_hdw_get_ctrl_v4l(hdw,vc->id); in pvr2_v4l2_do_ioctl() [all …]
|
/drivers/tty/serial/ |
D | kgdboc.c | 98 static int kgdboc_register_kbd(char **cptr) in kgdboc_register_kbd() argument 100 if (strncmp(*cptr, "kbd", 3) == 0) { in kgdboc_register_kbd() 104 if (cptr[0][3] == ',') in kgdboc_register_kbd() 105 *cptr += 4; in kgdboc_register_kbd() 158 char *cptr = config; in configure_kgdboc() local 170 if (strncmp(cptr, "kms,", 4) == 0) { in configure_kgdboc() 171 cptr += 4; in configure_kgdboc() 175 if (kgdboc_register_kbd(&cptr)) in configure_kgdboc() 178 p = tty_find_polling_driver(cptr, &tty_line); in configure_kgdboc()
|
/drivers/isdn/i4l/ |
D | isdn_bsdcomp.c | 112 u16 cptr; /* map code to hash table entry */ member 406 db->dict[indx].cptr = 0; in bsd_init() 561 indx = dictp2->cptr; in bsd_compress() 567 dictp2->cptr = hval; in bsd_compress() 788 dictp = dict_ptr(db, dictp2->cptr); in bsd_decompress() 794 … printk(KERN_ERR "0x%x at 0x%x by 0x%x, max_ent=0x%x\n", incode, finchar, dictp2->cptr, max_ent); in bsd_decompress() 798 printk(KERN_ERR "oldcode=0x%x cptr=0x%x codem1=0x%x\n", oldcode, dictp2->cptr, dictp->codem1); in bsd_decompress() 855 indx = dictp2->cptr; in bsd_decompress() 861 dictp2->cptr = hval; in bsd_decompress()
|
/drivers/usb/storage/ |
D | alauda.c | 820 unsigned char *bptr, *cptr, *xptr; in alauda_write_lba() local 866 cptr = bptr + pagesize; in alauda_write_lba() 868 if (!nand_compare_ecc(cptr+13, ecc)) { in alauda_write_lba() 871 nand_store_ecc(cptr+13, ecc); in alauda_write_lba() 874 if (!nand_compare_ecc(cptr+8, ecc)) { in alauda_write_lba() 877 nand_store_ecc(cptr+8, ecc); in alauda_write_lba() 879 cptr[6] = cptr[11] = MSB_of(lbap); in alauda_write_lba() 880 cptr[7] = cptr[12] = LSB_of(lbap); in alauda_write_lba() 887 cptr = bptr + pagesize; in alauda_write_lba() 891 nand_store_ecc(cptr+13, ecc); in alauda_write_lba() [all …]
|
D | sddr09.c | 875 unsigned char *bptr, *cptr, *xptr; in sddr09_write_lba() local 916 cptr = bptr + info->pagesize; in sddr09_write_lba() 918 if (!nand_compare_ecc(cptr+13, ecc)) { in sddr09_write_lba() 921 nand_store_ecc(cptr+13, ecc); in sddr09_write_lba() 924 if (!nand_compare_ecc(cptr+8, ecc)) { in sddr09_write_lba() 927 nand_store_ecc(cptr+8, ecc); in sddr09_write_lba() 929 cptr[6] = cptr[11] = MSB_of(lbap); in sddr09_write_lba() 930 cptr[7] = cptr[12] = LSB_of(lbap); in sddr09_write_lba() 937 cptr = bptr + info->pagesize; in sddr09_write_lba() 941 nand_store_ecc(cptr+13, ecc); in sddr09_write_lba() [all …]
|
/drivers/net/ppp/ |
D | bsd_comp.c | 133 unsigned short cptr; /* map code to hash table entry */ member 491 db->dict[indx].cptr = 0; in bsd_init() 716 indx = dictp2->cptr; in bsd_compress() 724 dictp2->cptr = hval; in bsd_compress() 1000 dictp = dict_ptr (db, dictp2->cptr); in bsd_decompress() 1008 incode, finchar, dictp2->cptr, max_ent); in bsd_decompress() 1019 oldcode, dictp2->cptr, dictp->codem1); in bsd_decompress() 1084 indx = dictp2->cptr; in bsd_decompress() 1092 dictp2->cptr = hval; in bsd_decompress()
|
/drivers/scsi/ |
D | aha1740.c | 417 struct aha1740_chain * cptr; in aha1740_queuecommand_lck() local 423 cptr = sgptr->sg_chain; in aha1740_queuecommand_lck() 425 cptr[i].datalen = sg_dma_len (sg); in aha1740_queuecommand_lck() 426 cptr[i].dataptr = sg_dma_address (sg); in aha1740_queuecommand_lck() 431 printk("cptr %x: ",cptr); in aha1740_queuecommand_lck() 432 ptr = (unsigned char *) cptr; in aha1740_queuecommand_lck()
|
D | aha1542.c | 661 struct chain *cptr; in aha1542_queuecommand_lck() local 667 SCpnt->host_scribble = kmalloc(sizeof(*cptr)*sg_count, in aha1542_queuecommand_lck() 669 cptr = (struct chain *) SCpnt->host_scribble; in aha1542_queuecommand_lck() 670 if (cptr == NULL) { in aha1542_queuecommand_lck() 676 any2scsi(cptr[i].dataptr, SCSI_SG_PA(sg)); in aha1542_queuecommand_lck() 677 any2scsi(cptr[i].datalen, sg->length); in aha1542_queuecommand_lck() 680 any2scsi(ccb[mbo].dataptr, SCSI_BUF_PA(cptr)); in aha1542_queuecommand_lck() 682 printk("cptr %x: ", cptr); in aha1542_queuecommand_lck() 683 ptr = (unsigned char *) cptr; in aha1542_queuecommand_lck()
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9003_eeprom.c | 3269 int cptr; in ar9300_eeprom_restore_internal() local 3290 cptr = AR9300_BASE_ADDR_4K; in ar9300_eeprom_restore_internal() 3292 cptr = AR9300_BASE_ADDR_512; in ar9300_eeprom_restore_internal() 3294 cptr = AR9300_BASE_ADDR; in ar9300_eeprom_restore_internal() 3296 cptr); in ar9300_eeprom_restore_internal() 3297 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal() 3300 cptr = AR9300_BASE_ADDR_512; in ar9300_eeprom_restore_internal() 3302 cptr); in ar9300_eeprom_restore_internal() 3303 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal() 3307 cptr = AR9300_BASE_ADDR; in ar9300_eeprom_restore_internal() [all …]
|
/drivers/net/arcnet/ |
D | rfc1201.c | 210 uint8_t *cptr = (uint8_t *) arp + sizeof(struct arphdr); in rx() local 212 if (!*cptr) { /* is saddr = 00? */ in rx() 217 *cptr = saddr; in rx() 220 *cptr); in rx()
|
/drivers/staging/speakup/ |
D | main.c | 1571 unsigned int cptr[8], tmp; in get_highlight_color() local 1575 cptr[i] = i; in get_highlight_color() 1579 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] > in get_highlight_color() 1580 speakup_console[vc_num]->ht.bgcount[cptr[j]]) { in get_highlight_color() 1581 tmp = cptr[i]; in get_highlight_color() 1582 cptr[i] = cptr[j]; in get_highlight_color() 1583 cptr[j] = tmp; in get_highlight_color() 1587 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] != 0) in get_highlight_color() 1588 if (speakup_console[vc_num]->ht.highsize[cptr[i]] > 0) in get_highlight_color() 1589 return cptr[i]; in get_highlight_color()
|
/drivers/staging/comedi/drivers/ |
D | quatech_daqp_cs.c | 202 unsigned char *cptr = ptr; in hex_dump() local 209 printk("\n%p:", cptr); in hex_dump() 211 printk(" %02x", *(cptr++)); in hex_dump()
|
/drivers/staging/sep/ |
D | sep_crypto.c | 543 unsigned char *cptr; in sep_dump_ivs() local 565 cptr = (unsigned char *)des_internal->iv_context; in sep_dump_ivs() 568 "%02x\n", *(cptr + ct1)); in sep_dump_ivs() 573 cptr = (unsigned char *)ta_ctx->walk.iv; in sep_dump_ivs() 576 "%02x\n", *(cptr + ct1)); in sep_dump_ivs() 585 cptr = (unsigned char *)aes_internal->aes_ctx_iv; in sep_dump_ivs() 588 "%02x\n", *(cptr + ct1)); in sep_dump_ivs() 593 cptr = (unsigned char *)ta_ctx->walk.iv; in sep_dump_ivs() 596 "%02x\n", *(cptr + ct1)); in sep_dump_ivs()
|