Lines Matching +full:power +full:- +full:gated

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2003-2019, Intel Corporation. All rights reserved.
39 #define MEI_MAX_OPEN_HANDLE_COUNT (MEI_CLIENTS_MAX - 1)
74 * enum mei_cb_file_ops - file operation associated with the callback
98 * enum mei_cl_io_mode - io mode between driver and fw
103 * @MEI_CL_IO_RX_NONBLOCK: recv is non-blocking
128 * struct mei_dma_dscr - dma address descriptor
147 * struct mei_fw_status - storage of FW status data
158 * struct mei_me_client - representation of me (fw) client
182 * struct mei_cl_cb - file operation callback structure
209 * struct mei_cl_vtag - file pointer to vtag mapping structure
224 * struct mei_cl - me client host representation
225 * carried in file->private_data
243 * @notify_en: notification - enabled/disabled
290 * struct mei_hw_ops - hw specific ops
301 * @pg_state : power gating state of the device
303 * @pg_is_enabled : is power gating enabled
370 * enum mei_pg_event - power gating transition events
372 * @MEI_PG_EVENT_IDLE: the driver is not in power gating transition
387 * enum mei_pg_state - device internal power gating state
389 * @MEI_PG_OFF: device is not power gated - it is active
390 * @MEI_PG_ON: device is power gated - it is in lower power state
400 * struct mei_fw_version - MEI FW version struct
419 * struct mei_device - MEI private device struct
448 * @pg_event : power gating event
530 * Power Gating support
594 * mei_data2slots - get slots number from a message length
606 * mei_hbm2slots - get slots number from a hbm message length
619 * mei_slots2data - get data in slots - bytes from slots
671 return dev->ops->hw_config(dev); in mei_hw_config()
676 return dev->ops->pg_state(dev); in mei_pg_state()
681 return dev->ops->pg_in_transition(dev); in mei_pg_in_transition()
686 return dev->ops->pg_is_enabled(dev); in mei_pg_is_enabled()
691 return dev->ops->hw_reset(dev, enable); in mei_hw_reset()
696 return dev->ops->hw_start(dev); in mei_hw_start()
701 dev->ops->intr_clear(dev); in mei_clear_interrupts()
706 dev->ops->intr_enable(dev); in mei_enable_interrupts()
711 dev->ops->intr_disable(dev); in mei_disable_interrupts()
716 dev->ops->synchronize_irq(dev); in mei_synchronize_irq()
721 return dev->ops->host_is_ready(dev); in mei_host_is_ready()
725 return dev->ops->hw_is_ready(dev); in mei_hw_is_ready()
730 return dev->ops->hbuf_is_ready(dev); in mei_hbuf_is_ready()
735 return dev->ops->hbuf_free_slots(dev); in mei_hbuf_empty_slots()
740 return dev->ops->hbuf_depth(dev); in mei_hbuf_depth()
747 return dev->ops->write(dev, hdr, hdr_len, data, data_len); in mei_write_message()
752 return dev->ops->read_hdr(dev); in mei_read_hdr()
758 dev->ops->read(dev, buf, len); in mei_read_slots()
763 return dev->ops->rdbuf_full_slots(dev); in mei_count_full_read_slots()
768 if (dev->ops->trc_status) in mei_trc_status()
769 return dev->ops->trc_status(dev, trc); in mei_trc_status()
770 return -EOPNOTSUPP; in mei_trc_status()
776 return dev->ops->fw_status(dev, fw_status); in mei_fw_status()
796 (hdr)->host_addr, (hdr)->me_addr, \
797 (hdr)->length, (hdr)->dma_ring, (hdr)->extended, \
798 (hdr)->internal, (hdr)->msg_complete
802 * mei_fw_status_str - fetch and convert fw status registers to printable string