/linux/drivers/media/pci/cx18/ |
H A D | cx18-scb.c | 16 cx18_memset_io(cx, cx->scb, 0, 0x10000); in cx18_init_scb() 18 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); in cx18_init_scb() 19 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); in cx18_init_scb() 20 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx->scb->hpu2cpu_irq); in cx18_init_scb() 22 cx18_writel(cx, IRQ_PPU_TO_CPU, &cx->scb->ppu2cpu_irq); in cx18_init_scb() 24 cx18_writel(cx, IRQ_EPU_TO_CPU, &cx->scb->epu2cpu_irq); in cx18_init_scb() 27 cx18_writel(cx, IRQ_CPU_TO_APU, &cx->scb->cpu2apu_irq); in cx18_init_scb() 29 cx18_writel(cx, IRQ_HPU_TO_APU, &cx->scb->hpu2apu_irq); in cx18_init_scb() 31 cx18_writel(cx, IRQ_PPU_TO_APU, &cx->scb->ppu2apu_irq); in cx18_init_scb() 33 cx18_writel(cx, IRQ_EPU_TO_APU, &cx->scb->epu2apu_irq); in cx18_init_scb() [all …]
|
H A D | cx18-av-audio.c | 80 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq() 115 cx18_av_write(cx, 0x127, 0x58); in set_audclk_freq() 150 cx18_av_write(cx, 0x127, 0x56); in set_audclk_freq() 191 cx18_av_write(cx, 0x127, 0x70); in set_audclk_freq() 303 cx18_av_write(cx, 0x8d3, 0x1f); in cx18_av_audio_set_path() 385 v = cx18_av_read(cx, 0x803); in set_mute() 435 set_volume(cx, ctrl->val); in cx18_av_audio_s_ctrl() 438 set_bass(cx, ctrl->val); in cx18_av_audio_s_ctrl() 441 set_treble(cx, ctrl->val); in cx18_av_audio_s_ctrl() 444 set_balance(cx, ctrl->val); in cx18_av_audio_s_ctrl() [all …]
|
H A D | cx18-driver.c | 400 cx->card_name = cx->card->name; in cx18_process_eeprom() 401 cx->card_i2c = cx->card->i2c; in cx18_process_eeprom() 632 cx->std = cx18_parse_std(cx); in cx18_process_options() 682 cx->card_name = cx->card->name; in cx18_process_options() 683 cx->card_i2c = cx->card->i2c; in cx18_process_options() 702 cx->in_work_order[i].cx = cx; in cx18_init_in_work_orders() 883 cx->sd_extmux = cx18_find_hw(cx, cx->card->hw_muxer); in cx18_init_subdevs() 902 cx = kzalloc(sizeof(*cx), GFP_KERNEL); in cx18_probe() 1038 cx->std = cx->card->tuners[0].std; in cx18_probe() 1093 cx->tuner_std = cx->std; in cx18_probe() [all …]
|
H A D | cx18-gpio.c | 61 cx->gpio_val = (cx->gpio_val & ~mask) | (data & mask); in gpio_update() 100 cx->gpio_dir, cx->gpio_val); in gpiomux_log_status() 114 gpio_update(cx, cx->card->gpio_audio_input.mask, in gpiomux_s_radio() 140 gpio_update(cx, cx->card->gpio_audio_input.mask, data); in gpiomux_s_std() 199 cx->gpio_dir, cx->gpio_val); in resetctrl_log_status() 235 gpio_reset_seq(cx, (1 << cx->card->xceive_pin), 0, in resetctrl_reset() 257 cx->gpio_dir = cx->card->gpio_init.direction; in cx18_gpio_init() 258 cx->gpio_val = cx->card->gpio_init.initial_value; in cx18_gpio_init() 261 cx->gpio_dir |= 1 << cx->card->xceive_pin; in cx18_gpio_init() 262 cx->gpio_val |= 1 << cx->card->xceive_pin; in cx18_gpio_init() [all …]
|
H A D | cx18-firmware.c | 104 cx18_setup_page(cx, i); in load_cpu_fw_direct() 195 cx18_setup_page(cx, 0); in load_apu_fw_direct() 324 cx18_write_reg(cx, cx->card->ddr.chip_config, CX18_DDR_CHIP_CONFIG); in cx18_init_memory() 328 cx18_write_reg(cx, cx->card->ddr.refresh, CX18_DDR_REFRESH); in cx18_init_memory() 329 cx18_write_reg(cx, cx->card->ddr.timing1, CX18_DDR_TIMING1); in cx18_init_memory() 330 cx18_write_reg(cx, cx->card->ddr.timing2, CX18_DDR_TIMING2); in cx18_init_memory() 335 cx18_write_reg(cx, cx->card->ddr.tune_lane, CX18_DDR_TUNE_LANE); in cx18_init_memory() 336 cx18_write_reg(cx, cx->card->ddr.initial_emrs, CX18_DDR_INITIAL_EMRS); in cx18_init_memory() 392 sz = load_cpu_fw_direct(CX18_CPU_FIRMWARE, cx->enc_mem, cx); in cx18_firmware_init() 397 cx18_init_scb(cx); in cx18_firmware_init() [all …]
|
H A D | cx18-i2c.c | 154 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; in cx18_setscl() local 167 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; in cx18_setsda() local 180 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; in cx18_getscl() local 225 cx->i2c_algo_cb_data[i].cx = cx; in init_cx18_i2c() 227 cx->i2c_algo[i].data = &cx->i2c_algo_cb_data[i]; in init_cx18_i2c() 231 cx->i2c_adap[i].algo_data = &cx->i2c_algo[i]; in init_cx18_i2c() 232 sprintf(cx->i2c_adap[i].name + strlen(cx->i2c_adap[i].name), in init_cx18_i2c() 234 i2c_set_adapdata(&cx->i2c_adap[i], &cx->v4l2_dev); in init_cx18_i2c() 235 cx->i2c_adap[i].dev.parent = &cx->pci_dev->dev; in init_cx18_i2c() 292 cx18_write_reg(cx, cx18_read_reg(cx, CX18_REG_I2C_1_WR) | 4, in exit_cx18_i2c() [all …]
|
H A D | cx18-ioctl.c | 56 struct cx18 *cx = id->cx; in cx18_g_fmt_vid_cap() local 80 struct cx18 *cx = id->cx; in cx18_try_fmt_vid_cap() local 125 struct cx18 *cx = id->cx; in cx18_s_fmt_vid_cap() local 334 struct cx18 *cx = id->cx; in cx18_s_fmt_vbi_cap() local 364 struct cx18 *cx = id->cx; in cx18_s_fmt_sliced_vbi_cap() local 424 struct cx18 *cx = id->cx; in cx18_querycap() local 527 struct cx18 *cx = id->cx; in cx18_s_input() local 576 struct cx18 *cx = id->cx; in cx18_s_frequency() local 599 struct cx18 *cx = id->cx; in cx18_s_std() local 648 struct cx18 *cx = id->cx; in cx18_s_tuner() local [all …]
|
H A D | cx18-av-core.c | 20 u32 x = cx18_read_reg(cx, reg); in cx18_av_write() 23 cx18_write_reg(cx, x, reg); in cx18_av_write() 120 cx18_av_loadfw(cx); in cx18_av_initialize() 184 cx18_av_init(cx); in cx18_av_initialize() 565 input_change(cx); in cx18_av_s_frequency() 738 input_change(cx); in set_input() 891 cx18_av_std_setup(cx); in cx18_av_s_std() 892 input_change(cx); in cx18_av_s_std() 1217 log_video_status(cx); in cx18_av_log_status() 1218 log_audio_status(cx); in cx18_av_log_status() [all …]
|
H A D | cx18-io.h | 61 cx18_writel_noretry(cx, val, addr); in cx18_writel() 62 if (val == cx18_readl(cx, addr)) in cx18_writel() 76 r = cx18_readl(cx, addr); in cx18_writel_expect() 100 if (val == cx18_readw(cx, addr)) in cx18_writew() 121 if (val == cx18_readb(cx, addr)) in cx18_writeb() 139 cx18_writel_noretry(cx, val, cx->reg_mem + reg); in cx18_write_reg_noretry() 144 cx18_writel(cx, val, cx->reg_mem + reg); in cx18_write_reg() 150 cx18_writel_expect(cx, val, cx->reg_mem + reg, eval, mask); in cx18_write_reg_expect() 155 return cx18_readl(cx, cx->reg_mem + reg); in cx18_read_reg() 162 cx18_writel(cx, val, cx->enc_mem + addr); in cx18_write_enc() [all …]
|
H A D | cx18-io.c | 26 cx18_writew(cx, val2, dst); in cx18_memset_io() 31 cx18_writel(cx, val4, dst); in cx18_memset_io() 36 cx18_writew(cx, val2, dst); in cx18_memset_io() 47 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PCI) | val; in cx18_sw1_irq_enable() 48 cx18_write_reg(cx, cx->sw1_irq_mask, SW1_INT_ENABLE_PCI); in cx18_sw1_irq_enable() 53 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PCI) & ~val; in cx18_sw1_irq_disable() 54 cx18_write_reg(cx, cx->sw1_irq_mask, SW1_INT_ENABLE_PCI); in cx18_sw1_irq_disable() 60 cx->sw2_irq_mask = cx18_read_reg(cx, SW2_INT_ENABLE_PCI) | val; in cx18_sw2_irq_enable() 61 cx18_write_reg(cx, cx->sw2_irq_mask, SW2_INT_ENABLE_PCI); in cx18_sw2_irq_enable() 66 cx->sw2_irq_mask = cx18_read_reg(cx, SW2_INT_ENABLE_PCI) & ~val; in cx18_sw2_irq_disable() [all …]
|
H A D | cx18-streams.c | 109 struct cx18 *cx = s->cx; in cx18_queue_setup() local 156 struct cx18 *cx = s->cx; in cx18_buf_prepare() local 245 s->cx = cx; in cx18_stream_init() 320 s->cx = cx; in cx18_prep_dev() 552 struct cx18 *cx = s->cx; in cx18_vbi_setup() local 569 v4l2_subdev_call(cx->sd_av, vbi, s_raw_fmt, &cx->vbi.in.fmt.vbi); in cx18_vbi_setup() 690 struct cx18 *cx = s->cx; in _cx18_stream_put_mdl_fw() local 705 (void __iomem *) &cx->scb->cpu_mdl[mdl->id] - cx->enc_mem, in _cx18_stream_put_mdl_fw() 785 struct cx18 *cx = s->cx; in cx18_start_v4l2_encode_stream() local 797 cx->mpg_data_received = cx->vbi_data_inserted = 0; in cx18_start_v4l2_encode_stream() [all …]
|
H A D | cx18-fileops.c | 32 struct cx18 *cx = id->cx; in cx18_claim_stream() local 91 struct cx18 *cx = s->cx; in cx18_release_stream() local 172 struct cx18 *cx = s->cx; in cx18_get_mdl() local 262 struct cx18 *cx = s->cx; in cx18_copy_buf_to_user() local 408 struct cx18 *cx = s->cx; in cx18_read() local 474 struct cx18 *cx = s->cx; in cx18_read_pos() local 484 struct cx18 *cx = id->cx; in cx18_start_capture() local 642 struct cx18 *cx = s->cx; in cx18_stop_capture() local 729 struct cx18 *cx = s->cx; in cx18_serialized_open() local 742 item->cx = cx; in cx18_serialized_open() [all …]
|
H A D | cx18-mailbox.c | 219 cx->pcm_announce_callback(cx->alsa, buf->buf, in cx18_mdl_send_to_alsa() 227 cx->pcm_announce_callback(cx->alsa, buf->buf, buf->bytesused); in cx18_mdl_send_to_alsa() 373 struct cx18 *cx = order->cx; in cx18_in_work_handler() local 374 epu_cmd(cx, order); in cx18_in_work_handler() 437 cx18_readl(cx, cx->enc_mem + mdl_ack_offset + i); in epu_dma_done_irq() 454 cx18_memcpy_fromio(cx, str, cx->enc_mem + str_offset, 252); in epu_debug_irq() 736 struct cx18 *cx = s->cx; in cx18_set_filter_param() local 740 mode = (cx->filter_mode & 1) ? 2 : (cx->spatial_strength ? 1 : 0); in cx18_set_filter_param() 743 mode = (cx->filter_mode & 2) ? 2 : (cx->temporal_strength ? 1 : 0); in cx18_set_filter_param() 755 struct cx18 *cx = s->cx; in cx18_api_func() local [all …]
|
H A D | cx18-av-firmware.c | 24 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_verifyfw() 32 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw() 63 int cx18_av_loadfw(struct cx18 *cx) in cx18_av_loadfw() argument 65 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_loadfw() 130 cx18_av_write4_expect(cx, CXADEC_DL_CTL, in cx18_av_loadfw() 135 if (cx18_av_verifyfw(cx, fw) == 0) in cx18_av_loadfw() 136 cx18_av_write4_expect(cx, CXADEC_DL_CTL, in cx18_av_loadfw() 169 cx18_av_write4(cx, 0x09CC, 1); in cx18_av_loadfw() 171 v = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_av_loadfw() 178 v = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_av_loadfw() [all …]
|
H A D | cx18-irq.c | 15 static void xpu_ack(struct cx18 *cx, u32 sw2) in xpu_ack() argument 18 wake_up(&cx->mb_cpu_waitq); in xpu_ack() 20 wake_up(&cx->mb_apu_waitq); in xpu_ack() 26 cx18_api_epu_cmd_irq(cx, CPU); in epu_cmd() 28 cx18_api_epu_cmd_irq(cx, APU); in epu_cmd() 33 struct cx18 *cx = dev_id; in cx18_irq_handler() local 36 sw1 = cx18_read_reg(cx, SW1_INT_STATUS) & cx->sw1_irq_mask; in cx18_irq_handler() 37 sw2 = cx18_read_reg(cx, SW2_INT_STATUS) & cx->sw2_irq_mask; in cx18_irq_handler() 38 hw2 = cx18_read_reg(cx, HW2_INT_CLR_STATUS) & cx->hw2_irq_mask; in cx18_irq_handler() 56 epu_cmd(cx, sw1); in cx18_irq_handler() [all …]
|
H A D | cx18-controls.c | 24 if (atomic_read(&cx->ana_capturing) > 0) in cx18_s_stream_vbi_fmt() 38 if (cx->vbi.sliced_mpeg_data[0] == NULL) { in cx18_s_stream_vbi_fmt() 42 cx->vbi.sliced_mpeg_data[i] = in cx18_s_stream_vbi_fmt() 46 kfree(cx->vbi.sliced_mpeg_data[i]); in cx18_s_stream_vbi_fmt() 47 cx->vbi.sliced_mpeg_data[i] = NULL; in cx18_s_stream_vbi_fmt() 49 cx->vbi.insert_mpeg = in cx18_s_stream_vbi_fmt() 57 cx->vbi.insert_mpeg = fmt; in cx18_s_stream_vbi_fmt() 65 if (cx->is_60hz) in cx18_s_stream_vbi_fmt() 66 cx->vbi.sliced_in->service_set = in cx18_s_stream_vbi_fmt() 70 cx18_expand_service_set(cx->vbi.sliced_in, cx->is_50hz); in cx18_s_stream_vbi_fmt() [all …]
|
H A D | cx18-vbi.c | 98 u32 lines = cx->vbi.count * 2; in compress_raw_buf() 200 if (cx18_raw_vbi(cx)) { in _cx18_process_vbi_data() 210 memcpy(p, &cx->vbi.frame, 4); in _cx18_process_vbi_data() 211 cx->vbi.frame++; in _cx18_process_vbi_data() 224 cx->vbi.sliced_data[0].id = 0; in _cx18_process_vbi_data() 225 cx->vbi.sliced_data[0].line = 0; in _cx18_process_vbi_data() 226 cx->vbi.sliced_data[0].field = 0; in _cx18_process_vbi_data() 232 if (cx->vbi.insert_mpeg) in _cx18_process_vbi_data() 233 copy_vbi_data(cx, lines, pts); in _cx18_process_vbi_data() 234 cx->vbi.frame++; in _cx18_process_vbi_data() [all …]
|
H A D | cx18-av-vbi.c | 120 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_g_sliced_fmt() local 136 if ((cx18_av_read(cx, 0x404) & 0x10) == 0) in cx18_av_g_sliced_fmt() 141 u8 v = cx18_av_read(cx, 0x424 + i - 7); in cx18_av_g_sliced_fmt() 167 cx18_av_std_setup(cx); in cx18_av_s_raw_fmt() 171 cx18_av_write(cx, 0x404, 0x2e); in cx18_av_s_raw_fmt() 187 cx18_av_std_setup(cx); in cx18_av_s_sliced_fmt() 191 cx18_av_write(cx, 0x406, 0x13); in cx18_av_s_sliced_fmt() 231 cx18_av_write(cx, i, lcr[6 + x]); in cx18_av_s_sliced_fmt() 234 cx18_av_write(cx, i, lcr[9 + x]); in cx18_av_s_sliced_fmt() 236 cx18_av_write(cx, i, 0); in cx18_av_s_sliced_fmt() [all …]
|
H A D | cx18-dvb.c | 125 struct cx18 *cx = stream->cx; in yuan_mpc718_mt352_reqfw() local 238 struct cx18 *cx; in cx18_dvb_start_feed() local 245 cx = stream->cx; in cx18_dvb_start_feed() 258 switch (cx->card->type) { in cx18_dvb_start_feed() 309 struct cx18 *cx; in cx18_dvb_stop_feed() local 313 cx = stream->cx; in cx18_dvb_stop_feed() 333 struct cx18 *cx = stream->cx; in cx18_dvb_register() local 425 struct cx18 *cx = stream->cx; in cx18_dvb_unregister() local 457 struct cx18 *cx = stream->cx; in dvb_register() local 465 &cx->i2c_adap[0]); in dvb_register() [all …]
|
H A D | cx18-audio.c | 23 int cx18_audio_set_io(struct cx18 *cx) in cx18_audio_set_io() argument 30 if (test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)) in cx18_audio_set_io() 31 in = &cx->card->radio_input; in cx18_audio_set_io() 33 in = &cx->card->audio_inputs[cx->audio_input]; in cx18_audio_set_io() 36 v4l2_subdev_call(cx->sd_extmux, audio, s_routing, in cx18_audio_set_io() 39 err = cx18_call_hw_err(cx, cx->card->hw_audio_ctrl, in cx18_audio_set_io() 45 u = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_audio_set_io() 72 cx18_write_reg_expect(cx, u | 0xb00, CX18_AUDIO_ENABLE, in cx18_audio_set_io() 75 cx18_write_reg_expect(cx, v | 0xb00, CX18_AUDIO_ENABLE, in cx18_audio_set_io()
|
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() 190 cx = to_cx18(v4l2_dev); in cx18_alsa_load() 191 if (cx == NULL) { in cx18_alsa_load() 203 if (cx->alsa != NULL) { in cx18_alsa_load() [all …]
|
/linux/fs/orangefs/ |
H A D | xattr.c | 79 return cx; in find_cached_xattr() 128 if (cx && time_before(jiffies, cx->timeout)) { in orangefs_inode_getxattr() 141 memcpy(buffer, cx->val, cx->length); in orangefs_inode_getxattr() 142 memset(buffer + cx->length, 0, size - cx->length); in orangefs_inode_getxattr() 172 cx = kmalloc(sizeof *cx, GFP_KERNEL); in orangefs_inode_getxattr() 173 if (cx) { in orangefs_inode_getxattr() 220 if (cx) { in orangefs_inode_getxattr() 226 cx = kmalloc(sizeof *cx, GFP_KERNEL); in orangefs_inode_getxattr() 227 if (cx) { in orangefs_inode_getxattr() 298 kfree(cx); in orangefs_inode_removexattr() [all …]
|
/linux/arch/x86/kernel/acpi/ |
H A D | cstate.c | 124 struct acpi_processor_cx *cx = _cx; in acpi_processor_ffh_cstate_probe_cpu() local 134 cstate_type = (((cx->address >> MWAIT_SUBSTATE_SIZE) & in acpi_processor_ffh_cstate_probe_cpu() 143 cx->address, edx_part); in acpi_processor_ffh_cstate_probe_cpu() 159 cx->type); in acpi_processor_ffh_cstate_probe_cpu() 161 snprintf(cx->desc, in acpi_processor_ffh_cstate_probe_cpu() 163 cx->address); in acpi_processor_ffh_cstate_probe_cpu() 182 percpu_entry->states[cx->index].eax = 0; in acpi_processor_ffh_cstate_probe() 183 percpu_entry->states[cx->index].ecx = 0; in acpi_processor_ffh_cstate_probe() 191 percpu_entry->states[cx->index].eax = cx->address; in acpi_processor_ffh_cstate_probe() 201 cx->bm_sts_skip = 1; in acpi_processor_ffh_cstate_probe() [all …]
|
/linux/drivers/acpi/ |
H A D | processor_idle.c | 317 if (!cx->address) in acpi_processor_power_verify_c3() 376 cx->valid = 1; in acpi_processor_power_verify_c3() 425 cx->valid = 1; in acpi_processor_power_verify() 429 if (!cx->address) in acpi_processor_power_verify() 431 cx->valid = 1; in acpi_processor_power_verify() 438 if (!cx->valid) in acpi_processor_power_verify() 440 if (cx->type >= last_type && cx->latency < last_latency) in acpi_processor_power_verify() 650 cx = &safe_cx; in acpi_idle_enter_bm() 755 if (!cx->valid) in acpi_processor_setup_cpuidle_cx() 800 if (!cx->valid) in acpi_processor_setup_cstates() [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() 104 omap_set_pwrdm_state(mpu_pd, cx->mpu_state); 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 151 (cx->mpu_logic_state == PWRDM_POWER_OFF); in omap_enter_idle_coupled() 169 omap_set_pwrdm_state(mpu_pd, cx->mpu_state); in omap_enter_idle_coupled() 179 cx = state_ptr + index; in omap_enter_idle_coupled() [all …]
|