Home
last modified time | relevance | path

Searched full:nvec (Results 1 – 25 of 164) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/staging/nvec/
Dnvec.c3 * NVEC: NVIDIA compliant embedded controller interface
33 #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
103 * Registers a notifier with @nvec. The notifier will be added to an atomic
[all …]
Dnvec_kbd.c17 #include "nvec-keytable.h"
18 #include "nvec.h"
34 struct nvec_chip *nvec; member
50 nvec_write_async(keys_dev.nvec, buf, sizeof(buf)); in nvec_kbd_toggle_led()
88 struct nvec_chip *nvec = keys_dev.nvec; in nvec_kbd_event() local
101 nvec_write_async(nvec, buf, sizeof(buf)); in nvec_kbd_event()
108 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); in nvec_kbd_probe() local
128 idev->name = "nvec keyboard"; in nvec_kbd_probe()
129 idev->phys = "nvec"; in nvec_kbd_probe()
147 keys_dev.nvec = nvec; in nvec_kbd_probe()
[all …]
Dnvec_ps2.c18 #include "nvec.h"
44 struct nvec_chip *nvec; member
53 return nvec_write_async(ps2_dev.nvec, buf, sizeof(buf)); in ps2_startstreaming()
60 nvec_write_async(ps2_dev.nvec, buf, sizeof(buf)); in ps2_stopstreaming()
70 return nvec_write_async(ps2_dev.nvec, buf, sizeof(buf)); in ps2_sendcommand()
103 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); in nvec_mouse_probe() local
115 strlcpy(ser_dev->name, "nvec mouse", sizeof(ser_dev->name)); in nvec_mouse_probe()
116 strlcpy(ser_dev->phys, "nvec", sizeof(ser_dev->phys)); in nvec_mouse_probe()
120 ps2_dev.nvec = nvec; in nvec_mouse_probe()
121 nvec_register_notifier(nvec, &ps2_dev.notifier, 0); in nvec_mouse_probe()
[all …]
Dnvec_paz00.c15 #include "nvec.h"
26 struct nvec_chip *nvec; member
37 nvec_write_async(led->nvec, buf, sizeof(buf)); in nvec_led_brightness_set()
44 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); in nvec_paz00_probe() local
57 led->nvec = nvec; in nvec_paz00_probe()
74 .name = "nvec-paz00",
81 MODULE_DESCRIPTION("Tegra NVEC PAZ00 driver");
83 MODULE_ALIAS("platform:nvec-paz00");
DKconfig11 called mfd-nvec
21 called keyboard-nvec
31 called serio-nvec-ps2
35 tristate "NVEC charger and battery"
42 called nvec-power
53 called nvec-paz00
Dnvec_power.c19 #include "nvec.h"
26 struct nvec_chip *nvec; member
116 nvec_write_async(power->nvec, buf, 2); in get_bat_mfg_data()
358 nvec_write_async(power->nvec, buf, 2); in nvec_power_poll()
367 nvec_write_async(power->nvec, buf, 2); in nvec_power_poll()
377 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); in nvec_power_probe() local
385 power->nvec = nvec; in nvec_power_probe()
409 nvec_register_notifier(nvec, &power->notifier, NVEC_SYS); in nvec_power_probe()
424 nvec_unregister_notifier(power->nvec, &power->notifier); in nvec_power_remove()
440 .name = "nvec-power",
[all …]
/kernel/linux/linux-6.6/drivers/staging/nvec/
Dnvec.c3 * NVEC: NVIDIA compliant embedded controller interface
33 #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
[all …]
Dnvec_kbd.c17 #include "nvec-keytable.h"
18 #include "nvec.h"
34 struct nvec_chip *nvec; member
50 nvec_write_async(keys_dev.nvec, buf, sizeof(buf)); in nvec_kbd_toggle_led()
88 struct nvec_chip *nvec = keys_dev.nvec; in nvec_kbd_event() local
101 nvec_write_async(nvec, buf, sizeof(buf)); in nvec_kbd_event()
108 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); in nvec_kbd_probe() local
128 idev->name = "nvec keyboard"; in nvec_kbd_probe()
129 idev->phys = "nvec"; in nvec_kbd_probe()
147 keys_dev.nvec = nvec; in nvec_kbd_probe()
[all …]
Dnvec_ps2.c18 #include "nvec.h"
44 struct nvec_chip *nvec; member
53 return nvec_write_async(ps2_dev.nvec, buf, sizeof(buf)); in ps2_startstreaming()
60 nvec_write_async(ps2_dev.nvec, buf, sizeof(buf)); in ps2_stopstreaming()
70 return nvec_write_async(ps2_dev.nvec, buf, sizeof(buf)); in ps2_sendcommand()
103 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); in nvec_mouse_probe() local
115 strscpy(ser_dev->name, "nvec mouse", sizeof(ser_dev->name)); in nvec_mouse_probe()
116 strscpy(ser_dev->phys, "nvec", sizeof(ser_dev->phys)); in nvec_mouse_probe()
120 ps2_dev.nvec = nvec; in nvec_mouse_probe()
121 nvec_register_notifier(nvec, &ps2_dev.notifier, 0); in nvec_mouse_probe()
[all …]
Dnvec_paz00.c15 #include "nvec.h"
23 struct nvec_chip *nvec; member
34 nvec_write_async(led->nvec, buf, sizeof(buf)); in nvec_led_brightness_set()
41 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); in nvec_paz00_probe() local
54 led->nvec = nvec; in nvec_paz00_probe()
71 .name = "nvec-paz00",
78 MODULE_DESCRIPTION("Tegra NVEC PAZ00 driver");
80 MODULE_ALIAS("platform:nvec-paz00");
DKconfig11 called mfd-nvec
21 called keyboard-nvec
31 called serio-nvec-ps2
35 tristate "NVEC charger and battery"
42 called nvec-power
53 called nvec-paz00
Dnvec_power.c19 #include "nvec.h"
26 struct nvec_chip *nvec; member
116 nvec_write_async(power->nvec, buf, 2); in get_bat_mfg_data()
358 nvec_write_async(power->nvec, buf, 2); in nvec_power_poll()
367 nvec_write_async(power->nvec, buf, 2); in nvec_power_poll()
377 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); in nvec_power_probe() local
385 power->nvec = nvec; in nvec_power_probe()
409 nvec_register_notifier(nvec, &power->notifier, NVEC_SYS); in nvec_power_probe()
424 nvec_unregister_notifier(power->nvec, &power->notifier); in nvec_power_remove()
438 .name = "nvec-power",
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dpci_irq.c23 int nvec; member
48 return table->nvec - MLX5_IRQ_VEC_COMP_BASE; in mlx5_irq_get_num_comp()
94 static int request_irqs(struct mlx5_core_dev *dev, int nvec) in request_irqs() argument
100 for (i = 0; i < nvec; i++) { in request_irqs()
153 for (; vecidx < irq_table->nvec; vecidx++) { in irq_set_rmap()
210 int nvec = mlx5_irq_get_num_comp(mdev->priv.irq_table); in set_comp_irq_affinity_hints() local
214 for (i = 0; i < nvec; i++) { in set_comp_irq_affinity_hints()
231 int nvec = mlx5_irq_get_num_comp(mdev->priv.irq_table); in clear_comp_irqs_affinity_hints() local
234 for (i = 0; i < nvec; i++) in clear_comp_irqs_affinity_hints()
256 for (i = 0; i < table->nvec; i++) in unrequest_irqs()
[all …]
/kernel/linux/linux-5.10/drivers/base/
Dplatform-msi.c109 static void platform_msi_free_descs(struct device *dev, int base, int nvec) in platform_msi_free_descs() argument
115 desc->platform.msi_index < (base + nvec)) { in platform_msi_free_descs()
123 int nvec, in platform_msi_alloc_descs_with_irq() argument
136 for (i = 0; i < nvec; i++) { in platform_msi_alloc_descs_with_irq()
148 if (i != nvec) { in platform_msi_alloc_descs_with_irq()
150 platform_msi_free_descs(dev, base, nvec); in platform_msi_alloc_descs_with_irq()
158 static int platform_msi_alloc_descs(struct device *dev, int nvec, in platform_msi_alloc_descs() argument
162 return platform_msi_alloc_descs_with_irq(dev, 0, nvec, data); in platform_msi_alloc_descs()
196 platform_msi_alloc_priv_data(struct device *dev, unsigned int nvec, in platform_msi_alloc_priv_data() argument
206 if (!dev->msi_domain || !write_msi_msg || !nvec || nvec > MAX_DEV_MSIS) in platform_msi_alloc_priv_data()
[all …]
/kernel/linux/linux-6.6/drivers/pci/msi/
Dmsi.c22 * @nvec: how many MSIs have been requested?
28 static int pci_msi_supported(struct pci_dev *dev, int nvec) in pci_msi_supported() argument
42 * b) the list manipulation code assumes nvec >= 1. in pci_msi_supported()
44 if (nvec < 1) in pci_msi_supported()
281 static int msi_setup_msi_desc(struct pci_dev *dev, int nvec, in msi_setup_msi_desc() argument
298 desc.nvec_used = nvec; in msi_setup_msi_desc()
303 desc.pci.msi_attrib.multiple = ilog2(__roundup_pow_of_two(nvec)); in msi_setup_msi_desc()
338 * @nvec: number of interrupts to allocate
347 static int msi_capability_init(struct pci_dev *dev, int nvec, in msi_capability_init() argument
355 if (nvec > 1 && !pci_msi_domain_supports(dev, MSI_FLAG_MULTI_PCI_MSI, ALLOW_LEGACY)) in msi_capability_init()
[all …]
/kernel/linux/linux-5.10/drivers/fpga/
Ddfl-pci.c44 int ret, nvec = pci_msix_vec_count(pcidev); in cci_pci_alloc_irq() local
46 if (nvec <= 0) { in cci_pci_alloc_irq()
51 ret = pci_alloc_irq_vectors(pcidev, nvec, nvec, PCI_IRQ_MSIX); in cci_pci_alloc_irq()
55 return nvec; in cci_pci_alloc_irq()
111 static int *cci_pci_create_irq_table(struct pci_dev *pcidev, unsigned int nvec) in cci_pci_create_irq_table() argument
116 table = kcalloc(nvec, sizeof(int), GFP_KERNEL); in cci_pci_create_irq_table()
120 for (i = 0; i < nvec; i++) in cci_pci_create_irq_table()
130 int port_num, bar, i, nvec, ret = 0; in cci_enumerate_feature_devs() local
145 nvec = cci_pci_alloc_irq(pcidev); in cci_enumerate_feature_devs()
146 if (nvec < 0) { in cci_enumerate_feature_devs()
[all …]
/kernel/linux/linux-6.6/drivers/net/wwan/iosm/
Diosm_ipc_irq.c40 if (instance >= ipc_pcie->nvec) in ipc_msi_interrupt()
54 while (--ipc_pcie->nvec >= 0) in ipc_release_irq()
55 free_irq(pdev->irq + ipc_pcie->nvec, ipc_pcie); in ipc_release_irq()
65 ipc_pcie->nvec = pci_alloc_irq_vectors(pdev, IPC_MSI_VECTORS, in ipc_acquire_irq()
68 if (ipc_pcie->nvec < 0) { in ipc_acquire_irq()
69 rc = ipc_pcie->nvec; in ipc_acquire_irq()
76 for (i = 0; i < ipc_pcie->nvec; ++i) { in ipc_acquire_irq()
82 ipc_pcie->nvec = i; in ipc_acquire_irq()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dmsi.c128 static int check_req(struct pci_dev *pdev, int nvec, char *prop_name) in check_req() argument
143 if (req_msi < nvec) { in check_req()
144 pr_debug("rtas_msi: %s requests < %d MSIs\n", prop_name, nvec); in check_req()
155 static int check_req_msi(struct pci_dev *pdev, int nvec) in check_req_msi() argument
157 return check_req(pdev, nvec, "ibm,req#msi"); in check_req_msi()
160 static int check_req_msix(struct pci_dev *pdev, int nvec) in check_req_msix() argument
162 return check_req(pdev, nvec, "ibm,req#msi-x"); in check_req_msix()
377 int nvec = nvec_in; in rtas_setup_msi_irqs() local
381 rc = check_req_msix(pdev, nvec); in rtas_setup_msi_irqs()
383 rc = check_req_msi(pdev, nvec); in rtas_setup_msi_irqs()
[all …]
/kernel/linux/linux-5.10/drivers/pci/
Dmsi.c35 static int pci_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in pci_msi_setup_msi_irqs() argument
41 return msi_domain_alloc_irqs(domain, &dev->dev, nvec); in pci_msi_setup_msi_irqs()
43 return arch_setup_msi_irqs(dev, nvec, type); in pci_msi_setup_msi_irqs()
90 int __weak arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in arch_setup_msi_irqs() argument
97 return chip->setup_irqs(chip, dev, nvec, type); in arch_setup_msi_irqs()
102 if (type == PCI_CAP_ID_MSI && nvec > 1) in arch_setup_msi_irqs()
580 msi_setup_entry(struct pci_dev *dev, int nvec, struct irq_affinity *affd) in msi_setup_entry() argument
587 masks = irq_create_affinity_masks(nvec, affd); in msi_setup_entry()
590 entry = alloc_msi_entry(&dev->dev, nvec, masks); in msi_setup_entry()
606 entry->msi_attrib.multiple = ilog2(__roundup_pow_of_two(nvec)); in msi_setup_entry()
[all …]
/kernel/linux/linux-6.6/drivers/fpga/
Ddfl-pci.c52 int ret, nvec = pci_msix_vec_count(pcidev); in cci_pci_alloc_irq() local
54 if (nvec <= 0) { in cci_pci_alloc_irq()
59 ret = pci_alloc_irq_vectors(pcidev, nvec, nvec, PCI_IRQ_MSIX); in cci_pci_alloc_irq()
63 return nvec; in cci_pci_alloc_irq()
145 static int *cci_pci_create_irq_table(struct pci_dev *pcidev, unsigned int nvec) in cci_pci_create_irq_table() argument
150 table = kcalloc(nvec, sizeof(int), GFP_KERNEL); in cci_pci_create_irq_table()
154 for (i = 0; i < nvec; i++) in cci_pci_create_irq_table()
310 int nvec, ret = 0; in cci_enumerate_feature_devs() local
319 nvec = cci_pci_alloc_irq(pcidev); in cci_enumerate_feature_devs()
320 if (nvec < 0) { in cci_enumerate_feature_devs()
[all …]
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
Dmsi.c115 static int check_req(struct pci_dev *pdev, int nvec, char *prop_name) in check_req() argument
130 if (req_msi < nvec) { in check_req()
131 pr_debug("rtas_msi: %s requests < %d MSIs\n", prop_name, nvec); in check_req()
142 static int check_req_msi(struct pci_dev *pdev, int nvec) in check_req_msi() argument
144 return check_req(pdev, nvec, "ibm,req#msi"); in check_req_msi()
147 static int check_req_msix(struct pci_dev *pdev, int nvec) in check_req_msix() argument
149 return check_req(pdev, nvec, "ibm,req#msi-x"); in check_req_msix()
347 int nvec = nvec_in; in rtas_prepare_msi_irqs() local
351 rc = check_req_msix(pdev, nvec); in rtas_prepare_msi_irqs()
353 rc = check_req_msi(pdev, nvec); in rtas_prepare_msi_irqs()
[all …]
/kernel/linux/linux-6.6/drivers/base/
Dplatform-msi.c143 static int platform_msi_alloc_priv_data(struct device *dev, unsigned int nvec, in platform_msi_alloc_priv_data() argument
155 if (!dev->msi.domain || !write_msi_msg || !nvec || nvec > MAX_DEV_MSIS) in platform_msi_alloc_priv_data()
201 * @nvec: The number of interrupts to allocate
207 int platform_msi_domain_alloc_irqs(struct device *dev, unsigned int nvec, in platform_msi_domain_alloc_irqs() argument
212 err = platform_msi_alloc_priv_data(dev, nvec, write_msi_msg); in platform_msi_domain_alloc_irqs()
216 err = msi_domain_alloc_irqs_range(dev, MSI_DEFAULT_DOMAIN, 0, nvec - 1); in platform_msi_domain_alloc_irqs()
256 * @nvec: The number of MSIs that need to be allocated
262 * Return: An irqdomain for @nvec interrupts on success, NULL in case of error.
270 unsigned int nvec, in __platform_msi_create_device_domain() argument
280 err = platform_msi_alloc_priv_data(dev, nvec, write_msi_msg); in __platform_msi_create_device_domain()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dmsi.h181 struct msi_desc *alloc_msi_entry(struct device *dev, int nvec,
204 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type);
208 static inline int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) in arch_setup_msi_irqs() argument
236 int nvec, int type);
304 struct device *dev, int nvec,
312 struct device *dev, int nvec);
373 int nvec);
375 int nvec);
383 int platform_msi_domain_alloc_irqs(struct device *dev, unsigned int nvec,
389 int nvec, msi_alloc_info_t *args);
[all …]
/kernel/linux/linux-5.10/kernel/irq/
Dmsi.c23 * @nvec: The number of vectors used in this entry
24 * @affinity: Optional pointer to an affinity mask array size of @nvec
26 * If @affinity is not NULL then an affinity array[@nvec] is allocated
29 struct msi_desc *alloc_msi_entry(struct device *dev, int nvec, in alloc_msi_entry() argument
40 desc->nvec_used = nvec; in alloc_msi_entry()
43 nvec * sizeof(*desc->affinity), GFP_KERNEL); in alloc_msi_entry()
197 int nvec, msi_alloc_info_t *arg) in msi_domain_ops_prepare() argument
307 * > 0: The modified nvec;
311 int nvec, msi_alloc_info_t *arg) in msi_domain_prepare_irqs() argument
319 ret = ops->msi_prepare(domain, dev, nvec, arg); in msi_domain_prepare_irqs()
[all …]
/kernel/linux/linux-6.6/Documentation/translations/zh_CN/PCI/
Dmsi-howto.rst113 nvec = pci_alloc_irq_vectors(pdev, 1, nvec, PCI_IRQ_ALL_TYPES)
114 if (nvec < 0)
120 ret = pci_alloc_irq_vectors(pdev, nvec, nvec, PCI_IRQ_ALL_TYPES);
133 nvec = pci_alloc_irq_vectors(pdev, 1, nvec, PCI_IRQ_MSI | PCI_IRQ_MSIX);
134 if (nvec < 0)

1234567