Lines Matching defs:sgc

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