Lines Matching refs:cvmx_bootmem_desc

43 static struct cvmx_bootmem_desc *cvmx_bootmem_desc;  variable
173 cvmx_spinlock_lock((cvmx_spinlock_t *) &(cvmx_bootmem_desc->lock)); in cvmx_bootmem_lock()
178 cvmx_spinlock_unlock((cvmx_spinlock_t *) &(cvmx_bootmem_desc->lock)); in cvmx_bootmem_unlock()
197 if (!cvmx_bootmem_desc) { in cvmx_bootmem_init()
200 cvmx_bootmem_desc = cvmx_phys_to_ptr(CAST64(mem_desc_ptr)); in cvmx_bootmem_init()
202 cvmx_bootmem_desc = (struct cvmx_bootmem_desc *) mem_desc_ptr; in cvmx_bootmem_init()
238 if (cvmx_bootmem_desc->major_version > 3) { in cvmx_bootmem_phy_alloc()
241 (int)cvmx_bootmem_desc->major_version, in cvmx_bootmem_phy_alloc()
242 (int)cvmx_bootmem_desc->minor_version, in cvmx_bootmem_phy_alloc()
243 cvmx_bootmem_desc); in cvmx_bootmem_phy_alloc()
302 head_addr = cvmx_bootmem_desc->head_addr; in cvmx_bootmem_phy_alloc()
391 cvmx_bootmem_desc->head_addr = in cvmx_bootmem_phy_alloc()
440 if (cvmx_bootmem_desc->major_version > 3) { in __cvmx_bootmem_phy_free()
443 (int)cvmx_bootmem_desc->major_version, in __cvmx_bootmem_phy_free()
444 (int)cvmx_bootmem_desc->minor_version, in __cvmx_bootmem_phy_free()
445 cvmx_bootmem_desc); in __cvmx_bootmem_phy_free()
455 cur_addr = cvmx_bootmem_desc->head_addr; in __cvmx_bootmem_phy_free()
468 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
474 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
584 cvmx_phys_to_ptr(cvmx_bootmem_desc->named_block_array_addr); in cvmx_bootmem_phy_named_block_find()
591 if (cvmx_bootmem_desc->major_version == 3) { in cvmx_bootmem_phy_named_block_find()
593 i < cvmx_bootmem_desc->named_block_num_blocks; i++) { in cvmx_bootmem_phy_named_block_find()
596 cvmx_bootmem_desc->named_block_name_len in cvmx_bootmem_phy_named_block_find()
608 (int)cvmx_bootmem_desc->major_version, in cvmx_bootmem_phy_named_block_find()
609 (int)cvmx_bootmem_desc->minor_version, in cvmx_bootmem_phy_named_block_find()
610 cvmx_bootmem_desc); in cvmx_bootmem_phy_named_block_find()
673 if (cvmx_bootmem_desc->major_version != 3) { in cvmx_bootmem_phy_named_block_free()
676 (int)cvmx_bootmem_desc->major_version, in cvmx_bootmem_phy_named_block_free()
677 (int)cvmx_bootmem_desc->minor_version, in cvmx_bootmem_phy_named_block_free()
678 cvmx_bootmem_desc); in cvmx_bootmem_phy_named_block_free()
736 if (cvmx_bootmem_desc->major_version != 3) { in cvmx_bootmem_phy_named_block_alloc()
739 (int)cvmx_bootmem_desc->major_version, in cvmx_bootmem_phy_named_block_alloc()
740 (int)cvmx_bootmem_desc->minor_version, in cvmx_bootmem_phy_named_block_alloc()
741 cvmx_bootmem_desc); in cvmx_bootmem_phy_named_block_alloc()
750 cvmx_spinlock_lock((cvmx_spinlock_t *)&(cvmx_bootmem_desc->lock)); in cvmx_bootmem_phy_named_block_alloc()
764 cvmx_spinlock_unlock((cvmx_spinlock_t *)&(cvmx_bootmem_desc->lock)); in cvmx_bootmem_phy_named_block_alloc()
784 cvmx_bootmem_desc->named_block_name_len); in cvmx_bootmem_phy_named_block_alloc()
785 named_block_desc_ptr->name[cvmx_bootmem_desc->named_block_name_len - 1] = 0; in cvmx_bootmem_phy_named_block_alloc()
789 cvmx_spinlock_unlock((cvmx_spinlock_t *)&(cvmx_bootmem_desc->lock)); in cvmx_bootmem_phy_named_block_alloc()
793 struct cvmx_bootmem_desc *cvmx_bootmem_get_desc(void) in cvmx_bootmem_get_desc()
795 return cvmx_bootmem_desc; in cvmx_bootmem_get_desc()