dev 60 arch/x86/ia32/sys_ia32.c if (!old_valid_dev(kbuf->dev) || !old_valid_dev(kbuf->rdev)) dev 68 arch/x86/ia32/sys_ia32.c __put_user(old_encode_dev(kbuf->dev), &ubuf->st_dev) || dev 112 arch/x86/ia32/sys_ia32.c __put_user(huge_encode_dev(stat->dev), &ubuf->st_dev) || dev 748 arch/x86/ia32/sys_ia32.c ret = sys_ustat(dev, (struct ustat __user *)&u); dev 499 arch/x86/kernel/amd_iommu.c boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, dev 777 arch/x86/kernel/amd_iommu.c if (!dev || !dev->dma_mask) dev 830 arch/x86/kernel/amd_iommu.c if (dev->bus != &pci_bus_type) dev 833 arch/x86/kernel/amd_iommu.c pcidev = to_pci_dev(dev); dev 944 arch/x86/kernel/amd_iommu.c address = dma_ops_alloc_addresses(dev, dma_dom, pages, align_mask, dev 1011 arch/x86/kernel/amd_iommu.c if (!check_device(dev)) dev 1014 arch/x86/kernel/amd_iommu.c dma_mask = *dev->dma_mask; dev 1016 arch/x86/kernel/amd_iommu.c get_device_resources(dev, &iommu, &domain, &devid); dev 1023 arch/x86/kernel/amd_iommu.c addr = __map_single(dev, iommu, domain->priv, paddr, size, dir, false, dev 1048 arch/x86/kernel/amd_iommu.c if (!check_device(dev) || dev 1049 arch/x86/kernel/amd_iommu.c !get_device_resources(dev, &iommu, &domain, &devid)) dev 1098 arch/x86/kernel/amd_iommu.c if (!check_device(dev)) dev 1101 arch/x86/kernel/amd_iommu.c dma_mask = *dev->dma_mask; dev 1103 arch/x86/kernel/amd_iommu.c get_device_resources(dev, &iommu, &domain, &devid); dev 1106 arch/x86/kernel/amd_iommu.c return map_sg_no_iommu(dev, sglist, nelems, dir); dev 1113 arch/x86/kernel/amd_iommu.c s->dma_address = __map_single(dev, iommu, domain->priv, dev 1158 arch/x86/kernel/amd_iommu.c if (!check_device(dev) || dev 1159 arch/x86/kernel/amd_iommu.c !get_device_resources(dev, &iommu, &domain, &devid)) dev 1188 arch/x86/kernel/amd_iommu.c u64 dma_mask = dev->coherent_dma_mask; dev 1190 arch/x86/kernel/amd_iommu.c if (!check_device(dev)) dev 1193 arch/x86/kernel/amd_iommu.c if (!get_device_resources(dev, &iommu, &domain, &devid)) dev 1209 arch/x86/kernel/amd_iommu.c dma_mask = *dev->dma_mask; dev 1213 arch/x86/kernel/amd_iommu.c *dma_addr = __map_single(dev, iommu, domain->priv, paddr, dev 1242 arch/x86/kernel/amd_iommu.c if (!check_device(dev)) dev 1245 arch/x86/kernel/amd_iommu.c get_device_resources(dev, &iommu, &domain, &devid); dev 1273 arch/x86/kernel/amd_iommu.c if (!dev || dev->bus != &pci_bus_type) dev 1276 arch/x86/kernel/amd_iommu.c pcidev = to_pci_dev(dev); dev 1296 arch/x86/kernel/amd_iommu.c struct pci_dev *dev = NULL; dev 1302 arch/x86/kernel/amd_iommu.c while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { dev 1303 arch/x86/kernel/amd_iommu.c devid = (dev->bus->number << 8) | dev->devfn; dev 249 arch/x86/kernel/amd_iommu_init.c iommu->dev->bus->number, dev 250 arch/x86/kernel/amd_iommu_init.c PCI_SLOT(iommu->dev->devfn), dev 251 arch/x86/kernel/amd_iommu_init.c PCI_FUNC(iommu->dev->devfn), dev 316 arch/x86/kernel/amd_iommu_init.c cap = read_pci_config(bus, dev, fn, cap_ptr+MMIO_RANGE_OFFSET); dev 329 arch/x86/kernel/amd_iommu_init.c struct ivhd_entry *dev; dev 340 arch/x86/kernel/amd_iommu_init.c dev = (struct ivhd_entry *)p; dev 341 arch/x86/kernel/amd_iommu_init.c switch (dev->type) { dev 347 arch/x86/kernel/amd_iommu_init.c update_last_devid(dev->devid); dev 538 arch/x86/kernel/amd_iommu_init.c pci_read_config_dword(iommu->dev, cap_ptr + MMIO_CAP_HDR_OFFSET, dev 540 arch/x86/kernel/amd_iommu_init.c pci_read_config_dword(iommu->dev, cap_ptr + MMIO_RANGE_OFFSET, dev 542 arch/x86/kernel/amd_iommu_init.c pci_read_config_dword(iommu->dev, cap_ptr + MMIO_MISC_OFFSET, dev 700 arch/x86/kernel/amd_iommu_init.c iommu->dev = pci_get_bus_and_slot(PCI_BUS(h->devid), h->devid & 0xff); dev 701 arch/x86/kernel/amd_iommu_init.c if (!iommu->dev) dev 726 arch/x86/kernel/amd_iommu_init.c return pci_enable_device(iommu->dev); dev 781 arch/x86/kernel/amd_iommu_init.c if (curr->dev == iommu->dev) { dev 789 arch/x86/kernel/amd_iommu_init.c if (pci_enable_msix(iommu->dev, entries, nvec)) { dev 790 arch/x86/kernel/amd_iommu_init.c pci_disable_msix(iommu->dev); dev 809 arch/x86/kernel/amd_iommu_init.c pci_disable_msix(iommu->dev); dev 820 arch/x86/kernel/amd_iommu_init.c if (curr->dev == iommu->dev) dev 825 arch/x86/kernel/amd_iommu_init.c if (pci_enable_msi(iommu->dev)) dev 828 arch/x86/kernel/amd_iommu_init.c r = request_irq(iommu->dev->irq, amd_iommu_int_handler, dev 834 arch/x86/kernel/amd_iommu_init.c pci_disable_msi(iommu->dev); dev 846 arch/x86/kernel/amd_iommu_init.c if (pci_find_capability(iommu->dev, PCI_CAP_ID_MSIX)) dev 848 arch/x86/kernel/amd_iommu_init.c else if (pci_find_capability(iommu->dev, PCI_CAP_ID_MSI)) dev 461 arch/x86/kernel/apic_32.c void (*real_handler)(struct clock_event_device *dev); dev 1087 arch/x86/kernel/apm_32.c static const u_short dev[3] = { 0x100, 0x1FF, 0x101 }; dev 1091 arch/x86/kernel/apm_32.c for (i = 0; i < ARRAY_SIZE(dev); i++) { dev 1092 arch/x86/kernel/apm_32.c error = set_power_state(dev[i], state); dev 704 arch/x86/kernel/cpu/cpufreq/longhaul.c struct pci_dev *dev; dev 711 arch/x86/kernel/cpu/cpufreq/longhaul.c dev = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8601_0, dev 714 arch/x86/kernel/cpu/cpufreq/longhaul.c if (dev == NULL) dev 715 arch/x86/kernel/cpu/cpufreq/longhaul.c dev = pci_get_device(PCI_VENDOR_ID_VIA, dev 718 arch/x86/kernel/cpu/cpufreq/longhaul.c if (dev == NULL) { dev 720 arch/x86/kernel/cpu/cpufreq/longhaul.c dev = pci_get_device(PCI_VENDOR_ID_VIA, dev 723 arch/x86/kernel/cpu/cpufreq/longhaul.c if (dev == NULL) dev 724 arch/x86/kernel/cpu/cpufreq/longhaul.c dev = pci_get_device(PCI_VENDOR_ID_VIA, 0x7259, NULL); dev 726 arch/x86/kernel/cpu/cpufreq/longhaul.c if (dev != NULL) { dev 728 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_read_config_byte(dev, reg, &pci_cmd); dev 731 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_write_config_byte(dev, reg, pci_cmd); dev 732 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_read_config_byte(dev, reg, &pci_cmd); dev 739 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_dev_put(dev); dev 747 arch/x86/kernel/cpu/cpufreq/longhaul.c struct pci_dev *dev; dev 751 arch/x86/kernel/cpu/cpufreq/longhaul.c dev = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235, NULL); dev 752 arch/x86/kernel/cpu/cpufreq/longhaul.c if (dev == NULL) dev 754 arch/x86/kernel/cpu/cpufreq/longhaul.c dev = pci_get_device(PCI_VENDOR_ID_VIA, dev 756 arch/x86/kernel/cpu/cpufreq/longhaul.c if (dev != NULL) { dev 758 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_read_config_byte(dev, 0xec, &pci_cmd); dev 760 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_write_config_byte(dev, 0xec, pci_cmd); dev 761 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_read_config_byte(dev, 0xe4, &pci_cmd); dev 763 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_write_config_byte(dev, 0xe4, pci_cmd); dev 764 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_read_config_byte(dev, 0xe5, &pci_cmd); dev 766 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_write_config_byte(dev, 0xe5, pci_cmd); dev 768 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_read_config_byte(dev, 0x81, &pci_cmd); dev 770 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_read_config_dword(dev, 0x88, &acpi_regs_addr); dev 775 arch/x86/kernel/cpu/cpufreq/longhaul.c pci_dev_put(dev); dev 670 arch/x86/kernel/cpu/intel_cacheinfo.c struct pci_dev *dev = NULL; dev 675 arch/x86/kernel/cpu/intel_cacheinfo.c dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev); dev 676 arch/x86/kernel/cpu/intel_cacheinfo.c if (!dev) dev 678 arch/x86/kernel/cpu/intel_cacheinfo.c } while (!pci_match_id(&k8_nb_id[0], dev)); dev 679 arch/x86/kernel/cpu/intel_cacheinfo.c if (!dev) dev 682 arch/x86/kernel/cpu/intel_cacheinfo.c return dev; dev 694 arch/x86/kernel/cpu/intel_cacheinfo.c struct pci_dev *dev = NULL; dev 701 arch/x86/kernel/cpu/intel_cacheinfo.c dev = get_k8_northbridge(node); dev 702 arch/x86/kernel/cpu/intel_cacheinfo.c if (!dev) { dev 710 arch/x86/kernel/cpu/intel_cacheinfo.c pci_read_config_dword(dev, 0x1BC + i * 4, ®); dev 728 arch/x86/kernel/cpu/intel_cacheinfo.c struct pci_dev *dev = NULL; dev 744 arch/x86/kernel/cpu/intel_cacheinfo.c dev = get_k8_northbridge(node); dev 745 arch/x86/kernel/cpu/intel_cacheinfo.c if (!dev) { dev 750 arch/x86/kernel/cpu/intel_cacheinfo.c pci_write_config_dword(dev, 0x1BC + index * 4, val & ~0x40000000); dev 752 arch/x86/kernel/cpu/intel_cacheinfo.c pci_write_config_dword(dev, 0x1BC + index * 4, val); dev 37 arch/x86/kernel/cpu/mcheck/therm_throt.c static ssize_t therm_throt_sysdev_show_##name(struct sys_device *dev, \ dev 41 arch/x86/kernel/cpu/mcheck/therm_throt.c unsigned int cpu = dev->id; \ dev 73 arch/x86/kernel/cpu/mtrr/main.c struct pci_dev *dev; dev 76 arch/x86/kernel/cpu/mtrr/main.c if ((dev = pci_get_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)) != NULL) { dev 79 arch/x86/kernel/cpu/mtrr/main.c if (dev->vendor == PCI_VENDOR_ID_SERVERWORKS && dev 80 arch/x86/kernel/cpu/mtrr/main.c dev->device == PCI_DEVICE_ID_SERVERWORKS_LE) { dev 81 arch/x86/kernel/cpu/mtrr/main.c pci_read_config_byte(dev, PCI_CLASS_REVISION, &rev); dev 84 arch/x86/kernel/cpu/mtrr/main.c pci_dev_put(dev); dev 90 arch/x86/kernel/cpu/mtrr/main.c if (dev->vendor == PCI_VENDOR_ID_INTEL && dev 91 arch/x86/kernel/cpu/mtrr/main.c dev->device == PCI_DEVICE_ID_INTEL_82451NX) { dev 93 arch/x86/kernel/cpu/mtrr/main.c pci_dev_put(dev); dev 96 arch/x86/kernel/cpu/mtrr/main.c pci_dev_put(dev); dev 148 arch/x86/kernel/cpuid.c struct device *dev; dev 150 arch/x86/kernel/cpuid.c dev = device_create_drvdata(cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), dev 152 arch/x86/kernel/cpuid.c return IS_ERR(dev) ? PTR_ERR(dev) : 0; dev 48 arch/x86/kernel/geode_32.c BUG_ON(dev >= ARRAY_SIZE(lbars)); dev 49 arch/x86/kernel/geode_32.c return lbars[dev].base; dev 2358 arch/x86/kernel/io_apic_32.c struct sys_device dev; dev 2369 arch/x86/kernel/io_apic_32.c data = container_of(dev, struct sysfs_ioapic_data, dev); dev 2371 arch/x86/kernel/io_apic_32.c for (i = 0; i < nr_ioapic_registers[dev->id]; i++) dev 2372 arch/x86/kernel/io_apic_32.c entry[i] = ioapic_read_entry(dev->id, i); dev 2385 arch/x86/kernel/io_apic_32.c data = container_of(dev, struct sysfs_ioapic_data, dev); dev 2389 arch/x86/kernel/io_apic_32.c reg_00.raw = io_apic_read(dev->id, 0); dev 2390 arch/x86/kernel/io_apic_32.c if (reg_00.bits.ID != mp_ioapics[dev->id].mp_apicid) { dev 2391 arch/x86/kernel/io_apic_32.c reg_00.bits.ID = mp_ioapics[dev->id].mp_apicid; dev 2392 arch/x86/kernel/io_apic_32.c io_apic_write(dev->id, 0, reg_00.raw); dev 2395 arch/x86/kernel/io_apic_32.c for (i = 0; i < nr_ioapic_registers[dev->id]; i++) dev 2396 arch/x86/kernel/io_apic_32.c ioapic_write_entry(dev->id, i, entry[i]); dev 2409 arch/x86/kernel/io_apic_32.c struct sys_device *dev; dev 2424 arch/x86/kernel/io_apic_32.c dev = &mp_ioapic_data[i]->dev; dev 2425 arch/x86/kernel/io_apic_32.c dev->id = i; dev 2426 arch/x86/kernel/io_apic_32.c dev->cls = &ioapic_sysdev_class; dev 2427 arch/x86/kernel/io_apic_32.c error = sysdev_register(dev); dev 2571 arch/x86/kernel/io_apic_32.c ret = msi_compose_msg(dev, irq, &msg); dev 2187 arch/x86/kernel/io_apic_64.c struct sys_device dev; dev 2198 arch/x86/kernel/io_apic_64.c data = container_of(dev, struct sysfs_ioapic_data, dev); dev 2200 arch/x86/kernel/io_apic_64.c for (i = 0; i < nr_ioapic_registers[dev->id]; i ++, entry ++ ) dev 2201 arch/x86/kernel/io_apic_64.c *entry = ioapic_read_entry(dev->id, i); dev 2214 arch/x86/kernel/io_apic_64.c data = container_of(dev, struct sysfs_ioapic_data, dev); dev 2218 arch/x86/kernel/io_apic_64.c reg_00.raw = io_apic_read(dev->id, 0); dev 2219 arch/x86/kernel/io_apic_64.c if (reg_00.bits.ID != mp_ioapics[dev->id].mp_apicid) { dev 2220 arch/x86/kernel/io_apic_64.c reg_00.bits.ID = mp_ioapics[dev->id].mp_apicid; dev 2221 arch/x86/kernel/io_apic_64.c io_apic_write(dev->id, 0, reg_00.raw); dev 2224 arch/x86/kernel/io_apic_64.c for (i = 0; i < nr_ioapic_registers[dev->id]; i++) dev 2225 arch/x86/kernel/io_apic_64.c ioapic_write_entry(dev->id, i, entry[i]); dev 2238 arch/x86/kernel/io_apic_64.c struct sys_device * dev; dev 2253 arch/x86/kernel/io_apic_64.c dev = &mp_ioapic_data[i]->dev; dev 2254 arch/x86/kernel/io_apic_64.c dev->id = i; dev 2255 arch/x86/kernel/io_apic_64.c dev->cls = &ioapic_sysdev_class; dev 2256 arch/x86/kernel/io_apic_64.c error = sysdev_register(dev); dev 2499 arch/x86/kernel/io_apic_64.c iommu = map_dev_to_ir(dev); dev 2502 arch/x86/kernel/io_apic_64.c "Unable to map PCI %s to iommu\n", pci_name(dev)); dev 2510 arch/x86/kernel/io_apic_64.c pci_name(dev)); dev 2522 arch/x86/kernel/io_apic_64.c ret = msi_compose_msg(dev, irq, &msg); dev 2556 arch/x86/kernel/io_apic_64.c ret = msi_alloc_irte(dev, irq, 1); dev 2561 arch/x86/kernel/io_apic_64.c ret = setup_msi_irq(dev, desc, irq); dev 2585 arch/x86/kernel/io_apic_64.c list_for_each_entry(desc, &dev->msi_list, list) { dev 2598 arch/x86/kernel/io_apic_64.c index = msi_alloc_irte(dev, irq, nvec); dev 2604 arch/x86/kernel/io_apic_64.c iommu = map_dev_to_ir(dev); dev 2618 arch/x86/kernel/io_apic_64.c ret = setup_msi_irq(dev, desc, irq); dev 32 arch/x86/kernel/k8.c dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev); dev 33 arch/x86/kernel/k8.c if (!dev) dev 35 arch/x86/kernel/k8.c } while (!pci_match_id(&k8_nb_ids[0], dev)); dev 36 arch/x86/kernel/k8.c return dev; dev 42 arch/x86/kernel/k8.c struct pci_dev *dev; dev 47 arch/x86/kernel/k8.c dev = NULL; dev 48 arch/x86/kernel/k8.c while ((dev = next_k8_northbridge(dev)) != NULL) dev 67 arch/x86/kernel/k8.c dev = NULL; dev 69 arch/x86/kernel/k8.c while ((dev = next_k8_northbridge(dev)) != NULL) { dev 70 arch/x86/kernel/k8.c k8_northbridges[i] = dev; dev 71 arch/x86/kernel/k8.c pci_read_config_dword(dev, 0x9c, &flush_words[i++]); dev 453 arch/x86/kernel/mca_32.c struct mca_device *mca_dev = to_mca_device(dev); dev 212 arch/x86/kernel/microcode_core.c struct ucode_cpu_info *uci = ucode_cpu_info + dev->id; dev 216 arch/x86/kernel/microcode_core.c int cpu = dev->id; dev 229 arch/x86/kernel/microcode_core.c µcode_pdev->dev); dev 246 arch/x86/kernel/microcode_core.c struct ucode_cpu_info *uci = ucode_cpu_info + dev->id; dev 254 arch/x86/kernel/microcode_core.c struct ucode_cpu_info *uci = ucode_cpu_info + dev->id; dev 337 arch/x86/kernel/microcode_core.c µcode_pdev->dev); dev 392 arch/x86/kernel/microcode_core.c int cpu = dev->id; dev 164 arch/x86/kernel/msr.c struct device *dev; dev 166 arch/x86/kernel/msr.c dev = device_create_drvdata(msr_class, NULL, MKDEV(MSR_MAJOR, cpu), dev 168 arch/x86/kernel/msr.c return IS_ERR(dev) ? PTR_ERR(dev) : 0; dev 277 arch/x86/kernel/pci-calgary_64.c boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, dev 315 arch/x86/kernel/pci-calgary_64.c entry = iommu_range_alloc(dev, tbl, npages); dev 378 arch/x86/kernel/pci-calgary_64.c pdev = to_pci_dev(dev); dev 396 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = find_iommu_table(dev); dev 419 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = find_iommu_table(dev); dev 432 arch/x86/kernel/pci-calgary_64.c entry = iommu_range_alloc(dev, tbl, npages); dev 450 arch/x86/kernel/pci-calgary_64.c calgary_unmap_sg(dev, sg, nelems, direction); dev 464 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = find_iommu_table(dev); dev 469 arch/x86/kernel/pci-calgary_64.c return iommu_alloc(dev, tbl, vaddr, npages, direction); dev 475 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = find_iommu_table(dev); dev 488 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = find_iommu_table(dev); dev 503 arch/x86/kernel/pci-calgary_64.c mapping = iommu_alloc(dev, tbl, ret, npages, DMA_BIDIRECTIONAL); dev 519 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = find_iommu_table(dev); dev 714 arch/x86/kernel/pci-calgary_64.c iommu_range_reserve(pci_iommu(dev->bus), start, numpages); dev 722 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); dev 723 arch/x86/kernel/pci-calgary_64.c unsigned char busnum = dev->bus->number; dev 737 arch/x86/kernel/pci-calgary_64.c calgary_reserve_mem_region(dev, start, limit); dev 746 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); dev 747 arch/x86/kernel/pci-calgary_64.c unsigned char busnum = dev->bus->number; dev 768 arch/x86/kernel/pci-calgary_64.c calgary_reserve_mem_region(dev, start, limit); dev 782 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); dev 789 arch/x86/kernel/pci-calgary_64.c if (is_calgary(dev->device)) { dev 799 arch/x86/kernel/pci-calgary_64.c calgary_reserve_peripheral_mem_1(dev); dev 800 arch/x86/kernel/pci-calgary_64.c calgary_reserve_peripheral_mem_2(dev); dev 812 arch/x86/kernel/pci-calgary_64.c ret = build_tce_table(dev, bbar); dev 816 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); dev 817 arch/x86/kernel/pci-calgary_64.c tbl->it_base = (unsigned long)bus_info[dev->bus->number].tce_space; dev 824 arch/x86/kernel/pci-calgary_64.c if (is_calgary(dev->device)) dev 826 arch/x86/kernel/pci-calgary_64.c else if (is_calioc2(dev->device)) dev 831 arch/x86/kernel/pci-calgary_64.c calgary_reserve_regions(dev); dev 834 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, tar_offset(dev->bus->number)); dev 857 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); dev 861 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(tbl->bbar, tar_offset(dev->bus->number)); dev 873 arch/x86/kernel/pci-calgary_64.c set_pci_iommu(dev->bus, NULL); dev 876 arch/x86/kernel/pci-calgary_64.c bus_info[dev->bus->number].tce_space = NULL; dev 945 arch/x86/kernel/pci-calgary_64.c struct pci_dev *dev = (struct pci_dev *)data; dev 946 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); dev 1008 arch/x86/kernel/pci-calgary_64.c unsigned char busnum = dev->bus->number; dev 1024 arch/x86/kernel/pci-calgary_64.c unsigned char busnum = dev->bus->number; dev 1030 arch/x86/kernel/pci-calgary_64.c if (is_calgary(dev->device) && (busnum == 1)) dev 1043 arch/x86/kernel/pci-calgary_64.c busnum = dev->bus->number; dev 1044 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); dev 1053 arch/x86/kernel/pci-calgary_64.c (dev->device == PCI_DEVICE_ID_IBM_CALGARY) ? dev 1063 arch/x86/kernel/pci-calgary_64.c tbl->watchdog_timer.data = (unsigned long)dev; dev 1075 arch/x86/kernel/pci-calgary_64.c busnum = dev->bus->number; dev 1076 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); dev 1093 arch/x86/kernel/pci-calgary_64.c pci_dev_get(dev); dev 1094 arch/x86/kernel/pci-calgary_64.c set_pci_iommu(dev->bus, NULL); dev 1097 arch/x86/kernel/pci-calgary_64.c if (dev->bus->parent) dev 1098 arch/x86/kernel/pci-calgary_64.c dev->bus->parent->self = dev; dev 1100 arch/x86/kernel/pci-calgary_64.c dev->bus->self = dev; dev 1109 arch/x86/kernel/pci-calgary_64.c BUG_ON(dev->bus->number >= MAX_PHB_BUS_NUM); dev 1111 arch/x86/kernel/pci-calgary_64.c bbar = busno_to_bbar(dev->bus->number); dev 1112 arch/x86/kernel/pci-calgary_64.c ret = calgary_setup_tar(dev, bbar); dev 1116 arch/x86/kernel/pci-calgary_64.c pci_dev_get(dev); dev 1118 arch/x86/kernel/pci-calgary_64.c if (dev->bus->parent) { dev 1119 arch/x86/kernel/pci-calgary_64.c if (dev->bus->parent->self) dev 1121 arch/x86/kernel/pci-calgary_64.c "bus->parent->self!\n", dev); dev 1122 arch/x86/kernel/pci-calgary_64.c dev->bus->parent->self = dev; dev 1124 arch/x86/kernel/pci-calgary_64.c dev->bus->self = dev; dev 1126 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); dev 1127 arch/x86/kernel/pci-calgary_64.c tbl->chip_ops->handle_quirks(tbl, dev); dev 1129 arch/x86/kernel/pci-calgary_64.c calgary_enable_translation(dev); dev 1194 arch/x86/kernel/pci-calgary_64.c struct pci_dev *dev = NULL; dev 1206 arch/x86/kernel/pci-calgary_64.c dev = pci_get_device(PCI_VENDOR_ID_IBM, PCI_ANY_ID, dev); dev 1207 arch/x86/kernel/pci-calgary_64.c if (!dev) dev 1209 arch/x86/kernel/pci-calgary_64.c if (!is_cal_pci_dev(dev->device)) dev 1212 arch/x86/kernel/pci-calgary_64.c info = &bus_info[dev->bus->number]; dev 1214 arch/x86/kernel/pci-calgary_64.c calgary_init_one_nontraslated(dev); dev 1221 arch/x86/kernel/pci-calgary_64.c ret = calgary_init_one(dev); dev 1226 arch/x86/kernel/pci-calgary_64.c dev = NULL; dev 1227 arch/x86/kernel/pci-calgary_64.c for_each_pci_dev(dev) { dev 1230 arch/x86/kernel/pci-calgary_64.c tbl = find_iommu_table(&dev->dev); dev 1233 arch/x86/kernel/pci-calgary_64.c dev->dev.archdata.dma_ops = &calgary_dma_ops; dev 1240 arch/x86/kernel/pci-calgary_64.c dev = pci_get_device(PCI_VENDOR_ID_IBM, PCI_ANY_ID, dev); dev 1241 arch/x86/kernel/pci-calgary_64.c if (!dev) dev 1243 arch/x86/kernel/pci-calgary_64.c if (!is_cal_pci_dev(dev->device)) dev 1246 arch/x86/kernel/pci-calgary_64.c info = &bus_info[dev->bus->number]; dev 1248 arch/x86/kernel/pci-calgary_64.c pci_dev_put(dev); dev 1254 arch/x86/kernel/pci-calgary_64.c calgary_disable_translation(dev); dev 1255 arch/x86/kernel/pci-calgary_64.c calgary_free_bus(dev); dev 1256 arch/x86/kernel/pci-calgary_64.c pci_dev_put(dev); /* Undo calgary_init_one()'s pci_dev_get() */ dev 1257 arch/x86/kernel/pci-calgary_64.c dev->dev.archdata.dma_ops = NULL; dev 1328 arch/x86/kernel/pci-calgary_64.c int dev; dev 1339 arch/x86/kernel/pci-calgary_64.c for (dev = 1; dev < 8; dev++) { dev 1340 arch/x86/kernel/pci-calgary_64.c val = read_pci_config(bus, dev, 0, 0); dev 1607 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); dev 1610 arch/x86/kernel/pci-calgary_64.c struct resource *r = &dev->resource[PCI_BRIDGE_RESOURCES + i]; dev 1630 arch/x86/kernel/pci-calgary_64.c struct pci_dev *dev = NULL; dev 1639 arch/x86/kernel/pci-calgary_64.c dev = pci_get_device(PCI_VENDOR_ID_IBM, PCI_ANY_ID, dev); dev 1640 arch/x86/kernel/pci-calgary_64.c if (!dev) dev 1642 arch/x86/kernel/pci-calgary_64.c if (!is_cal_pci_dev(dev->device)) dev 1645 arch/x86/kernel/pci-calgary_64.c info = &bus_info[dev->bus->number]; dev 1652 arch/x86/kernel/pci-calgary_64.c calgary_fixup_one_tce_space(dev); dev 53 arch/x86/kernel/pci-dma.c if (!dev->dma_mask || !dma_supported(dev, mask)) dev 56 arch/x86/kernel/pci-dma.c *dev->dma_mask = mask; dev 144 arch/x86/kernel/pci-dma.c dma_mask = dma_alloc_coherent_mask(dev, flag); dev 148 arch/x86/kernel/pci-dma.c page = alloc_pages_node(dev_to_node(dev), flag, get_order(size)); dev 237 arch/x86/kernel/pci-dma.c struct dma_mapping_ops *ops = get_dma_ops(dev); dev 241 arch/x86/kernel/pci-dma.c dev_info(dev, "PCI: Disallowing DAC for device\n"); dev 247 arch/x86/kernel/pci-dma.c return ops->dma_supported(dev, mask); dev 268 arch/x86/kernel/pci-dma.c dev_info(dev, "Force SAC with mask %Lx\n", mask); dev 302 arch/x86/kernel/pci-dma.c if ((dev->class >> 8) == PCI_CLASS_BRIDGE_PCI && forbid_dac == 0) { dev 92 arch/x86/kernel/pci-gart_64.c base_index = ALIGN(iommu_bus_base & dma_get_seg_boundary(dev), dev 94 arch/x86/kernel/pci-gart_64.c boundary_size = ALIGN((unsigned long long)dma_get_seg_boundary(dev) + 1, dev 201 arch/x86/kernel/pci-gart_64.c dev_err(dev, "PCI-DMA: Out of IOMMU space for %lu bytes\n", size); dev 219 arch/x86/kernel/pci-gart_64.c !is_buffer_dma_capable(*dev->dma_mask, addr, size); dev 225 arch/x86/kernel/pci-gart_64.c return !is_buffer_dma_capable(*dev->dma_mask, addr, size); dev 235 arch/x86/kernel/pci-gart_64.c unsigned long iommu_page = alloc_iommu(dev, npages, align_mask); dev 239 arch/x86/kernel/pci-gart_64.c if (!nonforced_iommu(dev, phys_mem, size)) dev 243 arch/x86/kernel/pci-gart_64.c iommu_full(dev, size, dir); dev 261 arch/x86/kernel/pci-gart_64.c if (!dev) dev 262 arch/x86/kernel/pci-gart_64.c dev = &x86_dma_fallback_dev; dev 264 arch/x86/kernel/pci-gart_64.c if (!need_iommu(dev, paddr, size)) dev 267 arch/x86/kernel/pci-gart_64.c bus = dma_map_area(dev, paddr, size, dir, 0); dev 308 arch/x86/kernel/pci-gart_64.c gart_unmap_single(dev, s->dma_address, s->dma_length, dir); dev 326 arch/x86/kernel/pci-gart_64.c if (nonforced_iommu(dev, addr, s->length)) { dev 327 arch/x86/kernel/pci-gart_64.c addr = dma_map_area(dev, addr, s->length, dir, 0); dev 330 arch/x86/kernel/pci-gart_64.c gart_unmap_sg(dev, sg, i, dir); dev 349 arch/x86/kernel/pci-gart_64.c unsigned long iommu_start = alloc_iommu(dev, pages, 0); dev 394 arch/x86/kernel/pci-gart_64.c return __dma_map_cont(dev, start, nelems, sout, pages); dev 413 arch/x86/kernel/pci-gart_64.c if (!dev) dev 414 arch/x86/kernel/pci-gart_64.c dev = &x86_dma_fallback_dev; dev 420 arch/x86/kernel/pci-gart_64.c max_seg_size = dma_get_max_seg_size(dev); dev 428 arch/x86/kernel/pci-gart_64.c nextneed = need_iommu(dev, addr, s->length); dev 440 arch/x86/kernel/pci-gart_64.c if (dma_map_cont(dev, start_sg, i - start, dev 457 arch/x86/kernel/pci-gart_64.c if (dma_map_cont(dev, start_sg, i - start, sgmap, pages, need) < 0) dev 469 arch/x86/kernel/pci-gart_64.c gart_unmap_sg(dev, sg, out, dir); dev 473 arch/x86/kernel/pci-gart_64.c out = dma_map_sg_nonforce(dev, sg, nents, dir); dev 480 arch/x86/kernel/pci-gart_64.c iommu_full(dev, pages << PAGE_SHIFT, dir); dev 502 arch/x86/kernel/pci-gart_64.c paddr = dma_map_area(dev, page_to_phys(page), size, dev 512 arch/x86/kernel/pci-gart_64.c return dma_generic_alloc_coherent(dev, size, dma_addr, flag); dev 522 arch/x86/kernel/pci-gart_64.c gart_unmap_single(dev, dma_addr, size, DMA_BIDIRECTIONAL); dev 556 arch/x86/kernel/pci-gart_64.c pci_read_config_dword(dev, AMD64_GARTAPERTUREBASE, &aper_base_32); dev 557 arch/x86/kernel/pci-gart_64.c pci_read_config_dword(dev, AMD64_GARTAPERTURECTL, &aper_order); dev 576 arch/x86/kernel/pci-gart_64.c struct pci_dev *dev = k8_northbridges[i]; dev 578 arch/x86/kernel/pci-gart_64.c enable_gart_translation(dev, __pa(agp_gatt_table)); dev 607 arch/x86/kernel/pci-gart_64.c struct pci_dev *dev = k8_northbridges[i]; dev 613 arch/x86/kernel/pci-gart_64.c pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, dev 615 arch/x86/kernel/pci-gart_64.c pci_write_config_dword(dev, AMD64_GARTAPERTUREBASE, dev 650 arch/x86/kernel/pci-gart_64.c struct pci_dev *dev; dev 656 arch/x86/kernel/pci-gart_64.c dev = NULL; dev 658 arch/x86/kernel/pci-gart_64.c dev = k8_northbridges[i]; dev 659 arch/x86/kernel/pci-gart_64.c new_aper_base = read_aperture(dev, &new_aper_size); dev 719 arch/x86/kernel/pci-gart_64.c struct pci_dev *dev; dev 728 arch/x86/kernel/pci-gart_64.c dev = k8_northbridges[i]; dev 729 arch/x86/kernel/pci-gart_64.c pci_read_config_dword(dev, AMD64_GARTAPERTURECTL, &ctl); dev 733 arch/x86/kernel/pci-gart_64.c pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl); dev 21 arch/x86/kernel/quirks.c pci_read_config_byte(dev, PCI_CLASS_REVISION, &rev); dev 26 arch/x86/kernel/quirks.c pci_read_config_byte(dev, 0xf4, &config); dev 27 arch/x86/kernel/quirks.c pci_write_config_byte(dev, 0xf4, config|0x2); dev 33 arch/x86/kernel/quirks.c pci_bus_read_config_word(dev->bus, PCI_DEVFN(8, 0), 0x4c, &word); dev 36 arch/x86/kernel/quirks.c dev_info(&dev->dev, "Intel E7520/7320/7525 detected; " dev 49 arch/x86/kernel/quirks.c pci_write_config_byte(dev, 0xf4, config); dev 108 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0xF0, &rcba); dev 111 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "RCBA disabled; " dev 119 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "ioremap failed; " dev 131 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at " dev 151 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, dev 155 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at " dev 216 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0xD0, &gen_cntl); dev 226 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "HPET at 0x%lx\n", dev 237 arch/x86/kernel/quirks.c pci_write_config_dword(dev, 0xD0, gen_cntl); dev 239 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0xD0, &gen_cntl); dev 247 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at " dev 249 arch/x86/kernel/quirks.c cached_dev = dev; dev 254 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "Failed to force enable HPET\n"); dev 264 arch/x86/kernel/quirks.c old_ich_force_enable_hpet(dev); dev 314 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0x68, &val); dev 321 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "HPET at 0x%lx\n", dev 331 arch/x86/kernel/quirks.c pci_write_config_dword(dev, 0x68, val); dev 333 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0x68, &val); dev 336 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at " dev 338 arch/x86/kernel/quirks.c cached_dev = dev; dev 343 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "Failed to force enable HPET\n"); dev 362 arch/x86/kernel/quirks.c pci_read_config_byte(dev, 0xac, &b); dev 364 arch/x86/kernel/quirks.c pci_write_config_byte(dev, 0xac, b); dev 365 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0x70, &d); dev 367 arch/x86/kernel/quirks.c pci_write_config_dword(dev, 0x70, d); dev 368 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0x8, &d); dev 370 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "SB4X0 revision 0x%x\n", d); dev 387 arch/x86/kernel/quirks.c d = ati_ixp4x0_rev(dev); dev 392 arch/x86/kernel/quirks.c pci_write_config_dword(dev, 0x14, 0xfed00000); dev 393 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0x14, &val); dev 402 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0x64, &d); dev 404 arch/x86/kernel/quirks.c pci_write_config_dword(dev, 0x64, d); dev 405 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0x64, &d); dev 411 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at 0x%lx\n", dev 413 arch/x86/kernel/quirks.c cached_dev = dev; dev 439 arch/x86/kernel/quirks.c pci_write_config_dword(dev, 0x44, 0xfed00001); dev 440 arch/x86/kernel/quirks.c pci_read_config_dword(dev, 0x44, &val); dev 443 arch/x86/kernel/quirks.c dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at 0x%lx\n", dev 445 arch/x86/kernel/quirks.c cached_dev = dev; dev 21 arch/x86/kernel/reboot_fixups_32.c pci_write_config_byte(dev, 0x44, 0x1); dev 68 arch/x86/kernel/reboot_fixups_32.c struct pci_dev *dev; dev 78 arch/x86/kernel/reboot_fixups_32.c dev = pci_get_device(cur->vendor, cur->device, NULL); dev 79 arch/x86/kernel/reboot_fixups_32.c if (!dev) dev 82 arch/x86/kernel/reboot_fixups_32.c cur->reboot_fixup(dev); dev 228 arch/x86/kernel/rtc.c struct pnp_dev *dev; dev 232 arch/x86/kernel/rtc.c pnp_for_each_dev(dev) { dev 233 arch/x86/kernel/rtc.c for (id = dev->id; id; id = id->next) { dev 243 arch/x86/kernel/rtc.c dev_info(&rtc_device.dev, dev 103 arch/x86/kernel/tce_64.c tbl->it_busno = dev->bus->number; dev 139 arch/x86/kernel/tce_64.c if (pci_iommu(dev->bus)) { dev 141 arch/x86/kernel/tce_64.c dev, pci_iommu(dev->bus)); dev 152 arch/x86/kernel/tce_64.c ret = tce_table_setparms(dev, tbl); dev 158 arch/x86/kernel/tce_64.c set_pci_iommu(dev->bus, tbl); dev 539 arch/x86/kvm/i8254.c pit->dev.read = pit_ioport_read; dev 540 arch/x86/kvm/i8254.c pit->dev.write = pit_ioport_write; dev 541 arch/x86/kvm/i8254.c pit->dev.in_range = pit_in_range; dev 542 arch/x86/kvm/i8254.c pit->dev.private = pit; dev 543 arch/x86/kvm/i8254.c kvm_io_bus_register_dev(&kvm->pio_bus, &pit->dev); dev 43 arch/x86/kvm/i8254.h struct kvm_io_device dev; dev 447 arch/x86/kvm/i8259.c s->dev.read = picdev_read; dev 448 arch/x86/kvm/i8259.c s->dev.write = picdev_write; dev 449 arch/x86/kvm/i8259.c s->dev.in_range = picdev_in_range; dev 450 arch/x86/kvm/i8259.c s->dev.private = s; dev 451 arch/x86/kvm/i8259.c kvm_io_bus_register_dev(&kvm->pio_bus, &s->dev); dev 65 arch/x86/kvm/irq.h struct kvm_io_device dev; dev 511 arch/x86/kvm/lapic.c now = apic->timer.dev.base->get_time(); dev 646 arch/x86/kvm/lapic.c ktime_t now = apic->timer.dev.base->get_time(); dev 657 arch/x86/kvm/lapic.c hrtimer_start(&apic->timer.dev, dev 768 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->timer.dev); dev 808 arch/x86/kvm/lapic.c hrtimer_cancel(&vcpu->arch.apic->timer.dev); dev 886 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->timer.dev); dev 956 arch/x86/kvm/lapic.c apic->timer.dev.expires = ktime_add_ns( dev 957 arch/x86/kvm/lapic.c apic->timer.dev.expires, dev 986 arch/x86/kvm/lapic.c apic = container_of(data, struct kvm_lapic, timer.dev); dev 1019 arch/x86/kvm/lapic.c hrtimer_init(&apic->timer.dev, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); dev 1020 arch/x86/kvm/lapic.c apic->timer.dev.function = apic_timer_fn; dev 1025 arch/x86/kvm/lapic.c apic->dev.read = apic_mmio_read; dev 1026 arch/x86/kvm/lapic.c apic->dev.write = apic_mmio_write; dev 1027 arch/x86/kvm/lapic.c apic->dev.in_range = apic_mmio_range; dev 1028 arch/x86/kvm/lapic.c apic->dev.private = apic; dev 1112 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->timer.dev); dev 1125 arch/x86/kvm/lapic.c timer = &apic->timer.dev; dev 10 arch/x86/kvm/lapic.h struct kvm_io_device dev; dev 16 arch/x86/kvm/lapic.h struct hrtimer dev; dev 1809 arch/x86/kvm/x86.c struct kvm_io_device *dev; dev 1812 arch/x86/kvm/x86.c dev = &vcpu->arch.apic->dev; dev 1813 arch/x86/kvm/x86.c if (dev->in_range(dev, addr, len, is_write)) dev 1814 arch/x86/kvm/x86.c return dev; dev 1824 arch/x86/kvm/x86.c struct kvm_io_device *dev; dev 1826 arch/x86/kvm/x86.c dev = vcpu_find_pervcpu_dev(vcpu, addr, len, is_write); dev 1827 arch/x86/kvm/x86.c if (dev == NULL) dev 1828 arch/x86/kvm/x86.c dev = kvm_io_bus_find_dev(&vcpu->kvm->mmio_bus, addr, len, dev 1830 arch/x86/kvm/x86.c return dev; dev 45 arch/x86/mach-rdc321x/platform.c .dev = { dev 99 arch/x86/pci/acpi.c struct pci_dev *dev; dev 101 arch/x86/pci/acpi.c list_for_each_entry(dev, &bus->devices, bus_list) { dev 103 arch/x86/pci/acpi.c u16 class = dev->class >> 8; dev 105 arch/x86/pci/acpi.c if (class == PCI_CLASS_BRIDGE_PCI && dev->transparent) { dev 107 arch/x86/pci/acpi.c dev->subordinate->resource[i] = dev 108 arch/x86/pci/acpi.c dev->bus->resource[i - 3]; dev 228 arch/x86/pci/acpi.c struct pci_dev *dev = NULL; dev 249 arch/x86/pci/acpi.c for_each_pci_dev(dev) dev 250 arch/x86/pci/acpi.c acpi_pci_irq_enable(dev); dev 127 arch/x86/pci/common.c struct resource *rom_r = &dev->resource[PCI_ROM_RESOURCE]; dev 147 arch/x86/pci/common.c struct pci_dev *dev; dev 150 arch/x86/pci/common.c list_for_each_entry(dev, &b->devices, bus_list) dev 151 arch/x86/pci/common.c pcibios_fixup_device_resources(dev); dev 535 arch/x86/pci/common.c if ((err = pci_enable_resources(dev, mask)) < 0) dev 538 arch/x86/pci/common.c if (!dev->msi_enabled) dev 539 arch/x86/pci/common.c return pcibios_enable_irq(dev); dev 545 arch/x86/pci/common.c if (!dev->msi_enabled && pcibios_disable_irq) dev 546 arch/x86/pci/common.c pcibios_disable_irq(dev); dev 92 arch/x86/pci/direct.c #define PCI_CONF2_ADDRESS(dev, reg) (u16)(0xC000 | (dev << 8) | reg) dev 98 arch/x86/pci/direct.c int dev, fn; dev 105 arch/x86/pci/direct.c dev = PCI_SLOT(devfn); dev 108 arch/x86/pci/direct.c if (dev & 0x10) dev 118 arch/x86/pci/direct.c *value = inb(PCI_CONF2_ADDRESS(dev, reg)); dev 121 arch/x86/pci/direct.c *value = inw(PCI_CONF2_ADDRESS(dev, reg)); dev 124 arch/x86/pci/direct.c *value = inl(PCI_CONF2_ADDRESS(dev, reg)); dev 139 arch/x86/pci/direct.c int dev, fn; dev 144 arch/x86/pci/direct.c dev = PCI_SLOT(devfn); dev 147 arch/x86/pci/direct.c if (dev & 0x10) dev 157 arch/x86/pci/direct.c outb((u8)value, PCI_CONF2_ADDRESS(dev, reg)); dev 160 arch/x86/pci/direct.c outw((u16)value, PCI_CONF2_ADDRESS(dev, reg)); dev 163 arch/x86/pci/direct.c outl((u32)value, PCI_CONF2_ADDRESS(dev, reg)); dev 20 arch/x86/pci/fixup.c dev_warn(&d->dev, "Searching for i450NX host bridges\n"); dev 26 arch/x86/pci/fixup.c dev_dbg(&d->dev, "i450NX PXB %d: %02x/%02x/%02x\n", pxb, busno, dev 45 arch/x86/pci/fixup.c dev_info(&d->dev, "i440KX/GX host bridge; secondary bus %02x\n", busno); dev 59 arch/x86/pci/fixup.c dev_warn(&d->dev, "Fixing base address flags\n"); dev 72 arch/x86/pci/fixup.c dev_warn(&d->dev, "Fixing NCR 53C810 class code\n"); dev 84 arch/x86/pci/fixup.c dev_dbg(&d->dev, "Setting max latency to 32\n"); dev 142 arch/x86/pci/fixup.c dev_warn(&d->dev, "Disabling VIA memory write queue (PCI ID %04x, rev %02x): [%02x] %02x & %02x -> %02x\n", \ dev 168 arch/x86/pci/fixup.c if ((dev->class >> 8) == PCI_CLASS_BRIDGE_PCI && dev 169 arch/x86/pci/fixup.c (dev->device & 0xff00) == 0x2400) dev 170 arch/x86/pci/fixup.c dev->transparent = 1; dev 198 arch/x86/pci/fixup.c pci_read_config_dword(dev, 0x6c, &val); dev 204 arch/x86/pci/fixup.c dev_warn(&dev->dev, "nForce2 C1 Halt Disconnect fixup\n"); dev 205 arch/x86/pci/fixup.c pci_write_config_dword(dev, 0x6c, (val & 0xFF00FFFF) | 0x00010000); dev 257 arch/x86/pci/fixup.c struct pci_dev *dev; dev 289 arch/x86/pci/fixup.c list_for_each_entry(dev, &pbus->devices, bus_list) { dev 291 arch/x86/pci/fixup.c cap_base = pci_find_capability(dev, PCI_CAP_ID_EXP); dev 292 arch/x86/pci/fixup.c quirk_aspm_offset[GET_INDEX(pdev->device, dev->devfn)] = cap_base + 0x10; dev 354 arch/x86/pci/fixup.c dev_printk(KERN_DEBUG, &pdev->dev, "Boot video device\n"); dev 387 arch/x86/pci/fixup.c pci_read_config_byte(dev, 0x50, &val); dev 389 arch/x86/pci/fixup.c pci_write_config_byte(dev, 0x50, val & (~0x40)); dev 392 arch/x86/pci/fixup.c pci_read_config_byte(dev, 0x50, &val); dev 394 arch/x86/pci/fixup.c dev_info(&dev->dev, "Detected MSI K8T Neo2-FIR; " dev 397 arch/x86/pci/fixup.c dev_info(&dev->dev, "Detected MSI K8T Neo2-FIR; " dev 447 arch/x86/pci/fixup.c dev->current_state = PCI_D3cold; dev 448 arch/x86/pci/fixup.c pci_read_config_word(dev, PCI_CACHE_LINE_SIZE, &toshiba_line_size); dev 459 arch/x86/pci/fixup.c pci_write_config_word(dev, PCI_CACHE_LINE_SIZE, toshiba_line_size); dev 460 arch/x86/pci/fixup.c pci_read_config_byte(dev, PCI_INTERRUPT_LINE, (u8 *)&dev->irq); dev 461 arch/x86/pci/fixup.c pci_write_config_dword(dev, PCI_BASE_ADDRESS_0, dev 462 arch/x86/pci/fixup.c pci_resource_start(dev, 0)); dev 463 arch/x86/pci/fixup.c pci_write_config_dword(dev, PCI_BASE_ADDRESS_1, dev 464 arch/x86/pci/fixup.c pci_resource_start(dev, 1)); dev 478 arch/x86/pci/fixup.c pci_read_config_byte(dev, 0x42, &r); dev 480 arch/x86/pci/fixup.c pci_write_config_byte(dev, 0x42, r); dev 493 arch/x86/pci/fixup.c dev->resource[0].flags |= IORESOURCE_PCI_FIXED; dev 506 arch/x86/pci/fixup.c dev->cfg_size = pci_cfg_space_size_ext(dev); dev 530 arch/x86/pci/fixup.c pci_read_config_byte(dev, 0x08, &val); dev 44 arch/x86/pci/i386.c !(dev->bus->bridge_ctl & PCI_BRIDGE_CTL_ISA)) dev 66 arch/x86/pci/i386.c struct pci_dev *dev = data; dev 71 arch/x86/pci/i386.c if (skip_isa_ioresource_align(dev)) dev 117 arch/x86/pci/i386.c struct pci_dev *dev; dev 123 arch/x86/pci/i386.c if ((dev = bus->self)) { dev 126 arch/x86/pci/i386.c r = &dev->resource[idx]; dev 129 arch/x86/pci/i386.c pr = pci_find_parent_resource(dev, r); dev 132 arch/x86/pci/i386.c dev_err(&dev->dev, "BAR %d: can't allocate resource\n", idx); dev 149 arch/x86/pci/i386.c struct pci_dev *dev = NULL; dev 154 arch/x86/pci/i386.c for_each_pci_dev(dev) { dev 155 arch/x86/pci/i386.c pci_read_config_word(dev, PCI_COMMAND, &command); dev 157 arch/x86/pci/i386.c r = &dev->resource[idx]; dev 167 arch/x86/pci/i386.c dev_dbg(&dev->dev, "resource %#08llx-%#08llx (f=%lx, d=%d, p=%d)\n", dev 171 arch/x86/pci/i386.c pr = pci_find_parent_resource(dev, r); dev 173 arch/x86/pci/i386.c dev_err(&dev->dev, "BAR %d: can't allocate resource\n", idx); dev 181 arch/x86/pci/i386.c r = &dev->resource[PCI_ROM_RESOURCE]; dev 186 arch/x86/pci/i386.c dev_dbg(&dev->dev, "disabling ROM\n"); dev 188 arch/x86/pci/i386.c pci_read_config_dword(dev, dev 189 arch/x86/pci/i386.c dev->rom_base_reg, ®); dev 190 arch/x86/pci/i386.c pci_write_config_dword(dev, dev->rom_base_reg, dev 199 arch/x86/pci/i386.c struct pci_dev *dev = NULL; dev 208 arch/x86/pci/i386.c for_each_pci_dev(dev) { dev 209 arch/x86/pci/i386.c r = &dev->resource[PCI_ROM_RESOURCE]; dev 212 arch/x86/pci/i386.c pr = pci_find_parent_resource(dev, r); dev 250 arch/x86/pci/i386.c pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat); dev 257 arch/x86/pci/i386.c dev_printk(KERN_DEBUG, &dev->dev, "setting latency timer to %d\n", lat); dev 258 arch/x86/pci/i386.c pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat); dev 47 arch/x86/pci/irq.c int (*get)(struct pci_dev *router, struct pci_dev *dev, int pirq); dev 48 arch/x86/pci/irq.c int (*set)(struct pci_dev *router, struct pci_dev *dev, int pirq, dev 57 arch/x86/pci/irq.c int (*pcibios_enable_irq)(struct pci_dev *dev) = NULL; dev 58 arch/x86/pci/irq.c void (*pcibios_disable_irq)(struct pci_dev *dev) = NULL; dev 439 arch/x86/pci/irq.c dev_info(&dev->dev, "VLSI router PIRQ escape (%d)\n", pirq); dev 449 arch/x86/pci/irq.c dev_info(&dev->dev, "VLSI router PIRQ escape (%d)\n", pirq); dev 495 arch/x86/pci/irq.c dev_info(&dev->dev, dev 497 arch/x86/pci/irq.c dev->vendor, dev->device, pirq, irq); dev 503 arch/x86/pci/irq.c dev_info(&dev->dev, dev 505 arch/x86/pci/irq.c dev->vendor, dev->device, pirq, irq); dev 536 arch/x86/pci/irq.c int pin = pci_get_interrupt_pin(dev, &bridge); dev 846 arch/x86/pci/irq.c dev_info(&pirq_router_dev->dev, "%s IRQ router [%04x/%04x]\n", dev 861 arch/x86/pci/irq.c if (info->bus == dev->bus->number && dev 862 arch/x86/pci/irq.c PCI_SLOT(info->devfn) == PCI_SLOT(dev->devfn)) dev 879 arch/x86/pci/irq.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); dev 881 arch/x86/pci/irq.c dev_dbg(&dev->dev, "no interrupt pin\n"); dev 891 arch/x86/pci/irq.c info = pirq_get_info(dev); dev 893 arch/x86/pci/irq.c dev_dbg(&dev->dev, "PCI INT %c not found in routing table\n", dev 900 arch/x86/pci/irq.c dev_dbg(&dev->dev, "PCI INT %c not routed\n", 'A' + pin); dev 903 arch/x86/pci/irq.c dev_dbg(&dev->dev, "PCI INT %c -> PIRQ %02x, mask %04x, excl %04x", dev 910 arch/x86/pci/irq.c if (broken_hp_bios_irq9 && pirq == 0x59 && dev->irq == 9) { dev 911 arch/x86/pci/irq.c dev->irq = 11; dev 912 arch/x86/pci/irq.c pci_write_config_byte(dev, PCI_INTERRUPT_LINE, 11); dev 913 arch/x86/pci/irq.c r->set(pirq_router_dev, dev, pirq, 11); dev 917 arch/x86/pci/irq.c if (acer_tm360_irqrouting && dev->irq == 11 && dev 918 arch/x86/pci/irq.c dev->vendor == PCI_VENDOR_ID_O2) { dev 921 arch/x86/pci/irq.c dev->irq = r->get(pirq_router_dev, dev, pirq); dev 922 arch/x86/pci/irq.c pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq); dev 929 arch/x86/pci/irq.c newirq = dev->irq; dev 934 arch/x86/pci/irq.c dev_warn(&dev->dev, "IRQ %d doesn't match PIRQ mask " dev 946 arch/x86/pci/irq.c dev_dbg(&dev->dev, "PCI INT %c -> newirq %d", 'A' + pin, newirq); dev 952 arch/x86/pci/irq.c } else if (r->get && (irq = r->get(pirq_router_dev, dev, pirq)) && \ dev 957 arch/x86/pci/irq.c (dev->class >> 8) != PCI_CLASS_DISPLAY_VGA) { dev 958 arch/x86/pci/irq.c if (r->set(pirq_router_dev, dev, pirq, newirq)) { dev 970 arch/x86/pci/irq.c dev_dbg(&dev->dev, "can't route interrupt\n"); dev 974 arch/x86/pci/irq.c dev_info(&dev->dev, "%s PCI INT %c -> IRQ %d\n", msg, 'A' + pin, irq); dev 994 arch/x86/pci/irq.c dev_info(&dev2->dev, "IRQ routing conflict: " dev 1002 arch/x86/pci/irq.c if (dev != dev2) dev 1003 arch/x86/pci/irq.c dev_info(&dev->dev, "sharing IRQ %d with %s\n", dev 1012 arch/x86/pci/irq.c struct pci_dev *dev = NULL; dev 1016 arch/x86/pci/irq.c while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { dev 1022 arch/x86/pci/irq.c if (dev->irq >= 16) { dev 1023 arch/x86/pci/irq.c dev_dbg(&dev->dev, "ignoring bogus IRQ %d\n", dev->irq); dev 1024 arch/x86/pci/irq.c dev->irq = 0; dev 1030 arch/x86/pci/irq.c if (pirq_penalty[dev->irq] >= 100 && dev 1031 arch/x86/pci/irq.c pirq_penalty[dev->irq] < 100000) dev 1032 arch/x86/pci/irq.c pirq_penalty[dev->irq] = 0; dev 1033 arch/x86/pci/irq.c pirq_penalty[dev->irq]++; dev 1036 arch/x86/pci/irq.c dev = NULL; dev 1037 arch/x86/pci/irq.c while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { dev 1038 arch/x86/pci/irq.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); dev 1053 arch/x86/pci/irq.c irq = IO_APIC_get_PCI_irq_vector(dev->bus->number, dev 1054 arch/x86/pci/irq.c PCI_SLOT(dev->devfn), pin); dev 1062 arch/x86/pci/irq.c if (irq < 0 && dev->bus->parent) { dev 1064 arch/x86/pci/irq.c struct pci_dev *bridge = dev->bus->self; dev 1067 arch/x86/pci/irq.c pin = (pin + PCI_SLOT(dev->devfn)) % 4; dev 1072 arch/x86/pci/irq.c dev_warn(&dev->dev, dev 1079 arch/x86/pci/irq.c dev_info(&dev->dev, dev 1083 arch/x86/pci/irq.c dev->irq = irq; dev 1090 arch/x86/pci/irq.c if (pin && !dev->irq) dev 1091 arch/x86/pci/irq.c pcibios_lookup_irq(dev, 0); dev 1213 arch/x86/pci/irq.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); dev 1214 arch/x86/pci/irq.c if (pin && !pcibios_lookup_irq(dev, 1) && !dev->irq) { dev 1222 arch/x86/pci/irq.c irq = IO_APIC_get_PCI_irq_vector(dev->bus->number, PCI_SLOT(dev->devfn), pin); dev 1229 arch/x86/pci/irq.c temp_dev = dev; dev 1230 arch/x86/pci/irq.c while (irq < 0 && dev->bus->parent) { /* go back to the bridge */ dev 1231 arch/x86/pci/irq.c struct pci_dev *bridge = dev->bus->self; dev 1233 arch/x86/pci/irq.c pin = (pin + PCI_SLOT(dev->devfn)) % 4; dev 1237 arch/x86/pci/irq.c dev_warn(&dev->dev, "using bridge %s " dev 1241 arch/x86/pci/irq.c dev = bridge; dev 1243 arch/x86/pci/irq.c dev = temp_dev; dev 1245 arch/x86/pci/irq.c dev_info(&dev->dev, "PCI->APIC IRQ transform: " dev 1247 arch/x86/pci/irq.c dev->irq = irq; dev 1260 arch/x86/pci/irq.c if (dev->class >> 8 == PCI_CLASS_STORAGE_IDE && dev 1261 arch/x86/pci/irq.c !(dev->class & 0x5)) dev 1264 arch/x86/pci/irq.c dev_warn(&dev->dev, "can't find IRQ for PCI INT %c%s\n", dev 134 arch/x86/pci/numaq_32.c dev_info(&d->dev, "searching for i450NX host bridges\n"); dev 140 arch/x86/pci/numaq_32.c dev_dbg(&d->dev, "i450NX PXB %d: %02x/%02x/%02x\n", dev 416 arch/x86/pci/pcbios.c "b" ((dev->bus->number << 8) | dev->devfn), dev 85 arch/x86/pci/pci.h extern int (*pcibios_enable_irq)(struct pci_dev *dev); dev 86 arch/x86/pci/pci.h extern void (*pcibios_disable_irq)(struct pci_dev *dev); dev 37 arch/x86/pci/visws.c while (dev->bus->self) { /* Move up the chain of bridges. */ dev 38 arch/x86/pci/visws.c pin = bridge_swizzle(pin, PCI_SLOT(dev->devfn)); dev 39 arch/x86/pci/visws.c dev = dev->bus->self; dev 43 arch/x86/pci/visws.c return PCI_SLOT(dev->devfn); dev 48 arch/x86/pci/visws.c int irq, bus = dev->bus->number; dev 86 arch/x86/pci/visws.c pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); dev 39 block/blk-timeout.c struct gendisk *disk = dev_to_disk(dev); dev 48 block/blk-timeout.c struct gendisk *disk = dev_to_disk(dev); dev 44 block/blktrace.c t->device = bt->dev; dev 168 block/blktrace.c t->device = bt->dev; dev 402 block/blktrace.c bt->dev = dev; dev 466 block/blktrace.c ret = do_blk_trace_setup(q, name, dev, &buts); dev 984 block/bsg.c dev_t dev; dev 1026 block/bsg.c dev = MKDEV(bsg_major, bcd->minor); dev 1027 block/bsg.c class_dev = device_create_drvdata(bsg_class, parent, dev, NULL, dev 519 block/genhd.c retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, dev 603 block/genhd.c struct device *dev; dev 606 block/genhd.c while ((dev = class_dev_iter_next(&iter))) { dev 607 block/genhd.c struct gendisk *disk = dev_to_disk(dev); dev 655 block/genhd.c struct device *dev; dev 664 block/genhd.c dev = class_dev_iter_next(iter); dev 665 block/genhd.c if (!dev) dev 669 block/genhd.c return dev_to_disk(dev); dev 674 block/genhd.c struct device *dev; dev 677 block/genhd.c dev = class_dev_iter_next(seqf->private); dev 678 block/genhd.c if (dev) dev 679 block/genhd.c return dev_to_disk(dev); dev 771 block/genhd.c struct gendisk *disk = dev_to_disk(dev); dev 779 block/genhd.c struct gendisk *disk = dev_to_disk(dev); dev 787 block/genhd.c struct gendisk *disk = dev_to_disk(dev); dev 796 block/genhd.c struct gendisk *disk = dev_to_disk(dev); dev 804 block/genhd.c struct gendisk *disk = dev_to_disk(dev); dev 928 block/genhd.c struct gendisk *disk = dev_to_disk(dev); dev 1031 block/genhd.c struct device *dev; dev 1034 block/genhd.c while ((dev = class_dev_iter_next(&iter))) { dev 1035 block/genhd.c struct gendisk *disk = dev_to_disk(dev); dev 1038 block/genhd.c if (strcmp(dev->bus_id, name)) dev 58 crypto/async_tx/async_memcpy.c dma_dest = dma_map_page(device->dev, dest, dest_offset, len, dev 61 crypto/async_tx/async_memcpy.c dma_src = dma_map_page(device->dev, src, src_offset, len, dev 58 crypto/async_tx/async_memset.c dma_dest = dma_map_page(device->dev, dest, offset, len, dev 56 crypto/async_tx/async_xor.c dma_dest = dma_map_page(dma->dev, dest, offset, len, DMA_FROM_DEVICE); dev 58 crypto/async_tx/async_xor.c dma_src[i] = dma_map_page(dma->dev, src_list[i], offset, dev 257 crypto/async_tx/async_xor.c dma_src[i] = dma_map_page(device->dev, src_list[i], dev 183 fs/9p/vfs_inode.c wstat->dev = ~0; dev 20 fs/afs/netdevices.c struct net_device *dev; dev 27 fs/afs/netdevices.c dev = __dev_getfirstbyhwtype(&init_net, ARPHRD_ETHER); dev 28 fs/afs/netdevices.c if (dev) { dev 29 fs/afs/netdevices.c memcpy(mac, dev->dev_addr, maclen); dev 44 fs/afs/netdevices.c struct net_device *dev; dev 51 fs/afs/netdevices.c for_each_netdev(&init_net, dev) { dev 52 fs/afs/netdevices.c if (dev->type == ARPHRD_LOOPBACK && !wantloopback) dev 54 fs/afs/netdevices.c idev = __in_dev_get_rtnl(dev); dev 60 fs/afs/netdevices.c bufs[n].mtu = dev->mtu; dev 82 fs/autofs4/autofs_i.h u32 dev; dev 156 fs/autofs4/waitq.c packet->dev = wq->dev; dev 392 fs/autofs4/waitq.c wq->dev = autofs4_get_dev(sbi); dev 355 fs/block_dev.c return MAJOR(dev)+MINOR(dev); dev 376 fs/block_dev.c inode = iget5_locked(bd_mnt->mnt_sb, hash(dev), dev 377 fs/block_dev.c bdev_test, bdev_set, &dev); dev 391 fs/block_dev.c inode->i_rdev = dev; dev 845 fs/block_dev.c struct block_device *bdev = bdget(dev); dev 239 fs/char_dev.c *dev = MKDEV(cd->major, cd->baseminor); dev 457 fs/char_dev.c p->dev = dev; dev 459 fs/char_dev.c return kobj_map(cdev_map, dev, count, NULL, exact_match, exact_lock, p); dev 464 fs/char_dev.c kobj_unmap(cdev_map, dev, count); dev 476 fs/char_dev.c cdev_unmap(p->dev, p->count); dev 535 fs/char_dev.c if (request_module("char-major-%d-%d", MAJOR(dev), MINOR(dev)) > 0) dev 537 fs/char_dev.c request_module("char-major-%d", MAJOR(dev)); dev 46 fs/debugfs/inode.c init_special_inode(inode, mode, dev); dev 77 fs/debugfs/inode.c inode = debugfs_get_inode(dir->i_sb, mode, dev); dev 556 fs/ecryptfs/inode.c rc = vfs_mknod(lower_dir_dentry->d_inode, lower_dentry, mode, dev); dev 333 fs/ext3/super.c bdev = open_by_devnum(dev, FMODE_READ|FMODE_WRITE); dev 340 fs/ext3/super.c __bdevname(dev, b), PTR_ERR(bdev)); dev 445 fs/ext4/super.c bdev = open_by_devnum(dev, FMODE_READ|FMODE_WRITE); dev 452 fs/ext4/super.c __bdevname(dev, b), PTR_ERR(bdev)); dev 120 fs/fuse/control.c sprintf(name, "%u", fc->dev); dev 760 fs/fuse/dir.c stat->dev = inode->i_sb->s_dev; dev 426 fs/fuse/fuse_i.h dev_t dev; dev 488 fs/fuse/inode.c fc->dev = sb->s_dev; dev 494 fs/fuse/inode.c MAJOR(fc->dev), MINOR(fc->dev)); dev 496 fs/fuse/inode.c err = bdi_register_dev(&fc->bdi, fc->dev); dev 786 fs/gfs2/inode.c di->di_major = cpu_to_be32(MAJOR(dev)); dev 787 fs/gfs2/inode.c di->di_minor = cpu_to_be32(MINOR(dev)); dev 844 fs/gfs2/inode.c init_dinode(dip, gl, inum, mode, uid, gid, generation, dev, bhp); dev 1012 fs/gfs2/inode.c error = make_dinode(dip, ghs[1].gh_gl, mode, &inum, &generation, dev, &bh); dev 572 fs/gfs2/ops_inode.c inode = gfs2_createi(ghs, &dentry->d_name, mode, dev); dev 135 fs/hfsplus/catalog.c file->permissions.dev = cpu_to_be32(HFSPLUS_I(inode).dev); dev 86 fs/hfsplus/dir.c linkid = be32_to_cpu(entry.file.permissions.dev); dev 104 fs/hfsplus/dir.c HFSPLUS_I(inode).dev = linkid; dev 288 fs/hfsplus/dir.c HFSPLUS_I(inode).dev = id; dev 173 fs/hfsplus/hfsplus_fs.h u32 dev; dev 69 fs/hfsplus/hfsplus_raw.h __be32 dev; dev 238 fs/hfsplus/inode.c perms->dev = cpu_to_be32(HFSPLUS_I(inode).dev); dev 415 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = 0; dev 446 fs/hfsplus/inode.c if (file->permissions.dev) dev 447 fs/hfsplus/inode.c inode->i_nlink = be32_to_cpu(file->permissions.dev); dev 456 fs/hfsplus/inode.c be32_to_cpu(file->permissions.dev)); dev 520 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = inode->i_nlink; dev 522 fs/hfsplus/inode.c HFSPLUS_I(inode).dev = kdev_t_to_nr(inode->i_rdev); dev 786 fs/hostfs/hostfs_kern.c init_special_inode(inode, mode, dev); dev 787 fs/hostfs/hostfs_kern.c err = do_mknod(name, mode, MAJOR(dev), MINOR(dev)); dev 518 fs/hugetlbfs/inode.c init_special_inode(inode, mode, dev); dev 556 fs/hugetlbfs/inode.c inode = hugetlbfs_get_inode(dir->i_sb, current->fsuid, gid, mode, dev); dev 107 fs/inotify_user.c struct inotify_device *dev; /* associated device */ dev 154 fs/inotify_user.c atomic_inc(&dev->count); dev 159 fs/inotify_user.c if (atomic_dec_and_test(&dev->count)) { dev 160 fs/inotify_user.c atomic_dec(&dev->user->inotify_devs); dev 161 fs/inotify_user.c free_uid(dev->user); dev 162 fs/inotify_user.c kfree(dev); dev 172 fs/inotify_user.c struct inotify_device *dev; dev 175 fs/inotify_user.c dev = watch->dev; dev 177 fs/inotify_user.c atomic_dec(&dev->user->inotify_watches); dev 178 fs/inotify_user.c put_inotify_dev(dev); dev 248 fs/inotify_user.c return list_entry(dev->events.next, struct inotify_kernel_event, list); dev 259 fs/inotify_user.c if (list_empty(&dev->events)) dev 261 fs/inotify_user.c return list_entry(dev->events.prev, struct inotify_kernel_event, list); dev 275 fs/inotify_user.c struct inotify_device *dev; dev 279 fs/inotify_user.c dev = watch->dev; dev 281 fs/inotify_user.c mutex_lock(&dev->ev_mutex); dev 290 fs/inotify_user.c last = inotify_dev_get_last_event(dev); dev 302 fs/inotify_user.c if (unlikely(dev->event_count > dev->max_events)) dev 306 fs/inotify_user.c if (unlikely(dev->event_count == dev->max_events)) dev 315 fs/inotify_user.c dev->event_count++; dev 316 fs/inotify_user.c dev->queue_size += sizeof(struct inotify_event) + kevent->event.len; dev 317 fs/inotify_user.c list_add_tail(&kevent->list, &dev->events); dev 318 fs/inotify_user.c wake_up_interruptible(&dev->wq); dev 319 fs/inotify_user.c kill_fasync(&dev->fa, SIGIO, POLL_IN); dev 322 fs/inotify_user.c mutex_unlock(&dev->ev_mutex); dev 335 fs/inotify_user.c dev->event_count--; dev 336 fs/inotify_user.c dev->queue_size -= sizeof(struct inotify_event) + kevent->event.len; dev 355 fs/inotify_user.c if (!list_empty(&dev->events)) { dev 357 fs/inotify_user.c kevent = inotify_dev_get_event(dev); dev 358 fs/inotify_user.c remove_kevent(dev, kevent); dev 392 fs/inotify_user.c if (atomic_read(&dev->user->inotify_watches) >= dev 401 fs/inotify_user.c get_inotify_dev(dev); dev 402 fs/inotify_user.c watch->dev = dev; dev 404 fs/inotify_user.c atomic_inc(&dev->user->inotify_watches); dev 407 fs/inotify_user.c ret = inotify_add_watch(dev->ih, &watch->wdata, inode, mask); dev 418 fs/inotify_user.c struct inotify_device *dev = file->private_data; dev 421 fs/inotify_user.c poll_wait(file, &dev->wq, wait); dev 422 fs/inotify_user.c mutex_lock(&dev->ev_mutex); dev 423 fs/inotify_user.c if (!list_empty(&dev->events)) dev 425 fs/inotify_user.c mutex_unlock(&dev->ev_mutex); dev 434 fs/inotify_user.c struct inotify_device *dev; dev 440 fs/inotify_user.c dev = file->private_data; dev 444 fs/inotify_user.c prepare_to_wait(&dev->wq, &wait, TASK_INTERRUPTIBLE); dev 446 fs/inotify_user.c mutex_lock(&dev->ev_mutex); dev 447 fs/inotify_user.c if (!list_empty(&dev->events)) { dev 451 fs/inotify_user.c mutex_unlock(&dev->ev_mutex); dev 466 fs/inotify_user.c finish_wait(&dev->wq, &wait); dev 474 fs/inotify_user.c if (list_empty(&dev->events)) dev 477 fs/inotify_user.c kevent = inotify_dev_get_event(dev); dev 488 fs/inotify_user.c remove_kevent(dev, kevent); dev 494 fs/inotify_user.c mutex_unlock(&dev->ev_mutex); dev 514 fs/inotify_user.c mutex_lock(&dev->ev_mutex); dev 516 fs/inotify_user.c mutex_unlock(&dev->ev_mutex); dev 523 fs/inotify_user.c struct inotify_device *dev = file->private_data; dev 525 fs/inotify_user.c return fasync_helper(fd, file, on, &dev->fa) >= 0 ? 0 : -EIO; dev 530 fs/inotify_user.c struct inotify_device *dev = file->private_data; dev 532 fs/inotify_user.c inotify_destroy(dev->ih); dev 535 fs/inotify_user.c mutex_lock(&dev->ev_mutex); dev 536 fs/inotify_user.c while (!list_empty(&dev->events)) dev 537 fs/inotify_user.c inotify_dev_event_dequeue(dev); dev 538 fs/inotify_user.c mutex_unlock(&dev->ev_mutex); dev 544 fs/inotify_user.c put_inotify_dev(dev); dev 552 fs/inotify_user.c struct inotify_device *dev; dev 556 fs/inotify_user.c dev = file->private_data; dev 561 fs/inotify_user.c ret = put_user(dev->queue_size, (int __user *) p); dev 584 fs/inotify_user.c struct inotify_device *dev; dev 614 fs/inotify_user.c dev = kmalloc(sizeof(struct inotify_device), GFP_KERNEL); dev 615 fs/inotify_user.c if (unlikely(!dev)) { dev 625 fs/inotify_user.c dev->ih = ih; dev 626 fs/inotify_user.c dev->fa = NULL; dev 634 fs/inotify_user.c filp->private_data = dev; dev 636 fs/inotify_user.c INIT_LIST_HEAD(&dev->events); dev 637 fs/inotify_user.c init_waitqueue_head(&dev->wq); dev 638 fs/inotify_user.c mutex_init(&dev->ev_mutex); dev 639 fs/inotify_user.c mutex_init(&dev->up_mutex); dev 640 fs/inotify_user.c dev->event_count = 0; dev 641 fs/inotify_user.c dev->queue_size = 0; dev 642 fs/inotify_user.c dev->max_events = inotify_max_queued_events; dev 643 fs/inotify_user.c dev->user = user; dev 644 fs/inotify_user.c atomic_set(&dev->count, 0); dev 646 fs/inotify_user.c get_inotify_dev(dev); dev 652 fs/inotify_user.c kfree(dev); dev 669 fs/inotify_user.c struct inotify_device *dev; dev 696 fs/inotify_user.c dev = filp->private_data; dev 698 fs/inotify_user.c mutex_lock(&dev->up_mutex); dev 699 fs/inotify_user.c ret = inotify_find_update_watch(dev->ih, inode, mask); dev 701 fs/inotify_user.c ret = create_watch(dev, inode, mask); dev 702 fs/inotify_user.c mutex_unlock(&dev->up_mutex); dev 713 fs/inotify_user.c struct inotify_device *dev; dev 726 fs/inotify_user.c dev = filp->private_data; dev 729 fs/inotify_user.c ret = inotify_rm_wd(dev->ih, wd); dev 640 fs/jffs2/dir.c union jffs2_device_node dev; dev 655 fs/jffs2/dir.c devlen = jffs2_encode_dev(&dev, rdev); dev 686 fs/jffs2/dir.c ri->data_crc = cpu_to_je32(crc32(0, &dev, devlen)); dev 689 fs/jffs2/dir.c fn = jffs2_write_dnode(c, f, ri, (char *)&dev, devlen, ALLOC_NORMAL); dev 33 fs/jffs2/fs.c union jffs2_device_node dev; dev 50 fs/jffs2/fs.c mdatalen = jffs2_encode_dev(&dev, inode->i_rdev); dev 51 fs/jffs2/fs.c mdata = (char *)&dev; dev 702 fs/jffs2/gc.c union jffs2_device_node dev; dev 710 fs/jffs2/gc.c mdatalen = jffs2_encode_dev(&dev, JFFS2_F_I_RDEV(f)); dev 711 fs/jffs2/gc.c mdata = (char *)&dev; dev 3113 fs/jfs/jfs_imap.c jfs_ip->dev = le32_to_cpu(dip->di_rdev); dev 3114 fs/jfs/jfs_imap.c ip->i_rdev = new_decode_dev(jfs_ip->dev); dev 3186 fs/jfs/jfs_imap.c dip->di_rdev = cpu_to_le32(jfs_ip->dev); dev 100 fs/jfs/jfs_incore.h u32 dev; /* will die when we get wide dev_t */ dev 1399 fs/jfs/namei.c jfs_ip->dev = new_encode_dev(rdev); dev 1961 fs/namei.c error = devcgroup_inode_mknod(mode, dev); dev 1965 fs/namei.c error = security_inode_mknod(dir, dentry, mode, dev); dev 1970 fs/namei.c error = dir->i_op->mknod(dir, dentry, mode, dev); dev 2027 fs/namei.c new_decode_dev(dev)); dev 2046 fs/namei.c return sys_mknodat(AT_FDCWD, filename, mode, dev); dev 1473 fs/nfs/client.c char dev[8], fsid[17]; dev 1484 fs/nfs/client.c snprintf(dev, 8, "%u:%u", dev 1495 fs/nfs/client.c dev, dev 746 fs/nfs/super.c struct net_device *dev; dev 748 fs/nfs/super.c dev = dev_get_by_name(&init_net, p); dev 749 fs/nfs/super.c if (dev != NULL) { dev 750 fs/nfs/super.c scope_id = dev->ifindex; dev 751 fs/nfs/super.c dev_put(dev); dev 837 fs/nfsd/export.c if (old_valid_dev(dev)) { dev 838 fs/nfsd/export.c mk_fsid(FSID_DEV, fsidv, dev, ino, 0, NULL); dev 841 fs/nfsd/export.c mk_fsid(FSID_ENCODE_DEV, fsidv, dev, ino, 0, NULL); dev 968 fs/nfsd/export.c dev_t dev = inode->i_sb->s_dev; dev 970 fs/nfsd/export.c if (old_valid_dev(dev)) { dev 971 fs/nfsd/export.c mk_fsid(FSID_DEV, fsid, dev, inode->i_ino, 0, NULL); dev 974 fs/nfsd/export.c mk_fsid(FSID_ENCODE_DEV, fsid, dev, inode->i_ino, 0, NULL); dev 1559 fs/nfsd/nfs4xdr.c WRITE32(MAJOR(stat.dev)); dev 1561 fs/nfsd/nfs4xdr.c WRITE32(MINOR(stat.dev)); dev 181 fs/nfsd/nfsxdr.c *p++ = htonl(new_encode_dev(stat->dev)); dev 796 fs/nfsd/vfs.c hash = jhash_2words(dev, ino, 0xfeedbeef) & RAPARM_HASH_MASK; dev 801 fs/nfsd/vfs.c if (ra->p_ino == ino && ra->p_dev == dev) dev 814 fs/nfsd/vfs.c ra->p_dev = dev; dev 206 fs/ocfs2/namei.c (unsigned long)dev, dentry->d_name.len, dev 272 fs/ocfs2/namei.c status = ocfs2_mknod_locked(osb, dir, dentry, mode, dev, dev 367 fs/ocfs2/namei.c (unsigned long)dev, dentry->d_name.len, dev 433 fs/ocfs2/namei.c fe->id1.dev1.i_rdev = cpu_to_le64(huge_encode_dev(dev)); dev 150 fs/partitions/check.c MAJOR(dev), MINOR(dev)); dev 201 fs/partitions/check.c struct hd_struct *p = dev_to_part(dev); dev 209 fs/partitions/check.c struct hd_struct *p = dev_to_part(dev); dev 216 fs/partitions/check.c struct hd_struct *p = dev_to_part(dev); dev 244 fs/partitions/check.c struct hd_struct *p = dev_to_part(dev); dev 253 fs/partitions/check.c struct hd_struct *p = dev_to_part(dev); dev 292 fs/partitions/check.c struct hd_struct *p = dev_to_part(dev); dev 42 fs/proc/nommu.c dev_t dev = 0; dev 50 fs/proc/nommu.c dev = inode->i_sb->s_dev; dev 63 fs/proc/nommu.c MAJOR(dev), MINOR(dev), ino, &len); dev 210 fs/proc/task_mmu.c dev_t dev = 0; dev 215 fs/proc/task_mmu.c dev = inode->i_sb->s_dev; dev 227 fs/proc/task_mmu.c MAJOR(dev), MINOR(dev), ino, &len); dev 67 fs/ramfs/inode.c init_special_inode(inode, mode, dev); dev 95 fs/ramfs/inode.c struct inode * inode = ramfs_get_inode(dir->i_sb, mode, dev); dev 2318 fs/reiserfs/journal.c bh = __getblk(dev, block, bufsize); dev 2328 fs/reiserfs/journal.c bh = __getblk(dev, block + i, bufsize); dev 673 fs/smbfs/dir.c if (!new_valid_dev(dev)) dev 677 fs/smbfs/dir.c error = smb_proc_setattr_unix(dentry, &attr, MAJOR(dev), MINOR(dev)); dev 23 fs/stat.c stat->dev = inode->i_sb->s_dev; dev 133 fs/stat.c tmp.st_dev = old_encode_dev(stat->dev); dev 193 fs/stat.c if (!old_valid_dev(stat->dev) || !old_valid_dev(stat->rdev)) dev 196 fs/stat.c if (!new_valid_dev(stat->dev) || !new_valid_dev(stat->rdev)) dev 202 fs/stat.c tmp.st_dev = old_encode_dev(stat->dev); dev 204 fs/stat.c tmp.st_dev = new_encode_dev(stat->dev); dev 338 fs/stat.c if (!new_valid_dev(stat->dev) || !new_valid_dev(stat->rdev)) dev 340 fs/stat.c tmp.st_dev = new_encode_dev(stat->dev); dev 343 fs/stat.c tmp.st_dev = huge_encode_dev(stat->dev); dev 520 fs/super.c if (sb->s_dev == dev) { dev 544 fs/super.c s = user_get_super(new_decode_dev(dev)); dev 690 fs/super.c int dev; dev 697 fs/super.c error = idr_get_new(&unnamed_dev_idr, NULL, &dev); dev 705 fs/super.c if ((dev & MAX_ID_MASK) == (1 << MINORBITS)) { dev 707 fs/super.c idr_remove(&unnamed_dev_idr, dev); dev 711 fs/super.c s->s_dev = MKDEV(0, dev & MINORMASK); dev 777 fs/ubifs/dir.c union ubifs_dev_desc *dev = NULL; dev 796 fs/ubifs/dir.c dev = kmalloc(sizeof(union ubifs_dev_desc), GFP_NOFS); dev 797 fs/ubifs/dir.c if (!dev) dev 799 fs/ubifs/dir.c devlen = ubifs_encode_dev(dev, rdev); dev 804 fs/ubifs/dir.c kfree(dev); dev 810 fs/ubifs/dir.c kfree(dev); dev 818 fs/ubifs/dir.c ui->data = dev; dev 1161 fs/ubifs/dir.c stat->dev = inode->i_sb->s_dev; dev 213 fs/ubifs/misc.h dev->new = cpu_to_le32(new_encode_dev(rdev)); dev 214 fs/ubifs/misc.h return sizeof(dev->new); dev 216 fs/ubifs/misc.h dev->huge = cpu_to_le64(huge_encode_dev(rdev)); dev 217 fs/ubifs/misc.h return sizeof(dev->huge); dev 198 fs/ubifs/super.c union ubifs_dev_desc *dev; dev 206 fs/ubifs/super.c dev = (union ubifs_dev_desc *)ino->data; dev 207 fs/ubifs/super.c if (ui->data_len == sizeof(dev->new)) dev 208 fs/ubifs/super.c rdev = new_decode_dev(le32_to_cpu(dev->new)); dev 209 fs/ubifs/super.c else if (ui->data_len == sizeof(dev->huge)) dev 210 fs/ubifs/super.c rdev = huge_decode_dev(le64_to_cpu(dev->huge)); dev 1603 fs/ubifs/super.c int dev, vol; dev 1616 fs/ubifs/super.c dev = simple_strtoul(name + 3, &endptr, 0); dev 1620 fs/ubifs/super.c return ubi_open_volume(0, dev, mode); dev 1627 fs/ubifs/super.c return ubi_open_volume(dev, vol, mode); dev 1632 fs/ubifs/super.c return ubi_open_volume_nm(dev, ++endptr, mode); dev 1759 fs/ubifs/super.c dev_t *dev = data; dev 1761 fs/ubifs/super.c return sb->s_dev == *dev; dev 1766 fs/ubifs/super.c dev_t *dev = data; dev 1768 fs/ubifs/super.c sb->s_dev = *dev; dev 189 fs/ufs/util.c dev_t dev; dev 200 fs/ufs/util.c dev = old_decode_dev(fs32 & 0x7fff); dev 202 fs/ufs/util.c dev = MKDEV(sysv_major(fs32), sysv_minor(fs32)); dev 206 fs/ufs/util.c dev = old_decode_dev(fs32); dev 209 fs/ufs/util.c return dev; dev 220 fs/ufs/util.c fs32 = sysv_encode_dev(dev); dev 222 fs/ufs/util.c fs32 = old_encode_dev(dev); dev 227 fs/ufs/util.c fs32 = old_encode_dev(dev); dev 556 fs/xfs/linux-2.6/xfs_iops.c stat->dev = inode->i_sb->s_dev; dev 298 include/acpi/acpi_bus.h struct device dev; dev 304 include/acpi/acpi_bus.h #define to_acpi_device(d) container_of(d, struct acpi_device, dev) dev 379 include/acpi/acpi_bus.h #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) dev 354 include/acpi/actbl1.h u8 dev; dev 83 include/acpi/processor.h struct cpuidle_device dev; dev 147 include/asm-cris/dma-mapping.h if(!dev->dma_mask || !dma_supported(dev, mask)) dev 150 include/asm-cris/dma-mapping.h *dev->dma_mask = mask; dev 151 include/asm-frv/dma-mapping.h if (!dev->dma_mask || !dma_supported(dev, mask)) dev 154 include/asm-frv/dma-mapping.h *dev->dma_mask = mask; dev 22 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 24 include/asm-generic/dma-mapping.h return pci_dma_supported(to_pci_dev(dev), mask); dev 30 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 32 include/asm-generic/dma-mapping.h return pci_set_dma_mask(to_pci_dev(dev), dma_mask); dev 39 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 41 include/asm-generic/dma-mapping.h return pci_alloc_consistent(to_pci_dev(dev), size, dma_handle); dev 48 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 50 include/asm-generic/dma-mapping.h pci_free_consistent(to_pci_dev(dev), size, cpu_addr, dma_handle); dev 57 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 59 include/asm-generic/dma-mapping.h return pci_map_single(to_pci_dev(dev), cpu_addr, size, (int)direction); dev 66 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 68 include/asm-generic/dma-mapping.h pci_unmap_single(to_pci_dev(dev), dma_addr, size, (int)direction); dev 76 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 78 include/asm-generic/dma-mapping.h return pci_map_page(to_pci_dev(dev), page, offset, size, (int)direction); dev 85 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 87 include/asm-generic/dma-mapping.h pci_unmap_page(to_pci_dev(dev), dma_address, size, (int)direction); dev 94 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 96 include/asm-generic/dma-mapping.h return pci_map_sg(to_pci_dev(dev), sg, nents, (int)direction); dev 103 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 105 include/asm-generic/dma-mapping.h pci_unmap_sg(to_pci_dev(dev), sg, nhwentries, (int)direction); dev 112 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 114 include/asm-generic/dma-mapping.h pci_dma_sync_single_for_cpu(to_pci_dev(dev), dma_handle, dev 122 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 124 include/asm-generic/dma-mapping.h pci_dma_sync_single_for_device(to_pci_dev(dev), dma_handle, dev 132 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 134 include/asm-generic/dma-mapping.h pci_dma_sync_sg_for_cpu(to_pci_dev(dev), sg, nelems, (int)direction); dev 141 include/asm-generic/dma-mapping.h BUG_ON(dev->bus != &pci_bus_type); dev 143 include/asm-generic/dma-mapping.h pci_dma_sync_sg_for_device(to_pci_dev(dev), sg, nelems, (int)direction); dev 149 include/asm-generic/dma-mapping.h return pci_dma_mapping_error(to_pci_dev(dev), dma_addr); dev 285 include/asm-generic/dma-mapping.h dma_sync_single_for_cpu(dev, dma_handle, offset+size, direction); dev 294 include/asm-generic/dma-mapping.h dma_sync_single_for_device(dev, dma_handle, offset+size, direction); dev 65 include/asm-generic/gpio.h struct device *dev; dev 15 include/asm-generic/pci-dma-compat.h return dma_supported(hwdev == NULL ? NULL : &hwdev->dev, mask); dev 22 include/asm-generic/pci-dma-compat.h return dma_alloc_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, dma_handle, GFP_ATOMIC); dev 29 include/asm-generic/pci-dma-compat.h dma_free_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, vaddr, dma_handle); dev 35 include/asm-generic/pci-dma-compat.h return dma_map_single(hwdev == NULL ? NULL : &hwdev->dev, ptr, size, (enum dma_data_direction)direction); dev 42 include/asm-generic/pci-dma-compat.h dma_unmap_single(hwdev == NULL ? NULL : &hwdev->dev, dma_addr, size, (enum dma_data_direction)direction); dev 49 include/asm-generic/pci-dma-compat.h return dma_map_page(hwdev == NULL ? NULL : &hwdev->dev, page, offset, size, (enum dma_data_direction)direction); dev 56 include/asm-generic/pci-dma-compat.h dma_unmap_page(hwdev == NULL ? NULL : &hwdev->dev, dma_address, size, (enum dma_data_direction)direction); dev 63 include/asm-generic/pci-dma-compat.h return dma_map_sg(hwdev == NULL ? NULL : &hwdev->dev, sg, nents, (enum dma_data_direction)direction); dev 70 include/asm-generic/pci-dma-compat.h dma_unmap_sg(hwdev == NULL ? NULL : &hwdev->dev, sg, nents, (enum dma_data_direction)direction); dev 77 include/asm-generic/pci-dma-compat.h dma_sync_single_for_cpu(hwdev == NULL ? NULL : &hwdev->dev, dma_handle, size, (enum dma_data_direction)direction); dev 84 include/asm-generic/pci-dma-compat.h dma_sync_single_for_device(hwdev == NULL ? NULL : &hwdev->dev, dma_handle, size, (enum dma_data_direction)direction); dev 91 include/asm-generic/pci-dma-compat.h dma_sync_sg_for_cpu(hwdev == NULL ? NULL : &hwdev->dev, sg, nelems, (enum dma_data_direction)direction); dev 98 include/asm-generic/pci-dma-compat.h dma_sync_sg_for_device(hwdev == NULL ? NULL : &hwdev->dev, sg, nelems, (enum dma_data_direction)direction); dev 104 include/asm-generic/pci-dma-compat.h return dma_mapping_error(&pdev->dev, dma_addr); dev 17 include/asm-generic/vmlinux.lds.h #define DEV_KEEP(sec) *(.dev##sec) dev 21 include/asm-generic/vmlinux.lds.h #define DEV_DISCARD(sec) *(.dev##sec) dev 37 include/asm-m68k/dma-mapping.h return dma_alloc_coherent(dev, size, handle, flag); dev 42 include/asm-m68k/dma-mapping.h dma_free_coherent(dev, size, addr, handle); dev 82 include/asm-m68k/dma-mapping.h dma_sync_single_for_device(dev, dma_handle, offset + size, direction); dev 100 include/asm-m68k/dma-mapping.h dma_sync_single_for_cpu(dev, dma_handle, offset + size, direction); dev 212 include/asm-mn10300/dma-mapping.h if (!dev->dma_mask || !dma_supported(dev, mask)) dev 215 include/asm-mn10300/dma-mapping.h *dev->dma_mask = mask; dev 10 include/asm-parisc/dma-mapping.h int (*dma_supported)(struct device *dev, u64 mask); dev 11 include/asm-parisc/dma-mapping.h void *(*alloc_consistent)(struct device *dev, size_t size, dma_addr_t *iova, gfp_t flag); dev 12 include/asm-parisc/dma-mapping.h void *(*alloc_noncoherent)(struct device *dev, size_t size, dma_addr_t *iova, gfp_t flag); dev 13 include/asm-parisc/dma-mapping.h void (*free_consistent)(struct device *dev, size_t size, void *vaddr, dma_addr_t iova); dev 14 include/asm-parisc/dma-mapping.h dma_addr_t (*map_single)(struct device *dev, void *addr, size_t size, enum dma_data_direction direction); dev 15 include/asm-parisc/dma-mapping.h void (*unmap_single)(struct device *dev, dma_addr_t iova, size_t size, enum dma_data_direction direction); dev 16 include/asm-parisc/dma-mapping.h int (*map_sg)(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction); dev 17 include/asm-parisc/dma-mapping.h void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nhwents, enum dma_data_direction direction); dev 18 include/asm-parisc/dma-mapping.h void (*dma_sync_single_for_cpu)(struct device *dev, dma_addr_t iova, unsigned long offset, size_t size, enum dma_data_direction direction); dev 19 include/asm-parisc/dma-mapping.h void (*dma_sync_single_for_device)(struct device *dev, dma_addr_t iova, unsigned long offset, size_t size, enum dma_data_direction direction); dev 20 include/asm-parisc/dma-mapping.h void (*dma_sync_sg_for_cpu)(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction); dev 21 include/asm-parisc/dma-mapping.h void (*dma_sync_sg_for_device)(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction); dev 53 include/asm-parisc/dma-mapping.h return hppa_dma_ops->alloc_consistent(dev, size, dma_handle, flag); dev 60 include/asm-parisc/dma-mapping.h return hppa_dma_ops->alloc_noncoherent(dev, size, dma_handle, flag); dev 67 include/asm-parisc/dma-mapping.h hppa_dma_ops->free_consistent(dev, size, vaddr, dma_handle); dev 74 include/asm-parisc/dma-mapping.h hppa_dma_ops->free_consistent(dev, size, vaddr, dma_handle); dev 81 include/asm-parisc/dma-mapping.h return hppa_dma_ops->map_single(dev, ptr, size, direction); dev 88 include/asm-parisc/dma-mapping.h hppa_dma_ops->unmap_single(dev, dma_addr, size, direction); dev 95 include/asm-parisc/dma-mapping.h return hppa_dma_ops->map_sg(dev, sg, nents, direction); dev 102 include/asm-parisc/dma-mapping.h hppa_dma_ops->unmap_sg(dev, sg, nhwentries, direction); dev 109 include/asm-parisc/dma-mapping.h return dma_map_single(dev, (page_address(page) + (offset)), size, direction); dev 116 include/asm-parisc/dma-mapping.h dma_unmap_single(dev, dma_address, size, direction); dev 125 include/asm-parisc/dma-mapping.h hppa_dma_ops->dma_sync_single_for_cpu(dev, dma_handle, 0, size, direction); dev 133 include/asm-parisc/dma-mapping.h hppa_dma_ops->dma_sync_single_for_device(dev, dma_handle, 0, size, direction); dev 142 include/asm-parisc/dma-mapping.h hppa_dma_ops->dma_sync_single_for_cpu(dev, dma_handle, offset, size, direction); dev 151 include/asm-parisc/dma-mapping.h hppa_dma_ops->dma_sync_single_for_device(dev, dma_handle, offset, size, direction); dev 159 include/asm-parisc/dma-mapping.h hppa_dma_ops->dma_sync_sg_for_cpu(dev, sg, nelems, direction); dev 167 include/asm-parisc/dma-mapping.h hppa_dma_ops->dma_sync_sg_for_device(dev, sg, nelems, direction); dev 173 include/asm-parisc/dma-mapping.h return hppa_dma_ops->dma_supported(dev, mask); dev 179 include/asm-parisc/dma-mapping.h if(!dev->dma_mask || !dma_supported(dev, mask)) dev 182 include/asm-parisc/dma-mapping.h *dev->dma_mask = mask; dev 211 include/asm-parisc/dma-mapping.h if(likely(dev->platform_data != NULL)) dev 212 include/asm-parisc/dma-mapping.h return dev->platform_data; dev 214 include/asm-parisc/dma-mapping.h for(otherdev = dev->parent; otherdev; dev 217 include/asm-parisc/dma-mapping.h dev->platform_data = otherdev->platform_data; dev 221 include/asm-parisc/dma-mapping.h BUG_ON(!dev->platform_data); dev 222 include/asm-parisc/dma-mapping.h return dev->platform_data; dev 225 include/asm-parisc/dma-mapping.h #define GET_IOC(dev) (HBA_DATA(parisc_walk_tree(dev))->iommu); dev 16 include/asm-parisc/ide.h #define ide_request_irq(irq,hand,flg,dev,id) request_irq((irq),(hand),(flg),(dev),(id)) dev 28 include/asm-parisc/parisc-device.h struct device dev; dev 35 include/asm-parisc/parisc-device.h int (*probe) (struct parisc_device *dev); /* New device discovered */ dev 36 include/asm-parisc/parisc-device.h int (*remove) (struct parisc_device *dev); dev 41 include/asm-parisc/parisc-device.h #define to_parisc_device(d) container_of(d, struct parisc_device, dev) dev 43 include/asm-parisc/parisc-device.h #define parisc_parent(d) to_parisc_device(d->dev.parent) dev 47 include/asm-parisc/parisc-device.h return d->dev.bus_id; dev 53 include/asm-parisc/parisc-device.h dev_set_drvdata(&d->dev, p); dev 59 include/asm-parisc/parisc-device.h return dev_get_drvdata(&d->dev); dev 43 include/asm-parisc/pci.h const struct parisc_device *dev; /* device from PA bus walk */ dev 107 include/asm-parisc/processor.h struct parisc_device *dev; dev 74 include/asm-parisc/ropes.h struct parisc_device *dev; /* dev found in bus walk */ dev 252 include/asm-x86/amd_iommu_types.h struct pci_dev *dev; dev 389 include/asm-x86/amd_iommu_types.h int dev = devid >> 3 & 0x1f; dev 392 include/asm-x86/amd_iommu_types.h printk("%02x:%02x.%x", bus, dev, fn); dev 47 include/asm-x86/calgary.h void (*handle_quirks)(struct iommu_table *tbl, struct pci_dev *dev); dev 20 include/asm-x86/dma-mapping.h int (*mapping_error)(struct device *dev, dev 22 include/asm-x86/dma-mapping.h void* (*alloc_coherent)(struct device *dev, size_t size, dev 24 include/asm-x86/dma-mapping.h void (*free_coherent)(struct device *dev, size_t size, dev 28 include/asm-x86/dma-mapping.h void (*unmap_single)(struct device *dev, dma_addr_t addr, dev 64 include/asm-x86/dma-mapping.h if (unlikely(!dev) || !dev->archdata.dma_ops) dev 67 include/asm-x86/dma-mapping.h return dev->archdata.dma_ops; dev 77 include/asm-x86/dma-mapping.h struct dma_mapping_ops *ops = get_dma_ops(dev); dev 79 include/asm-x86/dma-mapping.h return ops->mapping_error(dev, dma_addr); dev 109 include/asm-x86/dma-mapping.h struct dma_mapping_ops *ops = get_dma_ops(dev); dev 113 include/asm-x86/dma-mapping.h ops->unmap_single(dev, addr, size, direction); dev 217 include/asm-x86/dma-mapping.h struct dma_mapping_ops *ops = get_dma_ops(dev); dev 220 include/asm-x86/dma-mapping.h return ops->map_single(dev, page_to_phys(page) + offset, dev 227 include/asm-x86/dma-mapping.h dma_unmap_single(dev, addr, size, direction); dev 249 include/asm-x86/dma-mapping.h dma_mask = dev->coherent_dma_mask; dev 259 include/asm-x86/dma-mapping.h unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp); dev 271 include/asm-x86/dma-mapping.h struct dma_mapping_ops *ops = get_dma_ops(dev); dev 276 include/asm-x86/dma-mapping.h if (dma_alloc_from_coherent(dev, size, dma_handle, &memory)) dev 279 include/asm-x86/dma-mapping.h if (!dev) { dev 280 include/asm-x86/dma-mapping.h dev = &x86_dma_fallback_dev; dev 284 include/asm-x86/dma-mapping.h if (!is_device_dma_capable(dev)) dev 290 include/asm-x86/dma-mapping.h return ops->alloc_coherent(dev, size, dma_handle, dev 291 include/asm-x86/dma-mapping.h dma_alloc_coherent_gfp_flags(dev, gfp)); dev 297 include/asm-x86/dma-mapping.h struct dma_mapping_ops *ops = get_dma_ops(dev); dev 301 include/asm-x86/dma-mapping.h if (dma_release_from_coherent(dev, get_order(size), vaddr)) dev 305 include/asm-x86/dma-mapping.h ops->free_coherent(dev, size, vaddr, bus); dev 42 include/asm-x86/gart.h pci_write_config_dword(dev, AMD64_GARTTABLEBASE, tmp); dev 45 include/asm-x86/gart.h pci_read_config_dword(dev, AMD64_GARTAPERTURECTL, &ctl); dev 48 include/asm-x86/gart.h pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl); dev 20 include/asm-x86/pci_64.h extern int (*pci_config_read)(int seg, int bus, int dev, int fn, dev 22 include/asm-x86/pci_64.h extern int (*pci_config_write)(int seg, int bus, int dev, int fn, dev 156 include/asm-xtensa/dma-mapping.h if(!dev->dma_mask || !dma_supported(dev, mask)) dev 159 include/asm-xtensa/dma-mapping.h *dev->dma_mask = mask; dev 218 include/drm/drmP.h #define DRM_WAITCOUNT(dev,idx) DRM_BUFCOUNT(&dev->queuelist[idx]->waitlist) dev 240 include/drm/drmP.h if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || \ dev 241 include/drm/drmP.h dev->lock.file_priv != file_priv ) { \ dev 243 include/drm/drmP.h __func__, _DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ),\ dev 244 include/drm/drmP.h dev->lock.file_priv, file_priv ); \ dev 575 include/drm/drmP.h int (*dma_ioctl) (struct drm_device *dev, void *data, struct drm_file *file_priv); dev 578 include/drm/drmP.h int (*context_ctor) (struct drm_device *dev, int context); dev 579 include/drm/drmP.h int (*context_dtor) (struct drm_device *dev, int context); dev 580 include/drm/drmP.h int (*kernel_context_switch) (struct drm_device *dev, int old, dev 582 include/drm/drmP.h void (*kernel_context_switch_unlock) (struct drm_device *dev); dev 583 include/drm/drmP.h int (*vblank_wait) (struct drm_device *dev, unsigned int *sequence); dev 584 include/drm/drmP.h int (*vblank_wait2) (struct drm_device *dev, unsigned int *sequence); dev 585 include/drm/drmP.h int (*dri_library_name) (struct drm_device *dev, char *buf); dev 598 include/drm/drmP.h int (*device_is_agp) (struct drm_device *dev); dev 603 include/drm/drmP.h void (*irq_preinstall) (struct drm_device *dev); dev 604 include/drm/drmP.h void (*irq_postinstall) (struct drm_device *dev); dev 605 include/drm/drmP.h void (*irq_uninstall) (struct drm_device *dev); dev 606 include/drm/drmP.h void (*reclaim_buffers) (struct drm_device *dev, dev 608 include/drm/drmP.h void (*reclaim_buffers_locked) (struct drm_device *dev, dev 610 include/drm/drmP.h void (*reclaim_buffers_idlelocked) (struct drm_device *dev, dev 613 include/drm/drmP.h unsigned long (*get_reg_ofs) (struct drm_device *dev); dev 614 include/drm/drmP.h void (*set_version) (struct drm_device *dev, dev 643 include/drm/drmP.h struct drm_device *dev; dev 741 include/drm/drmP.h void (*locked_tasklet_func)(struct drm_device *dev); dev 779 include/drm/drmP.h return ((dev->driver->driver_features & feature) ? 1 : 0); dev 783 include/drm/drmP.h #define drm_get_pci_domain(dev) dev->hose->index dev 791 include/drm/drmP.h return drm_core_check_feature(dev, DRIVER_USE_AGP); dev 800 include/drm/drmP.h return drm_core_check_feature(dev, DRIVER_USE_MTRR); dev 1099 include/drm/drmP.h list_for_each_entry(_entry, &dev->maplist, head) dev 1107 include/drm/drmP.h if (dev->driver->device_is_agp != NULL) { dev 1108 include/drm/drmP.h int err = (*dev->driver->device_is_agp) (dev); dev 1115 include/drm/drmP.h return pci_find_capability(dev->pdev, PCI_CAP_ID_AGP); dev 1120 include/drm/drmP.h return pci_find_capability(dev->pdev, PCI_CAP_ID_EXP); dev 16 include/linux/amba/bus.h struct device dev; dev 39 include/linux/amba/bus.h #define amba_get_drvdata(d) dev_get_drvdata(&d->dev) dev 40 include/linux/amba/bus.h #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) dev 144 include/linux/amba/clcd.h struct amba_device *dev; dev 216 include/linux/amba/clcd.h if ((fb->dev->periphid & 0x000fffff) == 0x00041110) dev 163 include/linux/amba/serial.h void (*set_mctrl)(struct amba_device *dev, void __iomem *base, unsigned int mctrl); dev 94 include/linux/arcdevice.h dev->name , ## args) dev 195 include/linux/arcdevice.h void (*rx) (struct net_device * dev, int bufnum, dev 197 include/linux/arcdevice.h int (*build_header) (struct sk_buff * skb, struct net_device *dev, dev 201 include/linux/arcdevice.h int (*prepare_tx) (struct net_device * dev, struct archdr * pkt, int length, dev 203 include/linux/arcdevice.h int (*continue_tx) (struct net_device * dev, int bufnum); dev 204 include/linux/arcdevice.h int (*ack_tx) (struct net_device * dev, int acked); dev 306 include/linux/arcdevice.h void (*command) (struct net_device * dev, int cmd); dev 307 include/linux/arcdevice.h int (*status) (struct net_device * dev); dev 308 include/linux/arcdevice.h void (*intmask) (struct net_device * dev, int mask); dev 309 include/linux/arcdevice.h bool (*reset) (struct net_device * dev, bool really_reset); dev 310 include/linux/arcdevice.h void (*open) (struct net_device * dev); dev 311 include/linux/arcdevice.h void (*close) (struct net_device * dev); dev 313 include/linux/arcdevice.h void (*copy_to_card) (struct net_device * dev, int bufnum, int offset, dev 315 include/linux/arcdevice.h void (*copy_from_card) (struct net_device * dev, int bufnum, int offset, dev 323 include/linux/arcdevice.h #define ARCRESET(x) (lp->hw.reset(dev, (x))) dev 324 include/linux/arcdevice.h #define ACOMMAND(x) (lp->hw.command(dev, (x))) dev 325 include/linux/arcdevice.h #define ASTATUS() (lp->hw.status(dev)) dev 326 include/linux/arcdevice.h #define AINTMASK(x) (lp->hw.intmask(dev, (x))) dev 47 include/linux/atalk.h struct net_device *dev; dev 63 include/linux/atalk.h struct net_device *dev; dev 155 include/linux/atalk.h return dev->atalk_ptr; dev 296 include/linux/atmdev.h struct atm_dev *dev; /* device back pointer */ dev 378 include/linux/atmdev.h void (*dev_close)(struct atm_dev *dev); dev 381 include/linux/atmdev.h int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void __user *arg); dev 388 include/linux/atmdev.h void (*phy_put)(struct atm_dev *dev,unsigned char value, dev 390 include/linux/atmdev.h unsigned char (*phy_get)(struct atm_dev *dev,unsigned long addr); dev 392 include/linux/atmdev.h int (*proc_read)(struct atm_dev *dev,loff_t *pos,char *page); dev 397 include/linux/atmdev.h int (*start)(struct atm_dev *dev); dev 398 include/linux/atmdev.h int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void __user *arg); dev 399 include/linux/atmdev.h void (*interrupt)(struct atm_dev *dev); dev 400 include/linux/atmdev.h int (*stop)(struct atm_dev *dev); dev 454 include/linux/atmdev.h atomic_inc(&dev->refcnt); dev 460 include/linux/atmdev.h if (atomic_dec_and_test(&dev->refcnt)) { dev 461 include/linux/atmdev.h BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags)); dev 462 include/linux/atmdev.h if (dev->ops->dev_close) dev 463 include/linux/atmdev.h dev->ops->dev_close(dev); dev 464 include/linux/atmdev.h put_device(&dev->class_dev); dev 73 include/linux/auto_fs4.h __u32 dev; dev 59 include/linux/backing-dev.h struct device *dev; dev 73 include/linux/backlight.h struct device dev; dev 88 include/linux/backlight.h #define to_backlight_device(obj) container_of(obj, struct backlight_device, dev) dev 92 include/linux/backlight.h return dev_get_drvdata(&bl_dev->dev); dev 151 include/linux/blktrace_api.h u32 dev; dev 313 include/linux/blktrace_api.h r.device = cpu_to_be32(dev); dev 29 include/linux/can/core.h #define DNAME(dev) ((dev) ? (dev)->name : "any") dev 17 include/linux/cdev.h dev_t dev; dev 331 include/linux/coda.h cdev_t dev; dev 44 include/linux/cpuidle.h int (*enter) (struct cpuidle_device *dev, dev 112 include/linux/cpuidle.h return dev->last_residency; dev 163 include/linux/cpuidle.h int (*enable) (struct cpuidle_device *dev); dev 164 include/linux/cpuidle.h void (*disable) (struct cpuidle_device *dev); dev 166 include/linux/cpuidle.h int (*select) (struct cpuidle_device *dev); dev 167 include/linux/cpuidle.h void (*reflect) (struct cpuidle_device *dev); dev 57 include/linux/device.h int (*match)(struct device *dev, struct device_driver *drv); dev 58 include/linux/device.h int (*uevent)(struct device *dev, struct kobj_uevent_env *env); dev 59 include/linux/device.h int (*probe)(struct device *dev); dev 60 include/linux/device.h int (*remove)(struct device *dev); dev 61 include/linux/device.h void (*shutdown)(struct device *dev); dev 63 include/linux/device.h int (*suspend)(struct device *dev, pm_message_t state); dev 64 include/linux/device.h int (*suspend_late)(struct device *dev, pm_message_t state); dev 65 include/linux/device.h int (*resume_early)(struct device *dev); dev 66 include/linux/device.h int (*resume)(struct device *dev); dev 126 include/linux/device.h int (*probe) (struct device *dev); dev 127 include/linux/device.h int (*remove) (struct device *dev); dev 128 include/linux/device.h void (*shutdown) (struct device *dev); dev 129 include/linux/device.h int (*suspend) (struct device *dev, pm_message_t state); dev 130 include/linux/device.h int (*resume) (struct device *dev); dev 190 include/linux/device.h int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env); dev 193 include/linux/device.h void (*dev_release)(struct device *dev); dev 195 include/linux/device.h int (*suspend)(struct device *dev, pm_message_t state); dev 196 include/linux/device.h int (*resume)(struct device *dev); dev 285 include/linux/device.h int (*uevent)(struct device *dev, struct kobj_uevent_env *env); dev 286 include/linux/device.h void (*release)(struct device *dev); dev 288 include/linux/device.h int (*suspend)(struct device *dev, pm_message_t state); dev 289 include/linux/device.h int (*resume)(struct device *dev); dev 297 include/linux/device.h ssize_t (*show)(struct device *dev, struct device_attribute *attr, dev 299 include/linux/device.h ssize_t (*store)(struct device *dev, struct device_attribute *attr, dev 319 include/linux/device.h device_schedule_callback_owner(dev, func, THIS_MODULE) dev 416 include/linux/device.h void (*release)(struct device *dev); dev 425 include/linux/device.h return dev->bus_id; dev 434 include/linux/device.h return dev->numa_node; dev 438 include/linux/device.h dev->numa_node = node; dev 452 include/linux/device.h return dev->driver_data; dev 457 include/linux/device.h dev->driver_data = data; dev 462 include/linux/device.h return dev->kobj.state_in_sysfs; dev 514 include/linux/device.h extern int (*platform_notify)(struct device *dev); dev 516 include/linux/device.h extern int (*platform_notify_remove)(struct device *dev); dev 536 include/linux/device.h printk(level "%s %s: " format , dev_driver_string(dev) , \ dev 537 include/linux/device.h dev_name(dev) , ## arg) dev 540 include/linux/device.h dev_printk(KERN_EMERG , dev , format , ## arg) dev 542 include/linux/device.h dev_printk(KERN_ALERT , dev , format , ## arg) dev 544 include/linux/device.h dev_printk(KERN_CRIT , dev , format , ## arg) dev 546 include/linux/device.h dev_printk(KERN_ERR , dev , format , ## arg) dev 548 include/linux/device.h dev_printk(KERN_WARNING , dev , format , ## arg) dev 550 include/linux/device.h dev_printk(KERN_NOTICE , dev , format , ## arg) dev 552 include/linux/device.h dev_printk(KERN_INFO , dev , format , ## arg) dev 556 include/linux/device.h dev_printk(KERN_DEBUG , dev , format , ## arg) dev 559 include/linux/device.h ({ if (0) dev_printk(KERN_DEBUG, dev, format, ##arg); 0; }) dev 567 include/linux/device.h ({ if (0) dev_printk(KERN_DEBUG, dev, format, ##arg); 0; }) dev 49 include/linux/dio.h struct device dev; /* Generic device interface */ dev 55 include/linux/dio.h #define to_dio_dev(n) container_of(n, struct dio_dev, dev) dev 65 include/linux/dio.h struct device dev; dev 271 include/linux/dio.h return dev_get_drvdata(&d->dev); dev 276 include/linux/dio.h dev_set_drvdata(&d->dev, data); dev 45 include/linux/display.h struct device *dev; /* This is this display device */ dev 129 include/linux/dm-ioctl.h uint64_t dev; /* in/out */ dev 173 include/linux/dm-ioctl.h uint64_t dev[0]; /* out */ dev 180 include/linux/dm-ioctl.h uint64_t dev; dev 48 include/linux/dma-mapping.h return dev->dma_mask != NULL && *dev->dma_mask != DMA_MASK_NONE; dev 68 include/linux/dma-mapping.h if (dev && dev->dma_mask && *dev->dma_mask) dev 69 include/linux/dma-mapping.h return *dev->dma_mask; dev 77 include/linux/dma-mapping.h return dev->dma_parms ? dev->dma_parms->max_segment_size : 65536; dev 83 include/linux/dma-mapping.h if (dev->dma_parms) { dev 84 include/linux/dma-mapping.h dev->dma_parms->max_segment_size = size; dev 92 include/linux/dma-mapping.h return dev->dma_parms ? dev 93 include/linux/dma-mapping.h dev->dma_parms->segment_boundary_mask : 0xffffffff; dev 98 include/linux/dma-mapping.h if (dev->dma_parms) { dev 99 include/linux/dma-mapping.h dev->dma_parms->segment_boundary_mask = mask; dev 165 include/linux/dma-mapping.h dma_map_single(dev, cpu_addr, size, dir) dev 168 include/linux/dma-mapping.h dma_unmap_single(dev, dma_addr, size, dir) dev 171 include/linux/dma-mapping.h dma_map_sg(dev, sgl, nents, dir) dev 174 include/linux/dma-mapping.h dma_unmap_sg(dev, sgl, nents, dir) dev 153 include/linux/dmaengine.h struct device *dev; dev 193 include/linux/dmaengine.h struct device dev; dev 204 include/linux/dmaengine.h #define to_dma_chan(p) container_of(p, struct dma_chan, dev) dev 330 include/linux/dmaengine.h struct device *dev; dev 41 include/linux/eisa.h struct device dev; /* generic device */ dev 47 include/linux/eisa.h #define to_eisa_device(n) container_of(n, struct eisa_device, dev) dev 81 include/linux/eisa.h return edev->dev.driver_data; dev 86 include/linux/eisa.h edev->dev.driver_data = data; dev 93 include/linux/eisa.h struct device *dev; /* Pointer to bridge device */ dev 86 include/linux/enclosure.h struct device *dev; dev 107 include/linux/enclosure.h return container_of(dev, struct enclosure_device, edev); dev 113 include/linux/enclosure.h return container_of(dev, struct enclosure_component, cdev); dev 838 include/linux/fb.h struct device *dev; /* This is this fb device */ dev 47 include/linux/gameport.h struct device dev; dev 52 include/linux/gameport.h #define to_gameport_port(d) container_of(d, struct gameport, dev) dev 128 include/linux/gameport.h return dev_get_drvdata(&gameport->dev); dev 133 include/linux/gameport.h dev_set_drvdata(&gameport->dev, data); dev 33 include/linux/hdlc.h int (*open)(struct net_device *dev); dev 34 include/linux/hdlc.h void (*close)(struct net_device *dev); dev 35 include/linux/hdlc.h void (*start)(struct net_device *dev); /* if open & DCD */ dev 36 include/linux/hdlc.h void (*stop)(struct net_device *dev); /* if open & !DCD */ dev 37 include/linux/hdlc.h void (*detach)(struct net_device *dev); dev 38 include/linux/hdlc.h int (*ioctl)(struct net_device *dev, struct ifreq *ifr); dev 39 include/linux/hdlc.h __be16 (*type_trans)(struct sk_buff *skb, struct net_device *dev); dev 49 include/linux/hdlc.h int (*attach)(struct net_device *dev, dev 53 include/linux/hdlc.h int (*xmit)(struct sk_buff *skb, struct net_device *dev); dev 72 include/linux/hdlc.h #define register_hdlc_device(dev) register_netdev(dev) dev 83 include/linux/hdlc.h return dev->priv; dev 114 include/linux/hdlc.h hdlc_device *hdlc = dev_to_hdlc(dev); dev 116 include/linux/hdlc.h skb->dev = dev; dev 120 include/linux/hdlc.h return hdlc->proto->type_trans(skb, dev); dev 437 include/linux/hid.h struct device dev; /* device */ dev 472 include/linux/hid.h return dev_get_drvdata(&hdev->dev); dev 477 include/linux/hid.h dev_set_drvdata(&hdev->dev, data); dev 563 include/linux/hid.h int (*probe)(struct hid_device *dev, const struct hid_device_id *id); dev 564 include/linux/hid.h void (*remove)(struct hid_device *dev); dev 52 include/linux/hidraw.h struct device *dev; dev 289 include/linux/hp_sdc.h struct parisc_device *dev; dev 291 include/linux/hp_sdc.h void *dev; dev 211 include/linux/i2c.h struct device dev; /* the device structure */ dev 217 include/linux/i2c.h #define to_i2c_client(d) container_of(d, struct i2c_client, dev) dev 223 include/linux/i2c.h struct device * const dev = container_of(kobj, struct device, kobj); dev 224 include/linux/i2c.h return to_i2c_client(dev); dev 229 include/linux/i2c.h return dev_get_drvdata (&dev->dev); dev 234 include/linux/i2c.h dev_set_drvdata (&dev->dev, data); dev 363 include/linux/i2c.h struct device dev; /* the adapter device */ dev 370 include/linux/i2c.h #define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) dev 374 include/linux/i2c.h return dev_get_drvdata (&dev->dev); dev 379 include/linux/i2c.h dev_set_drvdata (&dev->dev, data); dev 760 include/linux/i2o.h dma_addr = dma_map_single(&c->pdev->dev, ptr, size, direction); dev 761 include/linux/i2o.h if (!dma_mapping_error(&c->pdev->dev, dma_addr)) { dev 814 include/linux/i2o.h sg_count = dma_map_sg(&c->pdev->dev, sg, sg_count, direction); dev 855 include/linux/i2o.h struct pci_dev *pdev = to_pci_dev(dev); dev 864 include/linux/i2o.h addr->virt = dma_alloc_coherent(dev, len, &addr->phys, gfp_mask); dev 890 include/linux/i2o.h dma_free_coherent(dev, addr->len, addr->virt, dev 914 include/linux/i2o.h i2o_dma_free(dev, addr); dev 917 include/linux/i2o.h return i2o_dma_alloc(dev, addr, len, gfp_mask); dev 1051 include/linux/i2o.h #define to_i2o_device(dev) container_of(dev, struct i2o_device, device) dev 1052 include/linux/i2o.h #define to_i2o_controller(dev) container_of(dev, struct i2o_controller, device) dev 195 include/linux/ide.h struct device *dev, *parent; dev 673 include/linux/ide.h #define to_ide_device(dev) container_of(dev, ide_drive_t, gendev) dev 784 include/linux/ide.h struct device *dev; dev 853 include/linux/ide.h struct device *dev[2]; dev 1612 include/linux/ide.h return hwif->dev ? dev_to_node(hwif->dev) : -1; dev 163 include/linux/if_arp.h return sizeof(struct arphdr) + (dev->addr_len + sizeof(u32)) * 2; dev 43 include/linux/if_eql.h struct net_device *dev; dev 46 include/linux/if_pppox.h char dev[IFNAMSIZ]; /* Local device to use */ dev 137 include/linux/if_pppox.h struct net_device *dev; /* device associated with socket*/ dev 156 include/linux/if_pppox.h #define pppoe_dev proto.pppoe.dev dev 105 include/linux/if_vlan.h array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev; dev 225 include/linux/if_vlan.h if (skb->dev->features & NETIF_F_HW_VLAN_TX) { dev 281 include/linux/if_vlan.h if (skb->dev->features & NETIF_F_HW_VLAN_TX) { dev 61 include/linux/ihex.h ret = request_firmware(&lfw, fw_name, dev); dev 66 include/linux/ihex.h dev_err(dev, "Firmware \"%s\" not valid IHEX records\n", dev 77 include/linux/inet_lro.h struct net_device *dev; dev 22 include/linux/inetdevice.h struct net_device *dev; dev 74 include/linux/inetdevice.h (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) && \ dev 77 include/linux/inetdevice.h (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) || \ dev 80 include/linux/inetdevice.h (max(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr), \ dev 170 include/linux/inetdevice.h struct in_device *in_dev = dev->ip_ptr; dev 182 include/linux/inetdevice.h in_dev = __in_dev_get_rcu(dev); dev 192 include/linux/inetdevice.h return (struct in_device*)dev->ip_ptr; dev 33 include/linux/input-polldev.h void (*flush)(struct input_polled_dev *dev); dev 34 include/linux/input-polldev.h void (*poll)(struct input_polled_dev *dev); dev 1052 include/linux/input.h int (*setkeycode)(struct input_dev *dev, int scancode, int keycode); dev 1053 include/linux/input.h int (*getkeycode)(struct input_dev *dev, int scancode, int *keycode); dev 1075 include/linux/input.h int (*open)(struct input_dev *dev); dev 1076 include/linux/input.h void (*close)(struct input_dev *dev); dev 1077 include/linux/input.h int (*flush)(struct input_dev *dev, struct file *file); dev 1078 include/linux/input.h int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value); dev 1088 include/linux/input.h struct device dev; dev 1093 include/linux/input.h #define to_input_dev(d) container_of(d, struct input_dev, dev) dev 1181 include/linux/input.h int (*connect)(struct input_handler *handler, struct input_dev *dev, const struct input_device_id *id); dev 1215 include/linux/input.h struct input_dev *dev; dev 1227 include/linux/input.h return dev ? to_input_dev(get_device(&dev->dev)) : NULL; dev 1232 include/linux/input.h if (dev) dev 1233 include/linux/input.h put_device(&dev->dev); dev 1238 include/linux/input.h return dev_get_drvdata(&dev->dev); dev 1243 include/linux/input.h dev_set_drvdata(&dev->dev, data); dev 1268 include/linux/input.h input_event(dev, EV_KEY, code, !!value); dev 1273 include/linux/input.h input_event(dev, EV_REL, code, value); dev 1278 include/linux/input.h input_event(dev, EV_ABS, code, value); dev 1283 include/linux/input.h input_event(dev, EV_FF_STATUS, code, value); dev 1288 include/linux/input.h input_event(dev, EV_SW, code, !!value); dev 1293 include/linux/input.h input_event(dev, EV_SYN, SYN_REPORT, 0); dev 1300 include/linux/input.h dev->absmin[axis] = min; dev 1301 include/linux/input.h dev->absmax[axis] = max; dev 1302 include/linux/input.h dev->absfuzz[axis] = fuzz; dev 1303 include/linux/input.h dev->absflat[axis] = flat; dev 1305 include/linux/input.h dev->absbit[BIT_WORD(axis)] |= BIT_MASK(axis); dev 1337 include/linux/input.h int (*upload)(struct input_dev *dev, struct ff_effect *effect, dev 1339 include/linux/input.h int (*erase)(struct input_dev *dev, int effect_id); dev 1341 include/linux/input.h int (*playback)(struct input_dev *dev, int effect_id, int value); dev 1342 include/linux/input.h void (*set_gain)(struct input_dev *dev, u16 gain); dev 1343 include/linux/input.h void (*set_autocenter)(struct input_dev *dev, u16 magnitude); dev 29 include/linux/ioport.h struct pci_dev *dev; dev 157 include/linux/ioport.h __devm_request_region(dev, &ioport_resource, (start), (n), (name)) dev 159 include/linux/ioport.h __devm_request_region(dev, &iomem_resource, (start), (n), (name)) dev 166 include/linux/ioport.h __devm_release_region(dev, &ioport_resource, (start), (n)) dev 168 include/linux/ioport.h __devm_release_region(dev, &iomem_resource, (start), (n)) dev 439 include/linux/ipmi.h void (*new_smi)(int if_num, struct device *dev); dev 142 include/linux/irda.h struct irda_device_info dev[1]; dev 379 include/linux/isdn.h struct net_device *dev; /* interface to upper levels */ dev 617 include/linux/isdn.h extern isdn_dev *dev; dev 7 include/linux/kdev_t.h #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) dev 8 include/linux/kdev_t.h #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK)) dev 12 include/linux/kdev_t.h sprintf((buffer), "%u:%u\n", MAJOR(dev), MINOR(dev)) dev 16 include/linux/kdev_t.h sprintf(buffer, "%u:%u", MAJOR(dev), MINOR(dev)); \ dev 23 include/linux/kdev_t.h return MAJOR(dev) < 256 && MINOR(dev) < 256; dev 28 include/linux/kdev_t.h return (MAJOR(dev) << 8) | MINOR(dev); dev 43 include/linux/kdev_t.h unsigned major = MAJOR(dev); dev 44 include/linux/kdev_t.h unsigned minor = MINOR(dev); dev 50 include/linux/kdev_t.h unsigned major = (dev & 0xfff00) >> 8; dev 51 include/linux/kdev_t.h unsigned minor = (dev & 0xff) | ((dev >> 12) & 0xfff00); dev 62 include/linux/kdev_t.h return new_encode_dev(dev); dev 67 include/linux/kdev_t.h return new_decode_dev(dev); dev 72 include/linux/kdev_t.h return MAJOR(dev) < (1<<14) && MINOR(dev) < (1<<18); dev 77 include/linux/kdev_t.h return MINOR(dev) | (MAJOR(dev) << 18); dev 82 include/linux/kdev_t.h return (dev >> 18) & 0x3fff; dev 87 include/linux/kdev_t.h return dev & 0x3ffff; dev 96 include/linux/kdev_t.h #define MAJOR(dev) ((dev)>>8) dev 97 include/linux/kdev_t.h #define MINOR(dev) ((dev) & 0xff) dev 27 include/linux/lapb.h void (*connect_confirmation)(struct net_device *dev, int reason); dev 28 include/linux/lapb.h void (*connect_indication)(struct net_device *dev, int reason); dev 29 include/linux/lapb.h void (*disconnect_confirmation)(struct net_device *dev, int reason); dev 30 include/linux/lapb.h void (*disconnect_indication)(struct net_device *dev, int reason); dev 31 include/linux/lapb.h int (*data_indication)(struct net_device *dev, struct sk_buff *skb); dev 32 include/linux/lapb.h void (*data_transmit)(struct net_device *dev, struct sk_buff *skb); dev 69 include/linux/lcd.h struct device dev; dev 84 include/linux/lcd.h #define to_lcd_device(obj) container_of(obj, struct lcd_device, dev) dev 88 include/linux/lcd.h return dev_get_drvdata(&ld_dev->dev); dev 49 include/linux/leds.h struct device *dev; dev 493 include/linux/libata.h struct device *dev; dev 508 include/linux/libata.h struct ata_device *dev; dev 611 include/linux/libata.h struct ata_device *dev; /* offending device */ dev 708 include/linux/libata.h struct device *dev; dev 761 include/linux/libata.h unsigned long (*mode_filter)(struct ata_device *dev, unsigned long xfer_mask); dev 762 include/linux/libata.h void (*set_piomode)(struct ata_port *ap, struct ata_device *dev); dev 763 include/linux/libata.h void (*set_dmamode)(struct ata_port *ap, struct ata_device *dev); dev 765 include/linux/libata.h unsigned int (*read_id)(struct ata_device *dev, struct ata_taskfile *tf, u16 *id); dev 767 include/linux/libata.h void (*dev_config)(struct ata_device *dev); dev 812 include/linux/libata.h unsigned int (*sff_data_xfer)(struct ata_device *dev, dev 826 include/linux/libata.h ssize_t (*sw_activity_show)(struct ata_device *dev, char *buf); dev 827 include/linux/libata.h ssize_t (*sw_activity_store)(struct ata_device *dev, dev 1191 include/linux/libata.h printk("%sata%u.%02u: "fmt, lv, (dev)->link->ap->print_id, \ dev 1192 include/linux/libata.h (dev)->link->pmp + (dev)->devno , ##args) dev 1253 include/linux/libata.h return ata_class_enabled(dev->class); dev 1258 include/linux/libata.h return ata_class_disabled(dev->class); dev 1263 include/linux/libata.h return ata_class_absent(dev->class); dev 1294 include/linux/libata.h for ((dev) = (link)->device; \ dev 1295 include/linux/libata.h (dev) < (link)->device + ata_link_max_devices(link) || ((dev) = NULL); \ dev 1296 include/linux/libata.h (dev)++) dev 1299 include/linux/libata.h for ((dev) = (link)->device + ata_link_max_devices(link) - 1; \ dev 1300 include/linux/libata.h (dev) >= (link)->device || ((dev) = NULL); (dev)--) dev 1314 include/linux/libata.h return (dev->flags & (ATA_DFLAG_PIO | ATA_DFLAG_NCQ_OFF | dev 1355 include/linux/libata.h tf->ctl = dev->link->ap->ctl; dev 1356 include/linux/libata.h if (dev->devno == 0) dev 1374 include/linux/libata.h ata_tf_init(qc->dev, &qc->tf); dev 1383 include/linux/libata.h return ata_id_wcache_enabled(dev->id) || dev 1384 include/linux/libata.h ata_id_has_flush(dev->id) || dev 1385 include/linux/libata.h ata_id_has_flush_ext(dev->id); dev 114 include/linux/lp.h #define LP_IRQ(minor) lp_table[(minor)].dev->port->irq /* interrupt # */ dev 121 include/linux/lp.h #define LP_BASE(x) lp_table[(x)].dev->port->base dev 135 include/linux/lp.h struct pardevice *dev; dev 85 include/linux/mISDNhw.h struct mISDNdevice dev; dev 252 include/linux/mISDNif.h unsigned char dev; dev 418 include/linux/mISDNif.h struct mISDNdevice *dev; dev 433 include/linux/mISDNif.h struct device dev; dev 438 include/linux/mISDNif.h struct mISDNdevice *dev; dev 33 include/linux/maple.h struct maple_device *dev; dev 60 include/linux/maple.h struct device dev; dev 79 include/linux/maple.h #define to_maple_dev(n) container_of(n, struct maple_device, dev) dev 82 include/linux/maple.h #define maple_get_drvdata(d) dev_get_drvdata(&(d)->dev) dev 83 include/linux/maple.h #define maple_set_drvdata(d,p) dev_set_drvdata(&(d)->dev, (p)) dev 31 include/linux/mc146818rtc.h void (*wake_on)(struct device *dev); dev 32 include/linux/mc146818rtc.h void (*wake_off)(struct device *dev); dev 69 include/linux/mca.h struct device dev; dev 72 include/linux/mca.h #define to_mca_device(mdev) container_of(mdev, struct mca_device, dev) dev 89 include/linux/mca.h struct device dev; dev 92 include/linux/mca.h #define to_mca_bus(mdev) container_of(mdev, struct mca_bus, dev) dev 272 include/linux/memstick.h struct device dev; dev 284 include/linux/memstick.h struct device dev; dev 339 include/linux/memstick.h return dev_get_drvdata(&card->dev); dev 344 include/linux/memstick.h dev_set_drvdata(&card->dev, data); dev 27 include/linux/mfd/core.h int (*enable)(struct platform_device *dev); dev 28 include/linux/mfd/core.h int (*disable)(struct platform_device *dev); dev 29 include/linux/mfd/core.h int (*suspend)(struct platform_device *dev); dev 30 include/linux/mfd/core.h int (*resume)(struct platform_device *dev); dev 18 include/linux/mfd/t7l66xb.h int (*enable_clk32k)(struct platform_device *dev); dev 19 include/linux/mfd/t7l66xb.h void (*disable_clk32k)(struct platform_device *dev); dev 20 include/linux/mfd/t7l66xb.h int (*enable)(struct platform_device *dev); dev 21 include/linux/mfd/t7l66xb.h int (*disable)(struct platform_device *dev); dev 22 include/linux/mfd/t7l66xb.h int (*suspend)(struct platform_device *dev); dev 23 include/linux/mfd/t7l66xb.h int (*resume)(struct platform_device *dev); dev 14 include/linux/mfd/tc6387xb.h int (*enable_clk32k)(struct platform_device *dev); dev 15 include/linux/mfd/tc6387xb.h void (*disable_clk32k)(struct platform_device *dev); dev 17 include/linux/mfd/tc6387xb.h int (*enable)(struct platform_device *dev); dev 18 include/linux/mfd/tc6387xb.h int (*disable)(struct platform_device *dev); dev 19 include/linux/mfd/tc6387xb.h int (*suspend)(struct platform_device *dev); dev 20 include/linux/mfd/tc6387xb.h int (*resume)(struct platform_device *dev); dev 27 include/linux/mfd/tc6393xb.h int (*enable)(struct platform_device *dev); dev 28 include/linux/mfd/tc6393xb.h int (*disable)(struct platform_device *dev); dev 29 include/linux/mfd/tc6393xb.h int (*suspend)(struct platform_device *dev); dev 30 include/linux/mfd/tc6393xb.h int (*resume)(struct platform_device *dev); dev 563 include/linux/mfd/wm8350/core.h struct device *dev; dev 31 include/linux/mfd/wm8400-private.h struct device *dev; dev 34 include/linux/mfd/wm8400.h int (*platform_init)(struct device *dev); dev 162 include/linux/mii.h struct net_device *dev; dev 163 include/linux/mii.h int (*mdio_read) (struct net_device *dev, int phy_id, int location); dev 164 include/linux/mii.h void (*mdio_write) (struct net_device *dev, int phy_id, int location, int val); dev 150 include/linux/mlx4/cmd.h return __mlx4_cmd(dev, in_param, NULL, 0, in_modifier, dev 159 include/linux/mlx4/cmd.h return __mlx4_cmd(dev, in_param, &out_param, 0, in_modifier, dev 172 include/linux/mlx4/cmd.h return __mlx4_cmd(dev, in_param, out_param, 1, in_modifier, dev 48 include/linux/mlx4/driver.h void * (*add) (struct mlx4_dev *dev); dev 49 include/linux/mlx4/driver.h void (*remove)(struct mlx4_dev *dev, void *context); dev 50 include/linux/mlx4/driver.h void (*event) (struct mlx4_dev *dev, void *context, dev 315 include/linux/mlx4/qp.h return radix_tree_lookup(&dev->qp_table_tree, qpn & (dev->caps.num_qps - 1)); dev 86 include/linux/mmc/card.h struct device dev; /* the device */ dev 133 include/linux/mmc/card.h #define mmc_card_id(c) ((c)->dev.bus_id) dev 136 include/linux/mmc/card.h #define mmc_get_drvdata(c) dev_get_drvdata(&(c)->dev) dev 137 include/linux/mmc/card.h #define mmc_set_drvdata(c,d) dev_set_drvdata(&(c)->dev, d) dev 38 include/linux/mmc/sdio_func.h struct device dev; /* the device */ dev 66 include/linux/mmc/sdio_func.h #define sdio_func_id(f) ((f)->dev.bus_id) dev 68 include/linux/mmc/sdio_func.h #define sdio_get_drvdata(f) dev_get_drvdata(&(f)->dev) dev 69 include/linux/mmc/sdio_func.h #define sdio_set_drvdata(f,d) dev_set_drvdata(&(f)->dev, d) dev 94 include/linux/mmc/sdio_func.h .vendor = (vend), .device = (dev) dev 181 include/linux/mroute.h struct net_device *dev; /* Device we are using */ dev 176 include/linux/mroute6.h struct net_device *dev; /* Device we are using */ dev 34 include/linux/msi.h struct pci_dev *dev; dev 40 include/linux/mtd/blktrans.h int (*readsect)(struct mtd_blktrans_dev *dev, dev 42 include/linux/mtd/blktrans.h int (*writesect)(struct mtd_blktrans_dev *dev, dev 44 include/linux/mtd/blktrans.h int (*discard)(struct mtd_blktrans_dev *dev, dev 48 include/linux/mtd/blktrans.h int (*getgeo)(struct mtd_blktrans_dev *dev, struct hd_geometry *geo); dev 49 include/linux/mtd/blktrans.h int (*flush)(struct mtd_blktrans_dev *dev); dev 52 include/linux/mtd/blktrans.h int (*open)(struct mtd_blktrans_dev *dev); dev 53 include/linux/mtd/blktrans.h int (*release)(struct mtd_blktrans_dev *dev); dev 58 include/linux/mtd/blktrans.h void (*remove_dev)(struct mtd_blktrans_dev *dev); dev 38 include/linux/mtd/mtd.h u_int dev; dev 31 include/linux/mtd/plat-ram.h void (*set_rw)(struct device *dev, int to); dev 25 include/linux/mtd/pmc551.h struct pci_dev *dev; dev 249 include/linux/netdevice.h ((((dev)->hard_header_len+(dev)->needed_headroom)&~(HH_DATA_MOD - 1)) + HH_DATA_MOD) dev 251 include/linux/netdevice.h ((((dev)->hard_header_len+(dev)->needed_headroom+(extra))&~(HH_DATA_MOD - 1)) + HH_DATA_MOD) dev 253 include/linux/netdevice.h ((((dev)->hard_header_len+(dev)->needed_headroom+(dev)->needed_tailroom)&~(HH_DATA_MOD - 1)) + HH_DATA_MOD) dev 256 include/linux/netdevice.h int (*create) (struct sk_buff *skb, struct net_device *dev, dev 264 include/linux/netdevice.h const struct net_device *dev, dev 313 include/linux/netdevice.h struct net_device *dev; dev 446 include/linux/netdevice.h struct net_device *dev; dev 503 include/linux/netdevice.h int (*init)(struct net_device *dev); dev 549 include/linux/netdevice.h struct net_device_stats* (*get_stats)(struct net_device *dev); dev 650 include/linux/netdevice.h struct net_device *dev); dev 679 include/linux/netdevice.h void (*uninit)(struct net_device *dev); dev 681 include/linux/netdevice.h void (*destructor)(struct net_device *dev); dev 684 include/linux/netdevice.h int (*open)(struct net_device *dev); dev 685 include/linux/netdevice.h int (*stop)(struct net_device *dev); dev 688 include/linux/netdevice.h void (*change_rx_flags)(struct net_device *dev, dev 691 include/linux/netdevice.h void (*set_rx_mode)(struct net_device *dev); dev 693 include/linux/netdevice.h void (*set_multicast_list)(struct net_device *dev); dev 695 include/linux/netdevice.h int (*set_mac_address)(struct net_device *dev, dev 698 include/linux/netdevice.h int (*validate_addr)(struct net_device *dev); dev 700 include/linux/netdevice.h int (*do_ioctl)(struct net_device *dev, dev 703 include/linux/netdevice.h int (*set_config)(struct net_device *dev, dev 706 include/linux/netdevice.h int (*change_mtu)(struct net_device *dev, int new_mtu); dev 709 include/linux/netdevice.h void (*tx_timeout) (struct net_device *dev); dev 711 include/linux/netdevice.h void (*vlan_rx_register)(struct net_device *dev, dev 713 include/linux/netdevice.h void (*vlan_rx_add_vid)(struct net_device *dev, dev 715 include/linux/netdevice.h void (*vlan_rx_kill_vid)(struct net_device *dev, dev 718 include/linux/netdevice.h int (*neigh_setup)(struct net_device *dev, struct neigh_parms *); dev 723 include/linux/netdevice.h void (*poll_controller)(struct net_device *dev); dev 726 include/linux/netdevice.h u16 (*select_queue)(struct net_device *dev, dev 745 include/linux/netdevice.h struct device dev; dev 759 include/linux/netdevice.h #define to_net_dev(d) container_of(d, struct net_device, dev) dev 768 include/linux/netdevice.h return &dev->_tx[index]; dev 779 include/linux/netdevice.h for (i = 0; i < dev->num_tx_queues; i++) dev 780 include/linux/netdevice.h f(dev, &dev->_tx[i], arg); dev 790 include/linux/netdevice.h return dev->nd_net; dev 800 include/linux/netdevice.h release_net(dev->nd_net); dev 801 include/linux/netdevice.h dev->nd_net = hold_net(net); dev 808 include/linux/netdevice.h if (dev->dsa_ptr != NULL) dev 809 include/linux/netdevice.h return dsa_uses_dsa_tags(dev->dsa_ptr); dev 818 include/linux/netdevice.h if (dev->dsa_ptr != NULL) dev 819 include/linux/netdevice.h return dsa_uses_trailer_tags(dev->dsa_ptr); dev 833 include/linux/netdevice.h return (char *)dev + ((sizeof(struct net_device) dev 841 include/linux/netdevice.h #define SET_NETDEV_DEV(net, pdev) ((net)->dev.parent = (pdev)) dev 862 include/linux/netdevice.h napi->dev = dev; dev 863 include/linux/netdevice.h list_add(&napi->dev_list, &dev->napi_list); dev 885 include/linux/netdevice.h struct net_device *dev; /* NULL is wildcarded here */ dev 916 include/linux/netdevice.h net = dev_net(dev); dev 917 include/linux/netdevice.h lh = dev->dev_list.next; dev 964 include/linux/netdevice.h if (!dev->header_ops || !dev->header_ops->create) dev 967 include/linux/netdevice.h return dev->header_ops->create(skb, dev, type, daddr, saddr, len); dev 973 include/linux/netdevice.h const struct net_device *dev = skb->dev; dev 975 include/linux/netdevice.h if (!dev->header_ops || !dev->header_ops->parse) dev 977 include/linux/netdevice.h return dev->header_ops->parse(skb, haddr); dev 1020 include/linux/netdevice.h for (i = 0; i < dev->num_tx_queues; i++) dev 1021 include/linux/netdevice.h netif_schedule_queue(netdev_get_tx_queue(dev, i)); dev 1037 include/linux/netdevice.h netif_tx_start_queue(netdev_get_tx_queue(dev, 0)); dev 1044 include/linux/netdevice.h for (i = 0; i < dev->num_tx_queues; i++) { dev 1045 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 1071 include/linux/netdevice.h netif_tx_wake_queue(netdev_get_tx_queue(dev, 0)); dev 1078 include/linux/netdevice.h for (i = 0; i < dev->num_tx_queues; i++) { dev 1079 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 1098 include/linux/netdevice.h netif_tx_stop_queue(netdev_get_tx_queue(dev, 0)); dev 1105 include/linux/netdevice.h for (i = 0; i < dev->num_tx_queues; i++) { dev 1106 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 1124 include/linux/netdevice.h return netif_tx_queue_stopped(netdev_get_tx_queue(dev, 0)); dev 1140 include/linux/netdevice.h return test_bit(__LINK_STATE_START, &dev->state); dev 1159 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); dev 1172 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); dev 1190 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); dev 1197 include/linux/netdevice.h return __netif_subqueue_stopped(dev, skb_get_queue_mapping(skb)); dev 1209 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, queue_index); dev 1226 include/linux/netdevice.h return (dev->num_tx_queues > 1); dev 1276 include/linux/netdevice.h atomic_dec(&dev->refcnt); dev 1287 include/linux/netdevice.h atomic_inc(&dev->refcnt); dev 1309 include/linux/netdevice.h return !test_bit(__LINK_STATE_NOCARRIER, &dev->state); dev 1333 include/linux/netdevice.h if (!test_and_set_bit(__LINK_STATE_DORMANT, &dev->state)) dev 1334 include/linux/netdevice.h linkwatch_fire_event(dev); dev 1345 include/linux/netdevice.h if (test_and_clear_bit(__LINK_STATE_DORMANT, &dev->state)) dev 1346 include/linux/netdevice.h linkwatch_fire_event(dev); dev 1357 include/linux/netdevice.h return test_bit(__LINK_STATE_DORMANT, &dev->state); dev 1368 include/linux/netdevice.h return (dev->operstate == IF_OPER_UP || dev 1369 include/linux/netdevice.h dev->operstate == IF_OPER_UNKNOWN /* backward compat */); dev 1380 include/linux/netdevice.h return test_bit(__LINK_STATE_PRESENT, &dev->state); dev 1458 include/linux/netdevice.h if (netif_rx_schedule_prep(dev, napi)) dev 1459 include/linux/netdevice.h __netif_rx_schedule(dev, napi); dev 1467 include/linux/netdevice.h __netif_rx_schedule(dev, napi); dev 1493 include/linux/netdevice.h __netif_rx_complete(dev, napi); dev 1541 include/linux/netdevice.h spin_lock(&dev->tx_global_lock); dev 1543 include/linux/netdevice.h for (i = 0; i < dev->num_tx_queues; i++) { dev 1544 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 1561 include/linux/netdevice.h netif_tx_lock(dev); dev 1568 include/linux/netdevice.h for (i = 0; i < dev->num_tx_queues; i++) { dev 1569 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 1579 include/linux/netdevice.h spin_unlock(&dev->tx_global_lock); dev 1584 include/linux/netdevice.h netif_tx_unlock(dev); dev 1589 include/linux/netdevice.h if ((dev->features & NETIF_F_LLTX) == 0) { \ dev 1595 include/linux/netdevice.h if ((dev->features & NETIF_F_LLTX) == 0) { \ dev 1607 include/linux/netdevice.h for (i = 0; i < dev->num_tx_queues; i++) { dev 1608 include/linux/netdevice.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 1619 include/linux/netdevice.h spin_lock(&dev->addr_list_lock); dev 1624 include/linux/netdevice.h spin_lock_bh(&dev->addr_list_lock); dev 1629 include/linux/netdevice.h spin_unlock(&dev->addr_list_lock); dev 1634 include/linux/netdevice.h spin_unlock_bh(&dev->addr_list_lock); dev 1717 include/linux/netdevice.h (!skb_gso_ok(skb, dev->features) || dev 1724 include/linux/netdevice.h dev->gso_max_size = size; dev 1733 include/linux/netdevice.h struct net_device *dev = skb->dev; dev 1734 include/linux/netdevice.h struct net_device *master = dev->master; dev 1737 include/linux/netdevice.h (dev->priv_flags & IFF_SLAVE_INACTIVE)) { dev 1738 include/linux/netdevice.h if ((dev->priv_flags & IFF_SLAVE_NEEDARP) && dev 16 include/linux/netpoll.h struct net_device *dev; dev 50 include/linux/netpoll.h struct netpoll_info *npinfo = skb->dev->npinfo; dev 68 include/linux/netpoll.h if (!list_empty(&skb->dev->napi_list)) dev 75 include/linux/netpoll.h struct net_device *dev = napi->dev; dev 78 include/linux/netpoll.h if (dev && dev->npinfo) { dev 99 include/linux/netpoll.h INIT_LIST_HEAD(&dev->napi_list); dev 186 include/linux/nfsd/nfsfh.h fsidv[0] = htonl((MAJOR(dev)<<16) | dev 187 include/linux/nfsd/nfsfh.h MINOR(dev)); dev 194 include/linux/nfsd/nfsfh.h fsidv[0] = htonl(MAJOR(dev)); dev 195 include/linux/nfsd/nfsfh.h fsidv[1] = htonl(MINOR(dev)); dev 200 include/linux/nfsd/nfsfh.h fsidv[0] = new_encode_dev(dev); dev 91 include/linux/nfsd/xdr4.h } dev; /* NF4BLK, NF4CHR */ dev 100 include/linux/nfsd/xdr4.h #define cr_specdata1 u.dev.specdata1 dev 101 include/linux/nfsd/xdr4.h #define cr_specdata2 u.dev.specdata2 dev 30 include/linux/nsc_gpio.h struct device* dev; /* for dev_dbg() support, set in init */ dev 10 include/linux/of_device.h #define to_of_device(d) container_of(d, struct of_device, dev) dev 24 include/linux/of_device.h of_release_dev(&dev->dev); dev 38 include/linux/of_platform.h int (*probe)(struct of_device* dev, dev 40 include/linux/of_platform.h int (*remove)(struct of_device* dev); dev 42 include/linux/of_platform.h int (*suspend)(struct of_device* dev, pm_message_t state); dev 43 include/linux/of_platform.h int (*resume)(struct of_device* dev); dev 44 include/linux/of_platform.h int (*shutdown)(struct of_device* dev); dev 283 include/linux/parport.h struct device *dev; /* Physical device associated with IO/DMA. dev 435 include/linux/parport.h unsigned long int timeslip = (jiffies - dev->time); dev 436 include/linux/parport.h if ((dev->port->waithead == NULL) || (timeslip < dev->timeslice)) dev 438 include/linux/parport.h parport_release(dev); dev 439 include/linux/parport.h return parport_claim(dev); dev 453 include/linux/parport.h unsigned long int timeslip = (jiffies - dev->time); dev 454 include/linux/parport.h if ((dev->port->waithead == NULL) || (timeslip < dev->timeslice)) dev 456 include/linux/parport.h parport_release(dev); dev 457 include/linux/parport.h return parport_claim_or_block(dev); dev 195 include/linux/pci.h struct device dev; /* Generic device interface */ dev 237 include/linux/pci.h #define to_pci_dev(n) container_of(n, struct pci_dev, dev) dev 306 include/linux/pci.h struct device dev; dev 313 include/linux/pci.h #define to_pci_bus(n) container_of(n, struct pci_bus, dev) dev 382 include/linux/pci.h pci_ers_result_t (*error_detected)(struct pci_dev *dev, dev 386 include/linux/pci.h pci_ers_result_t (*mmio_enabled)(struct pci_dev *dev); dev 389 include/linux/pci.h pci_ers_result_t (*link_reset)(struct pci_dev *dev); dev 392 include/linux/pci.h pci_ers_result_t (*slot_reset)(struct pci_dev *dev); dev 395 include/linux/pci.h void (*resume)(struct pci_dev *dev); dev 405 include/linux/pci.h int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */ dev 406 include/linux/pci.h void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */ dev 407 include/linux/pci.h int (*suspend) (struct pci_dev *dev, pm_message_t state); /* Device suspended */ dev 408 include/linux/pci.h int (*suspend_late) (struct pci_dev *dev, pm_message_t state); dev 409 include/linux/pci.h int (*resume_early) (struct pci_dev *dev); dev 410 include/linux/pci.h int (*resume) (struct pci_dev *dev); /* Device woken up */ dev 411 include/linux/pci.h void (*shutdown) (struct pci_dev *dev); dev 440 include/linux/pci.h .vendor = (vend), .device = (dev), \ dev 574 include/linux/pci.h return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val); dev 578 include/linux/pci.h return pci_bus_read_config_word(dev->bus, dev->devfn, where, val); dev 583 include/linux/pci.h return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val); dev 587 include/linux/pci.h return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val); dev 591 include/linux/pci.h return pci_bus_write_config_word(dev->bus, dev->devfn, where, val); dev 596 include/linux/pci.h return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); dev 711 include/linux/pci.h dma_pool_create(name, &pdev->dev, size, align, allocation) dev 807 include/linux/pci.h static inline int pci_##o##_config_##s(struct pci_dev *dev, \ dev 987 include/linux/pci.h #define pci_resource_start(dev, bar) ((dev)->resource[(bar)].start) dev 988 include/linux/pci.h #define pci_resource_end(dev, bar) ((dev)->resource[(bar)].end) dev 989 include/linux/pci.h #define pci_resource_flags(dev, bar) ((dev)->resource[(bar)].flags) dev 991 include/linux/pci.h ((pci_resource_start((dev), (bar)) == 0 && \ dev 992 include/linux/pci.h pci_resource_end((dev), (bar)) == \ dev 993 include/linux/pci.h pci_resource_start((dev), (bar))) ? 0 : \ dev 995 include/linux/pci.h (pci_resource_end((dev), (bar)) - \ dev 996 include/linux/pci.h pci_resource_start((dev), (bar)) + 1)) dev 1004 include/linux/pci.h return dev_get_drvdata(&pdev->dev); dev 1009 include/linux/pci.h dev_set_drvdata(&pdev->dev, data); dev 1017 include/linux/pci.h return dev_name(&pdev->dev); dev 1044 include/linux/pci.h void (*hook)(struct pci_dev *dev); dev 49 include/linux/pcieport_if.h dev->priv_data = data; dev 54 include/linux/pcieport_if.h return dev->priv_data; dev 59 include/linux/pcieport_if.h int (*probe) (struct pcie_device *dev, dev 61 include/linux/pcieport_if.h void (*remove) (struct pcie_device *dev); dev 62 include/linux/pcieport_if.h int (*suspend) (struct pcie_device *dev, pm_message_t state); dev 63 include/linux/pcieport_if.h int (*resume) (struct pcie_device *dev); dev 69 include/linux/pcieport_if.h pci_ers_result_t (*reset_link) (struct pci_dev *dev); dev 22 include/linux/pda_power.h int (*init)(struct device *dev); dev 26 include/linux/pda_power.h void (*exit)(struct device *dev); dev 109 include/linux/phy.h struct device dev; dev 123 include/linux/phy.h #define to_mii_bus(d) container_of(d, struct mii_bus, dev) dev 269 include/linux/phy.h struct device dev; dev 326 include/linux/phy.h void (*adjust_link)(struct net_device *dev); dev 328 include/linux/phy.h void (*adjust_state)(struct net_device *dev); dev 330 include/linux/phy.h #define to_phy_device(d) container_of(d, struct phy_device, dev) dev 98 include/linux/pktcdvd.h __u32 dev; /* in/out: Device nr for cdrw device */ dev 293 include/linux/pktcdvd.h struct device *dev; /* sysfs pktcdvd[0-7] dev */ dev 19 include/linux/platform_device.h struct device dev; dev 24 include/linux/platform_device.h #define to_platform_device(x) container_of((x), struct platform_device, dev) dev 69 include/linux/platform_device.h #define platform_get_drvdata(_dev) dev_get_drvdata(&(_dev)->dev) dev 70 include/linux/platform_device.h #define platform_set_drvdata(_dev,data) dev_set_drvdata(&(_dev)->dev, (data)) dev 146 include/linux/pm.h int (*prepare)(struct device *dev); dev 147 include/linux/pm.h void (*complete)(struct device *dev); dev 148 include/linux/pm.h int (*suspend)(struct device *dev); dev 149 include/linux/pm.h int (*resume)(struct device *dev); dev 150 include/linux/pm.h int (*freeze)(struct device *dev); dev 151 include/linux/pm.h int (*thaw)(struct device *dev); dev 152 include/linux/pm.h int (*poweroff)(struct device *dev); dev 153 include/linux/pm.h int (*restore)(struct device *dev); dev 205 include/linux/pm.h int (*suspend_noirq)(struct device *dev); dev 206 include/linux/pm.h int (*resume_noirq)(struct device *dev); dev 207 include/linux/pm.h int (*freeze_noirq)(struct device *dev); dev 208 include/linux/pm.h int (*thaw_noirq)(struct device *dev); dev 209 include/linux/pm.h int (*poweroff_noirq)(struct device *dev); dev 210 include/linux/pm.h int (*restore_noirq)(struct device *dev); dev 35 include/linux/pm_wakeup.h dev->power.can_wakeup = dev->power.should_wakeup = !!val; dev 40 include/linux/pm_wakeup.h dev->power.can_wakeup = !!val; dev 45 include/linux/pm_wakeup.h return dev->power.can_wakeup; dev 50 include/linux/pm_wakeup.h dev->power.should_wakeup = !!val; dev 55 include/linux/pm_wakeup.h return dev->power.can_wakeup && dev->power.should_wakeup; dev 63 include/linux/pm_wakeup.h dev->power.can_wakeup = !!val; dev 70 include/linux/pm_wakeup.h return dev->power.can_wakeup; dev 58 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); dev 68 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); dev 78 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); dev 87 include/linux/pnp.h return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IO, bar)); dev 93 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); dev 104 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); dev 114 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); dev 123 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); dev 132 include/linux/pnp.h return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_MEM, bar)); dev 138 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); dev 148 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar); dev 157 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar); dev 166 include/linux/pnp.h return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IRQ, bar)); dev 172 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar); dev 181 include/linux/pnp.h struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar); dev 190 include/linux/pnp.h return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_DMA, bar)); dev 199 include/linux/pnp.h struct device dev; /* Driver Model device interface */ dev 218 include/linux/pnp.h #define to_pnp_card(n) container_of(n, struct pnp_card, dev) dev 242 include/linux/pnp.h struct device dev; /* Driver Model device interface */ dev 274 include/linux/pnp.h #define to_pnp_dev(n) container_of(n, struct pnp_dev, dev) dev 276 include/linux/pnp.h for((dev) = global_to_pnp_dev(pnp_global.next); \ dev 277 include/linux/pnp.h (dev) != global_to_pnp_dev(&pnp_global); \ dev 278 include/linux/pnp.h (dev) = global_to_pnp_dev((dev)->global_list.next)) dev 280 include/linux/pnp.h for((dev) = card_to_pnp_dev((card)->devices.next); \ dev 281 include/linux/pnp.h (dev) != card_to_pnp_dev(&(card)->devices); \ dev 282 include/linux/pnp.h (dev) = card_to_pnp_dev((dev)->card_list.next)) dev 283 include/linux/pnp.h #define pnp_dev_name(dev) (dev)->name dev 287 include/linux/pnp.h return dev_get_drvdata(&pdev->dev); dev 292 include/linux/pnp.h dev_set_drvdata(&pdev->dev, data); dev 297 include/linux/pnp.h void (*quirk_function) (struct pnp_dev * dev); /* fixup function */ dev 311 include/linux/pnp.h #define pnp_can_read(dev) (((dev)->protocol->get) && \ dev 312 include/linux/pnp.h ((dev)->capabilities & PNP_READ)) dev 313 include/linux/pnp.h #define pnp_can_write(dev) (((dev)->protocol->set) && \ dev 314 include/linux/pnp.h ((dev)->capabilities & PNP_WRITE)) dev 315 include/linux/pnp.h #define pnp_can_disable(dev) (((dev)->protocol->disable) && \ dev 316 include/linux/pnp.h ((dev)->capabilities & PNP_DISABLE)) dev 317 include/linux/pnp.h #define pnp_can_configure(dev) ((!(dev)->active) && \ dev 318 include/linux/pnp.h ((dev)->capabilities & PNP_CONFIGURABLE)) dev 322 include/linux/pnp.h #define pnp_device_is_isapnp(dev) ((dev)->protocol == (&isapnp_protocol)) dev 330 include/linux/pnp.h #define pnp_device_is_pnpbios(dev) ((dev)->protocol == (&pnpbios_protocol)) dev 343 include/linux/pnp.h #define isapnp_card_number(dev) ((dev)->card ? (dev)->card->number : -1) dev 344 include/linux/pnp.h #define isapnp_csn_number(dev) ((dev)->number) dev 359 include/linux/pnp.h int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id); dev 360 include/linux/pnp.h void (*remove) (struct pnp_dev *dev); dev 361 include/linux/pnp.h int (*suspend) (struct pnp_dev *dev, pm_message_t state); dev 362 include/linux/pnp.h int (*resume) (struct pnp_dev *dev); dev 396 include/linux/pnp.h int (*get) (struct pnp_dev *dev); dev 397 include/linux/pnp.h int (*set) (struct pnp_dev *dev); dev 398 include/linux/pnp.h int (*disable) (struct pnp_dev *dev); dev 401 include/linux/pnp.h int (*suspend) (struct pnp_dev * dev, pm_message_t state); dev 402 include/linux/pnp.h int (*resume) (struct pnp_dev * dev); dev 406 include/linux/pnp.h struct device dev; /* link to driver model */ dev 417 include/linux/pnp.h for((dev) = protocol_to_pnp_dev((protocol)->devices.next); \ dev 418 include/linux/pnp.h (dev) != protocol_to_pnp_dev(&(protocol)->devices); \ dev 419 include/linux/pnp.h (dev) = protocol_to_pnp_dev((dev)->protocol_list.next)) dev 131 include/linux/power_supply.h struct device *dev; dev 12 include/linux/pwm_backlight.h int (*init)(struct device *dev); dev 14 include/linux/pwm_backlight.h void (*exit)(struct device *dev); dev 12 include/linux/raid/raid0.h mdk_rdev_t **dev; /* Devices attached to the zone */ dev 225 include/linux/raid/raid5.h } dev[1]; /* allocated with extra space depending of RAID geometry */ dev 55 include/linux/raid_class.h raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \ dev 57 include/linux/raid_class.h attribute_container_find_class_device(&r->raid_attrs.ac, dev);\ dev 64 include/linux/raid_class.h raid_get_##attr(struct raid_template *r, struct device *dev) { \ dev 66 include/linux/raid_class.h attribute_container_find_class_device(&r->raid_attrs.ac, dev);\ dev 98 include/linux/regulator/machine.h struct device *dev; /* consumer */ dev 15 include/linux/resume-trace.h set_trace_device(dev); \ dev 109 include/linux/rfkill.h struct device dev; dev 112 include/linux/rfkill.h #define to_rfkill(d) container_of(d, struct rfkill, dev) dev 113 include/linux/rio.h struct device dev; /* LDM device structure */ dev 120 include/linux/rio.h #define to_rio_dev(n) container_of(n, struct rio_dev, dev) dev 279 include/linux/rio.h int (*probe) (struct rio_dev * dev, const struct rio_device_id * id); dev 280 include/linux/rio.h void (*remove) (struct rio_dev * dev); dev 281 include/linux/rio.h int (*suspend) (struct rio_dev * dev, u32 state); dev 282 include/linux/rio.h int (*resume) (struct rio_dev * dev); dev 283 include/linux/rio.h int (*enable_wake) (struct rio_dev * dev, u32 state, int enable); dev 345 include/linux/rio_drv.h .did = (dev), .vid = (ven), \ dev 432 include/linux/rio_drv.h return rdev->dev.bus_id; dev 444 include/linux/rio_drv.h return dev_get_drvdata(&rdev->dev); dev 457 include/linux/rio_drv.h dev_set_drvdata(&rdev->dev, data); dev 158 include/linux/rtc.h struct device dev; dev 190 include/linux/rtc.h #define to_rtc_device(d) container_of(d, struct rtc_device, dev) dev 53 include/linux/rtc/m48t59.h void (*write_byte)(struct device *dev, u32 ofs, u8 val); dev 54 include/linux/rtc/m48t59.h unsigned char (*read_byte)(struct device *dev, u32 ofs); dev 217 include/linux/scc.h struct net_device *dev; /* link to device control structure */ dev 1367 include/linux/security.h int mode, dev_t dev); dev 48 include/linux/serialP.h struct pci_dev *dev; dev 306 include/linux/serial_core.h struct device *dev; /* parent device */ dev 49 include/linux/serio.h struct device dev; dev 54 include/linux/serio.h #define to_serio_port(d) container_of(d, struct serio, dev) dev 116 include/linux/serio.h return dev_get_drvdata(&serio->dev); dev 121 include/linux/serio.h dev_set_drvdata(&serio->dev, data); dev 266 include/linux/skbuff.h struct net_device *dev; dev 1385 include/linux/skbuff.h return __netdev_alloc_skb(dev, length, GFP_ATOMIC); dev 1400 include/linux/skbuff.h return __netdev_alloc_page(dev, GFP_ATOMIC); dev 169 include/linux/sm501.h int (*get_power)(struct device *dev); dev 170 include/linux/sm501.h int (*set_power)(struct device *dev, unsigned int on); dev 858 include/linux/soundcard.h #define MIXER_READ(dev) _SIOR('M', dev, int) dev 888 include/linux/soundcard.h #define MIXER_WRITE(dev) _SIOWR('M', dev, int) dev 1081 include/linux/soundcard.h OSS_patch_caching(dev, -1, instr, seqfd, _seqbuf, _seqbuflen) dev 1083 include/linux/soundcard.h OSS_drum_caching(dev, -1, drum, seqfd, _seqbuf, _seqbuflen) dev 1139 include/linux/soundcard.h _seqbuf[_seqbufptr+2] = (dev);\ dev 1154 include/linux/soundcard.h _seqbuf[_seqbufptr+1] = (dev);\ dev 1164 include/linux/soundcard.h _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol) dev 1167 include/linux/soundcard.h _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol) dev 1170 include/linux/soundcard.h _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure) dev 1179 include/linux/soundcard.h _seqbuf[_seqbufptr+1] = (dev);\ dev 1207 include/linux/soundcard.h _seqbuf[_seqbufptr+1] = (dev);\ dev 1215 include/linux/soundcard.h _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0) dev 1220 include/linux/soundcard.h {OSS_patch_caching(dev, chn, patch, seqfd, _seqbuf, _seqbuflen); \ dev 1221 include/linux/soundcard.h _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0);} dev 1224 include/linux/soundcard.h _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) dev 1228 include/linux/soundcard.h _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value) dev 1231 include/linux/soundcard.h _CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value) dev 1237 include/linux/soundcard.h _seqbuf[_seqbufptr+2] = (dev);\ dev 1248 include/linux/soundcard.h #define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value) dev 1249 include/linux/soundcard.h #define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value) dev 1250 include/linux/soundcard.h #define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128) dev 1251 include/linux/soundcard.h #define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100) dev 1252 include/linux/soundcard.h #define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2) dev 66 include/linux/spi/spi.h struct device dev; dev 100 include/linux/spi/spi.h return dev ? container_of(dev, struct spi_device, dev) : NULL; dev 106 include/linux/spi/spi.h return (spi && get_device(&spi->dev)) ? spi : NULL; dev 112 include/linux/spi/spi.h put_device(&spi->dev); dev 130 include/linux/spi/spi.h dev_set_drvdata(&spi->dev, data); dev 135 include/linux/spi/spi.h return dev_get_drvdata(&spi->dev); dev 225 include/linux/spi/spi.h struct device dev; dev 271 include/linux/spi/spi.h return dev_get_drvdata(&master->dev); dev 276 include/linux/spi/spi.h dev_set_drvdata(&master->dev, data); dev 281 include/linux/spi/spi.h if (!master || !get_device(&master->dev)) dev 289 include/linux/spi/spi.h put_device(&master->dev); dev 801 include/linux/spi/spi.h device_unregister(&spi->dev); dev 76 include/linux/ssb/ssb.h u8 (*read8)(struct ssb_device *dev, u16 offset); dev 77 include/linux/ssb/ssb.h u16 (*read16)(struct ssb_device *dev, u16 offset); dev 78 include/linux/ssb/ssb.h u32 (*read32)(struct ssb_device *dev, u16 offset); dev 79 include/linux/ssb/ssb.h void (*write8)(struct ssb_device *dev, u16 offset, u8 value); dev 80 include/linux/ssb/ssb.h void (*write16)(struct ssb_device *dev, u16 offset, u16 value); dev 81 include/linux/ssb/ssb.h void (*write32)(struct ssb_device *dev, u16 offset, u32 value); dev 83 include/linux/ssb/ssb.h void (*block_read)(struct ssb_device *dev, void *buffer, dev 85 include/linux/ssb/ssb.h void (*block_write)(struct ssb_device *dev, const void *buffer, dev 131 include/linux/ssb/ssb.h struct device dev; dev 140 include/linux/ssb/ssb.h struct device *dev; dev 158 include/linux/ssb/ssb.h wrap = container_of(dev, struct __ssb_dev_wrapper, dev); dev 166 include/linux/ssb/ssb.h dev->drvdata = data; dev 171 include/linux/ssb/ssb.h return dev->drvdata; dev 179 include/linux/ssb/ssb.h return dev->devtypedata; dev 187 include/linux/ssb/ssb.h int (*probe)(struct ssb_device *dev, const struct ssb_device_id *id); dev 188 include/linux/ssb/ssb.h void (*remove)(struct ssb_device *dev); dev 189 include/linux/ssb/ssb.h int (*suspend)(struct ssb_device *dev, pm_message_t state); dev 190 include/linux/ssb/ssb.h int (*resume)(struct ssb_device *dev); dev 191 include/linux/ssb/ssb.h void (*shutdown)(struct ssb_device *dev); dev 363 include/linux/ssb/ssb.h return dev->ops->read8(dev, offset); dev 367 include/linux/ssb/ssb.h return dev->ops->read16(dev, offset); dev 371 include/linux/ssb/ssb.h return dev->ops->read32(dev, offset); dev 375 include/linux/ssb/ssb.h dev->ops->write8(dev, offset, value); dev 379 include/linux/ssb/ssb.h dev->ops->write16(dev, offset, value); dev 383 include/linux/ssb/ssb.h dev->ops->write32(dev, offset, value); dev 389 include/linux/ssb/ssb.h dev->ops->block_read(dev, buffer, count, offset, reg_width); dev 395 include/linux/ssb/ssb.h dev->ops->block_write(dev, buffer, count, offset, reg_width); dev 422 include/linux/ssb/ssb.h "unsupported bustype %d\n", dev->bus->bustype); dev 428 include/linux/ssb/ssb.h switch (dev->bus->bustype) { dev 430 include/linux/ssb/ssb.h return pci_dma_mapping_error(dev->bus->host_pci, addr); dev 432 include/linux/ssb/ssb.h return dma_mapping_error(dev->dev, addr); dev 434 include/linux/ssb/ssb.h __ssb_dma_not_implemented(dev); dev 442 include/linux/ssb/ssb.h switch (dev->bus->bustype) { dev 444 include/linux/ssb/ssb.h return pci_map_single(dev->bus->host_pci, p, size, dir); dev 446 include/linux/ssb/ssb.h return dma_map_single(dev->dev, p, size, dir); dev 448 include/linux/ssb/ssb.h __ssb_dma_not_implemented(dev); dev 456 include/linux/ssb/ssb.h switch (dev->bus->bustype) { dev 458 include/linux/ssb/ssb.h pci_unmap_single(dev->bus->host_pci, dma_addr, size, dir); dev 461 include/linux/ssb/ssb.h dma_unmap_single(dev->dev, dma_addr, size, dir); dev 464 include/linux/ssb/ssb.h __ssb_dma_not_implemented(dev); dev 473 include/linux/ssb/ssb.h switch (dev->bus->bustype) { dev 475 include/linux/ssb/ssb.h pci_dma_sync_single_for_cpu(dev->bus->host_pci, dma_addr, dev 479 include/linux/ssb/ssb.h dma_sync_single_for_cpu(dev->dev, dma_addr, size, dir); dev 482 include/linux/ssb/ssb.h __ssb_dma_not_implemented(dev); dev 491 include/linux/ssb/ssb.h switch (dev->bus->bustype) { dev 493 include/linux/ssb/ssb.h pci_dma_sync_single_for_device(dev->bus->host_pci, dma_addr, dev 497 include/linux/ssb/ssb.h dma_sync_single_for_device(dev->dev, dma_addr, size, dir); dev 500 include/linux/ssb/ssb.h __ssb_dma_not_implemented(dev); dev 510 include/linux/ssb/ssb.h switch (dev->bus->bustype) { dev 513 include/linux/ssb/ssb.h pci_dma_sync_single_for_cpu(dev->bus->host_pci, dma_addr, dev 517 include/linux/ssb/ssb.h dma_sync_single_range_for_cpu(dev->dev, dma_addr, offset, dev 521 include/linux/ssb/ssb.h __ssb_dma_not_implemented(dev); dev 531 include/linux/ssb/ssb.h switch (dev->bus->bustype) { dev 534 include/linux/ssb/ssb.h pci_dma_sync_single_for_device(dev->bus->host_pci, dma_addr, dev 538 include/linux/ssb/ssb.h dma_sync_single_range_for_device(dev->dev, dma_addr, offset, dev 542 include/linux/ssb/ssb.h __ssb_dma_not_implemented(dev); dev 357 include/linux/ssb/ssb_driver_chipcommon.h struct ssb_device *dev; dev 365 include/linux/ssb/ssb_driver_chipcommon.h return (cc->dev != NULL); dev 160 include/linux/ssb/ssb_driver_extif.h struct ssb_device *dev; dev 165 include/linux/ssb/ssb_driver_extif.h return (extif->dev != NULL); dev 37 include/linux/ssb/ssb_driver_gige.h struct ssb_device *dev; dev 66 include/linux/ssb/ssb_driver_gige.h struct ssb_gige *dev = pdev_to_ssb_gige(pdev); dev 67 include/linux/ssb/ssb_driver_gige.h return (dev ? dev->has_rgmii : 0); dev 73 include/linux/ssb/ssb_driver_gige.h struct ssb_gige *dev = pdev_to_ssb_gige(pdev); dev 74 include/linux/ssb/ssb_driver_gige.h if (dev) dev 75 include/linux/ssb/ssb_driver_gige.h return !!(dev->dev->bus->sprom.boardflags_lo & dev 83 include/linux/ssb/ssb_driver_gige.h struct ssb_gige *dev = pdev_to_ssb_gige(pdev); dev 84 include/linux/ssb/ssb_driver_gige.h if (dev) dev 85 include/linux/ssb/ssb_driver_gige.h return ((dev->dev->bus->chip_id == 0x4785) && dev 86 include/linux/ssb/ssb_driver_gige.h (dev->dev->bus->chip_rev < 2)); dev 93 include/linux/ssb/ssb_driver_gige.h struct ssb_gige *dev = pdev_to_ssb_gige(pdev); dev 94 include/linux/ssb/ssb_driver_gige.h if (dev) dev 95 include/linux/ssb/ssb_driver_gige.h return (dev->dev->bus->chip_id == 0x4785); dev 18 include/linux/ssb/ssb_driver_mips.h struct ssb_device *dev; dev 84 include/linux/ssb/ssb_driver_pci.h struct ssb_device *dev; dev 64 include/linux/stat.h dev_t dev; dev 56 include/linux/superhyway.h int (*probe)(struct superhyway_device *dev, const struct superhyway_device_id *id); dev 57 include/linux/superhyway.h void (*remove)(struct superhyway_device *dev); dev 65 include/linux/superhyway.h struct device dev; dev 76 include/linux/superhyway.h #define to_superhyway_device(d) container_of((d), struct superhyway_device, dev) dev 78 include/linux/superhyway.h #define superhyway_get_drvdata(d) dev_get_drvdata(&(d)->dev) dev 79 include/linux/superhyway.h #define superhyway_set_drvdata(d,p) dev_set_drvdata(&(d)->dev, (p)) dev 85 include/linux/superhyway.h return dev->bus->ops->read_vcr(base, vcr); dev 92 include/linux/superhyway.h return dev->bus->ops->write_vcr(base, vcr); dev 11 include/linux/suspend_ioctls.h u_int32_t dev; dev 94 include/linux/svga.h pci_read_config_word(dev, PCI_COMMAND, &flags); dev 68 include/linux/tc.h struct device dev; dev 85 include/linux/tc.h struct device dev; /* Generic device interface. */ dev 94 include/linux/tc.h #define to_tc_dev(n) container_of(n, struct tc_dev, dev) dev 100 include/linux/tifm.h struct device dev; dev 105 include/linux/tifm.h int (*probe)(struct tifm_dev *dev); dev 106 include/linux/tifm.h void (*remove)(struct tifm_dev *dev); dev 107 include/linux/tifm.h int (*suspend)(struct tifm_dev *dev, dev 109 include/linux/tifm.h int (*resume)(struct tifm_dev *dev); dev 124 include/linux/tifm.h struct device dev; dev 156 include/linux/tifm.h return dev_get_drvdata(&dev->dev); dev 161 include/linux/tifm.h dev_set_drvdata(&dev->dev, data); dev 73 include/linux/transport_class.h transport_setup_device(dev); dev 74 include/linux/transport_class.h transport_add_device(dev); dev 80 include/linux/transport_class.h transport_remove_device(dev); dev 81 include/linux/transport_class.h transport_destroy_device(dev); dev 64 include/linux/uinput.h struct input_dev *dev; dev 170 include/linux/usb.h struct device dev; /* interface specific device info */ dev 174 include/linux/usb.h #define to_usb_interface(d) container_of(d, struct usb_interface, dev) dev 176 include/linux/usb.h container_of(intf->dev.parent, struct usb_device, dev) dev 180 include/linux/usb.h return dev_get_drvdata(&intf->dev); dev 185 include/linux/usb.h dev_set_drvdata(&intf->dev, data); dev 328 include/linux/usb.h struct device *dev; /* device for this bus */ dev 429 include/linux/usb.h struct device dev; dev 492 include/linux/usb.h #define to_usb_device(d) container_of(d, struct usb_device, dev) dev 498 include/linux/usb.h #define usb_lock_device(udev) down(&(udev)->dev.sem) dev 499 include/linux/usb.h #define usb_unlock_device(udev) up(&(udev)->dev.sem) dev 500 include/linux/usb.h #define usb_trylock_device(udev) down_trylock(&(udev)->dev.sem) dev 571 include/linux/usb.h return (iface->dev.driver != NULL); dev 616 include/linux/usb.h actual = snprintf(buf, size, "usb-%s-%s", dev->bus->bus_name, dev 617 include/linux/usb.h dev->devpath); dev 1329 include/linux/usb.h struct usb_device *dev; /* (in) pointer to associated device */ dev 1376 include/linux/usb.h urb->dev = dev; dev 1406 include/linux/usb.h urb->dev = dev; dev 1441 include/linux/usb.h urb->dev = dev; dev 1447 include/linux/usb.h if (dev->speed == USB_SPEED_HIGH) dev 1579 include/linux/usb.h struct usb_device *dev; dev 1644 include/linux/usb.h #define usb_gettoggle(dev, ep, out) (((dev)->toggle[out] >> (ep)) & 1) dev 1645 include/linux/usb.h #define usb_dotoggle(dev, ep, out) ((dev)->toggle[out] ^= (1 << (ep))) dev 1647 include/linux/usb.h ((dev)->toggle[out] = ((dev)->toggle[out] & ~(1 << (ep))) | \ dev 1654 include/linux/usb.h return (dev->devnum << 8) | (endpoint << 15); dev 1659 include/linux/usb.h ((PIPE_CONTROL << 30) | __create_pipe(dev, endpoint)) dev 1661 include/linux/usb.h ((PIPE_CONTROL << 30) | __create_pipe(dev, endpoint) | USB_DIR_IN) dev 1663 include/linux/usb.h ((PIPE_ISOCHRONOUS << 30) | __create_pipe(dev, endpoint)) dev 1665 include/linux/usb.h ((PIPE_ISOCHRONOUS << 30) | __create_pipe(dev, endpoint) | USB_DIR_IN) dev 1667 include/linux/usb.h ((PIPE_BULK << 30) | __create_pipe(dev, endpoint)) dev 1669 include/linux/usb.h ((PIPE_BULK << 30) | __create_pipe(dev, endpoint) | USB_DIR_IN) dev 1671 include/linux/usb.h ((PIPE_INTERRUPT << 30) | __create_pipe(dev, endpoint)) dev 1673 include/linux/usb.h ((PIPE_INTERRUPT << 30) | __create_pipe(dev, endpoint) | USB_DIR_IN) dev 258 include/linux/usb/composite.h const struct usb_device_descriptor *dev; dev 328 include/linux/usb/composite.h dev_dbg(&(d)->gadget->dev , fmt , ## args) dev 330 include/linux/usb/composite.h dev_vdbg(&(d)->gadget->dev , fmt , ## args) dev 332 include/linux/usb/composite.h dev_err(&(d)->gadget->dev , fmt , ## args) dev 334 include/linux/usb/composite.h dev_warn(&(d)->gadget->dev , fmt , ## args) dev 336 include/linux/usb/composite.h dev_info(&(d)->gadget->dev , fmt , ## args) dev 157 include/linux/usb/ehci_def.h #define DBGP_EPADDR(dev, ep) (((dev)<<8)|(ep)) dev 488 include/linux/usb/gadget.h struct device dev; dev 492 include/linux/usb/gadget.h { dev_set_drvdata(&gadget->dev, data); } dev 494 include/linux/usb/gadget.h { return dev_get_drvdata(&gadget->dev); } dev 20 include/linux/usb/input.h id->vendor = le16_to_cpu(dev->descriptor.idVendor); dev 21 include/linux/usb/input.h id->product = le16_to_cpu(dev->descriptor.idProduct); dev 22 include/linux/usb/input.h id->version = le16_to_cpu(dev->descriptor.bcdDevice); dev 30 include/linux/usb/isp116x.h void (*delay) (struct device *dev, int delay); dev 60 include/linux/usb/musb.h int (*set_vbus)(struct device *dev, int is_on); dev 43 include/linux/usb/otg.h struct device *dev; dev 96 include/linux/usb/serial.h struct device dev; dev 98 include/linux/usb/serial.h #define to_usb_serial_port(d) container_of(d, struct usb_serial_port, dev) dev 103 include/linux/usb/serial.h return dev_get_drvdata(&port->dev); dev 109 include/linux/usb/serial.h dev_set_drvdata(&port->dev, data); dev 130 include/linux/usb/serial.h struct usb_device *dev; dev 310 include/linux/usb/serial.h dev_printk(KERN_DEBUG, dev, "%s - length = %d, data = ", dev 19 include/linux/usb/sl811.h void (*port_power)(struct device *dev, int is_on); dev 22 include/linux/usb/sl811.h void (*reset)(struct device *dev); dev 71 include/linux/usb/usbnet.h return to_usb_driver(intf->dev.driver); dev 111 include/linux/usb/usbnet.h int (*rx_fixup)(struct usbnet *dev, struct sk_buff *skb); dev 114 include/linux/usb/usbnet.h struct sk_buff *(*tx_fixup)(struct usbnet *dev, dev 120 include/linux/usb/usbnet.h int (*early_init)(struct usbnet *dev); dev 124 include/linux/usb/usbnet.h void (*link_change)(struct usbnet *dev, int state); dev 174 include/linux/usb/usbnet.h struct usbnet *dev; dev 34 include/linux/video_output.h struct device dev; dev 36 include/linux/video_output.h #define to_output_device(obj) container_of(obj, struct output_device, dev) dev 85 include/linux/virtio.h struct device dev; dev 113 include/linux/virtio.h int (*probe)(struct virtio_device *dev); dev 114 include/linux/virtio.h void (*remove)(struct virtio_device *dev); dev 115 include/linux/virtio.h void (*config_changed)(struct virtio_device *dev); dev 506 include/linux/wanrouter.h int (*new_if)(struct wan_device *wandev, struct net_device *dev, dev 508 include/linux/wanrouter.h int (*del_if)(struct wan_device *wandev, struct net_device *dev); dev 511 include/linux/wanrouter.h struct net_device* dev; /* list of network interfaces */ dev 270 include/linux/wm97xx.h struct device *dev; /* ALSA device */ dev 131 include/linux/zorro.h struct device dev; /* Generic device interface */ dev 138 include/linux/zorro.h #define to_zorro_dev(n) container_of(n, struct zorro_dev, dev) dev 149 include/linux/zorro.h struct device dev; dev 184 include/linux/zorro.h for (dev = &zorro_autocon[0]; dev < zorro_autocon+zorro_num_autocon; dev++) dev 224 include/linux/zorro.h return dev_get_drvdata(&z->dev); dev 229 include/linux/zorro.h dev_set_drvdata(&z->dev, data); dev 60 include/media/ir-common.h struct input_dev *dev; dev 133 include/media/saa7146.h void (*vv_callback)(struct saa7146_dev *dev, unsigned long status); dev 13 include/media/saa7146_vv.h dev->d_rps0.cpu_addr[ count++ ] = cpu_to_le32(x); \ dev 17 include/media/saa7146_vv.h dev->d_rps1.cpu_addr[ count++ ] = cpu_to_le32(x); \ dev 63 include/media/saa7146_vv.h int (*activate)(struct saa7146_dev *dev, dev 72 include/media/saa7146_vv.h struct saa7146_dev *dev; dev 87 include/media/saa7146_vv.h struct saa7146_dev *dev; dev 21 include/media/soc_camera.h struct device dev; dev 56 include/media/soc_camera.h struct device dev; dev 93 include/media/soc_camera.h return container_of(dev, struct soc_camera_device, dev); dev 98 include/media/soc_camera.h return container_of(dev, struct soc_camera_host, dev); dev 182 include/media/tuner.h int (*tuner_callback) (void *dev, int component, int cmd, int arg); dev 41 include/media/v4l2-dev.h struct device dev; /* v4l device */ dev 68 include/media/v4l2-dev.h #define to_video_device(cd) container_of(cd, struct video_device, dev) dev 94 include/media/v4l2-dev.h return dev_get_drvdata(&dev->dev); dev 99 include/media/v4l2-dev.h dev_set_drvdata(&dev->dev, data); dev 158 include/media/videobuf-core.h struct device *dev; dev 331 include/net/9p/9p.h u32 dev; dev 358 include/net/9p/9p.h u32 dev; dev 178 include/net/addrconf.h return rcu_dereference(dev->ip6_ptr); dev 186 include/net/addrconf.h idev = __in6_dev_get(dev); dev 47 include/net/atmclip.h #define PRIV(dev) ((struct clip_priv *) netdev_priv(dev)) dev 187 include/net/ax25.h struct net_device *dev; dev 215 include/net/ax25.h struct net_device *dev; dev 265 include/net/ax25.h skb->dev = dev; dev 305 include/net/ax25.h return dev->ax25_ptr; dev 138 include/net/bluetooth/hci_core.h struct device dev; dev 184 include/net/bluetooth/hci_core.h struct device dev; dev 435 include/net/bluetooth/hci_core.h struct hci_dev *hdev = (struct hci_dev *) skb->dev; dev 464 include/net/bluetooth/hci_core.h #define lmp_rswitch_capable(dev) ((dev)->features[0] & LMP_RSWITCH) dev 465 include/net/bluetooth/hci_core.h #define lmp_encrypt_capable(dev) ((dev)->features[0] & LMP_ENCRYPT) dev 466 include/net/bluetooth/hci_core.h #define lmp_sniff_capable(dev) ((dev)->features[0] & LMP_SNIFF) dev 467 include/net/bluetooth/hci_core.h #define lmp_sniffsubr_capable(dev) ((dev)->features[5] & LMP_SNIFF_SUBR) dev 468 include/net/bluetooth/hci_core.h #define lmp_esco_capable(dev) ((dev)->features[3] & LMP_ESCO) dev 469 include/net/bluetooth/hci_core.h #define lmp_ssp_capable(dev) ((dev)->features[6] & LMP_SIMPLE_PAIR) dev 425 include/net/cfg80211.h int (*add_beacon)(struct wiphy *wiphy, struct net_device *dev, dev 427 include/net/cfg80211.h int (*set_beacon)(struct wiphy *wiphy, struct net_device *dev, dev 429 include/net/cfg80211.h int (*del_beacon)(struct wiphy *wiphy, struct net_device *dev); dev 432 include/net/cfg80211.h int (*add_station)(struct wiphy *wiphy, struct net_device *dev, dev 434 include/net/cfg80211.h int (*del_station)(struct wiphy *wiphy, struct net_device *dev, dev 436 include/net/cfg80211.h int (*change_station)(struct wiphy *wiphy, struct net_device *dev, dev 438 include/net/cfg80211.h int (*get_station)(struct wiphy *wiphy, struct net_device *dev, dev 440 include/net/cfg80211.h int (*dump_station)(struct wiphy *wiphy, struct net_device *dev, dev 443 include/net/cfg80211.h int (*add_mpath)(struct wiphy *wiphy, struct net_device *dev, dev 445 include/net/cfg80211.h int (*del_mpath)(struct wiphy *wiphy, struct net_device *dev, dev 447 include/net/cfg80211.h int (*change_mpath)(struct wiphy *wiphy, struct net_device *dev, dev 449 include/net/cfg80211.h int (*get_mpath)(struct wiphy *wiphy, struct net_device *dev, dev 452 include/net/cfg80211.h int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev, dev 456 include/net/cfg80211.h int (*change_bss)(struct wiphy *wiphy, struct net_device *dev, dev 88 include/net/dn_dev.h struct net_device *dev; dev 179 include/net/dn_dev.h struct dn_dev *dn_db = dev->dn_ptr; dev 98 include/net/dn_route.h struct net_device *dev = skb->dev; dev 100 include/net/dn_route.h if ((dev->type != ARPHRD_ETHER) && (dev->type != ARPHRD_LOOPBACK)) dev 103 include/net/dn_route.h if (dev_hard_header(skb, dev, ETH_P_DNA_RT, dst, src, skb->len) >= 0) dev 42 include/net/dst.h struct net_device *dev; dev 101 include/net/dst.h struct net_device *dev, int how); dev 100 include/net/garp.h struct net_device *dev; dev 1000 include/net/ieee80211.h struct net_device *dev; dev 1084 include/net/ieee80211.h void (*set_security) (struct net_device * dev, dev 1087 include/net/ieee80211.h struct net_device * dev, int pri); dev 1088 include/net/ieee80211.h int (*reset_port) (struct net_device * dev); dev 1089 include/net/ieee80211.h int (*is_queue_full) (struct net_device * dev, int pri); dev 1091 include/net/ieee80211.h int (*handle_management) (struct net_device * dev, dev 1093 include/net/ieee80211.h int (*is_qos_active) (struct net_device *dev, struct sk_buff *skb); dev 1096 include/net/ieee80211.h int (*handle_auth) (struct net_device * dev, dev 1098 include/net/ieee80211.h int (*handle_deauth) (struct net_device * dev, dev 1100 include/net/ieee80211.h int (*handle_action) (struct net_device * dev, dev 1103 include/net/ieee80211.h int (*handle_disassoc) (struct net_device * dev, dev 1105 include/net/ieee80211.h int (*handle_beacon) (struct net_device * dev, dev 1108 include/net/ieee80211.h int (*handle_probe_response) (struct net_device * dev, dev 1111 include/net/ieee80211.h int (*handle_probe_request) (struct net_device * dev, dev 1114 include/net/ieee80211.h int (*handle_assoc_response) (struct net_device * dev, dev 1119 include/net/ieee80211.h int (*handle_assoc_request) (struct net_device * dev); dev 1120 include/net/ieee80211.h int (*handle_reassoc_request) (struct net_device * dev, dev 1135 include/net/ieee80211.h return ((struct ieee80211_device *)netdev_priv(dev))->priv; dev 161 include/net/if_inet6.h struct net_device *dev; dev 103 include/net/inet6_hashtables.h else return __inet6_lookup(dev_net(skb->dst->dev), hashinfo, dev 387 include/net/inet_hashtables.h return __inet_lookup(dev_net(skb->dst->dev), hashinfo, dev 91 include/net/ip6_fib.h #define rt6i_dev u.dst.dev dev 17 include/net/ip6_tunnel.h struct net_device *dev; /* virtual device associated with tunnel */ dev 13 include/net/ipip.h struct net_device *dev; dev 112 include/net/irda/irda_device.h struct net_device *dev; /* Device we are attached to */ dev 119 include/net/irda/irda_device.h int (*read)(struct net_device *dev, __u8 *buf, int len); dev 120 include/net/irda/irda_device.h int (*write)(struct net_device *dev, __u8 *buf, int len); dev 121 include/net/irda/irda_device.h int (*set_dtr_rts)(struct net_device *dev, int dtr, int rts); dev 226 include/net/irda/irda_device.h return qdisc_all_tx_empty(dev); dev 173 include/net/irda/irlan_common.h struct net_device *dev; /* Ethernet device structure*/ dev 351 include/net/iw_handler.h struct iw_statistics* (*get_wireless_stats)(struct net_device *dev); dev 83 include/net/lapb.h struct net_device *dev; dev 51 include/net/llc.h struct net_device *dev, dev 40 include/net/llc_conn.h struct net_device *dev; /* device to send to remote */ dev 880 include/net/mac80211.h set_wiphy_dev(hw->wiphy, dev); dev 144 include/net/ndisc.h if (dev) dev 145 include/net/ndisc.h return __neigh_lookup(&nd_tbl, addr, dev, 1); dev 44 include/net/neighbour.h struct net_device *dev; dev 104 include/net/neighbour.h struct net_device *dev; dev 141 include/net/neighbour.h struct net_device *dev; dev 347 include/net/neighbour.h struct neighbour *n = neigh_lookup(tbl, pkey, dev); dev 352 include/net/neighbour.h n = neigh_create(tbl, pkey, dev); dev 360 include/net/neighbour.h struct neighbour *n = neigh_lookup(tbl, pkey, dev); dev 365 include/net/neighbour.h return neigh_create(tbl, pkey, dev); dev 93 include/net/netrom.h struct net_device *dev; dev 351 include/net/pkt_cls.h struct net_device *dev; dev 356 include/net/pkt_cls.h dev = __dev_get_by_index(dev_net(skb->dev), skb->iif); dev 357 include/net/pkt_cls.h if (!dev || strcmp(indev, dev->name)) dev 107 include/net/pkt_sched.h return dev->mtu + dev->hard_header_len; dev 89 include/net/rose.h struct net_device *dev; dev 51 include/net/rtnetlink.h void (*setup)(struct net_device *dev); dev 58 include/net/rtnetlink.h int (*newlink)(struct net_device *dev, dev 61 include/net/rtnetlink.h int (*changelink)(struct net_device *dev, dev 64 include/net/rtnetlink.h void (*dellink)(struct net_device *dev); dev 66 include/net/rtnetlink.h size_t (*get_size)(const struct net_device *dev); dev 68 include/net/rtnetlink.h const struct net_device *dev); dev 70 include/net/rtnetlink.h size_t (*get_xstats_size)(const struct net_device *dev); dev 72 include/net/rtnetlink.h const struct net_device *dev); dev 42 include/net/sch_generic.h int (*enqueue)(struct sk_buff *skb, struct Qdisc *dev); dev 43 include/net/sch_generic.h struct sk_buff * (*dequeue)(struct Qdisc *dev); dev 231 include/net/sch_generic.h return qdisc->dev_queue->dev; dev 313 include/net/sch_generic.h for (i = 0; i < dev->num_tx_queues; i++) dev 314 include/net/sch_generic.h qdisc_reset(netdev_get_tx_queue(dev, i)->qdisc); dev 321 include/net/sch_generic.h for (i = 0; i < dev->num_tx_queues; i++) { dev 322 include/net/sch_generic.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 335 include/net/sch_generic.h for (i = 0; i < dev->num_tx_queues; i++) { dev 336 include/net/sch_generic.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 347 include/net/sch_generic.h for (i = 0; i < dev->num_tx_queues; i++) { dev 348 include/net/sch_generic.h struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 54 include/net/syncppp.h struct net_device *dev; /* Network device pointer */ dev 60 include/net/syncppp.h struct ppp_device **ppp = dev->ml_priv; dev 61 include/net/syncppp.h BUG_ON((*ppp)->dev != dev); dev 210 include/net/wireless.h struct device dev; dev 251 include/net/wireless.h wiphy->dev.parent = dev; dev 259 include/net/wireless.h return wiphy->dev.parent; dev 267 include/net/wireless.h return wiphy->dev.bus_id; dev 127 include/net/x25.h struct net_device *dev; dev 133 include/net/x25.h struct net_device *dev; dev 10 include/net/x25device.h skb->dev = dev; dev 273 include/net/xfrm.h struct net_device *dev); dev 111 include/pcmcia/cistpl.h } dev[CISTPL_MAX_DEVICES]; dev 47 include/pcmcia/ds.h int (*probe) (struct pcmcia_device *dev); dev 48 include/pcmcia/ds.h void (*remove) (struct pcmcia_device *dev); dev 50 include/pcmcia/ds.h int (*suspend) (struct pcmcia_device *dev); dev 51 include/pcmcia/ds.h int (*resume) (struct pcmcia_device *dev); dev 126 include/pcmcia/ds.h struct device dev; dev 137 include/pcmcia/ds.h #define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) dev 141 include/pcmcia/ds.h #define handle_to_dev(handle) (handle->dev) dev 173 include/pcmcia/ds.h dev_printk(KERN_NOTICE, &p_dev->dev, \ dev 262 include/pcmcia/ss.h struct device dev; dev 935 include/rdma/ib_verbs.h int (*mapping_error)(struct ib_device *dev, dev 937 include/rdma/ib_verbs.h u64 (*map_single)(struct ib_device *dev, dev 940 include/rdma/ib_verbs.h void (*unmap_single)(struct ib_device *dev, dev 943 include/rdma/ib_verbs.h u64 (*map_page)(struct ib_device *dev, dev 947 include/rdma/ib_verbs.h void (*unmap_page)(struct ib_device *dev, dev 950 include/rdma/ib_verbs.h int (*map_sg)(struct ib_device *dev, dev 953 include/rdma/ib_verbs.h void (*unmap_sg)(struct ib_device *dev, dev 956 include/rdma/ib_verbs.h u64 (*dma_address)(struct ib_device *dev, dev 958 include/rdma/ib_verbs.h unsigned int (*dma_len)(struct ib_device *dev, dev 960 include/rdma/ib_verbs.h void (*sync_single_for_cpu)(struct ib_device *dev, dev 964 include/rdma/ib_verbs.h void (*sync_single_for_device)(struct ib_device *dev, dev 968 include/rdma/ib_verbs.h void *(*alloc_coherent)(struct ib_device *dev, dev 972 include/rdma/ib_verbs.h void (*free_coherent)(struct ib_device *dev, dev 1137 include/rdma/ib_verbs.h struct device dev; dev 1591 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1592 include/rdma/ib_verbs.h return dev->dma_ops->mapping_error(dev, dma_addr); dev 1593 include/rdma/ib_verbs.h return dma_mapping_error(dev->dma_device, dma_addr); dev 1607 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1608 include/rdma/ib_verbs.h return dev->dma_ops->map_single(dev, cpu_addr, size, direction); dev 1609 include/rdma/ib_verbs.h return dma_map_single(dev->dma_device, cpu_addr, size, direction); dev 1623 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1624 include/rdma/ib_verbs.h dev->dma_ops->unmap_single(dev, addr, size, direction); dev 1626 include/rdma/ib_verbs.h dma_unmap_single(dev->dma_device, addr, size, direction); dev 1634 include/rdma/ib_verbs.h return dma_map_single_attrs(dev->dma_device, cpu_addr, size, dev 1643 include/rdma/ib_verbs.h return dma_unmap_single_attrs(dev->dma_device, addr, size, dev 1661 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1662 include/rdma/ib_verbs.h return dev->dma_ops->map_page(dev, page, offset, size, direction); dev 1663 include/rdma/ib_verbs.h return dma_map_page(dev->dma_device, page, offset, size, direction); dev 1677 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1678 include/rdma/ib_verbs.h dev->dma_ops->unmap_page(dev, addr, size, direction); dev 1680 include/rdma/ib_verbs.h dma_unmap_page(dev->dma_device, addr, size, direction); dev 1694 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1695 include/rdma/ib_verbs.h return dev->dma_ops->map_sg(dev, sg, nents, direction); dev 1696 include/rdma/ib_verbs.h return dma_map_sg(dev->dma_device, sg, nents, direction); dev 1710 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1711 include/rdma/ib_verbs.h dev->dma_ops->unmap_sg(dev, sg, nents, direction); dev 1713 include/rdma/ib_verbs.h dma_unmap_sg(dev->dma_device, sg, nents, direction); dev 1721 include/rdma/ib_verbs.h return dma_map_sg_attrs(dev->dma_device, sg, nents, direction, attrs); dev 1729 include/rdma/ib_verbs.h dma_unmap_sg_attrs(dev->dma_device, sg, nents, direction, attrs); dev 1739 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1740 include/rdma/ib_verbs.h return dev->dma_ops->dma_address(dev, sg); dev 1752 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1753 include/rdma/ib_verbs.h return dev->dma_ops->dma_len(dev, sg); dev 1769 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1770 include/rdma/ib_verbs.h dev->dma_ops->sync_single_for_cpu(dev, addr, size, dir); dev 1772 include/rdma/ib_verbs.h dma_sync_single_for_cpu(dev->dma_device, addr, size, dir); dev 1787 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1788 include/rdma/ib_verbs.h dev->dma_ops->sync_single_for_device(dev, addr, size, dir); dev 1790 include/rdma/ib_verbs.h dma_sync_single_for_device(dev->dma_device, addr, size, dir); dev 1805 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1806 include/rdma/ib_verbs.h return dev->dma_ops->alloc_coherent(dev, size, dma_handle, flag); dev 1811 include/rdma/ib_verbs.h ret = dma_alloc_coherent(dev->dma_device, size, &handle, flag); dev 1828 include/rdma/ib_verbs.h if (dev->dma_ops) dev 1829 include/rdma/ib_verbs.h dev->dma_ops->free_coherent(dev, size, cpu_addr, dma_handle); dev 1831 include/rdma/ib_verbs.h dma_free_coherent(dev->dma_device, size, cpu_addr, dma_handle); dev 348 include/scsi/libsas.h struct device *dev; /* should be set */ dev 531 include/scsi/libsas.h struct domain_device *dev; dev 30 include/scsi/libsrp.h struct device *dev; dev 35 include/scsi/sas_ata.h return (dev->rphy->identify.target_port_protocols & SAS_PROTOCOL_SATA); dev 230 include/scsi/scsi_device.h struct device dev; dev 250 include/scsi/scsi_device.h #define to_scsi_target(d) container_of(d, struct scsi_target, dev) dev 259 include/scsi/scsi_device.h dev_printk(prefix, &(starget)->dev, fmt, ##a) dev 79 include/scsi/scsi_host.h int (* ioctl)(struct scsi_device *dev, int cmd, void __user *arg); dev 89 include/scsi/scsi_host.h int (* compat_ioctl)(struct scsi_device *dev, int cmd, void __user *arg); dev 694 include/scsi/scsi_host.h while (!scsi_is_host_device(dev)) { dev 695 include/scsi/scsi_host.h if (!dev->parent) dev 697 include/scsi/scsi_host.h dev = dev->parent; dev 699 include/scsi/scsi_host.h return container_of(dev, struct Scsi_Host, shost_gendev); dev 108 include/scsi/scsi_transport.h struct Scsi_Host *shost = dev_to_shost(&starget->dev); dev 244 include/scsi/scsi_transport_fc.h struct device dev; dev 255 include/scsi/scsi_transport_fc.h container_of(d, struct fc_vport, dev) dev 257 include/scsi/scsi_transport_fc.h dev_to_vport(dev->parent) dev 263 include/scsi/scsi_transport_fc.h (v->dev.parent) dev 349 include/scsi/scsi_transport_fc.h struct device dev; dev 362 include/scsi/scsi_transport_fc.h container_of(d, struct fc_rport, dev) dev 364 include/scsi/scsi_transport_fc.h dev_to_rport(dev->parent) dev 366 include/scsi/scsi_transport_fc.h dev_to_shost(r->dev.parent) dev 395 include/scsi/scsi_transport_fc.h scsi_is_fc_rport(s->dev.parent) ? dev_to_rport(s->dev.parent) : NULL dev 149 include/scsi/scsi_transport_iscsi.h struct device dev; /* sysfs transport/container device */ dev 153 include/scsi/scsi_transport_iscsi.h container_of(_dev, struct iscsi_cls_conn, dev) dev 156 include/scsi/scsi_transport_iscsi.h iscsi_dev_to_session(_conn->dev.parent) dev 185 include/scsi/scsi_transport_iscsi.h struct device dev; /* sysfs transport/container device */ dev 189 include/scsi/scsi_transport_iscsi.h container_of(_dev, struct iscsi_cls_session, dev) dev 192 include/scsi/scsi_transport_iscsi.h dev_to_shost(_session->dev.parent) dev 195 include/scsi/scsi_transport_iscsi.h iscsi_dev_to_session(_stgt->dev.parent) dev 209 include/scsi/scsi_transport_iscsi.h struct device dev; dev 217 include/scsi/scsi_transport_iscsi.h dev_printk(prefix, &(_cls_session)->dev, fmt, ##a) dev 220 include/scsi/scsi_transport_iscsi.h dev_printk(prefix, &(_cls_conn)->dev, fmt, ##a) dev 55 include/scsi/scsi_transport_sas.h struct device dev; dev 82 include/scsi/scsi_transport_sas.h container_of((d), struct sas_phy, dev) dev 84 include/scsi/scsi_transport_sas.h dev_to_phy((dev)->parent) dev 86 include/scsi/scsi_transport_sas.h dev_to_shost((phy)->dev.parent) dev 90 include/scsi/scsi_transport_sas.h struct device dev; dev 98 include/scsi/scsi_transport_sas.h container_of((d), struct sas_rphy, dev) dev 100 include/scsi/scsi_transport_sas.h dev_to_rphy((dev)->parent) dev 102 include/scsi/scsi_transport_sas.h dev_to_shost((rphy)->dev.parent) dev 104 include/scsi/scsi_transport_sas.h dev_to_rphy((targ)->dev.parent) dev 139 include/scsi/scsi_transport_sas.h struct device dev; dev 154 include/scsi/scsi_transport_sas.h container_of((d), struct sas_port, dev) dev 156 include/scsi/scsi_transport_sas.h dev_to_sas_port((dev)->parent) dev 211 include/scsi/scsi_transport_sas.h if (!scsi_is_sas_rphy(dev)) dev 213 include/scsi/scsi_transport_sas.h rphy = dev_to_rphy(dev); dev 218 include/scsi/scsi_transport_sas.h #define scsi_is_sas_phy_local(phy) scsi_is_host_device((phy)->dev.parent) dev 17 include/scsi/scsi_transport_srp.h struct device dev; dev 520 include/sound/ac97_codec.h struct device dev; dev 523 include/sound/ac97_codec.h #define to_ac97_t(d) container_of(d, struct snd_ac97, dev) dev 80 include/sound/core.h int (*dev_free)(struct snd_device *dev); dev 81 include/sound/core.h int (*dev_register)(struct snd_device *dev); dev 82 include/sound/core.h int (*dev_disconnect)(struct snd_device *dev); dev 144 include/sound/core.h struct device *dev; /* device assigned to this card */ dev 202 include/sound/core.h struct device *dev; /* device for sysfs */ dev 209 include/sound/core.h return card ? card->dev : NULL; dev 252 include/sound/core.h return snd_register_device_for_dev(type, card, dev, f_ops, dev 312 include/sound/core.h #define snd_card_set_dev(card, devptr) ((card)->dev = (devptr)) dev 413 include/sound/core.h #define gameport_set_dev_parent(gp,xdev) ((gp)->dev.parent = (xdev)) dev 430 include/sound/core.h .subvendor = (vend), .subdevice = (dev) dev 431 include/sound/core.h #define SND_PCI_QUIRK_ID(vend,dev) {_SND_PCI_QUIRK_ID(vend, dev)} dev 434 include/sound/core.h {_SND_PCI_QUIRK_ID(vend, dev), .value = (val), .name = (xname)} dev 437 include/sound/core.h {_SND_PCI_QUIRK_ID(vend, dev), .value = (val)} dev 190 include/sound/info.h #define snd_oss_info_unregister(dev, num) snd_oss_info_register(dev, num, NULL) dev 34 include/sound/memalloc.h struct device *dev; /* generic device */ dev 38 include/sound/memalloc.h #define snd_dma_pci_data(pci) (&(pci)->dev) dev 56 include/sound/memalloc.h struct snd_dma_device dev; /* device type */ dev 82 include/sound/memalloc.h struct device *dev; dev 29 include/sound/minors.h #define SNDRV_MINOR(card, dev) (((card) << 5) | (dev)) dev 77 include/sound/minors.h #define SNDRV_MINOR_OSS(card, dev) (((card) << 4) | (dev)) dev 435 include/sound/pcm.h struct device *dev; /* actual hw device this belongs to */ dev 139 include/sound/rawmidi.h struct snd_info_entry *dev; dev 63 include/sound/seq_device.h int (*init_device)(struct snd_seq_device *dev); dev 64 include/sound/seq_device.h int (*free_device)(struct snd_seq_device *dev); dev 75 include/sound/seq_device.h #define SNDRV_SEQ_DEVICE_ARGPTR(dev) (void *)((char *)(dev) + sizeof(struct snd_seq_device)) dev 511 include/sound/soc.h struct device *dev; dev 181 include/sound/vx_core.h struct device *dev; dev 349 include/video/sstfb.h struct pci_dev *dev; dev 200 include/video/tgafb.h struct device *dev; dev 68 include/xen/xenbus.h struct device dev; dev 75 include/xen/xenbus.h return container_of(dev, struct xenbus_device, dev); dev 89 include/xen/xenbus.h int (*probe)(struct xenbus_device *dev, dev 91 include/xen/xenbus.h void (*otherend_changed)(struct xenbus_device *dev, dev 93 include/xen/xenbus.h int (*remove)(struct xenbus_device *dev); dev 94 include/xen/xenbus.h int (*suspend)(struct xenbus_device *dev); dev 95 include/xen/xenbus.h int (*suspend_cancel)(struct xenbus_device *dev); dev 96 include/xen/xenbus.h int (*resume)(struct xenbus_device *dev); dev 99 include/xen/xenbus.h int (*read_otherend_details)(struct xenbus_device *dev); dev 100 include/xen/xenbus.h int (*is_ready)(struct xenbus_device *dev); dev 18 init/do_mounts.h return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); dev 120 init/do_mounts_md.c dev_t dev; dev 136 init/do_mounts_md.c dev = MKDEV(mdp_major, minor << MdpMinorShift); dev 138 init/do_mounts_md.c dev = MKDEV(MD_MAJOR, minor); dev 139 init/do_mounts_md.c create_dev(name, dev); dev 149 init/do_mounts_md.c dev = name_to_dev_t(devname); dev 155 init/do_mounts_md.c dev = new_decode_dev(rdev); dev 156 init/do_mounts_md.c if (!dev) { dev 161 init/do_mounts_md.c devices[i] = dev; dev 205 init/do_mounts_md.c dev = devices[i]; dev 206 init/do_mounts_md.c if (!dev) dev 211 init/do_mounts_md.c dinfo.major = MAJOR(dev); dev 212 init/do_mounts_md.c dinfo.minor = MINOR(dev); dev 218 init/do_mounts_md.c dev = devices[i]; dev 219 init/do_mounts_md.c if (!dev) dev 221 init/do_mounts_md.c dinfo.major = MAJOR(dev); dev 222 init/do_mounts_md.c dinfo.minor = MINOR(dev); dev 61 kernel/audit.h dev_t dev; /* associated superblock device */ dev 189 kernel/auditfilter.c watch->dev = (dev_t)-1; dev 859 kernel/auditfilter.c new->dev = old->dev; dev 1000 kernel/auditfilter.c nwatch->dev = dev; dev 1032 kernel/auditfilter.c dev, ino); dev 1226 kernel/auditfilter.c watch->dev = ndw->path.dentry->d_inode->i_sb->s_dev; dev 97 kernel/auditsc.c dev_t dev; dev 488 kernel/auditsc.c result = audit_comparator(MAJOR(name->dev), dev 492 kernel/auditsc.c if (audit_comparator(MAJOR(ctx->names[j].dev), f->op, f->val)) { dev 501 kernel/auditsc.c result = audit_comparator(MINOR(name->dev), dev 505 kernel/auditsc.c if (audit_comparator(MINOR(ctx->names[j].dev), f->op, f->val)) { dev 526 kernel/auditsc.c result = (name->dev == rule->watch->dev && dev 1403 kernel/auditsc.c MAJOR(n->dev), dev 1404 kernel/auditsc.c MINOR(n->dev), dev 1794 kernel/auditsc.c name->dev = inode->i_sb->s_dev; dev 27 kernel/dma-coherent.c if (dev->dma_mem) dev 36 kernel/dma-coherent.c dev->dma_mem = kzalloc(sizeof(struct dma_coherent_mem), GFP_KERNEL); dev 37 kernel/dma-coherent.c if (!dev->dma_mem) dev 39 kernel/dma-coherent.c dev->dma_mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL); dev 40 kernel/dma-coherent.c if (!dev->dma_mem->bitmap) dev 43 kernel/dma-coherent.c dev->dma_mem->virt_base = mem_base; dev 44 kernel/dma-coherent.c dev->dma_mem->device_base = device_addr; dev 45 kernel/dma-coherent.c dev->dma_mem->size = pages; dev 46 kernel/dma-coherent.c dev->dma_mem->flags = flags; dev 54 kernel/dma-coherent.c kfree(dev->dma_mem); dev 64 kernel/dma-coherent.c struct dma_coherent_mem *mem = dev->dma_mem; dev 68 kernel/dma-coherent.c dev->dma_mem = NULL; dev 78 kernel/dma-coherent.c struct dma_coherent_mem *mem = dev->dma_mem; dev 112 kernel/dma-coherent.c struct dma_coherent_mem *mem = dev ? dev->dma_mem : NULL; dev 144 kernel/dma-coherent.c struct dma_coherent_mem *mem = dev ? dev->dma_mem : NULL; dev 1291 kernel/hrtimer.c dev->next_event.tv64 = KTIME_MAX; dev 65 kernel/irq/devres.c devres_add(dev, dr); dev 87 kernel/irq/devres.c WARN_ON(devres_destroy(dev, devm_irq_release, devm_irq_match, dev 614 kernel/power/main.c printk(err_readtime, rtc->dev.bus_id, status); dev 625 kernel/power/main.c printk(err_wakealarm, rtc->dev.bus_id, status); dev 652 kernel/power/main.c struct rtc_device *candidate = to_rtc_device(dev); dev 656 kernel/power/main.c if (!device_may_wakeup(candidate->dev.parent)) dev 659 kernel/power/main.c *(char **)name_ptr = dev->bus_id; dev 392 kernel/power/user.c swdev = old_decode_dev(swap_area.dev); dev 783 kernel/resource.c devres_add(dev, dr); dev 797 kernel/resource.c WARN_ON(devres_destroy(dev, devm_region_release, devm_region_match, dev 308 kernel/rtmutex-tester.c td = container_of(dev, struct test_thread_data, sysdev); dev 371 kernel/rtmutex-tester.c td = container_of(dev, struct test_thread_data, sysdev); dev 68 kernel/time/clockevents.c if (dev->mode != mode) { dev 69 kernel/time/clockevents.c dev->set_mode(mode, dev); dev 70 kernel/time/clockevents.c dev->mode = mode; dev 80 kernel/time/clockevents.c clockevents_set_mode(dev, CLOCK_EVT_MODE_SHUTDOWN); dev 81 kernel/time/clockevents.c dev->next_event.tv64 = KTIME_MAX; dev 106 kernel/time/clockevents.c dev->next_event = expires; dev 108 kernel/time/clockevents.c if (dev->mode == CLOCK_EVT_MODE_SHUTDOWN) dev 111 kernel/time/clockevents.c if (delta > dev->max_delta_ns) dev 112 kernel/time/clockevents.c delta = dev->max_delta_ns; dev 113 kernel/time/clockevents.c if (delta < dev->min_delta_ns) dev 114 kernel/time/clockevents.c delta = dev->min_delta_ns; dev 116 kernel/time/clockevents.c clc = delta * dev->mult; dev 117 kernel/time/clockevents.c clc >>= dev->shift; dev 119 kernel/time/clockevents.c return dev->set_next_event((unsigned long) clc, dev); dev 142 kernel/time/clockevents.c raw_notifier_call_chain(&clockevents_chain, reason, dev); dev 151 kernel/time/clockevents.c struct clock_event_device *dev; dev 154 kernel/time/clockevents.c dev = list_entry(clockevents_released.next, dev 156 kernel/time/clockevents.c list_del(&dev->list); dev 157 kernel/time/clockevents.c list_add(&dev->list, &clockevent_devices); dev 158 kernel/time/clockevents.c clockevents_do_notify(CLOCK_EVT_NOTIFY_ADD, dev); dev 168 kernel/time/clockevents.c BUG_ON(dev->mode != CLOCK_EVT_MODE_UNUSED); dev 173 kernel/time/clockevents.c if (unlikely(!dev->mult)) { dev 174 kernel/time/clockevents.c dev->mult = 1; dev 180 kernel/time/clockevents.c list_add(&dev->list, &clockevent_devices); dev 181 kernel/time/clockevents.c clockevents_do_notify(CLOCK_EVT_NOTIFY_ADD, dev); dev 69 kernel/time/tick-broadcast.c tick_broadcast_device.evtdev->rating >= dev->rating) || dev 70 kernel/time/tick-broadcast.c (dev->features & CLOCK_EVT_FEAT_C3STOP)) dev 73 kernel/time/tick-broadcast.c clockevents_exchange_device(NULL, dev); dev 74 kernel/time/tick-broadcast.c tick_broadcast_device.evtdev = dev; dev 76 kernel/time/tick-broadcast.c tick_broadcast_start_periodic(dev); dev 85 kernel/time/tick-broadcast.c return (dev && tick_broadcast_device.evtdev == dev); dev 105 kernel/time/tick-broadcast.c if (!tick_device_is_functional(dev)) { dev 106 kernel/time/tick-broadcast.c dev->event_handler = tick_handle_periodic; dev 116 kernel/time/tick-broadcast.c if (!(dev->features & CLOCK_EVT_FEAT_C3STOP)) { dev 185 kernel/time/tick-broadcast.c if (dev->mode == CLOCK_EVT_MODE_PERIODIC) dev 195 kernel/time/tick-broadcast.c for (next = dev->next_event; ;) { dev 198 kernel/time/tick-broadcast.c if (!clockevents_program_event(dev, next, ktime_get())) dev 210 kernel/time/tick-broadcast.c struct clock_event_device *bc, *dev; dev 219 kernel/time/tick-broadcast.c dev = td->evtdev; dev 225 kernel/time/tick-broadcast.c if (!dev || !(dev->features & CLOCK_EVT_FEAT_C3STOP)) dev 228 kernel/time/tick-broadcast.c if (!tick_device_is_functional(dev)) dev 240 kernel/time/tick-broadcast.c clockevents_shutdown(dev); dev 251 kernel/time/tick-broadcast.c tick_setup_periodic(dev, 0); dev 289 kernel/time/tick-broadcast.c dev->event_handler = tick_handle_periodic; dev 291 kernel/time/tick-broadcast.c dev->event_handler = tick_handle_periodic_broadcast; dev 398 kernel/time/tick-broadcast.c dev->next_event.tv64 = KTIME_MAX; dev 443 kernel/time/tick-broadcast.c struct clock_event_device *bc, *dev; dev 460 kernel/time/tick-broadcast.c dev = td->evtdev; dev 462 kernel/time/tick-broadcast.c if (!(dev->features & CLOCK_EVT_FEAT_C3STOP)) dev 468 kernel/time/tick-broadcast.c clockevents_set_mode(dev, CLOCK_EVT_MODE_SHUTDOWN); dev 469 kernel/time/tick-broadcast.c if (dev->next_event.tv64 < bc->next_event.tv64) dev 470 kernel/time/tick-broadcast.c tick_broadcast_set_event(dev->next_event, 1); dev 475 kernel/time/tick-broadcast.c clockevents_set_mode(dev, CLOCK_EVT_MODE_ONESHOT); dev 476 kernel/time/tick-broadcast.c if (dev->next_event.tv64 != KTIME_MAX) dev 477 kernel/time/tick-broadcast.c tick_program_event(dev->next_event, 1); dev 52 kernel/time/tick-common.c struct clock_event_device *dev = __get_cpu_var(tick_cpu_device).evtdev; dev 54 kernel/time/tick-common.c return dev && (dev->features & CLOCK_EVT_FEAT_ONESHOT); dev 86 kernel/time/tick-common.c if (dev->mode != CLOCK_EVT_MODE_ONESHOT) dev 92 kernel/time/tick-common.c next = ktime_add(dev->next_event, tick_period); dev 94 kernel/time/tick-common.c if (!clockevents_program_event(dev, next, ktime_get())) dev 106 kernel/time/tick-common.c tick_set_periodic_handler(dev, broadcast); dev 109 kernel/time/tick-common.c if (!tick_device_is_functional(dev)) dev 112 kernel/time/tick-common.c if ((dev->features & CLOCK_EVT_FEAT_PERIODIC) && dev 114 kernel/time/tick-common.c clockevents_set_mode(dev, CLOCK_EVT_MODE_PERIODIC); dev 124 kernel/time/tick-common.c clockevents_set_mode(dev, CLOCK_EVT_MODE_ONESHOT); dev 127 kernel/time/tick-common.c if (!clockevents_program_event(dev, next, ktime_get())) dev 286 kernel/time/tick-common.c struct clock_event_device *dev = td->evtdev; dev 291 kernel/time/tick-common.c if (dev) { dev 296 kernel/time/tick-common.c dev->mode = CLOCK_EVT_MODE_UNUSED; dev 297 kernel/time/tick-common.c clockevents_exchange_device(dev, NULL); dev 347 kernel/time/tick-common.c return tick_check_new_device(dev); dev 352 kernel/time/tick-common.c tick_broadcast_on_off(reason, dev); dev 361 kernel/time/tick-common.c tick_shutdown_broadcast_oneshot(dev); dev 362 kernel/time/tick-common.c tick_shutdown_broadcast(dev); dev 363 kernel/time/tick-common.c tick_shutdown(dev); dev 123 kernel/time/tick-internal.h dev->event_handler = tick_handle_periodic; dev 132 kernel/time/tick-internal.h return !(dev->features & CLOCK_EVT_FEAT_DUMMY); dev 35 kernel/time/tick-oneshot.c int ret = clockevents_program_event(dev, expires, now); dev 47 kernel/time/tick-oneshot.c if (!dev->min_delta_ns) dev 48 kernel/time/tick-oneshot.c dev->min_delta_ns = 5000; dev 50 kernel/time/tick-oneshot.c dev->min_delta_ns += dev->min_delta_ns >> 1; dev 54 kernel/time/tick-oneshot.c dev->name ? dev->name : "?", dev 55 kernel/time/tick-oneshot.c dev->min_delta_ns << 1); dev 61 kernel/time/tick-oneshot.c expires = ktime_add_ns(now, dev->min_delta_ns); dev 70 kernel/time/tick-oneshot.c struct clock_event_device *dev = __get_cpu_var(tick_cpu_device).evtdev; dev 72 kernel/time/tick-oneshot.c return tick_dev_program_event(dev, expires, force); dev 81 kernel/time/tick-oneshot.c struct clock_event_device *dev = td->evtdev; dev 83 kernel/time/tick-oneshot.c clockevents_set_mode(dev, CLOCK_EVT_MODE_ONESHOT); dev 105 kernel/time/tick-oneshot.c struct clock_event_device *dev = td->evtdev; dev 107 kernel/time/tick-oneshot.c if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT) || dev 108 kernel/time/tick-oneshot.c !tick_device_is_functional(dev)) { dev 112 kernel/time/tick-oneshot.c if (!dev) { dev 115 kernel/time/tick-oneshot.c if (!tick_device_is_functional(dev)) dev 116 kernel/time/tick-oneshot.c printk(" %s is not functional.\n", dev->name); dev 119 kernel/time/tick-oneshot.c dev->name); dev 125 kernel/time/tick-oneshot.c dev->event_handler = handler; dev 126 kernel/time/tick-oneshot.c clockevents_set_mode(dev, CLOCK_EVT_MODE_ONESHOT); dev 218 kernel/time/tick-sched.c struct clock_event_device *dev = __get_cpu_var(tick_cpu_device).evtdev; dev 363 kernel/time/tick-sched.c ts->sleep_length = ktime_sub(dev->next_event, now); dev 474 kernel/time/tick-sched.c dev->next_event.tv64 = KTIME_MAX; dev 188 kernel/time/timer_list.c struct clock_event_device *dev = td->evtdev; dev 194 kernel/time/timer_list.c if (!dev) { dev 198 kernel/time/timer_list.c SEQ_printf(m, "%s\n", dev->name); dev 199 kernel/time/timer_list.c SEQ_printf(m, " max_delta_ns: %lu\n", dev->max_delta_ns); dev 200 kernel/time/timer_list.c SEQ_printf(m, " min_delta_ns: %lu\n", dev->min_delta_ns); dev 201 kernel/time/timer_list.c SEQ_printf(m, " mult: %lu\n", dev->mult); dev 202 kernel/time/timer_list.c SEQ_printf(m, " shift: %d\n", dev->shift); dev 203 kernel/time/timer_list.c SEQ_printf(m, " mode: %d\n", dev->mode); dev 205 kernel/time/timer_list.c (unsigned long long) ktime_to_ns(dev->next_event)); dev 208 kernel/time/timer_list.c print_name_offset(m, dev->set_next_event); dev 212 kernel/time/timer_list.c print_name_offset(m, dev->set_mode); dev 216 kernel/time/timer_list.c print_name_offset(m, dev->event_handler); dev 16 kernel/trace/trace_mmiotrace.c struct pci_dev *dev; dev 68 kernel/trace/trace_mmiotrace.c const struct pci_driver *drv = pci_dev_driver(dev); dev 72 kernel/trace/trace_mmiotrace.c dev->bus->number, dev->devfn, dev 73 kernel/trace/trace_mmiotrace.c dev->vendor, dev->device, dev->irq); dev 80 kernel/trace/trace_mmiotrace.c pci_resource_to_user(dev, i, &dev->resource[i], &start, &end); dev 83 kernel/trace/trace_mmiotrace.c (dev->resource[i].flags & PCI_REGION_FLAG_MASK))); dev 86 kernel/trace/trace_mmiotrace.c pci_resource_to_user(dev, i, &dev->resource[i], &start, &end); dev 88 kernel/trace/trace_mmiotrace.c dev->resource[i].start < dev->resource[i].end ? dev 102 kernel/trace/trace_mmiotrace.c pci_dev_put(hiter->dev); dev 117 kernel/trace/trace_mmiotrace.c hiter->dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL); dev 161 kernel/trace/trace_mmiotrace.c mmio_print_pcidev(s, hiter->dev); dev 162 kernel/trace/trace_mmiotrace.c hiter->dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, hiter->dev); dev 164 kernel/trace/trace_mmiotrace.c if (!hiter->dev) { dev 35 lib/devres.c devres_add(dev, ptr); dev 64 lib/devres.c devres_add(dev, ptr); dev 82 lib/devres.c WARN_ON(devres_destroy(dev, devm_ioremap_release, devm_ioremap_match, dev 123 lib/devres.c devres_add(dev, ptr); dev 142 lib/devres.c WARN_ON(devres_destroy(dev, devm_ioport_map_release, dev 159 lib/devres.c struct pci_dev *dev = container_of(gendev, struct pci_dev, dev); dev 165 lib/devres.c pci_iounmap(dev, this->table[i]); dev 185 lib/devres.c dr = devres_find(&pdev->dev, pcim_iomap_release, NULL, NULL); dev 192 lib/devres.c dr = devres_get(&pdev->dev, new_dr, NULL, NULL); dev 258 lib/iomap.c resource_size_t start = pci_resource_start(dev, bar); dev 259 lib/iomap.c resource_size_t len = pci_resource_len(dev, bar); dev 260 lib/iomap.c unsigned long flags = pci_resource_flags(dev, bar); dev 530 lib/swiotlb.c "device %s\n", size, dev ? dev->bus_id : "?"); dev 91 mm/backing-dev.c struct backing_dev_info *bdi = dev_get_drvdata(dev); dev 107 mm/backing-dev.c static ssize_t name##_show(struct device *dev, \ dev 110 mm/backing-dev.c struct backing_dev_info *bdi = dev_get_drvdata(dev); \ dev 120 mm/backing-dev.c struct backing_dev_info *bdi = dev_get_drvdata(dev); dev 138 mm/backing-dev.c struct backing_dev_info *bdi = dev_get_drvdata(dev); dev 177 mm/backing-dev.c struct device *dev; dev 180 mm/backing-dev.c dev = device_create_vargs(bdi_class, parent, MKDEV(0, 0), bdi, fmt, args); dev 182 mm/backing-dev.c if (IS_ERR(dev)) { dev 183 mm/backing-dev.c ret = PTR_ERR(dev); dev 187 mm/backing-dev.c bdi->dev = dev; dev 188 mm/backing-dev.c bdi_debug_register(bdi, dev_name(dev)); dev 197 mm/backing-dev.c return bdi_register(bdi, NULL, "%u:%u", MAJOR(dev), MINOR(dev)); dev 203 mm/backing-dev.c if (bdi->dev) { dev 205 mm/backing-dev.c device_unregister(bdi->dev); dev 206 mm/backing-dev.c bdi->dev = NULL; dev 216 mm/backing-dev.c bdi->dev = NULL; dev 48 mm/dmapool.c struct device *dev; dev 85 mm/dmapool.c list_for_each_entry(pool, &dev->dma_pools, pools) { dev 159 mm/dmapool.c retval = kmalloc_node(sizeof(*retval), GFP_KERNEL, dev_to_node(dev)); dev 165 mm/dmapool.c retval->dev = dev; dev 174 mm/dmapool.c if (dev) { dev 178 mm/dmapool.c if (list_empty(&dev->dma_pools)) dev 179 mm/dmapool.c ret = device_create_file(dev, &dev_attr_pools); dev 184 mm/dmapool.c list_add(&retval->pools, &dev->dma_pools); dev 220 mm/dmapool.c page->vaddr = dma_alloc_coherent(pool->dev, pool->allocation, dev 249 mm/dmapool.c dma_free_coherent(pool->dev, pool->allocation, page->vaddr, dma); dev 266 mm/dmapool.c if (pool->dev && list_empty(&pool->dev->dma_pools)) dev 267 mm/dmapool.c device_remove_file(pool->dev, &dev_attr_pools); dev 275 mm/dmapool.c if (pool->dev) dev 276 mm/dmapool.c dev_err(pool->dev, dev 387 mm/dmapool.c if (pool->dev) dev 388 mm/dmapool.c dev_err(pool->dev, dev 400 mm/dmapool.c if (pool->dev) dev 401 mm/dmapool.c dev_err(pool->dev, dev 417 mm/dmapool.c if (pool->dev) dev 418 mm/dmapool.c dev_err(pool->dev, "dma_pool_free %s, dma %Lx " dev 481 mm/dmapool.c pool = *ptr = dma_pool_create(name, dev, size, align, allocation); dev 483 mm/dmapool.c devres_add(dev, ptr); dev 499 mm/dmapool.c struct device *dev = pool->dev; dev 502 mm/dmapool.c WARN_ON(devres_destroy(dev, dmam_pool_release, dmam_pool_match, pool)); dev 1525 mm/shmem.c init_special_inode(inode, mode, dev); dev 1762 mm/shmem.c struct inode *inode = shmem_get_inode(dir->i_sb, mode, dev); dev 66 net/802/fc.c memcpy(fch->saddr,saddr,dev->addr_len); dev 68 net/802/fc.c memcpy(fch->saddr,dev->dev_addr,dev->addr_len); dev 72 net/802/fc.c memcpy(fch->daddr,daddr,dev->addr_len); dev 105 net/802/fc.c dev->header_ops = &fc_header_ops; dev 106 net/802/fc.c dev->type = ARPHRD_IEEE802; dev 107 net/802/fc.c dev->hard_header_len = FC_HLEN; dev 108 net/802/fc.c dev->mtu = 2024; dev 109 net/802/fc.c dev->addr_len = FC_ALEN; dev 110 net/802/fc.c dev->tx_queue_len = 100; /* Long queues on fc */ dev 111 net/802/fc.c dev->flags = IFF_BROADCAST; dev 113 net/802/fc.c memset(dev->broadcast, 0xFF, FC_ALEN); dev 78 net/802/fddi.c memcpy(fddi->saddr, saddr, dev->addr_len); dev 80 net/802/fddi.c memcpy(fddi->saddr, dev->dev_addr, dev->addr_len); dev 84 net/802/fddi.c memcpy(fddi->daddr, daddr, dev->addr_len); dev 110 net/802/fddi.c skb->dev->name, ntohs(fddi->hdr.llc_snap.ethertype)); dev 133 net/802/fddi.c skb->dev = dev; dev 151 net/802/fddi.c if (memcmp(fddi->daddr, dev->broadcast, FDDI_K_ALEN) == 0) dev 157 net/802/fddi.c else if (dev->flags & IFF_PROMISC) dev 159 net/802/fddi.c if (memcmp(fddi->daddr, dev->dev_addr, FDDI_K_ALEN)) dev 174 net/802/fddi.c dev->mtu = new_mtu; dev 185 net/802/fddi.c dev->change_mtu = fddi_change_mtu; dev 186 net/802/fddi.c dev->header_ops = &fddi_header_ops; dev 188 net/802/fddi.c dev->type = ARPHRD_FDDI; dev 189 net/802/fddi.c dev->hard_header_len = FDDI_K_SNAP_HLEN+3; /* Assume 802.2 SNAP hdr len + 3 pad bytes */ dev 190 net/802/fddi.c dev->mtu = FDDI_K_SNAP_DLEN; /* Assume max payload of 802.2 SNAP frame */ dev 191 net/802/fddi.c dev->addr_len = FDDI_K_ALEN; dev 192 net/802/fddi.c dev->tx_queue_len = 100; /* Long queues on FDDI */ dev 193 net/802/fddi.c dev->flags = IFF_BROADCAST | IFF_MULTICAST; dev 195 net/802/fddi.c memset(dev->broadcast, 0xFF, FDDI_K_ALEN); dev 215 net/802/garp.c skb = alloc_skb(app->dev->mtu + LL_RESERVED_SPACE(app->dev), dev 220 net/802/garp.c skb->dev = app->dev; dev 222 net/802/garp.c skb_reserve(skb, LL_RESERVED_SPACE(app->dev) + LLC_RESERVE); dev 250 net/802/garp.c llc_mac_hdr_init(app->pdu, app->dev->dev_addr, dev 348 net/802/garp.c struct garp_port *port = dev->garp_port; dev 368 net/802/garp.c struct garp_port *port = dev->garp_port; dev 509 net/802/garp.c port = rcu_dereference(dev->garp_port); dev 542 net/802/garp.c rcu_assign_pointer(dev->garp_port, port); dev 548 net/802/garp.c struct garp_port *port = dev->garp_port; dev 555 net/802/garp.c rcu_assign_pointer(dev->garp_port, NULL); dev 567 net/802/garp.c if (!dev->garp_port) { dev 568 net/802/garp.c err = garp_init_port(dev); dev 578 net/802/garp.c err = dev_mc_add(dev, appl->proto.group_address, ETH_ALEN, 0); dev 582 net/802/garp.c app->dev = dev; dev 587 net/802/garp.c rcu_assign_pointer(dev->garp_port->applicants[appl->type], app); dev 595 net/802/garp.c garp_release_port(dev); dev 603 net/802/garp.c struct garp_port *port = dev->garp_port; dev 618 net/802/garp.c dev_mc_delete(dev, appl->proto.group_address, ETH_ALEN, 0); dev 620 net/802/garp.c garp_release_port(dev); dev 72 net/802/hippi.c memcpy(hip->le.src_switch_addr, dev->dev_addr + 3, 3); dev 109 net/802/hippi.c printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype)); dev 133 net/802/hippi.c skb->dev = dev; dev 154 net/802/hippi.c dev->mtu = new_mtu; dev 165 net/802/hippi.c if (netif_running(dev)) dev 167 net/802/hippi.c memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); dev 193 net/802/hippi.c dev->set_multicast_list = NULL; dev 194 net/802/hippi.c dev->change_mtu = hippi_change_mtu; dev 195 net/802/hippi.c dev->header_ops = &hippi_header_ops; dev 196 net/802/hippi.c dev->set_mac_address = hippi_mac_addr; dev 197 net/802/hippi.c dev->neigh_setup = hippi_neigh_setup_dev; dev 204 net/802/hippi.c dev->type = ARPHRD_HIPPI; dev 205 net/802/hippi.c dev->hard_header_len = HIPPI_HLEN; dev 206 net/802/hippi.c dev->mtu = 65280; dev 207 net/802/hippi.c dev->addr_len = HIPPI_ALEN; dev 208 net/802/hippi.c dev->tx_queue_len = 25 /* 5 */; dev 209 net/802/hippi.c memset(dev->broadcast, 0xFF, HIPPI_ALEN); dev 216 net/802/hippi.c dev->flags = 0; dev 32 net/802/p8023.c struct net_device *dev = skb->dev; dev 34 net/802/p8023.c dev_hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len); dev 66 net/802/psnap.c rc = proto->rcvfunc(skb, dev, &snap_packet_type, orig_dev); dev 55 net/802/stp.c proto->rcv(proto, skb, dev); dev 135 net/802/tr.c memcpy(trh->saddr,saddr,dev->addr_len); dev 137 net/802/tr.c memcpy(trh->saddr,dev->dev_addr,dev->addr_len); dev 145 net/802/tr.c memcpy(trh->daddr,daddr,dev->addr_len); dev 146 net/802/tr.c tr_source_route(skb, trh, dev); dev 162 net/802/tr.c struct net_device *dev = skb->dev; dev 180 net/802/tr.c tr_source_route(skb,trh,dev); dev 198 net/802/tr.c skb->dev = dev; dev 211 net/802/tr.c if(!memcmp(trh->daddr,dev->broadcast,TR_ALEN)) dev 220 net/802/tr.c else if(dev->flags & IFF_PROMISC) dev 222 net/802/tr.c if(memcmp(trh->daddr, dev->dev_addr, TR_ALEN)) dev 228 net/802/tr.c tr_add_rif_info(trh,dev) ; dev 267 net/802/tr.c if( (!memcmp(&(trh->daddr[0]),&(dev->broadcast[0]),TR_ALEN)) || dev 394 net/802/tr.c entry->iface = dev->ifindex; dev 541 net/802/tr.c struct net_device *dev = dev_get_by_index(&init_net, entry->iface); dev 546 net/802/tr.c dev?dev->name:"?", dev 608 net/802/tr.c dev->header_ops = &tr_header_ops; dev 610 net/802/tr.c dev->type = ARPHRD_IEEE802_TR; dev 611 net/802/tr.c dev->hard_header_len = TR_HLEN; dev 612 net/802/tr.c dev->mtu = 2000; dev 613 net/802/tr.c dev->addr_len = TR_ALEN; dev 614 net/802/tr.c dev->tx_queue_len = 100; /* Long queues on tr */ dev 616 net/802/tr.c memset(dev->broadcast,0xFF, TR_ALEN); dev 619 net/802/tr.c dev->flags = IFF_BROADCAST | IFF_MULTICAST ; dev 145 net/8021q/vlan.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 166 net/8021q/vlan.c unregister_netdevice(dev); dev 192 net/8021q/vlan.c if (dev->operstate == IF_OPER_DORMANT) dev 197 net/8021q/vlan.c if (netif_carrier_ok(dev)) { dev 241 net/8021q/vlan.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 261 net/8021q/vlan.c err = register_netdevice(dev); dev 268 net/8021q/vlan.c vlan_transfer_operstate(real_dev, dev); dev 269 net/8021q/vlan.c linkwatch_fire_event(dev); /* _MUST_ call rfc2863_policy() */ dev 274 net/8021q/vlan.c vlan_group_set_device(grp, vlan_id, dev); dev 372 net/8021q/vlan.c if (!compare_ether_addr(vlan->real_dev_addr, dev->dev_addr)) dev 378 net/8021q/vlan.c !compare_ether_addr(vlandev->dev_addr, dev->dev_addr)) dev 379 net/8021q/vlan.c dev_unicast_delete(dev, vlandev->dev_addr, ETH_ALEN); dev 384 net/8021q/vlan.c compare_ether_addr(vlandev->dev_addr, dev->dev_addr)) dev 385 net/8021q/vlan.c dev_unicast_add(dev, vlandev->dev_addr, ETH_ALEN); dev 387 net/8021q/vlan.c memcpy(vlan->real_dev_addr, dev->dev_addr, ETH_ALEN); dev 395 net/8021q/vlan.c vlandev->features &= ~dev->vlan_features; dev 396 net/8021q/vlan.c vlandev->features |= dev->features & dev->vlan_features; dev 397 net/8021q/vlan.c vlandev->gso_max_size = dev->gso_max_size; dev 407 net/8021q/vlan.c vlan_proc_rem_dev(dev); dev 408 net/8021q/vlan.c if (vlan_proc_add_dev(dev) < 0) dev 410 net/8021q/vlan.c dev->name); dev 413 net/8021q/vlan.c if (vlan_proc_add_dev(dev) < 0) dev 415 net/8021q/vlan.c dev->name); dev 418 net/8021q/vlan.c vlan_proc_rem_dev(dev); dev 426 net/8021q/vlan.c struct net_device *dev = ptr; dev 431 net/8021q/vlan.c if (is_vlan_dev(dev)) dev 432 net/8021q/vlan.c __vlan_device_event(dev, event); dev 434 net/8021q/vlan.c grp = __vlan_find_group(dev); dev 450 net/8021q/vlan.c vlan_transfer_operstate(dev, vlandev); dev 465 net/8021q/vlan.c vlan_sync_address(dev, vlandev); dev 476 net/8021q/vlan.c vlan_transfer_features(dev, vlandev); dev 545 net/8021q/vlan.c struct net_device *dev = NULL; dev 565 net/8021q/vlan.c dev = __dev_get_by_name(net, args.device1); dev 566 net/8021q/vlan.c if (!dev) dev 570 net/8021q/vlan.c if (args.cmd != ADD_VLAN_CMD && !is_vlan_dev(dev)) dev 579 net/8021q/vlan.c vlan_dev_set_ingress_priority(dev, dev 589 net/8021q/vlan.c err = vlan_dev_set_egress_priority(dev, dev 598 net/8021q/vlan.c err = vlan_dev_change_flags(dev, dev 623 net/8021q/vlan.c err = register_vlan_device(dev, args.u.VID); dev 630 net/8021q/vlan.c unregister_vlan_dev(dev); dev 636 net/8021q/vlan.c vlan_dev_get_realdev_name(dev, args.u.device2); dev 644 net/8021q/vlan.c args.u.VID = vlan_dev_vlan_id(dev); dev 52 net/8021q/vlan.h return netdev_priv(dev); dev 90 net/8021q/vlan.h struct vlan_dev_info *vip = vlan_dev_info(dev); dev 118 net/8021q/vlan.h return dev->priv_flags & IFF_802_1Q_VLAN; dev 20 net/8021q/vlan_core.c skb->dev = vlan_group_get_device(grp, vlan_tci & VLAN_VID_MASK); dev 21 net/8021q/vlan_core.c if (skb->dev == NULL) { dev 27 net/8021q/vlan_core.c skb->dev->last_rx = jiffies; dev 30 net/8021q/vlan_core.c stats = &skb->dev->stats; dev 34 net/8021q/vlan_core.c skb->priority = vlan_get_ingress_priority(skb->dev, vlan_tci); dev 46 net/8021q/vlan_core.c skb->dev->dev_addr)) dev 56 net/8021q/vlan_core.c return vlan_dev_info(dev)->real_dev; dev 62 net/8021q/vlan_core.c return vlan_dev_info(dev)->vlan_id; dev 46 net/8021q/vlan_dev.c struct net_device *dev = skb->dev; dev 58 net/8021q/vlan_dev.c dev->name, ntohs(veth->h_vlan_encapsulated_proto)); dev 60 net/8021q/vlan_dev.c memcpy(veth->h_source, dev->dev_addr, ETH_ALEN); dev 69 net/8021q/vlan_dev.c if (vlan_dev_info(skb->dev)->flags & VLAN_FLAG_REORDER_HDR) { dev 159 net/8021q/vlan_dev.c skb->dev = __find_vlan_dev(dev, vlan_id); dev 160 net/8021q/vlan_dev.c if (!skb->dev) { dev 162 net/8021q/vlan_dev.c __func__, vlan_id, dev->name); dev 166 net/8021q/vlan_dev.c skb->dev->last_rx = jiffies; dev 168 net/8021q/vlan_dev.c stats = &skb->dev->stats; dev 174 net/8021q/vlan_dev.c skb->priority = vlan_get_ingress_priority(skb->dev, vlan_tci); dev 194 net/8021q/vlan_dev.c skb->dev->dev_addr)) dev 225 net/8021q/vlan_dev.c mp = vlan_dev_info(dev)->egress_priority_map[(skb->priority & 0xF)]; dev 256 net/8021q/vlan_dev.c if (WARN_ON(skb_headroom(skb) < dev->hard_header_len)) dev 259 net/8021q/vlan_dev.c if (!(vlan_dev_info(dev)->flags & VLAN_FLAG_REORDER_HDR)) { dev 262 net/8021q/vlan_dev.c vlan_tci = vlan_dev_info(dev)->vlan_id; dev 263 net/8021q/vlan_dev.c vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb); dev 283 net/8021q/vlan_dev.c saddr = dev->dev_addr; dev 286 net/8021q/vlan_dev.c dev = vlan_dev_info(dev)->real_dev; dev 287 net/8021q/vlan_dev.c rc = dev_hard_header(skb, dev, type, daddr, saddr, len + vhdrlen); dev 295 net/8021q/vlan_dev.c struct net_device_stats *stats = &dev->stats; dev 304 net/8021q/vlan_dev.c vlan_dev_info(dev)->flags & VLAN_FLAG_REORDER_HDR) { dev 308 net/8021q/vlan_dev.c vlan_dev_info(dev)->cnt_encap_on_xmit++; dev 310 net/8021q/vlan_dev.c vlan_tci = vlan_dev_info(dev)->vlan_id; dev 311 net/8021q/vlan_dev.c vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb); dev 319 net/8021q/vlan_dev.c vlan_dev_info(dev)->cnt_inc_headroom_on_tx++; dev 325 net/8021q/vlan_dev.c skb->dev = vlan_dev_info(dev)->real_dev; dev 333 net/8021q/vlan_dev.c struct net_device_stats *stats = &dev->stats; dev 336 net/8021q/vlan_dev.c vlan_tci = vlan_dev_info(dev)->vlan_id; dev 337 net/8021q/vlan_dev.c vlan_tci |= vlan_dev_get_egress_qos_mask(dev, skb); dev 343 net/8021q/vlan_dev.c skb->dev = vlan_dev_info(dev)->real_dev; dev 353 net/8021q/vlan_dev.c if (vlan_dev_info(dev)->real_dev->mtu < new_mtu) dev 356 net/8021q/vlan_dev.c dev->mtu = new_mtu; dev 364 net/8021q/vlan_dev.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 377 net/8021q/vlan_dev.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 414 net/8021q/vlan_dev.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 422 net/8021q/vlan_dev.c if (netif_running(dev) && (vlan->flags ^ old_flags) & VLAN_FLAG_GVRP) { dev 424 net/8021q/vlan_dev.c vlan_gvrp_request_join(dev); dev 426 net/8021q/vlan_dev.c vlan_gvrp_request_leave(dev); dev 433 net/8021q/vlan_dev.c strncpy(result, vlan_dev_info(dev)->real_dev->name, 23); dev 438 net/8021q/vlan_dev.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 445 net/8021q/vlan_dev.c if (compare_ether_addr(dev->dev_addr, real_dev->dev_addr)) { dev 446 net/8021q/vlan_dev.c err = dev_unicast_add(real_dev, dev->dev_addr, ETH_ALEN); dev 451 net/8021q/vlan_dev.c if (dev->flags & IFF_ALLMULTI) { dev 456 net/8021q/vlan_dev.c if (dev->flags & IFF_PROMISC) { dev 465 net/8021q/vlan_dev.c vlan_gvrp_request_join(dev); dev 470 net/8021q/vlan_dev.c if (dev->flags & IFF_ALLMULTI) dev 473 net/8021q/vlan_dev.c if (compare_ether_addr(dev->dev_addr, real_dev->dev_addr)) dev 474 net/8021q/vlan_dev.c dev_unicast_delete(real_dev, dev->dev_addr, ETH_ALEN); dev 481 net/8021q/vlan_dev.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 485 net/8021q/vlan_dev.c vlan_gvrp_request_leave(dev); dev 487 net/8021q/vlan_dev.c dev_mc_unsync(real_dev, dev); dev 488 net/8021q/vlan_dev.c dev_unicast_unsync(real_dev, dev); dev 489 net/8021q/vlan_dev.c if (dev->flags & IFF_ALLMULTI) dev 491 net/8021q/vlan_dev.c if (dev->flags & IFF_PROMISC) dev 494 net/8021q/vlan_dev.c if (compare_ether_addr(dev->dev_addr, real_dev->dev_addr)) dev 495 net/8021q/vlan_dev.c dev_unicast_delete(real_dev, dev->dev_addr, dev->addr_len); dev 502 net/8021q/vlan_dev.c struct net_device *real_dev = vlan_dev_info(dev)->real_dev; dev 509 net/8021q/vlan_dev.c if (!(dev->flags & IFF_UP)) dev 518 net/8021q/vlan_dev.c if (compare_ether_addr(dev->dev_addr, real_dev->dev_addr)) dev 519 net/8021q/vlan_dev.c dev_unicast_delete(real_dev, dev->dev_addr, ETH_ALEN); dev 522 net/8021q/vlan_dev.c memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); dev 528 net/8021q/vlan_dev.c struct net_device *real_dev = vlan_dev_info(dev)->real_dev; dev 552 net/8021q/vlan_dev.c struct net_device *real_dev = vlan_dev_info(dev)->real_dev; dev 555 net/8021q/vlan_dev.c dev_set_allmulti(real_dev, dev->flags & IFF_ALLMULTI ? 1 : -1); dev 557 net/8021q/vlan_dev.c dev_set_promiscuity(real_dev, dev->flags & IFF_PROMISC ? 1 : -1); dev 585 net/8021q/vlan_dev.c lockdep_set_class_and_subclass(&dev->addr_list_lock, dev 588 net/8021q/vlan_dev.c netdev_for_each_tx_queue(dev, vlan_dev_set_lockdep_one, &subclass); dev 599 net/8021q/vlan_dev.c struct net_device *real_dev = vlan_dev_info(dev)->real_dev; dev 603 net/8021q/vlan_dev.c dev->flags = real_dev->flags & ~(IFF_UP | IFF_PROMISC | IFF_ALLMULTI); dev 604 net/8021q/vlan_dev.c dev->iflink = real_dev->ifindex; dev 605 net/8021q/vlan_dev.c dev->state = (real_dev->state & ((1<<__LINK_STATE_NOCARRIER) | dev 609 net/8021q/vlan_dev.c dev->features |= real_dev->features & real_dev->vlan_features; dev 610 net/8021q/vlan_dev.c dev->gso_max_size = real_dev->gso_max_size; dev 613 net/8021q/vlan_dev.c dev->dev_id = real_dev->dev_id; dev 615 net/8021q/vlan_dev.c if (is_zero_ether_addr(dev->dev_addr)) dev 616 net/8021q/vlan_dev.c memcpy(dev->dev_addr, real_dev->dev_addr, dev->addr_len); dev 617 net/8021q/vlan_dev.c if (is_zero_ether_addr(dev->broadcast)) dev 618 net/8021q/vlan_dev.c memcpy(dev->broadcast, real_dev->broadcast, dev->addr_len); dev 621 net/8021q/vlan_dev.c dev->header_ops = real_dev->header_ops; dev 622 net/8021q/vlan_dev.c dev->hard_header_len = real_dev->hard_header_len; dev 623 net/8021q/vlan_dev.c dev->hard_start_xmit = vlan_dev_hwaccel_hard_start_xmit; dev 625 net/8021q/vlan_dev.c dev->header_ops = &vlan_header_ops; dev 626 net/8021q/vlan_dev.c dev->hard_header_len = real_dev->hard_header_len + VLAN_HLEN; dev 627 net/8021q/vlan_dev.c dev->hard_start_xmit = vlan_dev_hard_start_xmit; dev 633 net/8021q/vlan_dev.c vlan_dev_set_lockdep_class(dev, subclass); dev 640 net/8021q/vlan_dev.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 653 net/8021q/vlan_dev.c const struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 664 net/8021q/vlan_dev.c const struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 682 net/8021q/vlan_dev.c ether_setup(dev); dev 684 net/8021q/vlan_dev.c dev->priv_flags |= IFF_802_1Q_VLAN; dev 685 net/8021q/vlan_dev.c dev->tx_queue_len = 0; dev 687 net/8021q/vlan_dev.c dev->change_mtu = vlan_dev_change_mtu; dev 688 net/8021q/vlan_dev.c dev->init = vlan_dev_init; dev 689 net/8021q/vlan_dev.c dev->uninit = vlan_dev_uninit; dev 690 net/8021q/vlan_dev.c dev->open = vlan_dev_open; dev 691 net/8021q/vlan_dev.c dev->stop = vlan_dev_stop; dev 692 net/8021q/vlan_dev.c dev->set_mac_address = vlan_dev_set_mac_address; dev 693 net/8021q/vlan_dev.c dev->set_rx_mode = vlan_dev_set_rx_mode; dev 694 net/8021q/vlan_dev.c dev->set_multicast_list = vlan_dev_set_rx_mode; dev 695 net/8021q/vlan_dev.c dev->change_rx_flags = vlan_dev_change_rx_flags; dev 696 net/8021q/vlan_dev.c dev->do_ioctl = vlan_dev_ioctl; dev 697 net/8021q/vlan_dev.c dev->destructor = free_netdev; dev 698 net/8021q/vlan_dev.c dev->ethtool_ops = &vlan_ethtool_ops; dev 700 net/8021q/vlan_dev.c memset(dev->broadcast, 0, ETH_ALEN); dev 32 net/8021q/vlan_gvrp.c const struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 41 net/8021q/vlan_gvrp.c const struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 50 net/8021q/vlan_gvrp.c return garp_init_applicant(dev, &vlan_gvrp_app); dev 55 net/8021q/vlan_gvrp.c garp_uninit_applicant(dev, &vlan_gvrp_app); dev 86 net/8021q/vlan_netlink.c vlan_dev_change_flags(dev, flags->flags, flags->mask); dev 91 net/8021q/vlan_netlink.c vlan_dev_set_ingress_priority(dev, m->to, m->from); dev 97 net/8021q/vlan_netlink.c vlan_dev_set_egress_priority(dev, m->from, m->to); dev 106 net/8021q/vlan_netlink.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 115 net/8021q/vlan_netlink.c real_dev = __dev_get_by_index(dev_net(dev), nla_get_u32(tb[IFLA_LINK])); dev 128 net/8021q/vlan_netlink.c dev->mtu = real_dev->mtu; dev 129 net/8021q/vlan_netlink.c else if (dev->mtu > real_dev->mtu) dev 132 net/8021q/vlan_netlink.c err = vlan_changelink(dev, tb, data); dev 136 net/8021q/vlan_netlink.c return register_vlan_dev(dev); dev 150 net/8021q/vlan_netlink.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 159 net/8021q/vlan_netlink.c struct vlan_dev_info *vlan = vlan_dev_info(dev); dev 166 net/8021q/vlan_netlink.c NLA_PUT_U16(skb, IFLA_VLAN_ID, vlan_dev_info(dev)->vlan_id); dev 206 net/8021q/vlanproc.c struct net_device *dev; dev 215 net/8021q/vlanproc.c for_each_netdev(net, dev) { dev 216 net/8021q/vlanproc.c if (!is_vlan_dev(dev)) dev 220 net/8021q/vlanproc.c return dev; dev 228 net/8021q/vlanproc.c struct net_device *dev; dev 233 net/8021q/vlanproc.c dev = (struct net_device *)v; dev 235 net/8021q/vlanproc.c dev = net_device_entry(&net->dev_base_head); dev 237 net/8021q/vlanproc.c for_each_netdev_continue(net, dev) { dev 238 net/8021q/vlanproc.c if (!is_vlan_dev(dev)) dev 241 net/8021q/vlanproc.c return dev; dev 16 net/8021q/vlanproc.h #define vlan_proc_add_dev(dev) ({(void)(dev), 0; }) dev 17 net/8021q/vlanproc.h #define vlan_proc_rem_dev(dev) ({(void)(dev), 0; }) dev 260 net/9p/conv.c stat->dev = buf_get_int32(bufp); dev 476 net/9p/conv.c p9_put_int32(bufp, wstat->dev, &stat->dev); dev 67 net/appletalk/aarp.c struct net_device *dev; dev 105 net/appletalk/aarp.c struct net_device *dev = a->dev; dev 107 net/appletalk/aarp.c int len = dev->hard_header_len + sizeof(*eah) + aarp_dl->header_length; dev 109 net/appletalk/aarp.c struct atalk_addr *sat = atalk_find_dev_addr(dev); dev 120 net/appletalk/aarp.c skb_reserve(skb, dev->hard_header_len + aarp_dl->header_length); dev 125 net/appletalk/aarp.c skb->dev = dev; dev 135 net/appletalk/aarp.c memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); dev 160 net/appletalk/aarp.c int len = dev->hard_header_len + sizeof(*eah) + aarp_dl->header_length; dev 167 net/appletalk/aarp.c skb_reserve(skb, dev->hard_header_len + aarp_dl->header_length); dev 172 net/appletalk/aarp.c skb->dev = dev; dev 182 net/appletalk/aarp.c memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); dev 209 net/appletalk/aarp.c int len = dev->hard_header_len + sizeof(*eah) + aarp_dl->header_length; dev 218 net/appletalk/aarp.c skb_reserve(skb, dev->hard_header_len + aarp_dl->header_length); dev 223 net/appletalk/aarp.c skb->dev = dev; dev 233 net/appletalk/aarp.c memcpy(eah->hw_src, dev->dev_addr, ETH_ALEN); dev 301 net/appletalk/aarp.c if ((*n)->dev == dev) { dev 333 net/appletalk/aarp.c struct net_device *dev = ptr; dev 336 net/appletalk/aarp.c if (!net_eq(dev_net(dev), &init_net)) dev 343 net/appletalk/aarp.c __aarp_expire_device(&resolved[ct], dev); dev 344 net/appletalk/aarp.c __aarp_expire_device(&unresolved[ct], dev); dev 345 net/appletalk/aarp.c __aarp_expire_device(&proxies[ct], dev); dev 405 net/appletalk/aarp.c list->dev == dev) dev 421 net/appletalk/aarp.c a = __aarp_find_entry(proxies[hash], dev, sa); dev 433 net/appletalk/aarp.c struct aarp_entry *a = __aarp_find_entry(proxies[hash], dev, sa); dev 451 net/appletalk/aarp.c if (!(iface->dev->do_ioctl(iface->dev, &atreq, SIOCSIFADDR))) { dev 452 net/appletalk/aarp.c (void)iface->dev->do_ioctl(iface->dev, &atreq, SIOCGIFADDR); dev 465 net/appletalk/aarp.c if (atif->dev->type == ARPHRD_LOCALTLK || dev 466 net/appletalk/aarp.c atif->dev->type == ARPHRD_PPP) dev 472 net/appletalk/aarp.c aarp_send_probe(atif->dev, &atif->address); dev 493 net/appletalk/aarp.c if (atif->dev->type == ARPHRD_LOCALTLK || dev 494 net/appletalk/aarp.c atif->dev->type == ARPHRD_PPP) dev 510 net/appletalk/aarp.c entry->dev = atif->dev; dev 519 net/appletalk/aarp.c aarp_send_probe(atif->dev, sa); dev 555 net/appletalk/aarp.c if (dev->type == ARPHRD_LOCALTLK) { dev 556 net/appletalk/aarp.c struct atalk_addr *at = atalk_find_dev_addr(dev); dev 588 net/appletalk/aarp.c skb->dev = dev; dev 593 net/appletalk/aarp.c if (dev->type == ARPHRD_PPP) { dev 595 net/appletalk/aarp.c skb->dev = dev; dev 600 net/appletalk/aarp.c if (dev->type != ARPHRD_ETHER) dev 603 net/appletalk/aarp.c skb->dev = dev; dev 615 net/appletalk/aarp.c a = __aarp_find_entry(resolved[hash], dev, sa); dev 625 net/appletalk/aarp.c a = __aarp_find_entry(unresolved[hash], dev, sa); dev 642 net/appletalk/aarp.c a->dev = dev; dev 719 net/appletalk/aarp.c if (!net_eq(dev_net(dev), &init_net)) dev 723 net/appletalk/aarp.c if (dev->type != ARPHRD_ETHER) dev 746 net/appletalk/aarp.c ifa = atalk_find_dev(dev); dev 762 net/appletalk/aarp.c a = __aarp_find_entry(proxies[hash], dev, &da); dev 779 net/appletalk/aarp.c a = __aarp_find_entry(unresolved[hash], dev, &sa); dev 780 net/appletalk/aarp.c if (!a || dev != a->dev) dev 810 net/appletalk/aarp.c ma = __aarp_proxy_find(dev, &sa); dev 827 net/appletalk/aarp.c skb->dev, &sa); dev 853 net/appletalk/aarp.c aarp_send_reply(dev, ma, &sa, ea->hw_src); dev 891 net/appletalk/aarp.c __aarp_expire_device(&resolved[ct], dev); dev 892 net/appletalk/aarp.c __aarp_expire_device(&unresolved[ct], dev); dev 893 net/appletalk/aarp.c __aarp_expire_device(&proxies[ct], dev); dev 1008 net/appletalk/aarp.c entry->dev ? entry->dev->name : "????"); dev 73 net/appletalk/atalk_proc.c iface->dev->name, ntohs(iface->address.s_net), dev 131 net/appletalk/atalk_proc.c if (atrtr_default.dev) { dev 135 net/appletalk/atalk_proc.c rt->flags, rt->dev->name); dev 142 net/appletalk/atalk_proc.c rt->flags, rt->dev->name); dev 216 net/appletalk/ddp.c if (tmp->dev == dev) { dev 218 net/appletalk/ddp.c dev_put(dev); dev 220 net/appletalk/ddp.c dev->atalk_ptr = NULL; dev 235 net/appletalk/ddp.c dev_hold(dev); dev 236 net/appletalk/ddp.c iface->dev = dev; dev 237 net/appletalk/ddp.c dev->atalk_ptr = iface; dev 344 net/appletalk/ddp.c struct atalk_iface *iface = dev->atalk_ptr; dev 360 net/appletalk/ddp.c if (!fiface && !(iface->dev->flags & IFF_LOOPBACK)) dev 362 net/appletalk/ddp.c if (!(iface->dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT))) { dev 385 net/appletalk/ddp.c struct atalk_iface *iface = dev->atalk_ptr; dev 469 net/appletalk/ddp.c else if (atrtr_default.dev) dev 486 net/appletalk/ddp.c return atr ? atr->dev : NULL; dev 492 net/appletalk/ddp.c atrtr_default.dev = dev; dev 557 net/appletalk/ddp.c devhint = riface->dev; dev 574 net/appletalk/ddp.c rt->dev = devhint; dev 598 net/appletalk/ddp.c dev_put(tmp->dev); dev 621 net/appletalk/ddp.c if (tmp->dev == dev) { dev 623 net/appletalk/ddp.c dev_put(dev); dev 630 net/appletalk/ddp.c if (atrtr_default.dev == dev) dev 637 net/appletalk/ddp.c atrtr_device_down(dev); /* Remove all routes for the device */ dev 638 net/appletalk/ddp.c aarp_device_down(dev); /* Remove AARP entries for the device */ dev 639 net/appletalk/ddp.c atif_drop_device(dev); /* Remove the device */ dev 649 net/appletalk/ddp.c struct net_device *dev = ptr; dev 651 net/appletalk/ddp.c if (!net_eq(dev_net(dev), &init_net)) dev 656 net/appletalk/ddp.c atalk_dev_down(dev); dev 669 net/appletalk/ddp.c struct net_device *dev; dev 679 net/appletalk/ddp.c dev = __dev_get_by_name(&init_net, atreq.ifr_name); dev 680 net/appletalk/ddp.c if (!dev) dev 684 net/appletalk/ddp.c atif = atalk_find_dev(dev); dev 692 net/appletalk/ddp.c if (dev->type != ARPHRD_ETHER && dev 693 net/appletalk/ddp.c dev->type != ARPHRD_LOOPBACK && dev 694 net/appletalk/ddp.c dev->type != ARPHRD_LOCALTLK && dev 695 net/appletalk/ddp.c dev->type != ARPHRD_PPP) dev 706 net/appletalk/ddp.c if ((dev->flags & IFF_POINTOPOINT) && dev 719 net/appletalk/ddp.c if (dev->type == ARPHRD_ETHER && nr->nr_phase != 2) dev 731 net/appletalk/ddp.c atrtr_device_down(dev); /* Flush old routes */ dev 733 net/appletalk/ddp.c atif = atif_add_device(dev, &sa->sat_addr); dev 744 net/appletalk/ddp.c if (!(dev->flags & IFF_LOOPBACK) && dev 745 net/appletalk/ddp.c !(dev->flags & IFF_POINTOPOINT) && dev 747 net/appletalk/ddp.c atif_drop_device(dev); dev 760 net/appletalk/ddp.c if (dev->flags & IFF_LOOPBACK || dev 761 net/appletalk/ddp.c dev->flags & IFF_POINTOPOINT) dev 768 net/appletalk/ddp.c atrtr_create(&rtdef, dev); dev 769 net/appletalk/ddp.c atrtr_set_default(dev); dev 781 net/appletalk/ddp.c atrtr_create(&rtdef, dev); dev 784 net/appletalk/ddp.c dev_mc_add(dev, aarp_mcast, 6, 1); dev 810 net/appletalk/ddp.c atalk_dev_down(dev); dev 825 net/appletalk/ddp.c if (dev->type != ARPHRD_ETHER) dev 843 net/appletalk/ddp.c if (dev->type == ARPHRD_ETHER && nr->nr_phase != 2) dev 874 net/appletalk/ddp.c aarp_proxy_remove(atif->dev, &(sa->sat_addr)); dev 897 net/appletalk/ddp.c struct net_device *dev = NULL; dev 903 net/appletalk/ddp.c dev = __dev_get_by_name(&init_net, name); dev 904 net/appletalk/ddp.c if (!dev) dev 907 net/appletalk/ddp.c return atrtr_create(&rt, dev); dev 1275 net/appletalk/ddp.c struct net_device *dev = __dev_get_by_name(&init_net, "ipddp0"); dev 1279 net/appletalk/ddp.c if (!dev) dev 1284 net/appletalk/ddp.c skb->dev = dev; dev 1287 net/appletalk/ddp.c stats = dev->priv; dev 1317 net/appletalk/ddp.c if (dev->type == ARPHRD_PPP) dev 1347 net/appletalk/ddp.c (rt->dev->hard_header_len + dev 1378 net/appletalk/ddp.c if (skb && aarp_send_ddp(rt->dev, skb, &ta, NULL) == -1) dev 1408 net/appletalk/ddp.c if (!net_eq(dev_net(dev), &init_net)) dev 1449 net/appletalk/ddp.c atif = atalk_find_anynet(ddp->deh_dnode, dev); dev 1457 net/appletalk/ddp.c atalk_route_packet(skb, dev, ddp, len_hops, origlen); dev 1496 net/appletalk/ddp.c if (!net_eq(dev_net(dev), &init_net)) dev 1503 net/appletalk/ddp.c struct atalk_addr *ap = atalk_find_dev_addr(dev); dev 1540 net/appletalk/ddp.c return atalk_rcv(skb, dev, pt, orig_dev); dev 1556 net/appletalk/ddp.c struct net_device *dev; dev 1615 net/appletalk/ddp.c dev = rt->dev; dev 1618 net/appletalk/ddp.c sk, size, dev->name); dev 1620 net/appletalk/ddp.c size += dev->hard_header_len; dev 1627 net/appletalk/ddp.c skb_reserve(skb, dev->hard_header_len); dev 1628 net/appletalk/ddp.c skb->dev = dev; dev 1659 net/appletalk/ddp.c !(rt->flags & RTF_GATEWAY) && !(dev->flags & IFF_LOOPBACK)) { dev 1665 net/appletalk/ddp.c if (aarp_send_ddp(dev, skb2, dev 1672 net/appletalk/ddp.c if (dev->flags & IFF_LOOPBACK || loopback) { dev 1687 net/appletalk/ddp.c dev = rt->dev; dev 1688 net/appletalk/ddp.c skb->dev = dev; dev 1690 net/appletalk/ddp.c ddp_dl->request(ddp_dl, skb, dev->dev_addr); dev 1698 net/appletalk/ddp.c if (aarp_send_ddp(dev, skb, &usat->sat_addr, NULL) == -1) dev 26 net/appletalk/dev.c dev->change_mtu = ltalk_change_mtu; dev 27 net/appletalk/dev.c dev->set_mac_address = ltalk_mac_addr; dev 29 net/appletalk/dev.c dev->type = ARPHRD_LOCALTLK; dev 30 net/appletalk/dev.c dev->hard_header_len = LTALK_HLEN; dev 31 net/appletalk/dev.c dev->mtu = LTALK_MTU; dev 32 net/appletalk/dev.c dev->addr_len = LTALK_ALEN; dev 33 net/appletalk/dev.c dev->tx_queue_len = 10; dev 35 net/appletalk/dev.c dev->broadcast[0] = 0xFF; dev 37 net/appletalk/dev.c dev->flags = IFF_BROADCAST|IFF_MULTICAST|IFF_NOARP; dev 42 net/atm/addr.c pvc.sap_addr.itf = dev->number; dev 52 net/atm/addr.c spin_lock_irqsave(&dev->lock, flags); dev 54 net/atm/addr.c head = &dev->lecs; dev 56 net/atm/addr.c head = &dev->local; dev 61 net/atm/addr.c spin_unlock_irqrestore(&dev->lock, flags); dev 62 net/atm/addr.c if (head == &dev->local) dev 63 net/atm/addr.c notify_sigd(dev); dev 77 net/atm/addr.c spin_lock_irqsave(&dev->lock, flags); dev 79 net/atm/addr.c head = &dev->lecs; dev 81 net/atm/addr.c head = &dev->local; dev 84 net/atm/addr.c spin_unlock_irqrestore(&dev->lock, flags); dev 90 net/atm/addr.c spin_unlock_irqrestore(&dev->lock, flags); dev 95 net/atm/addr.c spin_unlock_irqrestore(&dev->lock, flags); dev 96 net/atm/addr.c if (head == &dev->local) dev 97 net/atm/addr.c notify_sigd(dev); dev 112 net/atm/addr.c spin_lock_irqsave(&dev->lock, flags); dev 114 net/atm/addr.c head = &dev->lecs; dev 116 net/atm/addr.c head = &dev->local; dev 120 net/atm/addr.c spin_unlock_irqrestore(&dev->lock, flags); dev 122 net/atm/addr.c if (head == &dev->local) dev 123 net/atm/addr.c notify_sigd(dev); dev 127 net/atm/addr.c spin_unlock_irqrestore(&dev->lock, flags); dev 140 net/atm/addr.c spin_lock_irqsave(&dev->lock, flags); dev 142 net/atm/addr.c head = &dev->lecs; dev 144 net/atm/addr.c head = &dev->local; dev 149 net/atm/addr.c spin_unlock_irqrestore(&dev->lock, flags); dev 154 net/atm/addr.c spin_unlock_irqrestore(&dev->lock, flags); dev 202 net/atm/br2684.c pr_debug("atm_skb(%p)->vcc(%p)->dev(%p)\n", skb, atmvcc, atmvcc->dev); dev 228 net/atm/br2684.c struct br2684_dev *brdev = BRPRIV(dev); dev 235 net/atm/br2684.c pr_debug("no vcc attached to dev %s\n", dev->name); dev 261 net/atm/br2684.c return &BRPRIV(dev)->stats; dev 271 net/atm/br2684.c int err = my_eth_mac_addr(dev, p); dev 273 net/atm/br2684.c BRPRIV(dev)->mac_was_set = 1; dev 426 net/atm/br2684.c skb->dev = net_dev; dev 499 net/atm/br2684.c unsigned char *esi = atmvcc->dev->esi; dev 534 net/atm/br2684.c BRPRIV(skb->dev)->stats.rx_bytes -= skb->len; dev 535 net/atm/br2684.c BRPRIV(skb->dev)->stats.rx_packets--; dev 712 net/atm/br2684.c "\n", brvcc->atmvcc->dev->number, dev 92 net/atm/clip.c netif_tx_lock_bh(entry->neigh->dev); /* block clip_start_xmit() */ dev 101 net/atm/clip.c netif_wake_queue(entry->neigh->dev); dev 116 net/atm/clip.c netif_tx_unlock_bh(entry->neigh->dev); dev 201 net/atm/clip.c skb->dev = clip_vcc->entry ? clip_vcc->entry->neigh->dev : clip_devs; dev 203 net/atm/clip.c if (!skb->dev) { dev 217 net/atm/clip.c PRIV(skb->dev)->stats.rx_packets++; dev 218 net/atm/clip.c PRIV(skb->dev)->stats.rx_bytes += skb->len; dev 224 net/atm/clip.c PRIV(skb->dev)->stats.rx_packets++; dev 225 net/atm/clip.c PRIV(skb->dev)->stats.rx_bytes += skb->len; dev 238 net/atm/clip.c struct net_device *dev = skb->dev; dev 245 net/atm/clip.c if (!dev) dev 247 net/atm/clip.c spin_lock_irqsave(&PRIV(dev)->xoff_lock, flags); dev 251 net/atm/clip.c netif_wake_queue(dev); dev 253 net/atm/clip.c spin_unlock_irqrestore(&PRIV(dev)->xoff_lock, flags); dev 259 net/atm/clip.c to_atmarpd(act_need, PRIV(neigh->dev)->number, NEIGH2ENTRY(neigh)->ip); dev 283 net/atm/clip.c struct net_device *dev = neigh->dev; dev 293 net/atm/clip.c in_dev = __in_dev_get_rcu(dev); dev 315 net/atm/clip.c return jhash_2words(*(u32 *) pkey, dev->ifindex, clip_tbl.hash_rnd); dev 365 net/atm/clip.c struct clip_priv *clip_priv = PRIV(dev); dev 397 net/atm/clip.c to_atmarpd(act_need, PRIV(dev)->number, entry->ip); dev 420 net/atm/clip.c pr_debug("atm_skb(%p)->vcc(%p)->dev(%p)\n", skb, vcc, vcc->dev); dev 434 net/atm/clip.c netif_stop_queue(dev); /* XOFF -> throttle immediately */ dev 437 net/atm/clip.c netif_start_queue(dev); dev 448 net/atm/clip.c return &PRIV(dev)->stats; dev 504 net/atm/clip.c PRIV(skb->dev)->stats.rx_packets--; dev 505 net/atm/clip.c PRIV(skb->dev)->stats.rx_bytes -= len; dev 540 net/atm/clip.c neigh = __neigh_lookup(&clip_tbl, &ip, rt->u.dst.dev, 1); dev 562 net/atm/clip.c dev->hard_start_xmit = clip_start_xmit; dev 564 net/atm/clip.c dev->get_stats = clip_get_stats; dev 565 net/atm/clip.c dev->type = ARPHRD_ATM; dev 566 net/atm/clip.c dev->hard_header_len = RFC1483LLC_LEN; dev 567 net/atm/clip.c dev->mtu = RFC1626_MTU; dev 568 net/atm/clip.c dev->tx_queue_len = 100; /* "normal" queue (packets) */ dev 578 net/atm/clip.c struct net_device *dev; dev 583 net/atm/clip.c for (dev = clip_devs; dev; dev = PRIV(dev)->next) dev 584 net/atm/clip.c if (PRIV(dev)->number == number) dev 588 net/atm/clip.c for (dev = clip_devs; dev; dev = PRIV(dev)->next) dev 589 net/atm/clip.c if (PRIV(dev)->number >= number) dev 590 net/atm/clip.c number = PRIV(dev)->number + 1; dev 592 net/atm/clip.c dev = alloc_netdev(sizeof(struct clip_priv), "", clip_setup); dev 593 net/atm/clip.c if (!dev) dev 595 net/atm/clip.c clip_priv = PRIV(dev); dev 596 net/atm/clip.c sprintf(dev->name, "atm%d", number); dev 599 net/atm/clip.c error = register_netdev(dev); dev 601 net/atm/clip.c free_netdev(dev); dev 605 net/atm/clip.c clip_devs = dev; dev 606 net/atm/clip.c pr_debug("registered (net:%s)\n", dev->name); dev 613 net/atm/clip.c struct net_device *dev = arg; dev 615 net/atm/clip.c if (!net_eq(dev_net(dev), &init_net)) dev 619 net/atm/clip.c neigh_ifdown(&clip_tbl, dev); dev 624 net/atm/clip.c if (dev->type != ARPHRD_ATM || dev->hard_start_xmit != clip_start_xmit) dev 630 net/atm/clip.c to_atmarpd(act_up, PRIV(dev)->number, 0); dev 634 net/atm/clip.c to_atmarpd(act_down, PRIV(dev)->number, 0); dev 639 net/atm/clip.c to_atmarpd(act_change, PRIV(dev)->number, 0); dev 657 net/atm/clip.c return clip_device_event(this, NETDEV_CHANGE, in_dev->dev); dev 714 net/atm/clip.c vcc->dev = &atmarpd_dev; dev 823 net/atm/clip.c dev->name, svc ? "SVC" : "PVC", llc ? "LLC" : "NULL", exp); dev 840 net/atm/clip.c clip_vcc->vcc->dev->number, dev 919 net/atm/clip.c atmarp_info(seq, n->dev, NEIGH2ENTRY(n), vcc); dev 978 net/atm/clip.c struct net_device *dev, *next; dev 996 net/atm/clip.c dev = clip_devs; dev 997 net/atm/clip.c while (dev) { dev 998 net/atm/clip.c next = PRIV(dev)->next; dev 999 net/atm/clip.c unregister_netdev(dev); dev 1000 net/atm/clip.c free_netdev(dev); dev 1001 net/atm/clip.c dev = next; dev 144 net/atm/common.c vcc->dev = NULL; dev 167 net/atm/common.c if (vcc->dev) { dev 168 net/atm/common.c if (vcc->dev->ops->close) dev 169 net/atm/common.c vcc->dev->ops->close(vcc); dev 178 net/atm/common.c module_put(vcc->dev->ops->owner); dev 179 net/atm/common.c atm_dev_put(vcc->dev); dev 229 net/atm/common.c if (vcc->dev == dev) { dev 275 net/atm/common.c if (walk->dev != vcc->dev) dev 308 net/atm/common.c else if (p >= 1 << vcc->dev->ci_range.vpi_bits) dev 312 net/atm/common.c else if (c < ATM_NOT_RSV_VCI || c >= 1 << vcc->dev->ci_range.vci_bits) dev 324 net/atm/common.c if (c >= 1 << vcc->dev->ci_range.vci_bits) dev 330 net/atm/common.c if (p >= 1 << vcc->dev->ci_range.vpi_bits) p = 0; dev 345 net/atm/common.c vpi >> dev->ci_range.vpi_bits) || (vci != ATM_VCI_UNSPEC && dev 346 net/atm/common.c vci != ATM_VCI_ANY && vci >> dev->ci_range.vci_bits)) dev 351 net/atm/common.c if (!try_module_get(dev->ops->owner)) dev 353 net/atm/common.c vcc->dev = dev; dev 355 net/atm/common.c if (test_bit(ATM_DF_REMOVED, &dev->flags) || dev 367 net/atm/common.c vcc->stats = &dev->stats.aal0; dev 371 net/atm/common.c vcc->stats = &dev->stats.aal34; dev 379 net/atm/common.c vcc->stats = &dev->stats.aal5; dev 394 net/atm/common.c if (dev->ops->open) { dev 395 net/atm/common.c if ((error = dev->ops->open(vcc))) dev 403 net/atm/common.c module_put(dev->ops->owner); dev 405 net/atm/common.c vcc->dev = NULL; dev 412 net/atm/common.c struct atm_dev *dev; dev 443 net/atm/common.c dev = try_then_request_module(atm_dev_lookup(itf), "atm-device-%d", itf); dev 445 net/atm/common.c dev = NULL; dev 448 net/atm/common.c dev = list_entry(atm_devs.next, struct atm_dev, dev_list); dev 449 net/atm/common.c atm_dev_hold(dev); dev 453 net/atm/common.c if (!dev) dev 455 net/atm/common.c error = __vcc_connect(vcc, dev, vpi, vci); dev 457 net/atm/common.c atm_dev_put(dev); dev 575 net/atm/common.c skb->dev = NULL; /* for paths shared with net_device interfaces */ dev 583 net/atm/common.c error = vcc->dev->ops->send(vcc,skb); dev 642 net/atm/common.c if (!vcc->dev->ops->change_qos) return -EOPNOTSUPP; dev 644 net/atm/common.c return vcc->dev->ops->change_qos(vcc,qos,ATM_MF_SET); dev 719 net/atm/common.c if (!vcc->dev || !vcc->dev->ops->setsockopt) return -EINVAL; dev 720 net/atm/common.c return vcc->dev->ops->setsockopt(vcc,level,optname,optval,optlen); dev 749 net/atm/common.c if (!vcc->dev || dev 753 net/atm/common.c pvc.sap_addr.itf = vcc->dev->number; dev 763 net/atm/common.c if (!vcc->dev || !vcc->dev->ops->getsockopt) return -EINVAL; dev 764 net/atm/common.c return vcc->dev->ops->getsockopt(vcc, level, optname, optval, len); dev 140 net/atm/lec.c buff = skb->data + skb->dev->hard_header_len; dev 155 net/atm/lec.c priv = (struct lec_priv *)dev->priv; dev 221 net/atm/lec.c struct lec_priv *priv = (struct lec_priv *)dev->priv; dev 223 net/atm/lec.c netif_start_queue(dev); dev 247 net/atm/lec.c printk(KERN_INFO "%s: tx timeout\n", dev->name); dev 248 net/atm/lec.c dev->trans_start = jiffies; dev 249 net/atm/lec.c netif_wake_queue(dev); dev 255 net/atm/lec.c struct lec_priv *priv = (struct lec_priv *)dev->priv; dev 272 net/atm/lec.c printk("%s:No lecd attached\n", dev->name); dev 274 net/atm/lec.c netif_stop_queue(dev); dev 283 net/atm/lec.c lec_handle_bridge(skb, dev); dev 317 net/atm/lec.c printk("%s: send datalen:%ld lecid:%4.4x\n", dev->name, dev 370 net/atm/lec.c pr_debug("%s:vcc:%p vcc_flags:%lx, entry:%p\n", dev->name, dev 375 net/atm/lec.c dev->name); dev 384 net/atm/lec.c dev->name); dev 395 net/atm/lec.c printk("%s:sending to vpi:%d vci:%d\n", dev->name, vcc->vpi, vcc->vci); dev 413 net/atm/lec.c netif_stop_queue(dev); dev 422 net/atm/lec.c netif_wake_queue(dev); dev 428 net/atm/lec.c dev->trans_start = jiffies; dev 435 net/atm/lec.c netif_stop_queue(dev); dev 445 net/atm/lec.c return &((struct lec_priv *)dev->priv)->stats; dev 451 net/atm/lec.c struct net_device *dev = (struct net_device *)vcc->proto_data; dev 452 net/atm/lec.c struct lec_priv *priv = (struct lec_priv *)dev->priv; dev 462 net/atm/lec.c pr_debug("%s: msg from zeppelin:%d\n", dev->name, mesg->type); dev 466 net/atm/lec.c dev->dev_addr[i] = mesg->content.normal.mac_addr[i]; dev 471 net/atm/lec.c dev->dev_addr[i] = 0; dev 502 net/atm/lec.c lane2_associate_ind(dev, mesg->content.normal.mac_addr, dev 524 net/atm/lec.c if (dev->change_mtu(dev, mesg->content.config.mtu)) dev 525 net/atm/lec.c printk("%s: change_mtu to %d failed\n", dev->name, dev 544 net/atm/lec.c dev->name, dev 552 net/atm/lec.c if (br_fdb_get_hook == NULL || dev->br_port == NULL) dev 555 net/atm/lec.c f = br_fdb_get_hook(dev->br_port->br, dev 557 net/atm/lec.c if (f != NULL && f->dst->dev != dev dev 565 net/atm/lec.c dev->name); dev 587 net/atm/lec.c printk("%s: Unknown message type %d\n", dev->name, mesg->type); dev 598 net/atm/lec.c struct net_device *dev = (struct net_device *)vcc->proto_data; dev 599 net/atm/lec.c struct lec_priv *priv = (struct lec_priv *)dev->priv; dev 604 net/atm/lec.c netif_stop_queue(dev); dev 609 net/atm/lec.c dev->name); dev 615 net/atm/lec.c printk("%s: Shut down!\n", dev->name); dev 683 net/atm/lec.c dev->mtu = new_mtu; dev 698 net/atm/lec.c dev->change_mtu = lec_change_mtu; dev 699 net/atm/lec.c dev->open = lec_open; dev 700 net/atm/lec.c dev->stop = lec_close; dev 701 net/atm/lec.c dev->hard_start_xmit = lec_start_xmit; dev 702 net/atm/lec.c dev->tx_timeout = lec_tx_timeout; dev 704 net/atm/lec.c dev->get_stats = lec_get_stats; dev 705 net/atm/lec.c dev->set_multicast_list = lec_set_multicast_list; dev 706 net/atm/lec.c dev->do_ioctl = NULL; dev 707 net/atm/lec.c printk("%s: Initialized!\n", dev->name); dev 729 net/atm/lec.c struct net_device *dev = (struct net_device *)vcc->proto_data; dev 730 net/atm/lec.c struct lec_priv *priv = (struct lec_priv *)dev->priv; dev 736 net/atm/lec.c printk("%s: lec_push vcc vpi:%d vci:%d\n", dev->name, dev 740 net/atm/lec.c pr_debug("%s: null skb\n", dev->name); dev 745 net/atm/lec.c printk("%s: rcv datalen:%ld lecid:%4.4x\n", dev->name, dev 764 net/atm/lec.c pr_debug("%s: To daemon\n", dev->name); dev 773 net/atm/lec.c !priv->lecd || !(dev->flags & IFF_UP)) { dev 815 net/atm/lec.c memcmp(dst, dev->dev_addr, dev->addr_len)) { dev 825 net/atm/lec.c skb->protocol = tr_type_trans(skb, dev); dev 828 net/atm/lec.c skb->protocol = eth_type_trans(skb, dev); dev 839 net/atm/lec.c struct net_device *dev = skb->dev; dev 850 net/atm/lec.c if (netif_running(dev) && netif_queue_stopped(dev)) dev 851 net/atm/lec.c netif_wake_queue(dev); dev 942 net/atm/lec.c vcc->dev = &lecatm_dev; dev 1011 net/atm/lec.c struct net_device *dev; dev 1092 net/atm/lec.c struct net_device *dev; dev 1095 net/atm/lec.c dev = state->dev ? state->dev : dev_lec[state->itf]; dev 1096 net/atm/lec.c v = (dev && dev->priv) ? lec_priv_walk(state, l, dev->priv) : NULL; dev 1097 net/atm/lec.c if (!v && dev) { dev 1098 net/atm/lec.c dev_put(dev); dev 1100 net/atm/lec.c dev = NULL; dev 1102 net/atm/lec.c state->dev = dev; dev 1123 net/atm/lec.c state->dev = NULL; dev 1136 net/atm/lec.c if (state->dev) { dev 1139 net/atm/lec.c dev_put(state->dev); dev 1162 net/atm/lec.c struct net_device *dev = state->dev; dev 1165 net/atm/lec.c seq_printf(seq, "%s ", dev->name); dev 1282 net/atm/lec.c struct lec_priv *priv = (struct lec_priv *)dev->priv; dev 1329 net/atm/lec.c struct lec_priv *priv = (struct lec_priv *)dev->priv; dev 1331 net/atm/lec.c if (compare_ether_addr(lan_dst, dev->dev_addr)) dev 1366 net/atm/lec.c struct lec_priv *priv = (struct lec_priv *)dev->priv; dev 1396 net/atm/lec.c priv->lane2_ops->associate_indicator(dev, mac_addr, dev 1458 net/atm/lec.c struct net_device *dev = (struct net_device *)vcc->proto_data; dev 1462 net/atm/lec.c netif_wake_queue(dev); dev 45 net/atm/lec.h int (*resolve) (struct net_device *dev, const u8 *dst_mac, int force, dev 47 net/atm/lec.h int (*associate_req) (struct net_device *dev, const u8 *lan_dst, dev 49 net/atm/lec.h void (*associate_indicator) (struct net_device *dev, const u8 *mac_addr, dev 142 net/atm/mpc.c if (mpc->dev == dev) dev 245 net/atm/mpc.c struct net_device *dev; dev 249 net/atm/mpc.c dev = dev_get_by_name(&init_net, name); dev 251 net/atm/mpc.c return dev; dev 288 net/atm/mpc.c dprintk("mpoa: (%s) start_mpc:\n", mpc->dev->name); dev 289 net/atm/mpc.c if (dev->hard_start_xmit == NULL) { dev 291 net/atm/mpc.c dev->name); dev 294 net/atm/mpc.c mpc->old_hard_start_xmit = dev->hard_start_xmit; dev 295 net/atm/mpc.c dev->hard_start_xmit = mpc_send_packet; dev 303 net/atm/mpc.c dprintk("mpoa: (%s) stop_mpc:", mpc->dev->name); dev 306 net/atm/mpc.c if (mpc->dev->hard_start_xmit != mpc_send_packet) { dev 311 net/atm/mpc.c mpc->dev->hard_start_xmit = mpc->old_hard_start_xmit; dev 365 net/atm/mpc.c dprintk("mpoa: (%s) lane2_assoc_ind: received TLV(s), ", dev->name); dev 367 net/atm/mpc.c mpc = find_mpc_by_lec(dev); /* Sampo-Fix: moved here from below */ dev 369 net/atm/mpc.c printk("mpoa: (%s) lane2_assoc_ind: no mpc\n", dev->name); dev 384 net/atm/mpc.c printk("mpoa: (%s) lane2_assoc_ind: TLV type was 0, returning\n", dev->name); dev 394 net/atm/mpc.c dprintk("mpoa: (%s) MPOA device type '%s', ", dev->name, mpoa_device_type_string(mpoa_device_type)); dev 398 net/atm/mpc.c dev->name); dev 404 net/atm/mpc.c dev->name); dev 413 net/atm/mpc.c printk("\nmpoa: (%s) lane2_assoc_ind: MPS_AND_MPC has zero MACs\n", dev->name); dev 426 net/atm/mpc.c dev->name, end_of_tlvs - tlvs); dev 448 net/atm/mpc.c printk("mpoa: (%s) copy_macs: out of mem\n", mpc->dev->name); dev 477 net/atm/mpc.c buff = skb->data + mpc->dev->hard_header_len; dev 481 net/atm/mpc.c ddprintk("mpoa: (%s) send_via_shortcut: ipaddr 0x%x\n", mpc->dev->name, ipaddr); dev 490 net/atm/mpc.c ddprintk("mpoa: (%s) send_via_shortcut: cache_hit: returns != OPEN\n", mpc->dev->name); dev 495 net/atm/mpc.c ddprintk("mpoa: (%s) send_via_shortcut: using shortcut\n", mpc->dev->name); dev 498 net/atm/mpc.c ddprintk("mpoa: (%s) send_via_shortcut: IP ttl = %u, using LANE\n", mpc->dev->name, iph->ttl); dev 507 net/atm/mpc.c ddprintk("mpoa: (%s) send_via_shortcut: adding tag 0x%x\n", mpc->dev->name, entry->ctrl_info.tag); dev 539 net/atm/mpc.c mpc = find_mpc_by_lec(dev); /* this should NEVER fail */ dev 541 net/atm/mpc.c printk("mpoa: (%s) mpc_send_packet: no MPC found\n", dev->name); dev 564 net/atm/mpc.c retval = mpc->old_hard_start_xmit(skb,dev); dev 594 net/atm/mpc.c mpc->dev->name); dev 599 net/atm/mpc.c mpc->dev->name, NIPQUAD(in_entry->ctrl_info.in_dst_ip)); dev 603 net/atm/mpc.c printk("mpoa: (%s) mpc_vcc_attach: attaching egress SVC\n", mpc->dev->name); dev 606 net/atm/mpc.c vcc->proto_data = mpc->dev; dev 621 net/atm/mpc.c mpc = find_mpc_by_lec(dev); dev 623 net/atm/mpc.c printk("mpoa: (%s) mpc_vcc_close: close for unknown MPC\n", dev->name); dev 627 net/atm/mpc.c dprintk("mpoa: (%s) mpc_vcc_close:\n", dev->name); dev 631 net/atm/mpc.c mpc->dev->name, NIPQUAD(in_entry->ctrl_info.in_dst_ip)); dev 637 net/atm/mpc.c dprintk("mpoa: (%s) mpc_vcc_close: egress SVC closed\n", mpc->dev->name); dev 643 net/atm/mpc.c dprintk("mpoa: (%s) mpc_vcc_close: unused vcc closed\n", dev->name); dev 650 net/atm/mpc.c struct net_device *dev = (struct net_device *)vcc->proto_data; dev 657 net/atm/mpc.c ddprintk("mpoa: (%s) mpc_push:\n", dev->name); dev 659 net/atm/mpc.c dprintk("mpoa: (%s) mpc_push: null skb, closing VCC\n", dev->name); dev 660 net/atm/mpc.c mpc_vcc_close(vcc, dev); dev 664 net/atm/mpc.c skb->dev = dev; dev 668 net/atm/mpc.c dprintk("mpoa: (%s) mpc_push: control packet arrived\n", dev->name); dev 678 net/atm/mpc.c mpc = find_mpc_by_lec(dev); dev 680 net/atm/mpc.c printk("mpoa: (%s) mpc_push: unknown MPC\n", dev->name); dev 685 net/atm/mpc.c ddprintk("mpoa: (%s) mpc_push: tagged data packet arrived\n", dev->name); dev 688 net/atm/mpc.c printk("mpoa: (%s) mpc_push: non-tagged data packet arrived\n", dev->name); dev 693 net/atm/mpc.c printk("mpoa: (%s) mpc_push: garbage arrived, purging\n", dev->name); dev 704 net/atm/mpc.c dev->name,tag); dev 716 net/atm/mpc.c printk("mpoa: (%s) mpc_push: egress SVC in use\n", dev->name); dev 729 net/atm/mpc.c new_skb->protocol = eth_type_trans(new_skb, dev); dev 780 net/atm/mpc.c mpc->dev = find_lec_by_itfnum(arg); /* NULL if there was no lec */ dev 787 net/atm/mpc.c if (mpc->dev) { /* check if the lec is LANE2 capable */ dev 788 net/atm/mpc.c priv = (struct lec_priv *)mpc->dev->priv; dev 790 net/atm/mpc.c dev_put(mpc->dev); dev 791 net/atm/mpc.c mpc->dev = NULL; dev 797 net/atm/mpc.c vcc->dev = &mpc_dev; dev 802 net/atm/mpc.c if (mpc->dev) { dev 806 net/atm/mpc.c start_mpc(mpc, mpc->dev); dev 847 net/atm/mpc.c if (mpc->dev) { dev 848 net/atm/mpc.c struct lec_priv *priv = (struct lec_priv *)mpc->dev->priv; dev 851 net/atm/mpc.c dev_put(mpc->dev); dev 863 net/atm/mpc.c (mpc->dev) ? mpc->dev->name : "<unknown>"); dev 883 net/atm/mpc.c dprintk("mpoa: (%s) msg_from_mpoad:", (mpc->dev) ? mpc->dev->name : "<unknown>"); dev 965 net/atm/mpc.c struct net_device *dev; dev 969 net/atm/mpc.c dev = (struct net_device *)dev_ptr; dev 971 net/atm/mpc.c if (!net_eq(dev_net(dev), &init_net)) dev 974 net/atm/mpc.c if (dev->name == NULL || strncmp(dev->name, "lec", 3)) dev 979 net/atm/mpc.c priv = (struct lec_priv *)dev->priv; dev 986 net/atm/mpc.c dev->name); dev 994 net/atm/mpc.c mpc->dev = dev; dev 995 net/atm/mpc.c dev_hold(dev); dev 996 net/atm/mpc.c dprintk("mpoa: (%s) was initialized\n", dev->name); dev 1000 net/atm/mpc.c mpc = find_mpc_by_lec(dev); dev 1003 net/atm/mpc.c dprintk("mpoa: device (%s) was deallocated\n", dev->name); dev 1005 net/atm/mpc.c dev_put(mpc->dev); dev 1006 net/atm/mpc.c mpc->dev = NULL; dev 1010 net/atm/mpc.c mpc = find_mpc_by_lec(dev); dev 1014 net/atm/mpc.c start_mpc(mpc, dev); dev 1022 net/atm/mpc.c mpc = find_mpc_by_lec(dev); dev 1076 net/atm/mpc.c (mpc->dev) ? mpc->dev->name : "<unknown>"); dev 1101 net/atm/mpc.c dprintk("mpoa: (%s) using egress SVC to reach %u.%u.%u.%u\n",client->dev->name, NIPQUAD(dst_ip)); dev 1114 net/atm/mpc.c printk("mpoa: (%s) trying to get a CBR shortcut\n",client->dev->name); dev 1126 net/atm/mpc.c dprintk("mpoa: (%s) MPOA_res_reply_rcvd: ip %u.%u.%u.%u\n", mpc->dev->name, NIPQUAD(dst_ip)); dev 1127 net/atm/mpc.c ddprintk("mpoa: (%s) MPOA_res_reply_rcvd() entry = %p", mpc->dev->name, entry); dev 1129 net/atm/mpc.c printk("\nmpoa: (%s) ARGH, received res. reply for an entry that doesn't exist.\n", mpc->dev->name); dev 1135 net/atm/mpc.c printk("\nmpoa: (%s) MPOA_res_reply_rcvd for RESOLVED entry!\n", mpc->dev->name); dev 1154 net/atm/mpc.c mpc->dev->name); dev 1174 net/atm/mpc.c printk("mpoa: (%s) ingress_purge_rcvd: purge for a non-existing entry, ", mpc->dev->name); dev 1181 net/atm/mpc.c mpc->dev->name, NIPQUAD(dst_ip)); dev 1198 net/atm/mpc.c dprintk("mpoa: (%s) egress_purge_rcvd: purge for a non-existing entry\n", mpc->dev->name); dev 1254 net/atm/mpc.c dprintk("mpoa: (%s) mps_death:\n", mpc->dev->name); dev 1257 net/atm/mpc.c printk("mpoa: (%s) mps_death: wrong MPS\n", mpc->dev->name); dev 1283 net/atm/mpc.c mpc->dev->name, entry, holding_time); dev 1319 net/atm/mpc.c (mpc->dev) ? mpc->dev->name : "<unknown>"); dev 1324 net/atm/mpc.c if (mpc->dev) { dev 1325 net/atm/mpc.c priv = (struct lec_priv *)mpc->dev->priv; dev 1326 net/atm/mpc.c retval = priv->lane2_ops->associate_req(mpc->dev, mpc->dev->dev_addr, tlv, sizeof(tlv)); dev 1328 net/atm/mpc.c printk("mpoa: (%s) MPOA device type TLV association failed\n", mpc->dev->name); dev 1329 net/atm/mpc.c retval = priv->lane2_ops->resolve(mpc->dev, NULL, 1, NULL, NULL); dev 1331 net/atm/mpc.c printk("mpoa: (%s) targetless LE_ARP request failed\n", mpc->dev->name); dev 1473 net/atm/mpc.c if (mpc->dev != NULL) { dev 1475 net/atm/mpc.c priv = (struct lec_priv *)mpc->dev->priv; dev 16 net/atm/mpc.h struct net_device *dev; /* lec in question */ dev 18 net/atm/mpc.h int (*old_hard_start_xmit)(struct sk_buff *skb, struct net_device *dev); dev 153 net/atm/mpoa_caches.c dprintk("mpoa: (%s) mpoa_caches.c: threshold exceeded for ip %u.%u.%u.%u, sending MPOA res req\n", mpc->dev->name, NIPQUAD(entry->ctrl_info.in_dst_ip)); dev 230 net/atm/pppoatm.c ATM_SKB(skb)->vcc->dev); dev 55 net/atm/proc.c seq_printf(seq, "%3d %-8s", dev->number, dev->type); dev 57 net/atm/proc.c seq_printf(seq, "%02x", dev->esi[i]); dev 59 net/atm/proc.c add_stats(seq, "0", &dev->stats.aal0); dev 61 net/atm/proc.c add_stats(seq, "5", &dev->stats.aal5); dev 62 net/atm/proc.c seq_printf(seq, "\t[%d]", atomic_read(&dev->refcnt)); dev 162 net/atm/proc.c vcc->dev->number,vcc->vpi,vcc->vci, dev 169 net/atm/proc.c struct net_device *dev; dev 171 net/atm/proc.c dev = clip_vcc->entry ? clip_vcc->entry->neigh->dev : NULL; dev 173 net/atm/proc.c dev ? dev->name : "none?"); dev 191 net/atm/proc.c if (!vcc->dev) dev 194 net/atm/proc.c seq_printf(seq, "%3d %3d %5d ", vcc->dev->number, vcc->vpi, dev 214 net/atm/proc.c if (!vcc->dev) dev 219 net/atm/proc.c vcc->dev->number, vcc->vpi, vcc->vci); dev 241 net/atm/proc.c struct atm_dev *dev = list_entry(v, struct atm_dev, dev_list); dev 243 net/atm/proc.c atm_dev_info(seq, dev); dev 374 net/atm/proc.c struct atm_dev *dev; dev 381 net/atm/proc.c dev = PDE(file->f_path.dentry->d_inode)->data; dev 382 net/atm/proc.c if (!dev->ops->proc_read) dev 385 net/atm/proc.c length = dev->ops->proc_read(dev,pos,(char *) page); dev 407 net/atm/proc.c if (!dev->ops->proc_read) dev 412 net/atm/proc.c for (num = dev->number; num; num /= 10) digits++; dev 415 net/atm/proc.c dev->proc_name = kmalloc(strlen(dev->type) + digits + 2, GFP_KERNEL); dev 416 net/atm/proc.c if (!dev->proc_name) dev 418 net/atm/proc.c sprintf(dev->proc_name,"%s:%d",dev->type, dev->number); dev 420 net/atm/proc.c dev->proc_entry = proc_create_data(dev->proc_name, 0, atm_proc_root, dev 421 net/atm/proc.c &proc_atm_dev_ops, dev); dev 422 net/atm/proc.c if (!dev->proc_entry) dev 426 net/atm/proc.c kfree(dev->proc_name); dev 434 net/atm/proc.c if (!dev->ops->proc_read) dev 437 net/atm/proc.c remove_proc_entry(dev->proc_name, atm_proc_root); dev 438 net/atm/proc.c kfree(dev->proc_name); dev 93 net/atm/pvc.c if (!vcc->dev || !test_bit(ATM_VF_ADDR,&vcc->flags)) return -ENOTCONN; dev 97 net/atm/pvc.c addr->sap_addr.itf = vcc->dev->number; dev 56 net/atm/raw.c return vcc->dev->ops->send(vcc,skb); dev 75 net/atm/raw.c vcc->send = vcc->dev->ops->send; dev 85 net/atm/raw.c vcc->send = vcc->dev->ops->send; dev 34 net/atm/resources.c struct atm_dev *dev; dev 36 net/atm/resources.c dev = kzalloc(sizeof(*dev), GFP_KERNEL); dev 37 net/atm/resources.c if (!dev) dev 39 net/atm/resources.c dev->type = type; dev 40 net/atm/resources.c dev->signal = ATM_PHY_SIG_UNKNOWN; dev 41 net/atm/resources.c dev->link_rate = ATM_OC3_PCR; dev 42 net/atm/resources.c spin_lock_init(&dev->lock); dev 43 net/atm/resources.c INIT_LIST_HEAD(&dev->local); dev 44 net/atm/resources.c INIT_LIST_HEAD(&dev->lecs); dev 46 net/atm/resources.c return dev; dev 51 net/atm/resources.c struct atm_dev *dev; dev 55 net/atm/resources.c dev = list_entry(p, struct atm_dev, dev_list); dev 56 net/atm/resources.c if (dev->number == number) { dev 57 net/atm/resources.c atm_dev_hold(dev); dev 58 net/atm/resources.c return dev; dev 66 net/atm/resources.c struct atm_dev *dev; dev 69 net/atm/resources.c dev = __atm_dev_lookup(number); dev 71 net/atm/resources.c return dev; dev 78 net/atm/resources.c struct atm_dev *dev, *inuse; dev 80 net/atm/resources.c dev = __alloc_atm_dev(type); dev 81 net/atm/resources.c if (!dev) { dev 91 net/atm/resources.c kfree(dev); dev 94 net/atm/resources.c dev->number = number; dev 96 net/atm/resources.c dev->number = 0; dev 97 net/atm/resources.c while ((inuse = __atm_dev_lookup(dev->number))) { dev 99 net/atm/resources.c dev->number++; dev 103 net/atm/resources.c dev->ops = ops; dev 105 net/atm/resources.c dev->flags = *flags; dev 107 net/atm/resources.c memset(&dev->flags, 0, sizeof(dev->flags)); dev 108 net/atm/resources.c memset(&dev->stats, 0, sizeof(dev->stats)); dev 109 net/atm/resources.c atomic_set(&dev->refcnt, 1); dev 111 net/atm/resources.c if (atm_proc_dev_register(dev) < 0) { dev 118 net/atm/resources.c if (atm_register_sysfs(dev) < 0) { dev 122 net/atm/resources.c atm_proc_dev_deregister(dev); dev 126 net/atm/resources.c list_add_tail(&dev->dev_list, &atm_devs); dev 130 net/atm/resources.c return dev; dev 133 net/atm/resources.c kfree(dev); dev 134 net/atm/resources.c dev = NULL; dev 141 net/atm/resources.c BUG_ON(test_bit(ATM_DF_REMOVED, &dev->flags)); dev 142 net/atm/resources.c set_bit(ATM_DF_REMOVED, &dev->flags); dev 150 net/atm/resources.c list_del(&dev->dev_list); dev 153 net/atm/resources.c atm_dev_release_vccs(dev); dev 154 net/atm/resources.c atm_unregister_sysfs(dev); dev 155 net/atm/resources.c atm_proc_dev_deregister(dev); dev 157 net/atm/resources.c atm_dev_put(dev); dev 184 net/atm/resources.c copy_aal_stats(&dev->stats.aal0, &tmp.aal0); dev 185 net/atm/resources.c copy_aal_stats(&dev->stats.aal34, &tmp.aal34); dev 186 net/atm/resources.c copy_aal_stats(&dev->stats.aal5, &tmp.aal5); dev 190 net/atm/resources.c subtract_aal_stats(&dev->stats.aal0, &tmp.aal0); dev 191 net/atm/resources.c subtract_aal_stats(&dev->stats.aal34, &tmp.aal34); dev 192 net/atm/resources.c subtract_aal_stats(&dev->stats.aal5, &tmp.aal5); dev 202 net/atm/resources.c struct atm_dev *dev; dev 227 net/atm/resources.c dev = list_entry(p, struct atm_dev, dev_list); dev 228 net/atm/resources.c *tmp_p++ = dev->number; dev 247 net/atm/resources.c if (!(dev = try_then_request_module(atm_dev_lookup(number), dev 253 net/atm/resources.c size = strlen(dev->type) + 1; dev 254 net/atm/resources.c if (copy_to_user(buf, dev->type, size)) { dev 261 net/atm/resources.c if (copy_to_user(buf, dev->esi, size)) { dev 271 net/atm/resources.c if (dev->esi[i]) { dev 289 net/atm/resources.c memcpy(dev->esi, esi, ESI_LEN); dev 301 net/atm/resources.c error = fetch_stats(dev, buf, cmd == ATM_GETSTATZ); dev 307 net/atm/resources.c if (copy_to_user(buf, &dev->ci_range, size)) { dev 314 net/atm/resources.c if (copy_to_user(buf, &dev->link_rate, size)) { dev 324 net/atm/resources.c atm_reset_addr(dev, ATM_ADDR_LOCAL); dev 342 net/atm/resources.c error = atm_add_addr(dev, &addr, dev 346 net/atm/resources.c error = atm_del_addr(dev, &addr, dev 353 net/atm/resources.c error = atm_get_addr(dev, buf, len, dev 383 net/atm/resources.c if (!dev->ops->ioctl) { dev 387 net/atm/resources.c size = dev->ops->ioctl(dev, cmd, buf); dev 400 net/atm/resources.c atm_dev_put(dev); dev 66 net/atm/signaling.c if (!vcc->dev->ops->change_qos) msg->reply = -EOPNOTSUPP; dev 69 net/atm/signaling.c msg->reply = vcc->dev->ops->change_qos(vcc,&msg->qos, dev 261 net/atm/signaling.c vcc->dev = &sigd_dev; dev 86 net/ax25/af_ax25.c if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) dev 117 net/ax25/af_ax25.c struct net_device *dev = (struct net_device *)ptr; dev 119 net/ax25/af_ax25.c if (!net_eq(dev_net(dev), &init_net)) dev 123 net/ax25/af_ax25.c if (dev->type != ARPHRD_AX25) dev 128 net/ax25/af_ax25.c ax25_dev_device_up(dev); dev 131 net/ax25/af_ax25.c ax25_kill_by_device(dev); dev 132 net/ax25/af_ax25.c ax25_rt_device_down(dev); dev 133 net/ax25/af_ax25.c ax25_dev_device_down(dev); dev 170 net/ax25/af_ax25.c if (s->ax25_dev == NULL || s->ax25_dev->dev == dev) { dev 224 net/ax25/af_ax25.c if (ax25cmp(&s->source_addr, src_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->ax25_dev->dev == dev) { dev 258 net/ax25/af_ax25.c s->ax25_dev->dev == skb->dev && dev 376 net/ax25/af_ax25.c if ((ax25 = ax25_find_cb(&ax25_ctl.source_addr, &ax25_ctl.dest_addr, &digi, ax25_dev->dev)) == NULL) dev 535 net/ax25/af_ax25.c struct net_device *dev; dev 644 net/ax25/af_ax25.c dev = dev_get_by_name(&init_net, devname); dev 645 net/ax25/af_ax25.c if (dev == NULL) { dev 654 net/ax25/af_ax25.c dev_put(dev); dev 658 net/ax25/af_ax25.c ax25->ax25_dev = ax25_dev_ax25dev(dev); dev 744 net/ax25/af_ax25.c if (ax25_dev != NULL && ax25_dev->dev != NULL) { dev 745 net/ax25/af_ax25.c strlcpy(devname, ax25_dev->dev->name, sizeof(devname)); dev 1223 net/ax25/af_ax25.c ax25->ax25_dev->dev))) { dev 1413 net/ax25/af_ax25.c ax25->ax25_dev->dev->dev_addr, AX25_ADDR_LEN); dev 1460 net/ax25/af_ax25.c if (len > ax25->ax25_dev->dev->mtu) { dev 1538 net/ax25/af_ax25.c size = len + ax25->ax25_dev->dev->hard_header_len; dev 1599 net/ax25/af_ax25.c ax25_queue_xmit(skb, ax25->ax25_dev->dev); dev 1901 net/ax25/af_ax25.c ax25->ax25_dev == NULL? "???" : ax25->ax25_dev->dev->name, dev 1990 net/ax25/af_ax25.c .dev = NULL, /* All devices */ dev 41 net/ax25/ax25_dev.c if (ax25cmp(addr, (ax25_address *)ax25_dev->dev->dev_addr) == 0) { dev 64 net/ax25/ax25_dev.c dev->ax25_ptr = ax25_dev; dev 65 net/ax25/ax25_dev.c ax25_dev->dev = dev; dev 66 net/ax25/ax25_dev.c dev_hold(dev); dev 100 net/ax25/ax25_dev.c if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) dev 115 net/ax25/ax25_dev.c if (s->forward == dev) dev 121 net/ax25/ax25_dev.c dev_put(dev); dev 131 net/ax25/ax25_dev.c dev_put(dev); dev 140 net/ax25/ax25_dev.c dev->ax25_ptr = NULL; dev 158 net/ax25/ax25_dev.c ax25_dev->forward = fwd_dev->dev; dev 178 net/ax25/ax25_dev.c if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) dev 179 net/ax25/ax25_dev.c return dev; dev 182 net/ax25/ax25_dev.c return dev; dev 198 net/ax25/ax25_dev.c dev_put(ax25_dev->dev); dev 133 net/ax25/ax25_ds_subr.c if (ax25_dev->dev == NULL) dev 145 net/ax25/ax25_ds_subr.c skb->protocol = ax25_type_trans(skb, ax25_dev->dev); dev 40 net/ax25/ax25_iface.c struct net_device *dev; dev 112 net/ax25/ax25_iface.c if (ax25_listen_mine(callsign, dev)) dev 119 net/ax25/ax25_iface.c listen->dev = dev; dev 142 net/ax25/ax25_iface.c if (ax25cmp(&listen->callsign, callsign) == 0 && listen->dev == dev) { dev 150 net/ax25/ax25_iface.c if (ax25cmp(&listen->next->callsign, callsign) == 0 && listen->next->dev == dev) { dev 188 net/ax25/ax25_iface.c (listen->dev == dev || listen->dev == NULL)) { dev 63 net/ax25/ax25_in.c skbn->dev = ax25->ax25_dev->dev; dev 129 net/ax25/ax25_in.c skb->dev = ax25->ax25_dev->dev; dev 203 net/ax25/ax25_in.c if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) { dev 233 net/ax25/ax25_in.c if (!mine && ax25_listen_mine(&dest, dev) && dp.lastrepeat + 1 == dp.ndigi) dev 242 net/ax25/ax25_in.c if (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) { dev 253 net/ax25/ax25_in.c skb->dev = dev; dev 263 net/ax25/ax25_in.c skb->dev = dev; dev 315 net/ax25/ax25_in.c if ((ax25 = ax25_find_cb(&dest, &src, &reverse_dp, dev)) != NULL) { dev 340 net/ax25/ax25_in.c ax25_return_dm(dev, &src, &dest, &dp); dev 349 net/ax25/ax25_in.c sk = ax25_find_listener(&dest, 0, dev, SOCK_SEQPACKET); dev 351 net/ax25/ax25_in.c sk = ax25_find_listener(next_digi, 1, dev, SOCK_SEQPACKET); dev 358 net/ax25/ax25_in.c ax25_return_dm(dev, &src, &dest, &dp); dev 381 net/ax25/ax25_in.c ax25_return_dm(dev, &src, &dest, &dp); dev 454 net/ax25/ax25_in.c if (!net_eq(dev_net(dev), &init_net)) { dev 466 net/ax25/ax25_in.c return ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype); dev 64 net/ax25/ax25_ip.c memcpy(buff, daddr, dev->addr_len); /* Address specified */ dev 72 net/ax25/ax25_ip.c memcpy(buff, saddr, dev->addr_len); dev 74 net/ax25/ax25_ip.c memcpy(buff, dev->dev_addr, dev->addr_len); dev 108 net/ax25/ax25_ip.c struct net_device *dev = NULL; dev 124 net/ax25/ax25_ip.c dev = route->dev; dev 128 net/ax25/ax25_ip.c if (dev == NULL) dev 129 net/ax25/ax25_ip.c dev = skb->dev; dev 131 net/ax25/ax25_ip.c if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) { dev 182 net/ax25/ax25_ip.c &dst_c, digipeat, dev); dev 209 net/ax25/ax25_ip.c ax25_queue_xmit(skb, dev); dev 46 net/ax25/ax25_out.c if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) dev 55 net/ax25/ax25_out.c if ((ax25 = ax25_find_cb(src, dest, digi, dev)) != NULL) { dev 60 net/ax25/ax25_out.c if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) dev 355 net/ax25/ax25_out.c ax25_queue_xmit(skb, ax25->ax25_dev->dev); dev 366 net/ax25/ax25_out.c skb->protocol = ax25_type_trans(skb, ax25_fwd_dev(dev)); dev 54 net/ax25/ax25_route.c if (s->dev == dev) { dev 90 net/ax25/ax25_route.c ax25_rt->dev == ax25_dev->dev) { dev 118 net/ax25/ax25_route.c ax25_rt->dev = ax25_dev->dev; dev 161 net/ax25/ax25_route.c if (s->dev == ax25_dev->dev && dev 195 net/ax25/ax25_route.c if (ax25_rt->dev == ax25_dev->dev && dev 301 net/ax25/ax25_route.c ax25_rt->dev ? ax25_rt->dev->name : "???"); dev 364 net/ax25/ax25_route.c if (dev == NULL) { dev 365 net/ax25/ax25_route.c if (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev != NULL) dev 367 net/ax25/ax25_route.c if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0 && ax25_rt->dev != NULL) dev 370 net/ax25/ax25_route.c if (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev == dev) dev 372 net/ax25/ax25_route.c if (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0 && ax25_rt->dev == dev) dev 419 net/ax25/ax25_route.c if ((ax25->ax25_dev = ax25_dev_ax25dev(ax25_rt->dev)) == NULL) { dev 433 net/ax25/ax25_route.c ax25->source_addr = *(ax25_address *)ax25->ax25_dev->dev->dev_addr; dev 155 net/ax25/ax25_subr.c if ((skb = alloc_skb(ax25->ax25_dev->dev->hard_header_len + 2, GFP_ATOMIC)) == NULL) dev 158 net/ax25/ax25_subr.c skb_reserve(skb, ax25->ax25_dev->dev->hard_header_len); dev 196 net/ax25/ax25_subr.c if (dev == NULL) dev 199 net/ax25/ax25_subr.c if ((skb = alloc_skb(dev->hard_header_len + 1, GFP_ATOMIC)) == NULL) dev 202 net/ax25/ax25_subr.c skb_reserve(skb, dev->hard_header_len); dev 217 net/ax25/ax25_subr.c ax25_queue_xmit(skb, dev); dev 214 net/ax25/sysctl_net_ax25.c ax25_table[n].procname = ax25_dev->dev->name; dev 167 net/bluetooth/bnep/bnep.h struct net_device *dev; dev 197 net/bluetooth/bnep/core.c set_bit(bnep_mc_hash(s->dev->broadcast), (ulong *) &s->mc_filter); dev 310 net/bluetooth/bnep/core.c struct net_device *dev = s->dev; dev 314 net/bluetooth/bnep/core.c dev->last_rx = jiffies; dev 389 net/bluetooth/bnep/core.c nskb->protocol = eth_type_trans(nskb, dev); dev 414 net/bluetooth/bnep/core.c BT_DBG("skb %p dev %p type %d", skb, skb->dev, skb->pkt_type); dev 416 net/bluetooth/bnep/core.c if (!skb->dev) { dev 468 net/bluetooth/bnep/core.c struct net_device *dev = s->dev; dev 475 net/bluetooth/bnep/core.c daemonize("kbnepd %s", dev->name); dev 496 net/bluetooth/bnep/core.c netif_wake_queue(dev); dev 507 net/bluetooth/bnep/core.c unregister_netdev(dev); dev 520 net/bluetooth/bnep/core.c free_netdev(dev); dev 539 net/bluetooth/bnep/core.c return conn ? &conn->dev : NULL; dev 544 net/bluetooth/bnep/core.c struct net_device *dev; dev 555 net/bluetooth/bnep/core.c dev = alloc_netdev(sizeof(struct bnep_session), dev 558 net/bluetooth/bnep/core.c if (!dev) dev 569 net/bluetooth/bnep/core.c s = dev->priv; dev 575 net/bluetooth/bnep/core.c memcpy(dev->dev_addr, s->eh.h_dest, ETH_ALEN); dev 577 net/bluetooth/bnep/core.c s->dev = dev; dev 586 net/bluetooth/bnep/core.c set_bit(bnep_mc_hash(dev->broadcast), (ulong *) &s->mc_filter); dev 594 net/bluetooth/bnep/core.c SET_NETDEV_DEV(dev, bnep_get_device(s)); dev 596 net/bluetooth/bnep/core.c err = register_netdev(dev); dev 606 net/bluetooth/bnep/core.c unregister_netdev(dev); dev 612 net/bluetooth/bnep/core.c strcpy(req->device, dev->name); dev 617 net/bluetooth/bnep/core.c free_netdev(dev); dev 649 net/bluetooth/bnep/core.c strcpy(ci->device, s->dev->name); dev 53 net/bluetooth/bnep/netdev.c netif_start_queue(dev); dev 59 net/bluetooth/bnep/netdev.c netif_stop_queue(dev); dev 65 net/bluetooth/bnep/netdev.c struct bnep_session *s = dev->priv; dev 72 net/bluetooth/bnep/netdev.c struct bnep_session *s = dev->priv; dev 78 net/bluetooth/bnep/netdev.c BT_DBG("%s mc_count %d", dev->name, dev->mc_count); dev 83 net/bluetooth/bnep/netdev.c BT_ERR("%s Multicast list allocation failed", dev->name); dev 93 net/bluetooth/bnep/netdev.c if (dev->flags & (IFF_PROMISC | IFF_ALLMULTI)) { dev 98 net/bluetooth/bnep/netdev.c memcpy(__skb_put(skb, ETH_ALEN), dev->broadcast, ETH_ALEN); dev 101 net/bluetooth/bnep/netdev.c struct dev_mc_list *dmi = dev->mc_list; dev 104 net/bluetooth/bnep/netdev.c if (dev->flags & IFF_BROADCAST) { dev 105 net/bluetooth/bnep/netdev.c memcpy(__skb_put(skb, ETH_ALEN), dev->broadcast, ETH_ALEN); dev 106 net/bluetooth/bnep/netdev.c memcpy(__skb_put(skb, ETH_ALEN), dev->broadcast, ETH_ALEN); dev 111 net/bluetooth/bnep/netdev.c for (i = 0; i < dev->mc_count && i < BNEP_MAX_MULTICAST_FILTERS; i++) { dev 126 net/bluetooth/bnep/netdev.c BT_DBG("%s", dev->name); dev 133 net/bluetooth/bnep/netdev.c netif_wake_queue(dev); dev 186 net/bluetooth/bnep/netdev.c struct bnep_session *s = dev->priv; dev 189 net/bluetooth/bnep/netdev.c BT_DBG("skb %p, dev %p", skb, dev); dev 210 net/bluetooth/bnep/netdev.c dev->trans_start = jiffies; dev 219 net/bluetooth/bnep/netdev.c netif_stop_queue(dev); dev 228 net/bluetooth/bnep/netdev.c memset(dev->broadcast, 0xff, ETH_ALEN); dev 229 net/bluetooth/bnep/netdev.c dev->addr_len = ETH_ALEN; dev 231 net/bluetooth/bnep/netdev.c ether_setup(dev); dev 233 net/bluetooth/bnep/netdev.c dev->open = bnep_net_open; dev 234 net/bluetooth/bnep/netdev.c dev->stop = bnep_net_close; dev 235 net/bluetooth/bnep/netdev.c dev->hard_start_xmit = bnep_net_xmit; dev 236 net/bluetooth/bnep/netdev.c dev->get_stats = bnep_net_get_stats; dev 237 net/bluetooth/bnep/netdev.c dev->do_ioctl = bnep_net_ioctl; dev 238 net/bluetooth/bnep/netdev.c dev->set_mac_address = bnep_net_set_mac_addr; dev 239 net/bluetooth/bnep/netdev.c dev->set_multicast_list = bnep_net_set_mc_list; dev 241 net/bluetooth/bnep/netdev.c dev->watchdog_timeo = HZ * 2; dev 242 net/bluetooth/bnep/netdev.c dev->tx_timeout = bnep_net_timeout; dev 199 net/bluetooth/hci_core.c skb->dev = (void *) hdev; dev 477 net/bluetooth/hci_core.c if (!(hdev = hci_dev_get(dev))) dev 607 net/bluetooth/hci_core.c if (!(hdev = hci_dev_get(dev))) dev 619 net/bluetooth/hci_core.c if (!(hdev = hci_dev_get(dev))) dev 659 net/bluetooth/hci_core.c if (!(hdev = hci_dev_get(dev))) dev 842 net/bluetooth/hci_core.c put_device(&hdev->dev); dev 1004 net/bluetooth/hci_core.c skb->dev = (void *) hdev; dev 1114 net/bluetooth/hci_core.c struct hci_dev *hdev = (struct hci_dev *) skb->dev; dev 1161 net/bluetooth/hci_core.c skb->dev = (void *) hdev; dev 1206 net/bluetooth/hci_core.c skb->dev = (void *) hdev; dev 1228 net/bluetooth/hci_core.c skb->dev = (void *) hdev; dev 1265 net/bluetooth/hci_core.c skb->dev = (void *) hdev; dev 1926 net/bluetooth/hci_event.c skb->dev = (void *) hdev; dev 432 net/bluetooth/hci_sock.c skb->dev = (void *) hdev; dev 36 net/bluetooth/hci_sysfs.c struct hci_conn *conn = dev_get_drvdata(dev); dev 42 net/bluetooth/hci_sysfs.c struct hci_conn *conn = dev_get_drvdata(dev); dev 50 net/bluetooth/hci_sysfs.c struct hci_conn *conn = dev_get_drvdata(dev); dev 84 net/bluetooth/hci_sysfs.c void *data = dev_get_drvdata(dev); dev 100 net/bluetooth/hci_sysfs.c if (device_add(&conn->dev) < 0) { dev 112 net/bluetooth/hci_sysfs.c conn->dev.type = &bt_link; dev 113 net/bluetooth/hci_sysfs.c conn->dev.class = bt_class; dev 114 net/bluetooth/hci_sysfs.c conn->dev.parent = &hdev->dev; dev 116 net/bluetooth/hci_sysfs.c snprintf(conn->dev.bus_id, BUS_ID_SIZE, "%s:%d", dev 119 net/bluetooth/hci_sysfs.c dev_set_drvdata(&conn->dev, conn); dev 121 net/bluetooth/hci_sysfs.c device_initialize(&conn->dev); dev 135 net/bluetooth/hci_sysfs.c return !strncmp(dev->bus_id, "rfcomm", 6); dev 144 net/bluetooth/hci_sysfs.c struct device *dev; dev 146 net/bluetooth/hci_sysfs.c dev = device_find_child(&conn->dev, NULL, __match_tty); dev 147 net/bluetooth/hci_sysfs.c if (!dev) dev 149 net/bluetooth/hci_sysfs.c device_move(dev, NULL); dev 150 net/bluetooth/hci_sysfs.c put_device(dev); dev 153 net/bluetooth/hci_sysfs.c device_del(&conn->dev); dev 154 net/bluetooth/hci_sysfs.c put_device(&conn->dev); dev 162 net/bluetooth/hci_sysfs.c if (!device_is_registered(&conn->dev)) dev 194 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 200 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 213 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 220 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 228 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 239 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 245 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 251 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 257 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 283 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 289 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 307 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 313 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 334 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 340 net/bluetooth/hci_sysfs.c struct hci_dev *hdev = dev_get_drvdata(dev); dev 403 net/bluetooth/hci_sysfs.c void *data = dev_get_drvdata(dev); dev 415 net/bluetooth/hci_sysfs.c struct device *dev = &hdev->dev; dev 420 net/bluetooth/hci_sysfs.c dev->type = &bt_host; dev 421 net/bluetooth/hci_sysfs.c dev->class = bt_class; dev 422 net/bluetooth/hci_sysfs.c dev->parent = hdev->parent; dev 424 net/bluetooth/hci_sysfs.c strlcpy(dev->bus_id, hdev->name, BUS_ID_SIZE); dev 426 net/bluetooth/hci_sysfs.c dev_set_drvdata(dev, hdev); dev 428 net/bluetooth/hci_sysfs.c err = device_register(dev); dev 439 net/bluetooth/hci_sysfs.c device_del(&hdev->dev); dev 149 net/bluetooth/hidp/core.c newleds = (!!test_bit(LED_KANA, dev->led) << 3) | dev 150 net/bluetooth/hidp/core.c (!!test_bit(LED_COMPOSE, dev->led) << 3) | dev 151 net/bluetooth/hidp/core.c (!!test_bit(LED_SCROLLL, dev->led) << 2) | dev 152 net/bluetooth/hidp/core.c (!!test_bit(LED_CAPSL, dev->led) << 1) | dev 153 net/bluetooth/hidp/core.c (!!test_bit(LED_NUML, dev->led)); dev 178 net/bluetooth/hidp/core.c struct hid_device *hid = input_get_drvdata(dev); dev 181 net/bluetooth/hidp/core.c return hidp_queue_event(session, dev, type, code, value); dev 186 net/bluetooth/hidp/core.c struct hidp_session *session = input_get_drvdata(dev); dev 188 net/bluetooth/hidp/core.c return hidp_queue_event(session, dev, type, code, value); dev 193 net/bluetooth/hidp/core.c struct input_dev *dev = session->input; dev 202 net/bluetooth/hidp/core.c input_report_key(dev, hidp_keycode[i + 224], (udata[0] >> i) & 1); dev 212 net/bluetooth/hidp/core.c input_report_key(dev, hidp_keycode[keys[i]], 0); dev 219 net/bluetooth/hidp/core.c input_report_key(dev, hidp_keycode[udata[i]], 1); dev 229 net/bluetooth/hidp/core.c input_report_key(dev, BTN_LEFT, sdata[0] & 0x01); dev 230 net/bluetooth/hidp/core.c input_report_key(dev, BTN_RIGHT, sdata[0] & 0x02); dev 231 net/bluetooth/hidp/core.c input_report_key(dev, BTN_MIDDLE, sdata[0] & 0x04); dev 232 net/bluetooth/hidp/core.c input_report_key(dev, BTN_SIDE, sdata[0] & 0x08); dev 233 net/bluetooth/hidp/core.c input_report_key(dev, BTN_EXTRA, sdata[0] & 0x10); dev 235 net/bluetooth/hidp/core.c input_report_rel(dev, REL_X, sdata[1]); dev 236 net/bluetooth/hidp/core.c input_report_rel(dev, REL_Y, sdata[2]); dev 239 net/bluetooth/hidp/core.c input_report_rel(dev, REL_WHEEL, sdata[3]); dev 243 net/bluetooth/hidp/core.c input_sync(dev); dev 620 net/bluetooth/hidp/core.c return conn ? &conn->dev : NULL; dev 670 net/bluetooth/hidp/core.c input->dev.parent = hidp_get_device(session); dev 781 net/bluetooth/hidp/core.c hid->dev.parent = hidp_get_device(session); dev 94 net/bluetooth/rfcomm/tty.c struct rfcomm_dlc *dlc = dev->dlc; dev 96 net/bluetooth/rfcomm/tty.c BT_DBG("dev %p dlc %p", dev, dlc); dev 101 net/bluetooth/rfcomm/tty.c BUG_ON(!list_empty(&dev->list)); dev 105 net/bluetooth/rfcomm/tty.c if (dlc->owner == dev) dev 111 net/bluetooth/rfcomm/tty.c tty_unregister_device(rfcomm_tty_driver, dev->id); dev 113 net/bluetooth/rfcomm/tty.c kfree(dev); dev 122 net/bluetooth/rfcomm/tty.c atomic_inc(&dev->refcnt); dev 134 net/bluetooth/rfcomm/tty.c if (atomic_dec_and_test(&dev->refcnt)) dev 135 net/bluetooth/rfcomm/tty.c rfcomm_dev_destruct(dev); dev 140 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev; dev 144 net/bluetooth/rfcomm/tty.c dev = list_entry(p, struct rfcomm_dev, list); dev 145 net/bluetooth/rfcomm/tty.c if (dev->id == id) dev 146 net/bluetooth/rfcomm/tty.c return dev; dev 154 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev; dev 158 net/bluetooth/rfcomm/tty.c dev = __rfcomm_dev_get(id); dev 160 net/bluetooth/rfcomm/tty.c if (dev) { dev 161 net/bluetooth/rfcomm/tty.c if (test_bit(RFCOMM_TTY_RELEASED, &dev->flags)) dev 162 net/bluetooth/rfcomm/tty.c dev = NULL; dev 164 net/bluetooth/rfcomm/tty.c rfcomm_dev_hold(dev); dev 169 net/bluetooth/rfcomm/tty.c return dev; dev 177 net/bluetooth/rfcomm/tty.c hdev = hci_get_route(&dev->dst, &dev->src); dev 181 net/bluetooth/rfcomm/tty.c conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &dev->dst); dev 185 net/bluetooth/rfcomm/tty.c return conn ? &conn->dev : NULL; dev 190 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = dev_get_drvdata(tty_dev); dev 192 net/bluetooth/rfcomm/tty.c baswap(&bdaddr, &dev->dst); dev 198 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = dev_get_drvdata(tty_dev); dev 199 net/bluetooth/rfcomm/tty.c return sprintf(buf, "%d\n", dev->channel); dev 207 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev; dev 213 net/bluetooth/rfcomm/tty.c dev = kzalloc(sizeof(struct rfcomm_dev), GFP_KERNEL); dev 214 net/bluetooth/rfcomm/tty.c if (!dev) dev 220 net/bluetooth/rfcomm/tty.c dev->id = 0; dev 223 net/bluetooth/rfcomm/tty.c if (list_entry(p, struct rfcomm_dev, list)->id != dev->id) dev 226 net/bluetooth/rfcomm/tty.c dev->id++; dev 230 net/bluetooth/rfcomm/tty.c dev->id = req->dev_id; dev 235 net/bluetooth/rfcomm/tty.c if (entry->id == dev->id) { dev 240 net/bluetooth/rfcomm/tty.c if (entry->id > dev->id - 1) dev 247 net/bluetooth/rfcomm/tty.c if ((dev->id < 0) || (dev->id > RFCOMM_MAX_DEV - 1)) { dev 252 net/bluetooth/rfcomm/tty.c sprintf(dev->name, "rfcomm%d", dev->id); dev 254 net/bluetooth/rfcomm/tty.c list_add(&dev->list, head); dev 255 net/bluetooth/rfcomm/tty.c atomic_set(&dev->refcnt, 1); dev 257 net/bluetooth/rfcomm/tty.c bacpy(&dev->src, &req->src); dev 258 net/bluetooth/rfcomm/tty.c bacpy(&dev->dst, &req->dst); dev 259 net/bluetooth/rfcomm/tty.c dev->channel = req->channel; dev 261 net/bluetooth/rfcomm/tty.c dev->flags = req->flags & dev 264 net/bluetooth/rfcomm/tty.c init_waitqueue_head(&dev->wait); dev 265 net/bluetooth/rfcomm/tty.c tasklet_init(&dev->wakeup_task, rfcomm_tty_wakeup, (unsigned long) dev); dev 267 net/bluetooth/rfcomm/tty.c skb_queue_head_init(&dev->pending); dev 281 net/bluetooth/rfcomm/tty.c skb_queue_tail(&dev->pending, skb); dev 290 net/bluetooth/rfcomm/tty.c dlc->owner = dev; dev 291 net/bluetooth/rfcomm/tty.c dev->dlc = dlc; dev 305 net/bluetooth/rfcomm/tty.c kfree(dev); dev 309 net/bluetooth/rfcomm/tty.c dev->tty_dev = tty_register_device(rfcomm_tty_driver, dev->id, NULL); dev 311 net/bluetooth/rfcomm/tty.c if (IS_ERR(dev->tty_dev)) { dev 312 net/bluetooth/rfcomm/tty.c err = PTR_ERR(dev->tty_dev); dev 313 net/bluetooth/rfcomm/tty.c list_del(&dev->list); dev 314 net/bluetooth/rfcomm/tty.c kfree(dev); dev 318 net/bluetooth/rfcomm/tty.c dev_set_drvdata(dev->tty_dev, dev); dev 320 net/bluetooth/rfcomm/tty.c if (device_create_file(dev->tty_dev, &dev_attr_address) < 0) dev 323 net/bluetooth/rfcomm/tty.c if (device_create_file(dev->tty_dev, &dev_attr_channel) < 0) dev 326 net/bluetooth/rfcomm/tty.c return dev->id; dev 331 net/bluetooth/rfcomm/tty.c BT_DBG("dev %p", dev); dev 333 net/bluetooth/rfcomm/tty.c if (test_bit(RFCOMM_TTY_RELEASED, &dev->flags)) dev 336 net/bluetooth/rfcomm/tty.c set_bit(RFCOMM_TTY_RELEASED, &dev->flags); dev 339 net/bluetooth/rfcomm/tty.c list_del_init(&dev->list); dev 342 net/bluetooth/rfcomm/tty.c rfcomm_dev_put(dev); dev 355 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (void *) skb->sk; dev 356 net/bluetooth/rfcomm/tty.c atomic_sub(skb->truesize, &dev->wmem_alloc); dev 357 net/bluetooth/rfcomm/tty.c if (test_bit(RFCOMM_TTY_ATTACHED, &dev->flags)) dev 358 net/bluetooth/rfcomm/tty.c tasklet_schedule(&dev->wakeup_task); dev 359 net/bluetooth/rfcomm/tty.c rfcomm_dev_put(dev); dev 364 net/bluetooth/rfcomm/tty.c rfcomm_dev_hold(dev); dev 365 net/bluetooth/rfcomm/tty.c atomic_add(skb->truesize, &dev->wmem_alloc); dev 366 net/bluetooth/rfcomm/tty.c skb->sk = (void *) dev; dev 372 net/bluetooth/rfcomm/tty.c if (atomic_read(&dev->wmem_alloc) < rfcomm_room(dev->dlc)) { dev 375 net/bluetooth/rfcomm/tty.c rfcomm_set_owner_w(skb, dev); dev 431 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev; dev 438 net/bluetooth/rfcomm/tty.c if (!(dev = rfcomm_dev_get(req.dev_id))) dev 441 net/bluetooth/rfcomm/tty.c if (dev->flags != NOCAP_FLAGS && !capable(CAP_NET_ADMIN)) { dev 442 net/bluetooth/rfcomm/tty.c rfcomm_dev_put(dev); dev 447 net/bluetooth/rfcomm/tty.c rfcomm_dlc_close(dev->dlc, 0); dev 450 net/bluetooth/rfcomm/tty.c if (dev->tty) dev 451 net/bluetooth/rfcomm/tty.c tty_vhangup(dev->tty); dev 453 net/bluetooth/rfcomm/tty.c if (!test_bit(RFCOMM_RELEASE_ONHUP, &dev->flags)) dev 454 net/bluetooth/rfcomm/tty.c rfcomm_dev_del(dev); dev 455 net/bluetooth/rfcomm/tty.c rfcomm_dev_put(dev); dev 485 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = list_entry(p, struct rfcomm_dev, list); dev 486 net/bluetooth/rfcomm/tty.c if (test_bit(RFCOMM_TTY_RELEASED, &dev->flags)) dev 488 net/bluetooth/rfcomm/tty.c (di + n)->id = dev->id; dev 489 net/bluetooth/rfcomm/tty.c (di + n)->flags = dev->flags; dev 490 net/bluetooth/rfcomm/tty.c (di + n)->state = dev->dlc->state; dev 491 net/bluetooth/rfcomm/tty.c (di + n)->channel = dev->channel; dev 492 net/bluetooth/rfcomm/tty.c bacpy(&(di + n)->src, &dev->src); dev 493 net/bluetooth/rfcomm/tty.c bacpy(&(di + n)->dst, &dev->dst); dev 511 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev; dev 520 net/bluetooth/rfcomm/tty.c if (!(dev = rfcomm_dev_get(di.id))) dev 523 net/bluetooth/rfcomm/tty.c di.flags = dev->flags; dev 524 net/bluetooth/rfcomm/tty.c di.channel = dev->channel; dev 525 net/bluetooth/rfcomm/tty.c di.state = dev->dlc->state; dev 526 net/bluetooth/rfcomm/tty.c bacpy(&di.src, &dev->src); dev 527 net/bluetooth/rfcomm/tty.c bacpy(&di.dst, &dev->dst); dev 532 net/bluetooth/rfcomm/tty.c rfcomm_dev_put(dev); dev 560 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = dlc->owner; dev 563 net/bluetooth/rfcomm/tty.c if (!dev) { dev 568 net/bluetooth/rfcomm/tty.c if (!(tty = dev->tty) || !skb_queue_empty(&dev->pending)) { dev 569 net/bluetooth/rfcomm/tty.c skb_queue_tail(&dev->pending, skb); dev 583 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = dlc->owner; dev 584 net/bluetooth/rfcomm/tty.c if (!dev) dev 587 net/bluetooth/rfcomm/tty.c BT_DBG("dlc %p dev %p err %d", dlc, dev, err); dev 589 net/bluetooth/rfcomm/tty.c dev->err = err; dev 590 net/bluetooth/rfcomm/tty.c wake_up_interruptible(&dev->wait); dev 593 net/bluetooth/rfcomm/tty.c if (!dev->tty) { dev 594 net/bluetooth/rfcomm/tty.c if (test_bit(RFCOMM_RELEASE_ONHUP, &dev->flags)) { dev 603 net/bluetooth/rfcomm/tty.c if (rfcomm_dev_get(dev->id) == NULL) { dev 608 net/bluetooth/rfcomm/tty.c rfcomm_dev_del(dev); dev 609 net/bluetooth/rfcomm/tty.c rfcomm_dev_put(dev); dev 613 net/bluetooth/rfcomm/tty.c tty_hangup(dev->tty); dev 619 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = dlc->owner; dev 620 net/bluetooth/rfcomm/tty.c if (!dev) dev 623 net/bluetooth/rfcomm/tty.c BT_DBG("dlc %p dev %p v24_sig 0x%02x", dlc, dev, v24_sig); dev 625 net/bluetooth/rfcomm/tty.c if ((dev->modem_status & TIOCM_CD) && !(v24_sig & RFCOMM_V24_DV)) { dev 626 net/bluetooth/rfcomm/tty.c if (dev->tty && !C_CLOCAL(dev->tty)) dev 627 net/bluetooth/rfcomm/tty.c tty_hangup(dev->tty); dev 630 net/bluetooth/rfcomm/tty.c dev->modem_status = dev 640 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (void *) arg; dev 641 net/bluetooth/rfcomm/tty.c struct tty_struct *tty = dev->tty; dev 645 net/bluetooth/rfcomm/tty.c BT_DBG("dev %p tty %p", dev, tty); dev 651 net/bluetooth/rfcomm/tty.c struct tty_struct *tty = dev->tty; dev 658 net/bluetooth/rfcomm/tty.c BT_DBG("dev %p tty %p", dev, tty); dev 660 net/bluetooth/rfcomm/tty.c rfcomm_dlc_lock(dev->dlc); dev 662 net/bluetooth/rfcomm/tty.c while ((skb = skb_dequeue(&dev->pending))) { dev 667 net/bluetooth/rfcomm/tty.c rfcomm_dlc_unlock(dev->dlc); dev 676 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev; dev 688 net/bluetooth/rfcomm/tty.c dev = rfcomm_dev_get(id); dev 689 net/bluetooth/rfcomm/tty.c if (!dev) dev 692 net/bluetooth/rfcomm/tty.c BT_DBG("dev %p dst %s channel %d opened %d", dev, batostr(&dev->dst), dev->channel, dev->opened); dev 694 net/bluetooth/rfcomm/tty.c if (dev->opened++ != 0) dev 697 net/bluetooth/rfcomm/tty.c dlc = dev->dlc; dev 702 net/bluetooth/rfcomm/tty.c tty->driver_data = dev; dev 703 net/bluetooth/rfcomm/tty.c dev->tty = tty; dev 705 net/bluetooth/rfcomm/tty.c set_bit(RFCOMM_TTY_ATTACHED, &dev->flags); dev 707 net/bluetooth/rfcomm/tty.c err = rfcomm_dlc_open(dlc, &dev->src, &dev->dst, dev->channel); dev 712 net/bluetooth/rfcomm/tty.c add_wait_queue(&dev->wait, &wait); dev 717 net/bluetooth/rfcomm/tty.c err = -dev->err; dev 732 net/bluetooth/rfcomm/tty.c remove_wait_queue(&dev->wait, &wait); dev 735 net/bluetooth/rfcomm/tty.c device_move(dev->tty_dev, rfcomm_get_device(dev)); dev 737 net/bluetooth/rfcomm/tty.c rfcomm_tty_copy_pending(dev); dev 739 net/bluetooth/rfcomm/tty.c rfcomm_dlc_unthrottle(dev->dlc); dev 746 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 747 net/bluetooth/rfcomm/tty.c if (!dev) dev 750 net/bluetooth/rfcomm/tty.c BT_DBG("tty %p dev %p dlc %p opened %d", tty, dev, dev->dlc, dev->opened); dev 752 net/bluetooth/rfcomm/tty.c if (--dev->opened == 0) { dev 753 net/bluetooth/rfcomm/tty.c if (dev->tty_dev->parent) dev 754 net/bluetooth/rfcomm/tty.c device_move(dev->tty_dev, NULL); dev 757 net/bluetooth/rfcomm/tty.c rfcomm_dlc_close(dev->dlc, 0); dev 759 net/bluetooth/rfcomm/tty.c clear_bit(RFCOMM_TTY_ATTACHED, &dev->flags); dev 760 net/bluetooth/rfcomm/tty.c tasklet_kill(&dev->wakeup_task); dev 762 net/bluetooth/rfcomm/tty.c rfcomm_dlc_lock(dev->dlc); dev 764 net/bluetooth/rfcomm/tty.c dev->tty = NULL; dev 765 net/bluetooth/rfcomm/tty.c rfcomm_dlc_unlock(dev->dlc); dev 768 net/bluetooth/rfcomm/tty.c rfcomm_dev_put(dev); dev 773 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 774 net/bluetooth/rfcomm/tty.c struct rfcomm_dlc *dlc = dev->dlc; dev 783 net/bluetooth/rfcomm/tty.c skb = rfcomm_wmalloc(dev, size + RFCOMM_SKB_RESERVE, GFP_ATOMIC); dev 806 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 811 net/bluetooth/rfcomm/tty.c if (!dev || !dev->dlc) dev 814 net/bluetooth/rfcomm/tty.c room = rfcomm_room(dev->dlc) - atomic_read(&dev->wmem_alloc); dev 879 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 883 net/bluetooth/rfcomm/tty.c if (!dev || !dev->dlc || !dev->dlc->session) dev 1005 net/bluetooth/rfcomm/tty.c rfcomm_send_rpn(dev->dlc->session, 1, dev->dlc->dlci, baud, dev 1014 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 1016 net/bluetooth/rfcomm/tty.c BT_DBG("tty %p dev %p", tty, dev); dev 1018 net/bluetooth/rfcomm/tty.c rfcomm_dlc_throttle(dev->dlc); dev 1023 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 1025 net/bluetooth/rfcomm/tty.c BT_DBG("tty %p dev %p", tty, dev); dev 1027 net/bluetooth/rfcomm/tty.c rfcomm_dlc_unthrottle(dev->dlc); dev 1032 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 1034 net/bluetooth/rfcomm/tty.c BT_DBG("tty %p dev %p", tty, dev); dev 1036 net/bluetooth/rfcomm/tty.c if (!dev || !dev->dlc) dev 1039 net/bluetooth/rfcomm/tty.c if (!skb_queue_empty(&dev->dlc->tx_queue)) dev 1040 net/bluetooth/rfcomm/tty.c return dev->dlc->mtu; dev 1047 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 1049 net/bluetooth/rfcomm/tty.c BT_DBG("tty %p dev %p", tty, dev); dev 1051 net/bluetooth/rfcomm/tty.c if (!dev || !dev->dlc) dev 1054 net/bluetooth/rfcomm/tty.c skb_queue_purge(&dev->dlc->tx_queue); dev 1070 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 1072 net/bluetooth/rfcomm/tty.c BT_DBG("tty %p dev %p", tty, dev); dev 1074 net/bluetooth/rfcomm/tty.c if (!dev) dev 1079 net/bluetooth/rfcomm/tty.c if (test_bit(RFCOMM_RELEASE_ONHUP, &dev->flags)) { dev 1080 net/bluetooth/rfcomm/tty.c if (rfcomm_dev_get(dev->id) == NULL) dev 1082 net/bluetooth/rfcomm/tty.c rfcomm_dev_del(dev); dev 1083 net/bluetooth/rfcomm/tty.c rfcomm_dev_put(dev); dev 1094 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 1096 net/bluetooth/rfcomm/tty.c BT_DBG("tty %p dev %p", tty, dev); dev 1098 net/bluetooth/rfcomm/tty.c return dev->modem_status; dev 1103 net/bluetooth/rfcomm/tty.c struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; dev 1104 net/bluetooth/rfcomm/tty.c struct rfcomm_dlc *dlc = dev->dlc; dev 1107 net/bluetooth/rfcomm/tty.c BT_DBG("tty %p dev %p set 0x%02x clear 0x%02x", tty, dev, set, clear); dev 25 net/bridge/br_device.c struct net_bridge *br = netdev_priv(dev); dev 29 net/bridge/br_device.c dev->stats.tx_packets++; dev 30 net/bridge/br_device.c dev->stats.tx_bytes += skb->len; dev 47 net/bridge/br_device.c struct net_bridge *br = netdev_priv(dev); dev 50 net/bridge/br_device.c netif_start_queue(dev); dev 62 net/bridge/br_device.c br_stp_disable_bridge(netdev_priv(dev)); dev 64 net/bridge/br_device.c netif_stop_queue(dev); dev 71 net/bridge/br_device.c struct net_bridge *br = netdev_priv(dev); dev 75 net/bridge/br_device.c dev->mtu = new_mtu; dev 88 net/bridge/br_device.c struct net_bridge *br = netdev_priv(dev); dev 95 net/bridge/br_device.c memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); dev 113 net/bridge/br_device.c struct net_bridge *br = netdev_priv(dev); dev 126 net/bridge/br_device.c struct net_bridge *br = netdev_priv(dev); dev 139 net/bridge/br_device.c struct net_bridge *br = netdev_priv(dev); dev 165 net/bridge/br_device.c random_ether_addr(dev->dev_addr); dev 166 net/bridge/br_device.c ether_setup(dev); dev 168 net/bridge/br_device.c dev->do_ioctl = br_dev_ioctl; dev 169 net/bridge/br_device.c dev->hard_start_xmit = br_dev_xmit; dev 170 net/bridge/br_device.c dev->open = br_dev_open; dev 171 net/bridge/br_device.c dev->set_multicast_list = br_dev_set_multicast_list; dev 172 net/bridge/br_device.c dev->change_mtu = br_change_mtu; dev 173 net/bridge/br_device.c dev->destructor = free_netdev; dev 174 net/bridge/br_device.c SET_ETHTOOL_OPS(dev, &br_ethtool_ops); dev 175 net/bridge/br_device.c dev->stop = br_dev_stop; dev 176 net/bridge/br_device.c dev->tx_queue_len = 0; dev 177 net/bridge/br_device.c dev->set_mac_address = br_set_mac_address; dev 178 net/bridge/br_device.c dev->priv_flags = IFF_EBRIDGE; dev 180 net/bridge/br_device.c dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA | dev 99 net/bridge/br_fdb.c !compare_ether_addr(op->dev->dev_addr, dev 196 net/bridge/br_fdb.c !compare_ether_addr(op->dev->dev_addr, dev 359 net/bridge/br_fdb.c source->dev->name); dev 402 net/bridge/br_fdb.c source->dev->name); dev 25 net/bridge/br_forward.c return (skb->dev != p->dev && p->state == BR_STATE_FORWARDING); dev 36 net/bridge/br_forward.c if (packet_length(skb) > skb->dev->mtu && !skb_is_gso(skb)) dev 54 net/bridge/br_forward.c return NF_HOOK(PF_BRIDGE, NF_BR_POST_ROUTING, skb, NULL, skb->dev, dev 61 net/bridge/br_forward.c skb->dev = to->dev; dev 62 net/bridge/br_forward.c NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_OUT, skb, NULL, skb->dev, dev 70 net/bridge/br_forward.c indev = skb->dev; dev 71 net/bridge/br_forward.c skb->dev = to->dev; dev 74 net/bridge/br_forward.c NF_HOOK(PF_BRIDGE, NF_BR_FORWARD, skb, indev, skb->dev, dev 116 net/bridge/br_forward.c br->dev->stats.tx_dropped++; dev 34 net/bridge/br_if.c if (dev->ethtool_ops && dev->ethtool_ops->get_settings) { dev 37 net/bridge/br_if.c if (!dev->ethtool_ops->get_settings(dev, &ecmd)) { dev 52 net/bridge/br_if.c if (!strncmp(dev->name, "lec", 3)) dev 55 net/bridge/br_if.c if (!strncmp(dev->name, "plip", 4)) dev 69 net/bridge/br_if.c struct net_device *dev = p->dev; dev 72 net/bridge/br_if.c if (netif_carrier_ok(dev)) dev 73 net/bridge/br_if.c p->path_cost = port_cost(dev); dev 75 net/bridge/br_if.c if (netif_running(br->dev)) { dev 77 net/bridge/br_if.c if (netif_carrier_ok(dev)) { dev 104 net/bridge/br_if.c struct net_device *dev = p->dev; dev 107 net/bridge/br_if.c p->dev = NULL; dev 108 net/bridge/br_if.c dev_put(dev); dev 132 net/bridge/br_if.c struct net_device *dev = p->dev; dev 134 net/bridge/br_if.c sysfs_remove_link(br->ifobj, dev->name); dev 136 net/bridge/br_if.c dev_set_promiscuity(dev, -1); dev 148 net/bridge/br_if.c rcu_assign_pointer(dev->br_port, NULL); dev 167 net/bridge/br_if.c br_sysfs_delbr(br->dev); dev 168 net/bridge/br_if.c unregister_netdevice(br->dev); dev 174 net/bridge/br_if.c struct net_device *dev; dev 176 net/bridge/br_if.c dev = alloc_netdev(sizeof(struct net_bridge), name, dev 179 net/bridge/br_if.c if (!dev) dev 181 net/bridge/br_if.c dev_net_set(dev, net); dev 183 net/bridge/br_if.c br = netdev_priv(dev); dev 184 net/bridge/br_if.c br->dev = dev; dev 195 net/bridge/br_if.c br->feature_mask = dev->features; dev 213 net/bridge/br_if.c return dev; dev 254 net/bridge/br_if.c dev_hold(dev); dev 255 net/bridge/br_if.c p->dev = dev; dev 256 net/bridge/br_if.c p->path_cost = port_cost(dev); dev 268 net/bridge/br_if.c struct net_device *dev; dev 271 net/bridge/br_if.c dev = new_bridge_dev(net, name); dev 272 net/bridge/br_if.c if (!dev) dev 276 net/bridge/br_if.c if (strchr(dev->name, '%')) { dev 277 net/bridge/br_if.c ret = dev_alloc_name(dev, dev->name); dev 282 net/bridge/br_if.c ret = register_netdevice(dev); dev 286 net/bridge/br_if.c ret = br_sysfs_addbr(dev); dev 288 net/bridge/br_if.c unregister_netdevice(dev); dev 294 net/bridge/br_if.c free_netdev(dev); dev 300 net/bridge/br_if.c struct net_device *dev; dev 304 net/bridge/br_if.c dev = __dev_get_by_name(net, name); dev 305 net/bridge/br_if.c if (dev == NULL) dev 308 net/bridge/br_if.c else if (!(dev->priv_flags & IFF_EBRIDGE)) { dev 313 net/bridge/br_if.c else if (dev->flags & IFF_UP) { dev 319 net/bridge/br_if.c del_br(netdev_priv(dev)); dev 337 net/bridge/br_if.c if (!mtu || p->dev->mtu < mtu) dev 338 net/bridge/br_if.c mtu = p->dev->mtu; dev 355 net/bridge/br_if.c features = netdev_compute_features(features, p->dev->features); dev 358 net/bridge/br_if.c br->dev->features = features; dev 367 net/bridge/br_if.c if (dev->flags & IFF_LOOPBACK || dev->type != ARPHRD_ETHER) dev 370 net/bridge/br_if.c if (dev->hard_start_xmit == br_dev_xmit) dev 373 net/bridge/br_if.c if (dev->br_port != NULL) dev 376 net/bridge/br_if.c p = new_nbp(br, dev); dev 380 net/bridge/br_if.c err = dev_set_promiscuity(dev, 1); dev 384 net/bridge/br_if.c err = kobject_init_and_add(&p->kobj, &brport_ktype, &(dev->dev.kobj), dev 389 net/bridge/br_if.c err = br_fdb_insert(br, p, dev->dev_addr); dev 397 net/bridge/br_if.c rcu_assign_pointer(dev->br_port, p); dev 398 net/bridge/br_if.c dev_disable_lro(dev); dev 406 net/bridge/br_if.c if ((dev->flags & IFF_UP) && netif_carrier_ok(dev) && dev 407 net/bridge/br_if.c (br->dev->flags & IFF_UP)) dev 413 net/bridge/br_if.c dev_set_mtu(br->dev, br_min_mtu(br)); dev 424 net/bridge/br_if.c dev_set_promiscuity(dev, -1); dev 426 net/bridge/br_if.c dev_put(dev); dev 434 net/bridge/br_if.c struct net_bridge_port *p = dev->br_port; dev 451 net/bridge/br_if.c struct net_device *dev; dev 455 net/bridge/br_if.c for_each_netdev(net, dev) { dev 456 net/bridge/br_if.c if (dev->priv_flags & IFF_EBRIDGE) { dev 457 net/bridge/br_if.c del_br(dev->priv); dev 25 net/bridge/br_input.c struct net_device *indev, *brdev = br->dev; dev 30 net/bridge/br_input.c indev = skb->dev; dev 31 net/bridge/br_input.c skb->dev = brdev; dev 41 net/bridge/br_input.c struct net_bridge_port *p = rcu_dereference(skb->dev->br_port); dev 59 net/bridge/br_input.c if (br->dev->flags & IFF_PROMISC) dev 65 net/bridge/br_input.c br->dev->stats.multicast++; dev 96 net/bridge/br_input.c struct net_bridge_port *p = rcu_dereference(skb->dev->br_port); dev 137 net/bridge/br_input.c if (NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_IN, skb, skb->dev, dev 154 net/bridge/br_input.c if (!compare_ether_addr(p->br->dev->dev_addr, dest)) dev 157 net/bridge/br_input.c NF_HOOK(PF_BRIDGE, NF_BR_PRE_ROUTING, skb, skb->dev, NULL, dev 26 net/bridge/br_ioctl.c struct net_device *dev; dev 29 net/bridge/br_ioctl.c for_each_netdev(net, dev) { dev 32 net/bridge/br_ioctl.c if (dev->priv_flags & IFF_EBRIDGE) dev 33 net/bridge/br_ioctl.c indices[i++] = dev->ifindex; dev 46 net/bridge/br_ioctl.c ifindices[p->port_no] = p->dev->ifindex; dev 86 net/bridge/br_ioctl.c struct net_device *dev; dev 92 net/bridge/br_ioctl.c dev = dev_get_by_index(dev_net(br->dev), ifindex); dev 93 net/bridge/br_ioctl.c if (dev == NULL) dev 97 net/bridge/br_ioctl.c ret = br_add_if(br, dev); dev 99 net/bridge/br_ioctl.c ret = br_del_if(br, dev); dev 101 net/bridge/br_ioctl.c dev_put(dev); dev 112 net/bridge/br_ioctl.c struct net_bridge *br = netdev_priv(dev); dev 402 net/bridge/br_ioctl.c struct net_bridge *br = netdev_priv(dev); dev 406 net/bridge/br_ioctl.c return old_dev_ioctl(dev, rq, cmd); dev 116 net/bridge/br_netfilter.c rt->u.dst.dev = br->dev; dev 124 net/bridge/br_netfilter.c struct net_bridge_port *port = rcu_dereference(dev->br_port); dev 131 net/bridge/br_netfilter.c struct net_bridge_port *port = rcu_dereference(dev->br_port); dev 133 net/bridge/br_netfilter.c return port ? port->br->dev : NULL; dev 233 net/bridge/br_netfilter.c skb->dev = nf_bridge->physindev; dev 235 net/bridge/br_netfilter.c NF_HOOK_THRESH(PF_BRIDGE, NF_BR_PRE_ROUTING, skb, skb->dev, NULL, dev 309 net/bridge/br_netfilter.c skb->dev = bridge_parent(skb->dev); dev 310 net/bridge/br_netfilter.c if (skb->dev) { dev 326 net/bridge/br_netfilter.c struct net_device *dev = skb->dev; dev 337 net/bridge/br_netfilter.c if ((err = ip_route_input(skb, iph->daddr, iph->saddr, iph->tos, dev))) { dev 348 net/bridge/br_netfilter.c struct in_device *in_dev = in_dev_get(dev); dev 363 net/bridge/br_netfilter.c if (((struct dst_entry *)rt)->dev == dev) { dev 378 net/bridge/br_netfilter.c if (skb->dst->dev == dev) { dev 383 net/bridge/br_netfilter.c skb->dev = nf_bridge->physindev; dev 386 net/bridge/br_netfilter.c skb, skb->dev, NULL, dev 391 net/bridge/br_netfilter.c memcpy(eth_hdr(skb)->h_dest, dev->dev_addr, ETH_ALEN); dev 403 net/bridge/br_netfilter.c skb->dev = nf_bridge->physindev; dev 405 net/bridge/br_netfilter.c NF_HOOK_THRESH(PF_BRIDGE, NF_BR_PRE_ROUTING, skb, skb->dev, NULL, dev 422 net/bridge/br_netfilter.c nf_bridge->physindev = skb->dev; dev 423 net/bridge/br_netfilter.c skb->dev = bridge_parent(skb->dev); dev 425 net/bridge/br_netfilter.c return skb->dev; dev 522 net/bridge/br_netfilter.c NF_HOOK(PF_INET6, NF_INET_PRE_ROUTING, skb, skb->dev, NULL, dev 595 net/bridge/br_netfilter.c NF_HOOK(PF_INET, NF_INET_PRE_ROUTING, skb, skb->dev, NULL, dev 644 net/bridge/br_netfilter.c skb->dev, br_forward_finish, 1); dev 690 net/bridge/br_netfilter.c nf_bridge->physoutdev = skb->dev; dev 762 net/bridge/br_netfilter.c nf_bridge->physoutdev = skb->dev; dev 771 net/bridge/br_netfilter.c NF_HOOK(PF_BRIDGE, NF_BR_FORWARD, skb, realindev, skb->dev, dev 779 net/bridge/br_netfilter.c skb->len > skb->dev->mtu && dev 793 net/bridge/br_netfilter.c struct net_device *realoutdev = bridge_parent(skb->dev); dev 846 net/bridge/br_netfilter.c if (skb->dev != NULL) { dev 847 net/bridge/br_netfilter.c printk("[%s]", skb->dev->name); dev 39 net/bridge/br_netlink.c const struct net_device *dev = port->dev; dev 42 net/bridge/br_netlink.c u8 operstate = netif_running(dev) ? dev->operstate : IF_OPER_DOWN; dev 45 net/bridge/br_netlink.c event, dev->name, br->dev->name); dev 54 net/bridge/br_netlink.c hdr->ifi_type = dev->type; dev 55 net/bridge/br_netlink.c hdr->ifi_index = dev->ifindex; dev 56 net/bridge/br_netlink.c hdr->ifi_flags = dev_get_flags(dev); dev 59 net/bridge/br_netlink.c NLA_PUT_STRING(skb, IFLA_IFNAME, dev->name); dev 60 net/bridge/br_netlink.c NLA_PUT_U32(skb, IFLA_MASTER, br->dev->ifindex); dev 61 net/bridge/br_netlink.c NLA_PUT_U32(skb, IFLA_MTU, dev->mtu); dev 64 net/bridge/br_netlink.c if (dev->addr_len) dev 65 net/bridge/br_netlink.c NLA_PUT(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr); dev 67 net/bridge/br_netlink.c if (dev->ifindex != dev->iflink) dev 68 net/bridge/br_netlink.c NLA_PUT_U32(skb, IFLA_LINK, dev->iflink); dev 85 net/bridge/br_netlink.c struct net *net = dev_net(port->dev); dev 113 net/bridge/br_netlink.c struct net_device *dev; dev 117 net/bridge/br_netlink.c for_each_netdev(net, dev) { dev 119 net/bridge/br_netlink.c if (dev->br_port == NULL || idx < cb->args[0]) dev 122 net/bridge/br_netlink.c if (br_fill_ifinfo(skb, dev->br_port, NETLINK_CB(cb->skb).pid, dev 144 net/bridge/br_netlink.c struct net_device *dev; dev 163 net/bridge/br_netlink.c dev = __dev_get_by_index(net, ifm->ifi_index); dev 164 net/bridge/br_netlink.c if (!dev) dev 167 net/bridge/br_netlink.c p = dev->br_port; dev 175 net/bridge/br_netlink.c if (!netif_running(dev) || dev 176 net/bridge/br_netlink.c (!netif_carrier_ok(dev) && new_state != BR_STATE_DISABLED)) dev 34 net/bridge/br_notify.c struct net_device *dev = ptr; dev 35 net/bridge/br_notify.c struct net_bridge_port *p = dev->br_port; dev 46 net/bridge/br_notify.c dev_set_mtu(br->dev, br_min_mtu(br)); dev 51 net/bridge/br_notify.c br_fdb_changeaddr(p, dev->dev_addr); dev 62 net/bridge/br_notify.c if (netif_running(br->dev)) dev 69 net/bridge/br_notify.c if (br->dev->flags & IFF_UP) dev 75 net/bridge/br_notify.c if (netif_carrier_ok(dev) && (br->dev->flags & IFF_UP)) { dev 83 net/bridge/br_notify.c br_del_if(br, dev); dev 64 net/bridge/br_private.h struct net_device *dev; dev 91 net/bridge/br_private.h struct net_device *dev; dev 35 net/bridge/br_stp.c p->br->dev->name, p->port_no, p->dev->name, dev 137 net/bridge/br_stp.c if (br->dev->flags & IFF_UP) { dev 300 net/bridge/br_stp.c pr_info("%s: topology change detected, %s\n", br->dev->name, dev 468 net/bridge/br_stp.c p->br->dev->name, p->port_no, p->dev->name); dev 40 net/bridge/br_stp_bpdu.c skb->dev = p->dev; dev 50 net/bridge/br_stp_bpdu.c llc_mac_hdr_init(skb, p->dev->dev_addr, p->br->group_addr); dev 52 net/bridge/br_stp_bpdu.c NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_OUT, skb, NULL, skb->dev, dev 139 net/bridge/br_stp_bpdu.c struct net_bridge_port *p = rcu_dereference(dev->br_port); dev 160 net/bridge/br_stp_bpdu.c if (!(br->dev->flags & IFF_UP)) dev 54 net/bridge/br_stp_if.c if ((p->dev->flags & IFF_UP) && netif_carrier_ok(p->dev)) dev 98 net/bridge/br_stp_if.c br->dev->name, p->port_no, p->dev->name, "disabled"); dev 123 net/bridge/br_stp_if.c char *argv[] = { BR_STP_PROG, br->dev->name, "start", NULL }; dev 129 net/bridge/br_stp_if.c printk(KERN_INFO "%s: userspace STP started\n", br->dev->name); dev 133 net/bridge/br_stp_if.c "starting kernel STP\n", br->dev->name); dev 145 net/bridge/br_stp_if.c char *argv[] = { BR_STP_PROG, br->dev->name, "stop", NULL }; dev 151 net/bridge/br_stp_if.c br->dev->name, r); dev 189 net/bridge/br_stp_if.c memcpy(br->dev->dev_addr, addr, ETH_ALEN); dev 223 net/bridge/br_stp_if.c memcmp(p->dev->dev_addr, addr, ETH_ALEN) < 0) dev 224 net/bridge/br_stp_if.c addr = p->dev->dev_addr; dev 38 net/bridge/br_stp_timer.c pr_debug("%s: hello timer expired\n", br->dev->name); dev 40 net/bridge/br_stp_timer.c if (br->dev->flags & IFF_UP) { dev 60 net/bridge/br_stp_timer.c br->dev->name, dev 64 net/bridge/br_stp_timer.c p->port_no, p->dev->name); dev 91 net/bridge/br_stp_timer.c br->dev->name, p->port_no, p->dev->name); dev 110 net/bridge/br_stp_timer.c pr_debug("%s: tcn timer expired\n", br->dev->name); dev 112 net/bridge/br_stp_timer.c if (br->dev->flags & IFF_UP) { dev 124 net/bridge/br_stp_timer.c pr_debug("%s: topo change timer expired\n", br->dev->name); dev 136 net/bridge/br_stp_timer.c p->br->dev->name, p->port_no, p->dev->name); dev 384 net/bridge/br_sysfs_br.c struct device *dev = to_dev(kobj); dev 385 net/bridge/br_sysfs_br.c struct net_bridge *br = to_bridge(dev); dev 421 net/bridge/br_sysfs_br.c struct kobject *brobj = &dev->dev.kobj; dev 422 net/bridge/br_sysfs_br.c struct net_bridge *br = netdev_priv(dev); dev 428 net/bridge/br_sysfs_br.c __func__, dev->name, bridge_group.name); dev 435 net/bridge/br_sysfs_br.c __func__, dev->name, bridge_forward.attr.name); dev 442 net/bridge/br_sysfs_br.c __func__, dev->name, SYSFS_BRIDGE_PORT_SUBDIR); dev 447 net/bridge/br_sysfs_br.c sysfs_remove_bin_file(&dev->dev.kobj, &bridge_forward); dev 449 net/bridge/br_sysfs_br.c sysfs_remove_group(&dev->dev.kobj, &bridge_group); dev 457 net/bridge/br_sysfs_br.c struct kobject *kobj = &dev->dev.kobj; dev 458 net/bridge/br_sysfs_br.c struct net_bridge *br = netdev_priv(dev); dev 193 net/bridge/br_sysfs_if.c if (p->dev && p->br && brport_attr->store) { dev 221 net/bridge/br_sysfs_if.c err = sysfs_create_link(&p->kobj, &br->dev->dev.kobj, dev 232 net/bridge/br_sysfs_if.c err = sysfs_create_link(br->ifobj, &p->kobj, p->dev->name); dev 28 net/bridge/netfilter/ebt_redirect.c par->in->br_port->br->dev->dev_addr, ETH_ALEN); dev 185 net/bridge/netfilter/ebt_ulog.c strcpy(pm->indev, in->br_port->br->dev->name); dev 194 net/bridge/netfilter/ebt_ulog.c strcpy(pm->outdev, out->br_port->br->dev->name); dev 58 net/bridge/netfilter/ebtable_broute.c ret = ebt_do_table(NF_BR_BROUTING, skb, skb->dev, NULL, dev 120 net/bridge/netfilter/ebtables.c e->logical_in, in->br_port->br->dev), EBT_ILOGICALIN)) dev 123 net/bridge/netfilter/ebtables.c e->logical_out, out->br_port->br->dev), EBT_ILOGICALOUT)) dev 221 net/can/af_can.c if (skb->dev->type != ARPHRD_CAN) { dev 226 net/can/af_can.c if (!(skb->dev->flags & IFF_UP)) { dev 250 net/can/af_can.c if (!(skb->dev->flags & IFF_ECHO)) { dev 315 net/can/af_can.c if (d->dev == dev) dev 406 net/can/af_can.c d = find_dev_rcv_lists(dev); dev 475 net/can/af_can.c d = find_dev_rcv_lists(dev); dev 479 net/can/af_can.c DNAME(dev), can_id, mask); dev 506 net/can/af_can.c DNAME(dev), can_id, mask); dev 618 net/can/af_can.c if (dev->type != ARPHRD_CAN || !net_eq(dev_net(dev), &init_net)) { dev 635 net/can/af_can.c d = find_dev_rcv_lists(dev); dev 728 net/can/af_can.c struct net_device *dev = (struct net_device *)data; dev 731 net/can/af_can.c if (!net_eq(dev_net(dev), &init_net)) dev 734 net/can/af_can.c if (dev->type != ARPHRD_CAN) dev 756 net/can/af_can.c d->dev = dev; dev 767 net/can/af_can.c d = find_dev_rcv_lists(dev); dev 776 net/can/af_can.c "found for dev %s\n", dev->name); dev 795 net/can/af_can.c .dev = NULL, dev 69 net/can/af_can.h struct net_device *dev; dev 133 net/can/bcm.c struct net_device *dev; dev 139 net/can/bcm.c dev = __dev_get_by_index(&init_net, ifindex); dev 140 net/can/bcm.c if (dev) dev 141 net/can/bcm.c return dev->name; dev 244 net/can/bcm.c struct net_device *dev; dev 251 net/can/bcm.c dev = dev_get_by_index(&init_net, op->ifindex); dev 252 net/can/bcm.c if (!dev) { dev 264 net/can/bcm.c skb->dev = dev; dev 276 net/can/bcm.c dev_put(dev); dev 609 net/can/bcm.c op->rx_ifindex = skb->dev->ifindex; dev 696 net/can/bcm.c if (op->rx_reg_dev == dev) { dev 697 net/can/bcm.c can_rx_unregister(dev, op->can_id, REGMASK(op->can_id), dev 704 net/can/bcm.c "mismatch %p %p\n", op->rx_reg_dev, dev); dev 729 net/can/bcm.c struct net_device *dev; dev 731 net/can/bcm.c dev = dev_get_by_index(&init_net, dev 733 net/can/bcm.c if (dev) { dev 734 net/can/bcm.c bcm_rx_unreg(dev, op); dev 735 net/can/bcm.c dev_put(dev); dev 1115 net/can/bcm.c struct net_device *dev; dev 1117 net/can/bcm.c dev = dev_get_by_index(&init_net, ifindex); dev 1118 net/can/bcm.c if (dev) { dev 1119 net/can/bcm.c err = can_rx_register(dev, op->can_id, dev 1124 net/can/bcm.c op->rx_reg_dev = dev; dev 1125 net/can/bcm.c dev_put(dev); dev 1149 net/can/bcm.c struct net_device *dev; dev 1167 net/can/bcm.c dev = dev_get_by_index(&init_net, ifindex); dev 1168 net/can/bcm.c if (!dev) { dev 1173 net/can/bcm.c skb->dev = dev; dev 1176 net/can/bcm.c dev_put(dev); dev 1217 net/can/bcm.c struct net_device *dev; dev 1219 net/can/bcm.c dev = dev_get_by_index(&init_net, ifindex); dev 1220 net/can/bcm.c if (!dev) dev 1223 net/can/bcm.c if (dev->type != ARPHRD_CAN) { dev 1224 net/can/bcm.c dev_put(dev); dev 1228 net/can/bcm.c dev_put(dev); dev 1300 net/can/bcm.c struct net_device *dev = (struct net_device *)data; dev 1306 net/can/bcm.c if (!net_eq(dev_net(dev), &init_net)) dev 1309 net/can/bcm.c if (dev->type != ARPHRD_CAN) dev 1319 net/can/bcm.c if (op->rx_reg_dev == dev) dev 1320 net/can/bcm.c bcm_rx_unreg(dev, op); dev 1323 net/can/bcm.c if (bo->bound && bo->ifindex == dev->ifindex) { dev 1339 net/can/bcm.c if (bo->bound && bo->ifindex == dev->ifindex) { dev 1402 net/can/bcm.c struct net_device *dev; dev 1404 net/can/bcm.c dev = dev_get_by_index(&init_net, op->ifindex); dev 1405 net/can/bcm.c if (dev) { dev 1406 net/can/bcm.c bcm_rx_unreg(dev, op); dev 1407 net/can/bcm.c dev_put(dev); dev 1446 net/can/bcm.c struct net_device *dev; dev 1448 net/can/bcm.c dev = dev_get_by_index(&init_net, addr->can_ifindex); dev 1449 net/can/bcm.c if (!dev) dev 1452 net/can/bcm.c if (dev->type != ARPHRD_CAN) { dev 1453 net/can/bcm.c dev_put(dev); dev 1457 net/can/bcm.c bo->ifindex = dev->ifindex; dev 1458 net/can/bcm.c dev_put(dev); dev 212 net/can/proc.c DNAME(dev), r->can_id, r->mask, dev 377 net/can/proc.c len = can_print_rcvlist(page, len, &d->rx[idx], d->dev); dev 380 net/can/proc.c " (%s: no entry)\n", DNAME(d->dev)); dev 422 net/can/proc.c d->dev); dev 426 net/can/proc.c " (%s: no entry)\n", DNAME(d->dev)); dev 121 net/can/raw.c addr->can_ifindex = skb->dev->ifindex; dev 134 net/can/raw.c err = can_rx_register(dev, filter[i].can_id, dev 140 net/can/raw.c can_rx_unregister(dev, filter[i].can_id, dev 156 net/can/raw.c err = can_rx_register(dev, 0, err_mask | CAN_ERR_FLAG, dev 168 net/can/raw.c can_rx_unregister(dev, filter[i].can_id, filter[i].can_mask, dev 178 net/can/raw.c can_rx_unregister(dev, 0, err_mask | CAN_ERR_FLAG, dev 187 net/can/raw.c raw_disable_filters(dev, sk, ro->filter, ro->count); dev 188 net/can/raw.c raw_disable_errfilter(dev, sk, ro->err_mask); dev 196 net/can/raw.c err = raw_enable_filters(dev, sk, ro->filter, ro->count); dev 198 net/can/raw.c err = raw_enable_errfilter(dev, sk, ro->err_mask); dev 200 net/can/raw.c raw_disable_filters(dev, sk, ro->filter, ro->count); dev 209 net/can/raw.c struct net_device *dev = (struct net_device *)data; dev 213 net/can/raw.c if (!net_eq(dev_net(dev), &init_net)) dev 216 net/can/raw.c if (dev->type != ARPHRD_CAN) dev 219 net/can/raw.c if (ro->ifindex != dev->ifindex) dev 228 net/can/raw.c raw_disable_allfilters(dev, sk); dev 290 net/can/raw.c struct net_device *dev; dev 292 net/can/raw.c dev = dev_get_by_index(&init_net, ro->ifindex); dev 293 net/can/raw.c if (dev) { dev 294 net/can/raw.c raw_disable_allfilters(dev, sk); dev 295 net/can/raw.c dev_put(dev); dev 332 net/can/raw.c struct net_device *dev; dev 334 net/can/raw.c dev = dev_get_by_index(&init_net, addr->can_ifindex); dev 335 net/can/raw.c if (!dev) { dev 339 net/can/raw.c if (dev->type != ARPHRD_CAN) { dev 340 net/can/raw.c dev_put(dev); dev 344 net/can/raw.c if (!(dev->flags & IFF_UP)) dev 347 net/can/raw.c ifindex = dev->ifindex; dev 350 net/can/raw.c err = raw_enable_allfilters(dev, sk); dev 351 net/can/raw.c dev_put(dev); dev 363 net/can/raw.c struct net_device *dev; dev 365 net/can/raw.c dev = dev_get_by_index(&init_net, ro->ifindex); dev 366 net/can/raw.c if (dev) { dev 367 net/can/raw.c raw_disable_allfilters(dev, sk); dev 368 net/can/raw.c dev_put(dev); dev 414 net/can/raw.c struct net_device *dev = NULL; dev 450 net/can/raw.c dev = dev_get_by_index(&init_net, ro->ifindex); dev 455 net/can/raw.c err = raw_enable_filters(dev, sk, &sfilter, 1); dev 457 net/can/raw.c err = raw_enable_filters(dev, sk, filter, dev 466 net/can/raw.c raw_disable_filters(dev, sk, ro->filter, ro->count); dev 483 net/can/raw.c if (dev) dev 484 net/can/raw.c dev_put(dev); dev 502 net/can/raw.c dev = dev_get_by_index(&init_net, ro->ifindex); dev 507 net/can/raw.c err = raw_enable_errfilter(dev, sk, err_mask); dev 513 net/can/raw.c raw_disable_errfilter(dev, sk, ro->err_mask); dev 520 net/can/raw.c if (dev) dev 521 net/can/raw.c dev_put(dev); dev 620 net/can/raw.c struct net_device *dev; dev 638 net/can/raw.c dev = dev_get_by_index(&init_net, ifindex); dev 639 net/can/raw.c if (!dev) dev 645 net/can/raw.c dev_put(dev); dev 652 net/can/raw.c dev_put(dev); dev 655 net/can/raw.c skb->dev = dev; dev 660 net/can/raw.c dev_put(dev); dev 528 net/core/datagram.c netdev_rx_csum_fault(skb->dev); dev 582 net/core/datagram.c netdev_rx_csum_fault(skb->dev); dev 227 net/core/dev.c struct net *net = dev_net(dev); dev 232 net/core/dev.c list_add_tail(&dev->dev_list, &net->dev_base_head); dev 233 net/core/dev.c hlist_add_head(&dev->name_hlist, dev_name_hash(net, dev->name)); dev 234 net/core/dev.c hlist_add_head(&dev->index_hlist, dev_index_hash(net, dev->ifindex)); dev 246 net/core/dev.c list_del(&dev->dev_list); dev 247 net/core/dev.c hlist_del(&dev->name_hlist); dev 248 net/core/dev.c hlist_del(&dev->index_hlist); dev 332 net/core/dev.c i = netdev_lock_pos(dev->type); dev 333 net/core/dev.c lockdep_set_class_and_name(&dev->addr_list_lock, dev 503 net/core/dev.c !strcmp(dev->name, s[i].name)) { dev 504 net/core/dev.c dev->irq = s[i].map.irq; dev 505 net/core/dev.c dev->base_addr = s[i].map.base_addr; dev 506 net/core/dev.c dev->mem_start = s[i].map.mem_start; dev 507 net/core/dev.c dev->mem_end = s[i].map.mem_end; dev 598 net/core/dev.c struct net_device *dev dev 600 net/core/dev.c if (!strncmp(dev->name, name, IFNAMSIZ)) dev 601 net/core/dev.c return dev; dev 620 net/core/dev.c struct net_device *dev; dev 623 net/core/dev.c dev = __dev_get_by_name(net, name); dev 624 net/core/dev.c if (dev) dev 625 net/core/dev.c dev_hold(dev); dev 627 net/core/dev.c return dev; dev 647 net/core/dev.c struct net_device *dev dev 649 net/core/dev.c if (dev->ifindex == ifindex) dev 650 net/core/dev.c return dev; dev 669 net/core/dev.c struct net_device *dev; dev 672 net/core/dev.c dev = __dev_get_by_index(net, ifindex); dev 673 net/core/dev.c if (dev) dev 674 net/core/dev.c dev_hold(dev); dev 676 net/core/dev.c return dev; dev 696 net/core/dev.c struct net_device *dev; dev 700 net/core/dev.c for_each_netdev(net, dev) dev 701 net/core/dev.c if (dev->type == type && dev 702 net/core/dev.c !memcmp(dev->dev_addr, ha, dev->addr_len)) dev 703 net/core/dev.c return dev; dev 712 net/core/dev.c struct net_device *dev; dev 715 net/core/dev.c for_each_netdev(net, dev) dev 716 net/core/dev.c if (dev->type == type) dev 717 net/core/dev.c return dev; dev 726 net/core/dev.c struct net_device *dev; dev 729 net/core/dev.c dev = __dev_getfirstbyhwtype(net, type); dev 730 net/core/dev.c if (dev) dev 731 net/core/dev.c dev_hold(dev); dev 733 net/core/dev.c return dev; dev 752 net/core/dev.c struct net_device *dev, *ret; dev 756 net/core/dev.c for_each_netdev(net, dev) { dev 757 net/core/dev.c if (((dev->flags ^ if_flags) & mask) == 0) { dev 758 net/core/dev.c dev_hold(dev); dev 759 net/core/dev.c ret = dev; dev 877 net/core/dev.c BUG_ON(!dev_net(dev)); dev 878 net/core/dev.c net = dev_net(dev); dev 881 net/core/dev.c strlcpy(dev->name, buf, IFNAMSIZ); dev 902 net/core/dev.c BUG_ON(!dev_net(dev)); dev 904 net/core/dev.c net = dev_net(dev); dev 905 net/core/dev.c if (dev->flags & IFF_UP) dev 911 net/core/dev.c if (strncmp(newname, dev->name, IFNAMSIZ) == 0) dev 914 net/core/dev.c memcpy(oldname, dev->name, IFNAMSIZ); dev 917 net/core/dev.c err = dev_alloc_name(dev, newname); dev 924 net/core/dev.c strlcpy(dev->name, newname, IFNAMSIZ); dev 927 net/core/dev.c err = device_rename(&dev->dev, dev->name); dev 929 net/core/dev.c memcpy(dev->name, oldname, IFNAMSIZ); dev 934 net/core/dev.c hlist_del(&dev->name_hlist); dev 935 net/core/dev.c hlist_add_head(&dev->name_hlist, dev_name_hash(net, dev->name)); dev 938 net/core/dev.c ret = call_netdevice_notifiers(NETDEV_CHANGENAME, dev); dev 945 net/core/dev.c dev->name, ret); dev 948 net/core/dev.c memcpy(dev->name, oldname, IFNAMSIZ); dev 972 net/core/dev.c if (dev->ifalias) { dev 973 net/core/dev.c kfree(dev->ifalias); dev 974 net/core/dev.c dev->ifalias = NULL; dev 979 net/core/dev.c dev->ifalias = krealloc(dev->ifalias, len+1, GFP_KERNEL); dev 980 net/core/dev.c if (!dev->ifalias) dev 983 net/core/dev.c strlcpy(dev->ifalias, alias, len+1); dev 996 net/core/dev.c call_netdevice_notifiers(NETDEV_FEAT_CHANGE, dev); dev 1010 net/core/dev.c if (dev->flags & IFF_UP) { dev 1011 net/core/dev.c call_netdevice_notifiers(NETDEV_CHANGE, dev); dev 1012 net/core/dev.c rtmsg_ifinfo(RTM_NEWLINK, dev, 0); dev 1018 net/core/dev.c call_netdevice_notifiers(NETDEV_BONDING_FAILOVER, dev); dev 1034 net/core/dev.c struct net_device *dev; dev 1037 net/core/dev.c dev = __dev_get_by_name(net, name); dev 1040 net/core/dev.c if (!dev && capable(CAP_SYS_MODULE)) dev 1066 net/core/dev.c if (dev->flags & IFF_UP) dev 1072 net/core/dev.c if (!netif_device_present(dev)) dev 1078 net/core/dev.c set_bit(__LINK_STATE_START, &dev->state); dev 1080 net/core/dev.c if (dev->validate_addr) dev 1081 net/core/dev.c ret = dev->validate_addr(dev); dev 1083 net/core/dev.c if (!ret && dev->open) dev 1084 net/core/dev.c ret = dev->open(dev); dev 1091 net/core/dev.c clear_bit(__LINK_STATE_START, &dev->state); dev 1096 net/core/dev.c dev->flags |= IFF_UP; dev 1101 net/core/dev.c dev_set_rx_mode(dev); dev 1106 net/core/dev.c dev_activate(dev); dev 1111 net/core/dev.c call_netdevice_notifiers(NETDEV_UP, dev); dev 1132 net/core/dev.c if (!(dev->flags & IFF_UP)) dev 1139 net/core/dev.c call_netdevice_notifiers(NETDEV_GOING_DOWN, dev); dev 1141 net/core/dev.c clear_bit(__LINK_STATE_START, &dev->state); dev 1151 net/core/dev.c dev_deactivate(dev); dev 1160 net/core/dev.c if (dev->stop) dev 1161 net/core/dev.c dev->stop(dev); dev 1167 net/core/dev.c dev->flags &= ~IFF_UP; dev 1172 net/core/dev.c call_netdevice_notifiers(NETDEV_DOWN, dev); dev 1188 net/core/dev.c if (dev->ethtool_ops && dev->ethtool_ops->get_flags && dev 1189 net/core/dev.c dev->ethtool_ops->set_flags) { dev 1190 net/core/dev.c u32 flags = dev->ethtool_ops->get_flags(dev); dev 1193 net/core/dev.c dev->ethtool_ops->set_flags(dev, flags); dev 1196 net/core/dev.c WARN_ON(dev->features & NETIF_F_LRO); dev 1224 net/core/dev.c struct net_device *dev; dev 1236 net/core/dev.c for_each_netdev(net, dev) { dev 1237 net/core/dev.c err = nb->notifier_call(nb, NETDEV_REGISTER, dev); dev 1242 net/core/dev.c if (!(dev->flags & IFF_UP)) dev 1245 net/core/dev.c nb->notifier_call(nb, NETDEV_UP, dev); dev 1254 net/core/dev.c last = dev; dev 1256 net/core/dev.c for_each_netdev(net, dev) { dev 1257 net/core/dev.c if (dev == last) dev 1260 net/core/dev.c if (dev->flags & IFF_UP) { dev 1261 net/core/dev.c nb->notifier_call(nb, NETDEV_GOING_DOWN, dev); dev 1262 net/core/dev.c nb->notifier_call(nb, NETDEV_DOWN, dev); dev 1264 net/core/dev.c nb->notifier_call(nb, NETDEV_UNREGISTER, dev); dev 1303 net/core/dev.c return raw_notifier_call_chain(&netdev_chain, val, dev); dev 1343 net/core/dev.c if ((ptype->dev == dev || !ptype->dev) && dev 1361 net/core/dev.c skb2->protocol, dev->name); dev 1367 net/core/dev.c ptype->func(skb2, skb->dev, ptype, skb->dev); dev 1428 net/core/dev.c if (test_and_clear_bit(__LINK_STATE_PRESENT, &dev->state) && dev 1429 net/core/dev.c netif_running(dev)) { dev 1430 net/core/dev.c netif_stop_queue(dev); dev 1443 net/core/dev.c if (!test_and_set_bit(__LINK_STATE_PRESENT, &dev->state) && dev 1444 net/core/dev.c netif_running(dev)) { dev 1445 net/core/dev.c netif_wake_queue(dev); dev 1446 net/core/dev.c __netdev_watchdog_up(dev); dev 1462 net/core/dev.c if (can_checksum_protocol(dev->features, skb->protocol)) dev 1467 net/core/dev.c if (can_checksum_protocol(dev->features & dev->vlan_features, dev 1545 net/core/dev.c if (ptype->type == type && !ptype->dev && ptype->gso_segment) { dev 1573 net/core/dev.c dev ? dev->name : "<unknown>"); dev 1590 net/core/dev.c if (dev->features & NETIF_F_HIGHDMA) dev 1633 net/core/dev.c struct net_device *dev = skb->dev; dev 1635 net/core/dev.c int features = dev->features & ~(illegal_highdma(dev, skb) ? dev 1659 net/core/dev.c dev_queue_xmit_nit(skb, dev); dev 1661 net/core/dev.c if (netif_needs_gso(dev, skb)) { dev 1668 net/core/dev.c return dev->hard_start_xmit(skb, dev); dev 1678 net/core/dev.c rc = dev->hard_start_xmit(nskb, dev); dev 1746 net/core/dev.c return (u16) (((u64) hash * dev->real_num_tx_queues) >> 32); dev 1754 net/core/dev.c if (dev->select_queue) dev 1755 net/core/dev.c queue_index = dev->select_queue(dev, skb); dev 1756 net/core/dev.c else if (dev->real_num_tx_queues > 1) dev 1757 net/core/dev.c queue_index = simple_tx_hash(dev, skb); dev 1760 net/core/dev.c return netdev_get_tx_queue(dev, queue_index); dev 1790 net/core/dev.c struct net_device *dev = skb->dev; dev 1796 net/core/dev.c if (netif_needs_gso(dev, skb)) dev 1800 net/core/dev.c !(dev->features & NETIF_F_FRAGLIST) && dev 1809 net/core/dev.c (!(dev->features & NETIF_F_SG) || illegal_highdma(dev, skb)) && dev 1819 net/core/dev.c if (!dev_can_checksum(dev, skb) && skb_checksum_help(skb)) dev 1829 net/core/dev.c txq = dev_pick_tx(dev, skb); dev 1864 net/core/dev.c if (dev->flags & IFF_UP) { dev 1869 net/core/dev.c HARD_TX_LOCK(dev, txq, cpu); dev 1873 net/core/dev.c if (!dev_hard_start_xmit(skb, dev, txq)) { dev 1874 net/core/dev.c HARD_TX_UNLOCK(dev, txq); dev 1878 net/core/dev.c HARD_TX_UNLOCK(dev, txq); dev 1881 net/core/dev.c "queue packet!\n", dev->name); dev 1887 net/core/dev.c "%s, fix it urgently!\n", dev->name); dev 2044 net/core/dev.c return pt_prev->func(skb, skb->dev, pt_prev, orig_dev); dev 2067 net/core/dev.c (port = rcu_dereference(skb->dev->br_port)) == NULL) dev 2090 net/core/dev.c if (skb->dev->macvlan_port == NULL) dev 2114 net/core/dev.c struct net_device *dev = skb->dev; dev 2123 net/core/dev.c skb->iif, dev->ifindex); dev 2130 net/core/dev.c rxq = &dev->rx_queue; dev 2147 net/core/dev.c if (skb->dev->rx_queue.qdisc == &noop_qdisc) dev 2192 net/core/dev.c if (!ptype->dev || ptype->dev == skb->dev) dev 2193 net/core/dev.c deliver_skb(skb, ptype, skb->dev); dev 2229 net/core/dev.c skb->iif = skb->dev->ifindex; dev 2232 net/core/dev.c orig_dev = skb->dev; dev 2237 net/core/dev.c skb->dev = orig_dev->master; dev 2251 net/core/dev.c if (!net_alive(dev_net(skb->dev))) dev 2262 net/core/dev.c if (ptype->dev == null_or_orig || ptype->dev == skb->dev || dev 2263 net/core/dev.c ptype->dev == orig_dev) { dev 2288 net/core/dev.c (ptype->dev == null_or_orig || ptype->dev == skb->dev || dev 2289 net/core/dev.c ptype->dev == orig_dev)) { dev 2297 net/core/dev.c ret = pt_prev->func(skb, skb->dev, pt_prev, orig_dev); dev 2314 net/core/dev.c struct net_device *dev = arg; dev 2319 net/core/dev.c if (skb->dev == dev) { dev 2493 net/core/dev.c struct net_device *dev; dev 2504 net/core/dev.c dev = __dev_get_by_index(net, ifr.ifr_ifindex); dev 2505 net/core/dev.c if (!dev) { dev 2510 net/core/dev.c strcpy(ifr.ifr_name, dev->name); dev 2527 net/core/dev.c struct net_device *dev; dev 2548 net/core/dev.c for_each_netdev(net, dev) { dev 2553 net/core/dev.c done = gifconf_list[i](dev, NULL, 0); dev 2555 net/core/dev.c done = gifconf_list[i](dev, pos + total, dev 2585 net/core/dev.c struct net_device *dev; dev 2592 net/core/dev.c for_each_netdev(net, dev) dev 2594 net/core/dev.c return dev; dev 2615 net/core/dev.c struct net_device_stats *stats = dev->get_stats(dev); dev 2619 net/core/dev.c dev->name, stats->rx_bytes, stats->rx_packets, dev 2828 net/core/dev.c else if (pt->dev == NULL || dev_net(pt->dev) == seq_file_net(seq)) { dev 2835 net/core/dev.c pt->dev ? pt->dev->name : ""); dev 2954 net/core/dev.c if (dev->flags & IFF_UP && dev->change_rx_flags) dev 2955 net/core/dev.c dev->change_rx_flags(dev, flags); dev 2960 net/core/dev.c unsigned short old_flags = dev->flags; dev 2964 net/core/dev.c dev->flags |= IFF_PROMISC; dev 2965 net/core/dev.c dev->promiscuity += inc; dev 2966 net/core/dev.c if (dev->promiscuity == 0) { dev 2972 net/core/dev.c dev->flags &= ~IFF_PROMISC; dev 2974 net/core/dev.c dev->promiscuity -= inc; dev 2977 net/core/dev.c "of device might be broken.\n", dev->name); dev 2981 net/core/dev.c if (dev->flags != old_flags) { dev 2983 net/core/dev.c dev->name, (dev->flags & IFF_PROMISC) ? "entered" : dev 2989 net/core/dev.c dev->name, (dev->flags & IFF_PROMISC), dev 2995 net/core/dev.c dev_change_rx_flags(dev, IFF_PROMISC); dev 3013 net/core/dev.c unsigned short old_flags = dev->flags; dev 3016 net/core/dev.c err = __dev_set_promiscuity(dev, inc); dev 3019 net/core/dev.c if (dev->flags != old_flags) dev 3020 net/core/dev.c dev_set_rx_mode(dev); dev 3039 net/core/dev.c unsigned short old_flags = dev->flags; dev 3043 net/core/dev.c dev->flags |= IFF_ALLMULTI; dev 3044 net/core/dev.c dev->allmulti += inc; dev 3045 net/core/dev.c if (dev->allmulti == 0) { dev 3051 net/core/dev.c dev->flags &= ~IFF_ALLMULTI; dev 3053 net/core/dev.c dev->allmulti -= inc; dev 3056 net/core/dev.c "device might be broken.\n", dev->name); dev 3060 net/core/dev.c if (dev->flags ^ old_flags) { dev 3061 net/core/dev.c dev_change_rx_flags(dev, IFF_ALLMULTI); dev 3062 net/core/dev.c dev_set_rx_mode(dev); dev 3076 net/core/dev.c if (!(dev->flags&IFF_UP)) dev 3079 net/core/dev.c if (!netif_device_present(dev)) dev 3082 net/core/dev.c if (dev->set_rx_mode) dev 3083 net/core/dev.c dev->set_rx_mode(dev); dev 3088 net/core/dev.c if (dev->uc_count > 0 && !dev->uc_promisc) { dev 3089 net/core/dev.c __dev_set_promiscuity(dev, 1); dev 3090 net/core/dev.c dev->uc_promisc = 1; dev 3091 net/core/dev.c } else if (dev->uc_count == 0 && dev->uc_promisc) { dev 3092 net/core/dev.c __dev_set_promiscuity(dev, -1); dev 3093 net/core/dev.c dev->uc_promisc = 0; dev 3096 net/core/dev.c if (dev->set_multicast_list) dev 3097 net/core/dev.c dev->set_multicast_list(dev); dev 3103 net/core/dev.c netif_addr_lock_bh(dev); dev 3104 net/core/dev.c __dev_set_rx_mode(dev); dev 3105 net/core/dev.c netif_addr_unlock_bh(dev); dev 3183 net/core/dev.c netif_addr_lock_bh(dev); dev 3184 net/core/dev.c err = __dev_addr_delete(&dev->uc_list, &dev->uc_count, addr, alen, 0); dev 3186 net/core/dev.c __dev_set_rx_mode(dev); dev 3187 net/core/dev.c netif_addr_unlock_bh(dev); dev 3209 net/core/dev.c netif_addr_lock_bh(dev); dev 3210 net/core/dev.c err = __dev_addr_add(&dev->uc_list, &dev->uc_count, addr, alen, 0); dev 3212 net/core/dev.c __dev_set_rx_mode(dev); dev 3213 net/core/dev.c netif_addr_unlock_bh(dev); dev 3329 net/core/dev.c netif_addr_lock_bh(dev); dev 3331 net/core/dev.c __dev_addr_discard(&dev->uc_list); dev 3332 net/core/dev.c dev->uc_count = 0; dev 3334 net/core/dev.c __dev_addr_discard(&dev->mc_list); dev 3335 net/core/dev.c dev->mc_count = 0; dev 3337 net/core/dev.c netif_addr_unlock_bh(dev); dev 3350 net/core/dev.c flags = (dev->flags & ~(IFF_PROMISC | dev 3355 net/core/dev.c (dev->gflags & (IFF_PROMISC | dev 3358 net/core/dev.c if (netif_running(dev)) { dev 3359 net/core/dev.c if (netif_oper_up(dev)) dev 3361 net/core/dev.c if (netif_carrier_ok(dev)) dev 3363 net/core/dev.c if (netif_dormant(dev)) dev 3381 net/core/dev.c int old_flags = dev->flags; dev 3389 net/core/dev.c dev->flags = (flags & (IFF_DEBUG | IFF_NOTRAILERS | IFF_NOARP | dev 3392 net/core/dev.c (dev->flags & (IFF_UP | IFF_VOLATILE | IFF_PROMISC | dev 3400 net/core/dev.c dev_change_rx_flags(dev, IFF_MULTICAST); dev 3402 net/core/dev.c dev_set_rx_mode(dev); dev 3412 net/core/dev.c ret = ((old_flags & IFF_UP) ? dev_close : dev_open)(dev); dev 3415 net/core/dev.c dev_set_rx_mode(dev); dev 3418 net/core/dev.c if (dev->flags & IFF_UP && dev 3419 net/core/dev.c ((old_flags ^ dev->flags) &~ (IFF_UP | IFF_PROMISC | IFF_ALLMULTI | dev 3421 net/core/dev.c call_netdevice_notifiers(NETDEV_CHANGE, dev); dev 3423 net/core/dev.c if ((flags ^ dev->gflags) & IFF_PROMISC) { dev 3425 net/core/dev.c dev->gflags ^= IFF_PROMISC; dev 3426 net/core/dev.c dev_set_promiscuity(dev, inc); dev 3433 net/core/dev.c if ((flags ^ dev->gflags) & IFF_ALLMULTI) { dev 3435 net/core/dev.c dev->gflags ^= IFF_ALLMULTI; dev 3436 net/core/dev.c dev_set_allmulti(dev, inc); dev 3440 net/core/dev.c changes = (old_flags ^ dev->flags) & ~(IFF_UP | IFF_RUNNING); dev 3442 net/core/dev.c rtmsg_ifinfo(RTM_NEWLINK, dev, changes); dev 3458 net/core/dev.c if (new_mtu == dev->mtu) dev 3465 net/core/dev.c if (!netif_device_present(dev)) dev 3469 net/core/dev.c if (dev->change_mtu) dev 3470 net/core/dev.c err = dev->change_mtu(dev, new_mtu); dev 3472 net/core/dev.c dev->mtu = new_mtu; dev 3473 net/core/dev.c if (!err && dev->flags & IFF_UP) dev 3474 net/core/dev.c call_netdevice_notifiers(NETDEV_CHANGEMTU, dev); dev 3489 net/core/dev.c if (!dev->set_mac_address) dev 3491 net/core/dev.c if (sa->sa_family != dev->type) dev 3493 net/core/dev.c if (!netif_device_present(dev)) dev 3495 net/core/dev.c err = dev->set_mac_address(dev, sa); dev 3497 net/core/dev.c call_netdevice_notifiers(NETDEV_CHANGEADDR, dev); dev 3507 net/core/dev.c struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); dev 3509 net/core/dev.c if (!dev) dev 3514 net/core/dev.c ifr->ifr_flags = dev_get_flags(dev); dev 3523 net/core/dev.c ifr->ifr_mtu = dev->mtu; dev 3527 net/core/dev.c if (!dev->addr_len) dev 3530 net/core/dev.c memcpy(ifr->ifr_hwaddr.sa_data, dev->dev_addr, dev 3531 net/core/dev.c min(sizeof ifr->ifr_hwaddr.sa_data, (size_t) dev->addr_len)); dev 3532 net/core/dev.c ifr->ifr_hwaddr.sa_family = dev->type; dev 3540 net/core/dev.c ifr->ifr_map.mem_start = dev->mem_start; dev 3541 net/core/dev.c ifr->ifr_map.mem_end = dev->mem_end; dev 3542 net/core/dev.c ifr->ifr_map.base_addr = dev->base_addr; dev 3543 net/core/dev.c ifr->ifr_map.irq = dev->irq; dev 3544 net/core/dev.c ifr->ifr_map.dma = dev->dma; dev 3545 net/core/dev.c ifr->ifr_map.port = dev->if_port; dev 3549 net/core/dev.c ifr->ifr_ifindex = dev->ifindex; dev 3553 net/core/dev.c ifr->ifr_qlen = dev->tx_queue_len; dev 3574 net/core/dev.c struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); dev 3576 net/core/dev.c if (!dev) dev 3581 net/core/dev.c return dev_change_flags(dev, ifr->ifr_flags); dev 3588 net/core/dev.c return dev_set_mtu(dev, ifr->ifr_mtu); dev 3591 net/core/dev.c return dev_set_mac_address(dev, &ifr->ifr_hwaddr); dev 3594 net/core/dev.c if (ifr->ifr_hwaddr.sa_family != dev->type) dev 3596 net/core/dev.c memcpy(dev->broadcast, ifr->ifr_hwaddr.sa_data, dev 3597 net/core/dev.c min(sizeof ifr->ifr_hwaddr.sa_data, (size_t) dev->addr_len)); dev 3598 net/core/dev.c call_netdevice_notifiers(NETDEV_CHANGEADDR, dev); dev 3602 net/core/dev.c if (dev->set_config) { dev 3603 net/core/dev.c if (!netif_device_present(dev)) dev 3605 net/core/dev.c return dev->set_config(dev, &ifr->ifr_map); dev 3610 net/core/dev.c if ((!dev->set_multicast_list && !dev->set_rx_mode) || dev 3613 net/core/dev.c if (!netif_device_present(dev)) dev 3615 net/core/dev.c return dev_mc_add(dev, ifr->ifr_hwaddr.sa_data, dev 3616 net/core/dev.c dev->addr_len, 1); dev 3619 net/core/dev.c if ((!dev->set_multicast_list && !dev->set_rx_mode) || dev 3622 net/core/dev.c if (!netif_device_present(dev)) dev 3624 net/core/dev.c return dev_mc_delete(dev, ifr->ifr_hwaddr.sa_data, dev 3625 net/core/dev.c dev->addr_len, 1); dev 3630 net/core/dev.c dev->tx_queue_len = ifr->ifr_qlen; dev 3635 net/core/dev.c return dev_change_name(dev, ifr->ifr_newname); dev 3657 net/core/dev.c if (dev->do_ioctl) { dev 3658 net/core/dev.c if (netif_device_present(dev)) dev 3659 net/core/dev.c err = dev->do_ioctl(dev, ifr, dev 3878 net/core/dev.c list_add_tail(&dev->todo_list, &net_todo_list); dev 3887 net/core/dev.c if (dev->reg_state == NETREG_UNINITIALIZED) { dev 3889 net/core/dev.c "was registered\n", dev->name, dev); dev 3895 net/core/dev.c BUG_ON(dev->reg_state != NETREG_REGISTERED); dev 3898 net/core/dev.c dev_close(dev); dev 3901 net/core/dev.c unlist_netdevice(dev); dev 3903 net/core/dev.c dev->reg_state = NETREG_UNREGISTERING; dev 3908 net/core/dev.c dev_shutdown(dev); dev 3914 net/core/dev.c call_netdevice_notifiers(NETDEV_UNREGISTER, dev); dev 3919 net/core/dev.c dev_addr_discard(dev); dev 3921 net/core/dev.c if (dev->uninit) dev 3922 net/core/dev.c dev->uninit(dev); dev 3925 net/core/dev.c WARN_ON(dev->master); dev 3928 net/core/dev.c netdev_unregister_kobject(dev); dev 3932 net/core/dev.c dev_put(dev); dev 3940 net/core/dev.c netdev_set_xmit_lockdep_class(&dev_queue->_xmit_lock, dev->type); dev 3946 net/core/dev.c netdev_for_each_tx_queue(dev, __netdev_init_queue_locks_one, NULL); dev 3947 net/core/dev.c __netdev_init_queue_locks_one(dev, &dev->rx_queue, NULL); dev 3980 net/core/dev.c BUG_ON(dev->reg_state != NETREG_UNINITIALIZED); dev 3981 net/core/dev.c BUG_ON(!dev_net(dev)); dev 3982 net/core/dev.c net = dev_net(dev); dev 3984 net/core/dev.c spin_lock_init(&dev->addr_list_lock); dev 3985 net/core/dev.c netdev_set_addr_lockdep_class(dev); dev 3986 net/core/dev.c netdev_init_queue_locks(dev); dev 3988 net/core/dev.c dev->iflink = -1; dev 3991 net/core/dev.c if (dev->init) { dev 3992 net/core/dev.c ret = dev->init(dev); dev 4000 net/core/dev.c if (!dev_valid_name(dev->name)) { dev 4005 net/core/dev.c dev->ifindex = dev_new_index(net); dev 4006 net/core/dev.c if (dev->iflink == -1) dev 4007 net/core/dev.c dev->iflink = dev->ifindex; dev 4010 net/core/dev.c head = dev_name_hash(net, dev->name); dev 4014 net/core/dev.c if (!strncmp(d->name, dev->name, IFNAMSIZ)) { dev 4021 net/core/dev.c if ((dev->features & NETIF_F_HW_CSUM) && dev 4022 net/core/dev.c (dev->features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) { dev 4024 net/core/dev.c dev->name); dev 4025 net/core/dev.c dev->features &= ~(NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM); dev 4028 net/core/dev.c if ((dev->features & NETIF_F_NO_CSUM) && dev 4029 net/core/dev.c (dev->features & (NETIF_F_HW_CSUM|NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) { dev 4031 net/core/dev.c dev->name); dev 4032 net/core/dev.c dev->features &= ~(NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM|NETIF_F_HW_CSUM); dev 4037 net/core/dev.c if ((dev->features & NETIF_F_SG) && dev 4038 net/core/dev.c !(dev->features & NETIF_F_ALL_CSUM)) { dev 4040 net/core/dev.c dev->name); dev 4041 net/core/dev.c dev->features &= ~NETIF_F_SG; dev 4045 net/core/dev.c if ((dev->features & NETIF_F_TSO) && dev 4046 net/core/dev.c !(dev->features & NETIF_F_SG)) { dev 4048 net/core/dev.c dev->name); dev 4049 net/core/dev.c dev->features &= ~NETIF_F_TSO; dev 4051 net/core/dev.c if (dev->features & NETIF_F_UFO) { dev 4052 net/core/dev.c if (!(dev->features & NETIF_F_HW_CSUM)) { dev 4055 net/core/dev.c dev->name); dev 4056 net/core/dev.c dev->features &= ~NETIF_F_UFO; dev 4058 net/core/dev.c if (!(dev->features & NETIF_F_SG)) { dev 4061 net/core/dev.c dev->name); dev 4062 net/core/dev.c dev->features &= ~NETIF_F_UFO; dev 4067 net/core/dev.c if (dev->features & NETIF_F_SG) dev 4068 net/core/dev.c dev->features |= NETIF_F_GSO; dev 4070 net/core/dev.c netdev_initialize_kobject(dev); dev 4071 net/core/dev.c ret = netdev_register_kobject(dev); dev 4074 net/core/dev.c dev->reg_state = NETREG_REGISTERED; dev 4081 net/core/dev.c set_bit(__LINK_STATE_PRESENT, &dev->state); dev 4083 net/core/dev.c dev_init_scheduler(dev); dev 4084 net/core/dev.c dev_hold(dev); dev 4085 net/core/dev.c list_netdevice(dev); dev 4088 net/core/dev.c ret = call_netdevice_notifiers(NETDEV_REGISTER, dev); dev 4091 net/core/dev.c rollback_registered(dev); dev 4092 net/core/dev.c dev->reg_state = NETREG_UNREGISTERED; dev 4099 net/core/dev.c if (dev->uninit) dev 4100 net/core/dev.c dev->uninit(dev); dev 4127 net/core/dev.c if (strchr(dev->name, '%')) { dev 4128 net/core/dev.c err = dev_alloc_name(dev, dev->name); dev 4133 net/core/dev.c err = register_netdevice(dev); dev 4156 net/core/dev.c while (atomic_read(&dev->refcnt) != 0) { dev 4161 net/core/dev.c call_netdevice_notifiers(NETDEV_UNREGISTER, dev); dev 4164 net/core/dev.c &dev->state)) { dev 4185 net/core/dev.c dev->name, atomic_read(&dev->refcnt)); dev 4225 net/core/dev.c struct net_device *dev dev 4227 net/core/dev.c list_del(&dev->todo_list); dev 4229 net/core/dev.c if (unlikely(dev->reg_state != NETREG_UNREGISTERING)) { dev 4231 net/core/dev.c dev->name, dev->reg_state); dev 4236 net/core/dev.c dev->reg_state = NETREG_UNREGISTERED; dev 4238 net/core/dev.c on_each_cpu(flush_backlog, dev, 1); dev 4240 net/core/dev.c netdev_wait_allrefs(dev); dev 4243 net/core/dev.c BUG_ON(atomic_read(&dev->refcnt)); dev 4244 net/core/dev.c WARN_ON(dev->ip_ptr); dev 4245 net/core/dev.c WARN_ON(dev->ip6_ptr); dev 4246 net/core/dev.c WARN_ON(dev->dn_ptr); dev 4248 net/core/dev.c if (dev->destructor) dev 4249 net/core/dev.c dev->destructor(dev); dev 4252 net/core/dev.c kobject_put(&dev->dev.kobj); dev 4258 net/core/dev.c return &dev->stats; dev 4265 net/core/dev.c queue->dev = dev; dev 4270 net/core/dev.c netdev_init_one_queue(dev, &dev->rx_queue, NULL); dev 4271 net/core/dev.c netdev_for_each_tx_queue(dev, netdev_init_one_queue, NULL); dev 4272 net/core/dev.c spin_lock_init(&dev->tx_global_lock); dev 4290 net/core/dev.c struct net_device *dev; dev 4294 net/core/dev.c BUG_ON(strlen(name) >= sizeof(dev->name)); dev 4319 net/core/dev.c dev = (struct net_device *) dev 4321 net/core/dev.c dev->padded = (char *)dev - (char *)p; dev 4322 net/core/dev.c dev_net_set(dev, &init_net); dev 4324 net/core/dev.c dev->_tx = tx; dev 4325 net/core/dev.c dev->num_tx_queues = queue_count; dev 4326 net/core/dev.c dev->real_num_tx_queues = queue_count; dev 4329 net/core/dev.c dev->priv = ((char *)dev + dev 4334 net/core/dev.c dev->gso_max_size = GSO_MAX_SIZE; dev 4336 net/core/dev.c netdev_init_queues(dev); dev 4338 net/core/dev.c dev->get_stats = internal_stats; dev 4339 net/core/dev.c netpoll_netdev_init(dev); dev 4340 net/core/dev.c setup(dev); dev 4341 net/core/dev.c strcpy(dev->name, name); dev 4342 net/core/dev.c return dev; dev 4356 net/core/dev.c release_net(dev_net(dev)); dev 4358 net/core/dev.c kfree(dev->_tx); dev 4361 net/core/dev.c if (dev->reg_state == NETREG_UNINITIALIZED) { dev 4362 net/core/dev.c kfree((char *)dev - dev->padded); dev 4366 net/core/dev.c BUG_ON(dev->reg_state != NETREG_UNREGISTERED); dev 4367 net/core/dev.c dev->reg_state = NETREG_RELEASED; dev 4370 net/core/dev.c put_device(&dev->dev); dev 4400 net/core/dev.c rollback_registered(dev); dev 4402 net/core/dev.c net_set_todo(dev); dev 4419 net/core/dev.c unregister_netdevice(dev); dev 4449 net/core/dev.c if (dev->features & NETIF_F_NETNS_LOCAL) dev 4454 net/core/dev.c if (dev->reg_state != NETREG_REGISTERED) dev 4459 net/core/dev.c if (net_eq(dev_net(dev), net)) dev 4466 net/core/dev.c destname = dev->name; dev 4488 net/core/dev.c dev_close(dev); dev 4492 net/core/dev.c unlist_netdevice(dev); dev 4497 net/core/dev.c dev_shutdown(dev); dev 4502 net/core/dev.c call_netdevice_notifiers(NETDEV_UNREGISTER, dev); dev 4507 net/core/dev.c dev_addr_discard(dev); dev 4510 net/core/dev.c dev_net_set(dev, net); dev 4513 net/core/dev.c if (destname != dev->name) dev 4514 net/core/dev.c strcpy(dev->name, destname); dev 4517 net/core/dev.c if (__dev_get_by_index(net, dev->ifindex)) { dev 4518 net/core/dev.c int iflink = (dev->iflink == dev->ifindex); dev 4519 net/core/dev.c dev->ifindex = dev_new_index(net); dev 4521 net/core/dev.c dev->iflink = dev->ifindex; dev 4525 net/core/dev.c netdev_unregister_kobject(dev); dev 4526 net/core/dev.c err = netdev_register_kobject(dev); dev 4530 net/core/dev.c list_netdevice(dev); dev 4533 net/core/dev.c call_netdevice_notifiers(NETDEV_REGISTER, dev); dev 4798 net/core/dev.c parent = dev->dev.parent; dev 4822 net/core/dev.c struct net_device *dev, *next; dev 4828 net/core/dev.c for_each_netdev_safe(net, dev, next) { dev 4833 net/core/dev.c if (dev->features & NETIF_F_NETNS_LOCAL) dev 4837 net/core/dev.c snprintf(fb_name, IFNAMSIZ, "dev%d", dev->ifindex); dev 4838 net/core/dev.c err = dev_change_net_namespace(dev, &init_net, fb_name); dev 4841 net/core/dev.c __func__, dev->name, err); dev 75 net/core/dev_mcast.c netif_addr_lock_bh(dev); dev 76 net/core/dev_mcast.c err = __dev_addr_delete(&dev->mc_list, &dev->mc_count, dev 84 net/core/dev_mcast.c __dev_set_rx_mode(dev); dev 86 net/core/dev_mcast.c netif_addr_unlock_bh(dev); dev 98 net/core/dev_mcast.c netif_addr_lock_bh(dev); dev 99 net/core/dev_mcast.c err = __dev_addr_add(&dev->mc_list, &dev->mc_count, addr, alen, glbl); dev 101 net/core/dev_mcast.c __dev_set_rx_mode(dev); dev 102 net/core/dev_mcast.c netif_addr_unlock_bh(dev); dev 162 net/core/dev_mcast.c struct net_device *dev = v; dev 167 net/core/dev_mcast.c netif_addr_lock_bh(dev); dev 168 net/core/dev_mcast.c for (m = dev->mc_list; m; m = m->next) { dev 171 net/core/dev_mcast.c seq_printf(seq, "%-4d %-15s %-5d %-5d ", dev->ifindex, dev 172 net/core/dev_mcast.c dev->name, m->dmi_users, m->dmi_gusers); dev 179 net/core/dev_mcast.c netif_addr_unlock_bh(dev); dev 191 net/core/dst.c if (dst->dev == NULL || !(dst->dev->flags&IFF_UP)) { dev 238 net/core/dst.c if (dst->dev) dev 239 net/core/dst.c dev_put(dst->dev); dev 285 net/core/dst.c dst->ops->ifdown(dst, dev, unregister); dev 287 net/core/dst.c if (dev != dst->dev) dev 293 net/core/dst.c dst->dev = dev_net(dst->dev)->loopback_dev; dev 294 net/core/dst.c dev_hold(dst->dev); dev 295 net/core/dst.c dev_put(dev); dev 296 net/core/dst.c if (dst->neighbour && dst->neighbour->dev == dev) { dev 297 net/core/dst.c dst->neighbour->dev = dst->dev; dev 298 net/core/dst.c dev_hold(dst->dev); dev 299 net/core/dst.c dev_put(dev); dev 306 net/core/dst.c struct net_device *dev = ptr; dev 315 net/core/dst.c dst_ifdown(dst, dev, event != NETDEV_DOWN); dev 328 net/core/dst.c dst_ifdown(dst, dev, event != NETDEV_DOWN); dev 30 net/core/ethtool.c return netif_carrier_ok(dev) ? 1 : 0; dev 35 net/core/ethtool.c return (dev->features & NETIF_F_ALL_CSUM) != 0; dev 41 net/core/ethtool.c dev->features |= NETIF_F_IP_CSUM; dev 43 net/core/ethtool.c dev->features &= ~NETIF_F_IP_CSUM; dev 51 net/core/ethtool.c dev->features |= NETIF_F_HW_CSUM; dev 53 net/core/ethtool.c dev->features &= ~NETIF_F_HW_CSUM; dev 61 net/core/ethtool.c dev->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; dev 63 net/core/ethtool.c dev->features &= ~(NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM); dev 70 net/core/ethtool.c return (dev->features & NETIF_F_SG) != 0; dev 76 net/core/ethtool.c dev->features |= NETIF_F_SG; dev 78 net/core/ethtool.c dev->features &= ~NETIF_F_SG; dev 85 net/core/ethtool.c return (dev->features & NETIF_F_TSO) != 0; dev 91 net/core/ethtool.c dev->features |= NETIF_F_TSO; dev 93 net/core/ethtool.c dev->features &= ~NETIF_F_TSO; dev 100 net/core/ethtool.c return (dev->features & NETIF_F_UFO) != 0; dev 106 net/core/ethtool.c dev->features |= NETIF_F_UFO; dev 108 net/core/ethtool.c dev->features &= ~NETIF_F_UFO; dev 125 net/core/ethtool.c return dev->features & flags_dup_features; dev 131 net/core/ethtool.c dev->features |= NETIF_F_LRO; dev 133 net/core/ethtool.c dev->features &= ~NETIF_F_LRO; dev 145 net/core/ethtool.c if (!dev->ethtool_ops->get_settings) dev 148 net/core/ethtool.c err = dev->ethtool_ops->get_settings(dev, &cmd); dev 161 net/core/ethtool.c if (!dev->ethtool_ops->set_settings) dev 167 net/core/ethtool.c return dev->ethtool_ops->set_settings(dev, &cmd); dev 173 net/core/ethtool.c const struct ethtool_ops *ops = dev->ethtool_ops; dev 180 net/core/ethtool.c ops->get_drvinfo(dev, &info); dev 185 net/core/ethtool.c rc = ops->get_sset_count(dev, ETH_SS_TEST); dev 188 net/core/ethtool.c rc = ops->get_sset_count(dev, ETH_SS_STATS); dev 191 net/core/ethtool.c rc = ops->get_sset_count(dev, ETH_SS_PRIV_FLAGS); dev 198 net/core/ethtool.c info.testinfo_len = ops->self_test_count(dev); dev 200 net/core/ethtool.c info.n_stats = ops->get_stats_count(dev); dev 203 net/core/ethtool.c info.regdump_len = ops->get_regs_len(dev); dev 205 net/core/ethtool.c info.eedump_len = ops->get_eeprom_len(dev); dev 216 net/core/ethtool.c if (!dev->ethtool_ops->set_rxhash) dev 222 net/core/ethtool.c return dev->ethtool_ops->set_rxhash(dev, &cmd); dev 229 net/core/ethtool.c if (!dev->ethtool_ops->get_rxhash) dev 235 net/core/ethtool.c dev->ethtool_ops->get_rxhash(dev, &info); dev 245 net/core/ethtool.c const struct ethtool_ops *ops = dev->ethtool_ops; dev 255 net/core/ethtool.c reglen = ops->get_regs_len(dev); dev 263 net/core/ethtool.c ops->get_regs(dev, ®s, regbuf); dev 282 net/core/ethtool.c if (!dev->ethtool_ops->get_wol) dev 285 net/core/ethtool.c dev->ethtool_ops->get_wol(dev, &wol); dev 296 net/core/ethtool.c if (!dev->ethtool_ops->set_wol) dev 302 net/core/ethtool.c return dev->ethtool_ops->set_wol(dev, &wol); dev 307 net/core/ethtool.c if (!dev->ethtool_ops->nway_reset) dev 310 net/core/ethtool.c return dev->ethtool_ops->nway_reset(dev); dev 316 net/core/ethtool.c const struct ethtool_ops *ops = dev->ethtool_ops; dev 333 net/core/ethtool.c if (eeprom.offset + eeprom.len > ops->get_eeprom_len(dev)) dev 344 net/core/ethtool.c ret = ops->get_eeprom(dev, &eeprom, data); dev 368 net/core/ethtool.c const struct ethtool_ops *ops = dev->ethtool_ops; dev 385 net/core/ethtool.c if (eeprom.offset + eeprom.len > ops->get_eeprom_len(dev)) dev 400 net/core/ethtool.c ret = ops->set_eeprom(dev, &eeprom, data); dev 416 net/core/ethtool.c if (!dev->ethtool_ops->get_coalesce) dev 419 net/core/ethtool.c dev->ethtool_ops->get_coalesce(dev, &coalesce); dev 430 net/core/ethtool.c if (!dev->ethtool_ops->set_coalesce) dev 436 net/core/ethtool.c return dev->ethtool_ops->set_coalesce(dev, &coalesce); dev 443 net/core/ethtool.c if (!dev->ethtool_ops->get_ringparam) dev 446 net/core/ethtool.c dev->ethtool_ops->get_ringparam(dev, &ringparam); dev 457 net/core/ethtool.c if (!dev->ethtool_ops->set_ringparam) dev 463 net/core/ethtool.c return dev->ethtool_ops->set_ringparam(dev, &ringparam); dev 470 net/core/ethtool.c if (!dev->ethtool_ops->get_pauseparam) dev 473 net/core/ethtool.c dev->ethtool_ops->get_pauseparam(dev, &pauseparam); dev 484 net/core/ethtool.c if (!dev->ethtool_ops->set_pauseparam) dev 490 net/core/ethtool.c return dev->ethtool_ops->set_pauseparam(dev, &pauseparam); dev 497 net/core/ethtool.c if (!data && dev->ethtool_ops->set_tso) { dev 498 net/core/ethtool.c err = dev->ethtool_ops->set_tso(dev, 0); dev 503 net/core/ethtool.c if (!data && dev->ethtool_ops->set_ufo) { dev 504 net/core/ethtool.c err = dev->ethtool_ops->set_ufo(dev, 0); dev 508 net/core/ethtool.c return dev->ethtool_ops->set_sg(dev, data); dev 516 net/core/ethtool.c if (!dev->ethtool_ops->set_tx_csum) dev 522 net/core/ethtool.c if (!edata.data && dev->ethtool_ops->set_sg) { dev 523 net/core/ethtool.c err = __ethtool_set_sg(dev, 0); dev 528 net/core/ethtool.c return dev->ethtool_ops->set_tx_csum(dev, edata.data); dev 535 net/core/ethtool.c if (!dev->ethtool_ops->set_sg) dev 542 net/core/ethtool.c !(dev->features & NETIF_F_ALL_CSUM)) dev 545 net/core/ethtool.c return __ethtool_set_sg(dev, edata.data); dev 552 net/core/ethtool.c if (!dev->ethtool_ops->set_tso) dev 558 net/core/ethtool.c if (edata.data && !(dev->features & NETIF_F_SG)) dev 561 net/core/ethtool.c return dev->ethtool_ops->set_tso(dev, edata.data); dev 568 net/core/ethtool.c if (!dev->ethtool_ops->set_ufo) dev 572 net/core/ethtool.c if (edata.data && !(dev->features & NETIF_F_SG)) dev 574 net/core/ethtool.c if (edata.data && !(dev->features & NETIF_F_HW_CSUM)) dev 576 net/core/ethtool.c return dev->ethtool_ops->set_ufo(dev, edata.data); dev 583 net/core/ethtool.c edata.data = dev->features & NETIF_F_GSO; dev 596 net/core/ethtool.c dev->features |= NETIF_F_GSO; dev 598 net/core/ethtool.c dev->features &= ~NETIF_F_GSO; dev 605 net/core/ethtool.c const struct ethtool_ops *ops = dev->ethtool_ops; dev 615 net/core/ethtool.c test_len = ops->get_sset_count(dev, ETH_SS_TEST); dev 618 net/core/ethtool.c test_len = ops->self_test_count(dev); dev 631 net/core/ethtool.c ops->self_test(dev, &test, data); dev 649 net/core/ethtool.c const struct ethtool_ops *ops = dev->ethtool_ops; dev 660 net/core/ethtool.c ret = ops->get_sset_count(dev, gstrings.string_set); dev 672 net/core/ethtool.c gstrings.len = ops->self_test_count(dev); dev 677 net/core/ethtool.c gstrings.len = ops->get_stats_count(dev); dev 688 net/core/ethtool.c ops->get_strings(dev, gstrings.string_set, data); dev 707 net/core/ethtool.c if (!dev->ethtool_ops->phys_id) dev 713 net/core/ethtool.c return dev->ethtool_ops->phys_id(dev, id.data); dev 719 net/core/ethtool.c const struct ethtool_ops *ops = dev->ethtool_ops; dev 729 net/core/ethtool.c n_stats = ops->get_sset_count(dev, ETH_SS_STATS); dev 732 net/core/ethtool.c n_stats = ops->get_stats_count(dev); dev 745 net/core/ethtool.c ops->get_ethtool_stats(dev, &stats, data); dev 767 net/core/ethtool.c if (epaddr.size < dev->addr_len) dev 769 net/core/ethtool.c epaddr.size = dev->addr_len; dev 774 net/core/ethtool.c if (copy_to_user(useraddr, dev->perm_addr, epaddr.size)) dev 787 net/core/ethtool.c edata.data = actor(dev); dev 805 net/core/ethtool.c actor(dev, edata.data); dev 820 net/core/ethtool.c return actor(dev, edata.data); dev 827 net/core/ethtool.c struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); dev 833 net/core/ethtool.c if (!dev || !netif_device_present(dev)) dev 836 net/core/ethtool.c if (!dev->ethtool_ops) dev 866 net/core/ethtool.c if (dev->ethtool_ops->begin) dev 867 net/core/ethtool.c if ((rc = dev->ethtool_ops->begin(dev)) < 0) dev 870 net/core/ethtool.c old_features = dev->features; dev 874 net/core/ethtool.c rc = ethtool_get_settings(dev, useraddr); dev 877 net/core/ethtool.c rc = ethtool_set_settings(dev, useraddr); dev 880 net/core/ethtool.c rc = ethtool_get_drvinfo(dev, useraddr); dev 883 net/core/ethtool.c rc = ethtool_get_regs(dev, useraddr); dev 886 net/core/ethtool.c rc = ethtool_get_wol(dev, useraddr); dev 889 net/core/ethtool.c rc = ethtool_set_wol(dev, useraddr); dev 892 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 893 net/core/ethtool.c dev->ethtool_ops->get_msglevel); dev 896 net/core/ethtool.c rc = ethtool_set_value_void(dev, useraddr, dev 897 net/core/ethtool.c dev->ethtool_ops->set_msglevel); dev 900 net/core/ethtool.c rc = ethtool_nway_reset(dev); dev 903 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 904 net/core/ethtool.c dev->ethtool_ops->get_link); dev 907 net/core/ethtool.c rc = ethtool_get_eeprom(dev, useraddr); dev 910 net/core/ethtool.c rc = ethtool_set_eeprom(dev, useraddr); dev 913 net/core/ethtool.c rc = ethtool_get_coalesce(dev, useraddr); dev 916 net/core/ethtool.c rc = ethtool_set_coalesce(dev, useraddr); dev 919 net/core/ethtool.c rc = ethtool_get_ringparam(dev, useraddr); dev 922 net/core/ethtool.c rc = ethtool_set_ringparam(dev, useraddr); dev 925 net/core/ethtool.c rc = ethtool_get_pauseparam(dev, useraddr); dev 928 net/core/ethtool.c rc = ethtool_set_pauseparam(dev, useraddr); dev 931 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 932 net/core/ethtool.c dev->ethtool_ops->get_rx_csum); dev 935 net/core/ethtool.c rc = ethtool_set_value(dev, useraddr, dev 936 net/core/ethtool.c dev->ethtool_ops->set_rx_csum); dev 939 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 940 net/core/ethtool.c (dev->ethtool_ops->get_tx_csum ? dev 941 net/core/ethtool.c dev->ethtool_ops->get_tx_csum : dev 945 net/core/ethtool.c rc = ethtool_set_tx_csum(dev, useraddr); dev 948 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 949 net/core/ethtool.c (dev->ethtool_ops->get_sg ? dev 950 net/core/ethtool.c dev->ethtool_ops->get_sg : dev 954 net/core/ethtool.c rc = ethtool_set_sg(dev, useraddr); dev 957 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 958 net/core/ethtool.c (dev->ethtool_ops->get_tso ? dev 959 net/core/ethtool.c dev->ethtool_ops->get_tso : dev 963 net/core/ethtool.c rc = ethtool_set_tso(dev, useraddr); dev 966 net/core/ethtool.c rc = ethtool_self_test(dev, useraddr); dev 969 net/core/ethtool.c rc = ethtool_get_strings(dev, useraddr); dev 972 net/core/ethtool.c rc = ethtool_phys_id(dev, useraddr); dev 975 net/core/ethtool.c rc = ethtool_get_stats(dev, useraddr); dev 978 net/core/ethtool.c rc = ethtool_get_perm_addr(dev, useraddr); dev 981 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 982 net/core/ethtool.c (dev->ethtool_ops->get_ufo ? dev 983 net/core/ethtool.c dev->ethtool_ops->get_ufo : dev 987 net/core/ethtool.c rc = ethtool_set_ufo(dev, useraddr); dev 990 net/core/ethtool.c rc = ethtool_get_gso(dev, useraddr); dev 993 net/core/ethtool.c rc = ethtool_set_gso(dev, useraddr); dev 996 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 997 net/core/ethtool.c dev->ethtool_ops->get_flags); dev 1000 net/core/ethtool.c rc = ethtool_set_value(dev, useraddr, dev 1001 net/core/ethtool.c dev->ethtool_ops->set_flags); dev 1004 net/core/ethtool.c rc = ethtool_get_value(dev, useraddr, ethcmd, dev 1005 net/core/ethtool.c dev->ethtool_ops->get_priv_flags); dev 1008 net/core/ethtool.c rc = ethtool_set_value(dev, useraddr, dev 1009 net/core/ethtool.c dev->ethtool_ops->set_priv_flags); dev 1012 net/core/ethtool.c rc = ethtool_get_rxhash(dev, useraddr); dev 1015 net/core/ethtool.c rc = ethtool_set_rxhash(dev, useraddr); dev 1021 net/core/ethtool.c if (dev->ethtool_ops->complete) dev 1022 net/core/ethtool.c dev->ethtool_ops->complete(dev); dev 1024 net/core/ethtool.c if (old_features != dev->features) dev 1025 net/core/ethtool.c netdev_features_change(dev); dev 252 net/core/fib_rules.c struct net_device *dev; dev 256 net/core/fib_rules.c dev = __dev_get_by_name(net, rule->ifname); dev 257 net/core/fib_rules.c if (dev) dev 258 net/core/fib_rules.c rule->ifindex = dev->ifindex; dev 603 net/core/fib_rules.c strcmp(dev->name, rule->ifname) == 0) dev 604 net/core/fib_rules.c rule->ifindex = dev->ifindex; dev 613 net/core/fib_rules.c if (rule->ifindex == dev->ifindex) dev 621 net/core/fib_rules.c struct net_device *dev = ptr; dev 622 net/core/fib_rules.c struct net *net = dev_net(dev); dev 631 net/core/fib_rules.c attach_rules(&ops->rules_list, dev); dev 636 net/core/fib_rules.c detach_rules(&ops->rules_list, dev); dev 304 net/core/filter.c A = skb->dev->ifindex; dev 43 net/core/link_watch.c if (!netif_carrier_ok(dev)) dev 44 net/core/link_watch.c return (dev->ifindex != dev->iflink ? dev 47 net/core/link_watch.c if (netif_dormant(dev)) dev 56 net/core/link_watch.c unsigned char operstate = default_operstate(dev); dev 58 net/core/link_watch.c if (operstate == dev->operstate) dev 63 net/core/link_watch.c switch(dev->link_mode) { dev 74 net/core/link_watch.c dev->operstate = operstate; dev 82 net/core/link_watch.c return netif_running(dev) && netif_carrier_ok(dev) && dev 83 net/core/link_watch.c qdisc_tx_changing(dev); dev 92 net/core/link_watch.c dev->link_watch_next = lweventlist; dev 93 net/core/link_watch.c lweventlist = dev; dev 161 net/core/link_watch.c struct net_device *dev = next; dev 163 net/core/link_watch.c next = dev->link_watch_next; dev 165 net/core/link_watch.c if (urgent_only && !linkwatch_urgent_event(dev)) { dev 166 net/core/link_watch.c linkwatch_add_event(dev); dev 179 net/core/link_watch.c clear_bit(__LINK_STATE_LINKWATCH_PENDING, &dev->state); dev 181 net/core/link_watch.c rfc2863_policy(dev); dev 182 net/core/link_watch.c if (dev->flags & IFF_UP) { dev 183 net/core/link_watch.c if (netif_carrier_ok(dev)) dev 184 net/core/link_watch.c dev_activate(dev); dev 186 net/core/link_watch.c dev_deactivate(dev); dev 188 net/core/link_watch.c netdev_state_change(dev); dev 191 net/core/link_watch.c dev_put(dev); dev 216 net/core/link_watch.c bool urgent = linkwatch_urgent_event(dev); dev 218 net/core/link_watch.c if (!test_and_set_bit(__LINK_STATE_LINKWATCH_PENDING, &dev->state)) { dev 219 net/core/link_watch.c dev_hold(dev); dev 221 net/core/link_watch.c linkwatch_add_event(dev); dev 193 net/core/neighbour.c dev_put(skb->dev); dev 206 net/core/neighbour.c if (dev && n->dev != dev) { dev 242 net/core/neighbour.c neigh_flush_dev(tbl, dev); dev 250 net/core/neighbour.c neigh_flush_dev(tbl, dev); dev 251 net/core/neighbour.c pneigh_ifdown(tbl, dev); dev 344 net/core/neighbour.c unsigned int hash_val = tbl->hash(n->primary_key, n->dev); dev 369 net/core/neighbour.c hash_val = tbl->hash(pkey, dev); dev 371 net/core/neighbour.c if (dev == n->dev && !memcmp(n->primary_key, pkey, key_len)) { dev 395 net/core/neighbour.c net_eq(dev_net(n->dev), net)) { dev 420 net/core/neighbour.c n->dev = dev; dev 421 net/core/neighbour.c dev_hold(dev); dev 443 net/core/neighbour.c hash_val = tbl->hash(pkey, dev) & tbl->hash_mask; dev 451 net/core/neighbour.c if (dev == n1->dev && !memcmp(n1->primary_key, pkey, key_len)) { dev 494 net/core/neighbour.c (n->dev == dev || !n->dev)) dev 508 net/core/neighbour.c net, pkey, key_len, dev); dev 522 net/core/neighbour.c net, pkey, key_len, dev); dev 538 net/core/neighbour.c n->dev = dev; dev 539 net/core/neighbour.c if (dev) dev 540 net/core/neighbour.c dev_hold(dev); dev 543 net/core/neighbour.c if (dev) dev 544 net/core/neighbour.c dev_put(dev); dev 571 net/core/neighbour.c if (!memcmp(n->key, pkey, key_len) && n->dev == dev && dev 577 net/core/neighbour.c if (n->dev) dev 578 net/core/neighbour.c dev_put(n->dev); dev 596 net/core/neighbour.c if (!dev || n->dev == dev) { dev 600 net/core/neighbour.c if (n->dev) dev 601 net/core/neighbour.c dev_put(n->dev); dev 653 net/core/neighbour.c dev_put(neigh->dev); dev 948 net/core/neighbour.c = neigh->dev->header_ops->cache_update; dev 953 net/core/neighbour.c update(hh, neigh->dev, neigh->ha); dev 988 net/core/neighbour.c struct net_device *dev; dev 993 net/core/neighbour.c dev = neigh->dev; dev 1012 net/core/neighbour.c if (!dev->addr_len) { dev 1022 net/core/neighbour.c !memcmp(lladdr, neigh->ha, dev->addr_len)) dev 1072 net/core/neighbour.c memcpy(&neigh->ha, lladdr, dev->addr_len); dev 1121 net/core/neighbour.c struct neighbour *neigh = __neigh_lookup(tbl, saddr, dev, dev 1122 net/core/neighbour.c lladdr || !dev->addr_len); dev 1134 net/core/neighbour.c struct net_device *dev = dst->dev; dev 1146 net/core/neighbour.c if (dev->header_ops->cache(n, hh)) { dev 1172 net/core/neighbour.c struct net_device *dev = skb->dev; dev 1176 net/core/neighbour.c if (dev_hard_header(skb, dev, ntohs(skb->protocol), NULL, NULL, dev 1178 net/core/neighbour.c dev->header_ops->rebuild(skb)) dev 1200 net/core/neighbour.c struct net_device *dev = neigh->dev; dev 1201 net/core/neighbour.c if (dev->header_ops->cache && !dst->hh) { dev 1205 net/core/neighbour.c err = dev_hard_header(skb, dev, ntohs(skb->protocol), dev 1210 net/core/neighbour.c err = dev_hard_header(skb, dev, ntohs(skb->protocol), dev 1238 net/core/neighbour.c struct net_device *dev = neigh->dev; dev 1243 net/core/neighbour.c err = dev_hard_header(skb, dev, ntohs(skb->protocol), dev 1269 net/core/neighbour.c struct net_device *dev = skb->dev; dev 1271 net/core/neighbour.c if (tbl->proxy_redo && netif_running(dev)) dev 1276 net/core/neighbour.c dev_put(dev); dev 1307 net/core/neighbour.c dev_hold(skb->dev); dev 1320 net/core/neighbour.c if ((p->dev && p->dev->ifindex == ifindex && net_eq(neigh_parms_net(p), net)) || dev 1321 net/core/neighbour.c (!p->dev && !ifindex)) dev 1334 net/core/neighbour.c net = dev_net(dev); dev 1347 net/core/neighbour.c if (dev->neigh_setup && dev->neigh_setup(dev, p)) { dev 1352 net/core/neighbour.c dev_hold(dev); dev 1353 net/core/neighbour.c p->dev = dev; dev 1387 net/core/neighbour.c if (parms->dev) dev 1388 net/core/neighbour.c dev_put(parms->dev); dev 1526 net/core/neighbour.c struct net_device *dev = NULL; dev 1538 net/core/neighbour.c dev = dev_get_by_index(net, ndm->ndm_ifindex); dev 1539 net/core/neighbour.c if (dev == NULL) { dev 1557 net/core/neighbour.c err = pneigh_delete(tbl, net, nla_data(dst_attr), dev); dev 1561 net/core/neighbour.c if (dev == NULL) dev 1564 net/core/neighbour.c neigh = neigh_lookup(tbl, nla_data(dst_attr), dev); dev 1580 net/core/neighbour.c if (dev) dev 1581 net/core/neighbour.c dev_put(dev); dev 1592 net/core/neighbour.c struct net_device *dev = NULL; dev 1605 net/core/neighbour.c dev = dev_get_by_index(net, ndm->ndm_ifindex); dev 1606 net/core/neighbour.c if (dev == NULL) { dev 1611 net/core/neighbour.c if (tb[NDA_LLADDR] && nla_len(tb[NDA_LLADDR]) < dev->addr_len) dev 1634 net/core/neighbour.c pn = pneigh_lookup(tbl, net, dst, dev, 1); dev 1642 net/core/neighbour.c if (dev == NULL) dev 1645 net/core/neighbour.c neigh = neigh_lookup(tbl, dst, dev); dev 1652 net/core/neighbour.c neigh = __neigh_lookup_errno(tbl, dst, dev); dev 1677 net/core/neighbour.c if (dev) dev 1678 net/core/neighbour.c dev_put(dev); dev 1691 net/core/neighbour.c if (parms->dev) dev 1692 net/core/neighbour.c NLA_PUT_U32(skb, NDTPA_IFINDEX, parms->dev->ifindex); dev 1785 net/core/neighbour.c BUG_ON(tbl->parms.dev); dev 2045 net/core/neighbour.c ndm->ndm_ifindex = neigh->dev->ifindex; dev 2052 net/core/neighbour.c nla_put(skb, NDA_LLADDR, neigh->dev->addr_len, neigh->ha) < 0) { dev 2095 net/core/neighbour.c if (dev_net(n->dev) != net) dev 2200 net/core/neighbour.c if (!net_eq(dev_net(n->dev), net)) dev 2243 net/core/neighbour.c if (!net_eq(dev_net(n->dev), net)) dev 2529 net/core/neighbour.c struct net *net = dev_net(n->dev); dev 2737 net/core/neighbour.c if (dev) { dev 2738 net/core/neighbour.c dev_name_source = dev->name; dev 2739 net/core/neighbour.c neigh_path[NEIGH_CTL_PATH_DEV].ctl_name = dev->ifindex; dev 2755 net/core/neighbour.c t->neigh_vars[3].extra1 = dev; dev 2761 net/core/neighbour.c t->neigh_vars[4].extra1 = dev; dev 2767 net/core/neighbour.c t->neigh_vars[12].extra1 = dev; dev 2773 net/core/neighbour.c t->neigh_vars[13].extra1 = dev; dev 31 net/core/net-sysfs.c return dev->reg_state <= NETREG_REGISTERED; dev 39 net/core/net-sysfs.c struct net_device *net = to_net_dev(dev); dev 56 net/core/net-sysfs.c static ssize_t show_##field(struct device *dev, \ dev 59 net/core/net-sysfs.c return netdev_show(dev, attr, buf, format_##field); \ dev 68 net/core/net-sysfs.c struct net_device *net = to_net_dev(dev); dev 102 net/core/net-sysfs.c struct net_device *net = to_net_dev(dev); dev 115 net/core/net-sysfs.c struct net_device *net = to_net_dev(dev); dev 124 net/core/net-sysfs.c struct net_device *netdev = to_net_dev(dev); dev 134 net/core/net-sysfs.c struct net_device *netdev = to_net_dev(dev); dev 155 net/core/net-sysfs.c const struct net_device *netdev = to_net_dev(dev); dev 181 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_mtu); dev 194 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_flags); dev 209 net/core/net-sysfs.c return netdev_store(dev, attr, buf, len, change_tx_queue_len); dev 215 net/core/net-sysfs.c struct net_device *netdev = to_net_dev(dev); dev 236 net/core/net-sysfs.c const struct net_device *netdev = to_net_dev(dev); dev 272 net/core/net-sysfs.c struct net_device *dev = to_net_dev(d); dev 280 net/core/net-sysfs.c if (dev_isalive(dev)) { dev 281 net/core/net-sysfs.c stats = dev->get_stats(dev); dev 362 net/core/net-sysfs.c struct net_device *dev = to_net_dev(d); dev 367 net/core/net-sysfs.c if (dev_isalive(dev)) { dev 368 net/core/net-sysfs.c if (dev->wireless_handlers && dev 369 net/core/net-sysfs.c dev->wireless_handlers->get_wireless_stats) dev 370 net/core/net-sysfs.c iw = dev->wireless_handlers->get_wireless_stats(dev); dev 428 net/core/net-sysfs.c struct net_device *dev = to_net_dev(d); dev 432 net/core/net-sysfs.c retval = add_uevent_var(env, "INTERFACE=%s", dev->name); dev 439 net/core/net-sysfs.c retval = add_uevent_var(env, "IFINDEX=%d", dev->ifindex); dev 452 net/core/net-sysfs.c struct net_device *dev = to_net_dev(d); dev 454 net/core/net-sysfs.c BUG_ON(dev->reg_state != NETREG_RELEASED); dev 456 net/core/net-sysfs.c kfree(dev->ifalias); dev 457 net/core/net-sysfs.c kfree((char *)dev - dev->padded); dev 476 net/core/net-sysfs.c struct device *dev = &(net->dev); dev 478 net/core/net-sysfs.c kobject_get(&dev->kobj); dev 479 net/core/net-sysfs.c device_del(dev); dev 485 net/core/net-sysfs.c struct device *dev = &(net->dev); dev 488 net/core/net-sysfs.c dev->class = &net_class; dev 489 net/core/net-sysfs.c dev->platform_data = net; dev 490 net/core/net-sysfs.c dev->groups = groups; dev 493 net/core/net-sysfs.c strlcpy(dev->bus_id, net->name, BUS_ID_SIZE); dev 504 net/core/net-sysfs.c return device_add(dev); dev 522 net/core/net-sysfs.c struct device *device = &(net->dev); dev 60 net/core/netpoll.c struct net_device *dev = skb->dev; dev 63 net/core/netpoll.c if (!netif_device_present(dev) || !netif_running(dev)) { dev 68 net/core/netpoll.c txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb)); dev 74 net/core/netpoll.c dev->hard_start_xmit(skb, dev) != NETDEV_TX_OK) { dev 150 net/core/netpoll.c list_for_each_entry(napi, &dev->napi_list, dev_list) { dev 153 net/core/netpoll.c budget = poll_one_napi(dev->npinfo, napi, budget); dev 174 net/core/netpoll.c struct net_device *dev = np->dev; dev 176 net/core/netpoll.c if (!dev || !netif_running(dev) || !dev->poll_controller) dev 180 net/core/netpoll.c dev->poll_controller(dev); dev 182 net/core/netpoll.c poll_napi(dev); dev 184 net/core/netpoll.c service_arp_queue(dev->npinfo); dev 263 net/core/netpoll.c list_for_each_entry(napi, &dev->napi_list, dev_list) { dev 274 net/core/netpoll.c struct net_device *dev = np->dev; dev 275 net/core/netpoll.c struct netpoll_info *npinfo = np->dev->npinfo; dev 277 net/core/netpoll.c if (!npinfo || !netif_running(dev) || !netif_device_present(dev)) { dev 283 net/core/netpoll.c if (skb_queue_len(&npinfo->txq) == 0 && !netpoll_owner_active(dev)) { dev 287 net/core/netpoll.c txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb)); dev 295 net/core/netpoll.c status = dev->hard_start_xmit(skb, dev); dev 370 net/core/netpoll.c memcpy(eth->h_source, np->dev->dev_addr, ETH_ALEN); dev 373 net/core/netpoll.c skb->dev = np->dev; dev 380 net/core/netpoll.c struct netpoll_info *npinfo = skb->dev->npinfo; dev 389 net/core/netpoll.c if (npinfo->rx_np && npinfo->rx_np->dev == skb->dev) dev 395 net/core/netpoll.c if (skb->dev->flags & IFF_NOARP) dev 398 net/core/netpoll.c if (!pskb_may_pull(skb, arp_hdr_len(skb->dev))) dev 414 net/core/netpoll.c arp_ptr += skb->dev->addr_len; dev 418 net/core/netpoll.c arp_ptr += skb->dev->addr_len; dev 426 net/core/netpoll.c size = arp_hdr_len(skb->dev); dev 427 net/core/netpoll.c send_skb = find_skb(np, size + LL_ALLOCATED_SPACE(np->dev), dev 428 net/core/netpoll.c LL_RESERVED_SPACE(np->dev)); dev 435 net/core/netpoll.c send_skb->dev = skb->dev; dev 439 net/core/netpoll.c if (dev_hard_header(send_skb, skb->dev, ptype, dev 440 net/core/netpoll.c sha, np->dev->dev_addr, dev 453 net/core/netpoll.c arp->ar_hrd = htons(np->dev->type); dev 455 net/core/netpoll.c arp->ar_hln = np->dev->addr_len; dev 460 net/core/netpoll.c memcpy(arp_ptr, np->dev->dev_addr, np->dev->addr_len); dev 461 net/core/netpoll.c arp_ptr += np->dev->addr_len; dev 464 net/core/netpoll.c memcpy(arp_ptr, sha, np->dev->addr_len); dev 465 net/core/netpoll.c arp_ptr += np->dev->addr_len; dev 476 net/core/netpoll.c struct netpoll_info *npi = skb->dev->npinfo; dev 481 net/core/netpoll.c if (skb->dev->type != ARPHRD_ETHER) dev 676 net/core/netpoll.c np->dev = ndev; dev 785 net/core/netpoll.c np->dev = NULL; dev 802 net/core/netpoll.c if (np->dev) { dev 803 net/core/netpoll.c npinfo = np->dev->npinfo; dev 820 net/core/netpoll.c np->dev->npinfo = NULL; dev 824 net/core/netpoll.c dev_put(np->dev); dev 827 net/core/netpoll.c np->dev = NULL; dev 1868 net/core/pktgen.c if (pkt_dev->odev != dev) dev 1873 net/core/pktgen.c pkt_dev->entry = create_proc_entry(dev->name, 0600, dev 1877 net/core/pktgen.c " entry for '%s'\n", dev->name); dev 1886 net/core/pktgen.c struct net_device *dev = ptr; dev 1888 net/core/pktgen.c if (!net_eq(dev_net(dev), &init_net)) dev 1897 net/core/pktgen.c pktgen_change_name(dev); dev 1901 net/core/pktgen.c pktgen_mark_device(dev->name); dev 2616 net/core/pktgen.c skb->dev = odev; dev 2964 net/core/pktgen.c skb->dev = odev; dev 279 net/core/rtnetlink.c struct net_device *dev; dev 281 net/core/rtnetlink.c for_each_netdev(net, dev) { dev 282 net/core/rtnetlink.c if (dev->rtnl_link_ops == ops) { dev 283 net/core/rtnetlink.c ops->dellink(dev); dev 341 net/core/rtnetlink.c const struct rtnl_link_ops *ops = dev->rtnl_link_ops; dev 353 net/core/rtnetlink.c ops->get_size(dev); dev 356 net/core/rtnetlink.c size += ops->get_xstats_size(dev); /* IFLA_INFO_XSTATS */ dev 363 net/core/rtnetlink.c const struct rtnl_link_ops *ops = dev->rtnl_link_ops; dev 374 net/core/rtnetlink.c err = ops->fill_xstats(skb, dev); dev 382 net/core/rtnetlink.c err = ops->fill_info(skb, dev); dev 528 net/core/rtnetlink.c unsigned char operstate = dev->operstate; dev 534 net/core/rtnetlink.c !netif_dormant(dev)) dev 545 net/core/rtnetlink.c if (dev->operstate != operstate) { dev 547 net/core/rtnetlink.c dev->operstate = operstate; dev 549 net/core/rtnetlink.c netdev_state_change(dev); dev 602 net/core/rtnetlink.c + rtnl_link_get_size(dev); /* IFLA_LINKINFO */ dev 622 net/core/rtnetlink.c ifm->ifi_type = dev->type; dev 623 net/core/rtnetlink.c ifm->ifi_index = dev->ifindex; dev 624 net/core/rtnetlink.c ifm->ifi_flags = dev_get_flags(dev); dev 627 net/core/rtnetlink.c NLA_PUT_STRING(skb, IFLA_IFNAME, dev->name); dev 628 net/core/rtnetlink.c NLA_PUT_U32(skb, IFLA_TXQLEN, dev->tx_queue_len); dev 630 net/core/rtnetlink.c netif_running(dev) ? dev->operstate : IF_OPER_DOWN); dev 631 net/core/rtnetlink.c NLA_PUT_U8(skb, IFLA_LINKMODE, dev->link_mode); dev 632 net/core/rtnetlink.c NLA_PUT_U32(skb, IFLA_MTU, dev->mtu); dev 634 net/core/rtnetlink.c if (dev->ifindex != dev->iflink) dev 635 net/core/rtnetlink.c NLA_PUT_U32(skb, IFLA_LINK, dev->iflink); dev 637 net/core/rtnetlink.c if (dev->master) dev 638 net/core/rtnetlink.c NLA_PUT_U32(skb, IFLA_MASTER, dev->master->ifindex); dev 640 net/core/rtnetlink.c txq = netdev_get_tx_queue(dev, 0); dev 644 net/core/rtnetlink.c if (dev->ifalias) dev 645 net/core/rtnetlink.c NLA_PUT_STRING(skb, IFLA_IFALIAS, dev->ifalias); dev 649 net/core/rtnetlink.c .mem_start = dev->mem_start, dev 650 net/core/rtnetlink.c .mem_end = dev->mem_end, dev 651 net/core/rtnetlink.c .base_addr = dev->base_addr, dev 652 net/core/rtnetlink.c .irq = dev->irq, dev 653 net/core/rtnetlink.c .dma = dev->dma, dev 654 net/core/rtnetlink.c .port = dev->if_port, dev 659 net/core/rtnetlink.c if (dev->addr_len) { dev 660 net/core/rtnetlink.c NLA_PUT(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr); dev 661 net/core/rtnetlink.c NLA_PUT(skb, IFLA_BROADCAST, dev->addr_len, dev->broadcast); dev 669 net/core/rtnetlink.c stats = dev->get_stats(dev); dev 672 net/core/rtnetlink.c if (dev->rtnl_link_ops) { dev 673 net/core/rtnetlink.c if (rtnl_link_fill(skb, dev) < 0) dev 689 net/core/rtnetlink.c struct net_device *dev; dev 692 net/core/rtnetlink.c for_each_netdev(net, dev) { dev 695 net/core/rtnetlink.c if (rtnl_fill_ifinfo(skb, dev, RTM_NEWLINK, dev 749 net/core/rtnetlink.c if (dev) { dev 751 net/core/rtnetlink.c nla_len(tb[IFLA_ADDRESS]) < dev->addr_len) dev 755 net/core/rtnetlink.c nla_len(tb[IFLA_BROADCAST]) < dev->addr_len) dev 775 net/core/rtnetlink.c err = dev_change_net_namespace(dev, net, ifname); dev 786 net/core/rtnetlink.c if (!dev->set_config) { dev 791 net/core/rtnetlink.c if (!netif_device_present(dev)) { dev 804 net/core/rtnetlink.c err = dev->set_config(dev, &k_map); dev 815 net/core/rtnetlink.c if (!dev->set_mac_address) { dev 820 net/core/rtnetlink.c if (!netif_device_present(dev)) { dev 825 net/core/rtnetlink.c len = sizeof(sa_family_t) + dev->addr_len; dev 831 net/core/rtnetlink.c sa->sa_family = dev->type; dev 833 net/core/rtnetlink.c dev->addr_len); dev 834 net/core/rtnetlink.c err = dev->set_mac_address(dev, sa); dev 843 net/core/rtnetlink.c err = dev_set_mtu(dev, nla_get_u32(tb[IFLA_MTU])); dev 855 net/core/rtnetlink.c err = dev_change_name(dev, ifname); dev 862 net/core/rtnetlink.c err = dev_set_alias(dev, nla_data(tb[IFLA_IFALIAS]), dev 870 net/core/rtnetlink.c nla_memcpy(dev->broadcast, tb[IFLA_BROADCAST], dev->addr_len); dev 880 net/core/rtnetlink.c (dev->flags & ~ifm->ifi_change); dev 881 net/core/rtnetlink.c dev_change_flags(dev, flags); dev 885 net/core/rtnetlink.c dev->tx_queue_len = nla_get_u32(tb[IFLA_TXQLEN]); dev 888 net/core/rtnetlink.c set_operstate(dev, nla_get_u8(tb[IFLA_OPERSTATE])); dev 892 net/core/rtnetlink.c dev->link_mode = nla_get_u8(tb[IFLA_LINKMODE]); dev 903 net/core/rtnetlink.c "please check.\n", dev->name); dev 906 net/core/rtnetlink.c call_netdevice_notifiers(NETDEV_CHANGEADDR, dev); dev 914 net/core/rtnetlink.c struct net_device *dev; dev 931 net/core/rtnetlink.c dev = dev_get_by_index(net, ifm->ifi_index); dev 933 net/core/rtnetlink.c dev = dev_get_by_name(net, ifname); dev 937 net/core/rtnetlink.c if (dev == NULL) { dev 942 net/core/rtnetlink.c if ((err = validate_linkmsg(dev, tb)) < 0) dev 945 net/core/rtnetlink.c err = do_setlink(dev, ifm, tb, ifname, 0); dev 947 net/core/rtnetlink.c dev_put(dev); dev 956 net/core/rtnetlink.c struct net_device *dev; dev 971 net/core/rtnetlink.c dev = __dev_get_by_index(net, ifm->ifi_index); dev 973 net/core/rtnetlink.c dev = __dev_get_by_name(net, ifname); dev 977 net/core/rtnetlink.c if (!dev) dev 980 net/core/rtnetlink.c ops = dev->rtnl_link_ops; dev 984 net/core/rtnetlink.c ops->dellink(dev); dev 992 net/core/rtnetlink.c struct net_device *dev; dev 995 net/core/rtnetlink.c dev = alloc_netdev(ops->priv_size, ifname, ops->setup); dev 996 net/core/rtnetlink.c if (!dev) dev 999 net/core/rtnetlink.c if (strchr(dev->name, '%')) { dev 1000 net/core/rtnetlink.c err = dev_alloc_name(dev, dev->name); dev 1005 net/core/rtnetlink.c dev_net_set(dev, net); dev 1006 net/core/rtnetlink.c dev->rtnl_link_ops = ops; dev 1009 net/core/rtnetlink.c dev->mtu = nla_get_u32(tb[IFLA_MTU]); dev 1011 net/core/rtnetlink.c memcpy(dev->dev_addr, nla_data(tb[IFLA_ADDRESS]), dev 1014 net/core/rtnetlink.c memcpy(dev->broadcast, nla_data(tb[IFLA_BROADCAST]), dev 1017 net/core/rtnetlink.c dev->tx_queue_len = nla_get_u32(tb[IFLA_TXQLEN]); dev 1019 net/core/rtnetlink.c set_operstate(dev, nla_get_u8(tb[IFLA_OPERSTATE])); dev 1021 net/core/rtnetlink.c dev->link_mode = nla_get_u8(tb[IFLA_LINKMODE]); dev 1023 net/core/rtnetlink.c return dev; dev 1026 net/core/rtnetlink.c free_netdev(dev); dev 1035 net/core/rtnetlink.c struct net_device *dev; dev 1057 net/core/rtnetlink.c dev = __dev_get_by_index(net, ifm->ifi_index); dev 1059 net/core/rtnetlink.c dev = __dev_get_by_name(net, ifname); dev 1061 net/core/rtnetlink.c dev = NULL; dev 1063 net/core/rtnetlink.c if ((err = validate_linkmsg(dev, tb)) < 0) dev 1101 net/core/rtnetlink.c if (dev) { dev 1110 net/core/rtnetlink.c if (!ops || ops != dev->rtnl_link_ops || dev 1114 net/core/rtnetlink.c err = ops->changelink(dev, tb, data); dev 1120 net/core/rtnetlink.c return do_setlink(dev, ifm, tb, ifname, modified); dev 1148 net/core/rtnetlink.c dev = rtnl_create_link(net, ifname, ops, tb); dev 1150 net/core/rtnetlink.c if (IS_ERR(dev)) dev 1151 net/core/rtnetlink.c err = PTR_ERR(dev); dev 1153 net/core/rtnetlink.c err = ops->newlink(dev, tb, data); dev 1155 net/core/rtnetlink.c err = register_netdevice(dev); dev 1157 net/core/rtnetlink.c if (err < 0 && !IS_ERR(dev)) dev 1158 net/core/rtnetlink.c free_netdev(dev); dev 1168 net/core/rtnetlink.c struct net_device *dev = NULL; dev 1178 net/core/rtnetlink.c dev = dev_get_by_index(net, ifm->ifi_index); dev 1179 net/core/rtnetlink.c if (dev == NULL) dev 1184 net/core/rtnetlink.c nskb = nlmsg_new(if_nlmsg_size(dev), GFP_KERNEL); dev 1190 net/core/rtnetlink.c err = rtnl_fill_ifinfo(nskb, dev, RTM_NEWLINK, NETLINK_CB(skb).pid, dev 1200 net/core/rtnetlink.c dev_put(dev); dev 1231 net/core/rtnetlink.c struct net *net = dev_net(dev); dev 1235 net/core/rtnetlink.c skb = nlmsg_new(if_nlmsg_size(dev), GFP_KERNEL); dev 1239 net/core/rtnetlink.c err = rtnl_fill_ifinfo(skb, dev, type, 0, 0, change, 0); dev 1340 net/core/rtnetlink.c struct net_device *dev = ptr; dev 1344 net/core/rtnetlink.c rtmsg_ifinfo(RTM_DELLINK, dev, ~0U); dev 1347 net/core/rtnetlink.c rtmsg_ifinfo(RTM_NEWLINK, dev, ~0U); dev 1351 net/core/rtnetlink.c rtmsg_ifinfo(RTM_NEWLINK, dev, IFF_UP|IFF_RUNNING); dev 1357 net/core/rtnetlink.c rtmsg_ifinfo(RTM_NEWLINK, dev, 0); dev 18 net/core/skb_dma_map.c map = dma_map_single(dev, skb->data, dev 20 net/core/skb_dma_map.c if (dma_mapping_error(dev, map)) dev 27 net/core/skb_dma_map.c map = dma_map_page(dev, fp->page, fp->page_offset, dev 29 net/core/skb_dma_map.c if (dma_mapping_error(dev, map)) dev 41 net/core/skb_dma_map.c dma_unmap_page(dev, sp->dma_maps[i + 1], dev 44 net/core/skb_dma_map.c dma_unmap_single(dev, sp->dma_maps[0], dev 57 net/core/skb_dma_map.c dma_unmap_single(dev, sp->dma_maps[0], dev 62 net/core/skb_dma_map.c dma_unmap_page(dev, sp->dma_maps[i + 1], dev 127 net/core/skbuff.c skb->dev ? skb->dev->name : "<NULL>"); dev 146 net/core/skbuff.c skb->dev ? skb->dev->name : "<NULL>"); dev 255 net/core/skbuff.c int node = dev->dev.parent ? dev_to_node(dev->dev.parent) : -1; dev 261 net/core/skbuff.c skb->dev = dev; dev 268 net/core/skbuff.c int node = dev->dev.parent ? dev_to_node(dev->dev.parent) : -1; dev 487 net/core/skbuff.c new->dev = old->dev; dev 2623 net/core/skbuff.c " while LRO is enabled\n", skb->dev->name); dev 292 net/core/sock.c skb->dev = NULL; dev 318 net/core/sock.c skb->dev = NULL; dev 406 net/core/sock.c struct net_device *dev = dev_get_by_name(net, devname); dev 409 net/core/sock.c if (!dev) dev 412 net/core/sock.c index = dev->ifindex; dev 413 net/core/sock.c dev_put(dev); dev 1087 net/core/sock.c sk->sk_route_caps = dst->dev->features; dev 1095 net/core/sock.c sk->sk_gso_max_size = dst->dev->gso_max_size; dev 208 net/dccp/ipv4.c struct net *net = dev_net(skb->dev); dev 510 net/dccp/ipv4.c struct net *net = dev_net(rxskb->dst->dev); dev 97 net/dccp/ipv6.c struct net *net = dev_net(skb->dev); dev 101 net/dccp/ipv6.c ICMP6_INC_STATS_BH(net, __in6_dev_get(skb->dev), dev 111 net/dccp/ipv6.c ICMP6_INC_STATS_BH(net, __in6_dev_get(skb->dev), dev 316 net/dccp/ipv6.c struct net *net = dev_net(rxskb->dst->dev); dev 585 net/dccp/ipv6.c newsk->sk_route_caps = dst->dev->features & ~(NETIF_F_IP_CSUM | dev 728 net/decnet/af_decnet.c struct net_device *dev, *ldev; dev 754 net/decnet/af_decnet.c for_each_netdev(&init_net, dev) { dev 755 net/decnet/af_decnet.c if (!dev->dn_ptr) dev 757 net/decnet/af_decnet.c if (dn_dev_islocal(dev, dn_saddr2dn(saddr))) { dev 758 net/decnet/af_decnet.c ldev = dev; dev 957 net/decnet/af_decnet.c sk->sk_route_caps = sk->sk_dst_cache->dev->features; dev 1855 net/decnet/af_decnet.c if (dev) { dev 1856 net/decnet/af_decnet.c struct dn_dev *dn_db = dev->dn_ptr; dev 1857 net/decnet/af_decnet.c mtu -= LL_RESERVED_SPACE(dev); dev 1887 net/decnet/af_decnet.c mss_now = min_t(int, dn_mss_from_pmtu(dst->dev, mtu), mss_now); dev 2090 net/decnet/af_decnet.c struct net_device *dev = (struct net_device *)ptr; dev 2092 net/decnet/af_decnet.c if (!net_eq(dev_net(dev), &init_net)) dev 2097 net/decnet/af_decnet.c dn_dev_up(dev); dev 2100 net/decnet/af_decnet.c dn_dev_down(dev); dev 2117 net/decnet/af_decnet.c .dev = NULL, /* All devices */ dev 249 net/decnet/dn_dev.c if (dev) { dev 250 net/decnet/dn_dev.c dn_ctl_path[DN_CTL_PATH_DEV].procname = dev->name; dev 251 net/decnet/dn_dev.c dn_ctl_path[DN_CTL_PATH_DEV].ctl_name = dev->ifindex; dev 257 net/decnet/dn_dev.c t->dn_dev_vars[0].extra1 = (void *)dev; dev 282 net/decnet/dn_dev.c struct net_device *dev = table->extra1; dev 290 net/decnet/dn_dev.c dn_db = dev->dn_ptr; dev 309 net/decnet/dn_dev.c dn_db->parms.down(dev); dev 312 net/decnet/dn_dev.c dn_db->parms.up(dev); dev 326 net/decnet/dn_dev.c struct net_device *dev = table->extra1; dev 333 net/decnet/dn_dev.c dn_db = dev->dn_ptr; dev 347 net/decnet/dn_dev.c dn_db->parms.down(dev); dev 350 net/decnet/dn_dev.c dn_db->parms.up(dev); dev 371 net/decnet/dn_dev.c u32 blksize = dev->mtu; dev 375 net/decnet/dn_dev.c if (dev->type == ARPHRD_ETHER || dev 376 net/decnet/dn_dev.c dev->type == ARPHRD_PPP || dev 377 net/decnet/dn_dev.c dev->type == ARPHRD_IPGRE || dev 378 net/decnet/dn_dev.c dev->type == ARPHRD_LOOPBACK) dev 402 net/decnet/dn_dev.c struct net_device *dev = dn_db->dev; dev 408 net/decnet/dn_dev.c if (dn_db->dev->type == ARPHRD_ETHER) { dev 409 net/decnet/dn_dev.c if (ifa1->ifa_local != dn_eth2dn(dev->dev_addr)) { dev 411 net/decnet/dn_dev.c dev_mc_delete(dev, mac_addr, ETH_ALEN, 0); dev 421 net/decnet/dn_dev.c dn_dev_delete(dn_db->dev); dev 427 net/decnet/dn_dev.c struct net_device *dev = dn_db->dev; dev 439 net/decnet/dn_dev.c if (dev->type == ARPHRD_ETHER) { dev 440 net/decnet/dn_dev.c if (ifa->ifa_local != dn_eth2dn(dev->dev_addr)) { dev 442 net/decnet/dn_dev.c dev_mc_add(dev, mac_addr, ETH_ALEN, 0); dev 457 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 462 net/decnet/dn_dev.c dn_db = dn_dev_create(dev, &err); dev 469 net/decnet/dn_dev.c if (dev->flags & IFF_LOOPBACK) dev 485 net/decnet/dn_dev.c struct net_device *dev; dev 512 net/decnet/dn_dev.c if ((dev = __dev_get_by_name(&init_net, ifr->ifr_name)) == NULL) { dev 517 net/decnet/dn_dev.c if ((dn_db = dev->dn_ptr) != NULL) { dev 539 net/decnet/dn_dev.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); dev 548 net/decnet/dn_dev.c ret = dn_dev_set_ifa(dev, ifa); dev 562 net/decnet/dn_dev.c struct net_device *dev; dev 564 net/decnet/dn_dev.c dev = decnet_default_device; dev 565 net/decnet/dn_dev.c if (dev) { dev 566 net/decnet/dn_dev.c if (dev->dn_ptr) dev 567 net/decnet/dn_dev.c dev_hold(dev); dev 569 net/decnet/dn_dev.c dev = NULL; dev 572 net/decnet/dn_dev.c return dev; dev 579 net/decnet/dn_dev.c if (!dev->dn_ptr) dev 584 net/decnet/dn_dev.c decnet_default_device = dev; dev 596 net/decnet/dn_dev.c if (dev == decnet_default_device) { dev 599 net/decnet/dn_dev.c dev = NULL; dev 602 net/decnet/dn_dev.c if (dev) dev 603 net/decnet/dn_dev.c dev_put(dev); dev 608 net/decnet/dn_dev.c struct net_device *dev; dev 610 net/decnet/dn_dev.c dev = dev_get_by_index(&init_net, ifindex); dev 611 net/decnet/dn_dev.c if (dev) { dev 612 net/decnet/dn_dev.c dn_dev = dev->dn_ptr; dev 613 net/decnet/dn_dev.c dev_put(dev); dev 668 net/decnet/dn_dev.c struct net_device *dev; dev 685 net/decnet/dn_dev.c if ((dev = __dev_get_by_index(&init_net, ifm->ifa_index)) == NULL) dev 688 net/decnet/dn_dev.c if ((dn_db = dev->dn_ptr) == NULL) { dev 690 net/decnet/dn_dev.c dn_db = dn_dev_create(dev, &err); dev 710 net/decnet/dn_dev.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); dev 742 net/decnet/dn_dev.c ifm->ifa_index = ifa->ifa_dev->dev->ifindex; dev 784 net/decnet/dn_dev.c struct net_device *dev; dev 795 net/decnet/dn_dev.c for_each_netdev(&init_net, dev) { dev 804 net/decnet/dn_dev.c if ((dn_db = dev->dn_ptr) == NULL) dev 829 net/decnet/dn_dev.c struct dn_dev *dn_db = (struct dn_dev *)dev->dn_ptr; dev 855 net/decnet/dn_dev.c struct net_device *dev; dev 857 net/decnet/dn_dev.c dev = dn_dev_get_default(); dev 859 net/decnet/dn_dev.c if (dev) { dev 861 net/decnet/dn_dev.c rv = dn_dev_get_first(dev, addr); dev 863 net/decnet/dn_dev.c dev_put(dev); dev 864 net/decnet/dn_dev.c if (rv == 0 || dev == init_net.loopback_dev) dev 867 net/decnet/dn_dev.c dev = init_net.loopback_dev; dev 868 net/decnet/dn_dev.c dev_hold(dev); dev 877 net/decnet/dn_dev.c struct dn_dev *dn_db = (struct dn_dev *)dev->dn_ptr; dev 882 net/decnet/dn_dev.c skb->dev = dev; dev 890 net/decnet/dn_dev.c msg->blksize = dn_htons(mtu2blksize(dev)); dev 943 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 952 net/decnet/dn_dev.c if (mtu2blksize(dev) < (26 + 7)) dev 955 net/decnet/dn_dev.c n = mtu2blksize(dev) - 26; dev 966 net/decnet/dn_dev.c skb->dev = dev; dev 978 net/decnet/dn_dev.c *((__le16 *)ptr) = dn_htons(mtu2blksize(dev)); dev 990 net/decnet/dn_dev.c n = dn_neigh_elist(dev, ptr, n); dev 1014 net/decnet/dn_dev.c struct dn_dev *dn_db = (struct dn_dev *)dev->dn_ptr; dev 1017 net/decnet/dn_dev.c dn_send_endnode_hello(dev, ifa); dev 1019 net/decnet/dn_dev.c dn_send_router_hello(dev, ifa); dev 1025 net/decnet/dn_dev.c int size = dev->hard_header_len + 2 + 4 + tdlen; dev 1034 net/decnet/dn_dev.c skb->dev = dev; dev 1035 net/decnet/dn_dev.c skb_push(skb, dev->hard_header_len); dev 1052 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 1055 net/decnet/dn_dev.c dev_mc_add(dev, dn_rt_all_end_mcast, ETH_ALEN, 0); dev 1057 net/decnet/dn_dev.c dev_mc_add(dev, dn_rt_all_rt_mcast, ETH_ALEN, 0); dev 1066 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 1069 net/decnet/dn_dev.c dev_mc_delete(dev, dn_rt_all_end_mcast, ETH_ALEN, 0); dev 1071 net/decnet/dn_dev.c dev_mc_delete(dev, dn_rt_all_rt_mcast, ETH_ALEN, 0); dev 1078 net/decnet/dn_dev.c struct net_device *dev = (struct net_device *)arg; dev 1079 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 1086 net/decnet/dn_dev.c dn_db->parms.timer3(dev, ifa); dev 1094 net/decnet/dn_dev.c dn_dev_set_timer(dev); dev 1099 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 1104 net/decnet/dn_dev.c dn_db->timer.data = (unsigned long)dev; dev 1118 net/decnet/dn_dev.c if (p->type == dev->type) dev 1132 net/decnet/dn_dev.c dev->dn_ptr = dn_db; dev 1133 net/decnet/dn_dev.c dn_db->dev = dev; dev 1138 net/decnet/dn_dev.c dn_db->neigh_parms = neigh_parms_alloc(dev, &dn_neigh_table); dev 1140 net/decnet/dn_dev.c dev->dn_ptr = NULL; dev 1146 net/decnet/dn_dev.c if (dn_db->parms.up(dev) < 0) { dev 1148 net/decnet/dn_dev.c dev->dn_ptr = NULL; dev 1154 net/decnet/dn_dev.c dn_dev_sysctl_register(dev, &dn_db->parms); dev 1156 net/decnet/dn_dev.c dn_dev_set_timer(dev); dev 1179 net/decnet/dn_dev.c struct dn_dev *dn_db = (struct dn_dev *)dev->dn_ptr; dev 1181 net/decnet/dn_dev.c if ((dev->type != ARPHRD_ETHER) && (dev->type != ARPHRD_LOOPBACK)) dev 1192 net/decnet/dn_dev.c dn_db = dn_dev_create(dev, &err); dev 1197 net/decnet/dn_dev.c if (dev->type == ARPHRD_ETHER) { dev 1198 net/decnet/dn_dev.c if (memcmp(dev->dev_addr, dn_hiord, 4) != 0) dev 1200 net/decnet/dn_dev.c addr = dn_eth2dn(dev->dev_addr); dev 1213 net/decnet/dn_dev.c strcpy(ifa->ifa_label, dev->name); dev 1215 net/decnet/dn_dev.c dn_dev_set_ifa(dev, ifa); dev 1222 net/decnet/dn_dev.c dev_hold(dev); dev 1223 net/decnet/dn_dev.c if (dn_dev_set_default(dev, 0)) dev 1224 net/decnet/dn_dev.c dev_put(dev); dev 1230 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 1237 net/decnet/dn_dev.c dn_dev_check_default(dev); dev 1238 net/decnet/dn_dev.c neigh_ifdown(&dn_neigh_table, dev); dev 1241 net/decnet/dn_dev.c dn_db->parms.down(dev); dev 1243 net/decnet/dn_dev.c dev->dn_ptr = NULL; dev 1246 net/decnet/dn_dev.c neigh_ifdown(&dn_neigh_table, dev); dev 1258 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 1269 net/decnet/dn_dev.c dn_dev_delete(dev); dev 1289 net/decnet/dn_dev.c struct net_device *dev; dev 1292 net/decnet/dn_dev.c for_each_netdev(&init_net, dev) dev 1293 net/decnet/dn_dev.c dn_dev_down(dev); dev 1300 net/decnet/dn_dev.c struct net_device *dev; dev 1303 net/decnet/dn_dev.c for_each_netdev(&init_net, dev) { dev 1304 net/decnet/dn_dev.c if (dev->flags & IFF_UP) dev 1305 net/decnet/dn_dev.c dn_dev_up(dev); dev 1323 net/decnet/dn_dev.c return dev->dn_ptr != NULL; dev 1329 net/decnet/dn_dev.c struct net_device *dev; dev 1337 net/decnet/dn_dev.c for_each_netdev(&init_net, dev) { dev 1338 net/decnet/dn_dev.c if (!is_dn_dev(dev)) dev 1342 net/decnet/dn_dev.c return dev; dev 1350 net/decnet/dn_dev.c struct net_device *dev; dev 1354 net/decnet/dn_dev.c dev = (struct net_device *)v; dev 1356 net/decnet/dn_dev.c dev = net_device_entry(&init_net.dev_base_head); dev 1358 net/decnet/dn_dev.c for_each_netdev_continue(&init_net, dev) { dev 1359 net/decnet/dn_dev.c if (!is_dn_dev(dev)) dev 1362 net/decnet/dn_dev.c return dev; dev 1392 net/decnet/dn_dev.c struct net_device *dev = v; dev 1395 net/decnet/dn_dev.c struct dn_dev *dn_db = dev->dn_ptr; dev 1399 net/decnet/dn_dev.c dev->name ? dev->name : "???", dev 1403 net/decnet/dn_dev.c mtu2blksize(dev), dev 207 net/decnet/dn_fib.c struct net_device *dev; dev 213 net/decnet/dn_fib.c if ((dev = __dev_get_by_index(&init_net, nh->nh_oif)) == NULL) dev 215 net/decnet/dn_fib.c if (!(dev->flags&IFF_UP)) dev 217 net/decnet/dn_fib.c nh->nh_dev = dev; dev 218 net/decnet/dn_fib.c dev_hold(dev); dev 251 net/decnet/dn_fib.c struct net_device *dev; dev 256 net/decnet/dn_fib.c dev = __dev_get_by_index(&init_net, nh->nh_oif); dev 257 net/decnet/dn_fib.c if (dev == NULL || dev->dn_ptr == NULL) dev 259 net/decnet/dn_fib.c if (!(dev->flags&IFF_UP)) dev 261 net/decnet/dn_fib.c nh->nh_dev = dev; dev 579 net/decnet/dn_fib.c rta.rta_oif = &ifa->ifa_dev->dev->ifindex; dev 593 net/decnet/dn_fib.c if (!(dev->flags&IFF_UP)) dev 603 net/decnet/dn_fib.c struct net_device *dev; dev 611 net/decnet/dn_fib.c for_each_netdev(&init_net, dev) { dev 612 net/decnet/dn_fib.c dn_db = dev->dn_ptr; dev 636 net/decnet/dn_fib.c if (dn_fib_sync_down(0, dev, force)) dev 639 net/decnet/dn_fib.c neigh_ifdown(&dn_neigh_table, dev); dev 649 net/decnet/dn_fib.c dn_fib_sync_up(ifa->ifa_dev->dev); dev 655 net/decnet/dn_fib.c dn_fib_disable_addr(ifa->ifa_dev->dev, 1); dev 682 net/decnet/dn_fib.c } else if (dev && fi->fib_nhs) { dev 688 net/decnet/dn_fib.c else if (nh->nh_dev == dev && dev 712 net/decnet/dn_fib.c if (!(dev->flags&IFF_UP)) dev 725 net/decnet/dn_fib.c if (nh->nh_dev != dev || dev->dn_ptr == NULL) dev 131 net/decnet/dn_neigh.c struct net_device *dev = neigh->dev; dev 137 net/decnet/dn_neigh.c dn_db = rcu_dereference(dev->dn_ptr); dev 164 net/decnet/dn_neigh.c if ((dev->type == ARPHRD_IPGRE) || (dev->flags & IFF_POINTOPOINT)) dev 165 net/decnet/dn_neigh.c memcpy(neigh->ha, dev->broadcast, dev->addr_len); dev 166 net/decnet/dn_neigh.c else if ((dev->type == ARPHRD_ETHER) || (dev->type == ARPHRD_LOOPBACK)) dev 170 net/decnet/dn_neigh.c printk(KERN_DEBUG "Trying to create neigh for hw %d\n", dev->type); dev 187 net/decnet/dn_neigh.c dn->blksize = dev->mtu - 2; dev 210 net/decnet/dn_neigh.c struct net_device *dev = neigh->dev; dev 214 net/decnet/dn_neigh.c if (dev_hard_header(skb, dev, ntohs(skb->protocol), neigh->ha, dev 229 net/decnet/dn_neigh.c struct net_device *dev = neigh->dev; dev 230 net/decnet/dn_neigh.c int headroom = dev->hard_header_len + sizeof(struct dn_long_packet) + 3; dev 268 net/decnet/dn_neigh.c return NF_HOOK(PF_DECnet, NF_DN_POST_ROUTING, skb, NULL, neigh->dev, dn_neigh_output_packet); dev 275 net/decnet/dn_neigh.c struct net_device *dev = neigh->dev; dev 276 net/decnet/dn_neigh.c int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; dev 307 net/decnet/dn_neigh.c return NF_HOOK(PF_DECnet, NF_DN_POST_ROUTING, skb, NULL, neigh->dev, dn_neigh_output_packet); dev 318 net/decnet/dn_neigh.c struct net_device *dev = neigh->dev; dev 319 net/decnet/dn_neigh.c int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; dev 349 net/decnet/dn_neigh.c return NF_HOOK(PF_DECnet, NF_DN_POST_ROUTING, skb, NULL, neigh->dev, dn_neigh_output_packet); dev 381 net/decnet/dn_neigh.c neigh = __neigh_lookup(&dn_neigh_table, &src, skb->dev, 1); dev 389 net/decnet/dn_neigh.c dn_db = (struct dn_dev *)neigh->dev->dn_ptr; dev 394 net/decnet/dn_neigh.c if (neigh->dev->type == ARPHRD_ETHER) dev 441 net/decnet/dn_neigh.c neigh = __neigh_lookup(&dn_neigh_table, &src, skb->dev, 1); dev 453 net/decnet/dn_neigh.c if (neigh->dev->type == ARPHRD_ETHER) dev 488 net/decnet/dn_neigh.c struct net_device *dev; dev 499 net/decnet/dn_neigh.c if (neigh->dev != s->dev) dev 524 net/decnet/dn_neigh.c state.dev = dev; dev 553 net/decnet/dn_neigh.c (dn->n.dev) ? dn->n.dev->name : "?"); dev 84 net/decnet/dn_nsp_in.c char *devname = skb->dev ? skb->dev->name : "???"; dev 819 net/decnet/dn_nsp_in.c return NF_HOOK(PF_DECnet, NF_DN_LOCAL_IN, skb, skb->dev, NULL, dn_nsp_rx_packet); dev 101 net/decnet/dn_nsp_out.c sk->sk_route_caps = dst->dev->features; dev 231 net/decnet/dn_route.c (struct dn_dev *)dst->neighbour->dev->dn_ptr : NULL; dev 474 net/decnet/dn_route.c char *devname = skb->dev ? skb->dev->name : "???"; dev 525 net/decnet/dn_route.c return NF_HOOK(PF_DECnet, NF_DN_PRE_ROUTING, skb, skb->dev, NULL, dn_route_rx_packet); dev 551 net/decnet/dn_route.c return NF_HOOK(PF_DECnet, NF_DN_PRE_ROUTING, skb, skb->dev, NULL, dn_route_rx_packet); dev 580 net/decnet/dn_route.c struct dn_dev *dn = (struct dn_dev *)dev->dn_ptr; dev 583 net/decnet/dn_route.c if (!net_eq(dev_net(dev), &init_net)) dev 606 net/decnet/dn_route.c cb->iif = dev->ifindex; dev 632 net/decnet/dn_route.c (int)flags, (dev) ? dev->name : "???", len, skb->len, dev 653 net/decnet/dn_route.c return NF_HOOK(PF_DECnet, NF_DN_HELLO, skb, skb->dev, NULL, dn_route_ptp_hello); dev 657 net/decnet/dn_route.c return NF_HOOK(PF_DECnet, NF_DN_ROUTE, skb, skb->dev, NULL, dn_route_discard); dev 659 net/decnet/dn_route.c return NF_HOOK(PF_DECnet, NF_DN_HELLO, skb, skb->dev, NULL, dn_neigh_router_hello); dev 662 net/decnet/dn_route.c return NF_HOOK(PF_DECnet, NF_DN_HELLO, skb, skb->dev, NULL, dn_neigh_endnode_hello); dev 688 net/decnet/dn_route.c struct net_device *dev = dst->dev; dev 697 net/decnet/dn_route.c skb->dev = dev; dev 711 net/decnet/dn_route.c return NF_HOOK(PF_DECnet, NF_DN_LOCAL_OUT, skb, NULL, dev, neigh->output); dev 726 net/decnet/dn_route.c struct dn_dev *dn_db = dst->dev->dn_ptr; dev 731 net/decnet/dn_route.c struct net_device *dev = skb->dev; dev 740 net/decnet/dn_route.c if (skb_cow(skb, LL_RESERVED_SPACE(rt->u.dst.dev)+header_len)) dev 749 net/decnet/dn_route.c skb->dev = rt->u.dst.dev; dev 760 net/decnet/dn_route.c return NF_HOOK(PF_DECnet, NF_DN_FORWARD, skb, dev, skb->dev, neigh->output); dev 788 net/decnet/dn_route.c struct net_device *dev = rt->u.dst.dev; dev 801 net/decnet/dn_route.c if (dev != NULL && rt->u.dst.neighbour == NULL) { dev 802 net/decnet/dn_route.c n = __neigh_lookup_errno(&dn_neigh_table, &rt->rt_gateway, dev); dev 809 net/decnet/dn_route.c dst_metric(&rt->u.dst, RTAX_MTU) > rt->u.dst.dev->mtu) dev 810 net/decnet/dn_route.c rt->u.dst.metrics[RTAX_MTU-1] = rt->u.dst.dev->mtu; dev 811 net/decnet/dn_route.c mss = dn_mss_from_pmtu(dev, dst_mtu(&rt->u.dst)); dev 832 net/decnet/dn_route.c struct dn_dev *dn_db = dev->dn_ptr; dev 878 net/decnet/dn_route.c struct net_device *dev_out = NULL, *dev; dev 917 net/decnet/dn_route.c for_each_netdev(&init_net, dev) { dev 918 net/decnet/dn_route.c if (!dev->dn_ptr) dev 920 net/decnet/dn_route.c if (!dn_dev_islocal(dev, oldflp->fld_src)) dev 922 net/decnet/dn_route.c if ((dev->flags & IFF_LOOPBACK) && dev 924 net/decnet/dn_route.c !dn_dev_islocal(dev, oldflp->fld_dst)) dev 927 net/decnet/dn_route.c dev_out = dev; dev 990 net/decnet/dn_route.c (neigh->dev->ifindex != oldflp->oif)) || dev 992 net/decnet/dn_route.c (!dn_dev_islocal(neigh->dev, dev 999 net/decnet/dn_route.c if (dn_dev_islocal(neigh->dev, fl.fld_dst)) { dev 1003 net/decnet/dn_route.c dev_out = neigh->dev; dev 1028 net/decnet/dn_route.c BUG_ON(neigh && neigh->dev != dev_out); dev 1109 net/decnet/dn_route.c rt->u.dst.dev = dev_out; dev 1209 net/decnet/dn_route.c struct net_device *in_dev = skb->dev; dev 1223 net/decnet/dn_route.c .iif = skb->dev->ifindex }; dev 1373 net/decnet/dn_route.c rt->u.dst.dev = out_dev; dev 1383 net/decnet/dn_route.c rt->u.dst.dev = in_dev; dev 1392 net/decnet/dn_route.c if (rt->u.dst.dev) dev 1393 net/decnet/dn_route.c dev_hold(rt->u.dst.dev); dev 1482 net/decnet/dn_route.c if (rt->u.dst.dev) dev 1483 net/decnet/dn_route.c RTA_PUT(skb, RTA_OIF, sizeof(int), &rt->u.dst.dev->ifindex); dev 1544 net/decnet/dn_route.c struct net_device *dev; dev 1545 net/decnet/dn_route.c if ((dev = dev_get_by_index(&init_net, fl.iif)) == NULL) { dev 1549 net/decnet/dn_route.c if (!dev->dn_ptr) { dev 1550 net/decnet/dn_route.c dev_put(dev); dev 1555 net/decnet/dn_route.c skb->dev = dev; dev 1573 net/decnet/dn_route.c if (skb->dev) dev 1574 net/decnet/dn_route.c dev_put(skb->dev); dev 1575 net/decnet/dn_route.c skb->dev = NULL; dev 1714 net/decnet/dn_route.c rt->u.dst.dev ? rt->u.dst.dev->name : "*", dev 49 net/decnet/netfilter/dn_rtmsg.c rtm->nfdn_ifindex = rt_skb->dev->ifindex; dev 225 net/decnet/sysctl_net_decnet.c struct net_device *dev; dev 236 net/decnet/sysctl_net_decnet.c dev = dn_dev_get_default(); dev 237 net/decnet/sysctl_net_decnet.c if (dev) { dev 238 net/decnet/sysctl_net_decnet.c strcpy(devname, dev->name); dev 239 net/decnet/sysctl_net_decnet.c dev_put(dev); dev 262 net/decnet/sysctl_net_decnet.c dev = dev_get_by_name(&init_net, devname); dev 263 net/decnet/sysctl_net_decnet.c if (dev == NULL) dev 267 net/decnet/sysctl_net_decnet.c if (dev->dn_ptr != NULL) { dev 268 net/decnet/sysctl_net_decnet.c rv = dn_dev_set_default(dev, 1); dev 270 net/decnet/sysctl_net_decnet.c dev_put(dev); dev 284 net/decnet/sysctl_net_decnet.c struct net_device *dev; dev 302 net/decnet/sysctl_net_decnet.c dev = dev_get_by_name(&init_net, devname); dev 303 net/decnet/sysctl_net_decnet.c if (dev == NULL) dev 306 net/decnet/sysctl_net_decnet.c if (dev->dn_ptr == NULL) { dev 307 net/decnet/sysctl_net_decnet.c dev_put(dev); dev 311 net/decnet/sysctl_net_decnet.c if (dn_dev_set_default(dev, 1)) { dev 312 net/decnet/sysctl_net_decnet.c dev_put(dev); dev 320 net/decnet/sysctl_net_decnet.c dev = dn_dev_get_default(); dev 321 net/decnet/sysctl_net_decnet.c if (dev == NULL) { dev 326 net/decnet/sysctl_net_decnet.c strcpy(devname, dev->name); dev 327 net/decnet/sysctl_net_decnet.c dev_put(dev); dev 85 net/dsa/dsa.c dev->name); dev 88 net/dsa/dsa.c printk(KERN_INFO "%s: detected a %s switch\n", dev->name, name); dev 99 net/dsa/dsa.c ds->master_netdev = dev; dev 143 net/dsa/dsa.c dev->dsa_ptr = (void *)ds; dev 153 net/dsa/dsa.c ret = drv->set_addr(ds, dev->dev_addr); dev 183 net/dsa/dsa.c dev->name, i, pd->port_names[i]); dev 195 net/dsa/dsa.c dev->dsa_ptr = NULL; dev 250 net/dsa/dsa.c if (dev->class != NULL && !strcmp(dev->class->name, class)) dev 270 net/dsa/dsa.c d = dev_find_class(dev, "mdio_bus"); dev 287 net/dsa/dsa.c d = dev_find_class(dev, "net"); dev 304 net/dsa/dsa.c struct dsa_platform_data *pd = pdev->dev.platform_data; dev 305 net/dsa/dsa.c struct net_device *dev; dev 320 net/dsa/dsa.c dev = dev_to_net_device(pd->netdev); dev 321 net/dsa/dsa.c if (dev == NULL) dev 324 net/dsa/dsa.c if (dev->dsa_ptr != NULL) { dev 325 net/dsa/dsa.c dev_put(dev); dev 329 net/dsa/dsa.c ds = dsa_switch_setup(&pdev->dev, pd, bus, dev); dev 331 net/dsa/dsa.c dev_put(dev); dev 55 net/dsa/dsa_priv.h struct net_device *dev; dev 224 net/dsa/mv88e6060.c struct net_device *dev; dev 231 net/dsa/mv88e6060.c dev = ds->ports[i]; dev 232 net/dsa/mv88e6060.c if (dev == NULL) dev 236 net/dsa/mv88e6060.c if (dev->flags & IFF_UP) { dev 245 net/dsa/mv88e6060.c if (netif_carrier_ok(dev)) { dev 246 net/dsa/mv88e6060.c printk(KERN_INFO "%s: link down\n", dev->name); dev 247 net/dsa/mv88e6060.c netif_carrier_off(dev); dev 256 net/dsa/mv88e6060.c if (!netif_carrier_ok(dev)) { dev 258 net/dsa/mv88e6060.c "flow control %sabled\n", dev->name, dev 261 net/dsa/mv88e6060.c netif_carrier_on(dev); dev 360 net/dsa/mv88e6xxx.c struct net_device *dev; dev 367 net/dsa/mv88e6xxx.c dev = ds->ports[i]; dev 368 net/dsa/mv88e6xxx.c if (dev == NULL) dev 372 net/dsa/mv88e6xxx.c if (dev->flags & IFF_UP) { dev 381 net/dsa/mv88e6xxx.c if (netif_carrier_ok(dev)) { dev 382 net/dsa/mv88e6xxx.c printk(KERN_INFO "%s: link down\n", dev->name); dev 383 net/dsa/mv88e6xxx.c netif_carrier_off(dev); dev 405 net/dsa/mv88e6xxx.c if (!netif_carrier_ok(dev)) { dev 407 net/dsa/mv88e6xxx.c "flow control %sabled\n", dev->name, dev 410 net/dsa/mv88e6xxx.c netif_carrier_on(dev); dev 45 net/dsa/slave.c ds->slave_mii_bus->parent = &(ds->master_mii_bus->dev); dev 62 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 66 net/dsa/slave.c dev_set_allmulti(master, dev->flags & IFF_ALLMULTI ? 1 : -1); dev 68 net/dsa/slave.c dev_set_promiscuity(master, dev->flags & IFF_PROMISC ? 1 : -1); dev 73 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 76 net/dsa/slave.c dev_mc_sync(master, dev); dev 77 net/dsa/slave.c dev_unicast_sync(master, dev); dev 82 net/dsa/slave.c memcpy(dev->dev_addr, addr + 2, 6); dev 89 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 103 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 119 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 138 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 148 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 161 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 180 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 183 net/dsa/slave.c data[0] = p->dev->stats.tx_packets; dev 184 net/dsa/slave.c data[1] = p->dev->stats.tx_bytes; dev 185 net/dsa/slave.c data[2] = p->dev->stats.rx_packets; dev 186 net/dsa/slave.c data[3] = p->dev->stats.rx_bytes; dev 193 net/dsa/slave.c struct dsa_slave_priv *p = netdev_priv(dev); dev 271 net/dsa/slave.c p->dev = slave_dev; dev 287 net/dsa/slave.c phy_attach(slave_dev, p->phy->dev.bus_id, dev 20 net/dsa/tag_dsa.c struct dsa_slave_priv *p = netdev_priv(dev); dev 23 net/dsa/tag_dsa.c dev->stats.tx_packets++; dev 24 net/dsa/tag_dsa.c dev->stats.tx_bytes += skb->len; dev 68 net/dsa/tag_dsa.c skb->dev = p->parent->master_netdev; dev 81 net/dsa/tag_dsa.c struct dsa_switch *ds = dev->dsa_ptr; dev 160 net/dsa/tag_dsa.c skb->dev = ds->ports[source_port]; dev 162 net/dsa/tag_dsa.c skb->protocol = eth_type_trans(skb, skb->dev); dev 164 net/dsa/tag_dsa.c skb->dev->last_rx = jiffies; dev 165 net/dsa/tag_dsa.c skb->dev->stats.rx_packets++; dev 166 net/dsa/tag_dsa.c skb->dev->stats.rx_bytes += skb->len; dev 21 net/dsa/tag_edsa.c struct dsa_slave_priv *p = netdev_priv(dev); dev 24 net/dsa/tag_edsa.c dev->stats.tx_packets++; dev 25 net/dsa/tag_edsa.c dev->stats.tx_bytes += skb->len; dev 81 net/dsa/tag_edsa.c skb->dev = p->parent->master_netdev; dev 94 net/dsa/tag_edsa.c struct dsa_switch *ds = dev->dsa_ptr; dev 179 net/dsa/tag_edsa.c skb->dev = ds->ports[source_port]; dev 181 net/dsa/tag_edsa.c skb->protocol = eth_type_trans(skb, skb->dev); dev 183 net/dsa/tag_edsa.c skb->dev->last_rx = jiffies; dev 184 net/dsa/tag_edsa.c skb->dev->stats.rx_packets++; dev 185 net/dsa/tag_edsa.c skb->dev->stats.rx_bytes += skb->len; dev 18 net/dsa/tag_trailer.c struct dsa_slave_priv *p = netdev_priv(dev); dev 23 net/dsa/tag_trailer.c dev->stats.tx_packets++; dev 24 net/dsa/tag_trailer.c dev->stats.tx_bytes += skb->len; dev 62 net/dsa/tag_trailer.c nskb->dev = p->parent->master_netdev; dev 71 net/dsa/tag_trailer.c struct dsa_switch *ds = dev->dsa_ptr; dev 96 net/dsa/tag_trailer.c skb->dev = ds->ports[source_port]; dev 98 net/dsa/tag_trailer.c skb->protocol = eth_type_trans(skb, skb->dev); dev 100 net/dsa/tag_trailer.c skb->dev->last_rx = jiffies; dev 101 net/dsa/tag_trailer.c skb->dev->stats.rx_packets++; dev 102 net/dsa/tag_trailer.c skb->dev->stats.rx_bytes += skb->len; dev 268 net/econet/af_econet.c struct net_device *dev; dev 318 net/econet/af_econet.c dev = net2dev_map[addr.net]; dev 321 net/econet/af_econet.c if (dev == NULL) { dev 322 net/econet/af_econet.c dev = net2dev_map[0]; dev 324 net/econet/af_econet.c if (dev == NULL) { dev 330 net/econet/af_econet.c if (len + 15 > dev->mtu) { dev 335 net/econet/af_econet.c if (dev->type == ARPHRD_ECONET) { dev 341 net/econet/af_econet.c dev_hold(dev); dev 343 net/econet/af_econet.c skb = sock_alloc_send_skb(sk, len+LL_ALLOCATED_SPACE(dev), dev 348 net/econet/af_econet.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 359 net/econet/af_econet.c res = dev_hard_header(skb, dev, ntohs(proto), &addr, NULL, len); dev 378 net/econet/af_econet.c skb->dev = dev; dev 384 net/econet/af_econet.c if (!(dev->flags & IFF_UP)) dev 392 net/econet/af_econet.c dev_put(dev); dev 399 net/econet/af_econet.c if (dev) dev 400 net/econet/af_econet.c dev_put(dev); dev 431 net/econet/af_econet.c idev = __in_dev_get_rcu(dev); dev 652 net/econet/af_econet.c struct net_device *dev; dev 663 net/econet/af_econet.c if ((dev = dev_get_by_name(&init_net, ifr.ifr_name)) == NULL) dev 673 net/econet/af_econet.c edev = dev->ec_ptr; dev 681 net/econet/af_econet.c dev->ec_ptr = edev; dev 686 net/econet/af_econet.c net2dev_map[sec->addr.net] = dev; dev 688 net/econet/af_econet.c net2dev_map[0] = dev; dev 692 net/econet/af_econet.c edev = dev->ec_ptr; dev 701 net/econet/af_econet.c dev_put(dev); dev 713 net/econet/af_econet.c dev_put(dev); dev 856 net/econet/af_econet.c struct ec_device *edev = skb->dev->ec_ptr; dev 1063 net/econet/af_econet.c struct ec_device *edev = dev->ec_ptr; dev 1065 net/econet/af_econet.c if (!net_eq(dev_net(dev), &init_net)) dev 1119 net/econet/af_econet.c struct net_device *dev = (struct net_device *)data; dev 1122 net/econet/af_econet.c if (!net_eq(dev_net(dev), &init_net)) dev 1128 net/econet/af_econet.c edev = dev->ec_ptr; dev 1131 net/econet/af_econet.c if (net2dev_map[0] == dev) dev 1135 net/econet/af_econet.c dev->ec_ptr = NULL; dev 95 net/ethernet/eth.c saddr = dev->dev_addr; dev 107 net/ethernet/eth.c if (dev->flags & (IFF_LOOPBACK | IFF_NOARP)) { dev 129 net/ethernet/eth.c struct net_device *dev = skb->dev; dev 139 net/ethernet/eth.c dev->name, (int)eth->h_proto); dev 141 net/ethernet/eth.c memcpy(eth->h_source, dev->dev_addr, ETH_ALEN); dev 163 net/ethernet/eth.c skb->dev = dev; dev 169 net/ethernet/eth.c if (!compare_ether_addr(eth->h_dest, dev->broadcast)) dev 184 net/ethernet/eth.c if (unlikely(compare_ether_addr(eth->h_dest, dev->dev_addr))) dev 194 net/ethernet/eth.c if (netdev_uses_dsa_tags(dev)) dev 196 net/ethernet/eth.c if (netdev_uses_trailer_tags(dev)) dev 243 net/ethernet/eth.c const struct net_device *dev = neigh->dev; dev 252 net/ethernet/eth.c memcpy(eth->h_source, dev->dev_addr, ETH_ALEN); dev 289 net/ethernet/eth.c if (netif_running(dev)) dev 293 net/ethernet/eth.c memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); dev 309 net/ethernet/eth.c dev->mtu = new_mtu; dev 315 net/ethernet/eth.c if (!is_valid_ether_addr(dev->dev_addr)) dev 336 net/ethernet/eth.c dev->header_ops = ð_header_ops; dev 338 net/ethernet/eth.c dev->change_mtu = eth_change_mtu; dev 339 net/ethernet/eth.c dev->set_mac_address = eth_mac_addr; dev 340 net/ethernet/eth.c dev->validate_addr = eth_validate_addr; dev 342 net/ethernet/eth.c dev->type = ARPHRD_ETHER; dev 343 net/ethernet/eth.c dev->hard_header_len = ETH_HLEN; dev 344 net/ethernet/eth.c dev->mtu = ETH_DATA_LEN; dev 345 net/ethernet/eth.c dev->addr_len = ETH_ALEN; dev 346 net/ethernet/eth.c dev->tx_queue_len = 1000; /* Ethernet wants good queues */ dev 347 net/ethernet/eth.c dev->flags = IFF_BROADCAST|IFF_MULTICAST; dev 349 net/ethernet/eth.c memset(dev->broadcast, 0xFF, ETH_ALEN); dev 12 net/ethernet/pe2.c struct net_device *dev = skb->dev; dev 15 net/ethernet/pe2.c dev_hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len); dev 74 net/ieee80211/ieee80211_crypt.c "deletion list\n", ieee->dev->name); dev 628 net/ieee80211/ieee80211_crypt_tkip.c wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *)&ev); dev 650 net/ieee80211/ieee80211_crypt_tkip.c skb->dev ? skb->dev->name : "N/A", print_mac(mac, hdr->addr2), dev 652 net/ieee80211/ieee80211_crypt_tkip.c if (skb->dev) dev 653 net/ieee80211/ieee80211_crypt_tkip.c ieee80211_michael_mic_failure(skb->dev, hdr, keyidx); dev 75 net/ieee80211/ieee80211_module.c ieee->dev->name); dev 123 net/ieee80211/ieee80211_module.c dev->mtu = new_mtu; dev 130 net/ieee80211/ieee80211_module.c struct ieee80211_device *ieee = netdev_priv(dev); dev 137 net/ieee80211/ieee80211_module.c struct net_device *dev; dev 142 net/ieee80211/ieee80211_module.c dev = alloc_etherdev(sizeof(struct ieee80211_device) + sizeof_priv); dev 143 net/ieee80211/ieee80211_module.c if (!dev) { dev 147 net/ieee80211/ieee80211_module.c ieee = netdev_priv(dev); dev 148 net/ieee80211/ieee80211_module.c dev->hard_start_xmit = ieee80211_xmit; dev 149 net/ieee80211/ieee80211_module.c dev->change_mtu = ieee80211_change_mtu; dev 153 net/ieee80211/ieee80211_module.c dev->get_stats = ieee80211_generic_get_stats; dev 155 net/ieee80211/ieee80211_module.c ieee->dev = dev; dev 194 net/ieee80211/ieee80211_module.c return dev; dev 197 net/ieee80211/ieee80211_module.c free_netdev(dev); dev 204 net/ieee80211/ieee80211_module.c struct ieee80211_device *ieee = netdev_priv(dev); dev 225 net/ieee80211/ieee80211_module.c free_netdev(dev); dev 44 net/ieee80211/ieee80211_rx.c skb->dev = ieee->dev; dev 101 net/ieee80211/ieee80211_rx.c skb = dev_alloc_skb(ieee->dev->mtu + dev 174 net/ieee80211/ieee80211_rx.c ieee->dev->name); dev 189 net/ieee80211/ieee80211_rx.c hostap_rx(skb2->dev, skb2, rx_stats); dev 204 net/ieee80211/ieee80211_rx.c skb->dev->name, type, stype); dev 208 net/ieee80211/ieee80211_rx.c hostap_rx(skb->dev, skb, rx_stats); dev 213 net/ieee80211/ieee80211_rx.c "received in non-Host AP mode\n", skb->dev->name); dev 231 net/ieee80211/ieee80211_rx.c struct net_device *dev = ieee->dev; dev 245 net/ieee80211/ieee80211_rx.c !compare_ether_addr(hdr->addr1, dev->dev_addr) && dev 246 net/ieee80211/ieee80211_rx.c !compare_ether_addr(hdr->addr3, dev->dev_addr)) { dev 250 net/ieee80211/ieee80211_rx.c !compare_ether_addr(hdr->addr1, dev->dev_addr)) { dev 323 net/ieee80211/ieee80211_rx.c ieee->dev->name, dev 340 net/ieee80211/ieee80211_rx.c struct net_device *dev = ieee->dev; dev 367 net/ieee80211/ieee80211_rx.c printk(KERN_INFO "%s: SKB length < 10\n", dev->name); dev 380 net/ieee80211/ieee80211_rx.c dev->name, skb->len); dev 412 net/ieee80211/ieee80211_rx.c wireless_spy_update(ieee->dev, hdr->addr2, &wstats); dev 485 net/ieee80211/ieee80211_rx.c "from " MAC_FMT "\n", dev->name, dev 535 net/ieee80211/ieee80211_rx.c skb->dev = dev = wds; dev 536 net/ieee80211/ieee80211_rx.c stats = hostap_get_stats(dev); dev 544 net/ieee80211/ieee80211_rx.c skb->dev = dev = ieee->stadev; dev 545 net/ieee80211/ieee80211_rx.c stats = hostap_get_stats(dev); dev 550 net/ieee80211/ieee80211_rx.c dev->last_rx = jiffies; dev 555 net/ieee80211/ieee80211_rx.c switch (hostap_handle_sta_rx(ieee, dev, skb, rx_stats, dev 620 net/ieee80211/ieee80211_rx.c dev->name); dev 742 net/ieee80211/ieee80211_rx.c dev->name); dev 755 net/ieee80211/ieee80211_rx.c "ethertype=0x%04x\n", dev->name, ethertype); dev 805 net/ieee80211/ieee80211_rx.c "multicast frame\n", dev->name); dev 817 net/ieee80211/ieee80211_rx.c skb2->dev = dev; dev 827 net/ieee80211/ieee80211_rx.c skb->protocol = eth_type_trans(skb, dev); dev 903 net/ieee80211/ieee80211_rx.c if (ieee->dev->flags & IFF_PROMISC) dev 906 net/ieee80211/ieee80211_rx.c else if (memcmp(hdr->addr1, ieee->dev->dev_addr, ETH_ALEN) == 0) dev 918 net/ieee80211/ieee80211_rx.c if (ieee->dev->flags & IFF_PROMISC) dev 921 net/ieee80211/ieee80211_rx.c else if (memcmp(hdr->addr1, ieee->dev->dev_addr, ETH_ALEN) == 0) dev 926 net/ieee80211/ieee80211_rx.c if (memcmp(hdr->addr3, ieee->dev->dev_addr, ETH_ALEN)) dev 1371 net/ieee80211/ieee80211_rx.c struct net_device *dev = ieee->dev; dev 1420 net/ieee80211/ieee80211_rx.c ieee->handle_assoc_response(dev, frame, network); dev 1590 net/ieee80211/ieee80211_rx.c struct net_device *dev = ieee->dev; dev 1700 net/ieee80211/ieee80211_rx.c ieee->handle_beacon(dev, beacon, target); dev 1703 net/ieee80211/ieee80211_rx.c ieee->handle_probe_response(dev, beacon, target); dev 1733 net/ieee80211/ieee80211_rx.c ieee->handle_probe_request(ieee->dev, dev 1767 net/ieee80211/ieee80211_rx.c ieee->handle_auth(ieee->dev, dev 1773 net/ieee80211/ieee80211_rx.c ieee->handle_disassoc(ieee->dev, dev 1781 net/ieee80211/ieee80211_rx.c ieee->handle_action(ieee->dev, dev 1792 net/ieee80211/ieee80211_rx.c ieee->dev->name); dev 1794 net/ieee80211/ieee80211_rx.c ieee->handle_reassoc_request(ieee->dev, dev 1805 net/ieee80211/ieee80211_rx.c ieee->dev->name); dev 1807 net/ieee80211/ieee80211_rx.c ieee->handle_assoc_request(ieee->dev); dev 1813 net/ieee80211/ieee80211_rx.c ieee->handle_deauth(ieee->dev, dev 1822 net/ieee80211/ieee80211_rx.c ieee->dev->name, dev 171 net/ieee80211/ieee80211_tx.c ieee->dev->name, frag->len); dev 256 net/ieee80211/ieee80211_tx.c struct ieee80211_device *ieee = netdev_priv(dev); dev 277 net/ieee80211/ieee80211_tx.c if (ieee->is_queue_full && (*ieee->is_queue_full) (dev, priority)) dev 285 net/ieee80211/ieee80211_tx.c printk(KERN_WARNING "%s: No xmit handler.\n", ieee->dev->name); dev 291 net/ieee80211/ieee80211_tx.c ieee->dev->name, skb->len); dev 336 net/ieee80211/ieee80211_tx.c if (ieee->is_qos_active && ieee->is_qos_active(dev, skb)) { dev 431 net/ieee80211/ieee80211_tx.c ieee->dev->name); dev 526 net/ieee80211/ieee80211_tx.c int ret = (*ieee->hard_start_xmit) (txb, dev, priority); dev 540 net/ieee80211/ieee80211_tx.c netif_stop_queue(dev); dev 310 net/ieee80211/ieee80211_wx.c struct net_device *dev = ieee->dev; dev 398 net/ieee80211/ieee80211_wx.c "load module ieee80211_crypt_wep\n", dev->name); dev 466 net/ieee80211/ieee80211_wx.c ieee->set_security(dev, &sec); dev 475 net/ieee80211/ieee80211_wx.c ieee->reset_port && ieee->reset_port(dev)) { dev 476 net/ieee80211/ieee80211_wx.c printk(KERN_DEBUG "%s: reset_port failed\n", dev->name); dev 528 net/ieee80211/ieee80211_wx.c struct net_device *dev = ieee->dev; dev 604 net/ieee80211/ieee80211_wx.c dev->name, ext->alg); dev 616 net/ieee80211/ieee80211_wx.c dev->name, ext->alg); dev 645 net/ieee80211/ieee80211_wx.c IEEE80211_DEBUG_WX("%s: key setting failed\n", dev->name); dev 680 net/ieee80211/ieee80211_wx.c ieee->set_security(ieee->dev, &sec); dev 691 net/ieee80211/ieee80211_wx.c ieee->reset_port && ieee->reset_port(dev)) { dev 692 net/ieee80211/ieee80211_wx.c IEEE80211_DEBUG_WX("%s: reset_port failed\n", dev->name); dev 202 net/ipv4/arp.c switch (dev->type) { dev 212 net/ipv4/arp.c ip_ib_mc_map(addr, dev->broadcast, haddr); dev 216 net/ipv4/arp.c memcpy(haddr, dev->broadcast, dev->addr_len); dev 226 net/ipv4/arp.c return jhash_2words(*(u32 *)pkey, dev->ifindex, arp_tbl.hash_rnd); dev 232 net/ipv4/arp.c struct net_device *dev = neigh->dev; dev 237 net/ipv4/arp.c in_dev = __in_dev_get_rcu(dev); dev 243 net/ipv4/arp.c neigh->type = inet_addr_type(dev_net(dev), addr); dev 250 net/ipv4/arp.c if (!dev->header_ops) { dev 282 net/ipv4/arp.c switch (dev->type) { dev 299 net/ipv4/arp.c arp_mc_map(addr, neigh->ha, dev, 1); dev 300 net/ipv4/arp.c } else if (dev->flags&(IFF_NOARP|IFF_LOOPBACK)) { dev 302 net/ipv4/arp.c memcpy(neigh->ha, dev->dev_addr, dev->addr_len); dev 303 net/ipv4/arp.c } else if (neigh->type == RTN_BROADCAST || dev->flags&IFF_POINTOPOINT) { dev 305 net/ipv4/arp.c memcpy(neigh->ha, dev->broadcast, dev->addr_len); dev 308 net/ipv4/arp.c if (dev->header_ops->cache) dev 331 net/ipv4/arp.c struct net_device *dev = neigh->dev; dev 334 net/ipv4/arp.c struct in_device *in_dev = in_dev_get(dev); dev 342 net/ipv4/arp.c if (skb && inet_addr_type(dev_net(dev), ip_hdr(skb)->saddr) == RTN_LOCAL) dev 349 net/ipv4/arp.c if (inet_addr_type(dev_net(dev), saddr) == RTN_LOCAL) { dev 363 net/ipv4/arp.c saddr = inet_select_addr(dev, target, RT_SCOPE_LINK); dev 377 net/ipv4/arp.c arp_send(ARPOP_REQUEST, ETH_P_ARP, target, dev, saddr, dev 378 net/ipv4/arp.c dst_ha, dev->dev_addr, NULL); dev 424 net/ipv4/arp.c struct net *net = dev_net(dev); dev 428 net/ipv4/arp.c if (rt->u.dst.dev != dev) { dev 452 net/ipv4/arp.c memcpy(haddr, dev->dev_addr, dev->addr_len); dev 455 net/ipv4/arp.c arp_mc_map(paddr, haddr, dev, 1); dev 458 net/ipv4/arp.c memcpy(haddr, dev->broadcast, dev->addr_len); dev 467 net/ipv4/arp.c struct net_device *dev = skb->dev; dev 479 net/ipv4/arp.c if (arp_set_predefined(inet_addr_type(dev_net(dev), paddr), haddr, paddr, dev)) dev 482 net/ipv4/arp.c n = __neigh_lookup(&arp_tbl, &paddr, dev, 1); dev 488 net/ipv4/arp.c memcpy(haddr, n->ha, dev->addr_len); dev 503 net/ipv4/arp.c struct net_device *dev = dst->dev; dev 506 net/ipv4/arp.c if (dev == NULL) dev 510 net/ipv4/arp.c if (dev->flags&(IFF_LOOPBACK|IFF_POINTOPOINT)) dev 514 net/ipv4/arp.c dev->type == ARPHRD_ATM ? clip_tbl_hook : dev 516 net/ipv4/arp.c &arp_tbl, &nexthop, dev); dev 543 net/ipv4/arp.c if ((out_dev = in_dev_get(rt->u.dst.dev)) != NULL) { dev 572 net/ipv4/arp.c skb = alloc_skb(arp_hdr_len(dev) + LL_ALLOCATED_SPACE(dev), GFP_ATOMIC); dev 576 net/ipv4/arp.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 578 net/ipv4/arp.c arp = (struct arphdr *) skb_put(skb, arp_hdr_len(dev)); dev 579 net/ipv4/arp.c skb->dev = dev; dev 582 net/ipv4/arp.c src_hw = dev->dev_addr; dev 584 net/ipv4/arp.c dest_hw = dev->broadcast; dev 589 net/ipv4/arp.c if (dev_hard_header(skb, dev, ptype, dest_hw, src_hw, skb->len) < 0) dev 602 net/ipv4/arp.c switch (dev->type) { dev 604 net/ipv4/arp.c arp->ar_hrd = htons(dev->type); dev 636 net/ipv4/arp.c arp->ar_hln = dev->addr_len; dev 642 net/ipv4/arp.c memcpy(arp_ptr, src_hw, dev->addr_len); dev 643 net/ipv4/arp.c arp_ptr+=dev->addr_len; dev 647 net/ipv4/arp.c memcpy(arp_ptr, target_hw, dev->addr_len); dev 649 net/ipv4/arp.c memset(arp_ptr, 0, dev->addr_len); dev 650 net/ipv4/arp.c arp_ptr+=dev->addr_len; dev 666 net/ipv4/arp.c NF_HOOK(NF_ARP, NF_ARP_OUT, skb, NULL, skb->dev, dev_queue_xmit); dev 683 net/ipv4/arp.c if (dev->flags&IFF_NOARP) dev 686 net/ipv4/arp.c skb = arp_create(type, ptype, dest_ip, dev, src_ip, dev 701 net/ipv4/arp.c struct net_device *dev = skb->dev; dev 702 net/ipv4/arp.c struct in_device *in_dev = in_dev_get(dev); dev 708 net/ipv4/arp.c u16 dev_type = dev->type; dev 711 net/ipv4/arp.c struct net *net = dev_net(dev); dev 769 net/ipv4/arp.c arp_ptr += dev->addr_len; dev 772 net/ipv4/arp.c arp_ptr += dev->addr_len; dev 785 net/ipv4/arp.c sha = dev->broadcast; dev 809 net/ipv4/arp.c arp_send(ARPOP_REPLY, ETH_P_ARP, sip, dev, tip, sha, dev 810 net/ipv4/arp.c dev->dev_addr, sha); dev 815 net/ipv4/arp.c ip_route_input(skb, tip, sip, 0, dev) == 0) { dev 821 net/ipv4/arp.c n = neigh_event_ns(&arp_tbl, sha, &sip, dev); dev 828 net/ipv4/arp.c dont_send |= arp_filter(sip,tip,dev); dev 830 net/ipv4/arp.c arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha); dev 836 net/ipv4/arp.c if (addr_type == RTN_UNICAST && rt->u.dst.dev != dev && dev 837 net/ipv4/arp.c (arp_fwd_proxy(in_dev, rt) || pneigh_lookup(&arp_tbl, net, &tip, dev, 0))) { dev 838 net/ipv4/arp.c n = neigh_event_ns(&arp_tbl, sha, &sip, dev); dev 845 net/ipv4/arp.c arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha); dev 858 net/ipv4/arp.c n = __neigh_lookup(&arp_tbl, &sip, dev, 0); dev 860 net/ipv4/arp.c if (IPV4_DEVCONF_ALL(dev_net(dev), ARP_ACCEPT)) { dev 868 net/ipv4/arp.c n = __neigh_lookup(&arp_tbl, &sip, dev, 1); dev 915 net/ipv4/arp.c if (!pskb_may_pull(skb, arp_hdr_len(dev))) dev 919 net/ipv4/arp.c if (arp->ar_hln != dev->addr_len || dev 920 net/ipv4/arp.c dev->flags & IFF_NOARP || dev 931 net/ipv4/arp.c return NF_HOOK(NF_ARP, NF_ARP_IN, skb, dev, NULL, arp_process); dev 949 net/ipv4/arp.c if (dev == NULL) { dev 953 net/ipv4/arp.c if (__in_dev_get_rtnl(dev)) { dev 954 net/ipv4/arp.c IN_DEV_CONF_SET(__in_dev_get_rtnl(dev), PROXY_ARP, on); dev 968 net/ipv4/arp.c if (!dev && (r->arp_flags & ATF_COM)) { dev 969 net/ipv4/arp.c dev = dev_getbyhwaddr(net, r->arp_ha.sa_family, dev 971 net/ipv4/arp.c if (!dev) dev 975 net/ipv4/arp.c if (pneigh_lookup(&arp_tbl, net, &ip, dev, 1) == NULL) dev 980 net/ipv4/arp.c return arp_req_set_proxy(net, dev, 1); dev 991 net/ipv4/arp.c return arp_req_set_public(net, r, dev); dev 996 net/ipv4/arp.c if (dev == NULL) { dev 1002 net/ipv4/arp.c dev = rt->u.dst.dev; dev 1004 net/ipv4/arp.c if (!dev) dev 1007 net/ipv4/arp.c switch (dev->type) { dev 1023 net/ipv4/arp.c if (r->arp_ha.sa_family != dev->type) dev 1028 net/ipv4/arp.c neigh = __neigh_lookup_errno(&arp_tbl, &ip, dev); dev 1063 net/ipv4/arp.c neigh = neigh_lookup(&arp_tbl, &ip, dev); dev 1066 net/ipv4/arp.c memcpy(r->arp_ha.sa_data, neigh->ha, dev->addr_len); dev 1069 net/ipv4/arp.c r->arp_ha.sa_family = dev->type; dev 1070 net/ipv4/arp.c strlcpy(r->arp_dev, dev->name, sizeof(r->arp_dev)); dev 1084 net/ipv4/arp.c return pneigh_delete(&arp_tbl, net, &ip, dev); dev 1089 net/ipv4/arp.c return arp_req_set_proxy(net, dev, 0); dev 1100 net/ipv4/arp.c return arp_req_delete_public(net, r, dev); dev 1103 net/ipv4/arp.c if (dev == NULL) { dev 1109 net/ipv4/arp.c dev = rt->u.dst.dev; dev 1111 net/ipv4/arp.c if (!dev) dev 1115 net/ipv4/arp.c neigh = neigh_lookup(&arp_tbl, &ip, dev); dev 1134 net/ipv4/arp.c struct net_device *dev = NULL; dev 1162 net/ipv4/arp.c if ((dev = __dev_get_by_name(net, r.arp_dev)) == NULL) dev 1167 net/ipv4/arp.c r.arp_ha.sa_family = dev->type; dev 1169 net/ipv4/arp.c if ((r.arp_flags & ATF_COM) && r.arp_ha.sa_family != dev->type) dev 1178 net/ipv4/arp.c err = arp_req_delete(net, &r, dev); dev 1181 net/ipv4/arp.c err = arp_req_set(net, &r, dev); dev 1184 net/ipv4/arp.c err = arp_req_get(&r, dev); dev 1196 net/ipv4/arp.c struct net_device *dev = ptr; dev 1200 net/ipv4/arp.c neigh_changeaddr(&arp_tbl, dev); dev 1201 net/ipv4/arp.c rt_cache_flush(dev_net(dev), 0); dev 1220 net/ipv4/arp.c neigh_ifdown(&arp_tbl, dev); dev 1292 net/ipv4/arp.c struct net_device *dev = n->dev; dev 1293 net/ipv4/arp.c int hatype = dev->type; dev 1302 net/ipv4/arp.c for (k = 0, j = 0; k < HBUFFERLEN - 3 && j < dev->addr_len; j++) { dev 1313 net/ipv4/arp.c tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); dev 1320 net/ipv4/arp.c struct net_device *dev = n->dev; dev 1321 net/ipv4/arp.c int hatype = dev ? dev->type : 0; dev 1327 net/ipv4/arp.c dev ? dev->name : "*"); dev 1682 net/ipv4/cipso_ipv4.c if (!(skb->dev->flags & IFF_LOOPBACK)) { dev 139 net/ipv4/devinet.c struct net_device *dev = idev->dev; dev 145 net/ipv4/devinet.c idev, dev ? dev->name : "NIL"); dev 147 net/ipv4/devinet.c dev_put(dev); dev 165 net/ipv4/devinet.c memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, dev 168 net/ipv4/devinet.c in_dev->dev = dev; dev 169 net/ipv4/devinet.c if ((in_dev->arp_parms = neigh_parms_alloc(dev, &arp_tbl)) == NULL) dev 172 net/ipv4/devinet.c dev_disable_lro(dev); dev 174 net/ipv4/devinet.c dev_hold(dev); dev 180 net/ipv4/devinet.c if (dev->flags & IFF_UP) dev 184 net/ipv4/devinet.c rcu_assign_pointer(dev->ip_ptr, in_dev); dev 202 net/ipv4/devinet.c struct net_device *dev; dev 206 net/ipv4/devinet.c dev = in_dev->dev; dev 217 net/ipv4/devinet.c dev->ip_ptr = NULL; dev 221 net/ipv4/devinet.c arp_ifdown(dev); dev 392 net/ipv4/devinet.c struct in_device *in_dev = __in_dev_get_rtnl(dev); dev 413 net/ipv4/devinet.c struct net_device *dev; dev 416 net/ipv4/devinet.c dev = __dev_get_by_index(net, ifindex); dev 417 net/ipv4/devinet.c if (dev) dev 418 net/ipv4/devinet.c in_dev = in_dev_get(dev); dev 489 net/ipv4/devinet.c struct net_device *dev; dev 502 net/ipv4/devinet.c dev = __dev_get_by_index(net, ifm->ifa_index); dev 504 net/ipv4/devinet.c if (dev == NULL) dev 507 net/ipv4/devinet.c in_dev = __in_dev_get_rtnl(dev); dev 541 net/ipv4/devinet.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); dev 596 net/ipv4/devinet.c struct net_device *dev; dev 658 net/ipv4/devinet.c if ((dev = __dev_get_by_name(net, ifr.ifr_name)) == NULL) dev 664 net/ipv4/devinet.c if ((in_dev = __in_dev_get_rtnl(dev)) != NULL) { dev 722 net/ipv4/devinet.c ret = dev_change_flags(dev, ifr.ifr_flags); dev 737 net/ipv4/devinet.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); dev 749 net/ipv4/devinet.c if (!(dev->flags & IFF_POINTOPOINT)) { dev 752 net/ipv4/devinet.c if ((dev->flags & IFF_BROADCAST) && dev 760 net/ipv4/devinet.c ret = inet_set_ifa(dev, ifa); dev 806 net/ipv4/devinet.c if ((dev->flags & IFF_BROADCAST) && dev 829 net/ipv4/devinet.c struct in_device *in_dev = __in_dev_get_rtnl(dev); dev 848 net/ipv4/devinet.c strcpy(ifr.ifr_name, dev->name); dev 870 net/ipv4/devinet.c struct net *net = dev_net(dev); dev 873 net/ipv4/devinet.c in_dev = __in_dev_get_rcu(dev); dev 899 net/ipv4/devinet.c for_each_netdev(net, dev) { dev 900 net/ipv4/devinet.c if ((in_dev = __in_dev_get_rcu(dev)) == NULL) dev 966 net/ipv4/devinet.c struct net_device *dev; dev 972 net/ipv4/devinet.c net = dev_net(in_dev->dev); dev 975 net/ipv4/devinet.c for_each_netdev(net, dev) { dev 976 net/ipv4/devinet.c if ((in_dev = __in_dev_get_rcu(dev))) { dev 1014 net/ipv4/devinet.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); dev 1022 net/ipv4/devinet.c if (strlen(dot) + strlen(dev->name) < IFNAMSIZ) { dev 1042 net/ipv4/devinet.c struct net_device *dev = ptr; dev 1043 net/ipv4/devinet.c struct in_device *in_dev = __in_dev_get_rtnl(dev); dev 1049 net/ipv4/devinet.c in_dev = inetdev_init(dev); dev 1052 net/ipv4/devinet.c if (dev->flags & IFF_LOOPBACK) { dev 1058 net/ipv4/devinet.c if (inetdev_valid_mtu(dev->mtu)) dev 1059 net/ipv4/devinet.c in_dev = inetdev_init(dev); dev 1067 net/ipv4/devinet.c dev->ip_ptr = NULL; dev 1070 net/ipv4/devinet.c if (!inetdev_valid_mtu(dev->mtu)) dev 1072 net/ipv4/devinet.c if (dev->flags & IFF_LOOPBACK) { dev 1082 net/ipv4/devinet.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); dev 1092 net/ipv4/devinet.c if (inetdev_valid_mtu(dev->mtu)) dev 1102 net/ipv4/devinet.c inetdev_changename(dev, in_dev); dev 1140 net/ipv4/devinet.c ifm->ifa_index = ifa->ifa_dev->dev->ifindex; dev 1165 net/ipv4/devinet.c struct net_device *dev; dev 1172 net/ipv4/devinet.c for_each_netdev(net, dev) { dev 1177 net/ipv4/devinet.c if ((in_dev = __in_dev_get_rtnl(dev)) == NULL) dev 1208 net/ipv4/devinet.c net = dev_net(ifa->ifa_dev->dev); dev 1230 net/ipv4/devinet.c struct net_device *dev; dev 1233 net/ipv4/devinet.c for_each_netdev(net, dev) { dev 1236 net/ipv4/devinet.c in_dev = __in_dev_get_rcu(dev); dev 1246 net/ipv4/devinet.c struct net_device *dev; dev 1253 net/ipv4/devinet.c for_each_netdev(net, dev) { dev 1256 net/ipv4/devinet.c dev_disable_lro(dev); dev 1258 net/ipv4/devinet.c in_dev = __in_dev_get_rcu(dev); dev 1357 net/ipv4/devinet.c dev_disable_lro(idev->dev); dev 1531 net/ipv4/devinet.c neigh_sysctl_register(idev->dev, idev->arp_parms, NET_IPV4, dev 1533 net/ipv4/devinet.c __devinet_sysctl_register(dev_net(idev->dev), idev->dev->name, dev 1534 net/ipv4/devinet.c idev->dev->ifindex, &idev->cnf); dev 158 net/ipv4/fib_frontend.c struct net_device *dev = NULL; dev 170 net/ipv4/fib_frontend.c dev = FIB_RES_DEV(res); dev 172 net/ipv4/fib_frontend.c if (dev) dev 173 net/ipv4/fib_frontend.c dev_hold(dev); dev 176 net/ipv4/fib_frontend.c return dev; dev 205 net/ipv4/fib_frontend.c if (!dev || dev == res.fi->fib_dev) dev 221 net/ipv4/fib_frontend.c return __inet_dev_addr_type(net, dev, addr); dev 248 net/ipv4/fib_frontend.c in_dev = __in_dev_get_rcu(dev); dev 258 net/ipv4/fib_frontend.c net = dev_net(dev); dev 266 net/ipv4/fib_frontend.c if (FIB_RES_DEV(res) == dev || res.fi->fib_nhs > 1) dev 268 net/ipv4/fib_frontend.c if (FIB_RES_DEV(res) == dev) dev 280 net/ipv4/fib_frontend.c fl.oif = dev->ifindex; dev 295 net/ipv4/fib_frontend.c *spec_dst = inet_select_addr(dev, 0, RT_SCOPE_UNIVERSE); dev 380 net/ipv4/fib_frontend.c struct net_device *dev; dev 390 net/ipv4/fib_frontend.c dev = __dev_get_by_name(net, devname); dev 391 net/ipv4/fib_frontend.c if (!dev) dev 393 net/ipv4/fib_frontend.c cfg->fc_oif = dev->ifindex; dev 396 net/ipv4/fib_frontend.c struct in_device *in_dev = __in_dev_get_rtnl(dev); dev 674 net/ipv4/fib_frontend.c struct net *net = dev_net(ifa->ifa_dev->dev); dev 682 net/ipv4/fib_frontend.c .fc_oif = ifa->ifa_dev->dev->ifindex, dev 713 net/ipv4/fib_frontend.c struct net_device *dev = in_dev->dev; dev 729 net/ipv4/fib_frontend.c if (!(dev->flags&IFF_UP)) dev 738 net/ipv4/fib_frontend.c fib_magic(RTM_NEWROUTE, dev->flags&IFF_LOOPBACK ? RTN_LOCAL : dev 752 net/ipv4/fib_frontend.c struct net_device *dev = in_dev->dev; dev 764 net/ipv4/fib_frontend.c fib_magic(RTM_DELROUTE, dev->flags&IFF_LOOPBACK ? RTN_LOCAL : dev 801 net/ipv4/fib_frontend.c if (inet_addr_type(dev_net(dev), ifa->ifa_local) != RTN_LOCAL) { dev 808 net/ipv4/fib_frontend.c if (fib_sync_down_addr(dev_net(dev), ifa->ifa_local)) dev 809 net/ipv4/fib_frontend.c fib_flush(dev_net(dev)); dev 898 net/ipv4/fib_frontend.c if (fib_sync_down_dev(dev, force)) dev 899 net/ipv4/fib_frontend.c fib_flush(dev_net(dev)); dev 900 net/ipv4/fib_frontend.c rt_cache_flush(dev_net(dev), 0); dev 901 net/ipv4/fib_frontend.c arp_ifdown(dev); dev 907 net/ipv4/fib_frontend.c struct net_device *dev = ifa->ifa_dev->dev; dev 913 net/ipv4/fib_frontend.c fib_sync_up(dev); dev 915 net/ipv4/fib_frontend.c rt_cache_flush(dev_net(dev), -1); dev 923 net/ipv4/fib_frontend.c fib_disable_ip(dev, 1); dev 925 net/ipv4/fib_frontend.c rt_cache_flush(dev_net(dev), -1); dev 934 net/ipv4/fib_frontend.c struct net_device *dev = ptr; dev 935 net/ipv4/fib_frontend.c struct in_device *in_dev = __in_dev_get_rtnl(dev); dev 938 net/ipv4/fib_frontend.c fib_disable_ip(dev, 2); dev 951 net/ipv4/fib_frontend.c fib_sync_up(dev); dev 953 net/ipv4/fib_frontend.c rt_cache_flush(dev_net(dev), -1); dev 956 net/ipv4/fib_frontend.c fib_disable_ip(dev, 0); dev 960 net/ipv4/fib_frontend.c rt_cache_flush(dev_net(dev), 0); dev 261 net/ipv4/fib_semantics.c hash = fib_devindex_hashfn(dev->ifindex); dev 264 net/ipv4/fib_semantics.c if (nh->nh_dev == dev && dev 534 net/ipv4/fib_semantics.c struct net_device *dev; dev 540 net/ipv4/fib_semantics.c if ((dev = __dev_get_by_index(net, nh->nh_oif)) == NULL) dev 542 net/ipv4/fib_semantics.c if (!(dev->flags&IFF_UP)) dev 544 net/ipv4/fib_semantics.c nh->nh_dev = dev; dev 545 net/ipv4/fib_semantics.c dev_hold(dev); dev 590 net/ipv4/fib_semantics.c if (!(in_dev->dev->flags&IFF_UP)) { dev 594 net/ipv4/fib_semantics.c nh->nh_dev = in_dev->dev; dev 1065 net/ipv4/fib_semantics.c unsigned int hash = fib_devindex_hashfn(dev->ifindex); dev 1078 net/ipv4/fib_semantics.c if (nh->nh_dev != dev || fi == prev_fi) dev 1085 net/ipv4/fib_semantics.c else if (nh->nh_dev == dev && dev 1097 net/ipv4/fib_semantics.c if (force > 1 && nh->nh_dev == dev) { dev 1128 net/ipv4/fib_semantics.c if (!(dev->flags&IFF_UP)) dev 1132 net/ipv4/fib_semantics.c hash = fib_devindex_hashfn(dev->ifindex); dev 1141 net/ipv4/fib_semantics.c if (nh->nh_dev != dev || fi == prev_fi) dev 1153 net/ipv4/fib_semantics.c if (nh->nh_dev != dev || !__in_dev_get_rtnl(dev)) dev 284 net/ipv4/icmp.c if (dst->dev && (dst->dev->flags&IFF_LOOPBACK)) dev 329 net/ipv4/icmp.c sk = icmp_sk(dev_net(rt->u.dst.dev)); dev 360 net/ipv4/icmp.c struct net *net = dev_net(rt->u.dst.dev); dev 427 net/ipv4/icmp.c net = dev_net(rt->u.dst.dev); dev 501 net/ipv4/icmp.c struct net_device *dev = NULL; dev 505 net/ipv4/icmp.c dev = dev_get_by_index(net, rt->fl.iif); dev 507 net/ipv4/icmp.c if (dev) { dev 508 net/ipv4/icmp.c saddr = inet_select_addr(dev, 0, RT_SCOPE_LINK); dev 509 net/ipv4/icmp.c dev_put(dev); dev 594 net/ipv4/icmp.c RT_TOS(tos), rt2->u.dst.dev); dev 660 net/ipv4/icmp.c net = dev_net(skb->dst->dev); dev 693 net/ipv4/icmp.c skb->dev); dev 738 net/ipv4/icmp.c skb->dev->name); dev 800 net/ipv4/icmp.c iph->saddr, skb->dev); dev 806 net/ipv4/icmp.c ICMP_INC_STATS_BH(dev_net(skb->dev), ICMP_MIB_INERRORS); dev 826 net/ipv4/icmp.c net = dev_net(skb->dst->dev); dev 877 net/ipv4/icmp.c ICMP_INC_STATS_BH(dev_net(skb->dst->dev), ICMP_MIB_INERRORS); dev 931 net/ipv4/icmp.c struct net_device *dev = skb->dev; dev 938 net/ipv4/icmp.c in_dev = in_dev_get(dev); dev 957 net/ipv4/icmp.c NIPQUAD(*mp), dev->name, NIPQUAD(rt->rt_src)); dev 976 net/ipv4/icmp.c struct net *net = dev_net(rt->u.dst.dev); dev 131 net/ipv4/igmp.c (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \ dev 136 net/ipv4/igmp.c (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \ dev 292 net/ipv4/igmp.c struct net *net = dev_net(dev); dev 294 net/ipv4/igmp.c skb = alloc_skb(size + LL_ALLOCATED_SPACE(dev), GFP_ATOMIC); dev 299 net/ipv4/igmp.c struct flowi fl = { .oif = dev->ifindex, dev 315 net/ipv4/igmp.c skb->dev = dev; dev 317 net/ipv4/igmp.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 367 net/ipv4/igmp.c struct net_device *dev = pmc->interface->dev; dev 372 net/ipv4/igmp.c skb = igmpv3_newpack(dev, dev->mtu); dev 386 net/ipv4/igmp.c #define AVAILABLE(skb) ((skb) ? ((skb)->dev ? (skb)->dev->mtu - (skb)->len : \ dev 392 net/ipv4/igmp.c struct net_device *dev = pmc->interface->dev; dev 421 net/ipv4/igmp.c skb = igmpv3_newpack(dev, dev->mtu); dev 448 net/ipv4/igmp.c skb = igmpv3_newpack(dev, dev->mtu); dev 632 net/ipv4/igmp.c struct net_device *dev = in_dev->dev; dev 633 net/ipv4/igmp.c struct net *net = dev_net(dev); dev 645 net/ipv4/igmp.c struct flowi fl = { .oif = dev->ifindex, dev 656 net/ipv4/igmp.c skb=alloc_skb(IGMP_SIZE+LL_ALLOCATED_SPACE(dev), GFP_ATOMIC); dev 664 net/ipv4/igmp.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 922 net/ipv4/igmp.c struct in_device *in_dev = in_dev_get(skb->dev); dev 990 net/ipv4/igmp.c struct net_device *dev = in_dev->dev; dev 999 net/ipv4/igmp.c if (arp_mc_map(addr, buf, dev, 0) == 0) dev 1000 net/ipv4/igmp.c dev_mc_add(dev,buf,dev->addr_len,0); dev 1010 net/ipv4/igmp.c struct net_device *dev = in_dev->dev; dev 1012 net/ipv4/igmp.c if (arp_mc_map(addr, buf, dev, 0) == 0) dev 1013 net/ipv4/igmp.c dev_mc_delete(dev,buf,dev->addr_len,0); dev 1390 net/ipv4/igmp.c struct net_device *dev = NULL; dev 1400 net/ipv4/igmp.c dev = ip_dev_find(net, imr->imr_address.s_addr); dev 1401 net/ipv4/igmp.c if (!dev) dev 1403 net/ipv4/igmp.c dev_put(dev); dev 1406 net/ipv4/igmp.c if (!dev && !ip_route_output_key(net, &rt, &fl)) { dev 1407 net/ipv4/igmp.c dev = rt->u.dst.dev; dev 1410 net/ipv4/igmp.c if (dev) { dev 1411 net/ipv4/igmp.c imr->imr_ifindex = dev->ifindex; dev 1412 net/ipv4/igmp.c idev = __in_dev_get_rtnl(dev); dev 2278 net/ipv4/igmp.c struct net_device *dev; dev 2290 net/ipv4/igmp.c for_each_netdev(&init_net, state->dev) { dev 2292 net/ipv4/igmp.c in_dev = in_dev_get(state->dev); dev 2316 net/ipv4/igmp.c state->dev = next_net_device(state->dev); dev 2317 net/ipv4/igmp.c if (!state->dev) { dev 2321 net/ipv4/igmp.c state->in_dev = in_dev_get(state->dev); dev 2366 net/ipv4/igmp.c state->dev = NULL; dev 2389 net/ipv4/igmp.c state->dev->ifindex, state->dev->name, state->in_dev->mc_count, querier); dev 2424 net/ipv4/igmp.c struct net_device *dev; dev 2439 net/ipv4/igmp.c for_each_netdev(&init_net, state->dev) { dev 2441 net/ipv4/igmp.c idev = in_dev_get(state->dev); dev 2475 net/ipv4/igmp.c state->dev = next_net_device(state->dev); dev 2476 net/ipv4/igmp.c if (!state->dev) { dev 2480 net/ipv4/igmp.c state->idev = in_dev_get(state->dev); dev 2533 net/ipv4/igmp.c state->dev = NULL; dev 2552 net/ipv4/igmp.c state->dev->ifindex, state->dev->name, dev 378 net/ipv4/inet_lro.c lro_desc->parent->len > (0xFFFF - lro_mgr->dev->mtu)) dev 403 net/ipv4/inet_lro.c skb = netdev_alloc_skb(lro_mgr->dev, hlen + lro_mgr->frag_align_pad); dev 429 net/ipv4/inet_lro.c skb->protocol = eth_type_trans(skb, lro_mgr->dev); dev 498 net/ipv4/inet_lro.c lro_desc->parent->len > (0xFFFF - lro_mgr->dev->mtu)) dev 45 net/ipv4/ip_forward.c IP_INC_STATS_BH(dev_net(skb->dst->dev), IPSTATS_MIB_OUTFORWDATAGRAMS); dev 91 net/ipv4/ip_forward.c IP_INC_STATS(dev_net(rt->u.dst.dev), IPSTATS_MIB_FRAGFAILS); dev 98 net/ipv4/ip_forward.c if (skb_cow(skb, LL_RESERVED_SPACE(rt->u.dst.dev)+rt->u.dst.header_len)) dev 114 net/ipv4/ip_forward.c return NF_HOOK(PF_INET, NF_INET_FORWARD, skb, skb->dev, rt->u.dst.dev, dev 126 net/ipv4/ip_forward.c IP_INC_STATS_BH(dev_net(skb->dst->dev), IPSTATS_MIB_INHDRERRORS); dev 209 net/ipv4/ip_fragment.c if ((head->dev = dev_get_by_index(net, qp->iif)) != NULL) { dev 211 net/ipv4/ip_fragment.c dev_put(head->dev); dev 302 net/ipv4/ip_fragment.c struct net_device *dev; dev 435 net/ipv4/ip_fragment.c dev = skb->dev; dev 436 net/ipv4/ip_fragment.c if (dev) { dev 437 net/ipv4/ip_fragment.c qp->iif = dev->ifindex; dev 438 net/ipv4/ip_fragment.c skb->dev = NULL; dev 448 net/ipv4/ip_fragment.c return ip_frag_reasm(qp, prev, dev); dev 545 net/ipv4/ip_fragment.c head->dev = dev; dev 551 net/ipv4/ip_fragment.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_REASMOKS); dev 566 net/ipv4/ip_fragment.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_REASMFAILS); dev 576 net/ipv4/ip_fragment.c net = skb->dev ? dev_net(skb->dev) : dev_net(skb->dst->dev); dev 183 net/ipv4/ip_gre.c if (t->parms.i_key == key && t->dev->flags & IFF_UP) { dev 184 net/ipv4/ip_gre.c if (t->dev->type == dev_type) dev 186 net/ipv4/ip_gre.c if (t->dev->type == ARPHRD_IPGRE && !t2) dev 194 net/ipv4/ip_gre.c if (t->parms.i_key == key && t->dev->flags & IFF_UP) { dev 195 net/ipv4/ip_gre.c if (t->dev->type == dev_type) dev 197 net/ipv4/ip_gre.c if (t->dev->type == ARPHRD_IPGRE && !t2) dev 207 net/ipv4/ip_gre.c if (t->parms.i_key == key && t->dev->flags & IFF_UP) { dev 208 net/ipv4/ip_gre.c if (t->dev->type == dev_type) dev 210 net/ipv4/ip_gre.c if (t->dev->type == ARPHRD_IPGRE && !t2) dev 217 net/ipv4/ip_gre.c if (t->parms.i_key == key && t->dev->flags & IFF_UP) { dev 218 net/ipv4/ip_gre.c if (t->dev->type == dev_type) dev 220 net/ipv4/ip_gre.c if (t->dev->type == ARPHRD_IPGRE && !t2) dev 296 net/ipv4/ip_gre.c type == t->dev->type) dev 306 net/ipv4/ip_gre.c struct net_device *dev; dev 319 net/ipv4/ip_gre.c dev = alloc_netdev(sizeof(*t), name, ipgre_tunnel_setup); dev 320 net/ipv4/ip_gre.c if (!dev) dev 323 net/ipv4/ip_gre.c dev_net_set(dev, net); dev 326 net/ipv4/ip_gre.c if (dev_alloc_name(dev, name) < 0) dev 330 net/ipv4/ip_gre.c nt = netdev_priv(dev); dev 332 net/ipv4/ip_gre.c dev->rtnl_link_ops = &ipgre_link_ops; dev 334 net/ipv4/ip_gre.c dev->mtu = ipgre_tunnel_bind_dev(dev); dev 336 net/ipv4/ip_gre.c if (register_netdevice(dev) < 0) dev 339 net/ipv4/ip_gre.c dev_hold(dev); dev 344 net/ipv4/ip_gre.c free_netdev(dev); dev 350 net/ipv4/ip_gre.c struct net *net = dev_net(dev); dev 353 net/ipv4/ip_gre.c ipgre_tunnel_unlink(ign, netdev_priv(dev)); dev 354 net/ipv4/ip_gre.c dev_put(dev); dev 426 net/ipv4/ip_gre.c t = ipgre_tunnel_lookup(dev_net(skb->dev), iph->daddr, iph->saddr, dev 523 net/ipv4/ip_gre.c if ((tunnel = ipgre_tunnel_lookup(dev_net(skb->dev), dev 526 net/ipv4/ip_gre.c struct net_device_stats *stats = &tunnel->dev->stats; dev 574 net/ipv4/ip_gre.c if (tunnel->dev->type == ARPHRD_ETHER) { dev 582 net/ipv4/ip_gre.c skb->protocol = eth_type_trans(skb, tunnel->dev); dev 588 net/ipv4/ip_gre.c skb->dev = tunnel->dev; dev 611 net/ipv4/ip_gre.c struct ip_tunnel *tunnel = netdev_priv(dev); dev 612 net/ipv4/ip_gre.c struct net_device_stats *stats = &tunnel->dev->stats; dev 630 net/ipv4/ip_gre.c if (dev->type == ARPHRD_ETHER) dev 633 net/ipv4/ip_gre.c if (dev->header_ops && dev->type == ARPHRD_IPGRE) { dev 695 net/ipv4/ip_gre.c if (ip_route_output_key(dev_net(dev), &rt, &fl)) { dev 700 net/ipv4/ip_gre.c tdev = rt->u.dst.dev; dev 702 net/ipv4/ip_gre.c if (tdev == dev) { dev 710 net/ipv4/ip_gre.c mtu = dst_mtu(&rt->u.dst) - dev->hard_header_len - tunnel->hlen; dev 712 net/ipv4/ip_gre.c mtu = skb->dst ? dst_mtu(skb->dst) : dev->mtu; dev 741 net/ipv4/ip_gre.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, dev); dev 810 net/ipv4/ip_gre.c ((__be16 *)(iph + 1))[1] = (dev->type == ARPHRD_ETHER) ? dev 856 net/ipv4/ip_gre.c tunnel = netdev_priv(dev); dev 869 net/ipv4/ip_gre.c if (!ip_route_output_key(dev_net(dev), &rt, &fl)) { dev 870 net/ipv4/ip_gre.c tdev = rt->u.dst.dev; dev 874 net/ipv4/ip_gre.c if (dev->type != ARPHRD_ETHER) dev 875 net/ipv4/ip_gre.c dev->flags |= IFF_POINTOPOINT; dev 879 net/ipv4/ip_gre.c tdev = __dev_get_by_index(dev_net(dev), tunnel->parms.link); dev 885 net/ipv4/ip_gre.c dev->iflink = tunnel->parms.link; dev 896 net/ipv4/ip_gre.c dev->needed_headroom = addend + hlen; dev 897 net/ipv4/ip_gre.c mtu -= dev->hard_header_len - addend; dev 913 net/ipv4/ip_gre.c struct net *net = dev_net(dev); dev 919 net/ipv4/ip_gre.c if (dev == ign->fb_tunnel_dev) { dev 927 net/ipv4/ip_gre.c t = netdev_priv(dev); dev 958 net/ipv4/ip_gre.c if (dev != ign->fb_tunnel_dev && cmd == SIOCCHGTUNNEL) { dev 960 net/ipv4/ip_gre.c if (t->dev != dev) { dev 967 net/ipv4/ip_gre.c t = netdev_priv(dev); dev 974 net/ipv4/ip_gre.c if ((dev->flags^nflags)&(IFF_POINTOPOINT|IFF_BROADCAST)) { dev 983 net/ipv4/ip_gre.c memcpy(dev->dev_addr, &p.iph.saddr, 4); dev 984 net/ipv4/ip_gre.c memcpy(dev->broadcast, &p.iph.daddr, 4); dev 986 net/ipv4/ip_gre.c netdev_state_change(dev); dev 998 net/ipv4/ip_gre.c dev->mtu = ipgre_tunnel_bind_dev(dev); dev 999 net/ipv4/ip_gre.c netdev_state_change(dev); dev 1013 net/ipv4/ip_gre.c if (dev == ign->fb_tunnel_dev) { dev 1023 net/ipv4/ip_gre.c dev = t->dev; dev 1025 net/ipv4/ip_gre.c unregister_netdevice(dev); dev 1039 net/ipv4/ip_gre.c struct ip_tunnel *tunnel = netdev_priv(dev); dev 1041 net/ipv4/ip_gre.c new_mtu > 0xFFF8 - dev->hard_header_len - tunnel->hlen) dev 1043 net/ipv4/ip_gre.c dev->mtu = new_mtu; dev 1080 net/ipv4/ip_gre.c struct ip_tunnel *t = netdev_priv(dev); dev 1120 net/ipv4/ip_gre.c struct ip_tunnel *t = netdev_priv(dev); dev 1130 net/ipv4/ip_gre.c if (ip_route_output_key(dev_net(dev), &rt, &fl)) dev 1132 net/ipv4/ip_gre.c dev = rt->u.dst.dev; dev 1134 net/ipv4/ip_gre.c if (__in_dev_get_rtnl(dev) == NULL) dev 1136 net/ipv4/ip_gre.c t->mlink = dev->ifindex; dev 1137 net/ipv4/ip_gre.c ip_mc_inc_group(__in_dev_get_rtnl(dev), t->parms.iph.daddr); dev 1144 net/ipv4/ip_gre.c struct ip_tunnel *t = netdev_priv(dev); dev 1147 net/ipv4/ip_gre.c in_dev = inetdev_by_index(dev_net(dev), t->mlink); dev 1160 net/ipv4/ip_gre.c dev->init = ipgre_tunnel_init; dev 1161 net/ipv4/ip_gre.c dev->uninit = ipgre_tunnel_uninit; dev 1162 net/ipv4/ip_gre.c dev->destructor = free_netdev; dev 1163 net/ipv4/ip_gre.c dev->hard_start_xmit = ipgre_tunnel_xmit; dev 1164 net/ipv4/ip_gre.c dev->do_ioctl = ipgre_tunnel_ioctl; dev 1165 net/ipv4/ip_gre.c dev->change_mtu = ipgre_tunnel_change_mtu; dev 1167 net/ipv4/ip_gre.c dev->type = ARPHRD_IPGRE; dev 1168 net/ipv4/ip_gre.c dev->needed_headroom = LL_MAX_HEADER + sizeof(struct iphdr) + 4; dev 1169 net/ipv4/ip_gre.c dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr) - 4; dev 1170 net/ipv4/ip_gre.c dev->flags = IFF_NOARP; dev 1171 net/ipv4/ip_gre.c dev->iflink = 0; dev 1172 net/ipv4/ip_gre.c dev->addr_len = 4; dev 1173 net/ipv4/ip_gre.c dev->features |= NETIF_F_NETNS_LOCAL; dev 1181 net/ipv4/ip_gre.c tunnel = netdev_priv(dev); dev 1184 net/ipv4/ip_gre.c tunnel->dev = dev; dev 1185 net/ipv4/ip_gre.c strcpy(tunnel->parms.name, dev->name); dev 1187 net/ipv4/ip_gre.c memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4); dev 1188 net/ipv4/ip_gre.c memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4); dev 1195 net/ipv4/ip_gre.c dev->flags = IFF_BROADCAST; dev 1196 net/ipv4/ip_gre.c dev->header_ops = &ipgre_header_ops; dev 1197 net/ipv4/ip_gre.c dev->open = ipgre_open; dev 1198 net/ipv4/ip_gre.c dev->stop = ipgre_close; dev 1202 net/ipv4/ip_gre.c dev->header_ops = &ipgre_header_ops; dev 1209 net/ipv4/ip_gre.c struct ip_tunnel *tunnel = netdev_priv(dev); dev 1211 net/ipv4/ip_gre.c struct ipgre_net *ign = net_generic(dev_net(dev), ipgre_net_id); dev 1213 net/ipv4/ip_gre.c tunnel->dev = dev; dev 1214 net/ipv4/ip_gre.c strcpy(tunnel->parms.name, dev->name); dev 1221 net/ipv4/ip_gre.c dev_hold(dev); dev 1242 net/ipv4/ip_gre.c unregister_netdevice(t->dev); dev 1390 net/ipv4/ip_gre.c tunnel = netdev_priv(dev); dev 1392 net/ipv4/ip_gre.c tunnel->dev = dev; dev 1393 net/ipv4/ip_gre.c strcpy(tunnel->parms.name, dev->name); dev 1395 net/ipv4/ip_gre.c ipgre_tunnel_bind_dev(dev); dev 1403 net/ipv4/ip_gre.c ether_setup(dev); dev 1405 net/ipv4/ip_gre.c dev->init = ipgre_tap_init; dev 1406 net/ipv4/ip_gre.c dev->uninit = ipgre_tunnel_uninit; dev 1407 net/ipv4/ip_gre.c dev->destructor = free_netdev; dev 1408 net/ipv4/ip_gre.c dev->hard_start_xmit = ipgre_tunnel_xmit; dev 1409 net/ipv4/ip_gre.c dev->change_mtu = ipgre_tunnel_change_mtu; dev 1411 net/ipv4/ip_gre.c dev->iflink = 0; dev 1412 net/ipv4/ip_gre.c dev->features |= NETIF_F_NETNS_LOCAL; dev 1419 net/ipv4/ip_gre.c struct net *net = dev_net(dev); dev 1424 net/ipv4/ip_gre.c nt = netdev_priv(dev); dev 1427 net/ipv4/ip_gre.c if (ipgre_tunnel_find(net, &nt->parms, dev->type)) dev 1430 net/ipv4/ip_gre.c if (dev->type == ARPHRD_ETHER && !tb[IFLA_ADDRESS]) dev 1431 net/ipv4/ip_gre.c random_ether_addr(dev->dev_addr); dev 1433 net/ipv4/ip_gre.c mtu = ipgre_tunnel_bind_dev(dev); dev 1435 net/ipv4/ip_gre.c dev->mtu = mtu; dev 1437 net/ipv4/ip_gre.c err = register_netdevice(dev); dev 1441 net/ipv4/ip_gre.c dev_hold(dev); dev 1452 net/ipv4/ip_gre.c struct net *net = dev_net(dev); dev 1457 net/ipv4/ip_gre.c if (dev == ign->fb_tunnel_dev) dev 1460 net/ipv4/ip_gre.c nt = netdev_priv(dev); dev 1466 net/ipv4/ip_gre.c if (t->dev != dev) dev 1478 net/ipv4/ip_gre.c if ((dev->flags ^ nflags) & dev 1486 net/ipv4/ip_gre.c memcpy(dev->dev_addr, &p.iph.saddr, 4); dev 1487 net/ipv4/ip_gre.c memcpy(dev->broadcast, &p.iph.daddr, 4); dev 1489 net/ipv4/ip_gre.c netdev_state_change(dev); dev 1499 net/ipv4/ip_gre.c mtu = ipgre_tunnel_bind_dev(dev); dev 1501 net/ipv4/ip_gre.c dev->mtu = mtu; dev 1502 net/ipv4/ip_gre.c netdev_state_change(dev); dev 1536 net/ipv4/ip_gre.c struct ip_tunnel *t = netdev_priv(dev); dev 155 net/ipv4/ip_input.c struct net_device *dev = skb->dev; dev 166 net/ipv4/ip_input.c sk->sk_bound_dev_if == dev->ifindex) && dev 167 net/ipv4/ip_input.c sock_net(sk) == dev_net(dev)) { dev 194 net/ipv4/ip_input.c struct net *net = dev_net(skb->dev); dev 260 net/ipv4/ip_input.c return NF_HOOK(PF_INET, NF_INET_LOCAL_IN, skb, skb->dev, NULL, dev 268 net/ipv4/ip_input.c struct net_device *dev = skb->dev; dev 278 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INDISCARDS); dev 286 net/ipv4/ip_input.c if (ip_options_compile(dev_net(dev), opt, skb)) { dev 287 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INHDRERRORS); dev 292 net/ipv4/ip_input.c struct in_device *in_dev = in_dev_get(dev); dev 328 net/ipv4/ip_input.c skb->dev); dev 331 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(skb->dev), dev 334 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(skb->dev), dev 356 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(rt->u.dst.dev), IPSTATS_MIB_INMCASTPKTS); dev 358 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(rt->u.dst.dev), IPSTATS_MIB_INBCASTPKTS); dev 381 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INRECEIVES); dev 384 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INDISCARDS); dev 417 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INTRUNCATEDPKTS); dev 427 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INDISCARDS); dev 434 net/ipv4/ip_input.c return NF_HOOK(PF_INET, NF_INET_PRE_ROUTING, skb, dev, NULL, dev 438 net/ipv4/ip_input.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_INHDRERRORS); dev 146 net/ipv4/ip_options.c if (inet_addr_type(dev_net(skb->dst->dev), addr) != RTN_LOCAL) { dev 628 net/ipv4/ip_options.c err = ip_route_input(skb, nexthop, iph->saddr, iph->tos, skb->dev); dev 98 net/ipv4/ip_output.c return nf_hook(PF_INET, NF_INET_LOCAL_OUT, skb, NULL, skb->dst->dev, dev 181 net/ipv4/ip_output.c struct net_device *dev = dst->dev; dev 182 net/ipv4/ip_output.c unsigned int hh_len = LL_RESERVED_SPACE(dev); dev 185 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_OUTMCASTPKTS); dev 187 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_OUTBCASTPKTS); dev 190 net/ipv4/ip_output.c if (unlikely(skb_headroom(skb) < hh_len && dev->header_ops)) { dev 193 net/ipv4/ip_output.c skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev)); dev 220 net/ipv4/ip_output.c skb->dst->dev->mtu : dst_mtu(skb->dst); dev 242 net/ipv4/ip_output.c struct net_device *dev = rt->u.dst.dev; dev 247 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_OUTREQUESTS); dev 249 net/ipv4/ip_output.c skb->dev = dev; dev 273 net/ipv4/ip_output.c NULL, newskb->dev, dev 289 net/ipv4/ip_output.c newskb->dev, ip_dev_loopback_xmit); dev 292 net/ipv4/ip_output.c return NF_HOOK_COND(PF_INET, NF_INET_POST_ROUTING, skb, NULL, skb->dev, dev 299 net/ipv4/ip_output.c struct net_device *dev = skb->dst->dev; dev 301 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_OUTREQUESTS); dev 303 net/ipv4/ip_output.c skb->dev = dev; dev 306 net/ipv4/ip_output.c return NF_HOOK_COND(PF_INET, NF_INET_POST_ROUTING, skb, NULL, dev, dev 406 net/ipv4/ip_output.c to->dev = from->dev; dev 438 net/ipv4/ip_output.c struct net_device *dev; dev 446 net/ipv4/ip_output.c dev = rt->u.dst.dev; dev 455 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGFAILS); dev 546 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGCREATES); dev 556 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGOKS); dev 565 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGFAILS); dev 577 net/ipv4/ip_output.c ll_rs = LL_RESERVED_SPACE_EXTRA(rt->u.dst.dev, pad); dev 677 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGCREATES); dev 680 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGOKS); dev 685 net/ipv4/ip_output.c IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGFAILS); dev 817 net/ipv4/ip_output.c rt->u.dst.dev->mtu : dev 836 net/ipv4/ip_output.c hh_len = LL_RESERVED_SPACE(rt->u.dst.dev); dev 852 net/ipv4/ip_output.c rt->u.dst.dev->features & NETIF_F_V4_CSUM && dev 859 net/ipv4/ip_output.c (rt->u.dst.dev->features & NETIF_F_UFO)) { dev 907 net/ipv4/ip_output.c !(rt->u.dst.dev->features&NETIF_F_SG)) dev 986 net/ipv4/ip_output.c if (!(rt->u.dst.dev->features&NETIF_F_SG)) { dev 1081 net/ipv4/ip_output.c if (!(rt->u.dst.dev->features&NETIF_F_SG)) dev 1084 net/ipv4/ip_output.c hh_len = LL_RESERVED_SPACE(rt->u.dst.dev); dev 1100 net/ipv4/ip_output.c (rt->u.dst.dev->features & NETIF_F_UFO)) { dev 566 net/ipv4/ip_sockglue.c struct net_device *dev = NULL; dev 592 net/ipv4/ip_sockglue.c dev = ip_dev_find(sock_net(sk), mreq.imr_address.s_addr); dev 593 net/ipv4/ip_sockglue.c if (dev) { dev 594 net/ipv4/ip_sockglue.c mreq.imr_ifindex = dev->ifindex; dev 595 net/ipv4/ip_sockglue.c dev_put(dev); dev 598 net/ipv4/ip_sockglue.c dev = __dev_get_by_index(sock_net(sk), mreq.imr_ifindex); dev 602 net/ipv4/ip_sockglue.c if (!dev) dev 176 net/ipv4/ipconfig.c struct net_device *dev; dev 188 net/ipv4/ipconfig.c struct net_device *dev; dev 195 net/ipv4/ipconfig.c for_each_netdev(&init_net, dev) { dev 196 net/ipv4/ipconfig.c if (!(dev->flags & IFF_LOOPBACK)) dev 198 net/ipv4/ipconfig.c if (dev_change_flags(dev, dev->flags | IFF_UP) < 0) dev 199 net/ipv4/ipconfig.c printk(KERN_ERR "IP-Config: Failed to open %s\n", dev->name); dev 202 net/ipv4/ipconfig.c for_each_netdev(&init_net, dev) { dev 203 net/ipv4/ipconfig.c if (dev->flags & IFF_LOOPBACK) dev 205 net/ipv4/ipconfig.c if (user_dev_name[0] ? !strcmp(dev->name, user_dev_name) : dev 206 net/ipv4/ipconfig.c (!(dev->flags & IFF_LOOPBACK) && dev 207 net/ipv4/ipconfig.c (dev->flags & (IFF_POINTOPOINT|IFF_BROADCAST)) && dev 208 net/ipv4/ipconfig.c strncmp(dev->name, "dummy", 5))) { dev 210 net/ipv4/ipconfig.c if (dev->mtu >= 364) dev 213 net/ipv4/ipconfig.c printk(KERN_WARNING "DHCP/BOOTP: Ignoring device %s, MTU %d too small", dev->name, dev->mtu); dev 214 net/ipv4/ipconfig.c if (!(dev->flags & IFF_NOARP)) dev 219 net/ipv4/ipconfig.c oflags = dev->flags; dev 220 net/ipv4/ipconfig.c if (dev_change_flags(dev, oflags | IFF_UP) < 0) { dev 221 net/ipv4/ipconfig.c printk(KERN_ERR "IP-Config: Failed to open %s\n", dev->name); dev 228 net/ipv4/ipconfig.c d->dev = dev; dev 239 net/ipv4/ipconfig.c dev->name, able, d->xid)); dev 259 net/ipv4/ipconfig.c struct net_device *dev; dev 265 net/ipv4/ipconfig.c dev = d->dev; dev 266 net/ipv4/ipconfig.c if (dev != ic_dev) { dev 267 net/ipv4/ipconfig.c DBG(("IP-Config: Downing %s\n", dev->name)); dev 268 net/ipv4/ipconfig.c dev_change_flags(dev, d->flags); dev 435 net/ipv4/ipconfig.c if (!net_eq(dev_net(dev), &init_net)) dev 450 net/ipv4/ipconfig.c if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd)) dev 461 net/ipv4/ipconfig.c if (!pskb_may_pull(skb, arp_hdr_len(dev))) dev 477 net/ipv4/ipconfig.c while (d && d->dev != dev) dev 484 net/ipv4/ipconfig.c rarp_ptr += dev->addr_len; dev 488 net/ipv4/ipconfig.c rarp_ptr += dev->addr_len; dev 492 net/ipv4/ipconfig.c if (memcmp(tha, dev->dev_addr, dev->addr_len)) dev 500 net/ipv4/ipconfig.c ic_dev = dev; dev 522 net/ipv4/ipconfig.c struct net_device *dev = d->dev; dev 523 net/ipv4/ipconfig.c arp_send(ARPOP_RREQUEST, ETH_P_RARP, 0, dev, 0, NULL, dev 524 net/ipv4/ipconfig.c dev->dev_addr, dev->dev_addr); dev 708 net/ipv4/ipconfig.c struct net_device *dev = d->dev; dev 714 net/ipv4/ipconfig.c skb = alloc_skb(sizeof(struct bootp_pkt) + LL_ALLOCATED_SPACE(dev) + 15, dev 718 net/ipv4/ipconfig.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 742 net/ipv4/ipconfig.c if (dev->type < 256) /* check for false types */ dev 743 net/ipv4/ipconfig.c b->htype = dev->type; dev 744 net/ipv4/ipconfig.c else if (dev->type == ARPHRD_IEEE802_TR) /* fix for token ring */ dev 746 net/ipv4/ipconfig.c else if (dev->type == ARPHRD_FDDI) dev 749 net/ipv4/ipconfig.c printk("Unknown ARP type 0x%04x for device %s\n", dev->type, dev->name); dev 750 net/ipv4/ipconfig.c b->htype = dev->type; /* can cause undefined behavior */ dev 754 net/ipv4/ipconfig.c b->hlen = dev->addr_len; dev 755 net/ipv4/ipconfig.c memcpy(b->hw_addr, dev->dev_addr, dev->addr_len); dev 768 net/ipv4/ipconfig.c skb->dev = dev; dev 770 net/ipv4/ipconfig.c if (dev_hard_header(skb, dev, ntohs(skb->protocol), dev 771 net/ipv4/ipconfig.c dev->broadcast, dev->dev_addr, skb->len) < 0 || dev 855 net/ipv4/ipconfig.c if (!net_eq(dev_net(dev), &init_net)) dev 920 net/ipv4/ipconfig.c while (d && d->dev != dev) dev 997 net/ipv4/ipconfig.c if (memcmp(dev->dev_addr, b->hw_addr, dev->addr_len) != 0) dev 1027 net/ipv4/ipconfig.c ic_dev = dev; dev 1356 net/ipv4/ipconfig.c ic_dev = ic_first_dev->dev; dev 149 net/ipv4/ipip.c remote == t->parms.iph.daddr && (t->dev->flags&IFF_UP)) dev 153 net/ipv4/ipip.c if (remote == t->parms.iph.daddr && (t->dev->flags&IFF_UP)) dev 157 net/ipv4/ipip.c if (local == t->parms.iph.saddr && (t->dev->flags&IFF_UP)) dev 160 net/ipv4/ipip.c if ((t = ipn->tunnels_wc[0]) != NULL && (t->dev->flags&IFF_UP)) dev 220 net/ipv4/ipip.c struct net_device *dev; dev 236 net/ipv4/ipip.c dev = alloc_netdev(sizeof(*t), name, ipip_tunnel_setup); dev 237 net/ipv4/ipip.c if (dev == NULL) dev 240 net/ipv4/ipip.c dev_net_set(dev, net); dev 243 net/ipv4/ipip.c if (dev_alloc_name(dev, name) < 0) dev 247 net/ipv4/ipip.c nt = netdev_priv(dev); dev 248 net/ipv4/ipip.c dev->init = ipip_tunnel_init; dev 251 net/ipv4/ipip.c if (register_netdevice(dev) < 0) dev 254 net/ipv4/ipip.c dev_hold(dev); dev 259 net/ipv4/ipip.c free_netdev(dev); dev 265 net/ipv4/ipip.c struct net *net = dev_net(dev); dev 268 net/ipv4/ipip.c if (dev == ipn->fb_tunnel_dev) { dev 273 net/ipv4/ipip.c ipip_tunnel_unlink(ipn, netdev_priv(dev)); dev 274 net/ipv4/ipip.c dev_put(dev); dev 321 net/ipv4/ipip.c t = ipip_tunnel_lookup(dev_net(skb->dev), iph->daddr, iph->saddr); dev 354 net/ipv4/ipip.c if ((tunnel = ipip_tunnel_lookup(dev_net(skb->dev), dev 369 net/ipv4/ipip.c tunnel->dev->stats.rx_packets++; dev 370 net/ipv4/ipip.c tunnel->dev->stats.rx_bytes += skb->len; dev 371 net/ipv4/ipip.c skb->dev = tunnel->dev; dev 392 net/ipv4/ipip.c struct ip_tunnel *tunnel = netdev_priv(dev); dev 393 net/ipv4/ipip.c struct net_device_stats *stats = &tunnel->dev->stats; dev 433 net/ipv4/ipip.c if (ip_route_output_key(dev_net(dev), &rt, &fl)) { dev 438 net/ipv4/ipip.c tdev = rt->u.dst.dev; dev 440 net/ipv4/ipip.c if (tdev == dev) { dev 449 net/ipv4/ipip.c mtu = skb->dst ? dst_mtu(skb->dst) : dev->mtu; dev 543 net/ipv4/ipip.c tunnel = netdev_priv(dev); dev 554 net/ipv4/ipip.c if (!ip_route_output_key(dev_net(dev), &rt, &fl)) { dev 555 net/ipv4/ipip.c tdev = rt->u.dst.dev; dev 558 net/ipv4/ipip.c dev->flags |= IFF_POINTOPOINT; dev 562 net/ipv4/ipip.c tdev = __dev_get_by_index(dev_net(dev), tunnel->parms.link); dev 565 net/ipv4/ipip.c dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr); dev 566 net/ipv4/ipip.c dev->mtu = tdev->mtu - sizeof(struct iphdr); dev 568 net/ipv4/ipip.c dev->iflink = tunnel->parms.link; dev 577 net/ipv4/ipip.c struct net *net = dev_net(dev); dev 583 net/ipv4/ipip.c if (dev == ipn->fb_tunnel_dev) { dev 591 net/ipv4/ipip.c t = netdev_priv(dev); dev 616 net/ipv4/ipip.c if (dev != ipn->fb_tunnel_dev && cmd == SIOCCHGTUNNEL) { dev 618 net/ipv4/ipip.c if (t->dev != dev) { dev 623 net/ipv4/ipip.c if (((dev->flags&IFF_POINTOPOINT) && !p.iph.daddr) || dev 624 net/ipv4/ipip.c (!(dev->flags&IFF_POINTOPOINT) && p.iph.daddr)) { dev 628 net/ipv4/ipip.c t = netdev_priv(dev); dev 632 net/ipv4/ipip.c memcpy(dev->dev_addr, &p.iph.saddr, 4); dev 633 net/ipv4/ipip.c memcpy(dev->broadcast, &p.iph.daddr, 4); dev 635 net/ipv4/ipip.c netdev_state_change(dev); dev 647 net/ipv4/ipip.c ipip_tunnel_bind_dev(dev); dev 648 net/ipv4/ipip.c netdev_state_change(dev); dev 662 net/ipv4/ipip.c if (dev == ipn->fb_tunnel_dev) { dev 670 net/ipv4/ipip.c if (t->dev == ipn->fb_tunnel_dev) dev 672 net/ipv4/ipip.c dev = t->dev; dev 674 net/ipv4/ipip.c unregister_netdevice(dev); dev 690 net/ipv4/ipip.c dev->mtu = new_mtu; dev 696 net/ipv4/ipip.c dev->uninit = ipip_tunnel_uninit; dev 697 net/ipv4/ipip.c dev->hard_start_xmit = ipip_tunnel_xmit; dev 698 net/ipv4/ipip.c dev->do_ioctl = ipip_tunnel_ioctl; dev 699 net/ipv4/ipip.c dev->change_mtu = ipip_tunnel_change_mtu; dev 700 net/ipv4/ipip.c dev->destructor = free_netdev; dev 702 net/ipv4/ipip.c dev->type = ARPHRD_TUNNEL; dev 703 net/ipv4/ipip.c dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); dev 704 net/ipv4/ipip.c dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr); dev 705 net/ipv4/ipip.c dev->flags = IFF_NOARP; dev 706 net/ipv4/ipip.c dev->iflink = 0; dev 707 net/ipv4/ipip.c dev->addr_len = 4; dev 708 net/ipv4/ipip.c dev->features |= NETIF_F_NETNS_LOCAL; dev 715 net/ipv4/ipip.c tunnel = netdev_priv(dev); dev 717 net/ipv4/ipip.c tunnel->dev = dev; dev 718 net/ipv4/ipip.c strcpy(tunnel->parms.name, dev->name); dev 720 net/ipv4/ipip.c memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4); dev 721 net/ipv4/ipip.c memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4); dev 723 net/ipv4/ipip.c ipip_tunnel_bind_dev(dev); dev 730 net/ipv4/ipip.c struct ip_tunnel *tunnel = netdev_priv(dev); dev 732 net/ipv4/ipip.c struct ipip_net *ipn = net_generic(dev_net(dev), ipip_net_id); dev 734 net/ipv4/ipip.c tunnel->dev = dev; dev 735 net/ipv4/ipip.c strcpy(tunnel->parms.name, dev->name); dev 741 net/ipv4/ipip.c dev_hold(dev); dev 764 net/ipv4/ipip.c unregister_netdevice(t->dev); dev 86 net/ipv4/ipmr.c #define VIF_EXISTS(idx) (vif_table[idx].dev != NULL) dev 123 net/ipv4/ipmr.c dev_close(dev); dev 125 net/ipv4/ipmr.c dev = __dev_get_by_name(&init_net, "tunl0"); dev 126 net/ipv4/ipmr.c if (dev) { dev 141 net/ipv4/ipmr.c dev->do_ioctl(dev, &ifr, SIOCDELTUNNEL); dev 149 net/ipv4/ipmr.c struct net_device *dev; dev 151 net/ipv4/ipmr.c dev = __dev_get_by_name(&init_net, "tunl0"); dev 153 net/ipv4/ipmr.c if (dev) { dev 170 net/ipv4/ipmr.c err = dev->do_ioctl(dev, &ifr, SIOCADDTUNNEL); dev 173 net/ipv4/ipmr.c dev = NULL; dev 175 net/ipv4/ipmr.c if (err == 0 && (dev = __dev_get_by_name(&init_net, p.name)) != NULL) { dev 176 net/ipv4/ipmr.c dev->flags |= IFF_MULTICAST; dev 178 net/ipv4/ipmr.c in_dev = __in_dev_get_rtnl(dev); dev 185 net/ipv4/ipmr.c if (dev_open(dev)) dev 187 net/ipv4/ipmr.c dev_hold(dev); dev 190 net/ipv4/ipmr.c return dev; dev 197 net/ipv4/ipmr.c unregister_netdevice(dev); dev 208 net/ipv4/ipmr.c dev->stats.tx_bytes += skb->len; dev 209 net/ipv4/ipmr.c dev->stats.tx_packets++; dev 218 net/ipv4/ipmr.c dev->type = ARPHRD_PIMREG; dev 219 net/ipv4/ipmr.c dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr) - 8; dev 220 net/ipv4/ipmr.c dev->flags = IFF_NOARP; dev 221 net/ipv4/ipmr.c dev->hard_start_xmit = reg_vif_xmit; dev 222 net/ipv4/ipmr.c dev->destructor = free_netdev; dev 227 net/ipv4/ipmr.c struct net_device *dev; dev 230 net/ipv4/ipmr.c dev = alloc_netdev(0, "pimreg", reg_vif_setup); dev 232 net/ipv4/ipmr.c if (dev == NULL) dev 235 net/ipv4/ipmr.c if (register_netdevice(dev)) { dev 236 net/ipv4/ipmr.c free_netdev(dev); dev 239 net/ipv4/ipmr.c dev->iflink = 0; dev 242 net/ipv4/ipmr.c if ((in_dev = __in_dev_get_rcu(dev)) == NULL) { dev 251 net/ipv4/ipmr.c if (dev_open(dev)) dev 254 net/ipv4/ipmr.c dev_hold(dev); dev 256 net/ipv4/ipmr.c return dev; dev 263 net/ipv4/ipmr.c unregister_netdevice(dev); dev 276 net/ipv4/ipmr.c struct net_device *dev; dev 285 net/ipv4/ipmr.c dev = v->dev; dev 286 net/ipv4/ipmr.c v->dev = NULL; dev 288 net/ipv4/ipmr.c if (!dev) { dev 309 net/ipv4/ipmr.c dev_set_allmulti(dev, -1); dev 311 net/ipv4/ipmr.c if ((in_dev = __in_dev_get_rtnl(dev)) != NULL) { dev 317 net/ipv4/ipmr.c unregister_netdevice(dev); dev 319 net/ipv4/ipmr.c dev_put(dev); dev 419 net/ipv4/ipmr.c struct net_device *dev; dev 436 net/ipv4/ipmr.c dev = ipmr_reg_vif(); dev 437 net/ipv4/ipmr.c if (!dev) dev 439 net/ipv4/ipmr.c err = dev_set_allmulti(dev, 1); dev 441 net/ipv4/ipmr.c unregister_netdevice(dev); dev 442 net/ipv4/ipmr.c dev_put(dev); dev 448 net/ipv4/ipmr.c dev = ipmr_new_tunnel(vifc); dev 449 net/ipv4/ipmr.c if (!dev) dev 451 net/ipv4/ipmr.c err = dev_set_allmulti(dev, 1); dev 453 net/ipv4/ipmr.c ipmr_del_tunnel(dev, vifc); dev 454 net/ipv4/ipmr.c dev_put(dev); dev 459 net/ipv4/ipmr.c dev = ip_dev_find(&init_net, vifc->vifc_lcl_addr.s_addr); dev 460 net/ipv4/ipmr.c if (!dev) dev 462 net/ipv4/ipmr.c err = dev_set_allmulti(dev, 1); dev 464 net/ipv4/ipmr.c dev_put(dev); dev 472 net/ipv4/ipmr.c if ((in_dev = __in_dev_get_rtnl(dev)) == NULL) dev 491 net/ipv4/ipmr.c v->link = dev->ifindex; dev 493 net/ipv4/ipmr.c v->link = dev->iflink; dev 497 net/ipv4/ipmr.c v->dev=dev; dev 1123 net/ipv4/ipmr.c struct net_device *dev = ptr; dev 1127 net/ipv4/ipmr.c if (!net_eq(dev_net(dev), &init_net)) dev 1134 net/ipv4/ipmr.c if (v->dev==dev) dev 1181 net/ipv4/ipmr.c IP_INC_STATS_BH(dev_net(skb->dst->dev), IPSTATS_MIB_OUTFORWDATAGRAMS); dev 1197 net/ipv4/ipmr.c struct net_device *dev; dev 1201 net/ipv4/ipmr.c if (vif->dev == NULL) dev 1208 net/ipv4/ipmr.c vif->dev->stats.tx_bytes += skb->len; dev 1209 net/ipv4/ipmr.c vif->dev->stats.tx_packets++; dev 1236 net/ipv4/ipmr.c dev = rt->u.dst.dev; dev 1244 net/ipv4/ipmr.c IP_INC_STATS_BH(dev_net(dev), IPSTATS_MIB_FRAGFAILS); dev 1249 net/ipv4/ipmr.c encap += LL_RESERVED_SPACE(dev) + rt->u.dst.header_len; dev 1268 net/ipv4/ipmr.c vif->dev->stats.tx_packets++; dev 1269 net/ipv4/ipmr.c vif->dev->stats.tx_bytes += skb->len; dev 1285 net/ipv4/ipmr.c NF_HOOK(PF_INET, NF_INET_FORWARD, skb, skb->dev, dev, dev 1298 net/ipv4/ipmr.c if (vif_table[ct].dev == dev) dev 1318 net/ipv4/ipmr.c if (vif_table[vif].dev != skb->dev) { dev 1337 net/ipv4/ipmr.c true_vifi = ipmr_find_vif(skb->dev); dev 1444 net/ipv4/ipmr.c vif = ipmr_find_vif(skb->dev); dev 1508 net/ipv4/ipmr.c reg_dev = vif_table[reg_vif_num].dev; dev 1519 net/ipv4/ipmr.c skb->dev = reg_dev; dev 1564 net/ipv4/ipmr.c reg_dev = vif_table[reg_vif_num].dev; dev 1575 net/ipv4/ipmr.c skb->dev = reg_dev; dev 1598 net/ipv4/ipmr.c struct net_device *dev = vif_table[c->mfc_parent].dev; dev 1602 net/ipv4/ipmr.c if (dev) dev 1603 net/ipv4/ipmr.c RTA_PUT(skb, RTA_IIF, 4, &dev->ifindex); dev 1614 net/ipv4/ipmr.c nhp->rtnh_ifindex = vif_table[ct].dev->ifindex; dev 1640 net/ipv4/ipmr.c struct net_device *dev; dev 1648 net/ipv4/ipmr.c dev = skb->dev; dev 1649 net/ipv4/ipmr.c if (dev == NULL || (vif = ipmr_find_vif(dev)) < 0) { dev 1735 net/ipv4/ipmr.c const char *name = vif->dev ? vif->dev->name : "none"; dev 15 net/ipv4/netfilter.c struct net *net = dev_net(skb->dst->dev); dev 55 net/ipv4/netfilter.c RT_TOS(iph->tos), rt->u.dst.dev) != 0) { dev 74 net/ipv4/netfilter.c hh_len = skb->dst->dev->hard_header_len; dev 107 net/ipv4/netfilter.c hh_len = skb->dst->dev->hard_header_len; dev 123 net/ipv4/netfilter/arp_tables.c arpptr += dev->addr_len; dev 127 net/ipv4/netfilter/arp_tables.c arpptr += dev->addr_len; dev 130 net/ipv4/netfilter/arp_tables.c if (FWINV(arp_devaddr_compare(&arpinfo->src_devaddr, src_devaddr, dev->addr_len), dev 132 net/ipv4/netfilter/arp_tables.c FWINV(arp_devaddr_compare(&arpinfo->tgt_devaddr, tgt_devaddr, dev->addr_len), dev 234 net/ipv4/netfilter/arp_tables.c if (!pskb_may_pull(skb, arp_hdr_len(skb->dev))) dev 253 net/ipv4/netfilter/arp_tables.c if (arp_packet_match(arp, skb->dev, indev, outdev, &e->arp)) { dev 258 net/ipv4/netfilter/arp_tables.c (2 * skb->dev->addr_len); dev 212 net/ipv4/netfilter/ip_queue.c if (entry->indev && entry->skb->dev) { dev 213 net/ipv4/netfilter/ip_queue.c pmsg->hw_type = entry->skb->dev->type; dev 478 net/ipv4/netfilter/ip_queue.c struct net_device *dev = ptr; dev 480 net/ipv4/netfilter/ip_queue.c if (!net_eq(dev_net(dev), &init_net)) dev 485 net/ipv4/netfilter/ip_queue.c ipq_dev_drop(dev->ifindex); dev 45 net/ipv4/netfilter/ipt_CLUSTERIP.c struct net_device *dev; /* device */ dev 90 net/ipv4/netfilter/ipt_CLUSTERIP.c dev_mc_delete(c->dev, c->clustermac, ETH_ALEN, 0); dev 91 net/ipv4/netfilter/ipt_CLUSTERIP.c dev_put(c->dev); dev 156 net/ipv4/netfilter/ipt_CLUSTERIP.c c->dev = dev; dev 379 net/ipv4/netfilter/ipt_CLUSTERIP.c struct net_device *dev; dev 386 net/ipv4/netfilter/ipt_CLUSTERIP.c dev = dev_get_by_name(&init_net, e->ip.iniface); dev 387 net/ipv4/netfilter/ipt_CLUSTERIP.c if (!dev) { dev 393 net/ipv4/netfilter/ipt_CLUSTERIP.c e->ip.dst.s_addr, dev); dev 396 net/ipv4/netfilter/ipt_CLUSTERIP.c dev_put(dev); dev 399 net/ipv4/netfilter/ipt_CLUSTERIP.c dev_mc_add(config->dev,config->clustermac, ETH_ALEN, 0); dev 521 net/ipv4/netfilter/ipt_CLUSTERIP.c if (c->dev != out) { dev 524 net/ipv4/netfilter/ipt_CLUSTERIP.c c->dev->name, out->name); dev 411 net/ipv4/netfilter/ipt_LOG.c if (skb->dev && skb->dev->hard_header_len dev 415 net/ipv4/netfilter/ipt_LOG.c for (i = 0; i < skb->dev->hard_header_len; i++,p++) dev 417 net/ipv4/netfilter/ipt_LOG.c i==skb->dev->hard_header_len - 1 dev 116 net/ipv4/netfilter/ipt_MASQUERADE.c const struct net_device *dev = ptr; dev 117 net/ipv4/netfilter/ipt_MASQUERADE.c struct net *net = dev_net(dev); dev 123 net/ipv4/netfilter/ipt_MASQUERADE.c NF_CT_ASSERT(dev->ifindex != 0); dev 126 net/ipv4/netfilter/ipt_MASQUERADE.c (void *)(long)dev->ifindex); dev 136 net/ipv4/netfilter/ipt_MASQUERADE.c struct net_device *dev = ((struct in_ifaddr *)ptr)->ifa_dev->dev; dev 137 net/ipv4/netfilter/ipt_MASQUERADE.c return masq_device_event(this, event, dev); dev 69 net/ipv4/netfilter/ipt_REDIRECT.c indev = __in_dev_get_rcu(skb->dev); dev 29 net/ipv4/netfilter/ipt_addrtype.c return !!(mask & (1 << inet_dev_addr_type(&init_net, dev, addr))); dev 54 net/ipv4/netfilter/ipt_addrtype.c const struct net_device *dev = NULL; dev 58 net/ipv4/netfilter/ipt_addrtype.c dev = par->in; dev 60 net/ipv4/netfilter/ipt_addrtype.c dev = par->out; dev 63 net/ipv4/netfilter/ipt_addrtype.c ret &= match_type(dev, iph->saddr, info->source) ^ dev 66 net/ipv4/netfilter/ipt_addrtype.c ret &= match_type(dev, iph->daddr, info->dest) ^ dev 168 net/ipv4/netfilter/nf_nat_helper.c skb->dev->features & NETIF_F_V4_CSUM) { dev 257 net/ipv4/netfilter/nf_nat_helper.c skb->dev->features & NETIF_F_V4_CSUM) { dev 169 net/ipv4/raw.c net = dev_net(skb->dev); dev 172 net/ipv4/raw.c skb->dev->ifindex); dev 185 net/ipv4/raw.c skb->dev->ifindex); dev 277 net/ipv4/raw.c net = dev_net(skb->dev); dev 281 net/ipv4/raw.c skb->dev->ifindex)) != NULL) { dev 329 net/ipv4/raw.c if (length > rt->u.dst.dev->mtu) { dev 331 net/ipv4/raw.c rt->u.dst.dev->mtu); dev 338 net/ipv4/raw.c length + LL_ALLOCATED_SPACE(rt->u.dst.dev) + 15, dev 342 net/ipv4/raw.c skb_reserve(skb, LL_RESERVED_SPACE(rt->u.dst.dev)); dev 375 net/ipv4/raw.c err = NF_HOOK(PF_INET, NF_INET_LOCAL_OUT, skb, NULL, rt->u.dst.dev, dev 290 net/ipv4/route.c if (dev_net(r->u.dst.dev) == seq_file_net(seq) && dev 323 net/ipv4/route.c if (dev_net(r->u.dst.dev) != seq_file_net(seq)) dev 381 net/ipv4/route.c r->u.dst.dev ? r->u.dst.dev->name : "*", dev 690 net/ipv4/route.c return dev_net(rt1->u.dst.dev) == dev_net(rt2->u.dst.dev); dev 695 net/ipv4/route.c return rth->rt_genid != rt_genid(dev_net(rth->u.dst.dev)); dev 1199 net/ipv4/route.c struct in_device *in_dev = in_dev_get(dev); dev 1202 net/ipv4/route.c int ikeys[2] = { dev->ifindex, 0 }; dev 1209 net/ipv4/route.c net = dev_net(dev); dev 1218 net/ipv4/route.c if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) dev 1241 net/ipv4/route.c !net_eq(dev_net(rth->u.dst.dev), net)) { dev 1250 net/ipv4/route.c rth->u.dst.dev != dev) dev 1269 net/ipv4/route.c if (rt->u.dst.dev) dev 1270 net/ipv4/route.c dev_hold(rt->u.dst.dev); dev 1325 net/ipv4/route.c NIPQUAD(old_gw), dev->name, NIPQUAD(new_gw), dev 1344 net/ipv4/route.c rt_genid(dev_net(dst->dev))); dev 1376 net/ipv4/route.c struct in_device *in_dev = in_dev_get(rt->u.dst.dev); dev 1437 net/ipv4/route.c IP_INC_STATS_BH(dev_net(rt->u.dst.dev), dev 1484 net/ipv4/route.c int ikeys[2] = { dev->ifindex, 0 }; dev 1509 net/ipv4/route.c !net_eq(dev_net(rth->u.dst.dev), net) || dev 1585 net/ipv4/route.c if (dev != dev_net(dev)->loopback_dev && idev && idev->dev == dev) { dev 1587 net/ipv4/route.c in_dev_get(dev_net(dev)->loopback_dev); dev 1610 net/ipv4/route.c skb->dev ? skb->dev->name : "?"); dev 1631 net/ipv4/route.c else if (fib_lookup(dev_net(rt->u.dst.dev), &rt->fl, &res) == 0) { dev 1635 net/ipv4/route.c src = inet_select_addr(rt->u.dst.dev, rt->rt_gateway, dev 1661 net/ipv4/route.c rt->u.dst.metrics[RTAX_MTU-1] = rt->u.dst.dev->mtu; dev 1664 net/ipv4/route.c rt->u.dst.dev->mtu > 576) dev 1671 net/ipv4/route.c rt->u.dst.metrics[RTAX_MTU-1]= rt->u.dst.dev->mtu; dev 1678 net/ipv4/route.c rt->u.dst.metrics[RTAX_ADVMSS-1] = max_t(unsigned int, rt->u.dst.dev->mtu - 40, dev 1698 net/ipv4/route.c struct in_device *in_dev = in_dev_get(dev); dev 1713 net/ipv4/route.c spec_dst = inet_select_addr(dev, 0, RT_SCOPE_LINK); dev 1715 net/ipv4/route.c dev, &spec_dst, &itag) < 0) dev 1738 net/ipv4/route.c rth->fl.iif = dev->ifindex; dev 1739 net/ipv4/route.c rth->u.dst.dev = init_net.loopback_dev; dev 1740 net/ipv4/route.c dev_hold(rth->u.dst.dev); dev 1741 net/ipv4/route.c rth->idev = in_dev_get(rth->u.dst.dev); dev 1745 net/ipv4/route.c rth->rt_genid = rt_genid(dev_net(dev)); dev 1760 net/ipv4/route.c hash = rt_hash(daddr, saddr, dev->ifindex, rt_genid(dev_net(dev))); dev 1788 net/ipv4/route.c NIPQUAD(daddr), NIPQUAD(saddr), dev->name); dev 1789 net/ipv4/route.c if (dev->hard_header_len && skb_mac_header_was_set(skb)) { dev 1793 net/ipv4/route.c for (i = 0; i < dev->hard_header_len; i++, p++) { dev 1795 net/ipv4/route.c if (i < (dev->hard_header_len - 1)) dev 1829 net/ipv4/route.c in_dev->dev, &spec_dst, &itag); dev 1831 net/ipv4/route.c ip_handle_martian_source(in_dev->dev, in_dev, skb, daddr, dev 1877 net/ipv4/route.c rth->fl.iif = in_dev->dev->ifindex; dev 1878 net/ipv4/route.c rth->u.dst.dev = (out_dev)->dev; dev 1879 net/ipv4/route.c dev_hold(rth->u.dst.dev); dev 1880 net/ipv4/route.c rth->idev = in_dev_get(rth->u.dst.dev); dev 1886 net/ipv4/route.c rth->rt_genid = rt_genid(dev_net(rth->u.dst.dev)); dev 1922 net/ipv4/route.c rt_genid(dev_net(rth->u.dst.dev))); dev 1940 net/ipv4/route.c struct in_device *in_dev = in_dev_get(dev); dev 1948 net/ipv4/route.c .iif = dev->ifindex }; dev 1956 net/ipv4/route.c struct net * net = dev_net(dev); dev 2003 net/ipv4/route.c dev, &spec_dst, &itag); dev 2029 net/ipv4/route.c spec_dst = inet_select_addr(dev, 0, RT_SCOPE_LINK); dev 2031 net/ipv4/route.c err = fib_validate_source(saddr, 0, tos, 0, dev, &spec_dst, dev 2064 net/ipv4/route.c rth->fl.iif = dev->ifindex; dev 2065 net/ipv4/route.c rth->u.dst.dev = net->loopback_dev; dev 2066 net/ipv4/route.c dev_hold(rth->u.dst.dev); dev 2067 net/ipv4/route.c rth->idev = in_dev_get(rth->u.dst.dev); dev 2084 net/ipv4/route.c spec_dst = inet_select_addr(dev, 0, RT_SCOPE_UNIVERSE); dev 2099 net/ipv4/route.c NIPQUAD(daddr), NIPQUAD(saddr), dev->name); dev 2115 net/ipv4/route.c ip_handle_martian_source(dev, in_dev, skb, daddr, saddr); dev 2124 net/ipv4/route.c int iif = dev->ifindex; dev 2127 net/ipv4/route.c net = dev_net(dev); dev 2140 net/ipv4/route.c net_eq(dev_net(rth->u.dst.dev), net) && dev 2167 net/ipv4/route.c if ((in_dev = __in_dev_get_rcu(dev)) != NULL) { dev 2178 net/ipv4/route.c tos, dev, our); dev 2184 net/ipv4/route.c return ip_route_input_slow(skb, daddr, saddr, tos, dev); dev 2262 net/ipv4/route.c rth->u.dst.dev = dev_out; dev 2549 net/ipv4/route.c net_eq(dev_net(rth->u.dst.dev), net) && dev 2596 net/ipv4/route.c new->dev = ort->u.dst.dev; dev 2597 net/ipv4/route.c if (new->dev) dev 2598 net/ipv4/route.c dev_hold(new->dev); dev 2689 net/ipv4/route.c if (rt->u.dst.dev) dev 2690 net/ipv4/route.c NLA_PUT_U32(skb, RTA_OIF, rt->u.dst.dev->ifindex); dev 2789 net/ipv4/route.c struct net_device *dev; dev 2791 net/ipv4/route.c dev = __dev_get_by_index(net, iif); dev 2792 net/ipv4/route.c if (dev == NULL) { dev 2798 net/ipv4/route.c skb->dev = dev; dev 2800 net/ipv4/route.c err = ip_route_input(skb, dst, src, rtm->rtm_tos, dev); dev 2860 net/ipv4/route.c if (!net_eq(dev_net(rt->u.dst.dev), net) || idx < s_idx) dev 2885 net/ipv4/route.c rt_cache_flush(dev_net(in_dev->dev), 0); dev 345 net/ipv4/tcp_ipv4.c struct net *net = dev_net(skb->dev); dev 596 net/ipv4/tcp_ipv4.c net = dev_net(skb->dst->dev); dev 623 net/ipv4/tcp_ipv4.c struct net *net = dev_net(skb->dst->dev); dev 1545 net/ipv4/tcp_ipv4.c struct net *net = dev_net(skb->dev); dev 1595 net/ipv4/tcp_ipv4.c skb->dev = NULL; dev 1653 net/ipv4/tcp_ipv4.c struct sock *sk2 = inet_lookup_listener(dev_net(skb->dev), dev 275 net/ipv4/udp.c return __udp4_lib_lookup(dev_net(skb->dst->dev), iph->saddr, sport, dev 336 net/ipv4/udp.c struct net *net = dev_net(skb->dev); dev 339 net/ipv4/udp.c iph->saddr, uh->source, skb->dev->ifindex, udptable); dev 1081 net/ipv4/udp.c dif = skb->dev->ifindex; dev 1160 net/ipv4/udp.c struct net *net = dev_net(skb->dev); dev 30 net/ipv4/xfrm4_input.c skb->dev)) dev 63 net/ipv4/xfrm4_input.c NF_HOOK(PF_INET, NF_INET_PRE_ROUTING, skb, skb->dev, NULL, dev 90 net/ipv4/xfrm4_output.c NULL, skb->dst->dev, xfrm4_output_finish, dev 99 net/ipv4/xfrm4_policy.c xdst->u.dst.dev = dev; dev 100 net/ipv4/xfrm4_policy.c dev_hold(dev); dev 102 net/ipv4/xfrm4_policy.c xdst->u.rt.idev = in_dev_get(dev); dev 222 net/ipv4/xfrm4_policy.c if (xdst->u.rt.idev->dev == dev) { dev 224 net/ipv4/xfrm4_policy.c in_dev_get(dev_net(dev)->loopback_dev); dev 237 net/ipv4/xfrm4_policy.c xfrm_dst_ifdown(dst, dev); dev 234 net/ipv6/addrconf.c return !qdisc_tx_is_noop(dev); dev 315 net/ipv6/addrconf.c struct net_device *dev = idev->dev; dev 321 net/ipv6/addrconf.c printk(KERN_DEBUG "in6_dev_finish_destroy: %s\n", dev ? dev->name : "NIL"); dev 323 net/ipv6/addrconf.c dev_put(dev); dev 340 net/ipv6/addrconf.c if (dev->mtu < IPV6_MIN_MTU) dev 349 net/ipv6/addrconf.c ndev->dev = dev; dev 350 net/ipv6/addrconf.c memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); dev 351 net/ipv6/addrconf.c ndev->cnf.mtu6 = dev->mtu; dev 353 net/ipv6/addrconf.c ndev->nd_parms = neigh_parms_alloc(dev, &nd_tbl); dev 359 net/ipv6/addrconf.c dev_disable_lro(dev); dev 361 net/ipv6/addrconf.c dev_hold(dev); dev 366 net/ipv6/addrconf.c __func__, dev->name)); dev 376 net/ipv6/addrconf.c __func__, dev->name)); dev 388 net/ipv6/addrconf.c if (dev->flags & (IFF_NOARP | IFF_LOOPBACK)) dev 392 net/ipv6/addrconf.c if (dev->type == ARPHRD_SIT && (dev->priv_flags & IFF_ISATAP)) { dev 395 net/ipv6/addrconf.c dev->name); dev 402 net/ipv6/addrconf.c if ((dev->flags&IFF_LOOPBACK) || dev 403 net/ipv6/addrconf.c dev->type == ARPHRD_TUNNEL || dev 404 net/ipv6/addrconf.c dev->type == ARPHRD_TUNNEL6 || dev 405 net/ipv6/addrconf.c dev->type == ARPHRD_SIT || dev 406 net/ipv6/addrconf.c dev->type == ARPHRD_NONE) { dev 409 net/ipv6/addrconf.c dev->name); dev 417 net/ipv6/addrconf.c if (netif_running(dev) && addrconf_qdisc_ok(dev)) dev 424 net/ipv6/addrconf.c rcu_assign_pointer(dev->ip6_ptr, ndev); dev 427 net/ipv6/addrconf.c ipv6_dev_mc_inc(dev, &in6addr_linklocal_allnodes); dev 438 net/ipv6/addrconf.c if ((idev = __in6_dev_get(dev)) == NULL) { dev 439 net/ipv6/addrconf.c if ((idev = ipv6_add_dev(dev)) == NULL) dev 443 net/ipv6/addrconf.c if (dev->flags&IFF_UP) dev 451 net/ipv6/addrconf.c struct net_device *dev; dev 456 net/ipv6/addrconf.c dev = idev->dev; dev 458 net/ipv6/addrconf.c dev_disable_lro(dev); dev 459 net/ipv6/addrconf.c if (dev && (dev->flags & IFF_MULTICAST)) { dev 461 net/ipv6/addrconf.c ipv6_dev_mc_inc(dev, &in6addr_linklocal_allrouters); dev 463 net/ipv6/addrconf.c ipv6_dev_mc_dec(dev, &in6addr_linklocal_allrouters); dev 478 net/ipv6/addrconf.c struct net_device *dev; dev 482 net/ipv6/addrconf.c for_each_netdev(net, dev) { dev 484 net/ipv6/addrconf.c idev = __in6_dev_get(dev); dev 596 net/ipv6/addrconf.c (!(idev->dev->flags & IFF_LOOPBACK) && dev 609 net/ipv6/addrconf.c if (ipv6_chk_same_addr(dev_net(idev->dev), addr, idev->dev)) { dev 804 net/ipv6/addrconf.c struct net *net = dev_net(ifp->idev->dev); dev 806 net/ipv6/addrconf.c rt = rt6_lookup(net, &prefix, NULL, ifp->idev->dev->ifindex, 1); dev 1065 net/ipv6/addrconf.c dst->ifindex == score->ifa->idev->dev->ifindex); dev 1071 net/ipv6/addrconf.c score->ifa->idev->dev->ifindex) == dst->label; dev 1116 net/ipv6/addrconf.c struct net_device *dev; dev 1132 net/ipv6/addrconf.c for_each_netdev(net, dev) { dev 1149 net/ipv6/addrconf.c dst.ifindex && dev->ifindex != dst.ifindex) dev 1152 net/ipv6/addrconf.c idev = __in6_dev_get(dev); dev 1181 net/ipv6/addrconf.c dev->name); dev 1250 net/ipv6/addrconf.c if ((idev = __in6_dev_get(dev)) != NULL) { dev 1287 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) dev 1291 net/ipv6/addrconf.c if (dev == NULL || ifp->idev->dev == dev || dev 1309 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) dev 1312 net/ipv6/addrconf.c if (dev == NULL || ifp->idev->dev == dev) dev 1327 net/ipv6/addrconf.c idev = __in6_dev_get(dev); dev 1352 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) dev 1355 net/ipv6/addrconf.c if (dev == NULL || ifp->idev->dev == dev || dev 1439 net/ipv6/addrconf.c if (!ipv6_generate_eui64(addr.s6_addr + 8, idev->dev) && dev 1447 net/ipv6/addrconf.c printk(KERN_INFO "%s: duplicate address detected!\n", ifp->idev->dev->name); dev 1457 net/ipv6/addrconf.c if (dev->flags&(IFF_LOOPBACK|IFF_NOARP)) dev 1461 net/ipv6/addrconf.c ipv6_dev_mc_inc(dev, &maddr); dev 1468 net/ipv6/addrconf.c if (idev->dev->flags&(IFF_LOOPBACK|IFF_NOARP)) dev 1481 net/ipv6/addrconf.c ipv6_dev_ac_inc(ifp->idev->dev, &addr); dev 1495 net/ipv6/addrconf.c if (dev->addr_len != ETH_ALEN) dev 1497 net/ipv6/addrconf.c memcpy(eui, dev->dev_addr, 3); dev 1498 net/ipv6/addrconf.c memcpy(eui + 5, dev->dev_addr + 3, 3); dev 1513 net/ipv6/addrconf.c if (dev->dev_id) { dev 1514 net/ipv6/addrconf.c eui[3] = (dev->dev_id >> 8) & 0xFF; dev 1515 net/ipv6/addrconf.c eui[4] = dev->dev_id & 0xFF; dev 1527 net/ipv6/addrconf.c if (dev->addr_len != ARCNET_ALEN) dev 1530 net/ipv6/addrconf.c eui[7] = *(u8*)dev->dev_addr; dev 1536 net/ipv6/addrconf.c if (dev->addr_len != INFINIBAND_ALEN) dev 1538 net/ipv6/addrconf.c memcpy(eui, dev->dev_addr + 12, 8); dev 1561 net/ipv6/addrconf.c if (dev->priv_flags & IFF_ISATAP) dev 1562 net/ipv6/addrconf.c return __ipv6_isatap_ifid(eui, *(__be32 *)dev->dev_addr); dev 1568 net/ipv6/addrconf.c switch (dev->type) { dev 1572 net/ipv6/addrconf.c return addrconf_ifid_eui48(eui, dev); dev 1574 net/ipv6/addrconf.c return addrconf_ifid_arcnet(eui, dev); dev 1576 net/ipv6/addrconf.c return addrconf_ifid_infiniband(eui, dev); dev 1578 net/ipv6/addrconf.c return addrconf_ifid_sit(eui, dev); dev 1653 net/ipv6/addrconf.c idev->dev->name); dev 1686 net/ipv6/addrconf.c .fc_ifindex = dev->ifindex, dev 1690 net/ipv6/addrconf.c .fc_nlinfo.nl_net = dev_net(dev), dev 1701 net/ipv6/addrconf.c if (dev->type == ARPHRD_SIT && (dev->flags & IFF_POINTOPOINT)) dev 1715 net/ipv6/addrconf.c .fc_ifindex = dev->ifindex, dev 1718 net/ipv6/addrconf.c .fc_nlinfo.nl_net = dev_net(dev), dev 1732 net/ipv6/addrconf.c .fc_ifindex = dev->ifindex, dev 1735 net/ipv6/addrconf.c .fc_nlinfo.nl_net = dev_net(dev), dev 1748 net/ipv6/addrconf.c addrconf_prefix_route(&addr, 64, dev, 0, 0); dev 1757 net/ipv6/addrconf.c if ((idev = ipv6_find_idev(dev)) == NULL) dev 1761 net/ipv6/addrconf.c addrconf_add_mroute(dev); dev 1764 net/ipv6/addrconf.c addrconf_add_lroute(dev); dev 1801 net/ipv6/addrconf.c in6_dev = in6_dev_get(dev); dev 1805 net/ipv6/addrconf.c printk(KERN_DEBUG "addrconf: device %s not configured\n", dev->name); dev 1832 net/ipv6/addrconf.c rt = rt6_lookup(dev_net(dev), &pinfo->prefix, NULL, dev 1833 net/ipv6/addrconf.c dev->ifindex, 1); dev 1857 net/ipv6/addrconf.c dev, expires, flags); dev 1869 net/ipv6/addrconf.c struct net *net = dev_net(dev); dev 1873 net/ipv6/addrconf.c if (ipv6_generate_eui64(addr.s6_addr + 8, dev) && dev 1888 net/ipv6/addrconf.c ifp = ipv6_get_ifaddr(net, &addr, dev, 1); dev 2017 net/ipv6/addrconf.c struct net_device *dev; dev 2026 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ireq.ifr6_ifindex); dev 2029 net/ipv6/addrconf.c if (dev == NULL) dev 2033 net/ipv6/addrconf.c if (dev->type == ARPHRD_SIT) { dev 2052 net/ipv6/addrconf.c err = dev->do_ioctl(dev, &ifr, SIOCADDTUNNEL); dev 2057 net/ipv6/addrconf.c dev = __dev_get_by_name(net, p.name); dev 2058 net/ipv6/addrconf.c if (!dev) dev 2060 net/ipv6/addrconf.c err = dev_open(dev); dev 2079 net/ipv6/addrconf.c struct net_device *dev; dev 2094 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifindex); dev 2095 net/ipv6/addrconf.c if (!dev) dev 2098 net/ipv6/addrconf.c if ((idev = addrconf_add_dev(dev)) == NULL) dev 2130 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->addr, ifp->prefix_len, dev, dev 2151 net/ipv6/addrconf.c struct net_device *dev; dev 2156 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifindex); dev 2157 net/ipv6/addrconf.c if (!dev) dev 2160 net/ipv6/addrconf.c if ((idev = __in6_dev_get(dev)) == NULL) dev 2176 net/ipv6/addrconf.c addrconf_ifdown(idev->dev, 1); dev 2227 net/ipv6/addrconf.c struct net_device *dev; dev 2228 net/ipv6/addrconf.c struct net *net = dev_net(idev->dev); dev 2234 net/ipv6/addrconf.c memcpy(&addr.s6_addr32[3], idev->dev->dev_addr, 4); dev 2236 net/ipv6/addrconf.c if (idev->dev->flags&IFF_POINTOPOINT) { dev 2255 net/ipv6/addrconf.c for_each_netdev(net, dev) { dev 2256 net/ipv6/addrconf.c struct in_device * in_dev = __in_dev_get_rtnl(dev); dev 2257 net/ipv6/addrconf.c if (in_dev && (dev->flags & IFF_UP)) { dev 2270 net/ipv6/addrconf.c if (idev->dev->flags&IFF_POINTOPOINT) dev 2274 net/ipv6/addrconf.c if (idev->dev->flags&IFF_POINTOPOINT) dev 2303 net/ipv6/addrconf.c if ((idev = ipv6_find_idev(dev)) == NULL) { dev 2325 net/ipv6/addrconf.c !dev_net(idev->dev)->ipv6.devconf_all->forwarding) dev 2332 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->addr, ifp->prefix_len, idev->dev, 0, 0); dev 2345 net/ipv6/addrconf.c if ((dev->type != ARPHRD_ETHER) && dev 2346 net/ipv6/addrconf.c (dev->type != ARPHRD_FDDI) && dev 2347 net/ipv6/addrconf.c (dev->type != ARPHRD_IEEE802_TR) && dev 2348 net/ipv6/addrconf.c (dev->type != ARPHRD_ARCNET) && dev 2349 net/ipv6/addrconf.c (dev->type != ARPHRD_INFINIBAND)) { dev 2354 net/ipv6/addrconf.c idev = addrconf_add_dev(dev); dev 2361 net/ipv6/addrconf.c if (ipv6_generate_eui64(addr.s6_addr + 8, dev) == 0) dev 2378 net/ipv6/addrconf.c if ((idev = ipv6_find_idev(dev)) == NULL) { dev 2383 net/ipv6/addrconf.c if (dev->priv_flags & IFF_ISATAP) { dev 2387 net/ipv6/addrconf.c addrconf_prefix_route(&addr, 64, dev, 0, 0); dev 2388 net/ipv6/addrconf.c if (!ipv6_generate_eui64(addr.s6_addr + 8, dev)) dev 2395 net/ipv6/addrconf.c if (dev->flags&IFF_POINTOPOINT) { dev 2396 net/ipv6/addrconf.c addrconf_add_mroute(dev); dev 2397 net/ipv6/addrconf.c addrconf_add_lroute(dev); dev 2399 net/ipv6/addrconf.c sit_route_add(dev); dev 2418 net/ipv6/addrconf.c struct net *net = dev_net(idev->dev); dev 2421 net/ipv6/addrconf.c if (idev->dev->iflink && dev 2422 net/ipv6/addrconf.c (link_dev = __dev_get_by_index(net, idev->dev->iflink))) { dev 2445 net/ipv6/addrconf.c if ((idev = addrconf_add_dev(dev)) == NULL) { dev 2455 net/ipv6/addrconf.c struct net_device *dev = (struct net_device *) data; dev 2456 net/ipv6/addrconf.c struct inet6_dev *idev = __in6_dev_get(dev); dev 2462 net/ipv6/addrconf.c if (!idev && dev->mtu >= IPV6_MIN_MTU) { dev 2463 net/ipv6/addrconf.c idev = ipv6_add_dev(dev); dev 2470 net/ipv6/addrconf.c if (dev->flags & IFF_SLAVE) dev 2474 net/ipv6/addrconf.c if (!addrconf_qdisc_ok(dev)) { dev 2479 net/ipv6/addrconf.c dev->name); dev 2483 net/ipv6/addrconf.c if (!idev && dev->mtu >= IPV6_MIN_MTU) dev 2484 net/ipv6/addrconf.c idev = ipv6_add_dev(dev); dev 2489 net/ipv6/addrconf.c if (!addrconf_qdisc_ok(dev)) { dev 2505 net/ipv6/addrconf.c dev->name); dev 2510 net/ipv6/addrconf.c switch(dev->type) { dev 2513 net/ipv6/addrconf.c addrconf_sit_config(dev); dev 2517 net/ipv6/addrconf.c addrconf_ip6_tnl_config(dev); dev 2520 net/ipv6/addrconf.c init_loopback(dev); dev 2524 net/ipv6/addrconf.c addrconf_dev_config(dev); dev 2535 net/ipv6/addrconf.c if (idev->cnf.mtu6 != dev->mtu && dev->mtu >= IPV6_MIN_MTU) { dev 2536 net/ipv6/addrconf.c rt6_mtu_change(dev, dev->mtu); dev 2537 net/ipv6/addrconf.c idev->cnf.mtu6 = dev->mtu; dev 2544 net/ipv6/addrconf.c if (dev->mtu < IPV6_MIN_MTU) dev 2545 net/ipv6/addrconf.c addrconf_ifdown(dev, event != NETDEV_DOWN); dev 2550 net/ipv6/addrconf.c if (idev && dev->mtu >= IPV6_MIN_MTU) { dev 2551 net/ipv6/addrconf.c rt6_mtu_change(dev, dev->mtu); dev 2552 net/ipv6/addrconf.c idev->cnf.mtu6 = dev->mtu; dev 2556 net/ipv6/addrconf.c if (!idev && dev->mtu >= IPV6_MIN_MTU) { dev 2557 net/ipv6/addrconf.c idev = ipv6_add_dev(dev); dev 2569 net/ipv6/addrconf.c addrconf_ifdown(dev, event != NETDEV_DOWN); dev 2599 net/ipv6/addrconf.c struct net *net = dev_net(dev); dev 2604 net/ipv6/addrconf.c if ((dev->flags & IFF_LOOPBACK) && how == 1) dev 2607 net/ipv6/addrconf.c rt6_ifdown(net, dev); dev 2608 net/ipv6/addrconf.c neigh_ifdown(&nd_tbl, dev); dev 2610 net/ipv6/addrconf.c idev = __in6_dev_get(dev); dev 2621 net/ipv6/addrconf.c rcu_assign_pointer(dev->ip6_ptr, NULL); dev 2703 net/ipv6/addrconf.c neigh_ifdown(&nd_tbl, dev); dev 2733 net/ipv6/addrconf.c ndisc_send_rs(ifp->idev->dev, &ifp->addr, &in6addr_linklocal_allrouters); dev 2741 net/ipv6/addrconf.c ifp->idev->dev->name); dev 2768 net/ipv6/addrconf.c struct net_device *dev = idev->dev; dev 2770 net/ipv6/addrconf.c addrconf_join_solict(dev, &ifp->addr); dev 2779 net/ipv6/addrconf.c if (dev->flags&(IFF_NOARP|IFF_LOOPBACK) || dev 2855 net/ipv6/addrconf.c ndisc_send_ns(ifp->idev->dev, NULL, &ifp->addr, &mcaddr, &in6addr_any); dev 2862 net/ipv6/addrconf.c struct net_device * dev = ifp->idev->dev; dev 2876 net/ipv6/addrconf.c (dev->flags&IFF_LOOPBACK) == 0 && dev 2883 net/ipv6/addrconf.c ndisc_send_rs(ifp->idev->dev, &ifp->addr, &in6addr_linklocal_allrouters); dev 2924 net/ipv6/addrconf.c while (ifa && !net_eq(dev_net(ifa->idev->dev), net)) dev 2940 net/ipv6/addrconf.c if (!net_eq(dev_net(ifa->idev->dev), net)) { dev 2992 net/ipv6/addrconf.c ifp->idev->dev->ifindex, dev 2996 net/ipv6/addrconf.c ifp->idev->dev->name); dev 3058 net/ipv6/addrconf.c if (!net_eq(dev_net(ifp->idev->dev), net)) dev 3263 net/ipv6/addrconf.c addrconf_prefix_route(&ifp->addr, ifp->prefix_len, ifp->idev->dev, dev 3278 net/ipv6/addrconf.c struct net_device *dev; dev 3303 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifm->ifa_index); dev 3304 net/ipv6/addrconf.c if (dev == NULL) dev 3310 net/ipv6/addrconf.c ifa = ipv6_get_ifaddr(net, pfx, dev, 1); dev 3390 net/ipv6/addrconf.c ifa->idev->dev->ifindex); dev 3420 net/ipv6/addrconf.c int ifindex = ifmca->idev->dev->ifindex; dev 3445 net/ipv6/addrconf.c int ifindex = ifaca->aca_idev->dev->ifindex; dev 3478 net/ipv6/addrconf.c struct net_device *dev; dev 3489 net/ipv6/addrconf.c for_each_netdev(net, dev) { dev 3495 net/ipv6/addrconf.c if ((idev = in6_dev_get(dev)) == NULL) dev 3583 net/ipv6/addrconf.c struct net_device *dev = NULL; dev 3600 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ifm->ifa_index); dev 3602 net/ipv6/addrconf.c if ((ifa = ipv6_get_ifaddr(net, addr, dev, 1)) == NULL) { dev 3630 net/ipv6/addrconf.c struct net *net = dev_net(ifa->idev->dev); dev 3743 net/ipv6/addrconf.c struct net_device *dev = idev->dev; dev 3757 net/ipv6/addrconf.c hdr->ifi_type = dev->type; dev 3758 net/ipv6/addrconf.c hdr->ifi_index = dev->ifindex; dev 3759 net/ipv6/addrconf.c hdr->ifi_flags = dev_get_flags(dev); dev 3762 net/ipv6/addrconf.c NLA_PUT_STRING(skb, IFLA_IFNAME, dev->name); dev 3764 net/ipv6/addrconf.c if (dev->addr_len) dev 3765 net/ipv6/addrconf.c NLA_PUT(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr); dev 3767 net/ipv6/addrconf.c NLA_PUT_U32(skb, IFLA_MTU, dev->mtu); dev 3768 net/ipv6/addrconf.c if (dev->ifindex != dev->iflink) dev 3769 net/ipv6/addrconf.c NLA_PUT_U32(skb, IFLA_LINK, dev->iflink); dev 3814 net/ipv6/addrconf.c struct net_device *dev; dev 3819 net/ipv6/addrconf.c for_each_netdev(net, dev) { dev 3822 net/ipv6/addrconf.c if ((idev = in6_dev_get(dev)) == NULL) dev 3841 net/ipv6/addrconf.c struct net *net = dev_net(idev->dev); dev 3884 net/ipv6/addrconf.c pmsg->prefix_ifindex = idev->dev->ifindex; dev 3911 net/ipv6/addrconf.c struct net *net = dev_net(idev->dev); dev 4345 net/ipv6/addrconf.c neigh_sysctl_register(idev->dev, idev->nd_parms, NET_IPV6, dev 4349 net/ipv6/addrconf.c __addrconf_sysctl_register(dev_net(idev->dev), idev->dev->name, dev 4350 net/ipv6/addrconf.c idev->dev->ifindex, idev, &idev->cnf); dev 4446 net/ipv6/addrconf.c struct net_device *dev; dev 4450 net/ipv6/addrconf.c for_each_netdev(net, dev) { dev 4451 net/ipv6/addrconf.c if (__in6_dev_get(dev) == NULL) dev 4453 net/ipv6/addrconf.c addrconf_ifdown(dev, 1); dev 282 net/ipv6/af_inet6.c struct net_device *dev = NULL; dev 298 net/ipv6/af_inet6.c dev = dev_get_by_index(net, sk->sk_bound_dev_if); dev 299 net/ipv6/af_inet6.c if (!dev) { dev 311 net/ipv6/af_inet6.c dev, 0)) { dev 312 net/ipv6/af_inet6.c if (dev) dev 313 net/ipv6/af_inet6.c dev_put(dev); dev 318 net/ipv6/af_inet6.c if (dev) dev 319 net/ipv6/af_inet6.c dev_put(dev); dev 59 net/ipv6/anycast.c struct net_device *dev = NULL; dev 84 net/ipv6/anycast.c dev = rt->rt6i_dev; dev 85 net/ipv6/anycast.c dev_hold(dev); dev 93 net/ipv6/anycast.c dev = dev_get_by_flags(net, IFF_UP, IFF_UP|IFF_LOOPBACK); dev 96 net/ipv6/anycast.c dev = dev_get_by_index(net, ifindex); dev 98 net/ipv6/anycast.c if (dev == NULL) { dev 103 net/ipv6/anycast.c idev = in6_dev_get(dev); dev 115 net/ipv6/anycast.c pac->acl_ifindex = dev->ifindex; dev 122 net/ipv6/anycast.c if (!ipv6_chk_prefix(addr, dev)) { dev 129 net/ipv6/anycast.c err = ipv6_dev_ac_inc(dev, addr); dev 138 net/ipv6/anycast.c dev_put(dev); dev 143 net/ipv6/anycast.c dev_put(dev); dev 155 net/ipv6/anycast.c struct net_device *dev; dev 178 net/ipv6/anycast.c dev = dev_get_by_index(net, pac->acl_ifindex); dev 179 net/ipv6/anycast.c if (dev) { dev 180 net/ipv6/anycast.c ipv6_dev_ac_dec(dev, &pac->acl_addr); dev 181 net/ipv6/anycast.c dev_put(dev); dev 190 net/ipv6/anycast.c struct net_device *dev = NULL; dev 205 net/ipv6/anycast.c if (dev) dev 206 net/ipv6/anycast.c dev_put(dev); dev 207 net/ipv6/anycast.c dev = dev_get_by_index(net, pac->acl_ifindex); dev 210 net/ipv6/anycast.c if (dev) dev 211 net/ipv6/anycast.c ipv6_dev_ac_dec(dev, &pac->acl_addr); dev 215 net/ipv6/anycast.c if (dev) dev 216 net/ipv6/anycast.c dev_put(dev); dev 267 net/ipv6/anycast.c idev = in6_dev_get(dev); dev 319 net/ipv6/anycast.c addrconf_join_solict(dev, &aca->aca_addr); dev 368 net/ipv6/anycast.c struct inet6_dev *idev = in6_dev_get(dev); dev 384 net/ipv6/anycast.c idev = in6_dev_get(dev); dev 405 net/ipv6/anycast.c if (dev) dev 406 net/ipv6/anycast.c return ipv6_chk_acast_dev(dev, addr); dev 408 net/ipv6/anycast.c for_each_netdev(net, dev) dev 409 net/ipv6/anycast.c if (ipv6_chk_acast_dev(dev, addr)) { dev 421 net/ipv6/anycast.c struct net_device *dev; dev 434 net/ipv6/anycast.c for_each_netdev(net, state->dev) { dev 436 net/ipv6/anycast.c idev = in6_dev_get(state->dev); dev 461 net/ipv6/anycast.c state->dev = next_net_device(state->dev); dev 462 net/ipv6/anycast.c if (!state->dev) { dev 466 net/ipv6/anycast.c state->idev = in6_dev_get(state->dev); dev 517 net/ipv6/anycast.c state->dev->ifindex, state->dev->name, dev 524 net/ipv6/datagram.c struct net_device *dev = NULL; dev 542 net/ipv6/datagram.c dev = dev_get_by_index(net, fl->oif); dev 543 net/ipv6/datagram.c if (!dev) dev 551 net/ipv6/datagram.c strict ? dev : NULL, 0)) dev 557 net/ipv6/datagram.c if (dev) dev 558 net/ipv6/datagram.c dev_put(dev); dev 280 net/ipv6/exthdrs.c IP6_INC_STATS_BH(dev_net(skb->dst->dev), ip6_dst_idev(skb->dst), dev 304 net/ipv6/exthdrs.c IP6_INC_STATS_BH(dev_net(dst->dev), dev 323 net/ipv6/exthdrs.c struct net *net = dev_net(skb->dev); dev 326 net/ipv6/exthdrs.c idev = in6_dev_get(skb->dev); dev 448 net/ipv6/exthdrs.c if (!ipv6_chk_home_addr(dev_net(skb->dst->dev), addr)) { dev 479 net/ipv6/exthdrs.c if (skb->dst->dev->flags&IFF_LOOPBACK) { dev 484 net/ipv6/exthdrs.c 0, skb->dev); dev 559 net/ipv6/exthdrs.c return skb->dst ? ip6_dst_idev(skb->dst) : __in6_dev_get(skb->dev); dev 584 net/ipv6/exthdrs.c struct net *net = dev_net(skb->dst->dev); dev 97 net/ipv6/fib6_rules.c ip6_dst_idev(&rt->u.dst)->dev, dev 122 net/ipv6/icmp.c icmpv6_send(skb, ICMPV6_PARAMPROB, code, pos, skb->dev); dev 188 net/ipv6/icmp.c } else if (dst->dev && (dst->dev->flags&IFF_LOOPBACK)) { dev 311 net/ipv6/icmp.c struct net *net = dev_net(skb->dev); dev 341 net/ipv6/icmp.c if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0)) dev 365 net/ipv6/icmp.c iif = skb->dev->ifindex; dev 487 net/ipv6/icmp.c idev = in6_dev_get(skb->dev); dev 513 net/ipv6/icmp.c struct net *net = dev_net(skb->dev); dev 540 net/ipv6/icmp.c fl.oif = skb->dev->ifindex; dev 569 net/ipv6/icmp.c idev = in6_dev_get(skb->dev); dev 641 net/ipv6/icmp.c struct net_device *dev = skb->dev; dev 642 net/ipv6/icmp.c struct inet6_dev *idev = __in6_dev_get(dev); dev 667 net/ipv6/icmp.c ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_INMSGS); dev 696 net/ipv6/icmp.c ICMP6MSGIN_INC_STATS_BH(dev_net(dev), idev, type); dev 717 net/ipv6/icmp.c rt6_pmtu_discovery(&orig_hdr->daddr, &orig_hdr->saddr, dev, dev 775 net/ipv6/icmp.c ICMP6_INC_STATS_BH(dev_net(dev), idev, ICMP6_MIB_INERRORS); dev 62 net/ipv6/ip6_input.c struct net *net = dev_net(skb->dev); dev 71 net/ipv6/ip6_input.c idev = __in6_dev_get(skb->dev); dev 95 net/ipv6/ip6_input.c IP6CB(skb)->iif = skb->dst ? ip6_dst_idev(skb->dst)->dev->ifindex : dev->ifindex; dev 110 net/ipv6/ip6_input.c if (!(dev->flags & IFF_LOOPBACK) && dev 143 net/ipv6/ip6_input.c return NF_HOOK(PF_INET6, NF_INET_PRE_ROUTING, skb, dev, NULL, dev 166 net/ipv6/ip6_input.c struct net *net = dev_net(skb->dst->dev); dev 198 net/ipv6/ip6_input.c !ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, dev 219 net/ipv6/ip6_input.c skb->dev); dev 238 net/ipv6/ip6_input.c return NF_HOOK(PF_INET6, NF_INET_LOCAL_IN, skb, skb->dev, NULL, dev 247 net/ipv6/ip6_input.c IP6_INC_STATS_BH(dev_net(skb->dst->dev), dev 251 net/ipv6/ip6_input.c deliver = ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, NULL); dev 257 net/ipv6/ip6_input.c if (dev_net(skb->dev)->ipv6.devconf_all->mc_forwarding && dev 319 net/ipv6/ip6_input.c skb2->dev = skb2->dst->dev; dev 81 net/ipv6/ip6_output.c return nf_hook(PF_INET6, NF_INET_LOCAL_OUT, skb, NULL, skb->dst->dev, dev 106 net/ipv6/ip6_output.c IP6_INC_STATS_BH(dev_net(dst->dev), dev 130 net/ipv6/ip6_output.c struct net_device *dev = dst->dev; dev 133 net/ipv6/ip6_output.c skb->dev = dev; dev 139 net/ipv6/ip6_output.c if (!(dev->flags & IFF_LOOPBACK) && (!np || np->mc_loop) && dev 141 net/ipv6/ip6_output.c ipv6_chk_mcast_addr(dev, &ipv6_hdr(skb)->daddr, dev 150 net/ipv6/ip6_output.c NULL, newskb->dev, dev 154 net/ipv6/ip6_output.c IP6_INC_STATS(dev_net(dev), idev, dev 161 net/ipv6/ip6_output.c IP6_INC_STATS(dev_net(dev), idev, IPSTATS_MIB_OUTMCASTPKTS); dev 164 net/ipv6/ip6_output.c return NF_HOOK(PF_INET6, NF_INET_POST_ROUTING, skb, NULL, skb->dev, dev 173 net/ipv6/ip6_output.c skb->dst->dev->mtu : dst_mtu(skb->dst); dev 180 net/ipv6/ip6_output.c IP6_INC_STATS(dev_net(skb->dst->dev), idev, dev 218 net/ipv6/ip6_output.c head_room += sizeof(struct ipv6hdr) + LL_RESERVED_SPACE(dst->dev); dev 279 net/ipv6/ip6_output.c return NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, skb, NULL, dst->dev, dev 285 net/ipv6/ip6_output.c skb->dev = dst->dev; dev 286 net/ipv6/ip6_output.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); dev 310 net/ipv6/ip6_output.c skb->dev = dev; dev 340 net/ipv6/ip6_output.c sk->sk_bound_dev_if == skb->dev->ifindex)) { dev 420 net/ipv6/ip6_output.c struct net *net = dev_net(dst->dev); dev 459 net/ipv6/ip6_output.c skb->dev = dst->dev; dev 461 net/ipv6/ip6_output.c 0, skb->dev); dev 471 net/ipv6/ip6_output.c pneigh_lookup(&nd_tbl, net, &hdr->daddr, skb->dev, 0)) { dev 492 net/ipv6/ip6_output.c if (skb->dev == dst->dev && dst->neighbour && opt->srcrt == 0 && dev 523 net/ipv6/ip6_output.c ICMPV6_NOT_NEIGHBOUR, 0, skb->dev); dev 530 net/ipv6/ip6_output.c skb->dev = dst->dev; dev 531 net/ipv6/ip6_output.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, dst_mtu(dst), skb->dev); dev 540 net/ipv6/ip6_output.c if (skb_cow(skb, dst->dev->hard_header_len)) { dev 552 net/ipv6/ip6_output.c return NF_HOOK(PF_INET6, NF_INET_FORWARD, skb, skb->dev, dst->dev, dev 569 net/ipv6/ip6_output.c to->dev = from->dev; dev 633 net/ipv6/ip6_output.c struct net *net = dev_net(skb->dst->dev); dev 645 net/ipv6/ip6_output.c skb->dev = skb->dst->dev; dev 646 net/ipv6/ip6_output.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); dev 808 net/ipv6/ip6_output.c if ((frag = alloc_skb(len+hlen+sizeof(struct frag_hdr)+LL_ALLOCATED_SPACE(rt->u.dst.dev), GFP_ATOMIC)) == NULL) { dev 821 net/ipv6/ip6_output.c skb_reserve(frag, LL_RESERVED_SPACE(rt->u.dst.dev)); dev 928 net/ipv6/ip6_output.c (fl->oif && fl->oif != dst->dev->ifindex)) { dev 950 net/ipv6/ip6_output.c err = ipv6_dev_get_saddr(net, ip6_dst_idev(*dst)->dev, dev 973 net/ipv6/ip6_output.c (*dst)->dev, 1); dev 1151 net/ipv6/ip6_output.c rt->u.dst.dev->mtu : dst_mtu(rt->u.dst.path); dev 1176 net/ipv6/ip6_output.c hh_len = LL_RESERVED_SPACE(rt->u.dst.dev); dev 1207 net/ipv6/ip6_output.c (rt->u.dst.dev->features & NETIF_F_UFO)) { dev 1252 net/ipv6/ip6_output.c !(rt->u.dst.dev->features&NETIF_F_SG)) dev 1340 net/ipv6/ip6_output.c if (!(rt->u.dst.dev->features&NETIF_F_SG)) { dev 144 net/ipv6/ip6_tunnel.c (t->dev->flags & IFF_UP)) dev 147 net/ipv6/ip6_tunnel.c if ((t = ip6n->tnls_wc[0]) != NULL && (t->dev->flags & IFF_UP)) dev 229 net/ipv6/ip6_tunnel.c struct net_device *dev; dev 240 net/ipv6/ip6_tunnel.c dev = alloc_netdev(sizeof (*t), name, ip6_tnl_dev_setup); dev 241 net/ipv6/ip6_tunnel.c if (dev == NULL) dev 244 net/ipv6/ip6_tunnel.c dev_net_set(dev, net); dev 247 net/ipv6/ip6_tunnel.c if (dev_alloc_name(dev, name) < 0) dev 251 net/ipv6/ip6_tunnel.c t = netdev_priv(dev); dev 252 net/ipv6/ip6_tunnel.c dev->init = ip6_tnl_dev_init; dev 255 net/ipv6/ip6_tunnel.c if ((err = register_netdevice(dev)) < 0) dev 258 net/ipv6/ip6_tunnel.c dev_hold(dev); dev 263 net/ipv6/ip6_tunnel.c free_netdev(dev); dev 311 net/ipv6/ip6_tunnel.c struct ip6_tnl *t = netdev_priv(dev); dev 312 net/ipv6/ip6_tunnel.c struct net *net = dev_net(dev); dev 315 net/ipv6/ip6_tunnel.c if (dev == ip6n->fb_tnl_dev) { dev 323 net/ipv6/ip6_tunnel.c dev_put(dev); dev 413 net/ipv6/ip6_tunnel.c if ((t = ip6_tnl_lookup(dev_net(skb->dev), &ipv6h->daddr, dev 468 net/ipv6/ip6_tunnel.c t->dev->mtu = mtu; dev 546 net/ipv6/ip6_tunnel.c if (ip_route_output_key(dev_net(skb->dev), &rt, &fl)) dev 549 net/ipv6/ip6_tunnel.c skb2->dev = rt->u.dst.dev; dev 558 net/ipv6/ip6_tunnel.c if (ip_route_output_key(dev_net(skb->dev), &rt, &fl) || dev 559 net/ipv6/ip6_tunnel.c rt->u.dst.dev->type != ARPHRD_TUNNEL) { dev 567 net/ipv6/ip6_tunnel.c skb2->dev) || dev 568 net/ipv6/ip6_tunnel.c skb2->dst->dev->type != ARPHRD_TUNNEL) dev 615 net/ipv6/ip6_tunnel.c rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, dev 619 net/ipv6/ip6_tunnel.c skb2->dev = rt->rt6i_dev; dev 621 net/ipv6/ip6_tunnel.c icmpv6_send(skb2, rel_type, rel_code, rel_info, skb2->dev); dev 660 net/ipv6/ip6_tunnel.c struct net *net = dev_net(t->dev); dev 699 net/ipv6/ip6_tunnel.c if ((t = ip6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, dev 712 net/ipv6/ip6_tunnel.c t->dev->stats.rx_dropped++; dev 722 net/ipv6/ip6_tunnel.c skb->dev = t->dev; dev 729 net/ipv6/ip6_tunnel.c t->dev->stats.rx_packets++; dev 730 net/ipv6/ip6_tunnel.c t->dev->stats.rx_bytes += skb->len; dev 798 net/ipv6/ip6_tunnel.c struct net *net = dev_net(t->dev); dev 849 net/ipv6/ip6_tunnel.c struct ip6_tnl *t = netdev_priv(dev); dev 850 net/ipv6/ip6_tunnel.c struct net_device_stats *stats = &t->dev->stats; dev 864 net/ipv6/ip6_tunnel.c dst = ip6_route_output(dev_net(dev), NULL, fl); dev 870 net/ipv6/ip6_tunnel.c tdev = dst->dev; dev 872 net/ipv6/ip6_tunnel.c if (tdev == dev) { dev 956 net/ipv6/ip6_tunnel.c struct ip6_tnl *t = netdev_priv(dev); dev 980 net/ipv6/ip6_tunnel.c err = ip6_tnl_xmit2(skb, dev, dsfield, &fl, encap_limit, &mtu); dev 995 net/ipv6/ip6_tunnel.c struct ip6_tnl *t = netdev_priv(dev); dev 1014 net/ipv6/ip6_tunnel.c ICMPV6_HDR_FIELD, offset + 2, skb->dev); dev 1030 net/ipv6/ip6_tunnel.c err = ip6_tnl_xmit2(skb, dev, dsfield, &fl, encap_limit, &mtu); dev 1033 net/ipv6/ip6_tunnel.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, dev); dev 1043 net/ipv6/ip6_tunnel.c struct ip6_tnl *t = netdev_priv(dev); dev 1044 net/ipv6/ip6_tunnel.c struct net_device_stats *stats = &t->dev->stats; dev 1054 net/ipv6/ip6_tunnel.c ret = ip4ip6_tnl_xmit(skb, dev); dev 1057 net/ipv6/ip6_tunnel.c ret = ip6ip6_tnl_xmit(skb, dev); dev 1098 net/ipv6/ip6_tunnel.c struct net_device *dev = t->dev; dev 1102 net/ipv6/ip6_tunnel.c memcpy(&dev->dev_addr, &p->laddr, sizeof(struct in6_addr)); dev 1103 net/ipv6/ip6_tunnel.c memcpy(&dev->broadcast, &p->raddr, sizeof(struct in6_addr)); dev 1119 net/ipv6/ip6_tunnel.c dev->flags |= IFF_POINTOPOINT; dev 1121 net/ipv6/ip6_tunnel.c dev->flags &= ~IFF_POINTOPOINT; dev 1123 net/ipv6/ip6_tunnel.c dev->iflink = p->link; dev 1129 net/ipv6/ip6_tunnel.c struct rt6_info *rt = rt6_lookup(dev_net(dev), dev 1137 net/ipv6/ip6_tunnel.c dev->hard_header_len = rt->rt6i_dev->hard_header_len + dev 1140 net/ipv6/ip6_tunnel.c dev->mtu = rt->rt6i_dev->mtu - sizeof (struct ipv6hdr); dev 1142 net/ipv6/ip6_tunnel.c if (dev->mtu < IPV6_MIN_MTU) dev 1143 net/ipv6/ip6_tunnel.c dev->mtu = IPV6_MIN_MTU; dev 1209 net/ipv6/ip6_tunnel.c struct net *net = dev_net(dev); dev 1214 net/ipv6/ip6_tunnel.c if (dev == ip6n->fb_tnl_dev) { dev 1222 net/ipv6/ip6_tunnel.c t = netdev_priv(dev); dev 1241 net/ipv6/ip6_tunnel.c if (dev != ip6n->fb_tnl_dev && cmd == SIOCCHGTUNNEL) { dev 1243 net/ipv6/ip6_tunnel.c if (t->dev != dev) { dev 1248 net/ipv6/ip6_tunnel.c t = netdev_priv(dev); dev 1253 net/ipv6/ip6_tunnel.c netdev_state_change(dev); dev 1268 net/ipv6/ip6_tunnel.c if (dev == ip6n->fb_tnl_dev) { dev 1276 net/ipv6/ip6_tunnel.c if (t->dev == ip6n->fb_tnl_dev) dev 1278 net/ipv6/ip6_tunnel.c dev = t->dev; dev 1281 net/ipv6/ip6_tunnel.c unregister_netdevice(dev); dev 1305 net/ipv6/ip6_tunnel.c dev->mtu = new_mtu; dev 1319 net/ipv6/ip6_tunnel.c dev->uninit = ip6_tnl_dev_uninit; dev 1320 net/ipv6/ip6_tunnel.c dev->destructor = free_netdev; dev 1321 net/ipv6/ip6_tunnel.c dev->hard_start_xmit = ip6_tnl_xmit; dev 1322 net/ipv6/ip6_tunnel.c dev->do_ioctl = ip6_tnl_ioctl; dev 1323 net/ipv6/ip6_tunnel.c dev->change_mtu = ip6_tnl_change_mtu; dev 1325 net/ipv6/ip6_tunnel.c dev->type = ARPHRD_TUNNEL6; dev 1326 net/ipv6/ip6_tunnel.c dev->hard_header_len = LL_MAX_HEADER + sizeof (struct ipv6hdr); dev 1327 net/ipv6/ip6_tunnel.c dev->mtu = ETH_DATA_LEN - sizeof (struct ipv6hdr); dev 1328 net/ipv6/ip6_tunnel.c dev->flags |= IFF_NOARP; dev 1329 net/ipv6/ip6_tunnel.c dev->addr_len = sizeof(struct in6_addr); dev 1330 net/ipv6/ip6_tunnel.c dev->features |= NETIF_F_NETNS_LOCAL; dev 1342 net/ipv6/ip6_tunnel.c struct ip6_tnl *t = netdev_priv(dev); dev 1343 net/ipv6/ip6_tunnel.c t->dev = dev; dev 1344 net/ipv6/ip6_tunnel.c strcpy(t->parms.name, dev->name); dev 1355 net/ipv6/ip6_tunnel.c struct ip6_tnl *t = netdev_priv(dev); dev 1356 net/ipv6/ip6_tunnel.c ip6_tnl_dev_init_gen(dev); dev 1371 net/ipv6/ip6_tunnel.c struct ip6_tnl *t = netdev_priv(dev); dev 1372 net/ipv6/ip6_tunnel.c struct net *net = dev_net(dev); dev 1375 net/ipv6/ip6_tunnel.c ip6_tnl_dev_init_gen(dev); dev 1377 net/ipv6/ip6_tunnel.c dev_hold(dev); dev 1401 net/ipv6/ip6_tunnel.c unregister_netdevice(t->dev); dev 1405 net/ipv6/ip6_tunnel.c unregister_netdevice(t->dev); dev 68 net/ipv6/ip6mr.c #define MIF_EXISTS(idx) (vif6_table[idx].dev != NULL) dev 197 net/ipv6/ip6mr.c const char *name = vif->dev ? vif->dev->name : "none"; dev 375 net/ipv6/ip6mr.c reg_dev = vif6_table[reg_vif_num].dev; dev 386 net/ipv6/ip6mr.c skb->dev = reg_dev; dev 412 net/ipv6/ip6mr.c dev->stats.tx_bytes += skb->len; dev 413 net/ipv6/ip6mr.c dev->stats.tx_packets++; dev 422 net/ipv6/ip6mr.c dev->type = ARPHRD_PIMREG; dev 423 net/ipv6/ip6mr.c dev->mtu = 1500 - sizeof(struct ipv6hdr) - 8; dev 424 net/ipv6/ip6mr.c dev->flags = IFF_NOARP; dev 425 net/ipv6/ip6mr.c dev->hard_start_xmit = reg_vif_xmit; dev 426 net/ipv6/ip6mr.c dev->destructor = free_netdev; dev 431 net/ipv6/ip6mr.c struct net_device *dev; dev 433 net/ipv6/ip6mr.c dev = alloc_netdev(0, "pim6reg", reg_vif_setup); dev 434 net/ipv6/ip6mr.c if (dev == NULL) dev 437 net/ipv6/ip6mr.c if (register_netdevice(dev)) { dev 438 net/ipv6/ip6mr.c free_netdev(dev); dev 441 net/ipv6/ip6mr.c dev->iflink = 0; dev 443 net/ipv6/ip6mr.c if (dev_open(dev)) dev 446 net/ipv6/ip6mr.c dev_hold(dev); dev 447 net/ipv6/ip6mr.c return dev; dev 454 net/ipv6/ip6mr.c unregister_netdevice(dev); dev 466 net/ipv6/ip6mr.c struct net_device *dev; dev 473 net/ipv6/ip6mr.c dev = v->dev; dev 474 net/ipv6/ip6mr.c v->dev = NULL; dev 476 net/ipv6/ip6mr.c if (!dev) { dev 497 net/ipv6/ip6mr.c dev_set_allmulti(dev, -1); dev 500 net/ipv6/ip6mr.c unregister_netdevice(dev); dev 502 net/ipv6/ip6mr.c dev_put(dev); dev 598 net/ipv6/ip6mr.c struct net_device *dev; dev 614 net/ipv6/ip6mr.c dev = ip6mr_reg_vif(); dev 615 net/ipv6/ip6mr.c if (!dev) dev 617 net/ipv6/ip6mr.c err = dev_set_allmulti(dev, 1); dev 619 net/ipv6/ip6mr.c unregister_netdevice(dev); dev 620 net/ipv6/ip6mr.c dev_put(dev); dev 626 net/ipv6/ip6mr.c dev = dev_get_by_index(&init_net, vifc->mif6c_pifi); dev 627 net/ipv6/ip6mr.c if (!dev) dev 629 net/ipv6/ip6mr.c err = dev_set_allmulti(dev, 1); dev 631 net/ipv6/ip6mr.c dev_put(dev); dev 651 net/ipv6/ip6mr.c v->link = dev->ifindex; dev 653 net/ipv6/ip6mr.c v->link = dev->iflink; dev 657 net/ipv6/ip6mr.c v->dev = dev; dev 934 net/ipv6/ip6mr.c struct net_device *dev = ptr; dev 938 net/ipv6/ip6mr.c if (!net_eq(dev_net(dev), &init_net)) dev 946 net/ipv6/ip6mr.c if (v->dev == dev) dev 1386 net/ipv6/ip6mr.c IP6_INC_STATS_BH(dev_net(skb->dst->dev), ip6_dst_idev(skb->dst), dev 1399 net/ipv6/ip6mr.c struct net_device *dev; dev 1403 net/ipv6/ip6mr.c if (vif->dev == NULL) dev 1410 net/ipv6/ip6mr.c vif->dev->stats.tx_bytes += skb->len; dev 1411 net/ipv6/ip6mr.c vif->dev->stats.tx_packets++; dev 1445 net/ipv6/ip6mr.c dev = vif->dev; dev 1446 net/ipv6/ip6mr.c skb->dev = dev; dev 1452 net/ipv6/ip6mr.c if (skb_cow(skb, sizeof(*ipv6h) + LL_RESERVED_SPACE(dev))) dev 1460 net/ipv6/ip6mr.c return NF_HOOK(PF_INET6, NF_INET_FORWARD, skb, skb->dev, dev, dev 1472 net/ipv6/ip6mr.c if (vif6_table[ct].dev == dev) dev 1490 net/ipv6/ip6mr.c if (vif6_table[vif].dev != skb->dev) { dev 1494 net/ipv6/ip6mr.c true_vifi = ip6mr_find_vif(skb->dev); dev 1555 net/ipv6/ip6mr.c vif = ip6mr_find_vif(skb->dev); dev 1580 net/ipv6/ip6mr.c struct net_device *dev = vif6_table[c->mf6c_parent].dev; dev 1584 net/ipv6/ip6mr.c if (dev) dev 1585 net/ipv6/ip6mr.c RTA_PUT(skb, RTA_IIF, 4, &dev->ifindex); dev 1596 net/ipv6/ip6mr.c nhp->rtnh_ifindex = vif6_table[ct].dev->ifindex; dev 1622 net/ipv6/ip6mr.c struct net_device *dev; dev 1630 net/ipv6/ip6mr.c dev = skb->dev; dev 1631 net/ipv6/ip6mr.c if (dev == NULL || (vif = ip6mr_find_vif(dev)) < 0) { dev 154 net/ipv6/mcast.c #define MLD_V1_SEEN(idev) (dev_net((idev)->dev)->ipv6.devconf_all->force_mld_version == 1 || \ dev 177 net/ipv6/mcast.c struct net_device *dev = NULL; dev 208 net/ipv6/mcast.c dev = rt->rt6i_dev; dev 209 net/ipv6/mcast.c dev_hold(dev); dev 213 net/ipv6/mcast.c dev = dev_get_by_index(net, ifindex); dev 215 net/ipv6/mcast.c if (dev == NULL) { dev 220 net/ipv6/mcast.c mc_lst->ifindex = dev->ifindex; dev 229 net/ipv6/mcast.c err = ipv6_dev_mc_inc(dev, addr); dev 233 net/ipv6/mcast.c dev_put(dev); dev 242 net/ipv6/mcast.c dev_put(dev); dev 260 net/ipv6/mcast.c struct net_device *dev; dev 265 net/ipv6/mcast.c dev = dev_get_by_index(net, mc_lst->ifindex); dev 266 net/ipv6/mcast.c if (dev != NULL) { dev 267 net/ipv6/mcast.c struct inet6_dev *idev = in6_dev_get(dev); dev 274 net/ipv6/mcast.c dev_put(dev); dev 290 net/ipv6/mcast.c struct net_device *dev = NULL; dev 298 net/ipv6/mcast.c dev = rt->rt6i_dev; dev 299 net/ipv6/mcast.c dev_hold(dev); dev 303 net/ipv6/mcast.c dev = dev_get_by_index(net, ifindex); dev 305 net/ipv6/mcast.c if (!dev) dev 307 net/ipv6/mcast.c idev = in6_dev_get(dev); dev 309 net/ipv6/mcast.c dev_put(dev); dev 316 net/ipv6/mcast.c dev_put(dev); dev 330 net/ipv6/mcast.c struct net_device *dev; dev 335 net/ipv6/mcast.c dev = dev_get_by_index(net, mc_lst->ifindex); dev 336 net/ipv6/mcast.c if (dev) { dev 337 net/ipv6/mcast.c struct inet6_dev *idev = in6_dev_get(dev); dev 344 net/ipv6/mcast.c dev_put(dev); dev 360 net/ipv6/mcast.c struct net_device *dev; dev 379 net/ipv6/mcast.c dev = idev->dev; dev 486 net/ipv6/mcast.c dev_put(dev); dev 496 net/ipv6/mcast.c struct net_device *dev; dev 516 net/ipv6/mcast.c dev = idev->dev; dev 577 net/ipv6/mcast.c dev_put(dev); dev 590 net/ipv6/mcast.c struct net_device *dev; dev 605 net/ipv6/mcast.c dev = idev->dev; dev 627 net/ipv6/mcast.c dev_put(dev); dev 654 net/ipv6/mcast.c dev_put(dev); dev 707 net/ipv6/mcast.c struct net_device *dev = mc->idev->dev; dev 713 net/ipv6/mcast.c if (ndisc_mc_map(&mc->mca_addr, buf, dev, 0) == 0) dev 714 net/ipv6/mcast.c dev_mc_add(dev, buf, dev->addr_len, 0); dev 718 net/ipv6/mcast.c if (!(dev->flags & IFF_UP) || (mc->mca_flags & MAF_NOREPORT)) dev 733 net/ipv6/mcast.c struct net_device *dev = mc->idev->dev; dev 739 net/ipv6/mcast.c if (ndisc_mc_map(&mc->mca_addr, buf, dev, 0) == 0) dev 740 net/ipv6/mcast.c dev_mc_delete(dev, buf, dev->addr_len, 0); dev 870 net/ipv6/mcast.c idev = in6_dev_get(dev); dev 963 net/ipv6/mcast.c struct inet6_dev *idev = in6_dev_get(dev); dev 1013 net/ipv6/mcast.c idev = in6_dev_get(dev); dev 1175 net/ipv6/mcast.c idev = in6_dev_get(skb->dev); dev 1311 net/ipv6/mcast.c idev = in6_dev_get(skb->dev); dev 1395 net/ipv6/mcast.c struct net *net = dev_net(dev); dev 1407 net/ipv6/mcast.c skb = sock_alloc_send_skb(sk, size + LL_ALLOCATED_SPACE(dev), 1, &err); dev 1412 net/ipv6/mcast.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 1414 net/ipv6/mcast.c if (ipv6_get_lladdr(dev, &addr_buf, IFA_F_TENTATIVE)) { dev 1423 net/ipv6/mcast.c ip6_nd_hdr(sk, skb, dev, saddr, &mld2_all_mcr, NEXTHDR_HOP, 0); dev 1444 net/ipv6/mcast.c struct inet6_dev *idev = in6_dev_get(skb->dev); dev 1445 net/ipv6/mcast.c struct net *net = dev_net(skb->dev); dev 1458 net/ipv6/mcast.c skb->dst = icmp6_dst_alloc(skb->dev, NULL, &ipv6_hdr(skb)->daddr); dev 1467 net/ipv6/mcast.c skb->dev->ifindex); dev 1473 net/ipv6/mcast.c err = NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, skb, NULL, skb->dev, dev 1500 net/ipv6/mcast.c struct net_device *dev = pmc->idev->dev; dev 1505 net/ipv6/mcast.c skb = mld_newpack(dev, dev->mtu); dev 1519 net/ipv6/mcast.c #define AVAILABLE(skb) ((skb) ? ((skb)->dev ? (skb)->dev->mtu - (skb)->len : \ dev 1525 net/ipv6/mcast.c struct net_device *dev = pmc->idev->dev; dev 1554 net/ipv6/mcast.c skb = mld_newpack(dev, dev->mtu); dev 1581 net/ipv6/mcast.c skb = mld_newpack(dev, dev->mtu); dev 1759 net/ipv6/mcast.c struct net *net = dev_net(dev); dev 1774 net/ipv6/mcast.c IP6_INC_STATS(net, __in6_dev_get(dev), dev 1786 net/ipv6/mcast.c skb = sock_alloc_send_skb(sk, LL_ALLOCATED_SPACE(dev) + full_len, 1, &err); dev 1790 net/ipv6/mcast.c IP6_INC_STATS(net, __in6_dev_get(dev), dev 1796 net/ipv6/mcast.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 1798 net/ipv6/mcast.c if (ipv6_get_lladdr(dev, &addr_buf, IFA_F_TENTATIVE)) { dev 1807 net/ipv6/mcast.c ip6_nd_hdr(sk, skb, dev, saddr, snd_addr, NEXTHDR_HOP, payload_len); dev 1822 net/ipv6/mcast.c idev = in6_dev_get(skb->dev); dev 1824 net/ipv6/mcast.c skb->dst = icmp6_dst_alloc(skb->dev, NULL, &ipv6_hdr(skb)->daddr); dev 1832 net/ipv6/mcast.c skb->dev->ifindex); dev 1838 net/ipv6/mcast.c err = NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, skb, NULL, skb->dev, dev 2148 net/ipv6/mcast.c igmp6_send(&ma->mca_addr, ma->idev->dev, ICMPV6_MGM_REPORT); dev 2187 net/ipv6/mcast.c igmp6_send(&ma->mca_addr, ma->idev->dev, dev 2231 net/ipv6/mcast.c igmp6_send(&ma->mca_addr, ma->idev->dev, ICMPV6_MGM_REPORT); dev 2336 net/ipv6/mcast.c struct net_device *dev; dev 2349 net/ipv6/mcast.c for_each_netdev(net, state->dev) { dev 2351 net/ipv6/mcast.c idev = in6_dev_get(state->dev); dev 2376 net/ipv6/mcast.c state->dev = next_net_device(state->dev); dev 2377 net/ipv6/mcast.c if (!state->dev) { dev 2381 net/ipv6/mcast.c state->idev = in6_dev_get(state->dev); dev 2423 net/ipv6/mcast.c state->dev = NULL; dev 2434 net/ipv6/mcast.c state->dev->ifindex, state->dev->name, dev 2465 net/ipv6/mcast.c struct net_device *dev; dev 2481 net/ipv6/mcast.c for_each_netdev(net, state->dev) { dev 2483 net/ipv6/mcast.c idev = in6_dev_get(state->dev); dev 2517 net/ipv6/mcast.c state->dev = next_net_device(state->dev); dev 2518 net/ipv6/mcast.c if (!state->dev) { dev 2522 net/ipv6/mcast.c state->idev = in6_dev_get(state->dev); dev 2577 net/ipv6/mcast.c state->dev = NULL; dev 2595 net/ipv6/mcast.c state->dev->ifindex, state->dev->name, dev 59 net/ipv6/mip6.c icmpv6_send(skb, ICMPV6_PARAMPROB, code, pos, skb->dev); dev 196 net/ipv6/ndisc.c return NDISC_OPT_SPACE(dev->addr_len + ndisc_addr_option_pad(dev->type)); dev 318 net/ipv6/ndisc.c int prepad = ndisc_addr_option_pad(dev->type); dev 319 net/ipv6/ndisc.c if (lladdrlen != NDISC_OPT_SPACE(dev->addr_len + prepad)) dev 326 net/ipv6/ndisc.c switch (dev->type) { dev 339 net/ipv6/ndisc.c ipv6_ib_mc_map(addr, dev->broadcast, buf); dev 343 net/ipv6/ndisc.c memcpy(buf, dev->broadcast, dev->addr_len); dev 361 net/ipv6/ndisc.c return jhash_2words(addr_hash, dev->ifindex, nd_tbl.hash_rnd); dev 367 net/ipv6/ndisc.c struct net_device *dev = neigh->dev; dev 373 net/ipv6/ndisc.c in6_dev = in6_dev_get(dev); dev 385 net/ipv6/ndisc.c if (!dev->header_ops) { dev 392 net/ipv6/ndisc.c ndisc_mc_map(addr, neigh->ha, dev, 1); dev 393 net/ipv6/ndisc.c } else if (dev->flags&(IFF_NOARP|IFF_LOOPBACK)) { dev 395 net/ipv6/ndisc.c memcpy(neigh->ha, dev->dev_addr, dev->addr_len); dev 396 net/ipv6/ndisc.c if (dev->flags&IFF_LOOPBACK) dev 398 net/ipv6/ndisc.c } else if (dev->flags&IFF_POINTOPOINT) { dev 400 net/ipv6/ndisc.c memcpy(neigh->ha, dev->broadcast, dev->addr_len); dev 402 net/ipv6/ndisc.c if (dev->header_ops->cache) dev 419 net/ipv6/ndisc.c struct net_device *dev = n->dev; dev 421 net/ipv6/ndisc.c if (dev == NULL || __in6_dev_get(dev) == NULL) dev 424 net/ipv6/ndisc.c ipv6_dev_mc_inc(dev, &maddr); dev 432 net/ipv6/ndisc.c struct net_device *dev = n->dev; dev 434 net/ipv6/ndisc.c if (dev == NULL || __in6_dev_get(dev) == NULL) dev 437 net/ipv6/ndisc.c ipv6_dev_mc_dec(dev, &maddr); dev 452 net/ipv6/ndisc.c struct net *net = dev_net(dev); dev 463 net/ipv6/ndisc.c icmpv6_flow_init(sk, &fl, type, saddr, daddr, dev->ifindex); dev 465 net/ipv6/ndisc.c dst = icmp6_dst_alloc(dev, neigh, daddr); dev 473 net/ipv6/ndisc.c if (!dev->addr_len) dev 478 net/ipv6/ndisc.c len += ndisc_opt_addr_space(dev); dev 482 net/ipv6/ndisc.c len + LL_ALLOCATED_SPACE(dev)), dev 492 net/ipv6/ndisc.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 493 net/ipv6/ndisc.c ip6_nd_hdr(sk, skb, dev, saddr, daddr, IPPROTO_ICMPV6, len); dev 508 net/ipv6/ndisc.c ndisc_fill_addr_option(opt, llinfo, dev->dev_addr, dev 509 net/ipv6/ndisc.c dev->addr_len, dev->type); dev 518 net/ipv6/ndisc.c idev = in6_dev_get(dst->dev); dev 521 net/ipv6/ndisc.c err = NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, skb, NULL, dst->dev, dev 545 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(dev_net(dev), solicited_addr, dev, 1); dev 552 net/ipv6/ndisc.c if (ipv6_dev_get_saddr(dev_net(dev), dev, daddr, dev 553 net/ipv6/ndisc.c inet6_sk(dev_net(dev)->ipv6.ndisc_sk)->srcprefs, dev 563 net/ipv6/ndisc.c __ndisc_send(dev, neigh, daddr, src_addr, dev 578 net/ipv6/ndisc.c if (ipv6_get_lladdr(dev, &addr_buf, dev 584 net/ipv6/ndisc.c __ndisc_send(dev, neigh, daddr, saddr, dev 595 net/ipv6/ndisc.c int send_sllao = dev->addr_len; dev 607 net/ipv6/ndisc.c struct inet6_ifaddr *ifp = ipv6_get_ifaddr(dev_net(dev), saddr, dev 608 net/ipv6/ndisc.c dev, 1); dev 619 net/ipv6/ndisc.c __ndisc_send(dev, NULL, daddr, saddr, dev 641 net/ipv6/ndisc.c struct net_device *dev = neigh->dev; dev 645 net/ipv6/ndisc.c if (skb && ipv6_chk_addr(dev_net(dev), &ipv6_hdr(skb)->saddr, dev, 1)) dev 656 net/ipv6/ndisc.c ndisc_send_ns(dev, neigh, target, target, saddr); dev 663 net/ipv6/ndisc.c ndisc_send_ns(dev, NULL, target, &mcaddr, saddr); dev 674 net/ipv6/ndisc.c n = __pneigh_lookup(&nd_tbl, dev_net(dev), pkey, dev); dev 691 net/ipv6/ndisc.c struct net_device *dev = skb->dev; dev 726 net/ipv6/ndisc.c lladdr = ndisc_opt_addr_data(ndopts.nd_opts_src_lladdr, dev); dev 747 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); dev 752 net/ipv6/ndisc.c if (dev->type == ARPHRD_IEEE802_TR) { dev 755 net/ipv6/ndisc.c if (((sadr[8] ^ dev->dev_addr[0]) & 0x7f) == 0 && dev 756 net/ipv6/ndisc.c sadr[9] == dev->dev_addr[1] && dev 757 net/ipv6/ndisc.c sadr[10] == dev->dev_addr[2] && dev 758 net/ipv6/ndisc.c sadr[11] == dev->dev_addr[3] && dev 759 net/ipv6/ndisc.c sadr[12] == dev->dev_addr[4] && dev 760 net/ipv6/ndisc.c sadr[13] == dev->dev_addr[5]) { dev 787 net/ipv6/ndisc.c struct net *net = dev_net(dev); dev 789 net/ipv6/ndisc.c idev = in6_dev_get(dev); dev 795 net/ipv6/ndisc.c if (ipv6_chk_acast_addr(net, dev, &msg->target) || dev 798 net/ipv6/ndisc.c (is_router = pndisc_is_router(&msg->target, dev)) >= 0)) { dev 823 net/ipv6/ndisc.c ndisc_send_na(dev, NULL, &in6addr_linklocal_allnodes, &msg->target, dev 837 net/ipv6/ndisc.c neigh = __neigh_lookup(&nd_tbl, saddr, dev, dev 838 net/ipv6/ndisc.c !inc || lladdr || !dev->addr_len); dev 843 net/ipv6/ndisc.c if (neigh || !dev->header_ops) { dev 844 net/ipv6/ndisc.c ndisc_send_na(dev, neigh, saddr, &msg->target, dev 869 net/ipv6/ndisc.c struct net_device *dev = skb->dev; dev 898 net/ipv6/ndisc.c lladdr = ndisc_opt_addr_data(ndopts.nd_opts_tgt_lladdr, dev); dev 905 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); dev 918 net/ipv6/ndisc.c ifp->idev->dev->name); dev 922 net/ipv6/ndisc.c neigh = neigh_lookup(&nd_tbl, &msg->target, dev); dev 926 net/ipv6/ndisc.c struct net *net = dev_net(dev); dev 936 net/ipv6/ndisc.c if (lladdr && !memcmp(lladdr, dev->dev_addr, dev->addr_len) && dev 938 net/ipv6/ndisc.c pneigh_lookup(&nd_tbl, net, &msg->target, dev, 0)) { dev 955 net/ipv6/ndisc.c rt = rt6_get_dflt_router(saddr, dev); dev 978 net/ipv6/ndisc.c idev = in6_dev_get(skb->dev); dev 1005 net/ipv6/ndisc.c skb->dev); dev 1010 net/ipv6/ndisc.c neigh = __neigh_lookup(&nd_tbl, saddr, skb->dev, 1); dev 1028 net/ipv6/ndisc.c struct net *net = dev_net(ra->dev); dev 1047 net/ipv6/ndisc.c ndmsg->nduseropt_ifindex = ra->dev->ifindex; dev 1110 net/ipv6/ndisc.c in6_dev = in6_dev_get(skb->dev); dev 1114 net/ipv6/ndisc.c skb->dev->name); dev 1167 net/ipv6/ndisc.c rt = rt6_get_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev); dev 1182 net/ipv6/ndisc.c rt = rt6_add_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev, pref); dev 1259 net/ipv6/ndisc.c skb->dev, 1); dev 1264 net/ipv6/ndisc.c skb->dev); dev 1292 net/ipv6/ndisc.c rt6_route_rcv(skb->dev, (u8*)p, (p->nd_opt_len) << 3, dev 1309 net/ipv6/ndisc.c addrconf_prefix_rcv(skb->dev, (u8*)p, (p->nd_opt_len) << 3); dev 1320 net/ipv6/ndisc.c if (mtu < IPV6_MIN_MTU || mtu > skb->dev->mtu) { dev 1330 net/ipv6/ndisc.c rt6_mtu_change(skb->dev, mtu); dev 1411 net/ipv6/ndisc.c in6_dev = in6_dev_get(skb->dev); dev 1432 net/ipv6/ndisc.c skb->dev); dev 1441 net/ipv6/ndisc.c neigh = __neigh_lookup(&nd_tbl, target, skb->dev, 1); dev 1454 net/ipv6/ndisc.c struct net_device *dev = skb->dev; dev 1455 net/ipv6/ndisc.c struct net *net = dev_net(dev); dev 1471 net/ipv6/ndisc.c if (ipv6_get_lladdr(dev, &saddr_buf, IFA_F_TENTATIVE)) { dev 1474 net/ipv6/ndisc.c dev->name); dev 1486 net/ipv6/ndisc.c &saddr_buf, &ipv6_hdr(skb)->saddr, dev->ifindex); dev 1509 net/ipv6/ndisc.c if (dev->addr_len) { dev 1512 net/ipv6/ndisc.c memcpy(ha_buf, neigh->ha, dev->addr_len); dev 1515 net/ipv6/ndisc.c len += ndisc_opt_addr_space(dev); dev 1527 net/ipv6/ndisc.c len + LL_ALLOCATED_SPACE(dev)), dev 1537 net/ipv6/ndisc.c skb_reserve(buff, LL_RESERVED_SPACE(dev)); dev 1538 net/ipv6/ndisc.c ip6_nd_hdr(sk, buff, dev, &saddr_buf, &ipv6_hdr(skb)->saddr, dev 1565 net/ipv6/ndisc.c dev->addr_len, dev->type); dev 1583 net/ipv6/ndisc.c idev = in6_dev_get(dst->dev); dev 1585 net/ipv6/ndisc.c err = NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, buff, NULL, dst->dev, dev 1656 net/ipv6/ndisc.c struct net_device *dev = ptr; dev 1657 net/ipv6/ndisc.c struct net *net = dev_net(dev); dev 1661 net/ipv6/ndisc.c neigh_changeaddr(&nd_tbl, dev); dev 1665 net/ipv6/ndisc.c neigh_ifdown(&nd_tbl, dev); dev 1701 net/ipv6/ndisc.c struct net_device *dev = ctl->extra1; dev 1707 net/ipv6/ndisc.c ndisc_warn_deprecated_sysctl(ctl, "syscall", dev ? dev->name : "default"); dev 1723 net/ipv6/ndisc.c if (write && ret == 0 && dev && (idev = in6_dev_get(dev)) != NULL) { dev 1738 net/ipv6/ndisc.c struct net_device *dev = ctl->extra1; dev 1744 net/ipv6/ndisc.c ndisc_warn_deprecated_sysctl(ctl, "procfs", dev ? dev->name : "default"); dev 1761 net/ipv6/ndisc.c dev && (idev = in6_dev_get(dev)) != NULL) { dev 26 net/ipv6/netfilter.c dst = ip6_route_output(dev_net(skb->dst->dev), skb->sk, &fl); dev 215 net/ipv6/netfilter/ip6_queue.c if (entry->indev && entry->skb->dev) { dev 216 net/ipv6/netfilter/ip6_queue.c pmsg->hw_type = entry->skb->dev->type; dev 481 net/ipv6/netfilter/ip6_queue.c struct net_device *dev = ptr; dev 483 net/ipv6/netfilter/ip6_queue.c if (!net_eq(dev_net(dev), &init_net)) dev 488 net/ipv6/netfilter/ip6_queue.c ipq_dev_drop(dev->ifindex); dev 408 net/ipv6/netfilter/ip6t_LOG.c if (skb->dev && (len = skb->dev->hard_header_len) && dev 413 net/ipv6/netfilter/ip6t_LOG.c if (skb->dev->type == ARPHRD_SIT && dev 424 net/ipv6/netfilter/ip6t_LOG.c if (skb->dev->type == ARPHRD_SIT) { dev 103 net/ipv6/netfilter/ip6t_REJECT.c hh_len = (dst->dev->hard_header_len + 15)&~15; dev 169 net/ipv6/netfilter/ip6t_REJECT.c if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) dev 170 net/ipv6/netfilter/ip6t_REJECT.c skb_in->dev = net->loopback_dev; dev 353 net/ipv6/netfilter/nf_conntrack_reasm.c skb->dev = NULL; dev 461 net/ipv6/netfilter/nf_conntrack_reasm.c head->dev = dev; dev 567 net/ipv6/netfilter/nf_conntrack_reasm.c struct net_device *dev = skb->dev; dev 627 net/ipv6/netfilter/nf_conntrack_reasm.c ret_skb = nf_ct_frag6_reasm(fq, dev); dev 209 net/ipv6/proc.c seq_printf(seq, "%-32s\t%u\n", "ifIndex", idev->dev->ifindex); dev 234 net/ipv6/proc.c if (!idev || !idev->dev) dev 237 net/ipv6/proc.c net = dev_net(idev->dev); dev 241 net/ipv6/proc.c p = proc_create_data(idev->dev->name, S_IRUGO, dev 253 net/ipv6/proc.c struct net *net = dev_net(idev->dev); dev 173 net/ipv6/raw.c net = dev_net(skb->dev); dev 262 net/ipv6/raw.c struct net_device *dev = NULL; dev 277 net/ipv6/raw.c dev = dev_get_by_index(sock_net(sk), sk->sk_bound_dev_if); dev 278 net/ipv6/raw.c if (!dev) { dev 291 net/ipv6/raw.c dev, 0)) { dev 292 net/ipv6/raw.c if (dev) dev 293 net/ipv6/raw.c dev_put(dev); dev 297 net/ipv6/raw.c if (dev) dev 298 net/ipv6/raw.c dev_put(dev); dev 362 net/ipv6/raw.c net = dev_net(skb->dev); dev 612 net/ipv6/raw.c if (length > rt->u.dst.dev->mtu) { dev 613 net/ipv6/raw.c ipv6_local_error(sk, EMSGSIZE, fl, rt->u.dst.dev->mtu); dev 620 net/ipv6/raw.c length + LL_ALLOCATED_SPACE(rt->u.dst.dev) + 15, dev 624 net/ipv6/raw.c skb_reserve(skb, LL_RESERVED_SPACE(rt->u.dst.dev)); dev 642 net/ipv6/raw.c err = NF_HOOK(PF_INET6, NF_INET_LOCAL_OUT, skb, NULL, rt->u.dst.dev, dev 198 net/ipv6/reassembly.c struct net_device *dev = NULL; dev 211 net/ipv6/reassembly.c dev = dev_get_by_index(net, fq->iif); dev 212 net/ipv6/reassembly.c if (!dev) dev 216 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, __in6_dev_get(dev), IPSTATS_MIB_REASMTIMEOUT); dev 217 net/ipv6/reassembly.c IP6_INC_STATS_BH(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS); dev 229 net/ipv6/reassembly.c fq->q.fragments->dev = dev; dev 230 net/ipv6/reassembly.c icmpv6_send(fq->q.fragments, ICMPV6_TIME_EXCEED, ICMPV6_EXC_FRAGTIME, 0, dev); dev 232 net/ipv6/reassembly.c if (dev) dev 233 net/ipv6/reassembly.c dev_put(dev); dev 268 net/ipv6/reassembly.c struct net_device *dev; dev 270 net/ipv6/reassembly.c struct net *net = dev_net(skb->dst->dev); dev 410 net/ipv6/reassembly.c dev = skb->dev; dev 411 net/ipv6/reassembly.c if (dev) { dev 412 net/ipv6/reassembly.c fq->iif = dev->ifindex; dev 413 net/ipv6/reassembly.c skb->dev = NULL; dev 429 net/ipv6/reassembly.c return ip6_frag_reasm(fq, prev, dev); dev 542 net/ipv6/reassembly.c head->dev = dev; dev 554 net/ipv6/reassembly.c IP6_INC_STATS_BH(dev_net(dev), dev 555 net/ipv6/reassembly.c __in6_dev_get(dev), IPSTATS_MIB_REASMOKS); dev 569 net/ipv6/reassembly.c IP6_INC_STATS_BH(dev_net(dev), dev 570 net/ipv6/reassembly.c __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS); dev 580 net/ipv6/reassembly.c struct net *net = dev_net(skb->dst->dev); dev 210 net/ipv6/route.c dev_net(dev)->loopback_dev; dev 212 net/ipv6/route.c if (dev != loopback_dev && idev != NULL && idev->dev == dev) { dev 251 net/ipv6/route.c struct net_device *dev = sprt->rt6i_dev; dev 254 net/ipv6/route.c if (dev->ifindex == oif) dev 256 net/ipv6/route.c if (dev->flags & IFF_LOOPBACK) { dev 258 net/ipv6/route.c sprt->rt6i_idev->dev->ifindex != oif) { dev 262 net/ipv6/route.c local->rt6i_idev->dev->ifindex == oif)) dev 268 net/ipv6/route.c if (ipv6_chk_addr(net, saddr, dev, dev 326 net/ipv6/route.c struct net_device *dev = rt->rt6i_dev; dev 327 net/ipv6/route.c if (!oif || dev->ifindex == oif) dev 329 net/ipv6/route.c if ((dev->flags & IFF_LOOPBACK) && dev 330 net/ipv6/route.c rt->rt6i_idev && rt->rt6i_idev->dev->ifindex == oif) dev 455 net/ipv6/route.c struct net *net = dev_net(dev); dev 498 net/ipv6/route.c dev->ifindex); dev 506 net/ipv6/route.c rt = rt6_add_route_info(net, prefix, rinfo->prefix_len, gwaddr, dev->ifindex, dev 753 net/ipv6/route.c struct net *net = dev_net(skb->dev); dev 756 net/ipv6/route.c .iif = skb->dev->ifindex, dev 821 net/ipv6/route.c new->dev = ort->u.dst.dev; dev 822 net/ipv6/route.c if (new->dev) dev 823 net/ipv6/route.c dev_hold(new->dev); dev 880 net/ipv6/route.c icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_ADDR_UNREACH, 0, skb->dev); dev 935 net/ipv6/route.c struct inet6_dev *idev = in6_dev_get(dev); dev 936 net/ipv6/route.c struct net *net = dev_net(dev); dev 947 net/ipv6/route.c dev_hold(dev); dev 951 net/ipv6/route.c neigh = ndisc_get_neigh(dev, addr); dev 953 net/ipv6/route.c rt->rt6i_dev = dev; dev 1060 net/ipv6/route.c idev = in6_dev_get(dev); dev 1072 net/ipv6/route.c struct net_device *dev = dst->dev; dev 1073 net/ipv6/route.c struct inet6_dev *idev = in6_dev_get(dev); dev 1078 net/ipv6/route.c hoplimit = dev_net(dev)->ipv6.devconf_all->hop_limit; dev 1092 net/ipv6/route.c struct net_device *dev = NULL; dev 1105 net/ipv6/route.c dev = dev_get_by_index(net, cfg->fc_ifindex); dev 1106 net/ipv6/route.c if (!dev) dev 1108 net/ipv6/route.c idev = in6_dev_get(dev); dev 1163 net/ipv6/route.c (dev && (dev->flags&IFF_LOOPBACK) && !(addr_type&IPV6_ADDR_LOOPBACK))) { dev 1165 net/ipv6/route.c if (dev != net->loopback_dev) { dev 1166 net/ipv6/route.c if (dev) { dev 1167 net/ipv6/route.c dev_put(dev); dev 1170 net/ipv6/route.c dev = net->loopback_dev; dev 1171 net/ipv6/route.c dev_hold(dev); dev 1172 net/ipv6/route.c idev = in6_dev_get(dev); dev 1212 net/ipv6/route.c if (dev) { dev 1213 net/ipv6/route.c if (dev != grt->rt6i_dev) { dev 1218 net/ipv6/route.c dev = grt->rt6i_dev; dev 1220 net/ipv6/route.c dev_hold(dev); dev 1231 net/ipv6/route.c if (dev == NULL || (dev->flags&IFF_LOOPBACK)) dev 1236 net/ipv6/route.c if (dev == NULL) dev 1240 net/ipv6/route.c rt->rt6i_nexthop = __neigh_lookup_errno(&nd_tbl, &rt->rt6i_gateway, dev); dev 1272 net/ipv6/route.c rt->u.dst.metrics[RTAX_MTU-1] = ipv6_get_mtu(dev); dev 1275 net/ipv6/route.c rt->u.dst.dev = dev; dev 1279 net/ipv6/route.c cfg->fc_nlinfo.nl_net = dev_net(dev); dev 1284 net/ipv6/route.c if (dev) dev 1285 net/ipv6/route.c dev_put(dev); dev 1428 net/ipv6/route.c struct net *net = dev_net(dev); dev 1431 net/ipv6/route.c .oif = dev->ifindex, dev 1455 net/ipv6/route.c struct net *net = dev_net(neigh->dev); dev 1457 net/ipv6/route.c rt = ip6_route_redirect(dest, src, saddr, neigh->dev); dev 1503 net/ipv6/route.c nrt->u.dst.metrics[RTAX_MTU-1] = ipv6_get_mtu(neigh->dev); dev 1504 net/ipv6/route.c nrt->u.dst.metrics[RTAX_ADVMSS-1] = ipv6_advmss(dev_net(neigh->dev), dev 1533 net/ipv6/route.c struct net *net = dev_net(dev); dev 1536 net/ipv6/route.c rt = rt6_lookup(net, daddr, saddr, dev->ifindex, 0); dev 1619 net/ipv6/route.c rt->u.dst.dev = ort->u.dst.dev; dev 1620 net/ipv6/route.c if (rt->u.dst.dev) dev 1621 net/ipv6/route.c dev_hold(rt->u.dst.dev); dev 1709 net/ipv6/route.c table = fib6_get_table(dev_net(dev), RT6_TABLE_DFLT); dev 1715 net/ipv6/route.c if (dev == rt->rt6i_dev && dev 1733 net/ipv6/route.c .fc_ifindex = dev->ifindex, dev 1738 net/ipv6/route.c .fc_nlinfo.nl_net = dev_net(dev), dev 1745 net/ipv6/route.c return rt6_get_dflt_router(gwaddr, dev); dev 1841 net/ipv6/route.c IP6_INC_STATS(dev_net(dst->dev), ip6_dst_idev(dst), dev 1847 net/ipv6/route.c IP6_INC_STATS(dev_net(dst->dev), ip6_dst_idev(dst), dev 1851 net/ipv6/route.c icmpv6_send(skb, ICMPV6_DEST_UNREACH, code, 0, skb->dev); dev 1863 net/ipv6/route.c skb->dev = skb->dst->dev; dev 1876 net/ipv6/route.c skb->dev = skb->dst->dev; dev 1890 net/ipv6/route.c struct net *net = dev_net(idev->dev); dev 1930 net/ipv6/route.c struct net_device *dev; dev 1936 net/ipv6/route.c struct net_device *dev = ((struct arg_dev_net *)arg)->dev; dev 1939 net/ipv6/route.c if (((void *)rt->rt6i_dev == dev || dev == NULL) && dev 1950 net/ipv6/route.c .dev = dev, dev 1960 net/ipv6/route.c struct net_device *dev; dev 1968 net/ipv6/route.c struct net *net = dev_net(arg->dev); dev 1976 net/ipv6/route.c idev = __in6_dev_get(arg->dev); dev 1994 net/ipv6/route.c if (rt->rt6i_dev == arg->dev && dev 2008 net/ipv6/route.c .dev = dev, dev 2012 net/ipv6/route.c fib6_clean_all(dev_net(dev), rt6_mtu_change_route, 0, &arg); dev 2216 net/ipv6/route.c if (ipv6_dev_get_saddr(net, idev ? idev->dev : NULL, dev 2227 net/ipv6/route.c if (rt->u.dst.dev) dev 2305 net/ipv6/route.c struct net_device *dev; dev 2306 net/ipv6/route.c dev = __dev_get_by_index(net, iif); dev 2307 net/ipv6/route.c if (!dev) { dev 2373 net/ipv6/route.c struct net_device *dev = (struct net_device *)data; dev 2374 net/ipv6/route.c struct net *net = dev_net(dev); dev 2376 net/ipv6/route.c if (event == NETDEV_REGISTER && (dev->flags & IFF_LOOPBACK)) { dev 2377 net/ipv6/route.c net->ipv6.ip6_null_entry->u.dst.dev = dev; dev 2378 net/ipv6/route.c net->ipv6.ip6_null_entry->rt6i_idev = in6_dev_get(dev); dev 2380 net/ipv6/route.c net->ipv6.ip6_prohibit_entry->u.dst.dev = dev; dev 2381 net/ipv6/route.c net->ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(dev); dev 2382 net/ipv6/route.c net->ipv6.ip6_blk_hole_entry->u.dst.dev = dev; dev 2383 net/ipv6/route.c net->ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(dev); dev 2729 net/ipv6/route.c init_net.ipv6.ip6_null_entry->u.dst.dev = init_net.loopback_dev; dev 2732 net/ipv6/route.c init_net.ipv6.ip6_prohibit_entry->u.dst.dev = init_net.loopback_dev; dev 2734 net/ipv6/route.c init_net.ipv6.ip6_blk_hole_entry->u.dst.dev = init_net.loopback_dev; dev 92 net/ipv6/sit.c remote == t->parms.iph.daddr && (t->dev->flags&IFF_UP)) dev 96 net/ipv6/sit.c if (remote == t->parms.iph.daddr && (t->dev->flags&IFF_UP)) dev 100 net/ipv6/sit.c if (local == t->parms.iph.saddr && (t->dev->flags&IFF_UP)) dev 103 net/ipv6/sit.c if ((t = sitn->tunnels_wc[0]) != NULL && (t->dev->flags&IFF_UP)) dev 163 net/ipv6/sit.c struct net_device *dev; dev 179 net/ipv6/sit.c dev = alloc_netdev(sizeof(*t), name, ipip6_tunnel_setup); dev 180 net/ipv6/sit.c if (dev == NULL) dev 183 net/ipv6/sit.c dev_net_set(dev, net); dev 186 net/ipv6/sit.c if (dev_alloc_name(dev, name) < 0) dev 190 net/ipv6/sit.c nt = netdev_priv(dev); dev 191 net/ipv6/sit.c dev->init = ipip6_tunnel_init; dev 195 net/ipv6/sit.c dev->priv_flags |= IFF_ISATAP; dev 197 net/ipv6/sit.c if (register_netdevice(dev) < 0) dev 200 net/ipv6/sit.c dev_hold(dev); dev 206 net/ipv6/sit.c free_netdev(dev); dev 377 net/ipv6/sit.c ipv6_chk_prefix(addr6, t->dev)) dev 388 net/ipv6/sit.c struct net *net = dev_net(dev); dev 391 net/ipv6/sit.c if (dev == sitn->fb_tunnel_dev) { dev 395 net/ipv6/sit.c dev_put(dev); dev 397 net/ipv6/sit.c ipip6_tunnel_unlink(sitn, netdev_priv(dev)); dev 398 net/ipv6/sit.c ipip6_tunnel_del_prl(netdev_priv(dev), NULL); dev 399 net/ipv6/sit.c dev_put(dev); dev 448 net/ipv6/sit.c t = ipip6_tunnel_lookup(dev_net(skb->dev), iph->daddr, iph->saddr); dev 483 net/ipv6/sit.c if ((tunnel = ipip6_tunnel_lookup(dev_net(skb->dev), dev 492 net/ipv6/sit.c if ((tunnel->dev->priv_flags & IFF_ISATAP) && dev 494 net/ipv6/sit.c tunnel->dev->stats.rx_errors++; dev 499 net/ipv6/sit.c tunnel->dev->stats.rx_packets++; dev 500 net/ipv6/sit.c tunnel->dev->stats.rx_bytes += skb->len; dev 501 net/ipv6/sit.c skb->dev = tunnel->dev; dev 539 net/ipv6/sit.c struct ip_tunnel *tunnel = netdev_priv(dev); dev 540 net/ipv6/sit.c struct net_device_stats *stats = &tunnel->dev->stats; dev 562 net/ipv6/sit.c if (dev->priv_flags & IFF_ISATAP) { dev 620 net/ipv6/sit.c if (ip_route_output_key(dev_net(dev), &rt, &fl)) { dev 630 net/ipv6/sit.c tdev = rt->u.dst.dev; dev 632 net/ipv6/sit.c if (tdev == dev) { dev 641 net/ipv6/sit.c mtu = skb->dst ? dst_mtu(skb->dst) : dev->mtu; dev 654 net/ipv6/sit.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, dev); dev 738 net/ipv6/sit.c tunnel = netdev_priv(dev); dev 749 net/ipv6/sit.c if (!ip_route_output_key(dev_net(dev), &rt, &fl)) { dev 750 net/ipv6/sit.c tdev = rt->u.dst.dev; dev 753 net/ipv6/sit.c dev->flags |= IFF_POINTOPOINT; dev 757 net/ipv6/sit.c tdev = __dev_get_by_index(dev_net(dev), tunnel->parms.link); dev 760 net/ipv6/sit.c dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr); dev 761 net/ipv6/sit.c dev->mtu = tdev->mtu - sizeof(struct iphdr); dev 762 net/ipv6/sit.c if (dev->mtu < IPV6_MIN_MTU) dev 763 net/ipv6/sit.c dev->mtu = IPV6_MIN_MTU; dev 765 net/ipv6/sit.c dev->iflink = tunnel->parms.link; dev 775 net/ipv6/sit.c struct net *net = dev_net(dev); dev 781 net/ipv6/sit.c if (dev == sitn->fb_tunnel_dev) { dev 789 net/ipv6/sit.c t = netdev_priv(dev); dev 814 net/ipv6/sit.c if (dev != sitn->fb_tunnel_dev && cmd == SIOCCHGTUNNEL) { dev 816 net/ipv6/sit.c if (t->dev != dev) { dev 821 net/ipv6/sit.c if (((dev->flags&IFF_POINTOPOINT) && !p.iph.daddr) || dev 822 net/ipv6/sit.c (!(dev->flags&IFF_POINTOPOINT) && p.iph.daddr)) { dev 826 net/ipv6/sit.c t = netdev_priv(dev); dev 830 net/ipv6/sit.c memcpy(dev->dev_addr, &p.iph.saddr, 4); dev 831 net/ipv6/sit.c memcpy(dev->broadcast, &p.iph.daddr, 4); dev 833 net/ipv6/sit.c netdev_state_change(dev); dev 844 net/ipv6/sit.c ipip6_tunnel_bind_dev(dev); dev 845 net/ipv6/sit.c netdev_state_change(dev); dev 859 net/ipv6/sit.c if (dev == sitn->fb_tunnel_dev) { dev 869 net/ipv6/sit.c dev = t->dev; dev 871 net/ipv6/sit.c unregister_netdevice(dev); dev 877 net/ipv6/sit.c if (dev == sitn->fb_tunnel_dev) dev 880 net/ipv6/sit.c if (!(t = netdev_priv(dev))) dev 892 net/ipv6/sit.c if (dev == sitn->fb_tunnel_dev) dev 898 net/ipv6/sit.c if (!(t = netdev_priv(dev))) dev 910 net/ipv6/sit.c netdev_state_change(dev); dev 925 net/ipv6/sit.c dev->mtu = new_mtu; dev 931 net/ipv6/sit.c dev->uninit = ipip6_tunnel_uninit; dev 932 net/ipv6/sit.c dev->destructor = free_netdev; dev 933 net/ipv6/sit.c dev->hard_start_xmit = ipip6_tunnel_xmit; dev 934 net/ipv6/sit.c dev->do_ioctl = ipip6_tunnel_ioctl; dev 935 net/ipv6/sit.c dev->change_mtu = ipip6_tunnel_change_mtu; dev 937 net/ipv6/sit.c dev->type = ARPHRD_SIT; dev 938 net/ipv6/sit.c dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); dev 939 net/ipv6/sit.c dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr); dev 940 net/ipv6/sit.c dev->flags = IFF_NOARP; dev 941 net/ipv6/sit.c dev->iflink = 0; dev 942 net/ipv6/sit.c dev->addr_len = 4; dev 943 net/ipv6/sit.c dev->features |= NETIF_F_NETNS_LOCAL; dev 950 net/ipv6/sit.c tunnel = netdev_priv(dev); dev 952 net/ipv6/sit.c tunnel->dev = dev; dev 953 net/ipv6/sit.c strcpy(tunnel->parms.name, dev->name); dev 955 net/ipv6/sit.c memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4); dev 956 net/ipv6/sit.c memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4); dev 958 net/ipv6/sit.c ipip6_tunnel_bind_dev(dev); dev 965 net/ipv6/sit.c struct ip_tunnel *tunnel = netdev_priv(dev); dev 967 net/ipv6/sit.c struct net *net = dev_net(dev); dev 970 net/ipv6/sit.c tunnel->dev = dev; dev 971 net/ipv6/sit.c strcpy(tunnel->parms.name, dev->name); dev 978 net/ipv6/sit.c dev_hold(dev); dev 998 net/ipv6/sit.c unregister_netdevice(t->dev); dev 327 net/ipv6/tcp_ipv6.c struct net *net = dev_net(skb->dev); dev 330 net/ipv6/tcp_ipv6.c th->dest, &hdr->saddr, th->source, skb->dev->ifindex); dev 333 net/ipv6/tcp_ipv6.c ICMP6_INC_STATS_BH(net, __in6_dev_get(skb->dev), dev 951 net/ipv6/tcp_ipv6.c struct net *net = dev_net(skb->dst->dev); dev 1589 net/ipv6/tcp_ipv6.c struct net *net = dev_net(skb->dev); dev 1635 net/ipv6/tcp_ipv6.c skb->dev = NULL; dev 1700 net/ipv6/tcp_ipv6.c sk2 = inet6_lookup_listener(dev_net(skb->dev), &tcp_hashinfo, dev 101 net/ipv6/tunnel6.c icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0, skb->dev); dev 119 net/ipv6/tunnel6.c icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0, skb->dev); dev 120 net/ipv6/udp.c return __udp6_lib_lookup(dev_net(skb->dst->dev), &iph->saddr, sport, dev 252 net/ipv6/udp.c sk = __udp6_lib_lookup(dev_net(skb->dev), daddr, uh->dest, dev 455 net/ipv6/udp.c struct net_device *dev = skb->dev; dev 458 net/ipv6/udp.c struct net *net = dev_net(skb->dev); dev 517 net/ipv6/udp.c icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0, dev); dev 45 net/ipv6/xfrm6_input.c NF_HOOK(PF_INET6, NF_INET_PRE_ROUTING, skb, skb->dev, NULL, dev 40 net/ipv6/xfrm6_output.c skb->dev = dst->dev; dev 41 net/ipv6/xfrm6_output.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); dev 92 net/ipv6/xfrm6_output.c return NF_HOOK(PF_INET6, NF_INET_POST_ROUTING, skb, NULL, skb->dst->dev, dev 55 net/ipv6/xfrm6_policy.c struct net_device *dev; dev 61 net/ipv6/xfrm6_policy.c dev = ip6_dst_idev(dst)->dev; dev 62 net/ipv6/xfrm6_policy.c ipv6_dev_get_saddr(dev_net(dev), dev, dev 122 net/ipv6/xfrm6_policy.c xdst->u.dst.dev = dev; dev 123 net/ipv6/xfrm6_policy.c dev_hold(dev); dev 125 net/ipv6/xfrm6_policy.c xdst->u.rt6.rt6i_idev = in6_dev_get(rt->u.dst.dev); dev 250 net/ipv6/xfrm6_policy.c if (xdst->u.rt6.rt6i_idev->dev == dev) { dev 252 net/ipv6/xfrm6_policy.c in6_dev_get(dev_net(dev)->loopback_dev); dev 265 net/ipv6/xfrm6_policy.c xfrm_dst_ifdown(dst, dev); dev 173 net/ipx/af_ipx.c if (i->if_dev == dev && i->if_dlink_type == datalink) dev 186 net/ipx/af_ipx.c i = __ipxitf_find_using_phys(dev, datalink); dev 335 net/ipx/af_ipx.c struct net_device *dev = ptr; dev 338 net/ipx/af_ipx.c if (!net_eq(dev_net(dev), &init_net)) dev 346 net/ipx/af_ipx.c if (i->if_dev == dev) { dev 584 net/ipx/af_ipx.c struct net_device *dev = intrfc->if_dev; dev 609 net/ipx/af_ipx.c if (!dl || !dev || dev->flags & IFF_LOOPBACK) dev 666 net/ipx/af_ipx.c addr_len = dev->addr_len; dev 668 net/ipx/af_ipx.c memcpy(dest_node, dev->broadcast, addr_len); dev 678 net/ipx/af_ipx.c skb->dev = dev; dev 890 net/ipx/af_ipx.c intrfc->if_dev = dev; dev 955 net/ipx/af_ipx.c struct net_device *dev; dev 980 net/ipx/af_ipx.c dev = dev_get_by_name(&init_net, idef->ipx_device); dev 982 net/ipx/af_ipx.c if (!dev) dev 995 net/ipx/af_ipx.c if (dev->type != ARPHRD_IEEE802) { dev 1019 net/ipx/af_ipx.c if (!(dev->flags & IFF_UP)) dev 1024 net/ipx/af_ipx.c if (dev->addr_len > IPX_NODE_LEN) dev 1027 net/ipx/af_ipx.c intrfc = ipxitf_find_using_phys(dev, dlink_type); dev 1030 net/ipx/af_ipx.c intrfc = ipxitf_alloc(dev, idef->ipx_network, dlink_type, dev 1031 net/ipx/af_ipx.c datalink, 0, dev->hard_header_len + dev 1042 net/ipx/af_ipx.c memcpy(intrfc->if_node + IPX_NODE_LEN - dev->addr_len, dev 1043 net/ipx/af_ipx.c dev->dev_addr, dev->addr_len); dev 1061 net/ipx/af_ipx.c dev_put(dev); dev 1068 net/ipx/af_ipx.c struct net_device *dev = NULL; dev 1088 net/ipx/af_ipx.c dev = __dev_get_by_name(&init_net, idef->ipx_device); dev 1090 net/ipx/af_ipx.c if (!dev) dev 1093 net/ipx/af_ipx.c intrfc = __ipxitf_find_using_phys(dev, dlink_type); dev 1111 net/ipx/af_ipx.c if (!dev) dev 1115 net/ipx/af_ipx.c if (dev->addr_len > IPX_NODE_LEN) dev 1126 net/ipx/af_ipx.c intrfc = ipxitf_alloc(dev, 0, dlink_type, datalink, 0, dev 1127 net/ipx/af_ipx.c dev->hard_header_len + datalink->header_length); dev 1131 net/ipx/af_ipx.c memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev 1132 net/ipx/af_ipx.c dev->dev_addr, dev->addr_len); dev 1136 net/ipx/af_ipx.c dev_hold(dev); dev 1177 net/ipx/af_ipx.c struct net_device *dev; dev 1183 net/ipx/af_ipx.c dev = __dev_get_by_name(&init_net, ifr.ifr_name); dev 1185 net/ipx/af_ipx.c if (!dev) dev 1187 net/ipx/af_ipx.c ipxif = ipxitf_find_using_phys(dev, dev 1639 net/ipx/af_ipx.c if (!net_eq(dev_net(dev), &init_net)) dev 1669 net/ipx/af_ipx.c intrfc = ipxitf_find_using_phys(dev, pt->type); dev 1673 net/ipx/af_ipx.c intrfc = ipxitf_auto_create(dev, pt->type); dev 112 net/irda/irda_device.c self = (struct irlap_cb *) dev->atalk_ptr; dev 152 net/irda/irda_device.c if (!dev->do_ioctl) { dev 158 net/irda/irda_device.c ret = dev->do_ioctl(dev, (struct ifreq *) &req, SIOCGRECEIVING); dev 276 net/irda/irda_device.c dev->hard_header_len = 0; dev 277 net/irda/irda_device.c dev->addr_len = LAP_ALEN; dev 279 net/irda/irda_device.c dev->type = ARPHRD_IRDA; dev 280 net/irda/irda_device.c dev->tx_queue_len = 8; /* Window size + 1 s-frame */ dev 282 net/irda/irda_device.c memset(dev->broadcast, 0xff, LAP_ALEN); dev 284 net/irda/irda_device.c dev->mtu = 2048; dev 285 net/irda/irda_device.c dev->flags = IFF_NOARP; dev 527 net/irda/irlan/irlan_client.c self->dev->dev_addr[i] = bytes[i]; dev 200 net/irda/irlan/irlan_common.c struct net_device *dev; dev 206 net/irda/irlan/irlan_common.c dev = alloc_irlandev(eth ? "eth%d" : "irlan%d"); dev 207 net/irda/irlan/irlan_common.c if (!dev) dev 210 net/irda/irlan/irlan_common.c self = dev->priv; dev 211 net/irda/irlan/irlan_common.c self->dev = dev; dev 227 net/irda/irlan/irlan_common.c dev->dev_addr[0] = 0x40; dev 228 net/irda/irlan/irlan_common.c dev->dev_addr[1] = 0x00; dev 229 net/irda/irlan/irlan_common.c dev->dev_addr[2] = 0x00; dev 230 net/irda/irlan/irlan_common.c dev->dev_addr[3] = 0x00; dev 231 net/irda/irlan/irlan_common.c get_random_bytes(dev->dev_addr+4, 1); dev 232 net/irda/irlan/irlan_common.c get_random_bytes(dev->dev_addr+5, 1); dev 246 net/irda/irlan/irlan_common.c if (register_netdev(dev)) { dev 250 net/irda/irlan/irlan_common.c free_netdev(dev); dev 287 net/irda/irlan/irlan_common.c unregister_netdevice(self->dev); dev 351 net/irda/irlan/irlan_common.c netif_start_queue(self->dev); /* Clear reason */ dev 387 net/irda/irlan/irlan_common.c netif_start_queue(self->dev); dev 1181 net/irda/irlan/irlan_common.c self->dev->name); dev 1201 net/irda/irlan/irlan_common.c netif_queue_stopped(self->dev) ? "TRUE" : "FALSE"); dev 56 net/irda/irlan/irlan_eth.c dev->open = irlan_eth_open; dev 57 net/irda/irlan/irlan_eth.c dev->stop = irlan_eth_close; dev 58 net/irda/irlan/irlan_eth.c dev->hard_start_xmit = irlan_eth_xmit; dev 59 net/irda/irlan/irlan_eth.c dev->get_stats = irlan_eth_get_stats; dev 60 net/irda/irlan/irlan_eth.c dev->set_multicast_list = irlan_eth_set_multicast_list; dev 61 net/irda/irlan/irlan_eth.c dev->destructor = free_netdev; dev 63 net/irda/irlan/irlan_eth.c ether_setup(dev); dev 81 net/irda/irlan/irlan_eth.c dev->tx_queue_len = 4; dev 104 net/irda/irlan/irlan_eth.c struct irlan_cb *self = netdev_priv(dev); dev 109 net/irda/irlan/irlan_eth.c netif_stop_queue(dev); /* Wait until data link is ready */ dev 131 net/irda/irlan/irlan_eth.c struct irlan_cb *self = netdev_priv(dev); dev 136 net/irda/irlan/irlan_eth.c netif_stop_queue(dev); dev 160 net/irda/irlan/irlan_eth.c struct irlan_cb *self = netdev_priv(dev); dev 179 net/irda/irlan/irlan_eth.c dev->trans_start = jiffies; dev 235 net/irda/irlan/irlan_eth.c skb->protocol = eth_type_trans(skb, self->dev); /* Remove eth header */ dev 262 net/irda/irlan/irlan_eth.c struct net_device *dev; dev 269 net/irda/irlan/irlan_eth.c dev = self->dev; dev 271 net/irda/irlan/irlan_eth.c IRDA_ASSERT(dev != NULL, return;); dev 275 net/irda/irlan/irlan_eth.c netif_running(dev)); dev 280 net/irda/irlan/irlan_eth.c netif_stop_queue(dev); dev 286 net/irda/irlan/irlan_eth.c netif_wake_queue(dev); dev 300 net/irda/irlan/irlan_eth.c struct irlan_cb *self = netdev_priv(dev); dev 310 net/irda/irlan/irlan_eth.c if (dev->flags & IFF_PROMISC) { dev 314 net/irda/irlan/irlan_eth.c else if ((dev->flags & IFF_ALLMULTI) || dev->mc_count > HW_MAX_ADDRS) { dev 321 net/irda/irlan/irlan_eth.c else if (dev->mc_count) { dev 333 net/irda/irlan/irlan_eth.c if (dev->flags & IFF_BROADCAST) dev 347 net/irda/irlan/irlan_eth.c struct irlan_cb *self = netdev_priv(dev); dev 126 net/irda/irlap.c self->netdev = dev; dev 136 net/irda/irlap.c dev->atalk_ptr = self; dev 155 net/irda/irlap.c memcpy(dev->dev_addr, &self->saddr, 4); dev 95 net/irda/irlap_frame.c skb->dev = self->netdev; dev 1329 net/irda/irlap_frame.c if (!net_eq(dev_net(dev), &init_net)) dev 1333 net/irda/irlap_frame.c self = (struct irlap_cb *) dev->atalk_ptr; dev 50 net/irda/irnetlink.c struct net_device * dev; dev 61 net/irda/irnetlink.c dev = ifname_to_netdev(&init_net, info); dev 62 net/irda/irnetlink.c if (!dev) dev 65 net/irda/irnetlink.c irlap = (struct irlap_cb *)dev->atalk_ptr; dev 67 net/irda/irnetlink.c dev_put(dev); dev 73 net/irda/irnetlink.c dev_put(dev); dev 80 net/irda/irnetlink.c struct net_device * dev; dev 86 net/irda/irnetlink.c dev = ifname_to_netdev(&init_net, info); dev 87 net/irda/irnetlink.c if (!dev) dev 92 net/irda/irnetlink.c dev_put(dev); dev 96 net/irda/irnetlink.c irlap = (struct irlap_cb *)dev->atalk_ptr; dev 110 net/irda/irnetlink.c dev->name)) dev 122 net/irda/irnetlink.c dev_put(dev); dev 259 net/irda/wrapper.c dataskb->dev = dev; dev 293 net/irda/wrapper.c irda_device_set_media_busy(dev, TRUE); dev 333 net/irda/wrapper.c irda_device_set_media_busy(dev, TRUE); dev 357 net/irda/wrapper.c async_bump(dev, stats, rx_buff); dev 361 net/irda/wrapper.c irda_device_set_media_busy(dev, TRUE); dev 385 net/irda/wrapper.c irda_device_set_media_busy(dev, TRUE); dev 451 net/irda/wrapper.c irda_device_set_media_busy(dev, TRUE); dev 478 net/irda/wrapper.c async_unwrap_ce(dev, stats, rx_buff, byte); dev 481 net/irda/wrapper.c async_unwrap_bof(dev, stats, rx_buff, byte); dev 484 net/irda/wrapper.c async_unwrap_eof(dev, stats, rx_buff, byte); dev 487 net/irda/wrapper.c async_unwrap_other(dev, stats, rx_buff, byte); dev 91 net/lapb/lapb_iface.c if (lapb->dev == dev) { dev 108 net/lapb/lapb_iface.c rc = __lapb_devtostruct(dev); dev 148 net/lapb/lapb_iface.c lapb = __lapb_devtostruct(dev); dev 159 net/lapb/lapb_iface.c lapb->dev = dev; dev 178 net/lapb/lapb_iface.c lapb = __lapb_devtostruct(dev); dev 199 net/lapb/lapb_iface.c struct lapb_cb *lapb = lapb_devtostruct(dev); dev 231 net/lapb/lapb_iface.c struct lapb_cb *lapb = lapb_devtostruct(dev); dev 265 net/lapb/lapb_iface.c struct lapb_cb *lapb = lapb_devtostruct(dev); dev 282 net/lapb/lapb_iface.c printk(KERN_DEBUG "lapb: (%p) S0 -> S1\n", lapb->dev); dev 295 net/lapb/lapb_iface.c struct lapb_cb *lapb = lapb_devtostruct(dev); dev 308 net/lapb/lapb_iface.c printk(KERN_DEBUG "lapb: (%p) S1 TX DISC(1)\n", lapb->dev); dev 311 net/lapb/lapb_iface.c printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->dev); dev 332 net/lapb/lapb_iface.c printk(KERN_DEBUG "lapb: (%p) S3 DISC(1)\n", lapb->dev); dev 335 net/lapb/lapb_iface.c printk(KERN_DEBUG "lapb: (%p) S3 -> S2\n", lapb->dev); dev 347 net/lapb/lapb_iface.c struct lapb_cb *lapb = lapb_devtostruct(dev); dev 368 net/lapb/lapb_iface.c struct lapb_cb *lapb = lapb_devtostruct(dev); dev 383 net/lapb/lapb_iface.c lapb->callbacks.connect_confirmation(lapb->dev, reason); dev 389 net/lapb/lapb_iface.c lapb->callbacks.connect_indication(lapb->dev, reason); dev 395 net/lapb/lapb_iface.c lapb->callbacks.disconnect_confirmation(lapb->dev, reason); dev 401 net/lapb/lapb_iface.c lapb->callbacks.disconnect_indication(lapb->dev, reason); dev 407 net/lapb/lapb_iface.c return lapb->callbacks.data_indication(lapb->dev, skb); dev 418 net/lapb/lapb_iface.c lapb->callbacks.data_transmit(lapb->dev, skb); dev 49 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 54 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 61 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 65 net/lapb/lapb_in.c lapb->dev); dev 84 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 89 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 93 net/lapb/lapb_in.c lapb->dev); dev 109 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 119 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 121 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 145 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 150 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 157 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 167 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 172 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 179 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 189 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 191 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 200 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 205 net/lapb/lapb_in.c lapb->dev); dev 222 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 227 net/lapb/lapb_in.c lapb->dev); dev 253 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 255 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 264 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 266 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 275 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 280 net/lapb/lapb_in.c lapb->dev); dev 292 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 297 net/lapb/lapb_in.c lapb->dev); dev 313 net/lapb/lapb_in.c "(%d)\n", lapb->dev, frame->pf); dev 315 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 341 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 346 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 353 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 371 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 376 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 391 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 401 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 405 net/lapb/lapb_in.c lapb->dev); dev 419 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 423 net/lapb/lapb_in.c lapb->dev); dev 435 net/lapb/lapb_in.c lapb->dev, frame->pf, frame->nr); dev 447 net/lapb/lapb_in.c lapb->dev); dev 459 net/lapb/lapb_in.c lapb->dev, frame->pf, frame->nr); dev 471 net/lapb/lapb_in.c lapb->dev); dev 483 net/lapb/lapb_in.c lapb->dev, frame->pf, frame->nr); dev 498 net/lapb/lapb_in.c lapb->dev); dev 510 net/lapb/lapb_in.c lapb->dev, frame->pf, frame->ns, frame->nr); dev 518 net/lapb/lapb_in.c lapb->dev); dev 566 net/lapb/lapb_in.c lapb->dev, frame->pf, lapb->vr); dev 580 net/lapb/lapb_in.c "%02X %02X %02X %02X\n", lapb->dev, frame->pf, dev 587 net/lapb/lapb_in.c lapb->dev); dev 596 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 602 net/lapb/lapb_in.c printk(KERN_DEBUG "lapb: (%p) S3 -> S4\n", lapb->dev); dev 626 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 631 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 638 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 642 net/lapb/lapb_in.c lapb->dev); dev 661 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 666 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 670 net/lapb/lapb_in.c lapb->dev); dev 686 net/lapb/lapb_in.c lapb->dev, frame->pf); dev 65 net/lapb/lapb_out.c lapb->dev, lapb->state, poll_bit, lapb->vs, lapb->vr); dev 153 net/lapb/lapb_out.c lapb->dev, lapb->state, dev 169 net/lapb/lapb_out.c lapb->dev, lapb->state); dev 175 net/lapb/lapb_out.c lapb->dev, lapb->state); dev 188 net/lapb/lapb_out.c lapb->dev, lapb->state, lapb->vr); dev 200 net/lapb/lapb_out.c lapb->dev, lapb->state, lapb->vr); dev 116 net/lapb/lapb_subr.c lapb->dev, lapb->state, dev 289 net/lapb/lapb_subr.c lapb->dev, lapb->state, dev 306 net/lapb/lapb_subr.c lapb->dev, lapb->state, skb->data[1], dev 110 net/lapb/lapb_timer.c printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->dev); dev 117 net/lapb/lapb_timer.c printk(KERN_DEBUG "lapb: (%p) S1 TX SABME(1)\n", lapb->dev); dev 122 net/lapb/lapb_timer.c printk(KERN_DEBUG "lapb: (%p) S1 TX SABM(1)\n", lapb->dev); dev 138 net/lapb/lapb_timer.c printk(KERN_DEBUG "lapb: (%p) S2 -> S0\n", lapb->dev); dev 144 net/lapb/lapb_timer.c printk(KERN_DEBUG "lapb: (%p) S2 TX DISC(1)\n", lapb->dev); dev 160 net/lapb/lapb_timer.c printk(KERN_DEBUG "lapb: (%p) S3 -> S0\n", lapb->dev); dev 178 net/lapb/lapb_timer.c printk(KERN_DEBUG "lapb: (%p) S4 -> S0\n", lapb->dev); dev 198 net/llc/af_llc.c if (llc->dev) dev 199 net/llc/af_llc.c dev_put(llc->dev); dev 256 net/llc/af_llc.c llc->dev = dev_getfirstbyhwtype(&init_net, addr->sllc_arphrd); dev 257 net/llc/af_llc.c if (!llc->dev) dev 267 net/llc/af_llc.c memcpy(llc->laddr.mac, llc->dev->dev_addr, IFHWADDRLEN); dev 307 net/llc/af_llc.c llc->dev = dev_getbyhwaddr(&init_net, addr->sllc_arphrd, addr->sllc_mac); dev 309 net/llc/af_llc.c if (!llc->dev) dev 433 net/llc/af_llc.c rc = llc_establish_connection(sk, llc->dev->dev_addr, dev 855 net/llc/af_llc.c hdrlen = llc->dev->hard_header_len + llc_ui_header_len(sk, addr); dev 857 net/llc/af_llc.c if (size > llc->dev->mtu) dev 858 net/llc/af_llc.c size = llc->dev->mtu; dev 865 net/llc/af_llc.c skb->dev = llc->dev; dev 927 net/llc/af_llc.c if(llc->dev) dev 928 net/llc/af_llc.c sllc.sllc_arphrd = llc->dev->type; dev 937 net/llc/af_llc.c if (llc->dev) { dev 938 net/llc/af_llc.c sllc.sllc_arphrd = llc->dev->type; dev 939 net/llc/af_llc.c memcpy(&sllc.sllc_mac, &llc->dev->dev_addr, dev 201 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); dev 209 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 226 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); dev 236 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 252 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); dev 260 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 285 net/llc/llc_c_ac.c nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, dev 294 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 310 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, dev 321 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 341 net/llc/llc_c_ac.c nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, dev 351 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 372 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); dev 389 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); dev 406 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); dev 430 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); dev 438 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 465 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 473 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 489 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 497 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 513 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 521 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 537 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 545 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 561 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 569 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 585 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 593 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 621 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 629 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 645 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 653 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 669 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 678 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 694 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 702 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 718 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 726 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 742 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 750 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 776 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); dev 782 net/llc/llc_c_ac.c if (llc->dev->flags & IFF_LOOPBACK) dev 783 net/llc/llc_c_ac.c dmac = llc->dev->dev_addr; dev 787 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, dmac); dev 805 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); dev 811 net/llc/llc_c_ac.c nskb->dev = llc->dev; dev 815 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 916 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); dev 962 net/llc/llc_c_ac.c struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); dev 970 net/llc/llc_c_ac.c rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); dev 1180 net/llc/llc_c_ac.c if (acked > 0 || (llc->dev->flags & IFF_LOOPBACK)) { dev 83 net/llc/llc_c_ev.c if (llc->dev->flags & IFF_LOOPBACK) dev 358 net/llc/llc_conn.c !(skb->dev->flags & IFF_LOOPBACK)) { dev 712 net/llc/llc_conn.c newllc->dev = dev; dev 713 net/llc/llc_conn.c dev_hold(dev); dev 744 net/llc/llc_conn.c struct sock *newsk = llc_create_incoming_sock(sk, skb->dev, dev 162 net/llc/llc_core.c struct net_device *dev; dev 164 net/llc/llc_core.c dev = first_net_device(&init_net); dev 165 net/llc/llc_core.c if (dev != NULL) dev 166 net/llc/llc_core.c dev = next_net_device(dev); dev 59 net/llc/llc_if.c skb->dev = llc->dev; dev 153 net/llc/llc_input.c if (!net_eq(dev_net(dev), &init_net)) dev 186 net/llc/llc_input.c rcv(cskb, dev, pt, orig_dev); dev 38 net/llc/llc_output.c switch (skb->dev->type) { dev 41 net/llc/llc_output.c struct net_device *dev = skb->dev; dev 50 net/llc/llc_output.c memcpy(trh->saddr, sa, dev->addr_len); dev 52 net/llc/llc_output.c memset(trh->saddr, 0, dev->addr_len); dev 54 net/llc/llc_output.c memcpy(trh->daddr, da, dev->addr_len); dev 55 net/llc/llc_output.c tr_source_route(skb, trh, dev); dev 76 net/llc/llc_output.c skb->dev->type); dev 103 net/llc/llc_output.c rc = llc_mac_hdr_init(skb, skb->dev->dev_addr, dmac); dev 129 net/llc/llc_proc.c if (llc->dev) dev 130 net/llc/llc_proc.c llc_ui_format_mac(seq, llc->dev->dev_addr); dev 106 net/llc/llc_s_ac.c nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, dev 156 net/llc/llc_s_ac.c nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, data_size); dev 56 net/llc/llc_sap.c hlen += llc_mac_header_len(dev->type); dev 65 net/llc/llc_sap.c skb->dev = dev; dev 81 net/llc/llc_sap.c addr->sllc_arphrd = skb->dev->type; dev 247 net/llc/llc_sap.c memcpy(ev->saddr.mac, skb->dev->dev_addr, IFHWADDRLEN); dev 273 net/llc/llc_sap.c memcpy(ev->saddr.mac, skb->dev->dev_addr, IFHWADDRLEN); dev 357 net/llc/llc_sap.c if (llc->dev != skb->dev) dev 256 net/llc/llc_station.c struct sk_buff *nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, dev 263 net/llc/llc_station.c rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, skb->dev->dev_addr); dev 278 net/llc/llc_station.c struct sk_buff *nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, dev 288 net/llc/llc_station.c rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, mac_da); dev 308 net/llc/llc_station.c nskb = llc_alloc_frame(NULL, skb->dev, LLC_PDU_TYPE_U, data_size); dev 317 net/llc/llc_station.c rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, mac_da); dev 48 net/mac80211/cfg.c struct net_device *dev; dev 55 net/mac80211/cfg.c err = ieee80211_if_add(local, name, &dev, type, params); dev 59 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 66 net/mac80211/cfg.c struct net_device *dev; dev 70 net/mac80211/cfg.c dev = __dev_get_by_index(&init_net, ifindex); dev 71 net/mac80211/cfg.c if (!dev) dev 74 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 85 net/mac80211/cfg.c struct net_device *dev; dev 90 net/mac80211/cfg.c dev = __dev_get_by_index(&init_net, ifindex); dev 91 net/mac80211/cfg.c if (!dev) dev 97 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 103 net/mac80211/cfg.c if (netif_running(sdata->dev)) dev 128 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 176 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 225 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 304 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 341 net/mac80211/cfg.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 347 net/mac80211/cfg.c sta = sta_info_get_by_idx(local, idx, dev); dev 362 net/mac80211/cfg.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 485 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 504 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 522 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 577 net/mac80211/cfg.c skb->dev = sta->sdata->dev; dev 578 net/mac80211/cfg.c skb->protocol = eth_type_trans(skb, sta->sdata->dev); dev 670 net/mac80211/cfg.c if (!netif_running(dev)) dev 680 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 682 net/mac80211/cfg.c if (compare_ether_addr(mac, dev->dev_addr) == 0) dev 723 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 763 net/mac80211/cfg.c if (params->vlan && params->vlan != sta->sdata->dev) { dev 793 net/mac80211/cfg.c if (!netif_running(dev)) dev 796 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 828 net/mac80211/cfg.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 846 net/mac80211/cfg.c if (!netif_running(dev)) dev 849 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 920 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 944 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 969 net/mac80211/cfg.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 34 net/mac80211/debugfs_netdev.c if (sdata->dev->reg_state == NETREG_REGISTERED) dev 59 net/mac80211/debugfs_netdev.c if (sdata->dev->reg_state == NETREG_REGISTERED) dev 515 net/mac80211/debugfs_netdev.c sprintf(buf, "netdev:%s", sdata->dev->name); dev 532 net/mac80211/debugfs_netdev.c struct net_device *dev = ndev; dev 540 net/mac80211/debugfs_netdev.c if (!dev->ieee80211_ptr || !dev->ieee80211_ptr->wiphy) dev 543 net/mac80211/debugfs_netdev.c if (dev->ieee80211_ptr->wiphy->privid != mac80211_wiphy_privid) dev 546 net/mac80211/debugfs_netdev.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 548 net/mac80211/debugfs_netdev.c sprintf(buf, "netdev:%s", dev->name); dev 34 net/mac80211/event.c wireless_send_event(sdata->dev, IWEVCUSTOM, &wrqu, buf); dev 84 net/mac80211/ht.c "for addba request frame\n", sdata->dev->name); dev 91 net/mac80211/ht.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 93 net/mac80211/ht.c memcpy(mgmt->bssid, sdata->dev->dev_addr, ETH_ALEN); dev 133 net/mac80211/ht.c "for addba resp frame\n", sdata->dev->name); dev 141 net/mac80211/ht.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 143 net/mac80211/ht.c memcpy(mgmt->bssid, sdata->dev->dev_addr, ETH_ALEN); dev 179 net/mac80211/ht.c "for delba frame\n", sdata->dev->name); dev 187 net/mac80211/ht.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 189 net/mac80211/ht.c memcpy(mgmt->bssid, sdata->dev->dev_addr, ETH_ALEN); dev 218 net/mac80211/ht.c "bar frame\n", sdata->dev->name); dev 227 net/mac80211/ht.c memcpy(bar->ta, sdata->dev->dev_addr, ETH_ALEN); dev 712 net/mac80211/ht.c "dropping start BA session", skb->dev->name); dev 737 net/mac80211/ht.c "dropping stop BA session", skb->dev->name); dev 149 net/mac80211/ieee80211_i.h struct net_device *dev; dev 187 net/mac80211/ieee80211_i.h struct net_device *dev; dev 426 net/mac80211/ieee80211_i.h struct net_device *dev; dev 786 net/mac80211/ieee80211_i.h struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 788 net/mac80211/ieee80211_i.h BUG_ON(!local || local->mdev == dev); dev 790 net/mac80211/ieee80211_i.h return netdev_priv(dev); dev 27 net/mac80211/iface.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 39 net/mac80211/iface.c printk(KERN_DEBUG "%s: setting MTU %d\n", dev->name, new_mtu); dev 41 net/mac80211/iface.c dev->mtu = new_mtu; dev 61 net/mac80211/iface.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 72 net/mac80211/iface.c if (compare_ether_addr(dev->dev_addr, null_addr) && dev 73 net/mac80211/iface.c !is_valid_ether_addr(dev->dev_addr)) dev 78 net/mac80211/iface.c struct net_device *ndev = nsdata->dev; dev 80 net/mac80211/iface.c if (ndev != dev && netif_running(ndev)) { dev 99 net/mac80211/iface.c if (compare_ether_addr(dev->dev_addr, ndev->dev_addr)) dev 164 net/mac80211/iface.c struct net_device *ndev = nsdata->dev; dev 183 net/mac80211/iface.c if (!is_valid_ether_addr(dev->dev_addr)) { dev 224 net/mac80211/iface.c conf.mac_addr = dev->dev_addr; dev 237 net/mac80211/iface.c netif_carrier_off(dev); dev 239 net/mac80211/iface.c netif_carrier_on(dev); dev 304 net/mac80211/iface.c netif_tx_start_all_queues(dev); dev 321 net/mac80211/iface.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 329 net/mac80211/iface.c netif_tx_stop_all_queues(dev); dev 375 net/mac80211/iface.c dev_mc_unsync(local->mdev, dev); dev 390 net/mac80211/iface.c dev_close(vlan->dev); dev 486 net/mac80211/iface.c conf.mac_addr = dev->dev_addr; dev 514 net/mac80211/iface.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 518 net/mac80211/iface.c allmulti = !!(dev->flags & IFF_ALLMULTI); dev 519 net/mac80211/iface.c promisc = !!(dev->flags & IFF_PROMISC); dev 524 net/mac80211/iface.c if (dev->flags & IFF_ALLMULTI) dev 532 net/mac80211/iface.c if (dev->flags & IFF_PROMISC) dev 539 net/mac80211/iface.c dev_mc_sync(local->mdev, dev); dev 544 net/mac80211/iface.c ether_setup(dev); dev 545 net/mac80211/iface.c dev->hard_start_xmit = ieee80211_subif_start_xmit; dev 546 net/mac80211/iface.c dev->wireless_handlers = &ieee80211_iw_handler_def; dev 547 net/mac80211/iface.c dev->set_multicast_list = ieee80211_set_multicast_list; dev 548 net/mac80211/iface.c dev->change_mtu = ieee80211_change_mtu; dev 549 net/mac80211/iface.c dev->open = ieee80211_open; dev 550 net/mac80211/iface.c dev->stop = ieee80211_stop; dev 551 net/mac80211/iface.c dev->destructor = free_netdev; dev 553 net/mac80211/iface.c dev->validate_addr = NULL; dev 561 net/mac80211/iface.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 626 net/mac80211/iface.c sdata->dev->hard_start_xmit = ieee80211_subif_start_xmit; dev 630 net/mac80211/iface.c sdata->dev->type = ARPHRD_ETHER; dev 646 net/mac80211/iface.c sdata->dev->type = ARPHRD_IEEE80211_RADIOTAP; dev 647 net/mac80211/iface.c sdata->dev->hard_start_xmit = ieee80211_monitor_start_xmit; dev 677 net/mac80211/iface.c if (netif_running(sdata->dev)) dev 681 net/mac80211/iface.c ieee80211_teardown_sdata(sdata->dev); dev 731 net/mac80211/iface.c sdata->dev = ndev; dev 774 net/mac80211/iface.c unregister_netdevice(sdata->dev); dev 789 net/mac80211/iface.c unregister_netdevice(sdata->dev); dev 146 net/mac80211/key.c key->sdata->dev->dev_addr, addr, dev 184 net/mac80211/key.c key->sdata->dev->dev_addr, addr, dev 381 net/mac80211/key.c if (netif_running(sdata->dev)) dev 445 net/mac80211/key.c if (WARN_ON(!netif_running(sdata->dev))) dev 109 net/mac80211/main.c struct ieee80211_master_priv *mpriv = netdev_priv(dev); dev 116 net/mac80211/main.c if (netif_running(sdata->dev)) { dev 132 net/mac80211/main.c struct ieee80211_master_priv *mpriv = netdev_priv(dev); dev 138 net/mac80211/main.c if (netif_running(sdata->dev)) dev 139 net/mac80211/main.c dev_close(sdata->dev); dev 146 net/mac80211/main.c struct ieee80211_master_priv *mpriv = netdev_priv(dev); dev 159 net/mac80211/main.c if (WARN_ON(!netif_running(sdata->dev))) dev 177 net/mac80211/main.c conf.bssid = sdata->dev->dev_addr; dev 357 net/mac80211/main.c skb->dev = local->mdev; dev 683 net/mac80211/main.c if (!netif_running(sdata->dev)) dev 689 net/mac80211/main.c skb2->dev = prev_dev; dev 694 net/mac80211/main.c prev_dev = sdata->dev; dev 698 net/mac80211/main.c skb->dev = prev_dev; dev 274 net/mac80211/mesh.c return jhash_2words(*(u32 *)(addr+2), sdata->dev->ifindex, tbl->hash_rnd) dev 422 net/mac80211/mesh.c sdata->dev->name); dev 486 net/mac80211/mesh.c compare_ether_addr(mgmt->da, sdata->dev->dev_addr)) dev 566 net/mac80211/mesh.c if (!netif_running(sdata->dev)) dev 106 net/mac80211/mesh_hwmp.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 185 net/mac80211/mesh_hwmp.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 304 net/mac80211/mesh_hwmp.c if (memcmp(orig_addr, sdata->dev->dev_addr, ETH_ALEN) == 0) { dev 413 net/mac80211/mesh_hwmp.c if (memcmp(dst_addr, sdata->dev->dev_addr, ETH_ALEN) == 0) { dev 474 net/mac80211/mesh_hwmp.c cpu_to_le32(dst_dsn), sdata->dev->broadcast, dev 500 net/mac80211/mesh_hwmp.c if (memcmp(dst_addr, sdata->dev->dev_addr, ETH_ALEN) == 0) dev 567 net/mac80211/mesh_hwmp.c sdata->dev->broadcast, sdata); dev 745 net/mac80211/mesh_hwmp.c mesh_path_sel_frame_tx(MPATH_PREQ, 0, sdata->dev->dev_addr, dev 747 net/mac80211/mesh_hwmp.c cpu_to_le32(mpath->dsn), sdata->dev->broadcast, 0, dev 795 net/mac80211/mesh_hwmp.c && !memcmp(sdata->dev->dev_addr, hdr->addr4, dev 178 net/mac80211/mesh_pathtbl.c if (memcmp(dst, sdata->dev->dev_addr, ETH_ALEN) == 0) dev 269 net/mac80211/mesh_pathtbl.c if (memcmp(dst, sdata->dev->dev_addr, ETH_ALEN) == 0) dev 371 net/mac80211/mesh_pathtbl.c sdata->dev->broadcast, sdata); dev 506 net/mac80211/mesh_pathtbl.c if (memcmp(hdr->addr4, sdata->dev->dev_addr, ETH_ALEN) != 0) { dev 169 net/mac80211/mesh_plink.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 149 net/mac80211/mlme.c "request\n", sdata->dev->name); dev 158 net/mac80211/mlme.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 209 net/mac80211/mlme.c "frame\n", sdata->dev->name); dev 221 net/mac80211/mlme.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 252 net/mac80211/mlme.c "frame\n", sdata->dev->name); dev 296 net/mac80211/mlme.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 453 net/mac80211/mlme.c "deauth/disassoc frame\n", sdata->dev->name); dev 461 net/mac80211/mlme.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 587 net/mac80211/mlme.c sdata->dev->name, dev 601 net/mac80211/mlme.c sdata->dev->name, dev 647 net/mac80211/mlme.c wireless_send_event(sdata->dev, SIOCGIWAP, &wrqu, NULL); dev 696 net/mac80211/mlme.c wireless_send_event(sdata->dev, IWEVCUSTOM, &wrqu, buf); dev 754 net/mac80211/mlme.c netif_tx_start_all_queues(sdata->dev); dev 755 net/mac80211/mlme.c netif_carrier_on(sdata->dev); dev 768 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, ifsta->bssid)); dev 774 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, ifsta->bssid), dev 800 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, ifsta->bssid)); dev 807 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, ifsta->bssid)); dev 837 net/mac80211/mlme.c netif_tx_stop_all_queues(sdata->dev); dev 838 net/mac80211/mlme.c netif_carrier_off(sdata->dev); dev 923 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, ifsta->bssid)); dev 930 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, ifsta->bssid)); dev 933 net/mac80211/mlme.c "mixed-cell disabled - abort association\n", sdata->dev->name); dev 964 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, ifsta->bssid)); dev 974 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, ifsta->bssid)); dev 1007 net/mac80211/mlme.c printk(KERN_DEBUG "%s: authenticated\n", sdata->dev->name); dev 1139 net/mac80211/mlme.c printk(KERN_DEBUG "%s: deauthenticated\n", sdata->dev->name); dev 1171 net/mac80211/mlme.c printk(KERN_DEBUG "%s: disassociated\n", sdata->dev->name); dev 1219 net/mac80211/mlme.c sdata->dev->name, reassoc ? "Rea" : "A", print_mac(mac, mgmt->sa), dev 1224 net/mac80211/mlme.c sdata->dev->name, status_code); dev 1234 net/mac80211/mlme.c "set\n", sdata->dev->name, aid); dev 1242 net/mac80211/mlme.c sdata->dev->name); dev 1246 net/mac80211/mlme.c printk(KERN_DEBUG "%s: associated\n", sdata->dev->name); dev 1267 net/mac80211/mlme.c " the AP\n", sdata->dev->name); dev 1284 net/mac80211/mlme.c " the AP (error %d)\n", sdata->dev->name, err); dev 1426 net/mac80211/mlme.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 1492 net/mac80211/mlme.c wireless_send_event(sdata->dev, SIOCGIWAP, &wrqu, NULL); dev 1545 net/mac80211/mlme.c sdata->dev->name, dev 1623 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, mgmt->bssid)); dev 1645 net/mac80211/mlme.c if (memcmp(mgmt->da, sdata->dev->dev_addr, ETH_ALEN)) dev 1661 net/mac80211/mlme.c sdata->dev->name); dev 1752 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, mgmt->sa), print_mac(mac2, mgmt->da), dev 1770 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, mgmt->sa)); dev 1790 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, resp->da)); dev 1909 net/mac80211/mlme.c "IBSS networks with same SSID (merge)\n", sdata->dev->name); dev 1952 net/mac80211/mlme.c netif_tx_stop_all_queues(sdata->dev); dev 1953 net/mac80211/mlme.c netif_carrier_off(sdata->dev); dev 2007 net/mac80211/mlme.c bssid[i] ^= sdata->dev->dev_addr[i]; dev 2013 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, bssid)); dev 2065 net/mac80211/mlme.c sdata->dev->name, active_ibss); dev 2107 net/mac80211/mlme.c sdata->dev->name, print_mac(mac, bssid)); dev 2126 net/mac80211/mlme.c "join\n", sdata->dev->name); dev 2140 net/mac80211/mlme.c " %d MHz\n", sdata->dev->name, dev 2245 net/mac80211/mlme.c if (!netif_running(sdata->dev)) dev 2303 net/mac80211/mlme.c "mixed-cell disabled - disassociate\n", sdata->dev->name); dev 2357 net/mac80211/mlme.c "entry %s\n", sdata->dev->name, print_mac(mac, addr)); dev 2367 net/mac80211/mlme.c wiphy_name(local->hw.wiphy), print_mac(mac, addr), sdata->dev->name); dev 2432 net/mac80211/mlme.c if (netif_running(sdata->dev)) dev 2436 net/mac80211/mlme.c "the low-level driver\n", sdata->dev->name); dev 2477 net/mac80211/mlme.c if (netif_running(sdata->dev)) dev 2481 net/mac80211/mlme.c "the low-level driver\n", sdata->dev->name); dev 2519 net/mac80211/mlme.c sdata->dev->name, reason); dev 2534 net/mac80211/mlme.c sdata->dev->name, reason); dev 295 net/mac80211/rx.c if (!netif_running(sdata->dev)) dev 307 net/mac80211/rx.c skb2->dev = prev_dev; dev 312 net/mac80211/rx.c prev_dev = sdata->dev; dev 313 net/mac80211/rx.c sdata->dev->stats.rx_packets++; dev 314 net/mac80211/rx.c sdata->dev->stats.rx_bytes += skb->len; dev 318 net/mac80211/rx.c skb->dev = prev_dev; dev 435 net/mac80211/rx.c if (memcmp(hdr->addr4, rx->dev->dev_addr, ETH_ALEN) == 0) dev 662 net/mac80211/rx.c sdata->dev->name, print_mac(mac, sta->sta.addr), sta->sta.aid); dev 684 net/mac80211/rx.c sdata->dev->name, print_mac(mac, sta->sta.addr), sta->sta.aid); dev 700 net/mac80211/rx.c "since STA not sleeping anymore\n", sdata->dev->name, dev 797 net/mac80211/rx.c sdata->dev->name, idx, dev 970 net/mac80211/rx.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(rx->dev); dev 1030 net/mac80211/rx.c rx->dev->name, print_mac(mac, rx->sta->sta.addr)); dev 1092 net/mac80211/rx.c struct net_device *dev = rx->dev; dev 1099 net/mac80211/rx.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 1146 net/mac80211/rx.c !compare_ether_addr(src, dev->dev_addr))) dev 1197 net/mac80211/rx.c (compare_ether_addr(ehdr->h_dest, rx->dev->dev_addr) == 0 || dev 1214 net/mac80211/rx.c struct net_device *dev = rx->dev; dev 1217 net/mac80211/rx.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 1236 net/mac80211/rx.c "multicast frame\n", dev->name); dev 1239 net/mac80211/rx.c if (dsta && dsta->sdata->dev == dev) { dev 1254 net/mac80211/rx.c skb->protocol = eth_type_trans(skb, dev); dev 1271 net/mac80211/rx.c struct net_device *dev = rx->dev; dev 1297 net/mac80211/rx.c skb->dev = dev; dev 1299 net/mac80211/rx.c dev->stats.rx_packets++; dev 1300 net/mac80211/rx.c dev->stats.rx_bytes += skb->len; dev 1346 net/mac80211/rx.c frame->dev = dev; dev 1406 net/mac80211/rx.c sdata = IEEE80211_DEV_TO_SUB_IF(rx->dev); dev 1421 net/mac80211/rx.c if (compare_ether_addr(rx->dev->dev_addr, hdr->addr3) == 0) dev 1436 net/mac80211/rx.c rx->dev->name); dev 1444 net/mac80211/rx.c memcpy(fwd_hdr->addr2, rx->dev->dev_addr, ETH_ALEN); dev 1445 net/mac80211/rx.c fwd_skb->dev = rx->local->mdev; dev 1446 net/mac80211/rx.c fwd_skb->iif = rx->dev->ifindex; dev 1452 net/mac80211/rx.c rx->dev->flags & IFF_PROMISC) dev 1462 net/mac80211/rx.c struct net_device *dev = rx->dev; dev 1480 net/mac80211/rx.c rx->skb->dev = dev; dev 1482 net/mac80211/rx.c dev->stats.rx_packets++; dev 1483 net/mac80211/rx.c dev->stats.rx_bytes += rx->skb->len; dev 1538 net/mac80211/rx.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(rx->dev); dev 1610 net/mac80211/rx.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(rx->dev); dev 1722 net/mac80211/rx.c if (!netif_running(sdata->dev)) dev 1732 net/mac80211/rx.c skb2->dev = prev_dev; dev 1737 net/mac80211/rx.c prev_dev = sdata->dev; dev 1738 net/mac80211/rx.c sdata->dev->stats.rx_packets++; dev 1739 net/mac80211/rx.c sdata->dev->stats.rx_bytes += skb->len; dev 1743 net/mac80211/rx.c skb->dev = prev_dev; dev 1765 net/mac80211/rx.c rx->dev = sdata->dev; dev 1834 net/mac80211/rx.c compare_ether_addr(sdata->dev->dev_addr, dev 1836 net/mac80211/rx.c if (!(sdata->dev->flags & IFF_PROMISC)) dev 1852 net/mac80211/rx.c compare_ether_addr(sdata->dev->dev_addr, dev 1854 net/mac80211/rx.c if (!(sdata->dev->flags & IFF_PROMISC)) dev 1864 net/mac80211/rx.c compare_ether_addr(sdata->dev->dev_addr, dev 1866 net/mac80211/rx.c if (!(sdata->dev->flags & IFF_PROMISC)) dev 1875 net/mac80211/rx.c if (compare_ether_addr(sdata->dev->dev_addr, dev 1879 net/mac80211/rx.c sdata->dev->dev_addr)) { dev 1936 net/mac80211/rx.c rx.dev = rx.sta->sdata->dev; dev 1953 net/mac80211/rx.c if (!netif_running(sdata->dev)) dev 1988 net/mac80211/rx.c prev->dev->name); dev 2242 net/mac80211/rx.c skb->dev = local->mdev; dev 358 net/mac80211/scan.c if (memcmp(mgmt->da, sdata->dev->dev_addr, ETH_ALEN)) dev 408 net/mac80211/scan.c "frame\n", sdata->dev->name); dev 421 net/mac80211/scan.c memcpy(nullfunc->addr2, sdata->dev->dev_addr, ETH_ALEN); dev 446 net/mac80211/scan.c wireless_send_event(sdata->dev, SIOCGIWSCAN, &wrqu, NULL); dev 481 net/mac80211/scan.c netif_tx_wake_all_queues(sdata->dev); dev 484 net/mac80211/scan.c netif_tx_wake_all_queues(sdata->dev); dev 508 net/mac80211/scan.c if (!netif_running(sdata->dev)) dev 643 net/mac80211/scan.c netif_tx_stop_all_queues(sdata->dev); dev 647 net/mac80211/scan.c netif_tx_stop_all_queues(sdata->dev); dev 38 net/mac80211/spectmgmt.c "measurement report frame\n", sdata->dev->name); dev 46 net/mac80211/spectmgmt.c memcpy(msr_report->sa, sdata->dev->dev_addr, ETH_ALEN); dev 116 net/mac80211/sta_info.c if (dev && dev != sta->sdata->dev) dev 291 net/mac80211/sta_info.c if (unlikely(!netif_running(sdata->dev))) { dev 296 net/mac80211/sta_info.c if (WARN_ON(compare_ether_addr(sta->sta.addr, sdata->dev->dev_addr) == 0 || dev 815 net/mac80211/sta_info.c sdata->dev->name, print_mac(mac, sta->sta.addr)); dev 171 net/mac80211/tx.c return local == wdev_priv(dev->ieee80211_ptr); dev 207 net/mac80211/tx.c tx->dev->name, print_mac(mac, hdr->addr1)); dev 311 net/mac80211/tx.c tx->dev->name); dev 357 net/mac80211/tx.c tx->dev->name, print_mac(mac, sta->sta.addr)); dev 375 net/mac80211/tx.c "set -> send frame\n", tx->dev->name, dev 931 net/mac80211/tx.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 940 net/mac80211/tx.c tx->dev = dev; /* use original interface */ dev 942 net/mac80211/tx.c tx->sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 953 net/mac80211/tx.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 1009 net/mac80211/tx.c struct net_device *dev; dev 1011 net/mac80211/tx.c dev = dev_get_by_index(&init_net, skb->iif); dev 1012 net/mac80211/tx.c if (unlikely(dev && !is_ieee80211_device(local, dev))) { dev 1013 net/mac80211/tx.c dev_put(dev); dev 1014 net/mac80211/tx.c dev = NULL; dev 1016 net/mac80211/tx.c if (unlikely(!dev)) dev 1019 net/mac80211/tx.c __ieee80211_tx_prepare(tx, skb, dev); dev 1020 net/mac80211/tx.c dev_put(dev); dev 1126 net/mac80211/tx.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 1146 net/mac80211/tx.c res_prepare = __ieee80211_tx_prepare(&tx, skb, dev); dev 1261 net/mac80211/tx.c struct ieee80211_master_priv *mpriv = netdev_priv(dev); dev 1285 net/mac80211/tx.c "originating device\n", dev->name); dev 1334 net/mac80211/tx.c if (!netif_running(sdata->dev)) dev 1336 net/mac80211/tx.c if (compare_ether_addr(sdata->dev->dev_addr, dev 1338 net/mac80211/tx.c dev_hold(sdata->dev); dev 1341 net/mac80211/tx.c odev = osdata->dev; dev 1342 net/mac80211/tx.c skb->iif = sdata->dev->ifindex; dev 1380 net/mac80211/tx.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 1400 net/mac80211/tx.c skb->dev = local->mdev; dev 1403 net/mac80211/tx.c skb->iif = dev->ifindex; dev 1450 net/mac80211/tx.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 1482 net/mac80211/tx.c memcpy(hdr.addr2, dev->dev_addr, ETH_ALEN); dev 1490 net/mac80211/tx.c memcpy(hdr.addr2, dev->dev_addr, ETH_ALEN); dev 1506 net/mac80211/tx.c if (compare_ether_addr(dev->dev_addr, dev 1510 net/mac80211/tx.c memcpy(hdr.addr2, dev->dev_addr, ETH_ALEN); dev 1519 net/mac80211/tx.c memcpy(hdr.addr2, dev->dev_addr, ETH_ALEN); dev 1520 net/mac80211/tx.c memcpy(hdr.addr4, dev->dev_addr, ETH_ALEN); dev 1593 net/mac80211/tx.c compare_ether_addr(dev->dev_addr, dev 1600 net/mac80211/tx.c " (unauthorized port)\n", dev->name, dev 1682 net/mac80211/tx.c skb->iif = dev->ifindex; dev 1684 net/mac80211/tx.c skb->dev = local->mdev; dev 1685 net/mac80211/tx.c dev->stats.tx_packets++; dev 1686 net/mac80211/tx.c dev->stats.tx_bytes += skb->len; dev 1695 net/mac80211/tx.c dev->trans_start = jiffies; dev 1736 net/mac80211/tx.c struct net_device *dev = local->mdev; dev 1741 net/mac80211/tx.c netif_tx_lock_bh(dev); dev 1773 net/mac80211/tx.c netif_tx_unlock_bh(dev); dev 1861 net/mac80211/tx.c bdev = sdata->dev; dev 1934 net/mac80211/tx.c memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); dev 2033 net/mac80211/tx.c bdev = sdata->dev; dev 404 net/mac80211/util.c if (netif_running(sdata->dev)) dev 405 net/mac80211/util.c iterator(data, sdata->dev->dev_addr, dev 438 net/mac80211/util.c if (netif_running(sdata->dev)) dev 439 net/mac80211/util.c iterator(data, sdata->dev->dev_addr, dev 620 net/mac80211/util.c skb->dev = sdata->local->mdev; dev 625 net/mac80211/util.c skb->iif = sdata->dev->ifindex; dev 643 net/mac80211/util.c "%d MHz\n", sdata->dev->name, chan->center_freq); dev 42 net/mac80211/wext.c sdata->dev->name, idx); dev 120 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 142 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 184 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 273 net/mac80211/wext.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 306 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 337 net/mac80211/wext.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 368 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 388 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 428 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 459 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 488 net/mac80211/wext.c if (netif_running(dev)) dev 507 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 533 net/mac80211/wext.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 538 net/mac80211/wext.c if (!netif_running(dev)) dev 564 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 567 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 586 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 592 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 623 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 628 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 658 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 706 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 720 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 746 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 760 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 789 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 803 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 833 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 860 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 887 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 926 net/mac80211/wext.c sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 978 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 1004 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 1016 net/mac80211/wext.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 1062 net/mac80211/wext.c struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); dev 1064 net/mac80211/wext.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 1095 net/mac80211/wext.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 1118 net/mac80211/wext.c struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); dev 115 net/mac80211/wme.c struct ieee80211_master_priv *mpriv = netdev_priv(dev); dev 513 net/netfilter/ipvs/ip_vs_core.c skb->dev); dev 1021 net/netfilter/ipvs/ip_vs_core.c 0, skb->dev); dev 487 net/netfilter/ipvs/ip_vs_sync.c struct net_device *dev; dev 490 net/netfilter/ipvs/ip_vs_sync.c if ((dev = __dev_get_by_name(&init_net, ifname)) == NULL) dev 493 net/netfilter/ipvs/ip_vs_sync.c if (sk->sk_bound_dev_if && dev->ifindex != sk->sk_bound_dev_if) dev 497 net/netfilter/ipvs/ip_vs_sync.c inet->mc_index = dev->ifindex; dev 511 net/netfilter/ipvs/ip_vs_sync.c struct net_device *dev; dev 515 net/netfilter/ipvs/ip_vs_sync.c if ((dev = __dev_get_by_name(&init_net, ip_vs_master_mcast_ifn)) == NULL) dev 518 net/netfilter/ipvs/ip_vs_sync.c num = (dev->mtu - sizeof(struct iphdr) - dev 526 net/netfilter/ipvs/ip_vs_sync.c if ((dev = __dev_get_by_name(&init_net, ip_vs_backup_mcast_ifn)) == NULL) dev 529 net/netfilter/ipvs/ip_vs_sync.c sync_recv_mesg_maxlen = dev->mtu - dev 548 net/netfilter/ipvs/ip_vs_sync.c struct net_device *dev; dev 554 net/netfilter/ipvs/ip_vs_sync.c if ((dev = __dev_get_by_name(&init_net, ifname)) == NULL) dev 556 net/netfilter/ipvs/ip_vs_sync.c if (sk->sk_bound_dev_if && dev->ifindex != sk->sk_bound_dev_if) dev 559 net/netfilter/ipvs/ip_vs_sync.c mreq.imr_ifindex = dev->ifindex; dev 571 net/netfilter/ipvs/ip_vs_sync.c struct net_device *dev; dev 575 net/netfilter/ipvs/ip_vs_sync.c if ((dev = __dev_get_by_name(&init_net, ifname)) == NULL) dev 578 net/netfilter/ipvs/ip_vs_sync.c addr = inet_select_addr(dev, 0, RT_SCOPE_UNIVERSE); dev 199 net/netfilter/ipvs/ip_vs_xmit.c (rt)->u.dst.dev, dst_output); \ dev 313 net/netfilter/ipvs/ip_vs_xmit.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); dev 389 net/netfilter/ipvs/ip_vs_xmit.c if (skb_cow(skb, rt->u.dst.dev->hard_header_len)) dev 456 net/netfilter/ipvs/ip_vs_xmit.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); dev 466 net/netfilter/ipvs/ip_vs_xmit.c if (skb_cow(skb, rt->u.dst.dev->hard_header_len)) dev 550 net/netfilter/ipvs/ip_vs_xmit.c tdev = rt->u.dst.dev; dev 661 net/netfilter/ipvs/ip_vs_xmit.c tdev = rt->u.dst.dev; dev 674 net/netfilter/ipvs/ip_vs_xmit.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); dev 815 net/netfilter/ipvs/ip_vs_xmit.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); dev 900 net/netfilter/ipvs/ip_vs_xmit.c if (skb_cow(skb, rt->u.dst.dev->hard_header_len)) dev 966 net/netfilter/ipvs/ip_vs_xmit.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); dev 975 net/netfilter/ipvs/ip_vs_xmit.c if (skb_cow(skb, rt->u.dst.dev->hard_header_len)) dev 736 net/netfilter/nf_conntrack_h323_main.c rt1->u.dst.dev == rt2->u.dst.dev) dev 755 net/netfilter/nf_conntrack_h323_main.c rt1->u.dst.dev == rt2->u.dst.dev) dev 63 net/netfilter/nf_conntrack_netbios_ns.c in_dev = __in_dev_get_rcu(rt->u.dst.dev); dev 179 net/netfilter/nf_conntrack_proto_gre.c struct net *net = dev_net(skb->dev ? skb->dev : skb->dst->dev); dev 404 net/netfilter/nfnetlink_log.c htonl(indev->br_port->br->dev->ifindex)); dev 431 net/netfilter/nfnetlink_log.c htonl(outdev->br_port->br->dev->ifindex)); dev 447 net/netfilter/nfnetlink_log.c if (indev && skb->dev) { dev 457 net/netfilter/nfnetlink_log.c NLA_PUT_BE16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type)); dev 459 net/netfilter/nfnetlink_log.c htons(skb->dev->hard_header_len)); dev 460 net/netfilter/nfnetlink_log.c NLA_PUT(inst->skb, NFULA_HWHEADER, skb->dev->hard_header_len, dev 301 net/netfilter/nfnetlink_queue.c htonl(indev->br_port->br->dev->ifindex)); dev 326 net/netfilter/nfnetlink_queue.c htonl(outdev->br_port->br->dev->ifindex)); dev 342 net/netfilter/nfnetlink_queue.c if (indev && entskb->dev) { dev 556 net/netfilter/nfnetlink_queue.c struct net_device *dev = ptr; dev 558 net/netfilter/nfnetlink_queue.c if (!net_eq(dev_net(dev), &init_net)) dev 563 net/netfilter/nfnetlink_queue.c nfqnl_dev_drop(dev->ifindex); dev 39 net/netfilter/xt_TPROXY.c sk = nf_tproxy_get_sock_v4(dev_net(skb->dev), iph->protocol, dev 141 net/netfilter/xt_socket.c sk = nf_tproxy_get_sock_v4(dev_net(skb->dev), protocol, dev 337 net/netlabel/netlabel_addrlist.c if (dev != NULL) dev 338 net/netlabel/netlabel_addrlist.c audit_log_format(audit_buf, " netif=%s", dev); dev 371 net/netlabel/netlabel_addrlist.c if (dev != NULL) dev 372 net/netlabel/netlabel_addrlist.c audit_log_format(audit_buf, " netif=%s", dev); dev 463 net/netlabel/netlabel_unlabeled.c struct net_device *dev; dev 475 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_name(net, dev_name); dev 476 net/netlabel/netlabel_unlabeled.c if (dev == NULL) { dev 480 net/netlabel/netlabel_unlabeled.c ifindex = dev->ifindex; dev 481 net/netlabel/netlabel_unlabeled.c dev_put(dev); dev 569 net/netlabel/netlabel_unlabeled.c struct net_device *dev; dev 584 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_index(net, iface->ifindex); dev 586 net/netlabel/netlabel_unlabeled.c (dev != NULL ? dev->name : NULL), dev 588 net/netlabel/netlabel_unlabeled.c if (dev != NULL) dev 589 net/netlabel/netlabel_unlabeled.c dev_put(dev); dev 630 net/netlabel/netlabel_unlabeled.c struct net_device *dev; dev 644 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_index(net, iface->ifindex); dev 646 net/netlabel/netlabel_unlabeled.c (dev != NULL ? dev->name : NULL), dev 648 net/netlabel/netlabel_unlabeled.c if (dev != NULL) dev 649 net/netlabel/netlabel_unlabeled.c dev_put(dev); dev 727 net/netlabel/netlabel_unlabeled.c struct net_device *dev; dev 736 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_name(net, dev_name); dev 737 net/netlabel/netlabel_unlabeled.c if (dev == NULL) { dev 741 net/netlabel/netlabel_unlabeled.c iface = netlbl_unlhsh_search_iface(dev->ifindex); dev 742 net/netlabel/netlabel_unlabeled.c dev_put(dev); dev 795 net/netlabel/netlabel_unlabeled.c struct net_device *dev = ptr; dev 798 net/netlabel/netlabel_unlabeled.c if (!net_eq(dev_net(dev), &init_net)) dev 804 net/netlabel/netlabel_unlabeled.c iface = netlbl_unlhsh_search_iface(dev->ifindex); dev 1165 net/netlabel/netlabel_unlabeled.c struct net_device *dev; dev 1178 net/netlabel/netlabel_unlabeled.c dev = dev_get_by_index(&init_net, iface->ifindex); dev 1179 net/netlabel/netlabel_unlabeled.c if (!dev) { dev 1184 net/netlabel/netlabel_unlabeled.c NLBL_UNLABEL_A_IFACE, dev->name); dev 1185 net/netlabel/netlabel_unlabeled.c dev_put(dev); dev 87 net/netrom/af_netrom.c lockdep_set_class(&dev->addr_list_lock, &nr_netdev_addr_lock_key); dev 88 net/netrom/af_netrom.c netdev_for_each_tx_queue(dev, nr_set_lockdep_one, NULL); dev 111 net/netrom/af_netrom.c if (nr_sk(s)->device == dev) dev 121 net/netrom/af_netrom.c struct net_device *dev = (struct net_device *)ptr; dev 123 net/netrom/af_netrom.c if (!net_eq(dev_net(dev), &init_net)) dev 129 net/netrom/af_netrom.c nr_kill_by_device(dev); dev 130 net/netrom/af_netrom.c nr_rt_device_down(dev); dev 571 net/netrom/af_netrom.c struct net_device *dev; dev 592 net/netrom/af_netrom.c if ((dev = nr_dev_get(&addr->fsa_ax25.sax25_call)) == NULL) { dev 603 net/netrom/af_netrom.c dev_put(dev); dev 619 net/netrom/af_netrom.c dev_put(dev); dev 628 net/netrom/af_netrom.c nr->device = dev; dev 632 net/netrom/af_netrom.c dev_put(dev); dev 646 net/netrom/af_netrom.c struct net_device *dev; dev 680 net/netrom/af_netrom.c if ((dev = nr_dev_first()) == NULL) { dev 684 net/netrom/af_netrom.c source = (ax25_address *)dev->dev_addr; dev 692 net/netrom/af_netrom.c dev_put(dev); dev 700 net/netrom/af_netrom.c nr->device = dev; dev 702 net/netrom/af_netrom.c dev_put(dev); dev 899 net/netrom/af_netrom.c return nr_rx_ip(skb, dev); dev 1295 net/netrom/af_netrom.c struct net_device *dev; dev 1309 net/netrom/af_netrom.c if ((dev = nr->device) == NULL) dev 1312 net/netrom/af_netrom.c devname = dev->name; dev 1432 net/netrom/af_netrom.c struct net_device *dev; dev 1435 net/netrom/af_netrom.c dev = alloc_netdev(sizeof(struct nr_private), name, nr_setup); dev 1436 net/netrom/af_netrom.c if (!dev) { dev 1441 net/netrom/af_netrom.c dev->base_addr = i; dev 1442 net/netrom/af_netrom.c if (register_netdev(dev)) { dev 1444 net/netrom/af_netrom.c free_netdev(dev); dev 1447 net/netrom/af_netrom.c nr_set_lockdep_key(dev); dev 1448 net/netrom/af_netrom.c dev_nr[i] = dev; dev 1516 net/netrom/af_netrom.c struct net_device *dev = dev_nr[i]; dev 1517 net/netrom/af_netrom.c if (dev) { dev 1518 net/netrom/af_netrom.c unregister_netdev(dev); dev 1519 net/netrom/af_netrom.c free_netdev(dev); dev 45 net/netrom/nr_dev.c struct net_device_stats *stats = netdev_priv(dev); dev 47 net/netrom/nr_dev.c if (!netif_running(dev)) { dev 58 net/netrom/nr_dev.c skb->dev = dev; dev 104 net/netrom/nr_dev.c memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); dev 111 net/netrom/nr_dev.c memcpy(buff, daddr, dev->addr_len); dev 136 net/netrom/nr_dev.c if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) dev 139 net/netrom/nr_dev.c if (dev->flags & IFF_UP) { dev 144 net/netrom/nr_dev.c ax25_listen_release((ax25_address *)dev->dev_addr, NULL); dev 147 net/netrom/nr_dev.c memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); dev 156 net/netrom/nr_dev.c err = ax25_listen_register((ax25_address *)dev->dev_addr, NULL); dev 160 net/netrom/nr_dev.c netif_start_queue(dev); dev 167 net/netrom/nr_dev.c ax25_listen_release((ax25_address *)dev->dev_addr, NULL); dev 168 net/netrom/nr_dev.c netif_stop_queue(dev); dev 174 net/netrom/nr_dev.c struct nr_private *nr = netdev_priv(dev); dev 192 net/netrom/nr_dev.c struct nr_private *nr = netdev_priv(dev); dev 205 net/netrom/nr_dev.c dev->mtu = NR_MAX_PACKET_SIZE; dev 206 net/netrom/nr_dev.c dev->hard_start_xmit = nr_xmit; dev 207 net/netrom/nr_dev.c dev->open = nr_open; dev 208 net/netrom/nr_dev.c dev->stop = nr_close; dev 210 net/netrom/nr_dev.c dev->header_ops = &nr_header_ops; dev 211 net/netrom/nr_dev.c dev->hard_header_len = NR_NETWORK_LEN + NR_TRANSPORT_LEN; dev 212 net/netrom/nr_dev.c dev->addr_len = AX25_ADDR_LEN; dev 213 net/netrom/nr_dev.c dev->type = ARPHRD_NETROM; dev 214 net/netrom/nr_dev.c dev->set_mac_address = nr_set_mac_address; dev 217 net/netrom/nr_dev.c dev->flags = IFF_NOARP; dev 219 net/netrom/nr_dev.c dev->get_stats = nr_get_stats; dev 54 net/netrom/nr_loopback.c struct net_device *dev; dev 59 net/netrom/nr_loopback.c dev = nr_dev_get(nr_dest); dev 61 net/netrom/nr_loopback.c if (dev == NULL || nr_rx_frame(skb, dev) == 0) dev 64 net/netrom/nr_loopback.c if (dev != NULL) dev 65 net/netrom/nr_loopback.c dev_put(dev); dev 74 net/netrom/nr_route.c nr_neigh->dev == dev) { dev 106 net/netrom/nr_route.c nr_neigh = nr_neigh_get_dev(ax25, dev); dev 149 net/netrom/nr_route.c nr_neigh->dev = dev; dev 362 net/netrom/nr_route.c nr_neigh = nr_neigh_get_dev(neighbour, dev); dev 414 net/netrom/nr_route.c nr_neigh = nr_neigh_get_dev(callsign, dev); dev 428 net/netrom/nr_route.c nr_neigh->dev = dev; dev 461 net/netrom/nr_route.c nr_neigh = nr_neigh_get_dev(callsign, dev); dev 544 net/netrom/nr_route.c if (s->dev == dev) { dev 581 net/netrom/nr_route.c struct net_device *dev; dev 583 net/netrom/nr_route.c if ((dev = dev_get_by_name(&init_net, devname)) == NULL) dev 586 net/netrom/nr_route.c if ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25) dev 587 net/netrom/nr_route.c return dev; dev 589 net/netrom/nr_route.c dev_put(dev); dev 598 net/netrom/nr_route.c struct net_device *dev, *first = NULL; dev 601 net/netrom/nr_route.c for_each_netdev(&init_net, dev) { dev 602 net/netrom/nr_route.c if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM) dev 603 net/netrom/nr_route.c if (first == NULL || strncmp(dev->name, first->name, 3) < 0) dev 604 net/netrom/nr_route.c first = dev; dev 618 net/netrom/nr_route.c struct net_device *dev; dev 621 net/netrom/nr_route.c for_each_netdev(&init_net, dev) { dev 622 net/netrom/nr_route.c if ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0) { dev 623 net/netrom/nr_route.c dev_hold(dev); dev 627 net/netrom/nr_route.c dev = NULL; dev 630 net/netrom/nr_route.c return dev; dev 658 net/netrom/nr_route.c struct net_device *dev; dev 665 net/netrom/nr_route.c if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL) dev 668 net/netrom/nr_route.c dev_put(dev); dev 677 net/netrom/nr_route.c dev, nr_route.quality, dev 683 net/netrom/nr_route.c dev, nr_route.quality); dev 688 net/netrom/nr_route.c dev_put(dev); dev 694 net/netrom/nr_route.c if ((dev = nr_ax25_dev_get(nr_route.device)) == NULL) dev 699 net/netrom/nr_route.c &nr_route.neighbour, dev); dev 703 net/netrom/nr_route.c dev, nr_route.quality); dev 708 net/netrom/nr_route.c dev_put(dev); dev 772 net/netrom/nr_route.c struct net_device *dev; dev 784 net/netrom/nr_route.c ax25->ax25_dev->dev, 0, dev 790 net/netrom/nr_route.c if ((dev = nr_dev_get(nr_dest)) != NULL) { /* Its for me */ dev 794 net/netrom/nr_route.c ret = nr_rx_frame(skb, dev); dev 795 net/netrom/nr_route.c dev_put(dev); dev 820 net/netrom/nr_route.c if ((dev = nr_dev_first()) == NULL) { dev 829 net/netrom/nr_route.c if ((skbn=skb_copy_expand(skb, dev->hard_header_len, 0, GFP_ATOMIC)) == NULL) { dev 832 net/netrom/nr_route.c dev_put(dev); dev 842 net/netrom/nr_route.c ax25s = ax25_send_frame(skb, 256, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev); dev 849 net/netrom/nr_route.c dev_put(dev); dev 992 net/netrom/nr_route.c nr_neigh->dev ? nr_neigh->dev->name : "???", dev 305 net/packet/af_packet.c if (dev_net(dev) != sock_net(sk)) dev 326 net/packet/af_packet.c spkt->spkt_family = dev->type; dev 327 net/packet/af_packet.c strlcpy(spkt->spkt_device, dev->name, sizeof(spkt->spkt_device)); dev 356 net/packet/af_packet.c struct net_device *dev; dev 379 net/packet/af_packet.c dev = dev_get_by_name(sock_net(sk), saddr->spkt_device); dev 381 net/packet/af_packet.c if (dev == NULL) dev 385 net/packet/af_packet.c if (!(dev->flags & IFF_UP)) dev 394 net/packet/af_packet.c if (len > dev->mtu + dev->hard_header_len) dev 398 net/packet/af_packet.c skb = sock_wmalloc(sk, len + LL_RESERVED_SPACE(dev), 0, GFP_KERNEL); dev 417 net/packet/af_packet.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 421 net/packet/af_packet.c if (dev->header_ops) { dev 422 net/packet/af_packet.c skb->data -= dev->hard_header_len; dev 423 net/packet/af_packet.c skb->tail -= dev->hard_header_len; dev 424 net/packet/af_packet.c if (len < dev->hard_header_len) dev 431 net/packet/af_packet.c skb->dev = dev; dev 441 net/packet/af_packet.c dev_put(dev); dev 447 net/packet/af_packet.c if (dev) dev 448 net/packet/af_packet.c dev_put(dev); dev 493 net/packet/af_packet.c if (dev_net(dev) != sock_net(sk)) dev 496 net/packet/af_packet.c skb->dev = dev; dev 498 net/packet/af_packet.c if (dev->header_ops) { dev 544 net/packet/af_packet.c sll->sll_hatype = dev->type; dev 550 net/packet/af_packet.c sll->sll_ifindex = dev->ifindex; dev 560 net/packet/af_packet.c skb->dev = NULL; dev 615 net/packet/af_packet.c if (dev_net(dev) != sock_net(sk)) dev 618 net/packet/af_packet.c if (dev->header_ops) { dev 718 net/packet/af_packet.c sll->sll_hatype = dev->type; dev 724 net/packet/af_packet.c sll->sll_ifindex = dev->ifindex; dev 771 net/packet/af_packet.c struct net_device *dev; dev 798 net/packet/af_packet.c dev = dev_get_by_index(sock_net(sk), ifindex); dev 800 net/packet/af_packet.c if (dev == NULL) dev 803 net/packet/af_packet.c reserve = dev->hard_header_len; dev 806 net/packet/af_packet.c if (!(dev->flags & IFF_UP)) dev 810 net/packet/af_packet.c if (len > dev->mtu+reserve) dev 813 net/packet/af_packet.c skb = sock_alloc_send_skb(sk, len + LL_ALLOCATED_SPACE(dev), dev 818 net/packet/af_packet.c skb_reserve(skb, LL_RESERVED_SPACE(dev)); dev 823 net/packet/af_packet.c dev_hard_header(skb, dev, ntohs(proto), addr, NULL, len) < 0) dev 832 net/packet/af_packet.c skb->dev = dev; dev 843 net/packet/af_packet.c dev_put(dev); dev 850 net/packet/af_packet.c if (dev) dev 851 net/packet/af_packet.c dev_put(dev); dev 942 net/packet/af_packet.c po->prot_hook.dev = dev; dev 944 net/packet/af_packet.c po->ifindex = dev ? dev->ifindex : 0; dev 949 net/packet/af_packet.c if (!dev || (dev->flags & IFF_UP)) { dev 973 net/packet/af_packet.c struct net_device *dev; dev 984 net/packet/af_packet.c dev = dev_get_by_name(sock_net(sk), name); dev 985 net/packet/af_packet.c if (dev) { dev 986 net/packet/af_packet.c err = packet_do_bind(sk, dev, pkt_sk(sk)->num); dev 987 net/packet/af_packet.c dev_put(dev); dev 996 net/packet/af_packet.c struct net_device *dev = NULL; dev 1011 net/packet/af_packet.c dev = dev_get_by_index(sock_net(sk), sll->sll_ifindex); dev 1012 net/packet/af_packet.c if (dev == NULL) dev 1015 net/packet/af_packet.c err = packet_do_bind(sk, dev, sll->sll_protocol ? : pkt_sk(sk)->num); dev 1016 net/packet/af_packet.c if (dev) dev 1017 net/packet/af_packet.c dev_put(dev); dev 1199 net/packet/af_packet.c struct net_device *dev; dev 1206 net/packet/af_packet.c dev = dev_get_by_index(sock_net(sk), pkt_sk(sk)->ifindex); dev 1207 net/packet/af_packet.c if (dev) { dev 1208 net/packet/af_packet.c strlcpy(uaddr->sa_data, dev->name, 15); dev 1209 net/packet/af_packet.c dev_put(dev); dev 1220 net/packet/af_packet.c struct net_device *dev; dev 1231 net/packet/af_packet.c dev = dev_get_by_index(sock_net(sk), po->ifindex); dev 1232 net/packet/af_packet.c if (dev) { dev 1233 net/packet/af_packet.c sll->sll_hatype = dev->type; dev 1234 net/packet/af_packet.c sll->sll_halen = dev->addr_len; dev 1235 net/packet/af_packet.c memcpy(sll->sll_addr, dev->dev_addr, dev->addr_len); dev 1236 net/packet/af_packet.c dev_put(dev); dev 1252 net/packet/af_packet.c dev_mc_add(dev, i->addr, i->alen, 0); dev 1254 net/packet/af_packet.c dev_mc_delete(dev, i->addr, i->alen, 0); dev 1257 net/packet/af_packet.c return dev_set_promiscuity(dev, what); dev 1260 net/packet/af_packet.c return dev_set_allmulti(dev, what); dev 1270 net/packet/af_packet.c if (i->ifindex == dev->ifindex) dev 1271 net/packet/af_packet.c packet_dev_mc(dev, i, what); dev 1279 net/packet/af_packet.c struct net_device *dev; dev 1285 net/packet/af_packet.c dev = __dev_get_by_index(sock_net(sk), mreq->mr_ifindex); dev 1286 net/packet/af_packet.c if (!dev) dev 1290 net/packet/af_packet.c if (mreq->mr_alen > dev->addr_len) dev 1318 net/packet/af_packet.c err = packet_dev_mc(dev, i, 1); dev 1341 net/packet/af_packet.c struct net_device *dev; dev 1343 net/packet/af_packet.c dev = dev_get_by_index(sock_net(sk), ml->ifindex); dev 1344 net/packet/af_packet.c if (dev) { dev 1345 net/packet/af_packet.c packet_dev_mc(dev, ml, -1); dev 1346 net/packet/af_packet.c dev_put(dev); dev 1368 net/packet/af_packet.c struct net_device *dev; dev 1371 net/packet/af_packet.c if ((dev = dev_get_by_index(sock_net(sk), ml->ifindex)) != NULL) { dev 1372 net/packet/af_packet.c packet_dev_mc(dev, ml, -1); dev 1373 net/packet/af_packet.c dev_put(dev); dev 1589 net/packet/af_packet.c struct net_device *dev = data; dev 1590 net/packet/af_packet.c struct net *net = dev_net(dev); dev 1599 net/packet/af_packet.c packet_dev_mclist(dev, po->mclist, -1); dev 1603 net/packet/af_packet.c if (dev->ifindex == po->ifindex) { dev 1615 net/packet/af_packet.c po->prot_hook.dev = NULL; dev 1622 net/packet/af_packet.c if (dev->ifindex == po->ifindex && po->num && dev 121 net/phonet/af_phonet.c saddr = dev->dev_addr; dev 168 net/phonet/af_phonet.c skb->dev = dev; dev 180 net/phonet/af_phonet.c err = dev_hard_header(skb, dev, ntohs(skb->protocol), dev 205 net/phonet/af_phonet.c return pn_send(skb, dev, dst, src, res, 1); dev 215 net/phonet/af_phonet.c struct net_device *dev; dev 223 net/phonet/af_phonet.c dev = dev_get_by_index(sock_net(sk), sk->sk_bound_dev_if); dev 225 net/phonet/af_phonet.c dev = phonet_device_get(sock_net(sk)); dev 226 net/phonet/af_phonet.c if (!dev || !(dev->flags & IFF_UP)) dev 229 net/phonet/af_phonet.c saddr = phonet_address_get(dev, daddr); dev 237 net/phonet/af_phonet.c err = pn_send(skb, dev, pn_sockaddr_get_object(target), dev 239 net/phonet/af_phonet.c dev_put(dev); dev 244 net/phonet/af_phonet.c if (dev) dev 245 net/phonet/af_phonet.c dev_put(dev); dev 261 net/phonet/af_phonet.c if (phonet_address_get(skb->dev, ph->pn_rdev) != ph->pn_rdev) dev 297 net/phonet/af_phonet.c return pn_raw_send(&resp, sizeof(resp), rskb->dev, dev 311 net/phonet/af_phonet.c return pn_raw_send(data, sizeof(data), rskb->dev, dev 332 net/phonet/af_phonet.c if (dev_net(dev) != &init_net) dev 372 net/phonet/af_phonet.c .dev = NULL, dev 76 net/phonet/pep-gprs.c struct gprs_dev *dev = sk->sk_user_data; dev 79 net/phonet/pep-gprs.c netif_stop_queue(dev->net); dev 80 net/phonet/pep-gprs.c netif_carrier_off(dev->net); dev 102 net/phonet/pep-gprs.c rskb = netdev_alloc_skb(dev->net, 0); dev 126 net/phonet/pep-gprs.c skb->dev = dev->net; dev 128 net/phonet/pep-gprs.c if (likely(dev->net->flags & IFF_UP)) { dev 129 net/phonet/pep-gprs.c dev->stats.rx_packets++; dev 130 net/phonet/pep-gprs.c dev->stats.rx_bytes += skb->len; dev 139 net/phonet/pep-gprs.c dev->stats.rx_dropped++; dev 146 net/phonet/pep-gprs.c struct gprs_dev *dev = sk->sk_user_data; dev 151 net/phonet/pep-gprs.c gprs_recv(dev, skb); dev 157 net/phonet/pep-gprs.c struct gprs_dev *dev = sk->sk_user_data; dev 160 net/phonet/pep-gprs.c spin_lock_bh(&dev->tx_lock); dev 161 net/phonet/pep-gprs.c dev->tx_max = credits; dev 162 net/phonet/pep-gprs.c if (credits > skb_queue_len(&dev->tx_queue)) dev 163 net/phonet/pep-gprs.c netif_wake_queue(dev->net); dev 164 net/phonet/pep-gprs.c spin_unlock_bh(&dev->tx_lock); dev 173 net/phonet/pep-gprs.c struct gprs_dev *dev = netdev_priv(net); dev 184 net/phonet/pep-gprs.c spin_lock(&dev->tx_lock); dev 185 net/phonet/pep-gprs.c if (likely(skb_queue_len(&dev->tx_queue) < dev->tx_max)) { dev 186 net/phonet/pep-gprs.c skb_queue_tail(&dev->tx_queue, skb); dev 189 net/phonet/pep-gprs.c if (skb_queue_len(&dev->tx_queue) >= dev->tx_max) dev 191 net/phonet/pep-gprs.c spin_unlock(&dev->tx_lock); dev 193 net/phonet/pep-gprs.c schedule_work(&dev->tx_work); dev 201 net/phonet/pep-gprs.c struct gprs_dev *dev = container_of(work, struct gprs_dev, tx_work); dev 202 net/phonet/pep-gprs.c struct sock *sk = dev->sk; dev 205 net/phonet/pep-gprs.c while ((skb = skb_dequeue(&dev->tx_queue)) != NULL) { dev 208 net/phonet/pep-gprs.c dev->stats.tx_bytes += skb->len; dev 209 net/phonet/pep-gprs.c dev->stats.tx_packets++; dev 218 net/phonet/pep-gprs.c dev->net->name, err); dev 219 net/phonet/pep-gprs.c dev->stats.tx_aborted_errors++; dev 220 net/phonet/pep-gprs.c dev->stats.tx_errors++; dev 241 net/phonet/pep-gprs.c struct gprs_dev *dev = netdev_priv(net); dev 243 net/phonet/pep-gprs.c return &dev->stats; dev 273 net/phonet/pep-gprs.c struct gprs_dev *dev; dev 281 net/phonet/pep-gprs.c net = alloc_netdev(sizeof(*dev), ifname, gprs_setup); dev 284 net/phonet/pep-gprs.c dev = netdev_priv(net); dev 285 net/phonet/pep-gprs.c dev->net = net; dev 286 net/phonet/pep-gprs.c dev->tx_max = 0; dev 287 net/phonet/pep-gprs.c spin_lock_init(&dev->tx_lock); dev 288 net/phonet/pep-gprs.c skb_queue_head_init(&dev->tx_queue); dev 289 net/phonet/pep-gprs.c INIT_WORK(&dev->tx_work, gprs_tx); dev 308 net/phonet/pep-gprs.c sk->sk_user_data = dev; dev 309 net/phonet/pep-gprs.c dev->old_state_change = sk->sk_state_change; dev 310 net/phonet/pep-gprs.c dev->old_data_ready = sk->sk_data_ready; dev 311 net/phonet/pep-gprs.c dev->old_write_space = sk->sk_write_space; dev 318 net/phonet/pep-gprs.c dev->sk = sk; dev 332 net/phonet/pep-gprs.c struct gprs_dev *dev = sk->sk_user_data; dev 333 net/phonet/pep-gprs.c struct net_device *net = dev->net; dev 337 net/phonet/pep-gprs.c sk->sk_state_change = dev->old_state_change; dev 338 net/phonet/pep-gprs.c sk->sk_data_ready = dev->old_data_ready; dev 339 net/phonet/pep-gprs.c sk->sk_write_space = dev->old_write_space; dev 346 net/phonet/pep-gprs.c skb_queue_purge(&dev->tx_queue); dev 417 net/phonet/pep.c skb->dev = NULL; dev 45 net/phonet/pn_dev.c pnd->netdev = dev; dev 57 net/phonet/pn_dev.c if (pnd->netdev == dev) dev 72 net/phonet/pn_dev.c struct net_device *dev; dev 76 net/phonet/pn_dev.c dev = pnd->netdev; dev 77 net/phonet/pn_dev.c BUG_ON(!dev); dev 79 net/phonet/pn_dev.c if (dev_net(dev) == net && dev 80 net/phonet/pn_dev.c (dev->reg_state == NETREG_REGISTERED) && dev 83 net/phonet/pn_dev.c dev = NULL; dev 85 net/phonet/pn_dev.c if (dev) dev 86 net/phonet/pn_dev.c dev_hold(dev); dev 88 net/phonet/pn_dev.c return dev; dev 98 net/phonet/pn_dev.c pnd = __phonet_get(dev); dev 100 net/phonet/pn_dev.c pnd = __phonet_device_alloc(dev); dev 115 net/phonet/pn_dev.c pnd = __phonet_get(dev); dev 130 net/phonet/pn_dev.c pnd = __phonet_get(dev); dev 167 net/phonet/pn_dev.c struct net_device *dev = arg; dev 174 net/phonet/pn_dev.c pnd = __phonet_get(dev); dev 44 net/phonet/pn_netlink.c err = fill_addr(skb, dev, addr, 0, 0, event); dev 50 net/phonet/pn_netlink.c err = rtnl_notify(skb, dev_net(dev), 0, dev 54 net/phonet/pn_netlink.c rtnl_set_sk_err(dev_net(dev), RTNLGRP_PHONET_IFADDR, err); dev 65 net/phonet/pn_netlink.c struct net_device *dev; dev 87 net/phonet/pn_netlink.c dev = __dev_get_by_index(net, ifm->ifa_index); dev 88 net/phonet/pn_netlink.c if (dev == NULL) dev 92 net/phonet/pn_netlink.c err = phonet_address_add(dev, pnaddr); dev 94 net/phonet/pn_netlink.c err = phonet_address_del(dev, pnaddr); dev 96 net/phonet/pn_netlink.c rtmsg_notify(nlh->nlmsg_type, dev, pnaddr); dev 115 net/phonet/pn_netlink.c ifm->ifa_index = dev->ifindex; dev 241 net/phonet/socket.c struct net_device *dev; dev 250 net/phonet/socket.c dev = dev_get_by_index(sock_net(sk), dev 253 net/phonet/socket.c dev = phonet_device_get(sock_net(sk)); dev 254 net/phonet/socket.c if (dev && (dev->flags & IFF_UP)) dev 255 net/phonet/socket.c saddr = phonet_address_get(dev, pn_addr(handle)); dev 260 net/phonet/socket.c if (dev) dev 261 net/phonet/socket.c dev_put(dev); dev 173 net/rfkill/rfkill-input.c handle->dev = dev; dev 200 net/rfkill/rfkill-input.c spin_lock_irq(&handle->dev->event_lock); dev 202 net/rfkill/rfkill-input.c if (test_bit(EV_SW, handle->dev->evbit)) { dev 203 net/rfkill/rfkill-input.c if (test_bit(SW_RFKILL_ALL, handle->dev->swbit)) dev 205 net/rfkill/rfkill-input.c handle->dev->sw)); dev 209 net/rfkill/rfkill-input.c spin_unlock_irq(&handle->dev->event_lock); dev 182 net/rfkill/rfkill.c if (unlikely(rfkill->dev.power.power_state.event & PM_EVENT_SLEEP)) dev 372 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 399 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 408 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 418 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 446 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 455 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 505 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 515 net/rfkill/rfkill.c if (dev->power.power_state.event != state.event) dev 516 net/rfkill/rfkill.c dev->power.power_state = state; dev 523 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 525 net/rfkill/rfkill.c if (dev->power.power_state.event != PM_EVENT_ON) { dev 528 net/rfkill/rfkill.c dev->power.power_state.event = PM_EVENT_ON; dev 551 net/rfkill/rfkill.c kobject_uevent(&rfkill->dev.kobj, KOBJ_CHANGE); dev 567 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); dev 667 net/rfkill/rfkill.c struct device *dev; dev 683 net/rfkill/rfkill.c dev = &rfkill->dev; dev 684 net/rfkill/rfkill.c dev->class = &rfkill_class; dev 685 net/rfkill/rfkill.c dev->parent = parent; dev 686 net/rfkill/rfkill.c device_initialize(dev); dev 704 net/rfkill/rfkill.c put_device(&rfkill->dev); dev 714 net/rfkill/rfkill.c rfkill->led_trigger.name = rfkill->dev.bus_id; dev 744 net/rfkill/rfkill.c struct device *dev = &rfkill->dev; dev 755 net/rfkill/rfkill.c snprintf(dev->bus_id, sizeof(dev->bus_id), dev 766 net/rfkill/rfkill.c error = device_add(dev); dev 788 net/rfkill/rfkill.c device_del(&rfkill->dev); dev 791 net/rfkill/rfkill.c put_device(&rfkill->dev); dev 88 net/rose/af_rose.c lockdep_set_class(&dev->addr_list_lock, &rose_netdev_addr_lock_key); dev 89 net/rose/af_rose.c netdev_for_each_tx_queue(dev, rose_set_lockdep_one, NULL); dev 197 net/rose/af_rose.c if (rose->device == dev) { dev 212 net/rose/af_rose.c struct net_device *dev = (struct net_device *)ptr; dev 214 net/rose/af_rose.c if (!net_eq(dev_net(dev), &init_net)) dev 220 net/rose/af_rose.c switch (dev->type) { dev 222 net/rose/af_rose.c rose_kill_by_device(dev); dev 225 net/rose/af_rose.c rose_link_device_down(dev); dev 226 net/rose/af_rose.c rose_rt_device_down(dev); dev 666 net/rose/af_rose.c struct net_device *dev; dev 686 net/rose/af_rose.c if ((dev = rose_dev_get(&addr->srose_addr)) == NULL) { dev 704 net/rose/af_rose.c rose->device = dev; dev 730 net/rose/af_rose.c struct net_device *dev; dev 789 net/rose/af_rose.c if ((dev = rose_dev_first()) == NULL) { dev 800 net/rose/af_rose.c memcpy(&rose->source_addr, dev->dev_addr, ROSE_ADDR_LEN); dev 802 net/rose/af_rose.c rose->device = dev; dev 1031 net/rose/af_rose.c make_rose->device = dev; dev 1446 net/rose/af_rose.c const struct net_device *dev = rose->device; dev 1448 net/rose/af_rose.c if (!dev) dev 1451 net/rose/af_rose.c devname = dev->name; dev 1576 net/rose/af_rose.c struct net_device *dev; dev 1580 net/rose/af_rose.c dev = alloc_netdev(sizeof(struct net_device_stats), dev 1582 net/rose/af_rose.c if (!dev) { dev 1587 net/rose/af_rose.c rc = register_netdev(dev); dev 1590 net/rose/af_rose.c free_netdev(dev); dev 1593 net/rose/af_rose.c rose_set_lockdep_key(dev); dev 1594 net/rose/af_rose.c dev_rose[i] = dev; dev 1662 net/rose/af_rose.c struct net_device *dev = dev_rose[i]; dev 1664 net/rose/af_rose.c if (dev) { dev 1665 net/rose/af_rose.c unregister_netdev(dev); dev 1666 net/rose/af_rose.c free_netdev(dev); dev 59 net/rose/rose_dev.c struct net_device *dev = skb->dev; dev 60 net/rose/rose_dev.c struct net_device_stats *stats = netdev_priv(dev); dev 98 net/rose/rose_dev.c if (!memcpy(dev->dev_addr, sa->sa_data, dev->addr_len)) dev 101 net/rose/rose_dev.c if (dev->flags & IFF_UP) { dev 102 net/rose/rose_dev.c err = rose_add_loopback_node((rose_address *)dev->dev_addr); dev 106 net/rose/rose_dev.c rose_del_loopback_node((rose_address *)dev->dev_addr); dev 109 net/rose/rose_dev.c memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); dev 118 net/rose/rose_dev.c err = rose_add_loopback_node((rose_address *)dev->dev_addr); dev 122 net/rose/rose_dev.c netif_start_queue(dev); dev 129 net/rose/rose_dev.c netif_stop_queue(dev); dev 130 net/rose/rose_dev.c rose_del_loopback_node((rose_address *)dev->dev_addr); dev 136 net/rose/rose_dev.c struct net_device_stats *stats = netdev_priv(dev); dev 138 net/rose/rose_dev.c if (!netif_running(dev)) { dev 149 net/rose/rose_dev.c return netdev_priv(dev); dev 159 net/rose/rose_dev.c dev->mtu = ROSE_MAX_PACKET_SIZE - 2; dev 160 net/rose/rose_dev.c dev->hard_start_xmit = rose_xmit; dev 161 net/rose/rose_dev.c dev->open = rose_open; dev 162 net/rose/rose_dev.c dev->stop = rose_close; dev 164 net/rose/rose_dev.c dev->header_ops = &rose_header_ops; dev 165 net/rose/rose_dev.c dev->hard_header_len = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + ROSE_MIN_LEN; dev 166 net/rose/rose_dev.c dev->addr_len = ROSE_ADDR_LEN; dev 167 net/rose/rose_dev.c dev->type = ARPHRD_ROSE; dev 168 net/rose/rose_dev.c dev->set_mac_address = rose_set_mac_address; dev 171 net/rose/rose_dev.c dev->flags = IFF_NOARP; dev 172 net/rose/rose_dev.c dev->get_stats = rose_get_stats; dev 106 net/rose/rose_link.c rose_call = (ax25_address *)neigh->dev->dev_addr; dev 110 net/rose/rose_link.c neigh->ax25 = ax25_send_frame(skb, 260, rose_call, &neigh->callsign, neigh->digipeat, neigh->dev); dev 125 net/rose/rose_link.c rose_call = (ax25_address *)neigh->dev->dev_addr; dev 129 net/rose/rose_link.c neigh->ax25 = ax25_find_cb(rose_call, &neigh->callsign, neigh->digipeat, neigh->dev); dev 261 net/rose/rose_link.c if (call_fw_firewall(PF_ROSE, skb->dev, skb->data, NULL, &skb) != FW_ACCEPT) { dev 68 net/rose/rose_loopback.c struct net_device *dev; dev 90 net/rose/rose_loopback.c if ((dev = rose_dev_get(dest)) != NULL) { dev 91 net/rose/rose_loopback.c if (rose_rx_call_request(skb, dev, rose_loopback_neigh, lci_o) == 0) dev 81 net/rose/rose_route.c && rose_neigh->dev == dev) dev 96 net/rose/rose_route.c rose_neigh->dev = dev; dev 315 net/rose/rose_route.c && rose_neigh->dev == dev) dev 375 net/rose/rose_route.c sn->dev = NULL; dev 484 net/rose/rose_route.c if (s->dev != dev) dev 533 net/rose/rose_route.c if (s->neigh1->dev == dev || s->neigh2->dev == dev) dev 584 net/rose/rose_route.c struct net_device *dev; dev 586 net/rose/rose_route.c if ((dev = dev_get_by_name(&init_net, devname)) == NULL) dev 589 net/rose/rose_route.c if ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25) dev 590 net/rose/rose_route.c return dev; dev 592 net/rose/rose_route.c dev_put(dev); dev 601 net/rose/rose_route.c struct net_device *dev, *first = NULL; dev 604 net/rose/rose_route.c for_each_netdev(&init_net, dev) { dev 605 net/rose/rose_route.c if ((dev->flags & IFF_UP) && dev->type == ARPHRD_ROSE) dev 606 net/rose/rose_route.c if (first == NULL || strncmp(dev->name, first->name, 3) < 0) dev 607 net/rose/rose_route.c first = dev; dev 619 net/rose/rose_route.c struct net_device *dev; dev 622 net/rose/rose_route.c for_each_netdev(&init_net, dev) { dev 623 net/rose/rose_route.c if ((dev->flags & IFF_UP) && dev->type == ARPHRD_ROSE && rosecmp(addr, (rose_address *)dev->dev_addr) == 0) { dev 624 net/rose/rose_route.c dev_hold(dev); dev 628 net/rose/rose_route.c dev = NULL; dev 631 net/rose/rose_route.c return dev; dev 636 net/rose/rose_route.c struct net_device *dev; dev 639 net/rose/rose_route.c for_each_netdev(&init_net, dev) { dev 640 net/rose/rose_route.c if ((dev->flags & IFF_UP) && dev->type == ARPHRD_ROSE && rosecmp(addr, (rose_address *)dev->dev_addr) == 0) dev 643 net/rose/rose_route.c dev = NULL; dev 646 net/rose/rose_route.c return dev != NULL; dev 716 net/rose/rose_route.c struct net_device *dev; dev 723 net/rose/rose_route.c if ((dev = rose_ax25_dev_get(rose_route.device)) == NULL) dev 726 net/rose/rose_route.c dev_put(dev); dev 733 net/rose/rose_route.c err = rose_add_node(&rose_route, dev); dev 734 net/rose/rose_route.c dev_put(dev); dev 740 net/rose/rose_route.c if ((dev = rose_ax25_dev_get(rose_route.device)) == NULL) dev 742 net/rose/rose_route.c err = rose_del_node(&rose_route, dev); dev 743 net/rose/rose_route.c dev_put(dev); dev 833 net/rose/rose_route.c if (rose_neigh->dev == dev) { dev 853 net/rose/rose_route.c struct net_device *dev; dev 858 net/rose/rose_route.c if (call_in_firewall(PF_ROSE, skb->dev, skb->data, NULL, &skb) != FW_ACCEPT) dev 873 net/rose/rose_route.c ax25->ax25_dev->dev == rose_neigh->dev) dev 932 net/rose/rose_route.c if ((dev = rose_dev_get(dest_addr)) != NULL) { dev 933 net/rose/rose_route.c res = rose_rx_call_request(skb, dev, rose_neigh, lci); dev 934 net/rose/rose_route.c dev_put(dev); dev 1198 net/rose/rose_route.c rose_neigh->dev ? rose_neigh->dev->name : "???", dev 91 net/rxrpc/ar-input.c skb->dev = NULL; dev 217 net/sched/act_ipt.c par.in = skb->dev; dev 68 net/sched/act_mirred.c struct net_device *dev = NULL; dev 84 net/sched/act_mirred.c dev = __dev_get_by_index(&init_net, parm->ifindex); dev 85 net/sched/act_mirred.c if (dev == NULL) dev 87 net/sched/act_mirred.c switch (dev->type) { dev 126 net/sched/act_mirred.c m->tcfm_dev = dev; dev 127 net/sched/act_mirred.c dev_hold(dev); dev 150 net/sched/act_mirred.c struct net_device *dev; dev 156 net/sched/act_mirred.c dev = m->tcfm_dev; dev 159 net/sched/act_mirred.c if (!(dev->flags&IFF_UP) ) { dev 162 net/sched/act_mirred.c dev->name); dev 191 net/sched/act_mirred.c skb_push(skb2, skb2->dev->hard_header_len); dev 197 net/sched/act_mirred.c skb2->dev = dev; dev 198 net/sched/act_mirred.c skb2->iif = skb->dev->ifindex; dev 55 net/sched/act_skbedit.c skb->dev->real_num_tx_queues > d->queue_mapping) dev 129 net/sched/cls_api.c struct net_device *dev; dev 160 net/sched/cls_api.c dev = __dev_get_by_index(&init_net, t->tcm_ifindex); dev 161 net/sched/cls_api.c if (dev == NULL) dev 170 net/sched/cls_api.c struct netdev_queue *dev_queue = netdev_get_tx_queue(dev, 0); dev 174 net/sched/cls_api.c q = qdisc_lookup(dev, TC_H_MAJ(t->tcm_parent)); dev 400 net/sched/cls_api.c struct net_device *dev; dev 413 net/sched/cls_api.c if ((dev = dev_get_by_index(&init_net, tcm->tcm_ifindex)) == NULL) dev 416 net/sched/cls_api.c dev_queue = netdev_get_tx_queue(dev, 0); dev 420 net/sched/cls_api.c q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); dev 474 net/sched/cls_api.c dev_put(dev); dev 146 net/sched/em_meta.c if (unlikely(dev == NULL)) dev 149 net/sched/em_meta.c dst->value = dev->ifindex; dev 155 net/sched/em_meta.c if (unlikely(dev == NULL)) dev 158 net/sched/em_meta.c dst->value = (unsigned long) dev->name; dev 159 net/sched/em_meta.c dst->len = strlen(dev->name); dev 165 net/sched/em_meta.c *err = int_dev(skb->dev, dst); dev 170 net/sched/em_meta.c *err = var_dev(skb->dev, dst); dev 308 net/sched/em_meta.c struct net_device *dev; dev 310 net/sched/em_meta.c dev = dev_get_by_index(&init_net, skb->sk->sk_bound_dev_if); dev 311 net/sched/em_meta.c *err = var_dev(dev, dst); dev 312 net/sched/em_meta.c if (dev) dev 313 net/sched/em_meta.c dev_put(dev); dev 234 net/sched/sch_api.c for (i = 0; i < dev->num_tx_queues; i++) { dev 235 net/sched/sch_api.c struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 243 net/sched/sch_api.c q = qdisc_match_from_root(dev->rx_queue.qdisc_sleeping, handle); dev 614 net/sched/sch_api.c } while (qdisc_lookup(dev, autohandle) && --i > 0); dev 703 net/sched/sch_api.c num_q = dev->num_tx_queues; dev 710 net/sched/sch_api.c if (dev->flags & IFF_UP) dev 711 net/sched/sch_api.c dev_deactivate(dev); dev 714 net/sched/sch_api.c struct netdev_queue *dev_queue = &dev->rx_queue; dev 717 net/sched/sch_api.c dev_queue = netdev_get_tx_queue(dev, i); dev 726 net/sched/sch_api.c if (dev->flags & IFF_UP) dev 727 net/sched/sch_api.c dev_activate(dev); dev 813 net/sched/sch_api.c handle = qdisc_alloc_handle(dev); dev 861 net/sched/sch_api.c dev_put(dev); dev 948 net/sched/sch_api.c struct net_device *dev; dev 957 net/sched/sch_api.c if ((dev = __dev_get_by_index(&init_net, tcm->tcm_ifindex)) == NULL) dev 967 net/sched/sch_api.c if ((p = qdisc_lookup(dev, TC_H_MAJ(clid))) == NULL) dev 971 net/sched/sch_api.c q = dev->rx_queue.qdisc_sleeping; dev 975 net/sched/sch_api.c dev_queue = netdev_get_tx_queue(dev, 0); dev 984 net/sched/sch_api.c if ((q = qdisc_lookup(dev, tcm->tcm_handle)) == NULL) dev 996 net/sched/sch_api.c if ((err = qdisc_graft(dev, p, skb, n, clid, NULL, q)) != 0) dev 1013 net/sched/sch_api.c struct net_device *dev; dev 1027 net/sched/sch_api.c if ((dev = __dev_get_by_index(&init_net, tcm->tcm_ifindex)) == NULL) dev 1037 net/sched/sch_api.c if ((p = qdisc_lookup(dev, TC_H_MAJ(clid))) == NULL) dev 1041 net/sched/sch_api.c q = dev->rx_queue.qdisc_sleeping; dev 1045 net/sched/sch_api.c dev_queue = netdev_get_tx_queue(dev, 0); dev 1059 net/sched/sch_api.c if ((q = qdisc_lookup(dev, tcm->tcm_handle)) == NULL) dev 1104 net/sched/sch_api.c q = qdisc_lookup(dev, tcm->tcm_handle); dev 1123 net/sched/sch_api.c q = qdisc_create(dev, &dev->rx_queue, dev 1127 net/sched/sch_api.c q = qdisc_create(dev, netdev_get_tx_queue(dev, 0), dev 1137 net/sched/sch_api.c err = qdisc_graft(dev, p, skb, n, clid, q, NULL); dev 1273 net/sched/sch_api.c struct net_device *dev; dev 1282 net/sched/sch_api.c for_each_netdev(&init_net, dev) { dev 1291 net/sched/sch_api.c dev_queue = netdev_get_tx_queue(dev, 0); dev 1295 net/sched/sch_api.c dev_queue = &dev->rx_queue; dev 1326 net/sched/sch_api.c struct net_device *dev; dev 1339 net/sched/sch_api.c if ((dev = __dev_get_by_index(&init_net, tcm->tcm_ifindex)) == NULL) dev 1361 net/sched/sch_api.c dev_queue = netdev_get_tx_queue(dev, 0); dev 1387 net/sched/sch_api.c if ((q = qdisc_lookup(dev, qid)) == NULL) dev 1570 net/sched/sch_api.c struct net_device *dev; dev 1578 net/sched/sch_api.c if ((dev = dev_get_by_index(&init_net, tcm->tcm_ifindex)) == NULL) dev 1584 net/sched/sch_api.c dev_queue = netdev_get_tx_queue(dev, 0); dev 1588 net/sched/sch_api.c dev_queue = &dev->rx_queue; dev 1595 net/sched/sch_api.c dev_put(dev); dev 636 net/sched/sch_atm.c pvc.sap_addr.itf = flow->vcc->dev ? flow->vcc->dev->number : -1; dev 59 net/sched/sch_generic.c struct net_device *dev = qdisc_dev(q); dev 63 net/sched/sch_generic.c txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb)); dev 91 net/sched/sch_generic.c "fix it urgently!\n", dev_queue->dev->name); dev 128 net/sched/sch_generic.c struct net_device *dev; dev 141 net/sched/sch_generic.c dev = qdisc_dev(q); dev 142 net/sched/sch_generic.c txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb)); dev 144 net/sched/sch_generic.c HARD_TX_LOCK(dev, txq, smp_processor_id()); dev 147 net/sched/sch_generic.c ret = dev_hard_start_xmit(skb, dev, txq); dev 148 net/sched/sch_generic.c HARD_TX_UNLOCK(dev, txq); dev 167 net/sched/sch_generic.c dev->name, ret, q->q.qlen); dev 201 net/sched/sch_generic.c struct net_device *dev = (struct net_device *)arg; dev 203 net/sched/sch_generic.c netif_tx_lock(dev); dev 204 net/sched/sch_generic.c if (!qdisc_tx_is_noop(dev)) { dev 205 net/sched/sch_generic.c if (netif_device_present(dev) && dev 206 net/sched/sch_generic.c netif_running(dev) && dev 207 net/sched/sch_generic.c netif_carrier_ok(dev)) { dev 211 net/sched/sch_generic.c for (i = 0; i < dev->num_tx_queues; i++) { dev 214 net/sched/sch_generic.c txq = netdev_get_tx_queue(dev, i); dev 222 net/sched/sch_generic.c time_after(jiffies, (dev->trans_start + dev 223 net/sched/sch_generic.c dev->watchdog_timeo))) { dev 226 net/sched/sch_generic.c dev->name, netdev_drivername(dev, drivername, 64)); dev 227 net/sched/sch_generic.c dev->tx_timeout(dev); dev 229 net/sched/sch_generic.c if (!mod_timer(&dev->watchdog_timer, dev 231 net/sched/sch_generic.c dev->watchdog_timeo))) dev 232 net/sched/sch_generic.c dev_hold(dev); dev 235 net/sched/sch_generic.c netif_tx_unlock(dev); dev 237 net/sched/sch_generic.c dev_put(dev); dev 242 net/sched/sch_generic.c if (dev->tx_timeout) { dev 243 net/sched/sch_generic.c if (dev->watchdog_timeo <= 0) dev 244 net/sched/sch_generic.c dev->watchdog_timeo = 5*HZ; dev 245 net/sched/sch_generic.c if (!mod_timer(&dev->watchdog_timer, dev 246 net/sched/sch_generic.c round_jiffies(jiffies + dev->watchdog_timeo))) dev 247 net/sched/sch_generic.c dev_hold(dev); dev 253 net/sched/sch_generic.c __netdev_watchdog_up(dev); dev 258 net/sched/sch_generic.c netif_tx_lock_bh(dev); dev 259 net/sched/sch_generic.c if (del_timer(&dev->watchdog_timer)) dev 260 net/sched/sch_generic.c dev_put(dev); dev 261 net/sched/sch_generic.c netif_tx_unlock_bh(dev); dev 272 net/sched/sch_generic.c if (test_and_clear_bit(__LINK_STATE_NOCARRIER, &dev->state)) { dev 273 net/sched/sch_generic.c linkwatch_fire_event(dev); dev 274 net/sched/sch_generic.c if (netif_running(dev)) dev 275 net/sched/sch_generic.c __netdev_watchdog_up(dev); dev 288 net/sched/sch_generic.c if (!test_and_set_bit(__LINK_STATE_NOCARRIER, &dev->state)) dev 289 net/sched/sch_generic.c linkwatch_fire_event(dev); dev 313 net/sched/sch_generic.c skb->dev->name); dev 563 net/sched/sch_generic.c for (i = 0; i < dev->num_tx_queues; i++) { dev 564 net/sched/sch_generic.c struct netdev_queue *txq = netdev_get_tx_queue(dev, i); dev 578 net/sched/sch_generic.c if (dev->tx_queue_len) { dev 579 net/sched/sch_generic.c qdisc = qdisc_create_dflt(dev, dev_queue, dev 582 net/sched/sch_generic.c printk(KERN_INFO "%s: activation failed\n", dev->name); dev 616 net/sched/sch_generic.c if (dev_all_qdisc_sleeping_noop(dev)) dev 617 net/sched/sch_generic.c netdev_for_each_tx_queue(dev, attach_one_default_qdisc, NULL); dev 619 net/sched/sch_generic.c if (!netif_carrier_ok(dev)) dev 624 net/sched/sch_generic.c netdev_for_each_tx_queue(dev, transition_one_qdisc, &need_watchdog); dev 625 net/sched/sch_generic.c transition_one_qdisc(dev, &dev->rx_queue, NULL); dev 628 net/sched/sch_generic.c dev->trans_start = jiffies; dev 629 net/sched/sch_generic.c dev_watchdog_up(dev); dev 658 net/sched/sch_generic.c for (i = 0; i < dev->num_tx_queues; i++) { dev 664 net/sched/sch_generic.c dev_queue = netdev_get_tx_queue(dev, i); dev 683 net/sched/sch_generic.c netdev_for_each_tx_queue(dev, dev_deactivate_queue, &noop_qdisc); dev 684 net/sched/sch_generic.c dev_deactivate_queue(dev, &dev->rx_queue, &noop_qdisc); dev 686 net/sched/sch_generic.c dev_watchdog_down(dev); dev 692 net/sched/sch_generic.c while (some_qdisc_is_busy(dev)) dev 708 net/sched/sch_generic.c netdev_for_each_tx_queue(dev, dev_init_scheduler_queue, &noop_qdisc); dev 709 net/sched/sch_generic.c dev_init_scheduler_queue(dev, &dev->rx_queue, &noop_qdisc); dev 711 net/sched/sch_generic.c setup_timer(&dev->watchdog_timer, dev_watchdog, (unsigned long)dev); dev 731 net/sched/sch_generic.c netdev_for_each_tx_queue(dev, shutdown_scheduler_queue, &noop_qdisc); dev 732 net/sched/sch_generic.c shutdown_scheduler_queue(dev, &dev->rx_queue, &noop_qdisc); dev 733 net/sched/sch_generic.c WARN_ON(timer_pending(&dev->watchdog_timer)); dev 58 net/sched/sch_teql.c struct net_device *dev; dev 81 net/sched/sch_teql.c struct net_device *dev = qdisc_dev(sch); dev 84 net/sched/sch_teql.c if (q->q.qlen < dev->tx_queue_len) { dev 114 net/sched/sch_teql.c dat_queue = netdev_get_tx_queue(dat->m->dev, 0); dev 161 net/sched/sch_teql.c txq = netdev_get_tx_queue(master->dev, 0); dev 181 net/sched/sch_teql.c struct net_device *dev = qdisc_dev(sch); dev 185 net/sched/sch_teql.c if (dev->hard_header_len > m->dev->hard_header_len) dev 188 net/sched/sch_teql.c if (m->dev == dev) dev 196 net/sched/sch_teql.c if (m->dev->flags & IFF_UP) { dev 197 net/sched/sch_teql.c if ((m->dev->flags&IFF_POINTOPOINT && !(dev->flags&IFF_POINTOPOINT)) dev 198 net/sched/sch_teql.c || (m->dev->flags&IFF_BROADCAST && !(dev->flags&IFF_BROADCAST)) dev 199 net/sched/sch_teql.c || (m->dev->flags&IFF_MULTICAST && !(dev->flags&IFF_MULTICAST)) dev 200 net/sched/sch_teql.c || dev->mtu < m->dev->mtu) dev 203 net/sched/sch_teql.c if (!(dev->flags&IFF_POINTOPOINT)) dev 204 net/sched/sch_teql.c m->dev->flags &= ~IFF_POINTOPOINT; dev 205 net/sched/sch_teql.c if (!(dev->flags&IFF_BROADCAST)) dev 206 net/sched/sch_teql.c m->dev->flags &= ~IFF_BROADCAST; dev 207 net/sched/sch_teql.c if (!(dev->flags&IFF_MULTICAST)) dev 208 net/sched/sch_teql.c m->dev->flags &= ~IFF_MULTICAST; dev 209 net/sched/sch_teql.c if (dev->mtu < m->dev->mtu) dev 210 net/sched/sch_teql.c m->dev->mtu = dev->mtu; dev 217 net/sched/sch_teql.c m->dev->mtu = dev->mtu; dev 218 net/sched/sch_teql.c m->dev->flags = (m->dev->flags&~FMASK)|(dev->flags&FMASK); dev 227 net/sched/sch_teql.c struct netdev_queue *dev_queue = netdev_get_tx_queue(dev, 0); dev 238 net/sched/sch_teql.c n = __neigh_lookup_errno(mn->tbl, mn->primary_key, dev); dev 246 net/sched/sch_teql.c err = dev_hard_header(skb, dev, ntohs(skb->protocol), dev 264 net/sched/sch_teql.c struct netdev_queue *txq = netdev_get_tx_queue(dev, 0); dev 268 net/sched/sch_teql.c if (dev->header_ops == NULL || dev 272 net/sched/sch_teql.c return __teql_resolve(skb, skb_res, dev); dev 277 net/sched/sch_teql.c struct teql_master *master = netdev_priv(dev); dev 314 net/sched/sch_teql.c netif_wake_queue(dev); dev 322 net/sched/sch_teql.c if (netif_queue_stopped(dev)) dev 341 net/sched/sch_teql.c netif_stop_queue(dev); dev 355 net/sched/sch_teql.c struct teql_master *m = netdev_priv(dev); dev 388 net/sched/sch_teql.c m->dev->mtu = mtu; dev 389 net/sched/sch_teql.c m->dev->flags = (m->dev->flags&~FMASK) | flags; dev 390 net/sched/sch_teql.c netif_start_queue(m->dev); dev 396 net/sched/sch_teql.c netif_stop_queue(dev); dev 402 net/sched/sch_teql.c struct teql_master *m = netdev_priv(dev); dev 408 net/sched/sch_teql.c struct teql_master *m = netdev_priv(dev); dev 422 net/sched/sch_teql.c dev->mtu = new_mtu; dev 428 net/sched/sch_teql.c struct teql_master *master = netdev_priv(dev); dev 431 net/sched/sch_teql.c master->dev = dev; dev 442 net/sched/sch_teql.c dev->open = teql_master_open; dev 443 net/sched/sch_teql.c dev->hard_start_xmit = teql_master_xmit; dev 444 net/sched/sch_teql.c dev->stop = teql_master_close; dev 445 net/sched/sch_teql.c dev->get_stats = teql_master_stats; dev 446 net/sched/sch_teql.c dev->change_mtu = teql_master_mtu; dev 447 net/sched/sch_teql.c dev->type = ARPHRD_VOID; dev 448 net/sched/sch_teql.c dev->mtu = 1500; dev 449 net/sched/sch_teql.c dev->tx_queue_len = 100; dev 450 net/sched/sch_teql.c dev->flags = IFF_NOARP; dev 451 net/sched/sch_teql.c dev->hard_header_len = LL_MAX_HEADER; dev 465 net/sched/sch_teql.c struct net_device *dev; dev 468 net/sched/sch_teql.c dev = alloc_netdev(sizeof(struct teql_master), dev 470 net/sched/sch_teql.c if (!dev) { dev 475 net/sched/sch_teql.c if ((err = register_netdev(dev))) { dev 476 net/sched/sch_teql.c free_netdev(dev); dev 480 net/sched/sch_teql.c master = netdev_priv(dev); dev 482 net/sched/sch_teql.c strlcpy(master->qops.id, dev->name, IFNAMSIZ); dev 486 net/sched/sch_teql.c unregister_netdev(dev); dev 487 net/sched/sch_teql.c free_netdev(dev); dev 505 net/sched/sch_teql.c unregister_netdev(master->dev); dev 506 net/sched/sch_teql.c free_netdev(master->dev); dev 102 net/sctp/ipv6.c addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex; dev 147 net/sctp/ipv6.c idev = in6_dev_get(skb->dev); dev 159 net/sctp/ipv6.c ICMP6_INC_STATS_BH(dev_net(skb->dev), idev, ICMP6_MIB_INERRORS); dev 323 net/sctp/ipv6.c dst ? ip6_dst_idev(dst)->dev : NULL, dev 376 net/sctp/ipv6.c if ((in6_dev = __in6_dev_get(dev)) == NULL) { dev 389 net/sctp/ipv6.c addr->a.v6.sin6_scope_id = dev->ifindex; dev 874 net/sctp/ipv6.c struct net_device *dev; dev 879 net/sctp/ipv6.c dev = dev_get_by_index(&init_net, addr->v6.sin6_scope_id); dev 880 net/sctp/ipv6.c if (!dev) dev 883 net/sctp/ipv6.c dev, 0)) { dev 884 net/sctp/ipv6.c dev_put(dev); dev 887 net/sctp/ipv6.c dev_put(dev); dev 910 net/sctp/ipv6.c struct net_device *dev; dev 915 net/sctp/ipv6.c dev = dev_get_by_index(&init_net, addr->v6.sin6_scope_id); dev 916 net/sctp/ipv6.c if (!dev) dev 918 net/sctp/ipv6.c dev_put(dev); dev 533 net/sctp/output.c if (!(dst->dev->features & NETIF_F_NO_CSUM)) { dev 175 net/sctp/protocol.c if ((in_dev = __in_dev_get_rcu(dev)) == NULL) { dev 202 net/sctp/protocol.c struct net_device *dev; dev 207 net/sctp/protocol.c for_each_netdev(&init_net, dev) { dev 210 net/sctp/protocol.c af->copy_addrlist(&sctp_local_addr_list, dev); dev 671 net/sctp/protocol.c if (!net_eq(dev_net(ifa->ifa_dev->dev), &init_net)) dev 175 net/sunrpc/socklib.c netdev_rx_csum_fault(skb->dev); dev 57 net/tipc/eth_media.c struct net_device *dev; dev 73 net/tipc/eth_media.c struct net_device *dev; dev 78 net/tipc/eth_media.c dev = ((struct eth_bearer *)(tb_ptr->usr_handle))->dev; dev 79 net/tipc/eth_media.c clone->dev = dev; dev 80 net/tipc/eth_media.c dev_hard_header(clone, dev, ETH_P_TIPC, dev 82 net/tipc/eth_media.c dev->dev_addr, clone->len); dev 104 net/tipc/eth_media.c if (!net_eq(dev_net(dev), &init_net)) { dev 130 net/tipc/eth_media.c struct net_device *dev = NULL; dev 140 net/tipc/eth_media.c dev = pdev; dev 144 net/tipc/eth_media.c if (!dev) dev 149 net/tipc/eth_media.c for (;(eb_ptr != stop) && eb_ptr->dev && (eb_ptr->dev != dev); eb_ptr++); dev 152 net/tipc/eth_media.c if (!eb_ptr->dev) { dev 153 net/tipc/eth_media.c eb_ptr->dev = dev; dev 155 net/tipc/eth_media.c eb_ptr->tipc_packet_type.dev = dev; dev 159 net/tipc/eth_media.c dev_hold(dev); dev 167 net/tipc/eth_media.c tb_ptr->mtu = dev->mtu; dev 170 net/tipc/eth_media.c memcpy(&tb_ptr->addr.dev_addr, &dev->dev_addr, ETH_ALEN); dev 197 net/tipc/eth_media.c struct net_device *dev = (struct net_device *)dv; dev 201 net/tipc/eth_media.c if (!net_eq(dev_net(dev), &init_net)) dev 204 net/tipc/eth_media.c while ((eb_ptr->dev != dev)) { dev 211 net/tipc/eth_media.c eb_ptr->bearer->mtu = dev->mtu; dev 215 net/tipc/eth_media.c if (netif_carrier_ok(dev)) dev 307 net/tipc/eth_media.c if (eth_bearers[i].dev) { dev 309 net/tipc/eth_media.c dev_put(eth_bearers[i].dev); dev 197 net/wanrouter/wanmain.c wandev->dev = NULL; dev 286 net/wanrouter/wanmain.c wanrouter_modname, type, dev->name); dev 322 net/wanrouter/wanmain.c skb->data[cnt+3], dev->name); dev 334 net/wanrouter/wanmain.c wanrouter_modname, skb->data[cnt], dev->name); dev 501 net/wanrouter/wanmain.c struct net_device *dev; dev 509 net/wanrouter/wanmain.c for (dev = wandev->dev; dev;) { dev 510 net/wanrouter/wanmain.c err = wanrouter_delete_interface(wandev, dev->name); dev 517 net/wanrouter/wanmain.c dev = wandev->dev; dev 568 net/wanrouter/wanmain.c struct net_device *dev = NULL; dev 592 net/wanrouter/wanmain.c dev = kzalloc(sizeof(struct net_device), GFP_KERNEL); dev 594 net/wanrouter/wanmain.c if (dev == NULL) dev 596 net/wanrouter/wanmain.c err = wandev->new_if(wandev, dev, cnf); dev 605 net/wanrouter/wanmain.c if (dev->name == NULL) { dev 611 net/wanrouter/wanmain.c wanrouter_modname, dev->name); dev 614 net/wanrouter/wanmain.c err = register_netdev(dev); dev 621 net/wanrouter/wanmain.c if (wandev->dev == NULL) { dev 622 net/wanrouter/wanmain.c wandev->dev = dev; dev 624 net/wanrouter/wanmain.c for (slave=wandev->dev; dev 628 net/wanrouter/wanmain.c *((struct net_device **)slave->priv) = dev; dev 638 net/wanrouter/wanmain.c wandev->del_if(wandev, dev); dev 642 net/wanrouter/wanmain.c kfree(dev->priv); dev 643 net/wanrouter/wanmain.c dev->priv = NULL; dev 647 net/wanrouter/wanmain.c kfree(dev); dev 730 net/wanrouter/wanmain.c struct net_device *dev = NULL, *prev = NULL; dev 734 net/wanrouter/wanmain.c dev = wandev->dev; dev 736 net/wanrouter/wanmain.c while (dev && strcmp(name, dev->name)) { dev 737 net/wanrouter/wanmain.c struct net_device **slave = dev->priv; dev 738 net/wanrouter/wanmain.c prev = dev; dev 739 net/wanrouter/wanmain.c dev = *slave; dev 743 net/wanrouter/wanmain.c if (dev == NULL) dev 746 net/wanrouter/wanmain.c if (netif_running(dev)) dev 750 net/wanrouter/wanmain.c wandev->del_if(wandev, dev); dev 755 net/wanrouter/wanmain.c struct net_device **slave = dev->priv; dev 759 net/wanrouter/wanmain.c struct net_device **slave = dev->priv; dev 760 net/wanrouter/wanmain.c wandev->dev = *slave; dev 765 net/wanrouter/wanmain.c printk(KERN_INFO "%s: unregistering '%s'\n", wandev->name, dev->name); dev 769 net/wanrouter/wanmain.c kfree(dev->priv); dev 770 net/wanrouter/wanmain.c dev->priv=NULL; dev 772 net/wanrouter/wanmain.c unregister_netdev(dev); dev 774 net/wanrouter/wanmain.c free_netdev(dev); dev 61 net/wireless/core.c struct net_device *dev; dev 72 net/wireless/core.c dev = dev_get_by_index(&init_net, ifindex); dev 73 net/wireless/core.c if (dev) { dev 74 net/wireless/core.c if (dev->ieee80211_ptr) dev 76 net/wireless/core.c wiphy_to_dev(dev->ieee80211_ptr->wiphy); dev 77 net/wireless/core.c dev_put(dev); dev 120 net/wireless/core.c struct net_device *dev; dev 123 net/wireless/core.c dev = dev_get_by_index(&init_net, ifindex); dev 124 net/wireless/core.c if (!dev) dev 126 net/wireless/core.c if (dev->ieee80211_ptr) { dev 127 net/wireless/core.c drv = wiphy_to_dev(dev->ieee80211_ptr->wiphy); dev 131 net/wireless/core.c dev_put(dev); dev 170 net/wireless/core.c if (strcmp(newname, dev_name(&rdev->wiphy.dev)) == 0) dev 176 net/wireless/core.c if (strcmp(newname, dev_name(&drv->wiphy.dev)) == 0) dev 183 net/wireless/core.c result = device_rename(&rdev->wiphy.dev, newname); dev 238 net/wireless/core.c snprintf(drv->wiphy.dev.bus_id, BUS_ID_SIZE, dev 245 net/wireless/core.c device_initialize(&drv->wiphy.dev); dev 246 net/wireless/core.c drv->wiphy.dev.class = &ieee80211_class; dev 247 net/wireless/core.c drv->wiphy.dev.platform_data = drv; dev 310 net/wireless/core.c res = device_add(&drv->wiphy.dev); dev 352 net/wireless/core.c device_del(&drv->wiphy.dev); dev 368 net/wireless/core.c put_device(&wiphy->dev); dev 376 net/wireless/core.c struct net_device *dev = ndev; dev 379 net/wireless/core.c if (!dev->ieee80211_ptr) dev 382 net/wireless/core.c rdev = wiphy_to_dev(dev->ieee80211_ptr->wiphy); dev 384 net/wireless/core.c WARN_ON(dev->ieee80211_ptr->iftype == NL80211_IFTYPE_UNSPECIFIED); dev 389 net/wireless/core.c list_add(&dev->ieee80211_ptr->list, &rdev->netdev_list); dev 390 net/wireless/core.c if (sysfs_create_link(&dev->dev.kobj, &rdev->wiphy.dev.kobj, dev 395 net/wireless/core.c dev->ieee80211_ptr->netdev = dev; dev 400 net/wireless/core.c if (!list_empty(&dev->ieee80211_ptr->list)) { dev 401 net/wireless/core.c sysfs_remove_link(&dev->dev.kobj, "phy80211"); dev 402 net/wireless/core.c list_del_init(&dev->ieee80211_ptr->list); dev 43 net/wireless/nl80211.c *dev = dev_get_by_index(&init_net, ifindex); dev 44 net/wireless/nl80211.c if (!*dev) dev 49 net/wireless/nl80211.c dev_put(*dev); dev 125 net/wireless/nl80211.c u16 ifmodes = dev->wiphy.interface_modes; dev 131 net/wireless/nl80211.c NLA_PUT_U32(msg, NL80211_ATTR_WIPHY, dev->idx); dev 132 net/wireless/nl80211.c NLA_PUT_STRING(msg, NL80211_ATTR_WIPHY_NAME, wiphy_name(&dev->wiphy)); dev 153 net/wireless/nl80211.c if (!dev->wiphy.bands[band]) dev 165 net/wireless/nl80211.c for (i = 0; i < dev->wiphy.bands[band]->n_channels; i++) { dev 170 net/wireless/nl80211.c chan = &dev->wiphy.bands[band]->channels[i]; dev 193 net/wireless/nl80211.c for (i = 0; i < dev->wiphy.bands[band]->n_bitrates; i++) { dev 198 net/wireless/nl80211.c rate = &dev->wiphy.bands[band]->bitrates[i]; dev 225 net/wireless/nl80211.c struct cfg80211_registered_device *dev; dev 228 net/wireless/nl80211.c list_for_each_entry(dev, &cfg80211_drv_list, list) { dev 233 net/wireless/nl80211.c dev) < 0) { dev 248 net/wireless/nl80211.c struct cfg80211_registered_device *dev; dev 250 net/wireless/nl80211.c dev = cfg80211_get_dev_from_info(info); dev 251 net/wireless/nl80211.c if (IS_ERR(dev)) dev 252 net/wireless/nl80211.c return PTR_ERR(dev); dev 258 net/wireless/nl80211.c if (nl80211_send_wiphy(msg, info->snd_pid, info->snd_seq, 0, dev) < 0) dev 261 net/wireless/nl80211.c cfg80211_put_dev(dev); dev 268 net/wireless/nl80211.c cfg80211_put_dev(dev); dev 300 net/wireless/nl80211.c NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, dev->ifindex); dev 301 net/wireless/nl80211.c NLA_PUT_STRING(msg, NL80211_ATTR_IFNAME, dev->name); dev 302 net/wireless/nl80211.c NLA_PUT_U32(msg, NL80211_ATTR_IFTYPE, dev->ieee80211_ptr->iftype); dev 316 net/wireless/nl80211.c struct cfg80211_registered_device *dev; dev 320 net/wireless/nl80211.c list_for_each_entry(dev, &cfg80211_drv_list, list) { dev 327 net/wireless/nl80211.c mutex_lock(&dev->devlist_mtx); dev 328 net/wireless/nl80211.c list_for_each_entry(wdev, &dev->netdev_list, list) { dev 336 net/wireless/nl80211.c mutex_unlock(&dev->devlist_mtx); dev 341 net/wireless/nl80211.c mutex_unlock(&dev->devlist_mtx); dev 357 net/wireless/nl80211.c struct cfg80211_registered_device *dev; dev 361 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &dev, &netdev); dev 373 net/wireless/nl80211.c cfg80211_put_dev(dev); dev 381 net/wireless/nl80211.c cfg80211_put_dev(dev); dev 420 net/wireless/nl80211.c struct net_device *dev; dev 425 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 428 net/wireless/nl80211.c ifindex = dev->ifindex; dev 429 net/wireless/nl80211.c type = dev->ieee80211_ptr->iftype; dev 430 net/wireless/nl80211.c dev_put(dev); dev 468 net/wireless/nl80211.c dev = __dev_get_by_index(&init_net, ifindex); dev 469 net/wireless/nl80211.c WARN_ON(!dev || (!err && dev->ieee80211_ptr->iftype != type)); dev 532 net/wireless/nl80211.c struct net_device *dev; dev 534 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 537 net/wireless/nl80211.c ifindex = dev->ifindex; dev 538 net/wireless/nl80211.c dev_put(dev); dev 584 net/wireless/nl80211.c struct net_device *dev; dev 602 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 627 net/wireless/nl80211.c NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, dev->ifindex); dev 633 net/wireless/nl80211.c err = drv->ops->get_key(&drv->wiphy, dev, key_idx, mac_addr, dev 652 net/wireless/nl80211.c dev_put(dev); dev 660 net/wireless/nl80211.c struct net_device *dev; dev 675 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 685 net/wireless/nl80211.c err = drv->ops->set_default_key(&drv->wiphy, dev, key_idx); dev 690 net/wireless/nl80211.c dev_put(dev); dev 698 net/wireless/nl80211.c struct net_device *dev; dev 756 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 766 net/wireless/nl80211.c err = drv->ops->add_key(&drv->wiphy, dev, key_idx, mac_addr, ¶ms); dev 771 net/wireless/nl80211.c dev_put(dev); dev 779 net/wireless/nl80211.c struct net_device *dev; dev 792 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 802 net/wireless/nl80211.c err = drv->ops->del_key(&drv->wiphy, dev, key_idx, mac_addr); dev 807 net/wireless/nl80211.c dev_put(dev); dev 813 net/wireless/nl80211.c int (*call)(struct wiphy *wiphy, struct net_device *dev, dev 817 net/wireless/nl80211.c struct net_device *dev; dev 821 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 885 net/wireless/nl80211.c err = call(&drv->wiphy, dev, ¶ms); dev 890 net/wireless/nl80211.c dev_put(dev); dev 898 net/wireless/nl80211.c struct net_device *dev; dev 900 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 910 net/wireless/nl80211.c err = drv->ops->del_beacon(&drv->wiphy, dev); dev 915 net/wireless/nl80211.c dev_put(dev); dev 959 net/wireless/nl80211.c NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, dev->ifindex); dev 997 net/wireless/nl80211.c struct cfg80211_registered_device *dev; dev 1023 net/wireless/nl80211.c dev = cfg80211_get_dev_from_ifindex(ifidx); dev 1024 net/wireless/nl80211.c if (IS_ERR(dev)) { dev 1025 net/wireless/nl80211.c err = PTR_ERR(dev); dev 1029 net/wireless/nl80211.c if (!dev->ops->dump_station) { dev 1037 net/wireless/nl80211.c err = dev->ops->dump_station(&dev->wiphy, netdev, sta_idx, dev 1061 net/wireless/nl80211.c cfg80211_put_dev(dev); dev 1072 net/wireless/nl80211.c struct net_device *dev; dev 1084 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1094 net/wireless/nl80211.c err = drv->ops->get_station(&drv->wiphy, dev, mac_addr, &sinfo); dev 1105 net/wireless/nl80211.c dev, mac_addr, &sinfo) < 0) dev 1116 net/wireless/nl80211.c dev_put(dev); dev 1145 net/wireless/nl80211.c struct net_device *dev; dev 1184 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1198 net/wireless/nl80211.c err = drv->ops->change_station(&drv->wiphy, dev, mac_addr, ¶ms); dev 1205 net/wireless/nl80211.c dev_put(dev); dev 1213 net/wireless/nl80211.c struct net_device *dev; dev 1247 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1261 net/wireless/nl80211.c err = drv->ops->add_station(&drv->wiphy, dev, mac_addr, ¶ms); dev 1268 net/wireless/nl80211.c dev_put(dev); dev 1276 net/wireless/nl80211.c struct net_device *dev; dev 1282 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1292 net/wireless/nl80211.c err = drv->ops->del_station(&drv->wiphy, dev, mac_addr); dev 1297 net/wireless/nl80211.c dev_put(dev); dev 1313 net/wireless/nl80211.c NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, dev->ifindex); dev 1355 net/wireless/nl80211.c struct cfg80211_registered_device *dev; dev 1382 net/wireless/nl80211.c dev = cfg80211_get_dev_from_ifindex(ifidx); dev 1383 net/wireless/nl80211.c if (IS_ERR(dev)) { dev 1384 net/wireless/nl80211.c err = PTR_ERR(dev); dev 1388 net/wireless/nl80211.c if (!dev->ops->dump_mpath) { dev 1396 net/wireless/nl80211.c err = dev->ops->dump_mpath(&dev->wiphy, netdev, path_idx, dev 1419 net/wireless/nl80211.c cfg80211_put_dev(dev); dev 1430 net/wireless/nl80211.c struct net_device *dev; dev 1443 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1453 net/wireless/nl80211.c err = drv->ops->get_mpath(&drv->wiphy, dev, dst, next_hop, &pinfo); dev 1464 net/wireless/nl80211.c dev, dst, next_hop, &pinfo) < 0) dev 1475 net/wireless/nl80211.c dev_put(dev); dev 1483 net/wireless/nl80211.c struct net_device *dev; dev 1496 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1506 net/wireless/nl80211.c err = drv->ops->change_mpath(&drv->wiphy, dev, dst, next_hop); dev 1511 net/wireless/nl80211.c dev_put(dev); dev 1518 net/wireless/nl80211.c struct net_device *dev; dev 1531 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1541 net/wireless/nl80211.c err = drv->ops->add_mpath(&drv->wiphy, dev, dst, next_hop); dev 1546 net/wireless/nl80211.c dev_put(dev); dev 1554 net/wireless/nl80211.c struct net_device *dev; dev 1560 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1570 net/wireless/nl80211.c err = drv->ops->del_mpath(&drv->wiphy, dev, dst); dev 1575 net/wireless/nl80211.c dev_put(dev); dev 1583 net/wireless/nl80211.c struct net_device *dev; dev 1602 net/wireless/nl80211.c err = get_drv_dev_by_info_ifindex(info->attrs, &drv, &dev); dev 1612 net/wireless/nl80211.c err = drv->ops->change_bss(&drv->wiphy, dev, ¶ms); dev 1617 net/wireless/nl80211.c dev_put(dev); dev 300 net/wireless/reg.c return kobject_uevent_env(®_pdev->dev.kobj, KOBJ_CHANGE, envp); dev 23 net/wireless/sysfs.c return container_of(dev, struct cfg80211_registered_device, wiphy.dev); dev 29 net/wireless/sysfs.c return sprintf(buf, "%d\n", dev_to_rdev(dev)->idx); dev 36 net/wireless/sysfs.c unsigned char *addr = dev_to_rdev(dev)->wiphy.perm_addr; dev 50 net/wireless/sysfs.c struct cfg80211_registered_device *rdev = dev_to_rdev(dev); dev 437 net/wireless/wext.c if (dev->wireless_handlers == NULL) dev 442 net/wireless/wext.c if (index < dev->wireless_handlers->num_standard) dev 443 net/wireless/wext.c return dev->wireless_handlers->standard[index]; dev 447 net/wireless/wext.c if (index < dev->wireless_handlers->num_private) dev 448 net/wireless/wext.c return dev->wireless_handlers->private[index]; dev 461 net/wireless/wext.c if ((dev->wireless_handlers != NULL) && dev 462 net/wireless/wext.c (dev->wireless_handlers->get_wireless_stats != NULL)) dev 463 net/wireless/wext.c return dev->wireless_handlers->get_wireless_stats(dev); dev 490 net/wireless/wext.c if ((netif_running(dev)) && dev 491 net/wireless/wext.c (dev->wireless_handlers->standard[0] != NULL)) dev 493 net/wireless/wext.c return dev->wireless_handlers->standard[0](dev, NULL, dev 542 net/wireless/wext.c stats = get_wireless_stats(dev); dev 568 net/wireless/wext.c if ((dev->wireless_handlers->num_private_args == 0) || dev 569 net/wireless/wext.c (dev->wireless_handlers->private_args == NULL)) dev 573 net/wireless/wext.c if (wrqu->data.length < dev->wireless_handlers->num_private_args) { dev 577 net/wireless/wext.c wrqu->data.length = dev->wireless_handlers->num_private_args; dev 582 net/wireless/wext.c wrqu->data.length = dev->wireless_handlers->num_private_args; dev 585 net/wireless/wext.c memcpy(extra, dev->wireless_handlers->private_args, dev 612 net/wireless/wext.c struct iw_statistics *stats = get_wireless_stats(dev); dev 617 net/wireless/wext.c dev->name, stats->status, stats->qual.qual, dev 791 net/wireless/wext.c err = handler(dev, info, (union iwreq_data *) iwp, extra); dev 819 net/wireless/wext.c wireless_send_event(dev, cmd, data, NULL); dev 821 net/wireless/wext.c wireless_send_event(dev, cmd, data, extra); dev 852 net/wireless/wext.c ret = handler(dev, info, &(iwr->u), NULL); dev 857 net/wireless/wext.c wireless_send_event(dev, cmd, &(iwr->u), NULL); dev 860 net/wireless/wext.c handler, dev, info); dev 865 net/wireless/wext.c ret = call_commit_handler(dev); dev 895 net/wireless/wext.c for (i = 0; i < dev->wireless_handlers->num_private_args; i++) { dev 896 net/wireless/wext.c if (cmd == dev->wireless_handlers->private_args[i].cmd) { dev 897 net/wireless/wext.c descr = &dev->wireless_handlers->private_args[i]; dev 963 net/wireless/wext.c err = handler(dev, info, (union iwreq_data *) iwp, extra); dev 989 net/wireless/wext.c extra_size = get_priv_descr_and_size(dev, cmd, &descr); dev 994 net/wireless/wext.c ret = handler(dev, info, &(iwr->u), (char *) &(iwr->u)); dev 997 net/wireless/wext.c handler, dev, info, extra_size); dev 1002 net/wireless/wext.c ret = call_commit_handler(dev); dev 1023 net/wireless/wext.c struct net_device *dev; dev 1030 net/wireless/wext.c if ((dev = __dev_get_by_name(net, ifr->ifr_name)) == NULL) dev 1037 net/wireless/wext.c return standard(dev, iwr, cmd, info, dev 1040 net/wireless/wext.c if (cmd == SIOCGIWPRIV && dev->wireless_handlers) dev 1041 net/wireless/wext.c return standard(dev, iwr, cmd, info, dev 1045 net/wireless/wext.c if (!netif_device_present(dev)) dev 1049 net/wireless/wext.c handler = get_handler(dev, cmd); dev 1053 net/wireless/wext.c return standard(dev, iwr, cmd, info, handler); dev 1055 net/wireless/wext.c return private(dev, iwr, cmd, info, handler); dev 1058 net/wireless/wext.c if (dev->do_ioctl) dev 1059 net/wireless/wext.c return dev->do_ioctl(dev, ifr, cmd); dev 1126 net/wireless/wext.c return ioctl_standard_call(dev, iwr, cmd, info, handler); dev 1133 net/wireless/wext.c err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info); dev 1149 net/wireless/wext.c extra_size = get_priv_descr_and_size(dev, cmd, &descr); dev 1154 net/wireless/wext.c ret = handler(dev, info, &(iwr->u), (char *) &(iwr->u)); dev 1165 net/wireless/wext.c handler, dev, info, extra_size); dev 1174 net/wireless/wext.c ret = call_commit_handler(dev); dev 1275 net/wireless/wext.c r->ifi_type = dev->type; dev 1276 net/wireless/wext.c r->ifi_index = dev->ifindex; dev 1277 net/wireless/wext.c r->ifi_flags = dev_get_flags(dev); dev 1280 net/wireless/wext.c NLA_PUT_STRING(skb, IFLA_IFNAME, dev->name); dev 1303 net/wireless/wext.c if (!net_eq(dev_net(dev), &init_net)) dev 1310 net/wireless/wext.c err = rtnetlink_fill_iwinfo(skb, dev, RTM_NEWLINK, event, event_len); dev 1362 net/wireless/wext.c dev->name, cmd); dev 1370 net/wireless/wext.c printk(KERN_ERR "%s (WE) : Wireless Event too big (%d)\n", dev->name, wrqu->data.length); dev 1374 net/wireless/wext.c printk(KERN_ERR "%s (WE) : Wireless Event too small (%d)\n", dev->name, wrqu->data.length); dev 1401 net/wireless/wext.c rtmsg_iwinfo(dev, (char *) event, event_len); dev 1431 net/wireless/wext.c if (dev->wireless_data) dev 1432 net/wireless/wext.c return dev->wireless_data->spy_data; dev 1445 net/wireless/wext.c struct iw_spy_data * spydata = get_spydata(dev); dev 1497 net/wireless/wext.c struct iw_spy_data * spydata = get_spydata(dev); dev 1533 net/wireless/wext.c struct iw_spy_data * spydata = get_spydata(dev); dev 1560 net/wireless/wext.c struct iw_spy_data * spydata = get_spydata(dev); dev 1600 net/wireless/wext.c wireless_send_event(dev, SIOCGIWTHRSPY, &wrqu, (char *) &threshold); dev 1614 net/wireless/wext.c struct iw_spy_data * spydata = get_spydata(dev); dev 1638 net/wireless/wext.c iw_send_thrspy_event(dev, spydata, dev 1644 net/wireless/wext.c iw_send_thrspy_event(dev, spydata, dev 179 net/x25/af_x25.c if (x25_sk(s)->neighbour && x25_sk(s)->neighbour->dev == dev) dev 191 net/x25/af_x25.c struct net_device *dev = ptr; dev 194 net/x25/af_x25.c if (!net_eq(dev_net(dev), &init_net)) dev 197 net/x25/af_x25.c if (dev->type == ARPHRD_X25 dev 199 net/x25/af_x25.c || dev->type == ARPHRD_ETHER dev 204 net/x25/af_x25.c x25_link_device_up(dev); dev 207 net/x25/af_x25.c nb = x25_get_neigh(dev); dev 214 net/x25/af_x25.c x25_kill_by_device(dev); dev 215 net/x25/af_x25.c x25_route_device_down(dev); dev 216 net/x25/af_x25.c x25_link_device_down(dev); dev 705 net/x25/af_x25.c x25->neighbour = x25_get_neigh(rt->dev); dev 1473 net/x25/af_x25.c struct net_device *dev; dev 1481 net/x25/af_x25.c dev = x25_dev_get(x25_subscr.device); dev 1482 net/x25/af_x25.c if (dev == NULL) dev 1485 net/x25/af_x25.c nb = x25_get_neigh(dev); dev 1489 net/x25/af_x25.c dev_put(dev); dev 1508 net/x25/af_x25.c dev_put(dev); dev 1634 net/x25/af_x25.c x25_clear_forward_by_dev(nb->dev); dev 98 net/x25/x25_dev.c if (!net_eq(dev_net(dev), &init_net)) dev 110 net/x25/x25_dev.c nb = x25_get_neigh(dev); dev 112 net/x25/x25_dev.c printk(KERN_DEBUG "X.25: unknown neighbour - %s\n", dev->name); dev 143 net/x25/x25_dev.c switch (nb->dev->type) { dev 162 net/x25/x25_dev.c skb->dev = nb->dev; dev 173 net/x25/x25_dev.c if (nb->dev->type == ARPHRD_ETHER) dev 176 net/x25/x25_dev.c if (nb->dev->type != ARPHRD_X25) dev 189 net/x25/x25_dev.c skb->dev = nb->dev; dev 199 net/x25/x25_dev.c switch (nb->dev->type) { dev 216 net/x25/x25_dev.c skb->dev = nb->dev; dev 32 net/x25/x25_forward.c if ((neigh_new = x25_get_neigh(rt->dev)) == NULL) { dev 42 net/x25/x25_forward.c if (rt->dev == from->dev) { dev 67 net/x25/x25_forward.c new_frwd->dev1 = rt->dev; dev 68 net/x25/x25_forward.c new_frwd->dev2 = from->dev; dev 107 net/x25/x25_forward.c if (from->dev == frwd->dev1) { dev 160 net/x25/x25_forward.c if ((fwd->dev1 == dev) || (fwd->dev2 == dev)){ dev 252 net/x25/x25_link.c dev_hold(dev); dev 253 net/x25/x25_link.c nb->dev = dev; dev 302 net/x25/x25_link.c if (nb->dev == dev) { dev 304 net/x25/x25_link.c dev_put(dev); dev 323 net/x25/x25_link.c if (nb->dev == dev) { dev 342 net/x25/x25_link.c struct net_device *dev; dev 353 net/x25/x25_link.c if ((dev = x25_dev_get(x25_subscr.device)) == NULL) dev 356 net/x25/x25_link.c if ((nb = x25_get_neigh(dev)) == NULL) dev 359 net/x25/x25_link.c dev_put(dev); dev 378 net/x25/x25_link.c dev_put(dev); dev 91 net/x25/x25_proc.c rt->dev ? rt->dev->name : "???"); dev 142 net/x25/x25_proc.c struct net_device *dev; dev 154 net/x25/x25_proc.c if (!x25->neighbour || (dev = x25->neighbour->dev) == NULL) dev 157 net/x25/x25_proc.c devname = x25->neighbour->dev->name; dev 56 net/x25/x25_route.c rt->dev = dev; dev 94 net/x25/x25_route.c rt->sigdigits == sigdigits && rt->dev == dev) { dev 118 net/x25/x25_route.c if (rt->dev == dev) dev 124 net/x25/x25_route.c x25_clear_forward_by_dev(dev); dev 132 net/x25/x25_route.c struct net_device *dev = dev_get_by_name(&init_net, devname); dev 134 net/x25/x25_route.c if (dev && dev 135 net/x25/x25_route.c (!(dev->flags & IFF_UP) || (dev->type != ARPHRD_X25 dev 137 net/x25/x25_route.c && dev->type != ARPHRD_ETHER dev 140 net/x25/x25_route.c dev_put(dev); dev 142 net/x25/x25_route.c return dev; dev 182 net/x25/x25_route.c struct net_device *dev; dev 196 net/x25/x25_route.c dev = x25_dev_get(rt.device); dev 197 net/x25/x25_route.c if (!dev) dev 201 net/x25/x25_route.c rc = x25_add_route(&rt.address, rt.sigdigits, dev); dev 203 net/x25/x25_route.c rc = x25_del_route(&rt.address, rt.sigdigits, dev); dev 204 net/x25/x25_route.c dev_put(dev); dev 26 net/xfrm/xfrm_output.c int nhead = dst->header_len + LL_RESERVED_SPACE(dst->dev) dev 28 net/xfrm/xfrm_output.c int ntail = dst->dev->needed_tailroom - skb_tailroom(skb); dev 130 net/xfrm/xfrm_output.c NULL, skb->dst->dev, xfrm_output2); dev 1377 net/xfrm/xfrm_policy.c err = afinfo->fill_dst(xdst, dev); dev 1394 net/xfrm/xfrm_policy.c struct net_device *dev; dev 1468 net/xfrm/xfrm_policy.c dev = dst->dev; dev 1469 net/xfrm/xfrm_policy.c if (!dev) dev 1481 net/xfrm/xfrm_policy.c err = xfrm_fill_dst(xdst, dev); dev 2099 net/xfrm/xfrm_policy.c while ((dst = dst->child) && dst->xfrm && dst->dev == dev) { dev 2100 net/xfrm/xfrm_policy.c dst->dev = dev_net(dev)->loopback_dev; dev 2101 net/xfrm/xfrm_policy.c dev_hold(dst->dev); dev 2102 net/xfrm/xfrm_policy.c dev_put(dev); dev 2222 net/xfrm/xfrm_policy.c (dst->dev && !netif_running(dst->dev))) dev 2369 net/xfrm/xfrm_policy.c struct net_device *dev = ptr; dev 2371 net/xfrm/xfrm_policy.c if (!net_eq(dev_net(dev), &init_net)) dev 125 samples/firmware_class/firmware_sample_firmware_class.c class_dev->dev = device; dev 557 security/device_cgroup.c if (wh->major != ~0 && wh->major != MAJOR(dev)) dev 559 security/device_cgroup.c if (wh->minor != ~0 && wh->minor != MINOR(dev)) dev 70 security/inode.c init_special_inode(inode, mode, dev); dev 97 security/inode.c inode = get_inode(dir->i_sb, mode, dev); dev 55 security/root_plug.c struct usb_device *dev; dev 61 security/root_plug.c dev = usb_find_device(vendor_id, product_id); dev 62 security/root_plug.c if (!dev) { dev 67 security/root_plug.c usb_put_dev(dev); dev 409 security/security.c return security_ops->inode_mknod(dir, dentry, mode, dev); dev 673 security/selinux/avc.c struct net_device *dev; dev 676 security/selinux/avc.c dev = dev_get_by_index(&init_net, dev 678 security/selinux/avc.c if (dev) { dev 680 security/selinux/avc.c dev->name); dev 681 security/selinux/avc.c dev_put(dev); dev 2614 security/selinux/hooks.c rc = secondary_ops->inode_mknod(dir, dentry, mode, dev); dev 153 security/selinux/netif.c struct net_device *dev; dev 158 security/selinux/netif.c dev = dev_get_by_index(&init_net, ifindex); dev 159 security/selinux/netif.c if (unlikely(dev == NULL)) { dev 178 security/selinux/netif.c ret = security_netif_sid(dev->name, &new->nsec.sid); dev 189 security/selinux/netif.c dev_put(dev); dev 283 security/selinux/netif.c struct net_device *dev = ptr; dev 285 security/selinux/netif.c if (dev_net(dev) != &init_net) dev 289 security/selinux/netif.c sel_netif_kill(dev->ifindex); dev 34 sound/ac97_bus.c if (dev->driver && dev->driver->suspend) dev 35 sound/ac97_bus.c ret = dev->driver->suspend(dev, state); dev 44 sound/ac97_bus.c if (dev->driver && dev->driver->resume) dev 45 sound/ac97_bus.c ret = dev->driver->resume(dev); dev 1051 sound/aoa/codecs/snd-aoa-codec-onyx.c struct device_node *busnode, *dev = NULL; dev 1059 sound/aoa/codecs/snd-aoa-codec-onyx.c while ((dev = of_get_next_child(busnode, dev)) != NULL) { dev 1060 sound/aoa/codecs/snd-aoa-codec-onyx.c if (of_device_is_compatible(dev, "pcm3052")) { dev 1063 sound/aoa/codecs/snd-aoa-codec-onyx.c addr = of_get_property(dev, "reg", NULL); dev 1066 sound/aoa/codecs/snd-aoa-codec-onyx.c return onyx_create(adapter, dev, (*addr)>>1); dev 934 sound/aoa/codecs/snd-aoa-codec-tas.c struct device_node *busnode, *dev = NULL; dev 942 sound/aoa/codecs/snd-aoa-codec-tas.c while ((dev = of_get_next_child(busnode, dev)) != NULL) { dev 943 sound/aoa/codecs/snd-aoa-codec-tas.c if (of_device_is_compatible(dev, "tas3004")) { dev 946 sound/aoa/codecs/snd-aoa-codec-tas.c addr = of_get_property(dev, "reg", NULL); dev 949 sound/aoa/codecs/snd-aoa-codec-tas.c return tas_create(adapter, dev, ((*addr) >> 1) & 0x7f); dev 954 sound/aoa/codecs/snd-aoa-codec-tas.c if (strcmp(dev->name, "deq") == 0) { dev 958 sound/aoa/codecs/snd-aoa-codec-tas.c _addr = of_get_property(dev, "i2c-address", NULL); dev 967 sound/aoa/codecs/snd-aoa-codec-tas.c return tas_create(adapter, dev, addr); dev 31 sound/aoa/core/snd-aoa-alsa.c alsa_card->dev = dev; dev 101 sound/aoa/core/snd-aoa-core.c err = aoa_alsa_init(new_fabric->name, new_fabric->owner, dev); dev 993 sound/aoa/fabrics/snd-aoa-fabric-layout.c sdev->ofdev.dev.driver_data = ldev; dev 1009 sound/aoa/fabrics/snd-aoa-fabric-layout.c err = aoa_fabric_register(&layout_fabric, &sdev->ofdev.dev); dev 1037 sound/aoa/fabrics/snd-aoa-fabric-layout.c struct layout_dev *ldev = sdev->ofdev.dev.driver_data; dev 1070 sound/aoa/fabrics/snd-aoa-fabric-layout.c struct layout_dev *ldev = sdev->ofdev.dev.driver_data; dev 1080 sound/aoa/fabrics/snd-aoa-fabric-layout.c struct layout_dev *ldev = sdev->ofdev.dev.driver_data; dev 20 sound/aoa/soundbus/core.c if (!dev) dev 22 sound/aoa/soundbus/core.c tmp = get_device(&dev->ofdev.dev); dev 32 sound/aoa/soundbus/core.c if (dev) dev 33 sound/aoa/soundbus/core.c put_device(&dev->ofdev.dev); dev 43 sound/aoa/soundbus/core.c drv = to_soundbus_driver(dev->driver); dev 44 sound/aoa/soundbus/core.c soundbus_dev = to_soundbus_device(dev); dev 67 sound/aoa/soundbus/core.c if (!dev) dev 70 sound/aoa/soundbus/core.c soundbus_dev = to_soundbus_device(dev); dev 110 sound/aoa/soundbus/core.c struct soundbus_dev * soundbus_dev = to_soundbus_device(dev); dev 111 sound/aoa/soundbus/core.c struct soundbus_driver * drv = to_soundbus_driver(dev->driver); dev 113 sound/aoa/soundbus/core.c if (dev->driver && drv->remove) dev 122 sound/aoa/soundbus/core.c struct soundbus_dev * soundbus_dev = to_soundbus_device(dev); dev 123 sound/aoa/soundbus/core.c struct soundbus_driver * drv = to_soundbus_driver(dev->driver); dev 125 sound/aoa/soundbus/core.c if (dev->driver && drv->shutdown) dev 133 sound/aoa/soundbus/core.c struct soundbus_dev * soundbus_dev = to_soundbus_device(dev); dev 134 sound/aoa/soundbus/core.c struct soundbus_driver * drv = to_soundbus_driver(dev->driver); dev 136 sound/aoa/soundbus/core.c if (dev->driver && drv->suspend) dev 143 sound/aoa/soundbus/core.c struct soundbus_dev * soundbus_dev = to_soundbus_device(dev); dev 144 sound/aoa/soundbus/core.c struct soundbus_driver * drv = to_soundbus_driver(dev->driver); dev 146 sound/aoa/soundbus/core.c if (dev->driver && drv->resume) dev 171 sound/aoa/soundbus/core.c if (!dev->attach_codec || dev 172 sound/aoa/soundbus/core.c !dev->ofdev.node || dev 173 sound/aoa/soundbus/core.c dev->pcmname || dev 174 sound/aoa/soundbus/core.c dev->pcmid != -1) { dev 179 sound/aoa/soundbus/core.c snprintf(dev->ofdev.dev.bus_id, BUS_ID_SIZE, "soundbus:%x", ++devcount); dev 180 sound/aoa/soundbus/core.c dev->ofdev.dev.bus = &soundbus_bus_type; dev 181 sound/aoa/soundbus/core.c return of_device_register(&dev->ofdev); dev 187 sound/aoa/soundbus/core.c of_device_unregister(&dev->ofdev); dev 29 sound/aoa/soundbus/i2sbus/i2sbus-control.c (*c)->macio = dev->bus->chip; dev 48 sound/aoa/soundbus/i2sbus/i2sbus-core.c &macio_get_pci_dev(i2sdev->macio)->dev, dev 68 sound/aoa/soundbus/i2sbus/i2sbus-core.c dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, dev 77 sound/aoa/soundbus/i2sbus/i2sbus-core.c i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); dev 96 sound/aoa/soundbus/i2sbus/i2sbus-core.c struct i2sbus_dev *dev = devid; dev 99 sound/aoa/soundbus/i2sbus/i2sbus-core.c spin_lock(&dev->low_lock); dev 100 sound/aoa/soundbus/i2sbus/i2sbus-core.c intreg = in_le32(&dev->intfregs->intr_ctl); dev 103 sound/aoa/soundbus/i2sbus/i2sbus-core.c out_le32(&dev->intfregs->intr_ctl, intreg); dev 105 sound/aoa/soundbus/i2sbus/i2sbus-core.c spin_unlock(&dev->low_lock); dev 159 sound/aoa/soundbus/i2sbus/i2sbus-core.c struct i2sbus_dev *dev; dev 177 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev = kzalloc(sizeof(struct i2sbus_dev), GFP_KERNEL); dev 178 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (!dev) dev 193 sound/aoa/soundbus/i2sbus/i2sbus-core.c snprintf(dev->sound.modalias, 32, dev 205 sound/aoa/soundbus/i2sbus/i2sbus-core.c kfree(dev); dev 209 sound/aoa/soundbus/i2sbus/i2sbus-core.c mutex_init(&dev->lock); dev 210 sound/aoa/soundbus/i2sbus/i2sbus-core.c spin_lock_init(&dev->low_lock); dev 211 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->sound.ofdev.node = np; dev 212 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->sound.ofdev.dma_mask = macio->ofdev.dma_mask; dev 213 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->sound.ofdev.dev.dma_mask = &dev->sound.ofdev.dma_mask; dev 214 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->sound.ofdev.dev.parent = &macio->ofdev.dev; dev 215 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->sound.ofdev.dev.release = i2sbus_release_dev; dev 216 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->sound.attach_codec = i2sbus_attach_codec; dev 217 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->sound.detach_codec = i2sbus_detach_codec; dev 218 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->sound.pcmid = -1; dev 219 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->macio = macio; dev 220 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->control = control; dev 221 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->bus_number = np->name[4] - 'a'; dev 222 sound/aoa/soundbus/i2sbus/i2sbus-core.c INIT_LIST_HEAD(&dev->sound.codec_list); dev 225 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->interrupts[i] = -1; dev 226 sound/aoa/soundbus/i2sbus/i2sbus-core.c snprintf(dev->rnames[i], sizeof(dev->rnames[i]), dev 231 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (request_irq(irq, ints[i], 0, dev->rnames[i], dev)) dev 233 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->interrupts[i] = irq; dev 244 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (i2sbus_get_and_fixup_rsrc(np,i,layout,&dev->resources[i])) dev 250 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->allocated_resource[i] = dev 251 sound/aoa/soundbus/i2sbus/i2sbus-core.c request_mem_region(dev->resources[i].start, dev 252 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->resources[i].end - dev 253 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->resources[i].start + 1, dev 254 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->rnames[i]); dev 255 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (!dev->allocated_resource[i]) { dev 261 sound/aoa/soundbus/i2sbus/i2sbus-core.c r = &dev->resources[aoa_resource_i2smmio]; dev 265 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->intfregs = ioremap(r->start, rlen); dev 267 sound/aoa/soundbus/i2sbus/i2sbus-core.c r = &dev->resources[aoa_resource_txdbdma]; dev 271 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->out.dbdma = ioremap(r->start, rlen); dev 273 sound/aoa/soundbus/i2sbus/i2sbus-core.c r = &dev->resources[aoa_resource_rxdbdma]; dev 277 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->in.dbdma = ioremap(r->start, rlen); dev 279 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (!dev->intfregs || !dev->out.dbdma || !dev->in.dbdma) dev 282 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (alloc_dbdma_descriptor_ring(dev, &dev->out.dbdma_ring, dev 285 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (alloc_dbdma_descriptor_ring(dev, &dev->in.dbdma_ring, dev 289 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (i2sbus_control_add_dev(dev->control, dev)) { dev 294 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (soundbus_add_one(&dev->sound)) { dev 300 sound/aoa/soundbus/i2sbus/i2sbus-core.c i2sbus_control_cell(dev->control, dev, 1); dev 301 sound/aoa/soundbus/i2sbus/i2sbus-core.c i2sbus_control_enable(dev->control, dev); dev 302 sound/aoa/soundbus/i2sbus/i2sbus-core.c i2sbus_control_clock(dev->control, dev, 1); dev 307 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (dev->interrupts[i] != -1) dev 308 sound/aoa/soundbus/i2sbus/i2sbus-core.c free_irq(dev->interrupts[i], dev); dev 309 sound/aoa/soundbus/i2sbus/i2sbus-core.c free_dbdma_descriptor_ring(dev, &dev->out.dbdma_ring); dev 310 sound/aoa/soundbus/i2sbus/i2sbus-core.c free_dbdma_descriptor_ring(dev, &dev->in.dbdma_ring); dev 311 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (dev->intfregs) iounmap(dev->intfregs); dev 312 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (dev->out.dbdma) iounmap(dev->out.dbdma); dev 313 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (dev->in.dbdma) iounmap(dev->in.dbdma); dev 315 sound/aoa/soundbus/i2sbus/i2sbus-core.c if (dev->allocated_resource[i]) dev 316 sound/aoa/soundbus/i2sbus/i2sbus-core.c release_and_free_resource(dev->allocated_resource[i]); dev 317 sound/aoa/soundbus/i2sbus/i2sbus-core.c mutex_destroy(&dev->lock); dev 318 sound/aoa/soundbus/i2sbus/i2sbus-core.c kfree(dev); dev 328 sound/aoa/soundbus/i2sbus/i2sbus-core.c err = i2sbus_control_init(dev, &control); dev 336 sound/aoa/soundbus/i2sbus/i2sbus-core.c while ((np = of_get_next_child(dev->ofdev.node, np))) { dev 339 sound/aoa/soundbus/i2sbus/i2sbus-core.c got += i2sbus_add_dev(dev, control, np); dev 349 sound/aoa/soundbus/i2sbus/i2sbus-core.c dev->ofdev.dev.driver_data = control; dev 356 sound/aoa/soundbus/i2sbus/i2sbus-core.c struct i2sbus_control *control = dev->ofdev.dev.driver_data; dev 368 sound/aoa/soundbus/i2sbus/i2sbus-core.c struct i2sbus_control *control = dev->ofdev.dev.driver_data; dev 398 sound/aoa/soundbus/i2sbus/i2sbus-core.c struct i2sbus_control *control = dev->ofdev.dev.driver_data; dev 884 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c struct i2sbus_dev *i2sdev = soundbus_dev_to_i2sbus_dev(dev); dev 887 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (!dev->pcmname || dev->pcmid == -1) { dev 892 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c list_for_each_entry(cii, &dev->codec_list, list) { dev 909 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c list_for_each_entry(cii, &dev->codec_list, list) { dev 938 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c cii->sdev = soundbus_dev_get(dev); dev 962 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (!dev->pcm) { dev 963 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c err = snd_pcm_new(card, dev->pcmname, dev->pcmid, 0, 0, dev 964 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c &dev->pcm); dev 969 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c dev->pcm->dev = &dev->ofdev.dev; dev 977 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (dev->pcm->card != card) { dev 984 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK, 1); dev 987 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK, dev 993 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (dev->pcm->card != card) { dev 999 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c err = snd_pcm_new_stream(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, 1); dev 1002 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, dev 1013 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c err = snd_device_register(card, dev->pcm); dev 1019 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c list_add(&cii->list, &dev->codec_list); dev 1021 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c dev->pcm->private_data = i2sdev; dev 1022 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c dev->pcm->private_free = i2sbus_private_free; dev 1026 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c dev->pcm, SNDRV_DMA_TYPE_DEV, dev 1036 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c soundbus_dev_put(dev); dev 1046 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c list_for_each_entry(i, &dev->codec_list, list) { dev 1058 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (list_empty(&dev->codec_list) && dev->pcm) { dev 1060 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c snd_device_free(dev->pcm->card, dev->pcm); dev 164 sound/aoa/soundbus/soundbus.h int (*attach_codec)(struct soundbus_dev *dev, struct snd_card *card, dev 166 sound/aoa/soundbus/soundbus.h void (*detach_codec)(struct soundbus_dev *dev, void *data); dev 173 sound/aoa/soundbus/soundbus.h #define to_soundbus_device(d) container_of(d, struct soundbus_dev, ofdev.dev) dev 188 sound/aoa/soundbus/soundbus.h int (*probe)(struct soundbus_dev* dev); dev 189 sound/aoa/soundbus/soundbus.h int (*remove)(struct soundbus_dev* dev); dev 191 sound/aoa/soundbus/soundbus.h int (*suspend)(struct soundbus_dev* dev, pm_message_t state); dev 192 sound/aoa/soundbus/soundbus.h int (*resume)(struct soundbus_dev* dev); dev 193 sound/aoa/soundbus/soundbus.h int (*shutdown)(struct soundbus_dev* dev); dev 8 sound/aoa/soundbus/sysfs.c field##_show (struct device *dev, struct device_attribute *attr, \ dev 11 sound/aoa/soundbus/sysfs.c struct soundbus_dev *mdev = to_soundbus_device (dev); \ dev 18 sound/aoa/soundbus/sysfs.c struct soundbus_dev *sdev = to_soundbus_device(dev); dev 96 sound/arm/aaci.c dev_err(&aaci->dev->dev, dev 132 sound/arm/aaci.c dev_err(&aaci->dev->dev, "timeout on slot 1 TX busy\n"); dev 153 sound/arm/aaci.c dev_err(&aaci->dev->dev, "timeout on RX valid\n"); dev 164 sound/arm/aaci.c dev_warn(&aaci->dev->dev, dev 168 sound/arm/aaci.c dev_warn(&aaci->dev->dev, dev 197 sound/arm/aaci.c dev_warn(&aaci->dev->dev, "RX overrun on chan %d\n", channel); dev 202 sound/arm/aaci.c dev_warn(&aaci->dev->dev, "RX timeout on chan %d\n", channel); dev 211 sound/arm/aaci.c dev_warn(&aaci->dev->dev, "RX interrupt???\n"); dev 256 sound/arm/aaci.c dev_dbg(&aaci->dev->dev, "TX underrun on chan %d\n", channel); dev 265 sound/arm/aaci.c dev_warn(&aaci->dev->dev, "TX interrupt???\n"); dev 451 sound/arm/aaci.c ret = request_irq(aaci->dev->irq[0], aaci_irq, IRQF_SHARED|IRQF_DISABLED, dev 474 sound/arm/aaci.c free_irq(aaci->dev->irq[0], aaci); dev 876 sound/arm/aaci.c struct snd_card *card = amba_get_drvdata(dev); dev 882 sound/arm/aaci.c struct snd_card *card = amba_get_drvdata(dev); dev 1010 sound/arm/aaci.c card->shortname, (unsigned long long)dev->res.start, dev 1011 sound/arm/aaci.c dev->irq[0]); dev 1017 sound/arm/aaci.c aaci->dev = dev; dev 1081 sound/arm/aaci.c ret = amba_request_regions(dev, NULL); dev 1085 sound/arm/aaci.c aaci = aaci_init_card(dev); dev 1091 sound/arm/aaci.c aaci->base = ioremap(dev->res.start, SZ_4K); dev 1139 sound/arm/aaci.c snd_card_set_dev(aaci->card, &dev->dev); dev 1143 sound/arm/aaci.c dev_info(&dev->dev, "%s, fifo %d\n", aaci->card->longname, dev 1145 sound/arm/aaci.c amba_set_drvdata(dev, aaci->card); dev 1152 sound/arm/aaci.c amba_release_regions(dev); dev 1158 sound/arm/aaci.c struct snd_card *card = amba_get_drvdata(dev); dev 1160 sound/arm/aaci.c amba_set_drvdata(dev, NULL); dev 1167 sound/arm/aaci.c amba_release_regions(dev); dev 224 sound/arm/aaci.h struct amba_device *dev; dev 29 sound/arm/devdma.c dma_free_coherent(buf->dev.dev, buf->bytes, buf->area, buf->addr); dev 45 sound/arm/devdma.c devdma_hw_free(dev, substream); dev 55 sound/arm/devdma.c buf->dev.type = SNDRV_DMA_TYPE_DEV; dev 56 sound/arm/devdma.c buf->dev.dev = dev; dev 57 sound/arm/devdma.c buf->area = dma_alloc_coherent(dev, size, &buf->addr, GFP_KERNEL); dev 79 sound/arm/devdma.c return dma_mmap_coherent(dev, vma, runtime->dma_area, runtime->dma_addr, runtime->dma_bytes); dev 338 sound/arm/pxa2xx-ac97-lib.c ac97conf_clk = clk_get(&dev->dev, "AC97CONFCLK"); dev 346 sound/arm/pxa2xx-ac97-lib.c ac97_clk = clk_get(&dev->dev, "AC97CLK"); dev 77 sound/arm/pxa2xx-ac97.c platform_ops = substream->pcm->card->dev->platform_data; dev 88 sound/arm/pxa2xx-ac97.c platform_ops = substream->pcm->card->dev->platform_data; dev 113 sound/arm/pxa2xx-ac97.c pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; dev 126 sound/arm/pxa2xx-ac97.c pxa2xx_audio_ops_t *platform_ops = card->dev->platform_data; dev 143 sound/arm/pxa2xx-ac97.c struct snd_card *card = platform_get_drvdata(dev); dev 154 sound/arm/pxa2xx-ac97.c struct snd_card *card = platform_get_drvdata(dev); dev 181 sound/arm/pxa2xx-ac97.c card->dev = &dev->dev; dev 182 sound/arm/pxa2xx-ac97.c strncpy(card->driver, dev->dev.driver->name, sizeof(card->driver)); dev 188 sound/arm/pxa2xx-ac97.c ret = pxa2xx_ac97_hw_probe(dev); dev 203 sound/arm/pxa2xx-ac97.c "%s (%s)", dev->dev.driver->name, card->mixername); dev 205 sound/arm/pxa2xx-ac97.c snd_card_set_dev(card, &dev->dev); dev 208 sound/arm/pxa2xx-ac97.c platform_set_drvdata(dev, card); dev 213 sound/arm/pxa2xx-ac97.c pxa2xx_ac97_hw_remove(dev); dev 222 sound/arm/pxa2xx-ac97.c struct snd_card *card = platform_get_drvdata(dev); dev 226 sound/arm/pxa2xx-ac97.c platform_set_drvdata(dev, NULL); dev 227 sound/arm/pxa2xx-ac97.c pxa2xx_ac97_hw_remove(dev); dev 201 sound/arm/pxa2xx-pcm-lib.c dma_alloc_writecombine(substream->pcm->card->dev, PAGE_SIZE, dev 221 sound/arm/pxa2xx-pcm-lib.c dma_free_writecombine(substream->pcm->card->dev, PAGE_SIZE, dev 232 sound/arm/pxa2xx-pcm-lib.c return dma_mmap_writecombine(substream->pcm->card->dev, vma, dev 244 sound/arm/pxa2xx-pcm-lib.c buf->dev.type = SNDRV_DMA_TYPE_DEV; dev 245 sound/arm/pxa2xx-pcm-lib.c buf->dev.dev = pcm->card->dev; dev 247 sound/arm/pxa2xx-pcm-lib.c buf->area = dma_alloc_writecombine(pcm->card->dev, size, dev 269 sound/arm/pxa2xx-pcm-lib.c dma_free_writecombine(pcm->card->dev, buf->bytes, dev 99 sound/arm/pxa2xx-pcm.c if (!card->dev->dma_mask) dev 100 sound/arm/pxa2xx-pcm.c card->dev->dma_mask = &pxa2xx_pcm_dmamask; dev 101 sound/arm/pxa2xx-pcm.c if (!card->dev->coherent_dma_mask) dev 102 sound/arm/pxa2xx-pcm.c card->dev->coherent_dma_mask = 0xffffffff; dev 914 sound/arm/sa11xx-uda1341.c snd_card_set_dev(card, &devptr->dev); dev 46 sound/core/device.c struct snd_device *dev; dev 50 sound/core/device.c dev = kzalloc(sizeof(*dev), GFP_KERNEL); dev 51 sound/core/device.c if (dev == NULL) { dev 55 sound/core/device.c dev->card = card; dev 56 sound/core/device.c dev->type = type; dev 57 sound/core/device.c dev->state = SNDRV_DEV_BUILD; dev 58 sound/core/device.c dev->device_data = device_data; dev 59 sound/core/device.c dev->ops = ops; dev 60 sound/core/device.c list_add(&dev->list, &card->devices); /* add to the head of list */ dev 80 sound/core/device.c struct snd_device *dev; dev 84 sound/core/device.c list_for_each_entry(dev, &card->devices, list) { dev 85 sound/core/device.c if (dev->device_data != device_data) dev 88 sound/core/device.c list_del(&dev->list); dev 89 sound/core/device.c if (dev->state == SNDRV_DEV_REGISTERED && dev 90 sound/core/device.c dev->ops->dev_disconnect) dev 91 sound/core/device.c if (dev->ops->dev_disconnect(dev)) dev 94 sound/core/device.c if (dev->ops->dev_free) { dev 95 sound/core/device.c if (dev->ops->dev_free(dev)) dev 98 sound/core/device.c kfree(dev); dev 123 sound/core/device.c struct snd_device *dev; dev 127 sound/core/device.c list_for_each_entry(dev, &card->devices, list) { dev 128 sound/core/device.c if (dev->device_data != device_data) dev 130 sound/core/device.c if (dev->state == SNDRV_DEV_REGISTERED && dev 131 sound/core/device.c dev->ops->dev_disconnect) { dev 132 sound/core/device.c if (dev->ops->dev_disconnect(dev)) dev 134 sound/core/device.c dev->state = SNDRV_DEV_DISCONNECTED; dev 158 sound/core/device.c struct snd_device *dev; dev 163 sound/core/device.c list_for_each_entry(dev, &card->devices, list) { dev 164 sound/core/device.c if (dev->device_data != device_data) dev 166 sound/core/device.c if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) { dev 167 sound/core/device.c if ((err = dev->ops->dev_register(dev)) < 0) dev 169 sound/core/device.c dev->state = SNDRV_DEV_REGISTERED; dev 187 sound/core/device.c struct snd_device *dev; dev 192 sound/core/device.c list_for_each_entry(dev, &card->devices, list) { dev 193 sound/core/device.c if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) { dev 194 sound/core/device.c if ((err = dev->ops->dev_register(dev)) < 0) dev 196 sound/core/device.c dev->state = SNDRV_DEV_REGISTERED; dev 208 sound/core/device.c struct snd_device *dev; dev 213 sound/core/device.c list_for_each_entry(dev, &card->devices, list) { dev 214 sound/core/device.c if (snd_device_disconnect(card, dev->device_data) < 0) dev 226 sound/core/device.c struct snd_device *dev; dev 235 sound/core/device.c list_for_each_entry(dev, &card->devices, list) { dev 236 sound/core/device.c if (dev->type >= range_low && dev->type <= range_high) { dev 237 sound/core/device.c if ((err = snd_device_free(card, dev->device_data)) < 0) dev 46 sound/core/info_oss.c if (snd_BUG_ON(dev < 0 || dev >= SNDRV_OSS_INFO_DEV_COUNT)) dev 52 sound/core/info_oss.c if ((x = snd_sndstat_strings[num][dev]) != NULL) { dev 63 sound/core/info_oss.c snd_sndstat_strings[num][dev] = x; dev 78 sound/core/info_oss.c str = snd_sndstat_strings[idx][dev]; dev 552 sound/core/init.c card->card_dev = device_create_drvdata(sound_class, card->dev, dev 53 sound/core/jack.c if (!jack->input_dev->dev.parent) dev 54 sound/core/jack.c jack->input_dev->dev.parent = card->dev; dev 138 sound/core/jack.c jack->input_dev->dev.parent = parent; dev 141 sound/core/memalloc.c res = dma_alloc_coherent(dev, PAGE_SIZE << pg, dma, gfp_flags); dev 158 sound/core/memalloc.c dma_free_coherent(dev, PAGE_SIZE << pg, ptr, dma); dev 190 sound/core/memalloc.c dmab->dev.type = type; dev 191 sound/core/memalloc.c dmab->dev.dev = device; dev 264 sound/core/memalloc.c switch (dmab->dev.type) { dev 270 sound/core/memalloc.c snd_free_dev_pages(dmab->dev.dev, dmab->bytes, dmab->area, dmab->addr); dev 277 sound/core/memalloc.c printk(KERN_ERR "snd-malloc: invalid device type %d\n", dmab->dev.type); dev 302 sound/core/memalloc.c (mem->buffer.dev.dev == NULL || dmab->dev.dev == NULL || dev 303 sound/core/memalloc.c ! memcmp(&mem->buffer.dev, &dmab->dev, sizeof(dmab->dev)))) { dev 304 sound/core/memalloc.c struct device *dev = dmab->dev.dev; dev 307 sound/core/memalloc.c if (dmab->dev.dev == NULL) dev 308 sound/core/memalloc.c dmab->dev.dev = dev; dev 385 sound/core/memalloc.c devno, mem->id, types[mem->buffer.dev.type]); dev 938 sound/core/pcm.c if (! (pcm = dev_get_drvdata(dev)) || dev 956 sound/core/pcm.c struct device *dev; dev 983 sound/core/pcm.c dev = pcm->dev; dev 984 sound/core/pcm.c if (!dev) dev 985 sound/core/pcm.c dev = snd_card_get_device_link(pcm->card); dev 990 sound/core/pcm.c pcm, str, dev); dev 63 sound/core/pcm_memory.c if ((err = snd_dma_alloc_pages(dmab->dev.type, dmab->dev.dev, dev 182 sound/core/pcm_memory.c new_dmab.dev = substream->dma_buffer.dev; dev 184 sound/core/pcm_memory.c if (snd_dma_alloc_pages(substream->dma_buffer.dev.type, dev 185 sound/core/pcm_memory.c substream->dma_buffer.dev.dev, dev 271 sound/core/pcm_memory.c substream->dma_buffer.dev.type = type; dev 272 sound/core/pcm_memory.c substream->dma_buffer.dev.dev = data; dev 371 sound/core/pcm_memory.c if (snd_BUG_ON(substream->dma_buffer.dev.type == dev 393 sound/core/pcm_memory.c dmab->dev = substream->dma_buffer.dev; dev 394 sound/core/pcm_memory.c if (snd_dma_alloc_pages(substream->dma_buffer.dev.type, dev 395 sound/core/pcm_memory.c substream->dma_buffer.dev.dev, dev 73 sound/core/seq/oss/seq_oss_event.c return snd_seq_oss_synth_sysex(dp, q->x.dev, q->x.buf, ev); dev 81 sound/core/seq/oss/seq_oss_event.c if (snd_seq_oss_midi_open(dp, q->s.dev, SNDRV_SEQ_OSS_FILE_WRITE)) dev 83 sound/core/seq/oss/seq_oss_event.c if (snd_seq_oss_midi_filemode(dp, q->s.dev) & SNDRV_SEQ_OSS_FILE_WRITE) dev 84 sound/core/seq/oss/seq_oss_event.c return snd_seq_oss_midi_putc(dp, q->s.dev, q->s.parm1, ev); dev 139 sound/core/seq/oss/seq_oss_event.c return note_off_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); dev 142 sound/core/seq/oss/seq_oss_event.c return note_on_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); dev 145 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->e.dev, SNDRV_SEQ_EVENT_PGMCHANGE, dev 149 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->e.dev, SNDRV_SEQ_EVENT_CHANPRESS, dev 156 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->e.dev, SNDRV_SEQ_EVENT_CONTROLLER, dev 164 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->e.dev, dev 169 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->e.dev, dev 173 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->e.dev, dev 179 sound/core/seq/oss/seq_oss_event.c return snd_seq_oss_synth_raw_event(dp, q->e.dev, q->c, ev); dev 193 sound/core/seq/oss/seq_oss_event.c return note_on_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev); dev 196 sound/core/seq/oss/seq_oss_event.c return note_off_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev); dev 199 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, q->v.dev, SNDRV_SEQ_EVENT_KEYPRESS, dev 214 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->l.dev, SNDRV_SEQ_EVENT_PGMCHANGE, dev 218 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->l.dev, SNDRV_SEQ_EVENT_CONTROLLER, dev 223 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->l.dev, SNDRV_SEQ_EVENT_PITCHBEND, dev 227 sound/core/seq/oss/seq_oss_event.c return set_control_event(dp, q->l.dev, SNDRV_SEQ_EVENT_CHANPRESS, dev 288 sound/core/seq/oss/seq_oss_event.c struct seq_oss_synthinfo *info = &dp->synths[dev]; dev 293 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); dev 310 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev); dev 316 sound/core/seq/oss/seq_oss_event.c set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, info->ch[ch].note, 0, ev); dev 321 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); dev 326 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); dev 330 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, SNDRV_SEQ_EVENT_KEYPRESS, ch, note - 128, vel, ev); dev 332 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); dev 343 sound/core/seq/oss/seq_oss_event.c struct seq_oss_synthinfo *info = &dp->synths[dev]; dev 348 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); dev 355 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev); dev 362 sound/core/seq/oss/seq_oss_event.c return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev); dev 374 sound/core/seq/oss/seq_oss_event.c if (! snd_seq_oss_synth_is_valid(dp, dev)) dev 378 sound/core/seq/oss/seq_oss_event.c snd_seq_oss_synth_addr(dp, dev, ev); dev 392 sound/core/seq/oss/seq_oss_event.c if (! snd_seq_oss_synth_is_valid(dp, dev)) dev 396 sound/core/seq/oss/seq_oss_event.c snd_seq_oss_synth_addr(dp, dev, ev); dev 35 sound/core/seq/oss/seq_oss_event.h unsigned char dev; dev 59 sound/core/seq/oss/seq_oss_event.h unsigned char dev; dev 67 sound/core/seq/oss/seq_oss_event.h unsigned char dev; dev 77 sound/core/seq/oss/seq_oss_event.h unsigned char dev; dev 87 sound/core/seq/oss/seq_oss_event.h unsigned char dev; dev 76 sound/core/seq/oss/seq_oss_ioctl.c int dev, val; dev 114 sound/core/seq/oss/seq_oss_ioctl.c if (get_user(dev, p)) dev 116 sound/core/seq/oss/seq_oss_ioctl.c return snd_seq_oss_midi_open(dp, dev, dp->file_mode); dev 136 sound/core/seq/oss/seq_oss_ioctl.c if (get_user(dev, p)) dev 138 sound/core/seq/oss/seq_oss_ioctl.c return snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); dev 150 sound/core/seq/oss/seq_oss_ioctl.c if (get_user(dev, p)) dev 152 sound/core/seq/oss/seq_oss_ioctl.c val = snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); dev 157 sound/core/seq/oss/seq_oss_ioctl.c if (get_user(dev, p)) dev 159 sound/core/seq/oss/seq_oss_ioctl.c snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); dev 110 sound/core/seq/oss/seq_oss_midi.c mdev = midi_devs[dev]; dev 318 sound/core/seq/oss/seq_oss_midi.c if (dev < 0 || dev >= dp->max_mididev) dev 320 sound/core/seq/oss/seq_oss_midi.c return get_mdev(dev); dev 334 sound/core/seq/oss/seq_oss_midi.c if ((mdev = get_mididev(dp, dev)) == NULL) dev 400 sound/core/seq/oss/seq_oss_midi.c if ((mdev = get_mididev(dp, dev)) == NULL) dev 438 sound/core/seq/oss/seq_oss_midi.c if ((mdev = get_mididev(dp, dev)) == NULL) dev 460 sound/core/seq/oss/seq_oss_midi.c if ((mdev = get_mididev(dp, dev)) == NULL) dev 508 sound/core/seq/oss/seq_oss_midi.c if ((mdev = get_mididev(dp, dev)) == NULL) dev 573 sound/core/seq/oss/seq_oss_midi.c ossev.v.dev = dev; dev 641 sound/core/seq/oss/seq_oss_midi.c if ((mdev = get_mididev(dp, dev)) == NULL) dev 660 sound/core/seq/oss/seq_oss_midi.c if ((mdev = get_mididev(dp, dev)) == NULL) dev 662 sound/core/seq/oss/seq_oss_midi.c inf->device = dev; dev 110 sound/core/seq/oss/seq_oss_readq.c rec.c[2] = dev; dev 118 sound/core/seq/oss/seq_oss_rw.c return snd_seq_oss_synth_load_patch(dp, rec.s.dev, dev 103 sound/core/seq/oss/seq_oss_synth.c struct snd_seq_oss_reg *reg = SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 120 sound/core/seq/oss/seq_oss_synth.c strlcpy(rec->name, dev->name, sizeof(rec->name)); dev 141 sound/core/seq/oss/seq_oss_synth.c dev->driver_data = rec; dev 154 sound/core/seq/oss/seq_oss_synth.c struct seq_oss_synth *rec = dev->driver_data; dev 197 sound/core/seq/oss/seq_oss_synth.c rec = synth_devs[dev]; dev 349 sound/core/seq/oss/seq_oss_synth.c if (dev < 0 || dev >= dp->max_synthdev) dev 351 sound/core/seq/oss/seq_oss_synth.c if (dp->synths[dev].is_midi) dev 363 sound/core/seq/oss/seq_oss_synth.c if (dev < 0 || dev >= dp->max_synthdev) dev 365 sound/core/seq/oss/seq_oss_synth.c if (! dp->synths[dev].opened) dev 367 sound/core/seq/oss/seq_oss_synth.c if (dp->synths[dev].is_midi) dev 369 sound/core/seq/oss/seq_oss_synth.c if ((rec = get_sdev(dev)) == NULL) dev 406 sound/core/seq/oss/seq_oss_synth.c if (snd_BUG_ON(dev < 0 || dev >= dp->max_synthdev)) dev 408 sound/core/seq/oss/seq_oss_synth.c info = &dp->synths[dev]; dev 419 sound/core/seq/oss/seq_oss_synth.c snd_seq_oss_midi_close(dp, dev); dev 432 sound/core/seq/oss/seq_oss_synth.c rec = get_sdev(dev); dev 460 sound/core/seq/oss/seq_oss_synth.c if (dev < 0 || dev >= dp->max_synthdev) dev 463 sound/core/seq/oss/seq_oss_synth.c if (is_midi_dev(dp, dev)) dev 465 sound/core/seq/oss/seq_oss_synth.c if ((rec = get_synthdev(dp, dev)) == NULL) dev 471 sound/core/seq/oss/seq_oss_synth.c rc = rec->oper.load_patch(&dp->synths[dev].arg, fmt, buf, p, c); dev 483 sound/core/seq/oss/seq_oss_synth.c rec = get_synthdev(dp, dev); dev 504 sound/core/seq/oss/seq_oss_synth.c if (! snd_seq_oss_synth_is_valid(dp, dev)) dev 507 sound/core/seq/oss/seq_oss_synth.c sysex = dp->synths[dev].sysex; dev 512 sound/core/seq/oss/seq_oss_synth.c dp->synths[dev].sysex = sysex; dev 540 sound/core/seq/oss/seq_oss_synth.c if (snd_seq_oss_synth_addr(dp, dev, ev)) dev 557 sound/core/seq/oss/seq_oss_synth.c if (! snd_seq_oss_synth_is_valid(dp, dev)) dev 559 sound/core/seq/oss/seq_oss_synth.c snd_seq_oss_fill_addr(dp, ev, dp->synths[dev].arg.addr.client, dev 560 sound/core/seq/oss/seq_oss_synth.c dp->synths[dev].arg.addr.port); dev 574 sound/core/seq/oss/seq_oss_synth.c if (is_midi_dev(dp, dev)) dev 576 sound/core/seq/oss/seq_oss_synth.c if ((rec = get_synthdev(dp, dev)) == NULL) dev 581 sound/core/seq/oss/seq_oss_synth.c rc = rec->oper.ioctl(&dp->synths[dev].arg, cmd, addr); dev 593 sound/core/seq/oss/seq_oss_synth.c if (! snd_seq_oss_synth_is_valid(dp, dev) || is_midi_dev(dp, dev)) dev 597 sound/core/seq/oss/seq_oss_synth.c return snd_seq_oss_synth_addr(dp, dev, ev); dev 609 sound/core/seq/oss/seq_oss_synth.c if (dev < 0 || dev >= dp->max_synthdev) dev 612 sound/core/seq/oss/seq_oss_synth.c if (dp->synths[dev].is_midi) { dev 614 sound/core/seq/oss/seq_oss_synth.c snd_seq_oss_midi_make_info(dp, dp->synths[dev].midi_mapped, &minf); dev 618 sound/core/seq/oss/seq_oss_synth.c inf->device = dev; dev 621 sound/core/seq/oss/seq_oss_synth.c if ((rec = get_synthdev(dp, dev)) == NULL) dev 626 sound/core/seq/oss/seq_oss_synth.c inf->device = dev; dev 178 sound/core/seq/seq_device.c struct snd_seq_device *dev; dev 197 sound/core/seq/seq_device.c dev = kzalloc(sizeof(*dev)*2 + argsize, GFP_KERNEL); dev 198 sound/core/seq/seq_device.c if (dev == NULL) { dev 204 sound/core/seq/seq_device.c dev->card = card; dev 205 sound/core/seq/seq_device.c dev->device = device; dev 206 sound/core/seq/seq_device.c strlcpy(dev->id, id, sizeof(dev->id)); dev 207 sound/core/seq/seq_device.c dev->argsize = argsize; dev 208 sound/core/seq/seq_device.c dev->status = SNDRV_SEQ_DEVICE_FREE; dev 212 sound/core/seq/seq_device.c list_add_tail(&dev->list, &ops->dev_list); dev 218 sound/core/seq/seq_device.c if ((err = snd_device_new(card, SNDRV_DEV_SEQUENCER, dev, &dops)) < 0) { dev 219 sound/core/seq/seq_device.c snd_seq_device_free(dev); dev 224 sound/core/seq/seq_device.c *result = dev; dev 236 sound/core/seq/seq_device.c if (snd_BUG_ON(!dev)) dev 239 sound/core/seq/seq_device.c ops = find_driver(dev->id, 0); dev 245 sound/core/seq/seq_device.c list_del(&dev->list); dev 249 sound/core/seq/seq_device.c free_device(dev, ops); dev 250 sound/core/seq/seq_device.c if (dev->private_free) dev 251 sound/core/seq/seq_device.c dev->private_free(dev); dev 252 sound/core/seq/seq_device.c kfree(dev); dev 261 sound/core/seq/seq_device.c struct snd_seq_device *dev = device->device_data; dev 262 sound/core/seq/seq_device.c return snd_seq_device_free(dev); dev 270 sound/core/seq/seq_device.c struct snd_seq_device *dev = device->device_data; dev 273 sound/core/seq/seq_device.c ops = find_driver(dev->id, 0); dev 281 sound/core/seq/seq_device.c init_device(dev, ops); dev 292 sound/core/seq/seq_device.c struct snd_seq_device *dev = device->device_data; dev 295 sound/core/seq/seq_device.c ops = find_driver(dev->id, 0); dev 299 sound/core/seq/seq_device.c free_device(dev, ops); dev 314 sound/core/seq/seq_device.c struct snd_seq_device *dev; dev 340 sound/core/seq/seq_device.c list_for_each_entry(dev, &ops->dev_list, list) { dev 341 sound/core/seq/seq_device.c init_device(dev, ops); dev 393 sound/core/seq/seq_device.c struct snd_seq_device *dev; dev 409 sound/core/seq/seq_device.c list_for_each_entry(dev, &ops->dev_list, list) { dev 410 sound/core/seq/seq_device.c free_device(dev, ops); dev 458 sound/core/seq/seq_device.c if (dev->status != SNDRV_SEQ_DEVICE_FREE) dev 460 sound/core/seq/seq_device.c if (ops->argsize != dev->argsize) { dev 462 sound/core/seq/seq_device.c dev->name, ops->id, ops->argsize, dev->argsize); dev 465 sound/core/seq/seq_device.c if (ops->ops.init_device(dev) >= 0) { dev 466 sound/core/seq/seq_device.c dev->status = SNDRV_SEQ_DEVICE_REGISTERED; dev 470 sound/core/seq/seq_device.c dev->name, dev->id); dev 485 sound/core/seq/seq_device.c if (dev->status != SNDRV_SEQ_DEVICE_REGISTERED) dev 487 sound/core/seq/seq_device.c if (ops->argsize != dev->argsize) { dev 489 sound/core/seq/seq_device.c dev->name, ops->id, ops->argsize, dev->argsize); dev 492 sound/core/seq/seq_device.c if ((result = ops->ops.free_device(dev)) >= 0 || result == -ENXIO) { dev 493 sound/core/seq/seq_device.c dev->status = SNDRV_SEQ_DEVICE_FREE; dev 494 sound/core/seq/seq_device.c dev->driver_data = NULL; dev 498 sound/core/seq/seq_device.c dev->name, dev->id); dev 284 sound/core/seq/seq_midi.c struct snd_rawmidi *rmidi = dev->private_data; dev 288 sound/core/seq/seq_midi.c struct snd_card *card = dev->card; dev 289 sound/core/seq/seq_midi.c int device = dev->device; dev 436 sound/core/seq/seq_midi.c struct snd_card *card = dev->card; dev 437 sound/core/seq/seq_midi.c int device = dev->device, p, ports; dev 63 sound/core/seq/seq_midi_event.c void (*encode)(struct snd_midi_event *dev, struct snd_seq_event *ev); dev 102 sound/core/seq/seq_midi_event.c int (*decode)(struct snd_midi_event *dev, unsigned char *buf, int len, dev 116 sound/core/seq/seq_midi_event.c struct snd_midi_event *dev; dev 119 sound/core/seq/seq_midi_event.c dev = kzalloc(sizeof(*dev), GFP_KERNEL); dev 120 sound/core/seq/seq_midi_event.c if (dev == NULL) dev 123 sound/core/seq/seq_midi_event.c dev->buf = kmalloc(bufsize, GFP_KERNEL); dev 124 sound/core/seq/seq_midi_event.c if (dev->buf == NULL) { dev 125 sound/core/seq/seq_midi_event.c kfree(dev); dev 129 sound/core/seq/seq_midi_event.c dev->bufsize = bufsize; dev 130 sound/core/seq/seq_midi_event.c dev->lastcmd = 0xff; dev 131 sound/core/seq/seq_midi_event.c dev->type = ST_INVALID; dev 132 sound/core/seq/seq_midi_event.c spin_lock_init(&dev->lock); dev 133 sound/core/seq/seq_midi_event.c *rdev = dev; dev 139 sound/core/seq/seq_midi_event.c if (dev != NULL) { dev 140 sound/core/seq/seq_midi_event.c kfree(dev->buf); dev 141 sound/core/seq/seq_midi_event.c kfree(dev); dev 150 sound/core/seq/seq_midi_event.c dev->read = 0; dev 151 sound/core/seq/seq_midi_event.c dev->qlen = 0; dev 152 sound/core/seq/seq_midi_event.c dev->type = ST_INVALID; dev 159 sound/core/seq/seq_midi_event.c spin_lock_irqsave(&dev->lock, flags); dev 160 sound/core/seq/seq_midi_event.c reset_encode(dev); dev 161 sound/core/seq/seq_midi_event.c spin_unlock_irqrestore(&dev->lock, flags); dev 168 sound/core/seq/seq_midi_event.c spin_lock_irqsave(&dev->lock, flags); dev 169 sound/core/seq/seq_midi_event.c dev->lastcmd = 0xff; dev 170 sound/core/seq/seq_midi_event.c spin_unlock_irqrestore(&dev->lock, flags); dev 176 sound/core/seq/seq_midi_event.c snd_midi_event_reset_encode(dev); dev 177 sound/core/seq/seq_midi_event.c snd_midi_event_reset_decode(dev); dev 183 sound/core/seq/seq_midi_event.c dev->nostat = on ? 1 : 0; dev 195 sound/core/seq/seq_midi_event.c if (bufsize == dev->bufsize) dev 200 sound/core/seq/seq_midi_event.c spin_lock_irqsave(&dev->lock, flags); dev 201 sound/core/seq/seq_midi_event.c old_buf = dev->buf; dev 202 sound/core/seq/seq_midi_event.c dev->buf = new_buf; dev 203 sound/core/seq/seq_midi_event.c dev->bufsize = bufsize; dev 204 sound/core/seq/seq_midi_event.c reset_encode(dev); dev 205 sound/core/seq/seq_midi_event.c spin_unlock_irqrestore(&dev->lock, flags); dev 224 sound/core/seq/seq_midi_event.c rc = snd_midi_event_encode_byte(dev, *buf++, ev); dev 257 sound/core/seq/seq_midi_event.c spin_lock_irqsave(&dev->lock, flags); dev 259 sound/core/seq/seq_midi_event.c (c != MIDI_CMD_COMMON_SYSEX_END || dev->type != ST_SYSEX)) { dev 261 sound/core/seq/seq_midi_event.c dev->buf[0] = c; dev 263 sound/core/seq/seq_midi_event.c dev->type = (c & 0x0f) + ST_SPECIAL; dev 265 sound/core/seq/seq_midi_event.c dev->type = (c >> 4) & 0x07; dev 266 sound/core/seq/seq_midi_event.c dev->read = 1; dev 267 sound/core/seq/seq_midi_event.c dev->qlen = status_event[dev->type].qlen; dev 269 sound/core/seq/seq_midi_event.c if (dev->qlen > 0) { dev 271 sound/core/seq/seq_midi_event.c dev->buf[dev->read++] = c; dev 272 sound/core/seq/seq_midi_event.c if (dev->type != ST_SYSEX) dev 273 sound/core/seq/seq_midi_event.c dev->qlen--; dev 276 sound/core/seq/seq_midi_event.c dev->buf[1] = c; dev 277 sound/core/seq/seq_midi_event.c dev->qlen = status_event[dev->type].qlen - 1; dev 278 sound/core/seq/seq_midi_event.c dev->read = 2; dev 281 sound/core/seq/seq_midi_event.c if (dev->qlen == 0) { dev 282 sound/core/seq/seq_midi_event.c ev->type = status_event[dev->type].event; dev 285 sound/core/seq/seq_midi_event.c if (status_event[dev->type].encode) /* set data values */ dev 286 sound/core/seq/seq_midi_event.c status_event[dev->type].encode(dev, ev); dev 287 sound/core/seq/seq_midi_event.c if (dev->type >= ST_SPECIAL) dev 288 sound/core/seq/seq_midi_event.c dev->type = ST_INVALID; dev 290 sound/core/seq/seq_midi_event.c } else if (dev->type == ST_SYSEX) { dev 292 sound/core/seq/seq_midi_event.c dev->read >= dev->bufsize) { dev 296 sound/core/seq/seq_midi_event.c ev->data.ext.len = dev->read; dev 297 sound/core/seq/seq_midi_event.c ev->data.ext.ptr = dev->buf; dev 299 sound/core/seq/seq_midi_event.c dev->read = 0; /* continue to parse */ dev 301 sound/core/seq/seq_midi_event.c reset_encode(dev); /* all parsed */ dev 306 sound/core/seq/seq_midi_event.c spin_unlock_irqrestore(&dev->lock, flags); dev 313 sound/core/seq/seq_midi_event.c ev->data.note.channel = dev->buf[0] & 0x0f; dev 314 sound/core/seq/seq_midi_event.c ev->data.note.note = dev->buf[1]; dev 315 sound/core/seq/seq_midi_event.c ev->data.note.velocity = dev->buf[2]; dev 321 sound/core/seq/seq_midi_event.c ev->data.control.channel = dev->buf[0] & 0x0f; dev 322 sound/core/seq/seq_midi_event.c ev->data.control.value = dev->buf[1]; dev 328 sound/core/seq/seq_midi_event.c ev->data.control.channel = dev->buf[0] & 0x0f; dev 329 sound/core/seq/seq_midi_event.c ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1] - 8192; dev 335 sound/core/seq/seq_midi_event.c ev->data.control.channel = dev->buf[0] & 0x0f; dev 336 sound/core/seq/seq_midi_event.c ev->data.control.param = dev->buf[1]; dev 337 sound/core/seq/seq_midi_event.c ev->data.control.value = dev->buf[2]; dev 343 sound/core/seq/seq_midi_event.c ev->data.control.value = dev->buf[1]; dev 349 sound/core/seq/seq_midi_event.c ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1]; dev 370 sound/core/seq/seq_midi_event.c return extra_event[type].decode(dev, buf, count, ev); dev 383 sound/core/seq/seq_midi_event.c snd_midi_event_reset_decode(dev); dev 390 sound/core/seq/seq_midi_event.c spin_lock_irqsave(&dev->lock, flags); dev 391 sound/core/seq/seq_midi_event.c if ((cmd & 0xf0) == 0xf0 || dev->lastcmd != cmd || dev->nostat) { dev 392 sound/core/seq/seq_midi_event.c dev->lastcmd = cmd; dev 393 sound/core/seq/seq_midi_event.c spin_unlock_irqrestore(&dev->lock, flags); dev 399 sound/core/seq/seq_midi_event.c spin_unlock_irqrestore(&dev->lock, flags); dev 458 sound/core/seq/seq_midi_event.c if (dev->nostat && count < 6) dev 460 sound/core/seq/seq_midi_event.c if (cmd != dev->lastcmd || dev->nostat) { dev 463 sound/core/seq/seq_midi_event.c buf[idx++] = dev->lastcmd = cmd; dev 467 sound/core/seq/seq_midi_event.c if (dev->nostat) dev 474 sound/core/seq/seq_midi_event.c if (cmd != dev->lastcmd || dev->nostat) { dev 477 sound/core/seq/seq_midi_event.c buf[idx++] = dev->lastcmd = cmd; dev 504 sound/core/seq/seq_midi_event.c if (dev->nostat && count < 12) dev 511 sound/core/seq/seq_midi_event.c if (cmd != dev->lastcmd && !dev->nostat) { dev 514 sound/core/seq/seq_midi_event.c buf[idx++] = dev->lastcmd = cmd; dev 518 sound/core/seq/seq_midi_event.c if (dev->nostat) dev 519 sound/core/seq/seq_midi_event.c buf[idx++] = dev->lastcmd = cmd; dev 41 sound/core/sgbuf.c tmpb.dev.type = SNDRV_DMA_TYPE_DEV; dev 42 sound/core/sgbuf.c tmpb.dev.dev = sgbuf->dev; dev 80 sound/core/sgbuf.c sgbuf->dev = device; dev 135 sound/core/sound.c int dev = SNDRV_MINOR_DEVICE(minor); dev 136 sound/core/sound.c if (dev == SNDRV_MINOR_CONTROL) { dev 141 sound/core/sound.c } else if (dev == SNDRV_MINOR_GLOBAL) { dev 219 sound/core/sound.c minor = SNDRV_MINOR(card->number, type + dev); dev 260 sound/core/sound.c preg->device = dev; dev 267 sound/core/sound.c minor = snd_kernel_minor(type, card, dev); dev 277 sound/core/sound.c preg->dev = device_create_drvdata(sound_class, device, dev 280 sound/core/sound.c if (IS_ERR(preg->dev)) { dev 283 sound/core/sound.c minor = PTR_ERR(preg->dev); dev 307 sound/core/sound.c mptr->device == dev) dev 328 sound/core/sound.c minor = find_snd_minor(type, card, dev); dev 351 sound/core/sound.c minor = find_snd_minor(type, card, dev); dev 352 sound/core/sound.c if (minor >= 0 && (d = snd_minors[minor]->dev) != NULL) dev 67 sound/core/sound_oss.c if (snd_BUG_ON(!card || dev < 0 || dev > 1)) dev 69 sound/core/sound_oss.c minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIXER1 : SNDRV_MINOR_OSS_MIXER)); dev 78 sound/core/sound_oss.c if (snd_BUG_ON(!card || dev < 0 || dev > 1)) dev 80 sound/core/sound_oss.c minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_PCM1 : SNDRV_MINOR_OSS_PCM)); dev 83 sound/core/sound_oss.c if (snd_BUG_ON(!card || dev < 0 || dev > 1)) dev 85 sound/core/sound_oss.c minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIDI1 : SNDRV_MINOR_OSS_MIDI)); dev 105 sound/core/sound_oss.c int minor = snd_oss_kernel_minor(type, card, dev); dev 122 sound/core/sound_oss.c preg->device = dev; dev 167 sound/core/sound_oss.c int minor = snd_oss_kernel_minor(type, card, dev); dev 833 sound/core/timer.c struct snd_timer *timer = dev->device_data; dev 932 sound/core/timer.c struct snd_device dev; dev 934 sound/core/timer.c memset(&dev, 0, sizeof(dev)); dev 935 sound/core/timer.c dev.device_data = timer; dev 936 sound/core/timer.c return snd_timer_dev_register(&dev); dev 589 sound/drivers/dummy.c int dev = devptr->id; dev 591 sound/drivers/dummy.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 597 sound/drivers/dummy.c for (idx = 0; idx < MAX_PCM_DEVICES && idx < pcm_devs[dev]; idx++) { dev 598 sound/drivers/dummy.c if (pcm_substreams[dev] < 1) dev 599 sound/drivers/dummy.c pcm_substreams[dev] = 1; dev 600 sound/drivers/dummy.c if (pcm_substreams[dev] > MAX_PCM_SUBSTREAMS) dev 601 sound/drivers/dummy.c pcm_substreams[dev] = MAX_PCM_SUBSTREAMS; dev 602 sound/drivers/dummy.c err = snd_card_dummy_pcm(dummy, idx, pcm_substreams[dev]); dev 611 sound/drivers/dummy.c sprintf(card->longname, "Dummy %i", dev + 1); dev 613 sound/drivers/dummy.c snd_card_set_dev(card, &devptr->dev); dev 1156 sound/drivers/ml403-ac97cr.c pfdev->dev.bus_id, (void *)ml403_ac97cr)) { dev 1169 sound/drivers/ml403-ac97cr.c pfdev->dev.bus_id, (void *)ml403_ac97cr)) { dev 1275 sound/drivers/ml403-ac97cr.c int dev = pfdev->id; dev 1277 sound/drivers/ml403-ac97cr.c if (dev >= SNDRV_CARDS) dev 1279 sound/drivers/ml403-ac97cr.c if (!enable[dev]) dev 1282 sound/drivers/ml403-ac97cr.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 1310 sound/drivers/ml403-ac97cr.c ml403_ac97cr->capture_irq, dev + 1); dev 1312 sound/drivers/ml403-ac97cr.c snd_card_set_dev(card, &pfdev->dev); dev 72 sound/drivers/mpu401/mpu401.c if (!uart_enter[dev]) dev 76 sound/drivers/mpu401/mpu401.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 81 sound/drivers/mpu401/mpu401.c sprintf(card->longname, "%s at %#lx, ", card->shortname, port[dev]); dev 82 sound/drivers/mpu401/mpu401.c if (irq[dev] >= 0) { dev 83 sound/drivers/mpu401/mpu401.c sprintf(card->longname + strlen(card->longname), "irq %d", irq[dev]); dev 88 sound/drivers/mpu401/mpu401.c err = snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, port[dev], 0, dev 89 sound/drivers/mpu401/mpu401.c irq[dev], irq[dev] >= 0 ? IRQF_DISABLED : 0, dev 92 sound/drivers/mpu401/mpu401.c printk(KERN_ERR "MPU401 not detected at 0x%lx\n", port[dev]); dev 106 sound/drivers/mpu401/mpu401.c int dev = devptr->id; dev 110 sound/drivers/mpu401/mpu401.c if (port[dev] == SNDRV_AUTO_PORT) { dev 114 sound/drivers/mpu401/mpu401.c if (irq[dev] == SNDRV_AUTO_IRQ) { dev 118 sound/drivers/mpu401/mpu401.c err = snd_mpu401_create(dev, &card); dev 121 sound/drivers/mpu401/mpu401.c snd_card_set_dev(card, &devptr->dev); dev 173 sound/drivers/mpu401/mpu401.c port[dev] = pnp_port_start(device, 0); dev 178 sound/drivers/mpu401/mpu401.c irq[dev] = -1; dev 180 sound/drivers/mpu401/mpu401.c irq[dev] = pnp_irq(device, 0); dev 188 sound/drivers/mpu401/mpu401.c static int dev; dev 192 sound/drivers/mpu401/mpu401.c for ( ; dev < SNDRV_CARDS; ++dev) { dev 193 sound/drivers/mpu401/mpu401.c if (!enable[dev] || !pnp[dev]) dev 195 sound/drivers/mpu401/mpu401.c err = snd_mpu401_pnp(dev, pnp_dev, id); dev 198 sound/drivers/mpu401/mpu401.c err = snd_mpu401_create(dev, &card); dev 205 sound/drivers/mpu401/mpu401.c snd_card_set_dev(card, &pnp_dev->dev); dev 208 sound/drivers/mpu401/mpu401.c ++dev; dev 216 sound/drivers/mpu401/mpu401.c struct snd_card *card = (struct snd_card *) pnp_get_drvdata(dev); dev 733 sound/drivers/mtpav.c snd_card_set_dev(card, &dev->dev); dev 738 sound/drivers/mtpav.c platform_set_drvdata(dev, card); dev 945 sound/drivers/mts64.c int dev = pdev->id; dev 953 sound/drivers/mts64.c if (dev >= SNDRV_CARDS) dev 955 sound/drivers/mts64.c if (!enable[dev]) dev 960 sound/drivers/mts64.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 1010 sound/drivers/mts64.c snd_card_set_dev(card, &pdev->dev); dev 122 sound/drivers/opl3/opl3_oss.c struct snd_seq_device *dev; dev 125 sound/drivers/opl3/opl3_oss.c sizeof(struct snd_seq_oss_reg), &dev) < 0) dev 128 sound/drivers/opl3/opl3_oss.c opl3->oss_seq_dev = dev; dev 129 sound/drivers/opl3/opl3_oss.c strlcpy(dev->name, name, sizeof(dev->name)); dev 130 sound/drivers/opl3/opl3_oss.c arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 144 sound/drivers/opl3/opl3_oss.c snd_device_register(opl3->card, dev); dev 225 sound/drivers/opl3/opl3_seq.c opl3 = *(struct snd_opl3 **)SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 265 sound/drivers/opl3/opl3_seq.c opl3 = *(struct snd_opl3 **)SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 132 sound/drivers/opl4/opl4_seq.c opl4 = *(struct snd_opl4 **)SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 186 sound/drivers/opl4/opl4_seq.c opl4 = *(struct snd_opl4 **)SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 122 sound/drivers/pcsp/pcsp.c snd_card_set_dev(pcsp_chip.card, dev); dev 142 sound/drivers/pcsp/pcsp.c err = snd_card_pcsp_probe(0, dev); dev 166 sound/drivers/pcsp/pcsp.c err = pcspkr_input_init(&pcsp_chip.input_dev, &dev->dev); dev 170 sound/drivers/pcsp/pcsp.c err = alsa_card_pcsp_init(&dev->dev); dev 176 sound/drivers/pcsp/pcsp.c platform_set_drvdata(dev, &pcsp_chip); dev 182 sound/drivers/pcsp/pcsp.c struct snd_pcsp *chip = platform_get_drvdata(dev); dev 185 sound/drivers/pcsp/pcsp.c platform_set_drvdata(dev, NULL); dev 200 sound/drivers/pcsp/pcsp.c struct snd_pcsp *chip = platform_get_drvdata(dev); dev 211 sound/drivers/pcsp/pcsp.c struct snd_pcsp *chip = platform_get_drvdata(dev); dev 94 sound/drivers/pcsp/pcsp_input.c input_dev->dev.parent = dev; dev 113 sound/drivers/pcsp/pcsp_input.c input_unregister_device(dev); /* this also does kfree() */ dev 733 sound/drivers/portman2x4.c int dev = pdev->id; dev 741 sound/drivers/portman2x4.c if (dev >= SNDRV_CARDS) dev 743 sound/drivers/portman2x4.c if (!enable[dev]) dev 749 sound/drivers/portman2x4.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 799 sound/drivers/portman2x4.c snd_card_set_dev(card, &pdev->dev); dev 904 sound/drivers/serial-u16550.c int dev = devptr->id; dev 906 sound/drivers/serial-u16550.c switch (adaptor[dev]) { dev 908 sound/drivers/serial-u16550.c ins[dev] = 1; dev 912 sound/drivers/serial-u16550.c outs[dev] = 1; dev 913 sound/drivers/serial-u16550.c ins[dev] = 1; dev 916 sound/drivers/serial-u16550.c outs[dev] = 16; dev 917 sound/drivers/serial-u16550.c ins[dev] = 1; dev 923 sound/drivers/serial-u16550.c SNDRV_SERIAL_MAX_ADAPTOR, adaptor[dev]); dev 927 sound/drivers/serial-u16550.c if (outs[dev] < 1 || outs[dev] > SNDRV_SERIAL_MAX_OUTS) { dev 929 sound/drivers/serial-u16550.c SNDRV_SERIAL_MAX_OUTS, outs[dev]); dev 933 sound/drivers/serial-u16550.c if (ins[dev] < 1 || ins[dev] > SNDRV_SERIAL_MAX_INS) { dev 935 sound/drivers/serial-u16550.c SNDRV_SERIAL_MAX_INS, ins[dev]); dev 939 sound/drivers/serial-u16550.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 947 sound/drivers/serial-u16550.c port[dev], dev 948 sound/drivers/serial-u16550.c irq[dev], dev 949 sound/drivers/serial-u16550.c speed[dev], dev 950 sound/drivers/serial-u16550.c base[dev], dev 951 sound/drivers/serial-u16550.c adaptor[dev], dev 952 sound/drivers/serial-u16550.c droponfull[dev], dev 956 sound/drivers/serial-u16550.c err = snd_uart16550_rmidi(uart, 0, outs[dev], ins[dev], &uart->rmidi); dev 966 sound/drivers/serial-u16550.c outs[dev], dev 967 sound/drivers/serial-u16550.c ins[dev], dev 971 sound/drivers/serial-u16550.c snd_card_set_dev(card, &devptr->dev); dev 91 sound/drivers/virmidi.c int dev = devptr->id; dev 93 sound/drivers/virmidi.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 100 sound/drivers/virmidi.c if (midi_devs[dev] > MAX_MIDI_DEVICES) { dev 101 sound/drivers/virmidi.c snd_printk("too much midi devices for virmidi %d: force to use %d\n", dev, MAX_MIDI_DEVICES); dev 102 sound/drivers/virmidi.c midi_devs[dev] = MAX_MIDI_DEVICES; dev 104 sound/drivers/virmidi.c for (idx = 0; idx < midi_devs[dev]; idx++) { dev 117 sound/drivers/virmidi.c sprintf(card->longname, "Virtual MIDI Card %i", dev + 1); dev 119 sound/drivers/virmidi.c snd_card_set_dev(card, &devptr->dev); dev 545 sound/drivers/vx/vx_core.c struct vx_core *chip = dev; dev 74 sound/drivers/vx/vx_hwdep.c if (request_firmware(&fw, path, chip->dev)) { dev 67 sound/isa/ad1816a/ad1816a.c struct pnp_dev *dev; dev 109 sound/isa/ad1816a/ad1816a.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); dev 110 sound/isa/ad1816a/ad1816a.c if (acard->dev == NULL) dev 115 sound/isa/ad1816a/ad1816a.c mpu_port[dev] = -1; dev 119 sound/isa/ad1816a/ad1816a.c pdev = acard->dev; dev 127 sound/isa/ad1816a/ad1816a.c port[dev] = pnp_port_start(pdev, 2); dev 128 sound/isa/ad1816a/ad1816a.c fm_port[dev] = pnp_port_start(pdev, 1); dev 129 sound/isa/ad1816a/ad1816a.c dma1[dev] = pnp_dma(pdev, 0); dev 130 sound/isa/ad1816a/ad1816a.c dma2[dev] = pnp_dma(pdev, 1); dev 131 sound/isa/ad1816a/ad1816a.c irq[dev] = pnp_irq(pdev, 0); dev 141 sound/isa/ad1816a/ad1816a.c mpu_port[dev] = -1; dev 144 sound/isa/ad1816a/ad1816a.c mpu_port[dev] = pnp_port_start(pdev, 0); dev 145 sound/isa/ad1816a/ad1816a.c mpu_irq[dev] = pnp_irq(pdev, 0); dev 160 sound/isa/ad1816a/ad1816a.c if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 165 sound/isa/ad1816a/ad1816a.c if ((error = snd_card_ad1816a_pnp(dev, acard, pcard, pid))) { dev 169 sound/isa/ad1816a/ad1816a.c snd_card_set_dev(card, &pcard->card->dev); dev 171 sound/isa/ad1816a/ad1816a.c if ((error = snd_ad1816a_create(card, port[dev], dev 172 sound/isa/ad1816a/ad1816a.c irq[dev], dev 173 sound/isa/ad1816a/ad1816a.c dma1[dev], dev 174 sound/isa/ad1816a/ad1816a.c dma2[dev], dev 179 sound/isa/ad1816a/ad1816a.c if (clockfreq[dev] >= 5000 && clockfreq[dev] <= 100000) dev 180 sound/isa/ad1816a/ad1816a.c chip->clock_freq = clockfreq[dev]; dev 185 sound/isa/ad1816a/ad1816a.c card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); dev 197 sound/isa/ad1816a/ad1816a.c if (mpu_port[dev] > 0) { dev 199 sound/isa/ad1816a/ad1816a.c mpu_port[dev], 0, mpu_irq[dev], IRQF_DISABLED, dev 201 sound/isa/ad1816a/ad1816a.c printk(KERN_ERR PFX "no MPU-401 device at 0x%lx.\n", mpu_port[dev]); dev 204 sound/isa/ad1816a/ad1816a.c if (fm_port[dev] > 0) { dev 206 sound/isa/ad1816a/ad1816a.c fm_port[dev], fm_port[dev] + 2, dev 208 sound/isa/ad1816a/ad1816a.c printk(KERN_ERR PFX "no OPL device at 0x%lx-0x%lx.\n", fm_port[dev], fm_port[dev] + 2); dev 234 sound/isa/ad1816a/ad1816a.c static int dev; dev 237 sound/isa/ad1816a/ad1816a.c for ( ; dev < SNDRV_CARDS; dev++) { dev 238 sound/isa/ad1816a/ad1816a.c if (!enable[dev]) dev 240 sound/isa/ad1816a/ad1816a.c res = snd_card_ad1816a_probe(dev, card, id); dev 243 sound/isa/ad1816a/ad1816a.c dev++; dev 73 sound/isa/ad1848/ad1848.c snd_printk(KERN_ERR "%s: please specify port\n", dev->bus_id); dev 77 sound/isa/ad1848/ad1848.c snd_printk(KERN_ERR "%s: please specify irq\n", dev->bus_id); dev 81 sound/isa/ad1848/ad1848.c snd_printk(KERN_ERR "%s: please specify dma1\n", dev->bus_id); dev 122 sound/isa/ad1848/ad1848.c snd_card_set_dev(card, dev); dev 128 sound/isa/ad1848/ad1848.c dev_set_drvdata(dev, card); dev 137 sound/isa/ad1848/ad1848.c snd_card_free(dev_get_drvdata(dev)); dev 138 sound/isa/ad1848/ad1848.c dev_set_drvdata(dev, NULL); dev 145 sound/isa/ad1848/ad1848.c struct snd_card *card = dev_get_drvdata(dev); dev 155 sound/isa/ad1848/ad1848.c struct snd_card *card = dev_get_drvdata(dev); dev 39 sound/isa/adlib.c snd_printk(KERN_ERR "%s: please specify port\n", dev->bus_id); dev 58 sound/isa/adlib.c snd_printk(KERN_ERR "%s: could not create card\n", dev->bus_id); dev 64 sound/isa/adlib.c snd_printk(KERN_ERR "%s: could not grab ports\n", dev->bus_id); dev 76 sound/isa/adlib.c snd_printk(KERN_ERR "%s: could not create OPL\n", dev->bus_id); dev 82 sound/isa/adlib.c snd_printk(KERN_ERR "%s: could not create FM\n", dev->bus_id); dev 86 sound/isa/adlib.c snd_card_set_dev(card, dev); dev 90 sound/isa/adlib.c snd_printk(KERN_ERR "%s: could not register card\n", dev->bus_id); dev 94 sound/isa/adlib.c dev_set_drvdata(dev, card); dev 103 sound/isa/adlib.c snd_card_free(dev_get_drvdata(dev)); dev 104 sound/isa/adlib.c dev_set_drvdata(dev, NULL); dev 68 sound/isa/als100.c struct pnp_dev *dev; dev 101 sound/isa/als100.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); dev 102 sound/isa/als100.c if (acard->dev == NULL) dev 105 sound/isa/als100.c acard->devmpu = pnp_request_card_device(card, id->devs[1].id, acard->dev); dev 106 sound/isa/als100.c acard->devopl = pnp_request_card_device(card, id->devs[2].id, acard->dev); dev 108 sound/isa/als100.c pdev = acard->dev; dev 115 sound/isa/als100.c port[dev] = pnp_port_start(pdev, 0); dev 116 sound/isa/als100.c dma8[dev] = pnp_dma(pdev, 1); dev 117 sound/isa/als100.c dma16[dev] = pnp_dma(pdev, 0); dev 118 sound/isa/als100.c irq[dev] = pnp_irq(pdev, 0); dev 125 sound/isa/als100.c mpu_port[dev] = pnp_port_start(pdev, 0); dev 126 sound/isa/als100.c mpu_irq[dev] = pnp_irq(pdev, 0); dev 134 sound/isa/als100.c mpu_port[dev] = -1; dev 142 sound/isa/als100.c fm_port[dev] = pnp_port_start(pdev, 0); dev 150 sound/isa/als100.c fm_port[dev] = -1; dev 166 sound/isa/als100.c if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 171 sound/isa/als100.c if ((error = snd_card_als100_pnp(dev, acard, pcard, pid))) { dev 175 sound/isa/als100.c snd_card_set_dev(card, &pcard->card->dev); dev 177 sound/isa/als100.c if ((error = snd_sbdsp_create(card, port[dev], dev 178 sound/isa/als100.c irq[dev], dev 180 sound/isa/als100.c dma8[dev], dev 181 sound/isa/als100.c dma16[dev], dev 192 sound/isa/als100.c irq[dev], dma8[dev], dma16[dev]); dev 204 sound/isa/als100.c if (mpu_port[dev] > 0 && mpu_port[dev] != SNDRV_AUTO_PORT) { dev 206 sound/isa/als100.c mpu_port[dev], 0, dev 207 sound/isa/als100.c mpu_irq[dev], IRQF_DISABLED, dev 209 sound/isa/als100.c snd_printk(KERN_ERR PFX "no MPU-401 device at 0x%lx\n", mpu_port[dev]); dev 212 sound/isa/als100.c if (fm_port[dev] > 0 && fm_port[dev] != SNDRV_AUTO_PORT) { dev 214 sound/isa/als100.c fm_port[dev], fm_port[dev] + 2, dev 217 sound/isa/als100.c fm_port[dev], fm_port[dev] + 2); dev 243 sound/isa/als100.c static int dev; dev 246 sound/isa/als100.c for ( ; dev < SNDRV_CARDS; dev++) { dev 247 sound/isa/als100.c if (!enable[dev]) dev 249 sound/isa/als100.c res = snd_card_als100_probe(dev, card, id); dev 252 sound/isa/als100.c dev++; dev 77 sound/isa/azt2320.c struct pnp_dev *dev; dev 109 sound/isa/azt2320.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); dev 110 sound/isa/azt2320.c if (acard->dev == NULL) dev 115 sound/isa/azt2320.c pdev = acard->dev; dev 122 sound/isa/azt2320.c port[dev] = pnp_port_start(pdev, 0); dev 123 sound/isa/azt2320.c fm_port[dev] = pnp_port_start(pdev, 1); dev 124 sound/isa/azt2320.c wss_port[dev] = pnp_port_start(pdev, 2); dev 125 sound/isa/azt2320.c dma1[dev] = pnp_dma(pdev, 0); dev 126 sound/isa/azt2320.c dma2[dev] = pnp_dma(pdev, 1); dev 127 sound/isa/azt2320.c irq[dev] = pnp_irq(pdev, 0); dev 134 sound/isa/azt2320.c mpu_port[dev] = pnp_port_start(pdev, 0); dev 135 sound/isa/azt2320.c mpu_irq[dev] = pnp_irq(pdev, 0); dev 143 sound/isa/azt2320.c mpu_port[dev] = -1; dev 187 sound/isa/azt2320.c if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 192 sound/isa/azt2320.c if ((error = snd_card_azt2320_pnp(dev, acard, pcard, pid))) { dev 196 sound/isa/azt2320.c snd_card_set_dev(card, &pcard->card->dev); dev 198 sound/isa/azt2320.c if ((error = snd_card_azt2320_enable_wss(port[dev]))) { dev 203 sound/isa/azt2320.c error = snd_wss_create(card, wss_port[dev], -1, dev 204 sound/isa/azt2320.c irq[dev], dev 205 sound/isa/azt2320.c dma1[dev], dma2[dev], dev 215 sound/isa/azt2320.c card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); dev 233 sound/isa/azt2320.c if (mpu_port[dev] > 0 && mpu_port[dev] != SNDRV_AUTO_PORT) { dev 235 sound/isa/azt2320.c mpu_port[dev], 0, dev 236 sound/isa/azt2320.c mpu_irq[dev], IRQF_DISABLED, dev 238 sound/isa/azt2320.c snd_printk(KERN_ERR PFX "no MPU-401 device at 0x%lx\n", mpu_port[dev]); dev 241 sound/isa/azt2320.c if (fm_port[dev] > 0 && fm_port[dev] != SNDRV_AUTO_PORT) { dev 243 sound/isa/azt2320.c fm_port[dev], fm_port[dev] + 2, dev 246 sound/isa/azt2320.c fm_port[dev], fm_port[dev] + 2); dev 272 sound/isa/azt2320.c static int dev; dev 275 sound/isa/azt2320.c for ( ; dev < SNDRV_CARDS; dev++) { dev 276 sound/isa/azt2320.c if (!enable[dev]) dev 278 sound/isa/azt2320.c res = snd_card_azt2320_probe(dev, card, id); dev 281 sound/isa/azt2320.c dev++; dev 333 sound/isa/cmi8330.c wssport[dev] = pnp_port_start(pdev, 0); dev 334 sound/isa/cmi8330.c wssdma[dev] = pnp_dma(pdev, 0); dev 335 sound/isa/cmi8330.c wssirq[dev] = pnp_irq(pdev, 0); dev 345 sound/isa/cmi8330.c sbport[dev] = pnp_port_start(pdev, 0); dev 346 sound/isa/cmi8330.c sbdma8[dev] = pnp_dma(pdev, 0); dev 347 sound/isa/cmi8330.c sbdma16[dev] = pnp_dma(pdev, 1); dev 348 sound/isa/cmi8330.c sbirq[dev] = pnp_irq(pdev, 0); dev 463 sound/isa/cmi8330.c #define is_isapnp_selected(dev) isapnp[dev] dev 475 sound/isa/cmi8330.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 492 sound/isa/cmi8330.c err = snd_wss_create(card, wssport[dev] + 4, -1, dev 493 sound/isa/cmi8330.c wssirq[dev], dev 494 sound/isa/cmi8330.c wssdma[dev], -1, dev 505 sound/isa/cmi8330.c if ((err = snd_sbdsp_create(card, sbport[dev], dev 506 sound/isa/cmi8330.c sbirq[dev], dev 508 sound/isa/cmi8330.c sbdma8[dev], dev 509 sound/isa/cmi8330.c sbdma16[dev], dev 539 sound/isa/cmi8330.c wssirq[dev], dev 540 sound/isa/cmi8330.c wssdma[dev]); dev 548 sound/isa/cmi8330.c if (!enable[dev] || is_isapnp_selected(dev)) dev 550 sound/isa/cmi8330.c if (wssport[dev] == SNDRV_AUTO_PORT) { dev 554 sound/isa/cmi8330.c if (sbport[dev] == SNDRV_AUTO_PORT) { dev 567 sound/isa/cmi8330.c card = snd_cmi8330_card_new(dev); dev 571 sound/isa/cmi8330.c if ((err = snd_cmi8330_probe(card, dev)) < 0) { dev 591 sound/isa/cmi8330.c return snd_cmi8330_suspend(dev_get_drvdata(dev)); dev 596 sound/isa/cmi8330.c return snd_cmi8330_resume(dev_get_drvdata(dev)); dev 620 sound/isa/cmi8330.c static int dev; dev 624 sound/isa/cmi8330.c for ( ; dev < SNDRV_CARDS; dev++) { dev 625 sound/isa/cmi8330.c if (enable[dev] && isapnp[dev]) dev 628 sound/isa/cmi8330.c if (dev >= SNDRV_CARDS) dev 631 sound/isa/cmi8330.c card = snd_cmi8330_card_new(dev); dev 634 sound/isa/cmi8330.c if ((res = snd_cmi8330_pnp(dev, card->private_data, pcard, pid)) < 0) { dev 639 sound/isa/cmi8330.c snd_card_set_dev(card, &pcard->card->dev); dev 640 sound/isa/cmi8330.c if ((res = snd_cmi8330_probe(card, dev)) < 0) { dev 645 sound/isa/cmi8330.c dev++; dev 77 sound/isa/cs423x/cs4231.c snd_printk(KERN_ERR "%s: please specify port\n", dev->bus_id); dev 81 sound/isa/cs423x/cs4231.c snd_printk(KERN_ERR "%s: please specify irq\n", dev->bus_id); dev 85 sound/isa/cs423x/cs4231.c snd_printk(KERN_ERR "%s: please specify dma1\n", dev->bus_id); dev 136 sound/isa/cs423x/cs4231.c printk(KERN_WARNING "%s: MPU401 not detected\n", dev->bus_id); dev 139 sound/isa/cs423x/cs4231.c snd_card_set_dev(card, dev); dev 145 sound/isa/cs423x/cs4231.c dev_set_drvdata(dev, card); dev 154 sound/isa/cs423x/cs4231.c snd_card_free(dev_get_drvdata(dev)); dev 155 sound/isa/cs423x/cs4231.c dev_set_drvdata(dev, NULL); dev 162 sound/isa/cs423x/cs4231.c struct snd_card *card = dev_get_drvdata(dev); dev 172 sound/isa/cs423x/cs4231.c struct snd_card *card = dev_get_drvdata(dev); dev 280 sound/isa/cs423x/cs4236.c port[dev] = pnp_port_start(pdev, 0); dev 281 sound/isa/cs423x/cs4236.c if (fm_port[dev] > 0) dev 282 sound/isa/cs423x/cs4236.c fm_port[dev] = pnp_port_start(pdev, 1); dev 283 sound/isa/cs423x/cs4236.c sb_port[dev] = pnp_port_start(pdev, 2); dev 284 sound/isa/cs423x/cs4236.c irq[dev] = pnp_irq(pdev, 0); dev 285 sound/isa/cs423x/cs4236.c dma1[dev] = pnp_dma(pdev, 0); dev 286 sound/isa/cs423x/cs4236.c dma2[dev] = pnp_dma(pdev, 1) == 4 ? -1 : (int)pnp_dma(pdev, 1); dev 288 sound/isa/cs423x/cs4236.c port[dev], fm_port[dev], sb_port[dev]); dev 290 sound/isa/cs423x/cs4236.c irq[dev], dma1[dev], dma2[dev]); dev 301 sound/isa/cs423x/cs4236.c cport[dev] = pnp_port_start(pdev, 0); dev 302 sound/isa/cs423x/cs4236.c snd_printdd("isapnp CTRL: control port=0x%lx\n", cport[dev]); dev 311 sound/isa/cs423x/cs4236.c mpu_port[dev] = SNDRV_AUTO_PORT; dev 312 sound/isa/cs423x/cs4236.c mpu_irq[dev] = SNDRV_AUTO_IRQ; dev 314 sound/isa/cs423x/cs4236.c mpu_port[dev] = pnp_port_start(pdev, 0); dev 315 sound/isa/cs423x/cs4236.c if (mpu_irq[dev] >= 0 && dev 317 sound/isa/cs423x/cs4236.c mpu_irq[dev] = pnp_irq(pdev, 0); dev 319 sound/isa/cs423x/cs4236.c mpu_irq[dev] = -1; /* disable interrupt */ dev 322 sound/isa/cs423x/cs4236.c snd_printdd("isapnp MPU: port=0x%lx, irq=%i\n", mpu_port[dev], mpu_irq[dev]); dev 331 sound/isa/cs423x/cs4236.c if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0) dev 333 sound/isa/cs423x/cs4236.c cport[dev] = -1; dev 355 sound/isa/cs423x/cs4236.c if (snd_cs423x_pnp_init_wss(dev, acard->wss) < 0) dev 359 sound/isa/cs423x/cs4236.c if (acard->ctrl && cport[dev] > 0) { dev 360 sound/isa/cs423x/cs4236.c if (snd_cs423x_pnp_init_ctrl(dev, acard->ctrl) < 0) dev 364 sound/isa/cs423x/cs4236.c if (acard->mpu && mpu_port[dev] > 0) { dev 365 sound/isa/cs423x/cs4236.c if (snd_cs423x_pnp_init_mpu(dev, acard->mpu) < 0) dev 373 sound/isa/cs423x/cs4236.c #define is_isapnp_selected(dev) isapnp[dev] dev 389 sound/isa/cs423x/cs4236.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 406 sound/isa/cs423x/cs4236.c if (sb_port[dev] > 0 && sb_port[dev] != SNDRV_AUTO_PORT) dev 407 sound/isa/cs423x/cs4236.c if ((acard->res_sb_port = request_region(sb_port[dev], 16, IDENT " SB")) == NULL) { dev 408 sound/isa/cs423x/cs4236.c printk(KERN_ERR IDENT ": unable to register SB port at 0x%lx\n", sb_port[dev]); dev 413 sound/isa/cs423x/cs4236.c err = snd_wss_create(card, port[dev], cport[dev], dev 414 sound/isa/cs423x/cs4236.c irq[dev], dev 415 sound/isa/cs423x/cs4236.c dma1[dev], dma2[dev], dev 431 sound/isa/cs423x/cs4236.c port[dev], cport[dev], dev 432 sound/isa/cs423x/cs4236.c irq[dev], dma1[dev], dma2[dev], dev 451 sound/isa/cs423x/cs4236.c irq[dev], dev 452 sound/isa/cs423x/cs4236.c dma1[dev]); dev 453 sound/isa/cs423x/cs4236.c if (dma2[dev] >= 0) dev 454 sound/isa/cs423x/cs4236.c sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); dev 460 sound/isa/cs423x/cs4236.c if (fm_port[dev] > 0 && fm_port[dev] != SNDRV_AUTO_PORT) { dev 462 sound/isa/cs423x/cs4236.c fm_port[dev], fm_port[dev] + 2, dev 471 sound/isa/cs423x/cs4236.c if (mpu_port[dev] > 0 && mpu_port[dev] != SNDRV_AUTO_PORT) { dev 472 sound/isa/cs423x/cs4236.c if (mpu_irq[dev] == SNDRV_AUTO_IRQ) dev 473 sound/isa/cs423x/cs4236.c mpu_irq[dev] = -1; dev 475 sound/isa/cs423x/cs4236.c mpu_port[dev], 0, dev 476 sound/isa/cs423x/cs4236.c mpu_irq[dev], dev 477 sound/isa/cs423x/cs4236.c mpu_irq[dev] >= 0 ? IRQF_DISABLED : 0, NULL) < 0) dev 487 sound/isa/cs423x/cs4236.c if (!enable[dev] || is_isapnp_selected(dev)) dev 490 sound/isa/cs423x/cs4236.c if (port[dev] == SNDRV_AUTO_PORT) { dev 494 sound/isa/cs423x/cs4236.c if (cport[dev] == SNDRV_AUTO_PORT) { dev 498 sound/isa/cs423x/cs4236.c if (irq[dev] == SNDRV_AUTO_IRQ) { dev 502 sound/isa/cs423x/cs4236.c if (dma1[dev] == SNDRV_AUTO_DMA) { dev 515 sound/isa/cs423x/cs4236.c card = snd_cs423x_card_new(dev); dev 519 sound/isa/cs423x/cs4236.c if ((err = snd_cs423x_probe(card, dev)) < 0) { dev 556 sound/isa/cs423x/cs4236.c return snd_cs423x_suspend(dev_get_drvdata(dev)); dev 561 sound/isa/cs423x/cs4236.c return snd_cs423x_resume(dev_get_drvdata(dev)); dev 584 sound/isa/cs423x/cs4236.c static int dev; dev 590 sound/isa/cs423x/cs4236.c for (; dev < SNDRV_CARDS; dev++) { dev 591 sound/isa/cs423x/cs4236.c if (enable[dev] && isapnp[dev]) dev 594 sound/isa/cs423x/cs4236.c if (dev >= SNDRV_CARDS) dev 597 sound/isa/cs423x/cs4236.c card = snd_cs423x_card_new(dev); dev 600 sound/isa/cs423x/cs4236.c if ((err = snd_card_cs4232_pnp(dev, card->private_data, pdev)) < 0) { dev 605 sound/isa/cs423x/cs4236.c snd_card_set_dev(card, &pdev->dev); dev 606 sound/isa/cs423x/cs4236.c if ((err = snd_cs423x_probe(card, dev)) < 0) { dev 611 sound/isa/cs423x/cs4236.c dev++; dev 648 sound/isa/cs423x/cs4236.c static int dev; dev 652 sound/isa/cs423x/cs4236.c for ( ; dev < SNDRV_CARDS; dev++) { dev 653 sound/isa/cs423x/cs4236.c if (enable[dev] && isapnp[dev]) dev 656 sound/isa/cs423x/cs4236.c if (dev >= SNDRV_CARDS) dev 659 sound/isa/cs423x/cs4236.c card = snd_cs423x_card_new(dev); dev 662 sound/isa/cs423x/cs4236.c if ((res = snd_card_cs423x_pnpc(dev, card->private_data, pcard, pid)) < 0) { dev 668 sound/isa/cs423x/cs4236.c snd_card_set_dev(card, &pcard->card->dev); dev 669 sound/isa/cs423x/cs4236.c if ((res = snd_cs423x_probe(card, dev)) < 0) { dev 674 sound/isa/cs423x/cs4236.c dev++; dev 60 sound/isa/dt019x.c struct pnp_dev *dev; dev 87 sound/isa/dt019x.c acard->dev = pnp_request_card_device(card, pid->devs[0].id, NULL); dev 88 sound/isa/dt019x.c if (acard->dev == NULL) dev 94 sound/isa/dt019x.c pdev = acard->dev; dev 102 sound/isa/dt019x.c port[dev] = pnp_port_start(pdev, 0); dev 103 sound/isa/dt019x.c dma8[dev] = pnp_dma(pdev, 0); dev 104 sound/isa/dt019x.c irq[dev] = pnp_irq(pdev, 0); dev 106 sound/isa/dt019x.c port[dev],irq[dev],dma8[dev]); dev 116 sound/isa/dt019x.c mpu_port[dev] = pnp_port_start(pdev, 0); dev 117 sound/isa/dt019x.c mpu_irq[dev] = pnp_irq(pdev, 0); dev 119 sound/isa/dt019x.c mpu_port[dev],mpu_irq[dev]); dev 123 sound/isa/dt019x.c mpu_port[dev] = -1; dev 134 sound/isa/dt019x.c fm_port[dev] = pnp_port_start(pdev, 0); dev 135 sound/isa/dt019x.c snd_printdd("dt019x: found OPL3 synth: port=0x%lx\n",fm_port[dev]); dev 139 sound/isa/dt019x.c fm_port[dev] = -1; dev 153 sound/isa/dt019x.c if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 158 sound/isa/dt019x.c snd_card_set_dev(card, &pcard->card->dev); dev 159 sound/isa/dt019x.c if ((error = snd_card_dt019x_pnp(dev, acard, pcard, pid))) { dev 164 sound/isa/dt019x.c if ((error = snd_sbdsp_create(card, port[dev], dev 165 sound/isa/dt019x.c irq[dev], dev 167 sound/isa/dt019x.c dma8[dev], dev 180 sound/isa/dt019x.c irq[dev], dma8[dev]); dev 191 sound/isa/dt019x.c if (mpu_port[dev] > 0 && mpu_port[dev] != SNDRV_AUTO_PORT) { dev 192 sound/isa/dt019x.c if (mpu_irq[dev] == SNDRV_AUTO_IRQ) dev 193 sound/isa/dt019x.c mpu_irq[dev] = -1; dev 197 sound/isa/dt019x.c mpu_port[dev], 0, dev 198 sound/isa/dt019x.c mpu_irq[dev], dev 199 sound/isa/dt019x.c mpu_irq[dev] >= 0 ? IRQF_DISABLED : 0, dev 201 sound/isa/dt019x.c snd_printk(KERN_ERR PFX "no MPU-401 device at 0x%lx ?\n", mpu_port[dev]); dev 204 sound/isa/dt019x.c if (fm_port[dev] > 0 && fm_port[dev] != SNDRV_AUTO_PORT) { dev 206 sound/isa/dt019x.c fm_port[dev], dev 207 sound/isa/dt019x.c fm_port[dev] + 2, dev 210 sound/isa/dt019x.c fm_port[dev], fm_port[dev] + 2); dev 236 sound/isa/dt019x.c static int dev; dev 239 sound/isa/dt019x.c for ( ; dev < SNDRV_CARDS; dev++) { dev 240 sound/isa/dt019x.c if (!enable[dev]) dev 242 sound/isa/dt019x.c res = snd_card_dt019x_probe(dev, card, pid); dev 245 sound/isa/dt019x.c dev++; dev 92 sound/isa/es1688/es1688.c dev->bus_id); dev 100 sound/isa/es1688/es1688.c dev->bus_id); dev 131 sound/isa/es1688/es1688.c error = snd_es1688_legacy_create(card, dev, n, &chip); dev 151 sound/isa/es1688/es1688.c dev->bus_id, chip->port); dev 167 sound/isa/es1688/es1688.c snd_card_set_dev(card, dev); dev 173 sound/isa/es1688/es1688.c dev_set_drvdata(dev, card); dev 182 sound/isa/es1688/es1688.c snd_card_free(dev_get_drvdata(dev)); dev 183 sound/isa/es1688/es1688.c dev_set_drvdata(dev, NULL); dev 148 sound/isa/es18xx.c struct pnp_dev *dev; dev 2050 sound/isa/es18xx.c if (mpu_port[dev] != SNDRV_AUTO_PORT) dev 2055 sound/isa/es18xx.c port[dev] = pnp_port_start(pdev, 0); dev 2056 sound/isa/es18xx.c fm_port[dev] = pnp_port_start(pdev, 1); dev 2057 sound/isa/es18xx.c mpu_port[dev] = pnp_port_start(pdev, 2); dev 2058 sound/isa/es18xx.c dma1[dev] = pnp_dma(pdev, 0); dev 2059 sound/isa/es18xx.c dma2[dev] = pnp_dma(pdev, 1); dev 2060 sound/isa/es18xx.c irq[dev] = pnp_irq(pdev, 0); dev 2061 sound/isa/es18xx.c snd_printdd("PnP ES18xx: port=0x%lx, fm port=0x%lx, mpu port=0x%lx\n", port[dev], fm_port[dev], mpu_port[dev]); dev 2062 sound/isa/es18xx.c snd_printdd("PnP ES18xx: dma1=%i, dma2=%i, irq=%i\n", dma1[dev], dma2[dev], irq[dev]); dev 2069 sound/isa/es18xx.c acard->dev = pdev; dev 2070 sound/isa/es18xx.c if (snd_audiodrive_pnp_init_main(dev, acard->dev) < 0) dev 2100 sound/isa/es18xx.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); dev 2101 sound/isa/es18xx.c if (acard->dev == NULL) dev 2115 sound/isa/es18xx.c if (snd_audiodrive_pnp_init_main(dev, acard->dev) < 0) dev 2123 sound/isa/es18xx.c #define is_isapnp_selected(dev) isapnp[dev] dev 2130 sound/isa/es18xx.c return snd_card_new(index[dev], id[dev], THIS_MODULE, dev 2142 sound/isa/es18xx.c port[dev], dev 2143 sound/isa/es18xx.c mpu_port[dev], dev 2144 sound/isa/es18xx.c fm_port[dev], dev 2145 sound/isa/es18xx.c irq[dev], dma1[dev], dma2[dev], dev 2153 sound/isa/es18xx.c if (dma1[dev] != dma2[dev]) dev 2157 sound/isa/es18xx.c irq[dev], dma1[dev], dma2[dev]); dev 2162 sound/isa/es18xx.c irq[dev], dma1[dev]); dev 2170 sound/isa/es18xx.c if (fm_port[dev] > 0 && fm_port[dev] != SNDRV_AUTO_PORT) { dev 2179 sound/isa/es18xx.c if (mpu_port[dev] > 0 && mpu_port[dev] != SNDRV_AUTO_PORT) { dev 2182 sound/isa/es18xx.c irq[dev], 0, dev 2192 sound/isa/es18xx.c return enable[dev] && !is_isapnp_selected(dev); dev 2200 sound/isa/es18xx.c card = snd_es18xx_card_new(dev); dev 2204 sound/isa/es18xx.c if ((err = snd_audiodrive_probe(card, dev)) < 0) { dev 2218 sound/isa/es18xx.c if (irq[dev] == SNDRV_AUTO_IRQ) { dev 2219 sound/isa/es18xx.c if ((irq[dev] = snd_legacy_find_free_irq(possible_irqs)) < 0) { dev 2224 sound/isa/es18xx.c if (dma1[dev] == SNDRV_AUTO_DMA) { dev 2225 sound/isa/es18xx.c if ((dma1[dev] = snd_legacy_find_free_dma(possible_dmas)) < 0) { dev 2230 sound/isa/es18xx.c if (dma2[dev] == SNDRV_AUTO_DMA) { dev 2231 sound/isa/es18xx.c if ((dma2[dev] = snd_legacy_find_free_dma(possible_dmas)) < 0) { dev 2237 sound/isa/es18xx.c if (port[dev] != SNDRV_AUTO_PORT) { dev 2238 sound/isa/es18xx.c return snd_es18xx_isa_probe1(dev, pdev); dev 2243 sound/isa/es18xx.c port[dev] = possible_ports[i]; dev 2244 sound/isa/es18xx.c err = snd_es18xx_isa_probe1(dev, pdev); dev 2264 sound/isa/es18xx.c return snd_es18xx_suspend(dev_get_drvdata(dev), state); dev 2269 sound/isa/es18xx.c return snd_es18xx_resume(dev_get_drvdata(dev)); dev 2293 sound/isa/es18xx.c static int dev; dev 2299 sound/isa/es18xx.c for (; dev < SNDRV_CARDS; dev++) { dev 2300 sound/isa/es18xx.c if (enable[dev] && isapnp[dev]) dev 2303 sound/isa/es18xx.c if (dev >= SNDRV_CARDS) dev 2306 sound/isa/es18xx.c card = snd_es18xx_card_new(dev); dev 2309 sound/isa/es18xx.c if ((err = snd_audiodrive_pnp(dev, card->private_data, pdev)) < 0) { dev 2313 sound/isa/es18xx.c snd_card_set_dev(card, &pdev->dev); dev 2314 sound/isa/es18xx.c if ((err = snd_audiodrive_probe(card, dev)) < 0) { dev 2319 sound/isa/es18xx.c dev++; dev 2354 sound/isa/es18xx.c static int dev; dev 2358 sound/isa/es18xx.c for ( ; dev < SNDRV_CARDS; dev++) { dev 2359 sound/isa/es18xx.c if (enable[dev] && isapnp[dev]) dev 2362 sound/isa/es18xx.c if (dev >= SNDRV_CARDS) dev 2365 sound/isa/es18xx.c card = snd_es18xx_card_new(dev); dev 2369 sound/isa/es18xx.c if ((res = snd_audiodrive_pnpc(dev, card->private_data, pcard, pid)) < 0) { dev 2373 sound/isa/es18xx.c snd_card_set_dev(card, &pcard->card->dev); dev 2374 sound/isa/es18xx.c if ((res = snd_audiodrive_probe(card, dev)) < 0) { dev 2380 sound/isa/es18xx.c dev++; dev 94 sound/isa/gus/gusclassic.c dev->bus_id); dev 102 sound/isa/gus/gusclassic.c dev->bus_id); dev 110 sound/isa/gus/gusclassic.c dev->bus_id); dev 161 sound/isa/gus/gusclassic.c error = snd_gusclassic_create(card, dev, n, &gus); dev 178 sound/isa/gus/gusclassic.c "not detected at 0x%lx\n", dev->bus_id, gus->gf1.port); dev 204 sound/isa/gus/gusclassic.c snd_card_set_dev(card, dev); dev 210 sound/isa/gus/gusclassic.c dev_set_drvdata(dev, card); dev 219 sound/isa/gus/gusclassic.c snd_card_free(dev_get_drvdata(dev)); dev 220 sound/isa/gus/gusclassic.c dev_set_drvdata(dev, NULL); dev 110 sound/isa/gus/gusextreme.c "for ES1688\n", dev->bus_id); dev 118 sound/isa/gus/gusextreme.c "for ES1688\n", dev->bus_id); dev 147 sound/isa/gus/gusextreme.c "for GF1\n", dev->bus_id); dev 155 sound/isa/gus/gusextreme.c "for GF1\n", dev->bus_id); dev 258 sound/isa/gus/gusextreme.c error = snd_gusextreme_es1688_create(card, dev, n, &es1688); dev 265 sound/isa/gus/gusextreme.c error = snd_gusextreme_gus_card_create(card, dev, n, &gus); dev 282 sound/isa/gus/gusextreme.c "detected at 0x%lx\n", dev->bus_id, gus->gf1.port); dev 314 sound/isa/gus/gusextreme.c dev->bus_id, es1688->port); dev 333 sound/isa/gus/gusextreme.c snd_card_set_dev(card, dev); dev 339 sound/isa/gus/gusextreme.c dev_set_drvdata(dev, card); dev 348 sound/isa/gus/gusextreme.c snd_card_free(dev_get_drvdata(dev)); dev 349 sound/isa/gus/gusextreme.c dev_set_drvdata(dev, NULL); dev 132 sound/isa/gus/gusmax.c gus->joystick_dac = joystick_dac[dev]; dev 204 sound/isa/gus/gusmax.c return enable[dev]; dev 217 sound/isa/gus/gusmax.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 226 sound/isa/gus/gusmax.c xirq = irq[dev]; dev 234 sound/isa/gus/gusmax.c xdma1 = dma1[dev]; dev 242 sound/isa/gus/gusmax.c xdma2 = dma2[dev]; dev 251 sound/isa/gus/gusmax.c if (port[dev] != SNDRV_AUTO_PORT) { dev 253 sound/isa/gus/gusmax.c port[dev], dev 255 sound/isa/gus/gusmax.c 0, channels[dev], dev 256 sound/isa/gus/gusmax.c pcm_channels[dev], dev 267 sound/isa/gus/gusmax.c 0, channels[dev], dev 268 sound/isa/gus/gusmax.c pcm_channels[dev], dev 271 sound/isa/gus/gusmax.c port[dev] = possible_ports[i]; dev 284 sound/isa/gus/gusmax.c snd_gusmax_init(dev, card, gus); dev 324 sound/isa/gus/gusmax.c if (pcm_channels[dev] > 0) { dev 128 sound/isa/gus/interwave.c struct pnp_dev *dev; dev 222 sound/isa/gus/interwave.c port = port_tc[dev]; dev 293 sound/isa/gus/interwave.c return snd_interwave_detect_stb(iwcard, gus, dev, rbus); dev 496 sound/isa/gus/interwave.c gus->joystick_dac = joystick_dac[dev]; dev 568 sound/isa/gus/interwave.c iwcard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); dev 569 sound/isa/gus/interwave.c if (iwcard->dev == NULL) dev 578 sound/isa/gus/interwave.c pdev = iwcard->dev; dev 590 sound/isa/gus/interwave.c port[dev] = pnp_port_start(pdev, 0); dev 591 sound/isa/gus/interwave.c dma1[dev] = pnp_dma(pdev, 0); dev 592 sound/isa/gus/interwave.c if (dma2[dev] >= 0) dev 593 sound/isa/gus/interwave.c dma2[dev] = pnp_dma(pdev, 1); dev 594 sound/isa/gus/interwave.c irq[dev] = pnp_irq(pdev, 0); dev 599 sound/isa/gus/interwave.c snd_printdd("isapnp IW: dma1=%i, dma2=%i, irq=%i\n", dma1[dev], dma2[dev], irq[dev]); dev 609 sound/isa/gus/interwave.c port_tc[dev] = pnp_port_start(pdev, 0); dev 610 sound/isa/gus/interwave.c snd_printdd("isapnp IW: tone control port=0x%lx\n", port_tc[dev]); dev 634 sound/isa/gus/interwave.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 658 sound/isa/gus/interwave.c xirq = irq[dev]; dev 659 sound/isa/gus/interwave.c xdma1 = dma1[dev]; dev 660 sound/isa/gus/interwave.c xdma2 = dma2[dev]; dev 663 sound/isa/gus/interwave.c port[dev], dev 666 sound/isa/gus/interwave.c pcm_channels[dev], effect[dev], &gus)) < 0) dev 669 sound/isa/gus/interwave.c if ((err = snd_interwave_detect(iwcard, gus, dev dev 679 sound/isa/gus/interwave.c snd_interwave_init(dev, gus); dev 717 sound/isa/gus/interwave.c if (pcm_channels[dev] > 0) { dev 746 sound/isa/gus/interwave.c gus->uart_enable = midi[dev]; dev 781 sound/isa/gus/interwave.c card = snd_interwave_card_new(dev); dev 786 sound/isa/gus/interwave.c if ((err = snd_interwave_probe(card, dev)) < 0) { dev 797 sound/isa/gus/interwave.c if (!enable[dev]) dev 800 sound/isa/gus/interwave.c if (isapnp[dev]) dev 813 sound/isa/gus/interwave.c if (irq[dev] == SNDRV_AUTO_IRQ) { dev 814 sound/isa/gus/interwave.c if ((irq[dev] = snd_legacy_find_free_irq(possible_irqs)) < 0) { dev 819 sound/isa/gus/interwave.c if (dma1[dev] == SNDRV_AUTO_DMA) { dev 820 sound/isa/gus/interwave.c if ((dma1[dev] = snd_legacy_find_free_dma(possible_dmas)) < 0) { dev 825 sound/isa/gus/interwave.c if (dma2[dev] == SNDRV_AUTO_DMA) { dev 826 sound/isa/gus/interwave.c if ((dma2[dev] = snd_legacy_find_free_dma(possible_dmas)) < 0) { dev 832 sound/isa/gus/interwave.c if (port[dev] != SNDRV_AUTO_PORT) dev 833 sound/isa/gus/interwave.c return snd_interwave_isa_probe1(dev, pdev); dev 838 sound/isa/gus/interwave.c port[dev] = possible_ports[i]; dev 839 sound/isa/gus/interwave.c err = snd_interwave_isa_probe1(dev, pdev); dev 868 sound/isa/gus/interwave.c static int dev; dev 872 sound/isa/gus/interwave.c for ( ; dev < SNDRV_CARDS; dev++) { dev 873 sound/isa/gus/interwave.c if (enable[dev] && isapnp[dev]) dev 876 sound/isa/gus/interwave.c if (dev >= SNDRV_CARDS) dev 879 sound/isa/gus/interwave.c card = snd_interwave_card_new(dev); dev 883 sound/isa/gus/interwave.c if ((res = snd_interwave_pnp(dev, card->private_data, pcard, pid)) < 0) { dev 887 sound/isa/gus/interwave.c snd_card_set_dev(card, &pcard->card->dev); dev 888 sound/isa/gus/interwave.c if ((res = snd_interwave_probe(card, dev)) < 0) { dev 893 sound/isa/gus/interwave.c dev++; dev 596 sound/isa/opl3sa2.c sb_port[dev] = pnp_port_start(pdev, 0); dev 597 sound/isa/opl3sa2.c wss_port[dev] = pnp_port_start(pdev, 1); dev 598 sound/isa/opl3sa2.c fm_port[dev] = pnp_port_start(pdev, 2); dev 599 sound/isa/opl3sa2.c midi_port[dev] = pnp_port_start(pdev, 3); dev 600 sound/isa/opl3sa2.c port[dev] = pnp_port_start(pdev, 4); dev 601 sound/isa/opl3sa2.c dma1[dev] = pnp_dma(pdev, 0); dev 602 sound/isa/opl3sa2.c dma2[dev] = pnp_dma(pdev, 1); dev 603 sound/isa/opl3sa2.c irq[dev] = pnp_irq(pdev, 0); dev 605 sound/isa/opl3sa2.c pnp_device_is_pnpbios(pdev) ? "BIOS" : "ISA", sb_port[dev], wss_port[dev], fm_port[dev], midi_port[dev]); dev 607 sound/isa/opl3sa2.c pnp_device_is_pnpbios(pdev) ? "BIOS" : "ISA", port[dev], dma1[dev], dma2[dev], irq[dev]); dev 625 sound/isa/opl3sa2.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, sizeof(struct snd_opl3sa2)); dev 647 sound/isa/opl3sa2.c chip->ymode = opl3sa3_ymode[dev] & 0x03 ; dev 648 sound/isa/opl3sa2.c chip->port = port[dev]; dev 649 sound/isa/opl3sa2.c xirq = irq[dev]; dev 650 sound/isa/opl3sa2.c xdma1 = dma1[dev]; dev 651 sound/isa/opl3sa2.c xdma2 = dma2[dev]; dev 665 sound/isa/opl3sa2.c wss_port[dev] + 4, -1, dev 669 sound/isa/opl3sa2.c snd_printd("Oops, WSS not detected at 0x%lx\n", wss_port[dev] + 4); dev 685 sound/isa/opl3sa2.c if (fm_port[dev] >= 0x340 && fm_port[dev] < 0x400) { dev 686 sound/isa/opl3sa2.c if ((err = snd_opl3_create(card, fm_port[dev], dev 687 sound/isa/opl3sa2.c fm_port[dev] + 2, dev 695 sound/isa/opl3sa2.c if (midi_port[dev] >= 0x300 && midi_port[dev] < 0x340) { dev 697 sound/isa/opl3sa2.c midi_port[dev], 0, dev 713 sound/isa/opl3sa2.c static int dev; dev 719 sound/isa/opl3sa2.c for (; dev < SNDRV_CARDS; dev++) { dev 720 sound/isa/opl3sa2.c if (enable[dev] && isapnp[dev]) dev 723 sound/isa/opl3sa2.c if (dev >= SNDRV_CARDS) dev 726 sound/isa/opl3sa2.c card = snd_opl3sa2_card_new(dev); dev 729 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_pnp(dev, card->private_data, pdev)) < 0) { dev 733 sound/isa/opl3sa2.c snd_card_set_dev(card, &pdev->dev); dev 734 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_probe(card, dev)) < 0) { dev 739 sound/isa/opl3sa2.c dev++; dev 774 sound/isa/opl3sa2.c static int dev; dev 785 sound/isa/opl3sa2.c for (; dev < SNDRV_CARDS; dev++) { dev 786 sound/isa/opl3sa2.c if (enable[dev] && isapnp[dev]) dev 789 sound/isa/opl3sa2.c if (dev >= SNDRV_CARDS) dev 792 sound/isa/opl3sa2.c card = snd_opl3sa2_card_new(dev); dev 795 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_pnp(dev, card->private_data, pdev)) < 0) { dev 799 sound/isa/opl3sa2.c snd_card_set_dev(card, &pdev->dev); dev 800 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_probe(card, dev)) < 0) { dev 805 sound/isa/opl3sa2.c dev++; dev 842 sound/isa/opl3sa2.c if (!enable[dev]) dev 845 sound/isa/opl3sa2.c if (isapnp[dev]) dev 848 sound/isa/opl3sa2.c if (port[dev] == SNDRV_AUTO_PORT) { dev 852 sound/isa/opl3sa2.c if (wss_port[dev] == SNDRV_AUTO_PORT) { dev 856 sound/isa/opl3sa2.c if (fm_port[dev] == SNDRV_AUTO_PORT) { dev 860 sound/isa/opl3sa2.c if (midi_port[dev] == SNDRV_AUTO_PORT) { dev 873 sound/isa/opl3sa2.c card = snd_opl3sa2_card_new(dev); dev 877 sound/isa/opl3sa2.c if ((err = snd_opl3sa2_probe(card, dev)) < 0) { dev 897 sound/isa/opl3sa2.c return snd_opl3sa2_suspend(dev_get_drvdata(dev), state); dev 902 sound/isa/opl3sa2.c return snd_opl3sa2_resume(dev_get_drvdata(dev)); dev 155 sound/isa/opti9xx/opti92x-ad1848.c struct pnp_dev *dev; dev 636 sound/isa/opti9xx/opti92x-ad1848.c chip->dev = pnp_request_card_device(card, pid->devs[0].id, NULL); dev 637 sound/isa/opti9xx/opti92x-ad1848.c if (chip->dev == NULL) dev 642 sound/isa/opti9xx/opti92x-ad1848.c pdev = chip->dev; dev 980 sound/isa/opti9xx/opti92x-ad1848.c snd_card_set_dev(card, &pcard->card->dev); dev 41 sound/isa/sb/emu8000_synth.c hw = *(struct snd_emu8000**)SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 75 sound/isa/sb/emu8000_synth.c if (snd_emux_register(emu, dev->card, hw->index, "Emu8000") < 0) { dev 84 sound/isa/sb/emu8000_synth.c snd_emu8000_pcm_new(dev->card, hw, 1); dev 86 sound/isa/sb/emu8000_synth.c dev->driver_data = hw; dev 99 sound/isa/sb/emu8000_synth.c if (dev->driver_data == NULL) dev 102 sound/isa/sb/emu8000_synth.c hw = dev->driver_data; dev 104 sound/isa/sb/emu8000_synth.c snd_device_free(dev->card, hw->pcm); dev 53 sound/isa/sb/es968.c struct pnp_dev *dev; dev 84 sound/isa/sb/es968.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); dev 85 sound/isa/sb/es968.c if (acard->dev == NULL) dev 88 sound/isa/sb/es968.c pdev = acard->dev; dev 95 sound/isa/sb/es968.c port[dev] = pnp_port_start(pdev, 0); dev 96 sound/isa/sb/es968.c dma8[dev] = pnp_dma(pdev, 1); dev 97 sound/isa/sb/es968.c irq[dev] = pnp_irq(pdev, 0); dev 111 sound/isa/sb/es968.c if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 115 sound/isa/sb/es968.c if ((error = snd_card_es968_pnp(dev, acard, pcard, pid))) { dev 119 sound/isa/sb/es968.c snd_card_set_dev(card, &pcard->card->dev); dev 121 sound/isa/sb/es968.c if ((error = snd_sbdsp_create(card, port[dev], dev 122 sound/isa/sb/es968.c irq[dev], dev 124 sound/isa/sb/es968.c dma8[dev], dev 150 sound/isa/sb/es968.c card->shortname, chip->name, chip->port, irq[dev], dma8[dev]); dev 165 sound/isa/sb/es968.c static int dev; dev 168 sound/isa/sb/es968.c for ( ; dev < SNDRV_CARDS; dev++) { dev 169 sound/isa/sb/es968.c if (!enable[dev]) dev 171 sound/isa/sb/es968.c res = snd_card_es968_probe(dev, card, id); dev 174 sound/isa/sb/es968.c dev++; dev 140 sound/isa/sb/sb16.c struct pnp_dev *dev; dev 261 sound/isa/sb/sb16.c acard->dev = pnp_request_card_device(card, id->devs[0].id, NULL); dev 262 sound/isa/sb/sb16.c if (acard->dev == NULL) dev 266 sound/isa/sb/sb16.c acard->devwt = pnp_request_card_device(card, id->devs[1].id, acard->dev); dev 269 sound/isa/sb/sb16.c pdev = acard->dev; dev 276 sound/isa/sb/sb16.c port[dev] = pnp_port_start(pdev, 0); dev 277 sound/isa/sb/sb16.c mpu_port[dev] = pnp_port_start(pdev, 1); dev 278 sound/isa/sb/sb16.c fm_port[dev] = pnp_port_start(pdev, 2); dev 279 sound/isa/sb/sb16.c dma8[dev] = pnp_dma(pdev, 0); dev 280 sound/isa/sb/sb16.c dma16[dev] = pnp_dma(pdev, 1); dev 281 sound/isa/sb/sb16.c irq[dev] = pnp_irq(pdev, 0); dev 283 sound/isa/sb/sb16.c port[dev], mpu_port[dev], fm_port[dev]); dev 285 sound/isa/sb/sb16.c dma8[dev], dma16[dev], irq[dev]); dev 294 sound/isa/sb/sb16.c awe_port[dev] = pnp_port_start(pdev, 0); dev 304 sound/isa/sb/sb16.c awe_port[dev] = -1; dev 322 sound/isa/sb/sb16.c #define is_isapnp_selected(dev) isapnp[dev] dev 329 sound/isa/sb/sb16.c struct snd_card *card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 350 sound/isa/sb/sb16.c xirq = irq[dev]; dev 351 sound/isa/sb/sb16.c xdma8 = dma8[dev]; dev 352 sound/isa/sb/sb16.c xdma16 = dma16[dev]; dev 355 sound/isa/sb/sb16.c port[dev], dev 366 sound/isa/sb/sb16.c snd_printk(KERN_ERR PFX "SB 16 chip was not detected at 0x%lx\n", port[dev]); dev 369 sound/isa/sb/sb16.c chip->mpu_port = mpu_port[dev]; dev 370 sound/isa/sb/sb16.c if (! is_isapnp_selected(dev) && (err = snd_sb16dsp_configure(chip)) < 0) dev 378 sound/isa/sb/sb16.c awe_port[dev] > 0 ? "SB AWE" : dev 401 sound/isa/sb/sb16.c if (awe_port[dev] == SNDRV_AUTO_PORT) dev 402 sound/isa/sb/sb16.c awe_port[dev] = 0; /* disable */ dev 405 sound/isa/sb/sb16.c if (fm_port[dev] > 0 && fm_port[dev] != SNDRV_AUTO_PORT) { dev 406 sound/isa/sb/sb16.c if (snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2, dev 408 sound/isa/sb/sb16.c acard->fm_res != NULL || fm_port[dev] == port[dev], dev 411 sound/isa/sb/sb16.c fm_port[dev], fm_port[dev] + 2); dev 414 sound/isa/sb/sb16.c int seqdev = awe_port[dev] > 0 ? 2 : 1; dev 428 sound/isa/sb/sb16.c if ((chip->hardware == SB_HW_16) && csp[dev]) { dev 434 sound/isa/sb/sb16.c snd_printk(KERN_INFO PFX "warning - CSP chip not detected on soundcard #%i\n", dev + 1); dev 439 sound/isa/sb/sb16.c if (awe_port[dev] > 0) { dev 440 sound/isa/sb/sb16.c if ((err = snd_emu8000_new(card, 1, awe_port[dev], dev 441 sound/isa/sb/sb16.c seq_ports[dev], NULL)) < 0) { dev 442 sound/isa/sb/sb16.c snd_printk(KERN_ERR PFX "fatal error - EMU-8000 synthesizer not detected at 0x%lx\n", awe_port[dev]); dev 453 sound/isa/sb/sb16.c (mic_agc[dev] ? 0x00 : 0x01)); dev 492 sound/isa/sb/sb16.c card = snd_sb16_card_new(dev); dev 498 sound/isa/sb/sb16.c fm_port[dev] = port[dev]; dev 503 sound/isa/sb/sb16.c awe_port[dev] = port[dev] + 0x400; dev 507 sound/isa/sb/sb16.c if ((err = snd_sb16_probe(card, dev)) < 0) { dev 518 sound/isa/sb/sb16.c return enable[dev] && !is_isapnp_selected(dev); dev 528 sound/isa/sb/sb16.c if (irq[dev] == SNDRV_AUTO_IRQ) { dev 529 sound/isa/sb/sb16.c if ((irq[dev] = snd_legacy_find_free_irq(possible_irqs)) < 0) { dev 534 sound/isa/sb/sb16.c if (dma8[dev] == SNDRV_AUTO_DMA) { dev 535 sound/isa/sb/sb16.c if ((dma8[dev] = snd_legacy_find_free_dma(possible_dmas8)) < 0) { dev 540 sound/isa/sb/sb16.c if (dma16[dev] == SNDRV_AUTO_DMA) { dev 541 sound/isa/sb/sb16.c if ((dma16[dev] = snd_legacy_find_free_dma(possible_dmas16)) < 0) { dev 547 sound/isa/sb/sb16.c if (port[dev] != SNDRV_AUTO_PORT) dev 548 sound/isa/sb/sb16.c return snd_sb16_isa_probe1(dev, pdev); dev 553 sound/isa/sb/sb16.c port[dev] = possible_ports[i]; dev 554 sound/isa/sb/sb16.c err = snd_sb16_isa_probe1(dev, pdev); dev 573 sound/isa/sb/sb16.c return snd_sb16_suspend(dev_get_drvdata(dev), state); dev 578 sound/isa/sb/sb16.c return snd_sb16_resume(dev_get_drvdata(dev)); dev 606 sound/isa/sb/sb16.c static int dev; dev 610 sound/isa/sb/sb16.c for ( ; dev < SNDRV_CARDS; dev++) { dev 611 sound/isa/sb/sb16.c if (!enable[dev] || !isapnp[dev]) dev 613 sound/isa/sb/sb16.c card = snd_sb16_card_new(dev); dev 616 sound/isa/sb/sb16.c snd_card_set_dev(card, &pcard->card->dev); dev 617 sound/isa/sb/sb16.c if ((res = snd_card_sb16_pnp(dev, card->private_data, pcard, pid)) < 0 || dev 618 sound/isa/sb/sb16.c (res = snd_sb16_probe(card, dev)) < 0) { dev 623 sound/isa/sb/sb16.c dev++; dev 714 sound/isa/sb/sb16_csp.c p->chip->card->dev); dev 85 sound/isa/sb/sb8.c if (!enable[dev]) dev 87 sound/isa/sb/sb8.c if (irq[dev] == SNDRV_AUTO_IRQ) { dev 91 sound/isa/sb/sb8.c if (dma8[dev] == SNDRV_AUTO_DMA) { dev 106 sound/isa/sb/sb8.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 116 sound/isa/sb/sb8.c if (port[dev] != SNDRV_AUTO_PORT) { dev 117 sound/isa/sb/sb8.c if ((err = snd_sbdsp_create(card, port[dev], irq[dev], dev 119 sound/isa/sb/sb8.c dma8[dev], dev 132 sound/isa/sb/sb8.c irq[dev], dev 134 sound/isa/sb/sb8.c dma8[dev], dev 139 sound/isa/sb/sb8.c port[dev] = possible_ports[i]; dev 151 sound/isa/sb/sb8.c port[dev]); dev 154 sound/isa/sb/sb8.c port[dev]); dev 192 sound/isa/sb/sb8.c irq[dev], dma8[dev]); dev 218 sound/isa/sb/sb8.c struct snd_card *card = dev_get_drvdata(dev); dev 230 sound/isa/sb/sb8.c struct snd_card *card = dev_get_drvdata(dev); dev 437 sound/isa/sc6000.c if (!enable[dev]) dev 439 sound/isa/sc6000.c if (port[dev] == SNDRV_AUTO_PORT) { dev 443 sound/isa/sc6000.c if (mss_port[dev] == SNDRV_AUTO_PORT) { dev 447 sound/isa/sc6000.c if (port[dev] != 0x220 && port[dev] != 0x240) { dev 451 sound/isa/sc6000.c if (mss_port[dev] != 0x530 && mss_port[dev] != 0xe80) { dev 455 sound/isa/sc6000.c if (irq[dev] != SNDRV_AUTO_IRQ && !sc6000_irq_to_softcfg(irq[dev])) { dev 456 sound/isa/sc6000.c printk(KERN_ERR PFX "invalid IRQ %d\n", irq[dev]); dev 459 sound/isa/sc6000.c if (dma[dev] != SNDRV_AUTO_DMA && !sc6000_dma_to_softcfg(dma[dev])) { dev 460 sound/isa/sc6000.c printk(KERN_ERR PFX "invalid DMA %d\n", dma[dev]); dev 463 sound/isa/sc6000.c if (mpu_port[dev] != SNDRV_AUTO_PORT && dev 464 sound/isa/sc6000.c (mpu_port[dev] & ~0x30L) != 0x300) { dev 466 sound/isa/sc6000.c mpu_port[dev]); dev 469 sound/isa/sc6000.c if (mpu_port[dev] != SNDRV_AUTO_PORT && dev 470 sound/isa/sc6000.c mpu_irq[dev] != SNDRV_AUTO_IRQ && mpu_irq[dev] != 0 && dev 471 sound/isa/sc6000.c !sc6000_mpu_irq_to_softcfg(mpu_irq[dev])) { dev 472 sound/isa/sc6000.c printk(KERN_ERR PFX "invalid MPU-401 IRQ %d\n", mpu_irq[dev]); dev 483 sound/isa/sc6000.c int xirq = irq[dev]; dev 484 sound/isa/sc6000.c int xdma = dma[dev]; dev 492 sound/isa/sc6000.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 514 sound/isa/sc6000.c if (!request_region(port[dev], 0x10, DRV_NAME)) { dev 520 sound/isa/sc6000.c vport = devm_ioport_map(devptr, port[dev], 0x10); dev 529 sound/isa/sc6000.c if (!request_region(mss_port[dev], 4, DRV_NAME)) { dev 535 sound/isa/sc6000.c vmss_port = devm_ioport_map(devptr, mss_port[dev], 4); dev 544 sound/isa/sc6000.c port[dev], xirq, xdma, dev 545 sound/isa/sc6000.c mpu_irq[dev] == SNDRV_AUTO_IRQ ? 0 : mpu_irq[dev]); dev 547 sound/isa/sc6000.c err = sc6000_init_board(vport, xirq, xdma, vmss_port, mpu_irq[dev]); dev 551 sound/isa/sc6000.c err = snd_wss_create(card, mss_port[dev] + 4, -1, xirq, xdma, -1, dev 588 sound/isa/sc6000.c if (mpu_port[dev] != SNDRV_AUTO_PORT) { dev 589 sound/isa/sc6000.c if (mpu_irq[dev] == SNDRV_AUTO_IRQ) dev 590 sound/isa/sc6000.c mpu_irq[dev] = -1; dev 593 sound/isa/sc6000.c mpu_port[dev], 0, dev 594 sound/isa/sc6000.c mpu_irq[dev], IRQF_DISABLED, dev 597 sound/isa/sc6000.c mpu_port[dev]); dev 603 sound/isa/sc6000.c mss_port[dev], xirq, xdma); dev 615 sound/isa/sc6000.c release_region(mss_port[dev], 4); dev 617 sound/isa/sc6000.c release_region(port[dev], 0x10); dev 625 sound/isa/sc6000.c release_region(port[dev], 0x10); dev 626 sound/isa/sc6000.c release_region(mss_port[dev], 4); dev 169 sound/isa/sgalaxy.c snd_sgalaxy_sbdsp_reset(sbport[dev]); dev 171 sound/isa/sgalaxy.c snd_sgalaxy_sbdsp_command(sbport[dev], 9); dev 172 sound/isa/sgalaxy.c snd_sgalaxy_sbdsp_command(sbport[dev], 0); dev 175 sound/isa/sgalaxy.c return snd_sgalaxy_setup_wss(wssport[dev], irq, dma); dev 225 sound/isa/sgalaxy.c if (!enable[dev]) dev 227 sound/isa/sgalaxy.c if (sbport[dev] == SNDRV_AUTO_PORT) { dev 231 sound/isa/sgalaxy.c if (wssport[dev] == SNDRV_AUTO_PORT) { dev 246 sound/isa/sgalaxy.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 250 sound/isa/sgalaxy.c xirq = irq[dev]; dev 258 sound/isa/sgalaxy.c xdma1 = dma1[dev]; dev 267 sound/isa/sgalaxy.c if ((err = snd_sgalaxy_detect(dev, xirq, xdma1)) < 0) dev 270 sound/isa/sgalaxy.c err = snd_wss_create(card, wssport[dev] + 4, -1, dev 295 sound/isa/sgalaxy.c wssport[dev], xirq, xdma1); dev 1169 sound/isa/sscape.c irq_cfg = get_irq_config(irq[dev]); dev 1171 sound/isa/sscape.c snd_printk(KERN_ERR "sscape: Invalid IRQ %d\n", irq[dev]); dev 1175 sound/isa/sscape.c mpu_irq_cfg = get_irq_config(mpu_irq[dev]); dev 1177 sound/isa/sscape.c printk(KERN_ERR "sscape: Invalid IRQ %d\n", mpu_irq[dev]); dev 1180 sound/isa/sscape.c xport = port[dev]; dev 1193 sound/isa/sscape.c wss_res = request_region(wss_port[dev], 4, "SoundScape"); dev 1196 sound/isa/sscape.c wss_port[dev]); dev 1205 sound/isa/sscape.c err = request_dma(dma[dev], "SoundScape"); dev 1207 sound/isa/sscape.c snd_printk(KERN_ERR "sscape: can't grab DMA %d\n", dma[dev]); dev 1216 sound/isa/sscape.c sscape->wss_base = wss_port[dev]; dev 1225 sound/isa/sscape.c sscape->io_base, irq[dev], dma[dev]); dev 1274 sound/isa/sscape.c | (dma[dev] << 4) | (irq_cfg << 1)); dev 1282 sound/isa/sscape.c err = create_ad1845(card, wss_port[dev], irq[dev], dev 1283 sound/isa/sscape.c dma[dev], dma2[dev]); dev 1286 sound/isa/sscape.c wss_port[dev], irq[dev]); dev 1292 sound/isa/sscape.c MPU401_IO(xport), mpu_irq[dev]); dev 1325 sound/isa/sscape.c free_dma(dma[dev]); dev 1360 sound/isa/sscape.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 1368 sound/isa/sscape.c dma[dev] &= 0x03; dev 1369 sound/isa/sscape.c ret = create_sscape(dev, card); dev 1418 sound/isa/sscape.c struct pnp_dev *dev; dev 1450 sound/isa/sscape.c dev = pnp_request_card_device(pcard, pid->devs[0].id, NULL); dev 1451 sound/isa/sscape.c if (! dev) dev 1454 sound/isa/sscape.c if (!pnp_is_active(dev)) { dev 1455 sound/isa/sscape.c if (pnp_activate_dev(dev) < 0) { dev 1483 sound/isa/sscape.c port[idx] = pnp_port_start(dev, 0); dev 1484 sound/isa/sscape.c irq[idx] = pnp_irq(dev, 0); dev 1485 sound/isa/sscape.c mpu_irq[idx] = pnp_irq(dev, 1); dev 1486 sound/isa/sscape.c dma[idx] = pnp_dma(dev, 0) & 0x03; dev 1491 sound/isa/sscape.c wss_port[idx] = pnp_port_start(dev, 1); dev 1492 sound/isa/sscape.c dma2[idx] = pnp_dma(dev, 1); dev 1499 sound/isa/sscape.c snd_card_set_dev(card, &pcard->card->dev); dev 128 sound/isa/wavefront/wavefront.c if (use_cs4232_midi[dev]) { dev 162 sound/isa/wavefront/wavefront.c cs4232_pcm_port[dev] = pnp_port_start(pdev, 0); dev 163 sound/isa/wavefront/wavefront.c fm_port[dev] = pnp_port_start(pdev, 1); dev 164 sound/isa/wavefront/wavefront.c dma1[dev] = pnp_dma(pdev, 0); dev 165 sound/isa/wavefront/wavefront.c dma2[dev] = pnp_dma(pdev, 1); dev 166 sound/isa/wavefront/wavefront.c cs4232_pcm_irq[dev] = pnp_irq(pdev, 0); dev 178 sound/isa/wavefront/wavefront.c ics2115_port[dev] = pnp_port_start(pdev, 0); dev 179 sound/isa/wavefront/wavefront.c ics2115_irq[dev] = pnp_irq(pdev, 0); dev 186 sound/isa/wavefront/wavefront.c if (use_cs4232_midi[dev]) { dev 193 sound/isa/wavefront/wavefront.c cs4232_mpu_port[dev] = SNDRV_AUTO_PORT; dev 195 sound/isa/wavefront/wavefront.c cs4232_mpu_port[dev] = pnp_port_start(pdev, 0); dev 196 sound/isa/wavefront/wavefront.c cs4232_mpu_irq[dev] = pnp_irq(pdev, 0); dev 200 sound/isa/wavefront/wavefront.c cs4232_mpu_port[dev], dev 201 sound/isa/wavefront/wavefront.c cs4232_mpu_irq[dev]); dev 205 sound/isa/wavefront/wavefront.c cs4232_pcm_port[dev], dev 206 sound/isa/wavefront/wavefront.c fm_port[dev], dev 207 sound/isa/wavefront/wavefront.c dma1[dev], dev 208 sound/isa/wavefront/wavefront.c dma2[dev], dev 209 sound/isa/wavefront/wavefront.c cs4232_pcm_irq[dev], dev 210 sound/isa/wavefront/wavefront.c ics2115_port[dev], dev 211 sound/isa/wavefront/wavefront.c ics2115_irq[dev]); dev 346 sound/isa/wavefront/wavefront.c card = snd_card_new (index[dev], id[dev], THIS_MODULE, dev 376 sound/isa/wavefront/wavefront.c err = snd_wss_create(card, cs4232_pcm_port[dev], -1, dev 377 sound/isa/wavefront/wavefront.c cs4232_pcm_irq[dev], dma1[dev], dma2[dev], dev 394 sound/isa/wavefront/wavefront.c if (fm_port[dev] > 0 && fm_port[dev] != SNDRV_AUTO_PORT) { dev 397 sound/isa/wavefront/wavefront.c err = snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2, dev 412 sound/isa/wavefront/wavefront.c acard->wavefront.res_base = request_region(ics2115_port[dev], 16, dev 416 sound/isa/wavefront/wavefront.c ics2115_port[dev], ics2115_port[dev] + 16 - 1); dev 419 sound/isa/wavefront/wavefront.c if (request_irq(ics2115_irq[dev], snd_wavefront_ics2115_interrupt, dev 421 sound/isa/wavefront/wavefront.c snd_printk(KERN_ERR "unable to use ICS2115 IRQ %d\n", ics2115_irq[dev]); dev 425 sound/isa/wavefront/wavefront.c acard->wavefront.irq = ics2115_irq[dev]; dev 426 sound/isa/wavefront/wavefront.c acard->wavefront.base = ics2115_port[dev]; dev 448 sound/isa/wavefront/wavefront.c if (cs4232_mpu_port[dev] > 0 && cs4232_mpu_port[dev] != SNDRV_AUTO_PORT) { dev 450 sound/isa/wavefront/wavefront.c cs4232_mpu_port[dev], 0, dev 451 sound/isa/wavefront/wavefront.c cs4232_mpu_irq[dev], IRQF_DISABLED, dev 462 sound/isa/wavefront/wavefront.c if (ics2115_port[dev] > 0 && ics2115_port[dev] != SNDRV_AUTO_PORT) { dev 467 sound/isa/wavefront/wavefront.c ics2115_port[dev], dev 478 sound/isa/wavefront/wavefront.c if (ics2115_port[dev] > 0 && ics2115_port[dev] != SNDRV_AUTO_PORT) { dev 483 sound/isa/wavefront/wavefront.c ics2115_port[dev], dev 498 sound/isa/wavefront/wavefront.c ics2115_port[dev]); dev 523 sound/isa/wavefront/wavefront.c cs4232_pcm_irq[dev], dev 524 sound/isa/wavefront/wavefront.c dma1[dev]); dev 526 sound/isa/wavefront/wavefront.c if (dma2[dev] >= 0 && dma2[dev] < 8) dev 527 sound/isa/wavefront/wavefront.c sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); dev 529 sound/isa/wavefront/wavefront.c if (cs4232_mpu_port[dev] > 0 && cs4232_mpu_port[dev] != SNDRV_AUTO_PORT) { dev 532 sound/isa/wavefront/wavefront.c cs4232_mpu_port[dev], dev 533 sound/isa/wavefront/wavefront.c cs4232_mpu_irq[dev]); dev 538 sound/isa/wavefront/wavefront.c ics2115_port[dev], dev 539 sound/isa/wavefront/wavefront.c ics2115_irq[dev]); dev 547 sound/isa/wavefront/wavefront.c if (!enable[dev]) dev 550 sound/isa/wavefront/wavefront.c if (isapnp[dev]) dev 553 sound/isa/wavefront/wavefront.c if (cs4232_pcm_port[dev] == SNDRV_AUTO_PORT) { dev 557 sound/isa/wavefront/wavefront.c if (ics2115_port[dev] == SNDRV_AUTO_PORT) { dev 570 sound/isa/wavefront/wavefront.c card = snd_wavefront_card_new(dev); dev 574 sound/isa/wavefront/wavefront.c if ((err = snd_wavefront_probe(card, dev)) < 0) { dev 608 sound/isa/wavefront/wavefront.c static int dev; dev 612 sound/isa/wavefront/wavefront.c for ( ; dev < SNDRV_CARDS; dev++) { dev 613 sound/isa/wavefront/wavefront.c if (enable[dev] && isapnp[dev]) dev 616 sound/isa/wavefront/wavefront.c if (dev >= SNDRV_CARDS) dev 619 sound/isa/wavefront/wavefront.c card = snd_wavefront_card_new(dev); dev 623 sound/isa/wavefront/wavefront.c if (snd_wavefront_pnp (dev, card->private_data, pcard, pid) < 0) { dev 624 sound/isa/wavefront/wavefront.c if (cs4232_pcm_port[dev] == SNDRV_AUTO_PORT) { dev 630 sound/isa/wavefront/wavefront.c snd_card_set_dev(card, &pcard->card->dev); dev 632 sound/isa/wavefront/wavefront.c if ((res = snd_wavefront_probe(card, dev)) < 0) dev 636 sound/isa/wavefront/wavefront.c dev++; dev 53 sound/isa/wavefront/wavefront_fx.c x = inb (dev->fx_status); dev 71 sound/isa/wavefront/wavefront_fx.c if (!wavefront_fx_idle(dev)) { dev 75 sound/isa/wavefront/wavefront_fx.c outb (onoff ? 0x02 : 0x00, dev->fx_op); dev 99 sound/isa/wavefront/wavefront_fx.c outb (FX_LSB_TRANSFER, dev->fx_lcr); dev 100 sound/isa/wavefront/wavefront_fx.c outb (page, dev->fx_dsp_page); dev 101 sound/isa/wavefront/wavefront_fx.c outb (addr, dev->fx_dsp_addr); dev 102 sound/isa/wavefront/wavefront_fx.c outb ((data[0] >> 8), dev->fx_dsp_msb); dev 103 sound/isa/wavefront/wavefront_fx.c outb ((data[0] & 0xff), dev->fx_dsp_lsb); dev 111 sound/isa/wavefront/wavefront_fx.c outb (FX_AUTO_INCR|FX_LSB_TRANSFER, dev->fx_lcr); dev 112 sound/isa/wavefront/wavefront_fx.c outb (page, dev->fx_dsp_page); dev 113 sound/isa/wavefront/wavefront_fx.c outb (addr, dev->fx_dsp_addr); dev 116 sound/isa/wavefront/wavefront_fx.c outb ((data[i] >> 8), dev->fx_dsp_msb); dev 117 sound/isa/wavefront/wavefront_fx.c outb ((data[i] & 0xff), dev->fx_dsp_lsb); dev 118 sound/isa/wavefront/wavefront_fx.c if (!wavefront_fx_idle (dev)) { dev 144 sound/isa/wavefront/wavefront_fx.c if (inb (dev->fx_status) & 0x80) { dev 177 sound/isa/wavefront/wavefront_fx.c snd_wavefront_t *dev; dev 190 sound/isa/wavefront/wavefront_fx.c dev = &acard->wavefront; dev 197 sound/isa/wavefront/wavefront_fx.c wavefront_fx_mute (dev, r.data[0]); dev 225 sound/isa/wavefront/wavefront_fx.c err = wavefront_fx_memset (dev, dev 260 sound/isa/wavefront/wavefront_fx.c if (dev->fx_initialized) dev 267 sound/isa/wavefront/wavefront_fx.c dev->card->dev); dev 277 sound/isa/wavefront/wavefront_fx.c dev->base + firmware->data[i]); dev 279 sound/isa/wavefront/wavefront_fx.c if (!wavefront_fx_idle(dev)) { dev 291 sound/isa/wavefront/wavefront_fx.c dev->fx_initialized = 1; dev 490 sound/isa/wavefront/wavefront_midi.c snd_wavefront_t *dev; dev 493 sound/isa/wavefront/wavefront_midi.c dev = &card->wavefront; dev 494 sound/isa/wavefront/wavefront_midi.c midi = &dev->midi; dev 513 sound/isa/wavefront/wavefront_midi.c dev->interrupts_are_midi = 1; dev 528 sound/isa/wavefront/wavefront_midi.c dev->interrupts_are_midi = 0; dev 534 sound/isa/wavefront/wavefront_midi.c if (snd_wavefront_cmd (dev, WFC_MISYNTH_ON, rbuf, wbuf)) { dev 550 sound/isa/wavefront/wavefront_midi.c if (snd_wavefront_cmd (dev, WFC_VMIDI_OFF, rbuf, wbuf)) { dev 557 sound/isa/wavefront/wavefront_midi.c if (snd_wavefront_cmd (dev, WFC_VMIDI_ON, rbuf, wbuf)) { dev 118 sound/isa/wavefront/wavefront_synth.c if ((dev->debug & (cond)) == (cond)) { \ dev 263 sound/isa/wavefront/wavefront_synth.c return inb (dev->status_port); dev 286 sound/isa/wavefront/wavefront_synth.c if (wavefront_status (dev) & mask) { dev 294 sound/isa/wavefront/wavefront_synth.c if (wavefront_status (dev) & mask) { dev 310 sound/isa/wavefront/wavefront_synth.c if (wavefront_wait (dev, STAT_CAN_READ)) dev 311 sound/isa/wavefront/wavefront_synth.c return inb (dev->data_port); dev 322 sound/isa/wavefront/wavefront_synth.c if (wavefront_wait (dev, STAT_CAN_WRITE)) { dev 323 sound/isa/wavefront/wavefront_synth.c outb (data, dev->data_port); dev 362 sound/isa/wavefront/wavefront_synth.c if (wavefront_write (dev, cmd)) { dev 375 sound/isa/wavefront/wavefront_synth.c if (wavefront_write (dev, wbuf[i])) { dev 394 sound/isa/wavefront/wavefront_synth.c if ((c = wavefront_read (dev)) == -1) { dev 404 sound/isa/wavefront/wavefront_synth.c if ((c = wavefront_read (dev)) == -1) { dev 462 sound/isa/wavefront/wavefront_synth.c if ((ack = wavefront_read (dev)) == 0) { dev 478 sound/isa/wavefront/wavefront_synth.c if ((err = wavefront_read (dev)) == -1) { dev 606 sound/isa/wavefront/wavefront_synth.c if ((x = snd_wavefront_cmd (dev, WFC_DELETE_SAMPLE, NULL, wbuf)) == 0) { dev 607 sound/isa/wavefront/wavefront_synth.c dev->sample_status[sample_num] = WF_ST_EMPTY; dev 623 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { dev 628 sound/isa/wavefront/wavefront_synth.c sc_real = sc_alias = sc_multi = dev->samples_used = 0; dev 635 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_IDENTIFY_SAMPLE_TYPE, rbuf, wbuf)) { dev 638 sound/isa/wavefront/wavefront_synth.c dev->sample_status[i] = WF_ST_EMPTY; dev 642 sound/isa/wavefront/wavefront_synth.c dev->sample_status[i] = (WF_SLOT_FILLED|rbuf[0]); dev 645 sound/isa/wavefront/wavefront_synth.c dev->sample_status[i] |= WF_SLOT_ROM; dev 668 sound/isa/wavefront/wavefront_synth.c dev->samples_used++; dev 673 sound/isa/wavefront/wavefront_synth.c "%d empty\n", dev->samples_used, sc_real, sc_alias, sc_multi, dev 674 sound/isa/wavefront/wavefront_synth.c WF_MAX_SAMPLE - dev->samples_used); dev 694 sound/isa/wavefront/wavefront_synth.c if ((x = snd_wavefront_cmd (dev, WFC_UPLOAD_PATCH, patchbuf, dev 697 sound/isa/wavefront/wavefront_synth.c dev->patch_status[i] |= WF_SLOT_FILLED; dev 699 sound/isa/wavefront/wavefront_synth.c dev->sample_status dev 704 sound/isa/wavefront/wavefront_synth.c dev->patch_status[i] = 0; dev 708 sound/isa/wavefront/wavefront_synth.c dev->patch_status[i] = 0; dev 716 sound/isa/wavefront/wavefront_synth.c if (dev->patch_status[i] & WF_SLOT_FILLED) { dev 719 sound/isa/wavefront/wavefront_synth.c if (dev->patch_status[i] & WF_SLOT_USED) { dev 741 sound/isa/wavefront/wavefront_synth.c if ((x = snd_wavefront_cmd (dev, WFC_UPLOAD_PROGRAM, progbuf, dev 744 sound/isa/wavefront/wavefront_synth.c dev->prog_status[i] |= WF_SLOT_USED; dev 751 sound/isa/wavefront/wavefront_synth.c dev->patch_status dev 757 sound/isa/wavefront/wavefront_synth.c dev->prog_status[i] = 0; dev 761 sound/isa/wavefront/wavefront_synth.c dev->prog_status[i] = 0; dev 766 sound/isa/wavefront/wavefront_synth.c if (dev->prog_status[i]) { dev 786 sound/isa/wavefront/wavefront_synth.c dev->patch_status[header->number] |= WF_SLOT_FILLED; dev 792 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_PATCH, NULL, buf)) { dev 810 sound/isa/wavefront/wavefront_synth.c dev->prog_status[header->number] = WF_SLOT_USED; dev 818 sound/isa/wavefront/wavefront_synth.c dev->patch_status[header->hdr.pr.layer[i].patch_number] |= dev 830 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_PROGRAM, NULL, buf)) { dev 844 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_REPORT_FREE_MEMORY, rbuf, NULL)) { dev 892 sound/isa/wavefront/wavefront_synth.c if ((x = wavefront_find_free_sample (dev)) < 0) { dev 924 sound/isa/wavefront/wavefront_synth.c if (dev->rom_samples_rdonly) { dev 925 sound/isa/wavefront/wavefront_synth.c if (dev->sample_status[header->number] & WF_SLOT_ROM) { dev 933 sound/isa/wavefront/wavefront_synth.c wavefront_delete_sample (dev, header->number); dev 937 sound/isa/wavefront/wavefront_synth.c dev->freemem = wavefront_freemem (dev); dev 939 sound/isa/wavefront/wavefront_synth.c if (dev->freemem < (int)header->size) { dev 1044 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, dev 1073 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_BLOCK, NULL, NULL)) { dev 1122 sound/isa/wavefront/wavefront_synth.c outw (sample_short, dev->block_port); dev 1124 sound/isa/wavefront/wavefront_synth.c outw (sample_short, dev->last_block_port); dev 1132 sound/isa/wavefront/wavefront_synth.c if ((dma_ack = wavefront_read (dev)) != WF_DMA_ACK) { dev 1146 sound/isa/wavefront/wavefront_synth.c dev->sample_status[header->number] = (WF_SLOT_FILLED|WF_ST_SAMPLE); dev 1180 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_SAMPLE_ALIAS, NULL, alias_hdr)) { dev 1185 sound/isa/wavefront/wavefront_synth.c dev->sample_status[header->number] = (WF_SLOT_FILLED|WF_ST_ALIAS); dev 1228 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_MULTISAMPLE, dev 1236 sound/isa/wavefront/wavefront_synth.c dev->sample_status[header->number] = (WF_SLOT_FILLED|WF_ST_MULTISAMPLE); dev 1253 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_UPLOAD_MULTISAMPLE, log_ns, number)) { dev 1271 sound/isa/wavefront/wavefront_synth.c if ((val = wavefront_read (dev)) == -1) { dev 1278 sound/isa/wavefront/wavefront_synth.c if ((val = wavefront_read (dev)) == -1) { dev 1314 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_DOWNLOAD_EDRUM_PROGRAM, NULL, drumbuf)) { dev 1329 sound/isa/wavefront/wavefront_synth.c if (!(dev->sample_status[i] & WF_SLOT_FILLED)) { dev 1345 sound/isa/wavefront/wavefront_synth.c if (!(dev->patch_status[i] & WF_SLOT_FILLED)) { dev 1388 sound/isa/wavefront/wavefront_synth.c err = wavefront_send_sample (dev, header, header->dataptr, 0); dev 1399 sound/isa/wavefront/wavefront_synth.c err = wavefront_send_multisample (dev, header); dev 1410 sound/isa/wavefront/wavefront_synth.c err = wavefront_send_alias (dev, header); dev 1420 sound/isa/wavefront/wavefront_synth.c err = wavefront_send_drum (dev, header); dev 1430 sound/isa/wavefront/wavefront_synth.c err = wavefront_send_patch (dev, header); dev 1440 sound/isa/wavefront/wavefront_synth.c err = wavefront_send_program (dev, header); dev 1496 sound/isa/wavefront/wavefront_synth.c snd_wavefront_t *dev = &acard->wavefront; dev 1509 sound/isa/wavefront/wavefront_synth.c outb (0x80|0x20, dev->control_port); dev 1510 sound/isa/wavefront/wavefront_synth.c dev->interrupts_are_midi = 1; dev 1515 sound/isa/wavefront/wavefront_synth.c outb (0x80|0x40|0x20, dev->control_port); dev 1516 sound/isa/wavefront/wavefront_synth.c dev->interrupts_are_midi = 1; dev 1520 sound/isa/wavefront/wavefront_synth.c wc->rbuf[0] = dev->interrupts_are_midi; dev 1524 sound/isa/wavefront/wavefront_synth.c dev->rom_samples_rdonly = wc->wbuf[0]; dev 1536 sound/isa/wavefront/wavefront_synth.c wc->rbuf[0] = dev->sample_status[i]; dev 1541 sound/isa/wavefront/wavefront_synth.c dev->debug = wc->wbuf[0]; dev 1542 sound/isa/wavefront/wavefront_synth.c snd_printk ("debug = 0x%x\n", dev->debug); dev 1555 sound/isa/wavefront/wavefront_synth.c (dev, (wavefront_patch_info *) wc->rbuf); dev 1565 sound/isa/wavefront/wavefront_synth.c wc->status = snd_wavefront_cmd (dev, wc->cmd, wc->rbuf, wc->wbuf); dev 1581 sound/isa/wavefront/wavefront_synth.c dev->freemem = demunge_int32 (wc->rbuf, 4); dev 1643 sound/isa/wavefront/wavefront_synth.c snd_wavefront_t *dev; dev 1657 sound/isa/wavefront/wavefront_synth.c dev = &acard->wavefront; dev 1661 sound/isa/wavefront/wavefront_synth.c if (wavefront_load_patch (dev, argp) != 0) { dev 1696 sound/isa/wavefront/wavefront_synth.c snd_wavefront_t *dev = &card->wavefront; dev 1718 sound/isa/wavefront/wavefront_synth.c if ((wavefront_status(dev) & (STAT_INTR_READ|STAT_INTR_WRITE)) == 0) { dev 1722 sound/isa/wavefront/wavefront_synth.c spin_lock(&dev->irq_lock); dev 1723 sound/isa/wavefront/wavefront_synth.c dev->irq_ok = 1; dev 1724 sound/isa/wavefront/wavefront_synth.c dev->irq_cnt++; dev 1725 sound/isa/wavefront/wavefront_synth.c spin_unlock(&dev->irq_lock); dev 1726 sound/isa/wavefront/wavefront_synth.c wake_up(&dev->interrupt_sleeper); dev 1777 sound/isa/wavefront/wavefront_synth.c spin_lock_irq(&dev->irq_lock); dev 1778 sound/isa/wavefront/wavefront_synth.c add_wait_queue(&dev->interrupt_sleeper, &wait); dev 1779 sound/isa/wavefront/wavefront_synth.c dev->irq_ok = 0; dev 1781 sound/isa/wavefront/wavefront_synth.c spin_unlock_irq(&dev->irq_lock); dev 1782 sound/isa/wavefront/wavefront_synth.c while (!dev->irq_ok && time_before(jiffies, timeout)) { dev 1797 sound/isa/wavefront/wavefront_synth.c bits = snd_wavefront_interrupt_bits (dev->irq); dev 1801 sound/isa/wavefront/wavefront_synth.c outb (0x0, dev->control_port); dev 1839 sound/isa/wavefront/wavefront_synth.c outb (0x80 | 0x40 | bits, dev->data_port); dev 1858 sound/isa/wavefront/wavefront_synth.c wavefront_should_cause_interrupt(dev, 0x80|0x40|0x10|0x1, dev 1859 sound/isa/wavefront/wavefront_synth.c dev->control_port, dev 1866 sound/isa/wavefront/wavefront_synth.c if (!dev->irq_ok) { dev 1887 sound/isa/wavefront/wavefront_synth.c wavefront_should_cause_interrupt(dev, WFC_HARDWARE_VERSION, dev 1888 sound/isa/wavefront/wavefront_synth.c dev->data_port, ramcheck_time*HZ); dev 1890 sound/isa/wavefront/wavefront_synth.c if (!dev->irq_ok) { dev 1895 sound/isa/wavefront/wavefront_synth.c if (!wavefront_wait (dev, STAT_CAN_READ)) { dev 1900 sound/isa/wavefront/wavefront_synth.c if ((hwv[0] = wavefront_read (dev)) == -1) { dev 1911 sound/isa/wavefront/wavefront_synth.c if ((hwv[0] = wavefront_read (dev)) == -1) { dev 1924 sound/isa/wavefront/wavefront_synth.c if ((hwv[1] = wavefront_read (dev)) == -1) { dev 1948 sound/isa/wavefront/wavefront_synth.c err = request_firmware(&firmware, path, dev->card->dev); dev 1975 sound/isa/wavefront/wavefront_synth.c if (wavefront_write(dev, WFC_DOWNLOAD_OS)) dev 1979 sound/isa/wavefront/wavefront_synth.c if (wavefront_write(dev, *buf)) dev 1986 sound/isa/wavefront/wavefront_synth.c if (!wavefront_wait(dev, STAT_CAN_READ)) { dev 1990 sound/isa/wavefront/wavefront_synth.c err = inb(dev->data_port); dev 2018 sound/isa/wavefront/wavefront_synth.c if (wavefront_reset_to_cleanliness (dev)) { dev 2023 sound/isa/wavefront/wavefront_synth.c if (dev->israw) { dev 2024 sound/isa/wavefront/wavefront_synth.c if (wavefront_download_firmware (dev, ospath)) { dev 2028 sound/isa/wavefront/wavefront_synth.c dev->israw = 0; dev 2038 sound/isa/wavefront/wavefront_synth.c wavefront_should_cause_interrupt (dev, WFC_NOOP, dev 2039 sound/isa/wavefront/wavefront_synth.c dev->data_port, dev 2042 sound/isa/wavefront/wavefront_synth.c if (!dev->irq_ok) { dev 2049 sound/isa/wavefront/wavefront_synth.c wavefront_should_cause_interrupt (dev, WFC_NOOP, dev 2050 sound/isa/wavefront/wavefront_synth.c dev->data_port, (10*HZ)); dev 2052 sound/isa/wavefront/wavefront_synth.c if (!dev->irq_ok) { dev 2061 sound/isa/wavefront/wavefront_synth.c outb (0x80|0x40, dev->control_port); dev 2069 sound/isa/wavefront/wavefront_synth.c if ((dev->freemem = wavefront_freemem (dev)) < 0) { dev 2073 sound/isa/wavefront/wavefront_synth.c snd_printk ("available DRAM %dk\n", dev->freemem / 1024); dev 2075 sound/isa/wavefront/wavefront_synth.c if (wavefront_write (dev, 0xf0) || dev 2076 sound/isa/wavefront/wavefront_synth.c wavefront_write (dev, 1) || dev 2077 sound/isa/wavefront/wavefront_synth.c (wavefront_read (dev) < 0)) { dev 2078 sound/isa/wavefront/wavefront_synth.c dev->debug = 0; dev 2085 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_SET_NVOICES, NULL, voices)) { dev 2096 sound/isa/wavefront/wavefront_synth.c outb (0x0, dev->control_port); dev 2097 sound/isa/wavefront/wavefront_synth.c dev->interrupts_are_midi = 0; dev 2111 sound/isa/wavefront/wavefront_synth.c if (dev->israw) { dev 2118 sound/isa/wavefront/wavefront_synth.c if (dev->israw || fx_raw) { dev 2119 sound/isa/wavefront/wavefront_synth.c if (wavefront_do_reset (dev)) { dev 2125 sound/isa/wavefront/wavefront_synth.c dev->has_fx = (snd_wavefront_fx_detect (dev) == 0); dev 2127 sound/isa/wavefront/wavefront_synth.c if (dev->has_fx && fx_raw) { dev 2128 sound/isa/wavefront/wavefront_synth.c snd_wavefront_fx_start (dev); dev 2131 sound/isa/wavefront/wavefront_synth.c wavefront_get_sample_status (dev, samples_are_from_rom); dev 2132 sound/isa/wavefront/wavefront_synth.c wavefront_get_program_status (dev); dev 2133 sound/isa/wavefront/wavefront_synth.c wavefront_get_patch_status (dev); dev 2138 sound/isa/wavefront/wavefront_synth.c outb (0x80|0x40|0x20, dev->control_port); dev 2148 sound/isa/wavefront/wavefront_synth.c snd_wavefront_t *dev = &card->wavefront; dev 2154 sound/isa/wavefront/wavefront_synth.c dev->israw = 0; dev 2155 sound/isa/wavefront/wavefront_synth.c dev->has_fx = 0; dev 2156 sound/isa/wavefront/wavefront_synth.c dev->debug = debug_default; dev 2157 sound/isa/wavefront/wavefront_synth.c dev->interrupts_are_midi = 0; dev 2158 sound/isa/wavefront/wavefront_synth.c dev->irq_cnt = 0; dev 2159 sound/isa/wavefront/wavefront_synth.c dev->rom_samples_rdonly = 1; dev 2161 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_FIRMWARE_VERSION, rbuf, wbuf) == 0) { dev 2163 sound/isa/wavefront/wavefront_synth.c dev->fw_version[0] = rbuf[0]; dev 2164 sound/isa/wavefront/wavefront_synth.c dev->fw_version[1] = rbuf[1]; dev 2171 sound/isa/wavefront/wavefront_synth.c if (snd_wavefront_cmd (dev, WFC_HARDWARE_VERSION, dev 2173 sound/isa/wavefront/wavefront_synth.c dev->hw_version[0] = rbuf[0]; dev 2174 sound/isa/wavefront/wavefront_synth.c dev->hw_version[1] = rbuf[1]; dev 2185 sound/isa/wavefront/wavefront_synth.c dev->israw = 1; dev 2190 sound/isa/wavefront/wavefront_synth.c dev->israw = 1; dev 890 sound/mips/hal2.c snd_card_set_dev(card, &pdev->dev); dev 948 sound/mips/sgio2audio.c snd_card_set_dev(card, &pdev->dev); dev 469 sound/oss/ad1848.c set_mute_bit = (newval == 0) ^ devc->mix_devices[dev][chn].mutepol; dev 471 sound/oss/ad1848.c if (devc->mix_devices[dev][chn].polarity == 1) /* Reverse */ dev 474 sound/oss/ad1848.c mask = (1 << devc->mix_devices[dev][chn].nbits) - 1; dev 475 sound/oss/ad1848.c shift = devc->mix_devices[dev][chn].bitpos; dev 477 sound/oss/ad1848.c if (devc->mix_devices[dev][chn].mutepos == 8) dev 484 sound/oss/ad1848.c mute = (set_mute_bit << devc->mix_devices[dev][chn].mutepos); dev 485 sound/oss/ad1848.c mutemask = ~(1 << devc->mix_devices[dev][chn].mutepos); dev 498 sound/oss/ad1848.c if (!((1 << dev) & devc->supported_devices)) dev 501 sound/oss/ad1848.c dev = devc->mixer_reroute[dev]; dev 503 sound/oss/ad1848.c return devc->levels[dev]; dev 512 sound/oss/ad1848.c regoffs = devc->mix_devices[dev][channel].regno; dev 513 sound/oss/ad1848.c muteregoffs = devc->mix_devices[dev][channel].mutereg; dev 518 sound/oss/ad1848.c change_bits(devc, &val, &muteval, dev, channel, value); dev 521 sound/oss/ad1848.c change_bits(devc, &val, &val, dev, channel, value); dev 539 sound/oss/ad1848.c if (dev > 31) dev 542 sound/oss/ad1848.c if (!(devc->supported_devices & (1 << dev))) dev 545 sound/oss/ad1848.c dev = devc->mixer_reroute[dev]; dev 547 sound/oss/ad1848.c if (devc->mix_devices[dev][LEFT_CHN].nbits == 0) dev 555 sound/oss/ad1848.c if (devc->mix_devices[dev][RIGHT_CHN].nbits == 0) /* Mono control */ dev 564 sound/oss/ad1848.c devc->levels[dev] = retvol; dev 569 sound/oss/ad1848.c ad1848_mixer_set_channel(devc, dev, left, LEFT_CHN); dev 574 sound/oss/ad1848.c if (devc->mix_devices[dev][RIGHT_CHN].nbits == 0) dev 576 sound/oss/ad1848.c ad1848_mixer_set_channel(devc, dev, right, RIGHT_CHN); dev 673 sound/oss/ad1848.c ad1848_info *devc = mixer_devs[dev]->devc; dev 767 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 768 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 856 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 867 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 868 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 972 sound/oss/ad1848.c if (dev < 0 || dev >= num_audiodevs) dev 975 sound/oss/ad1848.c devc = (ad1848_info *) audio_devs[dev]->devc; dev 976 sound/oss/ad1848.c portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 987 sound/oss/ad1848.c if (audio_devs[dev]->flags & DMA_DUPLEX) dev 996 sound/oss/ad1848.c ad1848_trigger(dev, 0); dev 999 sound/oss/ad1848.c devc->record_dev = dev; dev 1001 sound/oss/ad1848.c devc->playback_dev = dev; dev 1015 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1016 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 1021 sound/oss/ad1848.c ad1848_halt(dev); dev 1036 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1037 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 1054 sound/oss/ad1848.c if ((devc->audio_mode & PCM_ENABLE_OUTPUT) && (audio_devs[dev]->flags & DMA_AUTOMODE) && dev 1078 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1079 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 1095 sound/oss/ad1848.c if ((devc->audio_mode & PCM_ENABLE_INPUT) && (audio_devs[dev]->flags & DMA_AUTOMODE) && dev 1131 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1132 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 1184 sound/oss/ad1848.c if (dev == timer_installed && devc->timer_running) dev 1187 sound/oss/ad1848.c ad1848_tmr_reprogram(dev); dev 1190 sound/oss/ad1848.c ad1848_halt_output(dev); dev 1199 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1200 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 1297 sound/oss/ad1848.c if (dev == timer_installed && devc->timer_running) dev 1301 sound/oss/ad1848.c ad1848_tmr_reprogram(dev); dev 1305 sound/oss/ad1848.c ad1848_halt_input(dev); dev 1311 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1312 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 1317 sound/oss/ad1848.c ad1848_halt_output(dev); dev 1320 sound/oss/ad1848.c ad1848_halt_input(dev); dev 1326 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1340 sound/oss/ad1848.c disable_dma(audio_devs[dev]->dmap_in->dma); dev 1348 sound/oss/ad1848.c enable_dma(audio_devs[dev]->dmap_in->dma); dev 1362 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1375 sound/oss/ad1848.c disable_dma(audio_devs[dev]->dmap_out->dma); dev 1383 sound/oss/ad1848.c enable_dma(audio_devs[dev]->dmap_out->dma); dev 1398 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 1399 sound/oss/ad1848.c ad1848_port_info *portc = (ad1848_port_info *) audio_devs[dev]->portc; dev 2159 sound/oss/ad1848.c int i, mixer, dev = 0; dev 2167 sound/oss/ad1848.c dev = devc->dev_no; dev 2173 sound/oss/ad1848.c kfree(audio_devs[dev]->portc); dev 2203 sound/oss/ad1848.c int dev; dev 2208 sound/oss/ad1848.c dev = (long)dev_id; dev 2209 sound/oss/ad1848.c devc = (ad1848_info *) audio_devs[dev]->devc; dev 2259 sound/oss/ad1848.c if (timer_installed == dev && devc->timer_running) dev 2704 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 2752 sound/oss/ad1848.c ad1848_tmr_start(dev, current_interval); dev 2759 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 2770 sound/oss/ad1848.c ad1848_info *devc = (ad1848_info *) audio_devs[dev]->devc; dev 2795 sound/oss/ad1848.c timer_installed = ad1848_tmr.dev = dev; dev 2796 sound/oss/ad1848.c sound_timer_init(&ad1848_tmr, audio_devs[dev]->name); dev 2888 sound/oss/ad1848.c err = pnp_device_attach(dev); dev 2892 sound/oss/ad1848.c if((err = pnp_activate_dev(dev)) < 0) { dev 2895 sound/oss/ad1848.c pnp_device_detach(dev); dev 2900 sound/oss/ad1848.c return(dev); dev 47 sound/oss/audio.c audio_devs[dev]->local_conversion = 0; dev 49 sound/oss/audio.c if (!(audio_devs[dev]->format_mask & fmt)) /* Not supported */ dev 54 sound/oss/audio.c audio_devs[dev]->local_conversion = CNV_MU_LAW; dev 59 sound/oss/audio.c audio_devs[dev]->audio_format = audio_devs[dev]->d->set_bits(dev, fmt); dev 60 sound/oss/audio.c audio_devs[dev]->local_format = fmt; dev 63 sound/oss/audio.c return audio_devs[dev]->local_format; dev 65 sound/oss/audio.c if (audio_devs[dev]->local_conversion) dev 66 sound/oss/audio.c return audio_devs[dev]->local_conversion; dev 68 sound/oss/audio.c return audio_devs[dev]->local_format; dev 75 sound/oss/audio.c int dev_type = dev & 0x0f; dev 80 sound/oss/audio.c dev = dev >> 4; dev 87 sound/oss/audio.c if (dev < 0 || dev >= num_audiodevs) dev 90 sound/oss/audio.c driver = audio_devs[dev]->d; dev 95 sound/oss/audio.c if ((ret = DMAbuf_open(dev, mode)) < 0) dev 98 sound/oss/audio.c if ( (coprocessor = audio_devs[dev]->coproc) != NULL ) { dev 108 sound/oss/audio.c audio_devs[dev]->local_conversion = 0; dev 111 sound/oss/audio.c set_format(dev, AFMT_MU_LAW); dev 113 sound/oss/audio.c set_format(dev, bits); dev 115 sound/oss/audio.c audio_devs[dev]->audio_mode = AM_NONE; dev 127 sound/oss/audio.c DMAbuf_release(dev, mode); dev 139 sound/oss/audio.c struct dma_buffparms *dmap = audio_devs[dev]->dmap_out; dev 154 sound/oss/audio.c DMAbuf_move_wrpointer(dev, len); dev 184 sound/oss/audio.c dev = dev >> 4; dev 192 sound/oss/audio.c audio_devs[dev]->dmap_out->closing = 1; dev 193 sound/oss/audio.c audio_devs[dev]->dmap_in->closing = 1; dev 200 sound/oss/audio.c sync_output(dev); dev 202 sound/oss/audio.c if ( (coprocessor = audio_devs[dev]->coproc) != NULL ) { dev 206 sound/oss/audio.c DMAbuf_release(dev, mode); dev 208 sound/oss/audio.c module_put(audio_devs[dev]->d->owner); dev 228 sound/oss/audio.c dev = dev >> 4; dev 236 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dev 239 sound/oss/audio.c if (audio_devs[dev]->flags & DMA_DUPLEX) dev 240 sound/oss/audio.c audio_devs[dev]->audio_mode |= AM_WRITE; dev 242 sound/oss/audio.c audio_devs[dev]->audio_mode = AM_WRITE; dev 246 sound/oss/audio.c sync_output(dev); dev 252 sound/oss/audio.c if ((err = DMAbuf_getwrbuffer(dev, &dma_buf, &buf_size, !!(file->f_flags & O_NONBLOCK))) < 0) dev 266 sound/oss/audio.c if (!audio_devs[dev]->d->copy_user) dev 269 sound/oss/audio.c (audio_devs[dev]->dmap_out->raw_buf + audio_devs[dev]->dmap_out->buffsize)) dev 271 sound/oss/audio.c printk(KERN_ERR "audio: Buffer error 3 (%lx,%d), (%lx, %d)\n", (long) dma_buf, l, (long) audio_devs[dev]->dmap_out->raw_buf, (int) audio_devs[dev]->dmap_out->buffsize); dev 274 sound/oss/audio.c if (dma_buf < audio_devs[dev]->dmap_out->raw_buf) dev 276 sound/oss/audio.c printk(KERN_ERR "audio: Buffer error 13 (%lx<%lx)\n", (long) dma_buf, (long) audio_devs[dev]->dmap_out->raw_buf); dev 282 sound/oss/audio.c else audio_devs[dev]->d->copy_user (dev, dev 290 sound/oss/audio.c if (audio_devs[dev]->local_conversion & CNV_MU_LAW) dev 296 sound/oss/audio.c DMAbuf_move_wrpointer(dev, l); dev 309 sound/oss/audio.c dev = dev >> 4; dev 313 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_READ)) dev 316 sound/oss/audio.c if ((audio_devs[dev]->audio_mode & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX)) dev 317 sound/oss/audio.c sync_output(dev); dev 319 sound/oss/audio.c if (audio_devs[dev]->flags & DMA_DUPLEX) dev 320 sound/oss/audio.c audio_devs[dev]->audio_mode |= AM_READ; dev 322 sound/oss/audio.c audio_devs[dev]->audio_mode = AM_READ; dev 326 sound/oss/audio.c if ((buf_no = DMAbuf_getrdbuffer(dev, &dmabuf, &l, !!(file->f_flags & O_NONBLOCK))) < 0) dev 347 sound/oss/audio.c if (audio_devs[dev]->local_conversion & CNV_MU_LAW) dev 359 sound/oss/audio.c DMAbuf_rmchars(dev, buf_no, l); dev 375 sound/oss/audio.c dev = dev >> 4; dev 378 sound/oss/audio.c if (audio_devs[dev]->coproc) /* Coprocessor ioctl */ dev 379 sound/oss/audio.c return audio_devs[dev]->coproc->ioctl(audio_devs[dev]->coproc->devc, cmd, arg, 0); dev 387 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dev 389 sound/oss/audio.c if (audio_devs[dev]->dmap_out->fragment_size == 0) dev 391 sound/oss/audio.c sync_output(dev); dev 392 sound/oss/audio.c DMAbuf_sync(dev); dev 393 sound/oss/audio.c DMAbuf_reset(dev); dev 397 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dev 399 sound/oss/audio.c if (audio_devs[dev]->dmap_out->fragment_size == 0) dev 401 sound/oss/audio.c audio_devs[dev]->dmap_out->flags |= DMA_POST | DMA_DIRTY; dev 402 sound/oss/audio.c sync_output(dev); dev 403 sound/oss/audio.c dma_ioctl(dev, SNDCTL_DSP_POST, NULL); dev 407 sound/oss/audio.c audio_devs[dev]->audio_mode = AM_NONE; dev 408 sound/oss/audio.c DMAbuf_reset(dev); dev 412 sound/oss/audio.c val = audio_devs[dev]->format_mask | AFMT_MU_LAW; dev 418 sound/oss/audio.c val = set_format(dev, val); dev 422 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_READ)) dev 424 sound/oss/audio.c if ((audio_devs[dev]->audio_mode & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX)) dev 426 sound/oss/audio.c return dma_ioctl(dev, cmd, arg); dev 429 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dev 431 sound/oss/audio.c if ((audio_devs[dev]->audio_mode & AM_READ) && !(audio_devs[dev]->flags & DMA_DUPLEX)) dev 433 sound/oss/audio.c return dma_ioctl(dev, cmd, arg); dev 441 sound/oss/audio.c if (audio_devs[dev]->flags & DMA_DUPLEX && dev 442 sound/oss/audio.c audio_devs[dev]->open_mode == OPEN_READWRITE) dev 444 sound/oss/audio.c if (audio_devs[dev]->coproc) dev 446 sound/oss/audio.c if (audio_devs[dev]->d->local_qlen) /* Device has hidden buffers */ dev 448 sound/oss/audio.c if (audio_devs[dev]->d->trigger) /* Supports SETTRIGGER */ dev 455 sound/oss/audio.c val = audio_devs[dev]->d->set_speed(dev, val); dev 459 sound/oss/audio.c val = audio_devs[dev]->d->set_speed(dev, 0); dev 467 sound/oss/audio.c val = audio_devs[dev]->d->set_channels(dev, val + 1) - 1; dev 473 sound/oss/audio.c val = audio_devs[dev]->d->set_channels(dev, val); dev 477 sound/oss/audio.c val = audio_devs[dev]->d->set_channels(dev, 0); dev 481 sound/oss/audio.c val = audio_devs[dev]->d->set_bits(dev, 0); dev 485 sound/oss/audio.c if (audio_devs[dev]->open_mode != OPEN_READWRITE) dev 487 sound/oss/audio.c return (audio_devs[dev]->flags & DMA_DUPLEX) ? 0 : -EIO; dev 492 sound/oss/audio.c if (audio_devs[dev]->open_mode & OPEN_WRITE) dev 493 sound/oss/audio.c audio_devs[dev]->dmap_out->applic_profile = val; dev 494 sound/oss/audio.c if (audio_devs[dev]->open_mode & OPEN_READ) dev 495 sound/oss/audio.c audio_devs[dev]->dmap_in->applic_profile = val; dev 499 sound/oss/audio.c dmap = audio_devs[dev]->dmap_out; dev 500 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dev 510 sound/oss/audio.c count = DMAbuf_get_buffer_pointer (dev, dmap, DMODE_OUTPUT); dev 524 sound/oss/audio.c return dma_ioctl(dev, cmd, arg); dev 542 sound/oss/audio.c struct audio_operations *dsp_dev = audio_devs[dev]; dev 547 sound/oss/audio.c sr = dsp_dev->d->set_speed(dev, 0); dev 548 sound/oss/audio.c nc = dsp_dev->d->set_channels(dev, 0); dev 549 sound/oss/audio.c sz = dsp_dev->d->set_bits(dev, 0); dev 623 sound/oss/audio.c if (audio_devs[dev]->min_fragment) dev 624 sound/oss/audio.c if (bsz < (1 << audio_devs[dev]->min_fragment)) dev 625 sound/oss/audio.c bsz = 1 << audio_devs[dev]->min_fragment; dev 626 sound/oss/audio.c if (audio_devs[dev]->max_fragment) dev 627 sound/oss/audio.c if (bsz > (1 << audio_devs[dev]->max_fragment)) dev 628 sound/oss/audio.c bsz = 1 << audio_devs[dev]->max_fragment; dev 711 sound/oss/audio.c if (audio_devs[dev]->min_fragment > 0) dev 712 sound/oss/audio.c if (bytes < audio_devs[dev]->min_fragment) dev 713 sound/oss/audio.c bytes = audio_devs[dev]->min_fragment; dev 715 sound/oss/audio.c if (audio_devs[dev]->max_fragment > 0) dev 716 sound/oss/audio.c if (bytes > audio_devs[dev]->max_fragment) dev 717 sound/oss/audio.c bytes = audio_devs[dev]->max_fragment; dev 731 sound/oss/audio.c audio_devs[dev]->flags & DMA_AUTOMODE) dev 740 sound/oss/audio.c struct dma_buffparms *dmap_out = audio_devs[dev]->dmap_out; dev 741 sound/oss/audio.c struct dma_buffparms *dmap_in = audio_devs[dev]->dmap_in; dev 754 sound/oss/audio.c if (audio_devs[dev]->open_mode & OPEN_WRITE) dev 755 sound/oss/audio.c ret = dma_subdivide(dev, dmap_out, fact); dev 758 sound/oss/audio.c if (audio_devs[dev]->open_mode != OPEN_WRITE || dev 759 sound/oss/audio.c (audio_devs[dev]->flags & DMA_DUPLEX && dev 760 sound/oss/audio.c audio_devs[dev]->open_mode & OPEN_READ)) dev 761 sound/oss/audio.c ret = dma_subdivide(dev, dmap_in, fact); dev 769 sound/oss/audio.c if (cmd == SNDCTL_DSP_GETISPACE && !(audio_devs[dev]->open_mode & OPEN_READ)) dev 771 sound/oss/audio.c if (cmd == SNDCTL_DSP_GETOSPACE && !(audio_devs[dev]->open_mode & OPEN_WRITE)) dev 773 sound/oss/audio.c if (cmd == SNDCTL_DSP_GETISPACE && audio_devs[dev]->flags & DMA_DUPLEX) dev 778 sound/oss/audio.c reorganize_buffers(dev, dmap, (cmd == SNDCTL_DSP_GETISPACE)); dev 784 sound/oss/audio.c if (!DMAbuf_space_in_queue(dev)) dev 788 sound/oss/audio.c info.fragments = DMAbuf_space_in_queue(dev); dev 789 sound/oss/audio.c if (audio_devs[dev]->d->local_qlen) dev 791 sound/oss/audio.c int tmp = audio_devs[dev]->d->local_qlen(dev); dev 822 sound/oss/audio.c bits &= audio_devs[dev]->open_mode; dev 823 sound/oss/audio.c if (audio_devs[dev]->d->trigger == NULL) dev 825 sound/oss/audio.c if (!(audio_devs[dev]->flags & DMA_DUPLEX) && (bits & PCM_ENABLE_INPUT) && dev 832 sound/oss/audio.c changed = (audio_devs[dev]->enable_bits ^ bits) & PCM_ENABLE_INPUT; dev 833 sound/oss/audio.c if (changed && audio_devs[dev]->go) dev 835 sound/oss/audio.c reorganize_buffers(dev, dmap_in, 1); dev 836 sound/oss/audio.c if ((err = audio_devs[dev]->d->prepare_for_input(dev, dev 842 sound/oss/audio.c audio_devs[dev]->enable_bits |= PCM_ENABLE_INPUT; dev 843 sound/oss/audio.c DMAbuf_activate_recording(dev, dmap_in); dev 845 sound/oss/audio.c audio_devs[dev]->enable_bits &= ~PCM_ENABLE_INPUT; dev 851 sound/oss/audio.c changed = (audio_devs[dev]->enable_bits ^ bits) & PCM_ENABLE_OUTPUT; dev 854 sound/oss/audio.c audio_devs[dev]->go) dev 857 sound/oss/audio.c reorganize_buffers(dev, dmap_out, 0); dev 859 sound/oss/audio.c audio_devs[dev]->enable_bits |= PCM_ENABLE_OUTPUT; dev 861 sound/oss/audio.c DMAbuf_launch_output(dev, dmap_out); dev 863 sound/oss/audio.c audio_devs[dev]->enable_bits &= ~PCM_ENABLE_OUTPUT; dev 867 sound/oss/audio.c if (changed && audio_devs[dev]->d->trigger) dev 868 sound/oss/audio.c audio_devs[dev]->d->trigger(dev, bits * audio_devs[dev]->go); dev 873 sound/oss/audio.c ret = audio_devs[dev]->enable_bits; dev 877 sound/oss/audio.c if (!audio_devs[dev]->d->trigger) dev 879 sound/oss/audio.c audio_devs[dev]->d->trigger(dev, 0); dev 880 sound/oss/audio.c audio_devs[dev]->go = 0; dev 884 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_READ)) dev 888 sound/oss/audio.c cinfo.ptr = DMAbuf_get_buffer_pointer(dev, dmap_in, DMODE_INPUT) & ~3; dev 901 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dev 906 sound/oss/audio.c cinfo.ptr = DMAbuf_get_buffer_pointer(dev, dmap_out, DMODE_OUTPUT) & ~3; dev 919 sound/oss/audio.c if (!(audio_devs[dev]->open_mode & OPEN_WRITE)) dev 928 sound/oss/audio.c count = DMAbuf_get_buffer_pointer (dev, dmap_out, DMODE_OUTPUT); dev 941 sound/oss/audio.c if (audio_devs[dev]->dmap_out->qlen > 0) dev 942 sound/oss/audio.c if (!(audio_devs[dev]->dmap_out->flags & DMA_ACTIVE)) dev 943 sound/oss/audio.c DMAbuf_launch_output(dev, audio_devs[dev]->dmap_out); dev 948 sound/oss/audio.c if (audio_devs[dev]->open_mode & OPEN_WRITE) dev 949 sound/oss/audio.c reorganize_buffers(dev, dmap_out, (audio_devs[dev]->open_mode == OPEN_READ)); dev 950 sound/oss/audio.c if (audio_devs[dev]->open_mode == OPEN_READ || dev 951 sound/oss/audio.c (audio_devs[dev]->flags & DMA_DUPLEX && dev 952 sound/oss/audio.c audio_devs[dev]->open_mode & OPEN_READ)) dev 953 sound/oss/audio.c reorganize_buffers(dev, dmap_in, (audio_devs[dev]->open_mode == OPEN_READ)); dev 954 sound/oss/audio.c if (audio_devs[dev]->open_mode == OPEN_READ) dev 963 sound/oss/audio.c if (audio_devs[dev]->open_mode & OPEN_WRITE) dev 964 sound/oss/audio.c ret = dma_set_fragment(dev, dmap_out, fact); dev 967 sound/oss/audio.c if (audio_devs[dev]->open_mode == OPEN_READ || dev 968 sound/oss/audio.c (audio_devs[dev]->flags & DMA_DUPLEX && dev 969 sound/oss/audio.c audio_devs[dev]->open_mode & OPEN_READ)) dev 970 sound/oss/audio.c ret = dma_set_fragment(dev, dmap_in, fact); dev 978 sound/oss/audio.c if (!audio_devs[dev]->d->ioctl) dev 980 sound/oss/audio.c return audio_devs[dev]->d->ioctl(dev, cmd, arg); dev 151 sound/oss/dev_table.c if (dev != -1) { dev 152 sound/oss/dev_table.c DMAbuf_deinit(dev); dev 153 sound/oss/dev_table.c audio_devs[dev] = NULL; dev 154 sound/oss/dev_table.c unregister_sound_dsp((dev<<4)+3); dev 226 sound/oss/dev_table.c if (dev != -1) { dev 227 sound/oss/dev_table.c mixer_devs[dev] = NULL; dev 228 sound/oss/dev_table.c unregister_sound_mixer(dev<<4); dev 236 sound/oss/dev_table.c if (dev != -1) { dev 237 sound/oss/dev_table.c midi_devs[dev] = NULL; dev 238 sound/oss/dev_table.c unregister_sound_midi((dev<<4)+2); dev 245 sound/oss/dev_table.c if (dev != -1) dev 246 sound/oss/dev_table.c synth_devs[dev] = NULL; dev 252 sound/oss/dev_table.c if (dev != -1) dev 253 sound/oss/dev_table.c sound_timer_devs[dev] = NULL; dev 141 sound/oss/dev_table.h void (*audio_callback) (int dev, int parm); dev 168 sound/oss/dev_table.h int (*open) (int dev, int mode); dev 169 sound/oss/dev_table.h void (*close) (int dev); dev 170 sound/oss/dev_table.h void (*output_block) (int dev, unsigned long buf, dev 172 sound/oss/dev_table.h void (*start_input) (int dev, unsigned long buf, dev 174 sound/oss/dev_table.h int (*ioctl) (int dev, unsigned int cmd, void __user * arg); dev 175 sound/oss/dev_table.h int (*prepare_for_input) (int dev, int bufsize, int nbufs); dev 176 sound/oss/dev_table.h int (*prepare_for_output) (int dev, int bufsize, int nbufs); dev 177 sound/oss/dev_table.h void (*halt_io) (int dev); dev 178 sound/oss/dev_table.h int (*local_qlen)(int dev); dev 179 sound/oss/dev_table.h void (*copy_user) (int dev, dev 185 sound/oss/dev_table.h void (*halt_input) (int dev); dev 186 sound/oss/dev_table.h void (*halt_output) (int dev); dev 187 sound/oss/dev_table.h void (*trigger) (int dev, int bits); dev 188 sound/oss/dev_table.h int (*set_speed)(int dev, int speed); dev 189 sound/oss/dev_table.h unsigned int (*set_bits)(int dev, unsigned int bits); dev 190 sound/oss/dev_table.h short (*set_channels)(int dev, short channels); dev 191 sound/oss/dev_table.h void (*postprocess_write)(int dev); /* Device spesific postprocessing for written data */ dev 192 sound/oss/dev_table.h void (*preprocess_read)(int dev); /* Device spesific preprocessing for read data */ dev 193 sound/oss/dev_table.h void (*mmap)(int dev); dev 250 sound/oss/dev_table.h int (*ioctl) (int dev, unsigned int cmd, void __user * arg); dev 265 sound/oss/dev_table.h int (*open) (int dev, int mode); dev 266 sound/oss/dev_table.h void (*close) (int dev); dev 267 sound/oss/dev_table.h int (*ioctl) (int dev, unsigned int cmd, void __user * arg); dev 268 sound/oss/dev_table.h int (*kill_note) (int dev, int voice, int note, int velocity); dev 269 sound/oss/dev_table.h int (*start_note) (int dev, int voice, int note, int velocity); dev 270 sound/oss/dev_table.h int (*set_instr) (int dev, int voice, int instr); dev 271 sound/oss/dev_table.h void (*reset) (int dev); dev 272 sound/oss/dev_table.h void (*hw_control) (int dev, unsigned char *event); dev 273 sound/oss/dev_table.h int (*load_patch) (int dev, int format, const char __user *addr, dev 275 sound/oss/dev_table.h void (*aftertouch) (int dev, int voice, int pressure); dev 276 sound/oss/dev_table.h void (*controller) (int dev, int voice, int ctrl_num, int value); dev 277 sound/oss/dev_table.h void (*panning) (int dev, int voice, int value); dev 278 sound/oss/dev_table.h void (*volume_method) (int dev, int mode); dev 279 sound/oss/dev_table.h void (*bender) (int dev, int chn, int value); dev 280 sound/oss/dev_table.h int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc); dev 281 sound/oss/dev_table.h void (*setup_voice) (int dev, int voice, int chn); dev 282 sound/oss/dev_table.h int (*send_sysex)(int dev, unsigned char *bytes, int len); dev 315 sound/oss/dev_table.h int (*open) (int dev, int mode, dev 316 sound/oss/dev_table.h void (*inputintr)(int dev, unsigned char data), dev 317 sound/oss/dev_table.h void (*outputintr)(int dev) dev 319 sound/oss/dev_table.h void (*close) (int dev); dev 320 sound/oss/dev_table.h int (*ioctl) (int dev, unsigned int cmd, void __user * arg); dev 321 sound/oss/dev_table.h int (*outputc) (int dev, unsigned char data); dev 322 sound/oss/dev_table.h int (*start_read) (int dev); dev 323 sound/oss/dev_table.h int (*end_read) (int dev); dev 324 sound/oss/dev_table.h void (*kick)(int dev); dev 325 sound/oss/dev_table.h int (*command) (int dev, unsigned char *data); dev 326 sound/oss/dev_table.h int (*buffer_status) (int dev); dev 327 sound/oss/dev_table.h int (*prefix_cmd) (int dev, unsigned char status); dev 334 sound/oss/dev_table.h int dev; dev 336 sound/oss/dev_table.h unsigned int (*tmr_start)(int dev, unsigned int usecs); dev 337 sound/oss/dev_table.h void (*tmr_disable)(int dev); dev 338 sound/oss/dev_table.h void (*tmr_restart)(int dev); dev 347 sound/oss/dev_table.h int (*open)(int dev, int mode); dev 348 sound/oss/dev_table.h void (*close)(int dev); dev 349 sound/oss/dev_table.h int (*event)(int dev, unsigned char *ev); dev 350 sound/oss/dev_table.h unsigned long (*get_time)(int dev); dev 351 sound/oss/dev_table.h int (*ioctl) (int dev, unsigned int cmd, void __user * arg); dev 352 sound/oss/dev_table.h void (*arm_timer)(int dev, long time); dev 240 sound/oss/dmabuf.c audio_devs[dev]->d->ioctl(dev, SNDCTL_DSP_SETFMT, (void __user *)&bits); dev 250 sound/oss/dmabuf.c audio_devs[dev]->d->ioctl(dev, SNDCTL_DSP_SPEED, (void __user *)&speed); dev 261 sound/oss/dmabuf.c audio_devs[dev]->d->ioctl(dev, SNDCTL_DSP_CHANNELS, (void __user *)&c); dev 278 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 289 sound/oss/dmabuf.c if ((retval = adev->d->open(dev, mode)) < 0) dev 298 sound/oss/dmabuf.c adev->d->close(dev); dev 306 sound/oss/dmabuf.c adev->d->close(dev); dev 315 sound/oss/dmabuf.c adev->d->set_bits(dev, 8); dev 316 sound/oss/dmabuf.c adev->d->set_channels(dev, 1); dev 317 sound/oss/dmabuf.c adev->d->set_speed(dev, DSP_DEFAULT_SPEED); dev 326 sound/oss/dmabuf.c if (audio_devs[dev]->open_mode & OPEN_WRITE) dev 327 sound/oss/dmabuf.c dma_reset_output(dev); dev 329 sound/oss/dmabuf.c if (audio_devs[dev]->open_mode & OPEN_READ) dev 330 sound/oss/dmabuf.c dma_reset_input(dev); dev 335 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 362 sound/oss/dmabuf.c adev->d->halt_io(dev); dev 364 sound/oss/dmabuf.c adev->d->halt_output(dev); dev 373 sound/oss/dmabuf.c reorganize_buffers(dev, adev->dmap_out, 0); dev 380 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 386 sound/oss/dmabuf.c adev->d->halt_io(dev); dev 388 sound/oss/dmabuf.c adev->d->halt_input(dev); dev 393 sound/oss/dmabuf.c reorganize_buffers(dev, adev->dmap_in, 1); dev 399 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 407 sound/oss/dmabuf.c reorganize_buffers(dev, dmap, 0); dev 408 sound/oss/dmabuf.c if (adev->d->prepare_for_output(dev, dmap->fragment_size, dmap->nbufs)) dev 417 sound/oss/dmabuf.c adev->d->output_block(dev, dmap->raw_buf_phys + dmap->qhead * dmap->fragment_size, dev 420 sound/oss/dmabuf.c adev->d->trigger(dev,adev->enable_bits * adev->go); dev 427 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 439 sound/oss/dmabuf.c DMAbuf_launch_output(dev, dmap); dev 465 sound/oss/dmabuf.c adev->d->local_qlen(dev)){ dev 480 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 495 sound/oss/dmabuf.c DMAbuf_sync(dev); dev 499 sound/oss/dmabuf.c DMAbuf_reset(dev); dev 501 sound/oss/dmabuf.c adev->d->close(dev); dev 517 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 527 sound/oss/dmabuf.c DMAbuf_sync(dev); dev 528 sound/oss/dmabuf.c DMAbuf_reset(dev); dev 533 sound/oss/dmabuf.c reorganize_buffers(dev, dmap, 1); dev 534 sound/oss/dmabuf.c if ((err = adev->d->prepare_for_input(dev, dev 541 sound/oss/dmabuf.c reorganize_buffers(dev, dmap, 0); dev 543 sound/oss/dmabuf.c adev->d->start_input(dev, dmap->raw_buf_phys + dmap->qtail * dmap->fragment_size, dev 547 sound/oss/dmabuf.c adev->d->trigger(dev, adev->enable_bits * adev->go); dev 554 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 564 sound/oss/dmabuf.c reorganize_buffers(dev, dmap, 0); dev 575 sound/oss/dmabuf.c if ((err = DMAbuf_activate_recording(dev, dmap)) < 0) { dev 595 sound/oss/dmabuf.c dma_reset_input(dev); dev 612 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 692 sound/oss/dmabuf.c int dev; dev 694 sound/oss/dmabuf.c for (dev = 0; dev < num_audiodevs; dev++) { dev 695 sound/oss/dmabuf.c if (!(devmask & (1 << dev))) dev 697 sound/oss/dmabuf.c if (!(adev = audio_devs[dev])) dev 706 sound/oss/dmabuf.c adev->d->trigger(dev,adev->enable_bits * adev->go); dev 712 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 734 sound/oss/dmabuf.c tmp = adev->d->local_qlen(dev); dev 749 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 774 sound/oss/dmabuf.c dma_reset_output(dev); dev 784 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 792 sound/oss/dmabuf.c if (!(maxfrags = DMAbuf_space_in_queue(dev)) && !occupied_bytes) dev 798 sound/oss/dmabuf.c active_offs = max(DMAbuf_get_buffer_pointer(dev, dmap, DMODE_OUTPUT), 0); dev 828 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 839 sound/oss/dmabuf.c reorganize_buffers(dev, dmap, 0); dev 843 sound/oss/dmabuf.c DMAbuf_reset(dev); dev 848 sound/oss/dmabuf.c while (find_output_space(dev, buf, size) <= 0) { dev 850 sound/oss/dmabuf.c if ((err = output_sleep(dev, dontblock)) < 0) { dev 862 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 905 sound/oss/dmabuf.c adev->d->postprocess_write(dev); dev 909 sound/oss/dmabuf.c DMAbuf_launch_output(dev, dmap); dev 917 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 922 sound/oss/dmabuf.c printk("Device %d, chn=%s\n", dev, (dmap == adev->dmap_out) ? "out" : "in"); dev 952 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 955 sound/oss/dmabuf.c dmap->audio_callback(dev, dmap->callback_parm); dev 962 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 967 sound/oss/dmabuf.c printk(KERN_ERR "Sound: Error. Audio interrupt (%d) after freeing buffers.\n", dev); dev 986 sound/oss/dmabuf.c DMAbuf_launch_output(dev, dmap); dev 987 sound/oss/dmabuf.c finish_output_interrupt(dev, dmap); dev 1024 sound/oss/dmabuf.c DMAbuf_launch_output(dev, dmap); dev 1025 sound/oss/dmabuf.c finish_output_interrupt(dev, dmap); dev 1030 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 1054 sound/oss/dmabuf.c do_outputintr(dev, notify_only); dev 1057 sound/oss/dmabuf.c do_outputintr(dev, notify_only); dev 1065 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 1087 sound/oss/dmabuf.c reorganize_buffers(dev, dmap, 0); dev 1089 sound/oss/dmabuf.c adev->d->start_input(dev, dmap->raw_buf_phys + dmap->qtail * dmap->fragment_size, dev 1092 sound/oss/dmabuf.c adev->d->trigger(dev, adev->enable_bits * adev->go); dev 1117 sound/oss/dmabuf.c adev->d->start_input(dev, dmap->raw_buf_phys + dmap->qtail * dmap->fragment_size, dmap->fragment_size, 1); dev 1119 sound/oss/dmabuf.c adev->d->trigger(dev,adev->enable_bits * adev->go); dev 1131 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 1156 sound/oss/dmabuf.c do_inputintr(dev); dev 1158 sound/oss/dmabuf.c do_inputintr(dev); dev 1165 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 1172 sound/oss/dmabuf.c panic("OSS: audio_devs[%d]->d == NULL\n", dev); dev 1199 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 1216 sound/oss/dmabuf.c DMAbuf_activate_recording(dev, dmap); dev 1228 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 1242 sound/oss/dmabuf.c if (!DMAbuf_space_in_queue(dev)) dev 1249 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 1251 sound/oss/dmabuf.c return poll_input(file, dev, wait) | poll_output(file, dev, wait); dev 1256 sound/oss/dmabuf.c struct audio_operations *adev = audio_devs[dev]; dev 126 sound/oss/midi_synth.c int dev; dev 148 sound/oss/midi_synth.c dev = midi2synth[orig_dev]; dev 182 sound/oss/midi_synth.c do_midi_msg(dev, inc->m_buf, inc->m_ptr); dev 203 sound/oss/midi_synth.c do_midi_msg(dev, inc->m_buf, inc->m_ptr); dev 214 sound/oss/midi_synth.c do_midi_msg(dev, inc->m_buf, inc->m_ptr); dev 237 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 240 sound/oss/midi_synth.c if (!sysex_state[dev]) dev 243 sound/oss/midi_synth.c sysex_state[dev] = 0; dev 249 sound/oss/midi_synth.c sysex_state[dev] = 0; dev 269 sound/oss/midi_synth.c if (__copy_to_user(arg, synth_devs[dev]->info, sizeof(struct synth_info))) dev 285 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 297 sound/oss/midi_synth.c leave_sysex(dev); dev 352 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 359 sound/oss/midi_synth.c leave_sysex(dev); dev 375 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 387 sound/oss/midi_synth.c leave_sysex(dev); dev 418 sound/oss/midi_synth.c leave_sysex(dev); dev 425 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 432 sound/oss/midi_synth.c midi2synth[orig_dev] = dev; dev 433 sound/oss/midi_synth.c sysex_state[dev] = 0; dev 458 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 460 sound/oss/midi_synth.c leave_sysex(dev); dev 481 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 489 sound/oss/midi_synth.c leave_sysex(dev); dev 563 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 571 sound/oss/midi_synth.c leave_sysex(dev); dev 595 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 603 sound/oss/midi_synth.c leave_sysex(dev); dev 624 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 633 sound/oss/midi_synth.c leave_sysex(dev); dev 662 sound/oss/midi_synth.c int orig_dev = synth_devs[dev]->midi_dev; dev 672 sound/oss/midi_synth.c sysex_state[dev] = 1; dev 676 sound/oss/midi_synth.c if (!sysex_state[dev]) /* Orphan sysex end */ dev 678 sound/oss/midi_synth.c sysex_state[dev] = 0; dev 682 sound/oss/midi_synth.c if (!sysex_state[dev]) dev 688 sound/oss/midi_synth.c sysex_state[dev] = 0; dev 701 sound/oss/midi_synth.c sysex_state[dev] = 0; dev 707 sound/oss/midi_synth.c if (!sysex_state[dev]) dev 88 sound/oss/midibuf.c if (midi_devs[dev]->buffer_status != NULL) dev 89 sound/oss/midibuf.c while (!signal_pending(current) && midi_devs[dev]->buffer_status(dev)) dev 90 sound/oss/midibuf.c interruptible_sleep_on_timeout(&midi_sleeper[dev], dev 96 sound/oss/midibuf.c if (midi_in_buf[dev] == NULL) dev 106 sound/oss/midibuf.c if (SPACE_AVAIL(midi_in_buf[dev])) { dev 107 sound/oss/midibuf.c QUEUE_BYTE(midi_in_buf[dev], data); dev 108 sound/oss/midibuf.c wake_up(&input_sleeper[dev]); dev 122 sound/oss/midibuf.c int dev; dev 127 sound/oss/midibuf.c for (dev = 0; dev < num_midis; dev++) dev 128 sound/oss/midibuf.c if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL) dev 132 sound/oss/midibuf.c while (DATA_AVAIL(midi_out_buf[dev]) && ok) dev 134 sound/oss/midibuf.c int c = midi_out_buf[dev]->queue[midi_out_buf[dev]->head]; dev 137 sound/oss/midibuf.c ok = midi_devs[dev]->outputc(dev, c); dev 139 sound/oss/midibuf.c midi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE; dev 140 sound/oss/midibuf.c midi_out_buf[dev]->len--; dev 143 sound/oss/midibuf.c if (DATA_AVAIL(midi_out_buf[dev]) < 100) dev 144 sound/oss/midibuf.c wake_up(&midi_sleeper[dev]); dev 159 sound/oss/midibuf.c dev = dev >> 4; dev 167 sound/oss/midibuf.c if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) dev 173 sound/oss/midibuf.c module_put(midi_devs[dev]->owner); dev 175 sound/oss/midibuf.c if ((err = midi_devs[dev]->open(dev, mode, dev 179 sound/oss/midibuf.c parms[dev].prech_timeout = MAX_SCHEDULE_TIMEOUT; dev 180 sound/oss/midibuf.c midi_in_buf[dev] = (struct midi_buf *) vmalloc(sizeof(struct midi_buf)); dev 182 sound/oss/midibuf.c if (midi_in_buf[dev] == NULL) dev 185 sound/oss/midibuf.c midi_devs[dev]->close(dev); dev 188 sound/oss/midibuf.c midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; dev 190 sound/oss/midibuf.c midi_out_buf[dev] = (struct midi_buf *) vmalloc(sizeof(struct midi_buf)); dev 192 sound/oss/midibuf.c if (midi_out_buf[dev] == NULL) dev 195 sound/oss/midibuf.c midi_devs[dev]->close(dev); dev 196 sound/oss/midibuf.c vfree(midi_in_buf[dev]); dev 197 sound/oss/midibuf.c midi_in_buf[dev] = NULL; dev 200 sound/oss/midibuf.c midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; dev 203 sound/oss/midibuf.c init_waitqueue_head(&midi_sleeper[dev]); dev 204 sound/oss/midibuf.c init_waitqueue_head(&input_sleeper[dev]); dev 218 sound/oss/midibuf.c dev = dev >> 4; dev 221 sound/oss/midibuf.c if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) dev 230 sound/oss/midibuf.c midi_devs[dev]->outputc(dev, 0xfe); /* dev 235 sound/oss/midibuf.c while (!signal_pending(current) && DATA_AVAIL(midi_out_buf[dev])) dev 236 sound/oss/midibuf.c interruptible_sleep_on(&midi_sleeper[dev]); dev 241 sound/oss/midibuf.c drain_midi_queue(dev); /* dev 246 sound/oss/midibuf.c midi_devs[dev]->close(dev); dev 251 sound/oss/midibuf.c vfree(midi_in_buf[dev]); dev 252 sound/oss/midibuf.c vfree(midi_out_buf[dev]); dev 253 sound/oss/midibuf.c midi_in_buf[dev] = NULL; dev 254 sound/oss/midibuf.c midi_out_buf[dev] = NULL; dev 256 sound/oss/midibuf.c module_put(midi_devs[dev]->owner); dev 264 sound/oss/midibuf.c dev = dev >> 4; dev 273 sound/oss/midibuf.c n = SPACE_AVAIL(midi_out_buf[dev]); dev 284 sound/oss/midibuf.c interruptible_sleep_on(&midi_sleeper[dev]); dev 290 sound/oss/midibuf.c n = SPACE_AVAIL(midi_out_buf[dev]); dev 304 sound/oss/midibuf.c QUEUE_BYTE(midi_out_buf[dev], tmp_data); dev 318 sound/oss/midibuf.c dev = dev >> 4; dev 320 sound/oss/midibuf.c if (!DATA_AVAIL(midi_in_buf[dev])) { /* dev 327 sound/oss/midibuf.c interruptible_sleep_on_timeout(&input_sleeper[dev], dev 328 sound/oss/midibuf.c parms[dev].prech_timeout); dev 333 sound/oss/midibuf.c if (c == 0 && DATA_AVAIL(midi_in_buf[dev])) /* dev 337 sound/oss/midibuf.c n = DATA_AVAIL(midi_in_buf[dev]); dev 345 sound/oss/midibuf.c REMOVE_BYTE(midi_in_buf[dev], tmp_data); dev 366 sound/oss/midibuf.c dev = dev >> 4; dev 370 sound/oss/midibuf.c if (midi_devs[dev]->coproc) /* Coprocessor ioctl */ dev 371 sound/oss/midibuf.c return midi_devs[dev]->coproc->ioctl(midi_devs[dev]->coproc->devc, cmd, arg, 0); dev 385 sound/oss/midibuf.c parms[dev].prech_timeout = val; dev 389 sound/oss/midibuf.c if (!midi_devs[dev]->ioctl) dev 391 sound/oss/midibuf.c return midi_devs[dev]->ioctl(dev, cmd, arg); dev 401 sound/oss/midibuf.c dev = dev >> 4; dev 404 sound/oss/midibuf.c poll_wait(file, &input_sleeper[dev], wait); dev 405 sound/oss/midibuf.c if (DATA_AVAIL(midi_in_buf[dev])) dev 409 sound/oss/midibuf.c poll_wait(file, &midi_sleeper[dev], wait); dev 410 sound/oss/midibuf.c if (!SPACE_AVAIL(midi_out_buf[dev])) dev 419 sound/oss/midibuf.c if (midi_in_buf[dev]) dev 420 sound/oss/midibuf.c return DATA_AVAIL (midi_in_buf[dev]); dev 70 sound/oss/mpu401.c void (*inputintr) (int dev, unsigned char data); dev 438 sound/oss/mpu401.c int dev = (int)(unsigned long) dev_id; dev 441 sound/oss/mpu401.c devc = &dev_conf[dev]; dev 466 sound/oss/mpu401.c if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) dev 469 sound/oss/mpu401.c devc = &dev_conf[dev]; dev 490 sound/oss/mpu401.c if ( (coprocessor = midi_devs[dev]->coproc) != NULL ) dev 493 sound/oss/mpu401.c mpu401_close(dev); dev 500 sound/oss/mpu401.c mpu401_close(dev); dev 505 sound/oss/mpu401.c set_uart_mode(dev, devc, 1); dev 522 sound/oss/mpu401.c devc = &dev_conf[dev]; dev 530 sound/oss/mpu401.c coprocessor = midi_devs[dev]->coproc; dev 545 sound/oss/mpu401.c devc = &dev_conf[dev]; dev 573 sound/oss/mpu401.c devc = &dev_conf[dev]; dev 638 sound/oss/mpu401.c if (!mpu401_out(dev, cmd->data[i])) dev 682 sound/oss/mpu401.c if ((ret = mpu401_command(dev, &rec)) < 0) dev 689 sound/oss/mpu401.c struct mpu_config *devc = &dev_conf[dev]; dev 696 sound/oss/mpu401.c if (mpu_cmd(dev, 0xD0, 0) < 0) dev 703 sound/oss/mpu401.c if (mpu_cmd(dev, 0xDF, 0) < 0) dev 728 sound/oss/mpu401.c devc = &dev_conf[dev]; dev 738 sound/oss/mpu401.c set_uart_mode(dev, devc, !val); dev 744 sound/oss/mpu401.c if ((ret = mpu401_command(dev, &rec)) < 0) dev 771 sound/oss/mpu401.c midi_dev = synth_devs[dev]->midi_dev; dev 801 sound/oss/mpu401.c midi_dev = synth_devs[dev]->midi_dev; dev 827 sound/oss/mpu401.c devc->synthno = dev; dev 860 sound/oss/mpu401.c midi_dev = synth_devs[dev]->midi_dev; dev 1184 sound/oss/mpu401.c if (mpu_cmd(dev, UART_MODE_ON, 0) < 0) dev 1375 sound/oss/mpu401.c int midi_dev = sound_timer_devs[dev]->devlink; dev 1398 sound/oss/mpu401.c int midi_dev = sound_timer_devs[dev]->devlink; dev 1411 sound/oss/mpu401.c int midi_dev = sound_timer_devs[dev]->devlink; dev 1490 sound/oss/mpu401.c int midi_dev = sound_timer_devs[dev]->devlink; dev 59 sound/oss/msnd.c devs[i] = dev; dev 69 sound/oss/msnd.c if (devs[i] == dev) dev 246 sound/oss/msnd.c register unsigned int io = dev->io; dev 258 sound/oss/msnd.c register unsigned int io = dev->io; dev 272 sound/oss/msnd.c spin_lock_irqsave(&dev->lock, flags); dev 273 sound/oss/msnd.c if (msnd_wait_HC0(dev) == 0) { dev 274 sound/oss/msnd.c msnd_outb(cmd, dev->io + HP_CVR); dev 275 sound/oss/msnd.c spin_unlock_irqrestore(&dev->lock, flags); dev 278 sound/oss/msnd.c spin_unlock_irqrestore(&dev->lock, flags); dev 288 sound/oss/msnd.c register unsigned int io = dev->io; dev 290 sound/oss/msnd.c if (msnd_wait_TXDE(dev) == 0) { dev 312 sound/oss/msnd.c if (msnd_send_word(dev, bin[i], bin[i + 1], bin[i + 2]) != 0) dev 315 sound/oss/msnd.c msnd_inb(dev->io + HP_RXL); dev 316 sound/oss/msnd.c msnd_inb(dev->io + HP_CVR); dev 325 sound/oss/msnd.c if (dev->irq_ref++) dev 330 sound/oss/msnd.c spin_lock_irqsave(&dev->lock, flags); dev 331 sound/oss/msnd.c if (msnd_wait_TXDE(dev) == 0) { dev 332 sound/oss/msnd.c msnd_outb(msnd_inb(dev->io + HP_ICR) | HPICR_TREQ, dev->io + HP_ICR); dev 333 sound/oss/msnd.c if (dev->type == msndClassic) dev 334 sound/oss/msnd.c msnd_outb(dev->irqid, dev->io + HP_IRQM); dev 335 sound/oss/msnd.c msnd_outb(msnd_inb(dev->io + HP_ICR) & ~HPICR_TREQ, dev->io + HP_ICR); dev 336 sound/oss/msnd.c msnd_outb(msnd_inb(dev->io + HP_ICR) | HPICR_RREQ, dev->io + HP_ICR); dev 337 sound/oss/msnd.c enable_irq(dev->irq); dev 338 sound/oss/msnd.c msnd_init_queue(dev->DSPQ, dev->dspq_data_buff, dev->dspq_buff_size); dev 339 sound/oss/msnd.c spin_unlock_irqrestore(&dev->lock, flags); dev 342 sound/oss/msnd.c spin_unlock_irqrestore(&dev->lock, flags); dev 353 sound/oss/msnd.c if (--dev->irq_ref > 0) dev 356 sound/oss/msnd.c if (dev->irq_ref < 0) dev 357 sound/oss/msnd.c printk(KERN_DEBUG LOGNAME ": IRQ ref count is %d\n", dev->irq_ref); dev 361 sound/oss/msnd.c spin_lock_irqsave(&dev->lock, flags); dev 362 sound/oss/msnd.c if (msnd_wait_TXDE(dev) == 0) { dev 363 sound/oss/msnd.c msnd_outb(msnd_inb(dev->io + HP_ICR) & ~HPICR_RREQ, dev->io + HP_ICR); dev 364 sound/oss/msnd.c if (dev->type == msndClassic) dev 365 sound/oss/msnd.c msnd_outb(HPIRQ_NONE, dev->io + HP_IRQM); dev 366 sound/oss/msnd.c disable_irq(dev->irq); dev 367 sound/oss/msnd.c spin_unlock_irqrestore(&dev->lock, flags); dev 370 sound/oss/msnd.c spin_unlock_irqrestore(&dev->lock, flags); dev 73 sound/oss/msnd_pinnacle.c dev.play_sample_size / 8 / \ dev 74 sound/oss/msnd_pinnacle.c dev.play_sample_rate / \ dev 75 sound/oss/msnd_pinnacle.c dev.play_channels) dev 78 sound/oss/msnd_pinnacle.c dev.rec_sample_size / 8 / \ dev 79 sound/oss/msnd_pinnacle.c dev.rec_sample_rate / \ dev 80 sound/oss/msnd_pinnacle.c dev.rec_channels) dev 82 sound/oss/msnd_pinnacle.c static multisound_dev_t dev; dev 94 sound/oss/msnd_pinnacle.c if (msnd_send_dsp_cmd(dev, cmd) == 0) dev 97 sound/oss/msnd_pinnacle.c return msnd_send_dsp_cmd(dev, cmd); dev 105 sound/oss/msnd_pinnacle.c dev.last_playbank = -1; dev 106 sound/oss/msnd_pinnacle.c writew(PCTODSP_OFFSET(0 * DAQDS__size), dev.DAPQ + JQS_wHead); dev 107 sound/oss/msnd_pinnacle.c writew(PCTODSP_OFFSET(0 * DAQDS__size), dev.DAPQ + JQS_wTail); dev 109 sound/oss/msnd_pinnacle.c for (n = 0, lpDAQ = dev.base + DAPQ_DATA_BUFF; n < 3; ++n, lpDAQ += DAQDS__size) { dev 113 sound/oss/msnd_pinnacle.c writew(dev.play_sample_size, lpDAQ + DAQDS_wSampleSize); dev 114 sound/oss/msnd_pinnacle.c writew(dev.play_channels, lpDAQ + DAQDS_wChannels); dev 115 sound/oss/msnd_pinnacle.c writew(dev.play_sample_rate, lpDAQ + DAQDS_wSampleRate); dev 127 sound/oss/msnd_pinnacle.c dev.last_recbank = 2; dev 128 sound/oss/msnd_pinnacle.c writew(PCTODSP_OFFSET(0 * DAQDS__size), dev.DARQ + JQS_wHead); dev 129 sound/oss/msnd_pinnacle.c writew(PCTODSP_OFFSET(dev.last_recbank * DAQDS__size), dev.DARQ + JQS_wTail); dev 132 sound/oss/msnd_pinnacle.c spin_lock_irqsave(&dev.lock, flags); dev 133 sound/oss/msnd_pinnacle.c msnd_outb(HPBLKSEL_1, dev.io + HP_BLKS); dev 134 sound/oss/msnd_pinnacle.c memset_io(dev.base, 0, DAR_BUFF_SIZE * 3); dev 135 sound/oss/msnd_pinnacle.c msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); dev 136 sound/oss/msnd_pinnacle.c spin_unlock_irqrestore(&dev.lock, flags); dev 138 sound/oss/msnd_pinnacle.c for (n = 0, lpDAQ = dev.base + DARQ_DATA_BUFF; n < 3; ++n, lpDAQ += DAQDS__size) { dev 142 sound/oss/msnd_pinnacle.c writew(dev.rec_sample_size, lpDAQ + DAQDS_wSampleSize); dev 143 sound/oss/msnd_pinnacle.c writew(dev.rec_channels, lpDAQ + DAQDS_wChannels); dev 144 sound/oss/msnd_pinnacle.c writew(dev.rec_sample_rate, lpDAQ + DAQDS_wSampleRate); dev 152 sound/oss/msnd_pinnacle.c if (dev.mode & FMODE_WRITE) { dev 153 sound/oss/msnd_pinnacle.c msnd_fifo_make_empty(&dev.DAPF); dev 156 sound/oss/msnd_pinnacle.c if (dev.mode & FMODE_READ) { dev 157 sound/oss/msnd_pinnacle.c msnd_fifo_make_empty(&dev.DARF); dev 167 sound/oss/msnd_pinnacle.c lpDAQ = dev.base + DAPQ_DATA_BUFF; dev 168 sound/oss/msnd_pinnacle.c lpDARQ = dev.base + DARQ_DATA_BUFF; dev 187 sound/oss/msnd_pinnacle.c dev.play_sample_size = data; dev 189 sound/oss/msnd_pinnacle.c dev.rec_sample_size = data; dev 197 sound/oss/msnd_pinnacle.c size = dev.fifosize / 4; dev 211 sound/oss/msnd_pinnacle.c lpDAQ = dev.base + DAPQ_DATA_BUFF; dev 212 sound/oss/msnd_pinnacle.c lpDARQ = dev.base + DARQ_DATA_BUFF; dev 230 sound/oss/msnd_pinnacle.c spin_lock_irqsave(&dev.lock, flags); dev 232 sound/oss/msnd_pinnacle.c abinfo.bytes = dev.DAPF.n - dev.DAPF.len; dev 233 sound/oss/msnd_pinnacle.c abinfo.fragstotal = dev.DAPF.n / abinfo.fragsize; dev 235 sound/oss/msnd_pinnacle.c spin_unlock_irqrestore(&dev.lock, flags); dev 241 sound/oss/msnd_pinnacle.c spin_lock_irqsave(&dev.lock, flags); dev 243 sound/oss/msnd_pinnacle.c abinfo.bytes = dev.DARF.n - dev.DARF.len; dev 244 sound/oss/msnd_pinnacle.c abinfo.fragstotal = dev.DARF.n / abinfo.fragsize; dev 246 sound/oss/msnd_pinnacle.c spin_unlock_irqrestore(&dev.lock, flags); dev 250 sound/oss/msnd_pinnacle.c dev.nresets = 0; dev 276 sound/oss/msnd_pinnacle.c ? dev.play_sample_size dev 280 sound/oss/msnd_pinnacle.c ? dev.rec_sample_size dev 288 sound/oss/msnd_pinnacle.c if (!test_bit(F_DISABLE_WRITE_NDELAY, &dev.flags) && dev 290 sound/oss/msnd_pinnacle.c dev.play_ndelay = 1; dev 292 sound/oss/msnd_pinnacle.c dev.rec_ndelay = 1; dev 320 sound/oss/msnd_pinnacle.c dev.play_sample_rate = data; dev 322 sound/oss/msnd_pinnacle.c dev.rec_sample_rate = data; dev 363 sound/oss/msnd_pinnacle.c dev.play_channels = data; dev 365 sound/oss/msnd_pinnacle.c dev.rec_channels = data; dev 390 sound/oss/msnd_pinnacle.c return (dev.left_levels[d] >> 8) * 100 / 0xff | dev 391 sound/oss/msnd_pinnacle.c (((dev.right_levels[d] >> 8) * 100 / 0xff) << 8); dev 398 sound/oss/msnd_pinnacle.c writew((dev.left_levels[a] >> 1) * \ dev 399 sound/oss/msnd_pinnacle.c readw(dev.SMA + SMA_wCurrMastVolLeft) / 0xffff, \ dev 400 sound/oss/msnd_pinnacle.c dev.SMA + SMA_##b##Left); \ dev 401 sound/oss/msnd_pinnacle.c writew((dev.right_levels[a] >> 1) * \ dev 402 sound/oss/msnd_pinnacle.c readw(dev.SMA + SMA_wCurrMastVolRight) / 0xffff, \ dev 403 sound/oss/msnd_pinnacle.c dev.SMA + SMA_##b##Right); dev 406 sound/oss/msnd_pinnacle.c writeb((dev.left_levels[d] >> 8) * \ dev 407 sound/oss/msnd_pinnacle.c readw(dev.SMA + SMA_wCurrMastVolLeft) / 0xffff, \ dev 408 sound/oss/msnd_pinnacle.c dev.SMA + SMA_##s##Left); \ dev 409 sound/oss/msnd_pinnacle.c writeb((dev.right_levels[d] >> 8) * \ dev 410 sound/oss/msnd_pinnacle.c readw(dev.SMA + SMA_wCurrMastVolRight) / 0xffff, \ dev 411 sound/oss/msnd_pinnacle.c dev.SMA + SMA_##s##Right); \ dev 412 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, ar) == 0) \ dev 413 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ); dev 416 sound/oss/msnd_pinnacle.c writeb(dev.left_levels[d] >> 8, \ dev 417 sound/oss/msnd_pinnacle.c dev.SMA + SMA_##s##Left); \ dev 418 sound/oss/msnd_pinnacle.c writeb(dev.right_levels[d] >> 8, \ dev 419 sound/oss/msnd_pinnacle.c dev.SMA + SMA_##s##Right); \ dev 420 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, ar) == 0) \ dev 421 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ); dev 440 sound/oss/msnd_pinnacle.c dev.left_levels[d] = wLeft; dev 441 sound/oss/msnd_pinnacle.c dev.right_levels[d] = wRight; dev 447 sound/oss/msnd_pinnacle.c writeb(bLeft, dev.SMA + SMA_bInPotPosLeft); dev 448 sound/oss/msnd_pinnacle.c writeb(bRight, dev.SMA + SMA_bInPotPosRight); dev 449 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, HDEXAR_IN_SET_POTS) == 0) dev 450 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ); dev 455 sound/oss/msnd_pinnacle.c writeb(bLeft, dev.SMA + SMA_bMicPotPosLeft); dev 456 sound/oss/msnd_pinnacle.c writeb(bRight, dev.SMA + SMA_bMicPotPosRight); dev 457 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, HDEXAR_MIC_SET_POTS) == 0) dev 458 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ); dev 462 sound/oss/msnd_pinnacle.c writew(wLeft, dev.SMA + SMA_wCurrMastVolLeft); dev 463 sound/oss/msnd_pinnacle.c writew(wRight, dev.SMA + SMA_wCurrMastVolRight); dev 509 sound/oss/msnd_pinnacle.c if (dev.recsrc == recsrc) dev 510 sound/oss/msnd_pinnacle.c return dev.recsrc; dev 513 sound/oss/msnd_pinnacle.c dev.recsrc = 0; dev 516 sound/oss/msnd_pinnacle.c dev.recsrc ^= recsrc; dev 519 sound/oss/msnd_pinnacle.c if (dev.recsrc & SOUND_MASK_IMIX) { dev 520 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, HDEXAR_SET_ANA_IN) == 0) dev 521 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ); dev 523 sound/oss/msnd_pinnacle.c else if (dev.recsrc & SOUND_MASK_SYNTH) { dev 524 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, HDEXAR_SET_SYNTH_IN) == 0) dev 525 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ); dev 527 sound/oss/msnd_pinnacle.c else if ((dev.recsrc & SOUND_MASK_DIGITAL1) && test_bit(F_HAVEDIGITAL, &dev.flags)) { dev 528 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, HDEXAR_SET_DAT_IN) == 0) dev 529 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ); dev 534 sound/oss/msnd_pinnacle.c dev.recsrc = 0; dev 536 sound/oss/msnd_pinnacle.c dev.recsrc = SOUND_MASK_IMIX; dev 537 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, HDEXAR_SET_ANA_IN) == 0) dev 538 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ); dev 543 sound/oss/msnd_pinnacle.c return dev.recsrc; dev 548 sound/oss/msnd_pinnacle.c dev.recsrc = 0; dev 562 sound/oss/msnd_pinnacle.c info.modify_counter = dev.mixer_mod_count; dev 573 sound/oss/msnd_pinnacle.c dev.nresets = 0; dev 593 sound/oss/msnd_pinnacle.c ++dev.mixer_mod_count; dev 598 sound/oss/msnd_pinnacle.c val = dev.recsrc; dev 620 sound/oss/msnd_pinnacle.c if (test_bit(F_HAVEDIGITAL, &dev.flags)) dev 651 sound/oss/msnd_pinnacle.c if (minor == dev.dsp_minor) dev 653 sound/oss/msnd_pinnacle.c else if (minor == dev.mixer_minor) dev 661 sound/oss/msnd_pinnacle.c if (!(dev.mode & FMODE_WRITE) || !test_bit(F_WRITING, &dev.flags)) dev 663 sound/oss/msnd_pinnacle.c set_bit(F_WRITEFLUSH, &dev.flags); dev 665 sound/oss/msnd_pinnacle.c &dev.writeflush, dev 666 sound/oss/msnd_pinnacle.c get_play_delay_jiffies(dev.DAPF.len)); dev 667 sound/oss/msnd_pinnacle.c clear_bit(F_WRITEFLUSH, &dev.flags); dev 672 sound/oss/msnd_pinnacle.c clear_bit(F_WRITING, &dev.flags); dev 677 sound/oss/msnd_pinnacle.c if ((file ? file->f_mode : dev.mode) & FMODE_READ) { dev 678 sound/oss/msnd_pinnacle.c clear_bit(F_READING, &dev.flags); dev 679 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_RECORD_STOP); dev 680 sound/oss/msnd_pinnacle.c msnd_disable_irq(&dev); dev 683 sound/oss/msnd_pinnacle.c dev.mode &= ~FMODE_READ; dev 685 sound/oss/msnd_pinnacle.c clear_bit(F_AUDIO_READ_INUSE, &dev.flags); dev 687 sound/oss/msnd_pinnacle.c if ((file ? file->f_mode : dev.mode) & FMODE_WRITE) { dev 688 sound/oss/msnd_pinnacle.c if (test_bit(F_WRITING, &dev.flags)) { dev 690 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_PLAY_STOP); dev 692 sound/oss/msnd_pinnacle.c msnd_disable_irq(&dev); dev 695 sound/oss/msnd_pinnacle.c dev.mode &= ~FMODE_WRITE; dev 697 sound/oss/msnd_pinnacle.c clear_bit(F_AUDIO_WRITE_INUSE, &dev.flags); dev 709 sound/oss/msnd_pinnacle.c if ((file ? file->f_mode : dev.mode) & FMODE_WRITE) { dev 710 sound/oss/msnd_pinnacle.c set_bit(F_AUDIO_WRITE_INUSE, &dev.flags); dev 711 sound/oss/msnd_pinnacle.c clear_bit(F_WRITING, &dev.flags); dev 712 sound/oss/msnd_pinnacle.c msnd_fifo_make_empty(&dev.DAPF); dev 716 sound/oss/msnd_pinnacle.c dev.mode |= FMODE_WRITE; dev 718 sound/oss/msnd_pinnacle.c msnd_enable_irq(&dev); dev 720 sound/oss/msnd_pinnacle.c if ((file ? file->f_mode : dev.mode) & FMODE_READ) { dev 721 sound/oss/msnd_pinnacle.c set_bit(F_AUDIO_READ_INUSE, &dev.flags); dev 722 sound/oss/msnd_pinnacle.c clear_bit(F_READING, &dev.flags); dev 723 sound/oss/msnd_pinnacle.c msnd_fifo_make_empty(&dev.DARF); dev 727 sound/oss/msnd_pinnacle.c dev.mode |= FMODE_READ; dev 729 sound/oss/msnd_pinnacle.c msnd_enable_irq(&dev); dev 736 sound/oss/msnd_pinnacle.c dev.play_sample_size = DEFSAMPLESIZE; dev 737 sound/oss/msnd_pinnacle.c dev.play_sample_rate = DEFSAMPLERATE; dev 738 sound/oss/msnd_pinnacle.c dev.play_channels = DEFCHANNELS; dev 743 sound/oss/msnd_pinnacle.c dev.rec_sample_size = DEFSAMPLESIZE; dev 744 sound/oss/msnd_pinnacle.c dev.rec_sample_rate = DEFSAMPLERATE; dev 745 sound/oss/msnd_pinnacle.c dev.rec_channels = DEFCHANNELS; dev 759 sound/oss/msnd_pinnacle.c if (minor == dev.dsp_minor) { dev 761 sound/oss/msnd_pinnacle.c test_bit(F_AUDIO_WRITE_INUSE, &dev.flags)) || dev 763 sound/oss/msnd_pinnacle.c test_bit(F_AUDIO_READ_INUSE, &dev.flags))) dev 767 sound/oss/msnd_pinnacle.c dev.nresets = 0; dev 770 sound/oss/msnd_pinnacle.c if (!test_bit(F_DISABLE_WRITE_NDELAY, &dev.flags)) dev 771 sound/oss/msnd_pinnacle.c dev.play_ndelay = (file->f_flags & O_NDELAY) ? 1 : 0; dev 773 sound/oss/msnd_pinnacle.c dev.play_ndelay = 0; dev 777 sound/oss/msnd_pinnacle.c dev.rec_ndelay = (file->f_flags & O_NDELAY) ? 1 : 0; dev 781 sound/oss/msnd_pinnacle.c else if (minor == dev.mixer_minor) { dev 795 sound/oss/msnd_pinnacle.c if (minor == dev.dsp_minor) dev 797 sound/oss/msnd_pinnacle.c else if (minor == dev.mixer_minor) { dev 812 sound/oss/msnd_pinnacle.c wTmp = readw(dev.DARQ + JQS_wTail) + PCTODSP_OFFSET(DAQDS__size); dev 813 sound/oss/msnd_pinnacle.c if (wTmp > readw(dev.DARQ + JQS_wSize)) dev 815 sound/oss/msnd_pinnacle.c while (wTmp == readw(dev.DARQ + JQS_wHead) && timeout--) dev 817 sound/oss/msnd_pinnacle.c writew(wTmp, dev.DARQ + JQS_wTail); dev 820 sound/oss/msnd_pinnacle.c DAQD = bank * DAQDS__size + dev.base + DARQ_DATA_BUFF; dev 827 sound/oss/msnd_pinnacle.c msnd_outb(HPBLKSEL_1, dev.io + HP_BLKS); dev 829 sound/oss/msnd_pinnacle.c &dev.DARF, dev 830 sound/oss/msnd_pinnacle.c dev.base + bank * DAR_BUFF_SIZE, dev 832 sound/oss/msnd_pinnacle.c msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); dev 843 sound/oss/msnd_pinnacle.c DAPQ_tail = readw(dev.DAPQ + JQS_wTail); dev 844 sound/oss/msnd_pinnacle.c while (DAPQ_tail != readw(dev.DAPQ + JQS_wHead) || start) { dev 852 sound/oss/msnd_pinnacle.c spin_lock_irqsave(&dev.lock, flags); dev 854 sound/oss/msnd_pinnacle.c &dev.DAPF, dev 855 sound/oss/msnd_pinnacle.c dev.base + bank_num * DAP_BUFF_SIZE, dev 857 sound/oss/msnd_pinnacle.c spin_unlock_irqrestore(&dev.lock, flags); dev 860 sound/oss/msnd_pinnacle.c &dev.DAPF, dev 861 sound/oss/msnd_pinnacle.c dev.base + bank_num * DAP_BUFF_SIZE, dev 871 sound/oss/msnd_pinnacle.c DAQD = bank_num * DAQDS__size + dev.base + DAPQ_DATA_BUFF; dev 879 sound/oss/msnd_pinnacle.c writew(DAPQ_tail, dev.DAPQ + JQS_wTail); dev 881 sound/oss/msnd_pinnacle.c msnd_send_dsp_cmd(&dev, HDEX_PLAY_START); dev 903 sound/oss/msnd_pinnacle.c spin_lock_irqsave(&dev.lock, flags); dev 904 sound/oss/msnd_pinnacle.c n = msnd_fifo_read(&dev.DARF, page, k); dev 905 sound/oss/msnd_pinnacle.c spin_unlock_irqrestore(&dev.lock, flags); dev 916 sound/oss/msnd_pinnacle.c if (!test_bit(F_READING, &dev.flags) && dev.mode & FMODE_READ) { dev 917 sound/oss/msnd_pinnacle.c dev.last_recbank = -1; dev 918 sound/oss/msnd_pinnacle.c if (chk_send_dsp_cmd(&dev, HDEX_RECORD_START) == 0) dev 919 sound/oss/msnd_pinnacle.c set_bit(F_READING, &dev.flags); dev 922 sound/oss/msnd_pinnacle.c if (dev.rec_ndelay) { dev 928 sound/oss/msnd_pinnacle.c set_bit(F_READBLOCK, &dev.flags); dev 930 sound/oss/msnd_pinnacle.c &dev.readblock, dev 932 sound/oss/msnd_pinnacle.c clear_bit(F_READING, &dev.flags); dev 933 sound/oss/msnd_pinnacle.c clear_bit(F_READBLOCK, &dev.flags); dev 966 sound/oss/msnd_pinnacle.c spin_lock_irqsave(&dev.lock, flags); dev 967 sound/oss/msnd_pinnacle.c n = msnd_fifo_write(&dev.DAPF, page, k); dev 968 sound/oss/msnd_pinnacle.c spin_unlock_irqrestore(&dev.lock, flags); dev 975 sound/oss/msnd_pinnacle.c if (!test_bit(F_WRITING, &dev.flags) && (dev.mode & FMODE_WRITE)) { dev 976 sound/oss/msnd_pinnacle.c dev.last_playbank = -1; dev 978 sound/oss/msnd_pinnacle.c set_bit(F_WRITING, &dev.flags); dev 981 sound/oss/msnd_pinnacle.c if (dev.play_ndelay) { dev 987 sound/oss/msnd_pinnacle.c set_bit(F_WRITEBLOCK, &dev.flags); dev 989 sound/oss/msnd_pinnacle.c &dev.writeblock, dev 991 sound/oss/msnd_pinnacle.c clear_bit(F_WRITEBLOCK, &dev.flags); dev 1006 sound/oss/msnd_pinnacle.c if (minor == dev.dsp_minor) dev 1015 sound/oss/msnd_pinnacle.c if (minor == dev.dsp_minor) dev 1025 sound/oss/msnd_pinnacle.c if (dev.last_playbank == LOBYTE(wMessage) || !test_bit(F_WRITING, &dev.flags)) dev 1027 sound/oss/msnd_pinnacle.c dev.last_playbank = LOBYTE(wMessage); dev 1030 sound/oss/msnd_pinnacle.c if (!test_bit(F_WRITEBLOCK, &dev.flags)) { dev 1031 sound/oss/msnd_pinnacle.c if (test_and_clear_bit(F_WRITEFLUSH, &dev.flags)) dev 1032 sound/oss/msnd_pinnacle.c wake_up_interruptible(&dev.writeflush); dev 1034 sound/oss/msnd_pinnacle.c clear_bit(F_WRITING, &dev.flags); dev 1037 sound/oss/msnd_pinnacle.c if (test_bit(F_WRITEBLOCK, &dev.flags)) dev 1038 sound/oss/msnd_pinnacle.c wake_up_interruptible(&dev.writeblock); dev 1042 sound/oss/msnd_pinnacle.c if (dev.last_recbank == LOBYTE(wMessage)) dev 1044 sound/oss/msnd_pinnacle.c dev.last_recbank = LOBYTE(wMessage); dev 1046 sound/oss/msnd_pinnacle.c pack_DARQ_to_DARF(dev.last_recbank); dev 1048 sound/oss/msnd_pinnacle.c if (test_bit(F_READBLOCK, &dev.flags)) dev 1049 sound/oss/msnd_pinnacle.c wake_up_interruptible(&dev.readblock); dev 1059 sound/oss/msnd_pinnacle.c clear_bit(F_WRITING, &dev.flags); dev 1064 sound/oss/msnd_pinnacle.c clear_bit(F_READING, &dev.flags); dev 1075 sound/oss/msnd_pinnacle.c if (dev.midi_in_interrupt) dev 1076 sound/oss/msnd_pinnacle.c (*dev.midi_in_interrupt)(&dev); dev 1088 sound/oss/msnd_pinnacle.c msnd_inb(dev.io + HP_RXL); dev 1091 sound/oss/msnd_pinnacle.c while (readw(dev.DSPQ + JQS_wTail) != readw(dev.DSPQ + JQS_wHead)) { dev 1094 sound/oss/msnd_pinnacle.c eval_dsp_msg(readw(dev.pwDSPQData + 2*readw(dev.DSPQ + JQS_wHead))); dev 1096 sound/oss/msnd_pinnacle.c if ((wTmp = readw(dev.DSPQ + JQS_wHead) + 1) > readw(dev.DSPQ + JQS_wSize)) dev 1097 sound/oss/msnd_pinnacle.c writew(0, dev.DSPQ + JQS_wHead); dev 1099 sound/oss/msnd_pinnacle.c writew(wTmp, dev.DSPQ + JQS_wHead); dev 1117 sound/oss/msnd_pinnacle.c msnd_outb(HPDSPRESET_ON, dev.io + HP_DSPR); dev 1120 sound/oss/msnd_pinnacle.c dev.info = msnd_inb(dev.io + HP_INFO); dev 1122 sound/oss/msnd_pinnacle.c msnd_outb(HPDSPRESET_OFF, dev.io + HP_DSPR); dev 1125 sound/oss/msnd_pinnacle.c if (msnd_inb(dev.io + HP_CVR) == HP_CVR_DEF) dev 1142 sound/oss/msnd_pinnacle.c if (!request_region(dev.io, dev.numio, "probing")) { dev 1148 sound/oss/msnd_pinnacle.c release_region(dev.io, dev.numio); dev 1153 sound/oss/msnd_pinnacle.c dev.name = "Classic/Tahiti/Monterey"; dev 1156 sound/oss/msnd_pinnacle.c switch (dev.info >> 4) { dev 1164 sound/oss/msnd_pinnacle.c switch (dev.info & 0x7) { dev 1165 sound/oss/msnd_pinnacle.c case 0x0: rev = "I"; dev.name = pin; break; dev 1166 sound/oss/msnd_pinnacle.c case 0x1: rev = "F"; dev.name = pin; break; dev 1167 sound/oss/msnd_pinnacle.c case 0x2: rev = "G"; dev.name = pin; break; dev 1168 sound/oss/msnd_pinnacle.c case 0x3: rev = "H"; dev.name = pin; break; dev 1169 sound/oss/msnd_pinnacle.c case 0x4: rev = "E"; dev.name = fiji; break; dev 1170 sound/oss/msnd_pinnacle.c case 0x5: rev = "C"; dev.name = fiji; break; dev 1171 sound/oss/msnd_pinnacle.c case 0x6: rev = "D"; dev.name = fiji; break; dev 1174 sound/oss/msnd_pinnacle.c dev.name = pinfiji; dev 1180 sound/oss/msnd_pinnacle.c dev.name, dev 1184 sound/oss/msnd_pinnacle.c dev.io, dev.io + dev.numio - 1, dev 1185 sound/oss/msnd_pinnacle.c dev.irq, dev 1186 sound/oss/msnd_pinnacle.c dev.base, dev.base + 0x7fff); dev 1188 sound/oss/msnd_pinnacle.c release_region(dev.io, dev.numio); dev 1199 sound/oss/msnd_pinnacle.c msnd_outb(dev.memid, dev.io + HP_MEMM); dev 1201 sound/oss/msnd_pinnacle.c msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); dev 1203 sound/oss/msnd_pinnacle.c mastVolLeft = readw(dev.SMA + SMA_wCurrMastVolLeft); dev 1204 sound/oss/msnd_pinnacle.c mastVolRight = readw(dev.SMA + SMA_wCurrMastVolRight); dev 1207 sound/oss/msnd_pinnacle.c memset_io(dev.base, 0, 0x8000); dev 1210 sound/oss/msnd_pinnacle.c spin_lock_irqsave(&dev.lock, flags); dev 1211 sound/oss/msnd_pinnacle.c msnd_outb(HPBLKSEL_1, dev.io + HP_BLKS); dev 1212 sound/oss/msnd_pinnacle.c memset_io(dev.base, 0, 0x8000); dev 1213 sound/oss/msnd_pinnacle.c msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); dev 1214 sound/oss/msnd_pinnacle.c spin_unlock_irqrestore(&dev.lock, flags); dev 1216 sound/oss/msnd_pinnacle.c dev.pwDSPQData = (dev.base + DSPQ_DATA_BUFF); dev 1217 sound/oss/msnd_pinnacle.c dev.pwMODQData = (dev.base + MODQ_DATA_BUFF); dev 1218 sound/oss/msnd_pinnacle.c dev.pwMIDQData = (dev.base + MIDQ_DATA_BUFF); dev 1221 sound/oss/msnd_pinnacle.c dev.SMA = dev.base + SMA_STRUCT_START; dev 1224 sound/oss/msnd_pinnacle.c dev.DAPQ = dev.base + DAPQ_OFFSET; dev 1225 sound/oss/msnd_pinnacle.c msnd_init_queue(dev.DAPQ, DAPQ_DATA_BUFF, DAPQ_BUFF_SIZE); dev 1228 sound/oss/msnd_pinnacle.c dev.DARQ = dev.base + DARQ_OFFSET; dev 1229 sound/oss/msnd_pinnacle.c msnd_init_queue(dev.DARQ, DARQ_DATA_BUFF, DARQ_BUFF_SIZE); dev 1232 sound/oss/msnd_pinnacle.c dev.MODQ = dev.base + MODQ_OFFSET; dev 1233 sound/oss/msnd_pinnacle.c msnd_init_queue(dev.MODQ, MODQ_DATA_BUFF, MODQ_BUFF_SIZE); dev 1236 sound/oss/msnd_pinnacle.c dev.MIDQ = dev.base + MIDQ_OFFSET; dev 1237 sound/oss/msnd_pinnacle.c msnd_init_queue(dev.MIDQ, MIDQ_DATA_BUFF, MIDQ_BUFF_SIZE); dev 1240 sound/oss/msnd_pinnacle.c dev.DSPQ = dev.base + DSPQ_OFFSET; dev 1241 sound/oss/msnd_pinnacle.c msnd_init_queue(dev.DSPQ, DSPQ_DATA_BUFF, DSPQ_BUFF_SIZE); dev 1245 sound/oss/msnd_pinnacle.c writew(1, dev.SMA + SMA_wCurrPlayFormat); dev 1246 sound/oss/msnd_pinnacle.c writew(dev.play_sample_size, dev.SMA + SMA_wCurrPlaySampleSize); dev 1247 sound/oss/msnd_pinnacle.c writew(dev.play_channels, dev.SMA + SMA_wCurrPlayChannels); dev 1248 sound/oss/msnd_pinnacle.c writew(dev.play_sample_rate, dev.SMA + SMA_wCurrPlaySampleRate); dev 1250 sound/oss/msnd_pinnacle.c writew(dev.play_sample_rate, dev.SMA + SMA_wCalFreqAtoD); dev 1251 sound/oss/msnd_pinnacle.c writew(mastVolLeft, dev.SMA + SMA_wCurrMastVolLeft); dev 1252 sound/oss/msnd_pinnacle.c writew(mastVolRight, dev.SMA + SMA_wCurrMastVolRight); dev 1254 sound/oss/msnd_pinnacle.c writel(0x00010000, dev.SMA + SMA_dwCurrPlayPitch); dev 1255 sound/oss/msnd_pinnacle.c writel(0x00000001, dev.SMA + SMA_dwCurrPlayRate); dev 1257 sound/oss/msnd_pinnacle.c writew(0x303, dev.SMA + SMA_wCurrInputTagBits); dev 1266 sound/oss/msnd_pinnacle.c writew(srate, dev.SMA + SMA_wCalFreqAtoD); dev 1267 sound/oss/msnd_pinnacle.c if (dev.calibrate_signal == 0) dev 1268 sound/oss/msnd_pinnacle.c writew(readw(dev.SMA + SMA_wCurrHostStatusFlags) dev 1269 sound/oss/msnd_pinnacle.c | 0x0001, dev.SMA + SMA_wCurrHostStatusFlags); dev 1271 sound/oss/msnd_pinnacle.c writew(readw(dev.SMA + SMA_wCurrHostStatusFlags) dev 1272 sound/oss/msnd_pinnacle.c & ~0x0001, dev.SMA + SMA_wCurrHostStatusFlags); dev 1273 sound/oss/msnd_pinnacle.c if (msnd_send_word(&dev, 0, 0, HDEXAR_CAL_A_TO_D) == 0 && dev 1274 sound/oss/msnd_pinnacle.c chk_send_dsp_cmd(&dev, HDEX_AUX_REQ) == 0) { dev 1286 sound/oss/msnd_pinnacle.c msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); dev 1301 sound/oss/msnd_pinnacle.c memcpy_toio(dev.base, PERMCODE, PERMCODESIZE); dev 1302 sound/oss/msnd_pinnacle.c if (msnd_upload_host(&dev, INITCODE, INITCODESIZE) < 0) { dev 1323 sound/oss/msnd_pinnacle.c msnd_outb(HPPRORESET_ON, dev.io + HP_PROR); dev 1325 sound/oss/msnd_pinnacle.c msnd_outb(HPPRORESET_OFF, dev.io + HP_PROR); dev 1335 sound/oss/msnd_pinnacle.c msnd_outb(HPWAITSTATE_0, dev.io + HP_WAIT); dev 1336 sound/oss/msnd_pinnacle.c msnd_outb(HPBITMODE_16, dev.io + HP_BITM); dev 1354 sound/oss/msnd_pinnacle.c while (readw(dev.base)) { dev 1371 sound/oss/msnd_pinnacle.c if (test_bit(F_RESETTING, &dev.flags) || ++dev.nresets > 10) dev 1374 sound/oss/msnd_pinnacle.c set_bit(F_RESETTING, &dev.flags); dev 1379 sound/oss/msnd_pinnacle.c force_recsrc(dev.recsrc); dev 1381 sound/oss/msnd_pinnacle.c clear_bit(F_RESETTING, &dev.flags); dev 1390 sound/oss/msnd_pinnacle.c if ((err = request_irq(dev.irq, intr, 0, dev.name, &dev)) < 0) { dev 1391 sound/oss/msnd_pinnacle.c printk(KERN_ERR LOGNAME ": Couldn't grab IRQ %d\n", dev.irq); dev 1394 sound/oss/msnd_pinnacle.c request_region(dev.io, dev.numio, dev.name); dev 1397 sound/oss/msnd_pinnacle.c release_region(dev.io, dev.numio); dev 1398 sound/oss/msnd_pinnacle.c free_irq(dev.irq, &dev); dev 1402 sound/oss/msnd_pinnacle.c if ((err = msnd_register(&dev)) < 0) { dev 1404 sound/oss/msnd_pinnacle.c release_region(dev.io, dev.numio); dev 1405 sound/oss/msnd_pinnacle.c free_irq(dev.irq, &dev); dev 1409 sound/oss/msnd_pinnacle.c if ((dev.dsp_minor = register_sound_dsp(&dev_fileops, -1)) < 0) { dev 1411 sound/oss/msnd_pinnacle.c msnd_unregister(&dev); dev 1412 sound/oss/msnd_pinnacle.c release_region(dev.io, dev.numio); dev 1413 sound/oss/msnd_pinnacle.c free_irq(dev.irq, &dev); dev 1414 sound/oss/msnd_pinnacle.c return dev.dsp_minor; dev 1417 sound/oss/msnd_pinnacle.c if ((dev.mixer_minor = register_sound_mixer(&dev_fileops, -1)) < 0) { dev 1419 sound/oss/msnd_pinnacle.c unregister_sound_mixer(dev.mixer_minor); dev 1420 sound/oss/msnd_pinnacle.c msnd_unregister(&dev); dev 1421 sound/oss/msnd_pinnacle.c release_region(dev.io, dev.numio); dev 1422 sound/oss/msnd_pinnacle.c free_irq(dev.irq, &dev); dev 1423 sound/oss/msnd_pinnacle.c return dev.mixer_minor; dev 1426 sound/oss/msnd_pinnacle.c dev.ext_midi_dev = dev.hdr_midi_dev = -1; dev 1428 sound/oss/msnd_pinnacle.c disable_irq(dev.irq); dev 1429 sound/oss/msnd_pinnacle.c calibrate_adc(dev.play_sample_rate); dev 1439 sound/oss/msnd_pinnacle.c release_region(dev.io, dev.numio); dev 1440 sound/oss/msnd_pinnacle.c free_irq(dev.irq, &dev); dev 1441 sound/oss/msnd_pinnacle.c unregister_sound_mixer(dev.mixer_minor); dev 1442 sound/oss/msnd_pinnacle.c unregister_sound_dsp(dev.dsp_minor); dev 1443 sound/oss/msnd_pinnacle.c msnd_unregister(&dev); dev 1784 sound/oss/msnd_pinnacle.c case 5: dev.irqid = HPIRQ_5; break; dev 1785 sound/oss/msnd_pinnacle.c case 7: dev.irqid = HPIRQ_7; break; dev 1786 sound/oss/msnd_pinnacle.c case 9: dev.irqid = HPIRQ_9; break; dev 1787 sound/oss/msnd_pinnacle.c case 10: dev.irqid = HPIRQ_10; break; dev 1788 sound/oss/msnd_pinnacle.c case 11: dev.irqid = HPIRQ_11; break; dev 1789 sound/oss/msnd_pinnacle.c case 12: dev.irqid = HPIRQ_12; break; dev 1793 sound/oss/msnd_pinnacle.c case 0xb0000: dev.memid = HPMEM_B000; break; dev 1794 sound/oss/msnd_pinnacle.c case 0xc8000: dev.memid = HPMEM_C800; break; dev 1795 sound/oss/msnd_pinnacle.c case 0xd0000: dev.memid = HPMEM_D000; break; dev 1796 sound/oss/msnd_pinnacle.c case 0xd8000: dev.memid = HPMEM_D800; break; dev 1797 sound/oss/msnd_pinnacle.c case 0xe0000: dev.memid = HPMEM_E000; break; dev 1798 sound/oss/msnd_pinnacle.c case 0xe8000: dev.memid = HPMEM_E800; break; dev 1850 sound/oss/msnd_pinnacle.c dev.type = msndClassic; dev 1852 sound/oss/msnd_pinnacle.c dev.type = msndPinnacle; dev 1854 sound/oss/msnd_pinnacle.c dev.io = io; dev 1855 sound/oss/msnd_pinnacle.c dev.numio = DSP_NUMIO; dev 1856 sound/oss/msnd_pinnacle.c dev.irq = irq; dev 1857 sound/oss/msnd_pinnacle.c dev.base = ioremap(mem, 0x8000); dev 1858 sound/oss/msnd_pinnacle.c dev.fifosize = fifosize * 1024; dev 1859 sound/oss/msnd_pinnacle.c dev.calibrate_signal = calibrate_signal ? 1 : 0; dev 1860 sound/oss/msnd_pinnacle.c dev.recsrc = 0; dev 1861 sound/oss/msnd_pinnacle.c dev.dspq_data_buff = DSPQ_DATA_BUFF; dev 1862 sound/oss/msnd_pinnacle.c dev.dspq_buff_size = DSPQ_BUFF_SIZE; dev 1866 sound/oss/msnd_pinnacle.c clear_bit(F_DISABLE_WRITE_NDELAY, &dev.flags); dev 1868 sound/oss/msnd_pinnacle.c set_bit(F_DISABLE_WRITE_NDELAY, &dev.flags); dev 1871 sound/oss/msnd_pinnacle.c set_bit(F_HAVEDIGITAL, &dev.flags); dev 1873 sound/oss/msnd_pinnacle.c init_waitqueue_head(&dev.writeblock); dev 1874 sound/oss/msnd_pinnacle.c init_waitqueue_head(&dev.readblock); dev 1875 sound/oss/msnd_pinnacle.c init_waitqueue_head(&dev.writeflush); dev 1876 sound/oss/msnd_pinnacle.c msnd_fifo_init(&dev.DAPF); dev 1877 sound/oss/msnd_pinnacle.c msnd_fifo_init(&dev.DARF); dev 1878 sound/oss/msnd_pinnacle.c spin_lock_init(&dev.lock); dev 1879 sound/oss/msnd_pinnacle.c printk(KERN_INFO LOGNAME ": %u byte audio FIFOs (x2)\n", dev.fifosize); dev 1880 sound/oss/msnd_pinnacle.c if ((err = msnd_fifo_alloc(&dev.DAPF, dev.fifosize)) < 0) { dev 1885 sound/oss/msnd_pinnacle.c if ((err = msnd_fifo_alloc(&dev.DARF, dev.fifosize)) < 0) { dev 1887 sound/oss/msnd_pinnacle.c msnd_fifo_free(&dev.DAPF); dev 1893 sound/oss/msnd_pinnacle.c msnd_fifo_free(&dev.DAPF); dev 1894 sound/oss/msnd_pinnacle.c msnd_fifo_free(&dev.DARF); dev 1900 sound/oss/msnd_pinnacle.c msnd_fifo_free(&dev.DAPF); dev 1901 sound/oss/msnd_pinnacle.c msnd_fifo_free(&dev.DARF); dev 1911 sound/oss/msnd_pinnacle.c msnd_fifo_free(&dev.DAPF); dev 1912 sound/oss/msnd_pinnacle.c msnd_fifo_free(&dev.DARF); dev 814 sound/oss/opl3.c opl3_reset(dev); dev 975 sound/oss/opl3.c bend_pitch(dev, voice, value); dev 997 sound/oss/opl3.c bend_pitch(dev, voice, value - 8192); dev 1069 sound/oss/opl3.c &synth_devs[dev]->chn_info[chn]; dev 1071 sound/oss/opl3.c opl3_set_instr(dev, voice, info->pgm_num); dev 33 sound/oss/pas2_midi.c static void (*midi_input_intr) (int dev, unsigned char data); dev 212 sound/oss/pas2_midi.c int dev = sound_alloc_mididev(); dev 214 sound/oss/pas2_midi.c if (dev == -1) dev 219 sound/oss/pas2_midi.c std_midi_synth.midi_dev = my_dev = dev; dev 220 sound/oss/pas2_midi.c midi_devs[dev] = &pas_midi_operations; dev 221 sound/oss/pas2_midi.c pas2_mididev = dev; dev 246 sound/oss/pas2_pcm.c pas_audio_reset(dev); dev 262 sound/oss/pas2_pcm.c if (audio_devs[dev]->dmap_out->dma > 3) dev 265 sound/oss/pas2_pcm.c if (audio_devs[dev]->flags & DMA_AUTOMODE && dev 277 sound/oss/pas2_pcm.c if (audio_devs[dev]->dmap_out->dma > 3) dev 309 sound/oss/pas2_pcm.c if (audio_devs[dev]->dmap_out->dma > 3) dev 321 sound/oss/pas2_pcm.c if (audio_devs[dev]->dmap_out->dma > 3) dev 365 sound/oss/pas2_pcm.c pas_audio_reset(dev); dev 371 sound/oss/pas2_pcm.c pas_audio_reset(dev); dev 224 sound/oss/pss.c tmp = inw(REG(dev)) & ~0x38; /* Load confreg, mask IRQ bits out */ dev 231 sound/oss/pss.c outw(tmp | bits, REG(dev)); dev 237 sound/oss/pss.c unsigned short tmp = inw(REG(dev)) & 0x003f; dev 240 sound/oss/pss.c outw(bits | tmp, REG(dev)); dev 256 sound/oss/pss.c tmp = inw(REG(dev)) & ~0x07; /* Load confreg, mask DMA bits out */ dev 263 sound/oss/pss.c outw(tmp | bits, REG(dev)); dev 512 sound/oss/pss.c pss_confdata *devc = mixer_devs[dev]->devc; dev 81 sound/oss/sb.h int dev; dev 138 sound/oss/sb.h void (*midi_input_intr) (int dev, unsigned char data); dev 36 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 99 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 107 sound/oss/sb_audio.c dmap_temp = audio_devs[dev]->dmap_out; dev 108 sound/oss/sb_audio.c audio_devs[dev]->dmap_out = audio_devs[dev]->dmap_in; dev 109 sound/oss/sb_audio.c audio_devs[dev]->dmap_in = dmap_temp; dev 111 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = devc->dma8; dev 112 sound/oss/sb_audio.c audio_devs[dev]->dmap_in->dma = ( devc->duplex ) ? dev 131 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 151 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 177 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 181 sound/oss/sb_audio.c if (audio_devs[dev]->dmap_out->dma > 3) dev 203 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 211 sound/oss/sb_audio.c if (audio_devs[dev]->dmap_out->dma > 3) dev 232 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 243 sound/oss/sb_audio.c sb1_audio_start_input(dev, devc->trg_buf, devc->trg_bytes, dev 248 sound/oss/sb_audio.c sb1_audio_output_block(dev, devc->trg_buf, devc->trg_bytes, dev 258 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 273 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 288 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 313 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 319 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 326 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 342 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 347 sound/oss/sb_audio.c if (audio_devs[dev]->dmap_out->dma > 3) dev 377 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 386 sound/oss/sb_audio.c if (audio_devs[dev]->dmap_out->dma > 3) dev 414 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 424 sound/oss/sb_audio.c sb20_audio_start_input(dev, devc->trg_buf, devc->trg_bytes, dev 429 sound/oss/sb_audio.c sb20_audio_output_block(dev, devc->trg_buf, devc->trg_bytes, dev 443 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 470 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 475 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = audio_devs[dev]->dmap_in->dma = dev 498 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 504 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = audio_devs[dev]->dmap_in->dma = devc->bits == 16 ? devc->dma16 : devc->dma8; dev 540 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 550 sound/oss/sb_audio.c sb201_audio_set_speed(dev, speed); dev 557 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 565 sound/oss/sb_audio.c sbpro_audio_set_speed(dev, devc->speed); dev 573 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 601 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 619 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 634 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 638 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = dev 639 sound/oss/sb_audio.c audio_devs[dev]->dmap_in->dma = dev 645 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = devc->dma8; dev 646 sound/oss/sb_audio.c audio_devs[dev]->dmap_in->dma = devc->dma16; dev 650 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = devc->dma16; dev 651 sound/oss/sb_audio.c audio_devs[dev]->dmap_in->dma = devc->dma8; dev 660 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 664 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = dev 665 sound/oss/sb_audio.c audio_devs[dev]->dmap_in->dma = dev 671 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = devc->dma8; dev 672 sound/oss/sb_audio.c audio_devs[dev]->dmap_in->dma = devc->dma16; dev 676 sound/oss/sb_audio.c audio_devs[dev]->dmap_out->dma = devc->dma16; dev 677 sound/oss/sb_audio.c audio_devs[dev]->dmap_in->dma = devc->dma8; dev 688 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 745 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 782 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 796 sound/oss/sb_audio.c sb16_audio_start_input(dev, dev 803 sound/oss/sb_audio.c sb16_audio_output_block(dev, dev 815 sound/oss/sb_audio.c sb16_audio_start_input(dev, dev 822 sound/oss/sb_audio.c sb16_audio_output_block(dev, dev 845 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 925 sound/oss/sb_audio.c sb_devc *devc = audio_devs[dev]->devc; dev 1087 sound/oss/sb_audio.c if ((devc->dev = sound_install_audiodrv(AUDIO_DRIVER_VERSION, dev 1096 sound/oss/sb_audio.c audio_devs[devc->dev]->mixer_dev = devc->my_mixerdev; dev 1097 sound/oss/sb_audio.c audio_devs[devc->dev]->min_fragment = 5; dev 180 sound/oss/sb_card.c scc->conf.io_base = pnp_port_start(dev,0); dev 181 sound/oss/sb_card.c scc->conf.irq = pnp_irq(dev,0); dev 182 sound/oss/sb_card.c scc->conf.dma = pnp_dma(dev,0); dev 183 sound/oss/sb_card.c scc->conf.dma2 = pnp_dma(dev,1); dev 184 sound/oss/sb_card.c scc->mpucnf.io_base = pnp_port_start(dev,1); dev 188 sound/oss/sb_card.c scc->conf.io_base = pnp_port_start(dev,0); dev 189 sound/oss/sb_card.c scc->conf.irq = pnp_irq(dev,0); dev 190 sound/oss/sb_card.c scc->conf.dma = pnp_dma(dev,0); dev 191 sound/oss/sb_card.c scc->conf.dma2 = pnp_dma(dev,1); dev 195 sound/oss/sb_card.c scc->conf.io_base = pnp_port_start(dev,0); dev 196 sound/oss/sb_card.c scc->conf.irq = pnp_irq(dev,0); dev 197 sound/oss/sb_card.c scc->conf.dma = pnp_dma(dev,0); dev 198 sound/oss/sb_card.c scc->conf.dma2 = pnp_dma(dev,1); dev 199 sound/oss/sb_card.c scc->mpucnf.io_base = pnp_port_start(dev,2); dev 203 sound/oss/sb_card.c scc->conf.io_base = pnp_port_start(dev,0); dev 204 sound/oss/sb_card.c scc->conf.irq = pnp_irq(dev,0); dev 205 sound/oss/sb_card.c scc->conf.dma = pnp_dma(dev,0); dev 206 sound/oss/sb_card.c scc->conf.dma2 = pnp_dma(dev,1); dev 210 sound/oss/sb_card.c scc->conf.io_base = pnp_port_start(dev,0); dev 211 sound/oss/sb_card.c scc->conf.irq = pnp_irq(dev,0); dev 212 sound/oss/sb_card.c scc->conf.dma = pnp_dma(dev,0); dev 217 sound/oss/sb_card.c scc->conf.io_base = pnp_port_start(dev,0); dev 218 sound/oss/sb_card.c scc->conf.irq = pnp_irq(dev,0); dev 219 sound/oss/sb_card.c scc->conf.dma = pnp_dma(dev,0); dev 221 sound/oss/sb_card.c scc->conf.io_base = pnp_port_start(dev,0); dev 222 sound/oss/sb_card.c scc->conf.irq = pnp_irq(dev,0); dev 223 sound/oss/sb_card.c scc->conf.dma = pnp_dma(dev,1); dev 224 sound/oss/sb_card.c scc->conf.dma2 = pnp_dma(dev,0); dev 229 sound/oss/sb_card.c scc->conf.io_base = pnp_port_start(dev,0); dev 230 sound/oss/sb_card.c scc->conf.irq = pnp_irq(dev,0); dev 231 sound/oss/sb_card.c scc->conf.dma = pnp_dma(dev,1); dev 232 sound/oss/sb_card.c scc->conf.dma2 = pnp_dma(dev,0); dev 243 sound/oss/sb_card.c struct pnp_dev *dev = pnp_request_card_device(card, card_id->devs[0].id, NULL); dev 245 sound/oss/sb_card.c if(!dev){ dev 256 sound/oss/sb_card.c dev->id->id); dev 259 sound/oss/sb_card.c scc->dev_id = dev->id->id; dev 260 sound/oss/sb_card.c sb_dev2cfg(dev, scc); dev 145 sound/oss/sb_common.c DMAbuf_outputintr(devc->dev, 1); dev 149 sound/oss/sb_common.c DMAbuf_inputintr(devc->dev); dev 169 sound/oss/sb_common.c DMAbuf_outputintr(devc->dev, 1); dev 173 sound/oss/sb_common.c DMAbuf_inputintr(devc->dev); dev 515 sound/oss/sb_common.c sb_info.dev = -1; dev 854 sound/oss/sb_common.c hw_config->slots[0]=devc->dev; dev 869 sound/oss/sb_common.c hw_config->slots[0]=devc->dev; dev 911 sound/oss/sb_common.c sound_unload_audiodev(devc->dev); dev 289 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 307 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 440 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 461 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 482 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 520 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 524 sound/oss/sb_ess.c , audio_devs[dev]->dmap_out->dma, audio_devs[dev]->dmap_in->dma); dev 528 sound/oss/sb_ess.c return ess_audio_prepare_for_output_audio2 (dev, bsize, bcount); dev 530 sound/oss/sb_ess.c return ess_audio_prepare_for_output_audio1 (dev, bsize, bcount); dev 537 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 553 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 560 sound/oss/sb_ess.c if (audio_devs[dev]->dmap_in->dma > 3) count >>= 1; dev 576 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 579 sound/oss/sb_ess.c if (audio_devs[dev]->dmap_out->dma > 3) dev 596 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 599 sound/oss/sb_ess.c if (audio_devs[dev]->dmap_out->dma > 3) count >>= 1; dev 613 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 616 sound/oss/sb_ess.c ess_audio_output_block_audio2 (dev, buf, nr_bytes, intrflag); dev 618 sound/oss/sb_ess.c ess_audio_output_block_audio1 (dev, buf, nr_bytes, intrflag); dev 628 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 642 sound/oss/sb_ess.c ess_audio_start_input(dev, devc->trg_buf, devc->trg_bytes, dev 647 sound/oss/sb_ess.c ess_audio_output_block(dev, devc->trg_buf, devc->trg_bytes, dev 656 sound/oss/sb_ess.c ess_audio_start_input(dev, devc->trg_buf_16, devc->trg_bytes_16, dev 661 sound/oss/sb_ess.c ess_audio_output_block(dev, devc->trg_buf_16, devc->trg_bytes_16, dev 672 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 693 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 712 sound/oss/sb_ess.c sb_devc *devc = audio_devs[dev]->devc; dev 774 sound/oss/sb_ess.c DMAbuf_outputintr (dev, 1); dev 778 sound/oss/sb_ess.c DMAbuf_inputintr (dev); dev 811 sound/oss/sb_ess.c , devc->dev, devc->intr_active , src & 0x01, devc->irq_mode ); dev 814 sound/oss/sb_ess.c , devc->dev, devc->intr_active_16, src & 0x02, devc->irq_mode_16); dev 1677 sound/oss/sb_ess.c if (ess_has_rec_mixer (devc->submodel) && (devc->recmask & (1 << dev))) { dev 1678 sound/oss/sb_ess.c sb_common_mixer_set (devc, dev + ES_REC_MIXER_RECDIFF, left, right); dev 1680 sound/oss/sb_ess.c return sb_common_mixer_set (devc, dev, left, right); dev 1692 sound/oss/sb_ess.c value = devc->levels[dev]; dev 1696 sound/oss/sb_ess.c sb_common_mixer_set(devc, dev, left, right); dev 35 sound/oss/sb_midi.c sb_devc *devc = midi_devs[dev]->devc; dev 72 sound/oss/sb_midi.c sb_devc *devc = midi_devs[dev]->devc; dev 88 sound/oss/sb_midi.c sb_devc *devc = midi_devs[dev]->devc; dev 111 sound/oss/sb_midi.c sb_devc *devc = midi_devs[dev]->devc; dev 163 sound/oss/sb_midi.c int dev; dev 168 sound/oss/sb_midi.c dev = sound_alloc_mididev(); dev 170 sound/oss/sb_midi.c if (dev == -1) dev 175 sound/oss/sb_midi.c std_midi_synth.midi_dev = devc->my_mididev = dev; dev 176 sound/oss/sb_midi.c midi_devs[dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); dev 177 sound/oss/sb_midi.c if (midi_devs[dev] == NULL) dev 180 sound/oss/sb_midi.c sound_unload_mididev(dev); dev 183 sound/oss/sb_midi.c memcpy((char *) midi_devs[dev], (char *) &sb_midi_operations, dev 187 sound/oss/sb_midi.c midi_devs[dev]->owner = owner; dev 189 sound/oss/sb_midi.c midi_devs[dev]->devc = devc; dev 192 sound/oss/sb_midi.c midi_devs[dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); dev 193 sound/oss/sb_midi.c if (midi_devs[dev]->converter == NULL) dev 196 sound/oss/sb_midi.c kfree(midi_devs[dev]); dev 197 sound/oss/sb_midi.c sound_unload_mididev(dev); dev 200 sound/oss/sb_midi.c memcpy((char *) midi_devs[dev]->converter, (char *) &std_midi_synth, dev 203 sound/oss/sb_midi.c midi_devs[dev]->converter->id = "SBMIDI"; dev 238 sound/oss/sb_mixer.c mask = (1 << (*devc->iomap)[dev][chn].nbits) - 1; dev 241 sound/oss/sb_mixer.c shift = (*devc->iomap)[dev][chn].bitoffs - (*devc->iomap)[dev][LEFT_CHN].nbits + 1; dev 249 sound/oss/sb_mixer.c if (!((1 << dev) & devc->supported_devices)) dev 251 sound/oss/sb_mixer.c return devc->levels[dev]; dev 276 sound/oss/sb_mixer.c if ((dev < 0) || (dev >= devc->iomap_sz)) dev 279 sound/oss/sb_mixer.c regoffs = (*devc->iomap)[dev][LEFT_CHN].regno; dev 285 sound/oss/sb_mixer.c change_bits(devc, &val, dev, LEFT_CHN, left); dev 287 sound/oss/sb_mixer.c if ((*devc->iomap)[dev][RIGHT_CHN].regno != regoffs) /* dev 294 sound/oss/sb_mixer.c regoffs = (*devc->iomap)[dev][RIGHT_CHN].regno; dev 305 sound/oss/sb_mixer.c change_bits(devc, &val, dev, RIGHT_CHN, right); dev 316 sound/oss/sb_mixer.c switch (dev) dev 325 sound/oss/sb_mixer.c devc->levels[dev] = left | (right << 8); dev 340 sound/oss/sb_mixer.c if (dev < 0 || dev >= ARRAY_SIZE(smw_mix_regs)) dev 342 sound/oss/sb_mixer.c reg = smw_mix_regs[dev]; dev 349 sound/oss/sb_mixer.c devc->levels[dev] = left | (right << 8); dev 364 sound/oss/sb_mixer.c if ((dev < 0) || (dev > 31)) dev 367 sound/oss/sb_mixer.c if (!(devc->supported_devices & (1 << dev))) /* dev 375 sound/oss/sb_mixer.c retval = smw_mixer_set(devc, dev, left, right); dev 378 sound/oss/sb_mixer.c retval = ess_mixer_set(devc, dev, left, right); dev 381 sound/oss/sb_mixer.c retval = sb_common_mixer_set(devc, dev, left, right); dev 383 sound/oss/sb_mixer.c if (retval >= 0) devc->levels[dev] = retval; dev 533 sound/oss/sb_mixer.c sb_devc *devc = mixer_devs[dev]->devc; dev 90 sound/oss/sequencer.c dev = dev >> 4; dev 179 sound/oss/sequencer.c event_rec[2] = dev; dev 218 sound/oss/sequencer.c dev = dev >> 4; dev 220 sound/oss/sequencer.c DEB(printk("sequencer_write(dev=%d, count=%d)\n", dev, count)); dev 237 sound/oss/sequencer.c dev = *(unsigned short *) &event_rec[2]; dev 238 sound/oss/sequencer.c if (dev < 0 || dev >= max_synthdev || synth_devs[dev] == NULL) dev 241 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev))) dev 245 sound/oss/sequencer.c err = synth_devs[dev]->load_patch(dev, fmt, buf, p + 4, c, 0); dev 289 sound/oss/sequencer.c int dev = event_rec[2]; dev 291 sound/oss/sequencer.c if (dev >= max_mididev || midi_devs[dev]==NULL) dev 298 sound/oss/sequencer.c if ((err = midi_devs[dev]->open(dev, mode, dev 302 sound/oss/sequencer.c printk(KERN_WARNING "Sequencer Error: Unable to open Midi #%d\n", dev); dev 305 sound/oss/sequencer.c midi_opened[dev] = 1; dev 365 sound/oss/sequencer.c int dev = q[2]; dev 367 sound/oss/sequencer.c if (dev < 0 || dev >= max_synthdev) dev 370 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev))) dev 376 sound/oss/sequencer.c synth_devs[dev]->kill_note(dev, q[3], q[4], q[5]); dev 385 sound/oss/sequencer.c synth_devs[dev]->kill_note(dev, q[3], q[4], q[5]); dev 388 sound/oss/sequencer.c synth_devs[dev]->start_note(dev, q[3], q[4], q[5]); dev 392 sound/oss/sequencer.c synth_devs[dev]->set_instr(dev, q[3], q[4]); dev 396 sound/oss/sequencer.c synth_devs[dev]->aftertouch(dev, q[3], q[4]); dev 400 sound/oss/sequencer.c synth_devs[dev]->panning(dev, q[3], (char) q[4]); dev 404 sound/oss/sequencer.c synth_devs[dev]->controller(dev, q[3], q[4], (short) (q[5] | (q[6] << 8))); dev 408 sound/oss/sequencer.c if (synth_devs[dev]->volume_method != NULL) dev 409 sound/oss/sequencer.c synth_devs[dev]->volume_method(dev, q[3]); dev 424 sound/oss/sequencer.c for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) dev 425 sound/oss/sequencer.c if (synth_devs[dev]->alloc.map[i] == key) dev 437 sound/oss/sequencer.c voice = synth_devs[dev]->alloc_voice(dev, chn, note, dev 438 sound/oss/sequencer.c &synth_devs[dev]->alloc); dev 439 sound/oss/sequencer.c synth_devs[dev]->alloc.map[voice] = key; dev 440 sound/oss/sequencer.c synth_devs[dev]->alloc.alloc_times[voice] = dev 441 sound/oss/sequencer.c synth_devs[dev]->alloc.timestamp++; dev 455 sound/oss/sequencer.c if ((int) dev > max_synthdev || synth_devs[dev] == NULL) dev 457 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev))) dev 459 sound/oss/sequencer.c if (!synth_devs[dev]) dev 464 sound/oss/sequencer.c if (synth_devs[dev]->alloc_voice) dev 465 sound/oss/sequencer.c voice = find_voice(dev, chn, note); dev 480 sound/oss/sequencer.c if (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice) dev 483 sound/oss/sequencer.c voice = alloc_voice(dev, chn, note); dev 488 sound/oss/sequencer.c if (seq_mode == SEQ_2 && (int) dev < num_synths) dev 497 sound/oss/sequencer.c synth_devs[dev]->set_instr(dev, voice, 128 + note); dev 498 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].pgm_num = 128 + note; dev 500 sound/oss/sequencer.c synth_devs[dev]->setup_voice(dev, voice, chn); dev 502 sound/oss/sequencer.c synth_devs[dev]->start_note(dev, voice, note, parm); dev 508 sound/oss/sequencer.c synth_devs[dev]->kill_note(dev, voice, note, parm); dev 514 sound/oss/sequencer.c synth_devs[dev]->aftertouch(dev, voice, parm); dev 529 sound/oss/sequencer.c unsigned char dev = event_rec[1]; dev 537 sound/oss/sequencer.c if ((int) dev > max_synthdev || synth_devs[dev] == NULL) dev 539 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev))) dev 541 sound/oss/sequencer.c if (!synth_devs[dev]) dev 549 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].pgm_num = p1; dev 550 sound/oss/sequencer.c if ((int) dev >= num_synths) dev 551 sound/oss/sequencer.c synth_devs[dev]->set_instr(dev, chn, p1); dev 554 sound/oss/sequencer.c synth_devs[dev]->set_instr(dev, chn, p1); dev 564 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f; dev 567 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0; dev 569 sound/oss/sequencer.c if ((int) dev < num_synths) dev 576 sound/oss/sequencer.c val = ((synth_devs[dev]-> dev 578 sound/oss/sequencer.c | (synth_devs[dev]-> dev 586 sound/oss/sequencer.c for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) dev 587 sound/oss/sequencer.c if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) dev 588 sound/oss/sequencer.c synth_devs[dev]->controller(dev, i, p1, val); dev 591 sound/oss/sequencer.c synth_devs[dev]->controller(dev, chn, p1, w14); dev 594 sound/oss/sequencer.c synth_devs[dev]->controller(dev, chn, p1, w14); dev 600 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].bender_value = w14; dev 602 sound/oss/sequencer.c if ((int) dev < num_synths) dev 609 sound/oss/sequencer.c for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) dev 610 sound/oss/sequencer.c if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) dev 611 sound/oss/sequencer.c synth_devs[dev]->bender(dev, i, w14); dev 614 sound/oss/sequencer.c synth_devs[dev]->bender(dev, chn, w14); dev 617 sound/oss/sequencer.c synth_devs[dev]->bender(dev, chn, w14); dev 713 sound/oss/sequencer.c unsigned int dev = event_rec[1]; dev 717 sound/oss/sequencer.c if (dev > max_synthdev) dev 719 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev))) dev 721 sound/oss/sequencer.c if (!synth_devs[dev]) dev 728 sound/oss/sequencer.c if (!synth_devs[dev]->send_sysex) dev 731 sound/oss/sequencer.c synth_devs[dev]->send_sysex(dev, buf, l); dev 805 sound/oss/sequencer.c int dev; dev 807 sound/oss/sequencer.c dev = q[2]; dev 809 sound/oss/sequencer.c if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) dev 812 sound/oss/sequencer.c if (!midi_devs[dev]->outputc(dev, q[1])) dev 823 sound/oss/sequencer.c midi_written[dev] = 1; dev 912 sound/oss/sequencer.c int dev; dev 916 sound/oss/sequencer.c for (dev = 0; dev < num_midis; dev++) dev 918 sound/oss/sequencer.c if (midi_devs[dev] && midi_devs[dev]->converter != NULL) dev 920 sound/oss/sequencer.c synth_devs[max_synthdev++] = midi_devs[dev]->converter; dev 924 sound/oss/sequencer.c for (dev = 0; dev < max_synthdev; dev++) dev 928 sound/oss/sequencer.c synth_devs[dev]->sysex_ptr = 0; dev 929 sound/oss/sequencer.c synth_devs[dev]->emulation = 0; dev 933 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].pgm_num = 0; dev 934 sound/oss/sequencer.c reset_controllers(dev, dev 935 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].controllers,0); dev 936 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].bender_value = (1 << 7); /* Neutral */ dev 937 sound/oss/sequencer.c synth_devs[dev]->chn_info[chn].bender_range = 200; dev 952 sound/oss/sequencer.c level = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1; dev 954 sound/oss/sequencer.c dev = dev >> 4; dev 957 sound/oss/sequencer.c DEB(printk("sequencer_open(dev=%d)\n", dev)); dev 964 sound/oss/sequencer.c if (dev) /* Patch manager device (obsolete) */ dev 967 sound/oss/sequencer.c if(synth_devs[dev] == NULL) dev 1130 sound/oss/sequencer.c dev = dev >> 4; dev 1132 sound/oss/sequencer.c DEB(printk("sequencer_release(dev=%d)\n", dev)); dev 1221 sound/oss/sequencer.c while (n && !midi_devs[dev]->outputc(dev, data)) { dev 1333 sound/oss/sequencer.c orig_dev = dev = dev >> 4; dev 1424 sound/oss/sequencer.c if (get_user(dev, p)) dev 1426 sound/oss/sequencer.c if (dev < 0 || dev >= num_synths || synth_devs[dev] == NULL) dev 1428 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev)) && !orig_dev) dev 1430 sound/oss/sequencer.c return synth_devs[dev]->ioctl(dev, cmd, arg); dev 1441 sound/oss/sequencer.c if (get_user(dev, p)) dev 1443 sound/oss/sequencer.c if (dev < 0 || dev >= num_synths || synth_devs[dev] == NULL) dev 1445 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev)) && !orig_dev) dev 1447 sound/oss/sequencer.c val = synth_devs[dev]->ioctl(dev, cmd, arg); dev 1451 sound/oss/sequencer.c if (get_user(dev, p)) dev 1453 sound/oss/sequencer.c if (dev < 0 || dev >= num_synths || synth_devs[dev] == NULL) dev 1455 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev))) dev 1457 sound/oss/sequencer.c synth_devs[dev]->ioctl(dev, cmd, arg); dev 1461 sound/oss/sequencer.c if (get_user(dev, &((struct synth_info __user *)arg)->device)) dev 1463 sound/oss/sequencer.c if (dev < 0 || dev >= max_synthdev) dev 1465 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev)) && !orig_dev) dev 1467 sound/oss/sequencer.c return synth_devs[dev]->ioctl(dev, cmd, arg); dev 1471 sound/oss/sequencer.c if (get_user(dev, &((struct synth_info __user *)arg)->device)) dev 1473 sound/oss/sequencer.c if (dev < 0 || dev >= max_synthdev) dev 1475 sound/oss/sequencer.c if (!(synth_open_mask & (1 << dev)) && !orig_dev) dev 1477 sound/oss/sequencer.c memcpy(&inf, synth_devs[dev]->info, sizeof(inf)); dev 1478 sound/oss/sequencer.c strlcpy(inf.name, synth_devs[dev]->id, sizeof(inf.name)); dev 1479 sound/oss/sequencer.c inf.device = dev; dev 1491 sound/oss/sequencer.c if (get_user(dev, &((struct midi_info __user *)arg)->device)) dev 1493 sound/oss/sequencer.c if (dev < 0 || dev >= max_mididev || !midi_devs[dev]) dev 1495 sound/oss/sequencer.c midi_devs[dev]->info.device = dev; dev 1496 sound/oss/sequencer.c return copy_to_user(arg, &midi_devs[dev]->info, sizeof(struct midi_info))?-EFAULT:0; dev 1537 sound/oss/sequencer.c dev = dev >> 4; dev 65 sound/oss/sound_timer.c usecs_per_tmr = tmr->tmr_start(tmr->dev, usecs_per_tick); dev 110 sound/oss/sound_timer.c tmr->tmr_disable(tmr->dev); dev 288 sound/oss/sound_timer.c tmr->tmr_restart(tmr->dev); dev 146 sound/oss/soundcard.c int dev = iminor(file->f_path.dentry->d_inode); dev 157 sound/oss/soundcard.c DEB(printk("sound_read(dev=%d, count=%d)\n", dev, count)); dev 158 sound/oss/soundcard.c switch (dev & 0x0f) { dev 162 sound/oss/soundcard.c ret = audio_read(dev, file, buf, count); dev 167 sound/oss/soundcard.c ret = sequencer_read(dev, file, buf, count); dev 171 sound/oss/soundcard.c ret = MIDIbuf_read(dev, file, buf, count); dev 179 sound/oss/soundcard.c int dev = iminor(file->f_path.dentry->d_inode); dev 183 sound/oss/soundcard.c DEB(printk("sound_write(dev=%d, count=%d)\n", dev, count)); dev 184 sound/oss/soundcard.c switch (dev & 0x0f) { dev 187 sound/oss/soundcard.c ret = sequencer_write(dev, file, buf, count); dev 193 sound/oss/soundcard.c ret = audio_write(dev, file, buf, count); dev 197 sound/oss/soundcard.c ret = MIDIbuf_write(dev, file, buf, count); dev 206 sound/oss/soundcard.c int dev = iminor(inode); dev 209 sound/oss/soundcard.c DEB(printk("sound_open(dev=%d)\n", dev)); dev 210 sound/oss/soundcard.c if ((dev >= SND_NDEVS) || (dev < 0)) { dev 211 sound/oss/soundcard.c printk(KERN_ERR "Invalid minor device %d\n", dev); dev 214 sound/oss/soundcard.c switch (dev & 0x0f) { dev 216 sound/oss/soundcard.c dev >>= 4; dev 217 sound/oss/soundcard.c if (dev >= 0 && dev < MAX_MIXER_DEV && mixer_devs[dev] == NULL) { dev 218 sound/oss/soundcard.c request_module("mixer%d", dev); dev 220 sound/oss/soundcard.c if (dev && (dev >= num_mixers || mixer_devs[dev] == NULL)) dev 223 sound/oss/soundcard.c if (!try_module_get(mixer_devs[dev]->owner)) dev 229 sound/oss/soundcard.c if ((retval = sequencer_open(dev, file)) < 0) dev 234 sound/oss/soundcard.c if ((retval = MIDIbuf_open(dev, file)) < 0) dev 241 sound/oss/soundcard.c if ((retval = audio_open(dev, file)) < 0) dev 246 sound/oss/soundcard.c printk(KERN_ERR "Invalid minor device %d\n", dev); dev 255 sound/oss/soundcard.c int dev = iminor(inode); dev 258 sound/oss/soundcard.c DEB(printk("sound_release(dev=%d)\n", dev)); dev 259 sound/oss/soundcard.c switch (dev & 0x0f) { dev 261 sound/oss/soundcard.c module_put(mixer_devs[dev >> 4]->owner); dev 266 sound/oss/soundcard.c sequencer_release(dev, file); dev 270 sound/oss/soundcard.c MIDIbuf_release(dev, file); dev 276 sound/oss/soundcard.c audio_release(dev, file); dev 280 sound/oss/soundcard.c printk(KERN_ERR "Sound error: Releasing unknown device 0x%02x\n", dev); dev 291 sound/oss/soundcard.c strlcpy(info.id, mixer_devs[dev]->id, sizeof(info.id)); dev 292 sound/oss/soundcard.c strlcpy(info.name, mixer_devs[dev]->name, sizeof(info.name)); dev 293 sound/oss/soundcard.c info.modify_counter = mixer_devs[dev]->modify_counter; dev 303 sound/oss/soundcard.c strlcpy(info.id, mixer_devs[dev]->id, sizeof(info.id)); dev 304 sound/oss/soundcard.c strlcpy(info.name, mixer_devs[dev]->name, sizeof(info.name)); dev 335 sound/oss/soundcard.c int dev = iminor(inode); dev 352 sound/oss/soundcard.c DEB(printk("sound_ioctl(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg)); dev 357 sound/oss/soundcard.c (dev & 0x0f) != SND_DEV_CTL) { dev 358 sound/oss/soundcard.c dtype = dev & 0x0f; dev 363 sound/oss/soundcard.c return sound_mixer_ioctl(audio_devs[dev >> 4]->mixer_dev, dev 367 sound/oss/soundcard.c return sound_mixer_ioctl(dev >> 4, cmd, p); dev 370 sound/oss/soundcard.c switch (dev & 0x0f) { dev 376 sound/oss/soundcard.c return sound_mixer_ioctl(dev >> 4, cmd, p); dev 380 sound/oss/soundcard.c return sequencer_ioctl(dev, file, cmd, p); dev 385 sound/oss/soundcard.c return audio_ioctl(dev, file, cmd, p); dev 389 sound/oss/soundcard.c return MIDIbuf_ioctl(dev, file, cmd, p); dev 399 sound/oss/soundcard.c int dev = iminor(inode); dev 401 sound/oss/soundcard.c DEB(printk("sound_poll(dev=%d)\n", dev)); dev 402 sound/oss/soundcard.c switch (dev & 0x0f) { dev 405 sound/oss/soundcard.c return sequencer_poll(dev, file, wait); dev 408 sound/oss/soundcard.c return MIDIbuf_poll(dev, file, wait); dev 413 sound/oss/soundcard.c return DMAbuf_poll(file, dev >> 4, wait); dev 423 sound/oss/soundcard.c int dev = iminor(file->f_path.dentry->d_inode); dev 425 sound/oss/soundcard.c dev_class = dev & 0x0f; dev 426 sound/oss/soundcard.c dev >>= 4; dev 434 sound/oss/soundcard.c dmap = audio_devs[dev]->dmap_out; dev 436 sound/oss/soundcard.c dmap = audio_devs[dev]->dmap_in; dev 477 sound/oss/soundcard.c if( audio_devs[dev]->d->mmap) dev 478 sound/oss/soundcard.c audio_devs[dev]->d->mmap(dev); dev 37 sound/oss/uart401.c void (*midi_input_intr) (int dev, unsigned char data); dev 120 sound/oss/uart401.c uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; dev 140 sound/oss/uart401.c uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; dev 150 sound/oss/uart401.c uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; dev 77 sound/oss/uart6850.c static void (*midi_input_intr) (int dev, unsigned char data); dev 47 sound/oss/v_midi.c vmidi_devc *devc = midi_devs[dev]->devc; dev 75 sound/oss/v_midi.c vmidi_devc *devc = midi_devs[dev]->devc; dev 90 sound/oss/v_midi.c vmidi_devc *devc = midi_devs[dev]->devc; dev 112 sound/oss/v_midi.c vmidi_devc *devc = midi_devs[dev]->devc; dev 2 sound/oss/v_midi.h int dev; dev 13 sound/oss/v_midi.h void (*midi_input_intr) (int dev, unsigned char data); dev 307 sound/oss/vidc.c struct dma_buffparms *dmap = audio_devs[dev]->dmap_out; dev 340 sound/oss/vidc.c struct audio_operations *adev = audio_devs[dev]; dev 363 sound/oss/vidc.c struct audio_operations *adev = audio_devs[dev]; dev 384 sound/oss/waveartist.c if (dev < 0 || dev >= num_audiodevs) dev 387 sound/oss/waveartist.c devc = (wavnc_info *) audio_devs[dev]->devc; dev 388 sound/oss/waveartist.c portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 399 sound/oss/waveartist.c waveartist_trigger(dev, 0); dev 402 sound/oss/waveartist.c devc->record_dev = dev; dev 404 sound/oss/waveartist.c devc->playback_dev = dev; dev 413 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; dev 414 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 419 sound/oss/waveartist.c waveartist_halt(dev); dev 431 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 432 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; dev 451 sound/oss/waveartist.c audio_devs[dev]->flags & DMA_AUTOMODE && dev 476 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 477 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; dev 494 sound/oss/waveartist.c audio_devs[dev]->flags & DMA_AUTOMODE && dev 569 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; dev 570 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 606 sound/oss/waveartist.c waveartist_halt_input(dev); dev 624 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; dev 625 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 655 sound/oss/waveartist.c waveartist_halt_output(dev); dev 669 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 673 sound/oss/waveartist.c waveartist_halt_output(dev); dev 676 sound/oss/waveartist.c waveartist_halt_input(dev); dev 678 sound/oss/waveartist.c devc = (wavnc_info *) audio_devs[dev]->devc; dev 685 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; dev 712 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; dev 736 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *) audio_devs[dev]->devc; dev 737 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 773 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 791 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 803 sound/oss/waveartist.c wavnc_port_info *portc = (wavnc_port_info *) audio_devs[dev]->portc; dev 1036 sound/oss/waveartist.c switch (dev) { dev 1045 sound/oss/waveartist.c devc->levels[dev] = lev_l | lev_r << 8; dev 1052 sound/oss/waveartist.c dev = -EINVAL; dev 1056 sound/oss/waveartist.c return dev; dev 1061 sound/oss/waveartist.c return devc->levels[dev]; dev 1115 sound/oss/waveartist.c if (!(devc->mix->stereo_devs & (1 << dev))) dev 1118 sound/oss/waveartist.c dev = devc->mix->decode_mixer(devc, dev, lev_left, lev_right); dev 1120 sound/oss/waveartist.c if (dev >= 0) dev 1121 sound/oss/waveartist.c waveartist_mixer_update(devc, dev); dev 1123 sound/oss/waveartist.c return dev < 0 ? dev : 0; dev 1129 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *)audio_devs[dev]->devc; dev 1140 sound/oss/waveartist.c ret = vnc_private_ioctl(dev, cmd, arg); dev 1618 sound/oss/waveartist.c switch (dev) { dev 1624 sound/oss/waveartist.c devc->levels[dev] = lev_l | lev_r << 8; dev 1635 sound/oss/waveartist.c dev = SOUND_MIXER_MIC; dev 1640 sound/oss/waveartist.c dev = SOUND_MIXER_LINE1; dev 1648 sound/oss/waveartist.c dev = -EINVAL; dev 1651 sound/oss/waveartist.c return dev; dev 1658 sound/oss/waveartist.c switch (dev) { dev 1664 sound/oss/waveartist.c levels = devc->levels[dev]; dev 1806 sound/oss/waveartist.c wavnc_info *devc = (wavnc_info *)audio_devs[dev]->devc; dev 198 sound/parisc/harmony.c struct snd_harmony *h = dev; dev 648 sound/parisc/harmony.c h->dma.dev = &h->dev->dev; dev 650 sound/parisc/harmony.c h->dma.dev, dev 660 sound/parisc/harmony.c h->dma.dev, dev 670 sound/parisc/harmony.c h->dma.dev, dev 901 sound/parisc/harmony.c parisc_set_drvdata(h->dev, NULL); dev 910 sound/parisc/harmony.c struct snd_harmony *h = dev->device_data; dev 933 sound/parisc/harmony.c h->dev = padev; dev 960 sound/parisc/harmony.c snd_card_set_dev(card, &padev->dev); dev 22 sound/parisc/harmony.h struct parisc_device *dev; dev 1927 sound/pci/ac97/ac97_codec.c ac97->dev.bus = &ac97_bus_type; dev 1928 sound/pci/ac97/ac97_codec.c ac97->dev.parent = ac97->bus->card->dev; dev 1929 sound/pci/ac97/ac97_codec.c ac97->dev.release = ac97_device_release; dev 1930 sound/pci/ac97/ac97_codec.c snprintf(ac97->dev.bus_id, BUS_ID_SIZE, "%d-%d:%s", dev 1933 sound/pci/ac97/ac97_codec.c if ((err = device_register(&ac97->dev)) < 0) { dev 1935 sound/pci/ac97/ac97_codec.c ac97->dev.bus = NULL; dev 1945 sound/pci/ac97/ac97_codec.c if (ac97->dev.bus) dev 1946 sound/pci/ac97/ac97_codec.c device_unregister(&ac97->dev); dev 967 sound/pci/ad1889.c snd_card_set_dev(card, &pci->dev); dev 2275 sound/pci/ali5451/ali5451.c snd_card_set_dev(card, &pci->dev); dev 754 sound/pci/als300.c snd_card_set_dev(card, &pci->dev); dev 803 sound/pci/als300.c static int dev; dev 808 sound/pci/als300.c if (dev >= SNDRV_CARDS) dev 810 sound/pci/als300.c if (!enable[dev]) { dev 811 sound/pci/als300.c dev++; dev 815 sound/pci/als300.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 844 sound/pci/als300.c dev++; dev 780 sound/pci/als4000.c if (joystick_port[dev] == 0) dev 783 sound/pci/als4000.c if (joystick_port[dev] == 1) { /* auto-detect */ dev 790 sound/pci/als4000.c io_port = joystick_port[dev]; dev 808 sound/pci/als4000.c gameport_set_dev_parent(gp, &acard->pci->dev); dev 854 sound/pci/als4000.c static int dev; dev 863 sound/pci/als4000.c if (dev >= SNDRV_CARDS) dev 865 sound/pci/als4000.c if (!enable[dev]) { dev 866 sound/pci/als4000.c dev++; dev 892 sound/pci/als4000.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 923 sound/pci/als4000.c snd_card_set_dev(card, &pci->dev); dev 966 sound/pci/als4000.c snd_als4000_create_gameport(acard, dev); dev 972 sound/pci/als4000.c dev++; dev 1634 sound/pci/atiixp.c snd_card_set_dev(card, &pci->dev); dev 1277 sound/pci/atiixp_modem.c snd_card_set_dev(card, &pci->dev); dev 215 sound/pci/au88x0/au88x0.c snd_card_set_dev(card, &pci->dev); dev 241 sound/pci/au88x0/au88x0.c static int dev; dev 247 sound/pci/au88x0/au88x0.c if (dev >= SNDRV_CARDS) dev 249 sound/pci/au88x0/au88x0.c if (!enable[dev]) { dev 250 sound/pci/au88x0/au88x0.c dev++; dev 254 sound/pci/au88x0/au88x0.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 263 sound/pci/au88x0/au88x0.c snd_vortex_workaround(pci, pcifix[dev]); dev 327 sound/pci/au88x0/au88x0.c arg->seq_ports = seq_ports[dev]; dev 328 sound/pci/au88x0/au88x0.c arg->max_voices = max_synth_voices[dev]; dev 364 sound/pci/au88x0/au88x0.c dev++; dev 106 sound/pci/au88x0/au88x0_game.c gameport_set_dev_parent(gp, &vortex->pci_dev->dev); dev 344 sound/pci/aw2/aw2-alsa.c snd_card_set_dev(card, &pci->dev); dev 357 sound/pci/aw2/aw2-alsa.c static int dev; dev 363 sound/pci/aw2/aw2-alsa.c if (dev >= SNDRV_CARDS) dev 365 sound/pci/aw2/aw2-alsa.c if (!enable[dev]) { dev 366 sound/pci/aw2/aw2-alsa.c dev++; dev 371 sound/pci/aw2/aw2-alsa.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 406 sound/pci/aw2/aw2-alsa.c dev++; dev 1543 sound/pci/azt3328.c gameport_set_dev_parent(gp, &chip->pci->dev); dev 2186 sound/pci/azt3328.c snd_card_set_dev(card, &pci->dev); dev 2205 sound/pci/azt3328.c static int dev; dev 2212 sound/pci/azt3328.c if (dev >= SNDRV_CARDS) dev 2214 sound/pci/azt3328.c if (!enable[dev]) { dev 2215 sound/pci/azt3328.c dev++; dev 2219 sound/pci/azt3328.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2284 sound/pci/azt3328.c snd_azf3328_gameport(chip, dev); dev 2287 sound/pci/azt3328.c dev++; dev 781 sound/pci/bt87x.c snd_card_set_dev(card, &pci->dev); dev 871 sound/pci/bt87x.c static int dev; dev 885 sound/pci/bt87x.c if (dev >= SNDRV_CARDS) dev 887 sound/pci/bt87x.c if (!enable[dev]) { dev 888 sound/pci/bt87x.c ++dev; dev 892 sound/pci/bt87x.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 903 sound/pci/bt87x.c if (digital_rate[dev] > 0) dev 904 sound/pci/bt87x.c chip->board.dig_rate = digital_rate[dev]; dev 930 sound/pci/bt87x.c "(rate %d Hz)\n", dev, boardid, dev 946 sound/pci/bt87x.c ++dev; dev 1374 sound/pci/ca0106/ca0106_main.c if (subsystem[dev]) { dev 1375 sound/pci/ca0106/ca0106_main.c if (c->serial == subsystem[dev]) dev 1381 sound/pci/ca0106/ca0106_main.c if (subsystem[dev]) { dev 1383 sound/pci/ca0106/ca0106_main.c c->name, chip->serial, subsystem[dev]); dev 1630 sound/pci/ca0106/ca0106_main.c static int dev; dev 1635 sound/pci/ca0106/ca0106_main.c if (dev >= SNDRV_CARDS) dev 1637 sound/pci/ca0106/ca0106_main.c if (!enable[dev]) { dev 1638 sound/pci/ca0106/ca0106_main.c dev++; dev 1642 sound/pci/ca0106/ca0106_main.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 1646 sound/pci/ca0106/ca0106_main.c if ((err = snd_ca0106_create(dev, card, pci, &chip)) < 0) { dev 1690 sound/pci/ca0106/ca0106_main.c snd_card_set_dev(card, &pci->dev); dev 1698 sound/pci/ca0106/ca0106_main.c dev++; dev 2869 sound/pci/cmipci.c if (joystick_port[dev] == 0) dev 2872 sound/pci/cmipci.c if (joystick_port[dev] == 1) { /* auto-detect */ dev 2880 sound/pci/cmipci.c io_port = joystick_port[dev]; dev 2897 sound/pci/cmipci.c gameport_set_dev_parent(gp, &cm->pci->dev); dev 3070 sound/pci/cmipci.c cm->do_soft_ac3 = soft_ac3[dev]; dev 3174 sound/pci/cmipci.c iomidi = mpu_port[dev]; dev 3198 sound/pci/cmipci.c err = snd_cmipci_create_fm(cm, fm_port[dev]); dev 3246 sound/pci/cmipci.c if (snd_cmipci_create_gameport(cm, dev) < 0) dev 3249 sound/pci/cmipci.c snd_card_set_dev(card, &pci->dev); dev 3263 sound/pci/cmipci.c static int dev; dev 3268 sound/pci/cmipci.c if (dev >= SNDRV_CARDS) dev 3270 sound/pci/cmipci.c if (! enable[dev]) { dev 3271 sound/pci/cmipci.c dev++; dev 3275 sound/pci/cmipci.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 3293 sound/pci/cmipci.c if ((err = snd_cmipci_create(card, pci, dev, &cm)) < 0) { dev 3304 sound/pci/cmipci.c dev++; dev 1282 sound/pci/cs4281.c gameport_set_dev_parent(gp, &chip->pci->dev); dev 1413 sound/pci/cs4281.c snd_card_set_dev(card, &pci->dev); dev 1915 sound/pci/cs4281.c static int dev; dev 1921 sound/pci/cs4281.c if (dev >= SNDRV_CARDS) dev 1923 sound/pci/cs4281.c if (!enable[dev]) { dev 1924 sound/pci/cs4281.c dev++; dev 1928 sound/pci/cs4281.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 1932 sound/pci/cs4281.c if ((err = snd_cs4281_create(card, pci, &chip, dual_codec[dev])) < 0) { dev 1975 sound/pci/cs4281.c dev++; dev 79 sound/pci/cs46xx/cs46xx.c static int dev; dev 84 sound/pci/cs46xx/cs46xx.c if (dev >= SNDRV_CARDS) dev 86 sound/pci/cs46xx/cs46xx.c if (!enable[dev]) { dev 87 sound/pci/cs46xx/cs46xx.c dev++; dev 91 sound/pci/cs46xx/cs46xx.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 95 sound/pci/cs46xx/cs46xx.c external_amp[dev], thinkpad[dev], dev 101 sound/pci/cs46xx/cs46xx.c chip->accept_valid = mmap_valid[dev]; dev 154 sound/pci/cs46xx/cs46xx.c dev++; dev 2627 sound/pci/cs46xx/cs46xx_lib.c gameport_set_dev_parent(gp, &chip->pci->dev); dev 3869 sound/pci/cs46xx/cs46xx_lib.c snd_card_set_dev(card, &pci->dev); dev 241 sound/pci/cs5530.c snd_card_set_dev(card, &pci->dev); dev 249 sound/pci/cs5530.c static int dev; dev 254 sound/pci/cs5530.c if (dev >= SNDRV_CARDS) dev 256 sound/pci/cs5530.c if (!enable[dev]) { dev 257 sound/pci/cs5530.c dev++; dev 261 sound/pci/cs5530.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 282 sound/pci/cs5530.c dev++; dev 317 sound/pci/cs5535audio/cs5535audio.c snd_card_set_dev(card, &pci->dev); dev 334 sound/pci/cs5535audio/cs5535audio.c static int dev; dev 339 sound/pci/cs5535audio/cs5535audio.c if (dev >= SNDRV_CARDS) dev 341 sound/pci/cs5535audio/cs5535audio.c if (!enable[dev]) { dev 342 sound/pci/cs5535audio/cs5535audio.c dev++; dev 346 sound/pci/cs5535audio/cs5535audio.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 372 sound/pci/cs5535audio/cs5535audio.c dev++; dev 853 sound/pci/echoaudio/echoaudio.c dev, dev 1985 sound/pci/echoaudio/echoaudio.c static int dev; dev 1991 sound/pci/echoaudio/echoaudio.c if (dev >= SNDRV_CARDS) dev 1993 sound/pci/echoaudio/echoaudio.c if (!enable[dev]) { dev 1994 sound/pci/echoaudio/echoaudio.c dev++; dev 2000 sound/pci/echoaudio/echoaudio.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2004 sound/pci/echoaudio/echoaudio.c snd_card_set_dev(card, &pci->dev); dev 2128 sound/pci/echoaudio/echoaudio.c dev++; dev 586 sound/pci/echoaudio/echoaudio.h #define pci_device(chip) (&chip->pci->dev) dev 102 sound/pci/emu10k1/emu10k1.c static int dev; dev 110 sound/pci/emu10k1/emu10k1.c if (dev >= SNDRV_CARDS) dev 112 sound/pci/emu10k1/emu10k1.c if (!enable[dev]) { dev 113 sound/pci/emu10k1/emu10k1.c dev++; dev 117 sound/pci/emu10k1/emu10k1.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 120 sound/pci/emu10k1/emu10k1.c if (max_buffer_size[dev] < 32) dev 121 sound/pci/emu10k1/emu10k1.c max_buffer_size[dev] = 32; dev 122 sound/pci/emu10k1/emu10k1.c else if (max_buffer_size[dev] > 1024) dev 123 sound/pci/emu10k1/emu10k1.c max_buffer_size[dev] = 1024; dev 124 sound/pci/emu10k1/emu10k1.c if ((err = snd_emu10k1_create(card, pci, extin[dev], extout[dev], dev 125 sound/pci/emu10k1/emu10k1.c (long)max_buffer_size[dev] * 1024 * 1024, dev 126 sound/pci/emu10k1/emu10k1.c enable_ir[dev], subsystem[dev], dev 175 sound/pci/emu10k1/emu10k1.c arg->seq_ports = seq_ports[dev]; dev 176 sound/pci/emu10k1/emu10k1.c arg->max_voices = max_synth_voices[dev]; dev 190 sound/pci/emu10k1/emu10k1.c dev++; dev 669 sound/pci/emu10k1/emu10k1_main.c if ((err = request_firmware(&fw_entry, filename, &emu->pci->dev)) != 0) { dev 1948 sound/pci/emu10k1/emu10k1_main.c snd_card_set_dev(card, &pci->dev); dev 38 sound/pci/emu10k1/emu10k1_synth.c arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 66 sound/pci/emu10k1/emu10k1_synth.c if (snd_emux_register(emux, dev->card, arg->index, "Emu10k1") < 0) { dev 76 sound/pci/emu10k1/emu10k1_synth.c dev->driver_data = emux; dev 87 sound/pci/emu10k1/emu10k1_synth.c if (dev->driver_data == NULL) dev 90 sound/pci/emu10k1/emu10k1_synth.c emux = dev->driver_data; dev 1535 sound/pci/emu10k1/emu10k1x.c static int dev; dev 1540 sound/pci/emu10k1/emu10k1x.c if (dev >= SNDRV_CARDS) dev 1542 sound/pci/emu10k1/emu10k1x.c if (!enable[dev]) { dev 1543 sound/pci/emu10k1/emu10k1x.c dev++; dev 1547 sound/pci/emu10k1/emu10k1x.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 1591 sound/pci/emu10k1/emu10k1x.c snd_card_set_dev(card, &pci->dev); dev 1599 sound/pci/emu10k1/emu10k1x.c dev++; dev 1771 sound/pci/ens1370.c switch (joystick_port[dev]) { dev 1778 sound/pci/ens1370.c return joystick_port[dev]; dev 1781 sound/pci/ens1370.c printk(KERN_ERR "ens1371: invalid joystick port %#x", joystick_port[dev]); dev 1788 sound/pci/ens1370.c return joystick[dev] ? 0x200 : 0; dev 1797 sound/pci/ens1370.c io_port = snd_ensoniq_get_joystick_port(dev); dev 1831 sound/pci/ens1370.c gameport_set_dev_parent(gp, &ensoniq->pci->dev); dev 2151 sound/pci/ens1370.c snd_card_set_dev(card, &pci->dev); dev 2400 sound/pci/ens1370.c static int dev; dev 2405 sound/pci/ens1370.c if (dev >= SNDRV_CARDS) dev 2407 sound/pci/ens1370.c if (!enable[dev]) { dev 2408 sound/pci/ens1370.c dev++; dev 2412 sound/pci/ens1370.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2430 sound/pci/ens1370.c if ((err = snd_ensoniq_1371_mixer(ensoniq, spdif[dev], lineio[dev])) < 0) { dev 2448 sound/pci/ens1370.c snd_ensoniq_create_gameport(ensoniq, dev); dev 2465 sound/pci/ens1370.c dev++; dev 1552 sound/pci/es1938.c gameport_set_dev_parent(gp, &chip->pci->dev); dev 1659 sound/pci/es1938.c snd_card_set_dev(card, &pci->dev); dev 1789 sound/pci/es1938.c static int dev; dev 1795 sound/pci/es1938.c if (dev >= SNDRV_CARDS) dev 1797 sound/pci/es1938.c if (!enable[dev]) { dev 1798 sound/pci/es1938.c dev++; dev 1802 sound/pci/es1938.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 1867 sound/pci/es1938.c dev++; dev 1426 sound/pci/es1968.c chip->dma.dev.type = SNDRV_DMA_TYPE_DEV; dev 1427 sound/pci/es1968.c chip->dma.dev.dev = snd_dma_pci_data(chip->pci); dev 2433 sound/pci/es1968.c if (!joystick[dev]) dev 2452 sound/pci/es1968.c gameport_set_dev_parent(gp, &chip->pci->dev); dev 2622 sound/pci/es1968.c snd_card_set_dev(card, &pci->dev); dev 2635 sound/pci/es1968.c static int dev; dev 2641 sound/pci/es1968.c if (dev >= SNDRV_CARDS) dev 2643 sound/pci/es1968.c if (!enable[dev]) { dev 2644 sound/pci/es1968.c dev++; dev 2648 sound/pci/es1968.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2652 sound/pci/es1968.c if (total_bufsize[dev] < 128) dev 2653 sound/pci/es1968.c total_bufsize[dev] = 128; dev 2654 sound/pci/es1968.c if (total_bufsize[dev] > 4096) dev 2655 sound/pci/es1968.c total_bufsize[dev] = 4096; dev 2657 sound/pci/es1968.c total_bufsize[dev] * 1024, /* in bytes */ dev 2658 sound/pci/es1968.c pcm_substreams_p[dev], dev 2659 sound/pci/es1968.c pcm_substreams_c[dev], dev 2661 sound/pci/es1968.c use_pm[dev], dev 2693 sound/pci/es1968.c if (enable_mpu[dev] == 2) { dev 2700 sound/pci/es1968.c enable_mpu[dev] = 0; dev 2705 sound/pci/es1968.c if (enable_mpu[dev]) { dev 2714 sound/pci/es1968.c snd_es1968_create_gameport(chip, dev); dev 2718 sound/pci/es1968.c chip->clock = clock[dev]; dev 2730 sound/pci/es1968.c dev++; dev 1438 sound/pci/fm801.c snd_card_set_dev(card, &pci->dev); dev 1458 sound/pci/fm801.c static int dev; dev 1464 sound/pci/fm801.c if (dev >= SNDRV_CARDS) dev 1466 sound/pci/fm801.c if (!enable[dev]) { dev 1467 sound/pci/fm801.c dev++; dev 1471 sound/pci/fm801.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 1474 sound/pci/fm801.c if ((err = snd_fm801_create(card, pci, tea575x_tuner[dev], &chip)) < 0) { dev 1486 sound/pci/fm801.c if (tea575x_tuner[dev] & 0x0010) dev 1521 sound/pci/fm801.c dev++; dev 48 sound/pci/hda/hda_beep.c struct hda_beep *beep = input_get_drvdata(dev); dev 101 sound/pci/hda/hda_beep.c input_dev->dev.parent = &codec->bus->pci->dev; dev 116 sound/pci/hda/hda_beep.c beep->dev = input_dev; dev 131 sound/pci/hda/hda_beep.c input_unregister_device(beep->dev); dev 29 sound/pci/hda/hda_beep.h struct input_dev *dev; dev 445 sound/pci/hda/hda_intel.c writel(value, (dev)->sd_addr + ICH6_REG_##reg) dev 447 sound/pci/hda/hda_intel.c readl((dev)->sd_addr + ICH6_REG_##reg) dev 449 sound/pci/hda/hda_intel.c writew(value, (dev)->sd_addr + ICH6_REG_##reg) dev 451 sound/pci/hda/hda_intel.c readw((dev)->sd_addr + ICH6_REG_##reg) dev 453 sound/pci/hda/hda_intel.c writeb(value, (dev)->sd_addr + ICH6_REG_##reg) dev 455 sound/pci/hda/hda_intel.c readb((dev)->sd_addr + ICH6_REG_##reg) dev 1271 sound/pci/hda/hda_intel.c int dev, i, nums; dev 1273 sound/pci/hda/hda_intel.c dev = chip->playback_index_offset; dev 1276 sound/pci/hda/hda_intel.c dev = chip->capture_index_offset; dev 1279 sound/pci/hda/hda_intel.c for (i = 0; i < nums; i++, dev++) dev 1280 sound/pci/hda/hda_intel.c if (!chip->azx_dev[dev].opened) { dev 1281 sound/pci/hda/hda_intel.c chip->azx_dev[dev].opened = 1; dev 1282 sound/pci/hda/hda_intel.c return &chip->azx_dev[dev]; dev 2077 sound/pci/hda/hda_intel.c if (probe_mask[dev] == -1) { dev 2084 sound/pci/hda/hda_intel.c probe_mask[dev] = q->value; dev 2124 sound/pci/hda/hda_intel.c chip->dev_index = dev; dev 2127 sound/pci/hda/hda_intel.c chip->position_fix = check_position_fix(chip, position_fix[dev]); dev 2128 sound/pci/hda/hda_intel.c check_probe_mask(chip, dev); dev 2132 sound/pci/hda/hda_intel.c if (bdl_pos_adj[dev] < 0) { dev 2135 sound/pci/hda/hda_intel.c bdl_pos_adj[dev] = 1; dev 2138 sound/pci/hda/hda_intel.c bdl_pos_adj[dev] = 32; dev 2294 sound/pci/hda/hda_intel.c static int dev; dev 2299 sound/pci/hda/hda_intel.c if (dev >= SNDRV_CARDS) dev 2301 sound/pci/hda/hda_intel.c if (!enable[dev]) { dev 2302 sound/pci/hda/hda_intel.c dev++; dev 2306 sound/pci/hda/hda_intel.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2312 sound/pci/hda/hda_intel.c err = azx_create(card, pci, dev, pci_id->driver_data, &chip); dev 2320 sound/pci/hda/hda_intel.c err = azx_codec_create(chip, model[dev], probe_mask[dev]); dev 2340 sound/pci/hda/hda_intel.c snd_card_set_dev(card, &pci->dev); dev 2352 sound/pci/hda/hda_intel.c dev++; dev 117 sound/pci/ice1712/aureon.c unsigned char dev = PCA9554_DEV; /* ID 0100000, write */ dev 156 sound/pci/ice1712/aureon.c val = dev; dev 2290 sound/pci/ice1712/ice1712.c outb(dev & ~ICE1712_I2C_WRITE, ICEREG(ice, I2C_DEV_ADDR)); dev 2298 sound/pci/ice1712/ice1712.c int dev = 0xa0; /* EEPROM device address */ dev 2305 sound/pci/ice1712/ice1712.c ice->eeprom.subvendor = (snd_ice1712_read_i2c(ice, dev, 0x00) << 0) | dev 2306 sound/pci/ice1712/ice1712.c (snd_ice1712_read_i2c(ice, dev, 0x01) << 8) | dev 2307 sound/pci/ice1712/ice1712.c (snd_ice1712_read_i2c(ice, dev, 0x02) << 16) | dev 2308 sound/pci/ice1712/ice1712.c (snd_ice1712_read_i2c(ice, dev, 0x03) << 24); dev 2343 sound/pci/ice1712/ice1712.c ice->eeprom.size = snd_ice1712_read_i2c(ice, dev, 0x04); dev 2350 sound/pci/ice1712/ice1712.c ice->eeprom.version = snd_ice1712_read_i2c(ice, dev, 0x05); dev 2358 sound/pci/ice1712/ice1712.c ice->eeprom.data[i] = snd_ice1712_read_i2c(ice, dev, i + 6); dev 2620 sound/pci/ice1712/ice1712.c snd_card_set_dev(card, &pci->dev); dev 2638 sound/pci/ice1712/ice1712.c static int dev; dev 2644 sound/pci/ice1712/ice1712.c if (dev >= SNDRV_CARDS) dev 2646 sound/pci/ice1712/ice1712.c if (!enable[dev]) { dev 2647 sound/pci/ice1712/ice1712.c dev++; dev 2651 sound/pci/ice1712/ice1712.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2658 sound/pci/ice1712/ice1712.c err = snd_ice1712_create(card, pci, model[dev], omni[dev], dev 2659 sound/pci/ice1712/ice1712.c cs8427_timeout[dev], dxr_enable[dev], &ice); dev 2771 sound/pci/ice1712/ice1712.c dev++; dev 2119 sound/pci/ice1712/ice1724.c outb(dev & ~VT1724_I2C_WRITE, ICEREG1724(ice, I2C_DEV_ADDR)); dev 2135 sound/pci/ice1712/ice1724.c outb(dev | VT1724_I2C_WRITE, ICEREG1724(ice, I2C_DEV_ADDR)); dev 2143 sound/pci/ice1712/ice1724.c const int dev = 0xa0; /* EEPROM device address */ dev 2151 sound/pci/ice1712/ice1724.c (snd_vt1724_read_i2c(ice, dev, 0x00) << 0) | dev 2152 sound/pci/ice1712/ice1724.c (snd_vt1724_read_i2c(ice, dev, 0x01) << 8) | dev 2153 sound/pci/ice1712/ice1724.c (snd_vt1724_read_i2c(ice, dev, 0x02) << 16) | dev 2154 sound/pci/ice1712/ice1724.c (snd_vt1724_read_i2c(ice, dev, 0x03) << 24); dev 2196 sound/pci/ice1712/ice1724.c ice->eeprom.size = snd_vt1724_read_i2c(ice, dev, 0x04); dev 2204 sound/pci/ice1712/ice1724.c ice->eeprom.version = snd_vt1724_read_i2c(ice, dev, 0x05); dev 2210 sound/pci/ice1712/ice1724.c ice->eeprom.data[i] = snd_vt1724_read_i2c(ice, dev, i + 6); dev 2429 sound/pci/ice1712/ice1724.c snd_card_set_dev(card, &pci->dev); dev 2445 sound/pci/ice1712/ice1724.c static int dev; dev 2451 sound/pci/ice1712/ice1724.c if (dev >= SNDRV_CARDS) dev 2453 sound/pci/ice1712/ice1724.c if (!enable[dev]) { dev 2454 sound/pci/ice1712/ice1724.c dev++; dev 2458 sound/pci/ice1712/ice1724.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2465 sound/pci/ice1712/ice1724.c err = snd_vt1724_create(card, pci, model[dev], &ice); dev 2596 sound/pci/ice1712/ice1724.c dev++; dev 376 sound/pci/ice1712/pontis.c spi_send_byte(ice, dev & ~1); /* WRITE */ dev 393 sound/pci/ice1712/pontis.c spi_send_byte(ice, dev & ~1); /* WRITE */ dev 399 sound/pci/ice1712/pontis.c spi_send_byte(ice, dev | 1); /* READ */ dev 37 sound/pci/ice1712/revo.c struct snd_i2c_device *dev; dev 178 sound/pci/ice1712/revo.c err = snd_i2c_device_create(ice->i2c, "PT2258", 0x40, &spec->dev); dev 184 sound/pci/ice1712/revo.c pt->i2c_dev = spec->dev; dev 2994 sound/pci/intel8x0.c snd_card_set_dev(card, &pci->dev); dev 1232 sound/pci/intel8x0m.c snd_card_set_dev(card, &pci->dev); dev 2344 sound/pci/korg1212/korg1212.c err = request_firmware(&dsp_code, "korg/k1212.dsp", &pci->dev); dev 2419 sound/pci/korg1212/korg1212.c snd_card_set_dev(card, &pci->dev); dev 2434 sound/pci/korg1212/korg1212.c static int dev; dev 2439 sound/pci/korg1212/korg1212.c if (dev >= SNDRV_CARDS) { dev 2442 sound/pci/korg1212/korg1212.c if (!enable[dev]) { dev 2443 sound/pci/korg1212/korg1212.c dev++; dev 2446 sound/pci/korg1212/korg1212.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2467 sound/pci/korg1212/korg1212.c dev++; dev 2599 sound/pci/maestro3.c "ess/maestro3_assp_kernel.fw", &pci->dev); dev 2606 sound/pci/maestro3.c "ess/maestro3_assp_minisrc.fw", &pci->dev); dev 2666 sound/pci/maestro3.c snd_card_set_dev(card, &pci->dev); dev 2678 sound/pci/maestro3.c static int dev; dev 2687 sound/pci/maestro3.c if (dev >= SNDRV_CARDS) dev 2689 sound/pci/maestro3.c if (!enable[dev]) { dev 2690 sound/pci/maestro3.c dev++; dev 2694 sound/pci/maestro3.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2713 sound/pci/maestro3.c external_amp[dev], dev 2714 sound/pci/maestro3.c amp_gpio[dev], dev 2741 sound/pci/maestro3.c dev++; dev 1028 sound/pci/mixart/mixart.c snd_card_set_dev(card, &mgr->pci->dev); dev 1271 sound/pci/mixart/mixart.c static int dev; dev 1279 sound/pci/mixart/mixart.c if (dev >= SNDRV_CARDS) dev 1281 sound/pci/mixart/mixart.c if (! enable[dev]) { dev 1282 sound/pci/mixart/mixart.c dev++; dev 1363 sound/pci/mixart/mixart.c if (index[dev] < 0) dev 1364 sound/pci/mixart/mixart.c idx = index[dev]; dev 1366 sound/pci/mixart/mixart.c idx = index[dev] + i; dev 1367 sound/pci/mixart/mixart.c snprintf(tmpid, sizeof(tmpid), "%s-%d", id[dev] ? id[dev] : "MIXART", i); dev 1429 sound/pci/mixart/mixart.c dev++; dev 561 sound/pci/mixart/mixart_hwdep.c if (request_firmware(&fw_entry, path, &mgr->pci->dev)) { dev 1622 sound/pci/nm256/nm256.c snd_card_set_dev(card, &pci->dev); dev 179 sound/pci/oxygen/hifier.c static int dev; dev 182 sound/pci/oxygen/hifier.c if (dev >= SNDRV_CARDS) dev 184 sound/pci/oxygen/hifier.c if (!enable[dev]) { dev 185 sound/pci/oxygen/hifier.c ++dev; dev 188 sound/pci/oxygen/hifier.c err = oxygen_pci_probe(pci, index[dev], id[dev], &model_hifier, 0); dev 190 sound/pci/oxygen/hifier.c ++dev; dev 343 sound/pci/oxygen/oxygen.c static int dev; dev 346 sound/pci/oxygen/oxygen.c if (dev >= SNDRV_CARDS) dev 348 sound/pci/oxygen/oxygen.c if (!enable[dev]) { dev 349 sound/pci/oxygen/oxygen.c ++dev; dev 352 sound/pci/oxygen/oxygen.c err = oxygen_pci_probe(pci, index[dev], id[dev], dev 355 sound/pci/oxygen/oxygen.c ++dev; dev 499 sound/pci/oxygen/oxygen_lib.c snd_card_set_dev(card, &pci->dev); dev 917 sound/pci/oxygen/virtuoso.c static int dev; dev 920 sound/pci/oxygen/virtuoso.c if (dev >= SNDRV_CARDS) dev 922 sound/pci/oxygen/virtuoso.c if (!enable[dev]) { dev 923 sound/pci/oxygen/virtuoso.c ++dev; dev 927 sound/pci/oxygen/virtuoso.c err = oxygen_pci_probe(pci, index[dev], id[dev], dev 931 sound/pci/oxygen/virtuoso.c ++dev; dev 1053 sound/pci/pcxhr/pcxhr.c snd_card_set_dev(card, &mgr->pci->dev); dev 1199 sound/pci/pcxhr/pcxhr.c static int dev; dev 1206 sound/pci/pcxhr/pcxhr.c if (dev >= SNDRV_CARDS) dev 1208 sound/pci/pcxhr/pcxhr.c if (! enable[dev]) { dev 1209 sound/pci/pcxhr/pcxhr.c dev++; dev 1238 sound/pci/pcxhr/pcxhr.c mgr->mono_capture = mono[dev]; dev 1291 sound/pci/pcxhr/pcxhr.c if (index[dev] < 0) dev 1292 sound/pci/pcxhr/pcxhr.c idx = index[dev]; dev 1294 sound/pci/pcxhr/pcxhr.c idx = index[dev] + i; dev 1296 sound/pci/pcxhr/pcxhr.c snprintf(tmpid, sizeof(tmpid), "%s-%d", id[dev] ? id[dev] : card_name, i); dev 1342 sound/pci/pcxhr/pcxhr.c dev++; dev 347 sound/pci/pcxhr/pcxhr_hwdep.c if (request_firmware(&fw_entry, path, &mgr->pci->dev)) { dev 1282 sound/pci/riptide/riptide.c &chip->pci->dev)) != 0) { dev 1929 sound/pci/riptide/riptide.c snd_card_set_dev(card, &pci->dev); dev 2046 sound/pci/riptide/riptide.c static int dev; dev 2048 sound/pci/riptide/riptide.c if (dev >= SNDRV_CARDS) dev 2050 sound/pci/riptide/riptide.c if (!enable[dev]) { dev 2051 sound/pci/riptide/riptide.c dev++; dev 2055 sound/pci/riptide/riptide.c if (joystick_port[dev]) { dev 2059 sound/pci/riptide/riptide.c (joystick_port[dev], 8, "Riptide gameport")) { dev 2062 sound/pci/riptide/riptide.c joystick_port[dev]); dev 2067 sound/pci/riptide/riptide.c riptide_gameport->io = joystick_port[dev]; dev 2072 sound/pci/riptide/riptide.c dev++; dev 2092 sound/pci/riptide/riptide.c static int dev; dev 2098 sound/pci/riptide/riptide.c if (dev >= SNDRV_CARDS) dev 2100 sound/pci/riptide/riptide.c if (!enable[dev]) { dev 2101 sound/pci/riptide/riptide.c dev++; dev 2105 sound/pci/riptide/riptide.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 2122 sound/pci/riptide/riptide.c | (opl3_port[dev] ? LEGACY_ENABLE_FM : 0) dev 2124 sound/pci/riptide/riptide.c | (joystick_port[dev] ? LEGACY_ENABLE_GAMEPORT : dev 2127 sound/pci/riptide/riptide.c | (mpu_port[dev] dev 2131 sound/pci/riptide/riptide.c if ((addr = mpu_port[dev]) != 0) { dev 2142 sound/pci/riptide/riptide.c if ((addr = opl3_port[dev]) != 0) { dev 2159 sound/pci/riptide/riptide.c if ((addr = joystick_port[dev]) != 0) { dev 2184 sound/pci/riptide/riptide.c dev++; dev 1931 sound/pci/rme32.c static int dev; dev 1936 sound/pci/rme32.c if (dev >= SNDRV_CARDS) { dev 1939 sound/pci/rme32.c if (!enable[dev]) { dev 1940 sound/pci/rme32.c dev++; dev 1944 sound/pci/rme32.c if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 1951 sound/pci/rme32.c snd_card_set_dev(card, &pci->dev); dev 1952 sound/pci/rme32.c if (fullduplex[dev]) dev 1979 sound/pci/rme32.c dev++; dev 2338 sound/pci/rme96.c static int dev; dev 2344 sound/pci/rme96.c if (dev >= SNDRV_CARDS) { dev 2347 sound/pci/rme96.c if (!enable[dev]) { dev 2348 sound/pci/rme96.c dev++; dev 2351 sound/pci/rme96.c if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 2358 sound/pci/rme96.c snd_card_set_dev(card, &pci->dev); dev 2392 sound/pci/rme96.c dev++; dev 477 sound/pci/rme9652/hdsp.c int dev; dev 566 sound/pci/rme9652/hdsp.c dmab->dev.type = SNDRV_DMA_TYPE_DEV; dev 567 sound/pci/rme9652/hdsp.c dmab->dev.dev = snd_dma_pci_data(pci); dev 581 sound/pci/rme9652/hdsp.c dmab->dev.dev = NULL; /* make it anonymous */ dev 4918 sound/pci/rme9652/hdsp.c if (request_firmware(&fw, fwfile, &hdsp->pci->dev)) { dev 5132 sound/pci/rme9652/hdsp.c static int dev; dev 5137 sound/pci/rme9652/hdsp.c if (dev >= SNDRV_CARDS) dev 5139 sound/pci/rme9652/hdsp.c if (!enable[dev]) { dev 5140 sound/pci/rme9652/hdsp.c dev++; dev 5144 sound/pci/rme9652/hdsp.c if (!(card = snd_card_new(index[dev], id[dev], THIS_MODULE, sizeof(struct hdsp)))) dev 5149 sound/pci/rme9652/hdsp.c hdsp->dev = dev; dev 5151 sound/pci/rme9652/hdsp.c snd_card_set_dev(card, &pci->dev); dev 5167 sound/pci/rme9652/hdsp.c dev++; dev 472 sound/pci/rme9652/hdspm.c int dev; /* Hardware vars... */ dev 3400 sound/pci/rme9652/hdspm.c if (line_outs_monitor[hdspm->dev]) { dev 4494 sound/pci/rme9652/hdspm.c static int dev; dev 4499 sound/pci/rme9652/hdspm.c if (dev >= SNDRV_CARDS) dev 4501 sound/pci/rme9652/hdspm.c if (!enable[dev]) { dev 4502 sound/pci/rme9652/hdspm.c dev++; dev 4506 sound/pci/rme9652/hdspm.c card = snd_card_new(index[dev], id[dev], dev 4513 sound/pci/rme9652/hdspm.c hdspm->dev = dev; dev 4516 sound/pci/rme9652/hdspm.c snd_card_set_dev(card, &pci->dev); dev 4518 sound/pci/rme9652/hdspm.c err = snd_hdspm_create(card, hdspm, precise_ptr[dev], dev 4519 sound/pci/rme9652/hdspm.c enable_monitor[dev]); dev 4537 sound/pci/rme9652/hdspm.c dev++; dev 201 sound/pci/rme9652/rme9652.c int dev; dev 296 sound/pci/rme9652/rme9652.c dmab->dev.type = SNDRV_DMA_TYPE_DEV; dev 297 sound/pci/rme9652/rme9652.c dmab->dev.dev = snd_dma_pci_data(pci); dev 311 sound/pci/rme9652/rme9652.c dmab->dev.dev = NULL; /* make it anonymous */ dev 2585 sound/pci/rme9652/rme9652.c static int dev; dev 2590 sound/pci/rme9652/rme9652.c if (dev >= SNDRV_CARDS) dev 2592 sound/pci/rme9652/rme9652.c if (!enable[dev]) { dev 2593 sound/pci/rme9652/rme9652.c dev++; dev 2597 sound/pci/rme9652/rme9652.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 2605 sound/pci/rme9652/rme9652.c rme9652->dev = dev; dev 2607 sound/pci/rme9652/rme9652.c snd_card_set_dev(card, &pci->dev); dev 2609 sound/pci/rme9652/rme9652.c if ((err = snd_rme9652_create(card, rme9652, precise_ptr[dev])) < 0) { dev 2625 sound/pci/rme9652/rme9652.c dev++; dev 302 sound/pci/sis7019.c struct sis7019 *sis = dev; dev 1070 sound/pci/sis7019.c struct sis7019 *sis = dev->device_data; dev 1365 sound/pci/sis7019.c snd_card_set_dev(card, &pci->dev); dev 1171 sound/pci/sonicvibes.c gameport_set_dev_parent(gp, &sonic->pci->dev); dev 1359 sound/pci/sonicvibes.c snd_card_set_dev(card, &pci->dev); dev 1412 sound/pci/sonicvibes.c static int dev; dev 1419 sound/pci/sonicvibes.c if (dev >= SNDRV_CARDS) dev 1421 sound/pci/sonicvibes.c if (!enable[dev]) { dev 1422 sound/pci/sonicvibes.c dev++; dev 1426 sound/pci/sonicvibes.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 1437 sound/pci/sonicvibes.c reverb[dev] ? 1 : 0, dev 1438 sound/pci/sonicvibes.c mge[dev] ? 1 : 0, dev 1487 sound/pci/sonicvibes.c dev++; dev 79 sound/pci/trident/trident.c static int dev; dev 85 sound/pci/trident/trident.c if (dev >= SNDRV_CARDS) dev 87 sound/pci/trident/trident.c if (!enable[dev]) { dev 88 sound/pci/trident/trident.c dev++; dev 92 sound/pci/trident/trident.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 97 sound/pci/trident/trident.c pcm_channels[dev], dev 99 sound/pci/trident/trident.c wavetable_size[dev], dev 164 sound/pci/trident/trident.c dev++; dev 3200 sound/pci/trident/trident_main.c gameport_set_dev_parent(gp, &chip->pci->dev); dev 3661 sound/pci/trident/trident_main.c snd_card_set_dev(card, &pci->dev); dev 287 sound/pci/trident/trident_memory.c if (substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV_SG) dev 425 sound/pci/via82xx.c if (dev->table.area == NULL) { dev 431 sound/pci/via82xx.c &dev->table) < 0) dev 434 sound/pci/via82xx.c if (! dev->idx_table) { dev 435 sound/pci/via82xx.c dev->idx_table = kmalloc(sizeof(*dev->idx_table) * VIA_TABLE_SIZE, GFP_KERNEL); dev 436 sound/pci/via82xx.c if (! dev->idx_table) dev 459 sound/pci/via82xx.c ((u32 *)dev->table.area)[idx << 1] = cpu_to_le32(addr); dev 470 sound/pci/via82xx.c ((u32 *)dev->table.area)[(idx<<1) + 1] = cpu_to_le32(r | flag); dev 471 sound/pci/via82xx.c dev->idx_table[idx].offset = ofs; dev 472 sound/pci/via82xx.c dev->idx_table[idx].size = r; dev 477 sound/pci/via82xx.c dev->tbl_entries = idx; dev 478 sound/pci/via82xx.c dev->bufsize = periods * fragsize; dev 479 sound/pci/via82xx.c dev->bufsize2 = dev->bufsize / 2; dev 480 sound/pci/via82xx.c dev->fragsize = fragsize; dev 488 sound/pci/via82xx.c if (dev->table.area) { dev 489 sound/pci/via82xx.c snd_dma_free_pages(&dev->table); dev 490 sound/pci/via82xx.c dev->table.area = NULL; dev 492 sound/pci/via82xx.c kfree(dev->idx_table); dev 493 sound/pci/via82xx.c dev->idx_table = NULL; dev 1863 sound/pci/via82xx.c gameport_set_dev_parent(gp, &chip->pci->dev); dev 2333 sound/pci/via82xx.c snd_card_set_dev(card, &pci->dev); dev 285 sound/pci/via82xx_modem.c if (dev->table.area == NULL) { dev 291 sound/pci/via82xx_modem.c &dev->table) < 0) dev 294 sound/pci/via82xx_modem.c if (! dev->idx_table) { dev 295 sound/pci/via82xx_modem.c dev->idx_table = kmalloc(sizeof(*dev->idx_table) * VIA_TABLE_SIZE, GFP_KERNEL); dev 296 sound/pci/via82xx_modem.c if (! dev->idx_table) dev 319 sound/pci/via82xx_modem.c ((u32 *)dev->table.area)[idx << 1] = cpu_to_le32(addr); dev 332 sound/pci/via82xx_modem.c ((u32 *)dev->table.area)[(idx<<1) + 1] = cpu_to_le32(r | flag); dev 333 sound/pci/via82xx_modem.c dev->idx_table[idx].offset = ofs; dev 334 sound/pci/via82xx_modem.c dev->idx_table[idx].size = r; dev 339 sound/pci/via82xx_modem.c dev->tbl_entries = idx; dev 340 sound/pci/via82xx_modem.c dev->bufsize = periods * fragsize; dev 341 sound/pci/via82xx_modem.c dev->bufsize2 = dev->bufsize / 2; dev 349 sound/pci/via82xx_modem.c if (dev->table.area) { dev 350 sound/pci/via82xx_modem.c snd_dma_free_pages(&dev->table); dev 351 sound/pci/via82xx_modem.c dev->table.area = NULL; dev 353 sound/pci/via82xx_modem.c kfree(dev->idx_table); dev 354 sound/pci/via82xx_modem.c dev->idx_table = NULL; dev 1154 sound/pci/via82xx_modem.c snd_card_set_dev(card, &pci->dev); dev 184 sound/pci/vx222/vx222.c snd_card_set_dev(card, &pci->dev); dev 194 sound/pci/vx222/vx222.c static int dev; dev 200 sound/pci/vx222/vx222.c if (dev >= SNDRV_CARDS) dev 202 sound/pci/vx222/vx222.c if (!enable[dev]) { dev 203 sound/pci/vx222/vx222.c dev++; dev 207 sound/pci/vx222/vx222.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 217 sound/pci/vx222/vx222.c if (mic[dev]) dev 228 sound/pci/vx222/vx222.c vx->core.ibl.size = ibl[dev]; dev 236 sound/pci/vx222/vx222.c vx->core.dev = &pci->dev; dev 250 sound/pci/vx222/vx222.c dev++; dev 87 sound/pci/ymfpci/ymfpci.c int io_port = joystick_port[dev]; dev 139 sound/pci/ymfpci/ymfpci.c gameport_set_dev_parent(gp, &chip->pci->dev); dev 173 sound/pci/ymfpci/ymfpci.c static int dev; dev 183 sound/pci/ymfpci/ymfpci.c if (dev >= SNDRV_CARDS) dev 185 sound/pci/ymfpci/ymfpci.c if (!enable[dev]) { dev 186 sound/pci/ymfpci/ymfpci.c dev++; dev 190 sound/pci/ymfpci/ymfpci.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); dev 208 sound/pci/ymfpci/ymfpci.c if (fm_port[dev] == 1) { dev 210 sound/pci/ymfpci/ymfpci.c fm_port[dev] = pci_resource_start(pci, 1); dev 212 sound/pci/ymfpci/ymfpci.c if (fm_port[dev] > 0 && dev 213 sound/pci/ymfpci/ymfpci.c (fm_res = request_region(fm_port[dev], 4, "YMFPCI OPL3")) != NULL) { dev 215 sound/pci/ymfpci/ymfpci.c pci_write_config_word(pci, PCIR_DSXG_FMBASE, fm_port[dev]); dev 217 sound/pci/ymfpci/ymfpci.c if (mpu_port[dev] == 1) { dev 219 sound/pci/ymfpci/ymfpci.c mpu_port[dev] = pci_resource_start(pci, 1) + 0x20; dev 221 sound/pci/ymfpci/ymfpci.c if (mpu_port[dev] > 0 && dev 222 sound/pci/ymfpci/ymfpci.c (mpu_res = request_region(mpu_port[dev], 2, "YMFPCI MPU401")) != NULL) { dev 224 sound/pci/ymfpci/ymfpci.c pci_write_config_word(pci, PCIR_DSXG_MPU401BASE, mpu_port[dev]); dev 227 sound/pci/ymfpci/ymfpci.c switch (fm_port[dev]) { dev 232 sound/pci/ymfpci/ymfpci.c default: fm_port[dev] = 0; break; dev 234 sound/pci/ymfpci/ymfpci.c if (fm_port[dev] > 0 && dev 235 sound/pci/ymfpci/ymfpci.c (fm_res = request_region(fm_port[dev], 4, "YMFPCI OPL3")) != NULL) { dev 239 sound/pci/ymfpci/ymfpci.c fm_port[dev] = 0; dev 241 sound/pci/ymfpci/ymfpci.c switch (mpu_port[dev]) { dev 246 sound/pci/ymfpci/ymfpci.c default: mpu_port[dev] = 0; break; dev 248 sound/pci/ymfpci/ymfpci.c if (mpu_port[dev] > 0 && dev 249 sound/pci/ymfpci/ymfpci.c (mpu_res = request_region(mpu_port[dev], 2, "YMFPCI MPU401")) != NULL) { dev 253 sound/pci/ymfpci/ymfpci.c mpu_port[dev] = 0; dev 297 sound/pci/ymfpci/ymfpci.c if ((err = snd_ymfpci_mixer(chip, rear_switch[dev])) < 0) { dev 307 sound/pci/ymfpci/ymfpci.c mpu_port[dev], dev 310 sound/pci/ymfpci/ymfpci.c printk(KERN_WARNING "ymfpci: cannot initialize MPU401 at 0x%lx, skipping...\n", mpu_port[dev]); dev 317 sound/pci/ymfpci/ymfpci.c fm_port[dev], dev 318 sound/pci/ymfpci/ymfpci.c fm_port[dev] + 2, dev 320 sound/pci/ymfpci/ymfpci.c printk(KERN_WARNING "ymfpci: cannot initialize FM OPL3 at 0x%lx, skipping...\n", fm_port[dev]); dev 330 sound/pci/ymfpci/ymfpci.c snd_ymfpci_create_gameport(chip, dev, legacy_ctrl, legacy_ctrl2); dev 337 sound/pci/ymfpci/ymfpci.c dev++; dev 2008 sound/pci/ymfpci/ymfpci_main.c &chip->pci->dev); dev 2023 sound/pci/ymfpci/ymfpci_main.c &chip->pci->dev); dev 2417 sound/pci/ymfpci/ymfpci_main.c snd_card_set_dev(card, &pci->dev); dev 31 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c struct snd_pdacf *chip = dev; dev 238 sound/pcmcia/vx/vxpocket.c chip->dev = &handle_to_dev(link); dev 239 sound/pcmcia/vx/vxpocket.c snd_card_set_dev(chip->card, chip->dev); dev 40 sound/ppc/beep.c struct input_dev *dev; dev 120 sound/ppc/beep.c chip = input_get_drvdata(dev); dev 229 sound/ppc/beep.c dmabuf = dma_alloc_coherent(&chip->pdev->dev, BEEP_BUFLEN * 4, dev 246 sound/ppc/beep.c input_dev->dev.parent = &chip->pdev->dev; dev 249 sound/ppc/beep.c beep->dev = input_dev; dev 261 sound/ppc/beep.c err = input_register_device(beep->dev); dev 270 sound/ppc/beep.c dma_free_coherent(&chip->pdev->dev, BEEP_BUFLEN * 4, dev 279 sound/ppc/beep.c input_unregister_device(chip->beep->dev); dev 280 sound/ppc/beep.c dma_free_coherent(&chip->pdev->dev, BEEP_BUFLEN * 4, dev 66 sound/ppc/pmac.c rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, dev 83 sound/ppc/pmac.c dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); dev 737 sound/ppc/pmac.c &chip->pdev->dev, dev 125 sound/ppc/powermac.c snd_card_set_dev(card, &devptr->dev); dev 849 sound/ppc/snd_ps3.c BUG_ON(dev->match_id != PS3_MATCH_ID_SOUND); dev 851 sound/ppc/snd_ps3.c the_card.ps3_dev = dev; dev 853 sound/ppc/snd_ps3.c ret = ps3_open_hv_device(dev); dev 864 sound/ppc/snd_ps3.c ps3_mmio_region_init(dev, dev->m_region, lpar_addr, lpar_size, dev 872 sound/ppc/snd_ps3.c ps3_dma_region_init(dev, dev->d_region, dev 877 sound/ppc/snd_ps3.c dev->d_region->ioid = PS3_AUDIO_IOID; dev 879 sound/ppc/snd_ps3.c ret = ps3_dma_region_create(dev->d_region); dev 885 sound/ppc/snd_ps3.c snd_ps3_audio_set_base_addr(dev->d_region->bus_addr); dev 928 sound/ppc/snd_ps3.c &dev->core, dev 956 sound/ppc/snd_ps3.c snd_card_set_dev(the_card.card, &dev->core); dev 977 sound/ppc/snd_ps3.c ps3_dma_region_free(dev->d_region); dev 983 sound/ppc/snd_ps3.c ps3_close_hv_device(dev); dev 995 sound/ppc/snd_ps3.c pr_info("%s:start id=%d\n", __func__, dev->match_id); dev 996 sound/ppc/snd_ps3.c if (dev->match_id != PS3_MATCH_ID_SOUND) dev 1007 sound/ppc/snd_ps3.c dma_free_coherent(&dev->core, dev 1012 sound/ppc/snd_ps3.c ps3_dma_region_free(dev->d_region); dev 1018 sound/ppc/snd_ps3.c ps3_close_hv_device(dev); dev 1019 sound/ppc/snd_ps3.c pr_info("%s:end id=%d\n", __func__, dev->match_id); dev 565 sound/sh/aica.c err = request_firmware(&fw_entry, "aica_firmware.bin", &pd->dev); dev 628 sound/sh/aica.c snd_card_set_dev(dreamcastcard->card, &devptr->dev); dev 84 sound/soc/at32/at32-pcm.c dmabuf->dev.type = SNDRV_DMA_TYPE_DEV; dev 85 sound/soc/at32/at32-pcm.c dmabuf->dev.dev = pcm->card->dev; dev 87 sound/soc/at32/at32-pcm.c dmabuf->area = dma_alloc_coherent(pcm->card->dev, size, dev 374 sound/soc/at32/at32-pcm.c if (!card->dev->dma_mask) dev 375 sound/soc/at32/at32-pcm.c card->dev->dma_mask = &at32_pcm_dmamask; dev 376 sound/soc/at32/at32-pcm.c if (!card->dev->coherent_dma_mask) dev 377 sound/soc/at32/at32-pcm.c card->dev->coherent_dma_mask = 0xffffffff; dev 415 sound/soc/at32/at32-pcm.c dma_free_coherent(pcm->card->dev, buf->bytes, dev 450 sound/soc/at32/playpaq_wm8510.c playpaq_wm8510_snd_devdata.dev = &playpaq_snd_device->dev; dev 275 sound/soc/at91/at91-pcm.c return dma_mmap_writecombine(substream->pcm->card->dev, vma, dev 300 sound/soc/at91/at91-pcm.c buf->dev.type = SNDRV_DMA_TYPE_DEV; dev 301 sound/soc/at91/at91-pcm.c buf->dev.dev = pcm->card->dev; dev 303 sound/soc/at91/at91-pcm.c buf->area = dma_alloc_writecombine(pcm->card->dev, size, dev 325 sound/soc/at91/at91-pcm.c if (!card->dev->dma_mask) dev 326 sound/soc/at91/at91-pcm.c card->dev->dma_mask = &at91_pcm_dmamask; dev 327 sound/soc/at91/at91-pcm.c if (!card->dev->coherent_dma_mask) dev 328 sound/soc/at91/at91-pcm.c card->dev->coherent_dma_mask = 0xffffffff; dev 362 sound/soc/at91/at91-pcm.c dma_free_writecombine(pcm->card->dev, buf->bytes, dev 329 sound/soc/au1x/dbdma2.c card->dev, AU1XPSC_BUFFER_MIN_BYTES, (4096 * 1024) - 1); dev 122 sound/soc/au1x/sample-ac97.c au1xpsc_sample_ac97_devdata.dev = &au1xpsc_sample_ac97_dev->dev; dev 323 sound/soc/blackfin/bf5xx-ac97-pcm.c buf->dev.type = SNDRV_DMA_TYPE_DEV; dev 324 sound/soc/blackfin/bf5xx-ac97-pcm.c buf->dev.dev = pcm->card->dev; dev 326 sound/soc/blackfin/bf5xx-ac97-pcm.c buf->area = dma_alloc_coherent(pcm->card->dev, size, dev 425 sound/soc/blackfin/bf5xx-ac97-pcm.c if (!card->dev->dma_mask) dev 426 sound/soc/blackfin/bf5xx-ac97-pcm.c card->dev->dma_mask = &bf5xx_pcm_dmamask; dev 427 sound/soc/blackfin/bf5xx-ac97-pcm.c if (!card->dev->coherent_dma_mask) dev 428 sound/soc/blackfin/bf5xx-ac97-pcm.c card->dev->coherent_dma_mask = DMA_32BIT_MASK; dev 93 sound/soc/blackfin/bf5xx-ad1980.c bf5xx_board_snd_devdata.dev = &bf5xx_board_snd_device->dev; dev 218 sound/soc/blackfin/bf5xx-ad73311.c bf5xx_ad73311_snd_devdata.dev = &bf52x_ad73311_snd_device->dev; dev 204 sound/soc/blackfin/bf5xx-i2s-pcm.c buf->dev.type = SNDRV_DMA_TYPE_DEV; dev 205 sound/soc/blackfin/bf5xx-i2s-pcm.c buf->dev.dev = pcm->card->dev; dev 207 sound/soc/blackfin/bf5xx-i2s-pcm.c buf->area = dma_alloc_coherent(pcm->card->dev, size, dev 256 sound/soc/blackfin/bf5xx-i2s-pcm.c if (!card->dev->dma_mask) dev 257 sound/soc/blackfin/bf5xx-i2s-pcm.c card->dev->dma_mask = &bf5xx_pcm_dmamask; dev 258 sound/soc/blackfin/bf5xx-i2s-pcm.c if (!card->dev->coherent_dma_mask) dev 259 sound/soc/blackfin/bf5xx-i2s-pcm.c card->dev->coherent_dma_mask = DMA_32BIT_MASK; dev 164 sound/soc/blackfin/bf5xx-ssm2602.c bf5xx_ssm2602_snd_devdata.dev = &bf52x_ssm2602_snd_device->dev; dev 587 sound/soc/codecs/ak4535.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 597 sound/soc/codecs/ak4535.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 605 sound/soc/codecs/ak4535.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 679 sound/soc/codecs/ssm2602.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 687 sound/soc/codecs/ssm2602.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 694 sound/soc/codecs/ssm2602.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 636 sound/soc/codecs/tlv320aic23.c put_device(&i2c->dev); dev 69 sound/soc/codecs/tlv320aic26.c dev_err(&aic26->spi->dev, "AIC26 reg read error\n"); dev 115 sound/soc/codecs/tlv320aic26.c dev_err(&aic26->spi->dev, "AIC26 reg read error\n"); dev 137 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "aic26_hw_params(substream=%p, params=%p)\n", dev 139 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "rate=%i format=%i\n", params_rate(params), dev 153 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "bad rate\n"); return -EINVAL; dev 163 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "bad format\n"); return -EINVAL; dev 203 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "aic26_mute(dai=%p, mute=%i)\n", dev 221 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "aic26_set_sysclk(dai=%p, clk_id==%i," dev 238 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "aic26_set_fmt(dai=%p, fmt==%i)\n", dev 246 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "bad master\n"); return -EINVAL; dev 256 sound/soc/codecs/tlv320aic26.c dev_dbg(&aic26->spi->dev, "bad format\n"); return -EINVAL; dev 330 sound/soc/codecs/tlv320aic26.c dev_info(&pdev->dev, "Probing AIC26 SoC CODEC driver\n"); dev 331 sound/soc/codecs/tlv320aic26.c dev_dbg(&pdev->dev, "socdev=%p\n", socdev); dev 332 sound/soc/codecs/tlv320aic26.c dev_dbg(&pdev->dev, "codec_data=%p\n", socdev->codec_data); dev 338 sound/soc/codecs/tlv320aic26.c dev_err(&pdev->dev, "aic26: missing codec pointer\n"); dev 344 sound/soc/codecs/tlv320aic26.c dev_dbg(&pdev->dev, "Registering PCMs, dev=%p, socdev->dev=%p\n", dev 345 sound/soc/codecs/tlv320aic26.c &pdev->dev, socdev->dev); dev 349 sound/soc/codecs/tlv320aic26.c dev_err(&pdev->dev, "aic26: failed to create pcms\n"); dev 354 sound/soc/codecs/tlv320aic26.c dev_dbg(&pdev->dev, "Registering controls\n"); dev 362 sound/soc/codecs/tlv320aic26.c dev_dbg(&pdev->dev, "Registering card\n"); dev 365 sound/soc/codecs/tlv320aic26.c dev_err(&pdev->dev, "aic26: failed to register card\n"); dev 395 sound/soc/codecs/tlv320aic26.c struct aic26 *aic26 = dev_get_drvdata(dev); dev 411 sound/soc/codecs/tlv320aic26.c struct aic26 *aic26 = dev_get_drvdata(dev); dev 432 sound/soc/codecs/tlv320aic26.c dev_dbg(&spi->dev, "probing tlv320aic26 spi device\n"); dev 441 sound/soc/codecs/tlv320aic26.c dev_set_drvdata(&spi->dev, aic26); dev 478 sound/soc/codecs/tlv320aic26.c rc = device_create_file(&spi->dev, &dev_attr_keyclick); dev 480 sound/soc/codecs/tlv320aic26.c dev_info(&spi->dev, "error creating sysfs files\n"); dev 485 sound/soc/codecs/tlv320aic26.c spi->dev.archdata.of_node); dev 488 sound/soc/codecs/tlv320aic26.c dev_dbg(&spi->dev, "SPI device initialized\n"); dev 494 sound/soc/codecs/tlv320aic26.c struct aic26 *aic26 = dev_get_drvdata(&spi->dev); dev 1235 sound/soc/codecs/tlv320aic3x.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 1245 sound/soc/codecs/tlv320aic3x.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 1253 sound/soc/codecs/tlv320aic3x.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 754 sound/soc/codecs/uda1380.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 764 sound/soc/codecs/uda1380.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 772 sound/soc/codecs/uda1380.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 735 sound/soc/codecs/wm8510.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 745 sound/soc/codecs/wm8510.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 753 sound/soc/codecs/wm8510.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 777 sound/soc/codecs/wm8510.c dev_err(&spi->dev, "failed to initialise WM8510\n"); dev 935 sound/soc/codecs/wm8580.c dev_err(&i2c->dev, "failed to attach codec at addr %x\n", addr); dev 941 sound/soc/codecs/wm8580.c dev_err(&i2c->dev, "failed to initialise WM8580\n"); dev 624 sound/soc/codecs/wm8731.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 634 sound/soc/codecs/wm8731.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 642 sound/soc/codecs/wm8731.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 666 sound/soc/codecs/wm8731.c dev_err(&spi->dev, "failed to initialise WM8731\n"); dev 900 sound/soc/codecs/wm8750.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 910 sound/soc/codecs/wm8750.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 918 sound/soc/codecs/wm8750.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 942 sound/soc/codecs/wm8750.c dev_err(&spi->dev, "failed to initialise WM8750\n"); dev 1690 sound/soc/codecs/wm8753.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 1700 sound/soc/codecs/wm8753.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 1708 sound/soc/codecs/wm8753.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 1732 sound/soc/codecs/wm8753.c dev_err(&spi->dev, "failed to initialise WM8753\n"); dev 1235 sound/soc/codecs/wm8900.c dev_err(&pdev->dev, "Failed to stop FLL\n"); dev 1271 sound/soc/codecs/wm8900.c dev_err(&pdev->dev, "Failed to restart FLL\n"); dev 1281 sound/soc/codecs/wm8900.c dev_err(&pdev->dev, "Unable to allocate register cache\n"); dev 1312 sound/soc/codecs/wm8900.c dev_err(&i2c_client->dev, "Device is not a WM8900 - ID %x\n", dev 1326 sound/soc/codecs/wm8900.c dev_info(&i2c_client->dev, "WM8900 revision %d\n", reg); dev 1358 sound/soc/codecs/wm8900.c dev_err(&i2c_client->dev, "Failed to register new PCMs\n"); dev 1371 sound/soc/codecs/wm8900.c dev_err(&i2c_client->dev, "Failed to register card\n"); dev 1411 sound/soc/codecs/wm8900.c dev_err(&adap->dev, "Probe on %x\n", addr); dev 1426 sound/soc/codecs/wm8900.c dev_err(&adap->dev, dev 1433 sound/soc/codecs/wm8900.c dev_err(&adap->dev, "failed to initialise WM8900\n"); dev 1482 sound/soc/codecs/wm8900.c dev_info(&pdev->dev, "WM8900 Audio Codec\n"); dev 327 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Starting sequence at %d\n", start); dev 342 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Sequence complete\n"); dev 417 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Charge pump use count now %d\n", dev 421 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Enabling charge pump\n"); dev 462 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Charge pump use count now %d\n", dev 466 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Disabling charge pump\n"); dev 498 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Disabling Class W\n"); dev 511 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Enabling Class W\n"); dev 518 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Bypass use count now %d\n", dev 1009 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Enabling Class W\n"); dev 1280 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Constraining to %d bits at %dHz\n", dev 1344 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Ignoring hw_params for slave substream\n"); dev 1364 sound/soc/codecs/wm8903.c dev_err(&i2c->dev, "%dHz unsupported by ADC\n", dev 1372 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "DSP fs = %dHz\n", sample_rates[dsp_config].rate); dev 1398 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "MCLK = %dHz, target sample rate = %dHz\n", dev 1433 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "CLK_SYS_RATE=%x, CLK_SYS_MODE=%x div=%d\n", dev 1438 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "Actual CLK_SYS = %dHz\n", clk_sys); dev 1460 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "BCLK ratio %d for %dHz - actual BCLK = %dHz\n", dev 1557 sound/soc/codecs/wm8903.c dev_err(&i2c->dev, "Failed to allocate temporary cache\n"); dev 1576 sound/soc/codecs/wm8903.c dev_err(&i2c->dev, dev 1594 sound/soc/codecs/wm8903.c dev_err(&i2c->dev, "Failed to allocate register cache\n"); dev 1599 sound/soc/codecs/wm8903.c dev_info(&i2c->dev, "WM8903 revision %d\n", dev 1607 sound/soc/codecs/wm8903.c dev_err(&i2c->dev, "failed to create pcms\n"); dev 1652 sound/soc/codecs/wm8903.c dev_err(&i2c->dev, "wm8903: failed to register card\n"); dev 1680 sound/soc/codecs/wm8903.c dev_err(&i2c->dev, "Device initialisation failed\n"); dev 1723 sound/soc/codecs/wm8903.c dev_err(&pdev->dev, "No codec address provided\n"); dev 1748 sound/soc/codecs/wm8903.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 1757 sound/soc/codecs/wm8903.c dev_err(&pdev->dev, "Can't get I2C bus %d\n", dev 1766 sound/soc/codecs/wm8903.c dev_err(&pdev->dev, dev 823 sound/soc/codecs/wm8971.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 833 sound/soc/codecs/wm8971.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 841 sound/soc/codecs/wm8971.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 1530 sound/soc/codecs/wm8990.c dev_err(&pdev->dev, "can't add i2c driver\n"); dev 1540 sound/soc/codecs/wm8990.c dev_err(&pdev->dev, "can't get i2c adapter %d\n", dev 1548 sound/soc/codecs/wm8990.c dev_err(&pdev->dev, "can't add i2c device at 0x%x\n", dev 175 sound/soc/davinci/davinci-evm.c evm_snd_devdata.dev = &evm_snd_device->dev; dev 176 sound/soc/davinci/davinci-evm.c evm_snd_device->dev.platform_data = &evm_snd_data; dev 101 sound/soc/davinci/davinci-i2s.c __raw_writel(val, dev->base + reg); dev 106 sound/soc/davinci/davinci-i2s.c return __raw_readl(dev->base + reg); dev 112 sound/soc/davinci/davinci-i2s.c struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data; dev 116 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); dev 122 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, w); dev 125 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); dev 127 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, w); dev 133 sound/soc/davinci/davinci-i2s.c struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data; dev 137 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SPCR_REG); dev 144 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, w); dev 151 sound/soc/davinci/davinci-i2s.c struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data; dev 153 sound/soc/davinci/davinci-i2s.c cpu_dai->dma_data = dev->dma_params[substream->stream]; dev 161 sound/soc/davinci/davinci-i2s.c struct davinci_mcbsp_dev *dev = cpu_dai->private_data; dev 166 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, dev 171 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SRGR_REG, dev 175 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, 0); dev 183 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_PCR_REG); dev 186 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, w); dev 189 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_PCR_REG); dev 192 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, w); dev 195 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_PCR_REG); dev 200 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_PCR_REG, w); dev 216 sound/soc/davinci/davinci-i2s.c struct davinci_mcbsp_dev *dev = rtd->dai->cpu_dai->private_data; dev 222 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SPCR_REG, dev 226 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_RCR_REG, dev 229 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_XCR_REG, dev 235 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SRGR_REG); dev 237 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SRGR_REG, w); dev 240 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_SRGR_REG); dev 242 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_SRGR_REG, w); dev 263 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_RCR_REG); dev 266 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_RCR_REG, w); dev 268 sound/soc/davinci/davinci-i2s.c w = davinci_mcbsp_read_reg(dev, DAVINCI_MCBSP_XCR_REG); dev 271 sound/soc/davinci/davinci-i2s.c davinci_mcbsp_write_reg(dev, DAVINCI_MCBSP_XCR_REG, w); dev 304 sound/soc/davinci/davinci-i2s.c struct davinci_mcbsp_dev *dev; dev 311 sound/soc/davinci/davinci-i2s.c dev_err(&pdev->dev, "no mem resource?\n"); dev 318 sound/soc/davinci/davinci-i2s.c dev_err(&pdev->dev, "McBSP region already claimed\n"); dev 322 sound/soc/davinci/davinci-i2s.c dev = kzalloc(sizeof(struct davinci_mcbsp_dev), GFP_KERNEL); dev 323 sound/soc/davinci/davinci-i2s.c if (!dev) { dev 328 sound/soc/davinci/davinci-i2s.c cpu_dai->private_data = dev; dev 330 sound/soc/davinci/davinci-i2s.c dev->clk = clk_get(&pdev->dev, "McBSPCLK"); dev 331 sound/soc/davinci/davinci-i2s.c if (IS_ERR(dev->clk)) { dev 335 sound/soc/davinci/davinci-i2s.c clk_enable(dev->clk); dev 337 sound/soc/davinci/davinci-i2s.c dev->base = (void __iomem *)IO_ADDRESS(mem->start); dev 338 sound/soc/davinci/davinci-i2s.c pdata = pdev->dev.platform_data; dev 340 sound/soc/davinci/davinci-i2s.c dev->dma_params[SNDRV_PCM_STREAM_PLAYBACK] = &davinci_i2s_pcm_out; dev 341 sound/soc/davinci/davinci-i2s.c dev->dma_params[SNDRV_PCM_STREAM_PLAYBACK]->channel = pdata->tx_dma_ch; dev 342 sound/soc/davinci/davinci-i2s.c dev->dma_params[SNDRV_PCM_STREAM_PLAYBACK]->dma_addr = dev 343 sound/soc/davinci/davinci-i2s.c (dma_addr_t)(io_v2p(dev->base) + DAVINCI_MCBSP_DXR_REG); dev 345 sound/soc/davinci/davinci-i2s.c dev->dma_params[SNDRV_PCM_STREAM_CAPTURE] = &davinci_i2s_pcm_in; dev 346 sound/soc/davinci/davinci-i2s.c dev->dma_params[SNDRV_PCM_STREAM_CAPTURE]->channel = pdata->rx_dma_ch; dev 347 sound/soc/davinci/davinci-i2s.c dev->dma_params[SNDRV_PCM_STREAM_CAPTURE]->dma_addr = dev 348 sound/soc/davinci/davinci-i2s.c (dma_addr_t)(io_v2p(dev->base) + DAVINCI_MCBSP_DRR_REG); dev 353 sound/soc/davinci/davinci-i2s.c kfree(dev); dev 366 sound/soc/davinci/davinci-i2s.c struct davinci_mcbsp_dev *dev = cpu_dai->private_data; dev 369 sound/soc/davinci/davinci-i2s.c clk_disable(dev->clk); dev 370 sound/soc/davinci/davinci-i2s.c clk_put(dev->clk); dev 371 sound/soc/davinci/davinci-i2s.c dev->clk = NULL; dev 373 sound/soc/davinci/davinci-i2s.c kfree(dev); dev 289 sound/soc/davinci/davinci-pcm.c return dma_mmap_writecombine(substream->pcm->card->dev, vma, dev 313 sound/soc/davinci/davinci-pcm.c buf->dev.type = SNDRV_DMA_TYPE_DEV; dev 314 sound/soc/davinci/davinci-pcm.c buf->dev.dev = pcm->card->dev; dev 316 sound/soc/davinci/davinci-pcm.c buf->area = dma_alloc_writecombine(pcm->card->dev, size, dev 344 sound/soc/davinci/davinci-pcm.c dma_free_writecombine(pcm->card->dev, buf->bytes, dev 357 sound/soc/davinci/davinci-pcm.c if (!card->dev->dma_mask) dev 358 sound/soc/davinci/davinci-pcm.c card->dev->dma_mask = &davinci_pcm_dmamask; dev 359 sound/soc/davinci/davinci-pcm.c if (!card->dev->coherent_dma_mask) dev 360 sound/soc/davinci/davinci-pcm.c card->dev->coherent_dma_mask = 0xffffffff; dev 223 sound/soc/fsl/fsl_dma.c dev_err(dma_private->substream->pcm->card->dev, dev 236 sound/soc/fsl/fsl_dma.c dev_err(dma_private->substream->pcm->card->dev, dev 296 sound/soc/fsl/fsl_dma.c if (!card->dev->dma_mask) dev 297 sound/soc/fsl/fsl_dma.c card->dev->dma_mask = &fsl_dma_dmamask; dev 299 sound/soc/fsl/fsl_dma.c if (!card->dev->coherent_dma_mask) dev 300 sound/soc/fsl/fsl_dma.c card->dev->coherent_dma_mask = fsl_dma_dmamask; dev 302 sound/soc/fsl/fsl_dma.c ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->dev, dev 306 sound/soc/fsl/fsl_dma.c dev_err(card->dev, dev 312 sound/soc/fsl/fsl_dma.c ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->dev, dev 317 sound/soc/fsl/fsl_dma.c dev_err(card->dev, dev 408 sound/soc/fsl/fsl_dma.c dev_err(substream->pcm->card->dev, "invalid buffer size\n"); dev 415 sound/soc/fsl/fsl_dma.c dev_err(substream->pcm->card->dev, dev 420 sound/soc/fsl/fsl_dma.c dma_private = dma_alloc_coherent(substream->pcm->dev, dev 423 sound/soc/fsl/fsl_dma.c dev_err(substream->pcm->card->dev, dev 444 sound/soc/fsl/fsl_dma.c dev_err(substream->pcm->card->dev, dev 447 sound/soc/fsl/fsl_dma.c dma_free_coherent(substream->pcm->dev, dev 644 sound/soc/fsl/fsl_dma.c dev_err(substream->pcm->card->dev, dev 770 sound/soc/fsl/fsl_dma.c dma_unmap_single(substream->pcm->dev, dev 776 sound/soc/fsl/fsl_dma.c dma_free_coherent(substream->pcm->dev, dev 86 sound/soc/fsl/fsl_ssi.c struct device *dev; dev 285 sound/soc/fsl/fsl_ssi.c dev_err(substream->pcm->card->dev, dev 373 sound/soc/fsl/fsl_ssi.c dev_err(substream->pcm->card->dev, dev 641 sound/soc/fsl/fsl_ssi.c dev_err(ssi_info->dev, "could not allocate DAI object\n"); dev 654 sound/soc/fsl/fsl_ssi.c ssi_private->dev = ssi_info->dev; dev 656 sound/soc/fsl/fsl_ssi.c ssi_private->dev->driver_data = fsl_ssi_dai; dev 663 sound/soc/fsl/fsl_ssi.c ret = device_create_file(ssi_private->dev, dev_attr); dev 665 sound/soc/fsl/fsl_ssi.c dev_err(ssi_info->dev, "could not create sysfs %s file\n", dev 689 sound/soc/fsl/fsl_ssi.c device_remove_file(ssi_private->dev, &ssi_private->dev_attr); dev 217 sound/soc/fsl/fsl_ssi.h struct device *dev; dev 92 sound/soc/fsl/mpc5200_psc_i2s.c struct device *dev; dev 196 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "psc_i2s_startup(substream=%p)\n", substream); dev 229 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "%s(substream=%p) p_size=%i p_bytes=%i" dev 249 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "invalid format\n"); dev 287 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "psc_i2s_trigger(substream=%p, cmd=%i)" dev 366 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "invalid command\n"); dev 391 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "psc_i2s_shutdown(substream=%p)\n", substream); dev 432 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "psc_i2s_set_sysclk(cpu_dai=%p, dir=%i)\n", dev 451 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "psc_i2s_set_fmt(cpu_dai=%p, format=%i)\n", dev 524 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "psc_i2s_pcm_open(substream=%p)\n", substream); dev 543 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(psc_i2s->dev, "psc_i2s_pcm_close(substream=%p)\n", substream); dev 587 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(rtd->socdev->dev, "psc_i2s_pcm_new(card=%p, dai=%p, pcm=%p)\n", dev 590 sound/soc/fsl/mpc5200_psc_i2s.c if (!card->dev->dma_mask) dev 591 sound/soc/fsl/mpc5200_psc_i2s.c card->dev->dma_mask = &psc_i2s_pcm_dmamask; dev 592 sound/soc/fsl/mpc5200_psc_i2s.c if (!card->dev->coherent_dma_mask) dev 593 sound/soc/fsl/mpc5200_psc_i2s.c card->dev->coherent_dma_mask = 0xffffffff; dev 596 sound/soc/fsl/mpc5200_psc_i2s.c rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->dev, size, dev 603 sound/soc/fsl/mpc5200_psc_i2s.c rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->dev, size, dev 615 sound/soc/fsl/mpc5200_psc_i2s.c dev_err(card->dev, "Cannot allocate buffer(s)\n"); dev 625 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(rtd->socdev->dev, "psc_i2s_pcm_free(pcm=%p)\n", pcm); dev 651 sound/soc/fsl/mpc5200_psc_i2s.c struct psc_i2s *psc_i2s = dev_get_drvdata(dev); dev 676 sound/soc/fsl/mpc5200_psc_i2s.c struct psc_i2s *psc_i2s = dev_get_drvdata(dev); dev 691 sound/soc/fsl/mpc5200_psc_i2s.c struct psc_i2s *psc_i2s = dev_get_drvdata(dev); dev 721 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(&op->dev, "probing psc i2s device\n"); dev 732 sound/soc/fsl/mpc5200_psc_i2s.c dev_err(&op->dev, "Missing reg property\n"); dev 737 sound/soc/fsl/mpc5200_psc_i2s.c dev_err(&op->dev, "Could not map registers\n"); dev 751 sound/soc/fsl/mpc5200_psc_i2s.c psc_i2s->dev = &op->dev; dev 771 sound/soc/fsl/mpc5200_psc_i2s.c dev_err(&op->dev, "Could not allocate bestcomm tasks\n"); dev 818 sound/soc/fsl/mpc5200_psc_i2s.c dev_set_drvdata(&op->dev, psc_i2s); dev 821 sound/soc/fsl/mpc5200_psc_i2s.c rc = device_create_file(psc_i2s->dev, &dev_attr_status); dev 822 sound/soc/fsl/mpc5200_psc_i2s.c rc = device_create_file(psc_i2s->dev, &dev_attr_capture_overrun); dev 823 sound/soc/fsl/mpc5200_psc_i2s.c rc = device_create_file(psc_i2s->dev, &dev_attr_playback_underrun); dev 825 sound/soc/fsl/mpc5200_psc_i2s.c dev_info(psc_i2s->dev, "error creating sysfs files\n"); dev 836 sound/soc/fsl/mpc5200_psc_i2s.c struct psc_i2s *psc_i2s = dev_get_drvdata(&op->dev); dev 838 sound/soc/fsl/mpc5200_psc_i2s.c dev_dbg(&op->dev, "psc_i2s_remove()\n"); dev 846 sound/soc/fsl/mpc5200_psc_i2s.c dev_set_drvdata(&op->dev, NULL); dev 58 sound/soc/fsl/mpc8610_hpcd.c sound_device->dev.platform_data; dev 98 sound/soc/fsl/mpc8610_hpcd.c rtd->socdev->dev->platform_data; dev 104 sound/soc/fsl/mpc8610_hpcd.c dev_err(substream->pcm->card->dev, dev 112 sound/soc/fsl/mpc8610_hpcd.c dev_err(substream->pcm->card->dev, dev 125 sound/soc/fsl/mpc8610_hpcd.c dev_err(substream->pcm->card->dev, dev 138 sound/soc/fsl/mpc8610_hpcd.c dev_err(substream->pcm->card->dev, dev 155 sound/soc/fsl/mpc8610_hpcd.c sound_device->dev.platform_data; dev 239 sound/soc/fsl/mpc8610_hpcd.c ssi_info.dev = &ofdev->dev; dev 261 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "cell-index property not found\n"); dev 271 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "fsl,mode property not found\n"); dev 288 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "codec bus-frequency property " dev 323 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, dev 330 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "unknown clock frequency\n"); dev 338 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "could not obtain SSI address\n"); dev 342 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "invalid SSI address\n"); dev 349 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "could not map SSI address %x\n", dev 360 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "could not get SSI IRQ\n"); dev 370 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "could not obtain address of GUTS\n"); dev 377 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "could not map GUTS\n"); dev 393 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "could not find DMA node\n"); dev 430 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "could not find DMA channels\n"); dev 442 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "could not instantiate DMA device\n"); dev 463 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "platform device allocation failed\n"); dev 472 sound/soc/fsl/mpc8610_hpcd.c sound_device->dev.platform_data = machine_data; dev 478 sound/soc/fsl/mpc8610_hpcd.c machine_data->sound_devdata.dev = &sound_device->dev; dev 486 sound/soc/fsl/mpc8610_hpcd.c dev_err(&ofdev->dev, "platform device add failed\n"); dev 490 sound/soc/fsl/mpc8610_hpcd.c dev_set_drvdata(&ofdev->dev, sound_device); dev 539 sound/soc/fsl/mpc8610_hpcd.c struct platform_device *sound_device = dev_get_drvdata(&ofdev->dev); dev 541 sound/soc/fsl/mpc8610_hpcd.c sound_device->dev.platform_data; dev 567 sound/soc/fsl/mpc8610_hpcd.c sound_device->dev.platform_data = NULL; dev 569 sound/soc/fsl/mpc8610_hpcd.c dev_set_drvdata(&ofdev->dev, NULL); dev 88 sound/soc/fsl/soc-of-simple.c pdev->dev.platform_data = of_soc; dev 90 sound/soc/fsl/soc-of-simple.c of_soc->device.dev = &pdev->dev; dev 312 sound/soc/omap/n810.c struct device *dev; dev 322 sound/soc/omap/n810.c n810_snd_devdata.dev = &n810_snd_device->dev; dev 328 sound/soc/omap/n810.c dev = &n810_snd_device->dev; dev 330 sound/soc/omap/n810.c sys_clkout2_src = clk_get(dev, "sys_clkout2_src"); dev 332 sound/soc/omap/n810.c dev_err(dev, "Could not get sys_clkout2_src clock\n"); dev 336 sound/soc/omap/n810.c sys_clkout2 = clk_get(dev, "sys_clkout2"); dev 338 sound/soc/omap/n810.c dev_err(dev, "Could not get sys_clkout2\n"); dev 346 sound/soc/omap/n810.c func96m_clk = clk_get(dev, "func_96m_ck"); dev 348 sound/soc/omap/n810.c dev_err(dev, "Could not get func 96M clock\n"); dev 261 sound/soc/omap/omap-pcm.c return dma_mmap_writecombine(substream->pcm->card->dev, vma, dev 288 sound/soc/omap/omap-pcm.c buf->dev.type = SNDRV_DMA_TYPE_DEV; dev 289 sound/soc/omap/omap-pcm.c buf->dev.dev = pcm->card->dev; dev 291 sound/soc/omap/omap-pcm.c buf->area = dma_alloc_writecombine(pcm->card->dev, size, dev 315 sound/soc/omap/omap-pcm.c dma_free_writecombine(pcm->card->dev, buf->bytes, dev 326 sound/soc/omap/omap-pcm.c if (!card->dev->dma_mask) dev 327 sound/soc/omap/omap-pcm.c card->dev->dma_mask = &omap_pcm_dmamask; dev 328 sound/soc/omap/omap-pcm.c if (!card->dev->coherent_dma_mask) dev 329 sound/soc/omap/omap-pcm.c card->dev->coherent_dma_mask = DMA_32BIT_MASK; dev 165 sound/soc/omap/osk5912.c struct device *dev; dev 175 sound/soc/omap/osk5912.c osk_snd_devdata.dev = &osk_snd_device->dev; dev 181 sound/soc/omap/osk5912.c dev = &osk_snd_device->dev; dev 183 sound/soc/omap/osk5912.c tlv320aic23_mclk = clk_get(dev, "mclk"); dev 352 sound/soc/pxa/corgi.c corgi_snd_devdata.dev = &corgi_snd_device->dev; dev 69 sound/soc/pxa/e800_wm9712.c e800_snd_devdata.dev = &e800_snd_device->dev; dev 82 sound/soc/pxa/em-x270.c em_x270_snd_devdata.dev = &em_x270_snd_device->dev; dev 54 sound/soc/pxa/poodle.c locomo_gpio_write(&poodle_locomo_device.dev, dev 56 sound/soc/pxa/poodle.c locomo_gpio_write(&poodle_locomo_device.dev, dev 60 sound/soc/pxa/poodle.c locomo_gpio_write(&poodle_locomo_device.dev, dev 62 sound/soc/pxa/poodle.c locomo_gpio_write(&poodle_locomo_device.dev, dev 91 sound/soc/pxa/poodle.c locomo_gpio_write(&poodle_locomo_device.dev, dev 93 sound/soc/pxa/poodle.c locomo_gpio_write(&poodle_locomo_device.dev, dev 197 sound/soc/pxa/poodle.c locomo_gpio_write(&poodle_locomo_device.dev, dev 200 sound/soc/pxa/poodle.c locomo_gpio_write(&poodle_locomo_device.dev, dev 308 sound/soc/pxa/poodle.c locomo_gpio_set_dir(&poodle_locomo_device.dev, dev 311 sound/soc/pxa/poodle.c locomo_gpio_set_dir(&poodle_locomo_device.dev, dev 313 sound/soc/pxa/poodle.c locomo_gpio_set_dir(&poodle_locomo_device.dev, dev 321 sound/soc/pxa/poodle.c poodle_snd_devdata.dev = &poodle_snd_device->dev; dev 367 sound/soc/pxa/pxa2xx-i2s.c clk_i2s = clk_get(&dev->dev, "I2SCLK"); dev 91 sound/soc/pxa/pxa2xx-pcm.c if (!card->dev->dma_mask) dev 92 sound/soc/pxa/pxa2xx-pcm.c card->dev->dma_mask = &pxa2xx_pcm_dmamask; dev 93 sound/soc/pxa/pxa2xx-pcm.c if (!card->dev->coherent_dma_mask) dev 94 sound/soc/pxa/pxa2xx-pcm.c card->dev->coherent_dma_mask = DMA_32BIT_MASK; dev 356 sound/soc/pxa/spitz.c spitz_snd_devdata.dev = &spitz_snd_device->dev; dev 266 sound/soc/pxa/tosa.c tosa_snd_devdata.dev = &tosa_snd_device->dev; dev 65 sound/soc/s3c24xx/ln2440sbc_alc650.c ln2440sbc_snd_ac97_devdata.dev = &ln2440sbc_snd_ac97_device->dev; dev 626 sound/soc/s3c24xx/neo1973_wm8753.c dev_dbg(&dev->dev, "lm4857_suspend\n"); dev 650 sound/soc/s3c24xx/neo1973_wm8753.c dev_dbg(&dev->dev, "lm4857_shutdown\n"); dev 692 sound/soc/s3c24xx/neo1973_wm8753.c neo1973_snd_devdata.dev = &neo1973_snd_device->dev; dev 77 sound/soc/s3c24xx/s3c2412-i2s.c struct device *dev; dev 151 sound/soc/s3c24xx/s3c2412-i2s.c dev_err(i2s->dev, "TXEN: Invalid MODE in IISMOD\n"); dev 178 sound/soc/s3c24xx/s3c2412-i2s.c dev_err(i2s->dev, "TXDIS: Invalid MODE in IISMOD\n"); dev 221 sound/soc/s3c24xx/s3c2412-i2s.c dev_err(i2s->dev, "RXEN: Invalid MODE in IISMOD\n"); dev 245 sound/soc/s3c24xx/s3c2412-i2s.c dev_err(i2s->dev, "RXEN: Invalid MODE in IISMOD\n"); dev 609 sound/soc/s3c24xx/s3c2412-i2s.c s3c2412_i2s.dev = &pdev->dev; dev 615 sound/soc/s3c24xx/s3c2412-i2s.c s3c2412_i2s.iis_pclk = clk_get(&pdev->dev, "iis"); dev 622 sound/soc/s3c24xx/s3c2412-i2s.c s3c2412_i2s.iis_cclk = clk_get(&pdev->dev, "i2sclk"); dev 666 sound/soc/s3c24xx/s3c2412-i2s.c dev_warn(&dev->dev, "%s: RXDMA active?\n", __func__); dev 669 sound/soc/s3c24xx/s3c2412-i2s.c dev_warn(&dev->dev, "%s: TXDMA active?\n", __func__); dev 672 sound/soc/s3c24xx/s3c2412-i2s.c dev_warn(&dev->dev, "%s: IIS active\n", __func__); dev 683 sound/soc/s3c24xx/s3c2412-i2s.c dev_info(&pdev->dev, "dai_active %d, IISMOD %08x, IISCON %08x\n", dev 222 sound/soc/s3c24xx/s3c2443-ac97.c s3c24xx_ac97.ac97_clk = clk_get(&pdev->dev, "ac97"); dev 389 sound/soc/s3c24xx/s3c24xx-i2s.c s3c24xx_i2s.iis_clk = clk_get(&pdev->dev, "iis"); dev 369 sound/soc/s3c24xx/s3c24xx-pcm.c return dma_mmap_writecombine(substream->pcm->card->dev, vma, dev 395 sound/soc/s3c24xx/s3c24xx-pcm.c buf->dev.type = SNDRV_DMA_TYPE_DEV; dev 396 sound/soc/s3c24xx/s3c24xx-pcm.c buf->dev.dev = pcm->card->dev; dev 398 sound/soc/s3c24xx/s3c24xx-pcm.c buf->area = dma_alloc_writecombine(pcm->card->dev, size, dev 423 sound/soc/s3c24xx/s3c24xx-pcm.c dma_free_writecombine(pcm->card->dev, buf->bytes, dev 438 sound/soc/s3c24xx/s3c24xx-pcm.c if (!card->dev->dma_mask) dev 439 sound/soc/s3c24xx/s3c24xx-pcm.c card->dev->dma_mask = &s3c24xx_pcm_dmamask; dev 440 sound/soc/s3c24xx/s3c24xx-pcm.c if (!card->dev->coherent_dma_mask) dev 441 sound/soc/s3c24xx/s3c24xx-pcm.c card->dev->coherent_dma_mask = 0xffffffff; dev 61 sound/soc/s3c24xx/smdk2443_wm9710.c smdk2443_snd_ac97_devdata.dev = &smdk2443_snd_ac97_device->dev; dev 71 sound/soc/sh/sh7760-ac97.c sh7760_ac97_snd_devdata.dev = &sh7760_ac97_snd_device->dev; dev 81 sound/soc/soc-core.c if (codec->ac97->dev.bus) dev 82 sound/soc/soc-core.c device_unregister(&codec->ac97->dev); dev 94 sound/soc/soc-core.c codec->ac97->dev.bus = &ac97_bus_type; dev 95 sound/soc/soc-core.c codec->ac97->dev.parent = NULL; dev 96 sound/soc/soc-core.c codec->ac97->dev.release = soc_ac97_device_release; dev 98 sound/soc/soc-core.c snprintf(codec->ac97->dev.bus_id, BUS_ID_SIZE, "%d-%d:%s", dev 100 sound/soc/soc-core.c err = device_register(&codec->ac97->dev); dev 103 sound/soc/soc-core.c codec->ac97->dev.bus = NULL; dev 719 sound/soc/soc-core.c struct platform_device *pdev = to_platform_device(socdev->dev); dev 726 sound/soc/soc-core.c dev_info(socdev->dev, "starting resume work\n"); dev 769 sound/soc/soc-core.c dev_info(socdev->dev, "resume work completed\n"); dev 780 sound/soc/soc-core.c dev_info(socdev->dev, "scheduling resume work\n"); dev 783 sound/soc/soc-core.c dev_err(socdev->dev, "work item may be lost\n"); dev 967 sound/soc/soc-core.c struct snd_soc_device *devdata = dev_get_drvdata(dev); dev 1138 sound/soc/soc-core.c codec->card->dev = socdev->dev; dev 1211 sound/soc/soc-core.c err = snd_soc_dapm_sys_add(socdev->dev); dev 1215 sound/soc/soc-core.c err = device_create_file(socdev->dev, &dev_attr_codec_reg); dev 1255 sound/soc/soc-core.c device_remove_file(socdev->dev, &dev_attr_codec_reg); dev 773 sound/soc/soc-dapm.c struct snd_soc_device *devdata = dev_get_drvdata(dev); dev 829 sound/soc/soc-dapm.c ret = device_create_file(dev, &dev_attr_dapm_widget); dev 846 sound/soc/soc-dapm.c device_remove_file(dev, &dev_attr_dapm_widget); dev 1537 sound/soc/soc-dapm.c snd_soc_dapm_sys_remove(socdev->dev); dev 223 sound/sound_core.c device_create_drvdata(sound_class, dev, dev 345 sound/sound_core.c name, S_IRUSR | S_IWUSR, dev); dev 369 sound/sound_core.c return sound_insert_unit(&chains[0], fops, dev, 0, 128, dev 387 sound/sound_core.c return sound_insert_unit(&chains[2], fops, dev, 2, 130, dev 413 sound/sound_core.c return sound_insert_unit(&chains[3], fops, dev, 3, 131, dev 957 sound/sparc/amd7930.c snd_printk("amd7930-%d: Unable to map chip registers.\n", dev); dev 966 sound/sparc/amd7930.c dev, irq); dev 1243 sound/sparc/cs4231.c &chip->op->dev, dev 1560 sound/sparc/cs4231.c static int dev; dev 1569 sound/sparc/cs4231.c if (dev >= SNDRV_CARDS) dev 1572 sound/sparc/cs4231.c if (!enable[dev]) { dev 1573 sound/sparc/cs4231.c dev++; dev 1577 sound/sparc/cs4231.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 1613 sound/sparc/cs4231.c dev_set_drvdata(&chip->op->dev, chip); dev 1615 sound/sparc/cs4231.c dev++; dev 1816 sound/sparc/cs4231.c snd_printdd("cs4231-%d: Unable to map chip registers.\n", dev); dev 1838 sound/sparc/cs4231.c dev, op->irqs[0]); dev 1875 sound/sparc/cs4231.c err = snd_cs4231_sbus_create(card, op, dev); dev 2007 sound/sparc/cs4231.c snd_printdd("cs4231-%d: Unable to map chip registers.\n", dev); dev 2014 sound/sparc/cs4231.c dev); dev 2020 sound/sparc/cs4231.c dev); dev 2027 sound/sparc/cs4231.c dev); dev 2032 sound/sparc/cs4231.c snd_printdd("cs4231-%d: Unable to enable EBUS play IRQ\n", dev); dev 2065 sound/sparc/cs4231.c err = snd_cs4231_ebus_create(card, op, dev); dev 2091 sound/sparc/cs4231.c struct snd_cs4231 *chip = dev_get_drvdata(&op->dev); dev 2102 sound/sparc/dbri.c dma_map_single(&dbri->op->dev, dev 2130 sound/sparc/dbri.c dma_unmap_single(&dbri->op->dev, info->dvma_buffer, dev 2534 sound/sparc/dbri.c dbri->dma = dma_alloc_coherent(&op->dev, dev 2548 sound/sparc/dbri.c dma_free_coherent(&op->dev, sizeof(struct dbri_dma), dev 2558 sound/sparc/dbri.c dma_free_coherent(&op->dev, sizeof(struct dbri_dma), dev 2586 sound/sparc/dbri.c dma_free_coherent(&dbri->op->dev, dev 2596 sound/sparc/dbri.c static int dev = 0; dev 2600 sound/sparc/dbri.c if (dev >= SNDRV_CARDS) dev 2602 sound/sparc/dbri.c if (!enable[dev]) { dev 2603 sound/sparc/dbri.c dev++; dev 2609 sound/sparc/dbri.c printk(KERN_ERR "DBRI-%d: No IRQ.\n", dev); dev 2613 sound/sparc/dbri.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 2625 sound/sparc/dbri.c err = snd_dbri_create(card, op, irq, dev); dev 2642 sound/sparc/dbri.c dev_set_drvdata(&op->dev, card); dev 2649 sound/sparc/dbri.c dev, dbri->regs, dev 2651 sound/sparc/dbri.c dev++; dev 2663 sound/sparc/dbri.c struct snd_card *card = dev_get_drvdata(&op->dev); dev 2668 sound/sparc/dbri.c dev_set_drvdata(&op->dev, NULL); dev 202 sound/spi/at73c213.c dev_info(&chip->spi->dev, dev 295 sound/spi/at73c213.c dev_dbg(&chip->spi->dev, "spurious command %x\n", cmd); dev 352 sound/spi/at73c213.c SNDRV_DMA_TYPE_DEV, &chip->ssc->pdev->dev, dev 903 sound/spi/at73c213.c dev_dbg(&chip->spi->dev, "unable to request irq %d\n", irq); dev 931 sound/spi/at73c213.c snd_card_set_dev(card, &spi->dev); dev 952 sound/spi/at73c213.c board = spi->dev.platform_data; dev 954 sound/spi/at73c213.c dev_dbg(&spi->dev, "no platform_data\n"); dev 959 sound/spi/at73c213.c dev_dbg(&spi->dev, "no DAC clk\n"); dev 964 sound/spi/at73c213.c dev_dbg(&spi->dev, "no DAC clk\n"); dev 982 sound/spi/at73c213.c dev_dbg(&spi->dev, "could not get ssc%d device\n", dev 1000 sound/spi/at73c213.c dev_set_drvdata(&spi->dev, card); dev 1014 sound/spi/at73c213.c struct snd_card *card = dev_get_drvdata(&spi->dev); dev 1075 sound/spi/at73c213.c dev_set_drvdata(&spi->dev, NULL); dev 1083 sound/spi/at73c213.c struct snd_card *card = dev_get_drvdata(&spi->dev); dev 1094 sound/spi/at73c213.c struct snd_card *card = dev_get_drvdata(&spi->dev); dev 69 sound/synth/emux/emux_oss.c struct snd_seq_device *dev; dev 72 sound/synth/emux/emux_oss.c sizeof(struct snd_seq_oss_reg), &dev) < 0) dev 75 sound/synth/emux/emux_oss.c emu->oss_synth = dev; dev 76 sound/synth/emux/emux_oss.c strcpy(dev->name, emu->name); dev 77 sound/synth/emux/emux_oss.c arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); dev 85 sound/synth/emux/emux_oss.c snd_device_register(emu->card, dev); dev 48 sound/usb/caiaq/caiaq-audio.c (stream << 1) | (~(i / (dev->n_streams * BYTES_PER_SAMPLE_USB)) & 1) dev 72 sound/usb/caiaq/caiaq-audio.c dev->sub_playback[sub->number] = sub; dev 74 sound/usb/caiaq/caiaq-audio.c dev->sub_capture[sub->number] = sub; dev 82 sound/usb/caiaq/caiaq-audio.c spin_lock_irqsave(&dev->spinlock, flags); dev 85 sound/usb/caiaq/caiaq-audio.c dev->sub_playback[sub->number] = NULL; dev 87 sound/usb/caiaq/caiaq-audio.c dev->sub_capture[sub->number] = NULL; dev 89 sound/usb/caiaq/caiaq-audio.c spin_unlock_irqrestore(&dev->spinlock, flags); dev 106 sound/usb/caiaq/caiaq-audio.c debug("%s(%p)\n", __func__, dev); dev 108 sound/usb/caiaq/caiaq-audio.c if (dev->streaming) dev 111 sound/usb/caiaq/caiaq-audio.c memset(dev->sub_playback, 0, sizeof(dev->sub_playback)); dev 112 sound/usb/caiaq/caiaq-audio.c memset(dev->sub_capture, 0, sizeof(dev->sub_capture)); dev 113 sound/usb/caiaq/caiaq-audio.c dev->input_panic = 0; dev 114 sound/usb/caiaq/caiaq-audio.c dev->output_panic = 0; dev 115 sound/usb/caiaq/caiaq-audio.c dev->first_packet = 1; dev 116 sound/usb/caiaq/caiaq-audio.c dev->streaming = 1; dev 119 sound/usb/caiaq/caiaq-audio.c ret = usb_submit_urb(dev->data_urbs_in[i], GFP_ATOMIC); dev 122 sound/usb/caiaq/caiaq-audio.c dev->streaming = 0; dev 134 sound/usb/caiaq/caiaq-audio.c debug("%s(%p)\n", __func__, dev); dev 135 sound/usb/caiaq/caiaq-audio.c if (!dev->streaming) dev 138 sound/usb/caiaq/caiaq-audio.c dev->streaming = 0; dev 141 sound/usb/caiaq/caiaq-audio.c usb_kill_urb(dev->data_urbs_in[i]); dev 142 sound/usb/caiaq/caiaq-audio.c usb_kill_urb(dev->data_urbs_out[i]); dev 148 sound/usb/caiaq/caiaq-audio.c struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(substream); dev 150 sound/usb/caiaq/caiaq-audio.c substream->runtime->hw = dev->pcm_info; dev 157 sound/usb/caiaq/caiaq-audio.c struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(substream); dev 160 sound/usb/caiaq/caiaq-audio.c if (all_substreams_zero(dev->sub_playback) && dev 161 sound/usb/caiaq/caiaq-audio.c all_substreams_zero(dev->sub_capture)) { dev 164 sound/usb/caiaq/caiaq-audio.c stream_stop(dev); dev 165 sound/usb/caiaq/caiaq-audio.c dev->pcm_info.rates = dev->samplerates; dev 180 sound/usb/caiaq/caiaq-audio.c struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub); dev 182 sound/usb/caiaq/caiaq-audio.c deactivate_substream(dev, sub); dev 198 sound/usb/caiaq/caiaq-audio.c struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(substream); dev 204 sound/usb/caiaq/caiaq-audio.c dev->audio_out_buf_pos[index] = BYTES_PER_SAMPLE + 1; dev 206 sound/usb/caiaq/caiaq-audio.c dev->audio_in_buf_pos[index] = BYTES_PER_SAMPLE; dev 208 sound/usb/caiaq/caiaq-audio.c if (dev->streaming) dev 215 sound/usb/caiaq/caiaq-audio.c dev->pcm_info.rates = 1 << i; dev 220 sound/usb/caiaq/caiaq-audio.c if (dev->spec.data_alignment == 2) dev 224 sound/usb/caiaq/caiaq-audio.c * bytes_per_sample * CHANNELS_PER_STREAM * dev->n_streams; dev 229 sound/usb/caiaq/caiaq-audio.c ret = snd_usb_caiaq_set_audio_params(dev, runtime->rate, dev 234 sound/usb/caiaq/caiaq-audio.c ret = stream_start(dev); dev 238 sound/usb/caiaq/caiaq-audio.c dev->output_running = 0; dev 239 sound/usb/caiaq/caiaq-audio.c wait_event_timeout(dev->prepare_wait_queue, dev->output_running, HZ); dev 240 sound/usb/caiaq/caiaq-audio.c if (!dev->output_running) { dev 241 sound/usb/caiaq/caiaq-audio.c stream_stop(dev); dev 250 sound/usb/caiaq/caiaq-audio.c struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub); dev 255 sound/usb/caiaq/caiaq-audio.c activate_substream(dev, sub); dev 259 sound/usb/caiaq/caiaq-audio.c deactivate_substream(dev, sub); dev 272 sound/usb/caiaq/caiaq-audio.c struct snd_usb_caiaqdev *dev = snd_pcm_substream_chip(sub); dev 274 sound/usb/caiaq/caiaq-audio.c if (dev->input_panic || dev->output_panic) dev 279 sound/usb/caiaq/caiaq-audio.c dev->audio_out_buf_pos[index]); dev 282 sound/usb/caiaq/caiaq-audio.c dev->audio_in_buf_pos[index]); dev 303 sound/usb/caiaq/caiaq-audio.c for (stream = 0; stream < dev->n_streams; stream++) { dev 311 sound/usb/caiaq/caiaq-audio.c &dev->period_out_count[stream] : dev 312 sound/usb/caiaq/caiaq-audio.c &dev->period_in_count[stream]; dev 329 sound/usb/caiaq/caiaq-audio.c if (all_substreams_zero(dev->sub_capture)) dev 333 sound/usb/caiaq/caiaq-audio.c for (stream = 0; stream < dev->n_streams; stream++, i++) { dev 334 sound/usb/caiaq/caiaq-audio.c sub = dev->sub_capture[stream]; dev 339 sound/usb/caiaq/caiaq-audio.c audio_buf[dev->audio_in_buf_pos[stream]++] dev 341 sound/usb/caiaq/caiaq-audio.c dev->period_in_count[stream]++; dev 342 sound/usb/caiaq/caiaq-audio.c if (dev->audio_in_buf_pos[stream] == sz) dev 343 sound/usb/caiaq/caiaq-audio.c dev->audio_in_buf_pos[stream] = 0; dev 359 sound/usb/caiaq/caiaq-audio.c if (i % (dev->n_streams * BYTES_PER_SAMPLE_USB) == 0) { dev 361 sound/usb/caiaq/caiaq-audio.c stream < dev->n_streams; dev 363 sound/usb/caiaq/caiaq-audio.c if (dev->first_packet) dev 366 sound/usb/caiaq/caiaq-audio.c check_byte = MAKE_CHECKBYTE(dev, stream, i); dev 369 sound/usb/caiaq/caiaq-audio.c dev->input_panic = 1; dev 372 sound/usb/caiaq/caiaq-audio.c dev->output_panic = 1; dev 375 sound/usb/caiaq/caiaq-audio.c dev->first_packet = 0; dev 377 sound/usb/caiaq/caiaq-audio.c for (stream = 0; stream < dev->n_streams; stream++, i++) { dev 378 sound/usb/caiaq/caiaq-audio.c sub = dev->sub_capture[stream]; dev 383 sound/usb/caiaq/caiaq-audio.c audio_buf[dev->audio_in_buf_pos[stream]++] = dev 385 sound/usb/caiaq/caiaq-audio.c dev->period_in_count[stream]++; dev 386 sound/usb/caiaq/caiaq-audio.c if (dev->audio_in_buf_pos[stream] == sz) dev 387 sound/usb/caiaq/caiaq-audio.c dev->audio_in_buf_pos[stream] = 0; dev 397 sound/usb/caiaq/caiaq-audio.c if (!dev->streaming) dev 400 sound/usb/caiaq/caiaq-audio.c switch (dev->spec.data_alignment) { dev 402 sound/usb/caiaq/caiaq-audio.c read_in_urb_mode0(dev, urb, iso); dev 405 sound/usb/caiaq/caiaq-audio.c read_in_urb_mode2(dev, urb, iso); dev 409 sound/usb/caiaq/caiaq-audio.c if (dev->input_panic || dev->output_panic) { dev 411 sound/usb/caiaq/caiaq-audio.c dev->input_panic ? "(input)" : "", dev 412 sound/usb/caiaq/caiaq-audio.c dev->output_panic ? "(output)" : ""); dev 425 sound/usb/caiaq/caiaq-audio.c for (stream = 0; stream < dev->n_streams; stream++, i++) { dev 426 sound/usb/caiaq/caiaq-audio.c sub = dev->sub_playback[stream]; dev 432 sound/usb/caiaq/caiaq-audio.c audio_buf[dev->audio_out_buf_pos[stream]]; dev 433 sound/usb/caiaq/caiaq-audio.c dev->period_out_count[stream]++; dev 434 sound/usb/caiaq/caiaq-audio.c dev->audio_out_buf_pos[stream]++; dev 435 sound/usb/caiaq/caiaq-audio.c if (dev->audio_out_buf_pos[stream] == sz) dev 436 sound/usb/caiaq/caiaq-audio.c dev->audio_out_buf_pos[stream] = 0; dev 442 sound/usb/caiaq/caiaq-audio.c if (dev->spec.data_alignment == 2 && dev 443 sound/usb/caiaq/caiaq-audio.c i % (dev->n_streams * BYTES_PER_SAMPLE_USB) == dev 444 sound/usb/caiaq/caiaq-audio.c (dev->n_streams * CHANNELS_PER_STREAM)) dev 445 sound/usb/caiaq/caiaq-audio.c for (stream = 0; stream < dev->n_streams; stream++, i++) dev 446 sound/usb/caiaq/caiaq-audio.c usb_buf[i] = MAKE_CHECKBYTE(dev, stream, i); dev 453 sound/usb/caiaq/caiaq-audio.c struct snd_usb_caiaqdev *dev; dev 460 sound/usb/caiaq/caiaq-audio.c dev = info->dev; dev 462 sound/usb/caiaq/caiaq-audio.c if (!dev->streaming) dev 465 sound/usb/caiaq/caiaq-audio.c out = dev->data_urbs_out[info->index]; dev 479 sound/usb/caiaq/caiaq-audio.c spin_lock(&dev->spinlock); dev 480 sound/usb/caiaq/caiaq-audio.c fill_out_urb(dev, out, &out->iso_frame_desc[outframe]); dev 481 sound/usb/caiaq/caiaq-audio.c read_in_urb(dev, urb, &urb->iso_frame_desc[frame]); dev 482 sound/usb/caiaq/caiaq-audio.c spin_unlock(&dev->spinlock); dev 483 sound/usb/caiaq/caiaq-audio.c check_for_elapsed_periods(dev, dev->sub_playback); dev 484 sound/usb/caiaq/caiaq-audio.c check_for_elapsed_periods(dev, dev->sub_capture); dev 512 sound/usb/caiaq/caiaq-audio.c struct snd_usb_caiaqdev *dev = info->dev; dev 514 sound/usb/caiaq/caiaq-audio.c if (!dev->output_running) { dev 515 sound/usb/caiaq/caiaq-audio.c dev->output_running = 1; dev 516 sound/usb/caiaq/caiaq-audio.c wake_up(&dev->prepare_wait_queue); dev 524 sound/usb/caiaq/caiaq-audio.c struct usb_device *usb_dev = dev->chip.dev; dev 562 sound/usb/caiaq/caiaq-audio.c urbs[i]->dev = usb_dev; dev 566 sound/usb/caiaq/caiaq-audio.c urbs[i]->context = &dev->data_cb_info[i]; dev 601 sound/usb/caiaq/caiaq-audio.c dev->n_audio_in = max(dev->spec.num_analog_audio_in, dev 602 sound/usb/caiaq/caiaq-audio.c dev->spec.num_digital_audio_in) / dev 604 sound/usb/caiaq/caiaq-audio.c dev->n_audio_out = max(dev->spec.num_analog_audio_out, dev 605 sound/usb/caiaq/caiaq-audio.c dev->spec.num_digital_audio_out) / dev 607 sound/usb/caiaq/caiaq-audio.c dev->n_streams = max(dev->n_audio_in, dev->n_audio_out); dev 609 sound/usb/caiaq/caiaq-audio.c debug("dev->n_audio_in = %d\n", dev->n_audio_in); dev 610 sound/usb/caiaq/caiaq-audio.c debug("dev->n_audio_out = %d\n", dev->n_audio_out); dev 611 sound/usb/caiaq/caiaq-audio.c debug("dev->n_streams = %d\n", dev->n_streams); dev 613 sound/usb/caiaq/caiaq-audio.c if (dev->n_streams > MAX_STREAMS) { dev 618 sound/usb/caiaq/caiaq-audio.c ret = snd_pcm_new(dev->chip.card, dev->product_name, 0, dev 619 sound/usb/caiaq/caiaq-audio.c dev->n_audio_out, dev->n_audio_in, &dev->pcm); dev 626 sound/usb/caiaq/caiaq-audio.c dev->pcm->private_data = dev; dev 627 sound/usb/caiaq/caiaq-audio.c strcpy(dev->pcm->name, dev->product_name); dev 629 sound/usb/caiaq/caiaq-audio.c memset(dev->sub_playback, 0, sizeof(dev->sub_playback)); dev 630 sound/usb/caiaq/caiaq-audio.c memset(dev->sub_capture, 0, sizeof(dev->sub_capture)); dev 632 sound/usb/caiaq/caiaq-audio.c memcpy(&dev->pcm_info, &snd_usb_caiaq_pcm_hardware, dev 636 sound/usb/caiaq/caiaq-audio.c dev->samplerates = dev->pcm_info.rates; dev 637 sound/usb/caiaq/caiaq-audio.c switch (dev->chip.usb_id) { dev 641 sound/usb/caiaq/caiaq-audio.c dev->samplerates |= SNDRV_PCM_RATE_88200; dev 642 sound/usb/caiaq/caiaq-audio.c dev->samplerates |= SNDRV_PCM_RATE_192000; dev 645 sound/usb/caiaq/caiaq-audio.c dev->samplerates |= SNDRV_PCM_RATE_88200; dev 649 sound/usb/caiaq/caiaq-audio.c snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_PLAYBACK, dev 651 sound/usb/caiaq/caiaq-audio.c snd_pcm_set_ops(dev->pcm, SNDRV_PCM_STREAM_CAPTURE, dev 654 sound/usb/caiaq/caiaq-audio.c snd_pcm_lib_preallocate_pages_for_all(dev->pcm, dev 659 sound/usb/caiaq/caiaq-audio.c dev->data_cb_info = dev 663 sound/usb/caiaq/caiaq-audio.c if (!dev->data_cb_info) dev 667 sound/usb/caiaq/caiaq-audio.c dev->data_cb_info[i].dev = dev; dev 668 sound/usb/caiaq/caiaq-audio.c dev->data_cb_info[i].index = i; dev 671 sound/usb/caiaq/caiaq-audio.c dev->data_urbs_in = alloc_urbs(dev, SNDRV_PCM_STREAM_CAPTURE, &ret); dev 673 sound/usb/caiaq/caiaq-audio.c kfree(dev->data_cb_info); dev 674 sound/usb/caiaq/caiaq-audio.c free_urbs(dev->data_urbs_in); dev 678 sound/usb/caiaq/caiaq-audio.c dev->data_urbs_out = alloc_urbs(dev, SNDRV_PCM_STREAM_PLAYBACK, &ret); dev 680 sound/usb/caiaq/caiaq-audio.c kfree(dev->data_cb_info); dev 681 sound/usb/caiaq/caiaq-audio.c free_urbs(dev->data_urbs_in); dev 682 sound/usb/caiaq/caiaq-audio.c free_urbs(dev->data_urbs_out); dev 691 sound/usb/caiaq/caiaq-audio.c debug("%s(%p)\n", __func__, dev); dev 692 sound/usb/caiaq/caiaq-audio.c stream_stop(dev); dev 693 sound/usb/caiaq/caiaq-audio.c free_urbs(dev->data_urbs_in); dev 694 sound/usb/caiaq/caiaq-audio.c free_urbs(dev->data_urbs_out); dev 695 sound/usb/caiaq/caiaq-audio.c kfree(dev->data_cb_info); dev 39 sound/usb/caiaq/caiaq-control.c struct snd_usb_caiaqdev *dev = caiaqdev(chip->card); dev 46 sound/usb/caiaq/caiaq-control.c if (dev->chip.usb_id == dev 73 sound/usb/caiaq/caiaq-control.c struct snd_usb_caiaqdev *dev = caiaqdev(chip->card); dev 78 sound/usb/caiaq/caiaq-control.c = dev->control_state[pos & ~CNT_INTVAL]; dev 81 sound/usb/caiaq/caiaq-control.c = !!(dev->control_state[pos / 8] & (1 << pos % 8)); dev 90 sound/usb/caiaq/caiaq-control.c struct snd_usb_caiaqdev *dev = caiaqdev(chip->card); dev 94 sound/usb/caiaq/caiaq-control.c dev->control_state[pos & ~CNT_INTVAL] dev 96 sound/usb/caiaq/caiaq-control.c snd_usb_caiaq_send_command(dev, EP1_CMD_DIMM_LEDS, dev 97 sound/usb/caiaq/caiaq-control.c dev->control_state, sizeof(dev->control_state)); dev 100 sound/usb/caiaq/caiaq-control.c dev->control_state[pos / 8] |= 1 << (pos % 8); dev 102 sound/usb/caiaq/caiaq-control.c dev->control_state[pos / 8] &= ~(1 << (pos % 8)); dev 104 sound/usb/caiaq/caiaq-control.c snd_usb_caiaq_send_command(dev, EP1_CMD_WRITE_IO, dev 105 sound/usb/caiaq/caiaq-control.c dev->control_state, sizeof(dev->control_state)); dev 255 sound/usb/caiaq/caiaq-control.c switch (dev->chip.usb_id) { dev 261 sound/usb/caiaq/caiaq-control.c kc = snd_ctl_new1(&kcontrol_template, dev); dev 262 sound/usb/caiaq/caiaq-control.c snd_ctl_add(dev->chip.card, kc); dev 272 sound/usb/caiaq/caiaq-control.c kc = snd_ctl_new1(&kcontrol_template, dev); dev 273 sound/usb/caiaq/caiaq-control.c snd_ctl_add(dev->chip.card, kc); dev 283 sound/usb/caiaq/caiaq-control.c kc = snd_ctl_new1(&kcontrol_template, dev); dev 284 sound/usb/caiaq/caiaq-control.c snd_ctl_add(dev->chip.card, kc); dev 295 sound/usb/caiaq/caiaq-control.c kc = snd_ctl_new1(&kcontrol_template, dev); dev 296 sound/usb/caiaq/caiaq-control.c snd_ctl_add(dev->chip.card, kc); dev 306 sound/usb/caiaq/caiaq-control.c kc = snd_ctl_new1(&kcontrol_template, dev); dev 307 sound/usb/caiaq/caiaq-control.c snd_ctl_add(dev->chip.card, kc); dev 125 sound/usb/caiaq/caiaq-device.c struct snd_usb_caiaqdev *dev = urb->context; dev 128 sound/usb/caiaq/caiaq-device.c if (urb->status || !dev) { dev 135 sound/usb/caiaq/caiaq-device.c memcpy(&dev->spec, buf+1, sizeof(struct caiaq_device_spec)); dev 136 sound/usb/caiaq/caiaq-device.c dev->spec.fw_version = le16_to_cpu(dev->spec.fw_version); dev 139 sound/usb/caiaq/caiaq-device.c dev->spec.fw_version, dev 140 sound/usb/caiaq/caiaq-device.c dev->spec.num_analog_audio_in, dev 141 sound/usb/caiaq/caiaq-device.c dev->spec.num_analog_audio_out, dev 142 sound/usb/caiaq/caiaq-device.c dev->spec.num_midi_in, dev 143 sound/usb/caiaq/caiaq-device.c dev->spec.num_midi_out, dev 144 sound/usb/caiaq/caiaq-device.c dev->spec.data_alignment); dev 146 sound/usb/caiaq/caiaq-device.c dev->spec_received++; dev 147 sound/usb/caiaq/caiaq-device.c wake_up(&dev->ep1_wait_queue); dev 150 sound/usb/caiaq/caiaq-device.c dev->audio_parm_answer = buf[1]; dev 151 sound/usb/caiaq/caiaq-device.c wake_up(&dev->ep1_wait_queue); dev 154 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_midi_handle_input(dev, buf[1], buf + 3, buf[2]); dev 157 sound/usb/caiaq/caiaq-device.c if (dev->chip.usb_id == dev 159 sound/usb/caiaq/caiaq-device.c if (urb->actual_length > sizeof(dev->control_state)) dev 160 sound/usb/caiaq/caiaq-device.c urb->actual_length = sizeof(dev->control_state); dev 161 sound/usb/caiaq/caiaq-device.c memcpy(dev->control_state, buf + 1, urb->actual_length); dev 162 sound/usb/caiaq/caiaq-device.c wake_up(&dev->ep1_wait_queue); dev 168 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_input_dispatch(dev, buf, urb->actual_length); dev 173 sound/usb/caiaq/caiaq-device.c dev->ep1_in_urb.actual_length = 0; dev 174 sound/usb/caiaq/caiaq-device.c ret = usb_submit_urb(&dev->ep1_in_urb, GFP_ATOMIC); dev 185 sound/usb/caiaq/caiaq-device.c struct usb_device *usb_dev = dev->chip.dev; dev 194 sound/usb/caiaq/caiaq-device.c memcpy(dev->ep1_out_buf+1, buffer, len); dev 196 sound/usb/caiaq/caiaq-device.c dev->ep1_out_buf[0] = command; dev 198 sound/usb/caiaq/caiaq-device.c dev->ep1_out_buf, len+1, &actual_len, 200); dev 229 sound/usb/caiaq/caiaq-device.c dev->audio_parm_answer = -1; dev 230 sound/usb/caiaq/caiaq-device.c ret = snd_usb_caiaq_send_command(dev, EP1_CMD_AUDIO_PARAMS, dev 236 sound/usb/caiaq/caiaq-device.c if (!wait_event_timeout(dev->ep1_wait_queue, dev 237 sound/usb/caiaq/caiaq-device.c dev->audio_parm_answer >= 0, HZ)) dev 240 sound/usb/caiaq/caiaq-device.c if (dev->audio_parm_answer != 1) dev 243 sound/usb/caiaq/caiaq-device.c return dev->audio_parm_answer == 1 ? 0 : -EINVAL; dev 250 sound/usb/caiaq/caiaq-device.c return snd_usb_caiaq_send_command(dev, EP1_CMD_AUTO_MSG, dev 260 sound/usb/caiaq/caiaq-device.c switch (dev->chip.usb_id) { dev 266 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_send_command(dev, EP1_CMD_WRITE_IO, val, 3); dev 274 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_send_command(dev, EP1_CMD_WRITE_IO, val, 4); dev 279 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_send_command(dev, EP1_CMD_WRITE_IO, val, 1); dev 283 sound/usb/caiaq/caiaq-device.c dev->control_state[0] = 0xff; dev 284 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_set_auto_msg(dev, 1, 0, 0); dev 285 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_send_command(dev, EP1_CMD_READ_IO, NULL, 0); dev 287 sound/usb/caiaq/caiaq-device.c if (!wait_event_timeout(dev->ep1_wait_queue, dev 288 sound/usb/caiaq/caiaq-device.c dev->control_state[0] != 0xff, HZ)) dev 292 sound/usb/caiaq/caiaq-device.c if ((dev->control_state[1] != 2) || dev 293 sound/usb/caiaq/caiaq-device.c (dev->control_state[2] != 3) || dev 294 sound/usb/caiaq/caiaq-device.c (dev->control_state[4] != 2)) { dev 295 sound/usb/caiaq/caiaq-device.c dev->control_state[1] = 2; dev 296 sound/usb/caiaq/caiaq-device.c dev->control_state[2] = 3; dev 297 sound/usb/caiaq/caiaq-device.c dev->control_state[4] = 2; dev 298 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_send_command(dev, dev 299 sound/usb/caiaq/caiaq-device.c EP1_CMD_WRITE_IO, dev->control_state, 6); dev 305 sound/usb/caiaq/caiaq-device.c if (dev->spec.num_analog_audio_out + dev 306 sound/usb/caiaq/caiaq-device.c dev->spec.num_analog_audio_in + dev 307 sound/usb/caiaq/caiaq-device.c dev->spec.num_digital_audio_out + dev 308 sound/usb/caiaq/caiaq-device.c dev->spec.num_digital_audio_in > 0) { dev 309 sound/usb/caiaq/caiaq-device.c ret = snd_usb_caiaq_audio_init(dev); dev 314 sound/usb/caiaq/caiaq-device.c if (dev->spec.num_midi_in + dev 315 sound/usb/caiaq/caiaq-device.c dev->spec.num_midi_out > 0) { dev 316 sound/usb/caiaq/caiaq-device.c ret = snd_usb_caiaq_midi_init(dev); dev 322 sound/usb/caiaq/caiaq-device.c ret = snd_usb_caiaq_input_init(dev); dev 328 sound/usb/caiaq/caiaq-device.c ret = snd_card_register(dev->chip.card); dev 331 sound/usb/caiaq/caiaq-device.c snd_card_free(dev->chip.card); dev 334 sound/usb/caiaq/caiaq-device.c ret = snd_usb_caiaq_control_init(dev); dev 343 sound/usb/caiaq/caiaq-device.c struct snd_usb_caiaqdev *dev; dev 357 sound/usb/caiaq/caiaq-device.c dev = caiaqdev(card); dev 358 sound/usb/caiaq/caiaq-device.c dev->chip.dev = usb_dev; dev 359 sound/usb/caiaq/caiaq-device.c dev->chip.card = card; dev 360 sound/usb/caiaq/caiaq-device.c dev->chip.usb_id = USB_ID(le16_to_cpu(usb_dev->descriptor.idVendor), dev 362 sound/usb/caiaq/caiaq-device.c spin_lock_init(&dev->spinlock); dev 363 sound/usb/caiaq/caiaq-device.c snd_card_set_dev(card, &usb_dev->dev); dev 371 sound/usb/caiaq/caiaq-device.c struct usb_device *usb_dev = dev->chip.dev; dev 372 sound/usb/caiaq/caiaq-device.c struct snd_card *card = dev->chip.card; dev 380 sound/usb/caiaq/caiaq-device.c usb_init_urb(&dev->ep1_in_urb); dev 381 sound/usb/caiaq/caiaq-device.c usb_init_urb(&dev->midi_out_urb); dev 383 sound/usb/caiaq/caiaq-device.c usb_fill_bulk_urb(&dev->ep1_in_urb, usb_dev, dev 385 sound/usb/caiaq/caiaq-device.c dev->ep1_in_buf, EP1_BUFSIZE, dev 386 sound/usb/caiaq/caiaq-device.c usb_ep1_command_reply_dispatch, dev); dev 388 sound/usb/caiaq/caiaq-device.c usb_fill_bulk_urb(&dev->midi_out_urb, usb_dev, dev 390 sound/usb/caiaq/caiaq-device.c dev->midi_out_buf, EP1_BUFSIZE, dev 391 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_midi_output_done, dev); dev 393 sound/usb/caiaq/caiaq-device.c init_waitqueue_head(&dev->ep1_wait_queue); dev 394 sound/usb/caiaq/caiaq-device.c init_waitqueue_head(&dev->prepare_wait_queue); dev 396 sound/usb/caiaq/caiaq-device.c if (usb_submit_urb(&dev->ep1_in_urb, GFP_KERNEL) != 0) dev 399 sound/usb/caiaq/caiaq-device.c err = snd_usb_caiaq_send_command(dev, EP1_CMD_GET_DEVICE_INFO, NULL, 0); dev 403 sound/usb/caiaq/caiaq-device.c if (!wait_event_timeout(dev->ep1_wait_queue, dev->spec_received, HZ)) dev 407 sound/usb/caiaq/caiaq-device.c dev->vendor_name, CAIAQ_USB_STR_LEN); dev 410 sound/usb/caiaq/caiaq-device.c dev->product_name, CAIAQ_USB_STR_LEN); dev 413 sound/usb/caiaq/caiaq-device.c dev->serial, CAIAQ_USB_STR_LEN); dev 416 sound/usb/caiaq/caiaq-device.c c = strchr(dev->serial, ' '); dev 421 sound/usb/caiaq/caiaq-device.c strcpy(card->shortname, dev->product_name); dev 425 sound/usb/caiaq/caiaq-device.c dev->vendor_name, dev->product_name, dev->serial); dev 433 sound/usb/caiaq/caiaq-device.c setup_card(dev); dev 449 sound/usb/caiaq/caiaq-device.c dev_set_drvdata(&intf->dev, card); dev 462 sound/usb/caiaq/caiaq-device.c struct snd_usb_caiaqdev *dev; dev 463 sound/usb/caiaq/caiaq-device.c struct snd_card *card = dev_get_drvdata(&intf->dev); dev 470 sound/usb/caiaq/caiaq-device.c dev = caiaqdev(card); dev 474 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_input_free(dev); dev 476 sound/usb/caiaq/caiaq-device.c snd_usb_caiaq_audio_free(dev); dev 478 sound/usb/caiaq/caiaq-device.c usb_kill_urb(&dev->ep1_in_urb); dev 479 sound/usb/caiaq/caiaq-device.c usb_kill_urb(&dev->midi_out_urb); dev 115 sound/usb/caiaq/caiaq-device.h struct snd_usb_caiaqdev *dev; dev 148 sound/usb/caiaq/caiaq-input.c struct input_dev *input_dev = dev->input_dev; dev 150 sound/usb/caiaq/caiaq-input.c switch (dev->chip.usb_id) { dev 176 sound/usb/caiaq/caiaq-input.c struct input_dev *input_dev = dev->input_dev; dev 179 sound/usb/caiaq/caiaq-input.c switch (dev->chip.usb_id) { dev 211 sound/usb/caiaq/caiaq-input.c struct input_dev *input_dev = dev->input_dev; dev 226 sound/usb/caiaq/caiaq-input.c if (dev->chip.usb_id == dev 228 sound/usb/caiaq/caiaq-input.c dev->chip.usb_id == dev 230 sound/usb/caiaq/caiaq-input.c input_report_abs(dev->input_dev, ABS_MISC, 255 - buf[4]); dev 239 sound/usb/caiaq/caiaq-input.c if (!dev->input_dev || len < 1) dev 244 sound/usb/caiaq/caiaq-input.c snd_caiaq_input_read_analog(dev, buf + 1, len - 1); dev 247 sound/usb/caiaq/caiaq-input.c snd_caiaq_input_read_erp(dev, buf + 1, len - 1); dev 250 sound/usb/caiaq/caiaq-input.c snd_caiaq_input_read_io(dev, buf + 1, len - 1); dev 257 sound/usb/caiaq/caiaq-input.c struct usb_device *usb_dev = dev->chip.dev; dev 265 sound/usb/caiaq/caiaq-input.c usb_make_path(usb_dev, dev->phys, sizeof(dev->phys)); dev 266 sound/usb/caiaq/caiaq-input.c strlcat(dev->phys, "/input0", sizeof(dev->phys)); dev 268 sound/usb/caiaq/caiaq-input.c input->name = dev->product_name; dev 269 sound/usb/caiaq/caiaq-input.c input->phys = dev->phys; dev 271 sound/usb/caiaq/caiaq-input.c input->dev.parent = &usb_dev->dev; dev 273 sound/usb/caiaq/caiaq-input.c switch (dev->chip.usb_id) { dev 278 sound/usb/caiaq/caiaq-input.c BUILD_BUG_ON(sizeof(dev->keycode) < sizeof(keycode_rk2)); dev 279 sound/usb/caiaq/caiaq-input.c memcpy(dev->keycode, keycode_rk2, sizeof(keycode_rk2)); dev 284 sound/usb/caiaq/caiaq-input.c snd_usb_caiaq_set_auto_msg(dev, 1, 10, 0); dev 290 sound/usb/caiaq/caiaq-input.c BUILD_BUG_ON(sizeof(dev->keycode) < sizeof(keycode_rk3)); dev 291 sound/usb/caiaq/caiaq-input.c memcpy(dev->keycode, keycode_rk3, sizeof(keycode_rk3)); dev 296 sound/usb/caiaq/caiaq-input.c snd_usb_caiaq_set_auto_msg(dev, 1, 10, 0); dev 301 sound/usb/caiaq/caiaq-input.c BUILD_BUG_ON(sizeof(dev->keycode) < sizeof(keycode_ak1)); dev 302 sound/usb/caiaq/caiaq-input.c memcpy(dev->keycode, keycode_ak1, sizeof(keycode_ak1)); dev 305 sound/usb/caiaq/caiaq-input.c snd_usb_caiaq_set_auto_msg(dev, 1, 0, 5); dev 317 sound/usb/caiaq/caiaq-input.c BUILD_BUG_ON(sizeof(dev->keycode) < sizeof(keycode_kore)); dev 318 sound/usb/caiaq/caiaq-input.c memcpy(dev->keycode, keycode_kore, sizeof(keycode_kore)); dev 332 sound/usb/caiaq/caiaq-input.c snd_usb_caiaq_set_auto_msg(dev, 1, 10, 5); dev 340 sound/usb/caiaq/caiaq-input.c input->keycode = dev->keycode; dev 343 sound/usb/caiaq/caiaq-input.c __set_bit(dev->keycode[i], input->keybit); dev 351 sound/usb/caiaq/caiaq-input.c dev->input_dev = input; dev 357 sound/usb/caiaq/caiaq-input.c if (!dev || !dev->input_dev) dev 360 sound/usb/caiaq/caiaq-input.c input_unregister_device(dev->input_dev); dev 361 sound/usb/caiaq/caiaq-input.c dev->input_dev = NULL; dev 46 sound/usb/caiaq/caiaq-midi.c struct snd_usb_caiaqdev *dev = substream->rmidi->private_data; dev 48 sound/usb/caiaq/caiaq-midi.c if (!dev) dev 51 sound/usb/caiaq/caiaq-midi.c dev->midi_receive_substream = up ? substream : NULL; dev 70 sound/usb/caiaq/caiaq-midi.c dev->midi_out_buf[0] = EP1_CMD_MIDI_WRITE; dev 71 sound/usb/caiaq/caiaq-midi.c dev->midi_out_buf[1] = 0; /* port */ dev 72 sound/usb/caiaq/caiaq-midi.c len = snd_rawmidi_transmit_peek(substream, dev->midi_out_buf+3, EP1_BUFSIZE-3); dev 77 sound/usb/caiaq/caiaq-midi.c dev->midi_out_buf[2] = len; dev 78 sound/usb/caiaq/caiaq-midi.c dev->midi_out_urb.transfer_buffer_length = len+3; dev 80 sound/usb/caiaq/caiaq-midi.c ret = usb_submit_urb(&dev->midi_out_urb, GFP_ATOMIC); dev 88 sound/usb/caiaq/caiaq-midi.c struct snd_usb_caiaqdev *dev = substream->rmidi->private_data; dev 90 sound/usb/caiaq/caiaq-midi.c if (dev->midi_out_substream != NULL) dev 94 sound/usb/caiaq/caiaq-midi.c dev->midi_out_substream = NULL; dev 98 sound/usb/caiaq/caiaq-midi.c dev->midi_out_substream = substream; dev 99 sound/usb/caiaq/caiaq-midi.c snd_usb_caiaq_midi_send(dev, substream); dev 120 sound/usb/caiaq/caiaq-midi.c if (!dev->midi_receive_substream) dev 123 sound/usb/caiaq/caiaq-midi.c snd_rawmidi_receive(dev->midi_receive_substream, buf, len); dev 163 sound/usb/caiaq/caiaq-midi.c struct snd_usb_caiaqdev *dev = urb->context; dev 169 sound/usb/caiaq/caiaq-midi.c if (!dev->midi_out_substream) dev 172 sound/usb/caiaq/caiaq-midi.c snd_rawmidi_transmit_ack(dev->midi_out_substream, buf[2]); dev 173 sound/usb/caiaq/caiaq-midi.c dev->midi_out_substream = NULL; dev 174 sound/usb/caiaq/caiaq-midi.c snd_usb_caiaq_midi_send(dev, dev->midi_out_substream); dev 150 sound/usb/usbaudio.c struct usb_device *dev; dev 261 sound/usb/usbaudio.c urb->dev = ctx->subs->dev; /* we need to set this at each time */ dev 283 sound/usb/usbaudio.c urb->dev = ctx->subs->dev; /* we need to set this at each time */ dev 322 sound/usb/usbaudio.c urb->dev = ctx->subs->dev; /* we need to set this at each time */ dev 410 sound/usb/usbaudio.c urb->dev = ctx->subs->dev; /* we need to set this at each time */ dev 428 sound/usb/usbaudio.c urb->dev = ctx->subs->dev; /* we need to set this at each time */ dev 539 sound/usb/usbaudio.c urb->dev = ctx->subs->dev; dev 575 sound/usb/usbaudio.c urb->dev = ctx->subs->dev; /* we need to set this at each time */ dev 1002 sound/usb/usbaudio.c usb_buffer_free(u->subs->dev, u->buffer_size, dev 1025 sound/usb/usbaudio.c usb_buffer_free(subs->dev, SYNC_URBS * 4, dev 1042 sound/usb/usbaudio.c if (snd_usb_get_speed(subs->dev) == USB_SPEED_FULL) dev 1066 sound/usb/usbaudio.c if (snd_usb_get_speed(subs->dev) == USB_SPEED_HIGH) dev 1145 sound/usb/usbaudio.c usb_buffer_alloc(subs->dev, u->buffer_size, GFP_KERNEL, dev 1158 sound/usb/usbaudio.c subs->syncbuf = usb_buffer_alloc(subs->dev, SYNC_URBS * 4, dev 1266 sound/usb/usbaudio.c if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), SET_CUR, dev 1270 sound/usb/usbaudio.c dev->devnum, iface, ep); dev 1292 sound/usb/usbaudio.c if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), SET_CUR, dev 1296 sound/usb/usbaudio.c dev->devnum, iface, fmt->altsetting, rate, ep); dev 1299 sound/usb/usbaudio.c if ((err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), GET_CUR, dev 1303 sound/usb/usbaudio.c dev->devnum, iface, fmt->altsetting, ep); dev 1320 sound/usb/usbaudio.c struct usb_device *dev = subs->dev; dev 1328 sound/usb/usbaudio.c iface = usb_ifnum_to_if(dev, fmt->iface); dev 1341 sound/usb/usbaudio.c if (usb_set_interface(subs->dev, subs->interface, 0) < 0) { dev 1343 sound/usb/usbaudio.c dev->devnum, fmt->iface, fmt->altsetting); dev 1352 sound/usb/usbaudio.c if (usb_set_interface(dev, fmt->iface, fmt->altsetting) < 0) { dev 1354 sound/usb/usbaudio.c dev->devnum, fmt->iface, fmt->altsetting); dev 1365 sound/usb/usbaudio.c subs->datapipe = usb_sndisocpipe(dev, ep); dev 1367 sound/usb/usbaudio.c subs->datapipe = usb_rcvisocpipe(dev, ep); dev 1368 sound/usb/usbaudio.c if (snd_usb_get_speed(subs->dev) == USB_SPEED_HIGH && dev 1395 sound/usb/usbaudio.c dev->devnum, fmt->iface, fmt->altsetting); dev 1403 sound/usb/usbaudio.c dev->devnum, fmt->iface, fmt->altsetting); dev 1408 sound/usb/usbaudio.c subs->syncpipe = usb_rcvisocpipe(dev, ep); dev 1410 sound/usb/usbaudio.c subs->syncpipe = usb_sndisocpipe(dev, ep); dev 1415 sound/usb/usbaudio.c else if (snd_usb_get_speed(subs->dev) == USB_SPEED_FULL) dev 1428 sound/usb/usbaudio.c if ((err = init_usb_pitch(dev, subs->interface, alts, fmt)) < 0) dev 1485 sound/usb/usbaudio.c iface = usb_ifnum_to_if(subs->dev, fmt->iface); dev 1487 sound/usb/usbaudio.c ret = init_usb_sample_rate(subs->dev, subs->interface, alts, fmt, rate); dev 1974 sound/usb/usbaudio.c usb_set_interface(subs->dev, subs->interface, 0); dev 2100 sound/usb/usbaudio.c err = usb_control_msg(dev, pipe, request, requesttype, dev 2200 sound/usb/usbaudio.c snd_usb_get_speed(subs->dev) == USB_SPEED_FULL dev 2259 sound/usb/usbaudio.c subs->dev = as->chip->dev; dev 2260 sound/usb/usbaudio.c if (snd_usb_get_speed(subs->dev) == USB_SPEED_FULL) { dev 2440 sound/usb/usbaudio.c chip->dev->devnum, fp->iface, fp->altsetting); dev 2445 sound/usb/usbaudio.c chip->dev->devnum, fp->iface, fp->altsetting, dev 2470 sound/usb/usbaudio.c chip->dev->devnum, fp->iface, dev 2494 sound/usb/usbaudio.c chip->dev->devnum, fp->iface, fp->altsetting, format); dev 2518 sound/usb/usbaudio.c chip->dev->devnum, fp->iface, fp->altsetting); dev 2599 sound/usb/usbaudio.c chip->dev->devnum, fp->iface, fp->altsetting, fp->channels); dev 2623 sound/usb/usbaudio.c chip->dev->devnum, fp->iface, fp->altsetting, format); dev 2650 sound/usb/usbaudio.c chip->dev->devnum, fp->iface, fp->altsetting, fmt[3]); dev 2677 sound/usb/usbaudio.c struct usb_device *dev; dev 2687 sound/usb/usbaudio.c dev = chip->dev; dev 2690 sound/usb/usbaudio.c iface = usb_ifnum_to_if(dev, iface_no); dev 2731 sound/usb/usbaudio.c dev->devnum, iface_no, altno); dev 2737 sound/usb/usbaudio.c dev->devnum, iface_no, altno); dev 2747 sound/usb/usbaudio.c dev->devnum, iface_no, altno); dev 2752 sound/usb/usbaudio.c dev->devnum, iface_no, altno); dev 2763 sound/usb/usbaudio.c dev->devnum, iface_no, altno); dev 2779 sound/usb/usbaudio.c if (snd_usb_get_speed(dev) == USB_SPEED_HIGH) dev 2820 sound/usb/usbaudio.c snd_printdd(KERN_INFO "%d:%u:%d: add audio endpoint 0x%x\n", dev->devnum, iface_no, altno, fp->endpoint); dev 2828 sound/usb/usbaudio.c usb_set_interface(chip->dev, iface_no, altno); dev 2829 sound/usb/usbaudio.c init_usb_pitch(chip->dev, iface_no, alts, fp); dev 2830 sound/usb/usbaudio.c init_usb_sample_rate(chip->dev, iface_no, alts, fp, fp->rate_max); dev 2861 sound/usb/usbaudio.c struct usb_device *dev = chip->dev; dev 2868 sound/usb/usbaudio.c host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; dev 2885 sound/usb/usbaudio.c iface = usb_ifnum_to_if(dev, j); dev 2888 sound/usb/usbaudio.c dev->devnum, ctrlif, j); dev 2892 sound/usb/usbaudio.c snd_printdd(KERN_INFO "%d:%d:%d: skipping, already claimed\n", dev->devnum, ctrlif, j); dev 2901 sound/usb/usbaudio.c snd_printk(KERN_ERR "%d:%u:%d: cannot create sequencer device\n", dev->devnum, ctrlif, j); dev 2910 sound/usb/usbaudio.c snd_printdd(KERN_ERR "%d:%u:%d: skipping non-supported interface %d\n", dev->devnum, ctrlif, j, altsd->bInterfaceClass); dev 2914 sound/usb/usbaudio.c if (snd_usb_get_speed(dev) == USB_SPEED_LOW) { dev 2919 sound/usb/usbaudio.c usb_set_interface(dev, j, 0); /* reset the current interface */ dev 2969 sound/usb/usbaudio.c usb_set_interface(chip->dev, fp->iface, 0); dev 2970 sound/usb/usbaudio.c init_usb_pitch(chip->dev, fp->iface, alts, fp); dev 2971 sound/usb/usbaudio.c init_usb_sample_rate(chip->dev, fp->iface, alts, fp, fp->rate_max); dev 2995 sound/usb/usbaudio.c usb_set_interface(chip->dev, altsd->bInterfaceNumber, 0); dev 3089 sound/usb/usbaudio.c usb_set_interface(chip->dev, fp->iface, 0); dev 3140 sound/usb/usbaudio.c usb_set_interface(chip->dev, fp->iface, 0); dev 3192 sound/usb/usbaudio.c usb_set_interface(chip->dev, fp->iface, 0); dev 3211 sound/usb/usbaudio.c iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); dev 3243 sound/usb/usbaudio.c struct usb_host_config *config = dev->actconfig; dev 3250 sound/usb/usbaudio.c err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev,0), dev 3253 sound/usb/usbaudio.c err = usb_get_descriptor(dev, USB_DT_DEVICE, 0, dev 3254 sound/usb/usbaudio.c &dev->descriptor, sizeof(dev->descriptor)); dev 3255 sound/usb/usbaudio.c config = dev->actconfig; dev 3257 sound/usb/usbaudio.c err = usb_reset_configuration(dev); dev 3270 sound/usb/usbaudio.c snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), 0x2a, dev 3274 sound/usb/usbaudio.c snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), 0x29, dev 3293 sound/usb/usbaudio.c return snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), USB_REQ_SET_CONFIGURATION, dev 3304 sound/usb/usbaudio.c return snd_usb_cm106_write_int_reg(dev, 2, 0x8004); dev 3328 sound/usb/usbaudio.c usb_set_interface(chip->dev, iface, 0); dev 3401 sound/usb/usbaudio.c snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip->dev->devnum); dev 3459 sound/usb/usbaudio.c if (snd_usb_get_speed(dev) != USB_SPEED_LOW && dev 3460 sound/usb/usbaudio.c snd_usb_get_speed(dev) != USB_SPEED_FULL && dev 3461 sound/usb/usbaudio.c snd_usb_get_speed(dev) != USB_SPEED_HIGH) { dev 3462 sound/usb/usbaudio.c snd_printk(KERN_ERR "unknown device speed %d\n", snd_usb_get_speed(dev)); dev 3479 sound/usb/usbaudio.c chip->dev = dev; dev 3481 sound/usb/usbaudio.c chip->usb_id = USB_ID(le16_to_cpu(dev->descriptor.idVendor), dev 3482 sound/usb/usbaudio.c le16_to_cpu(dev->descriptor.idProduct)); dev 3502 sound/usb/usbaudio.c if (!dev->descriptor.iProduct || dev 3503 sound/usb/usbaudio.c usb_string(dev, dev->descriptor.iProduct, dev 3516 sound/usb/usbaudio.c if (dev->descriptor.iManufacturer) dev 3517 sound/usb/usbaudio.c len = usb_string(dev, dev->descriptor.iManufacturer, dev 3531 sound/usb/usbaudio.c usb_make_path(dev, card->longname + len, sizeof(card->longname) - len); dev 3534 sound/usb/usbaudio.c snd_usb_get_speed(dev) == USB_SPEED_LOW ? ", low speed" : dev 3535 sound/usb/usbaudio.c snd_usb_get_speed(dev) == USB_SPEED_FULL ? ", full speed" : dev 3569 sound/usb/usbaudio.c id = USB_ID(le16_to_cpu(dev->descriptor.idVendor), dev 3570 sound/usb/usbaudio.c le16_to_cpu(dev->descriptor.idProduct)); dev 3578 sound/usb/usbaudio.c if (snd_usb_extigy_boot_quirk(dev, intf) < 0) dev 3583 sound/usb/usbaudio.c if (snd_usb_audigy2nx_boot_quirk(dev) < 0) dev 3589 sound/usb/usbaudio.c if (snd_usb_cm106_boot_quirk(dev) < 0) dev 3601 sound/usb/usbaudio.c if (usb_chip[i] && usb_chip[i]->dev == dev) { dev 3618 sound/usb/usbaudio.c if (snd_usb_audio_create(dev, i, quirk, &chip) < 0) { dev 3621 sound/usb/usbaudio.c snd_card_set_dev(chip->card, &intf->dev); dev 3712 sound/usb/usbaudio.c dev_set_drvdata(&intf->dev, chip); dev 3721 sound/usb/usbaudio.c dev_get_drvdata(&intf->dev)); dev 3727 sound/usb/usbaudio.c struct snd_usb_audio *chip = dev_get_drvdata(&intf->dev); dev 3747 sound/usb/usbaudio.c struct snd_usb_audio *chip = dev_get_drvdata(&intf->dev); dev 124 sound/usb/usbaudio.h struct usb_device *dev; dev 248 sound/usb/usbaudio.h #define snd_usb_get_speed(dev) ((dev)->speed) dev 248 sound/usb/usbmidi.c urb->dev = ep->umidi->chip->dev; dev 292 sound/usb/usbmidi.c urb->dev = ep->umidi->chip->dev; dev 320 sound/usb/usbmidi.c in->urb->dev = umidi->chip->dev; dev 338 sound/usb/usbmidi.c err = usb_bulk_msg(ep->umidi->chip->dev, ep->urb->pipe, buf, len, dev 690 sound/usb/usbmidi.c count = ep->urb->dev->speed == USB_SPEED_HIGH ? 1 : 2; dev 926 sound/usb/usbmidi.c usb_buffer_free(ep->umidi->chip->dev, dev 959 sound/usb/usbmidi.c pipe = usb_rcvintpipe(umidi->chip->dev, ep_info->in_ep); dev 961 sound/usb/usbmidi.c pipe = usb_rcvbulkpipe(umidi->chip->dev, ep_info->in_ep); dev 962 sound/usb/usbmidi.c length = usb_maxpacket(umidi->chip->dev, pipe, 0); dev 963 sound/usb/usbmidi.c buffer = usb_buffer_alloc(umidi->chip->dev, length, GFP_KERNEL, dev 970 sound/usb/usbmidi.c usb_fill_int_urb(ep->urb, umidi->chip->dev, pipe, buffer, dev 974 sound/usb/usbmidi.c usb_fill_bulk_urb(ep->urb, umidi->chip->dev, pipe, buffer, dev 998 sound/usb/usbmidi.c usb_buffer_free(ep->umidi->chip->dev, ep->max_transfer, dev 1030 sound/usb/usbmidi.c pipe = usb_sndintpipe(umidi->chip->dev, ep_info->out_ep); dev 1032 sound/usb/usbmidi.c pipe = usb_sndbulkpipe(umidi->chip->dev, ep_info->out_ep); dev 1037 sound/usb/usbmidi.c ep->max_transfer = usb_maxpacket(umidi->chip->dev, pipe, 1); dev 1038 sound/usb/usbmidi.c buffer = usb_buffer_alloc(umidi->chip->dev, ep->max_transfer, dev 1045 sound/usb/usbmidi.c usb_fill_int_urb(ep->urb, umidi->chip->dev, pipe, buffer, dev 1049 sound/usb/usbmidi.c usb_fill_bulk_urb(ep->urb, umidi->chip->dev, dev 1414 sound/usb/usbmidi.c else if (snd_usb_get_speed(umidi->chip->dev) == USB_SPEED_LOW) dev 1434 sound/usb/usbmidi.c else if (snd_usb_get_speed(umidi->chip->dev) == USB_SPEED_LOW) dev 1467 sound/usb/usbmidi.c usb_set_interface(umidi->chip->dev, intfd->bInterfaceNumber, dev 1711 sound/usb/usbmidi.c urb->dev = ep->umidi->chip->dev; dev 266 sound/usb/usbmixer.c int len = usb_string(state->chip->dev, index, buf, maxlen - 1); dev 358 sound/usb/usbmixer.c if (snd_usb_ctl_msg(cval->mixer->chip->dev, dev 359 sound/usb/usbmixer.c usb_rcvctrlpipe(cval->mixer->chip->dev, 0), dev 398 sound/usb/usbmixer.c if (snd_usb_ctl_msg(cval->mixer->chip->dev, dev 399 sound/usb/usbmixer.c usb_sndctrlpipe(cval->mixer->chip->dev, 0), dev 1649 sound/usb/usbmixer.c hostif = &usb_ifnum_to_if(mixer->chip->dev, mixer->ctrlif)->altsetting[0]; dev 1699 sound/usb/usbmixer.c mixer->rc_urb->dev = mixer->chip->dev; dev 1739 sound/usb/usbmixer.c urb->dev = mixer->chip->dev; dev 1753 sound/usb/usbmixer.c hostif = &usb_ifnum_to_if(mixer->chip->dev, mixer->ctrlif)->altsetting[0]; dev 1772 sound/usb/usbmixer.c usb_fill_int_urb(mixer->urb, mixer->chip->dev, dev 1773 sound/usb/usbmixer.c usb_rcvintpipe(mixer->chip->dev, epnum), dev 1890 sound/usb/usbmixer.c usb_fill_control_urb(mixer->rc_urb, mixer->chip->dev, dev 1891 sound/usb/usbmixer.c usb_rcvctrlpipe(mixer->chip->dev, 0), dev 1918 sound/usb/usbmixer.c err = snd_usb_ctl_msg(mixer->chip->dev, dev 1919 sound/usb/usbmixer.c usb_sndctrlpipe(mixer->chip->dev, 0), 0x24, dev 2005 sound/usb/usbmixer.c err = snd_usb_ctl_msg(mixer->chip->dev, dev 2006 sound/usb/usbmixer.c usb_rcvctrlpipe(mixer->chip->dev, 0), dev 62 sound/usb/usx2y/us122l.c struct usb_device *dev = US122L(card)->chip.dev; dev 63 sound/usb/usx2y/us122l.c struct usb_interface *iface = usb_ifnum_to_if(dev, 1); dev 86 sound/usb/usx2y/us122l.c err = usb_control_msg(dev, pipe, request, requesttype, dev 99 sound/usb/usx2y/us122l.c ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), dev 173 sound/usb/usx2y/us122l.c iface = usb_ifnum_to_if(us122l->chip.dev, 1); dev 181 sound/usb/usx2y/us122l.c struct usb_interface *iface = usb_ifnum_to_if(us122l->chip.dev, 1); dev 282 sound/usb/usx2y/us122l.c err = us122l_ctl_msg(dev, usb_sndctrlpipe(dev, 0), SET_CUR, dev 287 sound/usb/usx2y/us122l.c dev->devnum, rate, ep); dev 299 sound/usb/usx2y/us122l.c if (us122l->chip.dev->speed == USB_SPEED_HIGH) { dev 316 sound/usb/usx2y/us122l.c if (!usb_stream_new(&us122l->sk, us122l->chip.dev, 1, 2, dev 320 sound/usb/usx2y/us122l.c err = us122l_set_sample_rate(us122l->chip.dev, rate); dev 363 sound/usb/usx2y/us122l.c high_speed = us122l->chip.dev->speed == USB_SPEED_HIGH; dev 423 sound/usb/usx2y/us122l.c struct usb_device *dev = US122L(card)->chip.dev; dev 439 sound/usb/usx2y/us122l.c dev->bus->busnum, dev->devnum); dev 449 sound/usb/usx2y/us122l.c err = usb_set_interface(us122l->chip.dev, 1, 1); dev 455 sound/usb/usx2y/us122l.c pt_info_set(us122l->chip.dev, 0x11); dev 456 sound/usb/usx2y/us122l.c pt_info_set(us122l->chip.dev, 0x10); dev 482 sound/usb/usx2y/us122l.c int dev; dev 484 sound/usb/usx2y/us122l.c for (dev = 0; dev < SNDRV_CARDS; ++dev) dev 485 sound/usb/usx2y/us122l.c if (enable[dev] && !snd_us122l_card_used[dev]) dev 487 sound/usb/usx2y/us122l.c if (dev >= SNDRV_CARDS) dev 489 sound/usb/usx2y/us122l.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, dev 493 sound/usb/usx2y/us122l.c snd_us122l_card_used[US122L(card)->chip.index = dev] = 1; dev 495 sound/usb/usx2y/us122l.c US122L(card)->chip.dev = device; dev 507 sound/usb/usx2y/us122l.c US122L(card)->chip.dev->bus->busnum, dev 508 sound/usb/usx2y/us122l.c US122L(card)->chip.dev->devnum dev 510 sound/usb/usx2y/us122l.c snd_card_set_dev(card, &device->dev); dev 577 sound/usb/usx2y/us122l.c usb_put_dev(US122L(card)->chip.dev); dev 591 sound/usb/usx2y/us122l.c card = dev_get_drvdata(&intf->dev); dev 617 sound/usb/usx2y/us122l.c card = dev_get_drvdata(&intf->dev); dev 627 sound/usb/usx2y/us122l.c err = usb_set_interface(us122l->chip.dev, 1, 1); dev 633 sound/usb/usx2y/us122l.c pt_info_set(us122l->chip.dev, 0x11); dev 634 sound/usb/usx2y/us122l.c pt_info_set(us122l->chip.dev, 0x10); dev 636 sound/usb/usx2y/us122l.c err = us122l_set_sample_rate(us122l->chip.dev, dev 130 sound/usb/usx2y/usX2Yhwdep.c switch (le16_to_cpu(us428->chip.dev->descriptor.idProduct)) { dev 180 sound/usb/usx2y/usX2Yhwdep.c struct usb_device *dev = usX2Y(card)->chip.dev; dev 181 sound/usb/usx2y/usX2Yhwdep.c struct usb_interface *iface = usb_ifnum_to_if(dev, 0); dev 183 sound/usb/usx2y/usX2Yhwdep.c le16_to_cpu(dev->descriptor.idProduct) == USB_ID_US428 ? dev 218 sound/usb/usx2y/usX2Yhwdep.c struct usb_device* dev = priv->chip.dev; dev 226 sound/usb/usx2y/usX2Yhwdep.c err = usb_set_interface(dev, 0, 1); dev 230 sound/usb/usx2y/usX2Yhwdep.c err = usb_bulk_msg(dev, usb_sndbulkpipe(dev, 2), buf, dsp->length, &lret, 6000); dev 70 sound/usb/usx2y/usb_stream.c use_packsize : usb_maxpacket(dev, pipe, usb_pipeout(pipe)); dev 79 sound/usb/usx2y/usb_stream.c urb->dev = dev; dev 112 sound/usb/usx2y/usb_stream.c init_pipe_urbs(sk, use_packsize, sk->inurb, indata, dev, in_pipe); dev 113 sound/usb/usx2y/usb_stream.c init_pipe_urbs(sk, use_packsize, sk->outurb, sk->write_page, dev, dev 168 sound/usb/usx2y/usb_stream.c int usb_frames = dev->speed == USB_SPEED_HIGH ? 8000 : 1000; dev 171 sound/usb/usx2y/usb_stream.c in_pipe = usb_rcvisocpipe(dev, in_endpoint); dev 172 sound/usb/usx2y/usb_stream.c out_pipe = usb_sndisocpipe(dev, out_endpoint); dev 175 sound/usb/usx2y/usb_stream.c use_packsize : usb_maxpacket(dev, in_pipe, 0); dev 185 sound/usb/usx2y/usb_stream.c if (dev->speed == USB_SPEED_HIGH) dev 191 sound/usb/usx2y/usb_stream.c max_packsize = usb_maxpacket(dev, out_pipe, 1); dev 228 sound/usb/usx2y/usb_stream.c if (dev->speed == USB_SPEED_FULL) dev 233 sound/usb/usx2y/usb_stream.c init_urbs(sk, use_packsize, dev, in_pipe, out_pipe); dev 685 sound/usb/usx2y/usb_stream.c struct usb_device *dev = inurb->dev; dev 686 sound/usb/usx2y/usb_stream.c frame = usb_get_current_frame_number(dev); dev 688 sound/usb/usx2y/usb_stream.c now = usb_get_current_frame_number(dev); dev 242 sound/usb/usx2y/usbusx2y.c usb_fill_bulk_urb(usX2Y->AS04.urb[j], usX2Y->chip.dev, dev 243 sound/usb/usx2y/usbusx2y.c usb_sndbulkpipe(usX2Y->chip.dev, 0x04), &p4out->val.vol, dev 256 sound/usb/usx2y/usbusx2y.c urb->dev = usX2Y->chip.dev; dev 276 sound/usb/usx2y/usbusx2y.c usb_fill_bulk_urb( usX2Y->AS04.urb[i], usX2Y->chip.dev, dev 277 sound/usb/usx2y/usbusx2y.c usb_sndbulkpipe(usX2Y->chip.dev, 0x04), dev 296 sound/usb/usx2y/usbusx2y.c usb_fill_int_urb(usX2Y->In04urb, usX2Y->chip.dev, usb_rcvintpipe(usX2Y->chip.dev, 0x4), dev 338 sound/usb/usx2y/usbusx2y.c int dev; dev 340 sound/usb/usx2y/usbusx2y.c for (dev = 0; dev < SNDRV_CARDS; ++dev) dev 341 sound/usb/usx2y/usbusx2y.c if (enable[dev] && !snd_usX2Y_card_used[dev]) dev 343 sound/usb/usx2y/usbusx2y.c if (dev >= SNDRV_CARDS) dev 345 sound/usb/usx2y/usbusx2y.c card = snd_card_new(index[dev], id[dev], THIS_MODULE, sizeof(struct usX2Ydev)); dev 348 sound/usb/usx2y/usbusx2y.c snd_usX2Y_card_used[usX2Y(card)->chip.index = dev] = 1; dev 350 sound/usb/usx2y/usbusx2y.c usX2Y(card)->chip.dev = device; dev 362 sound/usb/usx2y/usbusx2y.c usX2Y(card)->chip.dev->bus->busnum, usX2Y(card)->chip.dev->devnum dev 364 sound/usb/usx2y/usbusx2y.c snd_card_set_dev(card, &device->dev); dev 395 sound/usb/usx2y/usbusx2y.c dev_set_drvdata(&intf->dev, chip); dev 404 sound/usb/usx2y/usbusx2y.c dev_get_drvdata(&intf->dev)); dev 202 sound/usb/usx2y/usbusx2yaudio.c urb->dev = subs->usX2Y->chip.dev; /* we need to set this at each time */ dev 302 sound/usb/usx2y/usbusx2yaudio.c usb_get_current_frame_number(usX2Y->chip.dev), dev 315 sound/usb/usx2y/usbusx2yaudio.c usb_get_current_frame_number(usX2Y->chip.dev), dev 426 sound/usb/usx2y/usbusx2yaudio.c struct usb_device *dev = subs->usX2Y->chip.dev; dev 428 sound/usb/usx2y/usbusx2yaudio.c pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : dev 429 sound/usb/usx2y/usbusx2yaudio.c usb_rcvisocpipe(dev, subs->endpoint); dev 430 sound/usb/usx2y/usbusx2yaudio.c subs->maxpacksize = usb_maxpacket(dev, pipe, is_playback); dev 461 sound/usb/usx2y/usbusx2yaudio.c (*purb)->dev = dev; dev 502 sound/usb/usx2y/usbusx2yaudio.c urb->dev = usX2Y->chip.dev; dev 694 sound/usb/usx2y/usbusx2yaudio.c usb_fill_bulk_urb(us->urb[i], usX2Y->chip.dev, usb_sndbulkpipe(usX2Y->chip.dev, 4), dev 746 sound/usb/usx2y/usbusx2yaudio.c if ((err = usb_set_interface(usX2Y->chip.dev, 0, alternate))) { dev 750 sound/usb/usx2y/usbusx2yaudio.c usX2Y->In04urb->dev = usX2Y->chip.dev; dev 773 sound/usb/usx2y/usbusx2yaudio.c struct snd_device *dev; dev 776 sound/usb/usx2y/usbusx2yaudio.c dev = snd_device(list); dev 777 sound/usb/usx2y/usbusx2yaudio.c if (dev->type != SNDRV_DEV_PCM) dev 779 sound/usb/usx2y/usbusx2yaudio.c pcm = dev->device_data; dev 1018 sound/usb/usx2y/usbusx2yaudio.c if (le16_to_cpu(usX2Y(card)->chip.dev->descriptor.idProduct) == USB_ID_US428) dev 1021 sound/usb/usx2y/usbusx2yaudio.c if (le16_to_cpu(usX2Y(card)->chip.dev->descriptor.idProduct) != USB_ID_US122) dev 237 sound/usb/usx2y/usx2yhwdeppcm.c usb_get_current_frame_number(usX2Y->chip.dev), dev 321 sound/usb/usx2y/usx2yhwdeppcm.c struct usb_device *dev = subs->usX2Y->chip.dev; dev 323 sound/usb/usx2y/usx2yhwdeppcm.c pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : dev 324 sound/usb/usx2y/usx2yhwdeppcm.c usb_rcvisocpipe(dev, subs->endpoint); dev 325 sound/usb/usx2y/usx2yhwdeppcm.c subs->maxpacksize = usb_maxpacket(dev, pipe, is_playback); dev 347 sound/usb/usx2y/usx2yhwdeppcm.c (*purb)->dev = dev; dev 444 sound/usb/usx2y/usx2yhwdeppcm.c urb->dev = usX2Y->chip.dev; dev 611 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_device *dev; dev 615 sound/usb/usx2y/usx2yhwdeppcm.c dev = snd_device(list); dev 616 sound/usb/usx2y/usx2yhwdeppcm.c if (dev->type != SNDRV_DEV_PCM) dev 618 sound/usb/usx2y/usx2yhwdeppcm.c pcm = dev->device_data; dev 623 sound/usb/usx2y/usx2yhwdeppcm.c dev = snd_device(list); dev 624 sound/usb/usx2y/usx2yhwdeppcm.c if (dev->type != SNDRV_DEV_PCM) dev 626 sound/usb/usx2y/usx2yhwdeppcm.c pcm = dev->device_data; dev 641 sound/usb/usx2y/usx2yhwdeppcm.c struct snd_device *dev; dev 644 sound/usb/usx2y/usx2yhwdeppcm.c dev = snd_device(list); dev 645 sound/usb/usx2y/usx2yhwdeppcm.c if (dev->type != SNDRV_DEV_PCM) dev 647 sound/usb/usx2y/usx2yhwdeppcm.c pcm = dev->device_data; dev 744 sound/usb/usx2y/usx2yhwdeppcm.c struct usb_device *dev = usX2Y(card)->chip.dev; dev 758 sound/usb/usx2y/usx2yhwdeppcm.c sprintf(hw->name, "/proc/bus/usb/%03d/%03d/hwdeppcm", dev->bus->busnum, dev->devnum); dev 20 virt/kvm/coalesced_mmio.c struct kvm_coalesced_mmio_dev *dev = dev 40 virt/kvm/coalesced_mmio.c next = (dev->kvm->coalesced_mmio_ring->last + 1) % dev 42 virt/kvm/coalesced_mmio.c if (next == dev->kvm->coalesced_mmio_ring->first) { dev 49 virt/kvm/coalesced_mmio.c for (i = 0; i < dev->nb_zones; i++) { dev 50 virt/kvm/coalesced_mmio.c zone = &dev->zone[i]; dev 66 virt/kvm/coalesced_mmio.c struct kvm_coalesced_mmio_dev *dev = dev 68 virt/kvm/coalesced_mmio.c struct kvm_coalesced_mmio_ring *ring = dev->kvm->coalesced_mmio_ring; dev 88 virt/kvm/coalesced_mmio.c struct kvm_coalesced_mmio_dev *dev; dev 90 virt/kvm/coalesced_mmio.c dev = kzalloc(sizeof(struct kvm_coalesced_mmio_dev), GFP_KERNEL); dev 91 virt/kvm/coalesced_mmio.c if (!dev) dev 93 virt/kvm/coalesced_mmio.c dev->dev.write = coalesced_mmio_write; dev 94 virt/kvm/coalesced_mmio.c dev->dev.in_range = coalesced_mmio_in_range; dev 95 virt/kvm/coalesced_mmio.c dev->dev.destructor = coalesced_mmio_destructor; dev 96 virt/kvm/coalesced_mmio.c dev->dev.private = dev; dev 97 virt/kvm/coalesced_mmio.c dev->kvm = kvm; dev 98 virt/kvm/coalesced_mmio.c kvm->coalesced_mmio_dev = dev; dev 99 virt/kvm/coalesced_mmio.c kvm_io_bus_register_dev(&kvm->mmio_bus, &dev->dev); dev 107 virt/kvm/coalesced_mmio.c struct kvm_coalesced_mmio_dev *dev = kvm->coalesced_mmio_dev; dev 109 virt/kvm/coalesced_mmio.c if (dev == NULL) dev 113 virt/kvm/coalesced_mmio.c if (dev->nb_zones >= KVM_COALESCED_MMIO_ZONE_MAX) { dev 118 virt/kvm/coalesced_mmio.c dev->zone[dev->nb_zones] = *zone; dev 119 virt/kvm/coalesced_mmio.c dev->nb_zones++; dev 129 virt/kvm/coalesced_mmio.c struct kvm_coalesced_mmio_dev *dev = kvm->coalesced_mmio_dev; dev 132 virt/kvm/coalesced_mmio.c if (dev == NULL) dev 137 virt/kvm/coalesced_mmio.c i = dev->nb_zones; dev 139 virt/kvm/coalesced_mmio.c z = &dev->zone[i - 1]; dev 147 virt/kvm/coalesced_mmio.c dev->nb_zones--; dev 148 virt/kvm/coalesced_mmio.c *z = dev->zone[dev->nb_zones]; dev 13 virt/kvm/coalesced_mmio.h struct kvm_io_device dev; dev 413 virt/kvm/ioapic.c ioapic->dev.read = ioapic_mmio_read; dev 414 virt/kvm/ioapic.c ioapic->dev.write = ioapic_mmio_write; dev 415 virt/kvm/ioapic.c ioapic->dev.in_range = ioapic_in_range; dev 416 virt/kvm/ioapic.c ioapic->dev.private = ioapic; dev 418 virt/kvm/ioapic.c kvm_io_bus_register_dev(&kvm->mmio_bus, &ioapic->dev); dev 59 virt/kvm/ioapic.h struct kvm_io_device dev; dev 42 virt/kvm/iodev.h dev->read(dev, addr, len, val); dev 50 virt/kvm/iodev.h dev->write(dev, addr, len, val); dev 56 virt/kvm/iodev.h return dev->in_range(dev, addr, len, is_write); dev 61 virt/kvm/iodev.h if (dev->destructor) dev 62 virt/kvm/iodev.h dev->destructor(dev); dev 1587 virt/kvm/kvm_main.c bus->devs[bus->dev_count++] = dev;