/xen/xen/common/ |
A D | device_tree.c | 140 if ( !np ) in dt_find_property() 256 return np; in dt_find_node_by_name() 270 return np; in dt_find_node_by_type() 281 return np; in dt_find_node_by_path() 374 return np; in dt_find_compatible_node() 400 np = np->parent; in __dt_n_addr_cells() 417 np = np->parent; in __dt_n_size_cells() 1770 memset(np, 0, sizeof(*np)); in unflatten_dt_node() 1915 np->dev.of_node = np; in unflatten_dt_node() 1921 np->name = (np->name) ? : dt_get_property(np, "name", NULL); in unflatten_dt_node() [all …]
|
/xen/xen/include/xen/ |
A D | device_tree.h | 118 struct dt_device_node *np; member 265 return (np && np->full_name) ? np->full_name : "<no-node>"; in dt_node_full_name() 270 return (np && np->name) ? np->name : "<no-node>"; in dt_node_name() 276 return !dt_node_cmp(np->name, name); in dt_node_name_is_equal() 282 return !dt_node_cmp(np->full_name, path); in dt_node_path_is_equal() 341 const void *dt_get_property(const struct dt_device_node *np, 356 bool_t dt_property_read_u32(const struct dt_device_node *np, 366 bool_t dt_property_read_u64(const struct dt_device_node *np, 400 int dt_property_read_string(const struct dt_device_node *np, 571 int dt_n_size_cells(const struct dt_device_node *np); [all …]
|
A D | iommu.h | 219 int iommu_add_dt_device(struct dt_device_node *np);
|
/xen/xen/drivers/passthrough/arm/ |
A D | iommu.c | 52 struct dt_device_node *np, *tmp; in iommu_hardware_setup() local 56 dt_for_each_device_node(dt_host, np) in iommu_hardware_setup() 58 rc = device_init(np, DEVICE_IOMMU, NULL); in iommu_hardware_setup() 68 ASSERT(list_empty(&np->domain_list)); in iommu_hardware_setup() 74 list_add(&np->domain_list, &deferred_probe_list); in iommu_hardware_setup() 102 list_for_each_entry_safe ( np, tmp, &deferred_probe_list, domain_list ) in iommu_hardware_setup() 104 rc = device_init(np, DEVICE_IOMMU, NULL); in iommu_hardware_setup() 110 list_del_init(&np->domain_list); in iommu_hardware_setup()
|
A D | smmu.c | 65 #define of_property_read_u32(np, pname, out) (!dt_property_read_u32(np, pname, out)) argument 785 master = find_smmu_master(smmu, masterspec->np); in register_smmu_master() 789 masterspec->np->name); in register_smmu_master() 796 MAX_MASTER_STREAMIDS, masterspec->np->name); in register_smmu_master() 804 master->of_node = masterspec->np; in register_smmu_master() 808 dt_device_set_protected(masterspec->np); in register_smmu_master() 817 masterspec->np->name, smmu->num_mapping_groups); in register_smmu_master() 2346 masterspec.np->name); in arm_smmu_device_dt_probe() 2455 struct device_node *np; 2464 if (!np) [all …]
|
A D | ipmmu-vmsa.c | 732 mmu = ipmmu_find_mmu_by_dev(dt_to_dev(args->np)); in ipmmu_init_platform_device() 764 struct dt_device_node *np; in ipmmu_stage2_supported() local 770 np = dt_find_compatible_node(NULL, NULL, "renesas,prr"); in ipmmu_stage2_supported() 771 if ( !np ) in ipmmu_stage2_supported() 777 if ( dt_device_get_address(np, 0, &addr, &size) ) in ipmmu_stage2_supported()
|
/xen/xen/drivers/passthrough/ |
A D | device_tree.c | 130 int iommu_add_dt_device(struct dt_device_node *np) in iommu_add_dt_device() argument 134 struct device *dev = dt_to_dev(np); in iommu_add_dt_device() 150 while ( !dt_parse_phandle_with_args(np, "iommus", "#iommu-cells", in iommu_add_dt_device() 169 if ( dt_device_is_protected(np) ) in iommu_add_dt_device() 175 if ( !dt_device_is_available(iommu_spec.np) ) in iommu_add_dt_device() 178 rc = iommu_fwspec_init(dev, &iommu_spec.np->dev); in iommu_add_dt_device()
|
/xen/xen/include/asm-x86/hvm/svm/ |
A D | vmcb.h | 393 bool np:1; /* 4: np_enable, h_cr3, g_pat */ member 617 VMCB_ACCESSORS(np_ctrl, np) 618 VMCB_ACCESSORS_(np_enable, bool, np) 619 VMCB_ACCESSORS_(sev_enable, bool, np) 620 VMCB_ACCESSORS_(sev_es_enable, bool, np) 621 VMCB_ACCESSORS_(gmet, bool, np) 622 VMCB_ACCESSORS_(vte, bool, np) 623 VMCB_ACCESSORS(h_cr3, np) 624 VMCB_ACCESSORS(g_pat, np)
|
/xen/xen/arch/x86/ |
A D | domctl.c | 354 if ( (fp + np) <= fp || (fp + np) > MAX_IOPORTS ) in arch_do_domctl() 360 ret = ioports_permit_access(d, fp, fp + np - 1); in arch_do_domctl() 362 ret = ioports_deny_access(d, fp, fp + np - 1); in arch_do_domctl() 710 unsigned int np = domctl->u.ioport_mapping.nr_ports; in arch_do_domctl() local 724 if ( ((fgp | fmp | (np - 1)) >= MAX_IOPORTS) || in arch_do_domctl() 725 ((fgp + np) > MAX_IOPORTS) || ((fmp + np) > MAX_IOPORTS) ) in arch_do_domctl() 729 domctl->domain, fgp, fmp, np); in arch_do_domctl() 746 d->domain_id, fgp, fmp, np); in arch_do_domctl() 752 g2m_ioport->np = np; in arch_do_domctl() 766 g2m_ioport->np = np; in arch_do_domctl() [all …]
|
/xen/xen/include/asm-x86/ |
A D | iommu.h | 31 unsigned int np; member
|
/xen/xen/arch/x86/hvm/ |
A D | io.c | 185 end = start + g2m_ioport->np; in g2m_portio_accept()
|
/xen/xen/arch/x86/hvm/svm/ |
A D | nestedsvm.c | 640 if ( !clean.np ) in nsvm_vmcb_prepare4vmrun()
|