Lines Matching refs:prepend_cnt
144 u32 prepend_cnt; member
282 bs->prepend_cnt = 0; in bcm63xx_prepare_prepend_transfer()
293 if (bs->prepend_cnt + t->len > in bcm63xx_prepare_prepend_transfer()
308 memcpy(bs->prepend_buf + bs->prepend_cnt, t->tx_buf, t->len); in bcm63xx_prepare_prepend_transfer()
309 bs->prepend_cnt += t->len; in bcm63xx_prepare_prepend_transfer()
327 t_prepend->len = bs->prepend_cnt; in bcm63xx_prepare_prepend_transfer()
329 bs->prepend_cnt = 0; in bcm63xx_prepare_prepend_transfer()
336 if (bs->prepend_cnt > HSSPI_MAX_PREPEND_LEN) { in bcm63xx_prepare_prepend_transfer()
362 if (t->len + bs->prepend_cnt > (HSSPI_BUFFER_LEN - HSSPI_OPCODE_LEN)) { in bcm63xx_hsspi_do_prepend_txrx()
365 t->len, bs->prepend_cnt); in bcm63xx_hsspi_do_prepend_txrx()
384 reg |= bs->prepend_cnt << MODE_CTRL_MULTIDATA_RD_STRT_SHIFT; in bcm63xx_hsspi_do_prepend_txrx()
388 reg |= bs->prepend_cnt << MODE_CTRL_MULTIDATA_WR_STRT_SHIFT; in bcm63xx_hsspi_do_prepend_txrx()
392 reg |= bs->prepend_cnt << MODE_CTRL_PREPENDBYTE_CNT_SHIFT; in bcm63xx_hsspi_do_prepend_txrx()
397 if (bs->prepend_cnt) in bcm63xx_hsspi_do_prepend_txrx()
399 bs->prepend_cnt); in bcm63xx_hsspi_do_prepend_txrx()
401 memcpy_toio(bs->fifo + HSSPI_OPCODE_LEN + bs->prepend_cnt, tx, in bcm63xx_hsspi_do_prepend_txrx()
672 msg->actual_length = (t_prepend.len + bs->prepend_cnt); in bcm63xx_hsspi_transfer_one()