Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/media/usb/pvrusb2/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/external/xserver/hw/xfree86/parser/
H A Dwrite.c76 doWriteConfigFile(const char *filename, XF86ConfigPtr cptr) in doWriteConfigFile() argument
84 if (cptr->conf_comment) in doWriteConfigFile()
85 fprintf(cf, "%s\n", cptr->conf_comment); in doWriteConfigFile()
87 xf86printLayoutSection(cf, cptr->conf_layout_lst); in doWriteConfigFile()
89 if (cptr->conf_files != NULL) { in doWriteConfigFile()
91 xf86printFileSection(cf, cptr->conf_files); in doWriteConfigFile()
95 if (cptr->conf_modules != NULL) { in doWriteConfigFile()
97 xf86printModuleSection(cf, cptr->conf_modules); in doWriteConfigFile()
101 xf86printVendorSection(cf, cptr->conf_vendor_lst); in doWriteConfigFile()
103 xf86printServerFlagsSection(cf, cptr->conf_flags); in doWriteConfigFile()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/boot/
H A Dcmdline.c30 addr_t cptr; in __cmdline_find_option() local
45 cptr = cmdline_ptr & 0xf; in __cmdline_find_option()
48 while (cptr < 0x10000 && (c = rdfs8(cptr++))) { in __cmdline_find_option()
102 addr_t cptr; in __cmdline_find_option_bool() local
115 cptr = cmdline_ptr & 0xf; in __cmdline_find_option_bool()
118 while (cptr < 0x10000) { in __cmdline_find_option_bool()
119 c = rdfs8(cptr++); in __cmdline_find_option_bool()
/OK3568_Linux_fs/kernel/sound/core/seq/
H A Dseq_clientmgr.c1189 struct snd_seq_client *cptr; in snd_seq_ioctl_running_mode() local
1193 cptr = snd_seq_client_use_ptr(info->client); in snd_seq_ioctl_running_mode()
1194 if (cptr == NULL) in snd_seq_ioctl_running_mode()
1213 cptr->convert32 = (info->cpu_mode < sizeof(long)); in snd_seq_ioctl_running_mode()
1215 snd_seq_client_unlock(cptr); in snd_seq_ioctl_running_mode()
1220 static void get_client_info(struct snd_seq_client *cptr, in get_client_info() argument
1223 info->client = cptr->number; in get_client_info()
1226 info->type = cptr->type; in get_client_info()
1227 strcpy(info->name, cptr->name); in get_client_info()
1228 info->filter = cptr->filter; in get_client_info()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tm-spd-gpr.c13 int *cptr, *pptr; variable
22 cptr[2] = 1; in wait_parent()
23 while (!cptr[1]) in wait_parent()
33 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_gpr()
36 cptr[2] = 0; in tm_spd_gpr()
75 if (!cptr[0]) in tm_spd_gpr()
78 shmdt((void *)cptr); in tm_spd_gpr()
89 shmdt((void *)cptr); in tm_spd_gpr()
H A Dptrace-tm-spd-tar.c12 int *cptr, *pptr; variable
16 cptr[2] = 1; in wait_parent()
17 while (!cptr[1]) in wait_parent()
27 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_tar()
30 cptr[2] = 0; in tm_spd_tar()
81 if (!cptr[0]) in tm_spd_tar()
88 shmdt(&cptr); in tm_spd_tar()
97 shmdt(&cptr); in tm_spd_tar()
H A Dptrace-tm-spd-vsx.c12 int *cptr, *pptr; variable
37 cptr[2] = 1; in wait_parent()
38 while (!cptr[1]) in wait_parent()
47 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_vsx()
50 cptr[2] = 0; in tm_spd_vsx()
82 if (!cptr[0]) in tm_spd_vsx()
84 shmdt((void *)cptr); in tm_spd_vsx()
92 shmdt((void *)cptr); in tm_spd_vsx()
H A Dptrace-tm-gpr.c13 unsigned long *cptr, *pptr; variable
26 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_gpr()
29 cptr[1] = 0; in tm_gpr()
59 [flt_2] "b" (&b), [cptr1] "b" (&cptr[1]) in tm_gpr()
68 if (!cptr[0]) in tm_gpr()
71 shmdt((void *)cptr); in tm_gpr()
83 shmdt((void *)cptr); in tm_gpr()
H A Dptrace-tm-tar.c12 unsigned long *cptr, *pptr; variable
21 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_tar()
24 cptr[1] = 0; in tm_tar()
64 [dscr_2]"i"(DSCR_2), [cptr1] "b" (&cptr[1]) in tm_tar()
70 if (!cptr[0]) in tm_tar()
77 shmdt(&cptr); in tm_tar()
86 shmdt(&cptr); in tm_tar()
H A Dptrace-tm-vsx.c12 unsigned long *cptr, *pptr; variable
34 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_vsx()
37 cptr[1] = 0; in tm_vsx()
64 : [sprn_texasr] "i" (SPRN_TEXASR), [cptr1] "b" (&cptr[1]) in tm_vsx()
70 if (!cptr[0]) in tm_vsx()
73 shmdt((void *)cptr); in tm_vsx()
80 shmdt((void *)cptr); in tm_vsx()
H A Dptrace-tar.c12 int *cptr; variable
20 cptr = (int *)shmat(shm_id, NULL, 0); in tar()
28 cptr[2] = 1; in tar()
31 while (!cptr[0]) in tar()
42 cptr[1] = 1; in tar()
43 shmdt((int *)cptr); in tar()
H A Dptrace-tm-spr.c18 struct shared *cptr, *pptr; variable
37 cptr = (struct shared *)shmat(shm_id, NULL, 0); in tm_spr()
82 if (!cptr->flag) in tm_spr()
85 ret = validate_tm_spr((struct tm_spr_regs *)&cptr->regs); in tm_spr()
86 shmdt((void *)cptr); in tm_spr()
92 shmdt((void *)cptr); in tm_spr()
H A Dptrace-gpr.c13 int *cptr, *pptr; variable
24 cptr = (int *)shmat(shm_id, NULL, 0); in gpr()
37 cptr[1] = 1; in gpr()
39 while (!cptr[0]) in gpr()
42 shmdt((void *)cptr); in gpr()
H A Dptrace-vsx.c12 int *cptr, *pptr; variable
22 cptr = (int *)shmat(shm_id, NULL, 0); in vsx()
24 cptr[1] = 1; in vsx()
26 while (!cptr[0]) in vsx()
28 shmdt((void *) cptr); in vsx()
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A 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()
/OK3568_Linux_fs/external/xserver/hw/xfree86/common/
H A Dxf86AutoConfig.c324 GDevPtr cptr = NULL; in copyScreen() local
332 cptr = malloc(sizeof(GDevRec)); in copyScreen()
333 if (!cptr) { in copyScreen()
337 memcpy(cptr, odev, sizeof(GDevRec)); in copyScreen()
341 free(cptr); in copyScreen()
345 cptr->driver = driver; in copyScreen()
346 cptr->identifier = identifier; in copyScreen()
351 xf86ConfigLayout.screens[i].screen->device = cptr; in copyScreen()
352 cptr->myScreenSection = xf86ConfigLayout.screens[i].screen; in copyScreen()
/OK3568_Linux_fs/kernel/drivers/media/pci/tw68/
H A Dtw68-video.c779 unsigned char *cptr; in tw68_dump_regs() local
784 cptr = line; in tw68_dump_regs()
785 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs()
788 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs()
789 *cptr++ = ' '; in tw68_dump_regs()
791 cptr += sprintf(cptr, "%08x ", tw_readl(j)); in tw68_dump_regs()
792 *cptr++ = '\n'; in tw68_dump_regs()
793 *cptr = 0; in tw68_dump_regs()
798 cptr = line; in tw68_dump_regs()
799 cptr += sprintf(cptr, "%03x ", i); in tw68_dump_regs()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxfw/
H A 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()
/OK3568_Linux_fs/external/xserver/dix/
H A Dcolormap.c1958 Pixel *pptr, *cptr; in AllocShared() local
1986 for (cptr = ppixFirst, z = npixClientNew; --z >= 0; cptr++) { in AllocShared()
1987 if ((*cptr & basemask) == (common | bits)) { in AllocShared()
1988 pmap->red[*cptr].fShared = TRUE; in AllocShared()
1989 pmap->red[*cptr].co.shco.red = pshared; in AllocShared()
1998 for (cptr = ppixFirst, z = npixClientNew; --z >= 0; cptr++) { in AllocShared()
1999 if ((*cptr & basemask) == common) { in AllocShared()
2000 pmap->red[*cptr].fShared = TRUE; in AllocShared()
2001 pmap->red[*cptr].co.shco.red = pshared; in AllocShared()
2013 for (cptr = ppixFirst, z = npixClientNew; --z >= 0; cptr++) { in AllocShared()
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/kvm/hyp/nvhe/
H A Dswitch.c73 u64 mdcr_el2, cptr; in __deactivate_traps() local
105 cptr = CPTR_EL2_DEFAULT; in __deactivate_traps()
107 cptr |= CPTR_EL2_TZ; in __deactivate_traps()
109 write_sysreg(cptr, cptr_el2); in __deactivate_traps()
/OK3568_Linux_fs/kernel/drivers/crypto/cavium/cpt/
H A Drequest_manager.h129 u64 cptr:61; member
131 u64 cptr:61;
141 union vq_cmd_word3 cptr; member
/OK3568_Linux_fs/kernel/sound/drivers/vx/
H A Dvx_core.c670 const unsigned char *image, *cptr; in snd_vx_dsp_load() local
686 cptr = image; in snd_vx_dsp_load()
687 csum ^= *cptr; in snd_vx_dsp_load()
689 vx_outb(chip, TXH, *cptr++); in snd_vx_dsp_load()
690 csum ^= *cptr; in snd_vx_dsp_load()
692 vx_outb(chip, TXM, *cptr++); in snd_vx_dsp_load()
693 csum ^= *cptr; in snd_vx_dsp_load()
695 vx_outb(chip, TXL, *cptr++); in snd_vx_dsp_load()

123