Lines Matching full:layout
41 struct scmi_shmem_layout *layout; in scmi_shmem_get_channel_status() local
44 layout = (struct scmi_shmem_layout *)data->regmap; in scmi_shmem_get_channel_status()
46 *status = layout->chan_status; in scmi_shmem_get_channel_status()
62 struct scmi_shmem_layout *layout; in scmi_shmem_read_message() local
68 layout = (struct scmi_shmem_layout *)data->regmap; in scmi_shmem_read_message()
79 if (cfg->size < (sizeof(*layout) + msg->len)) { in scmi_shmem_read_message()
85 if (msg->len != (layout->len - sizeof(layout->msg_hdr))) { in scmi_shmem_read_message()
88 (uint32_t)(layout->len - sizeof(layout->msg_hdr))); in scmi_shmem_read_message()
93 if (layout->msg_hdr != msg->hdr) { in scmi_shmem_read_message()
95 msg->hdr, layout->msg_hdr); in scmi_shmem_read_message()
101 data->regmap + sizeof(*layout), msg->len); in scmi_shmem_read_message()
109 struct scmi_shmem_layout *layout; in scmi_shmem_write_message() local
115 layout = (struct scmi_shmem_layout *)data->regmap; in scmi_shmem_write_message()
126 if (cfg->size < (sizeof(*layout) + msg->len)) { in scmi_shmem_write_message()
130 if (!(layout->chan_status & SCMI_SHMEM_CHAN_STATUS_BUSY_BIT)) { in scmi_shmem_write_message()
134 layout->len = sizeof(layout->msg_hdr) + msg->len; in scmi_shmem_write_message()
135 layout->msg_hdr = msg->hdr; in scmi_shmem_write_message()
138 scmi_shmem_memcpy(data->regmap + sizeof(*layout), in scmi_shmem_write_message()
143 layout->chan_status &= ~SCMI_SHMEM_CHAN_STATUS_BUSY_BIT; in scmi_shmem_write_message()
150 struct scmi_shmem_layout *layout; in scmi_shmem_channel_status() local
154 layout = (struct scmi_shmem_layout *)data->regmap; in scmi_shmem_channel_status()
156 return layout->chan_status; in scmi_shmem_channel_status()
161 struct scmi_shmem_layout *layout; in scmi_shmem_update_flags() local
165 layout = (struct scmi_shmem_layout *)data->regmap; in scmi_shmem_update_flags()
167 layout->chan_flags = (layout->chan_flags & ~mask) | (val & mask); in scmi_shmem_update_flags()