Lines Matching refs:windows

181 	unsigned int windows;  member
232 u32 windows; member
328 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_rx_startup()
342 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_rx_shutdown()
351 const int windows = priv->windows; in mhuv2_data_transfer_read_data() local
356 msg = kzalloc(sizeof(*msg) + windows * MHUV2_STAT_BYTES, GFP_KERNEL); in mhuv2_data_transfer_read_data()
361 msg->len = windows * MHUV2_STAT_BYTES; in mhuv2_data_transfer_read_data()
375 for (i = 0; i < windows; i++) { in mhuv2_data_transfer_read_data()
377 data[windows - 1 - i] = readl_relaxed(&mhu->recv->ch_wn[idx].stat); in mhuv2_data_transfer_read_data()
388 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_tx_startup()
401 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_tx_shutdown()
411 int i = priv->ch_wn_idx + priv->windows - 1; in mhuv2_data_transfer_last_tx_done()
450 int windows = priv->windows; in mhuv2_data_transfer_send_data() local
462 bytes_in_round = min(bytes_left, (int)(windows * MHUV2_STAT_BYTES)); in mhuv2_data_transfer_send_data()
464 for (i = windows - 1; i >= 0; i--) { in mhuv2_data_transfer_send_data()
476 writel_relaxed(word, &mhu->send->ch_wn[priv->ch_wn_idx + windows - 1 - i].stat_set); in mhuv2_data_transfer_send_data()
481 data += windows; in mhuv2_data_transfer_send_data()
502 int channel = 0, i, offset = 0, windows, protocol, ch_wn; in get_irq_chan_comb() local
514 windows = mhu->protocols[i + 1]; in get_irq_chan_comb()
516 if (ch_wn >= offset + windows) { in get_irq_chan_comb()
518 channel += MHUV2_STAT_BITS * windows; in get_irq_chan_comb()
522 offset += windows; in get_irq_chan_comb()
555 writel_relaxed(1, &mhu->send->ch_wn[priv->ch_wn_idx + priv->windows - 1].int_clr); in mhuv2_sender_interrupt()
795 int channel = 0, i, offset, doorbell, protocol, windows; in mhuv2_mbox_of_xlate() local
807 windows = mhu->protocols[i + 1]; in mhuv2_mbox_of_xlate()
810 if (offset < windows) in mhuv2_mbox_of_xlate()
813 channel += MHUV2_STAT_BITS * windows; in mhuv2_mbox_of_xlate()
814 offset -= windows; in mhuv2_mbox_of_xlate()
837 int protocol, windows, channels = 0, total_windows = 0, i; in mhuv2_verify_protocol() local
841 windows = mhu->protocols[i + 1]; in mhuv2_verify_protocol()
843 if (!windows) { in mhuv2_verify_protocol()
847 total_windows += windows; in mhuv2_verify_protocol()
850 channels += MHUV2_STAT_BITS * windows; in mhuv2_verify_protocol()
860 if (total_windows > mhu->windows) { in mhuv2_verify_protocol()
862 total_windows, mhu->windows); in mhuv2_verify_protocol()
876 int protocol, windows = 0, next_window = 0, i, j, k; in mhuv2_allocate_channels() local
885 next_window += windows; in mhuv2_allocate_channels()
888 windows = mhu->protocols[i + 1]; in mhuv2_allocate_channels()
897 priv->windows = windows; in mhuv2_allocate_channels()
902 for (j = 0; j < windows; j++) { in mhuv2_allocate_channels()
974 mhu->windows = readl_relaxed_bitfield(&mhu->send->mhu_cfg, struct mhu_cfg_t, num_ch); in mhuv2_tx_init()
998 for (i = 0; i < mhu->windows; i++) in mhuv2_tx_init()
1028 mhu->windows = readl_relaxed_bitfield(&mhu->recv->mhu_cfg, struct mhu_cfg_t, num_ch); in mhuv2_rx_init()
1046 for (i = 0; i < mhu->windows; i++) in mhuv2_rx_init()
1085 BUG_ON(!mhu->windows); in mhuv2_probe()