Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/usb/pvrusb2/
Dpvrusb2-ctrl.c28 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 …]
Dpvrusb2-hdw.c356 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 …]
Dpvrusb2-sysfs.c73 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 …]
Dpvrusb2-v4l2.c204 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.4.14/arch/x86/boot/
Dcmdline.c32 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.4.14/drivers/tty/serial/
Dkgdboc.c98 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.4.14/sound/core/seq/
Dseq_clientmgr.c1154 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.4.14/drivers/media/pci/tw68/
Dtw68-video.c811 unsigned char *cptr; in tw68_dump_regs() local
816 cptr = line; in tw68_dump_regs()
817 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs()
820 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs()
821 *cptr++ = ' '; in tw68_dump_regs()
823 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs()
824 *cptr++ = '\n'; in tw68_dump_regs()
825 *cptr = 0; in tw68_dump_regs()
830 cptr = line; in tw68_dump_regs()
831 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs()
[all …]
/linux-4.4.14/drivers/isdn/i4l/
Disdn_bsdcomp.c112 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.4.14/drivers/net/ppp/
Dbsd_comp.c133 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.4.14/drivers/usb/storage/
Dalauda.c817 unsigned char *bptr, *cptr, *xptr; in alauda_write_lba() local
863 cptr = bptr + pagesize; in alauda_write_lba()
865 if (!nand_compare_ecc(cptr+13, ecc)) { in alauda_write_lba()
868 nand_store_ecc(cptr+13, ecc); in alauda_write_lba()
871 if (!nand_compare_ecc(cptr+8, ecc)) { in alauda_write_lba()
874 nand_store_ecc(cptr+8, ecc); in alauda_write_lba()
876 cptr[6] = cptr[11] = MSB_of(lbap); in alauda_write_lba()
877 cptr[7] = cptr[12] = LSB_of(lbap); in alauda_write_lba()
884 cptr = bptr + pagesize; in alauda_write_lba()
888 nand_store_ecc(cptr+13, ecc); in alauda_write_lba()
[all …]
Dsddr09.c870 unsigned char *bptr, *cptr, *xptr; in sddr09_write_lba() local
911 cptr = bptr + info->pagesize; in sddr09_write_lba()
913 if (!nand_compare_ecc(cptr+13, ecc)) { in sddr09_write_lba()
916 nand_store_ecc(cptr+13, ecc); in sddr09_write_lba()
919 if (!nand_compare_ecc(cptr+8, ecc)) { in sddr09_write_lba()
922 nand_store_ecc(cptr+8, ecc); in sddr09_write_lba()
924 cptr[6] = cptr[11] = MSB_of(lbap); in sddr09_write_lba()
925 cptr[7] = cptr[12] = LSB_of(lbap); in sddr09_write_lba()
932 cptr = bptr + info->pagesize; in sddr09_write_lba()
936 nand_store_ecc(cptr+13, ecc); in sddr09_write_lba()
[all …]
/linux-4.4.14/sound/drivers/vx/
Dvx_core.c685 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.4.14/drivers/scsi/
Daha1542.c381 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()
Daha1740.c398 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()
Dhptiop.c263 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.4.14/drivers/net/arcnet/
Drfc1201.c212 uint8_t *cptr = (uint8_t *)arp + sizeof(struct arphdr); in rx() local
214 if (!*cptr) { /* is saddr = 00? */ in rx()
219 *cptr = saddr; in rx()
222 *cptr); in rx()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dar9003_eeprom.c3272 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.4.14/drivers/staging/dgap/
Ddgap.c5785 struct cnode *cptr; in dgap_tty_name_show() local
5808 for (cptr = bd->bd_config; cptr; cptr = cptr->next) { in dgap_tty_name_show()
5809 if ((cptr->type == BNODE) && in dgap_tty_name_show()
5810 ((cptr->u.board.type == APORT2_920P) || in dgap_tty_name_show()
5811 (cptr->u.board.type == APORT4_920P) || in dgap_tty_name_show()
5812 (cptr->u.board.type == APORT8_920P) || in dgap_tty_name_show()
5813 (cptr->u.board.type == PAPORT4) || in dgap_tty_name_show()
5814 (cptr->u.board.type == PAPORT8))) { in dgap_tty_name_show()
5816 if (cptr->u.board.v_start) in dgap_tty_name_show()
5817 starto = cptr->u.board.start; in dgap_tty_name_show()
[all …]
/linux-4.4.14/fs/nfs/
Dpnfs_dev.c66 unsigned char *cptr = (unsigned char *)id->data; in nfs4_deviceid_hash() local
72 x += *cptr++; in nfs4_deviceid_hash()
/linux-4.4.14/drivers/staging/speakup/
Dmain.c1605 unsigned int cptr[8]; in get_highlight_color() local
1609 cptr[i] = i; in get_highlight_color()
1613 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] > in get_highlight_color()
1614 speakup_console[vc_num]->ht.bgcount[cptr[j]]) in get_highlight_color()
1615 swap(cptr[i], cptr[j]); in get_highlight_color()
1618 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] != 0) in get_highlight_color()
1619 if (speakup_console[vc_num]->ht.highsize[cptr[i]] > 0) in get_highlight_color()
1620 return cptr[i]; in get_highlight_color()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_btree.c3369 union xfs_btree_ptr cptr; /* current block ptr */ in xfs_btree_delrec() local
3618 xfs_btree_get_sibling(tcur, right, &cptr, XFS_BB_LEFTSIB); in xfs_btree_delrec()
3687 xfs_btree_get_sibling(tcur, left, &cptr, XFS_BB_RIGHTSIB); in xfs_btree_delrec()
3724 ASSERT(!xfs_btree_ptr_is_null(cur, &cptr)); in xfs_btree_delrec()
3733 rptr = cptr; in xfs_btree_delrec()
3750 lptr = cptr; in xfs_btree_delrec()
3818 xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB), in xfs_btree_delrec()
3819 xfs_btree_set_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB); in xfs_btree_delrec()
3823 xfs_btree_get_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB); in xfs_btree_delrec()
3824 if (!xfs_btree_ptr_is_null(cur, &cptr)) { in xfs_btree_delrec()
[all …]
/linux-4.4.14/sound/core/oss/
Dmixer_oss.c1179 const char *cptr; in snd_mixer_oss_proc_write() local
1186 cptr = snd_info_get_str(str, line, sizeof(str)); in snd_mixer_oss_proc_write()
1195 cptr = snd_info_get_str(str, cptr, sizeof(str)); in snd_mixer_oss_proc_write()
1203 snd_info_get_str(idxstr, cptr, sizeof(idxstr)); in snd_mixer_oss_proc_write()
/linux-4.4.14/net/ipv4/
Dfib_trie.c1336 struct key_vector __rcu **cptr = n->tnode; in fib_table_lookup() local
1354 while ((n = rcu_dereference(*cptr)) == NULL) { in fib_table_lookup()
1386 cptr = &pn->tnode[cindex]; in fib_table_lookup()
/linux-4.4.14/fs/nfsd/
Dnfs4state.c260 unsigned char *cptr = (unsigned char *) ptr; in opaque_hashval() local
265 x += *cptr++; in opaque_hashval()