/drivers/media/video/cx18/ |
H A D | cx18-scb.c | 27 void cx18_init_scb(struct cx18 *cx) argument 29 cx18_setup_page(cx, SCB_OFFSET); 30 cx18_memset_io(cx, cx->scb, 0, 0x10000); 32 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); 33 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); 34 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx [all...] |
H A D | cx18-video.c | 26 void cx18_video_set_io(struct cx18 *cx) argument 28 int inp = cx->active_input; 30 v4l2_subdev_call(cx->sd_av, video, s_routing, 31 cx->card->video_inputs[inp].video_input, 0, 0);
|
H A D | cx18-irq.c | 29 static void xpu_ack(struct cx18 *cx, u32 sw2) argument 32 wake_up(&cx->mb_cpu_waitq); 34 wake_up(&cx->mb_apu_waitq); 37 static void epu_cmd(struct cx18 *cx, u32 sw1) argument 40 cx18_api_epu_cmd_irq(cx, CPU); 42 cx18_api_epu_cmd_irq(cx, APU); 47 struct cx18 *cx = (struct cx18 *)dev_id; local 50 sw1 = cx18_read_reg(cx, SW1_INT_STATUS) & cx->sw1_irq_mask; 51 sw2 = cx18_read_reg(cx, SW2_INT_STATU [all...] |
H A D | cx18-audio.c | 37 int cx18_audio_set_io(struct cx18 *cx) argument 44 if (test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)) 45 in = &cx->card->radio_input; 47 in = &cx->card->audio_inputs[cx->audio_input]; 50 v4l2_subdev_call(cx->sd_extmux, audio, s_routing, 53 err = cx18_call_hw_err(cx, cx->card->hw_audio_ctrl, 59 u = cx18_read_reg(cx, CX18_AUDIO_ENABLE); 86 cx18_write_reg_expect(cx, [all...] |
H A D | cx18-controls.c | 35 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); local 38 if (atomic_read(&cx->ana_capturing) > 0) 46 cx->vbi.insert_mpeg = V4L2_MPEG_STREAM_VBI_FMT_NONE; 53 if (cx->vbi.sliced_mpeg_data[0] == NULL) { 57 cx->vbi.sliced_mpeg_data[i] = 59 if (cx->vbi.sliced_mpeg_data[i] == NULL) { 61 kfree(cx->vbi.sliced_mpeg_data[i]); 62 cx->vbi.sliced_mpeg_data[i] = NULL; 64 cx->vbi.insert_mpeg = 73 cx 94 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); local 109 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); local 120 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); local [all...] |
H A D | cx18-io.c | 27 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) argument 35 cx18_writeb(cx, (u8) val, dst); 40 cx18_writew(cx, val2, dst); 45 cx18_writel(cx, val4, dst); 50 cx18_writew(cx, val2, dst); 55 cx18_writeb(cx, (u8) val, dst); 58 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) argument 60 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); 61 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PC 65 cx18_sw1_irq_disable(struct cx18 *cx, u32 val) argument 71 cx18_sw2_irq_enable(struct cx18 *cx, u32 val) argument 78 cx18_sw2_irq_disable(struct cx18 *cx, u32 val) argument 84 cx18_sw2_irq_disable_cpu(struct cx18 *cx, u32 val) argument 91 cx18_setup_page(struct cx18 *cx, u32 addr) argument [all...] |
H A D | cx18-alsa-mixer.c | 88 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); local 96 ret = v4l2_subdev_call(cx->sd_av, core, g_ctrl, &vctrl); 108 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); local 118 ret = v4l2_subdev_call(cx->sd_av, core, g_ctrl, &vctrl); 125 ret = v4l2_subdev_call(cx->sd_av, core, s_ctrl, &vctrl);
|
H A D | cx18-alsa.h | 41 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); local 42 mutex_lock(&cx->serialize_lock); 47 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); local 48 mutex_unlock(&cx->serialize_lock);
|
H A D | cx18-alsa-main.c | 117 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); local 125 cx->instance); 130 cx->instance, cx->card_name); 137 struct cx18 *cx = to_cx18(v4l2_dev); local 145 /* This is a no-op for us. We'll use the cx->instance */ 179 cx->alsa = cxsc; 184 cx->alsa = NULL; 200 int cx18_alsa_load(struct cx18 *cx) argument 202 struct v4l2_device *v4l2_dev = &cx 249 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); local [all...] |
H A D | cx18-av-audio.c | 27 static int set_audclk_freq(struct cx18 *cx, u32 freq) argument 29 struct cx18_av_state *state = &cx->av_state; 77 cx18_av_write4(cx, 0x108, 0x200d040f); 81 cx18_av_write4(cx, 0x10c, 0x002be2fe); 85 cx18_av_write4(cx, 0x110, 0x0176740c); 89 cx18_av_write4(cx, 0x900, 0x0801f77f); 90 cx18_av_write4(cx, 0x904, 0x0801f77f); 91 cx18_av_write4(cx, 0x90c, 0x0801f77f); 94 cx18_av_write(cx, 0x127, 0x60); 97 cx18_av_write4(cx, 303 cx18_av_audio_set_path(struct cx18 *cx) argument 345 set_volume(struct cx18 *cx, int volume) argument 361 set_bass(struct cx18 *cx, int bass) argument 367 set_treble(struct cx18 *cx, int treble) argument 373 set_balance(struct cx18 *cx, int balance) argument 389 set_mute(struct cx18 *cx, int mute) argument 418 struct cx18 *cx = v4l2_get_subdevdata(sd); local 445 struct cx18 *cx = v4l2_get_subdevdata(sd); local [all...] |
H A D | cx18-av-firmware.c | 36 static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw) argument 38 struct v4l2_subdev *sd = &cx->av_state.sd; 46 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); 50 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, dl_control); 51 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); 56 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); 70 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); 78 int cx18_av_loadfw(struct cx18 *cx) argument 80 struct v4l2_subdev *sd = &cx->av_state.sd; 88 if (request_firmware(&fw, FWFILE, &cx [all...] |
H A D | cx18-av-vbi.c | 134 struct cx18 *cx = v4l2_get_subdevdata(sd); local 135 struct cx18_av_state *state = &cx->av_state; 148 if ((cx18_av_read(cx, 0x404) & 0x10) == 0) 153 u8 v = cx18_av_read(cx, 0x424 + i - 7); 162 u8 v = cx18_av_read(cx, 0x424 + i - 10); 175 struct cx18 *cx = v4l2_get_subdevdata(sd); local 176 struct cx18_av_state *state = &cx->av_state; 179 cx18_av_std_setup(cx); 182 cx18_av_write(cx, 0x47f, state->slicer_line_delay); 183 cx18_av_write(cx, 189 struct cx18 *cx = v4l2_get_subdevdata(sd); local 260 struct cx18 *cx = v4l2_get_subdevdata(sd); local [all...] |
H A D | cx18-cards.c | 594 int cx18_get_input(struct cx18 *cx, u16 index, struct v4l2_input *input) argument 597 cx->card->video_inputs + index; 607 if (index >= cx->nof_inputs) 614 input->audioset = (1 << cx->nof_audio_inputs) - 1; 616 cx->tuner_std : V4L2_STD_ALL; 620 int cx18_get_audio_input(struct cx18 *cx, u16 index, struct v4l2_audio *audio) argument 623 cx->card->audio_inputs + index; 631 if (index >= cx->nof_audio_inputs)
|
H A D | cx18-dvb.c | 137 struct cx18 *cx = stream->cx; local 141 ret = request_firmware(fw, fn, &cx->pci_dev->dev); 252 struct cx18 *cx; local 259 cx = stream->cx; 263 mutex_lock(&cx->serialize_lock); 264 ret = cx18_init_on_first_open(cx); 265 mutex_unlock(&cx->serialize_lock); 272 switch (cx 323 struct cx18 *cx; local 347 struct cx18 *cx = stream->cx; local 439 struct cx18 *cx = stream->cx; local 471 struct cx18 *cx = stream->cx; local [all...] |
H A D | cx18-io.h | 38 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) argument 44 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) argument 49 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) argument 53 cx18_raw_writel_noretry(cx, val, addr); 54 if (val == cx18_raw_readl(cx, addr)) 60 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) argument 66 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) argument 71 static inline void cx18_writel(struct cx18 *cx, u32 val, void __iomem *addr) argument 75 cx18_writel_noretry(cx, val, addr); 76 if (val == cx18_readl(cx, add 82 cx18_writel_expect(struct cx18 *cx, u32 val, void __iomem *addr, u32 eval, u32 mask) argument 98 cx18_readw(struct cx18 *cx, const void __iomem *addr) argument 104 cx18_writew_noretry(struct cx18 *cx, u16 val, void __iomem *addr) argument 109 cx18_writew(struct cx18 *cx, u16 val, void __iomem *addr) argument 119 cx18_readb(struct cx18 *cx, const void __iomem *addr) argument 125 cx18_writeb_noretry(struct cx18 *cx, u8 val, void __iomem *addr) argument 130 cx18_writeb(struct cx18 *cx, u8 val, void __iomem *addr) argument 141 cx18_memcpy_fromio(struct cx18 *cx, void *to, const void __iomem *from, unsigned int len) argument 151 cx18_write_reg_noretry(struct cx18 *cx, u32 val, u32 reg) argument 156 cx18_write_reg(struct cx18 *cx, u32 val, u32 reg) argument 161 cx18_write_reg_expect(struct cx18 *cx, u32 val, u32 reg, u32 eval, u32 mask) argument 167 cx18_read_reg(struct cx18 *cx, u32 reg) argument 174 cx18_write_enc(struct cx18 *cx, u32 val, u32 addr) argument 179 cx18_read_enc(struct cx18 *cx, u32 addr) argument [all...] |
H A D | cx18-queue.c | 142 struct cx18 *cx = s->cx; local 279 struct cx18 *cx = s->cx; local 307 cx18_writel(cx, buf->dma_handle, 308 &cx->scb->cpu_mdl[mdl_id + i].paddr); 309 cx18_writel(cx, s->buf_size, 310 &cx->scb->cpu_mdl[mdl_id + i].length); 323 cx18_writel(cx, partial_buf_size, 324 &cx 349 struct cx18 *cx = s->cx; local 422 struct cx18 *cx = s->cx; local [all...] |
H A D | cx18-vbi.c | 39 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) argument 59 int idx = cx->vbi.frame % CX18_VBI_FRAMES; 60 u8 *dst = &cx->vbi.sliced_mpeg_data[idx][0]; 63 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; 103 cx->vbi.sliced_mpeg_size[idx] = sd + size; 109 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) argument 112 u32 lines = cx->vbi.count * 2; 142 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, argument 148 u32 line_size = cx->is_60hz ? vbi_hblank_samples_60Hz 177 v4l2_subdev_call(cx 189 _cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf) argument 251 cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl, int streamtype) argument [all...] |
H A D | cx18-alsa-pcm.c | 153 struct cx18 *cx = to_cx18(v4l2_dev); local 160 s = &cx->streams[CX18_ENC_STREAM_TYPE_PCM]; 162 item.cx = cx; 164 item.open_id = cx->open_id++; 184 runtime->private_data = cx; 186 cx->pcm_announce_callback = cx18_alsa_announce_pcm_data; 200 struct cx18 *cx = to_cx18(v4l2_dev); local 206 s = &cx->streams[CX18_ENC_STREAM_TYPE_PCM]; 212 cx 334 struct cx18 *cx = to_cx18(v4l2_dev); local [all...] |
H A D | cx18-gpio.c | 52 static void gpio_write(struct cx18 *cx) argument 54 u32 dir_lo = cx->gpio_dir & 0xffff; 55 u32 val_lo = cx->gpio_val & 0xffff; 56 u32 dir_hi = cx->gpio_dir >> 16; 57 u32 val_hi = cx->gpio_val >> 16; 59 cx18_write_reg_expect(cx, dir_lo << 16, 61 cx18_write_reg_expect(cx, (dir_lo << 16) | val_lo, 63 cx18_write_reg_expect(cx, dir_hi << 16, 65 cx18_write_reg_expect(cx, (dir_hi << 16) | val_hi, 69 static void gpio_update(struct cx18 *cx, u3 argument 80 gpio_reset_seq(struct cx18 *cx, u32 active_lo, u32 active_hi, unsigned int assert_msecs, unsigned int recovery_msecs) argument 110 struct cx18 *cx = v4l2_get_subdevdata(sd); local 121 struct cx18 *cx = v4l2_get_subdevdata(sd); local 135 struct cx18 *cx = v4l2_get_subdevdata(sd); local 161 struct cx18 *cx = v4l2_get_subdevdata(sd); local 205 struct cx18 *cx = v4l2_get_subdevdata(sd); local 216 struct cx18 *cx = v4l2_get_subdevdata(sd); local 264 cx18_gpio_init(struct cx18 *cx) argument 290 cx18_gpio_register(struct cx18 *cx, u32 hw) argument 320 struct cx18 *cx = to_cx18((struct v4l2_device *)data); local 338 struct cx18 *cx = cb_data->cx; local [all...] |
H A D | cx18-i2c.c | 86 static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw, argument 90 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; 102 init_data->name = cx->card_name; 111 int cx18_i2c_register(struct cx18 *cx, unsigned idx) argument 115 struct i2c_adapter *adap = &cx->i2c_adap[bus]; 124 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, 125 adap, type, 0, cx->card_i2c->radio); 128 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, 129 adap, type, 0, cx->card_i2c->demod); 132 sd = v4l2_i2c_new_subdev(&cx 155 cx18_find_hw(struct cx18 *cx, u32 hw) argument 173 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; local 186 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; local 199 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; local 208 struct cx18 *cx = ((struct cx18_i2c_algo_callback_data *)data)->cx; local 236 init_cx18_i2c(struct cx18 *cx) argument 309 exit_cx18_i2c(struct cx18 *cx) argument [all...] |
H A D | cx18-fileops.c | 45 struct cx18 *cx = id->cx; local 46 struct cx18_stream *s = &cx->streams[type]; 87 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; 88 if (cx->vbi.insert_mpeg && !cx18_raw_vbi(cx)) 89 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; 105 struct cx18 *cx = s->cx; local 139 s_assoc = &cx 160 cx18_dualwatch(struct cx18 *cx) argument 186 struct cx18 *cx = s->cx; local 258 cx18_setup_sliced_vbi_mdl(struct cx18 *cx) argument 276 struct cx18 *cx = s->cx; local 422 struct cx18 *cx = s->cx; local 488 struct cx18 *cx = s->cx; local 498 struct cx18 *cx = id->cx; local 589 struct cx18 *cx = id->cx; local 613 struct cx18 *cx = id->cx; local 655 struct cx18 *cx = id->cx; local 706 struct cx18 *cx = id->cx; local 749 struct cx18 *cx = id->cx; local 789 struct cx18 *cx = s->cx; local 841 struct cx18 *cx = s->cx; local 855 cx18_mute(struct cx18 *cx) argument 868 cx18_unmute(struct cx18 *cx) argument [all...] |
H A D | cx18-firmware.c | 101 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) argument 109 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { 118 cx18_setup_page(cx, i); 121 cx18_raw_writel(cx, *src, dst); 122 if (cx18_raw_readl(cx, dst) != *src) { 125 cx18_setup_page(cx, 0); 132 if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags)) 136 cx18_setup_page(cx, SCB_OFFSET); 140 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, argument 153 if (request_firmware(&fw, fn, &cx 208 cx18_halt_firmware(struct cx18 *cx) argument 217 cx18_init_power(struct cx18 *cx, int lowpwr) argument 326 cx18_init_memory(struct cx18 *cx) argument 374 cx18_firmware_init(struct cx18 *cx) argument [all...] |
/drivers/char/ |
H A D | toshiba.c | 376 unsigned short bx,cx; local 406 cx = readw(bios + address); 407 address = 9+bx+cx; 408 cx = readw(bios + address); 409 address = 0xa+cx; 410 cx = readw(bios + address); 414 id = ((cx & 0xff)<<8)+((cx & 0xff00)>>8);
|
/drivers/xen/ |
H A D | xen-acpi-processor.c | 66 struct acpi_processor_cx *cx; local 76 cx = &_pr->power.states[i]; 77 if (!cx->valid) 83 if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) { 89 if (cx->entry_method == ACPI_CSTATE_FFH) { 96 dst_cx->reg.address = cx->address; 98 dst_cx->type = cx->type; 99 dst_cx->latency = cx->latency; 100 dst_cx->power = cx->power; 125 cx [all...] |
/drivers/acpi/ |
H A D | processor_idle.c | 156 struct acpi_processor_cx *cx) 174 if (cx->type >= type) 197 struct acpi_processor_cx *cx, 200 int state = cx - pr->power.states; 217 struct acpi_processor_cx *cx, 400 struct acpi_processor_cx cx; local 402 memset(&cx, 0, sizeof(cx)); 427 cx.type = obj->integer.value; 432 if (i == 1 && cx 155 lapic_timer_check_state(int state, struct acpi_processor *pr, struct acpi_processor_cx *cx) argument 196 lapic_timer_state_broadcast(struct acpi_processor *pr, struct acpi_processor_cx *cx, int broadcast) argument 216 lapic_timer_state_broadcast(struct acpi_processor *pr, struct acpi_processor_cx *cx, int broadcast) argument 521 acpi_processor_power_verify_c3(struct acpi_processor *pr, struct acpi_processor_cx *cx) argument 611 struct acpi_processor_cx *cx = &pr->power.states[i]; local 712 acpi_idle_do_entry(struct acpi_processor_cx *cx) argument 747 struct acpi_processor_cx *cx = cpuidle_get_statedata(state_usage); local 782 struct acpi_processor_cx *cx = cpuidle_get_statedata(state_usage); local 813 struct acpi_processor_cx *cx = cpuidle_get_statedata(state_usage); local 892 struct acpi_processor_cx *cx = cpuidle_get_statedata(state_usage); local 1010 struct acpi_processor_cx *cx; local 1064 struct acpi_processor_cx *cx; local [all...] |