Lines Matching refs:bgi
582 struct myrb_bgi_status *bgi, *last_bgi; in myrb_bgi_control() local
587 bgi = dma_alloc_coherent(&cb->pdev->dev, sizeof(struct myrb_bgi_status), in myrb_bgi_control()
589 if (!bgi) { in myrb_bgi_control()
603 bgi->ldev_num, 0); in myrb_bgi_control()
606 switch (bgi->status) { in myrb_bgi_control()
618 if (bgi->blocks_done == last_bgi->blocks_done && in myrb_bgi_control()
619 bgi->ldev_num == last_bgi->ldev_num) in myrb_bgi_control()
623 (100 * (bgi->blocks_done >> 7)) in myrb_bgi_control()
624 / (bgi->ldev_size >> 7)); in myrb_bgi_control()
639 memcpy(&cb->bgi_status, bgi, sizeof(struct myrb_bgi_status)); in myrb_bgi_control()
659 bgi, bgi_addr); in myrb_bgi_control()