Searched refs:nvec (Results 1 - 25 of 74) sorted by relevance

123

/linux-master/drivers/staging/nvec/
H A Dnvec.c33 #include "nvec.h"
80 .name = "nvec-kbd",
83 .name = "nvec-mouse",
86 .name = "nvec-power",
90 .name = "nvec-power",
94 .name = "nvec-paz00",
99 * nvec_register_notifier - Register a notifier with nvec
100 * @nvec: A &struct nvec_chip
104 * Registers a notifier with @nvec. The notifier will be added to an atomic
108 int nvec_register_notifier(struct nvec_chip *nvec, struc argument
123 nvec_unregister_notifier(struct nvec_chip *nvec, struct notifier_block *nb) argument
138 struct nvec_chip *nvec = container_of(nb, struct nvec_chip, local
166 nvec_msg_alloc(struct nvec_chip *nvec, enum nvec_msg_category category) argument
191 nvec_msg_free(struct nvec_chip *nvec, struct nvec_msg *msg) argument
236 nvec_gpio_set_value(struct nvec_chip *nvec, int value) argument
255 nvec_write_async(struct nvec_chip *nvec, const unsigned char *data, short size) argument
297 nvec_write_sync(struct nvec_chip *nvec, const unsigned char *data, short size, struct nvec_msg **msg) argument
338 nvec_toggle_global_events(struct nvec_chip *nvec, bool state) argument
376 struct nvec_chip *nvec = container_of(work, struct nvec_chip, tx_work); local
413 parse_msg(struct nvec_chip *nvec, struct nvec_msg *msg) argument
440 struct nvec_chip *nvec = container_of(work, struct nvec_chip, rx_work); local
471 nvec_tx_completed(struct nvec_chip *nvec) argument
489 nvec_rx_completed(struct nvec_chip *nvec) argument
530 nvec_invalid_flags(struct nvec_chip *nvec, unsigned int status, bool reset) argument
547 nvec_tx_set(struct nvec_chip *nvec) argument
583 struct nvec_chip *nvec = dev; local
723 tegra_init_i2c_slave(struct nvec_chip *nvec) argument
749 nvec_disable_i2c_slave(struct nvec_chip *nvec) argument
770 struct nvec_chip *nvec; local
888 struct nvec_chip *nvec = platform_get_drvdata(pdev); local
903 struct nvec_chip *nvec = dev_get_drvdata(dev); local
923 struct nvec_chip *nvec = dev_get_drvdata(dev); local
[all...]
H A Dnvec_kbd.c17 #include "nvec-keytable.h"
18 #include "nvec.h"
34 struct nvec_chip *nvec; member in struct:nvec_keys
50 nvec_write_async(keys_dev.nvec, buf, sizeof(buf));
88 struct nvec_chip *nvec = keys_dev.nvec; local
101 nvec_write_async(nvec, buf, sizeof(buf));
108 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); local
128 idev->name = "nvec keyboard";
129 idev->phys = "nvec";
166 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); local
[all...]
H A DMakefile3 obj-$(CONFIG_MFD_NVEC) += nvec.o
H A Dnvec_paz00.c15 #include "nvec.h"
23 struct nvec_chip *nvec; member in struct:nvec_led
34 nvec_write_async(led->nvec, buf, sizeof(buf));
41 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); local
54 led->nvec = nvec;
71 .name = "nvec-paz00",
80 MODULE_ALIAS("platform:nvec-paz00");
H A Dnvec_ps2.c18 #include "nvec.h"
44 struct nvec_chip *nvec; member in struct:nvec_ps2
53 return nvec_write_async(ps2_dev.nvec, buf, sizeof(buf));
60 nvec_write_async(ps2_dev.nvec, buf, sizeof(buf));
70 return nvec_write_async(ps2_dev.nvec, buf, sizeof(buf));
103 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); local
115 strscpy(ser_dev->name, "nvec mouse", sizeof(ser_dev->name));
116 strscpy(ser_dev->phys, "nvec", sizeof(ser_dev->phys));
120 ps2_dev.nvec = nvec;
130 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); local
[all...]
H A Dnvec.h164 int nvec_write_async(struct nvec_chip *nvec, const unsigned char *data,
167 int nvec_write_sync(struct nvec_chip *nvec,
171 int nvec_register_notifier(struct nvec_chip *nvec,
177 void nvec_msg_free(struct nvec_chip *nvec, struct nvec_msg *msg);
H A Dnvec_power.c19 #include "nvec.h"
26 struct nvec_chip *nvec; member in struct:nvec_power
116 nvec_write_async(power->nvec, buf, 2);
358 nvec_write_async(power->nvec, buf, 2);
367 nvec_write_async(power->nvec, buf, 2);
377 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); local
385 power->nvec = nvec;
409 nvec_register_notifier(nvec, &power->notifier, NVEC_SYS);
424 nvec_unregister_notifier(power->nvec,
[all...]
/linux-master/arch/powerpc/kernel/
H A Dmsi.c12 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) argument
23 if (type == PCI_CAP_ID_MSI && nvec > 1)
26 return phb->controller_ops.setup_msi_irqs(dev, nvec, type);
/linux-master/drivers/net/wwan/iosm/
H A Diosm_ipc_irq.c40 if (instance >= ipc_pcie->nvec)
54 while (--ipc_pcie->nvec >= 0)
55 free_irq(pdev->irq + ipc_pcie->nvec, ipc_pcie);
65 ipc_pcie->nvec = pci_alloc_irq_vectors(pdev, IPC_MSI_VECTORS,
68 if (ipc_pcie->nvec < 0) {
69 rc = ipc_pcie->nvec;
76 for (i = 0; i < ipc_pcie->nvec; ++i) {
82 ipc_pcie->nvec = i;
/linux-master/arch/x86/include/asm/xen/
H A Dpci.h34 int (*enable_msix)(struct pci_dev *dev, int vectors[], int nvec);
53 int vectors[], int nvec)
56 return xen_pci_frontend->enable_msix(dev, vectors, nvec);
52 xen_pci_frontend_enable_msix(struct pci_dev *dev, int vectors[], int nvec) argument
/linux-master/drivers/pci/msi/
H A Dlegacy.c19 int __weak arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) argument
28 if (type == PCI_CAP_ID_MSI && nvec > 1)
66 int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) argument
68 int ret = arch_setup_msi_irqs(dev, nvec, type);
H A Dmsi.c23 * @nvec: how many MSIs have been requested?
29 static int pci_msi_supported(struct pci_dev *dev, int nvec) argument
43 * b) the list manipulation code assumes nvec >= 1.
45 if (nvec < 1)
282 static int msi_setup_msi_desc(struct pci_dev *dev, int nvec, argument
299 desc.nvec_used = nvec;
304 desc.pci.msi_attrib.multiple = ilog2(__roundup_pow_of_two(nvec));
339 * @nvec: number of interrupts to allocate
348 static int msi_capability_init(struct pci_dev *dev, int nvec, argument
356 if (nvec >
409 int nvec; local
609 msix_setup_msi_descs(struct pci_dev *dev, struct msix_entry *entries, int nvec, struct irq_affinity_desc *masks) argument
656 msix_setup_interrupts(struct pci_dev *dev, struct msix_entry *entries, int nvec, struct irq_affinity *affd) argument
701 msix_capability_init(struct pci_dev *dev, struct msix_entry *entries, int nvec, struct irq_affinity *affd) argument
755 pci_msix_validate_entries(struct pci_dev *dev, struct msix_entry *entries, int nvec) argument
781 int hwsize, rc, nvec = maxvec; local
[all...]
H A Dmsi.h8 int pci_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type);
116 int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type);
119 static inline int pci_msi_legacy_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) argument
/linux-master/drivers/fpga/
H A Ddfl-pci.c52 int ret, nvec = pci_msix_vec_count(pcidev); local
54 if (nvec <= 0) {
59 ret = pci_alloc_irq_vectors(pcidev, nvec, nvec, PCI_IRQ_MSIX);
63 return nvec;
142 static int *cci_pci_create_irq_table(struct pci_dev *pcidev, unsigned int nvec) argument
147 table = kcalloc(nvec, sizeof(int), GFP_KERNEL);
151 for (i = 0; i < nvec; i++)
307 int nvec, ret = 0; local
316 nvec
[all...]
/linux-master/drivers/soc/ti/
H A Dti_sci_inta_msi.c97 int ret, nvec; local
107 nvec = ti_sci_inta_msi_alloc_descs(dev, res);
108 if (nvec <= 0) {
109 ret = nvec;
114 ret = msi_domain_alloc_irqs_all_locked(dev, MSI_DEFAULT_DOMAIN, nvec);
/linux-master/drivers/base/
H A Dplatform-msi.c145 static int platform_msi_alloc_priv_data(struct device *dev, unsigned int nvec, argument
157 if (!dev->msi.domain || !write_msi_msg || !nvec || nvec > MAX_DEV_MSIS)
203 * @nvec: The number of interrupts to allocate
209 static int platform_msi_domain_alloc_irqs(struct device *dev, unsigned int nvec, argument
214 err = platform_msi_alloc_priv_data(dev, nvec, write_msi_msg);
218 err = msi_domain_alloc_irqs_range(dev, MSI_DEFAULT_DOMAIN, 0, nvec - 1);
246 * @nvec: The number of MSIs that need to be allocated
252 * Return: An irqdomain for @nvec interrupts on success, NULL in case of error.
260 unsigned int nvec,
259 __platform_msi_create_device_domain(struct device *dev, unsigned int nvec, bool is_tree, irq_write_msi_msg_t write_msi_msg, const struct irq_domain_ops *ops, void *host_data) argument
403 platform_device_msi_init_and_alloc_irqs(struct device *dev, unsigned int nvec, irq_write_msi_msg_t write_msi_msg) argument
[all...]
/linux-master/drivers/irqchip/
H A Dirq-gic-v3-its-pci-msi.c54 int nvec, msi_alloc_info_t *info)
90 nvec = max(nvec, alias_count);
93 nvec = max_t(int, minnvec, roundup_pow_of_two(nvec));
94 return msi_info->ops->msi_prepare(domain->parent, dev, nvec, info);
53 its_pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec, msi_alloc_info_t *info) argument
H A Dirq-gic-v3-its-platform-msi.c47 int nvec, msi_alloc_info_t *info)
66 nvec = max_t(int, 32, roundup_pow_of_two(nvec));
68 dev, nvec, info);
46 its_pmsi_prepare(struct irq_domain *domain, struct device *dev, int nvec, msi_alloc_info_t *info) argument
H A Dirq-gic-v3-its-fsl-mc-msi.c41 int nvec, msi_alloc_info_t *info)
64 nvec = max_t(int, 32, roundup_pow_of_two(nvec));
65 return msi_info->ops->msi_prepare(msi_domain->parent, dev, nvec, info);
39 its_fsl_mc_msi_prepare(struct irq_domain *msi_domain, struct device *dev, int nvec, msi_alloc_info_t *info) argument
/linux-master/arch/powerpc/platforms/pseries/
H A Dmsi.c116 static int check_req(struct pci_dev *pdev, int nvec, char *prop_name) argument
131 if (req_msi < nvec) {
132 pr_debug("rtas_msi: %s requests < %d MSIs\n", prop_name, nvec);
143 static int check_req_msi(struct pci_dev *pdev, int nvec) argument
145 return check_req(pdev, nvec, "ibm,req#msi");
148 static int check_req_msix(struct pci_dev *pdev, int nvec) argument
150 return check_req(pdev, nvec, "ibm,req#msi-x");
348 int nvec = nvec_in; local
352 rc = check_req_msix(pdev, nvec);
354 rc = check_req_msi(pdev, nvec);
429 pseries_msi_ops_prepare(struct irq_domain *domain, struct device *dev, int nvec, msi_alloc_info_t *arg) argument
[all...]
/linux-master/arch/x86/pci/
H A Dxen.c161 int (*setup_msi_irqs)(struct pci_dev *dev, int nvec, int type);
167 static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) argument
173 if (type == PCI_CAP_ID_MSI && nvec > 1)
176 v = kcalloc(max(1, nvec), sizeof(int), GFP_KERNEL);
181 ret = xen_pci_frontend_enable_msix(dev, v, nvec);
189 (type == PCI_CAP_ID_MSI) ? nvec : 1,
229 static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) argument
235 if (type == PCI_CAP_ID_MSI && nvec > 1)
248 (type == PCI_CAP_ID_MSI) ? nvec : 1,
268 static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, in argument
411 xen_msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, int nvec) argument
[all...]
/linux-master/include/linux/
H A Dmsi.h384 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type);
462 struct device *dev, int nvec,
469 struct device *dev, int nvec);
650 int nvec, msi_alloc_info_t *args);
652 int virq, int nvec, msi_alloc_info_t *args);
653 void msi_domain_depopulate_descs(struct device *dev, int virq, int nvec);
657 unsigned int nvec,
663 #define platform_msi_create_device_domain(dev, nvec, write, ops, data) \
664 __platform_msi_create_device_domain(dev, nvec, false, write, ops, data)
665 #define platform_msi_create_device_tree_domain(dev, nvec, writ
[all...]
/linux-master/arch/x86/include/asm/
H A Dmsi.h9 int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec,
/linux-master/drivers/staging/
H A DMakefile17 obj-$(CONFIG_MFD_NVEC) += nvec/
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_irq.c331 int nvec; local
337 nvec = pci_alloc_irq_vectors(pdev, 1, VMWGFX_MAX_NUM_IRQS,
340 if (nvec <= 0) {
342 "IRQ's are unavailable, nvec: %d\n", nvec);
343 ret = nvec;
349 for (i = 0; i < nvec; ++i) {

Completed in 468 milliseconds

123