Lines Matching refs:windows
182 unsigned int windows; member
233 u32 windows; member
329 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_rx_startup()
343 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_rx_shutdown()
352 const int windows = priv->windows; in mhuv2_data_transfer_read_data() local
357 msg = kzalloc(sizeof(*msg) + windows * MHUV2_STAT_BYTES, GFP_KERNEL); in mhuv2_data_transfer_read_data()
362 msg->len = windows * MHUV2_STAT_BYTES; in mhuv2_data_transfer_read_data()
376 for (i = 0; i < windows; i++) { in mhuv2_data_transfer_read_data()
378 data[windows - 1 - i] = readl_relaxed(&mhu->recv->ch_wn[idx].stat); in mhuv2_data_transfer_read_data()
389 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_tx_startup()
402 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_tx_shutdown()
412 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_last_tx_done()
451 int windows = priv->windows; in mhuv2_data_transfer_send_data() local
463 bytes_in_round = min(bytes_left, (int)(windows * MHUV2_STAT_BYTES)); in mhuv2_data_transfer_send_data()
465 for (i = windows - 1; i >= 0; i--) { in mhuv2_data_transfer_send_data()
477 writel_relaxed(word, &mhu->send->ch_wn[priv->ch_wn_idx + windows - 1 - i].stat_set); in mhuv2_data_transfer_send_data()
482 data += windows; in mhuv2_data_transfer_send_data()
503 int channel = 0, i, offset = 0, windows, protocol, ch_wn; in get_irq_chan_comb() local
515 windows = mhu->protocols[i + 1]; in get_irq_chan_comb()
517 if (ch_wn >= offset + windows) { in get_irq_chan_comb()
519 channel += MHUV2_STAT_BITS * windows; in get_irq_chan_comb()
523 offset += windows; in get_irq_chan_comb()
556 writel_relaxed(1, &mhu->send->ch_wn[priv->ch_wn_idx + priv->windows - 1].int_clr); in mhuv2_sender_interrupt()
796 int channel = 0, i, offset, doorbell, protocol, windows; in mhuv2_mbox_of_xlate() local
808 windows = mhu->protocols[i + 1]; in mhuv2_mbox_of_xlate()
811 if (offset < windows) in mhuv2_mbox_of_xlate()
814 channel += MHUV2_STAT_BITS * windows; in mhuv2_mbox_of_xlate()
815 offset -= windows; in mhuv2_mbox_of_xlate()
838 int protocol, windows, channels = 0, total_windows = 0, i; in mhuv2_verify_protocol() local
842 windows = mhu->protocols[i + 1]; in mhuv2_verify_protocol()
844 if (!windows) { in mhuv2_verify_protocol()
848 total_windows += windows; in mhuv2_verify_protocol()
851 channels += MHUV2_STAT_BITS * windows; in mhuv2_verify_protocol()
861 if (total_windows > mhu->windows) { in mhuv2_verify_protocol()
863 total_windows, mhu->windows); in mhuv2_verify_protocol()
877 int protocol, windows = 0, next_window = 0, i, j, k; in mhuv2_allocate_channels() local
886 next_window += windows; in mhuv2_allocate_channels()
889 windows = mhu->protocols[i + 1]; in mhuv2_allocate_channels()
898 priv->windows = windows; in mhuv2_allocate_channels()
903 for (j = 0; j < windows; j++) { in mhuv2_allocate_channels()
975 mhu->windows = readl_relaxed_bitfield(&mhu->send->mhu_cfg, struct mhu_cfg_t, num_ch); in mhuv2_tx_init()
999 for (i = 0; i < mhu->windows; i++) in mhuv2_tx_init()
1029 mhu->windows = readl_relaxed_bitfield(&mhu->recv->mhu_cfg, struct mhu_cfg_t, num_ch); in mhuv2_rx_init()
1047 for (i = 0; i < mhu->windows; i++) in mhuv2_rx_init()
1086 BUG_ON(!mhu->windows); in mhuv2_probe()