self              256 arch/alpha/kernel/pci.c 	struct pci_dev *dev = bus->self;
self              437 arch/alpha/kernel/sys_dp264.c 	else if (hose->index == 1 && PCI_SLOT(dev->bus->self->devfn) == 8) {
self              444 arch/alpha/kernel/sys_dp264.c 			    PCI_SLOT(dev->bus->self->devfn) == 8) {
self              451 arch/alpha/kernel/sys_dp264.c 			dev = dev->bus->self;
self              454 arch/alpha/kernel/sys_dp264.c 		} while (dev->bus->self);
self              182 arch/alpha/kernel/sys_eiger.c 	while (dev->bus->self) {
self              185 arch/alpha/kernel/sys_eiger.c 		    && (PCI_SLOT(dev->bus->self->devfn)
self              194 arch/alpha/kernel/sys_eiger.c 		dev = dev->bus->self;
self              209 arch/alpha/kernel/sys_miata.c 	else if ((PCI_SLOT(dev->bus->self->devfn) == 8) ||
self              210 arch/alpha/kernel/sys_miata.c 		 (PCI_SLOT(dev->bus->self->devfn) == 20)) {
self              217 arch/alpha/kernel/sys_miata.c 			if ((PCI_SLOT(dev->bus->self->devfn) == 8) ||
self              218 arch/alpha/kernel/sys_miata.c 			    (PCI_SLOT(dev->bus->self->devfn) == 20)) {
self              225 arch/alpha/kernel/sys_miata.c 			dev = dev->bus->self;
self              228 arch/alpha/kernel/sys_miata.c 		} while (dev->bus->self);
self               76 arch/alpha/kernel/sys_nautilus.c 	    dev->bus->self && dev->bus->self->device == 0x700f)
self              241 arch/alpha/kernel/sys_nautilus.c 	bus->self = irongate;
self              281 arch/alpha/kernel/sys_nautilus.c 	bus->self = NULL;
self              234 arch/alpha/kernel/sys_noritake.c 	else if (PCI_SLOT(dev->bus->self->devfn) == 8) {
self              241 arch/alpha/kernel/sys_noritake.c 			if (PCI_SLOT(dev->bus->self->devfn) == 8) {
self              248 arch/alpha/kernel/sys_noritake.c 			dev = dev->bus->self;
self              251 arch/alpha/kernel/sys_noritake.c 		} while (dev->bus->self);
self              152 arch/alpha/kernel/sys_ruffian.c 	else if (PCI_SLOT(dev->bus->self->devfn) == 13) {
self              159 arch/alpha/kernel/sys_ruffian.c 			if (PCI_SLOT(dev->bus->self->devfn) == 13) {
self              166 arch/alpha/kernel/sys_ruffian.c 			dev = dev->bus->self;
self              169 arch/alpha/kernel/sys_ruffian.c 		} while (dev->bus->self);
self              417 arch/alpha/kernel/sys_sable.c 	else if (PCI_SLOT(dev->bus->self->devfn) == 3) {
self              424 arch/alpha/kernel/sys_sable.c 			if (PCI_SLOT(dev->bus->self->devfn) == 3) {
self              431 arch/alpha/kernel/sys_sable.c 			dev = dev->bus->self;
self              434 arch/alpha/kernel/sys_sable.c 		} while (dev->bus->self);
self              184 arch/alpha/kernel/sys_takara.c 		unsigned int busslot = PCI_SLOT(dev->bus->self->devfn);
self              222 arch/alpha/kernel/sys_takara.c 	if (!dev->bus->self)
self              225 arch/alpha/kernel/sys_takara.c 	busslot = PCI_SLOT(dev->bus->self->devfn);
self               35 arch/arc/include/asm/kprobes.h int kprobe_exceptions_notify(struct notifier_block *self,
self              355 arch/arc/kernel/kprobes.c int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
self               43 arch/arm/include/asm/kprobes.h int kprobe_exceptions_notify(struct notifier_block *self,
self              349 arch/arm/kernel/bios32.c 	if (bus->self && bus->self->hdr_type == PCI_HEADER_TYPE_BRIDGE) {
self             1026 arch/arm/kernel/hw_breakpoint.c static int dbg_cpu_pm_notify(struct notifier_block *self, unsigned long action,
self              182 arch/arm/kernel/kgdb.c kgdb_notify(struct notifier_block *self, unsigned long cmd, void *ptr)
self               19 arch/arm/kernel/pj4-cp0.c static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t)
self               30 arch/arm/kernel/thumbee.c static int thumbee_notifier(struct notifier_block *self, unsigned long cmd, void *t)
self               33 arch/arm/kernel/xscale-cp0.c static int dsp_do(struct notifier_block *self, unsigned long cmd, void *t)
self               58 arch/arm/kernel/xscale-cp0.c static int iwmmxt_do(struct notifier_block *self, unsigned long cmd, void *t)
self               36 arch/arm/mach-ep93xx/crunch.c static int crunch_do(struct notifier_block *self, unsigned long cmd, void *t)
self              362 arch/arm/mach-mvebu/pmsu.c static int mvebu_v7_cpu_pm_notify(struct notifier_block *self,
self              432 arch/arm/mach-omap2/omap-wakeupgen.c static int irq_notifier(struct notifier_block *self, unsigned long cmd,	void *v)
self              176 arch/arm/mach-pxa/am200epd.c static int am200_fb_notifier_callback(struct notifier_block *self,
self               45 arch/arm/mach-tegra/irq.c static int tegra_gic_notifier(struct notifier_block *self,
self               48 arch/arm/nwfpe/fpmodule.c static int nwfpe_notify(struct notifier_block *self, unsigned long cmd, void *v)
self              379 arch/arm/probes/kprobes/core.c int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
self              178 arch/arm/probes/uprobes/core.c int arch_uprobe_exception_notify(struct notifier_block *self,
self              159 arch/arm/vfp/vfpmodule.c static int vfp_notifier(struct notifier_block *self, unsigned long cmd, void *v)
self              484 arch/arm/vfp/vfpmodule.c static int vfp_cpu_pm_notifier(struct notifier_block *self, unsigned long cmd,
self               47 arch/arm64/include/asm/kprobes.h int kprobe_exceptions_notify(struct notifier_block *self,
self               63 arch/arm64/kernel/cpufeature.c static int dump_cpu_hwcaps(struct notifier_block *self, unsigned long v, void *p)
self             1374 arch/arm64/kernel/fpsimd.c static int fpsimd_cpu_pm_notifier(struct notifier_block *self,
self              284 arch/arm64/kernel/kgdb.c kgdb_notify(struct notifier_block *self, unsigned long cmd, void *ptr)
self              162 arch/arm64/kernel/probes/uprobes.c int arch_uprobe_exception_notify(struct notifier_block *self,
self              396 arch/arm64/kernel/setup.c static int dump_kernel_offset(struct notifier_block *self, unsigned long v,
self              598 arch/arm64/mm/init.c static int dump_mem_limit(struct notifier_block *self, unsigned long v, void *p)
self              173 arch/hexagon/kernel/kgdb.c kgdb_notify(struct notifier_block *self, unsigned long cmd, void *ptr)
self              110 arch/ia64/include/asm/kprobes.h extern int kprobe_exceptions_notify(struct notifier_block *self,
self              156 arch/ia64/kernel/crash.c kdump_init_notifier(struct notifier_block *self, unsigned long val, void *data)
self              953 arch/ia64/kernel/kprobes.c int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
self             1597 arch/ia64/kernel/mca.c default_monarch_init_process(struct notifier_block *self, unsigned long val, void *data)
self               44 arch/ia64/pci/fixup.c 		bridge = bus->self;
self              368 arch/ia64/pci/pci.c 	if (b->self) {
self              370 arch/ia64/pci/pci.c 		pcibios_fixup_bridge_resources(b->self);
self              697 arch/microblaze/pci/pci-common.c 			pr = pci_find_parent_resource(bus->self, res);
self              708 arch/microblaze/pci/pci-common.c 			 bus->self ? pci_name(bus->self) : "PHB",
self              717 arch/microblaze/pci/pci-common.c 			struct pci_dev *dev = bus->self;
self               43 arch/microblaze/pci/xilinx_pci.c 	if (dev->devfn || dev->bus->self)
self               74 arch/mips/include/asm/kprobes.h extern int kprobe_exceptions_notify(struct notifier_block *self,
self              299 arch/mips/kernel/kgdb.c static int kgdb_mips_notify(struct notifier_block *self, unsigned long cmd,
self              422 arch/mips/kernel/kprobes.c int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
self               67 arch/mips/kernel/pm.c static int mips_pm_notifier(struct notifier_block *self, unsigned long cmd,
self              423 arch/mips/kernel/relocate.c static int kernel_location_notifier_fn(struct notifier_block *self,
self             2450 arch/mips/kernel/traps.c static int trap_pm_notifier(struct notifier_block *self, unsigned long cmd,
self              154 arch/mips/kernel/uprobes.c int arch_uprobe_exception_notify(struct notifier_block *self,
self             1671 arch/mips/kvm/mips.c static int kvm_mips_csr_die_notify(struct notifier_block *self,
self             1945 arch/mips/mm/c-r4k.c static int r4k_cache_pm_notifier(struct notifier_block *self, unsigned long cmd,
self              560 arch/mips/mm/tlb-r4k.c static int r4k_tlb_pm_notifier(struct notifier_block *self, unsigned long cmd,
self              143 arch/mips/pci/fixup-sni.c 				dev = dev->bus->self;
self              295 arch/mips/pci/pci-legacy.c 	struct pci_dev *dev = bus->self;
self              190 arch/mips/pci/pci-xlp.c 		return (p && p->parent) ? bus->self : NULL;
self              196 arch/mips/pci/pci-xlp.c 		return p ? bus->self : NULL;
self              203 arch/mips/pci/pci-xlp.c 		return PCI_FUNC(lnkdev->bus->self->devfn);
self              175 arch/mips/pci/pci-xlr.c 	return p ? bus->self : NULL;
self               34 arch/parisc/kernel/kgdb.c static int kgdb_notify(struct notifier_block *self,
self               87 arch/powerpc/include/asm/kprobes.h extern int kprobe_exceptions_notify(struct notifier_block *self,
self              849 arch/powerpc/kernel/pci-common.c 	struct pci_dev *dev = bus->self;
self              916 arch/powerpc/kernel/pci-common.c 	struct pci_dev *dev = bus->self;
self              921 arch/powerpc/kernel/pci-common.c 		if (i >= 3 && bus->self->transparent)
self              952 arch/powerpc/kernel/pci-common.c 	if (bus->self != NULL)
self             1012 arch/powerpc/kernel/pci-common.c 		 bus->number, bus->self ? pci_name(bus->self) : "PHB");
self             1180 arch/powerpc/kernel/pci-common.c 			pr = pci_find_parent_resource(bus->self, res);
self             1191 arch/powerpc/kernel/pci-common.c 			 bus->self ? pci_name(bus->self) : "PHB", bus->number,
self             1195 arch/powerpc/kernel/pci-common.c 			struct pci_dev *dev = bus->self;
self             1434 arch/powerpc/kernel/pci-common.c 		if (bus->self)
self             1435 arch/powerpc/kernel/pci-common.c 			pci_assign_unassigned_bridge_resources(bus->self);
self               94 arch/powerpc/kernel/pci_64.c 	if (bus->self) {
self              100 arch/powerpc/kernel/pci_64.c 			 pci_name(bus->self));
self              184 arch/powerpc/kernel/pci_64.c 	if (bus->self) {
self              186 arch/powerpc/kernel/pci_64.c 			 pci_name(bus->self));
self               42 arch/powerpc/kernel/pci_dn.c 		if (pci_is_root_bus(pbus) || pbus->self)
self              121 arch/powerpc/kernel/uprobes.c int arch_uprobe_exception_notify(struct notifier_block *self,
self              422 arch/powerpc/oprofile/cell/spu_task_sync.c static int spu_active_notify(struct notifier_block *self, unsigned long val,
self               61 arch/powerpc/platforms/4xx/pci.c 	if (dev->devfn != 0 || dev->bus->self != NULL)
self              186 arch/powerpc/platforms/85xx/mpc85xx_cds.c 	struct pci_dev *dev = bus->self;
self               91 arch/powerpc/platforms/cell/setup.c 	if (dev->bus->self != NULL || dev->devfn != 0)
self              157 arch/powerpc/platforms/pasemi/iommu.c 	pr_debug("pci_dma_bus_setup, bus %p, bus->self %p\n", bus, bus->self);
self              239 arch/powerpc/platforms/powermac/pci.c 	if (bus->self)
self              240 arch/powerpc/platforms/powermac/pci.c 		busdn = pci_device_to_OF_node(bus->self);
self             1241 arch/powerpc/platforms/powermac/pci.c 	if (bus->self == NULL && (of_device_is_compatible(node, "u3-agp") ||
self             1156 arch/powerpc/platforms/powernv/eeh-powernv.c 		rc = pci_bus_error_reset(bus->self);
self             1164 arch/powerpc/platforms/powernv/eeh-powernv.c 	return pnv_eeh_bridge_reset(bus->self, option);
self              756 arch/powerpc/platforms/powernv/pci-ioda.c 		pdev = pe->pbus->self;
self              758 arch/powerpc/platforms/powernv/pci-ioda.c 		pdev = pe->pdev->bus->self;
self              774 arch/powerpc/platforms/powernv/pci-ioda.c 		pdev = pdev->bus->self;
self              793 arch/powerpc/platforms/powernv/pci-ioda.c 		parent = pe->pbus->self;
self              819 arch/powerpc/platforms/powernv/pci-ioda.c 			parent = pe->pdev->bus->self;
self              838 arch/powerpc/platforms/powernv/pci-ioda.c 		parent = parent->bus->self;
self              875 arch/powerpc/platforms/powernv/pci-ioda.c 		parent = pe->pbus->self;
self              901 arch/powerpc/platforms/powernv/pci-ioda.c 			parent = pe->pdev->bus->self;
self             3155 arch/powerpc/platforms/powernv/pci-ioda.c 	struct pci_dev *dev = bus->self;
self             3221 arch/powerpc/platforms/powernv/pci-ioda.c 	bridge = bus->self;
self             3229 arch/powerpc/platforms/powernv/pci-ioda.c 		bridge = bridge->bus->self;
self             3258 arch/powerpc/platforms/powernv/pci-ioda.c 	struct pci_dev *bridge = bus->self;
self             3265 arch/powerpc/platforms/powernv/pci-ioda.c 	    !pci_is_root_bus(bridge->bus->self->bus))
self             3307 arch/powerpc/platforms/powernv/pci-ioda.c 	struct pci_dev *bridge = bus->self;
self              252 arch/powerpc/platforms/pseries/cmm.c static int cmm_oom_notify(struct notifier_block *self,
self              527 arch/powerpc/platforms/pseries/cmm.c static int cmm_memory_isolate_cb(struct notifier_block *self,
self              634 arch/powerpc/platforms/pseries/cmm.c static int cmm_memory_cb(struct notifier_block *self,
self              571 arch/powerpc/platforms/pseries/iommu.c 	if (bus->self) {
self              730 arch/powerpc/platforms/pseries/iommu.c 	if (!dev->bus->self) {
self               66 arch/powerpc/sysdev/mpic_u3msi.c 	for (bus = pdev->bus; bus && bus->self; bus = bus->parent) {
self               67 arch/powerpc/sysdev/mpic_u3msi.c 		pos = pci_find_ht_capability(bus->self, HT_CAPTYPE_MSI_MAPPING);
self               69 arch/powerpc/sysdev/mpic_u3msi.c 			return read_ht_magic_addr(bus->self, pos);
self               43 arch/powerpc/sysdev/xilinx_pci.c 	if (dev->devfn || dev->bus->self)
self               77 arch/s390/include/asm/kprobes.h int kprobe_exceptions_notify(struct notifier_block *self,
self             1665 arch/s390/kernel/ipl.c static int on_panic_notify(struct notifier_block *self,
self              610 arch/s390/kernel/kprobes.c int kprobe_exceptions_notify(struct notifier_block *self,
self              111 arch/s390/kernel/uprobes.c int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val,
self              129 arch/s390/mm/cmm.c static int cmm_oom_notify(struct notifier_block *self,
self               42 arch/sh/drivers/pci/fixups-cayman.c 		dev = dev->bus->self;
self               49 arch/sh/include/asm/kprobes.h extern int kprobe_exceptions_notify(struct notifier_block *self,
self              339 arch/sh/kernel/kgdb.c kgdb_notify(struct notifier_block *self, unsigned long cmd, void *ptr)
self              478 arch/sh/kernel/kprobes.c int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
self               21 arch/sh/kernel/nmi_debug.c static int nmi_debug_notify(struct notifier_block *self,
self               50 arch/sparc/include/asm/kprobes.h int kprobe_exceptions_notify(struct notifier_block *self,
self               44 arch/sparc/include/asm/uprobes.h extern int  arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val, void *data);
self              392 arch/sparc/kernel/kprobes.c int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
self             1134 arch/sparc/kernel/pci.c 			if (pbus->self) {
self             1137 arch/sparc/kernel/pci.c 				node = pbus->self->dev.of_node;
self             1613 arch/sparc/kernel/perf_event.c static int __kprobes perf_event_nmi_handler(struct notifier_block *self,
self              262 arch/sparc/kernel/uprobes.c int arch_uprobe_exception_notify(struct notifier_block *self,
self               22 arch/sparc/oprofile/init.c static int profile_timer_exceptions_notify(struct notifier_block *self,
self              812 arch/um/drivers/mconsole_kern.c static int notify_panic(struct notifier_block *self, unsigned long unused1,
self              211 arch/um/kernel/um_arch.c static int panic_exit(struct notifier_block *self, unsigned long unused1,
self              236 arch/unicore32/kernel/pci.c 	if (bus->self && bus->self->hdr_type == PCI_HEADER_TYPE_BRIDGE) {
self              105 arch/x86/include/asm/kprobes.h extern int kprobe_exceptions_notify(struct notifier_block *self,
self              649 arch/x86/kernel/alternative.c int3_exception_notify(struct notifier_block *self, unsigned long val, void *data)
self              575 arch/x86/kernel/kgdb.c kgdb_notify(struct notifier_block *self, unsigned long cmd, void *ptr)
self             1026 arch/x86/kernel/pci-calgary_64.c 		dev->bus->parent->self = dev;
self             1028 arch/x86/kernel/pci-calgary_64.c 		dev->bus->self = dev;
self             1045 arch/x86/kernel/pci-calgary_64.c 		if (dev->bus->parent->self)
self             1048 arch/x86/kernel/pci-calgary_64.c 		dev->bus->parent->self = dev;
self             1050 arch/x86/kernel/pci-calgary_64.c 		dev->bus->self = dev;
self              809 arch/x86/kernel/setup.c dump_kernel_offset(struct notifier_block *self, unsigned long v, void *p)
self              997 arch/x86/kernel/uprobes.c int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val, void *data)
self              249 arch/x86/mm/kasan_init_64.c static int kasan_die_handler(struct notifier_block *self,
self              219 arch/x86/pci/fixup.c 	offset = quirk_aspm_offset[GET_INDEX(bus->self->device, devfn)];
self              321 arch/x86/pci/fixup.c 		bridge = bus->self;
self              238 arch/x86/pci/i386.c 	if (bus->self)
self              239 arch/x86/pci/i386.c 		pcibios_allocate_bridge_resources(bus->self);
self             1226 arch/x86/pci/irq.c 				struct pci_dev *bridge = dev->bus->self;
self              648 drivers/acpi/hmat/hmat.c static int hmat_callback(struct notifier_block *self,
self              252 drivers/acpi/pci_irq.c 		if (!bus_it->self)
self              254 drivers/acpi/pci_irq.c 		if (bus_it->self->irq_reroute_variant)
self              255 drivers/acpi/pci_irq.c 			return bus_it->self->irq_reroute_variant;
self              319 drivers/acpi/pci_irq.c 	bridge = dev->bus->self;
self              345 drivers/acpi/pci_irq.c 		bridge = dev->bus->self;
self              433 drivers/ata/pata_cmd64x.c 	struct pci_dev *bridge = pdev->bus->self;
self              354 drivers/ata/pata_pdc202xx_old.c 		struct pci_dev *bridge = dev->bus->self;
self              865 drivers/base/node.c static int node_memory_callback(struct notifier_block *self,
self              897 drivers/base/node.c static inline int node_memory_callback(struct notifier_block *self,
self             3054 drivers/block/drbd/drbd_receiver.c 	int self, peer, rv = -100;
self             3058 drivers/block/drbd/drbd_receiver.c 	self = device->ldev->md.uuid[UI_BITMAP] & 1;
self             3077 drivers/block/drbd/drbd_receiver.c 		if (self == 0 && peer == 1) {
self             3081 drivers/block/drbd/drbd_receiver.c 		if (self == 1 && peer == 0) {
self             3087 drivers/block/drbd/drbd_receiver.c 		if (self == 0 && peer == 1) {
self             3091 drivers/block/drbd/drbd_receiver.c 		if (self == 1 && peer == 0) {
self             3272 drivers/block/drbd/drbd_receiver.c 	u64 self, peer;
self             3275 drivers/block/drbd/drbd_receiver.c 	self = device->ldev->md.uuid[UI_CURRENT] & ~((u64)1);
self             3279 drivers/block/drbd/drbd_receiver.c 	if (self == UUID_JUST_CREATED && peer == UUID_JUST_CREATED)
self             3283 drivers/block/drbd/drbd_receiver.c 	if ((self == UUID_JUST_CREATED || self == (u64)0) &&
self             3288 drivers/block/drbd/drbd_receiver.c 	if (self != UUID_JUST_CREATED &&
self             3292 drivers/block/drbd/drbd_receiver.c 	if (self == peer) {
self             3391 drivers/block/drbd/drbd_receiver.c 	if (self == peer)
self             3396 drivers/block/drbd/drbd_receiver.c 	if (self == peer) {
self             3418 drivers/block/drbd/drbd_receiver.c 	self = device->ldev->md.uuid[UI_CURRENT] & ~((u64)1);
self             3421 drivers/block/drbd/drbd_receiver.c 		if (self == peer)
self             3426 drivers/block/drbd/drbd_receiver.c 	self = device->ldev->md.uuid[UI_BITMAP] & ~((u64)1);
self             3428 drivers/block/drbd/drbd_receiver.c 	if (self == peer)
self             3432 drivers/block/drbd/drbd_receiver.c 	self = device->ldev->md.uuid[UI_HISTORY_START] & ~((u64)1);
self             3433 drivers/block/drbd/drbd_receiver.c 	if (self == peer) {
self             3437 drivers/block/drbd/drbd_receiver.c 		    self + UUID_NEW_BM_OFFSET == (device->ldev->md.uuid[UI_BITMAP] & ~((u64)1))) {
self             3459 drivers/block/drbd/drbd_receiver.c 		self = device->ldev->md.uuid[i] & ~((u64)1);
self             3460 drivers/block/drbd/drbd_receiver.c 		if (self == peer)
self             3465 drivers/block/drbd/drbd_receiver.c 	self = device->ldev->md.uuid[UI_BITMAP] & ~((u64)1);
self             3467 drivers/block/drbd/drbd_receiver.c 	if (self == peer && self != ((u64)0))
self             3472 drivers/block/drbd/drbd_receiver.c 		self = device->ldev->md.uuid[i] & ~((u64)1);
self             3475 drivers/block/drbd/drbd_receiver.c 			if (self == peer)
self             3966 drivers/block/mtip32xx/mtip32xx.c 	if (pdev->bus && pdev->bus->self) {
self             3967 drivers/block/mtip32xx/mtip32xx.c 		if (pdev->bus->self->vendor == PCI_VENDOR_ID_ATI &&
self             3968 drivers/block/mtip32xx/mtip32xx.c 		    ((pdev->bus->self->device & 0xff00) == 0x5a00)) {
self             3969 drivers/block/mtip32xx/mtip32xx.c 			mtip_disable_link_opts(dd, pdev->bus->self);
self             3972 drivers/block/mtip32xx/mtip32xx.c 			struct pci_dev *parent_dev = pdev->bus->self;
self             3975 drivers/block/mtip32xx/mtip32xx.c 				parent_dev->bus->parent->self &&
self             3976 drivers/block/mtip32xx/mtip32xx.c 				parent_dev->bus->parent->self->vendor ==
self             3978 drivers/block/mtip32xx/mtip32xx.c 				(parent_dev->bus->parent->self->device &
self             3981 drivers/block/mtip32xx/mtip32xx.c 					parent_dev->bus->parent->self);
self              265 drivers/bus/brcmstb_gisb.c static int dump_gisb_error(struct notifier_block *self, unsigned long v,
self              276 drivers/bus/brcmstb_gisb.c static int dump_gisb_error(struct notifier_block *self, unsigned long v,
self              282 drivers/bus/brcmstb_gisb.c 	if (self == &gisb_die_notifier)
self              203 drivers/char/ipmi/ipmi_msghandler.c 	struct ipmi_user *self;
self              228 drivers/char/ipmi/ipmi_msghandler.c 	ruser = srcu_dereference(user->self, &user->release_barrier);
self             1239 drivers/char/ipmi/ipmi_msghandler.c 	rcu_assign_pointer(new_user->self, new_user);
self             1308 drivers/char/ipmi/ipmi_msghandler.c 	rcu_assign_pointer(user->self, NULL);
self             1777 drivers/char/ipmi/ipmi_si_intf.c static int dell_poweredge_bt_xaction_handler(struct notifier_block *self,
self              883 drivers/clk/sunxi/clk-sunxi.c 		u8 self; /* is it the base factor clock? (only one) */
self              918 drivers/clk/sunxi/clk-sunxi.c 		{ .self = 1 }, /* base factor clock, 2x */
self              928 drivers/clk/sunxi/clk-sunxi.c 		{ .self = 1 }, /* base factor clock, 2x */
self              967 drivers/clk/sunxi/clk-sunxi.c 		if (data->div[i].self) {
self             1025 drivers/clk/sunxi/clk-sunxi.c 		if (data->div[i].self) {
self             1023 drivers/clocksource/arm_arch_timer.c static int arch_timer_cpu_pm_notify(struct notifier_block *self,
self               75 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c static u32 get_num_accels(struct adf_hw_device_data *self)
self               79 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c 	if (!self || !self->accel_mask)
self               83 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c 		if (self->accel_mask & (1 << i))
self               89 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c static u32 get_num_aes(struct adf_hw_device_data *self)
self               93 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c 	if (!self || !self->ae_mask)
self               97 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c 		if (self->ae_mask & (1 << i))
self              103 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c static u32 get_misc_bar_id(struct adf_hw_device_data *self)
self              108 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c static u32 get_etr_bar_id(struct adf_hw_device_data *self)
self              113 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c static u32 get_sram_bar_id(struct adf_hw_device_data *self)
self              118 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c static enum dev_sku_info get_sku(struct adf_hw_device_data *self)
self              120 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c 	int aes = get_num_aes(self);
self               68 drivers/crypto/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c static u32 get_num_accels(struct adf_hw_device_data *self)
self               73 drivers/crypto/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c static u32 get_num_aes(struct adf_hw_device_data *self)
self               78 drivers/crypto/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c static u32 get_misc_bar_id(struct adf_hw_device_data *self)
self               83 drivers/crypto/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c static u32 get_etr_bar_id(struct adf_hw_device_data *self)
self               88 drivers/crypto/qat/qat_c3xxxvf/adf_c3xxxvf_hw_data.c static enum dev_sku_info get_sku(struct adf_hw_device_data *self)
self               80 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c static u32 get_num_accels(struct adf_hw_device_data *self)
self               84 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c 	if (!self || !self->accel_mask)
self               88 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c 		if (self->accel_mask & (1 << i))
self               94 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c static u32 get_num_aes(struct adf_hw_device_data *self)
self               98 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c 	if (!self || !self->ae_mask)
self              102 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c 		if (self->ae_mask & (1 << i))
self              108 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c static u32 get_misc_bar_id(struct adf_hw_device_data *self)
self              113 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c static u32 get_etr_bar_id(struct adf_hw_device_data *self)
self              118 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c static u32 get_sram_bar_id(struct adf_hw_device_data *self)
self              123 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c static enum dev_sku_info get_sku(struct adf_hw_device_data *self)
self              125 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c 	int aes = get_num_aes(self);
self               68 drivers/crypto/qat/qat_c62xvf/adf_c62xvf_hw_data.c static u32 get_num_accels(struct adf_hw_device_data *self)
self               73 drivers/crypto/qat/qat_c62xvf/adf_c62xvf_hw_data.c static u32 get_num_aes(struct adf_hw_device_data *self)
self               78 drivers/crypto/qat/qat_c62xvf/adf_c62xvf_hw_data.c static u32 get_misc_bar_id(struct adf_hw_device_data *self)
self               83 drivers/crypto/qat/qat_c62xvf/adf_c62xvf_hw_data.c static u32 get_etr_bar_id(struct adf_hw_device_data *self)
self               88 drivers/crypto/qat/qat_c62xvf/adf_c62xvf_hw_data.c static enum dev_sku_info get_sku(struct adf_hw_device_data *self)
self              159 drivers/crypto/qat/qat_common/adf_accel_devices.h 	uint32_t (*get_sram_bar_id)(struct adf_hw_device_data *self);
self              160 drivers/crypto/qat/qat_common/adf_accel_devices.h 	uint32_t (*get_misc_bar_id)(struct adf_hw_device_data *self);
self              161 drivers/crypto/qat/qat_common/adf_accel_devices.h 	uint32_t (*get_etr_bar_id)(struct adf_hw_device_data *self);
self              162 drivers/crypto/qat/qat_common/adf_accel_devices.h 	uint32_t (*get_num_aes)(struct adf_hw_device_data *self);
self              163 drivers/crypto/qat/qat_common/adf_accel_devices.h 	uint32_t (*get_num_accels)(struct adf_hw_device_data *self);
self              166 drivers/crypto/qat/qat_common/adf_accel_devices.h 	enum dev_sku_info (*get_sku)(struct adf_hw_device_data *self);
self               88 drivers/crypto/qat/qat_common/adf_aer.c 	struct pci_dev *parent = pdev->bus->self;
self               82 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c static uint32_t get_num_accels(struct adf_hw_device_data *self)
self               86 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c 	if (!self || !self->accel_mask)
self               90 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c 		if (self->accel_mask & (1 << i))
self               96 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c static uint32_t get_num_aes(struct adf_hw_device_data *self)
self              100 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c 	if (!self || !self->ae_mask)
self              104 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c 		if (self->ae_mask & (1 << i))
self              110 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c static uint32_t get_misc_bar_id(struct adf_hw_device_data *self)
self              115 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c static uint32_t get_etr_bar_id(struct adf_hw_device_data *self)
self              120 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c static uint32_t get_sram_bar_id(struct adf_hw_device_data *self)
self              125 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c static enum dev_sku_info get_sku(struct adf_hw_device_data *self)
self              127 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c 	int sku = (self->fuses & ADF_DH895XCC_FUSECTL_SKU_MASK)
self               68 drivers/crypto/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c static u32 get_num_accels(struct adf_hw_device_data *self)
self               73 drivers/crypto/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c static u32 get_num_aes(struct adf_hw_device_data *self)
self               78 drivers/crypto/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c static u32 get_misc_bar_id(struct adf_hw_device_data *self)
self               83 drivers/crypto/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c static u32 get_etr_bar_id(struct adf_hw_device_data *self)
self               88 drivers/crypto/qat/qat_dh895xccvf/adf_dh895xccvf_hw_data.c static enum dev_sku_info get_sku(struct adf_hw_device_data *self)
self              478 drivers/dma/sh/shdmac.c static int sh_dmae_nmi_handler(struct notifier_block *self,
self             1386 drivers/gpu/drm/amd/amdgpu/cik.c 	struct pci_dev *root = adev->pdev->bus->self;
self             1633 drivers/gpu/drm/amd/amdgpu/cik.c 				struct pci_dev *root = adev->pdev->bus->self;
self             1635 drivers/gpu/drm/amd/amdgpu/si.c 	struct pci_dev *root = adev->pdev->bus->self;
self             1954 drivers/gpu/drm/amd/amdgpu/si.c 				struct pci_dev *root = adev->pdev->bus->self;
self              198 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h 	dma_addr_t self;
self              455 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 					    state->dscrs[i]->self);
self              466 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 					state->dscrs[i]->self);
self              857 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 		dscr->self = dscr_dma;
self              868 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 			      state->dscrs[i]->self);
self              932 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c 			      state->dscrs[i]->self);
self             2150 drivers/gpu/drm/bridge/sil-sii8620.c static int sii8620_extcon_notifier(struct notifier_block *self,
self             2154 drivers/gpu/drm/bridge/sil-sii8620.c 		container_of(self, struct sii8620, extcon_nb);
self              403 drivers/gpu/drm/mga/mga_dma.c 	if ((dev->pdev->device == 0x0525) && dev->pdev->bus->self
self              404 drivers/gpu/drm/mga/mga_dma.c 	    && (dev->pdev->bus->self->vendor == 0x3388)
self              405 drivers/gpu/drm/mga/mga_dma.c 	    && (dev->pdev->bus->self->device == 0x0021)
self             5684 drivers/gpu/drm/radeon/ci_dpm.c 	struct pci_dev *root = rdev->pdev->bus->self;
self             9505 drivers/gpu/drm/radeon/cik.c 	struct pci_dev *root = rdev->pdev->bus->self;
self             9744 drivers/gpu/drm/radeon/cik.c 				struct pci_dev *root = rdev->pdev->bus->self;
self             7088 drivers/gpu/drm/radeon/si.c 	struct pci_dev *root = rdev->pdev->bus->self;
self             7378 drivers/gpu/drm/radeon/si.c 				struct pci_dev *root = rdev->pdev->bus->self;
self             6908 drivers/gpu/drm/radeon/si_dpm.c 	struct pci_dev *root = rdev->pdev->bus->self;
self              612 drivers/gpu/vga/vgaarb.c 		new_bridge = new_bus->self;
self              617 drivers/gpu/vga/vgaarb.c 			bridge = bus->self;
self              636 drivers/gpu/vga/vgaarb.c 				bridge = bus->self;
self              638 drivers/gpu/vga/vgaarb.c 				if (bridge && bridge == vgadev->pdev->bus->self)
self              703 drivers/gpu/vga/vgaarb.c 		bridge = bus->self;
self              376 drivers/hwtracing/coresight/coresight-cpu-debug.c static int debug_notifier_call(struct notifier_block *self,
self              480 drivers/ide/pdc202xx_new.c 	struct pci_dev *bridge = dev->bus->self;
self              312 drivers/ide/pdc202xx_old.c 		struct pci_dev *bridge = dev->bus->self;
self              847 drivers/infiniband/core/addr.c static int netevent_callback(struct notifier_block *self, unsigned long event,
self             4531 drivers/infiniband/core/cma.c static int cma_netdev_callback(struct notifier_block *self, unsigned long event,
self               25 drivers/infiniband/hw/hfi1/aspm.c 	struct pci_dev *parent = dd->pcidev->bus->self;
self               59 drivers/infiniband/hw/hfi1/aspm.c 	struct pci_dev *parent = dd->pcidev->bus->self;
self               79 drivers/infiniband/hw/hfi1/aspm.c 	struct pci_dev *parent = dd->pcidev->bus->self;
self             14835 drivers/infiniband/hw/hfi1/chip.c 	struct pci_dev *parent = pdev->bus->self;
self              295 drivers/infiniband/hw/hfi1/pcie.c 	struct pci_dev *parent = dd->pcidev->bus->self;
self              481 drivers/infiniband/hw/hfi1/pcie.c 	parent = dd->pcidev->bus->self;
self              851 drivers/infiniband/hw/hfi1/pcie.c 	if (!dev->bus->self) {
self              870 drivers/infiniband/hw/hfi1/pcie.c 	return pci_bridge_secondary_bus_reset(dev->bus->self);
self              985 drivers/infiniband/hw/hfi1/pcie.c 	struct pci_dev *parent = dd->pcidev->bus->self;
self              138 drivers/infiniband/hw/hns/hns_roce_main.c static int hns_roce_netdev_event(struct notifier_block *self,
self              147 drivers/infiniband/hw/hns/hns_roce_main.c 	hr_dev = container_of(self, struct hns_roce_dev, iboe.nb);
self              408 drivers/infiniband/hw/qib/qib_pcie.c 	parent = dd->pcidev->bus->self;
self              472 drivers/infiniband/hw/qib/qib_pcie.c 	parent = dd->pcidev->bus->self;
self              141 drivers/iommu/dmar.c 		for (tmp = dev; tmp; tmp = tmp->bus->self)
self              163 drivers/iommu/dmar.c 		for (tmp = dev; tmp; tmp = tmp->bus->self) {
self              665 drivers/iommu/dmar.c 		dev = dev->bus->self;
self             4565 drivers/iommu/intel-iommu.c 		bridge = bus->self;
self             1297 drivers/iommu/iommu.c 		if (!bus->self)
self             1300 drivers/iommu/iommu.c 		if (pci_acs_path_enabled(bus->self, NULL, REQ_ACS_FLAGS))
self             1303 drivers/iommu/iommu.c 		pdev = bus->self;
self             1178 drivers/irqchip/irq-gic-v3.c static int gic_cpu_pm_notifier(struct notifier_block *self,
self              734 drivers/irqchip/irq-gic.c static int gic_notifier(struct notifier_block *self, unsigned long cmd,	void *v)
self               66 drivers/irqchip/irq-vf610-mscm-ir.c static int vf610_mscm_ir_notifier(struct notifier_block *self,
self              631 drivers/macintosh/windfarm_pm112.c static int pm112_wf_notify(struct notifier_block *self,
self              940 drivers/macintosh/windfarm_pm121.c static int pm121_notify(struct notifier_block *self,
self              751 drivers/macintosh/windfarm_pm72.c static int pm72_wf_notify(struct notifier_block *self,
self              675 drivers/macintosh/windfarm_pm81.c static int wf_smu_notify(struct notifier_block *self,
self              608 drivers/macintosh/windfarm_pm91.c static int wf_smu_notify(struct notifier_block *self,
self              644 drivers/macintosh/windfarm_rm31.c static int rm31_wf_notify(struct notifier_block *self,
self              188 drivers/media/pci/cobalt/cobalt-driver.c 	struct pci_dev *pci_bus_dev = cobalt->pci_dev->bus->self;
self              247 drivers/media/pci/cobalt/cobalt-driver.c 	struct pci_dev *pci_dev = cobalt->pci_dev->bus->self;
self              936 drivers/media/rc/img-ir/img-ir-hw.c static int img_ir_clk_notify(struct notifier_block *self, unsigned long action,
self              939 drivers/media/rc/img-ir/img-ir-hw.c 	struct img_ir_priv *priv = container_of(self, struct img_ir_priv,
self              263 drivers/misc/cardreader/alcor_pci.c 	priv->parent_pdev = pdev->bus->self;
self              174 drivers/misc/habanalabs/pci.c 	parent_port = pdev->bus->self;
self             1418 drivers/misc/mic/scif/scif_api.c int scif_get_node_ids(u16 *nodes, int len, u16 *self)
self             1427 drivers/misc/mic/scif/scif_api.c 	*self = scif_info.nodeid;
self              113 drivers/misc/mic/scif/scif_fd.c 		req.self.node = ep->port.node;
self              114 drivers/misc/mic/scif/scif_fd.c 		req.self.port = ep->port.port;
self              263 drivers/misc/mic/scif/scif_fd.c 		u16 self;
self              276 drivers/misc/mic/scif/scif_fd.c 		node_ids.len = scif_get_node_ids(nodes, entries, &self);
self              284 drivers/misc/mic/scif/scif_fd.c 		uself = (void __user *)node_ids.self;
self              285 drivers/misc/mic/scif/scif_fd.c 		if (copy_to_user(uself, &self, sizeof(u16))) {
self              241 drivers/net/ethernet/amd/ni65.c 	void *self;
self              653 drivers/net/ethernet/amd/ni65.c 	p->self = ptr;
self              712 drivers/net/ethernet/amd/ni65.c 	kfree(p->self);
self              147 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_tx_xmit)(struct aq_hw_s *self, struct aq_ring_s *aq_ring,
self              150 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_rx_receive)(struct aq_hw_s *self,
self              153 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_rx_fill)(struct aq_hw_s *self, struct aq_ring_s *aq_ring,
self              156 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_tx_head_update)(struct aq_hw_s *self,
self              159 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_set_mac_address)(struct aq_hw_s *self, u8 *mac_addr);
self              161 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_reset)(struct aq_hw_s *self);
self              163 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_init)(struct aq_hw_s *self, u8 *mac_addr);
self              165 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_start)(struct aq_hw_s *self);
self              167 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_stop)(struct aq_hw_s *self);
self              169 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_tx_init)(struct aq_hw_s *self, struct aq_ring_s *aq_ring,
self              172 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_tx_start)(struct aq_hw_s *self,
self              175 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_tx_stop)(struct aq_hw_s *self,
self              178 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_rx_init)(struct aq_hw_s *self,
self              182 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_rx_start)(struct aq_hw_s *self,
self              185 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_ring_rx_stop)(struct aq_hw_s *self,
self              188 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_irq_enable)(struct aq_hw_s *self, u64 mask);
self              190 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_irq_disable)(struct aq_hw_s *self, u64 mask);
self              192 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_irq_read)(struct aq_hw_s *self, u64 *mask);
self              194 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_packet_filter_set)(struct aq_hw_s *self,
self              197 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_filter_l3l4_set)(struct aq_hw_s *self,
self              200 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_filter_l3l4_clear)(struct aq_hw_s *self,
self              203 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_filter_l2_set)(struct aq_hw_s *self,
self              206 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_filter_l2_clear)(struct aq_hw_s *self,
self              209 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_filter_vlan_set)(struct aq_hw_s *self,
self              212 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_filter_vlan_ctrl)(struct aq_hw_s *self, bool enable);
self              214 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_multicast_list_set)(struct aq_hw_s *self,
self              219 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_interrupt_moderation_set)(struct aq_hw_s *self);
self              221 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_rss_set)(struct aq_hw_s *self,
self              224 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_rss_hash_set)(struct aq_hw_s *self,
self              227 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_get_regs)(struct aq_hw_s *self,
self              231 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	struct aq_stats_s *(*hw_get_hw_stats)(struct aq_hw_s *self);
self              233 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_get_fw_version)(struct aq_hw_s *self, u32 *fw_version);
self              235 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_set_offload)(struct aq_hw_s *self,
self              238 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*hw_set_fc)(struct aq_hw_s *self, u32 fc, u32 tc);
self              242 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*init)(struct aq_hw_s *self);
self              244 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*deinit)(struct aq_hw_s *self);
self              246 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*reset)(struct aq_hw_s *self);
self              248 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*renegotiate)(struct aq_hw_s *self);
self              250 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*get_mac_permanent)(struct aq_hw_s *self, u8 *mac);
self              252 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*set_link_speed)(struct aq_hw_s *self, u32 speed);
self              254 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*set_state)(struct aq_hw_s *self,
self              257 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*update_link_status)(struct aq_hw_s *self);
self              259 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*update_stats)(struct aq_hw_s *self);
self              261 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*get_phy_temp)(struct aq_hw_s *self, int *temp);
self              263 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	u32 (*get_flow_control)(struct aq_hw_s *self, u32 *fcmode);
self              265 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*set_flow_control)(struct aq_hw_s *self);
self              267 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*set_power)(struct aq_hw_s *self, unsigned int power_state,
self              270 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*set_eee_rate)(struct aq_hw_s *self, u32 speed);
self              272 drivers/net/ethernet/aquantia/atlantic/aq_hw.h 	int (*get_eee_rate)(struct aq_hw_s *self, u32 *rate,
self               37 drivers/net/ethernet/aquantia/atlantic/aq_nic.c static void aq_nic_update_ndev_stats(struct aq_nic_s *self);
self               39 drivers/net/ethernet/aquantia/atlantic/aq_nic.c static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues)
self               41 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg;
self               62 drivers/net/ethernet/aquantia/atlantic/aq_nic.c void aq_nic_cfg_start(struct aq_nic_s *self)
self               64 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg;
self               93 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->irqvecs > AQ_HW_SERVICE_IRQS)
self               94 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		cfg->vecs = min(cfg->vecs, self->irqvecs - AQ_HW_SERVICE_IRQS);
self              107 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	aq_nic_rss_init(self, cfg->num_rss_queues);
self              109 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	cfg->irq_type = aq_pci_func_get_irq_type(self);
self              122 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (AQ_HW_SERVICE_IRQS > 0 && cfg->vecs + 1 <= self->irqvecs)
self              134 drivers/net/ethernet/aquantia/atlantic/aq_nic.c static int aq_nic_update_link_status(struct aq_nic_s *self)
self              136 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	int err = self->aq_fw_ops->update_link_status(self->aq_hw);
self              142 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->link_status.mbps != self->aq_hw->aq_link_status.mbps) {
self              144 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			AQ_CFG_DRV_NAME, self->link_status.mbps,
self              145 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			self->aq_hw->aq_link_status.mbps);
self              146 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		aq_nic_update_interrupt_moderation_settings(self);
self              152 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		if (self->aq_fw_ops->get_flow_control)
self              153 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			self->aq_fw_ops->get_flow_control(self->aq_hw, &fc);
self              154 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		if (self->aq_hw_ops->hw_set_fc)
self              155 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			self->aq_hw_ops->hw_set_fc(self->aq_hw, fc, 0);
self              158 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->link_status = self->aq_hw->aq_link_status;
self              159 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (!netif_carrier_ok(self->ndev) && self->link_status.mbps) {
self              160 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		aq_utils_obj_set(&self->flags,
self              162 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		aq_utils_obj_clear(&self->flags,
self              164 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		netif_carrier_on(self->ndev);
self              165 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		netif_tx_wake_all_queues(self->ndev);
self              167 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (netif_carrier_ok(self->ndev) && !self->link_status.mbps) {
self              168 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		netif_carrier_off(self->ndev);
self              169 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		netif_tx_disable(self->ndev);
self              170 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		aq_utils_obj_set(&self->flags, AQ_NIC_LINK_DOWN);
self              177 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_nic_s *self = private;
self              179 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (!self)
self              182 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	aq_nic_update_link_status(self);
self              184 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->aq_hw_ops->hw_irq_enable(self->aq_hw,
self              185 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 				       BIT(self->aq_nic_cfg.link_irq_vec));
self              191 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_nic_s *self = container_of(work, struct aq_nic_s,
self              195 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (aq_utils_obj_test(&self->flags, AQ_NIC_FLAGS_IS_NOT_READY))
self              198 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = aq_nic_update_link_status(self);
self              202 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mutex_lock(&self->fwreq_mutex);
self              203 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_fw_ops->update_stats)
self              204 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_fw_ops->update_stats(self->aq_hw);
self              205 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mutex_unlock(&self->fwreq_mutex);
self              207 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	aq_nic_update_ndev_stats(self);
self              212 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_nic_s *self = from_timer(self, t, service_timer);
self              214 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mod_timer(&self->service_timer, jiffies + AQ_CFG_SERVICE_TIMER_INTERVAL);
self              216 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	aq_ndev_schedule_work(&self->service_task);
self              221 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_nic_s *self = from_timer(self, t, polling_timer);
self              225 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	for (i = 0U, aq_vec = self->aq_vec[0];
self              226 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_vecs > i; ++i, aq_vec = self->aq_vec[i])
self              229 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mod_timer(&self->polling_timer, jiffies +
self              233 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_ndev_register(struct aq_nic_s *self)
self              237 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (!self->ndev) {
self              242 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = hw_atl_utils_initfw(self->aq_hw, &self->aq_fw_ops);
self              246 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mutex_lock(&self->fwreq_mutex);
self              247 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_fw_ops->get_mac_permanent(self->aq_hw,
self              248 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			    self->ndev->dev_addr);
self              249 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mutex_unlock(&self->fwreq_mutex);
self              257 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		ether_addr_copy(self->ndev->dev_addr, mac_addr_permanent);
self              261 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	for (self->aq_vecs = 0; self->aq_vecs < aq_nic_get_cfg(self)->vecs;
self              262 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	     self->aq_vecs++) {
self              263 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_vec[self->aq_vecs] =
self              264 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		    aq_vec_alloc(self, self->aq_vecs, aq_nic_get_cfg(self));
self              265 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		if (!self->aq_vec[self->aq_vecs]) {
self              271 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	netif_carrier_off(self->ndev);
self              273 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	netif_tx_disable(self->ndev);
self              275 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = register_netdev(self->ndev);
self              283 drivers/net/ethernet/aquantia/atlantic/aq_nic.c void aq_nic_ndev_init(struct aq_nic_s *self)
self              285 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	const struct aq_hw_caps_s *aq_hw_caps = self->aq_nic_cfg.aq_hw_caps;
self              286 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_nic_cfg_s *aq_nic_cfg = &self->aq_nic_cfg;
self              288 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->ndev->hw_features |= aq_hw_caps->hw_features;
self              289 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->ndev->features = aq_hw_caps->hw_features;
self              290 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->ndev->vlan_features |= NETIF_F_HW_CSUM | NETIF_F_RXCSUM |
self              293 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->ndev->priv_flags = aq_hw_caps->hw_priv_flags;
self              294 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->ndev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
self              296 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->ndev->mtu = aq_nic_cfg->mtu - ETH_HLEN;
self              297 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->ndev->max_mtu = aq_hw_caps->mtu - ETH_FCS_LEN - ETH_HLEN;
self              301 drivers/net/ethernet/aquantia/atlantic/aq_nic.c void aq_nic_set_tx_ring(struct aq_nic_s *self, unsigned int idx,
self              304 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->aq_ring_tx[idx] = ring;
self              307 drivers/net/ethernet/aquantia/atlantic/aq_nic.c struct net_device *aq_nic_get_ndev(struct aq_nic_s *self)
self              309 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	return self->ndev;
self              312 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_init(struct aq_nic_s *self)
self              318 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->power_state = AQ_HW_POWER_STATE_D0;
self              319 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mutex_lock(&self->fwreq_mutex);
self              320 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_hw_ops->hw_reset(self->aq_hw);
self              321 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mutex_unlock(&self->fwreq_mutex);
self              325 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_hw_ops->hw_init(self->aq_hw,
self              326 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 				       aq_nic_get_ndev(self)->dev_addr);
self              330 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	for (i = 0U, aq_vec = self->aq_vec[0];
self              331 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_vecs > i; ++i, aq_vec = self->aq_vec[i])
self              332 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		aq_vec_init(aq_vec, self->aq_hw_ops, self->aq_hw);
self              334 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	netif_carrier_off(self->ndev);
self              340 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_start(struct aq_nic_s *self)
self              346 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_hw_ops->hw_multicast_list_set(self->aq_hw,
self              347 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						     self->mc_list.ar,
self              348 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						     self->mc_list.count);
self              352 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_hw_ops->hw_packet_filter_set(self->aq_hw,
self              353 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						    self->packet_filter);
self              357 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	for (i = 0U, aq_vec = self->aq_vec[0];
self              358 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_vecs > i; ++i, aq_vec = self->aq_vec[i]) {
self              364 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_hw_ops->hw_start(self->aq_hw);
self              368 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = aq_nic_update_interrupt_moderation_settings(self);
self              372 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	INIT_WORK(&self->service_task, aq_nic_service_task);
self              374 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	timer_setup(&self->service_timer, aq_nic_service_timer_cb, 0);
self              375 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	aq_nic_service_timer_cb(&self->service_timer);
self              377 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.is_polling) {
self              378 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		timer_setup(&self->polling_timer, aq_nic_polling_timer_cb, 0);
self              379 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		mod_timer(&self->polling_timer, jiffies +
self              382 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		for (i = 0U, aq_vec = self->aq_vec[0];
self              383 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			self->aq_vecs > i; ++i, aq_vec = self->aq_vec[i]) {
self              384 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			err = aq_pci_func_alloc_irq(self, i, self->ndev->name,
self              391 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		if (self->aq_nic_cfg.link_irq_vec) {
self              392 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			int irqvec = pci_irq_vector(self->pdev,
self              393 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						   self->aq_nic_cfg.link_irq_vec);
self              397 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						   self->ndev->name, self);
self              400 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			self->msix_entry_mask |= (1 << self->aq_nic_cfg.link_irq_vec);
self              403 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		err = self->aq_hw_ops->hw_irq_enable(self->aq_hw,
self              409 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = netif_set_real_num_tx_queues(self->ndev, self->aq_vecs);
self              413 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = netif_set_real_num_rx_queues(self->ndev, self->aq_vecs);
self              417 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	netif_tx_start_all_queues(self->ndev);
self              423 drivers/net/ethernet/aquantia/atlantic/aq_nic.c static unsigned int aq_nic_map_skb(struct aq_nic_s *self,
self              450 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.is_vlan_tx_insert && skb_vlan_tag_present(skb)) {
self              465 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	dx_buff->pa = dma_map_single(aq_nic_get_dev(self),
self              470 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (unlikely(dma_mapping_error(aq_nic_get_dev(self), dx_buff->pa))) {
self              517 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			frag_pa = skb_frag_dma_map(aq_nic_get_dev(self),
self              523 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			if (unlikely(dma_mapping_error(aq_nic_get_dev(self),
self              556 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 				dma_unmap_single(aq_nic_get_dev(self),
self              561 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 				dma_unmap_page(aq_nic_get_dev(self),
self              573 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_xmit(struct aq_nic_s *self, struct sk_buff *skb)
self              577 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	unsigned int vec = skb->queue_mapping % self->aq_nic_cfg.vecs;
self              583 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	ring = self->aq_ring_tx[AQ_NIC_TCVEC2RING(self, tc, vec)];
self              593 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (__netif_subqueue_stopped(self->ndev, ring->idx)) {
self              598 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	frags = aq_nic_map_skb(self, skb, ring);
self              601 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		err = self->aq_hw_ops->hw_ring_tx_xmit(self->aq_hw,
self              611 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_update_interrupt_moderation_settings(struct aq_nic_s *self)
self              613 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	return self->aq_hw_ops->hw_interrupt_moderation_set(self->aq_hw);
self              616 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_set_packet_filter(struct aq_nic_s *self, unsigned int flags)
self              620 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_hw_ops->hw_packet_filter_set(self->aq_hw, flags);
self              624 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->packet_filter = flags;
self              630 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_set_multicast_list(struct aq_nic_s *self, struct net_device *ndev)
self              632 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	const struct aq_hw_ops *hw_ops = self->aq_hw_ops;
self              633 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg;
self              639 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->mc_list.count = 0;
self              644 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			ether_addr_copy(self->mc_list.ar[i++], ha->addr);
self              654 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 				ether_addr_copy(self->mc_list.ar[i++],
self              661 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->mc_list.count = i;
self              662 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		err = hw_ops->hw_multicast_list_set(self->aq_hw,
self              663 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						    self->mc_list.ar,
self              664 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						    self->mc_list.count);
self              668 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	return aq_nic_set_packet_filter(self, packet_filter);
self              671 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_set_mtu(struct aq_nic_s *self, int new_mtu)
self              673 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->aq_nic_cfg.mtu = new_mtu;
self              678 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_set_mac(struct aq_nic_s *self, struct net_device *ndev)
self              680 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	return self->aq_hw_ops->hw_set_mac_address(self->aq_hw, ndev->dev_addr);
self              683 drivers/net/ethernet/aquantia/atlantic/aq_nic.c unsigned int aq_nic_get_link_speed(struct aq_nic_s *self)
self              685 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	return self->link_status.mbps;
self              688 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_get_regs(struct aq_nic_s *self, struct ethtool_regs *regs, void *p)
self              695 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_hw_ops->hw_get_regs(self->aq_hw,
self              696 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 					   self->aq_nic_cfg.aq_hw_caps,
self              705 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_get_regs_count(struct aq_nic_s *self)
self              707 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	return self->aq_nic_cfg.aq_hw_caps->mac_regs_count;
self              710 drivers/net/ethernet/aquantia/atlantic/aq_nic.c void aq_nic_get_stats(struct aq_nic_s *self, u64 *data)
self              717 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_fw_ops->update_stats) {
self              718 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		mutex_lock(&self->fwreq_mutex);
self              719 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_fw_ops->update_stats(self->aq_hw);
self              720 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		mutex_unlock(&self->fwreq_mutex);
self              722 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	stats = self->aq_hw_ops->hw_get_hw_stats(self->aq_hw);
self              754 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	for (i = 0U, aq_vec = self->aq_vec[0];
self              755 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		aq_vec && self->aq_vecs > i; ++i, aq_vec = self->aq_vec[i]) {
self              763 drivers/net/ethernet/aquantia/atlantic/aq_nic.c static void aq_nic_update_ndev_stats(struct aq_nic_s *self)
self              765 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct net_device *ndev = self->ndev;
self              766 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	struct aq_stats_s *stats = self->aq_hw_ops->hw_get_hw_stats(self->aq_hw);
self              778 drivers/net/ethernet/aquantia/atlantic/aq_nic.c void aq_nic_get_link_ksettings(struct aq_nic_s *self,
self              781 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->media_type == AQ_HW_MEDIA_TYPE_FIBRE)
self              787 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	cmd->base.autoneg = self->aq_nic_cfg.is_autoneg;
self              791 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->link_speed_msk & AQ_NIC_RATE_10G)
self              795 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->link_speed_msk & AQ_NIC_RATE_5G)
self              799 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->link_speed_msk & AQ_NIC_RATE_2GS)
self              803 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->link_speed_msk & AQ_NIC_RATE_1G)
self              807 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->link_speed_msk & AQ_NIC_RATE_100M)
self              811 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->flow_control)
self              817 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->media_type == AQ_HW_MEDIA_TYPE_FIBRE)
self              824 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.is_autoneg)
self              827 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.link_speed_msk  & AQ_NIC_RATE_10G)
self              831 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.link_speed_msk  & AQ_NIC_RATE_5G)
self              835 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.link_speed_msk  & AQ_NIC_RATE_2GS)
self              839 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.link_speed_msk  & AQ_NIC_RATE_1G)
self              843 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.link_speed_msk  & AQ_NIC_RATE_100M)
self              847 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.flow_control & AQ_NIC_FC_RX)
self              852 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (!!(self->aq_nic_cfg.flow_control & AQ_NIC_FC_TX) ^
self              853 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	    !!(self->aq_nic_cfg.flow_control & AQ_NIC_FC_RX))
self              857 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.aq_hw_caps->media_type == AQ_HW_MEDIA_TYPE_FIBRE)
self              863 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_set_link_ksettings(struct aq_nic_s *self,
self              871 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		rate = self->aq_nic_cfg.aq_hw_caps->link_speed_msk;
self              872 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_nic_cfg.is_autoneg = true;
self              902 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		if (!(self->aq_nic_cfg.aq_hw_caps->link_speed_msk & rate)) {
self              907 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_nic_cfg.is_autoneg = false;
self              910 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mutex_lock(&self->fwreq_mutex);
self              911 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	err = self->aq_fw_ops->set_link_speed(self->aq_hw, rate);
self              912 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	mutex_unlock(&self->fwreq_mutex);
self              916 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->aq_nic_cfg.link_speed_msk = rate;
self              922 drivers/net/ethernet/aquantia/atlantic/aq_nic.c struct aq_nic_cfg_s *aq_nic_get_cfg(struct aq_nic_s *self)
self              924 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	return &self->aq_nic_cfg;
self              927 drivers/net/ethernet/aquantia/atlantic/aq_nic.c u32 aq_nic_get_fw_version(struct aq_nic_s *self)
self              931 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->aq_hw_ops->hw_get_fw_version(self->aq_hw, &fw_version);
self              936 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_stop(struct aq_nic_s *self)
self              941 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	netif_tx_disable(self->ndev);
self              942 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	netif_carrier_off(self->ndev);
self              944 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	del_timer_sync(&self->service_timer);
self              945 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	cancel_work_sync(&self->service_task);
self              947 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	self->aq_hw_ops->hw_irq_disable(self->aq_hw, AQ_CFG_IRQ_MASK);
self              949 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->aq_nic_cfg.is_polling)
self              950 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		del_timer_sync(&self->polling_timer);
self              952 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		aq_pci_func_free_irqs(self);
self              954 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	for (i = 0U, aq_vec = self->aq_vec[0];
self              955 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_vecs > i; ++i, aq_vec = self->aq_vec[i])
self              958 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	return self->aq_hw_ops->hw_stop(self->aq_hw);
self              961 drivers/net/ethernet/aquantia/atlantic/aq_nic.c void aq_nic_deinit(struct aq_nic_s *self)
self              966 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (!self)
self              969 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	for (i = 0U, aq_vec = self->aq_vec[0];
self              970 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_vecs > i; ++i, aq_vec = self->aq_vec[i])
self              973 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (likely(self->aq_fw_ops->deinit)) {
self              974 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		mutex_lock(&self->fwreq_mutex);
self              975 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->aq_fw_ops->deinit(self->aq_hw);
self              976 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		mutex_unlock(&self->fwreq_mutex);
self              979 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (self->power_state != AQ_HW_POWER_STATE_D0 ||
self              980 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	    self->aq_hw->aq_nic_cfg->wol)
self              981 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		if (likely(self->aq_fw_ops->set_power)) {
self              982 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			mutex_lock(&self->fwreq_mutex);
self              983 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			self->aq_fw_ops->set_power(self->aq_hw,
self              984 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						   self->power_state,
self              985 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 						   self->ndev->dev_addr);
self              986 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			mutex_unlock(&self->fwreq_mutex);
self              993 drivers/net/ethernet/aquantia/atlantic/aq_nic.c void aq_nic_free_vectors(struct aq_nic_s *self)
self              997 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (!self)
self             1000 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	for (i = ARRAY_SIZE(self->aq_vec); i--;) {
self             1001 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		if (self->aq_vec[i]) {
self             1002 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			aq_vec_free(self->aq_vec[i]);
self             1003 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 			self->aq_vec[i] = NULL;
self             1010 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_change_pm_state(struct aq_nic_s *self, pm_message_t *pm_msg)
self             1014 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (!netif_running(self->ndev)) {
self             1020 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		self->power_state = AQ_HW_POWER_STATE_D3;
self             1021 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		netif_device_detach(self->ndev);
self             1022 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		netif_tx_stop_all_queues(self->ndev);
self             1024 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		err = aq_nic_stop(self);
self             1028 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		aq_nic_deinit(self);
self             1030 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		err = aq_nic_init(self);
self             1034 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		err = aq_nic_start(self);
self             1038 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		netif_device_attach(self->ndev);
self             1039 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		netif_tx_start_all_queues(self->ndev);
self             1048 drivers/net/ethernet/aquantia/atlantic/aq_nic.c void aq_nic_shutdown(struct aq_nic_s *self)
self             1052 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (!self->ndev)
self             1057 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	netif_device_detach(self->ndev);
self             1059 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	if (netif_running(self->ndev)) {
self             1060 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 		err = aq_nic_stop(self);
self             1064 drivers/net/ethernet/aquantia/atlantic/aq_nic.c 	aq_nic_deinit(self);
self              114 drivers/net/ethernet/aquantia/atlantic/aq_nic.h static inline struct device *aq_nic_get_dev(struct aq_nic_s *self)
self              116 drivers/net/ethernet/aquantia/atlantic/aq_nic.h 	return self->ndev->dev.parent;
self              119 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_ndev_init(struct aq_nic_s *self);
self              121 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_set_tx_ring(struct aq_nic_s *self, unsigned int idx,
self              123 drivers/net/ethernet/aquantia/atlantic/aq_nic.h struct net_device *aq_nic_get_ndev(struct aq_nic_s *self);
self              124 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_init(struct aq_nic_s *self);
self              125 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_cfg_start(struct aq_nic_s *self);
self              126 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_ndev_register(struct aq_nic_s *self);
self              127 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_ndev_free(struct aq_nic_s *self);
self              128 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_start(struct aq_nic_s *self);
self              129 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_xmit(struct aq_nic_s *self, struct sk_buff *skb);
self              130 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_get_regs(struct aq_nic_s *self, struct ethtool_regs *regs, void *p);
self              131 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_get_regs_count(struct aq_nic_s *self);
self              132 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_get_stats(struct aq_nic_s *self, u64 *data);
self              133 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_stop(struct aq_nic_s *self);
self              134 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_deinit(struct aq_nic_s *self);
self              135 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_free_hot_resources(struct aq_nic_s *self);
self              136 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_free_vectors(struct aq_nic_s *self);
self              137 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_set_mtu(struct aq_nic_s *self, int new_mtu);
self              138 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_set_mac(struct aq_nic_s *self, struct net_device *ndev);
self              139 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_set_packet_filter(struct aq_nic_s *self, unsigned int flags);
self              140 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_set_multicast_list(struct aq_nic_s *self, struct net_device *ndev);
self              141 drivers/net/ethernet/aquantia/atlantic/aq_nic.h unsigned int aq_nic_get_link_speed(struct aq_nic_s *self);
self              142 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_get_link_ksettings(struct aq_nic_s *self,
self              144 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_set_link_ksettings(struct aq_nic_s *self,
self              146 drivers/net/ethernet/aquantia/atlantic/aq_nic.h struct aq_nic_cfg_s *aq_nic_get_cfg(struct aq_nic_s *self);
self              147 drivers/net/ethernet/aquantia/atlantic/aq_nic.h u32 aq_nic_get_fw_version(struct aq_nic_s *self);
self              148 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_change_pm_state(struct aq_nic_s *self, pm_message_t *pm_msg);
self              149 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_update_interrupt_moderation_settings(struct aq_nic_s *self);
self              150 drivers/net/ethernet/aquantia/atlantic/aq_nic.h void aq_nic_shutdown(struct aq_nic_s *self);
self              133 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c int aq_pci_func_alloc_irq(struct aq_nic_s *self, unsigned int i,
self              137 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	struct pci_dev *pdev = self->pdev;
self              148 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		self->msix_entry_mask |= (1 << i);
self              158 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c void aq_pci_func_free_irqs(struct aq_nic_s *self)
self              160 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	struct pci_dev *pdev = self->pdev;
self              165 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		if (!((1U << i) & self->msix_entry_mask))
self              167 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		if (self->aq_nic_cfg.link_irq_vec &&
self              168 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		    i == self->aq_nic_cfg.link_irq_vec)
self              169 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 			irq_data = self;
self              171 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 			irq_data = self->aq_vec[i];
self              178 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		self->msix_entry_mask &= ~(1U << i);
self              182 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c unsigned int aq_pci_func_get_irq_type(struct aq_nic_s *self)
self              184 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	if (self->pdev->msix_enabled)
self              186 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	if (self->pdev->msi_enabled)
self              191 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c static void aq_pci_free_irq_vectors(struct aq_nic_s *self)
self              193 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	pci_free_irq_vectors(self->pdev);
self              199 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	struct aq_nic_s *self;
self              220 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	self = netdev_priv(ndev);
self              221 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	self->pdev = pdev;
self              223 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	pci_set_drvdata(pdev, self);
self              225 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	mutex_init(&self->fwreq_mutex);
self              227 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	err = aq_pci_probe_get_hw_by_id(pdev, &self->aq_hw_ops,
self              228 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 					&aq_nic_get_cfg(self)->aq_hw_caps);
self              232 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	self->aq_hw = kzalloc(sizeof(*self->aq_hw), GFP_KERNEL);
self              233 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	if (!self->aq_hw) {
self              237 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	self->aq_hw->aq_nic_cfg = aq_nic_get_cfg(self);
self              255 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 			self->aq_hw->mmio = ioremap_nocache(mmio_pa, reg_sz);
self              256 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 			if (!self->aq_hw->mmio) {
self              270 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		      aq_nic_get_cfg(self)->aq_hw_caps->msix_irqs);
self              275 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	err = pci_alloc_irq_vectors(self->pdev, 1, numvecs,
self              283 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	self->irqvecs = numvecs;
self              286 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	aq_nic_cfg_start(self);
self              288 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	aq_nic_ndev_init(self);
self              290 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	err = aq_nic_ndev_register(self);
self              299 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	aq_nic_free_vectors(self);
self              300 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	aq_pci_free_irq_vectors(self);
self              302 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	iounmap(self->aq_hw->mmio);
self              304 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	kfree(self->aq_hw);
self              316 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	struct aq_nic_s *self = pci_get_drvdata(pdev);
self              318 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	if (self->ndev) {
self              319 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		aq_clear_rxnfc_all_rules(self);
self              320 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		if (self->ndev->reg_state == NETREG_REGISTERED)
self              321 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 			unregister_netdev(self->ndev);
self              322 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		aq_nic_free_vectors(self);
self              323 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		aq_pci_free_irq_vectors(self);
self              324 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		iounmap(self->aq_hw->mmio);
self              325 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		kfree(self->aq_hw);
self              327 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 		free_netdev(self->ndev);
self              335 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	struct aq_nic_s *self = pci_get_drvdata(pdev);
self              337 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	aq_nic_shutdown(self);
self              349 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	struct aq_nic_s *self = pci_get_drvdata(pdev);
self              351 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	return aq_nic_change_pm_state(self, &pm_msg);
self              356 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	struct aq_nic_s *self = pci_get_drvdata(pdev);
self              359 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c 	return aq_nic_change_pm_state(self, &pm_msg);
self               23 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.h int aq_pci_func_alloc_irq(struct aq_nic_s *self, unsigned int i,
self               26 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.h void aq_pci_func_free_irqs(struct aq_nic_s *self);
self               27 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.h unsigned int aq_pci_func_get_irq_type(struct aq_nic_s *self);
self               59 drivers/net/ethernet/aquantia/atlantic/aq_ring.c static int aq_get_rxpages(struct aq_ring_s *self, struct aq_ring_buff_s *rxbuf,
self               71 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 				self->stats.rx.pg_flips++;
self               77 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 					       aq_nic_get_dev(self->aq_nic));
self               78 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 				self->stats.rx.pg_losts++;
self               82 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 			self->stats.rx.pg_reuses++;
self               88 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 				    aq_nic_get_dev(self->aq_nic));
self               95 drivers/net/ethernet/aquantia/atlantic/aq_ring.c static struct aq_ring_s *aq_ring_alloc(struct aq_ring_s *self,
self              100 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->buff_ring =
self              101 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		kcalloc(self->size, sizeof(struct aq_ring_buff_s), GFP_KERNEL);
self              103 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (!self->buff_ring) {
self              107 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->dx_ring = dma_alloc_coherent(aq_nic_get_dev(aq_nic),
self              108 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 					   self->size * self->dx_size,
self              109 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 					   &self->dx_ring_pa, GFP_KERNEL);
self              110 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (!self->dx_ring) {
self              117 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		aq_ring_free(self);
self              118 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self = NULL;
self              120 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	return self;
self              123 drivers/net/ethernet/aquantia/atlantic/aq_ring.c struct aq_ring_s *aq_ring_tx_alloc(struct aq_ring_s *self,
self              130 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->aq_nic = aq_nic;
self              131 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->idx = idx;
self              132 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->size = aq_nic_cfg->txds;
self              133 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->dx_size = aq_nic_cfg->aq_hw_caps->txd_size;
self              135 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self = aq_ring_alloc(self, aq_nic);
self              136 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (!self) {
self              143 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		aq_ring_free(self);
self              144 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self = NULL;
self              146 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	return self;
self              149 drivers/net/ethernet/aquantia/atlantic/aq_ring.c struct aq_ring_s *aq_ring_rx_alloc(struct aq_ring_s *self,
self              156 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->aq_nic = aq_nic;
self              157 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->idx = idx;
self              158 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->size = aq_nic_cfg->rxds;
self              159 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->dx_size = aq_nic_cfg->aq_hw_caps->rxd_size;
self              160 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->page_order = fls(AQ_CFG_RX_FRAME_MAX / PAGE_SIZE +
self              163 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (aq_nic_cfg->rxpageorder > self->page_order)
self              164 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self->page_order = aq_nic_cfg->rxpageorder;
self              166 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self = aq_ring_alloc(self, aq_nic);
self              167 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (!self) {
self              174 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		aq_ring_free(self);
self              175 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self = NULL;
self              177 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	return self;
self              180 drivers/net/ethernet/aquantia/atlantic/aq_ring.c int aq_ring_init(struct aq_ring_s *self)
self              182 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->hw_head = 0;
self              183 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->sw_head = 0;
self              184 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	self->sw_tail = 0;
self              220 drivers/net/ethernet/aquantia/atlantic/aq_ring.c bool aq_ring_tx_clean(struct aq_ring_s *self)
self              222 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	struct device *dev = aq_nic_get_dev(self->aq_nic);
self              226 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	     budget && self->sw_head != self->hw_head; budget--) {
self              227 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		struct aq_ring_buff_s *buff = &self->buff_ring[self->sw_head];
self              233 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 				    (!aq_ring_dx_in_range(self->sw_head,
self              235 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 						self->hw_head)))
self              247 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 			++self->stats.rx.packets;
self              248 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 			self->stats.tx.bytes += buff->skb->len;
self              254 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self->sw_head = aq_ring_next_dx(self, self->sw_head);
self              260 drivers/net/ethernet/aquantia/atlantic/aq_ring.c static void aq_rx_checksum(struct aq_ring_s *self,
self              264 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (!(self->aq_nic->ndev->features & NETIF_F_RXCSUM))
self              268 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		++self->stats.rx.errors;
self              283 drivers/net/ethernet/aquantia/atlantic/aq_ring.c int aq_ring_rx_clean(struct aq_ring_s *self,
self              288 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	struct net_device *ndev = aq_nic_get_ndev(self->aq_nic);
self              292 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	for (; (self->sw_head != self->hw_head) && budget;
self              293 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self->sw_head = aq_ring_next_dx(self, self->sw_head),
self              295 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		struct aq_ring_buff_s *buff = &self->buff_ring[self->sw_head];
self              309 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 				buff_ = &self->buff_ring[next_];
self              311 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 					aq_ring_dx_in_range(self->sw_head,
self              313 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 							    self->hw_head);
self              331 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 					buff_ = &self->buff_ring[next_];
self              336 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 				++self->stats.rx.errors;
self              342 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 			++self->stats.rx.errors;
self              346 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		dma_sync_single_range_for_cpu(aq_nic_get_dev(self->aq_nic),
self              391 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 					buff_ = &self->buff_ring[next_];
self              394 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 							aq_nic_get_dev(self->aq_nic),
self              422 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		aq_rx_checksum(self, buff, skb);
self              428 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		skb_record_rx_queue(skb, self->idx);
self              430 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		++self->stats.rx.packets;
self              431 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self->stats.rx.bytes += skb->len;
self              440 drivers/net/ethernet/aquantia/atlantic/aq_ring.c int aq_ring_rx_fill(struct aq_ring_s *self)
self              442 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	unsigned int page_order = self->page_order;
self              447 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (aq_ring_avail_dx(self) < min_t(unsigned int, AQ_CFG_RX_REFILL_THRES,
self              448 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 					   self->size / 2))
self              451 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	for (i = aq_ring_avail_dx(self); i--;
self              452 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self->sw_tail = aq_ring_next_dx(self, self->sw_tail)) {
self              453 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		buff = &self->buff_ring[self->sw_tail];
self              458 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		err = aq_get_rxpages(self, buff, page_order);
self              470 drivers/net/ethernet/aquantia/atlantic/aq_ring.c void aq_ring_rx_deinit(struct aq_ring_s *self)
self              472 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (!self)
self              475 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	for (; self->sw_head != self->sw_tail;
self              476 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		self->sw_head = aq_ring_next_dx(self, self->sw_head)) {
self              477 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		struct aq_ring_buff_s *buff = &self->buff_ring[self->sw_head];
self              479 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		aq_free_rxpage(&buff->rxdata, aq_nic_get_dev(self->aq_nic));
self              485 drivers/net/ethernet/aquantia/atlantic/aq_ring.c void aq_ring_free(struct aq_ring_s *self)
self              487 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (!self)
self              490 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	kfree(self->buff_ring);
self              492 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 	if (self->dx_ring)
self              493 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 		dma_free_coherent(aq_nic_get_dev(self->aq_nic),
self              494 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 				  self->size * self->dx_size, self->dx_ring,
self              495 drivers/net/ethernet/aquantia/atlantic/aq_ring.c 				  self->dx_ring_pa);
self              143 drivers/net/ethernet/aquantia/atlantic/aq_ring.h static inline unsigned int aq_ring_next_dx(struct aq_ring_s *self,
self              146 drivers/net/ethernet/aquantia/atlantic/aq_ring.h 	return (++dx >= self->size) ? 0U : dx;
self              149 drivers/net/ethernet/aquantia/atlantic/aq_ring.h static inline unsigned int aq_ring_avail_dx(struct aq_ring_s *self)
self              151 drivers/net/ethernet/aquantia/atlantic/aq_ring.h 	return (((self->sw_tail >= self->sw_head)) ?
self              152 drivers/net/ethernet/aquantia/atlantic/aq_ring.h 		(self->size - 1) - self->sw_tail + self->sw_head :
self              153 drivers/net/ethernet/aquantia/atlantic/aq_ring.h 		self->sw_head - self->sw_tail - 1);
self              156 drivers/net/ethernet/aquantia/atlantic/aq_ring.h struct aq_ring_s *aq_ring_tx_alloc(struct aq_ring_s *self,
self              160 drivers/net/ethernet/aquantia/atlantic/aq_ring.h struct aq_ring_s *aq_ring_rx_alloc(struct aq_ring_s *self,
self              164 drivers/net/ethernet/aquantia/atlantic/aq_ring.h int aq_ring_init(struct aq_ring_s *self);
self              165 drivers/net/ethernet/aquantia/atlantic/aq_ring.h void aq_ring_rx_deinit(struct aq_ring_s *self);
self              166 drivers/net/ethernet/aquantia/atlantic/aq_ring.h void aq_ring_free(struct aq_ring_s *self);
self              170 drivers/net/ethernet/aquantia/atlantic/aq_ring.h bool aq_ring_tx_clean(struct aq_ring_s *self);
self              171 drivers/net/ethernet/aquantia/atlantic/aq_ring.h int aq_ring_rx_clean(struct aq_ring_s *self,
self              175 drivers/net/ethernet/aquantia/atlantic/aq_ring.h int aq_ring_rx_fill(struct aq_ring_s *self);
self               34 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi);
self               42 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	if (!self) {
self               45 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		for (i = 0U, ring = self->ring[0];
self               46 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 			self->tx_rings > i; ++i, ring = self->ring[i]) {
self               47 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 			if (self->aq_hw_ops->hw_ring_tx_head_update) {
self               48 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 				err = self->aq_hw_ops->hw_ring_tx_head_update(
self               49 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 							self->aq_hw,
self               61 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 			err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw,
self               81 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 				err = self->aq_hw_ops->hw_ring_rx_fill(
self               82 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 					self->aq_hw,
self               95 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 			self->aq_hw_ops->hw_irq_enable(self->aq_hw,
self               96 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 					1U << self->aq_ring_param.vec_idx);
self              106 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	struct aq_vec_s *self = NULL;
self              111 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	self = kzalloc(sizeof(*self), GFP_KERNEL);
self              112 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	if (!self) {
self              117 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	self->aq_nic = aq_nic;
self              118 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	self->aq_ring_param.vec_idx = idx;
self              119 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	self->aq_ring_param.cpu =
self              122 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	cpumask_set_cpu(self->aq_ring_param.cpu,
self              123 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 			&self->aq_ring_param.affinity_mask);
self              125 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	self->tx_rings = 0;
self              126 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	self->rx_rings = 0;
self              128 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	netif_napi_add(aq_nic_get_ndev(aq_nic), &self->napi,
self              132 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		unsigned int idx_ring = AQ_NIC_TCVEC2RING(self->nic,
self              133 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 						self->tx_rings,
self              134 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 						self->aq_ring_param.vec_idx);
self              136 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		ring = aq_ring_tx_alloc(&self->ring[i][AQ_VEC_TX_ID], aq_nic,
self              143 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		++self->tx_rings;
self              147 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		ring = aq_ring_rx_alloc(&self->ring[i][AQ_VEC_RX_ID], aq_nic,
self              154 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		++self->rx_rings;
self              159 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		aq_vec_free(self);
self              160 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self = NULL;
self              162 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	return self;
self              165 drivers/net/ethernet/aquantia/atlantic/aq_vec.c int aq_vec_init(struct aq_vec_s *self, const struct aq_hw_ops *aq_hw_ops,
self              172 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	self->aq_hw_ops = aq_hw_ops;
self              173 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	self->aq_hw = aq_hw;
self              175 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	for (i = 0U, ring = self->ring[0];
self              176 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->tx_rings > i; ++i, ring = self->ring[i]) {
self              181 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		err = self->aq_hw_ops->hw_ring_tx_init(self->aq_hw,
self              183 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 						       &self->aq_ring_param);
self              191 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		err = self->aq_hw_ops->hw_ring_rx_init(self->aq_hw,
self              193 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 						       &self->aq_ring_param);
self              201 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		err = self->aq_hw_ops->hw_ring_rx_fill(self->aq_hw,
self              211 drivers/net/ethernet/aquantia/atlantic/aq_vec.c int aq_vec_start(struct aq_vec_s *self)
self              217 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	for (i = 0U, ring = self->ring[0];
self              218 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->tx_rings > i; ++i, ring = self->ring[i]) {
self              219 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		err = self->aq_hw_ops->hw_ring_tx_start(self->aq_hw,
self              224 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		err = self->aq_hw_ops->hw_ring_rx_start(self->aq_hw,
self              230 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	napi_enable(&self->napi);
self              236 drivers/net/ethernet/aquantia/atlantic/aq_vec.c void aq_vec_stop(struct aq_vec_s *self)
self              241 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	for (i = 0U, ring = self->ring[0];
self              242 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->tx_rings > i; ++i, ring = self->ring[i]) {
self              243 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->aq_hw_ops->hw_ring_tx_stop(self->aq_hw,
self              246 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->aq_hw_ops->hw_ring_rx_stop(self->aq_hw,
self              250 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	napi_disable(&self->napi);
self              253 drivers/net/ethernet/aquantia/atlantic/aq_vec.c void aq_vec_deinit(struct aq_vec_s *self)
self              258 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	if (!self)
self              261 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	for (i = 0U, ring = self->ring[0];
self              262 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->tx_rings > i; ++i, ring = self->ring[i]) {
self              269 drivers/net/ethernet/aquantia/atlantic/aq_vec.c void aq_vec_free(struct aq_vec_s *self)
self              274 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	if (!self)
self              277 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	for (i = 0U, ring = self->ring[0];
self              278 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->tx_rings > i; ++i, ring = self->ring[i]) {
self              283 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	netif_napi_del(&self->napi);
self              285 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	kfree(self);
self              292 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	struct aq_vec_s *self = private;
self              295 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	if (!self) {
self              299 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	napi_schedule(&self->napi);
self              307 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	struct aq_vec_s *self = private;
self              311 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	if (!self)
self              313 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	err = self->aq_hw_ops->hw_irq_read(self->aq_hw, &irq_mask);
self              318 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->aq_hw_ops->hw_irq_disable(self->aq_hw,
self              319 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 			      1U << self->aq_ring_param.vec_idx);
self              320 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		napi_schedule(&self->napi);
self              322 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->aq_hw_ops->hw_irq_enable(self->aq_hw, 1U);
self              329 drivers/net/ethernet/aquantia/atlantic/aq_vec.c cpumask_t *aq_vec_get_affinity_mask(struct aq_vec_s *self)
self              331 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	return &self->aq_ring_param.affinity_mask;
self              334 drivers/net/ethernet/aquantia/atlantic/aq_vec.c void aq_vec_add_stats(struct aq_vec_s *self,
self              341 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	for (r = 0U, ring = self->ring[0];
self              342 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->tx_rings > r; ++r, ring = self->ring[r]) {
self              362 drivers/net/ethernet/aquantia/atlantic/aq_vec.c int aq_vec_get_sw_stats(struct aq_vec_s *self, u64 *data, unsigned int *p_count)
self              370 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	aq_vec_add_stats(self, &stats_rx, &stats_tx);
self               28 drivers/net/ethernet/aquantia/atlantic/aq_vec.h int aq_vec_init(struct aq_vec_s *self, const struct aq_hw_ops *aq_hw_ops,
self               30 drivers/net/ethernet/aquantia/atlantic/aq_vec.h void aq_vec_deinit(struct aq_vec_s *self);
self               31 drivers/net/ethernet/aquantia/atlantic/aq_vec.h void aq_vec_free(struct aq_vec_s *self);
self               32 drivers/net/ethernet/aquantia/atlantic/aq_vec.h int aq_vec_start(struct aq_vec_s *self);
self               33 drivers/net/ethernet/aquantia/atlantic/aq_vec.h void aq_vec_stop(struct aq_vec_s *self);
self               34 drivers/net/ethernet/aquantia/atlantic/aq_vec.h cpumask_t *aq_vec_get_affinity_mask(struct aq_vec_s *self);
self               35 drivers/net/ethernet/aquantia/atlantic/aq_vec.h int aq_vec_get_sw_stats(struct aq_vec_s *self, u64 *data,
self               37 drivers/net/ethernet/aquantia/atlantic/aq_vec.h void aq_vec_add_stats(struct aq_vec_s *self,
self               82 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_reset(struct aq_hw_s *self)
self               87 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_glb_glb_reg_res_dis_set(self, 1U);
self               88 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_pci_pci_reg_res_dis_set(self, 0U);
self               89 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rx_rx_reg_res_dis_set(self, 0U);
self               90 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tx_tx_reg_res_dis_set(self, 0U);
self               93 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_glb_soft_res_set(self, 1);
self               97 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 					self, val, val == 0,
self              102 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_reg_res_dis_set(self, 0U);
self              103 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_res_irq_set(self, 1U);
self              107 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 					self, val, val == 0,
self              112 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	self->aq_fw_ops->set_state(self, MPI_RESET);
self              114 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	err = aq_hw_err_from_flags(self);
self              120 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_qos_set(struct aq_hw_s *self)
self              128 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set(self, 0x0U);
self              129 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_desc_rate_lim_set(self, 0xA);
self              132 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_desc_vm_arb_mode_set(self, 0U);
self              135 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_desc_tc_arb_mode_set(self, 0U);
self              136 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_data_arb_mode_set(self, 0U);
self              138 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set(self, 0xFFF, 0U);
self              139 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_tc_data_weight_set(self, 0x64, 0U);
self              140 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set(self, 0x50, 0U);
self              141 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tps_tx_pkt_shed_desc_tc_weight_set(self, 0x1E, 0U);
self              146 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, buff_size, tc);
self              147 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tpb_tx_buff_hi_threshold_per_tc_set(self,
self              151 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tpb_tx_buff_lo_threshold_per_tc_set(self,
self              158 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	is_rx_flow_control = (AQ_NIC_FC_RX & self->aq_nic_cfg->flow_control);
self              161 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, buff_size, tc);
self              162 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpb_rx_buff_hi_threshold_per_tc_set(self,
self              166 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpb_rx_buff_lo_threshold_per_tc_set(self,
self              170 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpb_rx_xoff_en_per_tc_set(self, is_rx_flow_control ? 1U : 0U, tc);
self              174 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpf_rpb_user_priority_tc_map_set(self, i_priority, 0U);
self              176 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              179 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_rss_hash_set(struct aq_hw_s *self,
self              182 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	struct aq_nic_cfg_s *cfg = self->aq_nic_cfg;
self              191 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpf_rss_key_wr_data_set(self, key_data);
self              192 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpf_rss_key_addr_set(self, addr);
self              193 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpf_rss_key_wr_en_set(self, 1U);
self              195 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 						self, val, val == 0,
self              201 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	err = aq_hw_err_from_flags(self);
self              207 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_rss_set(struct aq_hw_s *self,
self              212 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	u32 num_rss_queues = max(1U, self->aq_nic_cfg->num_rss_queues);
self              227 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpf_rss_redir_tbl_wr_data_set(self, bitary[i]);
self              228 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpf_rss_redir_tbl_addr_set(self, i);
self              229 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpf_rss_redir_wr_en_set(self, 1U);
self              231 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 						self, val, val == 0,
self              237 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	err = aq_hw_err_from_flags(self);
self              243 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_offload_set(struct aq_hw_s *self,
self              247 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tpo_ipv4header_crc_offload_en_set(self, 1);
self              248 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tpo_tcp_udp_crc_offload_en_set(self, 1);
self              251 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpo_ipv4header_crc_offload_en_set(self, 1);
self              252 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpo_tcp_udp_crc_offload_en_set(self, 1);
self              255 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_large_send_offload_en_set(self, 0xFFFFFFFFU);
self              257 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              260 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_init_tx_path(struct aq_hw_s *self)
self              262 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_thm_lso_tcp_flag_of_first_pkt_set(self, 0x0FF6U);
self              263 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_thm_lso_tcp_flag_of_middle_pkt_set(self, 0x0FF6U);
self              264 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_thm_lso_tcp_flag_of_last_pkt_set(self, 0x0F7FU);
self              267 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_tx_desc_wr_wb_irq_en_set(self, 1U);
self              270 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	aq_hw_write_reg(self, 0x00007040U, IS_CHIP_FEATURE(TPO2) ?
self              272 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_tx_dca_en_set(self, 0U);
self              273 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_tx_dca_mode_set(self, 0U);
self              275 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tpb_tx_path_scp_ins_en_set(self, 1U);
self              277 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              280 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_init_rx_path(struct aq_hw_s *self)
self              282 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	struct aq_nic_cfg_s *cfg = self->aq_nic_cfg;
self              286 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpb_rpf_rx_traf_class_mode_set(self, 1U);
self              289 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpb_rx_flow_ctl_mode_set(self, 1U);
self              292 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_rx_flr_rss_control1set(self, cfg->is_rss ?
self              297 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpfl2_uc_flr_en_set(self, (i == 0U) ? 1U : 0U, i);
self              298 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpfl2unicast_flr_act_set(self, 1U, i);
self              301 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_rx_flr_mcst_flr_msk_set(self, 0x00000000U);
self              302 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_rx_flr_mcst_flr_set(self, 0x00010FFFU, 0U);
self              305 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpf_vlan_outer_etht_set(self, 0x88A8U);
self              306 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpf_vlan_inner_etht_set(self, 0x8100U);
self              307 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpf_vlan_prom_mode_en_set(self, 1);
self              310 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_wr_wb_irq_en_set(self, 1U);
self              313 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2broadcast_flr_act_set(self, 1U);
self              314 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2broadcast_count_threshold_set(self, 0xFFFFU & (~0U / 256U));
self              316 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_dca_en_set(self, 0U);
self              317 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_dca_mode_set(self, 0U);
self              319 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              322 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr)
self              336 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2_uc_flr_en_set(self, 0U, HW_ATL_A0_MAC);
self              337 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2unicast_dest_addresslsw_set(self, l, HW_ATL_A0_MAC);
self              338 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2unicast_dest_addressmsw_set(self, h, HW_ATL_A0_MAC);
self              339 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2_uc_flr_en_set(self, 1U, HW_ATL_A0_MAC);
self              341 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	err = aq_hw_err_from_flags(self);
self              347 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_init(struct aq_hw_s *self, u8 *mac_addr)
self              358 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	struct aq_nic_cfg_s *aq_nic_cfg = self->aq_nic_cfg;
self              360 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_init_tx_path(self);
self              361 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_init_rx_path(self);
self              363 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_mac_addr_set(self, mac_addr);
self              365 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk);
self              366 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	self->aq_fw_ops->set_state(self, MPI_INIT);
self              368 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_tx_dma_debug_ctl_set(self, 0x800000b8U);
self              369 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_tx_dma_debug_ctl_set(self, 0x000000b8U);
self              371 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_qos_set(self);
self              372 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_rss_set(self, &aq_nic_cfg->aq_rss);
self              373 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_rss_hash_set(self, &aq_nic_cfg->aq_rss);
self              376 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	self->aq_link_status.mbps = 0;
self              377 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	self->aq_fw_ops->update_stats(self);
self              379 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	err = aq_hw_err_from_flags(self);
self              384 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_irq_glb_ctl_set(self,
self              388 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_auto_masklsw_set(self, aq_nic_cfg->aq_hw_caps->irq_mask);
self              391 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_gen_irq_map_set(self,
self              397 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_offload_set(self, aq_nic_cfg);
self              403 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_tx_start(struct aq_hw_s *self,
self              406 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_tx_desc_en_set(self, 1, ring->idx);
self              407 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              410 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_rx_start(struct aq_hw_s *self,
self              413 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_en_set(self, 1, ring->idx);
self              414 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              417 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_start(struct aq_hw_s *self)
self              419 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tpb_tx_buff_en_set(self, 1);
self              420 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpb_rx_buff_en_set(self, 1);
self              421 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              424 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_tx_ring_tail_update(struct aq_hw_s *self,
self              427 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_tx_dma_desc_tail_ptr_set(self, ring->sw_tail, ring->idx);
self              431 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_tx_xmit(struct aq_hw_s *self,
self              502 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_tx_ring_tail_update(self, ring);
self              503 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              506 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_rx_init(struct aq_hw_s *self,
self              513 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_en_set(self, false, aq_ring->idx);
self              515 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_head_splitting_set(self, 0U, aq_ring->idx);
self              517 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_rx_dma_desc_base_addresslswset(self, dma_desc_addr_lsw,
self              520 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_rx_dma_desc_base_addressmswset(self,
self              524 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_len_set(self, aq_ring->size / 8U, aq_ring->idx);
self              526 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_data_buff_size_set(self,
self              530 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_head_buff_size_set(self, 0U, aq_ring->idx);
self              531 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_head_splitting_set(self, 0U, aq_ring->idx);
self              532 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpo_rx_desc_vlan_stripping_set(self, 0U, aq_ring->idx);
self              537 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_map_rx_set(self, aq_ring_param->vec_idx, aq_ring->idx);
self              538 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_map_en_rx_set(self, true, aq_ring->idx);
self              540 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_cpu_id_set(self, aq_ring_param->cpu, aq_ring->idx);
self              541 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_dca_en_set(self, 0U, aq_ring->idx);
self              542 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_head_dca_en_set(self, 0U, aq_ring->idx);
self              543 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_pld_dca_en_set(self, 0U, aq_ring->idx);
self              545 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              548 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_tx_init(struct aq_hw_s *self,
self              555 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_tx_dma_desc_base_addresslswset(self, dma_desc_lsw_addr,
self              558 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_tx_dma_desc_base_addressmswset(self, dma_desc_msw_addr,
self              561 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_tx_desc_len_set(self, aq_ring->size / 8U, aq_ring->idx);
self              563 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_tx_ring_tail_update(self, aq_ring);
self              566 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_tx_desc_wr_wb_threshold_set(self, 0U, aq_ring->idx);
self              569 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_map_tx_set(self, aq_ring_param->vec_idx, aq_ring->idx);
self              570 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_map_en_tx_set(self, true, aq_ring->idx);
self              572 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_cpu_id_set(self, aq_ring_param->cpu, aq_ring->idx);
self              573 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_tx_desc_dca_en_set(self, 0U, aq_ring->idx);
self              575 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              578 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_rx_fill(struct aq_hw_s *self,
self              594 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_reg_rx_dma_desc_tail_ptr_set(self, sw_tail_old, ring->idx);
self              596 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              599 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_tx_head_update(struct aq_hw_s *self,
self              603 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	unsigned int hw_head = hw_atl_tdm_tx_desc_head_ptr_get(self, ring->idx);
self              605 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	if (aq_utils_obj_test(&self->flags, AQ_HW_FLAG_ERR_UNPLUG)) {
self              610 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	err = aq_hw_err_from_flags(self);
self              616 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_rx_receive(struct aq_hw_s *self,
self              631 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			hw_atl_reg_rx_dma_desc_status_get(self, ring->idx)) {
self              632 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 				hw_atl_rdm_rx_desc_en_set(self, false, ring->idx);
self              633 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 				hw_atl_rdm_rx_desc_res_set(self, true, ring->idx);
self              634 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 				hw_atl_rdm_rx_desc_res_set(self, false, ring->idx);
self              635 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 				hw_atl_rdm_rx_desc_en_set(self, true, ring->idx);
self              639 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			    (hw_atl_rdm_rx_desc_head_ptr_get(self,
self              689 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			if (self->aq_nic_cfg->is_rss) {
self              716 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              719 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_irq_enable(struct aq_hw_s *self, u64 mask)
self              721 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_msk_setlsw_set(self, LODWORD(mask) |
self              723 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              726 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_irq_disable(struct aq_hw_s *self, u64 mask)
self              728 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_msk_clearlsw_set(self, LODWORD(mask));
self              729 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_itr_irq_status_clearlsw_set(self, LODWORD(mask));
self              731 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	if ((1U << 16) & hw_atl_reg_gen_irq_status_get(self))
self              732 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		atomic_inc(&self->dpc);
self              734 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              737 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_irq_read(struct aq_hw_s *self, u64 *mask)
self              739 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	*mask = hw_atl_itr_irq_statuslsw_get(self);
self              740 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              745 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_packet_filter_set(struct aq_hw_s *self,
self              750 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2promiscuous_mode_en_set(self,
self              752 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2multicast_flr_en_set(self,
self              754 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rpfl2broadcast_en_set(self, IS_FILTER_ENABLED(IFF_BROADCAST));
self              756 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	self->aq_nic_cfg->is_mc_list_enabled =
self              760 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpfl2_uc_flr_en_set(self,
self              761 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 					   (self->aq_nic_cfg->is_mc_list_enabled &&
self              762 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 					   (i <= self->aq_nic_cfg->mc_list_count)) ?
self              765 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              770 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_multicast_list_set(struct aq_hw_s *self,
self              782 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	for (self->aq_nic_cfg->mc_list_count = 0U;
self              783 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			self->aq_nic_cfg->mc_list_count < count;
self              784 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			++self->aq_nic_cfg->mc_list_count) {
self              785 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		u32 i = self->aq_nic_cfg->mc_list_count;
self              790 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpfl2_uc_flr_en_set(self, 0U, HW_ATL_A0_MAC_MIN + i);
self              792 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpfl2unicast_dest_addresslsw_set(self,
self              796 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpfl2unicast_dest_addressmsw_set(self,
self              800 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_rpfl2_uc_flr_en_set(self,
self              801 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 					   (self->aq_nic_cfg->is_mc_list_enabled),
self              805 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	err = aq_hw_err_from_flags(self);
self              811 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_interrupt_moderation_set(struct aq_hw_s *self)
self              816 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	if (self->aq_nic_cfg->itr) {
self              817 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		if (self->aq_nic_cfg->itr != AQ_CFG_INTERRUPT_MODERATION_AUTO) {
self              818 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			u32 itr_ = (self->aq_nic_cfg->itr >> 1);
self              824 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			u32 n = 0xFFFFU & aq_hw_read_reg(self, 0x00002A00U);
self              826 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			if (n < self->aq_link_status.mbps) {
self              840 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 						self->aq_link_status.mbps);
self              846 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			aq_hw_write_reg(self, 0x00002A00U, 0x40000000U);
self              847 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 			aq_hw_write_reg(self, 0x00002A00U, 0x8D000000U);
self              854 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 		hw_atl_reg_irq_thr_set(self, itr_rx, i);
self              856 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              859 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_stop(struct aq_hw_s *self)
self              861 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_a0_hw_irq_disable(self, HW_ATL_A0_INT_MASK);
self              862 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              865 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_tx_stop(struct aq_hw_s *self,
self              868 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_tdm_tx_desc_en_set(self, 0U, ring->idx);
self              869 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self              872 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c static int hw_atl_a0_hw_ring_rx_stop(struct aq_hw_s *self,
self              875 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	hw_atl_rdm_rx_desc_en_set(self, 0U, ring->idx);
self              876 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c 	return aq_hw_err_from_flags(self);
self               89 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_reset(struct aq_hw_s *self)
self               93 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = hw_atl_utils_soft_reset(self);
self               97 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	self->aq_fw_ops->set_state(self, MPI_RESET);
self               99 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = aq_hw_err_from_flags(self);
self              104 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc)
self              106 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc);
self              110 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_qos_set(struct aq_hw_s *self)
self              117 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set(self, 0x0U);
self              118 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_desc_rate_lim_set(self, 0xA);
self              121 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_desc_vm_arb_mode_set(self, 0U);
self              124 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_desc_tc_arb_mode_set(self, 0U);
self              125 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_data_arb_mode_set(self, 0U);
self              127 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set(self, 0xFFF, 0U);
self              128 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_tc_data_weight_set(self, 0x64, 0U);
self              129 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set(self, 0x50, 0U);
self              130 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tps_tx_pkt_shed_desc_tc_weight_set(self, 0x1E, 0U);
self              135 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, buff_size, tc);
self              136 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tpb_tx_buff_hi_threshold_per_tc_set(self,
self              140 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tpb_tx_buff_lo_threshold_per_tc_set(self,
self              149 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, buff_size, tc);
self              150 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpb_rx_buff_hi_threshold_per_tc_set(self,
self              154 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpb_rx_buff_lo_threshold_per_tc_set(self,
self              159 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_set_fc(self, self->aq_nic_cfg->flow_control, tc);
self              163 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_rpb_user_priority_tc_map_set(self, i_priority, 0U);
self              165 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              168 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_rss_hash_set(struct aq_hw_s *self,
self              171 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	struct aq_nic_cfg_s *cfg = self->aq_nic_cfg;
self              180 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_rss_key_wr_data_set(self, key_data);
self              181 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_rss_key_addr_set(self, addr);
self              182 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_rss_key_wr_en_set(self, 1U);
self              184 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 						self, val, val == 0,
self              190 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = aq_hw_err_from_flags(self);
self              196 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_rss_set(struct aq_hw_s *self,
self              201 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	u32 num_rss_queues = max(1U, self->aq_nic_cfg->num_rss_queues);
self              216 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_rss_redir_tbl_wr_data_set(self, bitary[i]);
self              217 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_rss_redir_tbl_addr_set(self, i);
self              218 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_rss_redir_wr_en_set(self, 1U);
self              220 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 						self, val, val == 0,
self              226 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = aq_hw_err_from_flags(self);
self              232 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_offload_set(struct aq_hw_s *self,
self              238 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tpo_ipv4header_crc_offload_en_set(self, 1);
self              239 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tpo_tcp_udp_crc_offload_en_set(self, 1);
self              242 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpo_ipv4header_crc_offload_en_set(self, !!(aq_nic_cfg->features &
self              244 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpo_tcp_udp_crc_offload_en_set(self, !!(aq_nic_cfg->features &
self              248 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_large_send_offload_en_set(self, 0xFFFFFFFFU);
self              251 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpo_outer_vlan_tag_mode_set(self, 1U);
self              260 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpo_lro_max_num_of_descriptors_set(self, val, i);
self              262 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_time_base_divider_set(self, 0x61AU);
self              263 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_inactive_interval_set(self, 0);
self              269 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_max_coalescing_interval_set(self, 50);
self              271 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_qsessions_lim_set(self, 1U);
self              273 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_total_desc_lim_set(self, 2U);
self              275 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_patch_optimization_en_set(self, 1U);
self              277 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_min_pay_of_first_pkt_set(self, 10U);
self              279 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_pkt_lim_set(self, 1U);
self              281 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpo_lro_en_set(self,
self              283 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_itr_rsc_en_set(self,
self              286 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_itr_rsc_delay_set(self, 1U);
self              288 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              291 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_init_tx_path(struct aq_hw_s *self)
self              294 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpb_tps_tx_tc_mode_set(self, 1U);
self              296 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_thm_lso_tcp_flag_of_first_pkt_set(self, 0x0FF6U);
self              297 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_thm_lso_tcp_flag_of_middle_pkt_set(self, 0x0FF6U);
self              298 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_thm_lso_tcp_flag_of_last_pkt_set(self, 0x0F7FU);
self              301 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_tx_desc_wr_wb_irq_en_set(self, 1U);
self              304 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	aq_hw_write_reg(self, 0x00007040U, IS_CHIP_FEATURE(TPO2) ?
self              306 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_tx_dca_en_set(self, 0U);
self              307 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_tx_dca_mode_set(self, 0U);
self              309 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tpb_tx_path_scp_ins_en_set(self, 1U);
self              311 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              314 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_init_rx_path(struct aq_hw_s *self)
self              316 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	struct aq_nic_cfg_s *cfg = self->aq_nic_cfg;
self              320 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpb_rpf_rx_traf_class_mode_set(self, 1U);
self              323 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpb_rx_flow_ctl_mode_set(self, 1U);
self              326 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_rx_flr_rss_control1set(self, cfg->is_rss ?
self              331 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl2_uc_flr_en_set(self, (i == 0U) ? 1U : 0U, i);
self              332 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl2unicast_flr_act_set(self, 1U, i);
self              335 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_rx_flr_mcst_flr_msk_set(self, 0x00000000U);
self              336 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_rx_flr_mcst_flr_set(self, 0x00010FFFU, 0U);
self              339 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_vlan_outer_etht_set(self, 0x88A8U);
self              340 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_vlan_inner_etht_set(self, 0x8100U);
self              342 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_vlan_prom_mode_en_set(self, 1);
self              345 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_vlan_accept_untagged_packets_set(self, 1U);
self              346 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_vlan_untagged_act_set(self, 1U);
self              349 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_wr_wb_irq_en_set(self, 1U);
self              352 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	aq_hw_write_reg(self, 0x00005040U,
self              355 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2broadcast_flr_act_set(self, 1U);
self              356 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2broadcast_count_threshold_set(self, 0xFFFFU & (~0U / 256U));
self              358 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_dca_en_set(self, 0U);
self              359 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_dca_mode_set(self, 0U);
self              361 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              364 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr)
self              378 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2_uc_flr_en_set(self, 0U, HW_ATL_B0_MAC);
self              379 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2unicast_dest_addresslsw_set(self, l, HW_ATL_B0_MAC);
self              380 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2unicast_dest_addressmsw_set(self, h, HW_ATL_B0_MAC);
self              381 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2_uc_flr_en_set(self, 1U, HW_ATL_B0_MAC);
self              383 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = aq_hw_err_from_flags(self);
self              389 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_init(struct aq_hw_s *self, u8 *mac_addr)
self              401 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	struct aq_nic_cfg_s *aq_nic_cfg = self->aq_nic_cfg;
self              403 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_init_tx_path(self);
self              404 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_init_rx_path(self);
self              406 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_mac_addr_set(self, mac_addr);
self              408 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk);
self              409 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	self->aq_fw_ops->set_state(self, MPI_INIT);
self              411 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_qos_set(self);
self              412 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_rss_set(self, &aq_nic_cfg->aq_rss);
self              413 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_rss_hash_set(self, &aq_nic_cfg->aq_rss);
self              416 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	val = aq_hw_read_reg(self, HW_ATL_PCI_REG_CONTROL6_ADR);
self              417 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	aq_hw_write_reg(self, HW_ATL_PCI_REG_CONTROL6_ADR,
self              424 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	aq_hw_write_reg(self, HW_ATL_TX_DMA_TOTAL_REQ_LIMIT_ADR, 24);
self              427 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	self->aq_link_status.mbps = 0;
self              428 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	self->aq_fw_ops->update_stats(self);
self              430 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = aq_hw_err_from_flags(self);
self              435 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_irq_glb_ctl_set(self,
self              440 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_itr_irq_auto_masklsw_set(self, aq_nic_cfg->aq_hw_caps->irq_mask);
self              443 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_gen_irq_map_set(self,
self              449 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_reg_gen_irq_map_set(self, BIT(7) |
self              452 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_offload_set(self, aq_nic_cfg);
self              458 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_tx_start(struct aq_hw_s *self,
self              461 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_tx_desc_en_set(self, 1, ring->idx);
self              462 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              465 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_rx_start(struct aq_hw_s *self,
self              468 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_en_set(self, 1, ring->idx);
self              469 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              472 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_start(struct aq_hw_s *self)
self              474 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tpb_tx_buff_en_set(self, 1);
self              475 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpb_rx_buff_en_set(self, 1);
self              476 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              479 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_tx_ring_tail_update(struct aq_hw_s *self,
self              482 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_tx_dma_desc_tail_ptr_set(self, ring->sw_tail, ring->idx);
self              486 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s *self,
self              569 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_tx_ring_tail_update(self, ring);
self              570 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              573 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_rx_init(struct aq_hw_s *self,
self              579 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	u32 vlan_rx_stripping = self->aq_nic_cfg->is_vlan_rx_strip;
self              581 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_en_set(self, false, aq_ring->idx);
self              583 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_head_splitting_set(self, 0U, aq_ring->idx);
self              585 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_rx_dma_desc_base_addresslswset(self, dma_desc_addr_lsw,
self              588 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_rx_dma_desc_base_addressmswset(self,
self              591 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_len_set(self, aq_ring->size / 8U, aq_ring->idx);
self              593 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_data_buff_size_set(self,
self              597 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_head_buff_size_set(self, 0U, aq_ring->idx);
self              598 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_head_splitting_set(self, 0U, aq_ring->idx);
self              599 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpo_rx_desc_vlan_stripping_set(self, !!vlan_rx_stripping,
self              605 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_itr_irq_map_rx_set(self, aq_ring_param->vec_idx, aq_ring->idx);
self              606 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_itr_irq_map_en_rx_set(self, true, aq_ring->idx);
self              608 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_cpu_id_set(self, aq_ring_param->cpu, aq_ring->idx);
self              609 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_dca_en_set(self, 0U, aq_ring->idx);
self              610 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_head_dca_en_set(self, 0U, aq_ring->idx);
self              611 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_pld_dca_en_set(self, 0U, aq_ring->idx);
self              613 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              616 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_tx_init(struct aq_hw_s *self,
self              623 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_tx_dma_desc_base_addresslswset(self, dma_desc_lsw_addr,
self              626 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_tx_dma_desc_base_addressmswset(self, dma_desc_msw_addr,
self              629 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_tx_desc_len_set(self, aq_ring->size / 8U, aq_ring->idx);
self              631 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_tx_ring_tail_update(self, aq_ring);
self              634 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_tx_desc_wr_wb_threshold_set(self, 0U, aq_ring->idx);
self              637 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_itr_irq_map_tx_set(self, aq_ring_param->vec_idx, aq_ring->idx);
self              638 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_itr_irq_map_en_tx_set(self, true, aq_ring->idx);
self              640 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_cpu_id_set(self, aq_ring_param->cpu, aq_ring->idx);
self              641 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_tx_desc_dca_en_set(self, 0U, aq_ring->idx);
self              643 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              646 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_rx_fill(struct aq_hw_s *self,
self              662 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_reg_rx_dma_desc_tail_ptr_set(self, sw_tail_old, ring->idx);
self              664 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              667 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_tx_head_update(struct aq_hw_s *self,
self              671 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	unsigned int hw_head_ = hw_atl_tdm_tx_desc_head_ptr_get(self, ring->idx);
self              673 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	if (aq_utils_obj_test(&self->flags, AQ_HW_FLAG_ERR_UNPLUG)) {
self              678 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = aq_hw_err_from_flags(self);
self              684 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self,
self              732 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		if (self->aq_nic_cfg->is_vlan_rx_strip &&
self              743 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		if (self->aq_nic_cfg->is_rss) {
self              781 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              784 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_irq_enable(struct aq_hw_s *self, u64 mask)
self              786 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_itr_irq_msk_setlsw_set(self, LODWORD(mask));
self              787 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              790 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_irq_disable(struct aq_hw_s *self, u64 mask)
self              792 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_itr_irq_msk_clearlsw_set(self, LODWORD(mask));
self              793 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_itr_irq_status_clearlsw_set(self, LODWORD(mask));
self              795 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	atomic_inc(&self->dpc);
self              796 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              799 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_irq_read(struct aq_hw_s *self, u64 *mask)
self              801 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	*mask = hw_atl_itr_irq_statuslsw_get(self);
self              802 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              807 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_packet_filter_set(struct aq_hw_s *self,
self              811 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	struct aq_nic_cfg_s *cfg = self->aq_nic_cfg;
self              813 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2promiscuous_mode_en_set(self,
self              816 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_vlan_prom_mode_en_set(self,
self              820 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2multicast_flr_en_set(self,
self              824 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2_accept_all_mc_packets_set(self,
self              828 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl2broadcast_en_set(self, IS_FILTER_ENABLED(IFF_BROADCAST));
self              832 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl2_uc_flr_en_set(self,
self              837 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              842 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_multicast_list_set(struct aq_hw_s *self,
self              854 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	for (self->aq_nic_cfg->mc_list_count = 0U;
self              855 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			self->aq_nic_cfg->mc_list_count < count;
self              856 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			++self->aq_nic_cfg->mc_list_count) {
self              857 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		u32 i = self->aq_nic_cfg->mc_list_count;
self              862 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl2_uc_flr_en_set(self, 0U, HW_ATL_B0_MAC_MIN + i);
self              864 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl2unicast_dest_addresslsw_set(self,
self              867 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl2unicast_dest_addressmsw_set(self,
self              870 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl2_uc_flr_en_set(self,
self              871 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 					   (self->aq_nic_cfg->is_mc_list_enabled),
self              875 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = aq_hw_err_from_flags(self);
self              881 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_interrupt_moderation_set(struct aq_hw_s *self)
self              887 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	switch (self->aq_nic_cfg->itr) {
self              890 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_tdm_tx_desc_wr_wb_irq_en_set(self, 0U);
self              891 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_tdm_tdm_intr_moder_en_set(self, 1U);
self              892 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rdm_rx_desc_wr_wb_irq_en_set(self, 0U);
self              893 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rdm_rdm_intr_moder_en_set(self, 1U);
self              895 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		if (self->aq_nic_cfg->itr == AQ_CFG_INTERRUPT_MODERATION_ON) {
self              897 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			int tx_max_timer = self->aq_nic_cfg->tx_itr / 2;
self              900 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			int rx_max_timer = self->aq_nic_cfg->rx_itr / 2;
self              933 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 						self->aq_link_status.mbps);
self              936 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			self->aq_nic_cfg->tx_itr = hw_atl_b0_timers_table_tx_
self              938 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			self->aq_nic_cfg->rx_itr = hw_atl_b0_timers_table_rx_
self              953 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_tdm_tx_desc_wr_wb_irq_en_set(self, 1U);
self              954 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_tdm_tdm_intr_moder_en_set(self, 0U);
self              955 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rdm_rx_desc_wr_wb_irq_en_set(self, 1U);
self              956 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rdm_rdm_intr_moder_en_set(self, 0U);
self              963 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_reg_tx_intr_moder_ctrl_set(self, itr_tx, i);
self              964 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_reg_rx_intr_moder_ctrl_set(self, itr_rx, i);
self              967 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              970 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_stop(struct aq_hw_s *self)
self              975 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_irq_disable(self, HW_ATL_B0_INT_MASK);
self              980 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_dma_desc_cache_init_tgl(self);
self              982 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	err = aq_hw_err_from_flags(self);
self              988 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 				  self, val, val == 1, 1000U, 10000U);
self              994 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_tx_stop(struct aq_hw_s *self,
self              997 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_tdm_tx_desc_en_set(self, 0U, ring->idx);
self              998 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self             1001 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self,
self             1004 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rdm_rx_desc_en_set(self, 0U, ring->idx);
self             1005 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self             1008 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_fl3l4_clear(struct aq_hw_s *self,
self             1014 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl3l4_cmd_clear(self, location);
self             1015 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_l4_spd_set(self, 0U, location);
self             1016 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_l4_dpd_set(self, 0U, location);
self             1017 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl3l4_ipv4_src_addr_clear(self, location);
self             1018 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl3l4_ipv4_dest_addr_clear(self, location);
self             1023 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpfl3l4_cmd_clear(self, location + i);
self             1024 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpf_l4_spd_set(self, 0U, location + i);
self             1025 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpf_l4_dpd_set(self, 0U, location + i);
self             1027 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl3l4_ipv6_src_addr_clear(self, location);
self             1028 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpfl3l4_ipv6_dest_addr_clear(self, location);
self             1031 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self             1034 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_fl3l4_set(struct aq_hw_s *self,
self             1039 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_b0_hw_fl3l4_clear(self, data);
self             1043 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpfl3l4_ipv4_dest_addr_set(self,
self             1046 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpfl3l4_ipv4_src_addr_set(self,
self             1050 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpfl3l4_ipv6_dest_addr_set(self,
self             1053 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpfl3l4_ipv6_src_addr_set(self,
self             1058 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_l4_dpd_set(self, data->p_dst, location);
self             1059 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_l4_spd_set(self, data->p_src, location);
self             1060 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpfl3l4_cmd_set(self, location, data->cmd);
self             1062 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self             1065 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_fl2_set(struct aq_hw_s *self,
self             1068 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_etht_flr_en_set(self, 1U, data->location);
self             1069 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_etht_flr_set(self, data->ethertype, data->location);
self             1070 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_etht_user_priority_en_set(self,
self             1074 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_etht_user_priority_set(self,
self             1079 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_etht_flr_act_set(self, 0U, data->location);
self             1080 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_etht_rx_queue_en_set(self, 0U, data->location);
self             1082 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_etht_flr_act_set(self, 1U, data->location);
self             1083 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_etht_rx_queue_en_set(self, 1U, data->location);
self             1084 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_etht_rx_queue_set(self, data->queue, data->location);
self             1087 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self             1090 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_fl2_clear(struct aq_hw_s *self,
self             1093 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_etht_flr_en_set(self, 0U, data->location);
self             1094 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_etht_flr_set(self, 0U, data->location);
self             1095 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_etht_user_priority_en_set(self, 0U, data->location);
self             1097 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self             1110 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_vlan_set(struct aq_hw_s *self,
self             1116 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_vlan_flr_en_set(self, 0U, i);
self             1117 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 		hw_atl_rpf_vlan_rxq_en_flr_set(self, 0U, i);
self             1119 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpf_vlan_id_flr_set(self,
self             1122 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpf_vlan_flr_act_set(self, 1U, i);
self             1123 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 			hw_atl_rpf_vlan_flr_en_set(self, 1U, i);
self             1125 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 				hw_atl_rpf_vlan_rxq_flr_set(self,
self             1128 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 				hw_atl_rpf_vlan_rxq_en_flr_set(self, 1U, i);
self             1133 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self             1136 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_hw_vlan_ctrl(struct aq_hw_s *self, bool enable)
self             1139 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	hw_atl_rpf_vlan_prom_mode_en_set(self, !enable);
self             1141 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 	return aq_hw_err_from_flags(self);
self              136 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0_internal.h #define HW_ATL_B0_FLUSH() AQ_HW_READ_REG(self, 0x10)
self             1614 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c u32 hw_atl_sem_ram_get(struct aq_hw_s *self)
self             1616 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c 	return hw_atl_reg_glb_cpu_sem_get(self, HW_ATL_FW_SM_RAM);
self             1625 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c u32 hw_atl_scrpad12_get(struct aq_hw_s *self)
self             1627 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c 	return  hw_atl_scrpad_get(self, 0xB);
self             1630 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c u32 hw_atl_scrpad25_get(struct aq_hw_s *self)
self             1632 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c 	return hw_atl_scrpad_get(self, 0x18);
self              756 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.h u32 hw_atl_sem_ram_get(struct aq_hw_s *self);
self              762 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.h u32 hw_atl_scrpad12_get(struct aq_hw_s *self);
self              765 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.h u32 hw_atl_scrpad25_get(struct aq_hw_s *self);
self               52 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_utils_mpi_set_state(struct aq_hw_s *self,
self               54 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_get_mpi_mbox_tid(struct aq_hw_s *self);
self               55 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_mpi_get_state(struct aq_hw_s *self);
self               56 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_mif_cmd_get(struct aq_hw_s *self);
self               57 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_mif_addr_get(struct aq_hw_s *self);
self               58 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_rpc_state_get(struct aq_hw_s *self);
self               59 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 aq_fw1x_rpc_get(struct aq_hw_s *self);
self               61 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops)
self               65 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = hw_atl_utils_soft_reset(self);
self               69 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_utils_hw_chip_features_init(self,
self               70 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					   &self->chip_features);
self               72 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_utils_get_fw_version(self, &self->fw_ver_actual);
self               75 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 				   self->fw_ver_actual) == 0) {
self               78 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					  self->fw_ver_actual) == 0) {
self               81 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					  self->fw_ver_actual) == 0) {
self               85 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			  self->fw_ver_actual);
self               88 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	self->aq_fw_ops = *fw_ops;
self               89 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = self->aq_fw_ops->init(self);
self               93 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_utils_soft_reset_flb(struct aq_hw_s *self)
self               98 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x404, 0x40e1);
self              102 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	val = aq_hw_read_reg(self, 0x53C);
self              103 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x53C, val | 0x10);
self              105 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	gsr = aq_hw_read_reg(self, HW_ATL_GLB_SOFT_RES_ADR);
self              106 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, HW_ATL_GLB_SOFT_RES_ADR, (gsr & 0xBFFF) | 0x8000);
self              109 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x404, 0x80e0);
self              110 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x32a8, 0x0);
self              111 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x520, 0x1);
self              114 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	val = aq_hw_read_reg(self, 0x53C);
self              115 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x53C, val | 0x10);
self              118 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x53C, val & ~0x10);
self              120 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x404, 0x180e0);
self              123 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		u32 flb_status = aq_hw_read_reg(self,
self              137 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x404, 0x80e0);
self              139 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x3a0, 0x1);
self              144 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_rx_rx_reg_res_dis_set(self, 0U);
self              145 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_tx_tx_reg_res_dis_set(self, 0U);
self              146 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg_bit(self, HW_ATL_MAC_PHY_CONTROL,
self              149 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	gsr = aq_hw_read_reg(self, HW_ATL_GLB_SOFT_RES_ADR);
self              150 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, HW_ATL_GLB_SOFT_RES_ADR, (gsr & 0xBFFF) | 0x8000);
self              153 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		u32 fw_state = aq_hw_read_reg(self, HW_ATL_MPI_FW_VERSION);
self              169 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_utils_soft_reset_rbl(struct aq_hw_s *self)
self              174 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x404, 0x40e1);
self              175 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x3a0, 0x1);
self              176 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x32a8, 0x0);
self              179 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x388, 0xDEAD);
self              182 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	val = aq_hw_read_reg(self, 0x53C);
self              183 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x53C, val | 0x10);
self              186 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_rx_rx_reg_res_dis_set(self, 0U);
self              187 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_tx_tx_reg_res_dis_set(self, 0U);
self              188 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg_bit(self, HW_ATL_MAC_PHY_CONTROL,
self              191 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	gsr = aq_hw_read_reg(self, HW_ATL_GLB_SOFT_RES_ADR);
self              192 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, HW_ATL_GLB_SOFT_RES_ADR,
self              196 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		aq_hw_write_reg(self, 0x534, 0x0);
self              198 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, 0x404, 0x40e0);
self              202 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		rbl_status = aq_hw_read_reg(self, 0x388) & 0xFFFF;
self              214 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		aq_hw_write_reg(self, 0x534, 0xA0);
self              222 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		u32 fw_state = aq_hw_read_reg(self, HW_ATL_MPI_FW_VERSION);
self              238 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_soft_reset(struct aq_hw_s *self)
self              245 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		u32 flb_status = aq_hw_read_reg(self,
self              247 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		boot_exit_code = aq_hw_read_reg(self,
self              258 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	self->rbl_enabled = (boot_exit_code != 0);
self              264 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 				    aq_hw_read_reg(self,
self              268 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		hw_atl_utils_mpi_set_state(self, MPI_DEINIT);
self              270 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 						self, val,
self              278 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	if (self->rbl_enabled)
self              279 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		return hw_atl_utils_soft_reset_rbl(self);
self              281 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		return hw_atl_utils_soft_reset_flb(self);
self              284 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_fw_downld_dwords(struct aq_hw_s *self, u32 a,
self              291 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					self, val, val == 1U,
self              297 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		hw_atl_reg_glb_cpu_sem_set(self, 1U, HW_ATL_FW_SM_RAM);
self              298 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		is_locked = hw_atl_sem_ram_get(self);
self              305 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, HW_ATL_MIF_ADDR, a);
self              308 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		aq_hw_write_reg(self, HW_ATL_MIF_CMD, 0x00008000U);
self              312 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 							self, val, val != a,
self              316 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 							self, val,
self              320 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		*(p++) = aq_hw_read_reg(self, HW_ATL_MIF_VAL);
self              324 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_reg_glb_cpu_sem_set(self, 1U, HW_ATL_FW_SM_RAM);
self              330 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_utils_fw_upload_dwords(struct aq_hw_s *self, u32 a, u32 *p,
self              336 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = readx_poll_timeout_atomic(hw_atl_sem_ram_get, self,
self              346 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			aq_hw_write_reg(self, 0x328, p[offset]);
self              347 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			aq_hw_write_reg(self, 0x32C,
self              349 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			hw_atl_mcp_up_force_intr_set(self, 1);
self              352 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 							self, val,
self              360 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		aq_hw_write_reg(self, 0x208, a);
self              363 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			aq_hw_write_reg(self, 0x20C, p[offset]);
self              364 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			aq_hw_write_reg(self, 0x200, 0xC000);
self              367 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 							self, val,
self              373 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_reg_glb_cpu_sem_set(self, 1U, HW_ATL_FW_SM_RAM);
self              394 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_utils_init_ucp(struct aq_hw_s *self,
self              399 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	if (!aq_hw_read_reg(self, 0x370U)) {
self              406 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		aq_hw_write_reg(self, HW_ATL_UCP_0X370_REG, ucp_0x370);
self              409 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_reg_glb_cpu_scratch_scp_set(self, 0x00000000U, 25U);
self              413 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					self, self->mbox_addr,
self              414 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					self->mbox_addr != 0U,
self              416 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = readx_poll_timeout_atomic(aq_fw1x_rpc_get, self,
self              417 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					self->rpc_addr,
self              418 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					self->rpc_addr != 0U,
self              436 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_fw_rpc_call(struct aq_hw_s *self, unsigned int rpc_size)
self              445 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = hw_atl_utils_fw_upload_dwords(self, self->rpc_addr,
self              446 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					    (u32 *)(void *)&self->rpc,
self              452 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	sw.tid = 0xFFFFU & (++self->rpc_tid);
self              454 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, HW_ATL_RPC_CONTROL_ADR, sw.val);
self              460 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_fw_rpc_wait(struct aq_hw_s *self,
self              468 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		sw.val = aq_hw_read_reg(self, HW_ATL_RPC_CONTROL_ADR);
self              470 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		self->rpc_tid = sw.tid;
self              473 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 						self, fw.val,
self              479 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		err = aq_hw_err_from_flags(self);
self              484 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			err = hw_atl_utils_fw_rpc_call(self, sw.len);
self              493 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			hw_atl_utils_fw_downld_dwords(self,
self              494 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 						      self->rpc_addr,
self              496 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 						      &self->rpc,
self              504 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		*rpc = &self->rpc;
self              511 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_utils_mpi_create(struct aq_hw_s *self)
self              515 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = hw_atl_utils_init_ucp(self, self->aq_nic_cfg->aq_hw_caps);
self              519 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = hw_atl_utils_fw_rpc_init(self);
self              527 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_mpi_read_mbox(struct aq_hw_s *self,
self              530 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	return hw_atl_utils_fw_downld_dwords(self,
self              531 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					     self->mbox_addr,
self              536 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c void hw_atl_utils_mpi_read_stats(struct aq_hw_s *self,
self              541 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = hw_atl_utils_fw_downld_dwords(self,
self              542 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					    self->mbox_addr,
self              549 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		unsigned int mtu = self->aq_nic_cfg ?
self              550 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					self->aq_nic_cfg->mtu : 1514U;
self              553 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		pmbox->stats.dpc = atomic_read(&self->dpc);
self              555 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		pmbox->stats.dpc = hw_atl_rpb_rx_dma_drop_pkt_cnt_get(self);
self              561 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_utils_mpi_set_speed(struct aq_hw_s *self, u32 speed)
self              563 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	u32 val = aq_hw_read_reg(self, HW_ATL_MPI_CONTROL_ADR);
self              567 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, HW_ATL_MPI_CONTROL_ADR, val);
self              572 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_utils_mpi_set_state(struct aq_hw_s *self,
self              578 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	u32 val = aq_hw_read_reg(self, HW_ATL_MPI_CONTROL_ADR);
self              581 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		hw_atl_utils_mpi_read_mbox(self, &mbox);
self              586 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 						self, mbox.transaction_id,
self              605 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	aq_hw_write_reg(self, HW_ATL_MPI_CONTROL_ADR, val);
self              610 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_mpi_get_link_status(struct aq_hw_s *self)
self              612 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	u32 cp0x036C = hw_atl_utils_mpi_get_state(self);
self              614 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	struct aq_hw_link_status_s *link_status = &self->aq_link_status;
self              649 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_get_mac_permanent(struct aq_hw_s *self,
self              657 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	if (!aq_hw_read_reg(self, HW_ATL_UCP_0X370_REG)) {
self              664 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		aq_hw_write_reg(self, HW_ATL_UCP_0X370_REG, ucp_0x370);
self              667 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = hw_atl_utils_fw_downld_dwords(self,
self              668 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 					    aq_hw_read_reg(self, 0x00000374U) +
self              686 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		    (0xFFFFU & aq_hw_read_reg(self, HW_ATL_UCP_0X370_REG)) |
self              736 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c void hw_atl_utils_hw_chip_features_init(struct aq_hw_s *self, u32 *p)
self              739 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	u32 val = hw_atl_reg_glb_mif_id_get(self);
self              763 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int hw_atl_fw1x_deinit(struct aq_hw_s *self)
self              765 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_utils_mpi_set_speed(self, 0);
self              766 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_utils_mpi_set_state(self, MPI_DEINIT);
self              770 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_update_stats(struct aq_hw_s *self)
self              773 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	struct aq_stats_s *cs = &self->curr_stats;
self              775 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_utils_mpi_read_stats(self, &mbox);
self              777 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c #define AQ_SDELTA(_N_) (self->curr_stats._N_ += \
self              778 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 			mbox.stats._N_ - self->last_stats._N_)
self              780 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	if (self->aq_link_status.mbps) {
self              801 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	cs->dma_pkt_rc = hw_atl_stats_rx_dma_good_pkt_counter_get(self);
self              802 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	cs->dma_pkt_tc = hw_atl_stats_tx_dma_good_pkt_counter_get(self);
self              803 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	cs->dma_oct_rc = hw_atl_stats_rx_dma_good_octet_counter_get(self);
self              804 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	cs->dma_oct_tc = hw_atl_stats_tx_dma_good_octet_counter_get(self);
self              806 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	memcpy(&self->last_stats, &mbox.stats, sizeof(mbox.stats));
self              811 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c struct aq_stats_s *hw_atl_utils_get_hw_stats(struct aq_hw_s *self)
self              813 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	return &self->curr_stats;
self              841 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_hw_get_regs(struct aq_hw_s *self,
self              848 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		regs_buff[i] = aq_hw_read_reg(self,
self              853 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c int hw_atl_utils_get_fw_version(struct aq_hw_s *self, u32 *fw_version)
self              855 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	*fw_version = aq_hw_read_reg(self, 0x18U);
self              859 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int aq_fw1x_set_wol(struct aq_hw_s *self, bool wol_enabled, u8 *mac)
self              865 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = hw_atl_utils_fw_rpc_wait(self, &prpc);
self              891 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	err = hw_atl_utils_fw_rpc_call(self, rpc_size);
self              897 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static int aq_fw1x_set_power(struct aq_hw_s *self, unsigned int power_state,
self              904 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	if (self->aq_nic_cfg->wol & AQ_NIC_WOL_ENABLED) {
self              905 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		err = aq_fw1x_set_wol(self, 1, mac);
self              913 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		err = hw_atl_utils_fw_rpc_wait(self, &prpc);
self              923 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 		err = hw_atl_utils_fw_rpc_call(self, rpc_size);
self              927 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_utils_mpi_set_speed(self, 0);
self              928 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_utils_mpi_set_state(self, MPI_POWER);
self              934 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_get_mpi_mbox_tid(struct aq_hw_s *self)
self              938 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	hw_atl_utils_mpi_read_mbox(self, &mbox);
self              943 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_mpi_get_state(struct aq_hw_s *self)
self              945 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	return aq_hw_read_reg(self, HW_ATL_MPI_STATE_ADR);
self              948 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_mif_cmd_get(struct aq_hw_s *self)
self              950 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	return aq_hw_read_reg(self, HW_ATL_MIF_CMD);
self              953 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_mif_addr_get(struct aq_hw_s *self)
self              955 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	return aq_hw_read_reg(self, HW_ATL_MIF_ADDR);
self              958 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 hw_atl_utils_rpc_state_get(struct aq_hw_s *self)
self              960 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	return aq_hw_read_reg(self, HW_ATL_RPC_STATE_ADR);
self              963 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c static u32 aq_fw1x_rpc_get(struct aq_hw_s *self)
self              965 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c 	return aq_hw_read_reg(self, HW_ATL_MPI_RPC_ADDR);
self               14 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h #define HW_ATL_FLUSH() { (void)aq_hw_read_reg(self, 0x10); }
self              307 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h 	self->chip_features)
self              437 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops);
self              439 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_soft_reset(struct aq_hw_s *self);
self              441 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h void hw_atl_utils_hw_chip_features_init(struct aq_hw_s *self, u32 *p);
self              443 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_mpi_read_mbox(struct aq_hw_s *self,
self              446 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h void hw_atl_utils_mpi_read_stats(struct aq_hw_s *self,
self              449 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h void hw_atl_utils_mpi_set(struct aq_hw_s *self,
self              453 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_mpi_get_link_status(struct aq_hw_s *self);
self              455 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_get_mac_permanent(struct aq_hw_s *self,
self              460 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_hw_get_regs(struct aq_hw_s *self,
self              464 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_hw_set_power(struct aq_hw_s *self,
self              467 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_hw_deinit(struct aq_hw_s *self);
self              469 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_get_fw_version(struct aq_hw_s *self, u32 *fw_version);
self              471 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_update_stats(struct aq_hw_s *self);
self              473 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h struct aq_stats_s *hw_atl_utils_get_hw_stats(struct aq_hw_s *self);
self              475 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_fw_downld_dwords(struct aq_hw_s *self, u32 a,
self              478 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_fw_set_wol(struct aq_hw_s *self, bool wol_enabled, u8 *mac);
self              480 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_fw_rpc_call(struct aq_hw_s *self, unsigned int rpc_size);
self              482 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h int hw_atl_utils_fw_rpc_wait(struct aq_hw_s *self,
self               68 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed);
self               69 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_state(struct aq_hw_s *self,
self               72 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static u32 aq_fw2x_mbox_get(struct aq_hw_s *self);
self               73 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static u32 aq_fw2x_rpc_get(struct aq_hw_s *self);
self               74 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static u32 aq_fw2x_state2_get(struct aq_hw_s *self);
self               76 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_init(struct aq_hw_s *self)
self               82 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 					self, self->mbox_addr,
self               83 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 					self->mbox_addr != 0U,
self               87 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 					self, self->rpc_addr,
self               88 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 					self->rpc_addr != 0U,
self               94 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_deinit(struct aq_hw_s *self)
self               96 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	int err = aq_fw2x_set_link_speed(self, 0);
self               99 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		err = aq_fw2x_set_state(self, MPI_DEINIT);
self              161 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed)
self              165 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL_ADDR, val);
self              170 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static void aq_fw2x_set_mpi_flow_control(struct aq_hw_s *self, u32 *mpi_state)
self              172 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	if (self->aq_nic_cfg->flow_control & AQ_NIC_FC_RX)
self              177 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	if (self->aq_nic_cfg->flow_control & AQ_NIC_FC_TX)
self              183 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static void aq_fw2x_upd_eee_rate_bits(struct aq_hw_s *self, u32 *mpi_opts,
self              194 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_state(struct aq_hw_s *self,
self              197 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 mpi_state = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);
self              198 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	struct aq_nic_cfg_s *cfg = self->aq_nic_cfg;
self              203 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		aq_fw2x_upd_eee_rate_bits(self, &mpi_state, cfg->eee_speeds);
self              204 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		aq_fw2x_set_mpi_flow_control(self, &mpi_state);
self              214 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_state);
self              218 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_update_link_status(struct aq_hw_s *self)
self              220 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 mpi_state = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_STATE_ADDR);
self              223 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	struct aq_hw_link_status_s *link_status = &self->aq_link_status;
self              245 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_get_mac_permanent(struct aq_hw_s *self, u8 *mac)
self              251 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 efuse_addr = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_EFUSE_ADDR);
self              254 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		err = hw_atl_utils_fw_downld_dwords(self,
self              288 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_update_stats(struct aq_hw_s *self)
self              291 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 mpi_opts = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);
self              297 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_opts);
self              301 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 					self, stats_val,
self              308 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	return hw_atl_utils_update_stats(self);
self              311 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_get_phy_temp(struct aq_hw_s *self, int *temp)
self              313 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 mpi_opts = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);
self              320 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	phy_temp_offset = self->mbox_addr +
self              325 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_opts);
self              327 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	err = readx_poll_timeout_atomic(aq_fw2x_state2_get, self, val,
self              331 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	err = hw_atl_utils_fw_downld_dwords(self, phy_temp_offset,
self              345 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_sleep_proxy(struct aq_hw_s *self, u8 *mac)
self              356 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	err = hw_atl_utils_fw_rpc_wait(self, &rpc);
self              367 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	mpi_opts = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);
self              371 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_opts);
self              373 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	err = hw_atl_utils_fw_rpc_call(self, rpc_size);
self              379 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_opts);
self              382 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 					self, val,
self              390 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_wol_params(struct aq_hw_s *self, u8 *mac)
self              398 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	err = hw_atl_utils_fw_rpc_wait(self, &rpc);
self              410 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	mpi_opts = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);
self              413 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_opts);
self              415 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	err = hw_atl_utils_fw_rpc_call(self, sizeof(*msg));
self              421 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_opts);
self              424 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 					self, val, val & HW_ATL_FW2X_CTRL_WOL,
self              431 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_power(struct aq_hw_s *self, unsigned int power_state,
self              436 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	if (self->aq_nic_cfg->wol & AQ_NIC_WOL_ENABLED) {
self              437 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		err = aq_fw2x_set_sleep_proxy(self, mac);
self              440 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 		err = aq_fw2x_set_wol_params(self, mac);
self              447 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_eee_rate(struct aq_hw_s *self, u32 speed)
self              449 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 mpi_opts = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);
self              451 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_fw2x_upd_eee_rate_bits(self, &mpi_opts, speed);
self              453 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_opts);
self              458 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_get_eee_rate(struct aq_hw_s *self, u32 *rate,
self              464 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 addr = self->mbox_addr + offsetof(struct hw_atl_utils_mbox, info) +
self              467 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	err = hw_atl_utils_fw_downld_dwords(self, addr, &caps_hi,
self              475 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	mpi_state = aq_fw2x_state2_get(self);
self              481 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_renegotiate(struct aq_hw_s *self)
self              483 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 mpi_opts = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);
self              487 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_opts);
self              492 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static int aq_fw2x_set_flow_control(struct aq_hw_s *self)
self              494 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 mpi_state = aq_hw_read_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR);
self              496 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_fw2x_set_mpi_flow_control(self, &mpi_state);
self              498 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	aq_hw_write_reg(self, HW_ATL_FW2X_MPI_CONTROL2_ADDR, mpi_state);
self              503 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static u32 aq_fw2x_get_flow_control(struct aq_hw_s *self, u32 *fcmode)
self              505 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 mpi_state = aq_fw2x_state2_get(self);
self              521 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static u32 aq_fw2x_mbox_get(struct aq_hw_s *self)
self              523 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	return aq_hw_read_reg(self, HW_ATL_FW2X_MPI_MBOX_ADDR);
self              526 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static u32 aq_fw2x_rpc_get(struct aq_hw_s *self)
self              528 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	return aq_hw_read_reg(self, HW_ATL_FW2X_MPI_RPC_ADDR);
self              531 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c static u32 aq_fw2x_state2_get(struct aq_hw_s *self)
self              533 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	return aq_hw_read_reg(self, HW_ATL_FW2X_MPI_STATE2_ADDR);
self              962 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c static int nb_callback(struct notifier_block *self, unsigned long event,
self             5569 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		pbridge = pdev->bus->self;
self              400 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h 	struct hclge_waterline self;
self             1819 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 		buf_alloc->s_buf.self.high = shared_buf - hdev->dv_buf_size;
self             1820 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 		buf_alloc->s_buf.self.low = buf_alloc->s_buf.self.high
self             1824 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 		buf_alloc->s_buf.self.high = aligned_mps +
self             1826 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 		buf_alloc->s_buf.self.low = aligned_mps;
self             2195 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	req->com_wl.high = cpu_to_le16(buf->self.high >> HCLGE_BUF_UNIT_S);
self             2198 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	req->com_wl.low = cpu_to_le16(buf->self.low >> HCLGE_BUF_UNIT_S);
self             6462 drivers/net/ethernet/intel/e1000e/netdev.c 		struct pci_dev *us_dev = pdev->bus->self;
self             6491 drivers/net/ethernet/intel/e1000e/netdev.c 	struct pci_dev *parent = pdev->bus->self;
self              192 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	parent_dev = parent_bus->self;
self              264 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		pdev = adapter->pdev->bus->parent->self;
self             11308 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	bdev = pdev->bus->self;
self             11310 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		bdev = bdev->bus->self;
self             3062 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 	struct pci_dev *bridge = mgp->pdev->bus->self;
self             3080 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 				bridge = bridge->bus->self;
self             3255 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 	struct pci_dev *bridge = pdev->bus->self;
self             1422 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	struct pci_dev *root = pdev->bus->self;
self             4809 drivers/net/ethernet/sun/cassini.c 	struct pci_dev *pdev = cas_pdev->bus->self;
self             2642 drivers/net/ethernet/sun/sunhme.c 	struct pci_dev *bdev = pdev->bus->self;
self             2903 drivers/net/ethernet/sun/sunhme.c 	struct pci_dev *busdev = pdev->bus->self;
self              832 drivers/net/wireless/ath/ath9k/pci.c 	parent = pdev->bus->self;
self              146 drivers/net/wireless/intel/iwlwifi/pcie/trans.c 	if (!pdev->bus->self)
self              149 drivers/net/wireless/intel/iwlwifi/pcie/trans.c 	pdev = pdev->bus->self;
self               10 drivers/net/wireless/mediatek/mt76/pci.c 	struct pci_dev *parent = pdev->bus->self;
self              168 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c 	if (pdev->bus && pdev->bus->self) {
self              170 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c 		parent = pdev->bus->self;
self             1879 drivers/net/wireless/realtek/rtlwifi/pci.c 	struct pci_dev *bridge_pdev = pdev->bus->self;
self              296 drivers/net/wireless/st/cw1200/cw1200.h void cw1200_core_release(struct cw1200_common *self);
self               66 drivers/net/wireless/st/cw1200/cw1200_sdio.c static int cw1200_sdio_memcpy_fromio(struct hwbus_priv *self,
self               70 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	return sdio_memcpy_fromio(self->func, dst, addr, count);
self               73 drivers/net/wireless/st/cw1200/cw1200_sdio.c static int cw1200_sdio_memcpy_toio(struct hwbus_priv *self,
self               77 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	return sdio_memcpy_toio(self->func, addr, (void *)src, count);
self               80 drivers/net/wireless/st/cw1200/cw1200_sdio.c static void cw1200_sdio_lock(struct hwbus_priv *self)
self               82 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	sdio_claim_host(self->func);
self               85 drivers/net/wireless/st/cw1200/cw1200_sdio.c static void cw1200_sdio_unlock(struct hwbus_priv *self)
self               87 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	sdio_release_host(self->func);
self               92 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	struct hwbus_priv *self = sdio_get_drvdata(func);
self               95 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self->core)
self               96 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		cw1200_irq_handler(self->core);
self              106 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	struct hwbus_priv *self = dev_id;
self              108 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self->core) {
self              109 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		cw1200_sdio_lock(self);
self              110 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		cw1200_irq_handler(self->core);
self              111 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		cw1200_sdio_unlock(self);
self              118 drivers/net/wireless/st/cw1200/cw1200_sdio.c static int cw1200_request_irq(struct hwbus_priv *self)
self              123 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	cccr = sdio_f0_readb(self->func, SDIO_CCCR_IENx, &ret);
self              131 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	cccr |= BIT(self->func->num);
self              133 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	sdio_f0_writeb(self->func, cccr, SDIO_CCCR_IENx, &ret);
self              137 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	ret = enable_irq_wake(self->pdata->irq);
self              142 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	ret =  request_threaded_irq(self->pdata->irq, cw1200_gpio_hardirq,
self              145 drivers/net/wireless/st/cw1200/cw1200_sdio.c 				    "cw1200_wlan_irq", self);
self              155 drivers/net/wireless/st/cw1200/cw1200_sdio.c static int cw1200_sdio_irq_subscribe(struct hwbus_priv *self)
self              160 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	sdio_claim_host(self->func);
self              161 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self->pdata->irq)
self              162 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		ret = cw1200_request_irq(self);
self              164 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		ret = sdio_claim_irq(self->func, cw1200_sdio_irq_handler);
self              166 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	sdio_release_host(self->func);
self              170 drivers/net/wireless/st/cw1200/cw1200_sdio.c static int cw1200_sdio_irq_unsubscribe(struct hwbus_priv *self)
self              176 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self->pdata->irq) {
self              177 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		disable_irq_wake(self->pdata->irq);
self              178 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		free_irq(self->pdata->irq, self);
self              180 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		sdio_claim_host(self->func);
self              181 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		ret = sdio_release_irq(self->func);
self              182 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		sdio_release_host(self->func);
self              247 drivers/net/wireless/st/cw1200/cw1200_sdio.c static size_t cw1200_sdio_align_size(struct hwbus_priv *self, size_t size)
self              249 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self->pdata->no_nptb)
self              252 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		size = sdio_align_size(self->func, size);
self              257 drivers/net/wireless/st/cw1200/cw1200_sdio.c static int cw1200_sdio_pm(struct hwbus_priv *self, bool suspend)
self              261 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self->pdata->irq)
self              262 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		ret = irq_set_irq_wake(self->pdata->irq, suspend);
self              279 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	struct hwbus_priv *self;
self              288 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	self = kzalloc(sizeof(*self), GFP_KERNEL);
self              289 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (!self) {
self              296 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	self->pdata = global_plat_data; /* FIXME */
self              297 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	self->func = func;
self              298 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	sdio_set_drvdata(func, self);
self              303 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	status = cw1200_sdio_irq_subscribe(self);
self              306 drivers/net/wireless/st/cw1200/cw1200_sdio.c 				   self, &func->dev, &self->core,
self              307 drivers/net/wireless/st/cw1200/cw1200_sdio.c 				   self->pdata->ref_clk,
self              308 drivers/net/wireless/st/cw1200/cw1200_sdio.c 				   self->pdata->macaddr,
self              309 drivers/net/wireless/st/cw1200/cw1200_sdio.c 				   self->pdata->sdd_file,
self              310 drivers/net/wireless/st/cw1200/cw1200_sdio.c 				   self->pdata->have_5ghz);
self              312 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		cw1200_sdio_irq_unsubscribe(self);
self              317 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		kfree(self);
self              328 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	struct hwbus_priv *self = sdio_get_drvdata(func);
self              330 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (self) {
self              331 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		cw1200_sdio_irq_unsubscribe(self);
self              332 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		if (self->core) {
self              333 drivers/net/wireless/st/cw1200/cw1200_sdio.c 			cw1200_core_release(self->core);
self              334 drivers/net/wireless/st/cw1200/cw1200_sdio.c 			self->core = NULL;
self              340 drivers/net/wireless/st/cw1200/cw1200_sdio.c 		kfree(self);
self              349 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	struct hwbus_priv *self = sdio_get_drvdata(func);
self              351 drivers/net/wireless/st/cw1200/cw1200_sdio.c 	if (!cw1200_can_suspend(self->core))
self               57 drivers/net/wireless/st/cw1200/cw1200_spi.c static int cw1200_spi_memcpy_fromio(struct hwbus_priv *self,
self               89 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (self->func->bits_per_word == 8)
self               96 drivers/net/wireless/st/cw1200/cw1200_spi.c 	ret = spi_sync(self->func, &m);
self              112 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (self->func->bits_per_word == 8)
self              123 drivers/net/wireless/st/cw1200/cw1200_spi.c static int cw1200_spi_memcpy_toio(struct hwbus_priv *self,
self              154 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (self->func->bits_per_word == 8)
self              176 drivers/net/wireless/st/cw1200/cw1200_spi.c 	rval = spi_sync(self->func, &m);
self              184 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (self->func->bits_per_word == 8)
self              194 drivers/net/wireless/st/cw1200/cw1200_spi.c static void cw1200_spi_lock(struct hwbus_priv *self)
self              202 drivers/net/wireless/st/cw1200/cw1200_spi.c 	add_wait_queue(&self->wq, &wait);
self              203 drivers/net/wireless/st/cw1200/cw1200_spi.c 	spin_lock_irqsave(&self->lock, flags);
self              206 drivers/net/wireless/st/cw1200/cw1200_spi.c 		if (!self->claimed)
self              208 drivers/net/wireless/st/cw1200/cw1200_spi.c 		spin_unlock_irqrestore(&self->lock, flags);
self              210 drivers/net/wireless/st/cw1200/cw1200_spi.c 		spin_lock_irqsave(&self->lock, flags);
self              213 drivers/net/wireless/st/cw1200/cw1200_spi.c 	self->claimed = 1;
self              214 drivers/net/wireless/st/cw1200/cw1200_spi.c 	spin_unlock_irqrestore(&self->lock, flags);
self              215 drivers/net/wireless/st/cw1200/cw1200_spi.c 	remove_wait_queue(&self->wq, &wait);
self              220 drivers/net/wireless/st/cw1200/cw1200_spi.c static void cw1200_spi_unlock(struct hwbus_priv *self)
self              224 drivers/net/wireless/st/cw1200/cw1200_spi.c 	spin_lock_irqsave(&self->lock, flags);
self              225 drivers/net/wireless/st/cw1200/cw1200_spi.c 	self->claimed = 0;
self              226 drivers/net/wireless/st/cw1200/cw1200_spi.c 	spin_unlock_irqrestore(&self->lock, flags);
self              227 drivers/net/wireless/st/cw1200/cw1200_spi.c 	wake_up(&self->wq);
self              234 drivers/net/wireless/st/cw1200/cw1200_spi.c 	struct hwbus_priv *self = dev_id;
self              236 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (self->core) {
self              237 drivers/net/wireless/st/cw1200/cw1200_spi.c 		cw1200_spi_lock(self);
self              238 drivers/net/wireless/st/cw1200/cw1200_spi.c 		cw1200_irq_handler(self->core);
self              239 drivers/net/wireless/st/cw1200/cw1200_spi.c 		cw1200_spi_unlock(self);
self              246 drivers/net/wireless/st/cw1200/cw1200_spi.c static int cw1200_spi_irq_subscribe(struct hwbus_priv *self)
self              252 drivers/net/wireless/st/cw1200/cw1200_spi.c 	ret = request_threaded_irq(self->func->irq, NULL,
self              255 drivers/net/wireless/st/cw1200/cw1200_spi.c 				   "cw1200_wlan_irq", self);
self              259 drivers/net/wireless/st/cw1200/cw1200_spi.c 	ret = enable_irq_wake(self->func->irq);
self              266 drivers/net/wireless/st/cw1200/cw1200_spi.c 	free_irq(self->func->irq, self);
self              271 drivers/net/wireless/st/cw1200/cw1200_spi.c static int cw1200_spi_irq_unsubscribe(struct hwbus_priv *self)
self              276 drivers/net/wireless/st/cw1200/cw1200_spi.c 	disable_irq_wake(self->func->irq);
self              277 drivers/net/wireless/st/cw1200/cw1200_spi.c 	free_irq(self->func->irq, self);
self              342 drivers/net/wireless/st/cw1200/cw1200_spi.c static size_t cw1200_spi_align_size(struct hwbus_priv *self, size_t size)
self              347 drivers/net/wireless/st/cw1200/cw1200_spi.c static int cw1200_spi_pm(struct hwbus_priv *self, bool suspend)
self              349 drivers/net/wireless/st/cw1200/cw1200_spi.c 	return irq_set_irq_wake(self->func->irq, suspend);
self              366 drivers/net/wireless/st/cw1200/cw1200_spi.c 	struct hwbus_priv *self;
self              398 drivers/net/wireless/st/cw1200/cw1200_spi.c 	self = devm_kzalloc(&func->dev, sizeof(*self), GFP_KERNEL);
self              399 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (!self) {
self              404 drivers/net/wireless/st/cw1200/cw1200_spi.c 	self->pdata = plat_data;
self              405 drivers/net/wireless/st/cw1200/cw1200_spi.c 	self->func = func;
self              406 drivers/net/wireless/st/cw1200/cw1200_spi.c 	spin_lock_init(&self->lock);
self              408 drivers/net/wireless/st/cw1200/cw1200_spi.c 	spi_set_drvdata(func, self);
self              410 drivers/net/wireless/st/cw1200/cw1200_spi.c 	init_waitqueue_head(&self->wq);
self              412 drivers/net/wireless/st/cw1200/cw1200_spi.c 	status = cw1200_spi_irq_subscribe(self);
self              415 drivers/net/wireless/st/cw1200/cw1200_spi.c 				   self, &func->dev, &self->core,
self              416 drivers/net/wireless/st/cw1200/cw1200_spi.c 				   self->pdata->ref_clk,
self              417 drivers/net/wireless/st/cw1200/cw1200_spi.c 				   self->pdata->macaddr,
self              418 drivers/net/wireless/st/cw1200/cw1200_spi.c 				   self->pdata->sdd_file,
self              419 drivers/net/wireless/st/cw1200/cw1200_spi.c 				   self->pdata->have_5ghz);
self              422 drivers/net/wireless/st/cw1200/cw1200_spi.c 		cw1200_spi_irq_unsubscribe(self);
self              432 drivers/net/wireless/st/cw1200/cw1200_spi.c 	struct hwbus_priv *self = spi_get_drvdata(func);
self              434 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (self) {
self              435 drivers/net/wireless/st/cw1200/cw1200_spi.c 		cw1200_spi_irq_unsubscribe(self);
self              436 drivers/net/wireless/st/cw1200/cw1200_spi.c 		if (self->core) {
self              437 drivers/net/wireless/st/cw1200/cw1200_spi.c 			cw1200_core_release(self->core);
self              438 drivers/net/wireless/st/cw1200/cw1200_spi.c 			self->core = NULL;
self              448 drivers/net/wireless/st/cw1200/cw1200_spi.c 	struct hwbus_priv *self = spi_get_drvdata(to_spi_device(dev));
self              450 drivers/net/wireless/st/cw1200/cw1200_spi.c 	if (!cw1200_can_suspend(self->core))
self               20 drivers/net/wireless/st/cw1200/hwbus.h 	int (*hwbus_memcpy_fromio)(struct hwbus_priv *self, unsigned int addr,
self               22 drivers/net/wireless/st/cw1200/hwbus.h 	int (*hwbus_memcpy_toio)(struct hwbus_priv *self, unsigned int addr,
self               24 drivers/net/wireless/st/cw1200/hwbus.h 	void (*lock)(struct hwbus_priv *self);
self               25 drivers/net/wireless/st/cw1200/hwbus.h 	void (*unlock)(struct hwbus_priv *self);
self               26 drivers/net/wireless/st/cw1200/hwbus.h 	size_t (*align_size)(struct hwbus_priv *self, size_t size);
self               27 drivers/net/wireless/st/cw1200/hwbus.h 	int (*power_mgmt)(struct hwbus_priv *self, bool suspend);
self              590 drivers/net/wireless/st/cw1200/main.c void cw1200_core_release(struct cw1200_common *self)
self              593 drivers/net/wireless/st/cw1200/main.c 	self->hwbus_ops->lock(self->hwbus_priv);
self              594 drivers/net/wireless/st/cw1200/main.c 	__cw1200_irq_enable(self, 0);
self              595 drivers/net/wireless/st/cw1200/main.c 	self->hwbus_ops->unlock(self->hwbus_priv);
self              598 drivers/net/wireless/st/cw1200/main.c 	cw1200_unregister_common(self->hw);
self              599 drivers/net/wireless/st/cw1200/main.c 	cw1200_free_common(self->hw);
self              841 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	int self;
self              856 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	self = sndev->self_partition;
self              857 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	tpart_vec = ioread32(&sndev->mmio_ntb->ntp_info[self].target_part_high);
self              859 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 	tpart_vec |= ioread32(&sndev->mmio_ntb->ntp_info[self].target_part_low);
self             1243 drivers/ntb/ntb_transport.c static int ntb_transport_probe(struct ntb_client *self, struct ntb_dev *ndev)
self             1403 drivers/ntb/ntb_transport.c static void ntb_transport_free(struct ntb_client *self, struct ntb_dev *ndev)
self             1610 drivers/ntb/test/ntb_tool.c static int tool_probe(struct ntb_client *self, struct ntb_dev *ntb)
self             1652 drivers/ntb/test/ntb_tool.c static void tool_remove(struct ntb_client *self, struct ntb_dev *ntb)
self               57 drivers/oprofile/buffer_sync.c task_free_notify(struct notifier_block *self, unsigned long val, void *data)
self               72 drivers/oprofile/buffer_sync.c task_exit_notify(struct notifier_block *self, unsigned long val, void *data)
self               88 drivers/oprofile/buffer_sync.c munmap_notify(struct notifier_block *self, unsigned long val, void *data)
self              115 drivers/oprofile/buffer_sync.c module_load_notify(struct notifier_block *self, unsigned long val, void *data)
self              589 drivers/parisc/dino.c 			if((bus->self->resource[i].flags & 
self              593 drivers/parisc/dino.c 			if(bus->self->resource[i].flags & IORESOURCE_MEM) {
self              600 drivers/parisc/dino.c 				bus->self->resource[i].end = bus->self->resource[i].end - bus->self->resource[i].start + DINO_BRIDGE_ALIGN;
self              601 drivers/parisc/dino.c 				bus->self->resource[i].start = DINO_BRIDGE_ALIGN;
self              606 drivers/parisc/dino.c 			    dev_name(&bus->self->dev), i,
self              607 drivers/parisc/dino.c 			    &bus->self->resource[i]);
self              608 drivers/parisc/dino.c 			WARN_ON(pci_assign_resource(bus->self, i));
self              610 drivers/parisc/dino.c 			    dev_name(&bus->self->dev), i,
self              611 drivers/parisc/dino.c 			    &bus->self->resource[i]);
self              516 drivers/parisc/iosapic.c 		intr_slot = PCI_SLOT(p->self->devfn);
self              696 drivers/parisc/lba_pci.c 	if (bus->self)
self              697 drivers/parisc/lba_pci.c 		pcibios_allocate_bridge_resources(bus->self);
self              846 drivers/parisc/lba_pci.c 			(void) pci_read_config_byte(bus->self, PCI_BRIDGE_CONTROL, &control);
self              847 drivers/parisc/lba_pci.c 			(void) pci_write_config_byte(bus->self, PCI_BRIDGE_CONTROL, control | PCI_STATUS_FAST_BACK);
self              394 drivers/pci/bus.c 			next = bus->self->bus_list.next;
self              395 drivers/pci/bus.c 			bus = bus->self->bus;
self              555 drivers/pci/controller/dwc/pci-keystone.c 		bridge = bus->self;
self              348 drivers/pci/controller/pcie-mediatek.c 		dev = bus->self;
self              127 drivers/pci/hotplug/acpiphp.h 	return func_to_context(func)->hp.self;
self              106 drivers/pci/hotplug/acpiphp_glue.c 	context->hp.self->hp = NULL;
self              191 drivers/pci/hotplug/acpiphp_glue.c 	if (!bus->self)
self              197 drivers/pci/hotplug/acpiphp_glue.c 	pci_read_config_dword(bus->self, PCI_PRIMARY_BUS, &buses);
self              204 drivers/pci/hotplug/acpiphp_glue.c 		pci_write_config_dword(bus->self, PCI_PRIMARY_BUS, buses);
self              478 drivers/pci/hotplug/acpiphp_glue.c 	if (bridge && bus->self && hotplug_is_native(bus->self)) {
self              774 drivers/pci/hotplug/acpiphp_glue.c 	acpi_handle handle = context->hp.self->handle;
self              867 drivers/pci/hotplug/acpiphp_glue.c 	bridge->pci_dev = pci_dev_get(bus->self);
self              278 drivers/pci/hotplug/cpci_hotplug_pci.c 	pci_assign_unassigned_bridge_resources(parent->self);
self              648 drivers/pci/hotplug/pnv_php.c 	php_slot->pdev	                = bus->self;
self              370 drivers/pci/hotplug/rpadlpar_core.c 		 bus->self ? pci_name(bus->self) : "<!PHB!>");
self              398 drivers/pci/hotplug/rpadlpar_core.c 	BUG_ON(!bus->self);
self              399 drivers/pci/hotplug/rpadlpar_core.c 	pr_debug("PCI: Now removing bridge device %s\n", pci_name(bus->self));
self              400 drivers/pci/hotplug/rpadlpar_core.c 	pci_stop_and_remove_bus_device(bus->self);
self              664 drivers/pci/iov.c 	iov->self = dev;
self               40 drivers/pci/of.c 	if (bus->self == NULL) {
self               43 drivers/pci/of.c 		node = of_node_get(bus->self->dev.of_node);
self               45 drivers/pci/of.c 			bus->self->untrusted = true;
self               64 drivers/pci/of.c 	if (WARN_ON(bus->self || bus->parent))
self              398 drivers/pci/of.c 		ppdev = pdev->bus->self;
self             1052 drivers/pci/pci-acpi.c 		if (acpi_pm_device_can_wakeup(&bus->self->dev))
self             1053 drivers/pci/pci-acpi.c 			return acpi_pm_set_bridge_wakeup(&bus->self->dev, enable);
self              878 drivers/pci/pci-driver.c 		if (pci_dev->bus->self)
self              879 drivers/pci/pci-driver.c 			pci_dev->bus->self->skip_bus_pm = true;
self              498 drivers/pci/pci-sysfs.c 			pci_rescan_bus_bridge_resize(bus->self);
self              913 drivers/pci/pci.c 	if (dev->bus->self)
self              914 drivers/pci/pci.c 		pcie_aspm_pm_state_change(dev->bus->self);
self             2077 drivers/pci/pci.c 			bridge = pme_dev->dev->bus->self;
self             2469 drivers/pci/pci.c 		struct pci_dev *bridge = bus->self;
self             3144 drivers/pci/pci.c 	bridge = dev->bus->self;
self             3414 drivers/pci/pci.c 		parent = pdev->bus->self;
self             3560 drivers/pci/pci.c 		bridge = bus->self;
self             3629 drivers/pci/pci.c 		dev = dev->bus->self;
self             3649 drivers/pci/pci.c 		dev = dev->bus->self;
self             4843 drivers/pci/pci.c 	    !dev->bus->self || dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET)
self             4853 drivers/pci/pci.c 	return pci_bridge_secondary_bus_reset(dev->bus->self);
self             5148 drivers/pci/pci.c 	if (bus->self && (bus->self->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET))
self             5215 drivers/pci/pci.c 	if (slot->bus->self &&
self             5216 drivers/pci/pci.c 	    (slot->bus->self->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET))
self             5426 drivers/pci/pci.c 	if (!bus->self || !pci_bus_resetable(bus))
self             5436 drivers/pci/pci.c 	ret = pci_bridge_secondary_bus_reset(bus->self);
self             5507 drivers/pci/pci.c 		rc = pci_bridge_secondary_bus_reset(bus->self);
self             5973 drivers/pci/pci.c 		bridge = bus->self;
self             6072 drivers/pci/pci.c 	struct pci_dev *bridge = dev->bus->self;
self              214 drivers/pci/pci.h 	if (dev->bus->self)
self              215 drivers/pci/pci.h 		parent_dstates = dev->bus->self->no_d1d2;
self              334 drivers/pci/pci.h 	struct pci_dev	*self;		/* This PF */
self              446 drivers/pci/pcie/aspm.c 	link = endpoint->bus->self->link_state;
self              882 drivers/pci/pcie/aspm.c 	    !pdev->bus->parent->self) {
self              887 drivers/pci/pcie/aspm.c 		parent = pdev->bus->parent->self->link_state;
self              928 drivers/pci/pcie/aspm.c 	    pdev->bus->self)
self              996 drivers/pci/pcie/aspm.c 	struct pci_dev *parent = pdev->bus->self;
self             1071 drivers/pci/pcie/aspm.c 	struct pci_dev *parent = pdev->bus->self;
self              198 drivers/pci/pcie/err.c 		dev = dev->bus->self;
self              109 drivers/pci/pcie/pme.c 	dev = pci_dev_get(bus->self);
self              399 drivers/pci/probe.c 	struct pci_dev *dev = child->self;
self              439 drivers/pci/probe.c 	struct pci_dev *dev = child->self;
self              461 drivers/pci/probe.c 	struct pci_dev *dev = child->self;
self              514 drivers/pci/probe.c 	struct pci_dev *dev = child->self;
self              719 drivers/pci/probe.c 	struct pci_dev *bridge = bus->self;
self              816 drivers/pci/probe.c 		if (b->self)
self              817 drivers/pci/probe.c 			d = dev_get_msi_domain(&b->self->dev);
self             1016 drivers/pci/probe.c 	child->self = bridge;
self             2243 drivers/pci/probe.c 	struct pci_dev *bridge = bus->self;
self             2492 drivers/pci/probe.c 	struct pci_dev *bridge = bus->self;
self             2547 drivers/pci/probe.c 	if (bus->self && nr)
self             2548 drivers/pci/probe.c 		pcie_aspm_init_link_state(bus->self);
self             2594 drivers/pci/probe.c 		    dev->bus->self)
self             2609 drivers/pci/probe.c 			mps = min(mps, pcie_get_mps(dev->bus->self));
self             2688 drivers/pci/probe.c 	if (!bus->self)
self             2691 drivers/pci/probe.c 	if (!pci_is_pcie(bus->self))
self             2703 drivers/pci/probe.c 		smpss = bus->self->pcie_mpss;
self             2705 drivers/pci/probe.c 		pcie_find_smpss(bus->self, &smpss);
self             2709 drivers/pci/probe.c 	pcie_bus_configure_set(bus->self, &smpss);
self             2843 drivers/pci/probe.c 	if (bus->self && bus->self->is_hotplug_bridge) {
self             4113 drivers/pci/quirks.c 	    !pci_is_pcie(pdev) && pci_is_pcie(pdev->bus->self) &&
self             4114 drivers/pci/quirks.c 	    pci_pcie_type(pdev->bus->self) != PCI_EXP_TYPE_PCI_BRIDGE)
self             5330 drivers/pci/quirks.c 	struct pci_dev *bridge = bus->self;
self               58 drivers/pci/search.c 		if (!bus->self)
self               61 drivers/pci/search.c 		tmp = bus->self;
self              506 drivers/pci/setup-bus.c 	struct pci_dev *bridge = bus->self;
self              665 drivers/pci/setup-bus.c 	struct pci_dev *bridge = bus->self;
self              737 drivers/pci/setup-bus.c 	struct pci_dev *bridge = bus->self;
self              841 drivers/pci/setup-bus.c 		if (bus->self->io_window_1k)
self              912 drivers/pci/setup-bus.c 			pci_info(bus->self, "disabling bridge window %pR to %pR (unused)\n",
self              922 drivers/pci/setup-bus.c 		add_to_list(realloc_head, bus->self, b_res, size1-size0,
self              924 drivers/pci/setup-bus.c 		pci_info(bus->self, "bridge window %pR to %pR add_size %llx\n",
self             1061 drivers/pci/setup-bus.c 			pci_info(bus->self, "disabling bridge window %pR to %pR (unused)\n",
self             1070 drivers/pci/setup-bus.c 		add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align);
self             1071 drivers/pci/setup-bus.c 		pci_info(bus->self, "bridge window %pR to %pR add_size %llx add_align %llx\n",
self             1091 drivers/pci/setup-bus.c 	struct pci_dev *bridge = bus->self;
self             1206 drivers/pci/setup-bus.c 	switch (bus->self->hdr_type) {
self             1213 drivers/pci/setup-bus.c 		if (bus->self->is_hotplug_bridge) {
self             1227 drivers/pci/setup-bus.c 		b_res = &bus->self->resource[PCI_BRIDGE_RESOURCES];
self             1434 drivers/pci/setup-bus.c 	if (b->self) {
self             1436 drivers/pci/setup-bus.c 		pci_claim_bridge_resources(b->self);
self             1488 drivers/pci/setup-bus.c 	struct pci_dev *dev = bus->self;
self             1578 drivers/pci/setup-bus.c 	if ((bus->self->class >> 8) != PCI_CLASS_BRIDGE_PCI)
self             1857 drivers/pci/setup-bus.c 	struct pci_dev *dev, *bridge = bus->self;
self             2112 drivers/pci/setup-bus.c 		next = bridge->bus ? bridge->bus->self : NULL;
self              301 drivers/pci/setup-res.c 		if (!bus->parent || !bus->self->transparent)
self              442 drivers/pci/setup-res.c 	ret = pci_reassign_bridge_resources(dev->bus->self, res->flags);
self              126 drivers/pci/vc.c 	pos2 = pci_find_ext_capability(dev->bus->self, PCI_EXT_CAP_ID_VC);
self              130 drivers/pci/vc.c 	pci_read_config_dword(dev->bus->self, pos2 + PCI_VC_PORT_CAP1, &cap1);
self              139 drivers/pci/vc.c 		pci_read_config_dword(dev->bus->self, ctrl_pos2, &ctrl2);
self              141 drivers/pci/vc.c 			link = dev->bus->self;
self             1135 drivers/pcmcia/yenta_socket.c 		pci_write_config_byte(bridge_to_fix->self,
self             1159 drivers/power/supply/charger-manager.c static int charger_extcon_notifier(struct notifier_block *self,
self             1163 drivers/power/supply/charger-manager.c 		container_of(self, struct charger_cable, nb);
self              871 drivers/s390/char/con3215.c static int con3215_notify(struct notifier_block *self,
self              563 drivers/s390/char/con3270.c static int con3270_notify(struct notifier_block *self,
self             1223 drivers/s390/char/sclp.c static int sclp_panic_notify(struct notifier_block *self,
self              263 drivers/s390/char/sclp_con.c static int sclp_console_notify(struct notifier_block *self,
self              854 drivers/s390/char/sclp_vt220.c sclp_vt220_notify(struct notifier_block *self,
self             2256 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cxgb4_dcb_change_notify(struct notifier_block *self, unsigned long val,
self             1321 drivers/scsi/stex.c 	pci_read_config_byte(bus->self, PCI_BRIDGE_CONTROL, &pci_bctl);
self             1323 drivers/scsi/stex.c 	pci_write_config_byte(bus->self, PCI_BRIDGE_CONTROL, pci_bctl);
self             1331 drivers/scsi/stex.c 	pci_write_config_byte(bus->self, PCI_BRIDGE_CONTROL, pci_bctl);
self             2054 drivers/staging/fwserial/fwserial.c 		serial->self = peer;
self             2102 drivers/staging/fwserial/fwserial.c 	if (peer == peer->serial->self)
self             2103 drivers/staging/fwserial/fwserial.c 		peer->serial->self = NULL;
self              329 drivers/staging/fwserial/fwserial.h 	struct fwtty_peer *self;
self             1352 drivers/staging/octeon-usb/octeon-hcd.c 	struct device *dev = hcd->self.controller;
self             1965 drivers/staging/octeon-usb/octeon-hcd.c 	struct device *dev = hcd->self.controller;
self             2597 drivers/staging/octeon-usb/octeon-hcd.c 	struct device *dev = hcd->self.controller;
self             3070 drivers/staging/octeon-usb/octeon-hcd.c 	struct device *dev = hcd->self.controller;
self             3271 drivers/staging/octeon-usb/octeon-hcd.c 	struct device *dev = hcd->self.controller;
self             3305 drivers/staging/octeon-usb/octeon-hcd.c 	struct device *dev = hcd->self.controller;
self             3674 drivers/staging/octeon-usb/octeon-hcd.c 	device_wakeup_enable(hcd->self.controller);
self              154 drivers/staging/wusbcore/host/hwa-hc.c 	pm_runtime_get_noresume(&usb_hcd->self.root_hub->dev);
self              801 drivers/staging/wusbcore/host/hwa-hc.c 	usb_hcd->self.sg_tablesize = ~0;
self              815 drivers/staging/wusbcore/host/hwa-hc.c 	device_wakeup_enable(usb_hcd->self.controller);
self              241 drivers/staging/wusbcore/host/whci/hcd.c 	usb_hcd->self.sg_tablesize = 2048; /* somewhat arbitrary */
self              285 drivers/staging/wusbcore/host/whci/hcd.c 	device_wakeup_enable(usb_hcd->self.controller);
self               30 drivers/staging/wusbcore/pal.c 	wusbhc->pal.device = wusbhc->usb_hcd.self.controller;
self              286 drivers/staging/wusbcore/wusbhc.c 	return &wusbhc->usb_hcd.self.controller->kobj;
self              302 drivers/staging/wusbcore/wusbhc.c 	struct device *dev = wusbhc->usb_hcd.self.controller;
self              373 drivers/usb/c67x00/c67x00-hcd.c 	device_wakeup_enable(hcd->self.controller);
self              117 drivers/usb/c67x00/c67x00-hcd.h #define c67x00_hcd_dev(x)	(c67x00_hcd_to_hcd(x)->self.controller)
self               36 drivers/usb/chipidea/host.c 	struct device *dev = hcd->self.controller;
self               73 drivers/usb/chipidea/host.c 	struct device *dev = hcd->self.controller;
self              172 drivers/usb/chipidea/host.c 			otg->host = &hcd->self;
self              173 drivers/usb/chipidea/host.c 			hcd->self.otg_port = 1;
self              240 drivers/usb/chipidea/host.c 	struct device *dev = hcd->self.controller;
self              302 drivers/usb/chipidea/host.c 	struct device *dev = hcd->self.controller;
self               77 drivers/usb/core/buffer.c 		hcd->pool[i] = dma_pool_create(name, hcd->self.sysdev,
self              139 drivers/usb/core/buffer.c 	return dma_alloc_coherent(hcd->self.sysdev, size, dma, mem_flags);
self              171 drivers/usb/core/buffer.c 	dma_free_coherent(hcd->self.sysdev, size, addr, dma);
self              262 drivers/usb/core/devio.c 		if (dma_mmap_coherent(hcd->self.sysdev, vma, mem, dma_handle,
self             2773 drivers/usb/core/devio.c static int usbdev_notify(struct notifier_block *self,
self               73 drivers/usb/core/hcd-pci.c 		if (!companion_hcd || !companion_hcd->self.root_hub)
self               91 drivers/usb/core/hcd-pci.c 		udev = companion_hcd->self.root_hub;
self              111 drivers/usb/core/hcd-pci.c 			companion_hcd->self.hs_companion = &hcd->self;
self              113 drivers/usb/core/hcd-pci.c 		udev = companion_hcd->self.root_hub;
self              129 drivers/usb/core/hcd-pci.c 		hcd->self.hs_companion = &companion_hcd->self;
self              138 drivers/usb/core/hcd-pci.c 		companion_hcd->self.hs_companion = NULL;
self              280 drivers/usb/core/hcd-pci.c 	device_wakeup_enable(hcd->self.controller);
self              339 drivers/usb/core/hcd-pci.c 		hcd->self.hs_companion = NULL;
self              455 drivers/usb/core/hcd.c 		s = hcd->self.bus_name;
self              544 drivers/usb/core/hcd.c 		tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev)
self              552 drivers/usb/core/hcd.c 			device_set_wakeup_enable(&hcd->self.root_hub->dev, 0);
self              557 drivers/usb/core/hcd.c 		if (device_can_wakeup(&hcd->self.root_hub->dev)
self              559 drivers/usb/core/hcd.c 			device_set_wakeup_enable(&hcd->self.root_hub->dev, 1);
self              616 drivers/usb/core/hcd.c 			if (device_can_wakeup(&hcd->self.root_hub->dev))
self              640 drivers/usb/core/hcd.c 		dev_dbg (hcd->self.controller, "root hub device address %d\n",
self              656 drivers/usb/core/hcd.c 		dev_dbg (hcd->self.controller, "no endpoint features yet\n");
self              687 drivers/usb/core/hcd.c 			usb_hub_adjust_deviceremovable(hcd->self.root_hub,
self              698 drivers/usb/core/hcd.c 			dev_dbg (hcd->self.controller,
self              813 drivers/usb/core/hcd.c 		dev_dbg (hcd->self.controller, "not queuing rh status urb\n");
self              975 drivers/usb/core/hcd.c 	struct device *parent_dev = hcd->self.controller;
self              976 drivers/usb/core/hcd.c 	struct usb_device *usb_dev = hcd->self.root_hub;
self             1326 drivers/usb/core/hcd.c 		dma_unmap_single(hcd->self.sysdev,
self             1359 drivers/usb/core/hcd.c 		dma_unmap_sg(hcd->self.sysdev,
self             1365 drivers/usb/core/hcd.c 		dma_unmap_page(hcd->self.sysdev,
self             1371 drivers/usb/core/hcd.c 		dma_unmap_single(hcd->self.sysdev,
self             1410 drivers/usb/core/hcd.c 		if (hcd->self.uses_pio_for_control)
self             1432 drivers/usb/core/hcd.c 					hcd->self.sysdev,
self             1436 drivers/usb/core/hcd.c 			if (dma_mapping_error(hcd->self.sysdev,
self             1466 drivers/usb/core/hcd.c 						hcd->self.sysdev,
self             1481 drivers/usb/core/hcd.c 						hcd->self.sysdev,
self             1486 drivers/usb/core/hcd.c 				if (dma_mapping_error(hcd->self.sysdev,
self             1499 drivers/usb/core/hcd.c 						hcd->self.sysdev,
self             1503 drivers/usb/core/hcd.c 				if (dma_mapping_error(hcd->self.sysdev,
self             1537 drivers/usb/core/hcd.c 	usbmon_urb_submit(&hcd->self, urb);
self             1559 drivers/usb/core/hcd.c 		usbmon_urb_submit_error(&hcd->self, urb, status);
self             1646 drivers/usb/core/hcd.c 	usbmon_urb_complete(&hcd->self, urb, status);
self             1776 drivers/usb/core/hcd.c 		dev_dbg (hcd->self.controller,
self             2136 drivers/usb/core/hcd.c 			usb_phy_roothub_suspend(hcd->self.sysdev,
self             2177 drivers/usb/core/hcd.c 		status = usb_phy_roothub_resume(hcd->self.sysdev,
self             2223 drivers/usb/core/hcd.c 		usb_phy_roothub_suspend(hcd->self.sysdev, hcd->phy_roothub);
self             2236 drivers/usb/core/hcd.c 	struct usb_device *udev = hcd->self.root_hub;
self             2256 drivers/usb/core/hcd.c 		pm_wakeup_event(&hcd->self.root_hub->dev, 0);
self             2347 drivers/usb/core/hcd.c 	kobject_uevent_env(&hcd->self.root_hub->dev.kobj, KOBJ_OFFLINE, env);
self             2364 drivers/usb/core/hcd.c 	dev_err (hcd->self.controller, "HC died; cleaning up\n");
self             2373 drivers/usb/core/hcd.c 		usb_set_device_state (hcd->self.root_hub,
self             2375 drivers/usb/core/hcd.c 		usb_kick_hub_wq(hcd->self.root_hub);
self             2385 drivers/usb/core/hcd.c 			usb_set_device_state(hcd->self.root_hub,
self             2387 drivers/usb/core/hcd.c 			usb_kick_hub_wq(hcd->self.root_hub);
self             2453 drivers/usb/core/hcd.c 	usb_bus_init(&hcd->self);
self             2454 drivers/usb/core/hcd.c 	hcd->self.controller = dev;
self             2455 drivers/usb/core/hcd.c 	hcd->self.sysdev = sysdev;
self             2456 drivers/usb/core/hcd.c 	hcd->self.bus_name = bus_name;
self             2584 drivers/usb/core/hcd.c 				hcd->driver->description, hcd->self.busnum);
self             2588 drivers/usb/core/hcd.c 			dev_err(hcd->self.controller,
self             2594 drivers/usb/core/hcd.c 		dev_info(hcd->self.controller, "irq %d, %s 0x%08llx\n", irqnum,
self             2601 drivers/usb/core/hcd.c 			dev_info(hcd->self.controller, "%s 0x%08llx\n",
self             2618 drivers/usb/core/hcd.c 	rhdev = hcd->self.root_hub;
self             2619 drivers/usb/core/hcd.c 	hcd->self.root_hub = NULL;
self             2641 drivers/usb/core/hcd.c 		hcd->phy_roothub = usb_phy_roothub_alloc(hcd->self.sysdev);
self             2662 drivers/usb/core/hcd.c 	dev_info(hcd->self.controller, "%s\n", hcd->product_desc);
self             2695 drivers/usb/core/hcd.c 		dev_dbg(hcd->self.sysdev, "pool alloc failed\n");
self             2699 drivers/usb/core/hcd.c 	retval = usb_register_bus(&hcd->self);
self             2703 drivers/usb/core/hcd.c 	rhdev = usb_alloc_dev(NULL, &hcd->self, 0);
self             2705 drivers/usb/core/hcd.c 		dev_err(hcd->self.sysdev, "unable to allocate root hub\n");
self             2710 drivers/usb/core/hcd.c 	hcd->self.root_hub = rhdev;
self             2759 drivers/usb/core/hcd.c 			dev_err(hcd->self.controller, "can't setup: %d\n",
self             2771 drivers/usb/core/hcd.c 	if (device_can_wakeup(hcd->self.controller)
self             2772 drivers/usb/core/hcd.c 			&& device_can_wakeup(&hcd->self.root_hub->dev))
self             2773 drivers/usb/core/hcd.c 		dev_dbg(hcd->self.controller, "supports USB remote wakeup\n");
self             2791 drivers/usb/core/hcd.c 		dev_err(hcd->self.controller, "startup error %d\n", retval);
self             2821 drivers/usb/core/hcd.c 	usb_deregister_bus(&hcd->self);
self             2843 drivers/usb/core/hcd.c 	struct usb_device *rhdev = hcd->self.root_hub;
self             2845 drivers/usb/core/hcd.c 	dev_info(hcd->self.controller, "remove, state %x\n", hcd->state);
self             2852 drivers/usb/core/hcd.c 	dev_dbg(hcd->self.controller, "roothub graceful disconnect\n");
self             2897 drivers/usb/core/hcd.c 	usb_deregister_bus(&hcd->self);
self             2927 drivers/usb/core/hcd.c 	hcd->localmem_pool = devm_gen_pool_create(hcd->self.sysdev, 4,
self             2928 drivers/usb/core/hcd.c 						  dev_to_node(hcd->self.sysdev),
self             2929 drivers/usb/core/hcd.c 						  dev_name(hcd->self.sysdev));
self             2933 drivers/usb/core/hcd.c 	local_mem = devm_memremap(hcd->self.sysdev, phys_addr,
self             2944 drivers/usb/core/hcd.c 				dma, size, dev_to_node(hcd->self.sysdev));
self             2946 drivers/usb/core/hcd.c 		dev_err(hcd->self.sysdev, "gen_pool_add_virt failed with %d\n",
self             3113 drivers/usb/core/hub.c 	if (!usb_device_supports_ltm(hcd->self.root_hub) ||
self             3135 drivers/usb/core/hub.c 	if (!usb_device_supports_ltm(hcd->self.root_hub) ||
self              502 drivers/usb/core/port.c 		peer_hdev = peer_hcd->self.root_hub;
self              501 drivers/usb/dwc2/hcd.c 	hcd->self.is_b_host = dwc2_hcd_is_b_host(hsotg);
self              509 drivers/usb/dwc2/hcd.c 	hcd->self.is_b_host = 0;
self             3276 drivers/usb/dwc2/hcd.c 	return hcd->self.b_hnp_enable;
self             5217 drivers/usb/dwc2/hcd.c 	hcd->self.otg_port = hsotg->otg_port;
self             5220 drivers/usb/dwc2/hcd.c 	hcd->self.sg_tablesize = 0;
self             5223 drivers/usb/dwc2/hcd.c 		otg_set_host(hsotg->uphy->otg, &hcd->self);
self             5234 drivers/usb/dwc2/hcd.c 	device_wakeup_enable(hcd->self.controller);
self             5592 drivers/usb/dwc2/hcd.c 	struct usb_device *root_hub = dwc2_hsotg_to_hcd(dwc2)->self.root_hub;
self              101 drivers/usb/dwc2/hcd_intr.c 	struct usb_device *root_hub = dwc2_hsotg_to_hcd(hsotg)->self.root_hub;
self              297 drivers/usb/gadget/udc/dummy_hcd.c 	return dummy_hcd_to_hcd(dum)->self.controller;
self             2330 drivers/usb/gadget/udc/dummy_hcd.c 	dev_dbg(&hcd->self.root_hub->dev, "%s\n", __func__);
self             2345 drivers/usb/gadget/udc/dummy_hcd.c 	dev_dbg(&hcd->self.root_hub->dev, "%s\n", __func__);
self             2440 drivers/usb/gadget/udc/dummy_hcd.c 	dummy_hcd_to_hcd(dum_hcd)->self.otg_port = 1;
self             2471 drivers/usb/gadget/udc/dummy_hcd.c 	hcd->self.otg_port = 1;
self             2495 drivers/usb/gadget/udc/dummy_hcd.c 	dum = *((void **)dev_get_platdata(hcd->self.controller));
self             2496 drivers/usb/gadget/udc/dummy_hcd.c 	hcd->self.sg_tablesize = ~0;
self             2506 drivers/usb/gadget/udc/dummy_hcd.c 		hcd->self.root_hub->speed = USB_SPEED_HIGH;
self             2511 drivers/usb/gadget/udc/dummy_hcd.c 		hcd->self.root_hub->speed = USB_SPEED_SUPER;
self               87 drivers/usb/gadget/udc/snps_udc_plat.c static int usbd_connect_notify(struct notifier_block *self,
self               90 drivers/usb/gadget/udc/snps_udc_plat.c 	struct udc *udc = container_of(self, struct udc, nb);
self              155 drivers/usb/host/ehci-atmel.c 	device_wakeup_enable(hcd->self.controller);
self              777 drivers/usb/host/ehci-dbg.c 			hcd->self.controller->bus->name,
self              778 drivers/usb/host/ehci-dbg.c 			dev_name(hcd->self.controller),
self              789 drivers/usb/host/ehci-dbg.c 		hcd->self.controller->bus->name,
self              790 drivers/usb/host/ehci-dbg.c 		dev_name(hcd->self.controller),
self              798 drivers/usb/host/ehci-dbg.c 	if (dev_is_pci(hcd->self.controller)) {
self              803 drivers/usb/host/ehci-dbg.c 		pdev = to_pci_dev(ehci_to_hcd(ehci)->self.controller);
self             1028 drivers/usb/host/ehci-dbg.c 	struct usb_bus *bus = &ehci_to_hcd(ehci)->self;
self              237 drivers/usb/host/ehci-exynos.c 	device_wakeup_enable(hcd->self.controller);
self              149 drivers/usb/host/ehci-fsl.c 	device_wakeup_enable(hcd->self.controller);
self              161 drivers/usb/host/ehci-fsl.c 					      &ehci_to_hcd(ehci)->self);
self              204 drivers/usb/host/ehci-fsl.c 	struct device *dev = hcd->self.controller;
self              208 drivers/usb/host/ehci-fsl.c 		dev_warn(hcd->self.controller, "Could not get controller version\n");
self              285 drivers/usb/host/ehci-fsl.c 		dev_warn(hcd->self.controller, "USB PHY clock invalid\n");
self              307 drivers/usb/host/ehci-fsl.c 	pdata = dev_get_platdata(hcd->self.controller);
self              382 drivers/usb/host/ehci-fsl.c 	dev = hcd->self.controller;
self              383 drivers/usb/host/ehci-fsl.c 	pdata = dev_get_platdata(hcd->self.controller);
self              618 drivers/usb/host/ehci-fsl.c 	usb_root_hub_lost_power(hcd->self.root_hub);
self              633 drivers/usb/host/ehci-fsl.c 	usb_root_hub_lost_power(hcd->self.root_hub);
self              131 drivers/usb/host/ehci-grlib.c 	device_wakeup_enable(hcd->self.controller);
self              563 drivers/usb/host/ehci-hcd.c 		hcd->self.sg_tablesize = ~0;
self              601 drivers/usb/host/ehci-hcd.c 		if (!dma_set_mask(hcd->self.controller, DMA_BIT_MASK(64)))
self              805 drivers/usb/host/ehci-hcd.c 			usb_hcd_start_port_resume(&hcd->self, i);
self             1146 drivers/usb/host/ehci-hcd.c 		if (!hcd->self.root_hub->do_remote_wakeup)
self             1159 drivers/usb/host/ehci-hcd.c 	usb_root_hub_lost_power(hcd->self.root_hub);
self              158 drivers/usb/host/ehci-hub.c 	if (!ehci_to_hcd(ehci)->self.root_hub->do_remote_wakeup || do_wakeup)
self              239 drivers/usb/host/ehci-hub.c 	if (hcd->self.root_hub->do_remote_wakeup) {
self              271 drivers/usb/host/ehci-hub.c 		if (hcd->self.root_hub->do_remote_wakeup) {
self              357 drivers/usb/host/ehci-hub.c 	if (!hcd->self.root_hub->do_remote_wakeup)
self              785 drivers/usb/host/ehci-hub.c 			hcd->self.sysdev,
self              790 drivers/usb/host/ehci-hub.c 			hcd->self.sysdev,
self              809 drivers/usb/host/ehci-hub.c 	udev = usb_hub_find_child(hcd->self.root_hub, port);
self              940 drivers/usb/host/ehci-hub.c 			if ((hcd->self.otg_port == (wIndex + 1))
self              941 drivers/usb/host/ehci-hub.c 			    && hcd->self.b_hnp_enable) {
self              966 drivers/usb/host/ehci-hub.c 			usb_hcd_start_port_resume(&hcd->self, wIndex);
self             1041 drivers/usb/host/ehci-hub.c 				usb_hcd_start_port_resume(&hcd->self, wIndex);
self             1057 drivers/usb/host/ehci-hub.c 			usb_hcd_end_port_resume(&hcd->self, wIndex);
self             1133 drivers/usb/host/ehci-hub.c 			usb_hcd_end_port_resume(&hcd->self, wIndex);
self              128 drivers/usb/host/ehci-mem.c 		dma_free_coherent(ehci_to_hcd(ehci)->self.sysdev,
self              145 drivers/usb/host/ehci-mem.c 			ehci_to_hcd(ehci)->self.sysdev,
self              155 drivers/usb/host/ehci-mem.c 			ehci_to_hcd(ehci)->self.sysdev,
self              169 drivers/usb/host/ehci-mem.c 			ehci_to_hcd(ehci)->self.sysdev,
self              179 drivers/usb/host/ehci-mem.c 			ehci_to_hcd(ehci)->self.sysdev,
self              189 drivers/usb/host/ehci-mem.c 		dma_alloc_coherent(ehci_to_hcd(ehci)->self.sysdev,
self               68 drivers/usb/host/ehci-mv.c 	struct device *dev = hcd->self.controller;
self              183 drivers/usb/host/ehci-mv.c 		retval = otg_set_host(ehci_mv->otg->otg, &hcd->self);
self              202 drivers/usb/host/ehci-mv.c 		device_wakeup_enable(hcd->self.controller);
self              138 drivers/usb/host/ehci-mxc.c 	device_wakeup_enable(hcd->self.controller);
self              151 drivers/usb/host/ehci-npcm7xx.c 	device_wakeup_enable(hcd->self.controller);
self              201 drivers/usb/host/ehci-omap.c 	device_wakeup_enable(hcd->self.controller);
self              165 drivers/usb/host/ehci-orion.c 	struct device *dev = hcd->self.controller;
self              308 drivers/usb/host/ehci-orion.c 	device_wakeup_enable(hcd->self.controller);
self               90 drivers/usb/host/ehci-pci.c 	struct pci_dev		*pdev = to_pci_dev(hcd->self.controller);
self              338 drivers/usb/host/ehci-pci.c 	struct pci_dev		*pdev = to_pci_dev(hcd->self.controller);
self               53 drivers/usb/host/ehci-platform.c 	struct platform_device *pdev = to_platform_device(hcd->self.controller);
self              246 drivers/usb/host/ehci-platform.c 	device_wakeup_enable(hcd->self.controller);
self              247 drivers/usb/host/ehci-platform.c 	device_enable_async_suspend(hcd->self.controller);
self              327 drivers/usb/host/ehci-platform.c 	companion_dev = usb_of_get_companion_dev(hcd->self.controller);
self              329 drivers/usb/host/ehci-platform.c 		device_pm_wait_for_dev(hcd->self.controller, companion_dev);
self              207 drivers/usb/host/ehci-pmcmsp.c 		device_wakeup_enable(hcd->self.controller);
self              174 drivers/usb/host/ehci-ppc-of.c 	device_wakeup_enable(hcd->self.controller);
self              182 drivers/usb/host/ehci-ps3.c 	device_wakeup_enable(hcd->self.controller);
self              175 drivers/usb/host/ehci-q.c 				   ehci_to_hcd(ehci)->self.root_hub) {
self              255 drivers/usb/host/ehci-q.c 		ehci_to_hcd(ehci)->self.bandwidth_int_reqs--;
self              902 drivers/usb/host/ehci-q.c 		if (tt && tt->hub != ehci_to_hcd(ehci)->self.root_hub)
self              590 drivers/usb/host/ehci-sched.c 	ehci_to_hcd(ehci)->self.bandwidth_allocated += qh->ps.bw_period
self              628 drivers/usb/host/ehci-sched.c 	ehci_to_hcd(ehci)->self.bandwidth_allocated -= qh->ps.bw_period
self              969 drivers/usb/host/ehci-sched.c 	ehci_to_hcd(ehci)->self.bandwidth_int_reqs++;
self             1091 drivers/usb/host/ehci-sched.c 					ehci_to_hcd(ehci)->self.root_hub))
self             1765 drivers/usb/host/ehci-sched.c 		ehci_to_hcd(ehci)->self.bandwidth_allocated
self             1768 drivers/usb/host/ehci-sched.c 	if (ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs == 0) {
self             1773 drivers/usb/host/ehci-sched.c 	ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs++;
self             1895 drivers/usb/host/ehci-sched.c 	ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs--;
self             1896 drivers/usb/host/ehci-sched.c 	if (ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs == 0) {
self             1902 drivers/usb/host/ehci-sched.c 		ehci_to_hcd(ehci)->self.bandwidth_allocated
self             2167 drivers/usb/host/ehci-sched.c 		ehci_to_hcd(ehci)->self.bandwidth_allocated
self             2170 drivers/usb/host/ehci-sched.c 	if (ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs == 0) {
self             2175 drivers/usb/host/ehci-sched.c 	ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs++;
self             2275 drivers/usb/host/ehci-sched.c 	ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs--;
self             2276 drivers/usb/host/ehci-sched.c 	if (ehci_to_hcd(ehci)->self.bandwidth_isoc_reqs == 0) {
self             2282 drivers/usb/host/ehci-sched.c 		ehci_to_hcd(ehci)->self.bandwidth_allocated
self              138 drivers/usb/host/ehci-sh.c 	device_wakeup_enable(hcd->self.controller);
self              118 drivers/usb/host/ehci-spear.c 	device_wakeup_enable(hcd->self.controller);
self               52 drivers/usb/host/ehci-st.c 	struct platform_device *pdev = to_platform_device(hcd->self.controller);
self              240 drivers/usb/host/ehci-st.c 	device_wakeup_enable(hcd->self.controller);
self              151 drivers/usb/host/ehci-sysfs.c 	struct device	*controller = ehci_to_hcd(ehci)->self.controller;
self              167 drivers/usb/host/ehci-sysfs.c 	struct device	*controller = ehci_to_hcd(ehci)->self.controller;
self              496 drivers/usb/host/ehci-tegra.c 	otg_set_host(u_phy->otg, &hcd->self);
self              503 drivers/usb/host/ehci-tegra.c 	device_wakeup_enable(hcd->self.controller);
self               38 drivers/usb/host/ehci-xilinx-of.c 	dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum);
self               40 drivers/usb/host/ehci-xilinx-of.c 		dev_warn(hcd->self.controller,
self               43 drivers/usb/host/ehci-xilinx-of.c 		dev_warn(hcd->self.controller,
self               46 drivers/usb/host/ehci-xilinx-of.c 		dev_warn(hcd->self.controller,
self               48 drivers/usb/host/ehci-xilinx-of.c 		dev_warn(hcd->self.controller,
self               51 drivers/usb/host/ehci-xilinx-of.c 		dev_warn(hcd->self.controller,
self              183 drivers/usb/host/ehci-xilinx-of.c 		device_wakeup_enable(hcd->self.controller);
self              860 drivers/usb/host/ehci.h 	dev_dbg(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
self              862 drivers/usb/host/ehci.h 	dev_err(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
self              864 drivers/usb/host/ehci.h 	dev_info(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
self              866 drivers/usb/host/ehci.h 	dev_warn(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
self               83 drivers/usb/host/fhci-dbg.c 	struct device *dev = fhci_to_hcd(fhci)->self.controller;
self              590 drivers/usb/host/fhci-hcd.c 	hcd->self.controller = dev;
self              751 drivers/usb/host/fhci-hcd.c 	device_wakeup_enable(hcd->self.controller);
self              452 drivers/usb/host/fhci.h 		dev_dbg(fhci_to_hcd(fhci)->self.controller, fmt, ##args)
self              454 drivers/usb/host/fhci.h 		dev_vdbg(fhci_to_hcd(fhci)->self.controller, fmt, ##args)
self              456 drivers/usb/host/fhci.h 		dev_err(fhci_to_hcd(fhci)->self.controller, fmt, ##args)
self              458 drivers/usb/host/fhci.h 		dev_info(fhci_to_hcd(fhci)->self.controller, fmt, ##args)
self              460 drivers/usb/host/fhci.h 		dev_warn(fhci_to_hcd(fhci)->self.controller, fmt, ##args)
self               82 drivers/usb/host/fotg210-hcd.c 	dev_dbg(fotg210_to_hcd(fotg210)->self.controller, fmt, ## args)
self               84 drivers/usb/host/fotg210-hcd.c 	dev_err(fotg210_to_hcd(fotg210)->self.controller, fmt, ## args)
self               86 drivers/usb/host/fotg210-hcd.c 	dev_info(fotg210_to_hcd(fotg210)->self.controller, fmt, ## args)
self               88 drivers/usb/host/fotg210-hcd.c 	dev_warn(fotg210_to_hcd(fotg210)->self.controller, fmt, ## args)
self              661 drivers/usb/host/fotg210-hcd.c 				hcd->self.controller->bus->name,
self              662 drivers/usb/host/fotg210-hcd.c 				dev_name(hcd->self.controller),
self              674 drivers/usb/host/fotg210-hcd.c 			hcd->self.controller->bus->name,
self              675 drivers/usb/host/fotg210-hcd.c 			dev_name(hcd->self.controller),
self              848 drivers/usb/host/fotg210-hcd.c 	struct usb_bus *bus = &fotg210_to_hcd(fotg210)->self;
self             1909 drivers/usb/host/fotg210-hcd.c 		dma_free_coherent(fotg210_to_hcd(fotg210)->self.controller,
self             1926 drivers/usb/host/fotg210-hcd.c 			fotg210_to_hcd(fotg210)->self.controller,
self             1935 drivers/usb/host/fotg210-hcd.c 			fotg210_to_hcd(fotg210)->self.controller,
self             1948 drivers/usb/host/fotg210-hcd.c 			fotg210_to_hcd(fotg210)->self.controller,
self             1957 drivers/usb/host/fotg210-hcd.c 		dma_alloc_coherent(fotg210_to_hcd(fotg210)->self.controller,
self             2130 drivers/usb/host/fotg210-hcd.c 				fotg210_to_hcd(fotg210)->self.root_hub) {
self             2208 drivers/usb/host/fotg210-hcd.c 			fotg210_to_hcd(fotg210)->self.bandwidth_int_reqs--;
self             2835 drivers/usb/host/fotg210-hcd.c 		if (tt && tt->hub != fotg210_to_hcd(fotg210)->self.root_hub)
self             3539 drivers/usb/host/fotg210-hcd.c 	fotg210_to_hcd(fotg210)->self.bandwidth_allocated += qh->period
self             3580 drivers/usb/host/fotg210-hcd.c 	fotg210_to_hcd(fotg210)->self.bandwidth_allocated -= qh->period
self             3865 drivers/usb/host/fotg210-hcd.c 	fotg210_to_hcd(fotg210)->self.bandwidth_int_reqs++;
self             4366 drivers/usb/host/fotg210-hcd.c 		fotg210_to_hcd(fotg210)->self.bandwidth_allocated
self             4499 drivers/usb/host/fotg210-hcd.c 		fotg210_to_hcd(fotg210)->self.bandwidth_allocated
self             4773 drivers/usb/host/fotg210-hcd.c 	struct device *controller = fotg210_to_hcd(fotg210)->self.controller;
self             4780 drivers/usb/host/fotg210-hcd.c 	struct device *controller = fotg210_to_hcd(fotg210)->self.controller;
self             5004 drivers/usb/host/fotg210-hcd.c 		hcd->self.sg_tablesize = ~0;
self             5643 drivers/usb/host/fotg210-hcd.c 	device_wakeup_enable(hcd->self.controller);
self             1899 drivers/usb/host/imx21-hcd.c 	device_wakeup_enable(hcd->self.controller);
self              335 drivers/usb/host/isp116x-hcd.c 	isp116x_to_hcd(isp116x)->self.bandwidth_allocated -=
self              812 drivers/usb/host/isp116x-hcd.c 		hcd->self.bandwidth_allocated += ep->load / ep->period;
self             1359 drivers/usb/host/isp116x-hcd.c 		if (!device_can_wakeup(hcd->self.controller))
self             1360 drivers/usb/host/isp116x-hcd.c 			device_init_wakeup(hcd->self.controller, 1);
self             1410 drivers/usb/host/isp116x-hcd.c 		if (hcd->self.root_hub->do_remote_wakeup)
self             1635 drivers/usb/host/isp116x-hcd.c 	device_wakeup_enable(hcd->self.controller);
self              348 drivers/usb/host/isp116x.h 				isp116x_to_hcd(h)->self.controller,d)
self             1862 drivers/usb/host/isp1362-hcd.c 			hcd->self.root_hub->dev.power.power_state = PMSG_ON;
self             1906 drivers/usb/host/isp1362-hcd.c 	hcd->self.root_hub->dev.power.power_state = PMSG_ON;
self             2228 drivers/usb/host/isp1362-hcd.c 	dev_info(hcd->self.controller, "ISP1362 Memory usage:\n");
self             2229 drivers/usb/host/isp1362-hcd.c 	dev_info(hcd->self.controller, "  ISTL:    2 * %4d:     %4d @ $%04x:$%04x\n",
self             2231 drivers/usb/host/isp1362-hcd.c 	dev_info(hcd->self.controller, "  INTL: %4d * (%3zu+8):  %4d @ $%04x\n",
self             2234 drivers/usb/host/isp1362-hcd.c 	dev_info(hcd->self.controller, "  ATL : %4d * (%3zu+8):  %4d @ $%04x\n",
self             2237 drivers/usb/host/isp1362-hcd.c 	dev_info(hcd->self.controller, "  USED/FREE:   %4d      %4d\n", total,
self             2241 drivers/usb/host/isp1362-hcd.c 		dev_err(hcd->self.controller, "%s: Memory requested: %d, available %d\n",
self             2326 drivers/usb/host/isp1362-hcd.c 		isp1362_hcd->board->reset(hcd->self.controller, 1);
self             2329 drivers/usb/host/isp1362-hcd.c 			isp1362_hcd->board->clock(hcd->self.controller, 1);
self             2330 drivers/usb/host/isp1362-hcd.c 		isp1362_hcd->board->reset(hcd->self.controller, 0);
self             2376 drivers/usb/host/isp1362-hcd.c 		isp1362_hcd->board->reset(hcd->self.controller, 1);
self             2381 drivers/usb/host/isp1362-hcd.c 		isp1362_hcd->board->clock(hcd->self.controller, 0);
self             2683 drivers/usb/host/isp1362-hcd.c 		dev_err(hcd->self.controller, "No platform delay function given\n");
self             2701 drivers/usb/host/isp1362-hcd.c 	device_wakeup_enable(hcd->self.controller);
self              569 drivers/usb/host/isp1362.h #define	isp1362_delay(h, d)	(h)->board->delay(isp1362_hcd_to_hcd(h)->self.controller, d)
self              356 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self              381 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self              405 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self              431 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self              560 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self              666 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self              802 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self              882 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self              974 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self             1169 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self             1319 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self             1398 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self             1493 drivers/usb/host/max3421-hcd.c 	hcd->self.sg_tablesize = 0;
self             1495 drivers/usb/host/max3421-hcd.c 	hcd->self.root_hub->speed = USB_SPEED_FULL;
self             1525 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self             1641 drivers/usb/host/max3421-hcd.c 		dev_dbg(hcd->self.controller,
self             1697 drivers/usb/host/max3421-hcd.c 	struct spi_device *spi = to_spi_device(hcd->self.controller);
self             1715 drivers/usb/host/max3421-hcd.c 			dev_dbg(hcd->self.controller, "power-off\n");
self             1764 drivers/usb/host/max3421-hcd.c 			dev_dbg(hcd->self.controller, "power-on\n");
self             1780 drivers/usb/host/max3421-hcd.c 		dev_dbg(hcd->self.controller,
self             1959 drivers/usb/host/max3421-hcd.c 		if (hcd->self.controller == &spi->dev)
self              220 drivers/usb/host/ohci-at91.c 	board = hcd->self.controller->platform_data;
self              233 drivers/usb/host/ohci-at91.c 		device_wakeup_enable(hcd->self.controller);
self              288 drivers/usb/host/ohci-at91.c 	struct at91_usbh_data *pdata = hcd->self.controller->platform_data;
self              331 drivers/usb/host/ohci-at91.c 	struct at91_usbh_data *pdata = dev_get_platdata(hcd->self.controller);
self              337 drivers/usb/host/ohci-at91.c 	dev_dbg(hcd->self.controller,
self              347 drivers/usb/host/ohci-at91.c 			dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n");
self              356 drivers/usb/host/ohci-at91.c 			dev_dbg(hcd->self.controller, "SetPortFeat: SUSPEND\n");
self              369 drivers/usb/host/ohci-at91.c 			dev_dbg(hcd->self.controller,
self              380 drivers/usb/host/ohci-at91.c 			dev_dbg(hcd->self.controller,
self              389 drivers/usb/host/ohci-at91.c 			dev_dbg(hcd->self.controller,
self              399 drivers/usb/host/ohci-at91.c 			dev_dbg(hcd->self.controller, "ClearPortFeature: SUSPEND\n");
self              421 drivers/usb/host/ohci-at91.c 		dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n",
self              438 drivers/usb/host/ohci-at91.c 		dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n",
self              446 drivers/usb/host/ohci-at91.c 		dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex);
self               90 drivers/usb/host/ohci-da8xx.c 	struct device *dev = hcd->self.controller;
self              170 drivers/usb/host/ohci-da8xx.c 	struct device *dev		= hcd->self.controller;
self              196 drivers/usb/host/ohci-da8xx.c 	struct device *dev = da8xx_ohci->hcd->self.controller;
self              212 drivers/usb/host/ohci-da8xx.c 	struct device *dev		= hcd->self.controller;
self              229 drivers/usb/host/ohci-da8xx.c 	struct device *dev		= hcd->self.controller;
self              286 drivers/usb/host/ohci-da8xx.c 		dev_dbg(hcd->self.controller, "over-current indicator change "
self              303 drivers/usb/host/ohci-da8xx.c 	struct device *dev		= hcd->self.controller;
self              457 drivers/usb/host/ohci-da8xx.c 	device_wakeup_enable(hcd->self.controller);
self              605 drivers/usb/host/ohci-dbg.c 		hcd->self.controller->bus->name,
self              606 drivers/usb/host/ohci-dbg.c 		dev_name(hcd->self.controller),
self              764 drivers/usb/host/ohci-dbg.c 	struct usb_bus *bus = &ohci_to_hcd(ohci)->self;
self              201 drivers/usb/host/ohci-exynos.c 	device_wakeup_enable(hcd->self.controller);
self              461 drivers/usb/host/ohci-hcd.c 		hcd->self.sg_tablesize = ~0;
self              523 drivers/usb/host/ohci-hcd.c 		ohci->hcca = dma_alloc_coherent(hcd->self.controller,
self              572 drivers/usb/host/ohci-hcd.c 		device_set_wakeup_capable(hcd->self.controller, 1);
self             1015 drivers/usb/host/ohci-hcd.c 			dma_free_coherent(hcd->self.controller,
self              113 drivers/usb/host/ohci-hub.c 	if (ohci_to_hcd(ohci)->self.root_hub->do_remote_wakeup || autostop) {
self              200 drivers/usb/host/ohci-hub.c 			usb_root_hub_lost_power(hcd->self.root_hub);
self              286 drivers/usb/host/ohci-hub.c 	if (hcd->self.bandwidth_isoc_reqs || hcd->self.bandwidth_int_reqs)
self              371 drivers/usb/host/ohci-hub.c 						->self.root_hub->dev)) {
self              408 drivers/usb/host/ohci-hub.c 				!ohci_to_hcd(ohci)->self.root_hub->
self              772 drivers/usb/host/ohci-hub.c 			if (hcd->self.otg_port == (wIndex + 1)
self              773 drivers/usb/host/ohci-hub.c 					&& hcd->self.b_hnp_enable)
self               47 drivers/usb/host/ohci-mem.c 		ohci_to_hcd(ohci)->self.controller,
self               54 drivers/usb/host/ohci-mem.c 		ohci_to_hcd(ohci)->self.controller,
self              225 drivers/usb/host/ohci-nxp.c 		device_wakeup_enable(hcd->self.controller);
self              176 drivers/usb/host/ohci-omap.c 	const unsigned	port = hcd->self.otg_port - 1;
self              198 drivers/usb/host/ohci-omap.c 	struct omap_usb_config	*config = dev_get_platdata(hcd->self.controller);
self              202 drivers/usb/host/ohci-omap.c 	dev_dbg(hcd->self.controller, "starting USB Controller\n");
self              205 drivers/usb/host/ohci-omap.c 		hcd->self.otg_port = config->otg;
self              223 drivers/usb/host/ohci-omap.c 						&ohci_to_hcd(ohci)->self);
self              224 drivers/usb/host/ohci-omap.c 			dev_dbg(hcd->self.controller, "init %s phy, status %d\n",
self              367 drivers/usb/host/ohci-omap.c 	device_wakeup_enable(hcd->self.controller);
self              397 drivers/usb/host/ohci-omap.c 	dev_dbg(hcd->self.controller, "stopping USB Controller\n");
self               37 drivers/usb/host/ohci-pci.c 	device_init_wakeup(&hcd->self.root_hub->dev, 0);
self               74 drivers/usb/host/ohci-pci.c 	struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
self              245 drivers/usb/host/ohci-pci.c 	struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
self              248 drivers/usb/host/ohci-pci.c 	if (hcd->self.controller) {
self              217 drivers/usb/host/ohci-platform.c 	device_wakeup_enable(hcd->self.controller);
self               35 drivers/usb/host/ohci-ppc-of.c 		dev_err(hcd->self.controller, "can't start %s\n",
self               36 drivers/usb/host/ohci-ppc-of.c 			hcd->self.bus_name);
self              146 drivers/usb/host/ohci-ppc-of.c 		device_wakeup_enable(hcd->self.controller);
self               36 drivers/usb/host/ohci-ps3.c 		dev_err(hcd->self.controller, "can't start %s\n",
self               37 drivers/usb/host/ohci-ps3.c 			hcd->self.bus_name);
self              166 drivers/usb/host/ohci-ps3.c 	device_wakeup_enable(hcd->self.controller);
self              308 drivers/usb/host/ohci-pxa27x.c 		pxa3xx_u2d_start_hc(&hcd->self);
self              328 drivers/usb/host/ohci-pxa27x.c 		pxa3xx_u2d_stop_hc(&hcd->self);
self              496 drivers/usb/host/ohci-pxa27x.c 		device_wakeup_enable(hcd->self.controller);
self               45 drivers/usb/host/ohci-q.c 	struct device *dev = ohci_to_hcd(ohci)->self.controller;
self               59 drivers/usb/host/ohci-q.c 		ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs--;
self               60 drivers/usb/host/ohci-q.c 		if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0) {
self               68 drivers/usb/host/ohci-q.c 		ohci_to_hcd(ohci)->self.bandwidth_int_reqs--;
self               79 drivers/usb/host/ohci-q.c 	if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0
self               80 drivers/usb/host/ohci-q.c 			&& ohci_to_hcd(ohci)->self.bandwidth_int_reqs == 0) {
self              178 drivers/usb/host/ohci-q.c 	ohci_to_hcd(ohci)->self.bandwidth_allocated += ed->load / ed->interval;
self              289 drivers/usb/host/ohci-q.c 	ohci_to_hcd(ohci)->self.bandwidth_allocated -= ed->load / ed->interval;
self              596 drivers/usb/host/ohci-q.c 	struct device *dev = ohci_to_hcd(ohci)->self.controller;
self              648 drivers/usb/host/ohci-q.c 		periodic = ohci_to_hcd(ohci)->self.bandwidth_int_reqs++ == 0
self              649 drivers/usb/host/ohci-q.c 			&& ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0;
self              730 drivers/usb/host/ohci-q.c 		if (ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs == 0) {
self              736 drivers/usb/host/ohci-q.c 		periodic = ohci_to_hcd(ohci)->self.bandwidth_isoc_reqs++ == 0
self              737 drivers/usb/host/ohci-q.c 			&& ohci_to_hcd(ohci)->self.bandwidth_int_reqs == 0;
self               57 drivers/usb/host/ohci-s3c2410.c 	return dev_get_platdata(hcd->self.controller);
self              124 drivers/usb/host/ohci-s3c2410.c 			dev_dbg(hcd->self.controller,
self              175 drivers/usb/host/ohci-s3c2410.c 	dev_dbg(hcd->self.controller,
self              193 drivers/usb/host/ohci-s3c2410.c 			dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n");
self              202 drivers/usb/host/ohci-s3c2410.c 			dev_dbg(hcd->self.controller,
self              213 drivers/usb/host/ohci-s3c2410.c 			dev_dbg(hcd->self.controller,
self              222 drivers/usb/host/ohci-s3c2410.c 			dev_dbg(hcd->self.controller,
self              247 drivers/usb/host/ohci-s3c2410.c 		dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n",
self              265 drivers/usb/host/ohci-s3c2410.c 		dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n",
self              273 drivers/usb/host/ohci-s3c2410.c 		dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex);
self              397 drivers/usb/host/ohci-s3c2410.c 	device_wakeup_enable(hcd->self.controller);
self              220 drivers/usb/host/ohci-sa1111.c 		device_wakeup_enable(hcd->self.controller);
self               29 drivers/usb/host/ohci-sm501.c 	struct device *dev = hcd->self.controller;
self               34 drivers/usb/host/ohci-sm501.c 		dev_err(dev, "can't start %s", hcd->self.bus_name);
self              167 drivers/usb/host/ohci-sm501.c 	device_wakeup_enable(hcd->self.controller);
self               89 drivers/usb/host/ohci-spear.c 		device_wakeup_enable(hcd->self.controller);
self              216 drivers/usb/host/ohci-st.c 	device_wakeup_enable(hcd->self.controller);
self              143 drivers/usb/host/ohci-tmio.c 		dev_err(hcd->self.controller, "can't start %s\n",
self              144 drivers/usb/host/ohci-tmio.c 			hcd->self.bus_name);
self              249 drivers/usb/host/ohci-tmio.c 	device_wakeup_enable(hcd->self.controller);
self              491 drivers/usb/host/ohci.h 	dev_dbg (ohci_to_hcd(ohci)->self.controller , fmt , ## args )
self              493 drivers/usb/host/ohci.h 	dev_err (ohci_to_hcd(ohci)->self.controller , fmt , ## args )
self              495 drivers/usb/host/ohci.h 	dev_info (ohci_to_hcd(ohci)->self.controller , fmt , ## args )
self              497 drivers/usb/host/ohci.h 	dev_warn (ohci_to_hcd(ohci)->self.controller , fmt , ## args )
self              482 drivers/usb/host/oxu210hp-hcd.c 		dev_dbg(oxu_to_hcd(oxu)->self.controller , fmt , ## args)
self              484 drivers/usb/host/oxu210hp-hcd.c 		dev_err(oxu_to_hcd(oxu)->self.controller , fmt , ## args)
self              486 drivers/usb/host/oxu210hp-hcd.c 		dev_info(oxu_to_hcd(oxu)->self.controller , fmt , ## args)
self             1360 drivers/usb/host/oxu210hp-hcd.c 			oxu_to_hcd(oxu)->self.bandwidth_int_reqs--;
self             2406 drivers/usb/host/oxu210hp-hcd.c 	oxu_to_hcd(oxu)->self.bandwidth_allocated += qh->period
self             2439 drivers/usb/host/oxu210hp-hcd.c 	oxu_to_hcd(oxu)->self.bandwidth_allocated -= qh->period
self             2649 drivers/usb/host/oxu210hp-hcd.c 	oxu_to_hcd(oxu)->self.bandwidth_int_reqs++;
self             3399 drivers/usb/host/oxu210hp-hcd.c 				dev_err(hcd->self.controller,
self             3794 drivers/usb/host/oxu210hp-hcd.c 			if (device_may_wakeup(&hcd->self.root_hub->dev))
self             3897 drivers/usb/host/oxu210hp-hcd.c 		if (device_may_wakeup(&hcd->self.root_hub->dev))
self             3916 drivers/usb/host/oxu210hp-hcd.c 	if (!device_may_wakeup(&hcd->self.root_hub->dev))
self             4155 drivers/usb/host/oxu210hp-hcd.c 	device_wakeup_enable(hcd->self.controller);
self             2097 drivers/usb/host/r8a66597-hcd.c 	bus = idr_find(&usb_bus_idr, hcd->self.busnum);
self             2368 drivers/usb/host/r8a66597-hcd.c 	usb_root_hub_lost_power(hcd->self.root_hub);
self             2498 drivers/usb/host/r8a66597-hcd.c 	device_wakeup_enable(hcd->self.controller);
self              100 drivers/usb/host/sl811-hcd.c 		dev_dbg(hcd->self.controller, "power %s\n",
self              102 drivers/usb/host/sl811-hcd.c 		sl811->board->port_power(hcd->self.controller, is_on);
self              107 drivers/usb/host/sl811-hcd.c 		sl811->board->reset(hcd->self.controller);
self              283 drivers/usb/host/sl811-hcd.c 	dev_dbg(sl811_to_hcd(sl811)->self.controller, "sof irq on\n");
self              291 drivers/usb/host/sl811-hcd.c 	dev_dbg(sl811_to_hcd(sl811)->self.controller, "sof irq off\n");
self              339 drivers/usb/host/sl811-hcd.c 		dev_dbg(sl811_to_hcd(sl811)->self.controller,
self              393 drivers/usb/host/sl811-hcd.c 		dev_dbg(sl811_to_hcd(sl811)->self.controller,
self              450 drivers/usb/host/sl811-hcd.c 	dev_dbg(sl811_to_hcd(sl811)->self.controller,
self              464 drivers/usb/host/sl811-hcd.c 	sl811_to_hcd(sl811)->self.bandwidth_allocated
self              597 drivers/usb/host/sl811-hcd.c 		dev_dbg(sl811_to_hcd(sl811)->self.controller,
self              609 drivers/usb/host/sl811-hcd.c 		dev_dbg(sl811_to_hcd(sl811)->self.controller,
self              729 drivers/usb/host/sl811-hcd.c 			dev_dbg(hcd->self.controller, "wakeup\n");
self              858 drivers/usb/host/sl811-hcd.c 			dev_dbg(hcd->self.controller,
self              924 drivers/usb/host/sl811-hcd.c 		dev_dbg(hcd->self.controller, "schedule qh%d/%p branch %d\n",
self              943 drivers/usb/host/sl811-hcd.c 		hcd->self.bandwidth_allocated += ep->load / ep->period;
self              984 drivers/usb/host/sl811-hcd.c 				dev_dbg(hcd->self.controller,
self              999 drivers/usb/host/sl811-hcd.c 				dev_dbg(hcd->self.controller,
self             1018 drivers/usb/host/sl811-hcd.c 			dev_dbg(sl811_to_hcd(sl811)->self.controller,
self             1040 drivers/usb/host/sl811-hcd.c 		dev_warn(hcd->self.controller, "ep %p not empty?\n", ep);
self             1143 drivers/usb/host/sl811-hcd.c 		dev_dbg(sl811_to_hcd(sl811)->self.controller, "end reset\n");
self             1152 drivers/usb/host/sl811-hcd.c 		dev_dbg(sl811_to_hcd(sl811)->self.controller, "end resume\n");
self             1156 drivers/usb/host/sl811-hcd.c 		dev_dbg(sl811_to_hcd(sl811)->self.controller,
self             1255 drivers/usb/host/sl811-hcd.c 			dev_dbg(hcd->self.controller, "start resume...\n");
self             1293 drivers/usb/host/sl811-hcd.c 		dev_dbg(hcd->self.controller, "GetPortStatus %08x\n",
self             1306 drivers/usb/host/sl811-hcd.c 			dev_dbg(hcd->self.controller,"suspend...\n");
self             1351 drivers/usb/host/sl811-hcd.c 	dev_dbg(hcd->self.controller, "%s\n", __func__);
self             1359 drivers/usb/host/sl811-hcd.c 	dev_dbg(hcd->self.controller, "%s\n", __func__);
self             1533 drivers/usb/host/sl811-hcd.c 		if (!device_can_wakeup(hcd->self.controller))
self             1534 drivers/usb/host/sl811-hcd.c 			device_init_wakeup(hcd->self.controller,
self             1716 drivers/usb/host/sl811-hcd.c 	device_wakeup_enable(hcd->self.controller);
self             1769 drivers/usb/host/sl811-hcd.c 	if (!sl811->port1 || !device_can_wakeup(&hcd->self.root_hub->dev)) {
self             1772 drivers/usb/host/sl811-hcd.c 		usb_root_hub_lost_power(hcd->self.root_hub);
self             1796 drivers/usb/host/u132-hcd.c 	} else if (hcd->self.controller) {
self             1799 drivers/usb/host/u132-hcd.c 			to_platform_device(hcd->self.controller);
self             3105 drivers/usb/host/u132-hcd.c 			device_wakeup_enable(hcd->self.controller);
self              406 drivers/usb/host/uhci-debug.c 			uhci_to_hcd(uhci)->self.bandwidth_int_reqs,
self              407 drivers/usb/host/uhci-debug.c 			uhci_to_hcd(uhci)->self.bandwidth_isoc_reqs);
self              139 drivers/usb/host/uhci-grlib.c 	device_wakeup_enable(hcd->self.controller);
self              294 drivers/usb/host/uhci-hcd.c 	struct usb_device *rhdev = uhci_to_hcd(uhci)->self.root_hub;
self              414 drivers/usb/host/uhci-hcd.c 	dev_dbg(&uhci_to_hcd(uhci)->self.root_hub->dev,
self              585 drivers/usb/host/uhci-hcd.c 		hcd->self.sg_tablesize = ~0;
self              593 drivers/usb/host/uhci-hcd.c 	uhci->dentry = debugfs_create_file(hcd->self.bus_name,
self              742 drivers/usb/host/uhci-hcd.c 	else if (hcd->self.root_hub->do_remote_wakeup &&
self              474 drivers/usb/host/uhci-hcd.h #define uhci_dev(u)	(uhci_to_hcd(u)->self.controller)
self              119 drivers/usb/host/uhci-hub.c 	usb_hcd_end_port_resume(&uhci_to_hcd(uhci)->self, port);
self              172 drivers/usb/host/uhci-hub.c 						&uhci_to_hcd(uhci)->self, port);
self              240 drivers/usb/host/uhci-pci.c 		usb_root_hub_lost_power(hcd->self.root_hub);
self              247 drivers/usb/host/uhci-pci.c 	if (!uhci->RD_enable && hcd->self.root_hub->do_remote_wakeup)
self              139 drivers/usb/host/uhci-platform.c 	device_wakeup_enable(hcd->self.controller);
self              669 drivers/usb/host/uhci-q.c 	uhci_to_hcd(uhci)->self.bandwidth_allocated =
self              673 drivers/usb/host/uhci-q.c 		++uhci_to_hcd(uhci)->self.bandwidth_int_reqs;
self              677 drivers/usb/host/uhci-q.c 		++uhci_to_hcd(uhci)->self.bandwidth_isoc_reqs;
self              702 drivers/usb/host/uhci-q.c 	uhci_to_hcd(uhci)->self.bandwidth_allocated =
self              706 drivers/usb/host/uhci-q.c 		--uhci_to_hcd(uhci)->self.bandwidth_int_reqs;
self              710 drivers/usb/host/uhci-q.c 		--uhci_to_hcd(uhci)->self.bandwidth_isoc_reqs;
self               23 drivers/usb/host/xhci-dbgcap.c 	vaddr = dma_alloc_coherent(xhci_to_hcd(xhci)->self.sysdev,
self               33 drivers/usb/host/xhci-dbgcap.c 		dma_free_coherent(xhci_to_hcd(xhci)->self.sysdev,
self              140 drivers/usb/host/xhci-dbgcap.c 	struct device		*dev = xhci_to_hcd(dbc->xhci)->self.sysdev;
self              296 drivers/usb/host/xhci-dbgcap.c 	dev = xhci_to_hcd(xhci)->self.sysdev;
self              529 drivers/usb/host/xhci-dbgcap.c 	pm_runtime_get_sync(xhci_to_hcd(xhci)->self.controller);
self              536 drivers/usb/host/xhci-dbgcap.c 		pm_runtime_put(xhci_to_hcd(xhci)->self.controller);
self              563 drivers/usb/host/xhci-dbgcap.c 		pm_runtime_put_sync(xhci_to_hcd(xhci)->self.controller);
self              933 drivers/usb/host/xhci-dbgcap.c 	struct device		*dev = xhci_to_hcd(xhci)->self.controller;
self              959 drivers/usb/host/xhci-dbgcap.c 	struct device		*dev = xhci_to_hcd(xhci)->self.controller;
self              540 drivers/usb/host/xhci-debugfs.c 	struct device		*dev = xhci_to_hcd(xhci)->self.controller;
self               31 drivers/usb/host/xhci-ext-caps.c 	struct device *dev = hcd->self.controller;
self               46 drivers/usb/host/xhci-histb.c 	return dev_get_drvdata(hcd->self.controller);
self              257 drivers/usb/host/xhci-histb.c 	dev_set_drvdata(hcd->self.controller, histb);
self              265 drivers/usb/host/xhci-histb.c 	device_wakeup_enable(hcd->self.controller);
self              500 drivers/usb/host/xhci-hub.c 		 hcd->self.busnum, wIndex + 1, port_status);
self              580 drivers/usb/host/xhci-hub.c 		 hcd->self.busnum, index + 1, on ? "ON" : "OFF", temp);
self              594 drivers/usb/host/xhci-hub.c 	temp = usb_acpi_power_manageable(hcd->self.root_hub,
self              597 drivers/usb/host/xhci-hub.c 		usb_acpi_set_power_state(hcd->self.root_hub,
self              650 drivers/usb/host/xhci-hub.c 	pm_runtime_forbid(xhci_to_hcd(xhci)->self.controller);
self              673 drivers/usb/host/xhci-hub.c 	pm_runtime_allow(xhci_to_hcd(xhci)->self.controller);
self              691 drivers/usb/host/xhci-hub.c 		 port->rhub->hcd->self.busnum, port->hcd_portnum + 1,
self              855 drivers/usb/host/xhci-hub.c 			usb_hcd_start_port_resume(&hcd->self, wIndex);
self              862 drivers/usb/host/xhci-hub.c 			 hcd->self.busnum, wIndex + 1);
self              891 drivers/usb/host/xhci-hub.c 				  hcd->self.busnum, wIndex + 1, port_status);
self              896 drivers/usb/host/xhci-hub.c 		usb_hcd_end_port_resume(&hcd->self, wIndex);
self              971 drivers/usb/host/xhci-hub.c 		usb_hcd_end_port_resume(&hcd->self, portnum);
self             1078 drivers/usb/host/xhci-hub.c 		usb_hcd_end_port_resume(&hcd->self, wIndex);
self             1157 drivers/usb/host/xhci-hub.c 			 hcd->self.busnum, wIndex + 1, temp, status);
self             1214 drivers/usb/host/xhci-hub.c 					  hcd->self.busnum, wIndex + 1);
self             1457 drivers/usb/host/xhci-hub.c 				usb_hcd_start_port_resume(&hcd->self, wIndex);
self             1466 drivers/usb/host/xhci-hub.c 				usb_hcd_end_port_resume(&hcd->self, wIndex);
self             1600 drivers/usb/host/xhci-hub.c 	wake_enabled = hcd->self.root_hub->do_remote_wakeup;
self             1674 drivers/usb/host/xhci-hub.c 				if (usb_amd_pt_check_port(hcd->self.controller,
self               36 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self              368 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self              464 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self              534 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self              562 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self              622 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self              840 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self             1653 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self             1718 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self             1742 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self             1808 drivers/usb/host/xhci-mem.c 	erst->entries = dma_alloc_coherent(xhci_to_hcd(xhci)->self.sysdev,
self             1830 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self             1842 drivers/usb/host/xhci-mem.c 	struct device	*dev = xhci_to_hcd(xhci)->self.sysdev;
self             2128 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self             2242 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self             2275 drivers/usb/host/xhci-mem.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self             2375 drivers/usb/host/xhci-mem.c 	struct device	*dev = xhci_to_hcd(xhci)->self.sysdev;
self              159 drivers/usb/host/xhci-mtk.h 	return dev_get_drvdata(hcd->self.controller);
self               47 drivers/usb/host/xhci-mvebu.c 	struct device *dev = hcd->self.controller;
self              291 drivers/usb/host/xhci-pci.c 	struct pci_dev		*pdev = to_pci_dev(hcd->self.controller);
self              466 drivers/usb/host/xhci-pci.c 	struct pci_dev		*pdev = to_pci_dev(hcd->self.controller);
self              492 drivers/usb/host/xhci-pci.c 	struct pci_dev		*pdev = to_pci_dev(hcd->self.controller);
self              529 drivers/usb/host/xhci-pci.c 	struct pci_dev		*pdev = to_pci_dev(hcd->self.controller);
self              267 drivers/usb/host/xhci-plat.c 	device_wakeup_enable(hcd->self.controller);
self              119 drivers/usb/host/xhci-rcar.c 		if (xhci_rcar_is_gen2(hcd->self.controller))
self              126 drivers/usb/host/xhci-rcar.c 	struct device *dev = hcd->self.controller;
self              664 drivers/usb/host/xhci-ring.c 		xhci_to_hcd(xhci)->self.bandwidth_isoc_reqs--;
self              665 drivers/usb/host/xhci-ring.c 		if (xhci_to_hcd(xhci)->self.bandwidth_isoc_reqs	== 0) {
self              681 drivers/usb/host/xhci-ring.c 	struct device *dev = xhci_to_hcd(xhci)->self.controller;
self             1631 drivers/usb/host/xhci-ring.c 		 hcd->self.busnum, hcd_portnum + 1, port_id, portsc);
self             1664 drivers/usb/host/xhci-ring.c 			usb_hcd_start_port_resume(&hcd->self, hcd_portnum);
self             1683 drivers/usb/host/xhci-ring.c 			usb_hcd_start_port_resume(&hcd->self, hcd_portnum);
self             1707 drivers/usb/host/xhci-ring.c 			usb_wakeup_notification(hcd->self.root_hub,
self             1835 drivers/usb/host/xhci-ring.c 	    (td->urb->dev->tt->hub != xhci_to_hcd(xhci)->self.root_hub) &&
self             3229 drivers/usb/host/xhci-ring.c 	struct device *dev = xhci_to_hcd(xhci)->self.controller;
self             3883 drivers/usb/host/xhci-ring.c 	if (xhci_to_hcd(xhci)->self.bandwidth_isoc_reqs == 0) {
self             3887 drivers/usb/host/xhci-ring.c 	xhci_to_hcd(xhci)->self.bandwidth_isoc_reqs++;
self             1220 drivers/usb/host/xhci-tegra.c 	device_wakeup_enable(tegra->hcd->self.controller);
self               93 drivers/usb/host/xhci-trace.h 		udev = to_usb_device(xhci_to_hcd(xhci)->self.controller);
self              205 drivers/usb/host/xhci.c 		usb_asmedia_modifyflowcontrol(to_pci_dev(xhci_to_hcd(xhci)->self.controller));
self              228 drivers/usb/host/xhci.c 	struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
self              299 drivers/usb/host/xhci.c 	struct pci_dev  *pdev = to_pci_dev(xhci_to_hcd(xhci)->self.controller);
self              326 drivers/usb/host/xhci.c 	struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
self              368 drivers/usb/host/xhci.c 	struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
self              395 drivers/usb/host/xhci.c 		struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
self              413 drivers/usb/host/xhci.c 	pdev = to_pci_dev(xhci_to_hcd(xhci)->self.controller);
self              444 drivers/usb/host/xhci.c 			 hcd->driver->description, hcd->self.busnum);
self              778 drivers/usb/host/xhci.c 		usb_disable_xhci_ports(to_pci_dev(hcd->self.sysdev));
self              906 drivers/usb/host/xhci.c 				 xhci->usb3_rhub.hcd->self.busnum,
self              922 drivers/usb/host/xhci.c 				 xhci->usb2_rhub.hcd->self.busnum,
self             1154 drivers/usb/host/xhci.c 		usb_root_hub_lost_power(xhci->main_hcd->self.root_hub);
self             1155 drivers/usb/host/xhci.c 		usb_root_hub_lost_power(xhci->shared_hcd->self.root_hub);
self             1243 drivers/usb/host/xhci.c 		usb_asmedia_modifyflowcontrol(to_pci_dev(hcd->self.controller));
self             3870 drivers/usb/host/xhci.c 		pm_runtime_put_noidle(hcd->self.controller);
self             4029 drivers/usb/host/xhci.c 		pm_runtime_get_noresume(hcd->self.controller);
self             5123 drivers/usb/host/xhci.c 	struct device		*dev = hcd->self.sysdev;
self             5128 drivers/usb/host/xhci.c 	hcd->self.sg_tablesize = ~0;
self             5131 drivers/usb/host/xhci.c 	hcd->self.no_sg_constraint = 1;
self             5134 drivers/usb/host/xhci.c 	hcd->self.no_stop_on_short = 1;
self             5145 drivers/usb/host/xhci.c 		hcd->self.root_hub->speed = USB_SPEED_HIGH;
self             5170 drivers/usb/host/xhci.c 			hcd->self.root_hub->speed = USB_SPEED_SUPER_PLUS;
self             5171 drivers/usb/host/xhci.c 			hcd->self.root_hub->rx_lanes = 2;
self             5172 drivers/usb/host/xhci.c 			hcd->self.root_hub->tx_lanes = 2;
self             5176 drivers/usb/host/xhci.c 			hcd->self.root_hub->speed = USB_SPEED_SUPER_PLUS;
self             1936 drivers/usb/host/xhci.h 	dev_dbg(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
self             1938 drivers/usb/host/xhci.h 	dev_err(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
self             1940 drivers/usb/host/xhci.h 	dev_warn(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
self             1942 drivers/usb/host/xhci.h 	dev_warn_ratelimited(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
self             1944 drivers/usb/host/xhci.h 	dev_info(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
self              373 drivers/usb/isp1760/isp1760-hcd.c 	dev_err(hcd->self.controller, "%s: Invalid pointer: %08x\n",
self              474 drivers/usb/isp1760/isp1760-hcd.c 		dev_err(hcd->self.controller, "Scratch test failed.\n");
self              998 drivers/usb/isp1760/isp1760-hcd.c 				dev_dbg(hcd->self.controller, "%s: underrun "
self             1004 drivers/usb/isp1760/isp1760-hcd.c 				dev_dbg(hcd->self.controller, "%s: transaction "
self             1011 drivers/usb/isp1760/isp1760-hcd.c 				dev_dbg(hcd->self.controller, "%s: babble "
self             1052 drivers/usb/isp1760/isp1760-hcd.c 		dev_dbg(hcd->self.controller, "PID error; reloading ptd\n");
self             1187 drivers/usb/isp1760/isp1760-hcd.c 					dev_err(hcd->self.controller,
self             1344 drivers/usb/isp1760/isp1760-hcd.c 	dev_info(hcd->self.controller, "USB ISP %04x HW rev. %d started\n",
self             1406 drivers/usb/isp1760/isp1760-hcd.c 		dev_err(hcd->self.controller,
self             1518 drivers/usb/isp1760/isp1760-hcd.c 		dev_err(hcd->self.controller, "%s: isochronous USB packets "
self             1523 drivers/usb/isp1760/isp1760-hcd.c 		dev_err(hcd->self.controller, "%s: unknown pipe type\n",
self             1797 drivers/usb/isp1760/isp1760-hcd.c 		dev_info(hcd->self.controller,
self             1806 drivers/usb/isp1760/isp1760-hcd.c 		dev_info(hcd->self.controller, "port %d high speed\n",
self             1919 drivers/usb/isp1760/isp1760-hcd.c 			dev_err(hcd->self.controller, "Port resume should be skipped.\n");
self             1943 drivers/usb/isp1760/isp1760-hcd.c 					dev_err(hcd->self.controller,
self             1967 drivers/usb/isp1760/isp1760-hcd.c 				dev_err(hcd->self.controller, "port %d reset error %d\n",
self             1983 drivers/usb/isp1760/isp1760-hcd.c 			dev_err(hcd->self.controller, "PORT_OWNER is set\n");
self             2218 drivers/usb/isp1760/isp1760-hcd.c 	device_wakeup_enable(hcd->self.controller);
self              225 drivers/usb/mon/mon_main.c static int mon_notify(struct notifier_block *self, unsigned long action,
self              503 drivers/usb/musb/musb_core.c 			hcd->self.is_b_host = 0;
self              733 drivers/usb/musb/musb_core.c 		musb->is_active = musb->hcd->self.b_hnp_enable;
self              784 drivers/usb/musb/musb_core.c 			musb->hcd->self.is_b_host = 1;
self              792 drivers/usb/musb/musb_core.c 				hcd->self.is_b_host = 0;
self              826 drivers/usb/musb/musb_core.c 			musb->hcd->self.is_b_host = 0;
self             2273 drivers/usb/musb/musb_host.c 		if (parent != hcd->self.root_hub) {
self             2723 drivers/usb/musb/musb_host.c 	musb->hcd->self.uses_pio_for_control = 1;
self             2751 drivers/usb/musb/musb_host.c 	otg_set_host(musb->xceiv->otg, &hcd->self);
self             2753 drivers/usb/musb/musb_host.c 	hcd->self.otg_port = 0;
self             2754 drivers/usb/musb/musb_host.c 	musb->xceiv->otg->host = &hcd->self;
self             2762 drivers/usb/musb/musb_host.c 	device_wakeup_enable(hcd->self.controller);
self              308 drivers/usb/musb/musb_virthub.c 			if (!hcd->self.is_b_host)
self              373 drivers/usb/musb/musb_virthub.c 			if (!hcd->self.is_b_host && musb_has_gadget(musb))
self              208 drivers/usb/phy/phy-mv-usb.c 		device_wakeup_enable(hcd->self.controller);
self              116 drivers/usb/renesas_usbhs/mod_host.c #define usbhsh_hcd_to_dev(h)	((h)->self.controller)
self              456 drivers/usb/renesas_usbhs/mod_host.c 	return hcd->self.root_hub == usbv->parent;
self             1460 drivers/usb/renesas_usbhs/mod_host.c 	device_wakeup_enable(hcd->self.controller);
self              156 drivers/usb/usbip/vhci.h 	return (hcd)->self.controller;
self              161 drivers/usb/usbip/vhci.h 	return (hcd)->self.bus_name;
self             1130 drivers/usb/usbip/vhci_hcd.c 	struct vhci *vhci = *((void **)dev_get_platdata(hcd->self.controller));
self             1140 drivers/usb/usbip/vhci_hcd.c 		hcd->self.root_hub->speed = USB_SPEED_HIGH;
self             1145 drivers/usb/usbip/vhci_hcd.c 		hcd->self.root_hub->speed = USB_SPEED_SUPER;
self             1153 drivers/usb/usbip/vhci_hcd.c 	hcd->self.sg_tablesize = 32;
self             1154 drivers/usb/usbip/vhci_hcd.c 	hcd->self.no_sg_constraint = 1;
self             1185 drivers/usb/usbip/vhci_hcd.c 	hcd->self.otg_port = 1;
self             1238 drivers/usb/usbip/vhci_hcd.c 	dev_err_ratelimited(&hcd->self.root_hub->dev, "Not yet implemented\n");
self             1247 drivers/usb/usbip/vhci_hcd.c 	struct vhci *vhci = *((void **)dev_get_platdata(hcd->self.controller));
self             1250 drivers/usb/usbip/vhci_hcd.c 	dev_dbg(&hcd->self.root_hub->dev, "%s\n", __func__);
self             1261 drivers/usb/usbip/vhci_hcd.c 	struct vhci *vhci = *((void **)dev_get_platdata(hcd->self.controller));
self             1265 drivers/usb/usbip/vhci_hcd.c 	dev_dbg(&hcd->self.root_hub->dev, "%s\n", __func__);
self             1288 drivers/usb/usbip/vhci_hcd.c 	dev_dbg(&hcd->self.root_hub->dev, "vhci_alloc_streams not implemented\n");
self             1297 drivers/usb/usbip/vhci_hcd.c 	dev_dbg(&hcd->self.root_hub->dev, "vhci_free_streams not implemented\n");
self             1423 drivers/usb/usbip/vhci_hcd.c 	vhci = *((void **)dev_get_platdata(hcd->self.controller));
self              616 drivers/vfio/pci/vfio_pci.c 	for (; pdev; pdev = pdev->bus->self)
self               47 drivers/video/backlight/backlight.c static int fb_notifier_callback(struct notifier_block *self,
self               59 drivers/video/backlight/backlight.c 	bd = container_of(self, struct backlight_device, fb_notif);
self               27 drivers/video/backlight/lcd.c static int fb_notifier_callback(struct notifier_block *self,
self               33 drivers/video/backlight/lcd.c 	ld = container_of(self, struct lcd_device, fb_notif);
self              134 drivers/xen/xen-pciback/passthrough.c 		dev = dev_entry->dev->bus->self;
self              135 drivers/xen/xen-pciback/passthrough.c 		for (; !found && dev != NULL; dev = dev->bus->self) {
self              323 drivers/xen/xen-pciback/pci_stub.c 	for (; dev != NULL; dev = dev->bus->self) {
self              330 drivers/xen/xen-pciback/pci_stub.c 		if (dev == dev->bus->self)
self              223 fs/btrfs/async-thread.c 			     struct btrfs_work *self)
self              258 fs/btrfs/async-thread.c 		if (work == self) {
self              296 fs/btrfs/async-thread.c 		wtag = self;
self              297 fs/btrfs/async-thread.c 		self->ordered_free(self);
self              450 fs/hpfs/alloc.c 	d->self = cpu_to_le32(*dno);
self              482 fs/hpfs/alloc.c 	a->self = cpu_to_le32(*ano);
self               18 fs/hpfs/dnode.c 		if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i;
self               22 fs/hpfs/dnode.c 	return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1;
self              144 fs/hpfs/dnode.c 		hpfs_error(s, "set_last_pointer: empty dnode %08x", le32_to_cpu(d->self));
self              150 fs/hpfs/dnode.c 				le32_to_cpu(d->self), de_down_pointer(de));
self              154 fs/hpfs/dnode.c 			hpfs_error(s, "set_last_pointer: bad last dirent in dnode %08x", le32_to_cpu(d->self));
self              161 fs/hpfs/dnode.c 			hpfs_error(s, "set_last_pointer: too long dnode %08x", le32_to_cpu(d->self));
self              183 fs/hpfs/dnode.c 			hpfs_error(s, "name (%c,%d) already exists in dnode %08x", *name, namelen, le32_to_cpu(d->self));
self              208 fs/hpfs/dnode.c 		hpfs_error(s, "attempt to delete last dirent in dnode %08x", le32_to_cpu(d->self));
self              219 fs/hpfs/dnode.c 	dnode_secno dno = le32_to_cpu(d->self);
self              299 fs/hpfs/hpfs.h   __le32 self;			/* pointer to this dnode */
self              494 fs/hpfs/hpfs.h   __le32 self;				/* pointer to this anode */
self              231 fs/hpfs/map.c  			if (le32_to_cpu(anode->self) != ano) {
self              276 fs/hpfs/map.c  			if (le32_to_cpu(dnode->self) != secno)
self              277 fs/hpfs/map.c  				hpfs_error(s, "bad self pointer on dnode %08x self = %08x", secno, le32_to_cpu(dnode->self));
self             1006 fs/jfs/jfs_dtree.c 	pxd = &sp->header.self;
self             1377 fs/jfs/jfs_dtree.c 	rp->header.self = *pxd;
self             1400 fs/jfs/jfs_dtree.c 	rp->header.prev = cpu_to_le64(addressPXD(&sp->header.self));
self             1673 fs/jfs/jfs_dtree.c 	tpxd = &sp->header.self;
self             1687 fs/jfs/jfs_dtree.c 		pxdlock->pxd = sp->header.self;
self             1713 fs/jfs/jfs_dtree.c 	sp->header.self = *pxd;
self             1924 fs/jfs/jfs_dtree.c 	rp->header.self = *pxd;
self             2269 fs/jfs/jfs_dtree.c 	pxdlock->pxd = fp->header.self;
self             2278 fs/jfs/jfs_dtree.c 	xlen = lengthPXD(&fp->header.self);
self             2345 fs/jfs/jfs_dtree.c 				pxdlock->pxd = p->header.self;
self             2354 fs/jfs/jfs_dtree.c 				xlen = lengthPXD(&p->header.self);
self             2557 fs/jfs/jfs_dtree.c 	pxd = &p->header.self;
self             2662 fs/jfs/jfs_dtree.c 		} else if (addressPXD(&p->header.self) == lmxaddr)
self             3936 fs/jfs/jfs_dtree.c 				bn = addressPXD(&p->header.self);
self              194 fs/jfs/jfs_dtree.h 		pxd_t self;	/* 8: self pxd */
self              999 fs/jfs/jfs_xtree.c 	rp->header.self = *pxd;
self             1025 fs/jfs/jfs_xtree.c 	rp->header.prev = cpu_to_le64(addressPXD(&sp->header.self));
self             1261 fs/jfs/jfs_xtree.c 	rp->header.self = *pxd;
self             2432 fs/jfs/jfs_xtree.c 	xaddr = addressPXD(&fp->header.self);
self             2433 fs/jfs/jfs_xtree.c 	xlen = lengthPXD(&fp->header.self);
self             2480 fs/jfs/jfs_xtree.c 				xaddr = addressPXD(&p->header.self);
self             2785 fs/jfs/jfs_xtree.c 		pxd = &p->header.self;
self               82 fs/jfs/jfs_xtree.h 		pxd_t self;	/* 8: self */
self              336 fs/omfs/dir.c  		u64 self;
self              348 fs/omfs/dir.c  		self = fsblock;
self              362 fs/omfs/dir.c  			      self, d_type)) {
self              585 fs/proc/kcore.c static int __meminit kcore_callback(struct notifier_block *self,
self               40 fs/proc/self.c 	struct dentry *self;
self               44 fs/proc/self.c 	self = d_alloc_name(s->s_root, "self");
self               45 fs/proc/self.c 	if (self) {
self               54 fs/proc/self.c 			d_add(self, inode);
self               57 fs/proc/self.c 			dput(self);
self               65 fs/proc/self.c 		ns->proc_self = self;
self              138 include/acpi/acpi_bus.h 	struct acpi_device *self;
self              458 include/acpi/acpi_bus.h 	hp->self = adev;
self              353 include/linux/cgroup-defs.h 	struct cgroup_subsys_state self;
self              416 include/linux/cgroup.h 	css_get(&cgrp->self);
self              421 include/linux/cgroup.h 	return css_tryget(&cgrp->self);
self              426 include/linux/cgroup.h 	css_put(&cgrp->self);
self              549 include/linux/cgroup.h 	struct cgroup_subsys_state *parent_css = cgrp->self.parent;
self              552 include/linux/cgroup.h 		return container_of(parent_css, struct cgroup, self);
self               51 include/linux/pci-acpi.h 		if (!pbus->self)
self               54 include/linux/pci-acpi.h 		dev = &pbus->self->dev;
self              575 include/linux/pci.h 	struct pci_dev	*self;		/* Bridge device as seen by parent */
self              649 include/linux/pci.h 	return dev->bus->self;
self             2150 include/linux/pci.h 		if (!dev->bus->self)
self             2152 include/linux/pci.h 		dev = dev->bus->self;
self             2355 include/linux/pci.h 	return bus->self && bus->self->ari_enabled;
self             1045 include/linux/scif.h int scif_get_node_ids(u16 *nodes, int len, u16 *self);
self               37 include/linux/uprobes.h 	int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs);
self               38 include/linux/uprobes.h 	int (*ret_handler)(struct uprobe_consumer *self,
self               41 include/linux/uprobes.h 	bool (*filter)(struct uprobe_consumer *self,
self              134 include/linux/uprobes.h extern int  arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val, void *data);
self               86 include/linux/usb/hcd.h 	struct usb_bus		self;		/* hcd is-a bus */
self              238 include/linux/usb/hcd.h 	return &hcd->self;
self              243 include/linux/usb/hcd.h 	return container_of(bus, struct usb_hcd, self);
self               80 include/uapi/linux/scif_ioctl.h 	struct scif_port_id	self;
self              194 include/uapi/linux/scif_ioctl.h 	__u64	self;
self              246 kernel/bpf/cgroup.c 	css_for_each_descendant_pre(css, &cgrp->self) {
self              247 kernel/bpf/cgroup.c 		struct cgroup *desc = container_of(css, struct cgroup, self);
self              258 kernel/bpf/cgroup.c 	css_for_each_descendant_pre(css, &cgrp->self) {
self              259 kernel/bpf/cgroup.c 		struct cgroup *desc = container_of(css, struct cgroup, self);
self              279 kernel/bpf/cgroup.c 	css_for_each_descendant_pre(css, &cgrp->self) {
self              280 kernel/bpf/cgroup.c 		struct cgroup *desc = container_of(css, struct cgroup, self);
self              170 kernel/cgroup/cgroup-internal.h 	return !(cgrp->self.flags & CSS_ONLINE);
self              132 kernel/cgroup/cgroup-v1.c 		css_task_iter_start(&from->self, 0, &it);
self              353 kernel/cgroup/cgroup-v1.c 	css_task_iter_start(&cgrp->self, 0, &it);
self              718 kernel/cgroup/cgroup-v1.c 	css_task_iter_start(&cgrp->self, 0, &it);
self              748 kernel/cgroup/cgroup-v1.c 	    !css_has_online_children(&cgrp->self) && !cgroup_is_dead(cgrp))
self             1073 kernel/cgroup/cgroup-v1.c 	if (!list_empty(&root->cgrp.self.children)) {
self             1137 kernel/cgroup/cgroup-v1.c 		if (!percpu_ref_tryget_live(&ss->root->cgrp.self.refcnt))
self             1214 kernel/cgroup/cgroup-v1.c 	if (!ret && !percpu_ref_tryget_live(&ctx->root->cgrp.self.refcnt))
self             1222 kernel/cgroup/cgroup-v1.c 	if (!ret && percpu_ref_is_dying(&ctx->root->cgrp.self.refcnt)) {
self              473 kernel/cgroup/cgroup.c 		return &cgrp->self;
self              514 kernel/cgroup/cgroup.c 		return &cgrp->self;
self              594 kernel/cgroup/cgroup.c 	css_get(&cgrp->self);
self              646 kernel/cgroup/cgroup.c 		return &cgrp->self;
self              706 kernel/cgroup/cgroup.c 	list_for_each_entry((child), &(cgrp)->self.children, self.sibling) \
self             1328 kernel/cgroup/cgroup.c 	BUG_ON(!list_empty(&cgrp->self.children));
self             1694 kernel/cgroup/cgroup.c 		ret = cgroup_addrm_files(&cgrp->self, cgrp, cfts, true);
self             1950 kernel/cgroup/cgroup.c 	INIT_LIST_HEAD(&cgrp->self.sibling);
self             1951 kernel/cgroup/cgroup.c 	INIT_LIST_HEAD(&cgrp->self.children);
self             1955 kernel/cgroup/cgroup.c 	cgrp->self.cgroup = cgrp;
self             1956 kernel/cgroup/cgroup.c 	cgrp->self.flags |= CSS_ONLINE;
self             2006 kernel/cgroup/cgroup.c 	ret = percpu_ref_init(&root_cgrp->self.refcnt, css_release,
self             2039 kernel/cgroup/cgroup.c 	ret = css_populate_dir(&root_cgrp->self);
self             2072 kernel/cgroup/cgroup.c 	BUG_ON(!list_empty(&root_cgrp->self.children));
self             2085 kernel/cgroup/cgroup.c 	percpu_ref_exit(&root_cgrp->self.refcnt);
self             2223 kernel/cgroup/cgroup.c 	if (list_empty(&root->cgrp.self.children) && root != &cgrp_dfl_root &&
self             2224 kernel/cgroup/cgroup.c 	    !percpu_ref_is_dying(&root->cgrp.self.refcnt))
self             2225 kernel/cgroup/cgroup.c 		percpu_ref_kill(&root->cgrp.self.refcnt);
self             4696 kernel/cgroup/cgroup.c 		css_task_iter_start(&cgrp->self, iter_flags, it);
self             4699 kernel/cgroup/cgroup.c 		css_task_iter_start(&cgrp->self, iter_flags, it);
self             5234 kernel/cgroup/cgroup.c 	ret = percpu_ref_init(&cgrp->self.refcnt, css_release, 0, GFP_KERNEL);
self             5256 kernel/cgroup/cgroup.c 	cgrp->self.parent = &parent->self;
self             5308 kernel/cgroup/cgroup.c 	cgrp->self.serial_nr = css_serial_nr_next++;
self             5311 kernel/cgroup/cgroup.c 	list_add_tail_rcu(&cgrp->self.sibling, &cgroup_parent(cgrp)->self.children);
self             5340 kernel/cgroup/cgroup.c 	percpu_ref_exit(&cgrp->self.refcnt);
self             5412 kernel/cgroup/cgroup.c 	ret = css_populate_dir(&cgrp->self);
self             5558 kernel/cgroup/cgroup.c 	if (css_has_online_children(&cgrp->self))
self             5567 kernel/cgroup/cgroup.c 	cgrp->self.flags &= ~CSS_ONLINE;
self             5579 kernel/cgroup/cgroup.c 	css_clear_dir(&cgrp->self);
self             5603 kernel/cgroup/cgroup.c 	percpu_ref_kill(&cgrp->self.refcnt);
self             5699 kernel/cgroup/cgroup.c 	cgrp_dfl_root.cgrp.self.flags |= CSS_NO_REF;
self             3232 kernel/cgroup/cpuset.c static int cpuset_track_online_nodes(struct notifier_block *self,
self              274 kernel/cgroup/debug.c 		!css_has_online_children(&css->cgroup->self));
self              196 kernel/cgroup/freezer.c 	css_task_iter_start(&cgrp->self, 0, &it);
self              279 kernel/cgroup/freezer.c 	css_for_each_descendant_pre(css, &cgrp->self) {
self              792 kernel/debug/debug_core.c static int module_event(struct notifier_block *self, unsigned long val,
self              454 kernel/exit.c  		struct core_thread self;
self              458 kernel/exit.c  		self.task = current;
self              459 kernel/exit.c  		self.next = xchg(&core_state->dumper.next, &self);
self              469 kernel/exit.c  			if (!self.task) /* see coredump_finish() */
self              248 kernel/hung_task.c static int hungtask_pm_notify(struct notifier_block *self,
self              719 kernel/jump_label.c jump_label_module_notify(struct notifier_block *self, unsigned long val,
self             1836 kernel/kprobes.c int __weak kprobe_exceptions_notify(struct notifier_block *self,
self              186 kernel/kthread.c static void __kthread_parkme(struct kthread *self)
self              199 kernel/kthread.c 		if (!test_bit(KTHREAD_SHOULD_PARK, &self->flags))
self              202 kernel/kthread.c 		complete(&self->parked);
self              221 kernel/kthread.c 	struct kthread *self;
self              224 kernel/kthread.c 	self = kzalloc(sizeof(*self), GFP_KERNEL);
self              225 kernel/kthread.c 	set_kthread_struct(self);
self              234 kernel/kthread.c 	if (!self) {
self              240 kernel/kthread.c 	self->data = data;
self              241 kernel/kthread.c 	init_completion(&self->exited);
self              242 kernel/kthread.c 	init_completion(&self->parked);
self              243 kernel/kthread.c 	current->vfork_done = &self->exited;
self              252 kernel/kthread.c 	if (!test_bit(KTHREAD_SHOULD_STOP, &self->flags)) {
self              254 kernel/kthread.c 		__kthread_parkme(self);
self             1922 kernel/rcu/rcutorture.c static int rcutorture_oom_notify(struct notifier_block *self,
self             1344 kernel/rcu/srcutree.c static int srcu_module_notify(struct notifier_block *self,
self             3253 kernel/rcu/tree.c static int rcu_pm_notify(struct notifier_block *self,
self             6437 kernel/trace/ftrace.c 				     struct task_struct *self,
self             6444 kernel/trace/ftrace.c 	trace_filter_add_remove_task(pid_list, self, task);
self              399 kernel/trace/trace.c 				  struct task_struct *self,
self              406 kernel/trace/trace.c 	if (self) {
self              407 kernel/trace/trace.c 		if (!trace_find_filtered_pid(pid_list, self->pid))
self              416 kernel/trace/trace.c 	if (self)
self             8756 kernel/trace/trace.c static int trace_module_notify(struct notifier_block *self,
self             8843 kernel/trace/trace.c static int trace_die_handler(struct notifier_block *self,
self              772 kernel/trace/trace.h 				  struct task_struct *self,
self              515 kernel/trace/trace_events.c 				    struct task_struct *self,
self              522 kernel/trace/trace_events.c 	trace_filter_add_remove_task(pid_list, self, task);
self             2426 kernel/trace/trace_events.c static int trace_module_notify(struct notifier_block *self,
self             1945 kernel/trace/trace_events_hist.c 			     u64 *var_ref_vals, bool self)
self             1964 kernel/trace/trace_events_hist.c 		if ((self && var_data != hist_data) ||
self             1965 kernel/trace/trace_events_hist.c 		    (!self && var_data == hist_data))
self             1979 kernel/trace/trace_events_hist.c 		if (self || !hist_field->read_once)
self               88 kernel/trace/trace_printk.c static int module_trace_bprintk_format_notify(struct notifier_block *self,
self              174 kernel/trace/trace_printk.c module_trace_bprintk_format_notify(struct notifier_block *self,
self             1035 kernel/trace/trace_uprobe.c typedef bool (*filter_func_t)(struct uprobe_consumer *self,
self              506 kernel/tracepoint.c static int tracepoint_module_notify(struct notifier_block *self,
self               23 lib/crc-t10dif.c static int crc_t10dif_rehash(struct notifier_block *self, unsigned long val, void *data)
self               79 lib/test_bpf.c 	int (*fill_helper)(struct bpf_test *self);
self               87 lib/test_bpf.c static int bpf_fill_maxinsns1(struct bpf_test *self)
self              101 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              102 lib/test_bpf.c 	self->u.ptr.len = len;
self              107 lib/test_bpf.c static int bpf_fill_maxinsns2(struct bpf_test *self)
self              120 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              121 lib/test_bpf.c 	self->u.ptr.len = len;
self              126 lib/test_bpf.c static int bpf_fill_maxinsns3(struct bpf_test *self)
self              147 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              148 lib/test_bpf.c 	self->u.ptr.len = len;
self              153 lib/test_bpf.c static int bpf_fill_maxinsns4(struct bpf_test *self)
self              166 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              167 lib/test_bpf.c 	self->u.ptr.len = len;
self              172 lib/test_bpf.c static int bpf_fill_maxinsns5(struct bpf_test *self)
self              189 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              190 lib/test_bpf.c 	self->u.ptr.len = len;
self              195 lib/test_bpf.c static int bpf_fill_maxinsns6(struct bpf_test *self)
self              211 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              212 lib/test_bpf.c 	self->u.ptr.len = len;
self              217 lib/test_bpf.c static int bpf_fill_maxinsns7(struct bpf_test *self)
self              237 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              238 lib/test_bpf.c 	self->u.ptr.len = len;
self              243 lib/test_bpf.c static int bpf_fill_maxinsns8(struct bpf_test *self)
self              260 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              261 lib/test_bpf.c 	self->u.ptr.len = len;
self              266 lib/test_bpf.c static int bpf_fill_maxinsns9(struct bpf_test *self)
self              286 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              287 lib/test_bpf.c 	self->u.ptr.len = len;
self              292 lib/test_bpf.c static int bpf_fill_maxinsns10(struct bpf_test *self)
self              311 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              312 lib/test_bpf.c 	self->u.ptr.len = len;
self              317 lib/test_bpf.c static int __bpf_fill_ja(struct bpf_test *self, unsigned int len,
self              340 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              341 lib/test_bpf.c 	self->u.ptr.len = len;
self              346 lib/test_bpf.c static int bpf_fill_maxinsns11(struct bpf_test *self)
self              349 lib/test_bpf.c 	return __bpf_fill_ja(self, BPF_MAXINSNS, 68);
self              352 lib/test_bpf.c static int bpf_fill_maxinsns12(struct bpf_test *self)
self              369 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              370 lib/test_bpf.c 	self->u.ptr.len = len;
self              375 lib/test_bpf.c static int bpf_fill_maxinsns13(struct bpf_test *self)
self              392 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              393 lib/test_bpf.c 	self->u.ptr.len = len;
self              398 lib/test_bpf.c static int bpf_fill_ja(struct bpf_test *self)
self              401 lib/test_bpf.c 	return __bpf_fill_ja(self, 12, 9);
self              404 lib/test_bpf.c static int bpf_fill_ld_abs_get_processor_id(struct bpf_test *self)
self              422 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              423 lib/test_bpf.c 	self->u.ptr.len = len;
self              428 lib/test_bpf.c static int __bpf_fill_stxdw(struct bpf_test *self, int size)
self              447 lib/test_bpf.c 	self->u.ptr.insns = insn;
self              448 lib/test_bpf.c 	self->u.ptr.len = len;
self              449 lib/test_bpf.c 	self->stack_depth = 40;
self              454 lib/test_bpf.c static int bpf_fill_stxw(struct bpf_test *self)
self              456 lib/test_bpf.c 	return __bpf_fill_stxdw(self, BPF_W);
self              459 lib/test_bpf.c static int bpf_fill_stxdw(struct bpf_test *self)
self              461 lib/test_bpf.c 	return __bpf_fill_stxdw(self, BPF_DW);
self             2794 mm/ksm.c       static int ksm_memory_callback(struct notifier_block *self,
self              155 mm/mm_init.c   static int __meminit mm_compute_batch_notifier(struct notifier_block *self,
self             5746 mm/page_alloc.c 	pg_data_t *self = data;
self             5759 mm/page_alloc.c 	if (self && !node_online(self->node_id)) {
self             5760 mm/page_alloc.c 		build_zonelists(self);
self              335 mm/page_ext.c  static int __meminit page_ext_callback(struct notifier_block *self,
self             1118 mm/slab.c      static int __meminit slab_memory_callback(struct notifier_block *self,
self             4169 mm/slub.c      static int slab_memory_callback(struct notifier_block *self,
self              718 net/tipc/bcast.c void tipc_nlist_init(struct tipc_nlist *nl, u32 self)
self              722 net/tipc/bcast.c 	nl->self = self;
self              727 net/tipc/bcast.c 	if (node == nl->self)
self              735 net/tipc/bcast.c 	if (node == nl->self)
self               57 net/tipc/bcast.h 	u32 self;
self               62 net/tipc/bcast.h void tipc_nlist_init(struct tipc_nlist *nl, u32 self);
self              150 net/tipc/discover.c 	u32 self = tipc_own_addr(net);
self              168 net/tipc/discover.c 	if (!trial && !self) {
self              181 net/tipc/discover.c 				   self, sugg_addr, maddr, b);
self              208 net/tipc/discover.c 	u32 self;
self              233 net/tipc/discover.c 	self = tipc_own_addr(net);
self              237 net/tipc/discover.c 		disc_dupl_alert(b, self, &maddr);
self              240 net/tipc/discover.c 	if (!tipc_in_scope(legacy, dst, self))
self              252 net/tipc/discover.c 	tipc_disc_msg_xmit(net, DSC_RESP_MSG, src, self, 0, &maddr, b);
self              862 net/tipc/group.c 	u32 self;
self              868 net/tipc/group.c 	self = tipc_own_addr(net);
self              869 net/tipc/group.c 	if (!grp->loopback && node == self && port == grp->portid)
self              444 net/tipc/link.c 		      int window, u32 session, u32 self,
self              466 net/tipc/link.c 			sprintf(self_str, "%x", self);
self             2437 net/tipc/link.c 	u32 self = tipc_own_addr(net);
self             2454 net/tipc/link.c 	if (nla_put_u32(msg->skb, TIPC_NLA_LINK_DEST, tipc_cluster_mask(self)))
self               90 net/tipc/monitor.c 	struct tipc_peer *self;
self              169 net/tipc/monitor.c 	return mon->self;
self              242 net/tipc/monitor.c 	struct tipc_peer *self = mon->self;
self              244 net/tipc/monitor.c 	struct tipc_mon_domain *dom = self->domain;
self              245 net/tipc/monitor.c 	struct tipc_peer *peer = self;
self              252 net/tipc/monitor.c 	self->applied = member_cnt;
self              273 net/tipc/monitor.c 	mon_apply_domain(mon, self);
self              297 net/tipc/monitor.c 	struct tipc_peer *self = mon->self;
self              300 net/tipc/monitor.c 	for (; peer != self; peer = peer_nxt(peer)) {
self              306 net/tipc/monitor.c 			if (head == self)
self              325 net/tipc/monitor.c 	struct tipc_peer *self = get_self(net, bearer_id);
self              339 net/tipc/monitor.c 	if (head == self)
self              345 net/tipc/monitor.c 		list_for_each_entry(peer, &self->list, list) {
self              359 net/tipc/monitor.c 	struct tipc_peer *self = mon->self;
self              373 net/tipc/monitor.c 	prev = self;
self              374 net/tipc/monitor.c 	list_for_each_entry(cur, &self->list, list) {
self              391 net/tipc/monitor.c 	struct tipc_peer *self = get_self(net, bearer_id);
self              400 net/tipc/monitor.c 	if (head == self)
self              410 net/tipc/monitor.c 	struct tipc_peer *self = get_self(net, bearer_id);
self              433 net/tipc/monitor.c 	if (head == self)
self              593 net/tipc/monitor.c 	struct tipc_peer *self;
self              597 net/tipc/monitor.c 	self = mon->self;
self              598 net/tipc/monitor.c 	if (self && (best_member_cnt != self->applied)) {
self              600 net/tipc/monitor.c 		mon_assign_roles(mon, self);
self              610 net/tipc/monitor.c 	struct tipc_peer *self;
self              617 net/tipc/monitor.c 	self = kzalloc(sizeof(*self), GFP_ATOMIC);
self              619 net/tipc/monitor.c 	if (!mon || !self || !dom) {
self              621 net/tipc/monitor.c 		kfree(self);
self              629 net/tipc/monitor.c 	mon->self = self;
self              630 net/tipc/monitor.c 	self->domain = dom;
self              631 net/tipc/monitor.c 	self->addr = tipc_own_addr(net);
self              632 net/tipc/monitor.c 	self->is_up = true;
self              633 net/tipc/monitor.c 	self->is_head = true;
self              634 net/tipc/monitor.c 	INIT_LIST_HEAD(&self->list);
self              645 net/tipc/monitor.c 	struct tipc_peer *self;
self              651 net/tipc/monitor.c 	self = get_self(net, bearer_id);
self              654 net/tipc/monitor.c 	list_for_each_entry_safe(peer, tmp, &self->list, list) {
self              660 net/tipc/monitor.c 	mon->self = NULL;
self              663 net/tipc/monitor.c 	kfree(self->domain);
self              664 net/tipc/monitor.c 	kfree(self);
self              678 net/tipc/monitor.c 		mon->self->addr = tipc_own_addr(net);
self              766 net/tipc/monitor.c 	peer = mon->self;
self              779 net/tipc/monitor.c 	} while ((peer = peer_nxt(peer)) != mon->self);
self               72 net/tipc/name_distr.c 	u32 self = tipc_own_addr(net);
self               77 net/tipc/name_distr.c 		tipc_msg_init(self, msg, NAME_DISTRIBUTOR,
self              340 net/tipc/name_distr.c 	u32 self = tipc_own_addr(net);
self              345 net/tipc/name_distr.c 		publ->node = self;
self              347 net/tipc/name_distr.c 		publ->node = self;
self              427 net/tipc/name_table.c 	u32 self = tipc_own_addr(net);
self              435 net/tipc/name_table.c 	if (!tipc_in_scope(legacy, *dnode, self))
self              449 net/tipc/name_table.c 	if (*dnode == self) {
self              478 net/tipc/name_table.c 	u32 self = tipc_own_addr(net);
self              498 net/tipc/name_table.c 		if (p->port == exclude && p->node == self)
self              648 net/tipc/name_table.c 	u32 self = tipc_own_addr(net);
self              654 net/tipc/name_table.c 	p = tipc_nametbl_remove_publ(net, type, lower, upper, self, key);
self             1807 net/tipc/node.c 	u32 self = tipc_own_addr(net);
self             1830 net/tipc/node.c 	if (unlikely(!msg_short(hdr) && (msg_destnode(hdr) != self)))
self              294 net/tipc/socket.c 	u32 self = tipc_own_addr(sock_net(sk));
self              310 net/tipc/socket.c 	if (!orig_node && peer_node == self)
self              313 net/tipc/socket.c 	if (!peer_node && orig_node == self)
self             1134 net/tipc/socket.c 	u32 self = tipc_own_addr(net);
self             1175 net/tipc/socket.c 			if (onode == self)
self             2642 net/tipc/socket.c 	u32 self = tsk_own_node(tsk);
self             2655 net/tipc/socket.c 			      pnode, self, pport, oport, TIPC_OK);
self              601 net/tipc/topsrv.c 	u32 self = tipc_own_addr(net);
self              606 net/tipc/topsrv.c 			      self, self, port, port, 0);
self              315 sound/pci/oxygen/oxygen_lib.c 	if (!pci->bus || !pci->bus->self)
self              317 sound/pci/oxygen/oxygen_lib.c 	bridge = pci->bus->self;
self              547 sound/soc/sh/siu_dai.c 	int self, ret;
self              554 sound/soc/sh/siu_dai.c 		self = PLAYBACK_ENABLED;
self              557 sound/soc/sh/siu_dai.c 		self = CAPTURE_ENABLED;
self              579 sound/soc/sh/siu_dai.c 	port_info->play_cap |= self;
self               29 tools/bpf/bpftool/json_writer.c static void jsonw_indent(json_writer_t *self)
self               32 tools/bpf/bpftool/json_writer.c 	for (i = 0; i < self->depth; ++i)
self               33 tools/bpf/bpftool/json_writer.c 		fputs("    ", self->out);
self               37 tools/bpf/bpftool/json_writer.c static void jsonw_eol(json_writer_t *self)
self               39 tools/bpf/bpftool/json_writer.c 	if (!self->pretty)
self               42 tools/bpf/bpftool/json_writer.c 	putc('\n', self->out);
self               43 tools/bpf/bpftool/json_writer.c 	jsonw_indent(self);
self               47 tools/bpf/bpftool/json_writer.c static void jsonw_eor(json_writer_t *self)
self               49 tools/bpf/bpftool/json_writer.c 	if (self->sep != '\0')
self               50 tools/bpf/bpftool/json_writer.c 		putc(self->sep, self->out);
self               51 tools/bpf/bpftool/json_writer.c 	self->sep = ',';
self               57 tools/bpf/bpftool/json_writer.c static void jsonw_puts(json_writer_t *self, const char *str)
self               59 tools/bpf/bpftool/json_writer.c 	putc('"', self->out);
self               63 tools/bpf/bpftool/json_writer.c 			fputs("\\t", self->out);
self               66 tools/bpf/bpftool/json_writer.c 			fputs("\\n", self->out);
self               69 tools/bpf/bpftool/json_writer.c 			fputs("\\r", self->out);
self               72 tools/bpf/bpftool/json_writer.c 			fputs("\\f", self->out);
self               75 tools/bpf/bpftool/json_writer.c 			fputs("\\b", self->out);
self               78 tools/bpf/bpftool/json_writer.c 			fputs("\\n", self->out);
self               81 tools/bpf/bpftool/json_writer.c 			fputs("\\\"", self->out);
self               84 tools/bpf/bpftool/json_writer.c 			fputs("\\\'", self->out);
self               87 tools/bpf/bpftool/json_writer.c 			putc(*str, self->out);
self               89 tools/bpf/bpftool/json_writer.c 	putc('"', self->out);
self               95 tools/bpf/bpftool/json_writer.c 	json_writer_t *self = malloc(sizeof(*self));
self               96 tools/bpf/bpftool/json_writer.c 	if (self) {
self               97 tools/bpf/bpftool/json_writer.c 		self->out = f;
self               98 tools/bpf/bpftool/json_writer.c 		self->depth = 0;
self               99 tools/bpf/bpftool/json_writer.c 		self->pretty = false;
self              100 tools/bpf/bpftool/json_writer.c 		self->sep = '\0';
self              102 tools/bpf/bpftool/json_writer.c 	return self;
self              108 tools/bpf/bpftool/json_writer.c 	json_writer_t *self = *self_p;
self              110 tools/bpf/bpftool/json_writer.c 	assert(self->depth == 0);
self              111 tools/bpf/bpftool/json_writer.c 	fputs("\n", self->out);
self              112 tools/bpf/bpftool/json_writer.c 	fflush(self->out);
self              113 tools/bpf/bpftool/json_writer.c 	free(self);
self              117 tools/bpf/bpftool/json_writer.c void jsonw_pretty(json_writer_t *self, bool on)
self              119 tools/bpf/bpftool/json_writer.c 	self->pretty = on;
self              123 tools/bpf/bpftool/json_writer.c static void jsonw_begin(json_writer_t *self, int c)
self              125 tools/bpf/bpftool/json_writer.c 	jsonw_eor(self);
self              126 tools/bpf/bpftool/json_writer.c 	putc(c, self->out);
self              127 tools/bpf/bpftool/json_writer.c 	++self->depth;
self              128 tools/bpf/bpftool/json_writer.c 	self->sep = '\0';
self              131 tools/bpf/bpftool/json_writer.c static void jsonw_end(json_writer_t *self, int c)
self              133 tools/bpf/bpftool/json_writer.c 	assert(self->depth > 0);
self              135 tools/bpf/bpftool/json_writer.c 	--self->depth;
self              136 tools/bpf/bpftool/json_writer.c 	if (self->sep != '\0')
self              137 tools/bpf/bpftool/json_writer.c 		jsonw_eol(self);
self              138 tools/bpf/bpftool/json_writer.c 	putc(c, self->out);
self              139 tools/bpf/bpftool/json_writer.c 	self->sep = ',';
self              144 tools/bpf/bpftool/json_writer.c void jsonw_name(json_writer_t *self, const char *name)
self              146 tools/bpf/bpftool/json_writer.c 	jsonw_eor(self);
self              147 tools/bpf/bpftool/json_writer.c 	jsonw_eol(self);
self              148 tools/bpf/bpftool/json_writer.c 	self->sep = '\0';
self              149 tools/bpf/bpftool/json_writer.c 	jsonw_puts(self, name);
self              150 tools/bpf/bpftool/json_writer.c 	putc(':', self->out);
self              151 tools/bpf/bpftool/json_writer.c 	if (self->pretty)
self              152 tools/bpf/bpftool/json_writer.c 		putc(' ', self->out);
self              155 tools/bpf/bpftool/json_writer.c void jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap)
self              157 tools/bpf/bpftool/json_writer.c 	jsonw_eor(self);
self              158 tools/bpf/bpftool/json_writer.c 	putc('"', self->out);
self              159 tools/bpf/bpftool/json_writer.c 	vfprintf(self->out, fmt, ap);
self              160 tools/bpf/bpftool/json_writer.c 	putc('"', self->out);
self              163 tools/bpf/bpftool/json_writer.c void jsonw_printf(json_writer_t *self, const char *fmt, ...)
self              168 tools/bpf/bpftool/json_writer.c 	jsonw_eor(self);
self              169 tools/bpf/bpftool/json_writer.c 	vfprintf(self->out, fmt, ap);
self              174 tools/bpf/bpftool/json_writer.c void jsonw_start_object(json_writer_t *self)
self              176 tools/bpf/bpftool/json_writer.c 	jsonw_begin(self, '{');
self              179 tools/bpf/bpftool/json_writer.c void jsonw_end_object(json_writer_t *self)
self              181 tools/bpf/bpftool/json_writer.c 	jsonw_end(self, '}');
self              184 tools/bpf/bpftool/json_writer.c void jsonw_start_array(json_writer_t *self)
self              186 tools/bpf/bpftool/json_writer.c 	jsonw_begin(self, '[');
self              189 tools/bpf/bpftool/json_writer.c void jsonw_end_array(json_writer_t *self)
self              191 tools/bpf/bpftool/json_writer.c 	jsonw_end(self, ']');
self              195 tools/bpf/bpftool/json_writer.c void jsonw_string(json_writer_t *self, const char *value)
self              197 tools/bpf/bpftool/json_writer.c 	jsonw_eor(self);
self              198 tools/bpf/bpftool/json_writer.c 	jsonw_puts(self, value);
self              201 tools/bpf/bpftool/json_writer.c void jsonw_bool(json_writer_t *self, bool val)
self              203 tools/bpf/bpftool/json_writer.c 	jsonw_printf(self, "%s", val ? "true" : "false");
self              206 tools/bpf/bpftool/json_writer.c void jsonw_null(json_writer_t *self)
self              208 tools/bpf/bpftool/json_writer.c 	jsonw_printf(self, "null");
self              211 tools/bpf/bpftool/json_writer.c void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num)
self              213 tools/bpf/bpftool/json_writer.c 	jsonw_printf(self, fmt, num);
self              217 tools/bpf/bpftool/json_writer.c void jsonw_float(json_writer_t *self, double num)
self              219 tools/bpf/bpftool/json_writer.c 	jsonw_printf(self, "%g", num);
self              223 tools/bpf/bpftool/json_writer.c void jsonw_hu(json_writer_t *self, unsigned short num)
self              225 tools/bpf/bpftool/json_writer.c 	jsonw_printf(self, "%hu", num);
self              228 tools/bpf/bpftool/json_writer.c void jsonw_uint(json_writer_t *self, uint64_t num)
self              230 tools/bpf/bpftool/json_writer.c 	jsonw_printf(self, "%"PRIu64, num);
self              233 tools/bpf/bpftool/json_writer.c void jsonw_lluint(json_writer_t *self, unsigned long long int num)
self              235 tools/bpf/bpftool/json_writer.c 	jsonw_printf(self, "%llu", num);
self              238 tools/bpf/bpftool/json_writer.c void jsonw_int(json_writer_t *self, int64_t num)
self              240 tools/bpf/bpftool/json_writer.c 	jsonw_printf(self, "%"PRId64, num);
self              244 tools/bpf/bpftool/json_writer.c void jsonw_string_field(json_writer_t *self, const char *prop, const char *val)
self              246 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              247 tools/bpf/bpftool/json_writer.c 	jsonw_string(self, val);
self              250 tools/bpf/bpftool/json_writer.c void jsonw_bool_field(json_writer_t *self, const char *prop, bool val)
self              252 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              253 tools/bpf/bpftool/json_writer.c 	jsonw_bool(self, val);
self              257 tools/bpf/bpftool/json_writer.c void jsonw_float_field(json_writer_t *self, const char *prop, double val)
self              259 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              260 tools/bpf/bpftool/json_writer.c 	jsonw_float(self, val);
self              264 tools/bpf/bpftool/json_writer.c void jsonw_float_field_fmt(json_writer_t *self,
self              269 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              270 tools/bpf/bpftool/json_writer.c 	jsonw_float_fmt(self, fmt, val);
self              273 tools/bpf/bpftool/json_writer.c void jsonw_uint_field(json_writer_t *self, const char *prop, uint64_t num)
self              275 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              276 tools/bpf/bpftool/json_writer.c 	jsonw_uint(self, num);
self              279 tools/bpf/bpftool/json_writer.c void jsonw_hu_field(json_writer_t *self, const char *prop, unsigned short num)
self              281 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              282 tools/bpf/bpftool/json_writer.c 	jsonw_hu(self, num);
self              285 tools/bpf/bpftool/json_writer.c void jsonw_lluint_field(json_writer_t *self,
self              289 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              290 tools/bpf/bpftool/json_writer.c 	jsonw_lluint(self, num);
self              293 tools/bpf/bpftool/json_writer.c void jsonw_int_field(json_writer_t *self, const char *prop, int64_t num)
self              295 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              296 tools/bpf/bpftool/json_writer.c 	jsonw_int(self, num);
self              299 tools/bpf/bpftool/json_writer.c void jsonw_null_field(json_writer_t *self, const char *prop)
self              301 tools/bpf/bpftool/json_writer.c 	jsonw_name(self, prop);
self              302 tools/bpf/bpftool/json_writer.c 	jsonw_null(self);
self               28 tools/bpf/bpftool/json_writer.h void jsonw_pretty(json_writer_t *self, bool on);
self               31 tools/bpf/bpftool/json_writer.h void jsonw_name(json_writer_t *self, const char *name);
self               34 tools/bpf/bpftool/json_writer.h void __printf(2, 0) jsonw_vprintf_enquote(json_writer_t *self, const char *fmt,
self               36 tools/bpf/bpftool/json_writer.h void __printf(2, 3) jsonw_printf(json_writer_t *self, const char *fmt, ...);
self               37 tools/bpf/bpftool/json_writer.h void jsonw_string(json_writer_t *self, const char *value);
self               38 tools/bpf/bpftool/json_writer.h void jsonw_bool(json_writer_t *self, bool value);
self               39 tools/bpf/bpftool/json_writer.h void jsonw_float(json_writer_t *self, double number);
self               40 tools/bpf/bpftool/json_writer.h void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num);
self               41 tools/bpf/bpftool/json_writer.h void jsonw_uint(json_writer_t *self, uint64_t number);
self               42 tools/bpf/bpftool/json_writer.h void jsonw_hu(json_writer_t *self, unsigned short number);
self               43 tools/bpf/bpftool/json_writer.h void jsonw_int(json_writer_t *self, int64_t number);
self               44 tools/bpf/bpftool/json_writer.h void jsonw_null(json_writer_t *self);
self               45 tools/bpf/bpftool/json_writer.h void jsonw_lluint(json_writer_t *self, unsigned long long int num);
self               48 tools/bpf/bpftool/json_writer.h void jsonw_string_field(json_writer_t *self, const char *prop, const char *val);
self               49 tools/bpf/bpftool/json_writer.h void jsonw_bool_field(json_writer_t *self, const char *prop, bool value);
self               50 tools/bpf/bpftool/json_writer.h void jsonw_float_field(json_writer_t *self, const char *prop, double num);
self               51 tools/bpf/bpftool/json_writer.h void jsonw_uint_field(json_writer_t *self, const char *prop, uint64_t num);
self               52 tools/bpf/bpftool/json_writer.h void jsonw_hu_field(json_writer_t *self, const char *prop, unsigned short num);
self               53 tools/bpf/bpftool/json_writer.h void jsonw_int_field(json_writer_t *self, const char *prop, int64_t num);
self               54 tools/bpf/bpftool/json_writer.h void jsonw_null_field(json_writer_t *self, const char *prop);
self               55 tools/bpf/bpftool/json_writer.h void jsonw_lluint_field(json_writer_t *self, const char *prop,
self               57 tools/bpf/bpftool/json_writer.h void jsonw_float_field_fmt(json_writer_t *self, const char *prop,
self               61 tools/bpf/bpftool/json_writer.h void jsonw_start_object(json_writer_t *self);
self               62 tools/bpf/bpftool/json_writer.h void jsonw_end_object(json_writer_t *self);
self               64 tools/bpf/bpftool/json_writer.h void jsonw_start_array(json_writer_t *self);
self               65 tools/bpf/bpftool/json_writer.h void jsonw_end_array(json_writer_t *self);
self              163 tools/perf/tests/hists_cumulate.c 	u64 self;
self              210 tools/perf/tests/hists_cumulate.c 		TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self &&
self              101 tools/testing/selftests/bpf/test_verifier.c 	void (*fill_helper)(struct bpf_test *self);
self              133 tools/testing/selftests/bpf/test_verifier.c static void bpf_fill_ld_abs_vlan_push_pop(struct bpf_test *self)
self              139 tools/testing/selftests/bpf/test_verifier.c 	struct bpf_insn *insn = self->fill_insns;
self              177 tools/testing/selftests/bpf/test_verifier.c 	self->prog_len = len;
self              180 tools/testing/selftests/bpf/test_verifier.c static void bpf_fill_jump_around_ld_abs(struct bpf_test *self)
self              182 tools/testing/selftests/bpf/test_verifier.c 	struct bpf_insn *insn = self->fill_insns;
self              199 tools/testing/selftests/bpf/test_verifier.c 	self->prog_len = i + 1;
self              202 tools/testing/selftests/bpf/test_verifier.c static void bpf_fill_rand_ld_dw(struct bpf_test *self)
self              204 tools/testing/selftests/bpf/test_verifier.c 	struct bpf_insn *insn = self->fill_insns;
self              209 tools/testing/selftests/bpf/test_verifier.c 	while (i < self->retval) {
self              222 tools/testing/selftests/bpf/test_verifier.c 	self->prog_len = i + 1;
self              224 tools/testing/selftests/bpf/test_verifier.c 	self->retval = (uint32_t)res;
self              230 tools/testing/selftests/bpf/test_verifier.c static void bpf_fill_scale1(struct bpf_test *self)
self              232 tools/testing/selftests/bpf/test_verifier.c 	struct bpf_insn *insn = self->fill_insns;
self              251 tools/testing/selftests/bpf/test_verifier.c 	self->prog_len = i + 1;
self              252 tools/testing/selftests/bpf/test_verifier.c 	self->retval = 42;
self              256 tools/testing/selftests/bpf/test_verifier.c static void bpf_fill_scale2(struct bpf_test *self)
self              258 tools/testing/selftests/bpf/test_verifier.c 	struct bpf_insn *insn = self->fill_insns;
self              280 tools/testing/selftests/bpf/test_verifier.c 	self->prog_len = i + 1;
self              281 tools/testing/selftests/bpf/test_verifier.c 	self->retval = 42;
self              284 tools/testing/selftests/bpf/test_verifier.c static void bpf_fill_scale(struct bpf_test *self)
self              286 tools/testing/selftests/bpf/test_verifier.c 	switch (self->retval) {
self              288 tools/testing/selftests/bpf/test_verifier.c 		return bpf_fill_scale1(self);
self              290 tools/testing/selftests/bpf/test_verifier.c 		return bpf_fill_scale2(self);
self              292 tools/testing/selftests/bpf/test_verifier.c 		self->prog_len = 0;
self              244 tools/testing/selftests/kselftest_harness.h 		FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)
self              264 tools/testing/selftests/kselftest_harness.h 		FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)
self              296 tools/testing/selftests/kselftest_harness.h 		FIXTURE_DATA(fixture_name) *self); \
self              301 tools/testing/selftests/kselftest_harness.h 		FIXTURE_DATA(fixture_name) self; \
self              302 tools/testing/selftests/kselftest_harness.h 		memset(&self, 0, sizeof(FIXTURE_DATA(fixture_name))); \
self              303 tools/testing/selftests/kselftest_harness.h 		fixture_name##_setup(_metadata, &self); \
self              307 tools/testing/selftests/kselftest_harness.h 		fixture_name##_##test_name(_metadata, &self); \
self              308 tools/testing/selftests/kselftest_harness.h 		fixture_name##_teardown(_metadata, &self); \
self              324 tools/testing/selftests/kselftest_harness.h 		FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)
self               40 tools/testing/selftests/net/tls.c 	self->notls = false;
self               47 tools/testing/selftests/net/tls.c 	self->fd = socket(AF_INET, SOCK_STREAM, 0);
self               58 tools/testing/selftests/net/tls.c 	ret = connect(self->fd, &addr, sizeof(addr));
self               61 tools/testing/selftests/net/tls.c 	self->cfd = accept(sfd, &addr, &len);
self               62 tools/testing/selftests/net/tls.c 	ASSERT_GE(self->cfd, 0);
self               66 tools/testing/selftests/net/tls.c 	ret = setsockopt(self->fd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls"));
self               69 tools/testing/selftests/net/tls.c 		self->notls = true;
self               74 tools/testing/selftests/net/tls.c 	ret = setsockopt(self->cfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls"));
self               80 tools/testing/selftests/net/tls.c 	close(self->fd);
self               81 tools/testing/selftests/net/tls.c 	close(self->cfd);
self               93 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self               94 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1);
self              111 tools/testing/selftests/net/tls.c 	self->notls = false;
self              122 tools/testing/selftests/net/tls.c 	self->fd = socket(AF_INET, SOCK_STREAM, 0);
self              133 tools/testing/selftests/net/tls.c 	ret = connect(self->fd, &addr, sizeof(addr));
self              136 tools/testing/selftests/net/tls.c 	ret = setsockopt(self->fd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls"));
self              138 tools/testing/selftests/net/tls.c 		self->notls = true;
self              142 tools/testing/selftests/net/tls.c 	if (!self->notls) {
self              143 tools/testing/selftests/net/tls.c 		ret = setsockopt(self->fd, SOL_TLS, TLS_TX, &tls12,
self              148 tools/testing/selftests/net/tls.c 	self->cfd = accept(sfd, &addr, &len);
self              149 tools/testing/selftests/net/tls.c 	ASSERT_GE(self->cfd, 0);
self              151 tools/testing/selftests/net/tls.c 	if (!self->notls) {
self              152 tools/testing/selftests/net/tls.c 		ret = setsockopt(self->cfd, IPPROTO_TCP, TCP_ULP, "tls",
self              156 tools/testing/selftests/net/tls.c 		ret = setsockopt(self->cfd, SOL_TLS, TLS_RX, &tls12,
self              166 tools/testing/selftests/net/tls.c 	close(self->fd);
self              167 tools/testing/selftests/net/tls.c 	close(self->cfd);
self              177 tools/testing/selftests/net/tls.c 	EXPECT_GE(sendfile(self->fd, filefd, 0, st.st_size), 0);
self              193 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, to_send, 0), to_send);
self              194 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_buf, to_send, MSG_WAITALL), to_send);
self              197 tools/testing/selftests/net/tls.c 	EXPECT_GE(sendfile(self->fd, filefd, 0, st.st_size), 0);
self              198 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, st.st_size, MSG_WAITALL), st.st_size);
self              207 tools/testing/selftests/net/tls.c 	EXPECT_GE(send(self->fd, buf, send_len, 0), 0);
self              208 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1);
self              219 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              220 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1);
self              230 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len);
self              231 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_DONTWAIT), -1);
self              232 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              233 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, send_len * 2, MSG_WAITALL),
self              244 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len);
self              245 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_DONTWAIT), -1);
self              262 tools/testing/selftests/net/tls.c 	EXPECT_EQ(sendmsg(self->fd, &msg, 0), send_len);
self              263 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_WAITALL), send_len);
self              287 tools/testing/selftests/net/tls.c 		EXPECT_EQ(sendmsg(self->fd, &msg, 0), SEND_LEN * frags);
self              288 tools/testing/selftests/net/tls.c 		EXPECT_EQ(recv(self->cfd, buf, SEND_LEN * frags, MSG_WAITALL),
self              314 tools/testing/selftests/net/tls.c 		EXPECT_EQ(sendmsg(self->cfd, &msg, 0), send_len);
self              318 tools/testing/selftests/net/tls.c 		EXPECT_NE(recv(self->fd, mem, send_len, 0), -1);
self              346 tools/testing/selftests/net/tls.c 	EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len);
self              348 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->fd, buf, total_len, 0), -1);
self              383 tools/testing/selftests/net/tls.c 	EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len);
self              384 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1);
self              402 tools/testing/selftests/net/tls.c 	EXPECT_GE(splice(p[0], NULL, self->fd, NULL, send_len, 0), 0);
self              403 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, mem_recv, send_len, MSG_WAITALL), send_len);
self              418 tools/testing/selftests/net/tls.c 	EXPECT_GE(splice(p[0], NULL, self->fd, NULL, 8000, 0), 0);
self              420 tools/testing/selftests/net/tls.c 	EXPECT_GE(splice(p2[0], NULL, self->fd, NULL, 8000, 0), 0);
self              421 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, mem_recv, send_len, MSG_WAITALL), send_len);
self              436 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len2, 0), send_len2);
self              437 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, send_len2, MSG_WAITALL), send_len2);
self              441 tools/testing/selftests/net/tls.c 	EXPECT_GE(splice(p[0], NULL, self->fd, NULL, send_len, 0), send_len);
self              443 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, mem_recv, send_len, MSG_WAITALL), send_len);
self              455 tools/testing/selftests/net/tls.c 	EXPECT_GE(send(self->fd, mem_send, send_len, 0), 0);
self              456 tools/testing/selftests/net/tls.c 	EXPECT_GE(splice(self->cfd, NULL, p[1], NULL, send_len, 0), 0);
self              470 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              475 tools/testing/selftests/net/tls.c 	EXPECT_NE(recvmsg(self->cfd, &hdr, 0), -1);
self              487 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, send_mem, send_len, 0), send_len);
self              493 tools/testing/selftests/net/tls.c 	EXPECT_NE(recvmsg(self->cfd, &hdr, 0), -1);
self              509 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, buf, send_len, 0), send_len);
self              518 tools/testing/selftests/net/tls.c 	EXPECT_NE(recvmsg(self->cfd, &hdr, 0), -1);
self              533 tools/testing/selftests/net/tls.c 	EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0);
self              536 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1);
self              537 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, recv_mem + send_len, send_len, 0), -1);
self              548 tools/testing/selftests/net/tls.c 	EXPECT_GE(send(self->fd, send_mem, send_len, 0), 0);
self              549 tools/testing/selftests/net/tls.c 	EXPECT_GE(send(self->fd, send_mem, send_len, 0), 0);
self              551 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem, total_len, MSG_WAITALL), total_len);
self              564 tools/testing/selftests/net/tls.c 	EXPECT_GE(send(self->fd, send_mem, total_len, 0), 0);
self              567 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem, recv_len, 0), recv_len);
self              568 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem + recv_len, recv_len, 0), 5);
self              581 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              582 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, recv_mem, strlen(test_str_first),
self              586 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, recv_mem, strlen(test_str_second),
self              597 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, sizeof(buf), MSG_DONTWAIT), -1);
self              608 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              609 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, buf, send_len, MSG_PEEK), -1);
self              612 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1);
self              624 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              626 tools/testing/selftests/net/tls.c 		EXPECT_NE(recv(self->cfd, buf, send_len, MSG_PEEK), -1);
self              630 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1);
self              643 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str_first, len, 0), len);
self              646 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str_second, len, 0), len);
self              650 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len);
self              658 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, len, MSG_WAITALL), len);
self              670 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str_first, len, MSG_MORE), len);
self              673 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str_second, len, 0), len);
self              677 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len);
self              692 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str_first, len, 0), len);
self              695 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str_second, len, 0), len);
self              699 tools/testing/selftests/net/tls.c 	EXPECT_NE((len = recv(self->cfd, buf, len,
self              711 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, send_mem, 10, 0), 10);
self              712 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, send_mem, 5, 0), 5);
self              715 tools/testing/selftests/net/tls.c 	EXPECT_EQ(setsockopt(self->cfd, SOL_SOCKET, SO_RCVLOWAT,
self              717 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem, 1, MSG_WAITALL), 1);
self              718 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem + 1, 6, MSG_WAITALL), 6);
self              719 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem + 7, 10, 0), 8);
self              732 tools/testing/selftests/net/tls.c 	if (!self->notls) {
self              739 tools/testing/selftests/net/tls.c 		ret = setsockopt(self->fd, SOL_TLS, TLS_RX, &tls12,
self              743 tools/testing/selftests/net/tls.c 		ret = setsockopt(self->cfd, SOL_TLS, TLS_TX, &tls12,
self              750 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              751 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1);
self              756 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->cfd, test_str, send_len, 0), send_len);
self              757 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->fd, buf, send_len, 0), -1);
self              768 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              769 tools/testing/selftests/net/tls.c 	fd.fd = self->cfd;
self              774 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_WAITALL), send_len);
self              786 tools/testing/selftests/net/tls.c 	fd.fd = self->cfd;
self              788 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self              792 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem, send_len, MSG_WAITALL), send_len);
self              801 tools/testing/selftests/net/tls.c 	fd.fd = self->cfd;
self              804 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, send_mem, sizeof(send_mem), 0),
self              809 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem, sizeof(recv_mem), MSG_WAITALL),
self              813 tools/testing/selftests/net/tls.c 	fd.fd = self->cfd;
self              817 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, recv_mem, sizeof(recv_mem), 0),
self              836 tools/testing/selftests/net/tls.c 			int res = send(self->fd, buf,
self              852 tools/testing/selftests/net/tls.c 			int res = recv(self->cfd, buf,
self              868 tools/testing/selftests/net/tls.c 	flags = fcntl(self->fd, F_GETFL, 0);
self              869 tools/testing/selftests/net/tls.c 	fcntl(self->fd, F_SETFL, flags | O_NONBLOCK);
self              870 tools/testing/selftests/net/tls.c 	fcntl(self->cfd, F_SETFL, flags | O_NONBLOCK);
self              875 tools/testing/selftests/net/tls.c 	EXPECT_EQ(setsockopt(self->fd, SOL_SOCKET, SO_SNDBUF,
self              890 tools/testing/selftests/net/tls.c 			int res = send(self->fd, buf,
self              914 tools/testing/selftests/net/tls.c 			int res = recv(self->cfd, buf,
self              930 tools/testing/selftests/net/tls.c test_mutliproc(struct __test_metadata *_metadata, struct _test_data_tls *self,
self              981 tools/testing/selftests/net/tls.c 			res = recv(self->cfd, rb,
self              995 tools/testing/selftests/net/tls.c 				res = sendfile(self->fd, fd, NULL,
self              998 tools/testing/selftests/net/tls.c 				res = send(self->fd, buf,
self             1009 tools/testing/selftests/net/tls.c 	test_mutliproc(_metadata, self, false, 6, 6);
self             1014 tools/testing/selftests/net/tls.c 	test_mutliproc(_metadata, self, false, 4, 12);
self             1019 tools/testing/selftests/net/tls.c 	test_mutliproc(_metadata, self, false, 10, 2);
self             1024 tools/testing/selftests/net/tls.c 	test_mutliproc(_metadata, self, true, 6, 6);
self             1029 tools/testing/selftests/net/tls.c 	test_mutliproc(_metadata, self, true, 4, 12);
self             1034 tools/testing/selftests/net/tls.c 	test_mutliproc(_metadata, self, true, 10, 2);
self             1039 tools/testing/selftests/net/tls.c 	if (self->notls)
self             1067 tools/testing/selftests/net/tls.c 	EXPECT_EQ(sendmsg(self->fd, &msg, 0), send_len);
self             1069 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recv(self->cfd, buf, send_len, 0), -1);
self             1072 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recvmsg(self->cfd, &msg, MSG_WAITALL | MSG_PEEK), send_len);
self             1086 tools/testing/selftests/net/tls.c 	EXPECT_EQ(recvmsg(self->cfd, &msg, MSG_WAITALL), send_len);
self             1104 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len);
self             1105 tools/testing/selftests/net/tls.c 	EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1);
self             1108 tools/testing/selftests/net/tls.c 	shutdown(self->fd, SHUT_RDWR);
self             1109 tools/testing/selftests/net/tls.c 	shutdown(self->cfd, SHUT_RDWR);
self             1117 tools/testing/selftests/net/tls.c 	EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len);
self             1119 tools/testing/selftests/net/tls.c 	shutdown(self->fd, SHUT_RDWR);
self             1120 tools/testing/selftests/net/tls.c 	shutdown(self->cfd, SHUT_RDWR);
self             1128 tools/testing/selftests/net/tls.c 	shutdown(self->fd, SHUT_RDWR);
self             1129 tools/testing/selftests/net/tls.c 	shutdown(self->cfd, SHUT_RDWR);
self             1130 tools/testing/selftests/net/tls.c 	close(self->cfd);
self             1136 tools/testing/selftests/net/tls.c 	ret = bind(self->fd, &addr, sizeof(addr));
self             1138 tools/testing/selftests/net/tls.c 	ret = listen(self->fd, 10);
self             1142 tools/testing/selftests/net/tls.c 	ret = connect(self->fd, &addr, sizeof(addr));
self               31 tools/testing/selftests/rtc/rtctest.c 	self->fd = open(rtc_file, O_RDONLY);
self               32 tools/testing/selftests/rtc/rtctest.c 	ASSERT_NE(-1, self->fd);
self               36 tools/testing/selftests/rtc/rtctest.c 	close(self->fd);
self               44 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm);
self               57 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_UIE_ON, 0);
self               66 tools/testing/selftests/rtc/rtctest.c 		rc = read(self->fd, &data, sizeof(data));
self               73 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_UIE_OFF, 0);
self               82 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_UIE_ON, 0);
self               94 tools/testing/selftests/rtc/rtctest.c 		FD_SET(self->fd, &readfds);
self               96 tools/testing/selftests/rtc/rtctest.c 		rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
self              101 tools/testing/selftests/rtc/rtctest.c 		rc = read(self->fd, &data, sizeof(unsigned long));
self              108 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_UIE_OFF, 0);
self              120 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &tm);
self              126 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_ALM_SET, &tm);
self              133 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_ALM_READ, &tm);
self              140 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_AIE_ON, 0);
self              144 tools/testing/selftests/rtc/rtctest.c 	FD_SET(self->fd, &readfds);
self              146 tools/testing/selftests/rtc/rtctest.c 	rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
self              151 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_AIE_OFF, 0);
self              154 tools/testing/selftests/rtc/rtctest.c 	rc = read(self->fd, &data, sizeof(unsigned long));
self              158 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &tm);
self              174 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
self              182 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
self              189 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
self              198 tools/testing/selftests/rtc/rtctest.c 	FD_SET(self->fd, &readfds);
self              200 tools/testing/selftests/rtc/rtctest.c 	rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
self              204 tools/testing/selftests/rtc/rtctest.c 	rc = read(self->fd, &data, sizeof(unsigned long));
self              207 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &tm);
self              222 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &tm);
self              228 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_ALM_SET, &tm);
self              235 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_ALM_READ, &tm);
self              242 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_AIE_ON, 0);
self              246 tools/testing/selftests/rtc/rtctest.c 	FD_SET(self->fd, &readfds);
self              248 tools/testing/selftests/rtc/rtctest.c 	rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
self              253 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_AIE_OFF, 0);
self              256 tools/testing/selftests/rtc/rtctest.c 	rc = read(self->fd, &data, sizeof(unsigned long));
self              260 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &tm);
self              276 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time);
self              284 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_WKALM_SET, &alarm);
self              291 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_WKALM_RD, &alarm);
self              300 tools/testing/selftests/rtc/rtctest.c 	FD_SET(self->fd, &readfds);
self              302 tools/testing/selftests/rtc/rtctest.c 	rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
self              306 tools/testing/selftests/rtc/rtctest.c 	rc = read(self->fd, &data, sizeof(unsigned long));
self              309 tools/testing/selftests/rtc/rtctest.c 	rc = ioctl(self->fd, RTC_RD_TIME, &tm);
self              919 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->prog, 0, sizeof(self->prog));
self              920 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.filter = malloc(sizeof(filter));
self              921 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->prog.filter);
self              922 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->prog.filter, filter, sizeof(filter));
self              923 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.len = (unsigned short)ARRAY_SIZE(filter);
self              928 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->prog.filter)
self              929 tools/testing/selftests/seccomp/seccomp_bpf.c 		free(self->prog.filter);
self              939 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
self              954 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
self              990 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
self             1066 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(self, 0, sizeof(*self));
self             1068 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->_x.filter = malloc(sizeof(_x##_insns)); \
self             1069 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->_x.filter); \
self             1070 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->_x.filter, &_x##_insns, sizeof(_x##_insns)); \
self             1071 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->_x.len = (unsigned short)ARRAY_SIZE(_x##_insns)
self             1082 tools/testing/selftests/seccomp/seccomp_bpf.c #define FILTER_FREE(_x) if (self->_x.filter) free(self->_x.filter)
self             1100 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1102 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1104 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1106 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
self             1108 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
self             1110 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill);
self             1126 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1128 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1130 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1132 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
self             1134 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
self             1136 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill);
self             1155 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1157 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill);
self             1159 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
self             1161 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1163 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1165 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
self             1182 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1184 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1186 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1188 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
self             1190 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
self             1207 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1209 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
self             1211 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1213 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1215 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
self             1232 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1234 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1236 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1238 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
self             1254 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1256 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
self             1258 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1260 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1276 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1278 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1280 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1297 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
self             1299 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1301 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1319 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1321 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1339 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
self             1341 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
self             1522 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->poked = 0;
self             1523 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->prog, 0, sizeof(self->prog));
self             1524 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.filter = malloc(sizeof(filter));
self             1525 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->prog.filter);
self             1526 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->prog.filter, filter, sizeof(filter));
self             1527 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.len = (unsigned short)ARRAY_SIZE(filter);
self             1530 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->tracer_args.poke_addr = (unsigned long)&self->poked;
self             1533 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->tracer = setup_trace_fixture(_metadata, tracer_poke,
self             1534 tools/testing/selftests/seccomp/seccomp_bpf.c 					   &self->tracer_args, false);
self             1539 tools/testing/selftests/seccomp/seccomp_bpf.c 	teardown_trace_fixture(_metadata, self->tracer);
self             1540 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->prog.filter)
self             1541 tools/testing/selftests/seccomp/seccomp_bpf.c 		free(self->prog.filter);
self             1551 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
self             1554 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(0, self->poked);
self             1557 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(0x1001, self->poked);
self             1567 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
self             1570 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(0, self->poked);
self             1572 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(0, self->poked);
self             1830 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->prog, 0, sizeof(self->prog));
self             1831 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.filter = malloc(sizeof(filter));
self             1832 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->prog.filter);
self             1833 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->prog.filter, filter, sizeof(filter));
self             1834 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->prog.len = (unsigned short)ARRAY_SIZE(filter);
self             1837 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->mytid = syscall(__NR_gettid);
self             1838 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_GT(self->mytid, 0);
self             1839 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(self->mytid, 1) {
self             1843 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->mypid = getpid();
self             1844 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_GT(self->mypid, 0);
self             1845 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(self->mytid, self->mypid);
self             1847 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->parent = getppid();
self             1848 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_GT(self->parent, 0);
self             1849 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(self->parent, self->mypid);
self             1852 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->tracer = setup_trace_fixture(_metadata, tracer_syscall, NULL,
self             1858 tools/testing/selftests/seccomp/seccomp_bpf.c 	teardown_trace_fixture(_metadata, self->tracer);
self             1859 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->prog.filter)
self             1860 tools/testing/selftests/seccomp/seccomp_bpf.c 		free(self->prog.filter);
self             1866 tools/testing/selftests/seccomp/seccomp_bpf.c 	teardown_trace_fixture(_metadata, self->tracer);
self             1867 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->tracer = setup_trace_fixture(_metadata, tracer_ptrace, NULL,
self             1871 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_NE(self->mypid, syscall(__NR_getpid));
self             1877 tools/testing/selftests/seccomp/seccomp_bpf.c 	teardown_trace_fixture(_metadata, self->tracer);
self             1878 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->tracer = setup_trace_fixture(_metadata, tracer_ptrace, NULL,
self             1888 tools/testing/selftests/seccomp/seccomp_bpf.c 	teardown_trace_fixture(_metadata, self->tracer);
self             1889 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->tracer = setup_trace_fixture(_metadata, tracer_ptrace, NULL,
self             1903 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
self             1907 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(self->parent, syscall(__NR_getppid));
self             1908 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_NE(self->mypid, syscall(__NR_getppid));
self             1918 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
self             1922 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(self->parent, syscall(__NR_getpid));
self             1923 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_NE(self->mypid, syscall(__NR_getpid));
self             1933 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
self             1947 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
self             1973 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
self             2005 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
self             2013 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_NE(self->mypid, syscall(__NR_getpid));
self             2032 tools/testing/selftests/seccomp/seccomp_bpf.c 	teardown_trace_fixture(_metadata, self->tracer);
self             2033 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->tracer = setup_trace_fixture(_metadata, tracer_ptrace, NULL,
self             2064 tools/testing/selftests/seccomp/seccomp_bpf.c 	teardown_trace_fixture(_metadata, self->tracer);
self             2065 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->tracer = setup_trace_fixture(_metadata, tracer_ptrace, NULL,
self             2076 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_NE(self->mypid, syscall(__NR_getpid));
self             2335 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->root_prog, 0, sizeof(self->root_prog));
self             2336 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->apply_prog, 0, sizeof(self->apply_prog));
self             2337 tools/testing/selftests/seccomp/seccomp_bpf.c 	memset(&self->sibling, 0, sizeof(self->sibling));
self             2338 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->root_prog.filter = malloc(sizeof(root_filter));
self             2339 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->root_prog.filter);
self             2340 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->root_prog.filter, &root_filter, sizeof(root_filter));
self             2341 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->root_prog.len = (unsigned short)ARRAY_SIZE(root_filter);
self             2343 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->apply_prog.filter = malloc(sizeof(apply_filter));
self             2344 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_NE(NULL, self->apply_prog.filter);
self             2345 tools/testing/selftests/seccomp/seccomp_bpf.c 	memcpy(self->apply_prog.filter, &apply_filter, sizeof(apply_filter));
self             2346 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->apply_prog.len = (unsigned short)ARRAY_SIZE(apply_filter);
self             2348 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling_count = 0;
self             2349 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_init(&self->mutex, NULL);
self             2350 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_cond_init(&self->cond, NULL);
self             2351 tools/testing/selftests/seccomp/seccomp_bpf.c 	sem_init(&self->started, 0, 0);
self             2352 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].tid = 0;
self             2353 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].cond = &self->cond;
self             2354 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].started = &self->started;
self             2355 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].mutex = &self->mutex;
self             2356 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].diverge = 0;
self             2357 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].num_waits = 1;
self             2358 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].prog = &self->root_prog;
self             2359 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].metadata = _metadata;
self             2360 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].tid = 0;
self             2361 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].cond = &self->cond;
self             2362 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].started = &self->started;
self             2363 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].mutex = &self->mutex;
self             2364 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].diverge = 0;
self             2365 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].prog = &self->root_prog;
self             2366 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].num_waits = 1;
self             2367 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[1].metadata = _metadata;
self             2374 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->root_prog.filter)
self             2375 tools/testing/selftests/seccomp/seccomp_bpf.c 		free(self->root_prog.filter);
self             2376 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->apply_prog.filter)
self             2377 tools/testing/selftests/seccomp/seccomp_bpf.c 		free(self->apply_prog.filter);
self             2379 tools/testing/selftests/seccomp/seccomp_bpf.c 	for ( ; sib < self->sibling_count; ++sib) {
self             2380 tools/testing/selftests/seccomp/seccomp_bpf.c 		struct tsync_sibling *s = &self->sibling[sib];
self             2390 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_destroy(&self->mutex);
self             2391 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_cond_destroy(&self->cond);
self             2392 tools/testing/selftests/seccomp/seccomp_bpf.c 	sem_destroy(&self->started);
self             2461 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].diverge = 1;
self             2462 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[0]);
self             2463 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[1]);
self             2465 tools/testing/selftests/seccomp/seccomp_bpf.c 	while (self->sibling_count < TSYNC_SIBLINGS) {
self             2466 tools/testing/selftests/seccomp/seccomp_bpf.c 		sem_wait(&self->started);
self             2467 tools/testing/selftests/seccomp/seccomp_bpf.c 		self->sibling_count++;
self             2471 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_lock(&self->mutex);
self             2472 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
self             2475 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_unlock(&self->mutex);
self             2478 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[0].tid, &status);
self             2480 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[1].tid, &status);
self             2493 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &self->root_prog);
self             2500 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[0]);
self             2501 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[1]);
self             2503 tools/testing/selftests/seccomp/seccomp_bpf.c 	while (self->sibling_count < TSYNC_SIBLINGS) {
self             2504 tools/testing/selftests/seccomp/seccomp_bpf.c 		sem_wait(&self->started);
self             2505 tools/testing/selftests/seccomp/seccomp_bpf.c 		self->sibling_count++;
self             2509 tools/testing/selftests/seccomp/seccomp_bpf.c 		      &self->apply_prog);
self             2514 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_lock(&self->mutex);
self             2515 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
self             2518 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_unlock(&self->mutex);
self             2520 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[0].tid, &status);
self             2522 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[1].tid, &status);
self             2531 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[0]);
self             2532 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[1]);
self             2533 tools/testing/selftests/seccomp/seccomp_bpf.c 	while (self->sibling_count < TSYNC_SIBLINGS) {
self             2534 tools/testing/selftests/seccomp/seccomp_bpf.c 		sem_wait(&self->started);
self             2535 tools/testing/selftests/seccomp/seccomp_bpf.c 		self->sibling_count++;
self             2539 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_lock(&self->mutex);
self             2540 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
self             2543 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_unlock(&self->mutex);
self             2546 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[0].tid, &status);
self             2548 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[1].tid, &status);
self             2558 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[0]);
self             2559 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[1]);
self             2560 tools/testing/selftests/seccomp/seccomp_bpf.c 	while (self->sibling_count < TSYNC_SIBLINGS) {
self             2561 tools/testing/selftests/seccomp/seccomp_bpf.c 		sem_wait(&self->started);
self             2562 tools/testing/selftests/seccomp/seccomp_bpf.c 		self->sibling_count++;
self             2570 tools/testing/selftests/seccomp/seccomp_bpf.c 		      &self->apply_prog);
self             2579 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_lock(&self->mutex);
self             2580 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
self             2583 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_unlock(&self->mutex);
self             2586 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[0].tid, &status);
self             2588 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[1].tid, &status);
self             2601 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &self->root_prog);
self             2608 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].diverge = 1;
self             2609 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[0]);
self             2610 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[1]);
self             2612 tools/testing/selftests/seccomp/seccomp_bpf.c 	while (self->sibling_count < TSYNC_SIBLINGS) {
self             2613 tools/testing/selftests/seccomp/seccomp_bpf.c 		sem_wait(&self->started);
self             2614 tools/testing/selftests/seccomp/seccomp_bpf.c 		self->sibling_count++;
self             2618 tools/testing/selftests/seccomp/seccomp_bpf.c 		      &self->apply_prog);
self             2619 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(self->sibling[0].system_tid, ret) {
self             2624 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_lock(&self->mutex);
self             2625 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
self             2628 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_unlock(&self->mutex);
self             2631 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[0].tid, &status);
self             2633 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[1].tid, &status);
self             2653 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[0].diverge = 1;
self             2654 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[0]);
self             2655 tools/testing/selftests/seccomp/seccomp_bpf.c 	tsync_start_sibling(&self->sibling[1]);
self             2657 tools/testing/selftests/seccomp/seccomp_bpf.c 	while (self->sibling_count < TSYNC_SIBLINGS) {
self             2658 tools/testing/selftests/seccomp/seccomp_bpf.c 		sem_wait(&self->started);
self             2659 tools/testing/selftests/seccomp/seccomp_bpf.c 		self->sibling_count++;
self             2662 tools/testing/selftests/seccomp/seccomp_bpf.c 	ret = seccomp(SECCOMP_SET_MODE_FILTER, 0, &self->root_prog);
self             2671 tools/testing/selftests/seccomp/seccomp_bpf.c 		      &self->apply_prog);
self             2672 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(ret, self->sibling[0].system_tid) {
self             2676 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (ret == self->sibling[0].system_tid)
self             2679 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_lock(&self->mutex);
self             2684 tools/testing/selftests/seccomp/seccomp_bpf.c 	self->sibling[!sib].num_waits += 1;
self             2687 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
self             2690 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_unlock(&self->mutex);
self             2691 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[sib].tid, &status);
self             2694 tools/testing/selftests/seccomp/seccomp_bpf.c 	while (!kill(self->sibling[sib].system_tid, 0))
self             2700 tools/testing/selftests/seccomp/seccomp_bpf.c 		      &self->apply_prog);
self             2705 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_lock(&self->mutex);
self             2710 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (self->sibling[sib].num_waits > 1)
self             2711 tools/testing/selftests/seccomp/seccomp_bpf.c 		self->sibling[sib].num_waits = 1;
self             2712 tools/testing/selftests/seccomp/seccomp_bpf.c 	ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) {
self             2715 tools/testing/selftests/seccomp/seccomp_bpf.c 	pthread_mutex_unlock(&self->mutex);
self             2716 tools/testing/selftests/seccomp/seccomp_bpf.c 	PTHREAD_JOIN(self->sibling[sib].tid, &status);
self             2719 tools/testing/selftests/seccomp/seccomp_bpf.c 	while (!kill(self->sibling[sib].system_tid, 0))
self             2723 tools/testing/selftests/seccomp/seccomp_bpf.c 		      &self->apply_prog);
self              229 tools/testing/selftests/uevent/uevent_filtering.c 		pid_t self;
self              231 tools/testing/selftests/uevent/uevent_filtering.c 		self = getpid();
self              232 tools/testing/selftests/uevent/uevent_filtering.c 		ret = kill(self, SIGKILL);
self               80 tools/virtio/ringtest/main.c 	pthread_t self;
self               92 tools/virtio/ringtest/main.c 	self = pthread_self();
self               96 tools/virtio/ringtest/main.c 	ret = pthread_setaffinity_np(self, sizeof(cpu_set_t), &cpuset);
self             1408 virt/kvm/arm/arm.c static int hyp_init_cpu_pm_notifier(struct notifier_block *self,