Lines Matching refs:cvmx_bootmem_desc

43 static struct cvmx_bootmem_desc *cvmx_bootmem_desc;  variable
141 cvmx_spinlock_lock((cvmx_spinlock_t *) &(cvmx_bootmem_desc->lock)); in cvmx_bootmem_lock()
146 cvmx_spinlock_unlock((cvmx_spinlock_t *) &(cvmx_bootmem_desc->lock)); in cvmx_bootmem_unlock()
165 if (!cvmx_bootmem_desc) { in cvmx_bootmem_init()
168 cvmx_bootmem_desc = cvmx_phys_to_ptr(CAST64(mem_desc_ptr)); in cvmx_bootmem_init()
170 cvmx_bootmem_desc = (struct cvmx_bootmem_desc *) mem_desc_ptr; in cvmx_bootmem_init()
206 if (cvmx_bootmem_desc->major_version > 3) { in cvmx_bootmem_phy_alloc()
209 (int)cvmx_bootmem_desc->major_version, in cvmx_bootmem_phy_alloc()
210 (int)cvmx_bootmem_desc->minor_version, in cvmx_bootmem_phy_alloc()
211 cvmx_bootmem_desc); in cvmx_bootmem_phy_alloc()
270 head_addr = cvmx_bootmem_desc->head_addr; in cvmx_bootmem_phy_alloc()
359 cvmx_bootmem_desc->head_addr = in cvmx_bootmem_phy_alloc()
408 if (cvmx_bootmem_desc->major_version > 3) { in __cvmx_bootmem_phy_free()
411 (int)cvmx_bootmem_desc->major_version, in __cvmx_bootmem_phy_free()
412 (int)cvmx_bootmem_desc->minor_version, in __cvmx_bootmem_phy_free()
413 cvmx_bootmem_desc); in __cvmx_bootmem_phy_free()
423 cur_addr = cvmx_bootmem_desc->head_addr; in __cvmx_bootmem_phy_free()
436 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
442 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
539 cvmx_phys_to_ptr(cvmx_bootmem_desc->named_block_array_addr); in cvmx_bootmem_phy_named_block_find()
546 if (cvmx_bootmem_desc->major_version == 3) { in cvmx_bootmem_phy_named_block_find()
548 i < cvmx_bootmem_desc->named_block_num_blocks; i++) { in cvmx_bootmem_phy_named_block_find()
551 cvmx_bootmem_desc->named_block_name_len in cvmx_bootmem_phy_named_block_find()
563 (int)cvmx_bootmem_desc->major_version, in cvmx_bootmem_phy_named_block_find()
564 (int)cvmx_bootmem_desc->minor_version, in cvmx_bootmem_phy_named_block_find()
565 cvmx_bootmem_desc); in cvmx_bootmem_phy_named_block_find()
577 if (cvmx_bootmem_desc->major_version != 3) { in cvmx_bootmem_phy_named_block_free()
580 (int)cvmx_bootmem_desc->major_version, in cvmx_bootmem_phy_named_block_free()
581 (int)cvmx_bootmem_desc->minor_version, in cvmx_bootmem_phy_named_block_free()
582 cvmx_bootmem_desc); in cvmx_bootmem_phy_named_block_free()
635 if (cvmx_bootmem_desc->major_version != 3) { in cvmx_bootmem_phy_named_block_alloc()
638 (int)cvmx_bootmem_desc->major_version, in cvmx_bootmem_phy_named_block_alloc()
639 (int)cvmx_bootmem_desc->minor_version, in cvmx_bootmem_phy_named_block_alloc()
640 cvmx_bootmem_desc); in cvmx_bootmem_phy_named_block_alloc()
649 cvmx_spinlock_lock((cvmx_spinlock_t *)&(cvmx_bootmem_desc->lock)); in cvmx_bootmem_phy_named_block_alloc()
663 cvmx_spinlock_unlock((cvmx_spinlock_t *)&(cvmx_bootmem_desc->lock)); in cvmx_bootmem_phy_named_block_alloc()
683 cvmx_bootmem_desc->named_block_name_len); in cvmx_bootmem_phy_named_block_alloc()
684 named_block_desc_ptr->name[cvmx_bootmem_desc->named_block_name_len - 1] = 0; in cvmx_bootmem_phy_named_block_alloc()
688 cvmx_spinlock_unlock((cvmx_spinlock_t *)&(cvmx_bootmem_desc->lock)); in cvmx_bootmem_phy_named_block_alloc()