/linux-4.1.27/drivers/media/usb/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 | 356 static int ctrl_channelfreq_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelfreq_get() argument 358 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_get() 367 static int ctrl_channelfreq_set(struct pvr2_ctrl *cptr,int m,int v) in ctrl_channelfreq_set() argument 369 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_set() 389 static int ctrl_channelprog_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelprog_get() argument 391 *vp = cptr->hdw->freqProgSlot; in ctrl_channelprog_get() 395 static int ctrl_channelprog_set(struct pvr2_ctrl *cptr,int m,int v) in ctrl_channelprog_set() argument 397 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelprog_set() 404 static int ctrl_channel_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channel_get() argument 406 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 | 204 struct pvr2_ctrl *cptr; in pvr2_enum_input() local 209 cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT); in pvr2_enum_input() 231 pvr2_ctrl_get_valname(cptr, val, in pvr2_enum_input() 253 struct pvr2_ctrl *cptr; in pvr2_g_input() local 257 cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT); in pvr2_g_input() 259 ret = pvr2_ctrl_get_value(cptr, &val); in pvr2_g_input() 534 struct pvr2_ctrl *cptr; in pvr2_queryctrl() local 538 cptr = pvr2_hdw_get_ctrl_nextv4l( in pvr2_queryctrl() 540 if (cptr) in pvr2_queryctrl() 541 vc->id = pvr2_ctrl_get_v4lid(cptr); in pvr2_queryctrl() [all …]
|
/linux-4.1.27/arch/x86/boot/ |
D | cmdline.c | 32 addr_t cptr; in __cmdline_find_option() local 47 cptr = cmdline_ptr & 0xf; in __cmdline_find_option() 50 while (cptr < 0x10000 && (c = rdfs8(cptr++))) { in __cmdline_find_option() 104 addr_t cptr; in __cmdline_find_option_bool() local 117 cptr = cmdline_ptr & 0xf; in __cmdline_find_option_bool() 120 while (cptr < 0x10000) { in __cmdline_find_option_bool() 121 c = rdfs8(cptr++); in __cmdline_find_option_bool()
|
/linux-4.1.27/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() 101 strncmp(*cptr, "kdb", 3) == 0) { in kgdboc_register_kbd() 105 if (cptr[0][3] == ',') in kgdboc_register_kbd() 106 *cptr += 4; in kgdboc_register_kbd() 161 char *cptr = config; in configure_kgdboc() local 173 if (strncmp(cptr, "kms,", 4) == 0) { in configure_kgdboc() 174 cptr += 4; in configure_kgdboc() 178 if (kgdboc_register_kbd(&cptr)) in configure_kgdboc() 181 p = tty_find_polling_driver(cptr, &tty_line); in configure_kgdboc()
|
/linux-4.1.27/sound/core/seq/ |
D | seq_clientmgr.c | 1154 struct snd_seq_client *cptr; in snd_seq_ioctl_running_mode() local 1161 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_running_mode() 1162 if (cptr == NULL) in snd_seq_ioctl_running_mode() 1181 cptr->convert32 = (info.cpu_mode < sizeof(long)); in snd_seq_ioctl_running_mode() 1183 snd_seq_client_unlock(cptr); in snd_seq_ioctl_running_mode() 1188 static void get_client_info(struct snd_seq_client *cptr, in get_client_info() argument 1191 info->client = cptr->number; in get_client_info() 1194 info->type = cptr->type; in get_client_info() 1195 strcpy(info->name, cptr->name); in get_client_info() 1196 info->filter = cptr->filter; in get_client_info() [all …]
|
/linux-4.1.27/drivers/media/pci/tw68/ |
D | tw68-video.c | 807 unsigned char *cptr; in tw68_dump_regs() local 812 cptr = line; in tw68_dump_regs() 813 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs() 816 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs() 817 *cptr++ = ' '; in tw68_dump_regs() 819 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs() 820 *cptr++ = '\n'; in tw68_dump_regs() 821 *cptr = 0; in tw68_dump_regs() 826 cptr = line; in tw68_dump_regs() 827 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs() [all …]
|
/linux-4.1.27/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()
|
/linux-4.1.27/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()
|
/linux-4.1.27/drivers/usb/storage/ |
D | alauda.c | 814 unsigned char *bptr, *cptr, *xptr; in alauda_write_lba() local 860 cptr = bptr + pagesize; in alauda_write_lba() 862 if (!nand_compare_ecc(cptr+13, ecc)) { in alauda_write_lba() 865 nand_store_ecc(cptr+13, ecc); in alauda_write_lba() 868 if (!nand_compare_ecc(cptr+8, ecc)) { in alauda_write_lba() 871 nand_store_ecc(cptr+8, ecc); in alauda_write_lba() 873 cptr[6] = cptr[11] = MSB_of(lbap); in alauda_write_lba() 874 cptr[7] = cptr[12] = LSB_of(lbap); in alauda_write_lba() 881 cptr = bptr + pagesize; in alauda_write_lba() 885 nand_store_ecc(cptr+13, ecc); in alauda_write_lba() [all …]
|
D | sddr09.c | 867 unsigned char *bptr, *cptr, *xptr; in sddr09_write_lba() local 908 cptr = bptr + info->pagesize; in sddr09_write_lba() 910 if (!nand_compare_ecc(cptr+13, ecc)) { in sddr09_write_lba() 913 nand_store_ecc(cptr+13, ecc); in sddr09_write_lba() 916 if (!nand_compare_ecc(cptr+8, ecc)) { in sddr09_write_lba() 919 nand_store_ecc(cptr+8, ecc); in sddr09_write_lba() 921 cptr[6] = cptr[11] = MSB_of(lbap); in sddr09_write_lba() 922 cptr[7] = cptr[12] = LSB_of(lbap); in sddr09_write_lba() 929 cptr = bptr + info->pagesize; in sddr09_write_lba() 933 nand_store_ecc(cptr+13, ecc); in sddr09_write_lba() [all …]
|
/linux-4.1.27/sound/drivers/vx/ |
D | vx_core.c | 685 const unsigned char *image, *cptr; in snd_vx_dsp_load() local 701 cptr = image; in snd_vx_dsp_load() 702 csum ^= *cptr; in snd_vx_dsp_load() 704 vx_outb(chip, TXH, *cptr++); in snd_vx_dsp_load() 705 csum ^= *cptr; in snd_vx_dsp_load() 707 vx_outb(chip, TXM, *cptr++); in snd_vx_dsp_load() 708 csum ^= *cptr; in snd_vx_dsp_load() 710 vx_outb(chip, TXL, *cptr++); in snd_vx_dsp_load()
|
/linux-4.1.27/drivers/scsi/ |
D | aha1542.c | 381 struct chain *cptr; in aha1542_queuecommand() local 403 cptr = kmalloc(sizeof(*cptr) * sg_count, GFP_KERNEL | GFP_DMA); in aha1542_queuecommand() 404 if (!cptr) in aha1542_queuecommand() 455 cmd->host_scribble = (void *)cptr; in aha1542_queuecommand() 457 any2scsi(cptr[i].dataptr, isa_page_to_bus(sg_page(sg)) in aha1542_queuecommand() 459 any2scsi(cptr[i].datalen, sg->length); in aha1542_queuecommand() 462 any2scsi(ccb[mbo].dataptr, isa_virt_to_bus(cptr)); in aha1542_queuecommand() 464 shost_printk(KERN_DEBUG, sh, "cptr %p: ", cptr); in aha1542_queuecommand() 465 print_hex_dump_bytes("cptr: ", DUMP_PREFIX_NONE, cptr, 18); in aha1542_queuecommand()
|
D | aha1740.c | 398 struct aha1740_chain * cptr; in aha1740_queuecommand_lck() local 404 cptr = sgptr->sg_chain; in aha1740_queuecommand_lck() 406 cptr[i].datalen = sg_dma_len (sg); in aha1740_queuecommand_lck() 407 cptr[i].dataptr = sg_dma_address (sg); in aha1740_queuecommand_lck() 412 printk("cptr %x: ",cptr); in aha1740_queuecommand_lck() 413 ptr = (unsigned char *) cptr; in aha1740_queuecommand_lck()
|
D | hptiop.c | 263 u32 _tag, status, cptr, cur_rptr; in iop_intr_mvfrey() local 284 cptr = *hba->u.mvfrey.outlist_cptr & 0xff; in iop_intr_mvfrey() 286 while (cur_rptr != cptr) { in iop_intr_mvfrey() 297 } while (cptr != (*hba->u.mvfrey.outlist_cptr & 0xff)); in iop_intr_mvfrey()
|
/linux-4.1.27/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()
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
D | ar9003_eeprom.c | 3272 int cptr; in ar9300_eeprom_restore_internal() local 3303 cptr = AR9300_BASE_ADDR_4K; in ar9300_eeprom_restore_internal() 3305 cptr = AR9300_BASE_ADDR_512; in ar9300_eeprom_restore_internal() 3307 cptr = AR9300_BASE_ADDR; in ar9300_eeprom_restore_internal() 3309 cptr); in ar9300_eeprom_restore_internal() 3310 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal() 3313 cptr = AR9300_BASE_ADDR_512; in ar9300_eeprom_restore_internal() 3315 cptr); in ar9300_eeprom_restore_internal() 3316 if (ar9300_check_eeprom_header(ah, read, cptr)) in ar9300_eeprom_restore_internal() 3320 cptr = AR9300_BASE_ADDR; in ar9300_eeprom_restore_internal() [all …]
|
/linux-4.1.27/drivers/staging/dgap/ |
D | dgap.c | 5867 struct cnode *cptr; in dgap_tty_name_show() local 5890 for (cptr = bd->bd_config; cptr; cptr = cptr->next) { in dgap_tty_name_show() 5892 if ((cptr->type == BNODE) && in dgap_tty_name_show() 5893 ((cptr->u.board.type == APORT2_920P) || in dgap_tty_name_show() 5894 (cptr->u.board.type == APORT4_920P) || in dgap_tty_name_show() 5895 (cptr->u.board.type == APORT8_920P) || in dgap_tty_name_show() 5896 (cptr->u.board.type == PAPORT4) || in dgap_tty_name_show() 5897 (cptr->u.board.type == PAPORT8))) { in dgap_tty_name_show() 5900 if (cptr->u.board.v_start) in dgap_tty_name_show() 5901 starto = cptr->u.board.start; in dgap_tty_name_show() [all …]
|
/linux-4.1.27/drivers/staging/speakup/ |
D | main.c | 1600 unsigned int cptr[8], tmp; in get_highlight_color() local 1604 cptr[i] = i; in get_highlight_color() 1608 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] > in get_highlight_color() 1609 speakup_console[vc_num]->ht.bgcount[cptr[j]]) { in get_highlight_color() 1610 tmp = cptr[i]; in get_highlight_color() 1611 cptr[i] = cptr[j]; in get_highlight_color() 1612 cptr[j] = tmp; in get_highlight_color() 1616 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] != 0) in get_highlight_color() 1617 if (speakup_console[vc_num]->ht.highsize[cptr[i]] > 0) in get_highlight_color() 1618 return cptr[i]; in get_highlight_color()
|
/linux-4.1.27/fs/nfs/ |
D | pnfs_dev.c | 66 unsigned char *cptr = (unsigned char *)id->data; in nfs4_deviceid_hash() local 72 x += *cptr++; in nfs4_deviceid_hash()
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_btree.c | 3354 union xfs_btree_ptr cptr; /* current block ptr */ in xfs_btree_delrec() local 3603 xfs_btree_get_sibling(tcur, right, &cptr, XFS_BB_LEFTSIB); in xfs_btree_delrec() 3672 xfs_btree_get_sibling(tcur, left, &cptr, XFS_BB_RIGHTSIB); in xfs_btree_delrec() 3709 ASSERT(!xfs_btree_ptr_is_null(cur, &cptr)); in xfs_btree_delrec() 3718 rptr = cptr; in xfs_btree_delrec() 3735 lptr = cptr; in xfs_btree_delrec() 3803 xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB), in xfs_btree_delrec() 3804 xfs_btree_set_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB); in xfs_btree_delrec() 3808 xfs_btree_get_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB); in xfs_btree_delrec() 3809 if (!xfs_btree_ptr_is_null(cur, &cptr)) { in xfs_btree_delrec() [all …]
|
/linux-4.1.27/sound/core/oss/ |
D | mixer_oss.c | 1179 const char *cptr; in snd_mixer_oss_proc_write() local 1185 cptr = snd_info_get_str(str, line, sizeof(str)); in snd_mixer_oss_proc_write() 1194 cptr = snd_info_get_str(str, cptr, sizeof(str)); in snd_mixer_oss_proc_write() 1202 snd_info_get_str(idxstr, cptr, sizeof(idxstr)); in snd_mixer_oss_proc_write()
|
/linux-4.1.27/net/ipv4/ |
D | fib_trie.c | 1325 struct key_vector __rcu **cptr = n->tnode; in fib_table_lookup() local 1343 while ((n = rcu_dereference(*cptr)) == NULL) { in fib_table_lookup() 1375 cptr = &pn->tnode[cindex]; in fib_table_lookup()
|
/linux-4.1.27/fs/nfsd/ |
D | nfs4state.c | 260 unsigned char *cptr = (unsigned char *) ptr; in opaque_hashval() local 265 x += *cptr++; in opaque_hashval()
|