Lines Matching refs:prd
409 if (sgc->sge.prd.sge_cnt == 0) {
418 sgc->sge.prd.curr->ctl_len = cpu_to_le32(
420 sgc->sge.prd.curr->address = cpu_to_le64(addr);
432 if (sgc->sge.prd.chain) {
439 sgc->sge.prd.chain->ctl_len |= cpu_to_le32(
440 sgc->sge.prd.sgl_max_cnt);
467 sgc->sge.prd.chain = sgc->sge.prd.curr;
469 sgc->sge.prd.chain->ctl_len = cpu_to_le32(PRD_CHAIN);
470 sgc->sge.prd.chain->address =
478 sgc->sge.prd.curr =
482 sgc->sge.prd.sge_cnt = sgc->sge.prd.sgl_max_cnt - 1;
485 sgc->sge.prd.sge_cnt--;
487 sgc->sge.prd.curr->ctl_len = cpu_to_le32(PRD_DATA | len);
488 sgc->sge.prd.curr->address = cpu_to_le64(addr);
492 sgc->sge.prd.curr++;
513 if (sgc->sge.prd.chain) {
514 sgc->sge.prd.chain->ctl_len |=
515 cpu_to_le32(sgc->sge.prd.sgl_max_cnt
516 - sgc->sge.prd.sge_cnt
616 sgc->sge.prd.sgl_max_cnt = sgl_page_size /
623 sgc->sge.prd.sge_cnt = 0;
624 sgc->sge.prd.chain = NULL;
625 sgc->sge.prd.curr = curr_iblk_chn;