Home
last modified time | relevance | path

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

1234567891011

/linux-6.6.21/drivers/media/pci/cx18/
Dcx18-scb.c13 void cx18_init_scb(struct cx18 *cx) in cx18_init_scb() argument
15 cx18_setup_page(cx, SCB_OFFSET); in cx18_init_scb()
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()
21 cx18_writel(cx, IRQ_CPU_TO_HPU_ACK, &cx->scb->cpu2hpu_irq_ack); in cx18_init_scb()
22 cx18_writel(cx, IRQ_PPU_TO_CPU, &cx->scb->ppu2cpu_irq); in cx18_init_scb()
23 cx18_writel(cx, IRQ_CPU_TO_PPU_ACK, &cx->scb->cpu2ppu_irq_ack); in cx18_init_scb()
24 cx18_writel(cx, IRQ_EPU_TO_CPU, &cx->scb->epu2cpu_irq); in cx18_init_scb()
[all …]
Dcx18-av-audio.c13 static int set_audclk_freq(struct cx18 *cx, u32 freq) in set_audclk_freq() argument
15 struct cx18_av_state *state = &cx->av_state; in set_audclk_freq()
63 cx18_av_write4(cx, 0x108, 0x200d040f); in set_audclk_freq()
67 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq()
71 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq()
75 cx18_av_write4(cx, 0x900, 0x0801f77f); in set_audclk_freq()
76 cx18_av_write4(cx, 0x904, 0x0801f77f); in set_audclk_freq()
77 cx18_av_write4(cx, 0x90c, 0x0801f77f); in set_audclk_freq()
80 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq()
83 cx18_av_write4(cx, 0x12c, 0x11202fff); in set_audclk_freq()
[all …]
Dcx18-driver.c282 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 …]
Dcx18-gpio.c38 static void gpio_write(struct cx18 *cx) in gpio_write() argument
40 u32 dir_lo = cx->gpio_dir & 0xffff; in gpio_write()
41 u32 val_lo = cx->gpio_val & 0xffff; in gpio_write()
42 u32 dir_hi = cx->gpio_dir >> 16; in gpio_write()
43 u32 val_hi = cx->gpio_val >> 16; in gpio_write()
45 cx18_write_reg_expect(cx, dir_lo << 16, in gpio_write()
47 cx18_write_reg_expect(cx, (dir_lo << 16) | val_lo, in gpio_write()
49 cx18_write_reg_expect(cx, dir_hi << 16, in gpio_write()
51 cx18_write_reg_expect(cx, (dir_hi << 16) | val_hi, in gpio_write()
55 static void gpio_update(struct cx18 *cx, u32 mask, u32 data) in gpio_update() argument
[all …]
Dcx18-firmware.c87 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) in load_cpu_fw_direct() argument
95 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_cpu_fw_direct()
104 cx18_setup_page(cx, i); in load_cpu_fw_direct()
107 cx18_raw_writel(cx, *src, dst); in load_cpu_fw_direct()
108 if (cx18_raw_readl(cx, dst) != *src) { in load_cpu_fw_direct()
111 cx18_setup_page(cx, 0); in load_cpu_fw_direct()
118 if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags)) in load_cpu_fw_direct()
122 cx18_setup_page(cx, SCB_OFFSET); in load_cpu_fw_direct()
126 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, in load_apu_fw_direct() argument
139 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_apu_fw_direct()
[all …]
Dcx18-i2c.c69 static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw, in cx18_i2c_new_ir() argument
73 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; in cx18_i2c_new_ir()
86 init_data->name = cx->card_name; in cx18_i2c_new_ir()
95 int cx18_i2c_register(struct cx18 *cx, unsigned idx) in cx18_i2c_register() argument
99 struct i2c_adapter *adap = &cx->i2c_adap[bus]; in cx18_i2c_register()
105 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
106 adap, type, 0, cx->card_i2c->radio); in cx18_i2c_register()
109 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
110 adap, type, 0, cx->card_i2c->demod); in cx18_i2c_register()
113 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
[all …]
Dcx18-ioctl.c56 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 …]
Dcx18-av-core.c15 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value) in cx18_av_write() argument
20 u32 x = cx18_read_reg(cx, reg); in cx18_av_write()
23 cx18_write_reg(cx, x, reg); in cx18_av_write()
27 int cx18_av_write_expect(struct cx18 *cx, u16 addr, u8 value, u8 eval, u8 mask) in cx18_av_write_expect() argument
31 u32 x = cx18_read_reg(cx, reg); in cx18_av_write_expect()
34 cx18_write_reg_expect(cx, x, reg, in cx18_av_write_expect()
39 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value) in cx18_av_write4() argument
41 cx18_write_reg(cx, value, 0xc40000 + addr); in cx18_av_write4()
46 cx18_av_write4_expect(struct cx18 *cx, u16 addr, u32 value, u32 eval, u32 mask) in cx18_av_write4_expect() argument
48 cx18_write_reg_expect(cx, value, 0xc40000 + addr, eval, mask); in cx18_av_write4_expect()
[all …]
Dcx18-io.h24 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument
30 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument
35 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument
39 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel()
40 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel()
46 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument
52 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument
57 static inline void cx18_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel() argument
61 cx18_writel_noretry(cx, val, addr); in cx18_writel()
62 if (val == cx18_readl(cx, addr)) in cx18_writel()
[all …]
Dcx18-io.c13 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) in cx18_memset_io() argument
21 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io()
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()
41 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io()
44 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) in cx18_sw1_irq_enable() argument
46 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); in cx18_sw1_irq_enable()
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()
[all …]
Dcx18-streams.c108 struct cx18 *cx = s->cx; in cx18_queue_setup() local
116 szimage = cx->cxhdl.height * 720 * 3 / 2; in cx18_queue_setup()
118 szimage = cx->cxhdl.height * 720 * 2; in cx18_queue_setup()
155 struct cx18 *cx = s->cx; in cx18_buf_prepare() local
163 size = cx->cxhdl.height * 720 * 3 / 2; in cx18_buf_prepare()
165 size = cx->cxhdl.height * 720 * 2; in cx18_buf_prepare()
235 static int cx18_stream_init(struct cx18 *cx, int type) in cx18_stream_init() argument
237 struct cx18_stream *s = &cx->streams[type]; in cx18_stream_init()
244 s->cx = cx; in cx18_stream_init()
251 s->buffers = cx->stream_buffers[type]; in cx18_stream_init()
[all …]
Dcx18-fileops.c32 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 …]
Dcx18-mailbox.c105 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument
204 static void cx18_mdl_send_to_alsa(struct cx18 *cx, struct cx18_stream *s, in cx18_mdl_send_to_alsa() argument
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()
231 static void epu_dma_done(struct cx18 *cx, struct cx18_in_work_order *order) in epu_dma_done() argument
242 s = cx18_handle_to_stream(cx, handle); in epu_dma_done()
301 if (cx->pcm_announce_callback != NULL) { in epu_dma_done()
302 cx18_mdl_send_to_alsa(cx, s, mdl); in epu_dma_done()
313 cx18_stream_rotate_idx_mdls(cx); in epu_dma_done()
319 wake_up(&cx->dma_waitq); in epu_dma_done()
[all …]
Dcx18-av-firmware.c22 static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw) in cx18_av_verifyfw() argument
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()
36 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, dl_control); in cx18_av_verifyfw()
37 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
42 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw()
55 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()
73 if (request_firmware(&fw, FWFILE, &cx->pci_dev->dev) != 0) { in cx18_av_loadfw()
[all …]
Dcx18-irq.c15 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()
23 static void epu_cmd(struct cx18 *cx, u32 sw1) in epu_cmd() argument
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()
[all …]
Dcx18-controls.c21 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_stream_vbi_fmt() local
24 if (atomic_read(&cx->ana_capturing) > 0) in cx18_s_stream_vbi_fmt()
32 cx->vbi.insert_mpeg = V4L2_MPEG_STREAM_VBI_FMT_NONE; 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()
44 if (cx->vbi.sliced_mpeg_data[i] == NULL) { 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()
[all …]
Dcx18-vbi.c25 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data() argument
45 int idx = cx->vbi.frame % CX18_VBI_FRAMES; in copy_vbi_data()
46 u8 *dst = &cx->vbi.sliced_mpeg_data[idx][0]; in copy_vbi_data()
49 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; in copy_vbi_data()
89 cx->vbi.sliced_mpeg_size[idx] = sd + size; in copy_vbi_data()
95 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument
98 u32 lines = cx->vbi.count * 2; in compress_raw_buf()
128 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, in compress_sliced_buf() argument
134 u32 line_size = cx->is_60hz ? VBI_HBLANK_SAMPLES_60HZ in compress_sliced_buf()
163 v4l2_subdev_call(cx->sd_av, vbi, decode_vbi_line, &vbi); in compress_sliced_buf()
[all …]
Dcx18-av-vbi.c120 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_g_sliced_fmt() local
121 struct cx18_av_state *state = &cx->av_state; in cx18_av_g_sliced_fmt()
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()
150 u8 v = cx18_av_read(cx, 0x424 + i - 10); in cx18_av_g_sliced_fmt()
163 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_s_raw_fmt() local
164 struct cx18_av_state *state = &cx->av_state; in cx18_av_s_raw_fmt()
167 cx18_av_std_setup(cx); in cx18_av_s_raw_fmt()
170 cx18_av_write(cx, 0x47f, state->slicer_line_delay); in cx18_av_s_raw_fmt()
171 cx18_av_write(cx, 0x404, 0x2e); in cx18_av_s_raw_fmt()
[all …]
Dcx18-dvb.c125 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 …]
Dcx18-audio.c23 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()
Dcx18-alsa-main.c95 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 …]
/linux-6.6.21/fs/orangefs/
Dxattr.c66 struct orangefs_cached_xattr *cx; in find_cached_xattr() local
72 hlist_for_each_entry_safe(cx, tmp, h, node) { in find_cached_xattr()
78 if (!strcmp(cx->key, key)) in find_cached_xattr()
79 return cx; in find_cached_xattr()
98 struct orangefs_cached_xattr *cx; in orangefs_inode_getxattr() local
127 cx = find_cached_xattr(inode, name); in orangefs_inode_getxattr()
128 if (cx && time_before(jiffies, cx->timeout)) { in orangefs_inode_getxattr()
129 if (cx->length == -1) { in orangefs_inode_getxattr()
134 ret = cx->length; in orangefs_inode_getxattr()
137 if (cx->length > size) { in orangefs_inode_getxattr()
[all …]
/linux-6.6.21/arch/x86/kernel/acpi/
Dcstate.c124 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()
169 struct acpi_processor_cx *cx, struct acpi_power_register *reg) in acpi_processor_ffh_cstate_probe() argument
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()
187 retval = call_on_cpu(cpu, acpi_processor_ffh_cstate_probe_cpu, cx, in acpi_processor_ffh_cstate_probe()
[all …]
/linux-6.6.21/drivers/acpi/
Dprocessor_idle.c126 struct acpi_processor_cx *cx) in lapic_timer_check_state() argument
144 if (cx->type >= type) in lapic_timer_check_state()
166 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument
168 return cx - pr->power.states >= pr->power.timer_broadcast_on_state; in lapic_timer_needs_broadcast()
178 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument
311 struct acpi_processor_cx *cx) in acpi_processor_power_verify_c3() argument
317 if (!cx->address) in acpi_processor_power_verify_c3()
376 cx->valid = 1; in acpi_processor_power_verify_c3()
421 struct acpi_processor_cx *cx = &pr->power.states[i]; in acpi_processor_power_verify() local
423 switch (cx->type) { in acpi_processor_power_verify()
[all …]
/linux-6.6.21/arch/arm/mach-omap2/
Dcpuidle44xx.c97 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 …]

1234567891011