/arch/arm/mach-w90x900/include/mach/ |
H A D | mfp.h | 19 extern void mfp_set_groupf(struct device *dev); 20 extern void mfp_set_groupc(struct device *dev); 21 extern void mfp_set_groupi(struct device *dev); 22 extern void mfp_set_groupg(struct device *dev, const char *subname); 23 extern void mfp_set_groupd(struct device *dev, const char *subname);
|
/arch/powerpc/include/asm/ |
H A D | libata-portmap.h | 6 #define ATA_PRIMARY_IRQ(dev) pci_get_legacy_ide_irq(dev, 0) 10 #define ATA_SECONDARY_IRQ(dev) pci_get_legacy_ide_irq(dev, 1)
|
H A D | macio.h | 48 #define to_macio_device(d) container_of(d, struct macio_dev, ofdev.dev) 51 extern struct macio_dev *macio_dev_get(struct macio_dev *dev); 52 extern void macio_dev_put(struct macio_dev *dev); 59 static inline int macio_resource_count(struct macio_dev *dev) argument 61 return dev->n_resources; 64 static inline unsigned long macio_resource_start(struct macio_dev *dev, int resource_no) argument 66 return dev->resource[resource_no].start; 69 static inline unsigned long macio_resource_end(struct macio_dev *dev, int resource_no) argument 71 return dev->resource[resource_no].end; 74 static inline unsigned long macio_resource_len(struct macio_dev *dev, in argument 89 macio_irq_count(struct macio_dev *dev) argument 94 macio_irq(struct macio_dev *dev, int irq_no) argument 99 macio_set_drvdata(struct macio_dev *dev, void *data) argument 104 macio_get_drvdata(struct macio_dev *dev) argument [all...] |
H A D | pnv-pci.h | 16 int pnv_phb_to_cxl(struct pci_dev *dev); 17 int pnv_cxl_ioda_msi_setup(struct pci_dev *dev, unsigned int hwirq, 19 int pnv_cxl_alloc_hwirqs(struct pci_dev *dev, int num); 20 void pnv_cxl_release_hwirqs(struct pci_dev *dev, int hwirq, int num); 21 int pnv_cxl_get_irq_count(struct pci_dev *dev); 22 struct device_node *pnv_pci_to_phb_node(struct pci_dev *dev); 26 struct pci_dev *dev, int num); 28 struct pci_dev *dev);
|
/arch/mips/pci/ |
H A D | fixup-lantiq.c | 12 int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL; 13 int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL; 15 int pcibios_plat_dev_init(struct pci_dev *dev) argument 18 return ltq_pci_plat_arch_init(dev); 21 return ltq_pci_plat_dev_init(dev); 26 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument 28 return of_irq_parse_and_map_pci(dev, slot, pin);
|
H A D | fixup-rc32434.c | 39 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument 43 if (dev->bus->number < 2 && PCI_SLOT(dev->devfn) < 12) 44 irq = irq_map[dev->bus->number][PCI_SLOT(dev->devfn)]; 49 static void rc32434_pci_early_fixup(struct pci_dev *dev) argument 51 if (PCI_SLOT(dev->devfn) == 6 && dev->bus->number == 0) { 53 pci_write_config_word(dev, PCI_PREF_MEMORY_LIMIT, 0); 54 pci_write_config_word(dev, PCI_PREF_MEMORY_BAS 66 pcibios_plat_dev_init(struct pci_dev *dev) argument [all...] |
H A D | fixup-sb1250.c | 17 static void quirk_sb1250_pci(struct pci_dev *dev) argument 19 pci_write_config_byte(dev, 0x40, 0xff); 27 static void quirk_sb1250_ht(struct pci_dev *dev) argument 29 dev->class = PCI_CLASS_BRIDGE_PCI << 8; 37 static void quirk_sp1011(struct pci_dev *dev) argument 39 pci_write_config_byte(dev, 0x64, 0xff);
|
H A D | pci-bcm47xx.c | 31 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) argument 37 static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev) argument 42 res = ssb_pcibios_plat_dev_init(dev); 45 pci_name(dev)); 49 pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); 50 slot = PCI_SLOT(dev->devfn); 51 res = ssb_pcibios_map_irq(dev, slot, pin); 56 pci_name(dev)); 60 dev->irq = res; 66 static int bcm47xx_pcibios_plat_dev_init_bcma(struct pci_dev *dev) argument 91 pcibios_plat_dev_init(struct pci_dev *dev) argument [all...] |
/arch/powerpc/platforms/44x/ |
H A D | virtex_ml510.c | 8 static void ml510_ali_quirk(struct pci_dev *dev) argument 11 pci_write_config_byte(dev, 0x58, 0x4c); 13 pci_write_config_byte(dev, 0x44, 0x0d); 15 pci_write_config_byte(dev, 0x75, 0x0f); 17 pci_write_config_byte(dev, 0x09, 0xff); 20 pci_write_config_byte(dev, 0x48, 0x00); 22 pci_write_config_byte(dev, 0x4a, 0x00); 24 pci_write_config_byte(dev, 0x4b, 0x60); 26 pci_write_config_byte(dev, 0x74, 0x06);
|
/arch/mips/bcm63xx/ |
H A D | Makefile | 2 setup.o timer.o dev-dsp.o dev-enet.o dev-flash.o \ 3 dev-pcmcia.o dev-rng.o dev-spi.o dev-hsspi.o dev-uart.o \ 4 dev-wdt.o dev [all...] |
/arch/arm/mach-integrator/ |
H A D | lm.c | 17 #define to_lm_device(d) container_of(d, struct lm_device, dev) 20 static int lm_match(struct device *dev, struct device_driver *drv) argument 25 static int lm_bus_probe(struct device *dev) argument 27 struct lm_device *lmdev = to_lm_device(dev); 28 struct lm_driver *lmdrv = to_lm_driver(dev->driver); 33 static int lm_bus_remove(struct device *dev) argument 35 struct lm_device *lmdev = to_lm_device(dev); 36 struct lm_driver *lmdrv = to_lm_driver(dev->driver); 70 static void lm_device_release(struct device *dev) argument 72 struct lm_device *d = to_lm_device(dev); 77 lm_device_register(struct lm_device *dev) argument [all...] |
/arch/x86/include/asm/xen/ |
H A D | pci.h | 18 int xen_find_device_domain_owner(struct pci_dev *dev); 19 int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain); 20 int xen_unregister_device_domain_owner(struct pci_dev *dev); 26 static inline int xen_find_device_domain_owner(struct pci_dev *dev) argument 30 static inline int xen_register_device_domain_owner(struct pci_dev *dev, argument 35 static inline int xen_unregister_device_domain_owner(struct pci_dev *dev) argument 47 int (*enable_msi)(struct pci_dev *dev, int vectors[]); 48 void (*disable_msi)(struct pci_dev *dev); 49 int (*enable_msix)(struct pci_dev *dev, int vectors[], int nvec); 50 void (*disable_msix)(struct pci_dev *dev); 55 xen_pci_frontend_enable_msi(struct pci_dev *dev, int vectors[]) argument 62 xen_pci_frontend_disable_msi(struct pci_dev *dev) argument 67 xen_pci_frontend_enable_msix(struct pci_dev *dev, int vectors[], int nvec) argument 74 xen_pci_frontend_disable_msix(struct pci_dev *dev) argument [all...] |
/arch/parisc/kernel/ |
H A D | drivers.c | 50 static inline int check_dev(struct device *dev) argument 52 if (dev->bus == &parisc_bus_type) { 54 pdev = to_parisc_device(dev); 68 static int descend_children(struct device * dev, void * data) argument 72 if (recurse_data->fn(dev, recurse_data->obj)) 75 return device_for_each_child(dev, recurse_data, descend_children); 100 * @dev: the PA-RISC device to try 102 static int match_device(struct parisc_driver *driver, struct parisc_device *dev) argument 108 (ids->sversion != dev->id.sversion)) 112 (ids->hw_type != dev 124 parisc_driver_probe(struct device *dev) argument 138 parisc_driver_remove(struct device *dev) argument 189 match_and_count(struct device * dev, void * data) argument 235 struct parisc_device * dev; member in struct:find_data 238 find_device(struct device * dev, void * data) argument 274 const struct device *dev = &padev->dev; local 292 get_node_path(struct device *dev, struct hardware_path *path) argument 336 print_pa_hwpath(struct parisc_device *dev, char *output) argument 371 print_pci_hwpath(struct pci_dev *dev, char *output) argument 402 struct parisc_device *dev = kzalloc(sizeof(*dev), GFP_KERNEL); local 428 struct parisc_device * dev; member in struct:match_id_data 431 match_by_id(struct device * dev, void * data) argument 480 struct parisc_device *dev; local 536 parisc_generic_match(struct device *dev, struct device_driver *drv) argument 541 make_modalias(struct device *dev, char *buf) argument 551 parisc_uevent(struct device *dev, struct kobj_uevent_env *env) argument 588 modalias_show(struct device *dev, struct device_attribute *attr, char *buf) argument 619 register_parisc_device(struct parisc_device *dev) argument 638 match_pci_device(struct device *dev, int index, struct hardware_path *modpath) argument 663 match_parisc_device(struct device *dev, int index, struct hardware_path *modpath) argument 675 struct device * dev; member in struct:parse_tree_data 678 check_parent(struct device * dev, void * data) argument 756 device_to_hwpath(struct device *dev, struct hardware_path *path) argument 791 walk_lower_bus(struct parisc_device *dev) argument 831 struct parisc_device *dev; local 864 print_parisc_device(struct parisc_device *dev) argument 896 print_one_device(struct device * dev, void * data) argument [all...] |
/arch/mips/include/asm/ |
H A D | dma-mapping.h | 15 static inline struct dma_map_ops *get_dma_ops(struct device *dev) argument 17 if (dev && dev->archdata.dma_ops) 18 return dev->archdata.dma_ops; 23 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) argument 25 if (!dev->dma_mask) 28 return addr + size <= *dev->dma_mask; 35 static inline int dma_supported(struct device *dev, u64 mask) argument 37 struct dma_map_ops *ops = get_dma_ops(dev); 38 return ops->dma_supported(dev, mas 41 dma_mapping_error(struct device *dev, u64 mask) argument 50 dma_set_mask(struct device *dev, u64 mask) argument 70 dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, struct dma_attrs *attrs) argument 86 dma_free_attrs(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs) argument [all...] |
/arch/arm/mach-ks8695/include/mach/ |
H A D | memory.h | 28 #define is_lbus_device(dev) (dev && dev->bus == &platform_bus_type) 29 #define __arch_dma_to_virt(dev, x) ({ (void *) (is_lbus_device(dev) ? \ 31 #define __arch_virt_to_dma(dev, x) ({ is_lbus_device(dev) ? \ 34 #define __arch_pfn_to_dma(dev, pfn) \ 36 if (!is_lbus_device(dev)) \ 40 #define __arch_dma_to_pfn(dev, [all...] |
/arch/arm/mach-omap1/include/mach/ |
H A D | memory.h | 26 #define is_lbus_device(dev) (cpu_is_omap15xx() && dev && (strncmp(dev_name(dev), "ohci", 4) == 0)) 28 #define __arch_pfn_to_dma(dev, pfn) \ 30 if (is_lbus_device(dev)) \ 34 #define __arch_dma_to_pfn(dev, addr) \ 36 if (is_lbus_device(dev)) \ 41 #define __arch_dma_to_virt(dev, addr) ({ (void *) (is_lbus_device(dev) ? \ 45 #define __arch_virt_to_dma(dev, add [all...] |
/arch/frv/mb93090-mb00/ |
H A D | pci-irq.c | 45 struct pci_dev *dev = NULL; local 48 for_each_pci_dev(dev) { 49 pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); 51 dev->irq = pci_bus0_irq_routing[PCI_SLOT(dev->devfn)][pin - 1]; 52 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq); 54 pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &line); 58 void pcibios_enable_irq(struct pci_dev *dev) argument 60 pci_write_config_byte(dev, PCI_INTERRUPT_LIN [all...] |
/arch/arm/include/asm/ |
H A D | dma-mapping.h | 21 static inline struct dma_map_ops *__generic_dma_ops(struct device *dev) argument 23 if (dev && dev->archdata.dma_ops) 24 return dev->archdata.dma_ops; 28 static inline struct dma_map_ops *get_dma_ops(struct device *dev) argument 33 return __generic_dma_ops(dev); 36 static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops) argument 38 BUG_ON(!dev); 39 dev->archdata.dma_ops = ops; 44 static inline int dma_set_mask(struct device *dev, u6 argument 59 pfn_to_dma(struct device *dev, unsigned long pfn) argument 66 dma_to_pfn(struct device *dev, dma_addr_t addr) argument 76 dma_to_virt(struct device *dev, dma_addr_t addr) argument 87 virt_to_dma(struct device *dev, void *addr) argument 96 pfn_to_dma(struct device *dev, unsigned long pfn) argument 101 dma_to_pfn(struct device *dev, dma_addr_t addr) argument 106 dma_to_virt(struct device *dev, dma_addr_t addr) argument 111 virt_to_dma(struct device *dev, void *addr) argument 118 dma_max_pfn(struct device *dev) argument 124 set_arch_dma_coherent_ops(struct device *dev) argument 131 phys_to_dma(struct device *dev, phys_addr_t paddr) argument 137 dma_to_phys(struct device *dev, dma_addr_t dev_addr) argument 143 dma_capable(struct device *dev, dma_addr_t addr, size_t size) argument 167 dma_mapping_error(struct device *dev, dma_addr_t dma_addr) argument 177 dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp) argument 183 dma_free_noncoherent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t handle) argument 208 dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, struct dma_attrs *attrs) argument 240 dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle, struct dma_attrs *attrs) argument [all...] |
/arch/powerpc/platforms/pseries/ |
H A D | pci.c | 35 void pcibios_name_device(struct pci_dev *dev) 42 dn = pci_device_to_OF_node(dev); 48 if (loc_len < sizeof(dev->dev.name)) { 49 memmove(dev->dev.name+loc_len+1, dev->dev.name, 50 sizeof(dev->dev 86 fixup_winbond_82c105(struct pci_dev* dev) argument [all...] |
/arch/xtensa/platforms/iss/ |
H A D | simdisk.c | 72 static void simdisk_transfer(struct simdisk *dev, unsigned long sector, argument 78 if (offset > dev->size || dev->size - offset < nbytes) { 84 spin_lock(&dev->lock); 88 simc_lseek(dev->fd, offset, SEEK_SET); 90 io = simc_write(dev->fd, buffer, nbytes); 92 io = simc_read(dev->fd, buffer, nbytes); 101 spin_unlock(&dev->lock); 104 static int simdisk_xfer_bio(struct simdisk *dev, struct bio *bio) argument 114 simdisk_transfer(dev, secto 124 struct simdisk *dev = q->queuedata; local 132 struct simdisk *dev = bdev->bd_disk->private_data; local 144 struct simdisk *dev = disk->private_data; local 159 simdisk_attach(struct simdisk *dev, const char *filename) argument 191 simdisk_detach(struct simdisk *dev) argument 219 struct simdisk *dev = PDE_DATA(file_inode(file)); local 236 struct simdisk *dev = PDE_DATA(file_inode(file)); local 271 simdisk_setup(struct simdisk *dev, int which, struct proc_dir_entry *procdir) argument 357 simdisk_teardown(struct simdisk *dev, int which, struct proc_dir_entry *procdir) argument [all...] |
/arch/powerpc/platforms/maple/ |
H A D | maple.h | 11 extern void maple_pci_irq_fixup(struct pci_dev *dev); 12 extern int maple_pci_get_legacy_ide_irq(struct pci_dev *dev, int channel);
|
/arch/x86/platform/intel-mid/device_libs/ |
H A D | platform_ipc.h | 16 ipc_device_handler(struct sfi_device_table_entry *pentry, struct devs_id *dev);
|
/arch/ia64/hp/common/ |
H A D | hwsw_iommu.c | 31 static inline int use_swiotlb(struct device *dev) argument 33 return dev && dev->dma_mask && 34 !sba_dma_ops.dma_supported(dev, *dev->dma_mask); 37 struct dma_map_ops *hwsw_dma_get_ops(struct device *dev) argument 39 if (use_swiotlb(dev))
|
/arch/mips/include/asm/mach-ip27/ |
H A D | dma-coherence.h | 16 #define dev_to_baddr(dev, addr) \ 17 pdev_to_baddr(to_pci_dev(dev), (addr)) 21 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, argument 24 dma_addr_t pa = dev_to_baddr(dev, virt_to_phys(addr)); 29 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, argument 32 dma_addr_t pa = dev_to_baddr(dev, page_to_phys(page)); 37 static inline unsigned long plat_dma_addr_to_phys(struct device *dev, argument 43 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, argument 48 static inline int plat_dma_supported(struct device *dev, u64 mask) argument 61 static inline int plat_device_is_coherent(struct device *dev) argument [all...] |
/arch/mn10300/unit-asb2305/ |
H A D | pci-irq.c | 29 struct pci_dev *dev = NULL; local 32 for_each_pci_dev(dev) { 33 pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); 35 dev->irq = XIRQ1; 36 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, 37 dev->irq); 39 pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &line); 43 void pcibios_enable_irq(struct pci_dev *dev) argument 45 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev [all...] |