Home
last modified time | relevance | path

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

/drivers/media/usb/pvrusb2/
Dpvrusb2-ctrl.c14 static int pvr2_ctrl_range_check(struct pvr2_ctrl *cptr,int val) in pvr2_ctrl_range_check() argument
16 if (cptr->info->check_value) { in pvr2_ctrl_range_check()
17 if (!cptr->info->check_value(cptr,val)) return -ERANGE; in pvr2_ctrl_range_check()
18 } else if (cptr->info->type == pvr2_ctl_enum) { in pvr2_ctrl_range_check()
20 if (val >= cptr->info->def.type_enum.count) return -ERANGE; in pvr2_ctrl_range_check()
23 lim = cptr->info->def.type_int.min_value; in pvr2_ctrl_range_check()
24 if (cptr->info->get_min_value) { in pvr2_ctrl_range_check()
25 cptr->info->get_min_value(cptr,&lim); in pvr2_ctrl_range_check()
28 lim = cptr->info->def.type_int.max_value; in pvr2_ctrl_range_check()
29 if (cptr->info->get_max_value) { in pvr2_ctrl_range_check()
[all …]
Dpvrusb2-hdw.c344 static int ctrl_channelfreq_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelfreq_get() argument
346 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_get()
355 static int ctrl_channelfreq_set(struct pvr2_ctrl *cptr,int m,int v) in ctrl_channelfreq_set() argument
357 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_set()
377 static int ctrl_channelprog_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelprog_get() argument
379 *vp = cptr->hdw->freqProgSlot; in ctrl_channelprog_get()
383 static int ctrl_channelprog_set(struct pvr2_ctrl *cptr,int m,int v) in ctrl_channelprog_set() argument
385 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelprog_set()
392 static int ctrl_channel_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channel_get() argument
394 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channel_get()
[all …]
Dpvrusb2-sysfs.c59 struct pvr2_ctrl *cptr; member
80 name = pvr2_ctrl_get_desc(cip->cptr); in show_name()
95 tp = pvr2_ctrl_get_type(cip->cptr); in show_type()
115 val = pvr2_ctrl_get_min(cip->cptr); in show_min()
128 val = pvr2_ctrl_get_max(cip->cptr); in show_max()
143 ret = pvr2_ctrl_get_def(cip->cptr, &val); in show_def()
145 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_def()
162 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_norm()
164 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_val_norm()
181 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_custom()
[all …]
Dpvrusb2-v4l2.c166 struct pvr2_ctrl *cptr; in pvr2_enum_input() local
171 cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT); in pvr2_enum_input()
193 pvr2_ctrl_get_valname(cptr, val, in pvr2_enum_input()
215 struct pvr2_ctrl *cptr; in pvr2_g_input() local
219 cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT); in pvr2_g_input()
221 ret = pvr2_ctrl_get_value(cptr, &val); in pvr2_g_input()
505 struct pvr2_ctrl *cptr; in pvr2_queryctrl() local
509 cptr = pvr2_hdw_get_ctrl_nextv4l( in pvr2_queryctrl()
511 if (cptr) in pvr2_queryctrl()
512 vc->id = pvr2_ctrl_get_v4lid(cptr); in pvr2_queryctrl()
[all …]
/drivers/tty/serial/
Dkgdboc.c108 static int kgdboc_register_kbd(char **cptr) in kgdboc_register_kbd() argument
110 if (strncmp(*cptr, "kbd", 3) == 0 || in kgdboc_register_kbd()
111 strncmp(*cptr, "kdb", 3) == 0) { in kgdboc_register_kbd()
115 if (cptr[0][3] == ',') in kgdboc_register_kbd()
116 *cptr += 4; in kgdboc_register_kbd()
172 char *cptr = config; in configure_kgdboc() local
184 if (strncmp(cptr, "kms,", 4) == 0) { in configure_kgdboc()
185 cptr += 4; in configure_kgdboc()
189 if (kgdboc_register_kbd(&cptr)) in configure_kgdboc()
192 p = tty_find_polling_driver(cptr, &tty_line); in configure_kgdboc()
/drivers/media/pci/tw68/
Dtw68-video.c781 unsigned char *cptr; in tw68_dump_regs() local
786 cptr = line; in tw68_dump_regs()
787 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs()
790 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs()
791 *cptr++ = ' '; in tw68_dump_regs()
793 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs()
794 *cptr++ = '\n'; in tw68_dump_regs()
795 *cptr = 0; in tw68_dump_regs()
800 cptr = line; in tw68_dump_regs()
801 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs()
[all …]
/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_mfa2.c116 const struct mlxfw_mfa2_tlv_component_ptr *cptr; in mlxfw_mfa2_file_dev_validate() local
171 cptr = mlxfw_mfa2_tlv_component_ptr_get(mfa2_file, tlv); in mlxfw_mfa2_file_dev_validate()
172 if (!cptr) { in mlxfw_mfa2_file_dev_validate()
179 be16_to_cpu(cptr->component_index)); in mlxfw_mfa2_file_dev_validate()
507 const struct mlxfw_mfa2_tlv_component_ptr *cptr; in mlxfw_mfa2_file_component_find() local
522 cptr = mlxfw_mfa2_tlv_component_ptr_get(mfa2_file, cptr_tlv); in mlxfw_mfa2_file_component_find()
523 if (!cptr) in mlxfw_mfa2_file_component_find()
526 comp_idx = be16_to_cpu(cptr->component_index); in mlxfw_mfa2_file_component_find()
/drivers/crypto/cavium/cpt/
Drequest_manager.h129 u64 cptr:61; member
131 u64 cptr:61;
141 union vq_cmd_word3 cptr; member
Dcptvf_reqmanager.c471 vq_cmd.cptr.u64 = 0; in process_request()
472 vq_cmd.cptr.s.grp = group; in process_request()
522 cptinst.s.ei3 = vq_cmd.cptr.u64; in process_request()
/drivers/usb/storage/
Dalauda.c812 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 …]
Dsddr09.c859 unsigned char *bptr, *cptr, *xptr; in sddr09_write_lba() local
900 cptr = bptr + info->pagesize; in sddr09_write_lba()
902 if (!nand_compare_ecc(cptr+13, ecc)) { in sddr09_write_lba()
905 nand_store_ecc(cptr+13, ecc); in sddr09_write_lba()
908 if (!nand_compare_ecc(cptr+8, ecc)) { in sddr09_write_lba()
911 nand_store_ecc(cptr+8, ecc); in sddr09_write_lba()
913 cptr[6] = cptr[11] = MSB_of(lbap); in sddr09_write_lba()
914 cptr[7] = cptr[12] = LSB_of(lbap); in sddr09_write_lba()
921 cptr = bptr + info->pagesize; in sddr09_write_lba()
925 nand_store_ecc(cptr+13, ecc); in sddr09_write_lba()
[all …]
/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()
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_reqmgr.h107 u64 cptr:61; member
109 u64 cptr:61;
119 union otx_cpt_iq_cmd_word3 cptr; member
Dotx_cptvf_reqmgr.c259 inst->s.ei3 = cmd->cptr.u64; in cpt_fill_inst()
371 iq_cmd.cptr.u64 = 0; in process_request()
372 iq_cmd.cptr.s.grp = ctrl->s.grp; in process_request()
/drivers/scsi/
Daha1740.c403 struct aha1740_chain * cptr; in aha1740_queuecommand_lck() local
409 cptr = sgptr->sg_chain; in aha1740_queuecommand_lck()
411 cptr[i].datalen = sg_dma_len (sg); in aha1740_queuecommand_lck()
412 cptr[i].dataptr = sg_dma_address (sg); in aha1740_queuecommand_lck()
417 printk("cptr %x: ",cptr); in aha1740_queuecommand_lck()
418 ptr = (unsigned char *) cptr; in aha1740_queuecommand_lck()
Dhptiop.c255 u32 _tag, status, cptr, cur_rptr; in iop_intr_mvfrey() local
276 cptr = *hba->u.mvfrey.outlist_cptr & 0xff; in iop_intr_mvfrey()
278 while (cur_rptr != cptr) { in iop_intr_mvfrey()
289 } while (cptr != (*hba->u.mvfrey.outlist_cptr & 0xff)); in iop_intr_mvfrey()
/drivers/net/wireless/ath/ath9k/
Dar9003_eeprom.c3271 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_4K; 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()
3319 cptr = AR9300_BASE_ADDR_512; in ar9300_eeprom_restore_internal()
[all …]
/drivers/crypto/marvell/octeontx2/
Dotx2_cpt_reqmgr.h62 u64 cptr:61; member
71 union otx2_cpt_iq_cmd_word3 cptr; member
Dotx2_cptvf_reqmgr.c308 iq_cmd.cptr.u = 0; in process_request()
309 iq_cmd.cptr.s.grp = ctrl->s.grp; in process_request()
Dotx2_cptlf.h303 cptinst->s.ei3 = iq_cmd->cptr.u; in otx2_cpt_fill_inst()
Dotx2_cptpf_ucode.c1478 iq_cmd.cptr.u = 0; in otx2_cpt_discover_eng_capabilities()
1482 iq_cmd.cptr.s.grp = otx2_cpt_get_eng_grp(&cptpf->eng_grps, in otx2_cpt_discover_eng_capabilities()
/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()
/drivers/accessibility/speakup/
Dmain.c1636 unsigned int cptr[8]; in get_highlight_color() local
1640 cptr[i] = i; in get_highlight_color()
1644 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] > in get_highlight_color()
1645 speakup_console[vc_num]->ht.bgcount[cptr[j]]) in get_highlight_color()
1646 swap(cptr[i], cptr[j]); in get_highlight_color()
1649 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] != 0) in get_highlight_color()
1650 if (speakup_console[vc_num]->ht.highsize[cptr[i]] > 0) in get_highlight_color()
1651 return cptr[i]; in get_highlight_color()
/drivers/crypto/cavium/nitrox/
Dnitrox_req.h432 u64 cptr : 61; member
434 u64 cptr : 61; member
/drivers/net/ethernet/cortina/
Dgemini.c98 unsigned int cptr; member
593 txq->cptr = r; in gmac_setup_txqs()
609 unsigned int c = txq->cptr; in gmac_clean_txq()
672 txq->cptr = c; in gmac_clean_txq()
1271 d = txq->cptr - w - 1; in gmac_start_xmit()
1276 d = txq->cptr - w - 1; in gmac_start_xmit()
1282 d = txq->cptr + nfrags + 16; in gmac_start_xmit()