Lines Matching refs:cap_len
983 u32 cap_len = snf->buf_len - snf->nfi_cfg.page_size; in mtk_snand_read_page_cache() local
989 cap_len < req_left ? cap_len : req_left); in mtk_snand_read_page_cache()
991 u32 cap_len = snf->buf_len - rd_offset; in mtk_snand_read_page_cache() local
993 if (op->data.nbytes < cap_len) in mtk_snand_read_page_cache()
994 cap_len = op->data.nbytes; in mtk_snand_read_page_cache()
995 memcpy(op->data.buf.in, snf->buf + rd_offset, cap_len); in mtk_snand_read_page_cache()
1035 size_t cap_len; in mtk_snand_write_page_cache() local
1058 cap_len = snf->buf_len - wr_offset; in mtk_snand_write_page_cache()
1059 if (op->data.nbytes < cap_len) in mtk_snand_write_page_cache()
1060 cap_len = op->data.nbytes; in mtk_snand_write_page_cache()
1061 memcpy(snf->buf + wr_offset, op->data.buf.out, cap_len); in mtk_snand_write_page_cache()