Lines Matching refs:rbf_size
53 static int send_bitstream(const void *rbf_data, size_t rbf_size) in send_bitstream() argument
60 size_t buf_size = (rbf_size > BITSTREAM_CHUNK_SIZE) ? in send_bitstream()
61 BITSTREAM_CHUNK_SIZE : rbf_size; in send_bitstream()
63 while (rbf_size || xfer_count) { in send_bitstream()
64 if (!wr_ret && rbf_size) { in send_bitstream()
76 rbf_size -= buf_size; in send_bitstream()
79 if (buf_size >= rbf_size) in send_bitstream()
80 buf_size = rbf_size; in send_bitstream()
117 int intel_sdm_mb_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size) in intel_sdm_mb_load() argument
131 ret = send_bitstream(rbf_data, rbf_size); in intel_sdm_mb_load()
308 static int send_reconfig_data(const void *rbf_data, size_t rbf_size, in send_reconfig_data() argument
327 while (rbf_size || xfer_count) { in send_reconfig_data()
328 if (!resp_err && rbf_size && xfer_count < xfer_max) { in send_reconfig_data()
331 if (rbf_size >= buf_size_max) { in send_reconfig_data()
333 rbf_size -= buf_size_max; in send_reconfig_data()
336 args[2] = (u64)rbf_size; in send_reconfig_data()
337 rbf_size = 0; in send_reconfig_data()
391 int intel_sdm_mb_load(Altera_desc *desc, const void *rbf_data, size_t rbf_size) in intel_sdm_mb_load() argument
405 ret = send_reconfig_data(rbf_data, rbf_size, resp_buf[0], resp_buf[1]); in intel_sdm_mb_load()