Lines Matching defs:virtid
1363 * @param virtid Assign virtid to a set of cores.
1367 int cvmx_l2c_vrt_assign_virtid(int virtid, uint32_t coremask)
1378 if (virtid > max_virtid) {
1380 max_virtid, virtid);
1390 /* Check if the core already has a virtid assigned. */
1392 cvmx_dprintf("WARNING: cvmx_l2c_vrt_assign_virt_id: Changing virtid of core #%d to %d from %d.\n",
1393 (unsigned int)core, virtid,
1399 cvmx_write_csr(CVMX_L2C_VIRTID_PPX(core), virtid & 0x3f);
1422 * Remove a virt id assigned to a set of cores. Update the virtid mask and
1423 * virtid stored for each core.
1425 * @param virtid Remove the specified Virtualization machine ID.
1427 void cvmx_l2c_vrt_remove_virtid(int virtid)
1437 if (virtid == l2c_virtid_ppx.s.id)
1469 * @param virtid Virtual ID to use
1471 * = 0, Allow write access by virtid
1472 * = 1, Disallow write access by virtid
1474 int cvmx_l2c_vrt_memprotect(uint64_t start_addr, int size, int virtid, int mode)
1501 if (virtid > cvmx_l2c_vrt_get_max_virtids()) {
1506 /* No need to protect if virtid is not assigned to a core */
1510 if (l2c_virtid_ppx.s.id == virtid) {
1517 virtid);
1554 /* Enable memory protection for each virtid for the specified range. */
1564 l2c_vrt_mem_bit_index |= (virtid << virtid_offset);