| /linux/drivers/media/pci/cx18/ |
| H A D | cx18-driver.c | 282 static void cx18_iounmap(struct cx18 *cx) in cx18_iounmap() argument 284 if (!cx) in cx18_iounmap() 288 if (cx->enc_mem) { in cx18_iounmap() 290 iounmap(cx->enc_mem); in cx18_iounmap() 291 cx->enc_mem = NULL; in cx18_iounmap() 295 static void cx18_eeprom_dump(struct cx18 *cx, unsigned char *eedata, int len) in cx18_eeprom_dump() argument 310 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) in cx18_read_eeprom() argument 322 c->adapter = &cx->i2c_adap[0]; in cx18_read_eeprom() 328 switch (cx->card->type) { in cx18_read_eeprom() 337 cx18_eeprom_dump(cx, eedata, sizeof(eedata)); in cx18_read_eeprom() [all …]
|
| H A D | cx18-ioctl.c | 56 struct cx18 *cx = id->cx; in cx18_g_fmt_vid_cap() local 57 struct cx18_stream *s = &cx->streams[id->type]; in cx18_g_fmt_vid_cap() 60 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap() 61 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap() 80 struct cx18 *cx = id->cx; in cx18_try_fmt_vid_cap() local 88 h = min(h, cx->is_50hz ? 576 : 480); in cx18_try_fmt_vid_cap() 89 h = max(h, (cx->is_50hz ? 576 : 480) / 8); in cx18_try_fmt_vid_cap() 125 struct cx18 *cx = id->cx; in cx18_s_fmt_vid_cap() local 129 struct cx18_stream *s = &cx->streams[id->type]; in cx18_s_fmt_vid_cap() 139 if (cx->cxhdl.width == w && cx->cxhdl.height == h && in cx18_s_fmt_vid_cap() [all …]
|
| H A D | cx18-streams.c | 109 struct cx18 *cx = s->cx; in cx18_queue_setup() local 117 szimage = cx->cxhdl.height * 720 * 3 / 2; in cx18_queue_setup() 119 szimage = cx->cxhdl.height * 720 * 2; in cx18_queue_setup() 156 struct cx18 *cx = s->cx; in cx18_buf_prepare() local 164 size = cx->cxhdl.height * 720 * 3 / 2; in cx18_buf_prepare() 166 size = cx->cxhdl.height * 720 * 2; in cx18_buf_prepare() 234 static int cx18_stream_init(struct cx18 *cx, int type) in cx18_stream_init() argument 236 struct cx18_stream *s = &cx->streams[type]; in cx18_stream_init() 243 s->cx = cx; in cx18_stream_init() 250 s->buffers = cx->stream_buffers[type]; in cx18_stream_init() [all …]
|
| H A D | cx18-fileops.c | 32 struct cx18 *cx = id->cx; in cx18_claim_stream() local 33 struct cx18_stream *s = &cx->streams[type]; in cx18_claim_stream() 73 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_claim_stream() 74 if (cx->vbi.insert_mpeg && !cx18_raw_vbi(cx)) in cx18_claim_stream() 75 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_claim_stream() 91 struct cx18 *cx = s->cx; in cx18_release_stream() local 125 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_release_stream() 132 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_release_stream() 146 static void cx18_dualwatch(struct cx18 *cx) in cx18_dualwatch() argument 152 new_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_dualwatch() [all …]
|
| H A D | cx18-dvb.c | 125 struct cx18 *cx = stream->cx; in yuan_mpc718_mt352_reqfw() local 129 ret = request_firmware(fw, fn, &cx->pci_dev->dev); in yuan_mpc718_mt352_reqfw() 238 struct cx18 *cx; in cx18_dvb_start_feed() local 245 cx = stream->cx; in cx18_dvb_start_feed() 249 mutex_lock(&cx->serialize_lock); in cx18_dvb_start_feed() 250 ret = cx18_init_on_first_open(cx); in cx18_dvb_start_feed() 251 mutex_unlock(&cx->serialize_lock); in cx18_dvb_start_feed() 258 switch (cx->card->type) { in cx18_dvb_start_feed() 262 v = cx18_read_reg(cx, CX18_REG_DMUX_NUM_PORT_0_CONTROL); in cx18_dvb_start_feed() 268 cx18_write_reg(cx, v, CX18_REG_DMUX_NUM_PORT_0_CONTROL); in cx18_dvb_start_feed() [all …]
|
| H A D | cx18-alsa-main.c | 95 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names() local 103 cx->instance); in snd_cx18_card_set_names() 108 cx->instance, cx->card_name); in snd_cx18_card_set_names() 115 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_init() local 126 ret = snd_card_new(&cx->pci_dev->dev, in snd_cx18_init() 158 cx->alsa = cxsc; in snd_cx18_init() 163 cx->alsa = NULL; in snd_cx18_init() 179 static int cx18_alsa_load(struct cx18 *cx) in cx18_alsa_load() argument 181 struct v4l2_device *v4l2_dev = &cx->v4l2_dev; in cx18_alsa_load() 190 cx = to_cx18(v4l2_dev); in cx18_alsa_load() [all …]
|
| H A D | cx18-queue.c | 128 struct cx18 *cx = s->cx; in cx18_queue_get_mdl() local 264 struct cx18 *cx = s->cx; in cx18_load_queues() local 292 cx18_writel(cx, buf->dma_handle, in cx18_load_queues() 293 &cx->scb->cpu_mdl[mdl_id + i].paddr); in cx18_load_queues() 294 cx18_writel(cx, s->buf_size, in cx18_load_queues() 295 &cx->scb->cpu_mdl[mdl_id + i].length); in cx18_load_queues() 308 cx18_writel(cx, partial_buf_size, in cx18_load_queues() 309 &cx->scb->cpu_mdl[mdl_id + i - 1].length); in cx18_load_queues() 324 struct pci_dev *pci_dev = s->cx->pci_dev; in _cx18_mdl_sync_for_device() 334 struct cx18 *cx = s->cx; in cx18_stream_alloc() local [all …]
|
| H A D | cx18-alsa-pcm.c | 139 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_open() local 146 s = &cx->streams[CX18_ENC_STREAM_TYPE_PCM]; in snd_cx18_pcm_capture_open() 148 item.cx = cx; in snd_cx18_pcm_capture_open() 150 item.open_id = cx->open_id++; in snd_cx18_pcm_capture_open() 170 runtime->private_data = cx; in snd_cx18_pcm_capture_open() 172 cx->pcm_announce_callback = cx18_alsa_announce_pcm_data; in snd_cx18_pcm_capture_open() 186 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_close() local 191 s = &cx->streams[CX18_ENC_STREAM_TYPE_PCM]; in snd_cx18_pcm_capture_close() 197 cx->pcm_announce_callback = NULL; in snd_cx18_pcm_capture_close() 245 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_create() local [all …]
|
| H A D | cx18-alsa.h | 27 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_lock() local 28 mutex_lock(&cx->serialize_lock); in snd_cx18_lock() 33 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_unlock() local 34 mutex_unlock(&cx->serialize_lock); in snd_cx18_unlock()
|
| H A D | cx18-ioctl.h | 17 int cx18_do_s_std(struct cx18 *cx, v4l2_std_id std); 18 int cx18_do_s_frequency(struct cx18 *cx, const struct v4l2_frequency *vf); 19 int cx18_do_s_input(struct cx18 *cx, unsigned int inp);
|
| /linux/fs/orangefs/ |
| H A D | xattr.c | 68 struct orangefs_cached_xattr *cx; in find_cached_xattr() local 74 hlist_for_each_entry_safe(cx, tmp, h, node) { in find_cached_xattr() 80 if (!strcmp(cx->key, key)) in find_cached_xattr() 81 return cx; in find_cached_xattr() 100 struct orangefs_cached_xattr *cx; in orangefs_inode_getxattr() local 129 cx = find_cached_xattr(inode, name); in orangefs_inode_getxattr() 130 if (cx && time_before(jiffies, cx->timeout)) { in orangefs_inode_getxattr() 131 if (cx->length == -1) { in orangefs_inode_getxattr() 136 ret = cx->length; in orangefs_inode_getxattr() 139 if (cx->length > size) { in orangefs_inode_getxattr() [all …]
|
| /linux/arch/x86/kernel/acpi/ |
| H A D | cstate.c | 126 struct acpi_processor_cx *cx = _cx; in acpi_processor_ffh_cstate_probe_cpu() local 136 cstate_type = (((cx->address >> MWAIT_SUBSTATE_SIZE) & in acpi_processor_ffh_cstate_probe_cpu() 145 cx->address, edx_part); in acpi_processor_ffh_cstate_probe_cpu() 161 cx->type); in acpi_processor_ffh_cstate_probe_cpu() 163 snprintf(cx->desc, in acpi_processor_ffh_cstate_probe_cpu() 165 cx->address); in acpi_processor_ffh_cstate_probe_cpu() 171 struct acpi_processor_cx *cx, struct acpi_power_register *reg) in acpi_processor_ffh_cstate_probe() argument 184 percpu_entry->states[cx->index].eax = 0; in acpi_processor_ffh_cstate_probe() 185 percpu_entry->states[cx->index].ecx = 0; in acpi_processor_ffh_cstate_probe() 189 retval = call_on_cpu(cpu, acpi_processor_ffh_cstate_probe_cpu, cx, in acpi_processor_ffh_cstate_probe() [all …]
|
| /linux/drivers/acpi/ |
| H A D | processor_idle.c | 133 struct acpi_processor_cx *cx) in lapic_timer_check_state() argument 151 if (cx->type >= type) in lapic_timer_check_state() 173 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument 175 return cx - pr->power.states >= pr->power.timer_broadcast_on_state; in lapic_timer_needs_broadcast() 185 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument 322 struct acpi_processor_cx *cx) in acpi_processor_power_verify_c3() argument 328 if (!cx->address) in acpi_processor_power_verify_c3() 387 cx->valid = 1; in acpi_processor_power_verify_c3() 431 struct acpi_processor_cx *cx = &pr->power.states[i]; in acpi_processor_power_verify() local 433 switch (cx->type) { in acpi_processor_power_verify() [all …]
|
| H A D | acpi_processor.c | 874 struct acpi_processor_cx cx; in acpi_processor_evaluate_cst() local 887 memset(&cx, 0, sizeof(cx)); in acpi_processor_evaluate_cst() 919 cx.type = obj->integer.value; in acpi_processor_evaluate_cst() 925 if (i == 1 && cx.type != ACPI_STATE_C1) in acpi_processor_evaluate_cst() 928 cx.address = reg->address; in acpi_processor_evaluate_cst() 929 cx.index = last_index + 1; in acpi_processor_evaluate_cst() 932 if (!acpi_processor_ffh_cstate_probe(cpu, &cx, reg)) { in acpi_processor_evaluate_cst() 939 if (cx.type == ACPI_STATE_C1 && in acpi_processor_evaluate_cst() 941 cx.entry_method = ACPI_CSTATE_HALT; in acpi_processor_evaluate_cst() 942 snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI HLT"); in acpi_processor_evaluate_cst() [all …]
|
| /linux/arch/arm/mach-omap2/ |
| H A D | cpuidle44xx.c | 97 struct idle_statedata *cx = state_ptr + index; in omap_enter_idle_smp() local 101 cx->mpu_state_vote++; in omap_enter_idle_smp() 102 if (cx->mpu_state_vote == num_online_cpus()) { in omap_enter_idle_smp() 103 pwrdm_set_logic_retst(mpu_pd, cx->mpu_logic_state); in omap_enter_idle_smp() 104 omap_set_pwrdm_state(mpu_pd, cx->mpu_state); in omap_enter_idle_smp() 108 omap4_enter_lowpower(dev->cpu, cx->cpu_state, true); in omap_enter_idle_smp() 111 if (cx->mpu_state_vote == num_online_cpus()) in omap_enter_idle_smp() 113 cx->mpu_state_vote--; in omap_enter_idle_smp() 123 struct idle_statedata *cx = state_ptr + index; in omap_enter_idle_coupled() local 150 mpuss_can_lose_context = (cx->mpu_state == PWRDM_POWER_RET) && in omap_enter_idle_coupled() [all …]
|
| H A D | cpuidle34xx.c | 111 struct omap3_idle_statedata *cx = &omap3_idle_data[index]; in omap3_enter_idle() local 118 if (cx->flags & OMAP_CPUIDLE_CX_NO_CLKDM_IDLE) { in omap3_enter_idle() 121 pwrdm_set_next_pwrst(mpu_pd, cx->mpu_state); in omap3_enter_idle() 122 pwrdm_set_next_pwrst(core_pd, cx->core_state); in omap3_enter_idle() 129 if (cx->mpu_state == PWRDM_POWER_OFF) { in omap3_enter_idle() 142 if (cx->mpu_state == PWRDM_POWER_OFF && in omap3_enter_idle() 148 if (cx->flags & OMAP_CPUIDLE_CX_NO_CLKDM_IDLE) in omap3_enter_idle() 172 struct omap3_idle_statedata *cx = &omap3_idle_data[index]; in next_valid_state() local 190 if ((cx->mpu_state >= mpu_deepest_state) && in next_valid_state() 191 (cx->core_state >= core_deepest_state)) in next_valid_state() [all …]
|
| /linux/drivers/firmware/efi/libstub/ |
| H A D | printk.c | 30 u8 c0, cx; in utf8_to_utf32() local 33 c0 = cx = *(*s8)++; in utf8_to_utf32() 38 for (clen = 0; cx & 0x80; ++clen) in utf8_to_utf32() 39 cx <<= 1; in utf8_to_utf32() 49 c32 = cx >> clen--; in utf8_to_utf32() 52 cx = (*s8)[i] ^ 0x80; in utf8_to_utf32() 53 if (cx & 0xc0) in utf8_to_utf32() 55 c32 = (c32 << 6) | cx; in utf8_to_utf32()
|
| /linux/drivers/s390/char/ |
| H A D | con3270.c | 96 unsigned int cx, cy; /* Current output position. */ member 1269 if (line->len <= tp->cx) { in tty3270_put_character() 1270 while (line->len < tp->cx) { in tty3270_put_character() 1278 cell = line->cells + tp->cx; in tty3270_put_character() 1289 tp->cx = 0; in tty3270_cr() 1335 while (line->len < tp->cx) in tty3270_insert_characters() 1337 if (n > tp->view.cols - tp->cx) in tty3270_insert_characters() 1338 n = tp->view.cols - tp->cx; in tty3270_insert_characters() 1339 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n); in tty3270_insert_characters() 1341 line->cells[tp->cx + n + k] = line->cells[tp->cx + k]; in tty3270_insert_characters() [all …]
|
| /linux/arch/x86/realmode/rm/ |
| H A D | wakeup_asm.S | 50 movw $16, %cx 57 movw %cx, %ds 58 movw %cx, %es 59 movw %cx, %ss 60 movw %cx, %fs 61 movw %cx, %gs
|
| /linux/drivers/char/ |
| H A D | toshiba.c | 350 unsigned short bx,cx; in tosh_get_machine_id() local 380 cx = readw(bios + address); in tosh_get_machine_id() 381 address = 9+bx+cx; in tosh_get_machine_id() 382 cx = readw(bios + address); in tosh_get_machine_id() 383 address = 0xa+cx; in tosh_get_machine_id() 384 cx = readw(bios + address); in tosh_get_machine_id() 388 id = ((cx & 0xff)<<8)+((cx & 0xff00)>>8); in tosh_get_machine_id()
|
| /linux/drivers/xen/ |
| H A D | xen-acpi-processor.c | 60 struct acpi_processor_cx *cx; in push_cxx_to_hypervisor() local 69 cx = &_pr->power.states[i]; in push_cxx_to_hypervisor() 70 if (!cx->valid) in push_cxx_to_hypervisor() 76 if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) { in push_cxx_to_hypervisor() 82 if (cx->entry_method == ACPI_CSTATE_FFH) { in push_cxx_to_hypervisor() 89 dst_cx->reg.address = cx->address; in push_cxx_to_hypervisor() 91 dst_cx->type = cx->type; in push_cxx_to_hypervisor() 92 dst_cx->latency = cx->latency; in push_cxx_to_hypervisor() 117 cx = &_pr->power.states[i]; in push_cxx_to_hypervisor() 118 if (!cx->valid) in push_cxx_to_hypervisor() [all …]
|
| /linux/drivers/pmdomain/qcom/ |
| H A D | rpmhpd.c | 76 static struct rpmhpd cx = { variable 85 .peer = &cx, 143 .parent = &cx.pd, 222 [RPMHPD_CX] = &cx, 240 [SC8280XP_CX] = &cx, 261 [SA8775P_CX] = &cx, 284 [RPMHPD_CX] = &cx, 370 [RPMHPD_CX] = &cx, 385 [RPMHPD_CX] = &cx, 508 [RPMHPD_CX] = &cx, [all …]
|
| /linux/tools/testing/selftests/x86/ |
| H A D | check_initial_reg_state.c | 11 unsigned long ax, bx, cx, dx, si, di, bp, sp, flags; variable 63 if (ax || bx || cx || dx || si || di || bp in main() 72 SHOW(cx); in main()
|
| /linux/arch/x86/boot/ |
| H A D | apm.c | 34 if (!(oreg.cx & 0x02)) /* 32 bits supported? */ in query_apm_bios() 47 boot_params.apm_bios_info.cseg_16 = oreg.cx; in query_apm_bios() 70 boot_params.apm_bios_info.flags = oreg.cx; in query_apm_bios()
|
| /linux/arch/x86/math-emu/ |
| H A D | reg_u_add.S | 56 negw %cx 79 cmpw $32,%cx /* shrd only works for 0..31 bits */ 89 cmpw $64,%cx 114 cmpw $65,%cx
|