Home
last modified time | relevance | path

Searched refs:cx (Results 1 – 135 of 135) sorted by relevance

/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-av-audio.c27 static int set_audclk_freq(struct cx18 *cx, u32 freq) in set_audclk_freq() argument
29 struct cx18_av_state *state = &cx->av_state; in set_audclk_freq()
77 cx18_av_write4(cx, 0x108, 0x200d040f); in set_audclk_freq()
81 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
85 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq()
89 cx18_av_write4(cx, 0x900, 0x0801f77f); in set_audclk_freq()
90 cx18_av_write4(cx, 0x904, 0x0801f77f); in set_audclk_freq()
91 cx18_av_write4(cx, 0x90c, 0x0801f77f); in set_audclk_freq()
94 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq()
97 cx18_av_write4(cx, 0x12c, 0x11202fff); in set_audclk_freq()
[all …]
Dcx18-scb.c27 void cx18_init_scb(struct cx18 *cx) in cx18_init_scb() argument
29 cx18_setup_page(cx, SCB_OFFSET); in cx18_init_scb()
30 cx18_memset_io(cx, cx->scb, 0, 0x10000); in cx18_init_scb()
32 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); in cx18_init_scb()
33 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); in cx18_init_scb()
34 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx->scb->hpu2cpu_irq); in cx18_init_scb()
35 cx18_writel(cx, IRQ_CPU_TO_HPU_ACK, &cx->scb->cpu2hpu_irq_ack); in cx18_init_scb()
36 cx18_writel(cx, IRQ_PPU_TO_CPU, &cx->scb->ppu2cpu_irq); in cx18_init_scb()
37 cx18_writel(cx, IRQ_CPU_TO_PPU_ACK, &cx->scb->cpu2ppu_irq_ack); in cx18_init_scb()
38 cx18_writel(cx, IRQ_EPU_TO_CPU, &cx->scb->epu2cpu_irq); in cx18_init_scb()
[all …]
Dcx18-driver.c297 static void cx18_iounmap(struct cx18 *cx) in cx18_iounmap() argument
299 if (cx == NULL) in cx18_iounmap()
303 if (cx->enc_mem != NULL) { in cx18_iounmap()
305 iounmap(cx->enc_mem); in cx18_iounmap()
306 cx->enc_mem = NULL; in cx18_iounmap()
310 static void cx18_eeprom_dump(struct cx18 *cx, unsigned char *eedata, int len) in cx18_eeprom_dump() argument
325 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) in cx18_read_eeprom() argument
337 c->adapter = &cx->i2c_adap[0]; in cx18_read_eeprom()
343 switch (cx->card->type) { in cx18_read_eeprom()
352 cx18_eeprom_dump(cx, eedata, sizeof(eedata)); in cx18_read_eeprom()
[all …]
Dcx18-gpio.c52 static void gpio_write(struct cx18 *cx) in gpio_write() argument
54 u32 dir_lo = cx->gpio_dir & 0xffff; in gpio_write()
55 u32 val_lo = cx->gpio_val & 0xffff; in gpio_write()
56 u32 dir_hi = cx->gpio_dir >> 16; in gpio_write()
57 u32 val_hi = cx->gpio_val >> 16; in gpio_write()
59 cx18_write_reg_expect(cx, dir_lo << 16, in gpio_write()
61 cx18_write_reg_expect(cx, (dir_lo << 16) | val_lo, in gpio_write()
63 cx18_write_reg_expect(cx, dir_hi << 16, in gpio_write()
65 cx18_write_reg_expect(cx, (dir_hi << 16) | val_hi, in gpio_write()
69 static void gpio_update(struct cx18 *cx, u32 mask, u32 data) in gpio_update() argument
[all …]
Dcx18-firmware.c101 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) in load_cpu_fw_direct() argument
109 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_cpu_fw_direct()
118 cx18_setup_page(cx, i); in load_cpu_fw_direct()
121 cx18_raw_writel(cx, *src, dst); in load_cpu_fw_direct()
122 if (cx18_raw_readl(cx, dst) != *src) { in load_cpu_fw_direct()
125 cx18_setup_page(cx, 0); in load_cpu_fw_direct()
132 if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags)) in load_cpu_fw_direct()
136 cx18_setup_page(cx, SCB_OFFSET); in load_cpu_fw_direct()
140 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, in load_apu_fw_direct() argument
153 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_apu_fw_direct()
[all …]
Dcx18-i2c.c86 static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw, in cx18_i2c_new_ir() argument
90 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; in cx18_i2c_new_ir()
102 init_data->name = cx->card_name; in cx18_i2c_new_ir()
111 int cx18_i2c_register(struct cx18 *cx, unsigned idx) in cx18_i2c_register() argument
115 struct i2c_adapter *adap = &cx->i2c_adap[bus]; in cx18_i2c_register()
121 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
122 adap, type, 0, cx->card_i2c->radio); in cx18_i2c_register()
125 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
126 adap, type, 0, cx->card_i2c->demod); in cx18_i2c_register()
129 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
[all …]
Dcx18-io.c27 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) in cx18_memset_io() argument
35 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io()
40 cx18_writew(cx, val2, dst); in cx18_memset_io()
45 cx18_writel(cx, val4, dst); in cx18_memset_io()
50 cx18_writew(cx, val2, dst); in cx18_memset_io()
55 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io()
58 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) in cx18_sw1_irq_enable() argument
60 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); in cx18_sw1_irq_enable()
61 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PCI) | val; in cx18_sw1_irq_enable()
62 cx18_write_reg(cx, cx->sw1_irq_mask, SW1_INT_ENABLE_PCI); in cx18_sw1_irq_enable()
[all …]
Dcx18-io.h38 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument
44 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument
49 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument
53 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel()
54 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel()
60 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument
66 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument
71 static inline void cx18_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel() argument
75 cx18_writel_noretry(cx, val, addr); in cx18_writel()
76 if (val == cx18_readl(cx, addr)) in cx18_writel()
[all …]
Dcx18-ioctl.c152 struct cx18 *cx = id->cx; in cx18_g_fmt_vid_cap() local
153 struct cx18_stream *s = &cx->streams[id->type]; in cx18_g_fmt_vid_cap()
156 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap()
157 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap()
175 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_vbi_cap() local
182 vbifmt->start[0] = cx->vbi.start[0]; in cx18_g_fmt_vbi_cap()
183 vbifmt->start[1] = cx->vbi.start[1]; in cx18_g_fmt_vbi_cap()
184 vbifmt->count[0] = vbifmt->count[1] = cx->vbi.count; in cx18_g_fmt_vbi_cap()
194 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_sliced_vbi_cap() local
209 if (v4l2_subdev_call(cx->sd_av, vbi, g_sliced_fmt, &fmt->fmt.sliced)) in cx18_g_fmt_sliced_vbi_cap()
[all …]
Dcx18-av-core.c29 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value) in cx18_av_write() argument
34 u32 x = cx18_read_reg(cx, reg); in cx18_av_write()
37 cx18_write_reg(cx, x, reg); in cx18_av_write()
41 int cx18_av_write_expect(struct cx18 *cx, u16 addr, u8 value, u8 eval, u8 mask) in cx18_av_write_expect() argument
45 u32 x = cx18_read_reg(cx, reg); in cx18_av_write_expect()
48 cx18_write_reg_expect(cx, x, reg, in cx18_av_write_expect()
53 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value) in cx18_av_write4() argument
55 cx18_write_reg(cx, value, 0xc40000 + addr); in cx18_av_write4()
60 cx18_av_write4_expect(struct cx18 *cx, u16 addr, u32 value, u32 eval, u32 mask) in cx18_av_write4_expect() argument
62 cx18_write_reg_expect(cx, value, 0xc40000 + addr, eval, mask); in cx18_av_write4_expect()
[all …]
Dcx18-streams.c124 struct cx18 *cx = s->cx; in cx18_prepare_buffer() local
140 buf->tvnorm != cx->std) { in cx18_prepare_buffer()
145 buf->tvnorm = cx->std; in cx18_prepare_buffer()
167 buf->tvnorm = cx->std; in cx18_prepare_buffer()
199 struct cx18 *cx = s->cx; in buffer_setup() local
201 *size = 2 * cx->cxhdl.width * cx->cxhdl.height; in buffer_setup()
221 struct cx18 *cx = s->cx; in buffer_prepare() local
224 cx->cxhdl.width, cx->cxhdl.height, field); in buffer_prepare()
255 static void cx18_stream_init(struct cx18 *cx, int type) in cx18_stream_init() argument
257 struct cx18_stream *s = &cx->streams[type]; in cx18_stream_init()
[all …]
Dcx18-fileops.c46 struct cx18 *cx = id->cx; in cx18_claim_stream() local
47 struct cx18_stream *s = &cx->streams[type]; in cx18_claim_stream()
88 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_claim_stream()
89 if (cx->vbi.insert_mpeg && !cx18_raw_vbi(cx)) in cx18_claim_stream()
90 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_claim_stream()
106 struct cx18 *cx = s->cx; in cx18_release_stream() local
140 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_release_stream()
147 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_release_stream()
161 static void cx18_dualwatch(struct cx18 *cx) in cx18_dualwatch() argument
167 new_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_dualwatch()
[all …]
Dcx18-av-firmware.c36 static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw) in cx18_av_verifyfw() argument
38 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_verifyfw()
46 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
50 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, dl_control); in cx18_av_verifyfw()
51 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
56 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
70 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
78 int cx18_av_loadfw(struct cx18 *cx) in cx18_av_loadfw() argument
80 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_loadfw()
88 if (request_firmware(&fw, FWFILE, &cx->pci_dev->dev) != 0) { in cx18_av_loadfw()
[all …]
Dcx18-mailbox.c119 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument
217 static void cx18_mdl_send_to_alsa(struct cx18 *cx, struct cx18_stream *s, in cx18_mdl_send_to_alsa() argument
232 cx->pcm_announce_callback(cx->alsa, buf->buf, in cx18_mdl_send_to_alsa()
240 cx->pcm_announce_callback(cx->alsa, buf->buf, buf->bytesused); in cx18_mdl_send_to_alsa()
244 static void epu_dma_done(struct cx18 *cx, struct cx18_in_work_order *order) in epu_dma_done() argument
255 s = cx18_handle_to_stream(cx, handle); in epu_dma_done()
315 if (cx->pcm_announce_callback != NULL) { in epu_dma_done()
316 cx18_mdl_send_to_alsa(cx, s, mdl); in epu_dma_done()
327 cx18_stream_rotate_idx_mdls(cx); in epu_dma_done()
333 wake_up(&cx->dma_waitq); in epu_dma_done()
[all …]
Dcx18-irq.c29 static void xpu_ack(struct cx18 *cx, u32 sw2) in xpu_ack() argument
32 wake_up(&cx->mb_cpu_waitq); in xpu_ack()
34 wake_up(&cx->mb_apu_waitq); in xpu_ack()
37 static void epu_cmd(struct cx18 *cx, u32 sw1) in epu_cmd() argument
40 cx18_api_epu_cmd_irq(cx, CPU); in epu_cmd()
42 cx18_api_epu_cmd_irq(cx, APU); in epu_cmd()
47 struct cx18 *cx = (struct cx18 *)dev_id; in cx18_irq_handler() local
50 sw1 = cx18_read_reg(cx, SW1_INT_STATUS) & cx->sw1_irq_mask; in cx18_irq_handler()
51 sw2 = cx18_read_reg(cx, SW2_INT_STATUS) & cx->sw2_irq_mask; in cx18_irq_handler()
52 hw2 = cx18_read_reg(cx, HW2_INT_CLR_STATUS) & cx->hw2_irq_mask; in cx18_irq_handler()
[all …]
Dcx18-controls.c35 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_stream_vbi_fmt() local
38 if (atomic_read(&cx->ana_capturing) > 0) in cx18_s_stream_vbi_fmt()
46 cx->vbi.insert_mpeg = V4L2_MPEG_STREAM_VBI_FMT_NONE; in cx18_s_stream_vbi_fmt()
53 if (cx->vbi.sliced_mpeg_data[0] == NULL) { in cx18_s_stream_vbi_fmt()
57 cx->vbi.sliced_mpeg_data[i] = in cx18_s_stream_vbi_fmt()
59 if (cx->vbi.sliced_mpeg_data[i] == NULL) { in cx18_s_stream_vbi_fmt()
61 kfree(cx->vbi.sliced_mpeg_data[i]); in cx18_s_stream_vbi_fmt()
62 cx->vbi.sliced_mpeg_data[i] = NULL; in cx18_s_stream_vbi_fmt()
64 cx->vbi.insert_mpeg = in cx18_s_stream_vbi_fmt()
73 cx->vbi.insert_mpeg = fmt; in cx18_s_stream_vbi_fmt()
[all …]
Dcx18-vbi.c39 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data() argument
59 int idx = cx->vbi.frame % CX18_VBI_FRAMES; in copy_vbi_data()
60 u8 *dst = &cx->vbi.sliced_mpeg_data[idx][0]; in copy_vbi_data()
63 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; in copy_vbi_data()
103 cx->vbi.sliced_mpeg_size[idx] = sd + size; in copy_vbi_data()
109 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument
112 u32 lines = cx->vbi.count * 2; in compress_raw_buf()
142 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, in compress_sliced_buf() argument
148 u32 line_size = cx->is_60hz ? vbi_hblank_samples_60Hz in compress_sliced_buf()
177 v4l2_subdev_call(cx->sd_av, vbi, decode_vbi_line, &vbi); in compress_sliced_buf()
[all …]
Dcx18-av-vbi.c134 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_g_sliced_fmt() local
135 struct cx18_av_state *state = &cx->av_state; in cx18_av_g_sliced_fmt()
150 if ((cx18_av_read(cx, 0x404) & 0x10) == 0) in cx18_av_g_sliced_fmt()
155 u8 v = cx18_av_read(cx, 0x424 + i - 7); in cx18_av_g_sliced_fmt()
164 u8 v = cx18_av_read(cx, 0x424 + i - 10); in cx18_av_g_sliced_fmt()
177 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_s_raw_fmt() local
178 struct cx18_av_state *state = &cx->av_state; in cx18_av_s_raw_fmt()
181 cx18_av_std_setup(cx); in cx18_av_s_raw_fmt()
184 cx18_av_write(cx, 0x47f, state->slicer_line_delay); in cx18_av_s_raw_fmt()
185 cx18_av_write(cx, 0x404, 0x2e); in cx18_av_s_raw_fmt()
[all …]
Dcx18-audio.c37 int cx18_audio_set_io(struct cx18 *cx) in cx18_audio_set_io() argument
44 if (test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)) in cx18_audio_set_io()
45 in = &cx->card->radio_input; in cx18_audio_set_io()
47 in = &cx->card->audio_inputs[cx->audio_input]; in cx18_audio_set_io()
50 v4l2_subdev_call(cx->sd_extmux, audio, s_routing, in cx18_audio_set_io()
53 err = cx18_call_hw_err(cx, cx->card->hw_audio_ctrl, in cx18_audio_set_io()
59 u = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_audio_set_io()
86 cx18_write_reg_expect(cx, u | 0xb00, CX18_AUDIO_ENABLE, in cx18_audio_set_io()
89 cx18_write_reg_expect(cx, v | 0xb00, CX18_AUDIO_ENABLE, in cx18_audio_set_io()
Dcx18-dvb.c139 struct cx18 *cx = stream->cx; in yuan_mpc718_mt352_reqfw() local
143 ret = request_firmware(fw, fn, &cx->pci_dev->dev); in yuan_mpc718_mt352_reqfw()
254 struct cx18 *cx; in cx18_dvb_start_feed() local
261 cx = stream->cx; in cx18_dvb_start_feed()
265 mutex_lock(&cx->serialize_lock); in cx18_dvb_start_feed()
266 ret = cx18_init_on_first_open(cx); in cx18_dvb_start_feed()
267 mutex_unlock(&cx->serialize_lock); in cx18_dvb_start_feed()
274 switch (cx->card->type) { in cx18_dvb_start_feed()
278 v = cx18_read_reg(cx, CX18_REG_DMUX_NUM_PORT_0_CONTROL); in cx18_dvb_start_feed()
284 cx18_write_reg(cx, v, CX18_REG_DMUX_NUM_PORT_0_CONTROL); in cx18_dvb_start_feed()
[all …]
Dcx18-alsa-main.c117 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names() local
125 cx->instance); in snd_cx18_card_set_names()
130 cx->instance, cx->card_name); in snd_cx18_card_set_names()
137 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_init() local
148 ret = snd_card_new(&cx->pci_dev->dev, in snd_cx18_init()
180 cx->alsa = cxsc; in snd_cx18_init()
185 cx->alsa = NULL; in snd_cx18_init()
201 static int cx18_alsa_load(struct cx18 *cx) in cx18_alsa_load() argument
203 struct v4l2_device *v4l2_dev = &cx->v4l2_dev; in cx18_alsa_load()
212 cx = to_cx18(v4l2_dev); in cx18_alsa_load()
[all …]
Dcx18-streams.h25 u32 cx18_find_handle(struct cx18 *cx);
26 struct cx18_stream *cx18_handle_to_stream(struct cx18 *cx, u32 handle);
27 int cx18_streams_setup(struct cx18 *cx);
28 int cx18_streams_register(struct cx18 *cx);
29 void cx18_streams_cleanup(struct cx18 *cx, int unregister);
32 void cx18_stream_rotate_idx_mdls(struct cx18 *cx);
39 s->cx->stream_buffers[CX18_ENC_STREAM_TYPE_IDX] != 0); in cx18_stream_enabled()
62 void cx18_stop_all_captures(struct cx18 *cx);
Dcx18-queue.c142 struct cx18 *cx = s->cx; in cx18_queue_get_mdl() local
279 struct cx18 *cx = s->cx; in cx18_load_queues() local
307 cx18_writel(cx, buf->dma_handle, in cx18_load_queues()
308 &cx->scb->cpu_mdl[mdl_id + i].paddr); in cx18_load_queues()
309 cx18_writel(cx, s->buf_size, in cx18_load_queues()
310 &cx->scb->cpu_mdl[mdl_id + i].length); in cx18_load_queues()
323 cx18_writel(cx, partial_buf_size, in cx18_load_queues()
324 &cx->scb->cpu_mdl[mdl_id + i - 1].length); in cx18_load_queues()
339 struct pci_dev *pci_dev = s->cx->pci_dev; in _cx18_mdl_sync_for_device()
349 struct cx18 *cx = s->cx; in cx18_stream_alloc() local
[all …]
Dcx18-av-core.h358 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value);
359 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value);
360 int cx18_av_write4_noretry(struct cx18 *cx, u16 addr, u32 value);
361 int cx18_av_write_expect(struct cx18 *cx, u16 addr, u8 value, u8 eval, u8 mask);
362 int cx18_av_write4_expect(struct cx18 *cx, u16 addr, u32 value, u32 eval,
364 u8 cx18_av_read(struct cx18 *cx, u16 addr);
365 u32 cx18_av_read4(struct cx18 *cx, u16 addr);
366 int cx18_av_and_or(struct cx18 *cx, u16 addr, unsigned mask, u8 value);
367 int cx18_av_and_or4(struct cx18 *cx, u16 addr, u32 mask, u32 value);
368 void cx18_av_std_setup(struct cx18 *cx);
[all …]
Dcx18-driver.h176 v4l2_info(&cx->v4l2_dev, " " type ": " fmt , ## args); \
190 v4l2_info(&cx->v4l2_dev, " " type ": " fmt , ## args); \
202 #define CX18_ERR(fmt, args...) v4l2_err(&cx->v4l2_dev, fmt , ## args)
203 #define CX18_WARN(fmt, args...) v4l2_warn(&cx->v4l2_dev, fmt , ## args)
204 #define CX18_INFO(fmt, args...) v4l2_info(&cx->v4l2_dev, fmt , ## args)
363 struct cx18 *cx; member
378 struct cx18 *cx; /* for ease of use */ member
433 struct cx18 *cx; member
569 struct cx18 *cx; member
696 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv);
[all …]
Dcx18-firmware.h22 int cx18_firmware_init(struct cx18 *cx);
23 void cx18_halt_firmware(struct cx18 *cx);
24 void cx18_init_memory(struct cx18 *cx);
25 void cx18_init_power(struct cx18 *cx, int lowpwr);
Dcx18-alsa-pcm.c154 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_open() local
161 s = &cx->streams[CX18_ENC_STREAM_TYPE_PCM]; in snd_cx18_pcm_capture_open()
163 item.cx = cx; in snd_cx18_pcm_capture_open()
165 item.open_id = cx->open_id++; in snd_cx18_pcm_capture_open()
185 runtime->private_data = cx; in snd_cx18_pcm_capture_open()
187 cx->pcm_announce_callback = cx18_alsa_announce_pcm_data; in snd_cx18_pcm_capture_open()
201 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_close() local
206 s = &cx->streams[CX18_ENC_STREAM_TYPE_PCM]; in snd_cx18_pcm_capture_close()
212 cx->pcm_announce_callback = NULL; in snd_cx18_pcm_capture_close()
331 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_create() local
[all …]
Dcx18-i2c.h24 int cx18_i2c_register(struct cx18 *cx, unsigned idx);
25 struct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw);
28 int init_cx18_i2c(struct cx18 *cx);
29 void exit_cx18_i2c(struct cx18 *cx);
Dcx18-video.c26 void cx18_video_set_io(struct cx18 *cx) in cx18_video_set_io() argument
28 int inp = cx->active_input; in cx18_video_set_io()
30 v4l2_subdev_call(cx->sd_av, video, s_routing, in cx18_video_set_io()
31 cx->card->video_inputs[inp].video_input, 0, 0); in cx18_video_set_io()
Dcx18-mailbox.h84 int cx18_api(struct cx18 *cx, u32 cmd, int args, u32 data[]);
85 int cx18_vapi_result(struct cx18 *cx, u32 data[MAX_MB_ARGUMENTS], u32 cmd,
87 int cx18_vapi(struct cx18 *cx, u32 cmd, int args, ...);
91 void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu);
Dcx18-alsa.h41 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_lock() local
42 mutex_lock(&cx->serialize_lock); in snd_cx18_lock()
47 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_unlock() local
48 mutex_unlock(&cx->serialize_lock); in snd_cx18_unlock()
Dcx18-alsa-mixer.c88 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_mixer_tv_vol_get() local
96 ret = v4l2_subdev_call(cx->sd_av, core, g_ctrl, &vctrl); in snd_cx18_mixer_tv_vol_get()
108 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_mixer_tv_vol_put() local
118 ret = v4l2_subdev_call(cx->sd_av, core, g_ctrl, &vctrl); in snd_cx18_mixer_tv_vol_put()
125 ret = v4l2_subdev_call(cx->sd_av, core, s_ctrl, &vctrl); in snd_cx18_mixer_tv_vol_put()
Dcx18-vbi.h24 void cx18_process_vbi_data(struct cx18 *cx, struct cx18_mdl *mdl,
26 int cx18_used_line(struct cx18 *cx, int line, int field);
Dcx18-gpio.h24 void cx18_gpio_init(struct cx18 *cx);
25 int cx18_gpio_register(struct cx18 *cx, u32 hw);
Dcx18-cards.c594 int cx18_get_input(struct cx18 *cx, u16 index, struct v4l2_input *input) in cx18_get_input() argument
597 cx->card->video_inputs + index; in cx18_get_input()
607 if (index >= cx->nof_inputs) in cx18_get_input()
614 input->audioset = (1 << cx->nof_audio_inputs) - 1; in cx18_get_input()
616 cx->tuner_std : V4L2_STD_ALL; in cx18_get_input()
620 int cx18_get_audio_input(struct cx18 *cx, u16 index, struct v4l2_audio *audio) in cx18_get_audio_input() argument
623 cx->card->audio_inputs + index; in cx18_get_audio_input()
631 if (index >= cx->nof_audio_inputs) in cx18_get_audio_input()
Dcx18-fileops.h34 void cx18_mute(struct cx18 *cx);
35 void cx18_unmute(struct cx18 *cx);
Dcx18-queue.h32 pci_dma_sync_single_for_cpu(s->cx->pci_dev, buf->dma_handle, in cx18_buf_sync_for_cpu()
39 pci_dma_sync_single_for_device(s->cx->pci_dev, buf->dma_handle, in cx18_buf_sync_for_device()
Dcx18-cards.h156 int cx18_get_input(struct cx18 *cx, u16 index, struct v4l2_input *input);
157 int cx18_get_audio_input(struct cx18 *cx, u16 index, struct v4l2_audio *input);
Dcx18-video.h22 void cx18_video_set_io(struct cx18 *cx);
Dcx18-audio.h24 int cx18_audio_set_io(struct cx18 *cx);
Dcx18-scb.h278 void cx18_init_scb(struct cx18 *cx);
/linux-4.1.27/drivers/acpi/
Dprocessor_idle.c135 struct acpi_processor_cx *cx) in lapic_timer_check_state() argument
153 if (cx->type >= type) in lapic_timer_check_state()
175 struct acpi_processor_cx *cx, in lapic_timer_state_broadcast() argument
178 int state = cx - pr->power.states; in lapic_timer_state_broadcast()
194 struct acpi_processor_cx *cx, in lapic_timer_state_broadcast() argument
379 struct acpi_processor_cx cx; in acpi_processor_get_power_info_cst() local
381 memset(&cx, 0, sizeof(cx)); in acpi_processor_get_power_info_cst()
406 cx.type = obj->integer.value; in acpi_processor_get_power_info_cst()
411 if (i == 1 && cx.type != ACPI_STATE_C1) in acpi_processor_get_power_info_cst()
414 cx.address = reg->address; in acpi_processor_get_power_info_cst()
[all …]
/linux-4.1.27/arch/x86/kernel/acpi/
Dcstate.c74 struct acpi_processor_cx *cx = _cx; in acpi_processor_ffh_cstate_probe_cpu() local
84 cstate_type = ((cx->address >> MWAIT_SUBSTATE_SIZE) & in acpi_processor_ffh_cstate_probe_cpu()
92 pr_warn(FW_BUG "ACPI MWAIT C-state 0x%x not supported by HW (0x%x)\n", cx->address, edx_part); in acpi_processor_ffh_cstate_probe_cpu()
108 "state\n", cx->type); in acpi_processor_ffh_cstate_probe_cpu()
110 snprintf(cx->desc, in acpi_processor_ffh_cstate_probe_cpu()
112 cx->address); in acpi_processor_ffh_cstate_probe_cpu()
118 struct acpi_processor_cx *cx, struct acpi_power_register *reg) in acpi_processor_ffh_cstate_probe() argument
131 percpu_entry->states[cx->index].eax = 0; in acpi_processor_ffh_cstate_probe()
132 percpu_entry->states[cx->index].ecx = 0; in acpi_processor_ffh_cstate_probe()
136 retval = work_on_cpu(cpu, acpi_processor_ffh_cstate_probe_cpu, cx); in acpi_processor_ffh_cstate_probe()
[all …]
/linux-4.1.27/arch/arm/mach-omap2/
Dcpuidle34xx.c113 struct omap3_idle_statedata *cx = &omap3_idle_data[index]; in omap3_enter_idle() local
119 if (cx->flags & OMAP_CPUIDLE_CX_NO_CLKDM_IDLE) { in omap3_enter_idle()
122 pwrdm_set_next_pwrst(mpu_pd, cx->mpu_state); in omap3_enter_idle()
123 pwrdm_set_next_pwrst(core_pd, cx->core_state); in omap3_enter_idle()
130 if (cx->mpu_state == PWRDM_POWER_OFF) in omap3_enter_idle()
140 if (cx->mpu_state == PWRDM_POWER_OFF && in omap3_enter_idle()
145 if (cx->flags & OMAP_CPUIDLE_CX_NO_CLKDM_IDLE) in omap3_enter_idle()
169 struct omap3_idle_statedata *cx = &omap3_idle_data[index]; in next_valid_state() local
187 if ((cx->mpu_state >= mpu_deepest_state) && in next_valid_state()
188 (cx->core_state >= core_deepest_state)) in next_valid_state()
[all …]
Dcpuidle44xx.c84 struct idle_statedata *cx = state_ptr + index; in omap_enter_idle_coupled() local
110 mpuss_can_lose_context = (cx->mpu_state == PWRDM_POWER_RET) && in omap_enter_idle_coupled()
111 (cx->mpu_logic_state == PWRDM_POWER_OFF); in omap_enter_idle_coupled()
122 pwrdm_set_logic_retst(mpu_pd, cx->mpu_logic_state); in omap_enter_idle_coupled()
123 omap_set_pwrdm_state(mpu_pd, cx->mpu_state); in omap_enter_idle_coupled()
133 omap4_enter_lowpower(dev->cpu, cx->cpu_state); in omap_enter_idle_coupled()
/linux-4.1.27/arch/x86/boot/
Dcopy.S25 pushw %cx
26 shrw $2, %cx
28 popw %cx
29 andw $3, %cx
41 pushw %cx
42 shrw $2, %cx
44 popw %cx
45 andw $3, %cx
Dapm.c36 if (!(oreg.cx & 0x02)) /* 32 bits supported? */ in query_apm_bios()
49 boot_params.apm_bios_info.cseg_16 = oreg.cx; in query_apm_bios()
72 boot_params.apm_bios_info.flags = oreg.cx; in query_apm_bios()
Dmemory.c29 ireg.cx = sizeof buf; in detect_memory_e820()
86 if (oreg.cx || oreg.dx) { in detect_memory_e801()
87 oreg.ax = oreg.cx; in detect_memory_e801()
Dbioscall.S37 movw $11, %cx
72 movw $11, %cx
Dpmjump.S36 movw $__BOOT_DS, %cx
74 lldt %cx
Dedd.c31 ireg.cx = 0x0001; /* Sector 0-0-1 */ in read_mbr()
97 ei->interface_support = oreg.cx; /* EDD functionality subsets */ in get_edd_info()
Dvideo-vga.c87 ireg.cx = 0x0607; in vga_set_8font()
110 ireg.cx = 0x0b0c; in vga_set_14font()
Dvideo-vesa.c68 ireg.cx = mode; in vesa_probe()
116 ireg.cx = vesa_mode; in vesa_set_mode()
Dtty.c46 ireg.cx = 0x0001; in bios_putchar()
Dboot.h253 u16 cx, hcx; member
/linux-4.1.27/arch/x86/realmode/rm/
Dwakeup_asm.S49 movw $16, %cx
56 movw %cx, %ds
57 movw %cx, %es
58 movw %cx, %ss
59 movw %cx, %fs
60 movw %cx, %gs
Dreboot.S119 movw $0x0003, %cx
/linux-4.1.27/drivers/s390/char/
Dtty3270.c80 unsigned int cx, cy; /* Current output position. */ member
1042 if (line->len <= tp->cx) { in tty3270_put_character()
1043 while (line->len < tp->cx) { in tty3270_put_character()
1052 cell = line->cells + tp->cx; in tty3270_put_character()
1171 tp->cx = 0; in tty3270_cr()
1217 while (line->len < tp->cx) { in tty3270_insert_characters()
1223 if (n > tp->view.cols - tp->cx) in tty3270_insert_characters()
1224 n = tp->view.cols - tp->cx; in tty3270_insert_characters()
1225 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n); in tty3270_insert_characters()
1227 line->cells[tp->cx + n + k] = line->cells[tp->cx + k]; in tty3270_insert_characters()
[all …]
/linux-4.1.27/drivers/char/
Dtoshiba.c376 unsigned short bx,cx; in tosh_get_machine_id() local
406 cx = readw(bios + address); in tosh_get_machine_id()
407 address = 9+bx+cx; in tosh_get_machine_id()
408 cx = readw(bios + address); in tosh_get_machine_id()
409 address = 0xa+cx; in tosh_get_machine_id()
410 cx = readw(bios + address); in tosh_get_machine_id()
414 id = ((cx & 0xff)<<8)+((cx & 0xff00)>>8); in tosh_get_machine_id()
Dmbcs.c814 MODULE_DEVICE_TABLE(cx, mbcs_id_table);
/linux-4.1.27/drivers/xen/
Dxen-acpi-processor.c66 struct acpi_processor_cx *cx; in push_cxx_to_hypervisor() local
76 cx = &_pr->power.states[i]; in push_cxx_to_hypervisor()
77 if (!cx->valid) in push_cxx_to_hypervisor()
83 if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) { in push_cxx_to_hypervisor()
89 if (cx->entry_method == ACPI_CSTATE_FFH) { in push_cxx_to_hypervisor()
96 dst_cx->reg.address = cx->address; in push_cxx_to_hypervisor()
98 dst_cx->type = cx->type; in push_cxx_to_hypervisor()
99 dst_cx->latency = cx->latency; in push_cxx_to_hypervisor()
124 cx = &_pr->power.states[i]; in push_cxx_to_hypervisor()
125 if (!cx->valid) in push_cxx_to_hypervisor()
[all …]
/linux-4.1.27/arch/arm/boot/dts/
Dnspire-cx.dts2 * linux/arch/arm/boot/nspire-cx.dts
16 lcd-type = "cx";
39 compatible = "lsi,nspire-cx-clock";
43 compatible = "lsi,nspire-cx-ahb-divider";
78 compatible = "ti,nspire-cx";
DMakefile350 nspire-cx.dtb \
/linux-4.1.27/Documentation/devicetree/bindings/clock/
Dnspire-clock.txt5 "lsi,nspire-cx-ahb-divider" for the AHB divider in the CX model
7 "lsi,nspire-cx-clock" for the base clock in the CX model
21 compatible = "lsi,nspire-cx-clock";
/linux-4.1.27/arch/x86/math-emu/
Dreg_u_add.S55 negw %cx
78 cmpw $32,%cx /* shrd only works for 0..31 bits */
88 cmpw $64,%cx
113 cmpw $65,%cx
Dreg_round.S481 movw EXP_UNDER+1,%cx
482 subw EXP(%edi),%cx
484 cmpw $64,%cx /* shrd only works for 0..31 bits */
487 cmpw $32,%cx /* shrd only works for 0..31 bits */
495 addw %cx,EXP(%edi)
508 addw %cx,EXP(%edi)
529 cmpw $64,%cx
533 addw %cx,EXP(%edi)
Dreg_u_sub.S78 cmpw $32,%cx /* shrd only works for 0..31 bits */
88 cmpw $64,%cx
113 cmpw $65,%cx
225 subw %cx,EXP(%edi) /* Can get underflow here */
Dreg_norm.S52 subw %cx,EXP(%ebx) /* This can cause an underflow */
129 subw %cx,EXP(%ebx) /* This can cause an underflow */
Dget_address.c32 offsetof(struct pt_regs, cx),
/linux-4.1.27/drivers/isdn/sc/
Dmessage.h38 #define IS_CM_MESSAGE(mesg, tx, cx, dx) \ argument
40 && (mesg.class == cmRspClass##cx) \
46 #define IS_CE_MESSAGE(mesg, tx, cx, dx) \ argument
48 && (mesg.class == ceRspClass##cx) \
/linux-4.1.27/Documentation/devicetree/bindings/arm/
Dnspire.txt5 CX models should have "ti,nspire-cx"
13 compatible = "ti,nspire-cx";
/linux-4.1.27/arch/x86/xen/
Denlighten.c305 unsigned int *cx, unsigned int *dx) in xen_cpuid() argument
326 *cx = cpuid_leaf5_ecx_val; in xen_cpuid()
344 "=c" (*cx), in xen_cpuid()
346 : "0" (*ax), "2" (*cx)); in xen_cpuid()
349 *cx &= maskecx; in xen_cpuid()
350 *cx |= setecx; in xen_cpuid()
364 unsigned int ax, bx, cx, dx; in xen_check_mwait() local
386 cx = 0; in xen_check_mwait()
388 native_cpuid(&ax, &bx, &cx, &dx); in xen_check_mwait()
393 if ((cx & mwait_mask) != mwait_mask) in xen_check_mwait()
[all …]
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DEventClass.py57 flags, ip, ax, bx, cx, dx, si, di, bp, sp = struct.unpack('QQQQQQQQQQ', tmp_buf)
62 self.cx = cx
/linux-4.1.27/arch/x86/include/asm/
Dsigcontext.h18 unsigned long cx; member
55 unsigned long cx; member
Dapm.h51 int cx, dx, si; in apm_bios_call_simple_asm() local
66 : "=a" (*eax), "=b" (error), "=c" (cx), "=d" (dx), in apm_bios_call_simple_asm()
Delf.h110 _r->bx = 0; _r->cx = 0; _r->dx = 0; \
123 pr_reg[1] = regs->cx; \
175 /*regs->ax = regs->bx =*/ regs->cx = regs->dx = 0; in elf_common_init()
219 (pr_reg)[11] = (regs)->cx; \
Da.out-core.h43 dump->regs.cx = regs->cx; in aout_dump_thread()
Dkexec.h101 asm volatile("movl %%ecx,%0" : "=m"(newregs->cx)); in crash_setup_regs()
115 asm volatile("movq %%rcx,%0" : "=m"(newregs->cx)); in crash_setup_regs()
Dptrace.h13 unsigned long cx; member
50 unsigned long cx; member
Dsyscall.h114 *args++ = regs->cx; in syscall_get_arguments()
175 regs->cx = *args++; in syscall_set_arguments()
Duser_32.h79 unsigned long cx; member
Duser_64.h80 unsigned long cx; member
Dasm.h38 #define _ASM_CX __ASM_REG(cx)
Dprocessor.h239 unsigned long cx; member
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-input.c223 if (kernel_ir->cx == NULL) in cx23885_input_ir_open()
226 return cx23885_input_ir_start(kernel_ir->cx); in cx23885_input_ir_open()
261 if (kernel_ir->cx != NULL) in cx23885_input_ir_close()
262 cx23885_input_ir_stop(kernel_ir->cx); in cx23885_input_ir_close()
348 kernel_ir->cx = dev; in cx23885_input_init()
Dcx23885.h315 struct cx23885_dev *cx; member
/linux-4.1.27/arch/x86/kernel/
Dperf_regs.c21 PT_REGS_OFFSET(PERF_REG_X86_CX, cx),
139 regs_user_copy->cx = user_regs->cx; in perf_get_regs_user()
Dasm-offsets_64.c39 ENTRY(cx); in main()
55 ENTRY(cx); in main()
Dasm-offsets_32.c22 OFFSET(IA32_SIGCONTEXT_cx, sigcontext, cx); in foo()
45 OFFSET(PT_ECX, pt_regs, cx); in foo()
Dapm_32.c1637 unsigned short cx; in proc_apm_show() local
1648 !(error = apm_get_power_status(&bx, &cx, &dx))) { in proc_apm_show()
1651 if ((cx & 0xff) != 0xff) in proc_apm_show()
1652 percentage = cx & 0xff; in proc_apm_show()
1655 battery_flag = (cx >> 8) & 0xff; in proc_apm_show()
1730 unsigned short cx; in apm() local
1792 error = apm_get_power_status(&bx, &cx, &dx); in apm()
1830 if ((cx & 0xff) == 0xff) in apm()
1833 printk("%d%%\n", cx & 0xff); in apm()
1837 (cx >> 8) & 0xff); in apm()
Dsignal.c83 COPY(dx); COPY(cx); COPY(ip); COPY(ax); in restore_sigcontext()
140 put_user_ex(regs->cx, &sc->cx); in setup_sigcontext()
327 regs->cx = 0; in __setup_frame()
393 regs->cx = (unsigned long)&frame->uc; in __setup_rt_frame()
Ddoublefault.c41 t->ax, t->bx, t->cx, t->dx); in doublefault_fn()
Dptrace.c76 REG_OFFSET_NAME(cx),
133 [2] = offsetof(struct pt_regs, cx)
138 [3] = offsetof(struct pt_regs, cx),
964 R32(ecx, cx); in putreg32()
1034 R32(ecx, cx); in getreg32()
1448 regs->cx, regs->dx, regs->si); in do_audit_syscall_entry()
1508 sd.args[1] = regs->cx; in syscall_trace_enter_phase1()
Dkgdb.c57 { "cx", 4, offsetof(struct pt_regs, cx) },
73 { "cx", 8, offsetof(struct pt_regs, cx) },
Dprocess_32.c92 regs->ax, regs->bx, regs->cx, regs->dx); in __show_regs()
Dprocess_64.c71 regs->ax, regs->bx, regs->cx); in __show_regs()
Dhead_32.S526 movw %cx, 8 * GDT_ENTRY_STACK_CANARY + 2(%eax)
/linux-4.1.27/drivers/net/plip/
Dplip.c487 unsigned int cx; in plip_receive() local
491 cx = nibble_timeout; in plip_receive()
500 if (--cx == 0) in plip_receive()
508 cx = nibble_timeout; in plip_receive()
517 if (--cx == 0) in plip_receive()
706 unsigned int cx; in plip_send() local
715 cx = nibble_timeout; in plip_send()
720 if (--cx == 0) in plip_send()
729 cx = nibble_timeout; in plip_send()
734 if (--cx == 0) in plip_send()
[all …]
/linux-4.1.27/arch/mips/math-emu/
Dieee754.h139 __BITFIELD_FIELD(unsigned cx:6, /* exceptions this operation */
161 return (ieee754_csr.cx); in ieee754_getcx()
168 return (ieee754_csr.cx & n); in ieee754_cxtest()
Dieee754int.h31 ieee754_csr.cx = 0; in ieee754_clearcx()
36 ieee754_csr.cx |= flags; in ieee754_setcx()
Ddp_sqrt.c137 oldcsr.cx |= IEEE754_INEXACT; in ieee754dp_sqrt()
Dcp1emu.c1412 ieee754_csr_save.cx |= ieee754_csr.cx; \
1415 ieee754_csr.cx |= ieee754_csr_save.cx; \
/linux-4.1.27/arch/x86/ia32/
Dia32_signal.c186 COPY(dx); COPY(cx); COPY(ip); COPY(ax); in ia32_restore_sigcontext()
284 put_user_ex(regs->cx, &sc->cx); in ia32_setup_sigcontext()
409 regs->cx = 0; in ia32_setup_frame()
488 regs->cx = (unsigned long) &frame->uc; in ia32_setup_rt_frame()
Dia32_aout.c81 dump->regs.ecx = regs->cx; in dump_thread32()
/linux-4.1.27/arch/x86/mm/
Dpf_in.c264 rv = (unsigned char *)&regs->cx; in get_reg_w8()
332 rv = 1 + (unsigned char *)&regs->cx; in get_reg_w8()
360 rv = &regs->cx; in get_reg_w32()
Dmmio-mod.c130 regs->ax, regs->bx, regs->cx, regs->dx); in die_kmmio_nesting_error()
135 regs->ax, regs->cx, regs->dx); in die_kmmio_nesting_error()
Dmpx.c94 offsetof(struct pt_regs, cx), in get_reg_offset()
/linux-4.1.27/arch/x86/include/uapi/asm/
Dsigcontext32.h63 unsigned int cx; member
/linux-4.1.27/drivers/cpufreq/
Dlonghaul.c71 static struct acpi_processor_cx *cx; variable
327 do_powersaver(cx->address, mults_index, dir); in longhaul_setstate()
877 cx = &pr->power.states[ACPI_STATE_C3]; in longhaul_cpu_init()
878 if (cx->address > 0 && cx->latency <= 1000) in longhaul_cpu_init()
/linux-4.1.27/arch/x86/kvm/
Dtss.h45 u16 cx; member
Demulate.c344 FOP1E(op, cx) \
353 FOP1EEX(op, cx) \
2582 tss->cx = reg_read(ctxt, VCPU_REGS_RCX); in save_state_to_tss16()
2606 *reg_write(ctxt, VCPU_REGS_RCX) = tss->cx; in load_state_from_tss16()
/linux-4.1.27/include/acpi/
Dprocessor.h251 struct acpi_processor_cx *cx,
263 struct acpi_processor_cx *cx, in acpi_processor_ffh_cstate_probe() argument
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_intel.c1978 struct event_constraint *cx; in intel_get_excl_constraints() local
2015 cx = c; in intel_get_excl_constraints()
2034 cx = &cpuc->constraint_list[idx]; in intel_get_excl_constraints()
2040 memcpy(cx, c, sizeof(*cx)); in intel_get_excl_constraints()
2046 cx->flags |= PERF_X86_EVENT_DYNAMIC; in intel_get_excl_constraints()
2064 for_each_set_bit(i, cx->idxmsk, X86_PMC_IDX_MAX) { in intel_get_excl_constraints()
2071 __clear_bit(i, cx->idxmsk); in intel_get_excl_constraints()
2078 __clear_bit(i, cx->idxmsk); in intel_get_excl_constraints()
2084 cx->weight = hweight64(cx->idxmsk64); in intel_get_excl_constraints()
2091 if (cx->weight == 0) in intel_get_excl_constraints()
[all …]
Dperf_event_intel_ds.c182 u64 ax, bx, cx, dx; member
190 u64 ax, bx, cx, dx; member
202 u64 ax, bx, cx, dx; member
920 regs.cx = pebs->cx; in __intel_pmu_pebs_event()
/linux-4.1.27/arch/x86/lguest/
Dboot.c423 unsigned int *cx, unsigned int *dx) in lguest_cpuid() argument
427 native_cpuid(ax, bx, cx, dx); in lguest_cpuid()
445 *cx &= 0x00002201; in lguest_cpuid()
469 *bx = *cx = *dx = 0; in lguest_cpuid()
/linux-4.1.27/arch/x86/include/asm/xen/
Dinterface_64.h110 __DECL_REG(cx);
/linux-4.1.27/drivers/mtd/maps/
Dvmu-flash.c361 unsigned char cx; in vmu_flash_read() local
402 cx = vmu_flash_read_char(from + index, &retval, mtd); in vmu_flash_read()
406 return cx; in vmu_flash_read()
408 memset(buf + index, cx, 1); in vmu_flash_read()
/linux-4.1.27/arch/x86/lib/
Dchecksum_32.S120 movw (%esi),%cx
368 SRC( movw (%esi), %cx )
370 DST( movw %cx, (%edi) )
/linux-4.1.27/drivers/s390/crypto/
Dzcrypt_api.c1167 int inl, c, cx; in sprintrw() local
1175 cx = len%16; in sprintrw()
1176 if (cx) { in sprintrw()
1177 sprintcl(m, addr+inl, cx); in sprintrw()
1178 inl += cx; in sprintrw()
/linux-4.1.27/arch/x86/um/
Dsignal.c180 GETREG(CX, cx); in copy_sc_from_user()
269 PUTREG(CX, cx); in copy_sc_to_user()
Dchecksum_32.S106 movw (%esi),%cx
/linux-4.1.27/scripts/kconfig/
Dgconf.c893 gint cx, cy; in on_treeview2_button_press_event() local
895 gtk_tree_view_get_path_at_pos(view, tx, ty, &path, &column, &cx, in on_treeview2_button_press_event()
1009 gint cx, cy; in on_treeview1_button_press_event() local
1011 gtk_tree_view_get_path_at_pos(view, tx, ty, &path, &column, &cx, in on_treeview1_button_press_event()
/linux-4.1.27/drivers/hid/
Dhid-multitouch.c77 __s32 x, y, cx, cy, p, w, h; member
600 input_event(input, EV_ABS, ABS_MT_TOOL_X, s->cx); in mt_complete_slot()
667 td->curdata.cx = value; in mt_process_mt_event()
/linux-4.1.27/drivers/lguest/x86/
Dcore.c190 case offsetof(struct pt_regs, cx): in lguest_arch_regptr()
/linux-4.1.27/arch/x86/crypto/
Daes-x86_64-asm_64.S33 #define R3X %cx
/linux-4.1.27/Documentation/
DDMA-ISA-LPC.txt4 Pierre Ossman <drzeus@drzeus.cx>
/linux-4.1.27/Documentation/trace/
Dkprobetrace.txt100 …echo 'p:myprobe do_sys_open dfd=%ax filename=%dx flags=%cx mode=+4($stack)' > /sys/kernel/debug/tr…
/linux-4.1.27/Documentation/DocBook/media/
Dfieldseq_tb.gif.b64204 zbeHI04qEV2OT11+E21+FFUOP+2wEG8h5VcO5r9+589+6E8O6W8x6n8m608O7B9/7S9/7kcO7/cx
/linux-4.1.27/drivers/hv/
Dvmbus_drv.c61 wrmsrl(HV_X64_MSR_CRASH_P3, regs->cx); in hyperv_panic_event()
/linux-4.1.27/Documentation/networking/
DREADME.sb100031 http://web.archive.org/web/*/http://linuxpower.cx/~cable/
/linux-4.1.27/drivers/net/
DKconfig311 <http://linuxpower.cx/~cable/>
/linux-4.1.27/Documentation/isdn/
DREADME.gigaset414 for his logs and patches to get cx 100 working
/linux-4.1.27/Documentation/scsi/
Dsym53c8xx_2.txt7 Updated by Matthew Wilcox <matthew@wil.cx>
/linux-4.1.27/
DCREDITS3870 E: matthew@wil.cx
DMAINTAINERS447 M: Matthew Wilcox <matthew@wil.cx>
6122 M: Matthew Wilcox <matthew@wil.cx>
11057 W: http://zd1211.ath.cx/wiki/DriverRewrite