Lines Matching defs:bank_curr
1584 struct bank_info *bank_curr;
1612 if ((bank_curr = (struct bank_info *)mc_node_get(idx, bank_head))
1618 bank_curr = kmem_zalloc(sizeof (struct bank_info), KM_SLEEP);
1619 bank_curr->bank_node.id = idx;
1620 bank_curr->valid = mcreg._s.valid;
1621 bank_curr->dimminfop = dimminfop;
1624 mc_node_add((mc_dlist_t *)bank_curr, &bank_head, &bank_tail);
1642 bank_curr->uk = mcreg._s.uk;
1643 bank_curr->um = mcreg._s.um;
1644 bank_curr->lk = mcreg._s.lk;
1645 bank_curr->lm = mcreg._s.lm;
1646 bank_curr->size = size;
1655 bank_curr->pos = bank_no >> 1;
1656 ASSERT((bank_curr->pos == 0) || (bank_curr->pos == 1));
1680 kmem_free(bank_curr, sizeof (struct bank_info));
1685 bank_curr->devgrp_id = idx;
1698 kmem_free(bank_curr, sizeof (struct bank_info));
1719 bank_curr->seg_id = seg_curr->seg_node.id;
1723 bank_curr->seg_id = seg_id;
1735 bank_curr->local_id = seg_curr->nbanks - 1;
1739 bank_curr->p_inseg = seg_curr->tb_inseg;
1740 bank_curr->n_inseg = seg_curr->tb_inseg->n_inseg;
1741 seg_curr->tb_inseg->n_inseg = bank_curr;
1742 seg_curr->tb_inseg = bank_curr;
1744 bank_curr->n_inseg = bank_curr->p_inseg = NULL;
1745 seg_curr->hb_inseg = seg_curr->tb_inseg = bank_curr;
1752 mc_update_bank(bank_curr);
1755 mc_node_add((mc_dlist_t *)bank_curr, &bank_head, &bank_tail);
1781 struct bank_info *bank_curr;
1835 if (!(bank_curr = (struct bank_info *)mc_node_get(bankid,
1841 if (bank_curr->valid) {
1842 base = bank_curr->um & ~bank_curr->uk;
1844 bank_curr->valid = 0;
1845 memsize -= bank_curr->size;
1850 mc_node_del((mc_dlist_t *)bank_curr, &bank_head,
1852 kmem_free(bank_curr, sizeof (struct bank_info));
1857 if (bank_curr->n_inseg == NULL) {
1859 seg->tb_inseg = bank_curr->p_inseg;
1861 bank_curr->n_inseg->p_inseg =
1862 bank_curr->p_inseg;
1865 if (bank_curr->p_inseg == NULL) {
1867 seg->hb_inseg = bank_curr->n_inseg;
1869 bank_curr->p_inseg->n_inseg =
1870 bank_curr->n_inseg;
1874 seg->size -= bank_curr->size;
1884 mc_node_del((mc_dlist_t *)bank_curr, &bank_head, &bank_tail);
1885 kmem_free(bank_curr, sizeof (struct bank_info));