/Linux-v4.19/drivers/media/pci/cx18/ |
D | cx18-scb.c | 22 void cx18_init_scb(struct cx18 *cx) in cx18_init_scb() argument 24 cx18_setup_page(cx, SCB_OFFSET); in cx18_init_scb() 25 cx18_memset_io(cx, cx->scb, 0, 0x10000); in cx18_init_scb() 27 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); in cx18_init_scb() 28 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); in cx18_init_scb() 29 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx->scb->hpu2cpu_irq); in cx18_init_scb() 30 cx18_writel(cx, IRQ_CPU_TO_HPU_ACK, &cx->scb->cpu2hpu_irq_ack); in cx18_init_scb() 31 cx18_writel(cx, IRQ_PPU_TO_CPU, &cx->scb->ppu2cpu_irq); in cx18_init_scb() 32 cx18_writel(cx, IRQ_CPU_TO_PPU_ACK, &cx->scb->cpu2ppu_irq_ack); in cx18_init_scb() 33 cx18_writel(cx, IRQ_EPU_TO_CPU, &cx->scb->epu2cpu_irq); in cx18_init_scb() [all …]
|
D | cx18-av-audio.c | 22 static int set_audclk_freq(struct cx18 *cx, u32 freq) in set_audclk_freq() argument 24 struct cx18_av_state *state = &cx->av_state; in set_audclk_freq() 72 cx18_av_write4(cx, 0x108, 0x200d040f); in set_audclk_freq() 76 cx18_av_write4(cx, 0x10c, 0x002be2fe); in set_audclk_freq() 80 cx18_av_write4(cx, 0x110, 0x0176740c); in set_audclk_freq() 84 cx18_av_write4(cx, 0x900, 0x0801f77f); in set_audclk_freq() 85 cx18_av_write4(cx, 0x904, 0x0801f77f); in set_audclk_freq() 86 cx18_av_write4(cx, 0x90c, 0x0801f77f); in set_audclk_freq() 89 cx18_av_write(cx, 0x127, 0x60); in set_audclk_freq() 92 cx18_av_write4(cx, 0x12c, 0x11202fff); in set_audclk_freq() [all …]
|
D | cx18-driver.c | 292 static void cx18_iounmap(struct cx18 *cx) in cx18_iounmap() argument 294 if (!cx) in cx18_iounmap() 298 if (cx->enc_mem) { in cx18_iounmap() 300 iounmap(cx->enc_mem); in cx18_iounmap() 301 cx->enc_mem = NULL; in cx18_iounmap() 305 static void cx18_eeprom_dump(struct cx18 *cx, unsigned char *eedata, int len) in cx18_eeprom_dump() argument 320 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) in cx18_read_eeprom() argument 332 c->adapter = &cx->i2c_adap[0]; in cx18_read_eeprom() 338 switch (cx->card->type) { in cx18_read_eeprom() 347 cx18_eeprom_dump(cx, eedata, sizeof(eedata)); in cx18_read_eeprom() [all …]
|
D | cx18-gpio.c | 47 static void gpio_write(struct cx18 *cx) in gpio_write() argument 49 u32 dir_lo = cx->gpio_dir & 0xffff; in gpio_write() 50 u32 val_lo = cx->gpio_val & 0xffff; in gpio_write() 51 u32 dir_hi = cx->gpio_dir >> 16; in gpio_write() 52 u32 val_hi = cx->gpio_val >> 16; in gpio_write() 54 cx18_write_reg_expect(cx, dir_lo << 16, in gpio_write() 56 cx18_write_reg_expect(cx, (dir_lo << 16) | val_lo, in gpio_write() 58 cx18_write_reg_expect(cx, dir_hi << 16, in gpio_write() 60 cx18_write_reg_expect(cx, (dir_hi << 16) | val_hi, in gpio_write() 64 static void gpio_update(struct cx18 *cx, u32 mask, u32 data) in gpio_update() argument [all …]
|
D | cx18-firmware.c | 96 static int load_cpu_fw_direct(const char *fn, u8 __iomem *mem, struct cx18 *cx) in load_cpu_fw_direct() argument 104 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_cpu_fw_direct() 113 cx18_setup_page(cx, i); in load_cpu_fw_direct() 116 cx18_raw_writel(cx, *src, dst); in load_cpu_fw_direct() 117 if (cx18_raw_readl(cx, dst) != *src) { in load_cpu_fw_direct() 120 cx18_setup_page(cx, 0); in load_cpu_fw_direct() 127 if (!test_bit(CX18_F_I_LOADED_FW, &cx->i_flags)) in load_cpu_fw_direct() 131 cx18_setup_page(cx, SCB_OFFSET); in load_cpu_fw_direct() 135 static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, in load_apu_fw_direct() argument 148 if (request_firmware(&fw, fn, &cx->pci_dev->dev)) { in load_apu_fw_direct() [all …]
|
D | cx18-i2c.c | 78 static int cx18_i2c_new_ir(struct cx18 *cx, struct i2c_adapter *adap, u32 hw, in cx18_i2c_new_ir() argument 82 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; in cx18_i2c_new_ir() 95 init_data->name = cx->card_name; in cx18_i2c_new_ir() 104 int cx18_i2c_register(struct cx18 *cx, unsigned idx) in cx18_i2c_register() argument 108 struct i2c_adapter *adap = &cx->i2c_adap[bus]; in cx18_i2c_register() 114 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() 115 adap, type, 0, cx->card_i2c->radio); in cx18_i2c_register() 118 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() 119 adap, type, 0, cx->card_i2c->demod); in cx18_i2c_register() 122 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register() [all …]
|
D | cx18-ioctl.c | 147 struct cx18 *cx = id->cx; in cx18_g_fmt_vid_cap() local 148 struct cx18_stream *s = &cx->streams[id->type]; in cx18_g_fmt_vid_cap() 151 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap() 152 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap() 170 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_vbi_cap() local 177 vbifmt->start[0] = cx->vbi.start[0]; in cx18_g_fmt_vbi_cap() 178 vbifmt->start[1] = cx->vbi.start[1]; in cx18_g_fmt_vbi_cap() 179 vbifmt->count[0] = vbifmt->count[1] = cx->vbi.count; in cx18_g_fmt_vbi_cap() 189 struct cx18 *cx = fh2id(fh)->cx; in cx18_g_fmt_sliced_vbi_cap() local 204 if (v4l2_subdev_call(cx->sd_av, vbi, g_sliced_fmt, &fmt->fmt.sliced)) in cx18_g_fmt_sliced_vbi_cap() [all …]
|
D | cx18-io.c | 22 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) in cx18_memset_io() argument 30 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io() 35 cx18_writew(cx, val2, dst); in cx18_memset_io() 40 cx18_writel(cx, val4, dst); in cx18_memset_io() 45 cx18_writew(cx, val2, dst); in cx18_memset_io() 50 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io() 53 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) in cx18_sw1_irq_enable() argument 55 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); in cx18_sw1_irq_enable() 56 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PCI) | val; in cx18_sw1_irq_enable() 57 cx18_write_reg(cx, cx->sw1_irq_mask, SW1_INT_ENABLE_PCI); in cx18_sw1_irq_enable() [all …]
|
D | cx18-io.h | 33 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument 39 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument 44 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument 48 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel() 49 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel() 55 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument 61 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument 66 static inline void cx18_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel() argument 70 cx18_writel_noretry(cx, val, addr); in cx18_writel() 71 if (val == cx18_readl(cx, addr)) in cx18_writel() [all …]
|
D | cx18-av-core.c | 24 int cx18_av_write(struct cx18 *cx, u16 addr, u8 value) in cx18_av_write() argument 29 u32 x = cx18_read_reg(cx, reg); in cx18_av_write() 32 cx18_write_reg(cx, x, reg); in cx18_av_write() 36 int cx18_av_write_expect(struct cx18 *cx, u16 addr, u8 value, u8 eval, u8 mask) in cx18_av_write_expect() argument 40 u32 x = cx18_read_reg(cx, reg); in cx18_av_write_expect() 43 cx18_write_reg_expect(cx, x, reg, in cx18_av_write_expect() 48 int cx18_av_write4(struct cx18 *cx, u16 addr, u32 value) in cx18_av_write4() argument 50 cx18_write_reg(cx, value, 0xc40000 + addr); in cx18_av_write4() 55 cx18_av_write4_expect(struct cx18 *cx, u16 addr, u32 value, u32 eval, u32 mask) in cx18_av_write4_expect() argument 57 cx18_write_reg_expect(cx, value, 0xc40000 + addr, eval, mask); in cx18_av_write4_expect() [all …]
|
D | cx18-streams.c | 119 struct cx18 *cx = s->cx; in cx18_prepare_buffer() local 135 buf->tvnorm != cx->std) { in cx18_prepare_buffer() 140 buf->tvnorm = cx->std; in cx18_prepare_buffer() 162 buf->tvnorm = cx->std; in cx18_prepare_buffer() 194 struct cx18 *cx = s->cx; in buffer_setup() local 196 *size = 2 * cx->cxhdl.width * cx->cxhdl.height; in buffer_setup() 216 struct cx18 *cx = s->cx; in buffer_prepare() local 219 cx->cxhdl.width, cx->cxhdl.height, field); in buffer_prepare() 250 static void cx18_stream_init(struct cx18 *cx, int type) in cx18_stream_init() argument 252 struct cx18_stream *s = &cx->streams[type]; in cx18_stream_init() [all …]
|
D | cx18-fileops.c | 41 struct cx18 *cx = id->cx; in cx18_claim_stream() local 42 struct cx18_stream *s = &cx->streams[type]; in cx18_claim_stream() 82 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_claim_stream() 83 if (cx->vbi.insert_mpeg && !cx18_raw_vbi(cx)) in cx18_claim_stream() 84 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_claim_stream() 100 struct cx18 *cx = s->cx; in cx18_release_stream() local 134 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_release_stream() 141 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_release_stream() 155 static void cx18_dualwatch(struct cx18 *cx) in cx18_dualwatch() argument 161 new_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_dualwatch() [all …]
|
D | cx18-av-firmware.c | 31 static int cx18_av_verifyfw(struct cx18 *cx, const struct firmware *fw) in cx18_av_verifyfw() argument 33 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_verifyfw() 41 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw() 45 cx18_av_write4_noretry(cx, CXADEC_DL_CTL, dl_control); in cx18_av_verifyfw() 46 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw() 51 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw() 64 dl_control = cx18_av_read4(cx, CXADEC_DL_CTL); in cx18_av_verifyfw() 72 int cx18_av_loadfw(struct cx18 *cx) in cx18_av_loadfw() argument 74 struct v4l2_subdev *sd = &cx->av_state.sd; in cx18_av_loadfw() 82 if (request_firmware(&fw, FWFILE, &cx->pci_dev->dev) != 0) { in cx18_av_loadfw() [all …]
|
D | cx18-mailbox.c | 114 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument 212 static void cx18_mdl_send_to_alsa(struct cx18 *cx, struct cx18_stream *s, in cx18_mdl_send_to_alsa() argument 227 cx->pcm_announce_callback(cx->alsa, buf->buf, in cx18_mdl_send_to_alsa() 235 cx->pcm_announce_callback(cx->alsa, buf->buf, buf->bytesused); in cx18_mdl_send_to_alsa() 239 static void epu_dma_done(struct cx18 *cx, struct cx18_in_work_order *order) in epu_dma_done() argument 250 s = cx18_handle_to_stream(cx, handle); in epu_dma_done() 309 if (cx->pcm_announce_callback != NULL) { in epu_dma_done() 310 cx18_mdl_send_to_alsa(cx, s, mdl); in epu_dma_done() 321 cx18_stream_rotate_idx_mdls(cx); in epu_dma_done() 327 wake_up(&cx->dma_waitq); in epu_dma_done() [all …]
|
D | cx18-irq.c | 24 static void xpu_ack(struct cx18 *cx, u32 sw2) in xpu_ack() argument 27 wake_up(&cx->mb_cpu_waitq); in xpu_ack() 29 wake_up(&cx->mb_apu_waitq); in xpu_ack() 32 static void epu_cmd(struct cx18 *cx, u32 sw1) in epu_cmd() argument 35 cx18_api_epu_cmd_irq(cx, CPU); in epu_cmd() 37 cx18_api_epu_cmd_irq(cx, APU); in epu_cmd() 42 struct cx18 *cx = (struct cx18 *)dev_id; in cx18_irq_handler() local 45 sw1 = cx18_read_reg(cx, SW1_INT_STATUS) & cx->sw1_irq_mask; in cx18_irq_handler() 46 sw2 = cx18_read_reg(cx, SW2_INT_STATUS) & cx->sw2_irq_mask; in cx18_irq_handler() 47 hw2 = cx18_read_reg(cx, HW2_INT_CLR_STATUS) & cx->hw2_irq_mask; in cx18_irq_handler() [all …]
|
D | cx18-controls.c | 30 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_stream_vbi_fmt() local 33 if (atomic_read(&cx->ana_capturing) > 0) in cx18_s_stream_vbi_fmt() 41 cx->vbi.insert_mpeg = V4L2_MPEG_STREAM_VBI_FMT_NONE; in cx18_s_stream_vbi_fmt() 47 if (cx->vbi.sliced_mpeg_data[0] == NULL) { in cx18_s_stream_vbi_fmt() 51 cx->vbi.sliced_mpeg_data[i] = in cx18_s_stream_vbi_fmt() 53 if (cx->vbi.sliced_mpeg_data[i] == NULL) { in cx18_s_stream_vbi_fmt() 55 kfree(cx->vbi.sliced_mpeg_data[i]); in cx18_s_stream_vbi_fmt() 56 cx->vbi.sliced_mpeg_data[i] = NULL; in cx18_s_stream_vbi_fmt() 58 cx->vbi.insert_mpeg = in cx18_s_stream_vbi_fmt() 66 cx->vbi.insert_mpeg = fmt; in cx18_s_stream_vbi_fmt() [all …]
|
D | cx18-vbi.c | 34 static void copy_vbi_data(struct cx18 *cx, int lines, u32 pts_stamp) in copy_vbi_data() argument 54 int idx = cx->vbi.frame % CX18_VBI_FRAMES; in copy_vbi_data() 55 u8 *dst = &cx->vbi.sliced_mpeg_data[idx][0]; in copy_vbi_data() 58 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; in copy_vbi_data() 98 cx->vbi.sliced_mpeg_size[idx] = sd + size; in copy_vbi_data() 104 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) in compress_raw_buf() argument 107 u32 lines = cx->vbi.count * 2; in compress_raw_buf() 137 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, in compress_sliced_buf() argument 143 u32 line_size = cx->is_60hz ? VBI_HBLANK_SAMPLES_60HZ in compress_sliced_buf() 172 v4l2_subdev_call(cx->sd_av, vbi, decode_vbi_line, &vbi); in compress_sliced_buf() [all …]
|
D | cx18-av-vbi.c | 129 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_g_sliced_fmt() local 130 struct cx18_av_state *state = &cx->av_state; in cx18_av_g_sliced_fmt() 145 if ((cx18_av_read(cx, 0x404) & 0x10) == 0) in cx18_av_g_sliced_fmt() 150 u8 v = cx18_av_read(cx, 0x424 + i - 7); in cx18_av_g_sliced_fmt() 159 u8 v = cx18_av_read(cx, 0x424 + i - 10); in cx18_av_g_sliced_fmt() 172 struct cx18 *cx = v4l2_get_subdevdata(sd); in cx18_av_s_raw_fmt() local 173 struct cx18_av_state *state = &cx->av_state; in cx18_av_s_raw_fmt() 176 cx18_av_std_setup(cx); in cx18_av_s_raw_fmt() 179 cx18_av_write(cx, 0x47f, state->slicer_line_delay); in cx18_av_s_raw_fmt() 180 cx18_av_write(cx, 0x404, 0x2e); in cx18_av_s_raw_fmt() [all …]
|
D | cx18-audio.c | 32 int cx18_audio_set_io(struct cx18 *cx) in cx18_audio_set_io() argument 39 if (test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)) in cx18_audio_set_io() 40 in = &cx->card->radio_input; in cx18_audio_set_io() 42 in = &cx->card->audio_inputs[cx->audio_input]; in cx18_audio_set_io() 45 v4l2_subdev_call(cx->sd_extmux, audio, s_routing, in cx18_audio_set_io() 48 err = cx18_call_hw_err(cx, cx->card->hw_audio_ctrl, in cx18_audio_set_io() 54 u = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_audio_set_io() 81 cx18_write_reg_expect(cx, u | 0xb00, CX18_AUDIO_ENABLE, in cx18_audio_set_io() 84 cx18_write_reg_expect(cx, v | 0xb00, CX18_AUDIO_ENABLE, in cx18_audio_set_io()
|
D | cx18-dvb.c | 135 struct cx18 *cx = stream->cx; in yuan_mpc718_mt352_reqfw() local 139 ret = request_firmware(fw, fn, &cx->pci_dev->dev); in yuan_mpc718_mt352_reqfw() 248 struct cx18 *cx; in cx18_dvb_start_feed() local 255 cx = stream->cx; in cx18_dvb_start_feed() 259 mutex_lock(&cx->serialize_lock); in cx18_dvb_start_feed() 260 ret = cx18_init_on_first_open(cx); in cx18_dvb_start_feed() 261 mutex_unlock(&cx->serialize_lock); in cx18_dvb_start_feed() 268 switch (cx->card->type) { in cx18_dvb_start_feed() 272 v = cx18_read_reg(cx, CX18_REG_DMUX_NUM_PORT_0_CONTROL); in cx18_dvb_start_feed() 278 cx18_write_reg(cx, v, CX18_REG_DMUX_NUM_PORT_0_CONTROL); in cx18_dvb_start_feed() [all …]
|
D | cx18-alsa-main.c | 111 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names() local 119 cx->instance); in snd_cx18_card_set_names() 124 cx->instance, cx->card_name); in snd_cx18_card_set_names() 131 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_init() local 142 ret = snd_card_new(&cx->pci_dev->dev, in snd_cx18_init() 174 cx->alsa = cxsc; in snd_cx18_init() 179 cx->alsa = NULL; in snd_cx18_init() 195 static int cx18_alsa_load(struct cx18 *cx) in cx18_alsa_load() argument 197 struct v4l2_device *v4l2_dev = &cx->v4l2_dev; in cx18_alsa_load() 206 cx = to_cx18(v4l2_dev); in cx18_alsa_load() [all …]
|
/Linux-v4.19/drivers/acpi/ |
D | processor_idle.c | 138 struct acpi_processor_cx *cx) in lapic_timer_check_state() argument 156 if (cx->type >= type) in lapic_timer_check_state() 178 struct acpi_processor_cx *cx, in lapic_timer_state_broadcast() argument 181 int state = cx - pr->power.states; in lapic_timer_state_broadcast() 197 struct acpi_processor_cx *cx, in lapic_timer_state_broadcast() argument 349 struct acpi_processor_cx cx; in acpi_processor_get_power_info_cst() local 351 memset(&cx, 0, sizeof(cx)); in acpi_processor_get_power_info_cst() 376 cx.type = obj->integer.value; in acpi_processor_get_power_info_cst() 381 if (i == 1 && cx.type != ACPI_STATE_C1) in acpi_processor_get_power_info_cst() 384 cx.address = reg->address; in acpi_processor_get_power_info_cst() [all …]
|
/Linux-v4.19/arch/x86/kernel/acpi/ |
D | cstate.c | 73 struct acpi_processor_cx *cx = _cx; in acpi_processor_ffh_cstate_probe_cpu() local 83 cstate_type = ((cx->address >> MWAIT_SUBSTATE_SIZE) & in acpi_processor_ffh_cstate_probe_cpu() 92 cx->address, edx_part); in acpi_processor_ffh_cstate_probe_cpu() 108 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-v4.19/arch/arm/mach-omap2/ |
D | cpuidle34xx.c | 114 struct omap3_idle_statedata *cx = &omap3_idle_data[index]; in omap3_enter_idle() local 120 if (cx->flags & OMAP_CPUIDLE_CX_NO_CLKDM_IDLE) { in omap3_enter_idle() 123 pwrdm_set_next_pwrst(mpu_pd, cx->mpu_state); in omap3_enter_idle() 124 pwrdm_set_next_pwrst(core_pd, cx->core_state); in omap3_enter_idle() 131 if (cx->mpu_state == PWRDM_POWER_OFF) in omap3_enter_idle() 141 if (cx->mpu_state == PWRDM_POWER_OFF && in omap3_enter_idle() 146 if (cx->flags & OMAP_CPUIDLE_CX_NO_CLKDM_IDLE) in omap3_enter_idle() 170 struct omap3_idle_statedata *cx = &omap3_idle_data[index]; in next_valid_state() local 188 if ((cx->mpu_state >= mpu_deepest_state) && in next_valid_state() 189 (cx->core_state >= core_deepest_state)) in next_valid_state() [all …]
|
D | cpuidle44xx.c | 100 struct idle_statedata *cx = state_ptr + index; in omap_enter_idle_smp() local 104 cx->mpu_state_vote++; in omap_enter_idle_smp() 105 if (cx->mpu_state_vote == num_online_cpus()) { in omap_enter_idle_smp() 106 pwrdm_set_logic_retst(mpu_pd, cx->mpu_logic_state); in omap_enter_idle_smp() 107 omap_set_pwrdm_state(mpu_pd, cx->mpu_state); in omap_enter_idle_smp() 111 omap4_enter_lowpower(dev->cpu, cx->cpu_state); in omap_enter_idle_smp() 114 if (cx->mpu_state_vote == num_online_cpus()) in omap_enter_idle_smp() 116 cx->mpu_state_vote--; in omap_enter_idle_smp() 126 struct idle_statedata *cx = state_ptr + index; in omap_enter_idle_coupled() local 152 mpuss_can_lose_context = (cx->mpu_state == PWRDM_POWER_RET) && in omap_enter_idle_coupled() [all …]
|