/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_object.c | 120 * @domain: requested domain 122 * Sets buffer's placement according to requested domain and the buffer's 125 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) argument 133 if (domain & AMDGPU_GEM_DOMAIN_VRAM) { 161 if (domain & AMDGPU_GEM_DOMAIN_DOORBELL) { 169 if (domain & AMDGPU_GEM_DOMAIN_GTT) { 179 if (domain & AMDGPU_GEM_DOMAIN_CPU) { 187 if (domain & AMDGPU_GEM_DOMAIN_GDS) { 195 if (domain 244 amdgpu_bo_create_reserved(struct amdgpu_device *adev, unsigned long size, int align, u32 domain, struct amdgpu_bo **bo_ptr, u64 *gpu_addr, void **cpu_addr) argument 340 amdgpu_bo_create_kernel(struct amdgpu_device *adev, unsigned long size, int align, u32 domain, struct amdgpu_bo **bo_ptr, u64 *gpu_addr, void **cpu_addr) argument 460 amdgpu_bo_validate_size(struct amdgpu_device *adev, unsigned long size, u32 domain) argument 892 amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain, u64 min_offset, u64 max_offset) argument 999 amdgpu_bo_pin(struct amdgpu_bo *bo, u32 domain) argument 1284 unsigned int domain; local 1552 amdgpu_bo_get_preferred_domain(struct amdgpu_device *adev, uint32_t domain) argument 1594 unsigned int domain; local [all...] |
H A D | amdgpu_csa.h | 33 u32 domain, uint32_t size);
|
/linux-master/tools/testing/selftests/landlock/ |
H A D | net_test.c | 40 int domain; member in struct:protocol_variant 80 switch (prot.domain) { 83 srv->ipv4_addr.sin_family = prot.domain; 89 srv->ipv6_addr.sin6_family = prot.domain; 95 srv->unix_addr.sun_family = prot.domain; 120 switch (prot->domain) { 136 ret = socket(srv->protocol.domain, srv->protocol.type | SOCK_CLOEXEC, 150 switch (srv->protocol.domain) { 173 switch (srv->protocol.domain) { 196 switch (prot->domain) { 981 const int domain; local [all...] |
/linux-master/drivers/irqchip/ |
H A D | irq-meson-gpio.c | 406 struct meson_gpio_irq_controller *ctl = data->domain->host_data; 431 static int meson_gpio_irq_domain_translate(struct irq_domain *domain, argument 445 static int meson_gpio_irq_allocate_gic_irq(struct irq_domain *domain, argument 452 fwspec.fwnode = domain->parent->fwnode; 458 return irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); 461 static int meson_gpio_irq_domain_alloc(struct irq_domain *domain, argument 467 struct meson_gpio_irq_controller *ctl = domain->host_data; 476 ret = meson_gpio_irq_domain_translate(domain, fwspec, &hwirq, &type); 484 ret = meson_gpio_irq_allocate_gic_irq(domain, virq, 492 irq_domain_set_hwirq_and_chip(domain, vir 498 meson_gpio_irq_domain_free(struct irq_domain *domain, unsigned int virq, unsigned int nr_irqs) argument 551 struct irq_domain *domain, *parent_domain; local [all...] |
H A D | irq-mvebu-icu.c | 95 struct mvebu_icu_msi_data *msi_data = platform_msi_get_host_data(d->domain); 101 /* One off initialization per domain */ 196 mvebu_icu_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, argument 202 struct mvebu_icu_msi_data *msi_data = platform_msi_get_host_data(domain); 211 err = mvebu_icu_irq_domain_translate(domain, fwspec, &hwirq, 224 err = platform_msi_device_domain_alloc(domain, virq, nr_irqs); 226 dev_err(icu->dev, "failed to allocate ICU interrupt in parent domain\n"); 238 err = irq_domain_set_hwirq_and_chip(domain, virq, hwirq, 241 dev_err(icu->dev, "failed to set the data to IRQ domain\n"); 248 platform_msi_device_domain_free(domain, vir 255 mvebu_icu_irq_domain_free(struct irq_domain *domain, unsigned int virq, unsigned int nr_irqs) argument [all...] |
H A D | irq-gic-v3-mbi.c | 41 static int mbi_irq_gic_domain_alloc(struct irq_domain *domain, argument 53 if (!is_of_node(domain->parent->fwnode)) 61 fwspec.fwnode = domain->parent->fwnode; 67 err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); 71 d = irq_domain_get_irq_data(domain->parent, virq); 84 static int mbi_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, argument 114 err = mbi_irq_gic_domain_alloc(domain, virq + i, hwirq + i); 118 irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, 125 irq_domain_free_irqs_parent(domain, virq, nr_irqs); 130 static void mbi_irq_domain_free(struct irq_domain *domain, argument [all...] |
H A D | irq-jcore-aic.c | 70 struct irq_domain *domain; local 110 domain = irq_domain_add_legacy(node, dom_sz - min_irq, min_irq, min_irq, 113 if (!domain)
|
H A D | irq-crossbar.c | 74 static int allocate_gic_irq(struct irq_domain *domain, unsigned virq, argument 81 if (!irq_domain_get_of_node(domain->parent)) 96 fwspec.fwnode = domain->parent->fwnode; 102 err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); 121 return -EINVAL; /* No PPI should point to this domain */ 142 * @domain: domain of irq to unmap 152 static void crossbar_domain_free(struct irq_domain *domain, unsigned int virq, argument 159 struct irq_data *d = irq_domain_get_irq_data(domain, virq + i); 177 /* No PPI should point to this domain */ 336 struct irq_domain *parent_domain, *domain; local [all...] |
H A D | irq-mst-intc.c | 187 /* No PPI should point to this domain */ 202 static int mst_intc_domain_alloc(struct irq_domain *domain, unsigned int virq, argument 208 struct mst_intc_chip_data *cd = domain->host_data; 214 /* No PPI should point to this domain */ 220 irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, 222 domain->host_data); 225 parent_fwspec.fwnode = domain->parent->fwnode; 236 return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &parent_fwspec); 248 struct irq_domain *domain, *domain_parent; local 276 domain [all...] |
H A D | irq-mscc-ocelot.c | 80 struct irq_domain *d = data->domain; 121 struct irq_domain *domain; local 129 domain = irq_domain_add_linear(node, p->n_irq, 131 if (!domain) { 132 pr_err("%pOFn: unable to add irq domain\n", node); 136 ret = irq_alloc_domain_generic_chips(domain, p->n_irq, 1, 140 pr_err("%pOFn: unable to alloc irq domain gc\n", node); 144 gc = irq_get_domain_generic_chip(domain, 0); 173 domain->host_data = p; 175 domain); [all...] |
H A D | irq-atmel-aic.c | 141 static void __init aic_hw_init(struct irq_domain *domain) argument 143 struct irq_chip_generic *gc = irq_get_domain_generic_chip(domain, 0); 245 struct irq_domain *domain; local 250 domain = aic_common_of_init(node, &aic_irq_ops, "atmel-aic", 252 if (IS_ERR(domain)) 253 return PTR_ERR(domain); 255 aic_domain = domain; 256 gc = irq_get_domain_generic_chip(domain, 0); 269 aic_hw_init(domain);
|
H A D | irq-sunxi-nmi.c | 88 struct irq_domain *domain = irq_desc_get_handler_data(desc); local 92 generic_handle_domain_irq(domain, 0); 148 struct irq_domain *domain; local 155 domain = irq_domain_add_linear(node, 1, &irq_generic_chip_ops, NULL); 156 if (!domain) { 157 pr_err("Could not register interrupt domain.\n"); 161 ret = irq_alloc_domain_generic_chips(domain, 1, 2, DRV_NAME, 176 gc = irq_get_domain_generic_chip(domain, 0); 211 irq_set_chained_handler_and_data(irq, sunxi_sc_nmi_handle_irq, domain); 216 irq_domain_remove(domain); [all...] |
H A D | irq-tb10x.c | 90 struct irq_domain *domain = irq_desc_get_handler_data(desc); local 93 generic_handle_domain_irq(domain, irq); 102 struct irq_domain *domain; local 124 domain = irq_domain_add_linear(ictl, AB_IRQCTL_MAXIRQ, 126 if (!domain) { 128 pr_err("%pOFn: Could not register interrupt domain.\n", 133 ret = irq_alloc_domain_generic_chips(domain, AB_IRQCTL_MAXIRQ, 143 gc = domain->gc->gc[0]; 166 domain); 177 irq_domain_remove(domain); [all...] |
H A D | irq-gic-v4.c | 72 * contain an irq domain where each interrupt maps to a VPE. In 73 * turn, this domain sits on top of the normal LPI allocator, and a 167 vm->domain = irq_domain_create_hierarchy(gic_domain, 0, vm->nr_vpes, 170 if (!vm->domain) 178 vpe_base_irq = irq_domain_alloc_irqs(vm->domain, vm->nr_vpes, 194 if (vm->domain) 195 irq_domain_remove(vm->domain); 225 irq_domain_remove(vm->domain); 376 int its_init_v4(struct irq_domain *domain, argument 380 if (domain) { [all...] |
/linux-master/security/tomoyo/ |
H A D | securityfs_if.c | 38 * If domain transition was permitted but the domain transition failed, this 103 const char *domain = tomoyo_domain()->domainname->name; local 104 loff_t len = strlen(domain); 112 if (copy_to_user(buf, domain + pos, len)) 238 struct tomoyo_domain_info *domain; local 243 domain = tomoyo_domain(); 245 if (domain != &tomoyo_kernel_domain)
|
/linux-master/drivers/iommu/ |
H A D | sun50i-iommu.c | 109 struct iommu_domain *domain; member in struct:sun50i_iommu 114 struct iommu_domain domain; member in struct:sun50i_iommu_domain 116 /* Number of devices attached to the domain */ 126 static struct sun50i_iommu_domain *to_sun50i_domain(struct iommu_domain *domain) argument 128 return container_of(domain, struct sun50i_iommu_domain, domain); 225 * permissions through the IOMMU_DM_AUT_CTRL_REG registers. The domain 226 * 0 seems like the default domain, and its permissions in the 230 * Each page entry will then have a reference to the domain they are 236 * depending on the permission we want to enforce. Each domain wil 382 sun50i_iommu_flush_iotlb_all(struct iommu_domain *domain) argument 404 sun50i_iommu_iotlb_sync_map(struct iommu_domain *domain, unsigned long iova, size_t size) argument 418 sun50i_iommu_iotlb_sync(struct iommu_domain *domain, struct iommu_iotlb_gather *gather) argument 592 sun50i_iommu_map(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t size, size_t count, int prot, gfp_t gfp, size_t *mapped) argument 627 sun50i_iommu_unmap(struct iommu_domain *domain, unsigned long iova, size_t size, size_t count, struct iommu_iotlb_gather *gather) argument 651 sun50i_iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) argument 701 sun50i_iommu_domain_free(struct iommu_domain *domain) argument 786 sun50i_iommu_attach_device(struct iommu_domain *domain, struct device *dev) argument [all...] |
/linux-master/drivers/firmware/arm_scmi/ |
H A D | powercap.c | 71 __le32 domain; member in struct:scmi_msg_powercap_set_cap_or_pai 79 __le32 domain; member in struct:scmi_msg_resp_powercap_cap_set_complete 89 __le32 domain; member in struct:scmi_msg_powercap_notify_cap 94 __le32 domain; member in struct:scmi_msg_powercap_notify_thresh 139 u32 domain, int message_id, bool enable); 196 struct powercap_info *pinfo, u32 domain) 201 struct scmi_powercap_info *dom_info = pinfo->powercaps + domain; 205 sizeof(domain), sizeof(*resp), &t); 209 put_unaligned_le32(domain, t->tx.buf); 216 dom_info->id = domain; 195 scmi_powercap_domain_attributes_get(const struct scmi_protocol_handle *ph, struct powercap_info *pinfo, u32 domain) argument 710 scmi_powercap_domain_init_fc(const struct scmi_protocol_handle *ph, u32 domain, struct scmi_fc_info **p_fc) argument 744 scmi_powercap_notify(const struct scmi_protocol_handle *ph, u32 domain, int message_id, bool enable) argument 963 int domain, ret; local [all...] |
/linux-master/arch/x86/pci/ |
H A D | acpi.c | 284 seg = info->sd.domain; 316 pci_mmconfig_delete(info->sd.domain, 416 int domain = root->segment; local 422 root->segment = domain = 0; 424 if (domain && !pci_domains_supported) { 426 domain, busnum); 430 bus = pci_find_bus(domain, busnum); 437 .domain = domain, 450 domain, busnu [all...] |
/linux-master/include/uapi/linux/ |
H A D | virtio_iommu.h | 36 /* Max domain ID size */ 76 __le32 domain; member in struct:virtio_iommu_req_attach 85 __le32 domain; member in struct:virtio_iommu_req_detach 101 __le32 domain; member in struct:virtio_iommu_req_map 111 __le32 domain; member in struct:virtio_iommu_req_unmap
|
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | tegra.h | 26 struct iommu_domain *domain; member in struct:nvkm_device_tegra::__anon837
|
/linux-master/arch/arm/include/asm/ |
H A D | dma-iommu.h | 13 struct iommu_domain *domain; member in struct:dma_iommu_mapping
|
/linux-master/drivers/s390/crypto/ |
H A D | zcrypt_ep11misc.h | 95 /* EP11 domain info struct */ 101 u64 op_mode; /* domain operational mode(s) */ 110 * Provide information about a domain within an EP11 card. 112 int ep11_get_domain_info(u16 card, u16 domain, struct ep11_domain_info *info); 117 int ep11_genaeskey(u16 card, u16 domain, u32 keybitsize, u32 keygenflags, 123 int ep11_clr2keyblob(u16 cardnr, u16 domain, u32 keybitsize, u32 keygenflags, 131 * - if domain is not FFFF only apqns with this domainnr 136 * key for this domain. When a wkvp is given there will always be a re-fetch 137 * of the domain info for the potential apqn - so this triggers an request 141 * entry is simple a 32 bit value with 16 bit cardnr and 16 bit domain n [all...] |
H A D | zcrypt_ccamisc.h | 162 int cca_genseckey(u16 cardnr, u16 domain, u32 keybitsize, u8 *seckey); 167 int cca_clr2seckey(u16 cardnr, u16 domain, u32 keybitsize, 173 int cca_sec2protkey(u16 cardnr, u16 domain, 180 int cca_gencipherkey(u16 cardnr, u16 domain, u32 keybitsize, u32 keygenflags, 186 int cca_cipher2protkey(u16 cardnr, u16 domain, const u8 *ckey, 192 int cca_clr2cipherkey(u16 cardnr, u16 domain, u32 keybitsize, u32 keygenflags, 198 int cca_ecc2protkey(u16 cardnr, u16 domain, const u8 *key, 204 int cca_query_crypto_facility(u16 cardnr, u16 domain, 222 * - if domain is not FFFF only apqns with this domainnr 233 * entry is simple a 32 bit value with 16 bit cardnr and 16 bit domain n [all...] |
/linux-master/drivers/gpu/drm/loongson/ |
H A D | lsdc_gem.h | 31 u32 domain,
|
/linux-master/drivers/net/ipa/ |
H A D | ipa_mem.c | 456 struct iommu_domain *domain; local 464 domain = iommu_get_domain_for_dev(dev); 465 if (!domain) { 466 dev_err(dev, "no IOMMU domain found for IMEM\n"); 475 ret = iommu_map(domain, iova, phys, size, IOMMU_READ | IOMMU_WRITE, 489 struct iommu_domain *domain; local 494 domain = iommu_get_domain_for_dev(dev); 495 if (domain) { 498 size = iommu_unmap(domain, ipa->imem_iova, ipa->imem_size); 503 dev_err(dev, "couldn't get IPA IOMMU domain fo 530 struct iommu_domain *domain; local 597 struct iommu_domain *domain; local [all...] |