/Linux-v4.19/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ctrl.c | 24 static int pvr2_ctrl_range_check(struct pvr2_ctrl *cptr,int val) in pvr2_ctrl_range_check() argument 26 if (cptr->info->check_value) { in pvr2_ctrl_range_check() 27 if (!cptr->info->check_value(cptr,val)) return -ERANGE; in pvr2_ctrl_range_check() 28 } else if (cptr->info->type == pvr2_ctl_enum) { in pvr2_ctrl_range_check() 30 if (val >= cptr->info->def.type_enum.count) return -ERANGE; in pvr2_ctrl_range_check() 33 lim = cptr->info->def.type_int.min_value; in pvr2_ctrl_range_check() 34 if (cptr->info->get_min_value) { in pvr2_ctrl_range_check() 35 cptr->info->get_min_value(cptr,&lim); in pvr2_ctrl_range_check() 38 lim = cptr->info->def.type_int.max_value; in pvr2_ctrl_range_check() 39 if (cptr->info->get_max_value) { in pvr2_ctrl_range_check() [all …]
|
D | pvrusb2-hdw.c | 352 static int ctrl_channelfreq_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelfreq_get() argument 354 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_get() 363 static int ctrl_channelfreq_set(struct pvr2_ctrl *cptr,int m,int v) in ctrl_channelfreq_set() argument 365 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_set() 385 static int ctrl_channelprog_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelprog_get() argument 387 *vp = cptr->hdw->freqProgSlot; in ctrl_channelprog_get() 391 static int ctrl_channelprog_set(struct pvr2_ctrl *cptr,int m,int v) in ctrl_channelprog_set() argument 393 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelprog_set() 400 static int ctrl_channel_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channel_get() argument 402 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channel_get() [all …]
|
D | pvrusb2-sysfs.c | 69 struct pvr2_ctrl *cptr; member 90 name = pvr2_ctrl_get_desc(cip->cptr); in show_name() 105 tp = pvr2_ctrl_get_type(cip->cptr); in show_type() 125 val = pvr2_ctrl_get_min(cip->cptr); in show_min() 138 val = pvr2_ctrl_get_max(cip->cptr); in show_max() 153 ret = pvr2_ctrl_get_def(cip->cptr, &val); in show_def() 155 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_def() 172 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_norm() 174 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_val_norm() 191 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_custom() [all …]
|
D | pvrusb2-v4l2.c | 187 struct pvr2_ctrl *cptr; in pvr2_enum_input() local 192 cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT); in pvr2_enum_input() 214 pvr2_ctrl_get_valname(cptr, val, in pvr2_enum_input() 236 struct pvr2_ctrl *cptr; in pvr2_g_input() local 240 cptr = pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_INPUT); in pvr2_g_input() 242 ret = pvr2_ctrl_get_value(cptr, &val); in pvr2_g_input() 526 struct pvr2_ctrl *cptr; in pvr2_queryctrl() local 530 cptr = pvr2_hdw_get_ctrl_nextv4l( in pvr2_queryctrl() 532 if (cptr) in pvr2_queryctrl() 533 vc->id = pvr2_ctrl_get_v4lid(cptr); in pvr2_queryctrl() [all …]
|
/Linux-v4.19/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-v4.19/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-tm-spd-tar.c | 16 int *cptr, *pptr; variable 20 cptr[2] = 1; in wait_parent() 21 while (!cptr[1]) in wait_parent() 31 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_tar() 34 cptr[2] = 0; in tm_spd_tar() 75 : [val] "r" (cptr[1]), [sprn_dscr]"i"(SPRN_DSCR), in tm_spd_tar() 85 if (!cptr[0]) in tm_spd_tar() 92 shmdt(&cptr); in tm_spd_tar() 101 shmdt(&cptr); in tm_spd_tar()
|
D | ptrace-tm-spd-gpr.c | 17 int *cptr, *pptr; variable 26 cptr[2] = 1; in wait_parent() 27 while (!cptr[1]) in wait_parent() 37 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_gpr() 40 cptr[2] = 0; in tm_spd_gpr() 79 if (!cptr[0]) in tm_spd_gpr() 82 shmdt((void *)cptr); in tm_spd_gpr() 93 shmdt((void *)cptr); in tm_spd_gpr()
|
D | ptrace-tm-spd-vsx.c | 16 int *cptr, *pptr; variable 41 cptr[2] = 1; in wait_parent() 42 while (!cptr[1]) in wait_parent() 51 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_vsx() 54 cptr[2] = 0; in tm_spd_vsx() 87 if (!cptr[0]) in tm_spd_vsx() 89 shmdt((void *)cptr); in tm_spd_vsx() 97 shmdt((void *)cptr); in tm_spd_vsx()
|
D | ptrace-tm-gpr.c | 17 unsigned long *cptr, *pptr; variable 30 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_gpr() 33 cptr[1] = 0; in tm_gpr() 63 [flt_2] "r" (&b), [cptr1] "r" (&cptr[1]) in tm_gpr() 72 if (!cptr[0]) in tm_gpr() 75 shmdt((void *)cptr); in tm_gpr() 87 shmdt((void *)cptr); in tm_gpr()
|
D | ptrace-tm-tar.c | 16 unsigned long *cptr, *pptr; variable 25 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_tar() 28 cptr[1] = 0; in tm_tar() 68 [dscr_2]"i"(DSCR_2), [cptr1] "r" (&cptr[1]) in tm_tar() 74 if (!cptr[0]) in tm_tar() 81 shmdt(&cptr); in tm_tar() 90 shmdt(&cptr); in tm_tar()
|
D | ptrace-tm-vsx.c | 16 unsigned long *cptr, *pptr; variable 38 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_vsx() 41 cptr[1] = 0; in tm_vsx() 69 [sprn_texasr] "i" (SPRN_TEXASR), [cptr1] "r" (&cptr[1]) in tm_vsx() 75 if (!cptr[0]) in tm_vsx() 78 shmdt((void *)cptr); in tm_vsx() 85 shmdt((void *)cptr); in tm_vsx()
|
D | ptrace-tar.c | 16 int *cptr; variable 24 cptr = (int *)shmat(shm_id, NULL, 0); in tar() 32 cptr[2] = 1; in tar() 35 while (!cptr[0]) in tar() 46 cptr[1] = 1; in tar() 47 shmdt((int *)cptr); in tar()
|
D | ptrace-tm-spr.c | 22 struct shared *cptr, *pptr; variable 41 cptr = (struct shared *)shmat(shm_id, NULL, 0); in tm_spr() 86 if (!cptr->flag) in tm_spr() 89 ret = validate_tm_spr((struct tm_spr_regs *)&cptr->regs); in tm_spr() 90 shmdt((void *)cptr); in tm_spr() 96 shmdt((void *)cptr); in tm_spr()
|
D | ptrace-gpr.c | 17 int *cptr, *pptr; variable 28 cptr = (int *)shmat(shm_id, NULL, 0); in gpr() 41 cptr[1] = 1; in gpr() 43 while (!cptr[0]) in gpr() 46 shmdt((void *)cptr); in gpr()
|
D | ptrace-vsx.c | 16 int *cptr, *pptr; variable 26 cptr = (int *)shmat(shm_id, NULL, 0); in vsx() 28 cptr[1] = 1; in vsx() 30 while (!cptr[0]) in vsx() 32 shmdt((void *) cptr); in vsx()
|
/Linux-v4.19/drivers/tty/serial/ |
D | kgdboc.c | 95 static int kgdboc_register_kbd(char **cptr) in kgdboc_register_kbd() argument 97 if (strncmp(*cptr, "kbd", 3) == 0 || in kgdboc_register_kbd() 98 strncmp(*cptr, "kdb", 3) == 0) { in kgdboc_register_kbd() 102 if (cptr[0][3] == ',') in kgdboc_register_kbd() 103 *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()
|
/Linux-v4.19/sound/core/seq/ |
D | seq_clientmgr.c | 1165 struct snd_seq_client *cptr; in snd_seq_ioctl_running_mode() local 1169 cptr = snd_seq_client_use_ptr(info->client); in snd_seq_ioctl_running_mode() 1170 if (cptr == NULL) in snd_seq_ioctl_running_mode() 1189 cptr->convert32 = (info->cpu_mode < sizeof(long)); in snd_seq_ioctl_running_mode() 1191 snd_seq_client_unlock(cptr); in snd_seq_ioctl_running_mode() 1196 static void get_client_info(struct snd_seq_client *cptr, in get_client_info() argument 1199 info->client = cptr->number; in get_client_info() 1202 info->type = cptr->type; in get_client_info() 1203 strcpy(info->name, cptr->name); in get_client_info() 1204 info->filter = cptr->filter; in get_client_info() [all …]
|
/Linux-v4.19/drivers/media/pci/tw68/ |
D | tw68-video.c | 808 unsigned char *cptr; in tw68_dump_regs() local 813 cptr = line; in tw68_dump_regs() 814 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs() 817 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs() 818 *cptr++ = ' '; in tw68_dump_regs() 820 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs() 821 *cptr++ = '\n'; in tw68_dump_regs() 822 *cptr = 0; in tw68_dump_regs() 827 cptr = line; in tw68_dump_regs() 828 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxfw/ |
D | mlxfw_mfa2.c | 146 const struct mlxfw_mfa2_tlv_component_ptr *cptr; in mlxfw_mfa2_file_dev_validate() local 201 cptr = mlxfw_mfa2_tlv_component_ptr_get(mfa2_file, tlv); in mlxfw_mfa2_file_dev_validate() 202 if (!cptr) { in mlxfw_mfa2_file_dev_validate() 209 be16_to_cpu(cptr->component_index)); in mlxfw_mfa2_file_dev_validate() 537 const struct mlxfw_mfa2_tlv_component_ptr *cptr; in mlxfw_mfa2_file_component_find() local 552 cptr = mlxfw_mfa2_tlv_component_ptr_get(mfa2_file, cptr_tlv); in mlxfw_mfa2_file_component_find() 553 if (!cptr) in mlxfw_mfa2_file_component_find() 556 comp_idx = be16_to_cpu(cptr->component_index); in mlxfw_mfa2_file_component_find()
|
/Linux-v4.19/drivers/crypto/cavium/cpt/ |
D | request_manager.h | 130 u64 cptr:61; member 132 u64 cptr:61; 142 union vq_cmd_word3 cptr; member
|
/Linux-v4.19/drivers/isdn/i4l/ |
D | isdn_bsdcomp.c | 112 u16 cptr; /* map code to hash table entry */ member 407 db->dict[indx].cptr = 0; in bsd_init() 562 indx = dictp2->cptr; in bsd_compress() 568 dictp2->cptr = hval; in bsd_compress() 790 dictp = dict_ptr(db, dictp2->cptr); in bsd_decompress() 796 … 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() 800 printk(KERN_ERR "oldcode=0x%x cptr=0x%x codem1=0x%x\n", oldcode, dictp2->cptr, dictp->codem1); in bsd_decompress() 857 indx = dictp2->cptr; in bsd_decompress() 863 dictp2->cptr = hval; in bsd_decompress()
|
/Linux-v4.19/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-v4.19/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-v4.19/drivers/usb/storage/ |
D | alauda.c | 804 unsigned char *bptr, *cptr, *xptr; in alauda_write_lba() local 852 cptr = bptr + pagesize; in alauda_write_lba() 854 if (!nand_compare_ecc(cptr+13, ecc)) { in alauda_write_lba() 857 nand_store_ecc(cptr+13, ecc); in alauda_write_lba() 860 if (!nand_compare_ecc(cptr+8, ecc)) { in alauda_write_lba() 863 nand_store_ecc(cptr+8, ecc); in alauda_write_lba() 865 cptr[6] = cptr[11] = MSB_of(lbap); in alauda_write_lba() 866 cptr[7] = cptr[12] = LSB_of(lbap); in alauda_write_lba() 873 cptr = bptr + pagesize; in alauda_write_lba() 877 nand_store_ecc(cptr+13, ecc); in alauda_write_lba() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | aha1542.c | 381 struct chain *cptr; in aha1542_queuecommand() local 403 cptr = kmalloc_array(sg_count, sizeof(*cptr), in aha1542_queuecommand() 405 if (!cptr) in aha1542_queuecommand() 409 cptr = NULL; in aha1542_queuecommand() 459 cmd->host_scribble = (void *)cptr; in aha1542_queuecommand() 461 any2scsi(cptr[i].dataptr, isa_page_to_bus(sg_page(sg)) in aha1542_queuecommand() 463 any2scsi(cptr[i].datalen, sg->length); in aha1542_queuecommand() 466 any2scsi(ccb[mbo].dataptr, isa_virt_to_bus(cptr)); in aha1542_queuecommand() 468 shost_printk(KERN_DEBUG, sh, "cptr %p: ", cptr); in aha1542_queuecommand() 469 print_hex_dump_bytes("cptr: ", DUMP_PREFIX_NONE, cptr, 18); in aha1542_queuecommand()
|