| /linux/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-ctrl.c | 14 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 D | pvrusb2-sysfs.c | 59 struct pvr2_ctrl *cptr; member 76 name = pvr2_ctrl_get_desc(cip->cptr); in show_name() 91 tp = pvr2_ctrl_get_type(cip->cptr); in show_type() 111 val = pvr2_ctrl_get_min(cip->cptr); in show_min() 124 val = pvr2_ctrl_get_max(cip->cptr); in show_max() 139 ret = pvr2_ctrl_get_def(cip->cptr, &val); in show_def() 141 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_def() 158 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_norm() 160 ret = pvr2_ctrl_value_to_sym(cip->cptr, ~0, val, in show_val_norm() 177 ret = pvr2_ctrl_get_value(cip->cptr, &val); in show_val_custom() [all …]
|
| /linux/sound/core/seq/ |
| H A D | seq_ump_client.c | 350 struct snd_seq_client *cptr; in setup_client_midi_version() local 352 cptr = snd_seq_kernel_client_get(client->seq_client); in setup_client_midi_version() 353 if (!cptr) in setup_client_midi_version() 356 cptr->midi_version = SNDRV_SEQ_CLIENT_UMP_MIDI_2_0; in setup_client_midi_version() 358 cptr->midi_version = SNDRV_SEQ_CLIENT_UMP_MIDI_1_0; in setup_client_midi_version() 359 snd_seq_kernel_client_put(cptr); in setup_client_midi_version() 365 struct snd_seq_client *cptr; in setup_client_group_filter() local 369 cptr = snd_seq_kernel_client_get(client->seq_client); in setup_client_group_filter() 370 if (!cptr) in setup_client_group_filter() 377 cptr->group_filter = filter; in setup_client_group_filter() [all …]
|
| /linux/arch/x86/boot/ |
| H A D | cmdline.c | 30 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()
|
| /linux/tools/testing/selftests/powerpc/ptrace/ |
| H A D | ptrace-tm-spd-gpr.c | 13 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 D | ptrace-tm-spd-tar.c | 12 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 D | ptrace-tm-spd-vsx.c | 12 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 D | ptrace-tm-gpr.c | 13 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 D | ptrace-tm-tar.c | 12 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 D | ptrace-tm-vsx.c | 12 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 D | ptrace-tar.c | 12 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 D | ptrace-tm-spr.c | 18 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 D | ptrace-vsx.c | 12 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()
|
| H A D | ptrace-gpr.c | 14 int *cptr, *pptr; variable 28 cptr = (int *)shmat(shm_id, NULL, 0); in child() 37 gpr_child_loop(&cptr[0], &cptr[1], gpr_buf, fpr_buf); in child() 39 shmdt((void *)cptr); in child()
|
| /linux/arch/arm64/kvm/ |
| H A D | pauth.c | 160 u64 ptr, cptr, pac, mask; in kvm_auth_eretax() local 181 cptr = to_canonical_addr(vcpu, ptr, mask); in kvm_auth_eretax() 183 pac = compute_pac(vcpu, cptr, ikey); in kvm_auth_eretax() 191 *elr = cptr; in kvm_auth_eretax() 200 cptr = corrupt_addr(vcpu, cptr); in kvm_auth_eretax() 202 cptr = ptr ^ (pac & mask); in kvm_auth_eretax() 204 *elr = cptr; in kvm_auth_eretax()
|
| /linux/drivers/tty/serial/ |
| H A D | kgdboc.c | 135 static int kgdboc_register_kbd(char **cptr) in kgdboc_register_kbd() argument 137 if (strncmp(*cptr, "kbd", 3) == 0 || in kgdboc_register_kbd() 138 strncmp(*cptr, "kdb", 3) == 0) { in kgdboc_register_kbd() 142 if (cptr[0][3] == ',') in kgdboc_register_kbd() 143 *cptr += 4; in kgdboc_register_kbd() 198 char *cptr = config; in configure_kgdboc() local 211 if (strncmp(cptr, "kms,", 4) == 0) { in configure_kgdboc() 212 cptr += 4; in configure_kgdboc() 216 if (kgdboc_register_kbd(&cptr)) in configure_kgdboc() 219 p = tty_find_polling_driver(cptr, &tty_line); in configure_kgdboc()
|
| /linux/drivers/net/ethernet/mellanox/mlxfw/ |
| H A D | mlxfw_mfa2.c | 116 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()
|
| /linux/drivers/crypto/cavium/cpt/ |
| H A D | request_manager.h | 129 u64 cptr:61; member 131 u64 cptr:61; 141 union vq_cmd_word3 cptr; member
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_reqmgr.h | 107 u64 cptr:61; member 109 u64 cptr:61; 119 union otx_cpt_iq_cmd_word3 cptr; member
|
| H A D | otx_cptvf_reqmgr.c | 259 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()
|
| /linux/arch/arm64/kvm/hyp/include/hyp/ |
| H A D | switch.h | 98 u64 cptr; in __activate_cptr_traps_vhe() local 125 cptr = vcpu_sanitised_cptr_el2(vcpu); in __activate_cptr_traps_vhe() 141 if (!(SYS_FIELD_GET(CPACR_EL1, FPEN, cptr) & BIT(0))) in __activate_cptr_traps_vhe() 143 if (!(SYS_FIELD_GET(CPACR_EL1, ZEN, cptr) & BIT(0))) in __activate_cptr_traps_vhe() 147 val |= cptr & CPACR_EL1_E0POE; in __activate_cptr_traps_vhe() 149 val |= cptr & CPTR_EL2_TCPAC; in __activate_cptr_traps_vhe()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9003_eeprom.c | 3271 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 …]
|
| /linux/drivers/net/arcnet/ |
| H A D | rfc1201.c | 213 uint8_t *cptr = (uint8_t *)arp + sizeof(struct arphdr); in rx() local 215 if (!*cptr) { /* is saddr = 00? */ in rx() 220 *cptr = saddr; in rx() 223 *cptr); in rx()
|
| /linux/fs/nfs/ |
| H A D | pnfs_dev.c | 67 unsigned char *cptr = (unsigned char *)id->data; in nfs4_deviceid_hash() local 73 x += *cptr++; in nfs4_deviceid_hash()
|
| /linux/drivers/accessibility/speakup/ |
| H A D | main.c | 1646 unsigned int cptr[8]; in get_highlight_color() local 1650 cptr[i] = i; in get_highlight_color() 1654 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] > in get_highlight_color() 1655 speakup_console[vc_num]->ht.bgcount[cptr[j]]) in get_highlight_color() 1656 swap(cptr[i], cptr[j]); in get_highlight_color() 1659 if (speakup_console[vc_num]->ht.bgcount[cptr[i]] != 0) in get_highlight_color() 1660 if (speakup_console[vc_num]->ht.highsize[cptr[i]] > 0) in get_highlight_color() 1661 return cptr[i]; in get_highlight_color()
|