Lines Matching defs:windows

8  * An MHUv2 mailbox controller can provide up to 124 channel windows (each 32
11 * windows.
19 * hardware - mainly the number of channel windows implemented by the platform,
38 /* Maximum number of channel windows */
167 * @windows: Channel windows implemented by the platform.
182 unsigned int windows;
222 * @windows: Total number of windows consumed by the channel, only relevant
233 u32 windows;
329 int i = priv->ch_wn_idx + priv->windows - 1;
343 int i = priv->ch_wn_idx + priv->windows - 1;
352 const int windows = priv->windows;
357 msg = kzalloc(sizeof(*msg) + windows * MHUV2_STAT_BYTES, GFP_KERNEL);
362 msg->len = windows * MHUV2_STAT_BYTES;
376 for (i = 0; i < windows; i++) {
378 data[windows - 1 - i] = readl_relaxed(&mhu->recv->ch_wn[idx].stat);
389 int i = priv->ch_wn_idx + priv->windows - 1;
402 int i = priv->ch_wn_idx + priv->windows - 1;
412 int i = priv->ch_wn_idx + priv->windows - 1;
420 * This is to allow for messages shorter than channel windows to still trigger
451 int windows = priv->windows;
463 bytes_in_round = min(bytes_left, (int)(windows * MHUV2_STAT_BYTES));
465 for (i = windows - 1; i >= 0; i--) {
466 /* Data less than windows can transfer ? */
477 writel_relaxed(word, &mhu->send->ch_wn[priv->ch_wn_idx + windows - 1 - i].stat_set);
482 data += windows;
503 int channel = 0, i, offset = 0, windows, protocol, ch_wn;
515 windows = mhu->protocols[i + 1];
517 if (ch_wn >= offset + windows) {
519 channel += MHUV2_STAT_BITS * windows;
523 offset += windows;
556 for (i = 0; i < priv->windows; i++)
797 int channel = 0, i, offset, doorbell, protocol, windows;
809 windows = mhu->protocols[i + 1];
812 if (offset < windows)
815 channel += MHUV2_STAT_BITS * windows;
816 offset -= windows;
839 int protocol, windows, channels = 0, total_windows = 0, i;
843 windows = mhu->protocols[i + 1];
845 if (!windows) {
849 total_windows += windows;
852 channels += MHUV2_STAT_BITS * windows;
862 if (total_windows > mhu->windows) {
863 dev_err(dev, "Channel windows can't be more than what's implemented by the hardware ( %d: %d)\n",
864 total_windows, mhu->windows);
878 int protocol, windows = 0, next_window = 0, i, j, k;
887 next_window += windows;
890 windows = mhu->protocols[i + 1];
899 priv->windows = windows;
904 for (j = 0; j < windows; j++) {
976 mhu->windows = readl_relaxed_bitfield(&mhu->send->mhu_cfg, struct mhu_cfg_t, num_ch);
1000 for (i = 0; i < mhu->windows; i++)
1030 mhu->windows = readl_relaxed_bitfield(&mhu->recv->mhu_cfg, struct mhu_cfg_t, num_ch);
1047 /* Mask all the channel windows */
1048 for (i = 0; i < mhu->windows; i++)
1086 /* Channel windows can't be 0 */
1087 BUG_ON(!mhu->windows);