Searched defs:dev (Results 226 - 250 of 5572) sorted by path

1234567891011>>

/drivers/char/
H A Dapplicom.c189 struct pci_dev *dev = NULL; local
197 while ( (dev = pci_get_class(PCI_CLASS_OTHERS << 16, dev))) {
199 if (!pci_match_id(applicom_pci_tbl, dev))
202 if (pci_enable_device(dev))
205 RamIO = ioremap_nocache(pci_resource_start(dev, 0), LEN_RAM_IO);
210 (unsigned long long)pci_resource_start(dev, 0));
211 pci_disable_device(dev);
216 applicom_pci_devnames[dev->device-1],
217 (unsigned long long)pci_resource_start(dev,
[all...]
H A Dbsr.c94 bsr_size_show(struct device *dev, struct device_attribute *attr, char *buf) argument
96 struct bsr_dev *bsr_dev = dev_get_drvdata(dev);
102 bsr_stride_show(struct device *dev, struct device_attribute *attr, char *buf) argument
104 struct bsr_dev *bsr_dev = dev_get_drvdata(dev);
110 bsr_length_show(struct device *dev, struct device_attribute *attr, char *buf) argument
112 struct bsr_dev *bsr_dev = dev_get_drvdata(dev);
128 struct bsr_dev *dev = filp->private_data; local
134 if (dev->bsr_len < PAGE_SIZE && size == PAGE_SIZE)
135 ret = remap_4k_pfn(vma, vma->vm_start, dev->bsr_addr >> 12,
137 else if (size <= dev
153 struct bsr_dev *dev = container_of(cdev, struct bsr_dev, bsr_cdev); local
[all...]
H A Ddsp56k.c141 err = request_firmware(&fw, fw_name, &pdev->dev);
185 int dev = iminor(inode) & 0x0f; local
187 switch(dev)
239 printk(KERN_ERR "DSP56k driver: Unknown minor device: %d\n", dev);
248 int dev = iminor(inode) & 0x0f; local
250 switch(dev)
301 printk(KERN_ERR "DSP56k driver: Unknown minor device: %d\n", dev);
309 int dev = iminor(file_inode(file)) & 0x0f; local
312 switch(dev)
399 printk(KERN_ERR "DSP56k driver: Unknown minor device: %d\n", dev);
428 int dev = iminor(inode) & 0x0f; local
464 int dev = iminor(inode) & 0x0f; local
[all...]
H A Di8k.c494 static ssize_t i8k_hwmon_show_temp(struct device *dev, argument
507 static ssize_t i8k_hwmon_show_fan(struct device *dev, argument
520 static ssize_t i8k_hwmon_show_pwm(struct device *dev, argument
533 static ssize_t i8k_hwmon_set_pwm(struct device *dev, argument
H A Dlp.c160 #define r_dtr(x) (parport_read_data(lp_table[(x)].dev->port))
161 #define r_str(x) (parport_read_status(lp_table[(x)].dev->port))
162 #define w_ctr(x,y) do { parport_write_control(lp_table[(x)].dev->port, (y)); } while (0)
163 #define w_dtr(x,y) do { parport_write_data(lp_table[(x)].dev->port, (y)); } while (0)
169 parport_claim_or_block (this_lp->dev);
177 parport_release (this_lp->dev);
225 polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE;
231 else parport_yield_blocking (lp_table[minor].dev);
298 struct parport *port = lp_table[minor].dev->port;
332 parport_set_timeout (lp_table[minor].dev,
772 struct pardevice *dev = lp_table[CONSOLE_LP].dev; local
[all...]
H A Dmbcs.c574 * @dev: device pointer
577 static int mbcs_intr_alloc(struct cx_dev *dev) argument
585 soft = dev->soft;
594 sn_irq = tiocx_irq_alloc(dev->cx_id.nasid, TIOCX_CORELET, -1, -1, -1);
607 sn_irq = tiocx_irq_alloc(dev->cx_id.nasid, TIOCX_CORELET, -1, -1, -1);
625 sn_irq = tiocx_irq_alloc(dev->cx_id.nasid, TIOCX_CORELET, -1, -1, -1);
652 * @dev: device pointer
655 static void mbcs_intr_dealloc(struct cx_dev *dev) argument
659 soft = dev->soft;
707 static ssize_t show_algo(struct device *dev, struc argument
723 store_algo(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
752 mbcs_probe(struct cx_dev *dev, const struct cx_device_id *id) argument
790 mbcs_remove(struct cx_dev *dev) argument
[all...]
H A Dmem.c8 * Shared /dev/zero mmapping support, Feb 2000, Kanoj Sarcar <kanoj@sgi.com>
24 #include <linux/backing-dev.h>
72 "Program %s tried to access /dev/mem between %Lx->%Lx.\n",
668 * Special lseek() function for /dev/null and /dev/zero. Most notably, you
778 * capabilities for /dev/zero
822 const struct memdev *dev; local
828 dev = &devlist[minor];
829 if (!dev->fops)
832 filp->f_op = dev
851 mem_devnode(struct device *dev, umode_t *mode) argument
[all...]
H A Dmisc.c180 dev_t dev; local
206 dev = MKDEV(MISC_MAJOR, misc->minor);
208 misc->this_device = device_create(misc_class, misc->parent, dev,
257 static char *misc_devnode(struct device *dev, umode_t *mode) argument
259 struct miscdevice *c = dev_get_drvdata(dev);
H A Dnsc_gpio.c28 dev_info(amp->dev, "io%02u: 0x%04x %s %s %s %s %s %s %s\tio:%d/%d\n",
46 struct device *dev = amp->dev; local
62 dev_dbg(dev, "GPIO%d output enabled\n", m);
66 dev_dbg(dev, "GPIO%d output disabled\n", m);
70 dev_dbg(dev, "GPIO%d output is push pull\n", m);
74 dev_dbg(dev, "GPIO%d output is open drain\n", m);
78 dev_dbg(dev, "GPIO%d pull up enabled\n", m);
82 dev_dbg(dev, "GPIO%d pull up disabled\n", m);
93 dev_err(dev, "i
[all...]
/drivers/char/hw_random/
H A Datmel-rng.c57 trng = devm_kzalloc(&pdev->dev, sizeof(*trng), GFP_KERNEL);
62 trng->base = devm_ioremap_resource(&pdev->dev, res);
66 trng->clk = devm_clk_get(&pdev->dev, NULL);
104 static int atmel_trng_suspend(struct device *dev) argument
106 struct atmel_trng *trng = dev_get_drvdata(dev);
113 static int atmel_trng_resume(struct device *dev) argument
115 struct atmel_trng *trng = dev_get_drvdata(dev);
H A Dbcm2835-rng.c51 struct device *dev = &pdev->dev; local
52 struct device_node *np = dev->of_node;
59 dev_err(dev, "failed to remap rng regs");
71 dev_err(dev, "hwrng registration failed\n");
74 dev_info(dev, "hwrng registered\n");
H A Dcore.c229 static ssize_t hwrng_attr_current_store(struct device *dev, argument
260 static ssize_t hwrng_attr_current_show(struct device *dev, argument
279 static ssize_t hwrng_attr_available_show(struct device *dev, argument
H A Dexynos-rng.c40 struct device *dev; member in struct:exynos_rng
63 pm_runtime_get_sync(exynos_rng->dev);
73 pm_runtime_put_noidle(exynos_rng->dev);
85 pm_runtime_get_sync(exynos_rng->dev);
97 pm_runtime_mark_last_busy(exynos_rng->dev);
98 pm_runtime_autosuspend(exynos_rng->dev);
108 exynos_rng = devm_kzalloc(&pdev->dev, sizeof(struct exynos_rng),
113 exynos_rng->dev = &pdev->dev;
117 exynos_rng->clk = devm_clk_get(&pdev->dev, "secs
147 exynos_rng_runtime_suspend(struct device *dev) argument
157 exynos_rng_runtime_resume(struct device *dev) argument
[all...]
H A Dintel-rng.c232 struct pci_dev *dev; member in struct:intel_rng_hw
248 pci_write_config_byte(intel_rng_hw->dev,
253 pci_write_config_byte(intel_rng_hw->dev,
266 pci_write_config_byte(intel_rng_hw->dev,
270 pci_write_config_byte(intel_rng_hw->dev,
285 struct pci_dev *dev)
289 intel_rng_hw->dev = dev;
292 if (dev->device < 0x2640) {
300 pci_read_config_byte(dev, intel_rng_h
284 intel_init_hw_struct(struct intel_rng_hw *intel_rng_hw, struct pci_dev *dev) argument
332 struct pci_dev *dev = NULL; local
[all...]
H A Dmxc-rnga.c63 struct device *dev; member in struct:mxc_rng
99 dev_dbg(mxc_rng->dev, "Error while reading random number!\n");
120 dev_err(mxc_rng->dev, "RNGA Oscillator is dead!\n");
148 mxc_rng = devm_kzalloc(&pdev->dev, sizeof(struct mxc_rng),
153 mxc_rng->dev = &pdev->dev;
160 mxc_rng->clk = devm_clk_get(&pdev->dev, NULL);
162 dev_err(&pdev->dev, "Could not get rng_clk!\n");
172 mxc_rng->mem = devm_ioremap_resource(&pdev->dev, res);
180 dev_err(&pdev->dev, "MX
[all...]
H A Dnomadik-rng.c41 static int nmk_rng_probe(struct amba_device *dev, const struct amba_id *id) argument
46 rng_clk = devm_clk_get(&dev->dev, NULL);
48 dev_err(&dev->dev, "could not get rng clock\n");
55 ret = amba_request_regions(dev, dev->dev.init_name);
59 base = devm_ioremap(&dev->dev, de
76 nmk_rng_remove(struct amba_device *dev) argument
[all...]
H A Domap-rng.c128 struct device *dev; member in struct:omap_rng_dev
320 struct device *dev = &pdev->dev; local
323 match = of_match_device(of_match_ptr(omap_rng_of_match), dev);
325 dev_err(dev, "no compatible OF match\n");
330 if (of_device_is_compatible(dev->of_node, "ti,omap4-rng")) {
333 dev_err(dev, "%s: error getting IRQ resource - %d\n",
338 err = devm_request_irq(dev, irq, omap4_rng_irq,
339 IRQF_TRIGGER_NONE, dev_name(dev), priv);
341 dev_err(dev, "unabl
368 struct device *dev = &pdev->dev; local
427 omap_rng_suspend(struct device *dev) argument
437 omap_rng_resume(struct device *dev) argument
[all...]
H A Dpasemi-rng.c101 struct device_node *rng_np = ofdev->dev.of_node;
126 static int rng_remove(struct platform_device *dev) argument
H A Dppc4xx-rng.c94 static int ppc4xx_rng_probe(struct platform_device *dev) argument
99 rng_regs = of_iomap(dev->dev.of_node, 0);
115 static int ppc4xx_rng_remove(struct platform_device *dev) argument
H A Dpseries-rng.c64 static int __init pseries_rng_probe(struct vio_dev *dev, argument
70 static int __exit pseries_rng_remove(struct vio_dev *dev) argument
H A Dtx4939-rng.c107 static int __init tx4939_rng_probe(struct platform_device *dev) argument
113 rngdev = devm_kzalloc(&dev->dev, sizeof(*rngdev), GFP_KERNEL);
116 r = platform_get_resource(dev, IORESOURCE_MEM, 0);
117 rngdev->base = devm_ioremap_resource(&dev->dev, r);
121 rngdev->rng.name = dev_name(&dev->dev);
146 platform_set_drvdata(dev, rngdev);
150 static int __exit tx4939_rng_remove(struct platform_device *dev) argument
[all...]
H A Dxgene-rng.c98 struct device *dev; member in struct:xgene_rng_dev
143 dev_err(ctx->dev, "test monobit failure error 0x%08X\n", val);
151 dev_err(ctx->dev, "test poker failure error 0x%08X\n", val);
157 dev_err(ctx->dev, "test long run failure error 0x%08X\n", val);
164 dev_err(ctx->dev, "test run failure error 0x%08X\n", val);
167 dev_err(ctx->dev, "noise failure error 0x%08X\n", val);
173 dev_err(ctx->dev, "stuck out failure error 0x%08X\n", val);
193 dev_err(ctx->dev,
298 dev_dbg(ctx->dev, "Rev %d.%d.%d\n",
303 dev_dbg(ctx->dev, "Option
[all...]
/drivers/char/ipmi/
H A Dipmi_devintf.c880 dev_t dev; member in struct:ipmi_reg_list
890 dev_t dev = MKDEV(ipmi_major, if_num); local
899 entry->dev = dev;
902 device_create(ipmi_class, device, dev, NULL, "ipmi%d", if_num);
909 dev_t dev = MKDEV(ipmi_major, if_num); local
914 if (entry->dev == dev) {
920 device_destroy(ipmi_class, dev);
975 device_destroy(ipmi_class, entry->dev);
[all...]
H A Dipmi_msghandler.c194 struct platform_device *dev; member in struct:bmc_device
450 #define to_si_intf_from_dev(device) container_of(device, struct ipmi_smi, dev)
620 call_smi_watchers(int i, struct device *dev) argument
626 w->new_smi(i, dev);
2153 static int __find_bmc_guid(struct device *dev, void *data) argument
2156 struct bmc_device *bmc = dev_get_drvdata(dev);
2163 struct device *dev; local
2165 dev = driver_find_device(drv, NULL, guid, __find_bmc_guid);
2166 if (dev)
2167 return dev_get_drvdata(dev);
2177 __find_bmc_prod_dev_id(struct device *dev, void *data) argument
2194 struct device *dev; local
2203 device_id_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2212 provides_dev_sdrs_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2222 revision_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2231 firmware_rev_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2241 ipmi_version_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2252 add_dev_support_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2262 manufacturer_id_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2271 product_id_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2280 aux_firmware_rev_show(struct device *dev, struct device_attribute *attr, char *buf) argument
2293 guid_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
H A Dipmi_si_intf.c275 struct device *dev; member in struct:smi_info
592 dev_warn(smi_info->dev,
685 dev_warn(smi_info->dev,
687 dev_warn(smi_info->dev,
710 dev_warn(smi_info->dev,
712 dev_warn(smi_info->dev,
727 dev_warn(smi_info->dev, "Could not disable interrupts"
750 dev_warn(smi_info->dev, "Could not disable interrupts"
1203 dev_notice(new_smi->dev, "Could not start"
1219 data->dev
2213 ipmi_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) argument
2315 ipmi_pnp_remove(struct pnp_dev *dev) argument
2479 const struct dmi_device *dev = NULL; local
2644 ipmi_probe(struct platform_device *dev) argument
2732 ipmi_remove(struct platform_device *dev) argument
2762 ipmi_parisc_probe(struct parisc_device *dev) argument
2800 ipmi_parisc_remove(struct parisc_device *dev) argument
[all...]

Completed in 267 milliseconds

1234567891011>>