Lines Matching refs:sgc

144 			if (fc->sgc.cur_offset == NULL)  in esas2r_fmapi_callback()
181 struct esas2r_sg_context *sgc = &fc->sgc; in build_flash_msg() local
186 if (sgc->cur_offset) in build_flash_msg()
187 cksum = esas2r_calc_byte_xor_cksum(sgc->cur_offset, in build_flash_msg()
188 sgc->length, in build_flash_msg()
199 sgc->length); in build_flash_msg()
208 fc->curr_len = fc->sgc.length; in build_flash_msg()
210 if (sgc->cur_offset) { in build_flash_msg()
212 esas2r_sgc_init(sgc, a, rq, &rq->vrq->flash.data.sge[0]); in build_flash_msg()
214 if (!esas2r_build_sg_list(a, rq, sgc)) { in build_flash_msg()
219 fc->sgc.length = 0; in build_flash_msg()
364 fc->sgc.length = FM_BUF_SZ; in fw_download_proc()
366 fc->sgc.length = fc->cmp_len; in fw_download_proc()
368 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
378 while (fc->sgc.length == 0) { in fw_download_proc()
392 fc->sgc.length = ch->length; in fw_download_proc()
393 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
406 fc->sgc.length = FM_BUF_SZ; in fw_download_proc()
407 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
430 fc->sgc.length = ch->length; in fw_download_proc()
431 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
441 fc->sgc.length = FM_BUF_SZ; in fw_download_proc()
442 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
466 fc->sgc.length = ch->length; in fw_download_proc()
467 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
477 fc->sgc.length = FM_BUF_SZ; in fw_download_proc()
478 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
500 fc->sgc.length = ch->length; in fw_download_proc()
501 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
511 fc->sgc.length = FM_BUF_SZ; in fw_download_proc()
512 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
544 && fc->sgc.length > fc->cmp_len) in fw_download_proc()
545 fc->sgc.length = fc->cmp_len; in fw_download_proc()
848 struct esas2r_sg_context *sgc) in esas2r_process_fs_ioctl() argument
915 esas2r_sgc_init(sgc, a, rq, rq->vrq->flash.data.sge); in esas2r_process_fs_ioctl()
916 sgc->length = datalen; in esas2r_process_fs_ioctl()
918 if (!esas2r_build_sg_list(a, rq, sgc)) { in esas2r_process_fs_ioctl()
1391 struct esas2r_request *rq, struct esas2r_sg_context *sgc) in esas2r_fm_api() argument
1403 memcpy(&fc->sgc, sgc, sizeof(struct esas2r_sg_context)); in esas2r_fm_api()
1404 sgc = &fc->sgc; in esas2r_fm_api()
1406 fc->sgc_offset = sgc->cur_offset; in esas2r_fm_api()
1457 fc->sgc.length = FLS_LENGTH_BOOT; in esas2r_fm_api()
1458 fc->sgc.cur_offset = NULL; in esas2r_fm_api()