link              125 arch/arc/kernel/unwind.c 	struct unwind_table *link;
link              160 arch/arc/kernel/unwind.c 	for (table = &root_table; table; table = table->link)
link              212 arch/arc/kernel/unwind.c 	table->link = NULL;
link              397 arch/arc/kernel/unwind.c 		last_table->link = table;
link              399 arch/arc/kernel/unwind.c 		root_table.link = table;
link              415 arch/arc/kernel/unwind.c 	for (prev = &root_table; prev->link && prev->link != table;
link              416 arch/arc/kernel/unwind.c 	     prev = prev->link)
link              419 arch/arc/kernel/unwind.c 	if (prev->link) {
link              425 arch/arc/kernel/unwind.c 			prev->link = table->link;
link              426 arch/arc/kernel/unwind.c 			if (!prev->link)
link             1106 arch/arc/kernel/unwind.c 			unsigned long link;
link             1108 arch/arc/kernel/unwind.c 			if (!__get_user(link, (unsigned long *)
link             1111 arch/arc/kernel/unwind.c 			    && link > bottom && link < UNW_FP(frame)
link             1113 arch/arc/kernel/unwind.c 			    && link > UNW_FP(frame) && link < bottom
link             1115 arch/arc/kernel/unwind.c 			    && !(link & (sizeof(link) - 1))
link             1128 arch/arc/kernel/unwind.c 				UNW_FP(frame) = link;
link               16 arch/arm/include/asm/insn.h __arm_gen_branch(unsigned long pc, unsigned long addr, bool link);
link                7 arch/arm/kernel/insn.c __arm_gen_branch_thumb2(unsigned long pc, unsigned long addr, bool link)
link               30 arch/arm/kernel/insn.c 	if (link)
link               37 arch/arm/kernel/insn.c __arm_gen_branch_arm(unsigned long pc, unsigned long addr, bool link)
link               42 arch/arm/kernel/insn.c 	if (link)
link               57 arch/arm/kernel/insn.c __arm_gen_branch(unsigned long pc, unsigned long addr, bool link)
link               60 arch/arm/kernel/insn.c 		return __arm_gen_branch_thumb2(pc, addr, link);
link               62 arch/arm/kernel/insn.c 		return __arm_gen_branch_arm(pc, addr, link);
link              202 arch/arm/mach-omap2/omap_hwmod.c 	struct list_head	link;
link              773 arch/arm/mach-omap2/omap_hwmod.c 	list_add(&provider->link, &clkctrl_providers);
link              817 arch/arm/mach-omap2/omap_hwmod.c 	list_for_each_entry(provider, &clkctrl_providers, link) {
link              419 arch/arm/mach-pxa/pcm990-baseboard.c static int pcm990_camera_set_bus_param(struct soc_camera_link *link,
link              437 arch/arm/mach-pxa/pcm990-baseboard.c static unsigned long pcm990_camera_query_bus_param(struct soc_camera_link *link)
link              455 arch/arm/mach-pxa/pcm990-baseboard.c static void pcm990_camera_free_bus(struct soc_camera_link *link)
link               34 arch/arm/xen/p2m.c 	struct rb_node **link = &phys_to_mach.rb_node;
link               39 arch/arm/xen/p2m.c 	while (*link) {
link               40 arch/arm/xen/p2m.c 		parent = *link;
link               47 arch/arm/xen/p2m.c 			link = &(*link)->rb_left;
link               49 arch/arm/xen/p2m.c 			link = &(*link)->rb_right;
link               51 arch/arm/xen/p2m.c 	rb_link_node(&new->rbnode_phys, parent, link);
link              120 arch/m68k/coldfire/m5272.c 	.link	= 1,
link               18 arch/m68k/fpsp040/fpsp.h |		link	a6,#-LOCAL_SIZE
link              240 arch/mips/ar7/platform.c 	.link		= 1,
link              252 arch/mips/bcm47xx/setup.c 	.link	= 1,
link               26 arch/mips/boot/tools/relocs.c 	struct section *link;
link              290 arch/mips/boot/tools/relocs.c 			sec->link = &secs[sec->shdr.sh_link];
link              483 arch/mips/boot/tools/relocs.c 		sec_symtab  = sec->link;
link              489 arch/mips/boot/tools/relocs.c 		sym_strtab = sec_symtab->link->strtab;
link              115 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c 			pcsx_sgmx_an_adv_reg.s.link = 1;
link               27 arch/mips/include/asm/mach-rc32434/dma.h 	u32 link;			/* Next descriptor in chain. */
link              105 arch/mips/include/asm/netlogic/xlp-hal/pcibus.h void xlp_init_node_msi_irqs(int node, int link);
link              107 arch/mips/include/asm/netlogic/xlp-hal/pcibus.h static inline void xlp_init_node_msi_irqs(int node, int link) {}
link              747 arch/mips/include/asm/octeon/cvmx-pcsx-defs.h 		uint64_t link:1;
link              761 arch/mips/include/asm/octeon/cvmx-pcsx-defs.h 		uint64_t link:1;
link              772 arch/mips/include/asm/octeon/cvmx-pcsx-defs.h 		uint64_t link:1;
link              784 arch/mips/include/asm/octeon/cvmx-pcsx-defs.h 		uint64_t link:1;
link               63 arch/mips/pci/msi-xlp.c static inline int nlm_link_msiirq(int link, int msivec)
link               65 arch/mips/pci/msi-xlp.c 	return NLM_MSI_VEC_BASE + link * XLP_MSIVEC_PER_LINK + msivec;
link               91 arch/mips/pci/msi-xlp.c static inline int nlm_link_msixirq(int link, int bit)
link               93 arch/mips/pci/msi-xlp.c 	return NLM_MSIX_VEC_BASE + link * XLP_MSIXVEC_PER_LINK + bit;
link              169 arch/mips/pci/msi-xlp.c 	int link, vec;
link              171 arch/mips/pci/msi-xlp.c 	link = nlm_irq_msilink(d->irq);
link              208 arch/mips/pci/msi-xlp.c 	int link, msixvec;
link              212 arch/mips/pci/msi-xlp.c 	link = nlm_irq_msixlink(msixvec);
link              218 arch/mips/pci/msi-xlp.c 		status_reg = PCIE_9XX_MSIX_STATUSX(link);
link              293 arch/mips/pci/msi-xlp.c static int xlp_setup_msi(uint64_t lnkbase, int node, int link,
link              303 arch/mips/pci/msi-xlp.c 	lirq = PIC_PCIE_LINK_MSI_IRQ(link);
link              304 arch/mips/pci/msi-xlp.c 	xirq = nlm_irq_to_xirq(node, nlm_link_msiirq(link, 0));
link              306 arch/mips/pci/msi-xlp.c 	msiaddr = MSI_LINK_ADDR(node, link);
link              313 arch/mips/pci/msi-xlp.c 			irt = PIC_9XX_IRT_PCIE_LINK_INDEX(link);
link              315 arch/mips/pci/msi-xlp.c 			irt = PIC_IRT_PCIE_LINK_INDEX(link);
link              400 arch/mips/pci/msi-xlp.c static int xlp_setup_msix(uint64_t lnkbase, int node, int link,
link              410 arch/mips/pci/msi-xlp.c 	lirq = PIC_PCIE_MSIX_IRQ(link);
link              411 arch/mips/pci/msi-xlp.c 	xirq = nlm_irq_to_xirq(node, nlm_link_msixirq(link, 0));
link              413 arch/mips/pci/msi-xlp.c 	msixaddr = MSIX_LINK_ADDR(node, link);
link              448 arch/mips/pci/msi-xlp.c 	int node, link, slot;
link              456 arch/mips/pci/msi-xlp.c 	link = PCI_FUNC(lnkdev->devfn);
link              458 arch/mips/pci/msi-xlp.c 	lnkbase = nlm_get_pcie_base(node, link);
link              461 arch/mips/pci/msi-xlp.c 		return xlp_setup_msix(lnkbase, node, link, desc);
link              463 arch/mips/pci/msi-xlp.c 		return xlp_setup_msi(lnkbase, node, link, desc);
link              466 arch/mips/pci/msi-xlp.c void __init xlp_init_node_msi_irqs(int node, int link)
link              472 arch/mips/pci/msi-xlp.c 	pr_info("[%d %d] Init node PCI IRT\n", node, link);
link              482 arch/mips/pci/msi-xlp.c 	md->lnkbase = nlm_get_pcie_base(node, link);
link              485 arch/mips/pci/msi-xlp.c 	irq = nlm_irq_to_xirq(node, nlm_link_msiirq(link, 0));
link              494 arch/mips/pci/msi-xlp.c 				PIC_PCIE_MSIX_IRQ(link) << 1 | 0 << 0);
link              496 arch/mips/pci/msi-xlp.c 					(link * XLP_MSIXVEC_PER_LINK)), val);
link              501 arch/mips/pci/msi-xlp.c 			msixvec = link * XLP_MSIXVEC_PER_LINK + i;
link              504 arch/mips/pci/msi-xlp.c 					PIC_PCIE_MSIX_IRQ(link),
link              509 arch/mips/pci/msi-xlp.c 		irq = nlm_irq_to_xirq(node, nlm_link_msixirq(link, i));
link              518 arch/mips/pci/msi-xlp.c 	int link, i, irqbase;
link              521 arch/mips/pci/msi-xlp.c 	link = lirq - PIC_PCIE_LINK_MSI_IRQ_BASE;
link              522 arch/mips/pci/msi-xlp.c 	irqbase = nlm_irq_to_xirq(node, nlm_link_msiirq(link, 0));
link              537 arch/mips/pci/msi-xlp.c 	ack_c0_eirr(PIC_PCIE_LINK_MSI_IRQ(link));
link              540 arch/mips/pci/msi-xlp.c 				PIC_9XX_IRT_PCIE_LINK_INDEX(link));
link              542 arch/mips/pci/msi-xlp.c 		nlm_pic_ack(md->node->picbase, PIC_IRT_PCIE_LINK_INDEX(link));
link              548 arch/mips/pci/msi-xlp.c 	int link, i, irqbase;
link              551 arch/mips/pci/msi-xlp.c 	link = lirq - PIC_PCIE_MSIX_IRQ_BASE;
link              552 arch/mips/pci/msi-xlp.c 	irqbase = nlm_irq_to_xirq(node, nlm_link_msixirq(link, 0));
link              555 arch/mips/pci/msi-xlp.c 		status = nlm_read_reg(md->lnkbase, PCIE_9XX_MSIX_STATUSX(link));
link              561 arch/mips/pci/msi-xlp.c 		status = (status >> (link * XLP_MSIXVEC_PER_LINK)) &
link              570 arch/mips/pci/msi-xlp.c 	ack_c0_eirr(PIC_PCIE_MSIX_IRQ(link));
link              239 arch/mips/pci/pci-xlp.c static void xlp_config_pci_bswap(int node, int link)
link              245 arch/mips/pci/pci-xlp.c 	lnkbase = nlm_get_pcie_base(node, link);
link              253 arch/mips/pci/pci-xlp.c 				BRIDGE_9XX_PCIEMEM_BASE0 + link);
link              257 arch/mips/pci/pci-xlp.c 				BRIDGE_9XX_PCIEMEM_LIMIT0 + link);
link              262 arch/mips/pci/pci-xlp.c 				BRIDGE_9XX_PCIEIO_BASE0 + link);
link              266 arch/mips/pci/pci-xlp.c 				BRIDGE_9XX_PCIEIO_LIMIT0 + link);
link              270 arch/mips/pci/pci-xlp.c 		reg = nlm_read_bridge_reg(nbubase, BRIDGE_PCIEMEM_BASE0 + link);
link              274 arch/mips/pci/pci-xlp.c 					BRIDGE_PCIEMEM_LIMIT0 + link);
link              277 arch/mips/pci/pci-xlp.c 		reg = nlm_read_bridge_reg(nbubase, BRIDGE_PCIEIO_BASE0 + link);
link              280 arch/mips/pci/pci-xlp.c 		reg = nlm_read_bridge_reg(nbubase, BRIDGE_PCIEIO_LIMIT0 + link);
link              286 arch/mips/pci/pci-xlp.c static inline void xlp_config_pci_bswap(int node, int link) {}
link              292 arch/mips/pci/pci-xlp.c 	int link, n;
link              307 arch/mips/pci/pci-xlp.c 		for (link = 0; link < PCIE_NLINKS; link++) {
link              308 arch/mips/pci/pci-xlp.c 			pciebase = nlm_get_pcie_base(n, link);
link              311 arch/mips/pci/pci-xlp.c 			xlp_config_pci_bswap(n, link);
link              312 arch/mips/pci/pci-xlp.c 			xlp_init_node_msi_irqs(n, link);
link              317 arch/mips/pci/pci-xlp.c 			reg |= (1 << 8) | PIC_PCIE_LINK_LEGACY_IRQ(link);
link              319 arch/mips/pci/pci-xlp.c 			pr_info("XLP PCIe: Link %d-%d initialized.\n", n, link);
link              178 arch/mips/pci/pci-xlr.c static int nlm_pci_link_to_irq(int link)
link              180 arch/mips/pci/pci-xlr.c 	switch	(link) {
link              196 arch/mips/pci/pci-xlr.c 	WARN(1, "Unexpected link %d\n", link);
link              203 arch/mips/pci/pci-xlr.c 	int link;
link              212 arch/mips/pci/pci-xlr.c 	link = PCI_SLOT(lnk->devfn);
link              213 arch/mips/pci/pci-xlr.c 	return nlm_pci_link_to_irq(link);
link              332 arch/mips/pci/pci-xlr.c 	int link, irq;
link              360 arch/mips/pci/pci-xlr.c 		for (link = 0; link < 4; link++) {
link              361 arch/mips/pci/pci-xlr.c 			irq = nlm_pci_link_to_irq(link);
link              370 arch/powerpc/include/asm/kvm_book3s.h 	vcpu->arch.regs.link = val;
link              375 arch/powerpc/include/asm/kvm_book3s.h 	return vcpu->arch.regs.link;
link              592 arch/powerpc/include/asm/kvm_book3s_64.h 	vcpu->arch.regs.link  = vcpu->arch.lr_tm;
link              609 arch/powerpc/include/asm/kvm_book3s_64.h 	vcpu->arch.lr_tm  = vcpu->arch.regs.link;
link               74 arch/powerpc/include/asm/kvm_booke.h 	vcpu->arch.regs.link = val;
link               79 arch/powerpc/include/asm/kvm_booke.h 	return vcpu->arch.regs.link;
link              126 arch/powerpc/include/asm/pmac_pfunc.h 	struct list_head	link;
link              170 arch/powerpc/include/asm/pmac_pfunc.h 	struct list_head	link;
link               70 arch/powerpc/include/asm/pnv-pci.h 	struct list_head		link;
link               36 arch/powerpc/include/asm/ptrace.h 			unsigned long link;
link              405 arch/powerpc/include/asm/smu.h 	struct list_head	link;
link              508 arch/powerpc/include/asm/smu.h 	struct list_head	link;
link               87 arch/powerpc/include/asm/xics.h 	struct list_head link;
link               43 arch/powerpc/include/uapi/asm/ptrace.h 	unsigned long link;
link              313 arch/powerpc/kernel/asm-offsets.c 	STACK_PT_REGS_OFFSET(_LINK, link);
link              445 arch/powerpc/kernel/asm-offsets.c 	OFFSET(VCPU_LR, kvm_vcpu, arch.regs.link);
link              710 arch/powerpc/kernel/asm-offsets.c 	OFFSET(VCPU_LR, kvm_vcpu, arch.regs.link);
link              228 arch/powerpc/kernel/kgdb.c 	PACK64(ptr, regs->link);
link              316 arch/powerpc/kernel/kgdb.c 	{ "lr", GDB_SIZEOF_REG, offsetof(struct pt_regs, link) },
link              209 arch/powerpc/kernel/kprobes.c 	ri->ret_addr = (kprobe_opcode_t *)regs->link;
link              212 arch/powerpc/kernel/kprobes.c 	regs->link = (unsigned long)kretprobe_trampoline;
link              459 arch/powerpc/kernel/kprobes.c 	regs->link = orig_ret_address;
link               21 arch/powerpc/kernel/ppc32.h 	unsigned int link;
link             1395 arch/powerpc/kernel/process.c 	       regs->nip, regs->link, regs->ctr);
link             1432 arch/powerpc/kernel/process.c 	printk("LR ["REG"] %pS\n", regs->link, (void *)regs->link);
link             1722 arch/powerpc/kernel/process.c 	regs->link = 0;
link             2086 arch/powerpc/kernel/process.c 			lr = regs->link;
link              113 arch/powerpc/kernel/ptrace.c 	REG_OFFSET_NAME(link),
link             3378 arch/powerpc/kernel/ptrace.c 	BUILD_BUG_ON(offsetof(struct pt_regs, link) !=
link             3379 arch/powerpc/kernel/ptrace.c 		     offsetof(struct user_pt_regs, link));
link              960 arch/powerpc/kernel/signal_32.c 	regs->link = tramp;
link              988 arch/powerpc/kernel/signal_32.c 				   addr, regs->nip, regs->link);
link             1245 arch/powerpc/kernel/signal_32.c 				   rt_sf, regs->nip, regs->link);
link             1334 arch/powerpc/kernel/signal_32.c 					   ctx, regs->nip, regs->link);
link             1417 arch/powerpc/kernel/signal_32.c 	regs->link = tramp;
link             1440 arch/powerpc/kernel/signal_32.c 				   frame, regs->nip, regs->link);
link             1516 arch/powerpc/kernel/signal_32.c 				   addr, regs->nip, regs->link);
link              350 arch/powerpc/kernel/signal_64.c 	err |= __get_user(regs->link, &sc->gp_regs[PT_LNK]);
link              464 arch/powerpc/kernel/signal_64.c 	err |= __get_user(regs->link, &tm_sc->gp_regs[PT_LNK]);
link              469 arch/powerpc/kernel/signal_64.c 	err |= __get_user(tsk->thread.ckpt_regs.link,
link              809 arch/powerpc/kernel/signal_64.c 				   (long)uc, regs->nip, regs->link);
link              870 arch/powerpc/kernel/signal_64.c 		regs->link = tsk->mm->context.vdso_base + vdso64_rt_sigtramp;
link              875 arch/powerpc/kernel/signal_64.c 		regs->link = (unsigned long) &frame->tramp[0];
link              921 arch/powerpc/kernel/signal_64.c 				   (long)frame, regs->nip, regs->link);
link              488 arch/powerpc/kernel/time.c 		return regs->link;
link               44 arch/powerpc/kernel/trace/ftrace.c ftrace_call_replace(unsigned long ip, unsigned long addr, int link)
link               51 arch/powerpc/kernel/trace/ftrace.c 	op = create_branch((unsigned int *)ip, addr, link ? 1 : 0);
link              327 arch/powerpc/kernel/traps.c 		addr, regs->nip, regs->link, code);
link              188 arch/powerpc/kernel/uprobes.c 	orig_ret_vaddr = regs->link;
link              191 arch/powerpc/kernel/uprobes.c 	regs->link = trampoline_vaddr;
link              101 arch/powerpc/kvm/book3s_emulate.c 	vcpu->arch.lr_tm = vcpu->arch.regs.link;
link              120 arch/powerpc/kvm/book3s_emulate.c 	vcpu->arch.regs.link = vcpu->arch.lr_tm;
link              426 arch/powerpc/kvm/book3s_hv.c 	       vcpu->arch.regs.ctr, vcpu->arch.regs.link);
link              170 arch/powerpc/kvm/book3s_pr.c 	svcpu->lr  = vcpu->arch.regs.link;
link              252 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.link  = svcpu->lr;
link               71 arch/powerpc/kvm/booke.c 	printk("lr:   %08lx ctr:  %08lx\n", vcpu->arch.regs.link,
link              901 arch/powerpc/kvm/booke.c 	regs->link = lr;
link             1438 arch/powerpc/kvm/booke.c 	regs->lr = vcpu->arch.regs.link;
link             1469 arch/powerpc/kvm/booke.c 	vcpu->arch.regs.link = regs->lr;
link               14 arch/powerpc/lib/error-inject.c 	regs->nip = regs->link;
link             1223 arch/powerpc/lib/sstep.c 			imm = (instr & 0x400)? regs->ctr: regs->link;
link             2772 arch/powerpc/lib/sstep.c 			regs->link = next_pc;
link             2805 arch/powerpc/lib/sstep.c 			regs->gpr[op->reg] = regs->link;
link             2821 arch/powerpc/lib/sstep.c 			regs->link = op->val;
link              933 arch/powerpc/lib/test_emulate_step.c 			if (exp.link != got.link) {
link              935 arch/powerpc/lib/test_emulate_step.c 				reg_mismatch("LR", exp.link, got.link);
link               55 arch/powerpc/perf/callchain.c 	lr = regs->link;
link               74 arch/powerpc/perf/callchain.c 			lr = regs->link;
link              243 arch/powerpc/perf/callchain.c 	lr = regs->link;
link              449 arch/powerpc/perf/callchain.c 	lr = regs->link;
link               57 arch/powerpc/perf/perf_regs.c 	PT_REGS_OFFSET(PERF_REG_POWERPC_LINK, link),
link              641 arch/powerpc/platforms/4xx/pci.c 	int			link;
link              720 arch/powerpc/platforms/4xx/pci.c 			port->link = 1;
link             1239 arch/powerpc/platforms/4xx/pci.c 	port->link = 0;
link             1254 arch/powerpc/platforms/4xx/pci.c 		port->link = 1;
link             1397 arch/powerpc/platforms/4xx/pci.c 		port->link = 1;
link             1527 arch/powerpc/platforms/4xx/pci.c 			if (port->link && ppc4xx_pciex_wait_on_sdr(port,
link             1532 arch/powerpc/platforms/4xx/pci.c 				port->link = 0;
link             1534 arch/powerpc/platforms/4xx/pci.c 		} else if (port->link &&
link             1539 arch/powerpc/platforms/4xx/pci.c 			port->link = 0;
link             1580 arch/powerpc/platforms/4xx/pci.c 	if ((bus->number != port->hose->first_busno) && !port->link)
link               40 arch/powerpc/platforms/pasemi/idle.c 		regs->nip = regs->link;
link               76 arch/powerpc/platforms/powermac/low_i2c.c 	struct list_head	link;
link              588 arch/powerpc/platforms/powermac/low_i2c.c 	list_add(&bus->link, &pmac_i2c_busses);
link              816 arch/powerpc/platforms/powermac/low_i2c.c 		list_add(&bus->link, &pmac_i2c_busses);
link              939 arch/powerpc/platforms/powermac/low_i2c.c 		list_add(&bus->link, &pmac_i2c_busses);
link              962 arch/powerpc/platforms/powermac/low_i2c.c 		list_for_each_entry(bus, &pmac_i2c_busses, link) {
link             1038 arch/powerpc/platforms/powermac/low_i2c.c 	list_for_each_entry(bus, &pmac_i2c_busses, link)
link             1059 arch/powerpc/platforms/powermac/low_i2c.c 	list_for_each_entry(bus, &pmac_i2c_busses, link) {
link             1075 arch/powerpc/platforms/powermac/low_i2c.c 	list_for_each_entry(bus, &pmac_i2c_busses, link) {
link             1195 arch/powerpc/platforms/powermac/low_i2c.c 	list_for_each_entry(bus, &pmac_i2c_busses, link) {
link             1497 arch/powerpc/platforms/powermac/low_i2c.c 	list_for_each_entry(bus, &pmac_i2c_busses, link) {
link              540 arch/powerpc/platforms/powermac/pfunc_core.c 	struct list_head	link;
link              572 arch/powerpc/platforms/powermac/pfunc_core.c 	list_for_each_entry(dev, &pmf_devices, link) {
link              671 arch/powerpc/platforms/powermac/pfunc_core.c 		list_add(&func->link, &dev->functions);
link              742 arch/powerpc/platforms/powermac/pfunc_core.c 	list_add(&dev->link, &pmf_devices);
link              794 arch/powerpc/platforms/powermac/pfunc_core.c 	list_del(&dev->link);
link              798 arch/powerpc/platforms/powermac/pfunc_core.c 			list_entry(dev->functions.next, typeof(*func), link);
link              799 arch/powerpc/platforms/powermac/pfunc_core.c 		list_del(&func->link);
link              845 arch/powerpc/platforms/powermac/pfunc_core.c 	list_for_each_entry(func, &dev->functions, link) {
link              884 arch/powerpc/platforms/powermac/pfunc_core.c 	list_add(&client->link, &func->irq_clients);
link              907 arch/powerpc/platforms/powermac/pfunc_core.c 	list_del(&client->link);
link              927 arch/powerpc/platforms/powermac/pfunc_core.c 	list_for_each_entry(client, &func->irq_clients, link) {
link              971 arch/powerpc/platforms/powermac/pfunc_core.c 	list_for_each_entry_safe(func, tmp, &dev->functions, link) {
link              140 arch/powerpc/platforms/powernv/ocxl.c 	struct npu_link *link;
link              142 arch/powerpc/platforms/powernv/ocxl.c 	list_for_each_entry(link, &links_list, list) {
link              144 arch/powerpc/platforms/powernv/ocxl.c 		if (link->domain == pci_domain_nr(dev->bus) &&
link              145 arch/powerpc/platforms/powernv/ocxl.c 			link->bus == dev->bus->number &&
link              146 arch/powerpc/platforms/powernv/ocxl.c 			link->dev == PCI_SLOT(dev->devfn)) {
link              147 arch/powerpc/platforms/powernv/ocxl.c 			return link;
link              152 arch/powerpc/platforms/powernv/ocxl.c 	link = kzalloc(sizeof(struct npu_link), GFP_KERNEL);
link              153 arch/powerpc/platforms/powernv/ocxl.c 	if (!link)
link              155 arch/powerpc/platforms/powernv/ocxl.c 	link->domain = pci_domain_nr(dev->bus);
link              156 arch/powerpc/platforms/powernv/ocxl.c 	link->bus = dev->bus->number;
link              157 arch/powerpc/platforms/powernv/ocxl.c 	link->dev = PCI_SLOT(dev->devfn);
link              158 arch/powerpc/platforms/powernv/ocxl.c 	list_add(&link->list, &links_list);
link              159 arch/powerpc/platforms/powernv/ocxl.c 	return link;
link              166 arch/powerpc/platforms/powernv/ocxl.c 	struct npu_link *link;
link              177 arch/powerpc/platforms/powernv/ocxl.c 	link = find_link(dev);
link              178 arch/powerpc/platforms/powernv/ocxl.c 	if (!link) {
link              195 arch/powerpc/platforms/powernv/ocxl.c 	link->fn_desired_actags[PCI_FUNC(dev->devfn)] = 0;
link              204 arch/powerpc/platforms/powernv/ocxl.c 		link->fn_desired_actags[PCI_FUNC(dev->devfn)] += actag;
link              207 arch/powerpc/platforms/powernv/ocxl.c 		link->fn_desired_actags[PCI_FUNC(dev->devfn)]);
link              225 arch/powerpc/platforms/powernv/ocxl.c static void assign_actags(struct npu_link *link)
link              231 arch/powerpc/platforms/powernv/ocxl.c 		total_desired += link->fn_desired_actags[i];
link              234 arch/powerpc/platforms/powernv/ocxl.c 		if (link->fn_desired_actags[i]) {
link              236 arch/powerpc/platforms/powernv/ocxl.c 				link->fn_desired_actags[i],
link              238 arch/powerpc/platforms/powernv/ocxl.c 			link->fn_actags[i].start = range_start;
link              239 arch/powerpc/platforms/powernv/ocxl.c 			link->fn_actags[i].count = actag_count;
link              244 arch/powerpc/platforms/powernv/ocxl.c 			link->domain, link->bus, link->dev, i,
link              245 arch/powerpc/platforms/powernv/ocxl.c 			link->fn_actags[i].start, link->fn_actags[i].count,
link              246 arch/powerpc/platforms/powernv/ocxl.c 			link->fn_desired_actags[i]);
link              248 arch/powerpc/platforms/powernv/ocxl.c 	link->assignment_done = true;
link              254 arch/powerpc/platforms/powernv/ocxl.c 	struct npu_link *link;
link              258 arch/powerpc/platforms/powernv/ocxl.c 	link = find_link(dev);
link              259 arch/powerpc/platforms/powernv/ocxl.c 	if (!link) {
link              270 arch/powerpc/platforms/powernv/ocxl.c 	if (!link->assignment_done)
link              271 arch/powerpc/platforms/powernv/ocxl.c 		assign_actags(link);
link              273 arch/powerpc/platforms/powernv/ocxl.c 	*base      = link->fn_actags[PCI_FUNC(dev->devfn)].start;
link              274 arch/powerpc/platforms/powernv/ocxl.c 	*enabled   = link->fn_actags[PCI_FUNC(dev->devfn)].count;
link              275 arch/powerpc/platforms/powernv/ocxl.c 	*supported = link->fn_desired_actags[PCI_FUNC(dev->devfn)];
link              284 arch/powerpc/platforms/powernv/ocxl.c 	struct npu_link *link;
link              298 arch/powerpc/platforms/powernv/ocxl.c 	link = find_link(dev);
link              299 arch/powerpc/platforms/powernv/ocxl.c 	if (!link) {
link              306 arch/powerpc/platforms/powernv/ocxl.c 		if (link->fn_desired_actags[i] && (i == PCI_FUNC(dev->devfn))) {
link              101 arch/powerpc/platforms/powernv/opal-fadump.h 		regs->link = reg_val;
link              374 arch/powerpc/platforms/ps3/mm.c 	struct list_head link;
link              401 arch/powerpc/platforms/ps3/mm.c 	list_for_each_entry(c, &r->chunk_list.head, link) {
link              430 arch/powerpc/platforms/ps3/mm.c 	list_for_each_entry(c, &r->chunk_list.head, link) {
link              536 arch/powerpc/platforms/ps3/mm.c 	list_add(&c->link, &r->chunk_list.head);
link              576 arch/powerpc/platforms/ps3/mm.c 				   struct dma_chunk, link);
link              606 arch/powerpc/platforms/ps3/mm.c 	list_add(&c->link, &r->chunk_list.head);
link              718 arch/powerpc/platforms/ps3/mm.c 	list_for_each_entry_safe(c, tmp, &r->chunk_list.head, link) {
link              719 arch/powerpc/platforms/ps3/mm.c 		list_del(&c->link);
link              741 arch/powerpc/platforms/ps3/mm.c 	list_for_each_entry_safe(c, n, &r->chunk_list.head, link) {
link              742 arch/powerpc/platforms/ps3/mm.c 		list_del(&c->link);
link              910 arch/powerpc/platforms/ps3/mm.c 		list_del(&c->link);
link              948 arch/powerpc/platforms/ps3/mm.c 		list_del(&c->link);
link              264 arch/powerpc/platforms/pseries/rtas-fadump.c 		regs->link = (unsigned long)reg_val;
link              118 arch/powerpc/sysdev/xics/xics-common.c 	list_for_each_entry(ics, &ics_list, link)
link              312 arch/powerpc/sysdev/xics/xics-common.c 	list_for_each_entry(ics, &ics_list, link)
link              352 arch/powerpc/sysdev/xics/xics-common.c 	list_for_each_entry(ics, &ics_list, link)
link              430 arch/powerpc/sysdev/xics/xics-common.c 	list_add(&ics->link, &ics_list);
link             1012 arch/powerpc/xmon/xmon.c 	xmon_show_stack(excp->gpr[1], excp->link, excp->nip);
link             1635 arch/powerpc/xmon/xmon.c 			lr = regs.link;
link             1653 arch/powerpc/xmon/xmon.c 		xmon_show_stack(excp->gpr[1], excp->link, excp->nip);
link             1697 arch/powerpc/xmon/xmon.c 	xmon_print_symbol(fp->link, ": ", "\n");
link             1774 arch/powerpc/xmon/xmon.c 	xmon_print_symbol(fp->link, " ", "\n");
link               28 arch/sh/drivers/pci/pcie-sh7786.c 	int			link;
link              246 arch/sh/include/asm/dwarf.h 	struct list_head link;
link              264 arch/sh/include/asm/dwarf.h 	struct list_head link;
link              301 arch/sh/include/asm/dwarf.h 	struct list_head link;
link               81 arch/sh/kernel/dwarf.c 	list_add(&reg->link, &frame->reg_list);
link               90 arch/sh/kernel/dwarf.c 	list_for_each_entry_safe(reg, n, &frame->reg_list, link) {
link               91 arch/sh/kernel/dwarf.c 		list_del(&reg->link);
link              109 arch/sh/kernel/dwarf.c 	list_for_each_entry(reg, &frame->reg_list, link) {
link              857 arch/sh/kernel/dwarf.c 		list_add_tail(&cie->link, &mod->arch.cie_list);
link              949 arch/sh/kernel/dwarf.c 		list_add_tail(&fde->link, &mod->arch.fde_list);
link             1138 arch/sh/kernel/dwarf.c 	list_for_each_entry_safe(cie, ctmp, &mod->arch.cie_list, link) {
link             1139 arch/sh/kernel/dwarf.c 		list_del(&cie->link);
link             1148 arch/sh/kernel/dwarf.c 	list_for_each_entry_safe(fde, ftmp, &mod->arch.fde_list, link) {
link             1149 arch/sh/kernel/dwarf.c 		list_del(&fde->link);
link               51 arch/sh/mm/pmb.c 	struct pmb_entry *link;
link              175 arch/sh/mm/pmb.c 		for (iter = pmbe->link; iter; iter = iter->link)
link              286 arch/sh/mm/pmb.c 	pmbe->link	= NULL;
link              387 arch/sh/mm/pmb.c 				pmbp->link = pmbe;
link              508 arch/sh/mm/pmb.c 		pmbe = pmblink->link;
link              645 arch/sh/mm/pmb.c 				pmbp->link = pmbe;
link              663 arch/sh/mm/pmb.c 	tail = head->link;
link              673 arch/sh/mm/pmb.c 		if (!tail->link)
link              676 arch/sh/mm/pmb.c 		tail = tail->link;
link              691 arch/sh/mm/pmb.c 	__pmb_unmap_entry(head->link, depth);
link              713 arch/sh/mm/pmb.c 		if (!pmbe->link)
link               82 arch/um/os-Linux/user_syms.c EXPORT_SYMBOL_PROTO(link);
link               66 arch/x86/include/asm/amd_nb.h 	struct pci_dev *link;
link              313 arch/x86/include/asm/kvm_host.h 	struct list_head link;
link             1293 arch/x86/include/asm/kvm_host.h 	struct hlist_node link;
link               70 arch/x86/include/asm/pci_x86.h 		u8 link;		/* IRQ line ID, chipset dependent,
link              190 arch/x86/kernel/amd_nb.c 	F4 = node_to_amd_nb(node)->link;
link              224 arch/x86/kernel/amd_nb.c 	struct pci_dev *root, *misc, *link;
link              271 arch/x86/kernel/amd_nb.c 	link = misc = root = NULL;
link              277 arch/x86/kernel/amd_nb.c 		node_to_amd_nb(i)->link = link =
link              278 arch/x86/kernel/amd_nb.c 			next_northbridge(link, link_ids);
link              381 arch/x86/kernel/amd_nb.c 	struct pci_dev *link = node_to_amd_nb(amd_get_nb_id(cpu))->link;
link              387 arch/x86/kernel/amd_nb.c 	pci_read_config_dword(link, 0x1d4, &mask);
link              404 arch/x86/kernel/amd_nb.c 		pci_read_config_dword(nb->link, 0x1d4, &reset);
link              419 arch/x86/kernel/amd_nb.c 	pci_write_config_dword(nb->link, 0x1d4, mask);
link              422 arch/x86/kernel/amd_nb.c 	pci_read_config_dword(nb->link, 0x1d4, &reg);
link              509 arch/x86/kernel/amd_nb.c 	F4 = node_to_amd_nb(0)->link;
link               71 arch/x86/kernel/kvm.c 	struct hlist_node link;
link               90 arch/x86/kernel/kvm.c 			hlist_entry(p, typeof(*n), link);
link              115 arch/x86/kernel/kvm.c 		hlist_del(&e->link);
link              130 arch/x86/kernel/kvm.c 	hlist_add_head(&n.link, &b->list);
link              136 arch/x86/kernel/kvm.c 		if (hlist_unhashed(&n.link))
link              165 arch/x86/kernel/kvm.c 	hlist_del_init(&n->link);
link              182 arch/x86/kernel/kvm.c 				hlist_entry(p, typeof(*n), link);
link              222 arch/x86/kernel/kvm.c 		hlist_add_head(&n->link, &b->list);
link              376 arch/x86/kvm/hyperv.c 		hlist_for_each_entry(e, &irq_rt->map[gsi], link) {
link              238 arch/x86/kvm/irq_comm.c 	hlist_add_head_rcu(&kimn->link, &kvm->arch.mask_notifier_list);
link              246 arch/x86/kvm/irq_comm.c 	hlist_del_rcu(&kimn->link);
link              260 arch/x86/kvm/irq_comm.c 		hlist_for_each_entry_rcu(kimn, &kvm->arch.mask_notifier_list, link)
link              411 arch/x86/kvm/irq_comm.c 		hlist_for_each_entry(entry, &table->map[i], link) {
link             2144 arch/x86/kvm/mmu.c 	list_del(&sp->link);
link             2194 arch/x86/kvm/mmu.c 	list_add(&sp->link, &vcpu->kvm->arch.active_mmu_pages);
link             2839 arch/x86/kvm/mmu.c 		list_move(&sp->link, invalid_list);
link             2842 arch/x86/kvm/mmu.c 		list_move(&sp->link, &kvm->arch.active_mmu_pages);
link             2888 arch/x86/kvm/mmu.c 	list_for_each_entry_safe(sp, nsp, invalid_list, link) {
link             2903 arch/x86/kvm/mmu.c 			     struct kvm_mmu_page, link);
link             5836 arch/x86/kvm/mmu.c 	      &kvm->arch.active_mmu_pages, link) {
link             6129 arch/x86/kvm/mmu.c 	list_for_each_entry_safe(sp, node, &kvm->arch.active_mmu_pages, link) {
link               89 arch/x86/kvm/mmu_audit.c 	list_for_each_entry(sp, &kvm->arch.active_mmu_pages, link)
link             5338 arch/x86/kvm/svm.c 	hlist_for_each_entry(e, &irq_rt->map[guest_irq], link) {
link             7482 arch/x86/kvm/vmx/vmx.c 	hlist_for_each_entry(e, &irq_rt->map[guest_irq], link) {
link               42 arch/x86/pci/amd_bus.c static struct pci_root_info __init *find_pci_root_info(int node, int link)
link               48 arch/x86/pci/amd_bus.c 		if (info->node == node && info->link == link)
link               66 arch/x86/pci/amd_bus.c 	int link;
link              127 arch/x86/pci/amd_bus.c 		link = (reg >> 8) & 0x03;
link              129 arch/x86/pci/amd_bus.c 		info = alloc_pci_root_info(min_bus, max_bus, node, link);
link              160 arch/x86/pci/amd_bus.c 		link = (reg >> 4) & 0x03;
link              163 arch/x86/pci/amd_bus.c 		info = find_pci_root_info(node, link);
link              168 arch/x86/pci/amd_bus.c 		       node, link, start, end);
link              227 arch/x86/pci/amd_bus.c 		link = (reg >> 4) & 0x03;
link              232 arch/x86/pci/amd_bus.c 		info = find_pci_root_info(node, link);
link              238 arch/x86/pci/amd_bus.c 		       node, link, start, end);
link              321 arch/x86/pci/amd_bus.c 		       &info->busn, info->node, info->link);
link               71 arch/x86/pci/bus_numa.c 						 int node, int link)
link               88 arch/x86/pci/bus_numa.c 	info->link = link;
link               19 arch/x86/pci/bus_numa.h 	int link;
link               24 arch/x86/pci/bus_numa.h 						int node, int link);
link              134 arch/x86/pci/irq.c 				DBG(" %d:%02x/%04x", j, e->irq[j].link, e->irq[j].bitmap);
link              913 arch/x86/pci/irq.c 	pirq = info->irq[pin - 1].link;
link             1001 arch/x86/pci/irq.c 		if (info->irq[pin - 1].link == pirq) {
link               33 arch/x86/tools/relocs.c 	struct section *link;
link              288 arch/x86/tools/relocs.c 		strtab = sec->link->strtab;
link              438 arch/x86/tools/relocs.c 			sec->link = &secs[sec->shdr.sh_link];
link              555 arch/x86/tools/relocs.c 		sym_strtab = sec->link->strtab;
link              594 arch/x86/tools/relocs.c 		sec_symtab  = sec->link;
link              600 arch/x86/tools/relocs.c 		sym_strtab = sec_symtab->link->strtab;
link              679 arch/x86/tools/relocs.c 		sec_symtab  = sec->link;
link              685 arch/x86/tools/relocs.c 		sym_strtab = sec_symtab->link->strtab;
link              382 crypto/asymmetric_keys/asymmetric_type.c 	list_for_each_entry(parser, &asymmetric_key_parsers, link) {
link              604 crypto/asymmetric_keys/asymmetric_type.c 	list_for_each_entry(cursor, &asymmetric_key_parsers, link) {
link              613 crypto/asymmetric_keys/asymmetric_type.c 	list_add_tail(&parser->link, &asymmetric_key_parsers);
link              631 crypto/asymmetric_keys/asymmetric_type.c 	list_del(&parser->link);
link              426 crypto/crypto_user_base.c 	const struct crypto_link *link;
link              434 crypto/crypto_user_base.c 	link = &crypto_dispatch[type];
link              441 crypto/crypto_user_base.c 		if (link->dump == NULL)
link              451 crypto/crypto_user_base.c 				.dump = link->dump,
link              452 crypto/crypto_user_base.c 				.done = link->done,
link              466 crypto/crypto_user_base.c 	if (link->doit == NULL)
link              469 crypto/crypto_user_base.c 	return link->doit(skb, nlh, attrs);
link              518 drivers/acpi/acpi_lpss.c 				  const struct lpss_device_links *link)
link              520 drivers/acpi/acpi_lpss.c 	return hid_uid_match(adev, link->supplier_hid, link->supplier_uid);
link              524 drivers/acpi/acpi_lpss.c 				  const struct lpss_device_links *link)
link              526 drivers/acpi/acpi_lpss.c 	return hid_uid_match(adev, link->consumer_hid, link->consumer_uid);
link              586 drivers/acpi/acpi_lpss.c 				    const struct lpss_device_links *link)
link              590 drivers/acpi/acpi_lpss.c 	dev2 = acpi_lpss_find_device(link->consumer_hid, link->consumer_uid);
link              594 drivers/acpi/acpi_lpss.c 	if ((link->dep_missing_ids && dmi_check_system(link->dep_missing_ids))
link              596 drivers/acpi/acpi_lpss.c 		device_link_add(dev2, dev1, link->flags);
link              602 drivers/acpi/acpi_lpss.c 				    const struct lpss_device_links *link)
link              606 drivers/acpi/acpi_lpss.c 	dev2 = acpi_lpss_find_device(link->supplier_hid, link->supplier_uid);
link              610 drivers/acpi/acpi_lpss.c 	if ((link->dep_missing_ids && dmi_check_system(link->dep_missing_ids))
link              612 drivers/acpi/acpi_lpss.c 		device_link_add(dev1, dev2, link->flags);
link              623 drivers/acpi/acpi_lpss.c 		const struct lpss_device_links *link = &lpss_device_links[i];
link              625 drivers/acpi/acpi_lpss.c 		if (acpi_lpss_is_supplier(adev, link))
link              626 drivers/acpi/acpi_lpss.c 			acpi_lpss_link_consumer(&pdev->dev, link);
link              628 drivers/acpi/acpi_lpss.c 		if (acpi_lpss_is_consumer(adev, link))
link              629 drivers/acpi/acpi_lpss.c 			acpi_lpss_link_supplier(&pdev->dev, link);
link               33 drivers/acpi/pci_irq.c 	acpi_handle		link;
link              185 drivers/acpi/pci_irq.c 		acpi_get_handle(handle, prt->source, &entry->link);
link              410 drivers/acpi/pci_irq.c 	char *link = NULL;
link              437 drivers/acpi/pci_irq.c 		if (entry->link)
link              438 drivers/acpi/pci_irq.c 			gsi = acpi_pci_link_allocate_irq(entry->link,
link              441 drivers/acpi/pci_irq.c 							 &link);
link              475 drivers/acpi/pci_irq.c 	if (link)
link              476 drivers/acpi/pci_irq.c 		snprintf(link_desc, sizeof(link_desc), " -> Link[%s]", link);
link              511 drivers/acpi/pci_irq.c 	if (entry->link)
link              512 drivers/acpi/pci_irq.c 		gsi = acpi_pci_link_free_irq(entry->link);
link               89 drivers/acpi/pci_link.c 	struct acpi_pci_link *link = context;
link              113 drivers/acpi/pci_link.c 				link->irq.possible[i] = p->interrupts[i];
link              114 drivers/acpi/pci_link.c 				link->irq.possible_count++;
link              116 drivers/acpi/pci_link.c 			link->irq.triggering = p->triggering;
link              117 drivers/acpi/pci_link.c 			link->irq.polarity = p->polarity;
link              118 drivers/acpi/pci_link.c 			link->irq.resource_type = ACPI_RESOURCE_TYPE_IRQ;
link              139 drivers/acpi/pci_link.c 				link->irq.possible[i] = p->interrupts[i];
link              140 drivers/acpi/pci_link.c 				link->irq.possible_count++;
link              142 drivers/acpi/pci_link.c 			link->irq.triggering = p->triggering;
link              143 drivers/acpi/pci_link.c 			link->irq.polarity = p->polarity;
link              144 drivers/acpi/pci_link.c 			link->irq.resource_type = ACPI_RESOURCE_TYPE_EXTENDED_IRQ;
link              156 drivers/acpi/pci_link.c static int acpi_pci_link_get_possible(struct acpi_pci_link *link)
link              160 drivers/acpi/pci_link.c 	status = acpi_walk_resources(link->device->handle, METHOD_NAME__PRS,
link              161 drivers/acpi/pci_link.c 				     acpi_pci_link_check_possible, link);
link              163 drivers/acpi/pci_link.c 		acpi_handle_debug(link->device->handle, "_PRS not present or invalid");
link              169 drivers/acpi/pci_link.c 			  link->irq.possible_count));
link              231 drivers/acpi/pci_link.c static int acpi_pci_link_get_current(struct acpi_pci_link *link)
link              237 drivers/acpi/pci_link.c 	link->irq.active = 0;
link              242 drivers/acpi/pci_link.c 		result = acpi_bus_get_status(link->device);
link              248 drivers/acpi/pci_link.c 		if (!link->device->status.enabled) {
link              258 drivers/acpi/pci_link.c 	status = acpi_walk_resources(link->device->handle, METHOD_NAME__CRS,
link              271 drivers/acpi/pci_link.c 	link->irq.active = irq;
link              273 drivers/acpi/pci_link.c 	ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Link at IRQ %d \n", link->irq.active));
link              279 drivers/acpi/pci_link.c static int acpi_pci_link_set(struct acpi_pci_link *link, int irq)
link              299 drivers/acpi/pci_link.c 	switch (link->irq.resource_type) {
link              303 drivers/acpi/pci_link.c 		resource->res.data.irq.triggering = link->irq.triggering;
link              305 drivers/acpi/pci_link.c 		    link->irq.polarity;
link              306 drivers/acpi/pci_link.c 		if (link->irq.triggering == ACPI_EDGE_SENSITIVE)
link              321 drivers/acpi/pci_link.c 		    link->irq.triggering;
link              323 drivers/acpi/pci_link.c 		    link->irq.polarity;
link              324 drivers/acpi/pci_link.c 		if (link->irq.triggering == ACPI_EDGE_SENSITIVE)
link              334 drivers/acpi/pci_link.c 		printk(KERN_ERR PREFIX "Invalid Resource_type %d\n", link->irq.resource_type);
link              343 drivers/acpi/pci_link.c 	status = acpi_set_current_resources(link->device->handle, &buffer);
link              353 drivers/acpi/pci_link.c 	result = acpi_bus_get_status(link->device);
link              358 drivers/acpi/pci_link.c 	if (!link->device->status.enabled) {
link              361 drivers/acpi/pci_link.c 			      acpi_device_name(link->device),
link              362 drivers/acpi/pci_link.c 			      acpi_device_bid(link->device));
link              366 drivers/acpi/pci_link.c 	result = acpi_pci_link_get_current(link);
link              375 drivers/acpi/pci_link.c 	if (link->irq.active != irq) {
link              382 drivers/acpi/pci_link.c 			      acpi_device_name(link->device),
link              383 drivers/acpi/pci_link.c 			      acpi_device_bid(link->device), link->irq.active, irq);
link              384 drivers/acpi/pci_link.c 		link->irq.active = irq;
link              387 drivers/acpi/pci_link.c 	ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Set IRQ %d\n", link->irq.active));
link              459 drivers/acpi/pci_link.c 	struct acpi_pci_link *link;
link              463 drivers/acpi/pci_link.c 	list_for_each_entry(link, &acpi_link_list, list) {
link              468 drivers/acpi/pci_link.c 		if (link->irq.active && link->irq.active == irq)
link              474 drivers/acpi/pci_link.c 		for (i = 0; i < link->irq.possible_count; i++)
link              475 drivers/acpi/pci_link.c 			if (link->irq.possible[i] == irq)
link              477 drivers/acpi/pci_link.c 					link->irq.possible_count;
link              498 drivers/acpi/pci_link.c 	struct acpi_pci_link *link;
link              504 drivers/acpi/pci_link.c 	list_for_each_entry(link, &acpi_link_list, list) {
link              510 drivers/acpi/pci_link.c 		if (link->irq.possible_count) {
link              513 drivers/acpi/pci_link.c 			    link->irq.possible_count;
link              515 drivers/acpi/pci_link.c 			for (i = 0; i < link->irq.possible_count; i++) {
link              516 drivers/acpi/pci_link.c 				if (link->irq.possible[i] < ACPI_MAX_ISA_IRQS)
link              517 drivers/acpi/pci_link.c 					acpi_isa_irq_penalty[link->irq.
link              522 drivers/acpi/pci_link.c 		} else if (link->irq.active &&
link              523 drivers/acpi/pci_link.c 				(link->irq.active < ACPI_MAX_ISA_IRQS)) {
link              524 drivers/acpi/pci_link.c 			acpi_isa_irq_penalty[link->irq.active] +=
link              534 drivers/acpi/pci_link.c static int acpi_pci_link_allocate(struct acpi_pci_link *link)
link              539 drivers/acpi/pci_link.c 	if (link->irq.initialized) {
link              540 drivers/acpi/pci_link.c 		if (link->refcnt == 0)
link              542 drivers/acpi/pci_link.c 			acpi_pci_link_set(link, link->irq.active);
link              549 drivers/acpi/pci_link.c 	for (i = 0; i < link->irq.possible_count; ++i) {
link              550 drivers/acpi/pci_link.c 		if (link->irq.active == link->irq.possible[i])
link              556 drivers/acpi/pci_link.c 	if (i == link->irq.possible_count) {
link              559 drivers/acpi/pci_link.c 				      " in _PRS\n", link->irq.active);
link              560 drivers/acpi/pci_link.c 		link->irq.active = 0;
link              566 drivers/acpi/pci_link.c 	if (link->irq.active)
link              567 drivers/acpi/pci_link.c 		irq = link->irq.active;
link              569 drivers/acpi/pci_link.c 		irq = link->irq.possible[link->irq.possible_count - 1];
link              571 drivers/acpi/pci_link.c 	if (acpi_irq_balance || !link->irq.active) {
link              576 drivers/acpi/pci_link.c 		for (i = (link->irq.possible_count - 1); i >= 0; i--) {
link              578 drivers/acpi/pci_link.c 			    acpi_irq_get_penalty(link->irq.possible[i]))
link              579 drivers/acpi/pci_link.c 				irq = link->irq.possible[i];
link              585 drivers/acpi/pci_link.c 			    acpi_device_name(link->device),
link              586 drivers/acpi/pci_link.c 			    acpi_device_bid(link->device));
link              591 drivers/acpi/pci_link.c 	if (acpi_pci_link_set(link, irq)) {
link              594 drivers/acpi/pci_link.c 			    acpi_device_name(link->device),
link              595 drivers/acpi/pci_link.c 			    acpi_device_bid(link->device));
link              598 drivers/acpi/pci_link.c 		if (link->irq.active < ACPI_MAX_ISA_IRQS)
link              599 drivers/acpi/pci_link.c 			acpi_isa_irq_penalty[link->irq.active] +=
link              603 drivers/acpi/pci_link.c 		       acpi_device_name(link->device),
link              604 drivers/acpi/pci_link.c 		       acpi_device_bid(link->device), link->irq.active);
link              607 drivers/acpi/pci_link.c 	link->irq.initialized = 1;
link              621 drivers/acpi/pci_link.c 	struct acpi_pci_link *link;
link              629 drivers/acpi/pci_link.c 	link = acpi_driver_data(device);
link              630 drivers/acpi/pci_link.c 	if (!link) {
link              642 drivers/acpi/pci_link.c 	if (acpi_pci_link_allocate(link)) {
link              647 drivers/acpi/pci_link.c 	if (!link->irq.active) {
link              652 drivers/acpi/pci_link.c 	link->refcnt++;
link              656 drivers/acpi/pci_link.c 		*triggering = link->irq.triggering;
link              658 drivers/acpi/pci_link.c 		*polarity = link->irq.polarity;
link              660 drivers/acpi/pci_link.c 		*name = acpi_device_bid(link->device);
link              663 drivers/acpi/pci_link.c 			  acpi_device_bid(link->device)));
link              664 drivers/acpi/pci_link.c 	return link->irq.active;
link              674 drivers/acpi/pci_link.c 	struct acpi_pci_link *link;
link              683 drivers/acpi/pci_link.c 	link = acpi_driver_data(device);
link              684 drivers/acpi/pci_link.c 	if (!link) {
link              690 drivers/acpi/pci_link.c 	if (!link->irq.initialized) {
link              705 drivers/acpi/pci_link.c 	link->refcnt--;
link              709 drivers/acpi/pci_link.c 			  acpi_device_bid(link->device)));
link              711 drivers/acpi/pci_link.c 	if (link->refcnt == 0)
link              712 drivers/acpi/pci_link.c 		acpi_evaluate_object(link->device->handle, "_DIS", NULL, NULL);
link              715 drivers/acpi/pci_link.c 	return link->irq.active;
link              726 drivers/acpi/pci_link.c 	struct acpi_pci_link *link;
link              730 drivers/acpi/pci_link.c 	link = kzalloc(sizeof(struct acpi_pci_link), GFP_KERNEL);
link              731 drivers/acpi/pci_link.c 	if (!link)
link              734 drivers/acpi/pci_link.c 	link->device = device;
link              737 drivers/acpi/pci_link.c 	device->driver_data = link;
link              740 drivers/acpi/pci_link.c 	result = acpi_pci_link_get_possible(link);
link              745 drivers/acpi/pci_link.c 	acpi_pci_link_get_current(link);
link              749 drivers/acpi/pci_link.c 	for (i = 0; i < link->irq.possible_count; i++) {
link              750 drivers/acpi/pci_link.c 		if (link->irq.active == link->irq.possible[i]) {
link              751 drivers/acpi/pci_link.c 			printk(KERN_CONT " *%d", link->irq.possible[i]);
link              754 drivers/acpi/pci_link.c 			printk(KERN_CONT " %d", link->irq.possible[i]);
link              760 drivers/acpi/pci_link.c 		printk(KERN_CONT " *%d", link->irq.active);
link              762 drivers/acpi/pci_link.c 	if (!link->device->status.enabled)
link              767 drivers/acpi/pci_link.c 	list_add_tail(&link->list, &acpi_link_list);
link              775 drivers/acpi/pci_link.c 		kfree(link);
link              780 drivers/acpi/pci_link.c static int acpi_pci_link_resume(struct acpi_pci_link *link)
link              782 drivers/acpi/pci_link.c 	if (link->refcnt && link->irq.active && link->irq.initialized)
link              783 drivers/acpi/pci_link.c 		return (acpi_pci_link_set(link, link->irq.active));
link              790 drivers/acpi/pci_link.c 	struct acpi_pci_link *link;
link              792 drivers/acpi/pci_link.c 	list_for_each_entry(link, &acpi_link_list, list) {
link              793 drivers/acpi/pci_link.c 		acpi_pci_link_resume(link);
link              799 drivers/acpi/pci_link.c 	struct acpi_pci_link *link;
link              801 drivers/acpi/pci_link.c 	link = acpi_driver_data(device);
link              804 drivers/acpi/pci_link.c 	list_del(&link->list);
link              807 drivers/acpi/pci_link.c 	kfree(link);
link               64 drivers/acpi/property.c 					const union acpi_object *link,
link               75 drivers/acpi/property.c 	dn->name = link->package.elements[0].string.pointer;
link              116 drivers/acpi/property.c 					const union acpi_object *link,
link              128 drivers/acpi/property.c 	if (acpi_nondev_subnode_extract(buf.pointer, handle, link, list,
link              137 drivers/acpi/property.c 				   const union acpi_object *link,
link              147 drivers/acpi/property.c 	status = acpi_get_handle(scope, link->package.elements[1].string.pointer,
link              152 drivers/acpi/property.c 	return acpi_nondev_subnode_data_ok(handle, link, list, parent);
link              164 drivers/acpi/property.c 		const union acpi_object *link, *desc;
link              168 drivers/acpi/property.c 		link = &links->package.elements[i];
link              170 drivers/acpi/property.c 		if (link->package.count != 2)
link              174 drivers/acpi/property.c 		if (link->package.elements[0].type != ACPI_TYPE_STRING)
link              178 drivers/acpi/property.c 		switch (link->package.elements[1].type) {
link              180 drivers/acpi/property.c 			result = acpi_nondev_subnode_ok(scope, link, list,
link              184 drivers/acpi/property.c 			handle = link->package.elements[1].reference.handle;
link              185 drivers/acpi/property.c 			result = acpi_nondev_subnode_data_ok(handle, link, list,
link              189 drivers/acpi/property.c 			desc = &link->package.elements[1];
link              190 drivers/acpi/property.c 			result = acpi_nondev_subnode_extract(desc, NULL, link,
link              229 drivers/ata/acard-ahci.c 	ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl);
link              244 drivers/ata/acard-ahci.c 	opts = cmd_fis_len | (qc->dev->link->pmp << 12);
link              259 drivers/ata/acard-ahci.c 		rx_fis += qc->dev->link->pmp * ACARD_AHCI_RX_FIS_SZ;
link               84 drivers/ata/ahci.c static int ahci_vt8251_hardreset(struct ata_link *link, unsigned int *class,
link               86 drivers/ata/ahci.c static int ahci_avn_hardreset(struct ata_link *link, unsigned int *class,
link               90 drivers/ata/ahci.c static int ahci_p5wdh_hardreset(struct ata_link *link, unsigned int *class,
link              668 drivers/ata/ahci.c static int ahci_vt8251_hardreset(struct ata_link *link, unsigned int *class,
link              671 drivers/ata/ahci.c 	struct ata_port *ap = link->ap;
link              680 drivers/ata/ahci.c 	rc = sata_link_hardreset(link, sata_ehc_deb_timing(&link->eh_context),
link              693 drivers/ata/ahci.c static int ahci_p5wdh_hardreset(struct ata_link *link, unsigned int *class,
link              696 drivers/ata/ahci.c 	struct ata_port *ap = link->ap;
link              707 drivers/ata/ahci.c 	ata_tf_init(link->device, &tf);
link              711 drivers/ata/ahci.c 	rc = sata_link_hardreset(link, sata_ehc_deb_timing(&link->eh_context),
link              730 drivers/ata/ahci.c 		rc = ata_wait_after_reset(link, jiffies + 2 * HZ,
link              753 drivers/ata/ahci.c static int ahci_avn_hardreset(struct ata_link *link, unsigned int *class,
link              756 drivers/ata/ahci.c 	const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
link              757 drivers/ata/ahci.c 	struct ata_port *ap = link->ap;
link              778 drivers/ata/ahci.c 		ata_tf_init(link->device, &tf);
link              782 drivers/ata/ahci.c 		rc = sata_link_hardreset(link, timing, deadline, &online,
link              785 drivers/ata/ahci.c 		if (sata_scr_read(link, SCR_STATUS, &sstatus) != 0 ||
link              789 drivers/ata/ahci.c 		ata_link_printk(link, KERN_INFO, "avn bounce port%d\n",
link              974 drivers/ata/ahci.c 		ap->link.flags |= ATA_LFLAG_NO_SRST | ATA_LFLAG_ASSUME_ATA;
link             1391 drivers/ata/ahci.c 		struct ata_link *link;
link             1394 drivers/ata/ahci.c 		ata_for_each_link(link, ap, EDGE)
link             1395 drivers/ata/ahci.c 			ata_for_each_dev(dev, link, ALL)
link              297 drivers/ata/ahci.h 	struct ata_link *link;
link              402 drivers/ata/ahci.h int ahci_do_softreset(struct ata_link *link, unsigned int *class,
link              404 drivers/ata/ahci.h 		      int (*check_ready)(struct ata_link *link));
link              406 drivers/ata/ahci.h int ahci_do_hardreset(struct ata_link *link, unsigned int *class,
link              413 drivers/ata/ahci.h int ahci_check_ready(struct ata_link *link);
link              249 drivers/ata/ahci_brcm.c 	struct ata_port *ap = dev->link->ap;
link               93 drivers/ata/ahci_da850.c static int ahci_da850_softreset(struct ata_link *link,
link               98 drivers/ata/ahci_da850.c 	pmp = sata_srst_pmp(link);
link              107 drivers/ata/ahci_da850.c 	ret = ahci_do_softreset(link, class, pmp, deadline, ahci_check_ready);
link              109 drivers/ata/ahci_da850.c 		return ahci_do_softreset(link, class, 0,
link              115 drivers/ata/ahci_da850.c static int ahci_da850_hardreset(struct ata_link *link,
link              130 drivers/ata/ahci_da850.c 		ret = ahci_do_hardreset(link, class, deadline, &online);
link              103 drivers/ata/ahci_dm816.c static int ahci_dm816_softreset(struct ata_link *link,
link              108 drivers/ata/ahci_dm816.c 	pmp = sata_srst_pmp(link);
link              117 drivers/ata/ahci_dm816.c 	ret = ahci_do_softreset(link, class, pmp, deadline, ahci_check_ready);
link              119 drivers/ata/ahci_dm816.c 		return ahci_do_softreset(link, class, 0,
link              762 drivers/ata/ahci_imx.c 	ata_for_each_dev(dev, &ap->link, ENABLED)
link              778 drivers/ata/ahci_imx.c static int ahci_imx_softreset(struct ata_link *link, unsigned int *class,
link              781 drivers/ata/ahci_imx.c 	struct ata_port *ap = link->ap;
link              788 drivers/ata/ahci_imx.c 		ret = ahci_pmp_retry_srst_ops.softreset(link, class, deadline);
link              790 drivers/ata/ahci_imx.c 		ret = ahci_ops.softreset(link, class, deadline);
link               83 drivers/ata/ahci_qoriq.c static int ahci_qoriq_hardreset(struct ata_link *link, unsigned int *class,
link               86 drivers/ata/ahci_qoriq.c 	const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
link               87 drivers/ata/ahci_qoriq.c 	void __iomem *port_mmio = ahci_port_base(link->ap);
link               89 drivers/ata/ahci_qoriq.c 	struct ata_port *ap = link->ap;
link              120 drivers/ata/ahci_qoriq.c 	ata_tf_init(link->device, &tf);
link              124 drivers/ata/ahci_qoriq.c 	rc = sata_link_hardreset(link, timing, deadline, &online,
link              205 drivers/ata/ahci_xgene.c 		port_fbs |= qc->dev->link->pmp << PORT_FBS_DEV_OFFSET;
link              350 drivers/ata/ahci_xgene.c static int xgene_ahci_do_hardreset(struct ata_link *link,
link              353 drivers/ata/ahci_xgene.c 	const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
link              354 drivers/ata/ahci_xgene.c 	struct ata_port *ap = link->ap;
link              367 drivers/ata/ahci_xgene.c 		ata_tf_init(link->device, &tf);
link              370 drivers/ata/ahci_xgene.c 		rc = sata_link_hardreset(link, timing, deadline, online,
link              379 drivers/ata/ahci_xgene.c 		sata_scr_read(link, SCR_STATUS, &sstatus);
link              390 drivers/ata/ahci_xgene.c static int xgene_ahci_hardreset(struct ata_link *link, unsigned int *class,
link              393 drivers/ata/ahci_xgene.c 	struct ata_port *ap = link->ap;
link              413 drivers/ata/ahci_xgene.c 	rc = xgene_ahci_do_hardreset(link, deadline, &online);
link              451 drivers/ata/ahci_xgene.c static int xgene_ahci_pmp_softreset(struct ata_link *link, unsigned int *class,
link              454 drivers/ata/ahci_xgene.c 	int pmp = sata_srst_pmp(link);
link              455 drivers/ata/ahci_xgene.c 	struct ata_port *ap = link->ap;
link              469 drivers/ata/ahci_xgene.c 	rc = ahci_do_softreset(link, class, pmp, deadline, ahci_check_ready);
link              495 drivers/ata/ahci_xgene.c static int xgene_ahci_softreset(struct ata_link *link, unsigned int *class,
link              498 drivers/ata/ahci_xgene.c 	int pmp = sata_srst_pmp(link);
link              499 drivers/ata/ahci_xgene.c 	struct ata_port *ap = link->ap;
link              520 drivers/ata/ahci_xgene.c 	rc = ahci_do_softreset(link, class, pmp,
link               51 drivers/ata/ata_generic.c static int generic_set_mode(struct ata_link *link, struct ata_device **unused)
link               53 drivers/ata/ata_generic.c 	struct ata_port *ap = link->ap;
link               65 drivers/ata/ata_generic.c 	ata_for_each_dev(dev, link, ENABLED) {
link              537 drivers/ata/ata_piix.c static int piix_pata_prereset(struct ata_link *link, unsigned long deadline)
link              539 drivers/ata/ata_piix.c 	struct ata_port *ap = link->ap;
link              544 drivers/ata/ata_piix.c 	return ata_sff_prereset(link, deadline);
link              776 drivers/ata/ata_piix.c static void piix_sidpr_sel(struct ata_link *link, unsigned int reg)
link              778 drivers/ata/ata_piix.c 	struct ata_port *ap = link->ap;
link              781 drivers/ata/ata_piix.c 	iowrite32(((ap->port_no * 2 + link->pmp) << 8) | piix_sidx_map[reg],
link              785 drivers/ata/ata_piix.c static int piix_sidpr_scr_read(struct ata_link *link,
link              788 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = link->ap->host->private_data;
link              793 drivers/ata/ata_piix.c 	piix_sidpr_sel(link, reg);
link              798 drivers/ata/ata_piix.c static int piix_sidpr_scr_write(struct ata_link *link,
link              801 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = link->ap->host->private_data;
link              806 drivers/ata/ata_piix.c 	piix_sidpr_sel(link, reg);
link              811 drivers/ata/ata_piix.c static int piix_sidpr_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
link              814 drivers/ata/ata_piix.c 	return sata_link_scr_lpm(link, policy, false);
link             1438 drivers/ata/ata_piix.c 	struct ata_link *link0 = &host->ports[0]->link;
link               45 drivers/ata/libahci.c static int ahci_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
link               55 drivers/ata/libahci.c static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
link               56 drivers/ata/libahci.c static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
link               69 drivers/ata/libahci.c static int ahci_softreset(struct ata_link *link, unsigned int *class,
link               71 drivers/ata/libahci.c static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
link               73 drivers/ata/libahci.c static int ahci_hardreset(struct ata_link *link, unsigned int *class,
link               75 drivers/ata/libahci.c static void ahci_postreset(struct ata_link *link, unsigned int *class);
link               84 drivers/ata/libahci.c static void ahci_init_sw_activity(struct ata_link *link);
link              593 drivers/ata/libahci.c static int ahci_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
link              595 drivers/ata/libahci.c 	void __iomem *port_mmio = ahci_port_base(link->ap);
link              596 drivers/ata/libahci.c 	int offset = ahci_scr_offset(link->ap, sc_reg);
link              605 drivers/ata/libahci.c static int ahci_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
link              607 drivers/ata/libahci.c 	void __iomem *port_mmio = ahci_port_base(link->ap);
link              608 drivers/ata/libahci.c 	int offset = ahci_scr_offset(link->ap, sc_reg);
link              643 drivers/ata/libahci.c 	    (ap->link.lpm_policy > ATA_LPM_MAX_POWER) &&
link              644 drivers/ata/libahci.c 	    ahci_set_lpm(&ap->link, ATA_LPM_MAX_POWER, ATA_LPM_WAKE_ONLY)) {
link              744 drivers/ata/libahci.c static int ahci_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
link              747 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link              764 drivers/ata/libahci.c 		sata_link_scr_lpm(link, policy, false);
link              798 drivers/ata/libahci.c 	    (link->device->flags & ATA_DFLAG_DEVSLP)) {
link              807 drivers/ata/libahci.c 		sata_link_scr_lpm(link, policy, false);
link              843 drivers/ata/libahci.c 	struct ata_link *link;
link              857 drivers/ata/libahci.c 		ata_for_each_link(link, ap, EDGE) {
link              858 drivers/ata/libahci.c 			emp = &pp->em_priv[link->pmp];
link              882 drivers/ata/libahci.c 		ata_for_each_link(link, ap, EDGE)
link              883 drivers/ata/libahci.c 			ahci_init_sw_activity(link);
link              958 drivers/ata/libahci.c static void ahci_sw_activity(struct ata_link *link)
link              960 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link              962 drivers/ata/libahci.c 	struct ahci_em_priv *emp = &pp->em_priv[link->pmp];
link              964 drivers/ata/libahci.c 	if (!(link->flags & ATA_LFLAG_SW_ACTIVITY))
link              975 drivers/ata/libahci.c 	struct ata_link *link = emp->link;
link              976 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link              983 drivers/ata/libahci.c 	led_message |= ap->port_no | (link->pmp << 8);
link             1016 drivers/ata/libahci.c static void ahci_init_sw_activity(struct ata_link *link)
link             1018 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link             1020 drivers/ata/libahci.c 	struct ahci_em_priv *emp = &pp->em_priv[link->pmp];
link             1024 drivers/ata/libahci.c 	emp->link = link;
link             1029 drivers/ata/libahci.c 		link->flags |= ATA_LFLAG_SW_ACTIVITY;
link             1112 drivers/ata/libahci.c 	struct ata_link *link;
link             1116 drivers/ata/libahci.c 	ata_for_each_link(link, ap, EDGE) {
link             1117 drivers/ata/libahci.c 		emp = &pp->em_priv[link->pmp];
link             1155 drivers/ata/libahci.c 	struct ata_link *link = dev->link;
link             1156 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link             1158 drivers/ata/libahci.c 	struct ahci_em_priv *emp = &pp->em_priv[link->pmp];
link             1164 drivers/ata/libahci.c 		link->flags &= ~(ATA_LFLAG_SW_ACTIVITY);
link             1168 drivers/ata/libahci.c 		port_led_state |= (ap->port_no | (link->pmp << 8));
link             1171 drivers/ata/libahci.c 		link->flags |= ATA_LFLAG_SW_ACTIVITY;
link             1175 drivers/ata/libahci.c 			port_led_state |= (ap->port_no | (link->pmp << 8));
link             1186 drivers/ata/libahci.c 	struct ata_link *link = dev->link;
link             1187 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link             1189 drivers/ata/libahci.c 	struct ahci_em_priv *emp = &pp->em_priv[link->pmp];
link             1258 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = dev->link->ap->host->private_data;
link             1381 drivers/ata/libahci.c int ahci_do_softreset(struct ata_link *link, unsigned int *class,
link             1383 drivers/ata/libahci.c 		      int (*check_ready)(struct ata_link *link))
link             1385 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link             1399 drivers/ata/libahci.c 		ata_link_warn(link, "failed to reset engine (errno=%d)\n", rc);
link             1406 drivers/ata/libahci.c 	if (!ata_is_host_link(link) && pp->fbs_enabled) {
link             1411 drivers/ata/libahci.c 	ata_tf_init(link->device, &tf);
link             1435 drivers/ata/libahci.c 	rc = ata_wait_after_reset(link, deadline, check_ready);
link             1442 drivers/ata/libahci.c 		ata_link_info(link, "device not ready, treating as offline\n");
link             1459 drivers/ata/libahci.c 	ata_link_err(link, "softreset failed (%s)\n", reason);
link             1463 drivers/ata/libahci.c int ahci_check_ready(struct ata_link *link)
link             1465 drivers/ata/libahci.c 	void __iomem *port_mmio = ahci_port_base(link->ap);
link             1472 drivers/ata/libahci.c static int ahci_softreset(struct ata_link *link, unsigned int *class,
link             1475 drivers/ata/libahci.c 	int pmp = sata_srst_pmp(link);
link             1479 drivers/ata/libahci.c 	return ahci_do_softreset(link, class, pmp, deadline, ahci_check_ready);
link             1483 drivers/ata/libahci.c static int ahci_bad_pmp_check_ready(struct ata_link *link)
link             1485 drivers/ata/libahci.c 	void __iomem *port_mmio = ahci_port_base(link->ap);
link             1499 drivers/ata/libahci.c static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
link             1502 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link             1504 drivers/ata/libahci.c 	int pmp = sata_srst_pmp(link);
link             1510 drivers/ata/libahci.c 	rc = ahci_do_softreset(link, class, pmp, deadline,
link             1521 drivers/ata/libahci.c 			ata_link_warn(link,
link             1524 drivers/ata/libahci.c 			rc = ahci_do_softreset(link, class, 0, deadline,
link             1532 drivers/ata/libahci.c int ahci_do_hardreset(struct ata_link *link, unsigned int *class,
link             1535 drivers/ata/libahci.c 	const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
link             1536 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link             1548 drivers/ata/libahci.c 	ata_tf_init(link->device, &tf);
link             1552 drivers/ata/libahci.c 	rc = sata_link_hardreset(link, timing, deadline, online,
link             1565 drivers/ata/libahci.c static int ahci_hardreset(struct ata_link *link, unsigned int *class,
link             1570 drivers/ata/libahci.c 	return ahci_do_hardreset(link, class, deadline, &online);
link             1573 drivers/ata/libahci.c static void ahci_postreset(struct ata_link *link, unsigned int *class)
link             1575 drivers/ata/libahci.c 	struct ata_port *ap = link->ap;
link             1579 drivers/ata/libahci.c 	ata_std_postreset(link, class);
link             1643 drivers/ata/libahci.c 	ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl);
link             1656 drivers/ata/libahci.c 	opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12);
link             1693 drivers/ata/libahci.c 	struct ata_eh_info *host_ehi = &ap->link.eh_info;
link             1694 drivers/ata/libahci.c 	struct ata_link *link = NULL;
link             1707 drivers/ata/libahci.c 			link = &ap->pmp_link[pmp];
link             1712 drivers/ata/libahci.c 		ata_for_each_link(link, ap, EDGE)
link             1713 drivers/ata/libahci.c 			if (ata_link_active(link))
link             1716 drivers/ata/libahci.c 	if (!link)
link             1717 drivers/ata/libahci.c 		link = &ap->link;
link             1719 drivers/ata/libahci.c 	active_qc = ata_qc_from_tag(ap, link->active_tag);
link             1720 drivers/ata/libahci.c 	active_ehi = &link->eh_info;
link             1727 drivers/ata/libahci.c 	ahci_scr_read(&ap->link, SCR_ERROR, &serror);
link             1728 drivers/ata/libahci.c 	ahci_scr_write(&ap->link, SCR_ERROR, serror);
link             1794 drivers/ata/libahci.c 		ata_link_abort(link);
link             1803 drivers/ata/libahci.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link             1814 drivers/ata/libahci.c 	if (sata_lpm_ignore_phy_events(&ap->link)) {
link             1816 drivers/ata/libahci.c 		ahci_scr_write(&ap->link, SCR_ERROR, SERR_PHYRDY_CHG);
link             1995 drivers/ata/libahci.c 	pp->active_link = qc->dev->link;
link             2000 drivers/ata/libahci.c 	if (pp->fbs_enabled && pp->fbs_last_dev != qc->dev->link->pmp) {
link             2003 drivers/ata/libahci.c 		fbs |= qc->dev->link->pmp << PORT_FBS_DEV_OFFSET;
link             2005 drivers/ata/libahci.c 		pp->fbs_last_dev = qc->dev->link->pmp;
link             2010 drivers/ata/libahci.c 	ahci_sw_activity(qc->dev->link);
link             2022 drivers/ata/libahci.c 		rx_fis += qc->dev->link->pmp * AHCI_RX_FIS_SZ;
link             2077 drivers/ata/libahci.c 	if (!ata_dev_enabled(ap->link.device))
link             2095 drivers/ata/libahci.c 	struct ata_device *dev = ap->link.device;
link              103 drivers/ata/libata-acpi.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link              138 drivers/ata/libata-acpi.c 	ata_acpi_handle_hotplug(dev->link->ap, dev, event);
link              175 drivers/ata/libata-acpi.c 	ata_acpi_uevent(dev->link->ap, dev, event);
link              208 drivers/ata/libata-acpi.c 	struct ata_port *ap = dev->link->ap;
link              227 drivers/ata/libata-acpi.c 			adr = SATA_ADR(ap->port_no, dev->link->pmp);
link              360 drivers/ata/libata-acpi.c 	in_params[1].buffer.pointer = (u8 *)ap->link.device[0].id;
link              363 drivers/ata/libata-acpi.c 	in_params[2].buffer.pointer = (u8 *)ap->link.device[1].id;
link              405 drivers/ata/libata-acpi.c 	struct ata_port *ap = dev->link->ap;
link              535 drivers/ata/libata-acpi.c 	ata_for_each_dev(dev, &ap->link, ENABLED) {
link              773 drivers/ata/libata-acpi.c 	struct ata_port *ap = dev->link->ap;
link              854 drivers/ata/libata-acpi.c 		ata_for_each_dev(dev, &ap->link, ALL) {
link              866 drivers/ata/libata-acpi.c 		ata_for_each_dev(dev, &ap->link, ALL) {
link              899 drivers/ata/libata-acpi.c 	ata_for_each_dev(dev, &ap->link, ENABLED) {
link              935 drivers/ata/libata-acpi.c 	ata_for_each_dev(dev, &ap->link, ENABLED) {
link              980 drivers/ata/libata-acpi.c 	struct ata_port *ap = dev->link->ap;
link              981 drivers/ata/libata-acpi.c 	struct ata_eh_context *ehc = &ap->link.eh_context;
link              181 drivers/ata/libata-core.c struct ata_link *ata_link_next(struct ata_link *link, struct ata_port *ap,
link              188 drivers/ata/libata-core.c 	if (!link)
link              196 drivers/ata/libata-core.c 			return &ap->link;
link              200 drivers/ata/libata-core.c 	if (link == &ap->link)
link              215 drivers/ata/libata-core.c 	if (unlikely(link == ap->slave_link))
link              219 drivers/ata/libata-core.c 	if (++link < ap->pmp_link + ap->nr_pmp_links)
link              220 drivers/ata/libata-core.c 		return link;
link              223 drivers/ata/libata-core.c 		return &ap->link;
link              240 drivers/ata/libata-core.c struct ata_device *ata_dev_next(struct ata_device *dev, struct ata_link *link,
link              251 drivers/ata/libata-core.c 			dev = link->device;
link              255 drivers/ata/libata-core.c 			dev = link->device + ata_link_max_devices(link) - 1;
link              264 drivers/ata/libata-core.c 		if (++dev < link->device + ata_link_max_devices(link))
link              269 drivers/ata/libata-core.c 		if (--dev >= link->device)
link              297 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link              300 drivers/ata/libata-core.c 		return dev->link;
link              302 drivers/ata/libata-core.c 		return &ap->link;
link              354 drivers/ata/libata-core.c static void ata_force_link_limits(struct ata_link *link)
link              357 drivers/ata/libata-core.c 	int linkno = link->pmp;
link              360 drivers/ata/libata-core.c 	if (ata_is_host_link(link))
link              366 drivers/ata/libata-core.c 		if (fe->port != -1 && fe->port != link->ap->print_id)
link              374 drivers/ata/libata-core.c 			link->hw_sata_spd_limit = (1 << fe->param.spd_limit) - 1;
link              375 drivers/ata/libata-core.c 			ata_link_notice(link, "FORCE: PHY spd limit set to %s\n",
link              382 drivers/ata/libata-core.c 			link->flags |= fe->param.lflags;
link              383 drivers/ata/libata-core.c 			ata_link_notice(link,
link              385 drivers/ata/libata-core.c 					fe->param.lflags, link->flags);
link              403 drivers/ata/libata-core.c 	int devno = dev->link->pmp + dev->devno;
link              408 drivers/ata/libata-core.c 	if (ata_is_host_link(dev->link))
link              415 drivers/ata/libata-core.c 		if (fe->port != -1 && fe->port != dev->link->ap->print_id)
link              457 drivers/ata/libata-core.c 	int devno = dev->link->pmp + dev->devno;
link              462 drivers/ata/libata-core.c 	if (ata_is_host_link(dev->link))
link              468 drivers/ata/libata-core.c 		if (fe->port != -1 && fe->port != dev->link->ap->print_id)
link              652 drivers/ata/libata-core.c 	} else if (lba48 && (dev->link->ap->flags & ATA_FLAG_PIO_LBA48)) {
link             1326 drivers/ata/libata-core.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link             1552 drivers/ata/libata-core.c 	struct ata_link *link = dev->link;
link             1553 drivers/ata/libata-core.c 	struct ata_port *ap = link->ap;
link             1584 drivers/ata/libata-core.c 	preempted_tag = link->active_tag;
link             1585 drivers/ata/libata-core.c 	preempted_sactive = link->sactive;
link             1588 drivers/ata/libata-core.c 	link->active_tag = ATA_TAG_POISON;
link             1589 drivers/ata/libata-core.c 	link->sactive = 0;
link             1691 drivers/ata/libata-core.c 	link->active_tag = preempted_tag;
link             1692 drivers/ata/libata-core.c 	link->sactive = preempted_sactive;
link             1755 drivers/ata/libata-core.c 	if (adev->link->ap->pflags & ATA_PFLAG_RESETTING)
link             1760 drivers/ata/libata-core.c 	if (adev->link->ap->flags & ATA_FLAG_NO_IORDY)
link             1839 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2045 drivers/ata/libata-core.c 	unsigned long ap_flags = dev->link->ap->flags;
link             2092 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2101 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2165 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2175 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2204 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2227 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2259 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2332 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2386 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2433 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             2434 drivers/ata/libata-core.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link             2485 drivers/ata/libata-core.c 		dev->link->ap->target_lpm_policy = ATA_LPM_MAX_POWER;
link             2673 drivers/ata/libata-core.c 		     sata_scr_read(&ap->link, SCR_NOTIFICATION, &sntf) == 0)) {
link             2858 drivers/ata/libata-core.c 	ata_for_each_dev(dev, &ap->link, ALL)
link             2862 drivers/ata/libata-core.c 	ata_for_each_dev(dev, &ap->link, ALL) {
link             2885 drivers/ata/libata-core.c 	ata_for_each_dev(dev, &ap->link, ALL) {
link             2898 drivers/ata/libata-core.c 	ata_for_each_dev(dev, &ap->link, ALL_REVERSE) {
link             2920 drivers/ata/libata-core.c 	ata_for_each_dev(dev, &ap->link, ENABLED)
link             2927 drivers/ata/libata-core.c 	ata_for_each_dev(dev, &ap->link, ENABLED) {
link             2928 drivers/ata/libata-core.c 		ap->link.eh_context.i.flags |= ATA_EHI_PRINTINFO;
link             2930 drivers/ata/libata-core.c 		ap->link.eh_context.i.flags &= ~ATA_EHI_PRINTINFO;
link             2936 drivers/ata/libata-core.c 	rc = ata_set_mode(&ap->link, &dev);
link             2940 drivers/ata/libata-core.c 	ata_for_each_dev(dev, &ap->link, ENABLED)
link             2963 drivers/ata/libata-core.c 			sata_down_spd_limit(&ap->link, 0);
link             2983 drivers/ata/libata-core.c static void sata_print_link_status(struct ata_link *link)
link             2987 drivers/ata/libata-core.c 	if (sata_scr_read(link, SCR_STATUS, &sstatus))
link             2989 drivers/ata/libata-core.c 	sata_scr_read(link, SCR_CONTROL, &scontrol);
link             2991 drivers/ata/libata-core.c 	if (ata_phys_link_online(link)) {
link             2993 drivers/ata/libata-core.c 		ata_link_info(link, "SATA link up %s (SStatus %X SControl %X)\n",
link             2996 drivers/ata/libata-core.c 		ata_link_info(link, "SATA link down (SStatus %X SControl %X)\n",
link             3011 drivers/ata/libata-core.c 	struct ata_link *link = adev->link;
link             3012 drivers/ata/libata-core.c 	struct ata_device *pair = &link->device[1 - adev->devno];
link             3038 drivers/ata/libata-core.c int sata_down_spd_limit(struct ata_link *link, u32 spd_limit)
link             3043 drivers/ata/libata-core.c 	if (!sata_scr_valid(link))
link             3049 drivers/ata/libata-core.c 	rc = sata_scr_read(link, SCR_STATUS, &sstatus);
link             3053 drivers/ata/libata-core.c 		spd = link->sata_spd;
link             3055 drivers/ata/libata-core.c 	mask = link->sata_spd_limit;
link             3090 drivers/ata/libata-core.c 	link->sata_spd_limit = mask;
link             3092 drivers/ata/libata-core.c 	ata_link_warn(link, "limiting SATA link speed to %s\n",
link             3098 drivers/ata/libata-core.c static int __sata_set_spd_needed(struct ata_link *link, u32 *scontrol)
link             3100 drivers/ata/libata-core.c 	struct ata_link *host_link = &link->ap->link;
link             3103 drivers/ata/libata-core.c 	limit = link->sata_spd_limit;
link             3109 drivers/ata/libata-core.c 	if (!ata_is_host_link(link) && host_link->sata_spd)
link             3138 drivers/ata/libata-core.c static int sata_set_spd_needed(struct ata_link *link)
link             3142 drivers/ata/libata-core.c 	if (sata_scr_read(link, SCR_CONTROL, &scontrol))
link             3145 drivers/ata/libata-core.c 	return __sata_set_spd_needed(link, &scontrol);
link             3161 drivers/ata/libata-core.c int sata_set_spd(struct ata_link *link)
link             3166 drivers/ata/libata-core.c 	if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol)))
link             3169 drivers/ata/libata-core.c 	if (!__sata_set_spd_needed(link, &scontrol))
link             3172 drivers/ata/libata-core.c 	if ((rc = sata_scr_write(link, SCR_CONTROL, scontrol)))
link             3486 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             3487 drivers/ata/libata-core.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link             3584 drivers/ata/libata-core.c int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev)
link             3586 drivers/ata/libata-core.c 	struct ata_port *ap = link->ap;
link             3591 drivers/ata/libata-core.c 	ata_for_each_dev(dev, link, ENABLED) {
link             3623 drivers/ata/libata-core.c 	ata_for_each_dev(dev, link, ENABLED) {
link             3637 drivers/ata/libata-core.c 	ata_for_each_dev(dev, link, ENABLED) {
link             3648 drivers/ata/libata-core.c 	ata_for_each_dev(dev, link, ENABLED) {
link             3686 drivers/ata/libata-core.c int ata_wait_ready(struct ata_link *link, unsigned long deadline,
link             3687 drivers/ata/libata-core.c 		   int (*check_ready)(struct ata_link *link))
link             3694 drivers/ata/libata-core.c 	if (link->ap->host->flags & ATA_HOST_PARALLEL_SCAN)
link             3703 drivers/ata/libata-core.c 	WARN_ON(link == link->ap->slave_link);
link             3712 drivers/ata/libata-core.c 		ready = tmp = check_ready(link);
link             3728 drivers/ata/libata-core.c 			if (ata_link_online(link))
link             3730 drivers/ata/libata-core.c 			else if ((link->ap->flags & ATA_FLAG_SATA) &&
link             3731 drivers/ata/libata-core.c 				 !ata_link_offline(link) &&
link             3743 drivers/ata/libata-core.c 			ata_link_warn(link,
link             3749 drivers/ata/libata-core.c 		ata_msleep(link->ap, 50);
link             3767 drivers/ata/libata-core.c int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
link             3768 drivers/ata/libata-core.c 				int (*check_ready)(struct ata_link *link))
link             3770 drivers/ata/libata-core.c 	ata_msleep(link->ap, ATA_WAIT_AFTER_RESET);
link             3772 drivers/ata/libata-core.c 	return ata_wait_ready(link, deadline, check_ready);
link             3797 drivers/ata/libata-core.c int sata_link_debounce(struct ata_link *link, const unsigned long *params,
link             3810 drivers/ata/libata-core.c 	if ((rc = sata_scr_read(link, SCR_STATUS, &cur)))
link             3818 drivers/ata/libata-core.c 		ata_msleep(link->ap, interval);
link             3819 drivers/ata/libata-core.c 		if ((rc = sata_scr_read(link, SCR_STATUS, &cur)))
link             3859 drivers/ata/libata-core.c int sata_link_resume(struct ata_link *link, const unsigned long *params,
link             3866 drivers/ata/libata-core.c 	if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol)))
link             3876 drivers/ata/libata-core.c 		if ((rc = sata_scr_write(link, SCR_CONTROL, scontrol)))
link             3883 drivers/ata/libata-core.c 		if (!(link->flags & ATA_LFLAG_NO_DB_DELAY))
link             3884 drivers/ata/libata-core.c 			ata_msleep(link->ap, 200);
link             3887 drivers/ata/libata-core.c 		if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol)))
link             3892 drivers/ata/libata-core.c 		ata_link_warn(link, "failed to resume link (SControl %X)\n",
link             3898 drivers/ata/libata-core.c 		ata_link_warn(link, "link resume succeeded after %d retries\n",
link             3901 drivers/ata/libata-core.c 	if ((rc = sata_link_debounce(link, params, deadline)))
link             3905 drivers/ata/libata-core.c 	if (!(rc = sata_scr_read(link, SCR_ERROR, &serror)))
link             3906 drivers/ata/libata-core.c 		rc = sata_scr_write(link, SCR_ERROR, serror);
link             3929 drivers/ata/libata-core.c int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
link             3932 drivers/ata/libata-core.c 	struct ata_eh_context *ehc = &link->eh_context;
link             3937 drivers/ata/libata-core.c 	rc = sata_scr_read(link, SCR_CONTROL, &scontrol);
link             3959 drivers/ata/libata-core.c 		if (ata_link_nr_enabled(link) > 0)
link             3972 drivers/ata/libata-core.c 	rc = sata_scr_write(link, SCR_CONTROL, scontrol);
link             3982 drivers/ata/libata-core.c 	return sata_scr_write(link, SCR_ERROR, SERR_PHYRDY_CHG);
link             4002 drivers/ata/libata-core.c int ata_std_prereset(struct ata_link *link, unsigned long deadline)
link             4004 drivers/ata/libata-core.c 	struct ata_port *ap = link->ap;
link             4005 drivers/ata/libata-core.c 	struct ata_eh_context *ehc = &link->eh_context;
link             4015 drivers/ata/libata-core.c 		rc = sata_link_resume(link, timing, deadline);
link             4018 drivers/ata/libata-core.c 			ata_link_warn(link,
link             4024 drivers/ata/libata-core.c 	if (ata_phys_link_offline(link))
link             4054 drivers/ata/libata-core.c int sata_link_hardreset(struct ata_link *link, const unsigned long *timing,
link             4066 drivers/ata/libata-core.c 	if (sata_set_spd_needed(link)) {
link             4072 drivers/ata/libata-core.c 		if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol)))
link             4077 drivers/ata/libata-core.c 		if ((rc = sata_scr_write(link, SCR_CONTROL, scontrol)))
link             4080 drivers/ata/libata-core.c 		sata_set_spd(link);
link             4084 drivers/ata/libata-core.c 	if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol)))
link             4089 drivers/ata/libata-core.c 	if ((rc = sata_scr_write_flush(link, SCR_CONTROL, scontrol)))
link             4095 drivers/ata/libata-core.c 	ata_msleep(link->ap, 1);
link             4098 drivers/ata/libata-core.c 	rc = sata_link_resume(link, timing, deadline);
link             4102 drivers/ata/libata-core.c 	if (ata_phys_link_offline(link))
link             4109 drivers/ata/libata-core.c 	if (sata_pmp_supported(link->ap) && ata_is_host_link(link)) {
link             4122 drivers/ata/libata-core.c 			ata_wait_ready(link, pmp_deadline, check_ready);
link             4130 drivers/ata/libata-core.c 		rc = ata_wait_ready(link, deadline, check_ready);
link             4136 drivers/ata/libata-core.c 		ata_link_err(link, "COMRESET failed (errno=%d)\n", rc);
link             4156 drivers/ata/libata-core.c int sata_std_hardreset(struct ata_link *link, unsigned int *class,
link             4159 drivers/ata/libata-core.c 	const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
link             4164 drivers/ata/libata-core.c 	rc = sata_link_hardreset(link, timing, deadline, &online, NULL);
link             4180 drivers/ata/libata-core.c void ata_std_postreset(struct ata_link *link, unsigned int *classes)
link             4187 drivers/ata/libata-core.c 	if (!sata_scr_read(link, SCR_ERROR, &serror))
link             4188 drivers/ata/libata-core.c 		sata_scr_write(link, SCR_ERROR, serror);
link             4191 drivers/ata/libata-core.c 	sata_print_link_status(link);
link             4262 drivers/ata/libata-core.c 	u16 *id = (void *)dev->link->ap->sector_buf;
link             4642 drivers/ata/libata-core.c 	if ((dev->link->ap->flags & ATA_FLAG_PIO_POLLING) &&
link             4678 drivers/ata/libata-core.c 	struct ata_link *link;
link             4705 drivers/ata/libata-core.c 	ata_for_each_link(link, ap, EDGE) {
link             4706 drivers/ata/libata-core.c 		ata_for_each_dev(dev, link, ENABLED) {
link             4728 drivers/ata/libata-core.c 	struct ata_link *link = dev->link;
link             4729 drivers/ata/libata-core.c 	struct ata_port *ap = link->ap;
link             4970 drivers/ata/libata-core.c 	struct ata_link *link = qc->dev->link;
link             4973 drivers/ata/libata-core.c 		if (!ata_tag_valid(link->active_tag))
link             4976 drivers/ata/libata-core.c 		if (!ata_tag_valid(link->active_tag) && !link->sactive)
link             5106 drivers/ata/libata-core.c 	struct ata_port *ap = dev->link->ap;
link             5161 drivers/ata/libata-core.c 	struct ata_link *link;
link             5166 drivers/ata/libata-core.c 	link = qc->dev->link;
link             5173 drivers/ata/libata-core.c 		link->sactive &= ~(1 << qc->hw_tag);
link             5174 drivers/ata/libata-core.c 		if (!link->sactive)
link             5177 drivers/ata/libata-core.c 		link->active_tag = ATA_TAG_POISON;
link             5183 drivers/ata/libata-core.c 		     ap->excl_link == link))
link             5255 drivers/ata/libata-core.c 		struct ata_eh_info *ehi = &dev->link->eh_info;
link             5425 drivers/ata/libata-core.c 	struct ata_link *link = qc->dev->link;
link             5432 drivers/ata/libata-core.c 	WARN_ON_ONCE(ap->ops->error_handler && ata_tag_valid(link->active_tag));
link             5435 drivers/ata/libata-core.c 		WARN_ON_ONCE(link->sactive & (1 << qc->hw_tag));
link             5437 drivers/ata/libata-core.c 		if (!link->sactive)
link             5439 drivers/ata/libata-core.c 		link->sactive |= 1 << qc->hw_tag;
link             5441 drivers/ata/libata-core.c 		WARN_ON_ONCE(link->sactive);
link             5444 drivers/ata/libata-core.c 		link->active_tag = qc->tag;
link             5464 drivers/ata/libata-core.c 		link->eh_info.action |= ATA_EH_RESET;
link             5465 drivers/ata/libata-core.c 		ata_ehi_push_desc(&link->eh_info, "waking up from sleep");
link             5466 drivers/ata/libata-core.c 		ata_link_abort(link);
link             5495 drivers/ata/libata-core.c int sata_scr_valid(struct ata_link *link)
link             5497 drivers/ata/libata-core.c 	struct ata_port *ap = link->ap;
link             5518 drivers/ata/libata-core.c int sata_scr_read(struct ata_link *link, int reg, u32 *val)
link             5520 drivers/ata/libata-core.c 	if (ata_is_host_link(link)) {
link             5521 drivers/ata/libata-core.c 		if (sata_scr_valid(link))
link             5522 drivers/ata/libata-core.c 			return link->ap->ops->scr_read(link, reg, val);
link             5526 drivers/ata/libata-core.c 	return sata_pmp_scr_read(link, reg, val);
link             5545 drivers/ata/libata-core.c int sata_scr_write(struct ata_link *link, int reg, u32 val)
link             5547 drivers/ata/libata-core.c 	if (ata_is_host_link(link)) {
link             5548 drivers/ata/libata-core.c 		if (sata_scr_valid(link))
link             5549 drivers/ata/libata-core.c 			return link->ap->ops->scr_write(link, reg, val);
link             5553 drivers/ata/libata-core.c 	return sata_pmp_scr_write(link, reg, val);
link             5571 drivers/ata/libata-core.c int sata_scr_write_flush(struct ata_link *link, int reg, u32 val)
link             5573 drivers/ata/libata-core.c 	if (ata_is_host_link(link)) {
link             5576 drivers/ata/libata-core.c 		if (sata_scr_valid(link)) {
link             5577 drivers/ata/libata-core.c 			rc = link->ap->ops->scr_write(link, reg, val);
link             5579 drivers/ata/libata-core.c 				rc = link->ap->ops->scr_read(link, reg, &val);
link             5585 drivers/ata/libata-core.c 	return sata_pmp_scr_write(link, reg, val);
link             5602 drivers/ata/libata-core.c bool ata_phys_link_online(struct ata_link *link)
link             5606 drivers/ata/libata-core.c 	if (sata_scr_read(link, SCR_STATUS, &sstatus) == 0 &&
link             5626 drivers/ata/libata-core.c bool ata_phys_link_offline(struct ata_link *link)
link             5630 drivers/ata/libata-core.c 	if (sata_scr_read(link, SCR_STATUS, &sstatus) == 0 &&
link             5652 drivers/ata/libata-core.c bool ata_link_online(struct ata_link *link)
link             5654 drivers/ata/libata-core.c 	struct ata_link *slave = link->ap->slave_link;
link             5656 drivers/ata/libata-core.c 	WARN_ON(link == slave);	/* shouldn't be called on slave link */
link             5658 drivers/ata/libata-core.c 	return ata_phys_link_online(link) ||
link             5678 drivers/ata/libata-core.c bool ata_link_offline(struct ata_link *link)
link             5680 drivers/ata/libata-core.c 	struct ata_link *slave = link->ap->slave_link;
link             5682 drivers/ata/libata-core.c 	WARN_ON(link == slave);	/* shouldn't be called on slave link */
link             5684 drivers/ata/libata-core.c 	return ata_phys_link_offline(link) &&
link             5693 drivers/ata/libata-core.c 	struct ata_link *link;
link             5709 drivers/ata/libata-core.c 	ata_for_each_link(link, ap, HOST_FIRST) {
link             5710 drivers/ata/libata-core.c 		link->eh_info.action |= action;
link             5711 drivers/ata/libata-core.c 		link->eh_info.flags |= ehi_flags;
link             5806 drivers/ata/libata-core.c 	struct ata_link *link;
link             5809 drivers/ata/libata-core.c 	ata_for_each_link(link, ap, HOST_FIRST) {
link             5810 drivers/ata/libata-core.c 		ata_for_each_dev(adev, link, ENABLED)
link             5904 drivers/ata/libata-core.c 	struct ata_link *link = ata_dev_phys_link(dev);
link             5905 drivers/ata/libata-core.c 	struct ata_port *ap = link->ap;
link             5909 drivers/ata/libata-core.c 	link->sata_spd_limit = link->hw_sata_spd_limit;
link             5910 drivers/ata/libata-core.c 	link->sata_spd = 0;
link             5939 drivers/ata/libata-core.c void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp)
link             5944 drivers/ata/libata-core.c 	memset((void *)link + ATA_LINK_CLEAR_BEGIN, 0,
link             5947 drivers/ata/libata-core.c 	link->ap = ap;
link             5948 drivers/ata/libata-core.c 	link->pmp = pmp;
link             5949 drivers/ata/libata-core.c 	link->active_tag = ATA_TAG_POISON;
link             5950 drivers/ata/libata-core.c 	link->hw_sata_spd_limit = UINT_MAX;
link             5954 drivers/ata/libata-core.c 		struct ata_device *dev = &link->device[i];
link             5956 drivers/ata/libata-core.c 		dev->link = link;
link             5957 drivers/ata/libata-core.c 		dev->devno = dev - link->device;
link             5978 drivers/ata/libata-core.c int sata_link_init_spd(struct ata_link *link)
link             5983 drivers/ata/libata-core.c 	rc = sata_scr_read(link, SCR_CONTROL, &link->saved_scontrol);
link             5987 drivers/ata/libata-core.c 	spd = (link->saved_scontrol >> 4) & 0xf;
link             5989 drivers/ata/libata-core.c 		link->hw_sata_spd_limit &= (1 << spd) - 1;
link             5991 drivers/ata/libata-core.c 	ata_force_link_limits(link);
link             5993 drivers/ata/libata-core.c 	link->sata_spd_limit = link->hw_sata_spd_limit;
link             6047 drivers/ata/libata-core.c 	ata_link_init(ap, &ap->link, 0);
link             6215 drivers/ata/libata-core.c 		ap->link.flags |= pi->link_flags;
link             6273 drivers/ata/libata-core.c 	struct ata_link *link;
link             6278 drivers/ata/libata-core.c 	link = kzalloc(sizeof(*link), GFP_KERNEL);
link             6279 drivers/ata/libata-core.c 	if (!link)
link             6282 drivers/ata/libata-core.c 	ata_link_init(ap, link, 1);
link             6283 drivers/ata/libata-core.c 	ap->slave_link = link;
link             6455 drivers/ata/libata-core.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link             6574 drivers/ata/libata-core.c 		sata_link_init_spd(&ap->link);
link             6586 drivers/ata/libata-core.c 				      ap->link.eh_info.desc);
link             6587 drivers/ata/libata-core.c 			ata_ehi_clear_desc(&ap->link.eh_info);
link             6684 drivers/ata/libata-core.c 	struct ata_link *link;
link             6706 drivers/ata/libata-core.c 	ata_for_each_link(link, ap, HOST_FIRST) {
link             6707 drivers/ata/libata-core.c 		ata_for_each_dev(dev, link, ALL) {
link             7209 drivers/ata/libata-core.c bool sata_lpm_ignore_phy_events(struct ata_link *link)
link             7211 drivers/ata/libata-core.c 	unsigned long lpm_timeout = link->last_lpm_change +
link             7215 drivers/ata/libata-core.c 	if (link->lpm_policy > ATA_LPM_MAX_POWER)
link             7221 drivers/ata/libata-core.c 	if ((link->flags & ATA_LFLAG_CHANGED) &&
link             7274 drivers/ata/libata-core.c void ata_link_printk(const struct ata_link *link, const char *level,
link             7285 drivers/ata/libata-core.c 	if (sata_pmp_attached(link->ap) || link->ap->slave_link)
link             7287 drivers/ata/libata-core.c 		       level, link->ap->print_id, link->pmp, &vaf);
link             7290 drivers/ata/libata-core.c 		       level, link->ap->print_id, &vaf);
link             7308 drivers/ata/libata-core.c 	       level, dev->link->ap->print_id, dev->link->pmp + dev->devno,
link              245 drivers/ata/libata-eh.c 	if (ap->link.eh_info.desc_len)
link              246 drivers/ata/libata-eh.c 		__ata_ehi_push_desc(&ap->link.eh_info, " ");
link              249 drivers/ata/libata-eh.c 	__ata_ehi_pushv_desc(&ap->link.eh_info, fmt, args);
link              324 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link              349 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link              420 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link              425 drivers/ata/libata-eh.c static void ata_eh_clear_action(struct ata_link *link, struct ata_device *dev,
link              432 drivers/ata/libata-eh.c 		ata_for_each_dev(tdev, link, ALL)
link              440 drivers/ata/libata-eh.c 			ata_for_each_dev(tdev, link, ALL)
link              488 drivers/ata/libata-eh.c 	struct ata_link *link;
link              495 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, PMP_FIRST) {
link              496 drivers/ata/libata-eh.c 		sata_scr_write(link, SCR_CONTROL, link->saved_scontrol & 0xff0);
link              497 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, link, ALL)
link              656 drivers/ata/libata-eh.c 		struct ata_link *link;
link              670 drivers/ata/libata-eh.c 		ata_for_each_link(link, ap, HOST_FIRST) {
link              671 drivers/ata/libata-eh.c 			struct ata_eh_context *ehc = &link->eh_context;
link              674 drivers/ata/libata-eh.c 			memset(&link->eh_context, 0, sizeof(link->eh_context));
link              675 drivers/ata/libata-eh.c 			link->eh_context.i = link->eh_info;
link              676 drivers/ata/libata-eh.c 			memset(&link->eh_info, 0, sizeof(link->eh_info));
link              678 drivers/ata/libata-eh.c 			ata_for_each_dev(dev, link, ENABLED) {
link              725 drivers/ata/libata-eh.c 		ata_for_each_link(link, ap, HOST_FIRST)
link              726 drivers/ata/libata-eh.c 			memset(&link->eh_info, 0, sizeof(link->eh_info));
link              738 drivers/ata/libata-eh.c 		WARN_ON(ata_qc_from_tag(ap, ap->link.active_tag) == NULL);
link              977 drivers/ata/libata-eh.c static int ata_do_link_abort(struct ata_port *ap, struct ata_link *link)
link              989 drivers/ata/libata-eh.c 		if (qc && (!link || qc->dev->link == link)) {
link             1014 drivers/ata/libata-eh.c int ata_link_abort(struct ata_link *link)
link             1016 drivers/ata/libata-eh.c 	return ata_do_link_abort(link->ap, link);
link             1113 drivers/ata/libata-eh.c 	rc = sata_scr_read(&ap->link, SCR_NOTIFICATION, &sntf);
link             1115 drivers/ata/libata-eh.c 		sata_scr_write(&ap->link, SCR_NOTIFICATION, sntf);
link             1124 drivers/ata/libata-eh.c 			struct ata_device *dev = ap->link.device;
link             1141 drivers/ata/libata-eh.c 		struct ata_link *link;
link             1144 drivers/ata/libata-eh.c 		ata_for_each_link(link, ap, EDGE) {
link             1145 drivers/ata/libata-eh.c 			if (!(sntf & (1 << link->pmp)))
link             1148 drivers/ata/libata-eh.c 			if ((link->device->class == ATA_DEV_ATAPI) &&
link             1149 drivers/ata/libata-eh.c 			    (link->device->flags & ATA_DFLAG_AN))
link             1150 drivers/ata/libata-eh.c 				ata_scsi_media_change_notify(link->device);
link             1281 drivers/ata/libata-eh.c 	if (ata_msg_drv(dev->link->ap))
link             1304 drivers/ata/libata-eh.c 	struct ata_link *link = dev->link;
link             1305 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             1306 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             1321 drivers/ata/libata-eh.c 	ata_eh_clear_action(link, dev, &link->eh_info, ATA_EH_PERDEV_MASK);
link             1322 drivers/ata/libata-eh.c 	ata_eh_clear_action(link, dev, &link->eh_context.i, ATA_EH_PERDEV_MASK);
link             1342 drivers/ata/libata-eh.c void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
link             1345 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             1346 drivers/ata/libata-eh.c 	struct ata_eh_info *ehi = &link->eh_info;
link             1347 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             1352 drivers/ata/libata-eh.c 	ata_eh_clear_action(link, dev, ehi, action);
link             1357 drivers/ata/libata-eh.c 	if (!(ehc->i.flags & ATA_EHI_QUIET) && link != ap->slave_link)
link             1375 drivers/ata/libata-eh.c void ata_eh_done(struct ata_link *link, struct ata_device *dev,
link             1378 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             1380 drivers/ata/libata-eh.c 	ata_eh_clear_action(link, dev, &ehc->i, action);
link             1440 drivers/ata/libata-eh.c 	u8 *buf = dev->link->ap->sector_buf;
link             1579 drivers/ata/libata-eh.c 	struct ata_port *ap = dev->link->ap;
link             1622 drivers/ata/libata-eh.c static void ata_eh_analyze_serror(struct ata_link *link)
link             1624 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             1647 drivers/ata/libata-eh.c 	if (link->lpm_policy > ATA_LPM_MAX_POWER)
link             1649 drivers/ata/libata-eh.c 	else if (!(link->flags & ATA_LFLAG_DISABLED) || ata_is_host_link(link))
link             1673 drivers/ata/libata-eh.c void ata_eh_analyze_ncq_error(struct ata_link *link)
link             1675 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             1676 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             1677 drivers/ata/libata-eh.c 	struct ata_device *dev = link->device;
link             1687 drivers/ata/libata-eh.c 	if (!link->sactive || !(ehc->i.err_mask & AC_ERR_DEV))
link             1703 drivers/ata/libata-eh.c 		ata_link_err(link, "failed to read log page 10h (errno=%d)\n",
link             1708 drivers/ata/libata-eh.c 	if (!(link->sactive & (1 << tag))) {
link             1709 drivers/ata/libata-eh.c 		ata_link_err(link, "log page 10h reported inactive tag %d\n",
link             1992 drivers/ata/libata-eh.c 	struct ata_link *link = ata_dev_phys_link(dev);
link             2017 drivers/ata/libata-eh.c 		if (sata_down_spd_limit(link, 0) == 0) {
link             2048 drivers/ata/libata-eh.c 	    (link->ap->cbl != ATA_CBL_SATA || dev->class == ATA_DEV_ATAPI) &&
link             2111 drivers/ata/libata-eh.c static void ata_eh_link_autopsy(struct ata_link *link)
link             2113 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             2114 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             2128 drivers/ata/libata-eh.c 	rc = sata_scr_read(link, SCR_ERROR, &serror);
link             2131 drivers/ata/libata-eh.c 		ata_eh_analyze_serror(link);
link             2140 drivers/ata/libata-eh.c 	ata_eh_analyze_ncq_error(link);
link             2150 drivers/ata/libata-eh.c 		    ata_dev_phys_link(qc->dev) != link)
link             2215 drivers/ata/libata-eh.c 	if ((all_err_mask & AC_ERR_TIMEOUT) && !ata_is_host_link(link))
link             2216 drivers/ata/libata-eh.c 		ap->link.eh_context.i.err_mask |= AC_ERR_TIMEOUT;
link             2220 drivers/ata/libata-eh.c 	if (!dev && ((ata_link_max_devices(link) == 1 &&
link             2221 drivers/ata/libata-eh.c 		      ata_dev_enabled(link->device))))
link             2222 drivers/ata/libata-eh.c 	    dev = link->device;
link             2245 drivers/ata/libata-eh.c 	struct ata_link *link;
link             2247 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, EDGE)
link             2248 drivers/ata/libata-eh.c 		ata_eh_link_autopsy(link);
link             2255 drivers/ata/libata-eh.c 		struct ata_eh_context *mehc = &ap->link.eh_context;
link             2276 drivers/ata/libata-eh.c 		ata_eh_link_autopsy(&ap->link);
link             2410 drivers/ata/libata-eh.c static void ata_eh_link_report(struct ata_link *link)
link             2412 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             2413 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             2428 drivers/ata/libata-eh.c 		    ata_dev_phys_link(qc->dev) != link ||
link             2452 drivers/ata/libata-eh.c 			    ehc->i.err_mask, link->sactive, ehc->i.serror,
link             2457 drivers/ata/libata-eh.c 		ata_link_err(link, "exception Emask 0x%x "
link             2459 drivers/ata/libata-eh.c 			     ehc->i.err_mask, link->sactive, ehc->i.serror,
link             2462 drivers/ata/libata-eh.c 			ata_link_err(link, "%s\n", desc);
link             2467 drivers/ata/libata-eh.c 		ata_link_err(link,
link             2494 drivers/ata/libata-eh.c 		    ata_dev_phys_link(qc->dev) != link || !qc->err_mask)
link             2610 drivers/ata/libata-eh.c 	struct ata_link *link;
link             2612 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, HOST_FIRST)
link             2613 drivers/ata/libata-eh.c 		ata_eh_link_report(link);
link             2616 drivers/ata/libata-eh.c static int ata_do_reset(struct ata_link *link, ata_reset_fn_t reset,
link             2623 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, link, ALL)
link             2626 drivers/ata/libata-eh.c 	return reset(link, classes, deadline);
link             2629 drivers/ata/libata-eh.c static int ata_eh_followup_srst_needed(struct ata_link *link, int rc)
link             2631 drivers/ata/libata-eh.c 	if ((link->flags & ATA_LFLAG_NO_SRST) || ata_link_offline(link))
link             2635 drivers/ata/libata-eh.c 	if (sata_pmp_supported(link->ap) && ata_is_host_link(link))
link             2640 drivers/ata/libata-eh.c int ata_eh_reset(struct ata_link *link, int classify,
link             2644 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             2646 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             2649 drivers/ata/libata-eh.c 	unsigned int lflags = link->flags;
link             2665 drivers/ata/libata-eh.c 	if (link->flags & ATA_LFLAG_RST_ONCE)
link             2667 drivers/ata/libata-eh.c 	if (link->flags & ATA_LFLAG_NO_HRST)
link             2669 drivers/ata/libata-eh.c 	if (link->flags & ATA_LFLAG_NO_SRST)
link             2686 drivers/ata/libata-eh.c 	ata_eh_about_to_do(link, NULL, ATA_EH_RESET);
link             2688 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ALL) {
link             2728 drivers/ata/libata-eh.c 		rc = prereset(link, deadline);
link             2746 drivers/ata/libata-eh.c 				ata_link_dbg(link, "port disabled--ignoring\n");
link             2749 drivers/ata/libata-eh.c 				ata_for_each_dev(dev, link, ALL)
link             2754 drivers/ata/libata-eh.c 				ata_link_err(link,
link             2764 drivers/ata/libata-eh.c 			ata_for_each_dev(dev, link, ALL)
link             2767 drivers/ata/libata-eh.c 			    ata_is_host_link(link))
link             2778 drivers/ata/libata-eh.c 	if (ata_is_host_link(link))
link             2785 drivers/ata/libata-eh.c 			ata_link_info(link, "%s resetting link\n",
link             2795 drivers/ata/libata-eh.c 		rc = ata_do_reset(link, reset, classes, deadline, true);
link             2797 drivers/ata/libata-eh.c 			failed_link = link;
link             2825 drivers/ata/libata-eh.c 		    ata_eh_followup_srst_needed(link, rc)) {
link             2829 drivers/ata/libata-eh.c 				ata_link_err(link,
link             2831 drivers/ata/libata-eh.c 				failed_link = link;
link             2836 drivers/ata/libata-eh.c 			ata_eh_about_to_do(link, NULL, ATA_EH_RESET);
link             2837 drivers/ata/libata-eh.c 			rc = ata_do_reset(link, reset, classes, deadline, true);
link             2839 drivers/ata/libata-eh.c 				failed_link = link;
link             2845 drivers/ata/libata-eh.c 			ata_link_info(link,
link             2854 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ALL) {
link             2873 drivers/ata/libata-eh.c 	if (sata_scr_read(link, SCR_STATUS, &sstatus) == 0)
link             2874 drivers/ata/libata-eh.c 		link->sata_spd = (sstatus >> 4) & 0xf;
link             2879 drivers/ata/libata-eh.c 	if (ata_is_host_link(link))
link             2890 drivers/ata/libata-eh.c 		postreset(link, classes);
link             2902 drivers/ata/libata-eh.c 	spin_lock_irqsave(link->ap->lock, flags);
link             2903 drivers/ata/libata-eh.c 	memset(&link->eh_info, 0, sizeof(link->eh_info));
link             2905 drivers/ata/libata-eh.c 		memset(&slave->eh_info, 0, sizeof(link->eh_info));
link             2907 drivers/ata/libata-eh.c 	spin_unlock_irqrestore(link->ap->lock, flags);
link             2921 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ALL) {
link             2943 drivers/ata/libata-eh.c 			ata_link_warn(link,
link             2946 drivers/ata/libata-eh.c 			failed_link = link;
link             2950 drivers/ata/libata-eh.c 		ata_link_warn(link,
link             2956 drivers/ata/libata-eh.c 	ata_eh_done(link, NULL, ATA_EH_RESET);
link             2961 drivers/ata/libata-eh.c 	link->lpm_policy = ATA_LPM_UNKNOWN;	/* reset LPM state */
link             2978 drivers/ata/libata-eh.c 	if (!ata_is_host_link(link) &&
link             2979 drivers/ata/libata-eh.c 	    sata_scr_read(link, SCR_STATUS, &sstatus))
link             2989 drivers/ata/libata-eh.c 		if (ata_is_host_link(link))
link             3013 drivers/ata/libata-eh.c 		if (ata_is_host_link(link))
link             3019 drivers/ata/libata-eh.c 		sata_down_spd_limit(link, 0);
link             3032 drivers/ata/libata-eh.c 	struct ata_link *link;
link             3064 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, EDGE) {
link             3065 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, link, ALL) {
link             3066 drivers/ata/libata-eh.c 			struct ata_eh_info *ehi = &link->eh_info;
link             3068 drivers/ata/libata-eh.c 			link->eh_context.i.dev_action[dev->devno] |=
link             3070 drivers/ata/libata-eh.c 			ata_eh_clear_action(link, dev, ehi, ATA_EH_PARK);
link             3078 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link             3104 drivers/ata/libata-eh.c static int ata_eh_revalidate_and_attach(struct ata_link *link,
link             3107 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             3108 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             3120 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ALL_REVERSE) {
link             3135 drivers/ata/libata-eh.c 			ata_eh_about_to_do(link, dev, ATA_EH_REVALIDATE);
link             3141 drivers/ata/libata-eh.c 			ata_eh_done(link, dev, ATA_EH_REVALIDATE);
link             3191 drivers/ata/libata-eh.c 	if ((ehc->i.flags & ATA_EHI_DID_RESET) && ata_is_host_link(link)) {
link             3200 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ALL) {
link             3248 drivers/ata/libata-eh.c int ata_set_mode(struct ata_link *link, struct ata_device **r_failed_dev)
link             3250 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             3255 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ENABLED) {
link             3267 drivers/ata/libata-eh.c 		rc = ap->ops->set_mode(link, r_failed_dev);
link             3269 drivers/ata/libata-eh.c 		rc = ata_do_set_mode(link, r_failed_dev);
link             3272 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ENABLED) {
link             3273 drivers/ata/libata-eh.c 		struct ata_eh_context *ehc = &link->eh_context;
link             3304 drivers/ata/libata-eh.c 		u8 *sense_buffer = dev->link->ap->sector_buf;
link             3352 drivers/ata/libata-eh.c 	struct ata_link *link = dev->link;
link             3353 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             3360 drivers/ata/libata-eh.c 	if (!ata_tag_valid(link->active_tag))
link             3363 drivers/ata/libata-eh.c 	qc = __ata_qc_from_tag(ap, link->active_tag);
link             3426 drivers/ata/libata-eh.c static int ata_eh_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
link             3429 drivers/ata/libata-eh.c 	struct ata_port *ap = ata_is_host_link(link) ? link->ap : NULL;
link             3430 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             3432 drivers/ata/libata-eh.c 	enum ata_lpm_policy old_policy = link->lpm_policy;
link             3433 drivers/ata/libata-eh.c 	bool no_dipm = link->ap->flags & ATA_FLAG_NO_DIPM;
link             3439 drivers/ata/libata-eh.c 	if ((link->flags & ATA_LFLAG_NO_LPM) || (ap && !ap->ops->set_lpm))
link             3448 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ENABLED) {
link             3478 drivers/ata/libata-eh.c 		rc = ap->ops->set_lpm(link, policy, hints);
link             3482 drivers/ata/libata-eh.c 		rc = sata_pmp_set_lpm(link, policy, hints);
link             3490 drivers/ata/libata-eh.c 			link->flags |= ATA_LFLAG_NO_LPM;
link             3501 drivers/ata/libata-eh.c 	link->lpm_policy = policy;
link             3506 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ENABLED) {
link             3521 drivers/ata/libata-eh.c 	link->last_lpm_change = jiffies;
link             3522 drivers/ata/libata-eh.c 	link->flags |= ATA_LFLAG_CHANGED;
link             3528 drivers/ata/libata-eh.c 	link->lpm_policy = old_policy;
link             3534 drivers/ata/libata-eh.c 		ata_link_warn(link, "disabling LPM on the link\n");
link             3535 drivers/ata/libata-eh.c 		link->flags |= ATA_LFLAG_NO_LPM;
link             3542 drivers/ata/libata-eh.c int ata_link_nr_enabled(struct ata_link *link)
link             3547 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ENABLED)
link             3552 drivers/ata/libata-eh.c static int ata_link_nr_vacant(struct ata_link *link)
link             3557 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ALL)
link             3563 drivers/ata/libata-eh.c static int ata_eh_skip_recovery(struct ata_link *link)
link             3565 drivers/ata/libata-eh.c 	struct ata_port *ap = link->ap;
link             3566 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &link->eh_context;
link             3570 drivers/ata/libata-eh.c 	if (link->flags & ATA_LFLAG_DISABLED)
link             3578 drivers/ata/libata-eh.c 	if ((ap->pflags & ATA_PFLAG_FROZEN) || ata_link_nr_enabled(link))
link             3587 drivers/ata/libata-eh.c 	ata_for_each_dev(dev, link, ALL) {
link             3612 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link             3613 drivers/ata/libata-eh.c 	struct ata_link *link = ata_dev_phys_link(dev);
link             3628 drivers/ata/libata-eh.c 	if (link->lpm_policy > ATA_LPM_MAX_POWER) {
link             3629 drivers/ata/libata-eh.c 		if (ata_is_host_link(link))
link             3630 drivers/ata/libata-eh.c 			link->ap->ops->set_lpm(link, ATA_LPM_MAX_POWER,
link             3633 drivers/ata/libata-eh.c 			sata_pmp_set_lpm(link, ATA_LPM_MAX_POWER,
link             3654 drivers/ata/libata-eh.c 		sata_down_spd_limit(link, 1);
link             3661 drivers/ata/libata-eh.c 	struct ata_eh_context *ehc = &dev->link->eh_context;
link             3738 drivers/ata/libata-eh.c 	struct ata_link *link;
link             3746 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, EDGE) {
link             3747 drivers/ata/libata-eh.c 		struct ata_eh_context *ehc = &link->eh_context;
link             3751 drivers/ata/libata-eh.c 			ata_eh_about_to_do(link, NULL, ATA_EH_ENABLE_LINK);
link             3753 drivers/ata/libata-eh.c 			link->flags &= ~ATA_LFLAG_DISABLED;
link             3755 drivers/ata/libata-eh.c 			ata_eh_done(link, NULL, ATA_EH_ENABLE_LINK);
link             3758 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, link, ALL) {
link             3759 drivers/ata/libata-eh.c 			if (link->flags & ATA_LFLAG_NO_RETRY)
link             3787 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, EDGE) {
link             3788 drivers/ata/libata-eh.c 		struct ata_eh_context *ehc = &link->eh_context;
link             3791 drivers/ata/libata-eh.c 		if (ata_eh_skip_recovery(link))
link             3794 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, link, ALL)
link             3799 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, EDGE) {
link             3800 drivers/ata/libata-eh.c 		struct ata_eh_context *ehc = &link->eh_context;
link             3805 drivers/ata/libata-eh.c 		rc = ata_eh_reset(link, ata_link_nr_vacant(link),
link             3808 drivers/ata/libata-eh.c 			ata_link_err(link, "reset failed, giving up\n");
link             3823 drivers/ata/libata-eh.c 		ata_for_each_link(link, ap, EDGE) {
link             3824 drivers/ata/libata-eh.c 			ata_for_each_dev(dev, link, ALL) {
link             3825 drivers/ata/libata-eh.c 				struct ata_eh_context *ehc = &link->eh_context;
link             3855 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, EDGE) {
link             3856 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, link, ALL) {
link             3857 drivers/ata/libata-eh.c 			if (!(link->eh_context.unloaded_mask &
link             3862 drivers/ata/libata-eh.c 			ata_eh_done(link, dev, ATA_EH_PARK);
link             3868 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, PMP_FIRST) {
link             3869 drivers/ata/libata-eh.c 		struct ata_eh_context *ehc = &link->eh_context;
link             3871 drivers/ata/libata-eh.c 		if (sata_pmp_attached(ap) && ata_is_host_link(link))
link             3875 drivers/ata/libata-eh.c 		rc = ata_eh_revalidate_and_attach(link, &dev);
link             3880 drivers/ata/libata-eh.c 		if (link->device->class == ATA_DEV_PMP) {
link             3887 drivers/ata/libata-eh.c 			rc = ata_set_mode(link, &dev);
link             3897 drivers/ata/libata-eh.c 			ata_for_each_dev(dev, link, ALL) {
link             3909 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, link, ALL) {
link             3920 drivers/ata/libata-eh.c 		if (link->lpm_policy != ap->target_lpm_policy) {
link             3921 drivers/ata/libata-eh.c 			rc = ata_eh_set_lpm(link, ap->target_lpm_policy, &dev);
link             3950 drivers/ata/libata-eh.c 		*r_failed_link = link;
link             4028 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, &ap->link, ALL)
link             4050 drivers/ata/libata-eh.c 	if (hardreset == sata_std_hardreset && !sata_scr_valid(&ap->link))
link             4089 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, &ap->link, ENABLED) {
link             4133 drivers/ata/libata-eh.c 	struct ata_link *link;
link             4155 drivers/ata/libata-eh.c 	ata_for_each_link(link, ap, HOST_FIRST)
link             4156 drivers/ata/libata-eh.c 		ata_for_each_dev(dev, link, ALL)
link               38 drivers/ata/libata-pmp.c static unsigned int sata_pmp_read(struct ata_link *link, int reg, u32 *r_val)
link               40 drivers/ata/libata-pmp.c 	struct ata_port *ap = link->ap;
link               41 drivers/ata/libata-pmp.c 	struct ata_device *pmp_dev = ap->link.device;
link               50 drivers/ata/libata-pmp.c 	tf.device = link->pmp;
link               75 drivers/ata/libata-pmp.c static unsigned int sata_pmp_write(struct ata_link *link, int reg, u32 val)
link               77 drivers/ata/libata-pmp.c 	struct ata_port *ap = link->ap;
link               78 drivers/ata/libata-pmp.c 	struct ata_device *pmp_dev = ap->link.device;
link               86 drivers/ata/libata-pmp.c 	tf.device = link->pmp;
link              111 drivers/ata/libata-pmp.c 	struct ata_link *link = qc->dev->link;
link              112 drivers/ata/libata-pmp.c 	struct ata_port *ap = link->ap;
link              114 drivers/ata/libata-pmp.c 	if (ap->excl_link == NULL || ap->excl_link == link) {
link              115 drivers/ata/libata-pmp.c 		if (ap->nr_active_links == 0 || ata_link_active(link)) {
link              120 drivers/ata/libata-pmp.c 		ap->excl_link = link;
link              141 drivers/ata/libata-pmp.c int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *r_val)
link              148 drivers/ata/libata-pmp.c 	err_mask = sata_pmp_read(link, reg, r_val);
link              150 drivers/ata/libata-pmp.c 		ata_link_warn(link, "failed to read SCR %d (Emask=0x%x)\n",
link              172 drivers/ata/libata-pmp.c int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val)
link              179 drivers/ata/libata-pmp.c 	err_mask = sata_pmp_write(link, reg, val);
link              181 drivers/ata/libata-pmp.c 		ata_link_warn(link, "failed to write SCR %d (Emask=0x%x)\n",
link              203 drivers/ata/libata-pmp.c int sata_pmp_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
link              206 drivers/ata/libata-pmp.c 	return sata_link_scr_lpm(link, policy, true);
link              232 drivers/ata/libata-pmp.c 		err_mask = sata_pmp_read(dev->link, reg, &gscr[reg]);
link              260 drivers/ata/libata-pmp.c 	struct ata_port *ap = dev->link->ap;
link              281 drivers/ata/libata-pmp.c 	err_mask = sata_pmp_write(dev->link, SATA_PMP_GSCR_ERROR_EN,
link              298 drivers/ata/libata-pmp.c 		err_mask = sata_pmp_read(&ap->link, PMP_GSCR_SII_POL, &reg);
link              305 drivers/ata/libata-pmp.c 		err_mask = sata_pmp_write(&ap->link, PMP_GSCR_SII_POL, reg);
link              361 drivers/ata/libata-pmp.c 		struct ata_link *link = &pmp_link[i];
link              362 drivers/ata/libata-pmp.c 		struct ata_eh_context *ehc = &link->eh_context;
link              364 drivers/ata/libata-pmp.c 		link->flags = 0;
link              380 drivers/ata/libata-pmp.c 	u32 *gscr = ap->link.device->gscr;
link              383 drivers/ata/libata-pmp.c 	struct ata_link *link;
link              387 drivers/ata/libata-pmp.c 		ata_for_each_link(link, ap, EDGE) {
link              389 drivers/ata/libata-pmp.c 			link->flags |= ATA_LFLAG_NO_LPM;
link              395 drivers/ata/libata-pmp.c 			if (link->pmp < 5)
link              396 drivers/ata/libata-pmp.c 				link->flags |= ATA_LFLAG_NO_SRST |
link              400 drivers/ata/libata-pmp.c 			if (link->pmp == 5)
link              401 drivers/ata/libata-pmp.c 				link->flags |= ATA_LFLAG_NO_SRST |
link              412 drivers/ata/libata-pmp.c 		ata_for_each_link(link, ap, EDGE)
link              413 drivers/ata/libata-pmp.c 			link->flags |= ATA_LFLAG_NO_LPM |
link              418 drivers/ata/libata-pmp.c 		ata_for_each_link(link, ap, EDGE) {
link              420 drivers/ata/libata-pmp.c 			link->flags |= ATA_LFLAG_NO_LPM;
link              427 drivers/ata/libata-pmp.c 			if (link->pmp <= 5)
link              428 drivers/ata/libata-pmp.c 				link->flags |= ATA_LFLAG_NO_SRST |
link              434 drivers/ata/libata-pmp.c 			if (link->pmp == 6)
link              435 drivers/ata/libata-pmp.c 				link->flags |= ATA_LFLAG_NO_SRST |
link              454 drivers/ata/libata-pmp.c 		ata_for_each_link(link, ap, EDGE) {
link              458 drivers/ata/libata-pmp.c 			link->flags |= ATA_LFLAG_NO_LPM |
link              464 drivers/ata/libata-pmp.c 		ata_for_each_link(link, ap, EDGE) {
link              466 drivers/ata/libata-pmp.c 			if (link->pmp == 4)
link              467 drivers/ata/libata-pmp.c 				link->flags |= ATA_LFLAG_DISABLED;
link              487 drivers/ata/libata-pmp.c 	struct ata_link *link = dev->link;
link              488 drivers/ata/libata-pmp.c 	struct ata_port *ap = link->ap;
link              499 drivers/ata/libata-pmp.c 	if (!ata_is_host_link(link)) {
link              509 drivers/ata/libata-pmp.c 	WARN_ON(link->pmp != 0);
link              510 drivers/ata/libata-pmp.c 	link->pmp = SATA_PMP_CTRL_PORT;
link              545 drivers/ata/libata-pmp.c 	link->pmp = 0;
link              561 drivers/ata/libata-pmp.c 	struct ata_link *link = dev->link;
link              562 drivers/ata/libata-pmp.c 	struct ata_port *ap = link->ap;
link              568 drivers/ata/libata-pmp.c 	WARN_ON(!ata_is_host_link(link) || dev->devno ||
link              569 drivers/ata/libata-pmp.c 		link->pmp != SATA_PMP_CTRL_PORT);
link              579 drivers/ata/libata-pmp.c 	link->pmp = 0;
link              650 drivers/ata/libata-pmp.c 	struct ata_link *link = dev->link;
link              651 drivers/ata/libata-pmp.c 	struct ata_port *ap = link->ap;
link              657 drivers/ata/libata-pmp.c 	ata_eh_about_to_do(link, NULL, ATA_EH_REVALIDATE);
link              687 drivers/ata/libata-pmp.c 	ata_eh_done(link, NULL, ATA_EH_REVALIDATE);
link              715 drivers/ata/libata-pmp.c 	err_mask = sata_pmp_read(dev->link, SATA_PMP_GSCR_PROD_ID, &prod_id);
link              755 drivers/ata/libata-pmp.c 	struct ata_link *link = &ap->link;
link              756 drivers/ata/libata-pmp.c 	struct ata_eh_context *ehc = &link->eh_context;
link              757 drivers/ata/libata-pmp.c 	struct ata_device *dev = link->device;
link              777 drivers/ata/libata-pmp.c 		rc = ata_eh_reset(link, 0, prereset, softreset, hardreset,
link              780 drivers/ata/libata-pmp.c 			ata_link_err(link, "failed to reset PMP, giving up\n");
link              814 drivers/ata/libata-pmp.c 				sata_down_spd_limit(link, 0);
link              847 drivers/ata/libata-pmp.c 	struct ata_link *link;
link              853 drivers/ata/libata-pmp.c 	ata_for_each_link(link, ap, EDGE) {
link              854 drivers/ata/libata-pmp.c 		if (!(link->flags & ATA_LFLAG_DISABLED))
link              862 drivers/ata/libata-pmp.c 		sata_link_hardreset(link, sata_deb_timing_normal,
link              867 drivers/ata/libata-pmp.c 		rc = sata_scr_write(link, SCR_ERROR, SERR_PHYRDY_CHG);
link              869 drivers/ata/libata-pmp.c 			ata_link_err(link,
link              883 drivers/ata/libata-pmp.c static int sata_pmp_handle_link_fail(struct ata_link *link, int *link_tries)
link              885 drivers/ata/libata-pmp.c 	struct ata_port *ap = link->ap;
link              888 drivers/ata/libata-pmp.c 	if (link_tries[link->pmp] && --link_tries[link->pmp])
link              892 drivers/ata/libata-pmp.c 	if (!(link->flags & ATA_LFLAG_DISABLED)) {
link              893 drivers/ata/libata-pmp.c 		ata_link_warn(link,
link              898 drivers/ata/libata-pmp.c 		link->flags |= ATA_LFLAG_DISABLED;
link              902 drivers/ata/libata-pmp.c 	ata_dev_disable(link->device);
link              903 drivers/ata/libata-pmp.c 	link->eh_context.i.action = 0;
link              927 drivers/ata/libata-pmp.c 	struct ata_link *pmp_link = &ap->link;
link              931 drivers/ata/libata-pmp.c 	struct ata_link *link;
link              938 drivers/ata/libata-pmp.c 	ata_for_each_link(link, ap, EDGE)
link              939 drivers/ata/libata-pmp.c 		link_tries[link->pmp] = ATA_EH_PMP_LINK_TRIES;
link              947 drivers/ata/libata-pmp.c 			ata_for_each_dev(dev, &ap->link, ALL)
link              956 drivers/ata/libata-pmp.c 		ata_for_each_link(link, ap, EDGE)
link              957 drivers/ata/libata-pmp.c 			link_tries[link->pmp] = ATA_EH_PMP_LINK_TRIES;
link              991 drivers/ata/libata-pmp.c 			    ops->pmp_hardreset, ops->pmp_postreset, &link);
link              996 drivers/ata/libata-pmp.c 	rc = sata_scr_read(&ap->link, SCR_NOTIFICATION, &sntf);
link              998 drivers/ata/libata-pmp.c 		sata_scr_write(&ap->link, SCR_NOTIFICATION, sntf);
link             1004 drivers/ata/libata-pmp.c 	ata_for_each_link(link, ap, EDGE)
link             1005 drivers/ata/libata-pmp.c 		if (link->lpm_policy > ATA_LPM_MAX_POWER)
link             1040 drivers/ata/libata-pmp.c 	ata_for_each_link(link, ap, EDGE) {
link             1041 drivers/ata/libata-pmp.c 		if (!(gscr_error & (1 << link->pmp)))
link             1044 drivers/ata/libata-pmp.c 		if (sata_pmp_handle_link_fail(link, link_tries)) {
link             1045 drivers/ata/libata-pmp.c 			ata_ehi_hotplugged(&link->eh_context.i);
link             1048 drivers/ata/libata-pmp.c 			ata_link_warn(link,
link             1050 drivers/ata/libata-pmp.c 			ata_link_warn(link,
link             1064 drivers/ata/libata-pmp.c 	if (sata_pmp_handle_link_fail(link, link_tries)) {
link              107 drivers/ata/libata-scsi.c 	struct ata_link *link;
link              125 drivers/ata/libata-scsi.c 	ata_for_each_link(link, ap, EDGE) {
link              126 drivers/ata/libata-scsi.c 		ata_for_each_dev(dev, &ap->link, ENABLED) {
link              162 drivers/ata/libata-scsi.c 	struct ata_link *link;
link              181 drivers/ata/libata-scsi.c 	link = dev->link;
link              184 drivers/ata/libata-scsi.c 	    link->eh_context.unloaded_mask & (1 << dev->devno) &&
link              238 drivers/ata/libata-scsi.c 		dev->link->eh_info.dev_action[dev->devno] |= ATA_EH_PARK;
link              314 drivers/ata/libata-scsi.c 	dev->link->eh_info.action |= ATA_EH_REVALIDATE;
link              315 drivers/ata/libata-scsi.c 	dev->link->eh_info.flags |= ATA_EHI_QUIET;
link              523 drivers/ata/libata-scsi.c 		dev->link->eh_info.action |= ATA_EH_RESET;
link             1992 drivers/ata/libata-scsi.c 	struct ata_port *ap = dev->link->ap;
link             2192 drivers/ata/libata-scsi.c 	    (args->dev->link->ap->pflags & ATA_PFLAG_EXTERNAL))
link             3037 drivers/ata/libata-scsi.c 			   devno < ata_link_max_devices(&ap->link)))
link             3038 drivers/ata/libata-scsi.c 			return &ap->link.device[devno];
link             4577 drivers/ata/libata-scsi.c 	struct ata_link *link;
link             4581 drivers/ata/libata-scsi.c 	ata_for_each_link(link, ap, EDGE) {
link             4582 drivers/ata/libata-scsi.c 		ata_for_each_dev(dev, link, ENABLED) {
link             4589 drivers/ata/libata-scsi.c 			if (ata_is_host_link(link))
link             4592 drivers/ata/libata-scsi.c 				channel = link->pmp;
link             4609 drivers/ata/libata-scsi.c 	ata_for_each_link(link, ap, EDGE) {
link             4610 drivers/ata/libata-scsi.c 		ata_for_each_dev(dev, link, ENABLED) {
link             4616 drivers/ata/libata-scsi.c 	if (!link)
link             4682 drivers/ata/libata-scsi.c 	struct ata_port *ap = dev->link->ap;
link             4729 drivers/ata/libata-scsi.c static void ata_scsi_handle_link_detach(struct ata_link *link)
link             4731 drivers/ata/libata-scsi.c 	struct ata_port *ap = link->ap;
link             4734 drivers/ata/libata-scsi.c 	ata_for_each_dev(dev, link, ALL) {
link             4798 drivers/ata/libata-scsi.c 	ata_scsi_handle_link_detach(&ap->link);
link             4852 drivers/ata/libata-scsi.c 		struct ata_link *link;
link             4854 drivers/ata/libata-scsi.c 		ata_for_each_link(link, ap, EDGE) {
link             4855 drivers/ata/libata-scsi.c 			struct ata_eh_info *ehi = &link->eh_info;
link             4863 drivers/ata/libata-scsi.c 			struct ata_eh_info *ehi = &dev->link->eh_info;
link             4894 drivers/ata/libata-scsi.c 	struct ata_link *link;
link             4901 drivers/ata/libata-scsi.c 	ata_for_each_link(link, ap, EDGE) {
link             4902 drivers/ata/libata-scsi.c 		ata_for_each_dev(dev, link, ENABLED) {
link             5076 drivers/ata/libata-scsi.c 	ata_scsi_dev_config(sdev, ap->link.device);
link             5097 drivers/ata/libata-scsi.c 	if (likely(ata_dev_enabled(ap->link.device)))
link             5098 drivers/ata/libata-scsi.c 		rc = __ata_scsi_queuecmd(cmd, ap->link.device);
link              240 drivers/ata/libata-sff.c static int ata_sff_check_ready(struct ata_link *link)
link              242 drivers/ata/libata-sff.c 	u8 status = link->ap->ops->sff_check_status(link->ap);
link              261 drivers/ata/libata-sff.c int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline)
link              263 drivers/ata/libata-sff.c 	return ata_wait_ready(link, deadline, ata_sff_check_ready);
link              347 drivers/ata/libata-sff.c 		if (can_sleep && ap->link.device[device].class == ATA_DEV_ATAPI)
link              545 drivers/ata/libata-sff.c 	struct ata_port *ap = qc->dev->link->ap;
link              601 drivers/ata/libata-sff.c 	struct ata_port *ap = dev->link->ap;
link              780 drivers/ata/libata-sff.c 	struct ata_eh_info *ehi = &dev->link->eh_info;
link              848 drivers/ata/libata-sff.c 	struct ata_eh_info *ehi = &dev->link->eh_info;
link              975 drivers/ata/libata-sff.c 	struct ata_link *link = qc->dev->link;
link              976 drivers/ata/libata-sff.c 	struct ata_eh_info *ehi = &link->eh_info;
link             1235 drivers/ata/libata-sff.c void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay)
link             1237 drivers/ata/libata-sff.c 	struct ata_port *ap = link->ap;
link             1240 drivers/ata/libata-sff.c 		(ap->sff_pio_task_link != link));
link             1241 drivers/ata/libata-sff.c 	ap->sff_pio_task_link = link;
link             1276 drivers/ata/libata-sff.c 	struct ata_link *link = ap->sff_pio_task_link;
link             1285 drivers/ata/libata-sff.c 	qc = ata_qc_from_tag(ap, link->active_tag);
link             1309 drivers/ata/libata-sff.c 			ata_sff_queue_pio_task(link, ATA_SHORT_PAUSE);
link             1347 drivers/ata/libata-sff.c 	struct ata_link *link = qc->dev->link;
link             1368 drivers/ata/libata-sff.c 			ata_sff_queue_pio_task(link, 0);
link             1381 drivers/ata/libata-sff.c 			ata_sff_queue_pio_task(link, 0);
link             1391 drivers/ata/libata-sff.c 				ata_sff_queue_pio_task(link, 0);
link             1413 drivers/ata/libata-sff.c 			ata_sff_queue_pio_task(link, 0);
link             1546 drivers/ata/libata-sff.c 		qc = ata_qc_from_tag(ap, ap->link.active_tag);
link             1639 drivers/ata/libata-sff.c 	qc = ata_qc_from_tag(ap, ap->link.active_tag);
link             1721 drivers/ata/libata-sff.c int ata_sff_prereset(struct ata_link *link, unsigned long deadline)
link             1723 drivers/ata/libata-sff.c 	struct ata_eh_context *ehc = &link->eh_context;
link             1726 drivers/ata/libata-sff.c 	rc = ata_std_prereset(link, deadline);
link             1735 drivers/ata/libata-sff.c 	if (!ata_link_offline(link)) {
link             1736 drivers/ata/libata-sff.c 		rc = ata_sff_wait_ready(link, deadline);
link             1738 drivers/ata/libata-sff.c 			ata_link_warn(link,
link             1815 drivers/ata/libata-sff.c 	struct ata_port *ap = dev->link->ap;
link             1879 drivers/ata/libata-sff.c int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask,
link             1882 drivers/ata/libata-sff.c 	struct ata_port *ap = link->ap;
link             1891 drivers/ata/libata-sff.c 	rc = ata_sff_wait_ready(link, deadline);
link             1920 drivers/ata/libata-sff.c 		rc = ata_sff_wait_ready(link, deadline);
link             1957 drivers/ata/libata-sff.c 	return ata_sff_wait_after_reset(&ap->link, devmask, deadline);
link             1974 drivers/ata/libata-sff.c int ata_sff_softreset(struct ata_link *link, unsigned int *classes,
link             1977 drivers/ata/libata-sff.c 	struct ata_port *ap = link->ap;
link             1998 drivers/ata/libata-sff.c 	if (rc && (rc != -ENODEV || sata_scr_valid(link))) {
link             1999 drivers/ata/libata-sff.c 		ata_link_err(link, "SRST failed (errno=%d)\n", rc);
link             2004 drivers/ata/libata-sff.c 	classes[0] = ata_sff_dev_classify(&link->device[0],
link             2007 drivers/ata/libata-sff.c 		classes[1] = ata_sff_dev_classify(&link->device[1],
link             2030 drivers/ata/libata-sff.c int sata_sff_hardreset(struct ata_link *link, unsigned int *class,
link             2033 drivers/ata/libata-sff.c 	struct ata_eh_context *ehc = &link->eh_context;
link             2038 drivers/ata/libata-sff.c 	rc = sata_link_hardreset(link, timing, deadline, &online,
link             2041 drivers/ata/libata-sff.c 		*class = ata_sff_dev_classify(link->device, 1, NULL);
link             2060 drivers/ata/libata-sff.c void ata_sff_postreset(struct ata_link *link, unsigned int *classes)
link             2062 drivers/ata/libata-sff.c 	struct ata_port *ap = link->ap;
link             2064 drivers/ata/libata-sff.c 	ata_std_postreset(link, classes);
link             2137 drivers/ata/libata-sff.c 	qc = __ata_qc_from_tag(ap, ap->link.active_tag);
link             2157 drivers/ata/libata-sff.c 	     hardreset == sata_sff_hardreset) && !sata_scr_valid(&ap->link))
link             2726 drivers/ata/libata-sff.c 	struct ata_link *link = qc->dev->link;
link             2755 drivers/ata/libata-sff.c 			ata_sff_queue_pio_task(link, 0);
link             2782 drivers/ata/libata-sff.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link             2854 drivers/ata/libata-sff.c 	qc = __ata_qc_from_tag(ap, ap->link.active_tag);
link              261 drivers/ata/libata-transport.c 	ata_tlink_delete(&ap->link);
link              307 drivers/ata/libata-transport.c 	error = ata_tlink_add(&ap->link);
link              335 drivers/ata/libata-transport.c 	struct ata_link *link = transport_class_to_link(dev);		\
link              337 drivers/ata/libata-transport.c 	return sprintf(buf, "%s\n", sata_spd_string(format(link->field))); \
link              383 drivers/ata/libata-transport.c void ata_tlink_delete(struct ata_link *link)
link              385 drivers/ata/libata-transport.c 	struct device *dev = &link->tdev;
link              388 drivers/ata/libata-transport.c 	ata_for_each_dev(ata_dev, link, ALL) {
link              407 drivers/ata/libata-transport.c int ata_tlink_add(struct ata_link *link)
link              409 drivers/ata/libata-transport.c 	struct device *dev = &link->tdev;
link              410 drivers/ata/libata-transport.c 	struct ata_port *ap = link->ap;
link              417 drivers/ata/libata-transport.c 	if (ata_is_host_link(link))
link              420 drivers/ata/libata-transport.c 		dev_set_name(dev, "link%d.%d", ap->print_id, link->pmp);
link              432 drivers/ata/libata-transport.c 	ata_for_each_dev(ata_dev, link, ALL) {
link              440 drivers/ata/libata-transport.c 	while (--ata_dev >= link->device) {
link              661 drivers/ata/libata-transport.c 	struct ata_link *link = ata_dev->link;
link              662 drivers/ata/libata-transport.c 	struct ata_port *ap = link->ap;
link              666 drivers/ata/libata-transport.c 	dev->parent = &link->tdev;
link              668 drivers/ata/libata-transport.c 	if (ata_is_host_link(link))
link              671 drivers/ata/libata-transport.c 		dev_set_name(dev, "dev%d.%d.0", ap->print_id, link->pmp);
link                8 drivers/ata/libata-transport.h int ata_tlink_add(struct ata_link *link);
link                9 drivers/ata/libata-transport.h void ata_tlink_delete(struct ata_link *link);
link              115 drivers/ata/libata-zpodd.c 	sense_buf = dev->link->ap->sector_buf;
link               57 drivers/ata/libata.h extern int ata_wait_ready(struct ata_link *link, unsigned long deadline,
link               58 drivers/ata/libata.h 			  int (*check_ready)(struct ata_link *link));
link               65 drivers/ata/libata.h extern int sata_down_spd_limit(struct ata_link *link, u32 spd_limit);
link               74 drivers/ata/libata.h extern bool ata_phys_link_online(struct ata_link *link);
link               75 drivers/ata/libata.h extern bool ata_phys_link_offline(struct ata_link *link);
link               77 drivers/ata/libata.h extern void ata_link_init(struct ata_port *ap, struct ata_link *link, int pmp);
link               78 drivers/ata/libata.h extern int sata_link_init_spd(struct ata_link *link);
link              145 drivers/ata/libata.h extern void ata_eh_about_to_do(struct ata_link *link, struct ata_device *dev,
link              147 drivers/ata/libata.h extern void ata_eh_done(struct ata_link *link, struct ata_device *dev,
link              152 drivers/ata/libata.h extern int ata_eh_reset(struct ata_link *link, int classify,
link              155 drivers/ata/libata.h extern int ata_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);
link              170 drivers/ata/libata.h extern int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val);
link              171 drivers/ata/libata.h extern int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val);
link              172 drivers/ata/libata.h extern int sata_pmp_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
link              176 drivers/ata/libata.h static inline int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val)
link              181 drivers/ata/libata.h static inline int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val)
link              186 drivers/ata/libata.h static inline int sata_pmp_set_lpm(struct ata_link *link,
link               37 drivers/ata/pata_acpi.c static int pacpi_pre_reset(struct ata_link *link, unsigned long deadline)
link               39 drivers/ata/pata_acpi.c 	struct ata_port *ap = link->ap;
link               44 drivers/ata/pata_acpi.c 	return ata_sff_prereset(link, deadline);
link              102 drivers/ata/pata_acpi.c 	struct pata_acpi *acpi = adev->link->ap->private_data;
link              203 drivers/ata/pata_acpi.c 	acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]);
link              204 drivers/ata/pata_acpi.c 	acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]);
link              286 drivers/ata/pata_ali.c 	struct ata_eh_context *ehc = &adev->link->eh_context;
link              341 drivers/ata/pata_ali.c static void ali_c2_c3_postreset(struct ata_link *link, unsigned int *classes)
link              344 drivers/ata/pata_ali.c 	int port_bit = 4 << link->ap->port_no;
link              355 drivers/ata/pata_ali.c 	ata_sff_postreset(link, classes);
link              132 drivers/ata/pata_amd.c static int amd_pre_reset(struct ata_link *link, unsigned long deadline)
link              139 drivers/ata/pata_amd.c 	struct ata_port *ap = link->ap;
link              145 drivers/ata/pata_amd.c 	return ata_sff_prereset(link, deadline);
link              187 drivers/ata/pata_amd.c 	ata_for_each_dev(adev, &ap->link, ENABLED) {
link              274 drivers/ata/pata_amd.c 	struct ata_port *ap = dev->link->ap;
link              330 drivers/ata/pata_amd.c static int nv_pre_reset(struct ata_link *link, unsigned long deadline)
link              337 drivers/ata/pata_amd.c 	struct ata_port *ap = link->ap;
link              343 drivers/ata/pata_amd.c 	return ata_sff_prereset(link, deadline);
link              285 drivers/ata/pata_arasan_cf.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link              374 drivers/ata/pata_arasan_cf.c 		ata_ehi_push_desc(&qc->ap->link.eh_info, "DMA Failed: Timeout");
link               50 drivers/ata/pata_artop.c static int artop62x0_pre_reset(struct ata_link *link, unsigned long deadline)
link               57 drivers/ata/pata_artop.c 	struct ata_port *ap = link->ap;
link               65 drivers/ata/pata_artop.c 	return ata_sff_prereset(link, deadline);
link               76 drivers/ata/pata_atiixp.c static int atiixp_prereset(struct ata_link *link, unsigned long deadline)
link               83 drivers/ata/pata_atiixp.c 	struct ata_port *ap = link->ap;
link               89 drivers/ata/pata_atiixp.c 	return ata_sff_prereset(link, deadline);
link               70 drivers/ata/pata_buddha.c 	struct ata_port *ap = dev->link->ap;
link              104 drivers/ata/pata_buddha.c static int pata_buddha_set_mode(struct ata_link *link,
link              109 drivers/ata/pata_buddha.c 	ata_for_each_dev(dev, link, ENABLED) {
link              110 drivers/ata/pata_cs5536.c 	struct pci_dev *pdev = to_pci_dev(adev->link->ap->host->dev);
link               37 drivers/ata/pata_efar.c static int efar_pre_reset(struct ata_link *link, unsigned long deadline)
link               43 drivers/ata/pata_efar.c 	struct ata_port *ap = link->ap;
link               49 drivers/ata/pata_efar.c 	return ata_sff_prereset(link, deadline);
link              482 drivers/ata/pata_ep93xx.c 	struct ata_port *ap = qc->dev->link->ap;
link              547 drivers/ata/pata_ep93xx.c static int ep93xx_pata_wait_after_reset(struct ata_link *link,
link              551 drivers/ata/pata_ep93xx.c 	struct ata_port *ap = link->ap;
link              560 drivers/ata/pata_ep93xx.c 	rc = ata_sff_wait_ready(link, deadline);
link              594 drivers/ata/pata_ep93xx.c 		rc = ata_sff_wait_ready(link, deadline);
link              624 drivers/ata/pata_ep93xx.c 	return ep93xx_pata_wait_after_reset(&ap->link, devmask, deadline);
link               48 drivers/ata/pata_falcon.c 	struct ata_port *ap = dev->link->ap;
link              101 drivers/ata/pata_falcon.c static int pata_falcon_set_mode(struct ata_link *link,
link              106 drivers/ata/pata_falcon.c 	ata_for_each_dev(dev, link, ENABLED) {
link               48 drivers/ata/pata_gayle.c 	struct ata_port *ap = dev->link->ap;
link               82 drivers/ata/pata_gayle.c static int pata_gayle_set_mode(struct ata_link *link,
link               87 drivers/ata/pata_gayle.c 	ata_for_each_dev(dev, link, ENABLED) {
link              389 drivers/ata/pata_hpt37x.c static int hpt37x_pre_reset(struct ata_link *link, unsigned long deadline)
link              391 drivers/ata/pata_hpt37x.c 	struct ata_port *ap = link->ap;
link              405 drivers/ata/pata_hpt37x.c 	return ata_sff_prereset(link, deadline);
link              170 drivers/ata/pata_hpt3x2n.c static int hpt3x2n_pre_reset(struct ata_link *link, unsigned long deadline)
link              172 drivers/ata/pata_hpt3x2n.c 	struct ata_port *ap = link->ap;
link              179 drivers/ata/pata_hpt3x2n.c 	return ata_sff_prereset(link, deadline);
link              302 drivers/ata/pata_icside.c static void pata_icside_postreset(struct ata_link *link, unsigned int *classes)
link              304 drivers/ata/pata_icside.c 	struct ata_port *ap = link->ap;
link              308 drivers/ata/pata_icside.c 		return ata_sff_postreset(link, classes);
link               33 drivers/ata/pata_it8213.c static int it8213_pre_reset(struct ata_link *link, unsigned long deadline)
link               38 drivers/ata/pata_it8213.c 	struct ata_port *ap = link->ap;
link               43 drivers/ata/pata_it8213.c 	return ata_sff_prereset(link, deadline);
link              394 drivers/ata/pata_it821x.c 		struct ata_device *adev = &ap->link.device[device];
link              464 drivers/ata/pata_it821x.c static int it821x_smart_set_mode(struct ata_link *link, struct ata_device **unused)
link              468 drivers/ata/pata_it821x.c 	ata_for_each_dev(dev, link, ENABLED) {
link               25 drivers/ata/pata_ixp4xx_cf.c static int ixp4xx_set_mode(struct ata_link *link, struct ata_device **error)
link               29 drivers/ata/pata_ixp4xx_cf.c 	ata_for_each_dev(dev, link, ENABLED) {
link               45 drivers/ata/pata_ixp4xx_cf.c 	struct ata_port *ap = qc->dev->link->ap;
link               42 drivers/ata/pata_jmicron.c static int jmicron_pre_reset(struct ata_link *link, unsigned long deadline)
link               44 drivers/ata/pata_jmicron.c 	struct ata_port *ap = link->ap;
link              105 drivers/ata/pata_jmicron.c 	return ata_sff_prereset(link, deadline);
link              202 drivers/ata/pata_legacy.c static int legacy_set_mode(struct ata_link *link, struct ata_device **unused)
link              206 drivers/ata/pata_legacy.c 	ata_for_each_dev(dev, link, ENABLED) {
link              296 drivers/ata/pata_legacy.c 	struct ata_port *ap = dev->link->ap;
link              697 drivers/ata/pata_legacy.c 	struct ata_port *ap = adev->link->ap;
link              996 drivers/ata/pata_legacy.c 	ata_for_each_dev(dev, &ap->link, ALL) {
link              811 drivers/ata/pata_macio.c 	dev = &ap->link.device[sdev->id];
link             1238 drivers/ata/pata_macio.c 	ehi = &ap->link.eh_info;
link             1245 drivers/ata/pata_macio.c 		ata_for_each_dev(dev, &ap->link, ALL)
link               68 drivers/ata/pata_marvell.c static int marvell_pre_reset(struct ata_link *link, unsigned long deadline)
link               70 drivers/ata/pata_marvell.c 	struct ata_port *ap = link->ap;
link               77 drivers/ata/pata_marvell.c 	return ata_sff_prereset(link, deadline);
link               49 drivers/ata/pata_mpiix.c static int mpiix_pre_reset(struct ata_link *link, unsigned long deadline)
link               51 drivers/ata/pata_mpiix.c 	struct ata_port *ap = link->ap;
link               58 drivers/ata/pata_mpiix.c 	return ata_sff_prereset(link, deadline);
link               72 drivers/ata/pata_ninja32.c 	struct ata_device *adev = &ap->link.device[device];
link               26 drivers/ata/pata_ns87410.c static int ns87410_pre_reset(struct ata_link *link, unsigned long deadline)
link               28 drivers/ata/pata_ns87410.c 	struct ata_port *ap = link->ap;
link               38 drivers/ata/pata_ns87410.c 	return ata_sff_prereset(link, deadline);
link              298 drivers/ata/pata_octeon_cf.c 	struct ata_port *ap		= qc->dev->link->ap;
link              337 drivers/ata/pata_octeon_cf.c 	struct ata_port *ap		= qc->dev->link->ap;
link              435 drivers/ata/pata_octeon_cf.c static int octeon_cf_softreset16(struct ata_link *link, unsigned int *classes,
link              438 drivers/ata/pata_octeon_cf.c 	struct ata_port *ap = link->ap;
link              450 drivers/ata/pata_octeon_cf.c 	rc = ata_sff_wait_after_reset(link, 1, deadline);
link              452 drivers/ata/pata_octeon_cf.c 		ata_link_err(link, "SRST failed (errno=%d)\n", rc);
link              457 drivers/ata/pata_octeon_cf.c 	classes[0] = ata_sff_dev_classify(&link->device[0], 1, &err);
link              624 drivers/ata/pata_octeon_cf.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link              695 drivers/ata/pata_octeon_cf.c 		qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              769 drivers/ata/pata_octeon_cf.c 	qc = ata_qc_from_tag(ap, ap->link.active_tag);
link               38 drivers/ata/pata_oldpiix.c static int oldpiix_pre_reset(struct ata_link *link, unsigned long deadline)
link               40 drivers/ata/pata_oldpiix.c 	struct ata_port *ap = link->ap;
link               50 drivers/ata/pata_oldpiix.c 	return ata_sff_prereset(link, deadline);
link               54 drivers/ata/pata_opti.c static int opti_pre_reset(struct ata_link *link, unsigned long deadline)
link               56 drivers/ata/pata_opti.c 	struct ata_port *ap = link->ap;
link               66 drivers/ata/pata_opti.c 	return ata_sff_prereset(link, deadline);
link               55 drivers/ata/pata_optidma.c static int optidma_pre_reset(struct ata_link *link, unsigned long deadline)
link               57 drivers/ata/pata_optidma.c 	struct ata_port *ap = link->ap;
link               66 drivers/ata/pata_optidma.c 	return ata_sff_prereset(link, deadline);
link              318 drivers/ata/pata_optidma.c static int optidma_set_mode(struct ata_link *link, struct ata_device **r_failed)
link              320 drivers/ata/pata_optidma.c 	struct ata_port *ap = link->ap;
link              324 drivers/ata/pata_optidma.c 	int rc  = ata_do_set_mode(link, r_failed);
link              329 drivers/ata/pata_optidma.c 		r |= (optidma_make_bits43(&link->device[0]) +
link              330 drivers/ata/pata_optidma.c 		     (optidma_make_bits43(&link->device[0]) << 2)) << nybble;
link               43 drivers/ata/pata_pcmcia.c static int pcmcia_set_mode(struct ata_link *link, struct ata_device **r_failed_dev)
link               45 drivers/ata/pata_pcmcia.c 	struct ata_device *master = &link->device[0];
link               46 drivers/ata/pata_pcmcia.c 	struct ata_device *slave = &link->device[1];
link               49 drivers/ata/pata_pcmcia.c 		return ata_do_set_mode(link, r_failed_dev);
link               61 drivers/ata/pata_pcmcia.c 	return ata_do_set_mode(link, r_failed_dev);
link               72 drivers/ata/pata_pcmcia.c static int pcmcia_set_mode_8bit(struct ata_link *link,
link               94 drivers/ata/pata_pcmcia.c 	struct ata_port *ap = qc->dev->link->ap;
link               63 drivers/ata/pata_pdc2027x.c static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline);
link               69 drivers/ata/pata_pdc2027x.c static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed);
link              245 drivers/ata/pata_pdc2027x.c static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline)
link              248 drivers/ata/pata_pdc2027x.c 	if (!pdc2027x_port_enabled(link->ap))
link              250 drivers/ata/pata_pdc2027x.c 	return ata_sff_prereset(link, deadline);
link              396 drivers/ata/pata_pdc2027x.c static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed)
link              398 drivers/ata/pata_pdc2027x.c 	struct ata_port *ap = link->ap;
link              402 drivers/ata/pata_pdc2027x.c 	rc = ata_do_set_mode(link, r_failed);
link              406 drivers/ata/pata_pdc2027x.c 	ata_for_each_dev(dev, link, ENABLED) {
link               32 drivers/ata/pata_platform.c static int pata_platform_set_mode(struct ata_link *link, struct ata_device **unused)
link               36 drivers/ata/pata_platform.c 	ata_for_each_dev(dev, link, ENABLED) {
link               60 drivers/ata/pata_rdc.c static int rdc_pata_prereset(struct ata_link *link, unsigned long deadline)
link               62 drivers/ata/pata_rdc.c 	struct ata_port *ap = link->ap;
link               72 drivers/ata/pata_rdc.c 	return ata_sff_prereset(link, deadline);
link               37 drivers/ata/pata_rz1000.c static int rz1000_set_mode(struct ata_link *link, struct ata_device **unused)
link               41 drivers/ata/pata_rz1000.c 	ata_for_each_dev(dev, link, ENABLED) {
link              267 drivers/ata/pata_samsung_cf.c 	struct ata_port *ap = qc->dev->link->ap;
link              340 drivers/ata/pata_samsung_cf.c static int pata_s3c_wait_after_reset(struct ata_link *link,
link              345 drivers/ata/pata_samsung_cf.c 	ata_msleep(link->ap, ATA_WAIT_AFTER_RESET);
link              348 drivers/ata/pata_samsung_cf.c 	rc = ata_sff_wait_ready(link, deadline);
link              374 drivers/ata/pata_samsung_cf.c 	return pata_s3c_wait_after_reset(&ap->link, deadline);
link              380 drivers/ata/pata_samsung_cf.c static int pata_s3c_softreset(struct ata_link *link, unsigned int *classes,
link              383 drivers/ata/pata_samsung_cf.c 	struct ata_port *ap = link->ap;
link              399 drivers/ata/pata_samsung_cf.c 		ata_link_err(link, "SRST failed (errno=%d)\n", rc);
link              404 drivers/ata/pata_samsung_cf.c 	classes[0] = ata_sff_dev_classify(&ap->link.device[0],
link               88 drivers/ata/pata_sis.c 	return 0x40 + (4 * adev->link->ap->port_no) + (2 * adev->devno);
link              101 drivers/ata/pata_sis.c 	struct ata_port *ap = adev->link->ap;
link              165 drivers/ata/pata_sis.c static int sis_pre_reset(struct ata_link *link, unsigned long deadline)
link              172 drivers/ata/pata_sis.c 	struct ata_port *ap = link->ap;
link              181 drivers/ata/pata_sis.c 	return ata_sff_prereset(link, deadline);
link              530 drivers/ata/pata_sis.c 	struct ata_port *ap = adev->link->ap;
link               52 drivers/ata/pata_sl82c105.c static int sl82c105_pre_reset(struct ata_link *link, unsigned long deadline)
link               58 drivers/ata/pata_sl82c105.c 	struct ata_port *ap = link->ap;
link               63 drivers/ata/pata_sl82c105.c 	return ata_sff_prereset(link, deadline);
link               43 drivers/ata/pata_triflex.c static int triflex_prereset(struct ata_link *link, unsigned long deadline)
link               50 drivers/ata/pata_triflex.c 	struct ata_port *ap = link->ap;
link               56 drivers/ata/pata_triflex.c 	return ata_sff_prereset(link, deadline);
link              211 drivers/ata/pata_via.c static int via_pre_reset(struct ata_link *link, unsigned long deadline)
link              213 drivers/ata/pata_via.c 	struct ata_port *ap = link->ap;
link              226 drivers/ata/pata_via.c 	return ata_sff_prereset(link, deadline);
link              357 drivers/ata/pata_via.c 	struct ata_host *host = dev->link->ap->host;
link              124 drivers/ata/pdc_adma.c static int adma_prereset(struct ata_link *link, unsigned long deadline);
link              244 drivers/ata/pdc_adma.c static int adma_prereset(struct ata_link *link, unsigned long deadline)
link              246 drivers/ata/pdc_adma.c 	struct ata_port *ap = link->ap;
link              253 drivers/ata/pdc_adma.c 	return ata_sff_prereset(link, deadline);
link              427 drivers/ata/pdc_adma.c 		qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              442 drivers/ata/pdc_adma.c 				struct ata_eh_info *ehi = &ap->link.eh_info;
link              470 drivers/ata/pdc_adma.c 		qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              486 drivers/ata/pdc_adma.c 				struct ata_eh_info *ehi = &ap->link.eh_info;
link              342 drivers/ata/sata_dwc_460ex.c 	tag = ap->link.active_tag;
link              404 drivers/ata/sata_dwc_460ex.c static int sata_dwc_scr_read(struct ata_link *link, unsigned int scr, u32 *val)
link              407 drivers/ata/sata_dwc_460ex.c 		dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n",
link              412 drivers/ata/sata_dwc_460ex.c 	*val = sata_dwc_readl(link->ap->ioaddr.scr_addr + (scr * 4));
link              413 drivers/ata/sata_dwc_460ex.c 	dev_dbg(link->ap->dev, "%s: id=%d reg=%d val=0x%08x\n", __func__,
link              414 drivers/ata/sata_dwc_460ex.c 		link->ap->print_id, scr, *val);
link              419 drivers/ata/sata_dwc_460ex.c static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val)
link              421 drivers/ata/sata_dwc_460ex.c 	dev_dbg(link->ap->dev, "%s: id=%d reg=%d val=0x%08x\n", __func__,
link              422 drivers/ata/sata_dwc_460ex.c 		link->ap->print_id, scr, val);
link              424 drivers/ata/sata_dwc_460ex.c 		dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n",
link              428 drivers/ata/sata_dwc_460ex.c 	sata_dwc_writel(link->ap->ioaddr.scr_addr + (scr * 4), val);
link              436 drivers/ata/sata_dwc_460ex.c 	sata_dwc_scr_read(&ap->link, SCR_ERROR, &val);
link              437 drivers/ata/sata_dwc_460ex.c 	sata_dwc_scr_write(&ap->link, SCR_ERROR, val);
link              456 drivers/ata/sata_dwc_460ex.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link              464 drivers/ata/sata_dwc_460ex.c 	sata_dwc_scr_read(&ap->link, SCR_ERROR, &serror);
link              467 drivers/ata/sata_dwc_460ex.c 	tag = ap->link.active_tag;
link              525 drivers/ata/sata_dwc_460ex.c 		ap->link.active_tag);
link              551 drivers/ata/sata_dwc_460ex.c 		qc->ap->link.active_tag = tag;
link              557 drivers/ata/sata_dwc_460ex.c 	sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive);
link              562 drivers/ata/sata_dwc_460ex.c 		if (ap->link.active_tag == ATA_TAG_POISON)
link              565 drivers/ata/sata_dwc_460ex.c 			tag = ap->link.active_tag;
link              579 drivers/ata/sata_dwc_460ex.c 		qc->ap->link.active_tag = tag;
link              631 drivers/ata/sata_dwc_460ex.c 	sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive);
link              663 drivers/ata/sata_dwc_460ex.c 		qc->ap->link.active_tag = tag;
link              705 drivers/ata/sata_dwc_460ex.c 	sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive2);
link              749 drivers/ata/sata_dwc_460ex.c 	tag = ap->link.active_tag;
link              777 drivers/ata/sata_dwc_460ex.c 		ap->link.active_tag = ATA_TAG_POISON;
link             1000 drivers/ata/sata_dwc_460ex.c 			__func__, qc->ap->link.sactive, tag);
link             1037 drivers/ata/sata_dwc_460ex.c 		sata_dwc_scr_read(&ap->link, SCR_ERROR, &reg);
link             1062 drivers/ata/sata_dwc_460ex.c 			__func__, qc->ap->link.sactive, tag);
link             1078 drivers/ata/sata_dwc_460ex.c 	if (qc->hw_tag > 0 || ap->link.sactive > 1)
link             1084 drivers/ata/sata_dwc_460ex.c 			 ap->link.active_tag, ap->link.sactive);
link             1099 drivers/ata/sata_dwc_460ex.c 		sata_dwc_scr_read(&ap->link, SCR_ACTIVE, &sactive);
link             1101 drivers/ata/sata_dwc_460ex.c 		sata_dwc_scr_write(&ap->link, SCR_ACTIVE, sactive);
link             1105 drivers/ata/sata_dwc_460ex.c 			__func__, tag, qc->ap->link.sactive, sactive);
link             1121 drivers/ata/sata_dwc_460ex.c static int sata_dwc_hardreset(struct ata_link *link, unsigned int *class,
link             1124 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap);
link             1127 drivers/ata/sata_dwc_460ex.c 	ret = sata_sff_hardreset(link, class, deadline);
link              521 drivers/ata/sata_fsl.c 	ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *) &cd->cfis);
link              565 drivers/ata/sata_fsl.c 	iowrite32(qc->dev->link->pmp, CQPMP + hcr_base);
link              596 drivers/ata/sata_fsl.c static int sata_fsl_scr_write(struct ata_link *link,
link              599 drivers/ata/sata_fsl.c 	struct sata_fsl_host_priv *host_priv = link->ap->host->private_data;
link              620 drivers/ata/sata_fsl.c static int sata_fsl_scr_read(struct ata_link *link,
link              623 drivers/ata/sata_fsl.c 	struct sata_fsl_host_priv *host_priv = link->ap->host->private_data;
link              816 drivers/ata/sata_fsl.c static int sata_fsl_hardreset(struct ata_link *link, unsigned int *class,
link              819 drivers/ata/sata_fsl.c 	struct ata_port *ap = link->ap;
link              862 drivers/ata/sata_fsl.c 	sata_set_spd(link);
link              894 drivers/ata/sata_fsl.c 	if ((!(temp & 0x10)) || ata_link_offline(link)) {
link              929 drivers/ata/sata_fsl.c static int sata_fsl_softreset(struct ata_link *link, unsigned int *class,
link              932 drivers/ata/sata_fsl.c 	struct ata_port *ap = link->ap;
link              936 drivers/ata/sata_fsl.c 	int pmp = sata_srst_pmp(link);
link              944 drivers/ata/sata_fsl.c 	if (ata_link_offline(link)) {
link              960 drivers/ata/sata_fsl.c 	ata_tf_init(link->device, &tf);
link              995 drivers/ata/sata_fsl.c 		sata_fsl_scr_read(&ap->link, SCR_ERROR, &Serror);
link             1036 drivers/ata/sata_fsl.c 	if (ata_link_online(link)) {
link             1083 drivers/ata/sata_fsl.c 	struct ata_link *link = NULL;
link             1091 drivers/ata/sata_fsl.c 	link = &ap->link;
link             1092 drivers/ata/sata_fsl.c 	ehi = &link->eh_info;
link             1099 drivers/ata/sata_fsl.c 	sata_fsl_scr_read(&ap->link, SCR_ERROR, &SError);
link             1101 drivers/ata/sata_fsl.c 		sata_fsl_scr_write(&ap->link, SCR_ERROR, SError);
link             1154 drivers/ata/sata_fsl.c 				link = &ap->pmp_link[dev_num];
link             1155 drivers/ata/sata_fsl.c 				ehi = &link->eh_info;
link             1156 drivers/ata/sata_fsl.c 				qc = ata_qc_from_tag(ap, link->active_tag);
link             1174 drivers/ata/sata_fsl.c 			qc = ata_qc_from_tag(ap, link->active_tag);
link             1196 drivers/ata/sata_fsl.c 			ata_link_abort(qc->dev->link);
link             1214 drivers/ata/sata_fsl.c 	sata_fsl_scr_read(&ap->link, SCR_ERROR, &SError);
link             1234 drivers/ata/sata_fsl.c 				sata_fsl_scr_write(&ap->link, SCR_ERROR,
link              385 drivers/ata/sata_highbank.c static int ahci_highbank_hardreset(struct ata_link *link, unsigned int *class,
link              389 drivers/ata/sata_highbank.c 	struct ata_port *ap = link->ap;
link              402 drivers/ata/sata_highbank.c 	ata_tf_init(link->device, &tf);
link              407 drivers/ata/sata_highbank.c 		highbank_cphy_disable_overrides(link->ap->port_no);
link              408 drivers/ata/sata_highbank.c 		rc = sata_link_hardreset(link, timing, deadline, &online, NULL);
link              409 drivers/ata/sata_highbank.c 		highbank_cphy_override_lane(link->ap->port_no);
link              414 drivers/ata/sata_highbank.c 		if (sata_scr_read(link, SCR_STATUS, &sstatus))
link              291 drivers/ata/sata_inic162x.c static int inic_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val)
link              293 drivers/ata/sata_inic162x.c 	void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR;
link              306 drivers/ata/sata_inic162x.c static int inic_scr_write(struct ata_link *link, unsigned sc_reg, u32 val)
link              308 drivers/ata/sata_inic162x.c 	void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR;
link              328 drivers/ata/sata_inic162x.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link              385 drivers/ata/sata_inic162x.c 	struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              607 drivers/ata/sata_inic162x.c static int inic_check_ready(struct ata_link *link)
link              609 drivers/ata/sata_inic162x.c 	void __iomem *port_base = inic_port_base(link->ap);
link              618 drivers/ata/sata_inic162x.c static int inic_hardreset(struct ata_link *link, unsigned int *class,
link              621 drivers/ata/sata_inic162x.c 	struct ata_port *ap = link->ap;
link              624 drivers/ata/sata_inic162x.c 	const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
link              635 drivers/ata/sata_inic162x.c 	rc = sata_link_resume(link, timing, deadline);
link              637 drivers/ata/sata_inic162x.c 		ata_link_warn(link,
link              644 drivers/ata/sata_inic162x.c 	if (ata_link_online(link)) {
link              648 drivers/ata/sata_inic162x.c 		rc = ata_wait_after_reset(link, deadline, inic_check_ready);
link              651 drivers/ata/sata_inic162x.c 			ata_link_warn(link,
link              588 drivers/ata/sata_mv.c static int mv_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val);
link              589 drivers/ata/sata_mv.c static int mv_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val);
link              590 drivers/ata/sata_mv.c static int mv5_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val);
link              591 drivers/ata/sata_mv.c static int mv5_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val);
link              598 drivers/ata/sata_mv.c static int mv_hardreset(struct ata_link *link, unsigned int *class,
link              641 drivers/ata/sata_mv.c static int mv_pmp_hardreset(struct ata_link *link, unsigned int *class,
link              643 drivers/ata/sata_mv.c static int  mv_softreset(struct ata_link *link, unsigned int *class,
link             1345 drivers/ata/sata_mv.c static int mv_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val)
link             1350 drivers/ata/sata_mv.c 		*val = readl(mv_ap_base(link->ap) + ofs);
link             1356 drivers/ata/sata_mv.c static int mv_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val)
link             1361 drivers/ata/sata_mv.c 		void __iomem *addr = mv_ap_base(link->ap) + ofs;
link             1362 drivers/ata/sata_mv.c 		struct mv_host_priv *hpriv = link->ap->host->private_data;
link             1382 drivers/ata/sata_mv.c 					mv_ap_base(link->ap) + LP_PHY_CTL;
link             1414 drivers/ata/sata_mv.c 		if (sata_pmp_attached(adev->link->ap)) {
link             1424 drivers/ata/sata_mv.c 	struct ata_link *link = qc->dev->link;
link             1425 drivers/ata/sata_mv.c 	struct ata_port *ap = link->ap;
link             1444 drivers/ata/sata_mv.c 		if (link == ap->excl_link) {
link             1470 drivers/ata/sata_mv.c 			ap->excl_link = link;
link             2063 drivers/ata/sata_mv.c 	flags |= (qc->dev->link->pmp & 0xf) << CRQB_PMP_SHIFT;
link             2157 drivers/ata/sata_mv.c 	flags |= (qc->dev->link->pmp & 0xf) << CRQB_PMP_SHIFT;
link             2285 drivers/ata/sata_mv.c 	struct ata_link *link = qc->dev->link;
link             2289 drivers/ata/sata_mv.c 	ata_tf_to_fis(&qc->tf, link->pmp, 1, (void *)fis);
link             2314 drivers/ata/sata_mv.c 		ata_sff_queue_pio_task(link, 0);
link             2373 drivers/ata/sata_mv.c 			ata_link_warn(qc->dev->link, DRV_NAME
link             2398 drivers/ata/sata_mv.c 	mv_pmp_select(ap, qc->dev->link->pmp);
link             2426 drivers/ata/sata_mv.c 	qc = ata_qc_from_tag(ap, ap->link.active_tag);
link             2449 drivers/ata/sata_mv.c 				struct ata_link *link = &ap->pmp_link[pmp];
link             2451 drivers/ata/sata_mv.c 				ata_eh_analyze_ncq_error(link);
link             2476 drivers/ata/sata_mv.c 			struct ata_link *link = &ap->pmp_link[pmp];
link             2477 drivers/ata/sata_mv.c 			struct ata_eh_info *ehi = &link->eh_info;
link             2484 drivers/ata/sata_mv.c 			ata_link_abort(link);
link             2606 drivers/ata/sata_mv.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link             2613 drivers/ata/sata_mv.c 		struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag);
link             2642 drivers/ata/sata_mv.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link             2651 drivers/ata/sata_mv.c 	sata_scr_read(&ap->link, SCR_ERROR, &serr);
link             2652 drivers/ata/sata_mv.c 	sata_scr_write_flush(&ap->link, SCR_ERROR, serr);
link             2763 drivers/ata/sata_mv.c 			ata_link_abort(qc->dev->link);
link             2819 drivers/ata/sata_mv.c 			tag = ap->link.active_tag;
link             2966 drivers/ata/sata_mv.c 		if (!ata_link_offline(&ap->link)) {
link             2967 drivers/ata/sata_mv.c 			ehi = &ap->link.eh_info;
link             2974 drivers/ata/sata_mv.c 			qc = ata_qc_from_tag(ap, ap->link.active_tag);
link             3053 drivers/ata/sata_mv.c static int mv5_scr_read(struct ata_link *link, unsigned int sc_reg_in, u32 *val)
link             3055 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = link->ap->host->private_data;
link             3057 drivers/ata/sata_mv.c 	void __iomem *addr = mv5_phy_base(mmio, link->ap->port_no);
link             3067 drivers/ata/sata_mv.c static int mv5_scr_write(struct ata_link *link, unsigned int sc_reg_in, u32 val)
link             3069 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = link->ap->host->private_data;
link             3071 drivers/ata/sata_mv.c 	void __iomem *addr = mv5_phy_base(mmio, link->ap->port_no);
link             3603 drivers/ata/sata_mv.c static int mv_pmp_hardreset(struct ata_link *link, unsigned int *class,
link             3606 drivers/ata/sata_mv.c 	mv_pmp_select(link->ap, sata_srst_pmp(link));
link             3607 drivers/ata/sata_mv.c 	return sata_std_hardreset(link, class, deadline);
link             3610 drivers/ata/sata_mv.c static int mv_softreset(struct ata_link *link, unsigned int *class,
link             3613 drivers/ata/sata_mv.c 	mv_pmp_select(link->ap, sata_srst_pmp(link));
link             3614 drivers/ata/sata_mv.c 	return ata_sff_softreset(link, class, deadline);
link             3617 drivers/ata/sata_mv.c static int mv_hardreset(struct ata_link *link, unsigned int *class,
link             3620 drivers/ata/sata_mv.c 	struct ata_port *ap = link->ap;
link             3636 drivers/ata/sata_mv.c 				sata_ehc_deb_timing(&link->eh_context);
link             3638 drivers/ata/sata_mv.c 		rc = sata_link_hardreset(link, timing, deadline + extra,
link             3643 drivers/ata/sata_mv.c 		sata_scr_read(link, SCR_STATUS, &sstatus);
link              289 drivers/ata/sata_nv.c static int nv_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
link              290 drivers/ata/sata_nv.c static int nv_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
link              292 drivers/ata/sata_nv.c static int nv_hardreset(struct ata_link *link, unsigned int *class,
link              677 drivers/ata/sata_nv.c 	if (ap->link.device[sdev->id].class == ATA_DEV_ATAPI) {
link              811 drivers/ata/sata_nv.c 		struct ata_eh_info *ehi = &ap->link.eh_info;
link              847 drivers/ata/sata_nv.c 	struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              899 drivers/ata/sata_nv.c 			if (ata_tag_valid(ap->link.active_tag))
link              938 drivers/ata/sata_nv.c 			struct ata_eh_info *ehi = &ap->link.eh_info;
link              969 drivers/ata/sata_nv.c 				if (ata_tag_valid(ap->link.active_tag))
link              971 drivers/ata/sata_nv.c 						ap->link.active_tag;
link              973 drivers/ata/sata_nv.c 					check_commands = ap->link.sactive;
link             1451 drivers/ata/sata_nv.c 		qc = ata_qc_from_tag(ap, ap->link.active_tag);
link             1508 drivers/ata/sata_nv.c static int nv_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
link             1513 drivers/ata/sata_nv.c 	*val = ioread32(link->ap->ioaddr.scr_addr + (sc_reg * 4));
link             1517 drivers/ata/sata_nv.c static int nv_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
link             1522 drivers/ata/sata_nv.c 	iowrite32(val, link->ap->ioaddr.scr_addr + (sc_reg * 4));
link             1526 drivers/ata/sata_nv.c static int nv_hardreset(struct ata_link *link, unsigned int *class,
link             1529 drivers/ata/sata_nv.c 	struct ata_eh_context *ehc = &link->eh_context;
link             1534 drivers/ata/sata_nv.c 	if (!(link->ap->pflags & ATA_PFLAG_LOADING) &&
link             1535 drivers/ata/sata_nv.c 	    !ata_dev_enabled(link->device))
link             1536 drivers/ata/sata_nv.c 		sata_link_hardreset(link, sata_deb_timing_hotplug, deadline,
link             1543 drivers/ata/sata_nv.c 			ata_link_info(link,
link             1547 drivers/ata/sata_nv.c 		rc = sata_link_resume(link, timing, deadline);
link             1550 drivers/ata/sata_nv.c 			ata_link_warn(link, "failed to resume link (errno=%d)\n",
link             1640 drivers/ata/sata_nv.c 		if (ata_tag_valid(ap->link.active_tag) || ap->link.sactive) {
link             1657 drivers/ata/sata_nv.c 				if ((ata_tag_valid(ap->link.active_tag) && i == ap->link.active_tag) ||
link             1658 drivers/ata/sata_nv.c 				    ap->link.sactive & (1 << i))
link             1762 drivers/ata/sata_nv.c 		     ap->qc_active, ap->link.sactive);
link             1803 drivers/ata/sata_nv.c 	struct ata_eh_context *ehc = &ap->link.eh_context;
link             1805 drivers/ata/sata_nv.c 	if (ap->link.sactive) {
link             1893 drivers/ata/sata_nv.c 	dev = &ap->link.device[sdev->id];
link             2047 drivers/ata/sata_nv.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link             2052 drivers/ata/sata_nv.c 	sata_scr_read(&ap->link, SCR_ERROR, &serror);
link             2053 drivers/ata/sata_nv.c 	sata_scr_write(&ap->link, SCR_ERROR, serror);
link             2073 drivers/ata/sata_nv.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link             2187 drivers/ata/sata_nv.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link             2207 drivers/ata/sata_nv.c 	if (ap->ops->scr_read(&ap->link, SCR_ERROR, &serror))
link             2209 drivers/ata/sata_nv.c 	ap->ops->scr_write(&ap->link, SCR_ERROR, serror);
link             2297 drivers/ata/sata_nv.c 		if (ap->link.sactive) {
link              137 drivers/ata/sata_promise.c static int pdc_sata_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
link              138 drivers/ata/sata_promise.c static int pdc_sata_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
link              153 drivers/ata/sata_promise.c static int pdc_pata_softreset(struct ata_link *link, unsigned int *class,
link              155 drivers/ata/sata_promise.c static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class,
link              445 drivers/ata/sata_promise.c 	if (sata_scr_valid(&ap->link) && (ap->flags & PDC_FLAG_GEN_II)) {
link              467 drivers/ata/sata_promise.c static int pdc_sata_scr_read(struct ata_link *link,
link              472 drivers/ata/sata_promise.c 	*val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4));
link              476 drivers/ata/sata_promise.c static int pdc_sata_scr_write(struct ata_link *link,
link              481 drivers/ata/sata_promise.c 	writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4));
link              517 drivers/ata/sata_promise.c 	if (sata_scr_valid(&ap->link))
link              770 drivers/ata/sata_promise.c static int pdc_pata_softreset(struct ata_link *link, unsigned int *class,
link              773 drivers/ata/sata_promise.c 	pdc_reset_port(link->ap);
link              774 drivers/ata/sata_promise.c 	return ata_sff_softreset(link, class, deadline);
link              808 drivers/ata/sata_promise.c static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class,
link              811 drivers/ata/sata_promise.c 	if (link->ap->flags & PDC_FLAG_GEN_II)
link              812 drivers/ata/sata_promise.c 		pdc_not_at_command_packet_phase(link->ap);
link              814 drivers/ata/sata_promise.c 	pdc_hard_reset_port(link->ap);
link              815 drivers/ata/sata_promise.c 	pdc_reset_port(link->ap);
link              821 drivers/ata/sata_promise.c 	return sata_std_hardreset(link, class, deadline);
link              844 drivers/ata/sata_promise.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link              861 drivers/ata/sata_promise.c 	if (sata_scr_valid(&ap->link)) {
link              864 drivers/ata/sata_promise.c 		pdc_sata_scr_read(&ap->link, SCR_ERROR, &serror);
link              976 drivers/ata/sata_promise.c 			struct ata_eh_info *ehi = &ap->link.eh_info;
link              990 drivers/ata/sata_promise.c 			qc = ata_qc_from_tag(ap, ap->link.active_tag);
link               98 drivers/ata/sata_qstor.c static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
link               99 drivers/ata/sata_qstor.c static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
link              108 drivers/ata/sata_qstor.c static int qs_prereset(struct ata_link *link, unsigned long deadline);
link              206 drivers/ata/sata_qstor.c static int qs_prereset(struct ata_link *link, unsigned long deadline)
link              208 drivers/ata/sata_qstor.c 	struct ata_port *ap = link->ap;
link              211 drivers/ata/sata_qstor.c 	return ata_sff_prereset(link, deadline);
link              214 drivers/ata/sata_qstor.c static int qs_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
link              218 drivers/ata/sata_qstor.c 	*val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 8));
link              228 drivers/ata/sata_qstor.c static int qs_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
link              232 drivers/ata/sata_qstor.c 	writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 8));
link              343 drivers/ata/sata_qstor.c 		struct ata_eh_info *ehi = &ap->link.eh_info;
link              380 drivers/ata/sata_qstor.c 			qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              406 drivers/ata/sata_qstor.c 		qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              312 drivers/ata/sata_rcar.c static int sata_rcar_wait_after_reset(struct ata_link *link,
link              315 drivers/ata/sata_rcar.c 	struct ata_port *ap = link->ap;
link              319 drivers/ata/sata_rcar.c 	return ata_sff_wait_ready(link, deadline);
link              337 drivers/ata/sata_rcar.c 	return sata_rcar_wait_after_reset(&ap->link, deadline);
link              340 drivers/ata/sata_rcar.c static int sata_rcar_softreset(struct ata_link *link, unsigned int *classes,
link              343 drivers/ata/sata_rcar.c 	struct ata_port *ap = link->ap;
link              356 drivers/ata/sata_rcar.c 	if (rc && (rc != -ENODEV || sata_scr_valid(link))) {
link              357 drivers/ata/sata_rcar.c 		ata_link_err(link, "SRST failed (errno=%d)\n", rc);
link              362 drivers/ata/sata_rcar.c 	classes[0] = ata_sff_dev_classify(&link->device[0], devmask, &err);
link              453 drivers/ata/sata_rcar.c 	struct ata_port *ap = qc->dev->link->ap;
link              507 drivers/ata/sata_rcar.c static int sata_rcar_scr_read(struct ata_link *link, unsigned int sc_reg,
link              513 drivers/ata/sata_rcar.c 	*val = ioread32(link->ap->ioaddr.scr_addr + (sc_reg << 2));
link              517 drivers/ata/sata_rcar.c static int sata_rcar_scr_write(struct ata_link *link, unsigned int sc_reg,
link              523 drivers/ata/sata_rcar.c 	iowrite32(val, link->ap->ioaddr.scr_addr + (sc_reg << 2));
link              678 drivers/ata/sata_rcar.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link              711 drivers/ata/sata_rcar.c 	qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              103 drivers/ata/sata_sil.c static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
link              104 drivers/ata/sata_sil.c static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
link              105 drivers/ata/sata_sil.c static int sil_set_mode(struct ata_link *link, struct ata_device **r_failed);
link              344 drivers/ata/sata_sil.c static int sil_set_mode(struct ata_link *link, struct ata_device **r_failed)
link              346 drivers/ata/sata_sil.c 	struct ata_port *ap = link->ap;
link              353 drivers/ata/sata_sil.c 	rc = ata_do_set_mode(link, r_failed);
link              357 drivers/ata/sata_sil.c 	ata_for_each_dev(dev, link, ALL) {
link              396 drivers/ata/sata_sil.c static int sil_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
link              398 drivers/ata/sata_sil.c 	void __iomem *mmio = sil_scr_addr(link->ap, sc_reg);
link              407 drivers/ata/sata_sil.c static int sil_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
link              409 drivers/ata/sata_sil.c 	void __iomem *mmio = sil_scr_addr(link->ap, sc_reg);
link              420 drivers/ata/sata_sil.c 	struct ata_eh_info *ehi = &ap->link.eh_info;
link              421 drivers/ata/sata_sil.c 	struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              431 drivers/ata/sata_sil.c 		sil_scr_read(&ap->link, SCR_ERROR, &serror);
link              432 drivers/ata/sata_sil.c 		sil_scr_write(&ap->link, SCR_ERROR, serror);
link              438 drivers/ata/sata_sil.c 			ap->link.eh_info.serror |= serror;
link              612 drivers/ata/sata_sil.c 	struct ata_port *ap = dev->link->ap;
link              613 drivers/ata/sata_sil.c 	int print_info = ap->link.eh_context.i.flags & ATA_EHI_PRINTINFO;
link              326 drivers/ata/sata_sil24.c static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val);
link              327 drivers/ata/sata_sil24.c static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val);
link              336 drivers/ata/sata_sil24.c static int sil24_softreset(struct ata_link *link, unsigned int *class,
link              338 drivers/ata/sata_sil24.c static int sil24_hardreset(struct ata_link *link, unsigned int *class,
link              340 drivers/ata/sata_sil24.c static int sil24_pmp_hardreset(struct ata_link *link, unsigned int *class,
link              471 drivers/ata/sata_sil24.c 	void __iomem *port = sil24_port_base(dev->link->ap);
link              497 drivers/ata/sata_sil24.c static int sil24_scr_read(struct ata_link *link, unsigned sc_reg, u32 *val)
link              499 drivers/ata/sata_sil24.c 	void __iomem *scr_addr = sil24_port_base(link->ap) + PORT_SCONTROL;
link              508 drivers/ata/sata_sil24.c static int sil24_scr_write(struct ata_link *link, unsigned sc_reg, u32 val)
link              510 drivers/ata/sata_sil24.c 	void __iomem *scr_addr = sil24_port_base(link->ap) + PORT_SCONTROL;
link              587 drivers/ata/sata_sil24.c 		ap->link.eh_context.i.action |= ATA_EH_RESET;
link              646 drivers/ata/sata_sil24.c static int sil24_softreset(struct ata_link *link, unsigned int *class,
link              649 drivers/ata/sata_sil24.c 	struct ata_port *ap = link->ap;
link              650 drivers/ata/sata_sil24.c 	int pmp = sata_srst_pmp(link);
link              668 drivers/ata/sata_sil24.c 	ata_tf_init(link->device, &tf);	/* doesn't really matter */
link              686 drivers/ata/sata_sil24.c 	ata_link_err(link, "softreset failed (%s)\n", reason);
link              690 drivers/ata/sata_sil24.c static int sil24_hardreset(struct ata_link *link, unsigned int *class,
link              693 drivers/ata/sata_sil24.c 	struct ata_port *ap = link->ap;
link              724 drivers/ata/sata_sil24.c 	sata_set_spd(link);
link              727 drivers/ata/sata_sil24.c 	if (ata_link_online(link))
link              738 drivers/ata/sata_sil24.c 	rc = sata_link_debounce(link, sata_deb_timing_long, deadline);
link              745 drivers/ata/sata_sil24.c 		if (ata_link_offline(link))
link              765 drivers/ata/sata_sil24.c 	ata_link_err(link, "hardreset failed (%s)\n", reason);
link              790 drivers/ata/sata_sil24.c 	struct ata_link *link = qc->dev->link;
link              791 drivers/ata/sata_sil24.c 	struct ata_port *ap = link->ap;
link              817 drivers/ata/sata_sil24.c 		if (link == ap->excl_link) {
link              824 drivers/ata/sata_sil24.c 		ap->excl_link = link;
link              873 drivers/ata/sata_sil24.c 	ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, prb->fis);
link              910 drivers/ata/sata_sil24.c 	u32 *gscr = ap->link.device->gscr;
link              931 drivers/ata/sata_sil24.c static int sil24_pmp_hardreset(struct ata_link *link, unsigned int *class,
link              936 drivers/ata/sata_sil24.c 	rc = sil24_init_port(link->ap);
link              938 drivers/ata/sata_sil24.c 		ata_link_err(link, "hardreset failed (port not ready)\n");
link              942 drivers/ata/sata_sil24.c 	return sata_std_hardreset(link, class, deadline);
link              973 drivers/ata/sata_sil24.c 	struct ata_link *link;
link              983 drivers/ata/sata_sil24.c 	link = &ap->link;
link              984 drivers/ata/sata_sil24.c 	ehi = &link->eh_info;
link             1037 drivers/ata/sata_sil24.c 				link = &ap->pmp_link[pmp];
link             1038 drivers/ata/sata_sil24.c 				ehi = &link->eh_info;
link             1039 drivers/ata/sata_sil24.c 				qc = ata_qc_from_tag(ap, link->active_tag);
link             1050 drivers/ata/sata_sil24.c 			qc = ata_qc_from_tag(ap, link->active_tag);
link             1089 drivers/ata/sata_sil24.c 			ata_link_abort(qc->dev->link);
link             1123 drivers/ata/sata_sil24.c 		struct ata_eh_info *ehi = &ap->link.eh_info;
link             1134 drivers/ata/sata_sil24.c 			slot_stat, ap->link.active_tag, ap->link.sactive);
link               50 drivers/ata/sata_sis.c static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
link               51 drivers/ata/sata_sis.c static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
link               99 drivers/ata/sata_sis.c static unsigned int get_scr_cfg_addr(struct ata_link *link, unsigned int sc_reg)
link              101 drivers/ata/sata_sis.c 	struct ata_port *ap = link->ap;
link              122 drivers/ata/sata_sis.c 	if (link->pmp)
link              128 drivers/ata/sata_sis.c static u32 sis_scr_cfg_read(struct ata_link *link,
link              131 drivers/ata/sata_sis.c 	struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
link              132 drivers/ata/sata_sis.c 	unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg);
link              141 drivers/ata/sata_sis.c static int sis_scr_cfg_write(struct ata_link *link,
link              144 drivers/ata/sata_sis.c 	struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
link              145 drivers/ata/sata_sis.c 	unsigned int cfg_addr = get_scr_cfg_addr(link, sc_reg);
link              151 drivers/ata/sata_sis.c static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
link              153 drivers/ata/sata_sis.c 	struct ata_port *ap = link->ap;
link              154 drivers/ata/sata_sis.c 	void __iomem *base = ap->ioaddr.scr_addr + link->pmp * 0x10;
link              160 drivers/ata/sata_sis.c 		return sis_scr_cfg_read(link, sc_reg, val);
link              166 drivers/ata/sata_sis.c static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
link              168 drivers/ata/sata_sis.c 	struct ata_port *ap = link->ap;
link              169 drivers/ata/sata_sis.c 	void __iomem *base = ap->ioaddr.scr_addr + link->pmp * 0x10;
link              175 drivers/ata/sata_sis.c 		return sis_scr_cfg_write(link, sc_reg, val);
link              105 drivers/ata/sata_svw.c static int k2_sata_scr_read(struct ata_link *link,
link              110 drivers/ata/sata_svw.c 	*val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4));
link              115 drivers/ata/sata_svw.c static int k2_sata_scr_write(struct ata_link *link,
link              120 drivers/ata/sata_svw.c 	writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4));
link              124 drivers/ata/sata_svw.c static int k2_sata_softreset(struct ata_link *link,
link              128 drivers/ata/sata_svw.c 	void __iomem *mmio = link->ap->ioaddr.bmdma_addr;
link              138 drivers/ata/sata_svw.c 	return ata_sff_softreset(link, class, deadline);
link              141 drivers/ata/sata_svw.c static int k2_sata_hardreset(struct ata_link *link,
link              145 drivers/ata/sata_svw.c 	void __iomem *mmio = link->ap->ioaddr.bmdma_addr;
link              155 drivers/ata/sata_svw.c 	return sata_sff_hardreset(link, class, deadline);
link              222 drivers/ata/sata_sx4.c static int pdc_softreset(struct ata_link *link, unsigned int *class,
link              821 drivers/ata/sata_sx4.c 			qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              892 drivers/ata/sata_sx4.c static int pdc_softreset(struct ata_link *link, unsigned int *class,
link              895 drivers/ata/sata_sx4.c 	pdc_reset_port(link->ap);
link              896 drivers/ata/sata_sx4.c 	return ata_sff_softreset(link, class, deadline);
link               44 drivers/ata/sata_uli.c static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
link               45 drivers/ata/sata_uli.c static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
link               93 drivers/ata/sata_uli.c static u32 uli_scr_cfg_read(struct ata_link *link, unsigned int sc_reg)
link               95 drivers/ata/sata_uli.c 	struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
link               96 drivers/ata/sata_uli.c 	unsigned int cfg_addr = get_scr_cfg_addr(link->ap, sc_reg);
link              103 drivers/ata/sata_uli.c static void uli_scr_cfg_write(struct ata_link *link, unsigned int scr, u32 val)
link              105 drivers/ata/sata_uli.c 	struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
link              106 drivers/ata/sata_uli.c 	unsigned int cfg_addr = get_scr_cfg_addr(link->ap, scr);
link              111 drivers/ata/sata_uli.c static int uli_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
link              116 drivers/ata/sata_uli.c 	*val = uli_scr_cfg_read(link, sc_reg);
link              120 drivers/ata/sata_uli.c static int uli_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
link              125 drivers/ata/sata_uli.c 	uli_scr_cfg_write(link, sc_reg, val);
link               73 drivers/ata/sata_via.c static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
link               74 drivers/ata/sata_via.c static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
link               75 drivers/ata/sata_via.c static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val);
link               76 drivers/ata/sata_via.c static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val);
link               79 drivers/ata/sata_via.c static int vt6420_prereset(struct ata_link *link, unsigned long deadline);
link              185 drivers/ata/sata_via.c static int svia_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
link              189 drivers/ata/sata_via.c 	*val = ioread32(link->ap->ioaddr.scr_addr + (4 * sc_reg));
link              193 drivers/ata/sata_via.c static int svia_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
link              197 drivers/ata/sata_via.c 	iowrite32(val, link->ap->ioaddr.scr_addr + (4 * sc_reg));
link              201 drivers/ata/sata_via.c static int vt8251_scr_read(struct ata_link *link, unsigned int scr, u32 *val)
link              204 drivers/ata/sata_via.c 	struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
link              205 drivers/ata/sata_via.c 	int slot = 2 * link->ap->port_no + link->pmp;
link              250 drivers/ata/sata_via.c static int vt8251_scr_write(struct ata_link *link, unsigned int scr, u32 val)
link              252 drivers/ata/sata_via.c 	struct pci_dev *pdev = to_pci_dev(link->ap->host->dev);
link              253 drivers/ata/sata_via.c 	int slot = 2 * link->ap->port_no + link->pmp;
link              330 drivers/ata/sata_via.c static int vt6420_prereset(struct ata_link *link, unsigned long deadline)
link              332 drivers/ata/sata_via.c 	struct ata_port *ap = link->ap;
link              333 drivers/ata/sata_via.c 	struct ata_eh_context *ehc = &ap->link.eh_context;
link              343 drivers/ata/sata_via.c 	svia_scr_write(link, SCR_CONTROL, 0x300);
link              344 drivers/ata/sata_via.c 	svia_scr_read(link, SCR_CONTROL, &scontrol); /* flush */
link              348 drivers/ata/sata_via.c 		ata_msleep(link->ap, 200);
link              349 drivers/ata/sata_via.c 		svia_scr_read(link, SCR_STATUS, &sstatus);
link              355 drivers/ata/sata_via.c 	svia_scr_read(link, SCR_STATUS, &sstatus);
link              356 drivers/ata/sata_via.c 	svia_scr_read(link, SCR_CONTROL, &scontrol);
link              365 drivers/ata/sata_via.c 	svia_scr_read(link, SCR_STATUS, &sstatus);
link              375 drivers/ata/sata_via.c 	ata_sff_wait_ready(link, deadline);
link              555 drivers/ata/sata_via.c 		svia_scr_read(&host->ports[0]->link, SCR_ERROR, &serror);
link              557 drivers/ata/sata_via.c 			ata_ehi_hotplugged(&host->ports[0]->link.eh_info);
link              562 drivers/ata/sata_via.c 		svia_scr_read(&host->ports[1]->link, SCR_ERROR, &serror);
link              564 drivers/ata/sata_via.c 			ata_ehi_hotplugged(&host->ports[1]->link.eh_info);
link              582 drivers/ata/sata_via.c 		svia_scr_read(&ap->link, SCR_ERROR, &serror);
link              587 drivers/ata/sata_via.c 			ap->link.eh_context.i.flags |= ATA_EHI_QUIET;
link               84 drivers/ata/sata_vsc.c static int vsc_sata_scr_read(struct ata_link *link,
link               89 drivers/ata/sata_vsc.c 	*val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4));
link               94 drivers/ata/sata_vsc.c static int vsc_sata_scr_write(struct ata_link *link,
link               99 drivers/ata/sata_vsc.c 	writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4));
link              229 drivers/ata/sata_vsc.c 	qc = ata_qc_from_tag(ap, ap->link.active_tag);
link              175 drivers/atm/zatm.c 	u32		link;	/* buffer descriptor link pointer (for SAR) */
link              230 drivers/atm/zatm.c 		head->link = 0;
link              237 drivers/atm/zatm.c 			    data))[-1].link = virt_to_bus(head);
link              119 drivers/base/core.c 	struct device_link *link;
link              129 drivers/base/core.c 	list_for_each_entry(link, &dev->links.consumers, s_node) {
link              130 drivers/base/core.c 		if (link->consumer == target)
link              133 drivers/base/core.c 		ret = device_is_dependent(link->consumer, target);
link              140 drivers/base/core.c static void device_link_init_status(struct device_link *link,
link              155 drivers/base/core.c 			link->status = DL_STATE_CONSUMER_PROBE;
link              158 drivers/base/core.c 			link->status = DL_STATE_DORMANT;
link              165 drivers/base/core.c 			link->status = DL_STATE_CONSUMER_PROBE;
link              168 drivers/base/core.c 			link->status = DL_STATE_ACTIVE;
link              171 drivers/base/core.c 			link->status = DL_STATE_AVAILABLE;
link              176 drivers/base/core.c 		link->status = DL_STATE_SUPPLIER_UNBIND;
link              179 drivers/base/core.c 		link->status = DL_STATE_DORMANT;
link              186 drivers/base/core.c 	struct device_link *link;
link              199 drivers/base/core.c 	list_for_each_entry(link, &dev->links.consumers, s_node)
link              200 drivers/base/core.c 		device_reorder_to_tail(link->consumer, NULL);
link              291 drivers/base/core.c 	struct device_link *link;
link              320 drivers/base/core.c 		link = NULL;
link              332 drivers/base/core.c 	list_for_each_entry(link, &supplier->links.consumers, s_node) {
link              333 drivers/base/core.c 		if (link->consumer != consumer)
link              337 drivers/base/core.c 			if (!(link->flags & DL_FLAG_PM_RUNTIME)) {
link              339 drivers/base/core.c 				link->flags |= DL_FLAG_PM_RUNTIME;
link              342 drivers/base/core.c 				refcount_inc(&link->rpm_active);
link              346 drivers/base/core.c 			link->flags |= DL_FLAG_STATELESS;
link              347 drivers/base/core.c 			kref_get(&link->kref);
link              357 drivers/base/core.c 			if (link->flags & DL_FLAG_AUTOREMOVE_CONSUMER) {
link              358 drivers/base/core.c 				link->flags &= ~DL_FLAG_AUTOREMOVE_CONSUMER;
link              359 drivers/base/core.c 				link->flags |= DL_FLAG_AUTOREMOVE_SUPPLIER;
link              362 drivers/base/core.c 			link->flags &= ~(DL_FLAG_AUTOREMOVE_CONSUMER |
link              365 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED)) {
link              366 drivers/base/core.c 			kref_get(&link->kref);
link              367 drivers/base/core.c 			link->flags |= DL_FLAG_MANAGED;
link              368 drivers/base/core.c 			device_link_init_status(link, consumer, supplier);
link              373 drivers/base/core.c 	link = kzalloc(sizeof(*link), GFP_KERNEL);
link              374 drivers/base/core.c 	if (!link)
link              377 drivers/base/core.c 	refcount_set(&link->rpm_active, 1);
link              381 drivers/base/core.c 			refcount_inc(&link->rpm_active);
link              387 drivers/base/core.c 	link->supplier = supplier;
link              388 drivers/base/core.c 	INIT_LIST_HEAD(&link->s_node);
link              390 drivers/base/core.c 	link->consumer = consumer;
link              391 drivers/base/core.c 	INIT_LIST_HEAD(&link->c_node);
link              392 drivers/base/core.c 	link->flags = flags;
link              393 drivers/base/core.c 	kref_init(&link->kref);
link              397 drivers/base/core.c 		link->status = DL_STATE_NONE;
link              399 drivers/base/core.c 		device_link_init_status(link, consumer, supplier);
link              405 drivers/base/core.c 	if (link->status == DL_STATE_CONSUMER_PROBE &&
link              418 drivers/base/core.c 	list_add_tail_rcu(&link->s_node, &supplier->links.consumers);
link              419 drivers/base/core.c 	list_add_tail_rcu(&link->c_node, &consumer->links.suppliers);
link              427 drivers/base/core.c 	if ((flags & DL_FLAG_PM_RUNTIME && flags & DL_FLAG_RPM_ACTIVE) && !link)
link              430 drivers/base/core.c 	return link;
link              434 drivers/base/core.c static void device_link_free(struct device_link *link)
link              436 drivers/base/core.c 	while (refcount_dec_not_one(&link->rpm_active))
link              437 drivers/base/core.c 		pm_runtime_put(link->supplier);
link              439 drivers/base/core.c 	put_device(link->consumer);
link              440 drivers/base/core.c 	put_device(link->supplier);
link              441 drivers/base/core.c 	kfree(link);
link              452 drivers/base/core.c 	struct device_link *link = container_of(kref, struct device_link, kref);
link              454 drivers/base/core.c 	dev_dbg(link->consumer, "Dropping the link to %s\n",
link              455 drivers/base/core.c 		dev_name(link->supplier));
link              457 drivers/base/core.c 	if (link->flags & DL_FLAG_PM_RUNTIME)
link              458 drivers/base/core.c 		pm_runtime_drop_link(link->consumer);
link              460 drivers/base/core.c 	list_del_rcu(&link->s_node);
link              461 drivers/base/core.c 	list_del_rcu(&link->c_node);
link              462 drivers/base/core.c 	call_srcu(&device_links_srcu, &link->rcu_head, __device_link_free_srcu);
link              467 drivers/base/core.c 	struct device_link *link = container_of(kref, struct device_link, kref);
link              469 drivers/base/core.c 	dev_info(link->consumer, "Dropping the link to %s\n",
link              470 drivers/base/core.c 		 dev_name(link->supplier));
link              472 drivers/base/core.c 	if (link->flags & DL_FLAG_PM_RUNTIME)
link              473 drivers/base/core.c 		pm_runtime_drop_link(link->consumer);
link              475 drivers/base/core.c 	list_del(&link->s_node);
link              476 drivers/base/core.c 	list_del(&link->c_node);
link              477 drivers/base/core.c 	device_link_free(link);
link              481 drivers/base/core.c static void device_link_put_kref(struct device_link *link)
link              483 drivers/base/core.c 	if (link->flags & DL_FLAG_STATELESS)
link              484 drivers/base/core.c 		kref_put(&link->kref, __device_link_del);
link              498 drivers/base/core.c void device_link_del(struct device_link *link)
link              502 drivers/base/core.c 	device_link_put_kref(link);
link              518 drivers/base/core.c 	struct device_link *link;
link              526 drivers/base/core.c 	list_for_each_entry(link, &supplier->links.consumers, s_node) {
link              527 drivers/base/core.c 		if (link->consumer == consumer) {
link              528 drivers/base/core.c 			device_link_put_kref(link);
link              540 drivers/base/core.c 	struct device_link *link;
link              542 drivers/base/core.c 	list_for_each_entry(link, &dev->links.suppliers, c_node)
link              543 drivers/base/core.c 		if (link->status == DL_STATE_CONSUMER_PROBE)
link              544 drivers/base/core.c 			WRITE_ONCE(link->status, DL_STATE_AVAILABLE);
link              565 drivers/base/core.c 	struct device_link *link;
link              570 drivers/base/core.c 	list_for_each_entry(link, &dev->links.suppliers, c_node) {
link              571 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED))
link              574 drivers/base/core.c 		if (link->status != DL_STATE_AVAILABLE) {
link              579 drivers/base/core.c 		WRITE_ONCE(link->status, DL_STATE_CONSUMER_PROBE);
link              600 drivers/base/core.c 	struct device_link *link;
link              604 drivers/base/core.c 	list_for_each_entry(link, &dev->links.consumers, s_node) {
link              605 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED))
link              614 drivers/base/core.c 		if (link->status == DL_STATE_CONSUMER_PROBE ||
link              615 drivers/base/core.c 		    link->status == DL_STATE_ACTIVE)
link              618 drivers/base/core.c 		WARN_ON(link->status != DL_STATE_DORMANT);
link              619 drivers/base/core.c 		WRITE_ONCE(link->status, DL_STATE_AVAILABLE);
link              621 drivers/base/core.c 		if (link->flags & DL_FLAG_AUTOPROBE_CONSUMER)
link              622 drivers/base/core.c 			driver_deferred_probe_add(link->consumer);
link              625 drivers/base/core.c 	list_for_each_entry(link, &dev->links.suppliers, c_node) {
link              626 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED))
link              629 drivers/base/core.c 		WARN_ON(link->status != DL_STATE_CONSUMER_PROBE);
link              630 drivers/base/core.c 		WRITE_ONCE(link->status, DL_STATE_ACTIVE);
link              638 drivers/base/core.c static void device_link_drop_managed(struct device_link *link)
link              640 drivers/base/core.c 	link->flags &= ~DL_FLAG_MANAGED;
link              641 drivers/base/core.c 	WRITE_ONCE(link->status, DL_STATE_NONE);
link              642 drivers/base/core.c 	kref_put(&link->kref, __device_link_del);
link              659 drivers/base/core.c 	struct device_link *link, *ln;
link              661 drivers/base/core.c 	list_for_each_entry_safe_reverse(link, ln, &dev->links.suppliers, c_node) {
link              662 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED))
link              665 drivers/base/core.c 		if (link->flags & DL_FLAG_AUTOREMOVE_CONSUMER)
link              666 drivers/base/core.c 			device_link_drop_managed(link);
link              667 drivers/base/core.c 		else if (link->status == DL_STATE_CONSUMER_PROBE ||
link              668 drivers/base/core.c 			 link->status == DL_STATE_ACTIVE)
link              669 drivers/base/core.c 			WRITE_ONCE(link->status, DL_STATE_AVAILABLE);
link              687 drivers/base/core.c 	struct device_link *link;
link              691 drivers/base/core.c 	list_for_each_entry(link, &dev->links.consumers, s_node) {
link              692 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED))
link              702 drivers/base/core.c 		if (link->status == DL_STATE_CONSUMER_PROBE ||
link              703 drivers/base/core.c 		    link->status == DL_STATE_ACTIVE)
link              704 drivers/base/core.c 			WRITE_ONCE(link->status, DL_STATE_DORMANT);
link              724 drivers/base/core.c 	struct device_link *link, *ln;
link              728 drivers/base/core.c 	list_for_each_entry_safe(link, ln, &dev->links.consumers, s_node) {
link              729 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED))
link              732 drivers/base/core.c 		WARN_ON(link->flags & DL_FLAG_AUTOREMOVE_CONSUMER);
link              733 drivers/base/core.c 		WARN_ON(link->status != DL_STATE_SUPPLIER_UNBIND);
link              740 drivers/base/core.c 		if (link->status == DL_STATE_SUPPLIER_UNBIND &&
link              741 drivers/base/core.c 		    link->flags & DL_FLAG_AUTOREMOVE_SUPPLIER)
link              742 drivers/base/core.c 			device_link_drop_managed(link);
link              744 drivers/base/core.c 		WRITE_ONCE(link->status, DL_STATE_DORMANT);
link              768 drivers/base/core.c 	struct device_link *link;
link              773 drivers/base/core.c 	list_for_each_entry(link, &dev->links.consumers, s_node) {
link              774 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED))
link              777 drivers/base/core.c 		if (link->status == DL_STATE_CONSUMER_PROBE
link              778 drivers/base/core.c 		    || link->status == DL_STATE_ACTIVE) {
link              782 drivers/base/core.c 		WRITE_ONCE(link->status, DL_STATE_SUPPLIER_UNBIND);
link              808 drivers/base/core.c 	struct device_link *link;
link              813 drivers/base/core.c 	list_for_each_entry(link, &dev->links.consumers, s_node) {
link              816 drivers/base/core.c 		if (!(link->flags & DL_FLAG_MANAGED))
link              819 drivers/base/core.c 		status = link->status;
link              826 drivers/base/core.c 		WRITE_ONCE(link->status, DL_STATE_SUPPLIER_UNBIND);
link              828 drivers/base/core.c 			struct device *consumer = link->consumer;
link              850 drivers/base/core.c 	struct device_link *link, *ln;
link              858 drivers/base/core.c 	list_for_each_entry_safe_reverse(link, ln, &dev->links.suppliers, c_node) {
link              859 drivers/base/core.c 		WARN_ON(link->status == DL_STATE_ACTIVE);
link              860 drivers/base/core.c 		__device_link_del(&link->kref);
link              863 drivers/base/core.c 	list_for_each_entry_safe_reverse(link, ln, &dev->links.consumers, s_node) {
link              864 drivers/base/core.c 		WARN_ON(link->status != DL_STATE_DORMANT &&
link              865 drivers/base/core.c 			link->status != DL_STATE_NONE);
link              866 drivers/base/core.c 		__device_link_del(&link->kref);
link              245 drivers/base/power/domain.c 	struct gpd_link *link;
link              277 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->master_links, master_node) {
link              278 drivers/base/power/domain.c 		if (link->performance_state > state)
link              279 drivers/base/power/domain.c 			state = link->performance_state;
link              289 drivers/base/power/domain.c 	struct gpd_link *link;
link              296 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->slave_links, slave_node) {
link              297 drivers/base/power/domain.c 		master = link->master;
link              313 drivers/base/power/domain.c 		link->prev_performance_state = link->performance_state;
link              314 drivers/base/power/domain.c 		link->performance_state = master_state;
link              319 drivers/base/power/domain.c 			link->performance_state = link->prev_performance_state;
link              336 drivers/base/power/domain.c 	list_for_each_entry_continue_reverse(link, &genpd->slave_links,
link              338 drivers/base/power/domain.c 		master = link->master;
link              345 drivers/base/power/domain.c 		master_state = link->prev_performance_state;
link              346 drivers/base/power/domain.c 		link->performance_state = master_state;
link              498 drivers/base/power/domain.c 	struct gpd_link *link;
link              569 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->slave_links, slave_node) {
link              570 drivers/base/power/domain.c 		genpd_sd_counter_dec(link->master);
link              571 drivers/base/power/domain.c 		genpd_lock_nested(link->master, depth + 1);
link              572 drivers/base/power/domain.c 		genpd_power_off(link->master, false, depth + 1);
link              573 drivers/base/power/domain.c 		genpd_unlock(link->master);
link              589 drivers/base/power/domain.c 	struct gpd_link *link;
link              600 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->slave_links, slave_node) {
link              601 drivers/base/power/domain.c 		struct generic_pm_domain *master = link->master;
link              625 drivers/base/power/domain.c 	list_for_each_entry_continue_reverse(link,
link              628 drivers/base/power/domain.c 		genpd_sd_counter_dec(link->master);
link              629 drivers/base/power/domain.c 		genpd_lock_nested(link->master, depth + 1);
link              630 drivers/base/power/domain.c 		genpd_power_off(link->master, false, depth + 1);
link              631 drivers/base/power/domain.c 		genpd_unlock(link->master);
link              961 drivers/base/power/domain.c 	struct gpd_link *link;
link              977 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->slave_links, slave_node) {
link              978 drivers/base/power/domain.c 		genpd_sd_counter_dec(link->master);
link              981 drivers/base/power/domain.c 			genpd_lock_nested(link->master, depth + 1);
link              983 drivers/base/power/domain.c 		genpd_sync_power_off(link->master, use_lock, depth + 1);
link              986 drivers/base/power/domain.c 			genpd_unlock(link->master);
link             1003 drivers/base/power/domain.c 	struct gpd_link *link;
link             1008 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->slave_links, slave_node) {
link             1009 drivers/base/power/domain.c 		genpd_sd_counter_inc(link->master);
link             1012 drivers/base/power/domain.c 			genpd_lock_nested(link->master, depth + 1);
link             1014 drivers/base/power/domain.c 		genpd_sync_power_on(link->master, use_lock, depth + 1);
link             1017 drivers/base/power/domain.c 			genpd_unlock(link->master);
link             1452 drivers/base/power/domain.c 	struct gpd_link *link;
link             1457 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->slave_links, slave_node) {
link             1458 drivers/base/power/domain.c 		struct generic_pm_domain *master = link->master;
link             1620 drivers/base/power/domain.c 	struct gpd_link *link, *itr;
link             1638 drivers/base/power/domain.c 	link = kzalloc(sizeof(*link), GFP_KERNEL);
link             1639 drivers/base/power/domain.c 	if (!link)
link             1657 drivers/base/power/domain.c 	link->master = genpd;
link             1658 drivers/base/power/domain.c 	list_add_tail(&link->master_node, &genpd->master_links);
link             1659 drivers/base/power/domain.c 	link->slave = subdomain;
link             1660 drivers/base/power/domain.c 	list_add_tail(&link->slave_node, &subdomain->slave_links);
link             1668 drivers/base/power/domain.c 		kfree(link);
link             1698 drivers/base/power/domain.c 	struct gpd_link *l, *link;
link             1714 drivers/base/power/domain.c 	list_for_each_entry_safe(link, l, &genpd->master_links, master_node) {
link             1715 drivers/base/power/domain.c 		if (link->slave != subdomain)
link             1718 drivers/base/power/domain.c 		list_del(&link->master_node);
link             1719 drivers/base/power/domain.c 		list_del(&link->slave_node);
link             1720 drivers/base/power/domain.c 		kfree(link);
link             1848 drivers/base/power/domain.c 	struct gpd_link *l, *link;
link             1867 drivers/base/power/domain.c 	list_for_each_entry_safe(link, l, &genpd->slave_links, slave_node) {
link             1868 drivers/base/power/domain.c 		list_del(&link->master_node);
link             1869 drivers/base/power/domain.c 		list_del(&link->slave_node);
link             1870 drivers/base/power/domain.c 		kfree(link);
link             1938 drivers/base/power/domain.c 	struct list_head link;
link             2016 drivers/base/power/domain.c 	list_add(&cp->link, &of_genpd_providers);
link             2172 drivers/base/power/domain.c 	list_for_each_entry_safe(cp, tmp, &of_genpd_providers, link) {
link             2191 drivers/base/power/domain.c 			list_del(&cp->link);
link             2225 drivers/base/power/domain.c 	list_for_each_entry(provider, &of_genpd_providers, link) {
link             2772 drivers/base/power/domain.c 	struct gpd_link *link;
link             2795 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->master_links, master_node) {
link             2796 drivers/base/power/domain.c 		seq_printf(s, "%s", link->slave->name);
link             2797 drivers/base/power/domain.c 		if (!list_is_last(&link->master_node, &genpd->master_links))
link             2873 drivers/base/power/domain.c 	struct gpd_link *link;
link             2880 drivers/base/power/domain.c 	list_for_each_entry(link, &genpd->master_links, master_node)
link             2881 drivers/base/power/domain.c 		seq_printf(s, "%s\n", link->slave->name);
link              124 drivers/base/power/domain_governor.c 	struct gpd_link *link;
link              138 drivers/base/power/domain_governor.c 	list_for_each_entry(link, &genpd->master_links, master_node) {
link              139 drivers/base/power/domain_governor.c 		struct generic_pm_domain *sd = link->slave;
link              212 drivers/base/power/domain_governor.c 	struct gpd_link *link;
link              225 drivers/base/power/domain_governor.c 	list_for_each_entry(link, &genpd->slave_links, slave_node)
link              226 drivers/base/power/domain_governor.c 		link->master->max_off_time_changed = true;
link              257 drivers/base/power/main.c 	struct device_link *link;
link              269 drivers/base/power/main.c 	list_for_each_entry_rcu(link, &dev->links.suppliers, c_node)
link              270 drivers/base/power/main.c 		if (READ_ONCE(link->status) != DL_STATE_DORMANT)
link              271 drivers/base/power/main.c 			dpm_wait(link->supplier, async);
link              312 drivers/base/power/main.c 	struct device_link *link;
link              326 drivers/base/power/main.c 	list_for_each_entry_rcu(link, &dev->links.consumers, s_node)
link              327 drivers/base/power/main.c 		if (READ_ONCE(link->status) != DL_STATE_DORMANT)
link              328 drivers/base/power/main.c 			dpm_wait(link->consumer, async);
link             1230 drivers/base/power/main.c 	struct device_link *link;
link             1238 drivers/base/power/main.c 	list_for_each_entry_rcu(link, &dev->links.suppliers, c_node)
link             1239 drivers/base/power/main.c 		link->supplier->power.must_resume = true;
link             1687 drivers/base/power/main.c 	struct device_link *link;
link             1698 drivers/base/power/main.c 	list_for_each_entry_rcu(link, &dev->links.suppliers, c_node) {
link             1699 drivers/base/power/main.c 		spin_lock_irq(&link->supplier->power.lock);
link             1700 drivers/base/power/main.c 		link->supplier->power.direct_complete = false;
link             1701 drivers/base/power/main.c 		spin_unlock_irq(&link->supplier->power.lock);
link              288 drivers/base/power/runtime.c 	struct device_link *link;
link              290 drivers/base/power/runtime.c 	list_for_each_entry_rcu(link, &dev->links.suppliers, c_node,
link              294 drivers/base/power/runtime.c 		if (!(link->flags & DL_FLAG_PM_RUNTIME) ||
link              295 drivers/base/power/runtime.c 		    READ_ONCE(link->status) == DL_STATE_SUPPLIER_UNBIND)
link              298 drivers/base/power/runtime.c 		retval = pm_runtime_get_sync(link->supplier);
link              301 drivers/base/power/runtime.c 			pm_runtime_put_noidle(link->supplier);
link              304 drivers/base/power/runtime.c 		refcount_inc(&link->rpm_active);
link              311 drivers/base/power/runtime.c 	struct device_link *link;
link              313 drivers/base/power/runtime.c 	list_for_each_entry_rcu(link, &dev->links.suppliers, c_node,
link              315 drivers/base/power/runtime.c 		if (READ_ONCE(link->status) == DL_STATE_SUPPLIER_UNBIND)
link              318 drivers/base/power/runtime.c 		while (refcount_dec_not_one(&link->rpm_active))
link              319 drivers/base/power/runtime.c 			pm_runtime_put(link->supplier);
link             1640 drivers/base/power/runtime.c 	struct device_link *link;
link             1645 drivers/base/power/runtime.c 	list_for_each_entry_rcu(link, &dev->links.consumers, s_node,
link             1647 drivers/base/power/runtime.c 		if (!(link->flags & DL_FLAG_MANAGED))
link             1650 drivers/base/power/runtime.c 		while (refcount_dec_not_one(&link->rpm_active))
link             1663 drivers/base/power/runtime.c 	struct device_link *link;
link             1668 drivers/base/power/runtime.c 	list_for_each_entry_rcu(link, &dev->links.suppliers, c_node,
link             1670 drivers/base/power/runtime.c 		if (link->flags & DL_FLAG_PM_RUNTIME) {
link             1671 drivers/base/power/runtime.c 			link->supplier_preactivated = true;
link             1672 drivers/base/power/runtime.c 			refcount_inc(&link->rpm_active);
link             1673 drivers/base/power/runtime.c 			pm_runtime_get_sync(link->supplier);
link             1685 drivers/base/power/runtime.c 	struct device_link *link;
link             1690 drivers/base/power/runtime.c 	list_for_each_entry_rcu(link, &dev->links.suppliers, c_node,
link             1692 drivers/base/power/runtime.c 		if (link->supplier_preactivated) {
link             1693 drivers/base/power/runtime.c 			link->supplier_preactivated = false;
link             1694 drivers/base/power/runtime.c 			if (refcount_dec_not_one(&link->rpm_active))
link             1695 drivers/base/power/runtime.c 				pm_runtime_put(link->supplier);
link               21 drivers/base/regmap/regmap-debugfs.c 	struct list_head link;
link              562 drivers/base/regmap/regmap-debugfs.c 		list_add(&node->link, &regmap_debugfs_early_list);
link              652 drivers/base/regmap/regmap-debugfs.c 					 link) {
link              654 drivers/base/regmap/regmap-debugfs.c 				list_del(&node->link);
link              669 drivers/base/regmap/regmap-debugfs.c 	list_for_each_entry_safe(node, tmp, &regmap_debugfs_early_list, link) {
link              671 drivers/base/regmap/regmap-debugfs.c 		list_del(&node->link);
link               84 drivers/bluetooth/bluecard_cs.c static int bluecard_config(struct pcmcia_device *link);
link               85 drivers/bluetooth/bluecard_cs.c static void bluecard_release(struct pcmcia_device *link);
link              820 drivers/bluetooth/bluecard_cs.c static int bluecard_probe(struct pcmcia_device *link)
link              825 drivers/bluetooth/bluecard_cs.c 	info = devm_kzalloc(&link->dev, sizeof(*info), GFP_KERNEL);
link              829 drivers/bluetooth/bluecard_cs.c 	info->p_dev = link;
link              830 drivers/bluetooth/bluecard_cs.c 	link->priv = info;
link              832 drivers/bluetooth/bluecard_cs.c 	link->config_flags |= CONF_ENABLE_IRQ;
link              834 drivers/bluetooth/bluecard_cs.c 	return bluecard_config(link);
link              838 drivers/bluetooth/bluecard_cs.c static void bluecard_detach(struct pcmcia_device *link)
link              840 drivers/bluetooth/bluecard_cs.c 	bluecard_release(link);
link              844 drivers/bluetooth/bluecard_cs.c static int bluecard_config(struct pcmcia_device *link)
link              846 drivers/bluetooth/bluecard_cs.c 	struct bluecard_info *info = link->priv;
link              849 drivers/bluetooth/bluecard_cs.c 	link->config_index = 0x20;
link              851 drivers/bluetooth/bluecard_cs.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
link              852 drivers/bluetooth/bluecard_cs.c 	link->resource[0]->end = 64;
link              853 drivers/bluetooth/bluecard_cs.c 	link->io_lines = 6;
link              856 drivers/bluetooth/bluecard_cs.c 		link->resource[0]->start = n ^ 0x300;
link              857 drivers/bluetooth/bluecard_cs.c 		i = pcmcia_request_io(link);
link              865 drivers/bluetooth/bluecard_cs.c 	i = pcmcia_request_irq(link, bluecard_interrupt);
link              869 drivers/bluetooth/bluecard_cs.c 	i = pcmcia_enable_device(link);
link              879 drivers/bluetooth/bluecard_cs.c 	bluecard_release(link);
link              884 drivers/bluetooth/bluecard_cs.c static void bluecard_release(struct pcmcia_device *link)
link              886 drivers/bluetooth/bluecard_cs.c 	struct bluecard_info *info = link->priv;
link              892 drivers/bluetooth/bluecard_cs.c 	pcmcia_disable_device(link);
link               86 drivers/bluetooth/bt3c_cs.c static int bt3c_config(struct pcmcia_device *link);
link               87 drivers/bluetooth/bt3c_cs.c static void bt3c_release(struct pcmcia_device *link);
link              620 drivers/bluetooth/bt3c_cs.c static int bt3c_probe(struct pcmcia_device *link)
link              625 drivers/bluetooth/bt3c_cs.c 	info = devm_kzalloc(&link->dev, sizeof(*info), GFP_KERNEL);
link              629 drivers/bluetooth/bt3c_cs.c 	info->p_dev = link;
link              630 drivers/bluetooth/bt3c_cs.c 	link->priv = info;
link              632 drivers/bluetooth/bt3c_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_VPP |
link              635 drivers/bluetooth/bt3c_cs.c 	return bt3c_config(link);
link              639 drivers/bluetooth/bt3c_cs.c static void bt3c_detach(struct pcmcia_device *link)
link              641 drivers/bluetooth/bt3c_cs.c 	bt3c_release(link);
link              683 drivers/bluetooth/bt3c_cs.c static int bt3c_config(struct pcmcia_device *link)
link              685 drivers/bluetooth/bt3c_cs.c 	struct bt3c_info *info = link->priv;
link              693 drivers/bluetooth/bt3c_cs.c 		if (!pcmcia_loop_config(link, bt3c_check_config, (void *) try))
link              700 drivers/bluetooth/bt3c_cs.c 	if (!pcmcia_loop_config(link, bt3c_check_config_notpicky, NULL))
link              707 drivers/bluetooth/bt3c_cs.c 	i = pcmcia_request_irq(link, &bt3c_interrupt);
link              711 drivers/bluetooth/bt3c_cs.c 	i = pcmcia_enable_device(link);
link              721 drivers/bluetooth/bt3c_cs.c 	bt3c_release(link);
link              726 drivers/bluetooth/bt3c_cs.c static void bt3c_release(struct pcmcia_device *link)
link              728 drivers/bluetooth/bt3c_cs.c 	struct bt3c_info *info = link->priv;
link              732 drivers/bluetooth/bt3c_cs.c 	pcmcia_disable_device(link);
link               84 drivers/bluetooth/dtl1_cs.c static int dtl1_config(struct pcmcia_device *link);
link              531 drivers/bluetooth/dtl1_cs.c static int dtl1_probe(struct pcmcia_device *link)
link              536 drivers/bluetooth/dtl1_cs.c 	info = devm_kzalloc(&link->dev, sizeof(*info), GFP_KERNEL);
link              540 drivers/bluetooth/dtl1_cs.c 	info->p_dev = link;
link              541 drivers/bluetooth/dtl1_cs.c 	link->priv = info;
link              543 drivers/bluetooth/dtl1_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              545 drivers/bluetooth/dtl1_cs.c 	return dtl1_config(link);
link              549 drivers/bluetooth/dtl1_cs.c static void dtl1_detach(struct pcmcia_device *link)
link              551 drivers/bluetooth/dtl1_cs.c 	struct dtl1_info *info = link->priv;
link              554 drivers/bluetooth/dtl1_cs.c 	pcmcia_disable_device(link);
link              568 drivers/bluetooth/dtl1_cs.c static int dtl1_config(struct pcmcia_device *link)
link              570 drivers/bluetooth/dtl1_cs.c 	struct dtl1_info *info = link->priv;
link              574 drivers/bluetooth/dtl1_cs.c 	link->resource[0]->end = 8;
link              575 drivers/bluetooth/dtl1_cs.c 	ret = pcmcia_loop_config(link, dtl1_confcheck, NULL);
link              579 drivers/bluetooth/dtl1_cs.c 	ret = pcmcia_request_irq(link, dtl1_interrupt);
link              583 drivers/bluetooth/dtl1_cs.c 	ret = pcmcia_enable_device(link);
link              594 drivers/bluetooth/dtl1_cs.c 	dtl1_detach(link);
link               48 drivers/char/ipmi/ipmi_devintf.c 	list_add_tail(&msg->link, &priv->recv_msgs);
link              132 drivers/char/ipmi/ipmi_devintf.c 	list_for_each_entry_safe(msg, next, &priv->recv_msgs, link)
link              227 drivers/char/ipmi/ipmi_devintf.c 	msg = list_entry(entry, struct ipmi_recv_msg, link);
link              804 drivers/char/ipmi/ipmi_devintf.c 	struct list_head link;
link              825 drivers/char/ipmi/ipmi_devintf.c 	list_add(&entry->link, &reg_list);
link              835 drivers/char/ipmi/ipmi_devintf.c 	list_for_each_entry(entry, &reg_list, link) {
link              837 drivers/char/ipmi/ipmi_devintf.c 			list_del(&entry->link);
link              895 drivers/char/ipmi/ipmi_devintf.c 	list_for_each_entry_safe(entry, entry2, &reg_list, link) {
link              896 drivers/char/ipmi/ipmi_devintf.c 		list_del(&entry->link);
link              197 drivers/char/ipmi/ipmi_msghandler.c 	struct list_head link;
link              240 drivers/char/ipmi/ipmi_msghandler.c 	struct list_head link;
link              462 drivers/char/ipmi/ipmi_msghandler.c 	struct list_head link;
link              685 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_safe(msg, msg2, q, link) {
link              686 drivers/char/ipmi/ipmi_msghandler.c 		list_del(&msg->link);
link              695 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_safe(msg, msg2, q, link) {
link              696 drivers/char/ipmi/ipmi_msghandler.c 		list_del(&msg->link);
link              721 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_safe(rcvr, rcvr2, &list, link)
link              742 drivers/char/ipmi/ipmi_msghandler.c 	struct list_head link;
link              760 drivers/char/ipmi/ipmi_msghandler.c 	list_add(&watcher->link, &smi_watchers);
link              763 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(intf, &ipmi_interfaces, link) {
link              781 drivers/char/ipmi/ipmi_msghandler.c 	list_del(&watcher->link);
link              796 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry(w, &smi_watchers, link) {
link             1210 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(intf, &ipmi_interfaces, link) {
link             1241 drivers/char/ipmi/ipmi_msghandler.c 	list_add_rcu(&new_user->link, &intf->users);
link             1263 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(intf, &ipmi_interfaces, link) {
link             1324 drivers/char/ipmi/ipmi_msghandler.c 	list_del_rcu(&user->link);
link             1343 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(rcvr, &intf->cmd_rcvrs, link) {
link             1345 drivers/char/ipmi/ipmi_msghandler.c 			list_del_rcu(&rcvr->link);
link             1585 drivers/char/ipmi/ipmi_msghandler.c 		list_for_each_entry_safe(msg, msg2, &intf->waiting_events, link)
link             1586 drivers/char/ipmi/ipmi_msghandler.c 			list_move_tail(&msg->link, &msgs);
link             1596 drivers/char/ipmi/ipmi_msghandler.c 		list_for_each_entry_safe(msg, msg2, &msgs, link) {
link             1621 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(rcvr, &intf->cmd_rcvrs, link) {
link             1636 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(rcvr, &intf->cmd_rcvrs, link) {
link             1676 drivers/char/ipmi/ipmi_msghandler.c 	list_add_rcu(&rcvr->link, &intf->cmd_rcvrs);
link             1714 drivers/char/ipmi/ipmi_msghandler.c 				list_del_rcu(&rcvr->link);
link             1830 drivers/char/ipmi/ipmi_msghandler.c 			list_add_tail(&smi_msg->link, &intf->hp_xmit_msgs);
link             1832 drivers/char/ipmi/ipmi_msghandler.c 			list_add_tail(&smi_msg->link, &intf->xmit_msgs);
link             3400 drivers/char/ipmi/ipmi_msghandler.c 	struct list_head *link;
link             3471 drivers/char/ipmi/ipmi_msghandler.c 	link = &ipmi_interfaces;
link             3472 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(tintf, &ipmi_interfaces, link) {
link             3474 drivers/char/ipmi/ipmi_msghandler.c 			link = &tintf->link;
link             3481 drivers/char/ipmi/ipmi_msghandler.c 		list_add_rcu(&intf->link, &ipmi_interfaces);
link             3483 drivers/char/ipmi/ipmi_msghandler.c 		list_add_tail_rcu(&intf->link, link);
link             3521 drivers/char/ipmi/ipmi_msghandler.c 	list_del_rcu(&intf->link);
link             3571 drivers/char/ipmi/ipmi_msghandler.c 		msg = list_entry(entry, struct ipmi_smi_msg, link);
link             3591 drivers/char/ipmi/ipmi_msghandler.c 	list_del_rcu(&intf->link);
link             3602 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry(w, &smi_watchers, link)
link             3610 drivers/char/ipmi/ipmi_msghandler.c 				     struct ipmi_user, link);
link             4120 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(user, &intf->users, link) {
link             4128 drivers/char/ipmi/ipmi_msghandler.c 						 link) {
link             4129 drivers/char/ipmi/ipmi_msghandler.c 				list_del(&recv_msg->link);
link             4146 drivers/char/ipmi/ipmi_msghandler.c 		list_add_tail(&recv_msg->link, &msgs);
link             4152 drivers/char/ipmi/ipmi_msghandler.c 		list_for_each_entry_safe(recv_msg, recv_msg2, &msgs, link) {
link             4153 drivers/char/ipmi/ipmi_msghandler.c 			list_del(&recv_msg->link);
link             4173 drivers/char/ipmi/ipmi_msghandler.c 		list_add_tail(&recv_msg->link, &intf->waiting_events);
link             4438 drivers/char/ipmi/ipmi_msghandler.c 				     struct ipmi_smi_msg, link);
link             4439 drivers/char/ipmi/ipmi_msghandler.c 		list_del(&smi_msg->link);
link             4454 drivers/char/ipmi/ipmi_msghandler.c 			list_add(&smi_msg->link, &intf->waiting_rcv_msgs);
link             4475 drivers/char/ipmi/ipmi_msghandler.c 		list_for_each_entry_rcu(user, &intf->users, link) {
link             4514 drivers/char/ipmi/ipmi_msghandler.c 			newmsg = list_entry(entry, struct ipmi_smi_msg, link);
link             4542 drivers/char/ipmi/ipmi_msghandler.c 	list_add_tail(&msg->link, &intf->waiting_rcv_msgs);
link             4621 drivers/char/ipmi/ipmi_msghandler.c 		list_add_tail(&msg->link, timeouts);
link             4713 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_safe(msg, msg2, &timeouts, link)
link             4768 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(intf, &ipmi_interfaces, link) {
link             5077 drivers/char/ipmi/ipmi_msghandler.c 	list_for_each_entry_rcu(intf, &ipmi_interfaces, link) {
link             5107 drivers/char/ipmi/ipmi_msghandler.c 		list_for_each_entry_rcu(user, &intf->users, link) {
link              244 drivers/char/ipmi/ipmi_si_intf.c 	struct list_head link;
link             1853 drivers/char/ipmi/ipmi_si_intf.c 	list_for_each_entry(e, &smi_infos, link) {
link             1930 drivers/char/ipmi/ipmi_si_intf.c 	list_add_tail(&new_smi->link, &smi_infos);
link             2115 drivers/char/ipmi/ipmi_si_intf.c 	list_for_each_entry(e, &smi_infos, link) {
link             2132 drivers/char/ipmi/ipmi_si_intf.c 	list_for_each_entry(e, &smi_infos, link) {
link             2231 drivers/char/ipmi/ipmi_si_intf.c 	list_del(&smi_info->link);
link             2245 drivers/char/ipmi/ipmi_si_intf.c 	list_for_each_entry(e, &smi_infos, link) {
link             2265 drivers/char/ipmi/ipmi_si_intf.c 	list_for_each_entry_safe(e, tmp_e, &smi_infos, link) {
link             2294 drivers/char/ipmi/ipmi_si_intf.c 	list_for_each_entry_safe(e, tmp_e, &smi_infos, link)
link              197 drivers/char/ipmi/ipmi_ssif.c 	struct list_head link;
link             1321 drivers/char/ipmi/ipmi_ssif.c 	list_for_each_entry(addr_info, &ssif_infos, link) {
link             1432 drivers/char/ipmi/ipmi_ssif.c 	list_for_each_entry(info, &ssif_infos, link) {
link             1632 drivers/char/ipmi/ipmi_ssif.c 	list_add_tail(&info->link, &ssif_infos);
link             1646 drivers/char/ipmi/ipmi_ssif.c 	list_for_each_entry(info, &ssif_infos, link) {
link             1997 drivers/char/ipmi/ipmi_ssif.c 	list_add_tail(&addr_info->link, &ssif_infos);
link             2013 drivers/char/ipmi/ipmi_ssif.c 	list_for_each_entry_safe(info, tmp, &ssif_infos, link) {
link             2014 drivers/char/ipmi/ipmi_ssif.c 		list_del(&info->link);
link             2027 drivers/char/ipmi/ipmi_ssif.c 	list_for_each_entry(info, &ssif_infos, link)
link             2035 drivers/char/ipmi/ipmi_ssif.c 	list_for_each_entry(info, &ssif_infos, link) {
link             2123 drivers/char/ipmi/ipmi_ssif.c 	list_del(&addr_info->link);
link               67 drivers/char/pcmcia/cm4000_cs.c static void cm4000_release(struct pcmcia_device *link);
link             1404 drivers/char/pcmcia/cm4000_cs.c 	struct pcmcia_device *link;
link             1422 drivers/char/pcmcia/cm4000_cs.c 	link = dev_table[iminor(inode)];
link             1423 drivers/char/pcmcia/cm4000_cs.c 	if (!pcmcia_dev_present(link)) {
link             1635 drivers/char/pcmcia/cm4000_cs.c 	struct pcmcia_device *link;
link             1643 drivers/char/pcmcia/cm4000_cs.c 	link = dev_table[minor];
link             1644 drivers/char/pcmcia/cm4000_cs.c 	if (link == NULL || !pcmcia_dev_present(link)) {
link             1649 drivers/char/pcmcia/cm4000_cs.c 	if (link->open) {
link             1654 drivers/char/pcmcia/cm4000_cs.c 	dev = link->priv;
link             1682 drivers/char/pcmcia/cm4000_cs.c 	link->open = 1;		/* only one open per device */
link             1694 drivers/char/pcmcia/cm4000_cs.c 	struct pcmcia_device *link;
link             1700 drivers/char/pcmcia/cm4000_cs.c 	link = dev_table[minor];
link             1701 drivers/char/pcmcia/cm4000_cs.c 	if (link == NULL)
link             1704 drivers/char/pcmcia/cm4000_cs.c 	dev = link->priv;
link             1713 drivers/char/pcmcia/cm4000_cs.c 	link->open = 0;		/* only one open per device */
link             1720 drivers/char/pcmcia/cm4000_cs.c static void cmm_cm4000_release(struct pcmcia_device * link)
link             1722 drivers/char/pcmcia/cm4000_cs.c 	struct cm4000_dev *dev = link->priv;
link             1728 drivers/char/pcmcia/cm4000_cs.c 	while (link->open) {
link             1735 drivers/char/pcmcia/cm4000_cs.c 		wait_event(dev->devq, (link->open == 0));
link             1749 drivers/char/pcmcia/cm4000_cs.c static int cm4000_config(struct pcmcia_device * link, int devno)
link             1751 drivers/char/pcmcia/cm4000_cs.c 	link->config_flags |= CONF_AUTO_SET_IO;
link             1754 drivers/char/pcmcia/cm4000_cs.c 	if (pcmcia_loop_config(link, cm4000_config_check, NULL))
link             1757 drivers/char/pcmcia/cm4000_cs.c 	if (pcmcia_enable_device(link))
link             1763 drivers/char/pcmcia/cm4000_cs.c 	cm4000_release(link);
link             1767 drivers/char/pcmcia/cm4000_cs.c static int cm4000_suspend(struct pcmcia_device *link)
link             1771 drivers/char/pcmcia/cm4000_cs.c 	dev = link->priv;
link             1777 drivers/char/pcmcia/cm4000_cs.c static int cm4000_resume(struct pcmcia_device *link)
link             1781 drivers/char/pcmcia/cm4000_cs.c 	dev = link->priv;
link             1782 drivers/char/pcmcia/cm4000_cs.c 	if (link->open)
link             1788 drivers/char/pcmcia/cm4000_cs.c static void cm4000_release(struct pcmcia_device *link)
link             1790 drivers/char/pcmcia/cm4000_cs.c 	cmm_cm4000_release(link);	/* delay release until device closed */
link             1791 drivers/char/pcmcia/cm4000_cs.c 	pcmcia_disable_device(link);
link             1794 drivers/char/pcmcia/cm4000_cs.c static int cm4000_probe(struct pcmcia_device *link)
link             1813 drivers/char/pcmcia/cm4000_cs.c 	dev->p_dev = link;
link             1814 drivers/char/pcmcia/cm4000_cs.c 	link->priv = dev;
link             1815 drivers/char/pcmcia/cm4000_cs.c 	dev_table[i] = link;
link             1822 drivers/char/pcmcia/cm4000_cs.c 	ret = cm4000_config(link, i);
link             1834 drivers/char/pcmcia/cm4000_cs.c static void cm4000_detach(struct pcmcia_device *link)
link             1836 drivers/char/pcmcia/cm4000_cs.c 	struct cm4000_dev *dev = link->priv;
link             1841 drivers/char/pcmcia/cm4000_cs.c 		if (dev_table[devno] == link)
link             1848 drivers/char/pcmcia/cm4000_cs.c 	cm4000_release(link);
link               62 drivers/char/pcmcia/cm4040_cs.c static void reader_release(struct pcmcia_device *link);
link              438 drivers/char/pcmcia/cm4040_cs.c 	struct pcmcia_device *link;
link              446 drivers/char/pcmcia/cm4040_cs.c 	link = dev_table[minor];
link              447 drivers/char/pcmcia/cm4040_cs.c 	if (link == NULL || !pcmcia_dev_present(link)) {
link              452 drivers/char/pcmcia/cm4040_cs.c 	if (link->open) {
link              457 drivers/char/pcmcia/cm4040_cs.c 	dev = link->priv;
link              466 drivers/char/pcmcia/cm4040_cs.c 	link->open = 1;
link              480 drivers/char/pcmcia/cm4040_cs.c 	struct pcmcia_device *link;
link              489 drivers/char/pcmcia/cm4040_cs.c 	link = dev_table[minor];
link              490 drivers/char/pcmcia/cm4040_cs.c 	if (link == NULL)
link              495 drivers/char/pcmcia/cm4040_cs.c 	link->open = 0;
link              502 drivers/char/pcmcia/cm4040_cs.c static void cm4040_reader_release(struct pcmcia_device *link)
link              504 drivers/char/pcmcia/cm4040_cs.c 	struct reader_dev *dev = link->priv;
link              507 drivers/char/pcmcia/cm4040_cs.c 	while (link->open) {
link              510 drivers/char/pcmcia/cm4040_cs.c  		wait_event(dev->devq, (link->open == 0));
link              522 drivers/char/pcmcia/cm4040_cs.c static int reader_config(struct pcmcia_device *link, int devno)
link              527 drivers/char/pcmcia/cm4040_cs.c 	link->config_flags |= CONF_AUTO_SET_IO;
link              529 drivers/char/pcmcia/cm4040_cs.c 	if (pcmcia_loop_config(link, cm4040_config_check, NULL))
link              532 drivers/char/pcmcia/cm4040_cs.c 	fail_rc = pcmcia_enable_device(link);
link              534 drivers/char/pcmcia/cm4040_cs.c 		dev_info(&link->dev, "pcmcia_enable_device failed 0x%x\n",
link              539 drivers/char/pcmcia/cm4040_cs.c 	dev = link->priv;
link              542 drivers/char/pcmcia/cm4040_cs.c 	      link->resource[0]);
link              548 drivers/char/pcmcia/cm4040_cs.c 	reader_release(link);
link              552 drivers/char/pcmcia/cm4040_cs.c static void reader_release(struct pcmcia_device *link)
link              554 drivers/char/pcmcia/cm4040_cs.c 	cm4040_reader_release(link);
link              555 drivers/char/pcmcia/cm4040_cs.c 	pcmcia_disable_device(link);
link              558 drivers/char/pcmcia/cm4040_cs.c static int reader_probe(struct pcmcia_device *link)
link              578 drivers/char/pcmcia/cm4040_cs.c 	link->priv = dev;
link              579 drivers/char/pcmcia/cm4040_cs.c 	dev->p_dev = link;
link              581 drivers/char/pcmcia/cm4040_cs.c 	dev_table[i] = link;
link              589 drivers/char/pcmcia/cm4040_cs.c 	ret = reader_config(link, i);
link              601 drivers/char/pcmcia/cm4040_cs.c static void reader_detach(struct pcmcia_device *link)
link              603 drivers/char/pcmcia/cm4040_cs.c 	struct reader_dev *dev = link->priv;
link              608 drivers/char/pcmcia/cm4040_cs.c 		if (dev_table[devno] == link)
link              614 drivers/char/pcmcia/cm4040_cs.c 	reader_release(link);
link              225 drivers/char/pcmcia/scr24x_cs.c static int scr24x_config_check(struct pcmcia_device *link, void *priv_data)
link              227 drivers/char/pcmcia/scr24x_cs.c 	if (resource_size(link->resource[PCMCIA_IOPORT_0]) != 0x11)
link              229 drivers/char/pcmcia/scr24x_cs.c 	return pcmcia_request_io(link);
link              232 drivers/char/pcmcia/scr24x_cs.c static int scr24x_probe(struct pcmcia_device *link)
link              250 drivers/char/pcmcia/scr24x_cs.c 	link->priv = dev;
link              251 drivers/char/pcmcia/scr24x_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              253 drivers/char/pcmcia/scr24x_cs.c 	ret = pcmcia_loop_config(link, scr24x_config_check, NULL);
link              257 drivers/char/pcmcia/scr24x_cs.c 	dev->dev = &link->dev;
link              258 drivers/char/pcmcia/scr24x_cs.c 	dev->regs = devm_ioport_map(&link->dev,
link              259 drivers/char/pcmcia/scr24x_cs.c 				link->resource[PCMCIA_IOPORT_0]->start,
link              260 drivers/char/pcmcia/scr24x_cs.c 				resource_size(link->resource[PCMCIA_IOPORT_0]));
link              273 drivers/char/pcmcia/scr24x_cs.c 	ret = pcmcia_enable_device(link);
link              275 drivers/char/pcmcia/scr24x_cs.c 		pcmcia_disable_device(link);
link              282 drivers/char/pcmcia/scr24x_cs.c 	dev_info(&link->dev, "SCR24x Chip Card Interface\n");
link              292 drivers/char/pcmcia/scr24x_cs.c static void scr24x_remove(struct pcmcia_device *link)
link              294 drivers/char/pcmcia/scr24x_cs.c 	struct scr24x_dev *dev = (struct scr24x_dev *)link->priv;
link              298 drivers/char/pcmcia/scr24x_cs.c 	pcmcia_disable_device(link);
link              471 drivers/char/pcmcia/synclink_cs.c static int mgslpc_config(struct pcmcia_device *link);
link              514 drivers/char/pcmcia/synclink_cs.c static int mgslpc_probe(struct pcmcia_device *link)
link              545 drivers/char/pcmcia/synclink_cs.c 	info->p_dev = link;
link              546 drivers/char/pcmcia/synclink_cs.c 	link->priv = info;
link              550 drivers/char/pcmcia/synclink_cs.c 	ret = mgslpc_config(link);
link              561 drivers/char/pcmcia/synclink_cs.c 	mgslpc_release((u_long)link);
link              576 drivers/char/pcmcia/synclink_cs.c static int mgslpc_config(struct pcmcia_device *link)
link              578 drivers/char/pcmcia/synclink_cs.c 	MGSLPC_INFO *info = link->priv;
link              582 drivers/char/pcmcia/synclink_cs.c 		printk("mgslpc_config(0x%p)\n", link);
link              584 drivers/char/pcmcia/synclink_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              586 drivers/char/pcmcia/synclink_cs.c 	ret = pcmcia_loop_config(link, mgslpc_ioprobe, NULL);
link              590 drivers/char/pcmcia/synclink_cs.c 	link->config_index = 8;
link              591 drivers/char/pcmcia/synclink_cs.c 	link->config_regs = PRESENT_OPTION;
link              593 drivers/char/pcmcia/synclink_cs.c 	ret = pcmcia_request_irq(link, mgslpc_isr);
link              596 drivers/char/pcmcia/synclink_cs.c 	ret = pcmcia_enable_device(link);
link              600 drivers/char/pcmcia/synclink_cs.c 	info->io_base = link->resource[0]->start;
link              601 drivers/char/pcmcia/synclink_cs.c 	info->irq_level = link->irq;
link              605 drivers/char/pcmcia/synclink_cs.c 	mgslpc_release((u_long)link);
link              615 drivers/char/pcmcia/synclink_cs.c 	struct pcmcia_device *link = (struct pcmcia_device *)arg;
link              618 drivers/char/pcmcia/synclink_cs.c 		printk("mgslpc_release(0x%p)\n", link);
link              620 drivers/char/pcmcia/synclink_cs.c 	pcmcia_disable_device(link);
link              623 drivers/char/pcmcia/synclink_cs.c static void mgslpc_detach(struct pcmcia_device *link)
link              626 drivers/char/pcmcia/synclink_cs.c 		printk("mgslpc_detach(0x%p)\n", link);
link              628 drivers/char/pcmcia/synclink_cs.c 	((MGSLPC_INFO *)link->priv)->stop = 1;
link              629 drivers/char/pcmcia/synclink_cs.c 	mgslpc_release((u_long)link);
link              631 drivers/char/pcmcia/synclink_cs.c 	mgslpc_remove_device((MGSLPC_INFO *)link->priv);
link              634 drivers/char/pcmcia/synclink_cs.c static int mgslpc_suspend(struct pcmcia_device *link)
link              636 drivers/char/pcmcia/synclink_cs.c 	MGSLPC_INFO *info = link->priv;
link              643 drivers/char/pcmcia/synclink_cs.c static int mgslpc_resume(struct pcmcia_device *link)
link              645 drivers/char/pcmcia/synclink_cs.c 	MGSLPC_INFO *info = link->priv;
link             4243 drivers/clk/clk.c 	struct list_head link;
link             4325 drivers/clk/clk.c 	list_add(&cp->link, &of_clk_providers);
link             4362 drivers/clk/clk.c 	list_add(&cp->link, &of_clk_providers);
link             4449 drivers/clk/clk.c 	list_for_each_entry(cp, &of_clk_providers, link) {
link             4451 drivers/clk/clk.c 			list_del(&cp->link);
link             4586 drivers/clk/clk.c 	list_for_each_entry(provider, &of_clk_providers, link) {
link              221 drivers/clk/ti/clk.c 	struct list_head link;
link              248 drivers/clk/ti/clk.c 	list_add(&retry->link, &retry_list);
link              384 drivers/clk/ti/clk.c 		list_for_each_entry_safe(retry, tmp, &retry_list, link) {
link              387 drivers/clk/ti/clk.c 			list_del(&retry->link);
link               67 drivers/clk/ti/composite.c 	struct list_head link;
link               93 drivers/clk/ti/composite.c 	list_for_each_entry(comp, &component_clks, link) {
link              198 drivers/clk/ti/composite.c 		list_del(&cclk->comp_clks[i]->link);
link              272 drivers/clk/ti/composite.c 	list_add(&clk->link, &component_clks);
link              138 drivers/dma-buf/sw_sync.c 	if (!list_empty(&pt->link)) {
link              139 drivers/dma-buf/sw_sync.c 		list_del(&pt->link);
link              202 drivers/dma-buf/sw_sync.c 	list_for_each_entry_safe(pt, next, &obj->pt_list, link) {
link              206 drivers/dma-buf/sw_sync.c 		list_del_init(&pt->link);
link              245 drivers/dma-buf/sw_sync.c 	INIT_LIST_HEAD(&pt->link);
link              277 drivers/dma-buf/sw_sync.c 		list_add_tail(&pt->link,
link              278 drivers/dma-buf/sw_sync.c 			      parent ? &rb_entry(parent, typeof(*pt), node)->link : &obj->pt_list);
link              316 drivers/dma-buf/sw_sync.c 	list_for_each_entry_safe(pt, next, &obj->pt_list, link) {
link              115 drivers/dma-buf/sync_debug.c 		struct sync_pt *pt = container_of(pos, struct sync_pt, link);
link               61 drivers/dma-buf/sync_debug.h 	struct list_head link;
link              253 drivers/edac/edac_device.c 		edac_dev = list_entry(item, struct edac_device_ctl_info, link);
link              287 drivers/edac/edac_device.c 		rover = list_entry(item, struct edac_device_ctl_info, link);
link              298 drivers/edac/edac_device.c 	list_add_tail_rcu(&edac_dev->link, insert_before);
link              322 drivers/edac/edac_device.c 	list_del_rcu(&edac_device->link);
link              328 drivers/edac/edac_device.c 	INIT_LIST_HEAD(&edac_device->link);
link              153 drivers/edac/edac_device.h 	struct list_head link;
link              536 drivers/edac/edac_mc.c 		mci = list_entry(item, struct mem_ctl_info, link);
link              603 drivers/edac/edac_mc.c 		mci = list_entry(item, struct mem_ctl_info, link);
link              633 drivers/edac/edac_mc.c 		p = list_entry(item, struct mem_ctl_info, link);
link              644 drivers/edac/edac_mc.c 	list_add_tail_rcu(&mci->link, insert_before);
link              662 drivers/edac/edac_mc.c 	list_del_rcu(&mci->link);
link              668 drivers/edac/edac_mc.c 	INIT_LIST_HEAD(&mci->link);
link              681 drivers/edac/edac_mc.c 		mci = list_entry(item, struct mem_ctl_info, link);
link               83 drivers/edac/edac_pci.c 		pci = list_entry(item, struct edac_pci_ctl_info, link);
link              116 drivers/edac/edac_pci.c 		rover = list_entry(item, struct edac_pci_ctl_info, link);
link              127 drivers/edac/edac_pci.c 	list_add_tail_rcu(&pci->link, insert_before);
link              152 drivers/edac/edac_pci.c 	list_del_rcu(&pci->link);
link              158 drivers/edac/edac_pci.c 	INIT_LIST_HEAD(&pci->link);
link               47 drivers/edac/edac_pci.h 	struct list_head link;
link             1049 drivers/edac/thunderx_edac.c 	int link;
link             1177 drivers/edac/thunderx_edac.c 	ctx->link = msix->entry;
link             1178 drivers/edac/thunderx_edac.c 	ctx->reg_com_link_int = readq(ocx->regs + OCX_COM_LINKX_INT(ctx->link));
link             1180 drivers/edac/thunderx_edac.c 	writeq(ctx->reg_com_link_int, ocx->regs + OCX_COM_LINKX_INT(ctx->link));
link             1215 drivers/edac/thunderx_edac.c 			 ctx->link, ctx->reg_com_link_int);
link              122 drivers/firewire/core-card.c 	list_for_each_entry (desc, &descriptor_list, link) {
link              134 drivers/firewire/core-card.c 	list_for_each_entry (desc, &descriptor_list, link) {
link              154 drivers/firewire/core-card.c 	list_for_each_entry (card, &card_list, link) {
link              189 drivers/firewire/core-card.c 		list_add_tail(&desc->link, &descriptor_list);
link              208 drivers/firewire/core-card.c 	list_del(&desc->link);
link              560 drivers/firewire/core-card.c 		list_add_tail(&card->link, &card_list);
link              677 drivers/firewire/core-card.c 	list_del_init(&card->link);
link               67 drivers/firewire/core-cdev.c 	struct list_head link;
link              158 drivers/firewire/core-cdev.c 	struct list_head link;
link              263 drivers/firewire/core-cdev.c 	INIT_LIST_HEAD(&client->link);
link              285 drivers/firewire/core-cdev.c 		list_add_tail(&event->link, &client->event_list);
link              309 drivers/firewire/core-cdev.c 	event = list_first_entry(&client->event_list, struct event, link);
link              310 drivers/firewire/core-cdev.c 	list_del(&event->link);
link              363 drivers/firewire/core-cdev.c 	list_for_each_entry(c, &device->client_list, link)
link              465 drivers/firewire/core-cdev.c 	if (ret == 0 && list_empty(&client->link))
link              466 drivers/firewire/core-cdev.c 		list_add_tail(&client->link, &client->device->client_list);
link             1747 drivers/firewire/core-cdev.c 	list_del(&client->link);
link             1766 drivers/firewire/core-cdev.c 	list_for_each_entry_safe(event, next_event, &client->event_list, link)
link              797 drivers/firewire/core-device.c 	    && !list_empty(&device->card->link)) {
link             1311 drivers/firewire/core-device.c 				list_empty(&card->link) ? 0 : SHUTDOWN_DELAY);
link              115 drivers/firewire/core-topology.c 	INIT_LIST_HEAD(&node->link);
link              160 drivers/firewire/core-topology.c 	return list_entry(l, struct fw_node, link);
link              261 drivers/firewire/core-topology.c 				child = fw_node(child->link.next);
link              280 drivers/firewire/core-topology.c 		list_add_tail(&node->link, &stack);
link              322 drivers/firewire/core-topology.c 	list_add_tail(&root->link, &list);
link              324 drivers/firewire/core-topology.c 	list_for_each_entry(node, &list, link) {
link              335 drivers/firewire/core-topology.c 				list_add_tail(&child->link, &list);
link              342 drivers/firewire/core-topology.c 	list_for_each_entry_safe(node, next, &list, link)
link              416 drivers/firewire/core-topology.c 	list_add_tail(&card->local_node->link, &list0);
link              418 drivers/firewire/core-topology.c 	list_add_tail(&root->link, &list1);
link              423 drivers/firewire/core-topology.c 	while (&node0->link != &list0) {
link              457 drivers/firewire/core-topology.c 				list_add_tail(&node0->ports[i]->link, &list0);
link              458 drivers/firewire/core-topology.c 				list_add_tail(&node1->ports[i]->link, &list1);
link              483 drivers/firewire/core-topology.c 		node0 = fw_node(node0->link.next);
link              484 drivers/firewire/core-topology.c 		next1 = fw_node(node1->link.next);
link               80 drivers/firewire/core-transaction.c 	list_for_each_entry(t, &card->transaction_list, link) {
link               86 drivers/firewire/core-transaction.c 			list_del_init(&t->link);
link               93 drivers/firewire/core-transaction.c 	if (&t->link != &card->transaction_list) {
link              134 drivers/firewire/core-transaction.c 	if (list_empty(&t->link)) {
link              138 drivers/firewire/core-transaction.c 	list_del(&t->link);
link              152 drivers/firewire/core-transaction.c 	if (list_empty(&t->link) || WARN_ON(t->is_split_transaction)) {
link              373 drivers/firewire/core-transaction.c 	list_add_tail(&t->link, &card->transaction_list);
link              488 drivers/firewire/core-transaction.c 	list_for_each_entry_rcu(handler, list, link) {
link              509 drivers/firewire/core-transaction.c 	list_for_each_entry_rcu(handler, list, link) {
link              588 drivers/firewire/core-transaction.c 			list_add_tail_rcu(&handler->link, &address_handler_list);
link              612 drivers/firewire/core-transaction.c 	list_del_rcu(&handler->link);
link              892 drivers/firewire/core-transaction.c 	list_for_each_entry_rcu(handler, &address_handler_list, link) {
link              950 drivers/firewire/core-transaction.c 	list_for_each_entry(t, &card->transaction_list, link) {
link              956 drivers/firewire/core-transaction.c 			list_del_init(&t->link);
link              963 drivers/firewire/core-transaction.c 	if (&t->link == &card->transaction_list) {
link              191 drivers/firewire/core.h 	struct list_head link;
link               80 drivers/firewire/nosy.c 	struct list_head link;
link              108 drivers/firewire/nosy.c 	struct list_head link;
link              145 drivers/firewire/nosy.c 				     list_empty(&client->lynx->link))
link              271 drivers/firewire/nosy.c 	list_for_each_entry(tmp, &card_list, link)
link              286 drivers/firewire/nosy.c 	INIT_LIST_HEAD(&client->link);
link              308 drivers/firewire/nosy.c 	list_del_init(&client->link);
link              329 drivers/firewire/nosy.c 	if (list_empty(&client->lynx->link))
link              364 drivers/firewire/nosy.c 		list_add_tail(&client->link, &client->lynx->client_list);
link              371 drivers/firewire/nosy.c 		list_del_init(&client->link);
link              424 drivers/firewire/nosy.c 	list_for_each_entry(client, &lynx->client_list, link)
link              444 drivers/firewire/nosy.c 	list_for_each_entry(client, &lynx->client_list, link)
link              497 drivers/firewire/nosy.c 	list_del_init(&lynx->link);
link              505 drivers/firewire/nosy.c 	list_for_each_entry(client, &lynx->client_list, link)
link              651 drivers/firewire/nosy.c 	list_add_tail(&lynx->link, &card_list);
link              120 drivers/firewire/sbp2.c 	struct list_head link;
link              262 drivers/firewire/sbp2.c 	struct list_head link;
link              436 drivers/firewire/sbp2.c 	list_for_each_entry(orb, &lu->orb_list, link) {
link              440 drivers/firewire/sbp2.c 			list_del(&orb->link);
link              446 drivers/firewire/sbp2.c 	if (&orb->link != &lu->orb_list) {
link              476 drivers/firewire/sbp2.c 		list_del(&orb->link);
link              500 drivers/firewire/sbp2.c 	list_add_tail(&orb->link, &lu->orb_list);
link              523 drivers/firewire/sbp2.c 	list_for_each_entry_safe(orb, next, &list, link) {
link              992 drivers/firewire/sbp2.c 	list_add_tail(&lu->link, &tgt->lu_list);
link             1178 drivers/firewire/sbp2.c 	list_for_each_entry(lu, &tgt->lu_list, link)
link             1203 drivers/firewire/sbp2.c 	list_for_each_entry(lu, &tgt->lu_list, link) {
link             1222 drivers/firewire/sbp2.c 	list_for_each_entry_safe(lu, next, &tgt->lu_list, link) {
link             1244 drivers/firewire/sbp2.c 		list_del(&lu->link);
link               84 drivers/fsi/fsi-core.c 	int			link;	/* FSI link# */
link              105 drivers/fsi/fsi-core.c static int fsi_master_read(struct fsi_master *master, int link,
link              107 drivers/fsi/fsi-core.c static int fsi_master_write(struct fsi_master *master, int link,
link              109 drivers/fsi/fsi-core.c static int fsi_master_break(struct fsi_master *master, int link);
link              207 drivers/fsi/fsi-core.c 	int rc, link;
link              210 drivers/fsi/fsi-core.c 	link = slave->link;
link              213 drivers/fsi/fsi-core.c 	rc = fsi_master_read(master, link, id, FSI_SLAVE_BASE + FSI_SISC,
link              218 drivers/fsi/fsi-core.c 	rc =  fsi_master_read(master, link, id, FSI_SLAVE_BASE + FSI_SSTAT,
link              227 drivers/fsi/fsi-core.c 	return fsi_master_write(master, link, id, FSI_SLAVE_BASE + FSI_SISC,
link              274 drivers/fsi/fsi-core.c 	return fsi_master_write(slave->master, slave->link, slave->id,
link              283 drivers/fsi/fsi-core.c 	int rc, link;
link              290 drivers/fsi/fsi-core.c 	link = slave->link;
link              305 drivers/fsi/fsi-core.c 		rc = master->term(master, link, id);
link              307 drivers/fsi/fsi-core.c 			rc = fsi_master_read(master, link, id, 0,
link              320 drivers/fsi/fsi-core.c 	rc = fsi_master_break(master, link);
link              332 drivers/fsi/fsi-core.c 		master->link_config(master, link,
link              350 drivers/fsi/fsi-core.c 		rc = fsi_master_read(slave->master, slave->link,
link              375 drivers/fsi/fsi-core.c 		rc = fsi_master_write(slave->master, slave->link,
link              527 drivers/fsi/fsi-core.c 					slave->master->idx, slave->link,
link              646 drivers/fsi/fsi-core.c 		int link, uint8_t id)
link              664 drivers/fsi/fsi-core.c 	return (of_read_number(prop, 1) == link) &&
link              672 drivers/fsi/fsi-core.c 		int link, uint8_t id)
link              681 drivers/fsi/fsi-core.c 		if (fsi_slave_node_matches(np, link, id))
link              803 drivers/fsi/fsi-core.c 	master->term(master, slave->link, slave->id);
link              843 drivers/fsi/fsi-core.c 		master->link_config(master, slave->link,
link              979 drivers/fsi/fsi-core.c static int fsi_slave_init(struct fsi_master *master, int link, uint8_t id)
link              993 drivers/fsi/fsi-core.c 	rc = fsi_master_read(master, link, id, 0, &data, sizeof(data));
link              996 drivers/fsi/fsi-core.c 				link, id, rc);
link             1004 drivers/fsi/fsi-core.c 				link, id);
link             1009 drivers/fsi/fsi-core.c 			cfam_id, master->idx, link, id);
link             1016 drivers/fsi/fsi-core.c 		rc = fsi_master_write(master, link, id,
link             1022 drivers/fsi/fsi-core.c 				link, id, rc);
link             1032 drivers/fsi/fsi-core.c 	dev_set_name(&slave->dev, "slave@%02x:%02x", link, id);
link             1035 drivers/fsi/fsi-core.c 	slave->dev.of_node = fsi_slave_find_of_node(master, link, id);
link             1040 drivers/fsi/fsi-core.c 	slave->link = link;
link             1059 drivers/fsi/fsi-core.c 				link, id, rc);
link             1083 drivers/fsi/fsi-core.c 		master->link_config(master, link,
link             1123 drivers/fsi/fsi-core.c static int fsi_master_read(struct fsi_master *master, int link,
link             1128 drivers/fsi/fsi-core.c 	trace_fsi_master_read(master, link, slave_id, addr, size);
link             1132 drivers/fsi/fsi-core.c 		rc = master->read(master, link, slave_id, addr, val, size);
link             1134 drivers/fsi/fsi-core.c 	trace_fsi_master_rw_result(master, link, slave_id, addr, size,
link             1140 drivers/fsi/fsi-core.c static int fsi_master_write(struct fsi_master *master, int link,
link             1145 drivers/fsi/fsi-core.c 	trace_fsi_master_write(master, link, slave_id, addr, size, val);
link             1149 drivers/fsi/fsi-core.c 		rc = master->write(master, link, slave_id, addr, val, size);
link             1151 drivers/fsi/fsi-core.c 	trace_fsi_master_rw_result(master, link, slave_id, addr, size,
link             1157 drivers/fsi/fsi-core.c static int fsi_master_link_enable(struct fsi_master *master, int link)
link             1160 drivers/fsi/fsi-core.c 		return master->link_enable(master, link);
link             1168 drivers/fsi/fsi-core.c static int fsi_master_break(struct fsi_master *master, int link)
link             1172 drivers/fsi/fsi-core.c 	trace_fsi_master_break(master, link);
link             1175 drivers/fsi/fsi-core.c 		rc = master->send_break(master, link);
link             1177 drivers/fsi/fsi-core.c 		master->link_config(master, link, 16, 16);
link             1184 drivers/fsi/fsi-core.c 	int link, rc;
link             1186 drivers/fsi/fsi-core.c 	for (link = 0; link < master->n_links; link++) {
link             1187 drivers/fsi/fsi-core.c 		rc = fsi_master_link_enable(master, link);
link             1190 drivers/fsi/fsi-core.c 				"enable link %d failed: %d\n", link, rc);
link             1193 drivers/fsi/fsi-core.c 		rc = fsi_master_break(master, link);
link             1196 drivers/fsi/fsi-core.c 				"break to link %d failed: %d\n", link, rc);
link             1200 drivers/fsi/fsi-core.c 		fsi_slave_init(master, link, 0);
link              597 drivers/fsi/fsi-master-ast-cf.c static int fsi_master_acf_read(struct fsi_master *_master, int link,
link              605 drivers/fsi/fsi-master-ast-cf.c 	if (link != 0)
link              621 drivers/fsi/fsi-master-ast-cf.c static int fsi_master_acf_write(struct fsi_master *_master, int link,
link              629 drivers/fsi/fsi-master-ast-cf.c 	if (link != 0)
link              647 drivers/fsi/fsi-master-ast-cf.c 			       int link, uint8_t id)
link              653 drivers/fsi/fsi-master-ast-cf.c 	if (link != 0)
link              666 drivers/fsi/fsi-master-ast-cf.c static int fsi_master_acf_break(struct fsi_master *_master, int link)
link              671 drivers/fsi/fsi-master-ast-cf.c 	if (link != 0)
link             1042 drivers/fsi/fsi-master-ast-cf.c static int fsi_master_acf_link_enable(struct fsi_master *_master, int link)
link             1047 drivers/fsi/fsi-master-ast-cf.c 	if (link != 0)
link             1060 drivers/fsi/fsi-master-ast-cf.c static int fsi_master_acf_link_config(struct fsi_master *_master, int link,
link             1065 drivers/fsi/fsi-master-ast-cf.c 	if (link != 0)
link              561 drivers/fsi/fsi-master-gpio.c static int fsi_master_gpio_read(struct fsi_master *_master, int link,
link              568 drivers/fsi/fsi-master-gpio.c 	if (link != 0)
link              580 drivers/fsi/fsi-master-gpio.c static int fsi_master_gpio_write(struct fsi_master *_master, int link,
link              587 drivers/fsi/fsi-master-gpio.c 	if (link != 0)
link              600 drivers/fsi/fsi-master-gpio.c 		int link, uint8_t id)
link              606 drivers/fsi/fsi-master-gpio.c 	if (link != 0)
link              618 drivers/fsi/fsi-master-gpio.c static int fsi_master_gpio_break(struct fsi_master *_master, int link)
link              623 drivers/fsi/fsi-master-gpio.c 	if (link != 0)
link              681 drivers/fsi/fsi-master-gpio.c static int fsi_master_gpio_link_enable(struct fsi_master *_master, int link)
link              686 drivers/fsi/fsi-master-gpio.c 	if (link != 0)
link              699 drivers/fsi/fsi-master-gpio.c static int fsi_master_gpio_link_config(struct fsi_master *_master, int link,
link              704 drivers/fsi/fsi-master-gpio.c 	if (link != 0)
link               91 drivers/fsi/fsi-master-hub.c static int hub_master_read(struct fsi_master *master, int link,
link               99 drivers/fsi/fsi-master-hub.c 	addr += hub->addr + (link * FSI_HUB_LINK_SIZE);
link              103 drivers/fsi/fsi-master-hub.c static int hub_master_write(struct fsi_master *master, int link,
link              111 drivers/fsi/fsi-master-hub.c 	addr += hub->addr + (link * FSI_HUB_LINK_SIZE);
link              115 drivers/fsi/fsi-master-hub.c static int hub_master_break(struct fsi_master *master, int link)
link              123 drivers/fsi/fsi-master-hub.c 	return hub_master_write(master, link, 0, addr, &cmd, sizeof(cmd));
link              126 drivers/fsi/fsi-master-hub.c static int hub_master_link_enable(struct fsi_master *master, int link)
link              133 drivers/fsi/fsi-master-hub.c 	idx = link / 32;
link              134 drivers/fsi/fsi-master-hub.c 	bit = link % 32;
link               56 drivers/fsi/fsi-master.h 	int		(*read)(struct fsi_master *, int link, uint8_t id,
link               58 drivers/fsi/fsi-master.h 	int		(*write)(struct fsi_master *, int link, uint8_t id,
link               60 drivers/fsi/fsi-master.h 	int		(*term)(struct fsi_master *, int link, uint8_t id);
link               61 drivers/fsi/fsi-master.h 	int		(*send_break)(struct fsi_master *, int link);
link               62 drivers/fsi/fsi-master.h 	int		(*link_enable)(struct fsi_master *, int link);
link               63 drivers/fsi/fsi-master.h 	int		(*link_config)(struct fsi_master *, int link,
link               67 drivers/fsi/fsi-scom.c 	struct list_head link;
link             1154 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	struct kfd_iolink_properties *link, *cpu_link;
link             1177 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	list_for_each_entry(link, &dev->io_link_props, list) {
link             1178 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		link->flags = flag;
link             1180 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 				link->node_to);
link             1184 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 				if (cpu_link->node_to == link->node_from)
link              346 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		list_add_tail(&e->base.link, &adev->ddev->vblank_event_list);
link             1082 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static void emulated_link_detect(struct dc_link *link)
link             1087 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	struct dc_context *dc_ctx = link->ctx;
link             1091 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	link->type = dc_connection_none;
link             1092 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	prev_sink = link->local_sink;
link             1097 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	switch (link->connector_signal) {
link             1138 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			link->connector_signal);
link             1142 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	sink_init_data.link = link;
link             1152 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	link->local_sink = sink;
link             1155 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			link->ctx,
link             1156 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			link,
link             2202 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 				      struct dc_link *link)
link             2207 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if ((link->connector_signal & (SIGNAL_TYPE_EDP | SIGNAL_TYPE_LVDS)) &&
link             2208 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	    link->type != dc_connection_none) {
link             2217 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			dm->backlight_link = link;
link             2308 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		struct dc_link *link = NULL;
link             2335 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		link = dc_get_link_at_index(dm->dc, i);
link             2337 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (!dc_link_detect_sink(link, &new_connection_type))
link             2341 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			emulated_link_detect(link);
link             2344 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		} else if (dc_link_detect(link, DETECT_REASON_BOOT)) {
link             2346 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			register_backlight_device(dm, link);
link             3480 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	sink_init_data.link = aconnector->dc_link;
link             3944 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	const struct dc_link *link = aconnector->dc_link;
link             3951 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if ((link->connector_signal & (SIGNAL_TYPE_EDP | SIGNAL_TYPE_LVDS)) &&
link             3952 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	    link->type != dc_connection_none &&
link             4047 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			.link = aconnector->dc_link,
link             4081 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	struct dc_link *link = (struct dc_link *)aconnector->dc_link;
link             4087 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (link->connector_signal == SIGNAL_TYPE_DISPLAY_PORT) {
link             4088 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		link->verified_link_cap.lane_count = LANE_COUNT_FOUR;
link             4089 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		link->verified_link_cap.link_rate = LINK_RATE_HIGH2;
link             5031 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 				     struct dc_link *link,
link             5044 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	aconnector->dc_link = link;
link             5061 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			link->link_enc->features.hdmi_ycbcr420_supported ? true : false;
link             5066 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			link->link_enc->features.dp_ycbcr420_supported ? true : false;
link             5194 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	struct dc_link *link = dc_get_link_at_index(dc, link_index);
link             5197 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	link->priv = aconnector;
link             5201 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	i2c = create_i2c(link->ddc, link->link_index, &res);
link             5211 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		DRM_ERROR("Failed to register hw i2c %d\n", link->link_index);
link             5215 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	connector_type = to_drm_connector_type(link->connector_signal);
link             5237 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		link,
link              373 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h 				     struct dc_link *link,
link               81 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc_link *link = connector->dc_link;
link              100 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->cur_link_settings.lane_count,
link              101 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->cur_link_settings.link_rate,
link              102 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->cur_link_settings.link_spread);
link              107 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->verified_link_cap.lane_count,
link              108 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->verified_link_cap.link_rate,
link              109 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->verified_link_cap.link_spread);
link              114 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->reported_link_cap.lane_count,
link              115 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->reported_link_cap.link_rate,
link              116 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->reported_link_cap.link_spread);
link              121 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->preferred_link_setting.lane_count,
link              122 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->preferred_link_setting.link_rate,
link              123 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->preferred_link_setting.link_spread);
link              147 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc_link *link = connector->dc_link;
link              148 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc *dc = (struct dc *)link->dc;
link              229 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	prefer_link_settings.link_spread = link->cur_link_settings.link_spread;
link              233 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	dc_link_set_preferred_link_settings(dc, &prefer_link_settings, link);
link              284 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc_link *link = connector->dc_link;
link              298 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->cur_lane_setting.VOLTAGE_SWING,
link              299 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->cur_lane_setting.PRE_EMPHASIS,
link              300 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			link->cur_lane_setting.POST_CURSOR2);
link              324 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc_link *link = connector->dc_link;
link              325 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc *dc = (struct dc *)link->dc;
link              384 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		((link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN) &&
link              385 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		(link->test_pattern_enabled));
link              391 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 				link->preferred_link_setting.lane_count;
link              393 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 				link->preferred_link_setting.link_rate;
link              395 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 				link->preferred_link_setting.link_spread;
link              398 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 				link->cur_link_settings.lane_count;
link              400 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 				link->cur_link_settings.link_rate;
link              402 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 				link->cur_link_settings.link_spread;
link              416 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	dc_link_set_drive_settings(dc, &link_lane_settings, link);
link              484 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc_link *link = connector->dc_link;
link              633 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		dc_link_enable_hpd(link);
link              635 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	prefer_link_settings.lane_count = link->verified_link_cap.lane_count;
link              636 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	prefer_link_settings.link_rate = link->verified_link_cap.link_rate;
link              637 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	prefer_link_settings.link_spread = link->verified_link_cap.link_spread;
link              639 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	cur_link_settings.lane_count = link->cur_link_settings.lane_count;
link              640 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	cur_link_settings.link_rate = link->cur_link_settings.link_rate;
link              641 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	cur_link_settings.link_spread = link->cur_link_settings.link_spread;
link              655 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		link_training_settings.lane_settings[i] = link->cur_lane_setting;
link              658 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		link,
link              670 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		dc_link_disable_hpd(link);
link              839 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc_link *link = connector->dc_link;
link              851 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	dm_helpers_dp_write_dpcd(link->ctx, link,
link              863 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	struct dc_link *link = connector->dc_link;
link              873 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	dm_helpers_dp_read_dpcd(link->ctx, link,
link              173 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	const struct dc_link *link)
link              268 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	const struct dc_link *link)
link              276 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	const struct dc_link *link)
link              428 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 		const struct dc_link *link,
link              431 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	struct amdgpu_dm_connector *aconnector = link->priv;
link              452 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 		const struct dc_link *link)
link              454 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	struct amdgpu_dm_connector *aconnector = link->priv;
link              470 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 		const struct dc_link *link,
link              476 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	struct amdgpu_dm_connector *aconnector = link->priv;
link              489 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 		const struct dc_link *link,
link              494 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	struct amdgpu_dm_connector *aconnector = link->priv;
link              507 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 		const struct dc_link *link,
link              510 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	struct amdgpu_dm_connector *aconnector = link->priv;
link              548 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	return dm_helpers_dp_write_dpcd(ctx, stream->sink->link, DP_DSC_ENABLE, &enable_dsc, 1);
link              552 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c bool dm_helpers_is_dp_sink_present(struct dc_link *link)
link              555 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	struct amdgpu_dm_connector *aconnector = link->priv;
link              563 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	dp_sink_present = dc_link_is_dp_sink_present(link);
link              570 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 		struct dc_link *link,
link              573 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	struct amdgpu_dm_connector *aconnector = link->priv;
link              579 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	if (link->aux_mode)
link              611 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 	if (link->aux_mode) {
link              616 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 					link,
link              627 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 					link,
link              633 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c 					link,
link              222 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c 				.link = aconnector->dc_link,
link              152 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c 			stream->link->ddi_channel_mapping.raw;
link              154 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c 			stream->link->link_enc->transmitter;
link              156 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c 			stream->link->cur_link_settings.lane_count;
link              158 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c 			stream->link->cur_link_settings.link_rate;
link              160 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c 			stream->link->cur_link_settings.link_spread;
link              174 drivers/gpu/drm/amd/display/dc/core/dc.c 		struct dc_link *link;
link              181 drivers/gpu/drm/amd/display/dc/core/dc.c 		link = link_create(&link_init_params);
link              183 drivers/gpu/drm/amd/display/dc/core/dc.c 		if (link) {
link              186 drivers/gpu/drm/amd/display/dc/core/dc.c 			if (link->connector_signal == SIGNAL_TYPE_EDP) {
link              191 drivers/gpu/drm/amd/display/dc/core/dc.c 					dc_link_detect_sink(link, &type);
link              198 drivers/gpu/drm/amd/display/dc/core/dc.c 				dc->links[dc->link_count] = link;
link              199 drivers/gpu/drm/amd/display/dc/core/dc.c 				link->dc = dc;
link              202 drivers/gpu/drm/amd/display/dc/core/dc.c 				link_destroy(&link);
link              208 drivers/gpu/drm/amd/display/dc/core/dc.c 		struct dc_link *link = kzalloc(sizeof(*link), GFP_KERNEL);
link              211 drivers/gpu/drm/amd/display/dc/core/dc.c 		if (link == NULL) {
link              216 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->link_index = dc->link_count;
link              217 drivers/gpu/drm/amd/display/dc/core/dc.c 		dc->links[dc->link_count] = link;
link              220 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->ctx = dc->ctx;
link              221 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->dc = dc;
link              222 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->connector_signal = SIGNAL_TYPE_VIRTUAL;
link              223 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->link_id.type = OBJECT_TYPE_CONNECTOR;
link              224 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->link_id.id = CONNECTOR_ID_VIRTUAL;
link              225 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->link_id.enum_id = ENUM_ID_1;
link              226 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->link_enc = kzalloc(sizeof(*link->link_enc), GFP_KERNEL);
link              228 drivers/gpu/drm/amd/display/dc/core/dc.c 		if (!link->link_enc) {
link              233 drivers/gpu/drm/amd/display/dc/core/dc.c 		link->link_status.dpcd_caps = &link->dpcd_caps;
link              239 drivers/gpu/drm/amd/display/dc/core/dc.c 		enc_init.connector = link->link_id;
link              243 drivers/gpu/drm/amd/display/dc/core/dc.c 		virtual_link_encoder_construct(link->link_enc, &enc_init);
link              420 drivers/gpu/drm/amd/display/dc/core/dc.c 	struct dc_link *link = stream->link;
link              425 drivers/gpu/drm/amd/display/dc/core/dc.c 		if (link->dc->current_state->res_ctx.pipe_ctx[i].stream ==
link              427 drivers/gpu/drm/amd/display/dc/core/dc.c 			pipes = &link->dc->current_state->res_ctx.pipe_ctx[i];
link              975 drivers/gpu/drm/amd/display/dc/core/dc.c 	struct dc_link *link = sink->link;
link              979 drivers/gpu/drm/amd/display/dc/core/dc.c 	if (!link->link_enc->funcs->is_dig_enabled(link->link_enc))
link              988 drivers/gpu/drm/amd/display/dc/core/dc.c 	enc_inst = link->link_enc->funcs->get_dig_frontend(link->link_enc);
link             1011 drivers/gpu/drm/amd/display/dc/core/dc.c 	if (dc_is_dp_signal(link->connector_signal)) {
link             1110 drivers/gpu/drm/amd/display/dc/core/dc.c 		const struct dc_link *link = context->streams[i]->link;
link             1135 drivers/gpu/drm/amd/display/dc/core/dc.c 		CONN_MSG_MODE(link, "{%dx%d, %dx%d@%dKhz}",
link             2397 drivers/gpu/drm/amd/display/dc/core/dc.c 	struct dc_link *link = dc->links[link_index];
link             2398 drivers/gpu/drm/amd/display/dc/core/dc.c 	struct ddc_service *ddc = link->ddc;
link             2426 drivers/gpu/drm/amd/display/dc/core/dc.c 		struct dc_link *link,
link             2444 drivers/gpu/drm/amd/display/dc/core/dc.c 	if (!init_data->link) {
link             2458 drivers/gpu/drm/amd/display/dc/core/dc.c 			link,
link             2463 drivers/gpu/drm/amd/display/dc/core/dc.c 			link->ctx,
link             2489 drivers/gpu/drm/amd/display/dc/core/dc.c void dc_link_remove_remote_sink(struct dc_link *link, struct dc_sink *sink)
link             2493 drivers/gpu/drm/amd/display/dc/core/dc.c 	if (!link->sink_count) {
link             2498 drivers/gpu/drm/amd/display/dc/core/dc.c 	for (i = 0; i < link->sink_count; i++) {
link             2499 drivers/gpu/drm/amd/display/dc/core/dc.c 		if (link->remote_sinks[i] == sink) {
link             2501 drivers/gpu/drm/amd/display/dc/core/dc.c 			link->remote_sinks[i] = NULL;
link             2504 drivers/gpu/drm/amd/display/dc/core/dc.c 			while (i < link->sink_count - 1) {
link             2505 drivers/gpu/drm/amd/display/dc/core/dc.c 				link->remote_sinks[i] = link->remote_sinks[i+1];
link             2508 drivers/gpu/drm/amd/display/dc/core/dc.c 			link->remote_sinks[i] = NULL;
link             2509 drivers/gpu/drm/amd/display/dc/core/dc.c 			link->sink_count--;
link               77 drivers/gpu/drm/amd/display/dc/core/dc_link.c static void destruct(struct dc_link *link)
link               81 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->hpd_gpio != NULL) {
link               82 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dal_gpio_close(link->hpd_gpio);
link               83 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dal_gpio_destroy_irq(&link->hpd_gpio);
link               84 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->hpd_gpio = NULL;
link               87 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->ddc)
link               88 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dal_ddc_service_destroy(&link->ddc);
link               90 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if(link->link_enc)
link               91 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->link_enc->funcs->destroy(&link->link_enc);
link               93 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->local_sink)
link               94 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dc_sink_release(link->local_sink);
link               96 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	for (i = 0; i < link->sink_count; ++i)
link               97 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dc_sink_release(link->remote_sinks[i]);
link              138 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	const struct dc_link *link)
link              147 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->is_hpd_filter_disabled)
link              150 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	switch (link->connector_signal) {
link              178 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	hpd = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service);
link              212 drivers/gpu/drm/amd/display/dc/core/dc_link.c bool dc_link_detect_sink(struct dc_link *link, enum dc_connection_type *type)
link              217 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->connector_signal == SIGNAL_TYPE_LVDS) {
link              222 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->connector_signal == SIGNAL_TYPE_EDP) {
link              224 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->dc->hwss.edp_power_control(link, true);
link              225 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->dc->hwss.edp_wait_for_hpd_ready(link, true);
link              229 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	hpd_pin = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service);
link              348 drivers/gpu/drm/amd/display/dc/core/dc_link.c bool dc_link_is_dp_sink_present(struct dc_link *link)
link              356 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dal_graphics_object_id_get_connector_id(link->link_id);
link              362 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	ddc = dal_ddc_service_get_ddc_pin(link->ddc);
link              410 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link,
link              414 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->link_enc->id, link->link_id);
link              428 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->link_id.id == CONNECTOR_ID_PCIE) {
link              432 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	switch (link->link_id.id) {
link              436 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		struct audio_support *aud_support = &link->dc->res_pool->audio_support;
link              439 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (link->link_id.id == CONNECTOR_ID_HDMI_TYPE_A)
link              452 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (!dm_helpers_is_dp_sink_present(link))
link              506 drivers/gpu/drm/amd/display/dc/core/dc_link.c static void link_disconnect_sink(struct dc_link *link)
link              508 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->local_sink) {
link              509 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dc_sink_release(link->local_sink);
link              510 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->local_sink = NULL;
link              513 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->dpcd_sink_count = 0;
link              516 drivers/gpu/drm/amd/display/dc/core/dc_link.c static void link_disconnect_remap(struct dc_sink *prev_sink, struct dc_link *link)
link              518 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dc_sink_release(link->local_sink);
link              519 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->local_sink = prev_sink;
link              523 drivers/gpu/drm/amd/display/dc/core/dc_link.c static void read_edp_current_link_settings_on_detect(struct dc_link *link)
link              536 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link,
link              546 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->cur_link_settings.lane_count = lane_count_set.bits.LANE_COUNT_SET;
link              554 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	core_link_read_dpcd(link, DP_LINK_BW_SET,
link              561 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		core_link_read_dpcd(link, DP_LINK_RATE_SET,
link              564 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link_rate_set < link->dpcd_caps.edp_supported_link_rates_count) {
link              565 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->cur_link_settings.link_rate =
link              566 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->dpcd_caps.edp_supported_link_rates[link_rate_set];
link              567 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->cur_link_settings.link_rate_set = link_rate_set;
link              568 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->cur_link_settings.use_link_rate_set = true;
link              571 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->cur_link_settings.link_rate = link_bw_set;
link              572 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->cur_link_settings.use_link_rate_set = false;
link              575 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	core_link_read_dpcd(link, DP_MAX_DOWNSPREAD,
link              577 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->cur_link_settings.link_spread =
link              583 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link,
link              590 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	sink_caps->signal = link_detect_sink(link, reason);
link              596 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (!detect_dp_sink_caps(link))
link              599 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (is_mst_supported(link)) {
link              601 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->type = dc_connection_mst_branch;
link              604 drivers/gpu/drm/amd/display/dc/core/dc_link.c 							link->ddc,
link              635 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->ctx,
link              636 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link);
link              639 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->ctx,
link              640 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link, boot)) {
link              642 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->type = dc_connection_single;
link              647 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->type != dc_connection_mst_branch &&
link              648 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			is_dp_active_dongle(link)) {
link              650 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->type = dc_connection_active_dongle;
link              651 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (!link->dpcd_caps.sink_count.bits.SINK_COUNT) {
link              655 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link_disconnect_sink(link);
link              659 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (link->dpcd_caps.dongle_type != DISPLAY_DONGLE_DP_HDMI_CONVERTER)
link              664 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		sink_caps->signal = dp_passive_dongle_detection(link->ddc,
link              683 drivers/gpu/drm/amd/display/dc/core/dc_link.c bool wait_for_alt_mode(struct dc_link *link)
link              698 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	DC_LOGGER_INIT(link->ctx->logger);
link              700 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->link_enc->funcs->is_in_alt_mode == NULL)
link              703 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	is_in_alt_mode = link->link_enc->funcs->is_in_alt_mode(link->link_enc);
link              709 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	enter_timestamp = dm_get_timestamp(link->ctx);
link              714 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->link_enc->funcs->is_in_alt_mode(link->link_enc)) {
link              716 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			finish_timestamp = dm_get_timestamp(link->ctx);
link              718 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->ctx, finish_timestamp, enter_timestamp);
link              725 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	finish_timestamp = dm_get_timestamp(link->ctx);
link              726 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	time_taken_in_ns = dm_get_elapse_time_in_ns(link->ctx, finish_timestamp,
link              741 drivers/gpu/drm/amd/display/dc/core/dc_link.c bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason)
link              747 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct audio_support *aud_support = &link->dc->res_pool->audio_support;
link              750 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_context *dc_ctx = link->ctx;
link              756 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	DC_LOGGER_INIT(link->ctx->logger);
link              758 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (dc_is_virtual_signal(link->connector_signal))
link              761 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if ((link->connector_signal == SIGNAL_TYPE_LVDS ||
link              762 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->connector_signal == SIGNAL_TYPE_EDP) &&
link              763 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->local_sink)
link              766 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (false == dc_link_detect_sink(link, &new_connection_type)) {
link              771 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	prev_sink = link->local_sink;
link              774 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		memcpy(&prev_dpcd_caps, &link->dpcd_caps, sizeof(struct dpcd_caps));
link              776 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link_disconnect_sink(link);
link              779 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->type = new_connection_type;
link              780 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->link_state_valid = false;
link              783 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		switch (link->connector_signal) {
link              812 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			detect_edp_sink_caps(link);
link              813 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			read_edp_current_link_settings_on_detect(link);
link              822 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (link->link_enc->features.flags.bits.DP_IS_USB_C == 1) {
link              825 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				if (wait_for_alt_mode(link) == false) {
link              831 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link,
link              842 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				if (memcmp(&link->dpcd_caps, &prev_dpcd_caps, sizeof(struct dpcd_caps)))
link              846 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (link->type == dc_connection_active_dongle &&
link              847 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->dpcd_caps.sink_count.bits.SINK_COUNT == 0) {
link              853 drivers/gpu/drm/amd/display/dc/core/dc_link.c 					dp_verify_link_cap_with_retries(link,
link              854 drivers/gpu/drm/amd/display/dc/core/dc_link.c 							&link->reported_link_cap,
link              860 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (link->type == dc_connection_mst_branch) {
link              862 drivers/gpu/drm/amd/display/dc/core/dc_link.c 					link->link_index);
link              868 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->verified_link_cap = link->reported_link_cap;
link              879 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->connector_signal);
link              885 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->dpcd_caps.sink_count.bits.SINK_COUNT)
link              886 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->dpcd_sink_count = link->dpcd_caps.sink_count.
link              889 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->dpcd_sink_count = 1;
link              892 drivers/gpu/drm/amd/display/dc/core/dc_link.c 						link->ddc,
link              895 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->aux_mode = dal_ddc_service_is_in_aux_transaction_mode(
link              896 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->ddc);
link              898 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		sink_init_data.link = link;
link              909 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		sink->link->dongle_max_pix_clk = sink_caps.max_hdmi_pixel_clock;
link              913 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->local_sink = sink;
link              916 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->ctx,
link              917 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link,
link              935 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (dc_is_hdmi_signal(link->connector_signal) ||
link              936 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			    dc_is_dvi_signal(link->connector_signal)) {
link              950 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->connector_signal == SIGNAL_TYPE_DISPLAY_PORT &&
link              958 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			dp_verify_link_cap_with_retries(link,
link              959 drivers/gpu/drm/amd/display/dc/core/dc_link.c 					&link->reported_link_cap,
link              964 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link_disconnect_remap(prev_sink, link);
link              978 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			CONN_DATA_DETECT(link,
link             1019 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->type == dc_connection_mst_branch) {
link             1021 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->link_index);
link             1023 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			dm_helpers_dp_mst_stop_top_mgr(link->ctx, link);
link             1025 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->mst_stream_alloc_table.stream_count = 0;
link             1026 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			memset(link->mst_stream_alloc_table.stream_allocations, 0, sizeof(link->mst_stream_alloc_table.stream_allocations));
link             1029 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->type = dc_connection_none;
link             1036 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->dongle_max_pix_clk = 0;
link             1040 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->link_index, sink,
link             1063 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		struct dc_link *link)
link             1068 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	hpd = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service);
link             1101 drivers/gpu/drm/amd/display/dc/core/dc_link.c static enum channel_id get_ddc_line(struct dc_link *link)
link             1106 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	ddc = dal_ddc_service_get_ddc_pin(link->ddc);
link             1209 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link,
link             1221 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->irq_source_hpd = DC_IRQ_SOURCE_INVALID;
link             1222 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->irq_source_hpd_rx = DC_IRQ_SOURCE_INVALID;
link             1224 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->link_status.dpcd_caps = &link->dpcd_caps;
link             1226 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->dc = init_params->dc;
link             1227 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->ctx = dc_ctx;
link             1228 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->link_index = init_params->link_index;
link             1230 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	memset(&link->preferred_training_settings, 0, sizeof(struct dc_link_training_overrides));
link             1231 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	memset(&link->preferred_link_setting, 0, sizeof(struct dc_link_settings));
link             1233 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->link_id = bios->funcs->get_connector_id(bios, init_params->connector_index);
link             1235 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->link_id.type != OBJECT_TYPE_CONNECTOR) {
link             1238 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			 link->link_id.type, OBJECT_TYPE_CONNECTOR);
link             1242 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->dc->res_pool->funcs->link_init)
link             1243 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->dc->res_pool->funcs->link_init(link);
link             1245 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->hpd_gpio = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service);
link             1246 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->hpd_gpio != NULL) {
link             1247 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dal_gpio_open(link->hpd_gpio, GPIO_MODE_INTERRUPT);
link             1248 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dal_gpio_unlock_pin(link->hpd_gpio);
link             1249 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->irq_source_hpd = dal_irq_get_source(link->hpd_gpio);
link             1252 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	switch (link->link_id.id) {
link             1254 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->connector_signal = SIGNAL_TYPE_HDMI_TYPE_A;
link             1259 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->connector_signal = SIGNAL_TYPE_DVI_SINGLE_LINK;
link             1263 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->connector_signal = SIGNAL_TYPE_DVI_DUAL_LINK;
link             1266 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->connector_signal =	SIGNAL_TYPE_DISPLAY_PORT;
link             1268 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->hpd_gpio != NULL)
link             1269 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->irq_source_hpd_rx =
link             1270 drivers/gpu/drm/amd/display/dc/core/dc_link.c 					dal_irq_get_rx_source(link->hpd_gpio);
link             1274 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->connector_signal = SIGNAL_TYPE_EDP;
link             1276 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->hpd_gpio != NULL) {
link             1277 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->irq_source_hpd = DC_IRQ_SOURCE_INVALID;
link             1278 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->irq_source_hpd_rx =
link             1279 drivers/gpu/drm/amd/display/dc/core/dc_link.c 					dal_irq_get_rx_source(link->hpd_gpio);
link             1283 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->connector_signal = SIGNAL_TYPE_LVDS;
link             1286 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		DC_LOG_WARNING("Unsupported Connector type:%d!\n", link->link_id.id);
link             1294 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->connector_signal);
link             1296 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	ddc_service_init_data.ctx = link->ctx;
link             1297 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	ddc_service_init_data.id = link->link_id;
link             1298 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	ddc_service_init_data.link = link;
link             1299 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->ddc = dal_ddc_service_create(&ddc_service_init_data);
link             1301 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->ddc == NULL) {
link             1306 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->ddc_hw_inst =
link             1308 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			dal_ddc_service_get_ddc_pin(link->ddc));
link             1311 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	bp_funcs->get_src_obj(dc_ctx->dc_bios, link->link_id, 0, &enc_init_data.encoder);
link             1312 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	enc_init_data.connector = link->link_id;
link             1313 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	enc_init_data.channel = get_ddc_line(link);
link             1314 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	enc_init_data.hpd_source = get_hpd_line(link);
link             1316 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->hpd_src = enc_init_data.hpd_source;
link             1320 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->link_enc = link->dc->res_pool->funcs->link_enc_create(
link             1323 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->link_enc == NULL) {
link             1328 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->link_enc_hw_inst = link->link_enc->transmitter;
link             1332 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				bp_funcs->get_device_tag(dc_ctx->dc_bios, link->link_id, i, &link->device_tag)) {
link             1340 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (!bp_funcs->is_device_id_supported(dc_ctx->dc_bios, link->device_tag.dev_id))
link             1342 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->device_tag.dev_id.device_type == DEVICE_TYPE_CRT
link             1343 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			&& link->connector_signal != SIGNAL_TYPE_RGB)
link             1345 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->device_tag.dev_id.device_type == DEVICE_TYPE_LCD
link             1346 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			&& link->connector_signal == SIGNAL_TYPE_RGB)
link             1358 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (path->device_connector_id.enum_id == link->link_id.enum_id
link             1359 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			&& path->device_connector_id.id == link->link_id.id
link             1360 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			&& path->device_connector_id.type == link->link_id.type) {
link             1362 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (link->device_tag.acpi_device != 0
link             1363 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				&& path->device_acpi_enum == link->device_tag.acpi_device) {
link             1364 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->ddi_channel_mapping = path->channel_mapping;
link             1365 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->chip_caps = path->caps;
link             1367 drivers/gpu/drm/amd/display/dc/core/dc_link.c 					link->device_tag.dev_id.raw_device_tag) {
link             1368 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->ddi_channel_mapping = path->channel_mapping;
link             1369 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->chip_caps = path->caps;
link             1381 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	program_hpd_filter(link);
link             1385 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->link_enc->funcs->destroy(&link->link_enc);
link             1387 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dal_ddc_service_destroy(&link->ddc);
link             1391 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->hpd_gpio != NULL) {
link             1392 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dal_gpio_destroy_irq(&link->hpd_gpio);
link             1393 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->hpd_gpio = NULL;
link             1404 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link =
link             1405 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			kzalloc(sizeof(*link), GFP_KERNEL);
link             1407 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (NULL == link)
link             1410 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (false == construct(link, init_params))
link             1413 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	return link;
link             1416 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	kfree(link);
link             1422 drivers/gpu/drm/amd/display/dc/core/dc_link.c void link_destroy(struct dc_link **link)
link             1424 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	destruct(*link);
link             1425 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	kfree(*link);
link             1426 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	*link = NULL;
link             1432 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link = stream->link;
link             1436 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	core_link_read_dpcd(link, DP_DOWNSPREAD_CTRL,
link             1445 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		core_link_write_dpcd(link, DP_DOWNSPREAD_CTRL,
link             1457 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link = stream->link;
link             1481 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->link_status.link_active &&
link             1482 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			(link->cur_link_settings.lane_count != link_settings.lane_count ||
link             1483 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			 link->cur_link_settings.link_rate != link_settings.link_rate)) {
link             1484 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			dp_disable_link_phy(link, pipe_ctx->stream->signal);
link             1488 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->dc->hwss.edp_power_control(link, true);
link             1489 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->dc->hwss.edp_wait_for_hpd_ready(link, true);
link             1498 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link,
link             1509 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	panel_mode = dp_get_panel_mode(link);
link             1510 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dp_set_panel_mode(link, panel_mode);
link             1517 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->aux_access_disabled) {
link             1518 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dc_link_dp_perform_link_training_skip_aux(link, &link_settings);
link             1520 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->cur_link_settings = link_settings;
link             1523 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link,
link             1527 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->cur_link_settings = link_settings;
link             1534 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->preferred_training_settings.fec_enable != NULL)
link             1535 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		fec_enable = *link->preferred_training_settings.fec_enable;
link             1539 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dp_set_fec_enable(link, fec_enable);
link             1559 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link = pipe_ctx->stream->link;
link             1564 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->cur_link_settings.lane_count != LANE_COUNT_UNKNOWN)
link             1568 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dm_helpers_dp_mst_clear_payload_allocation_table(link->ctx, link);
link             1573 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dm_helpers_dp_mst_poll_pending_down_reply(link->ctx, link);
link             1576 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dp_enable_mst_on_sink(link, true);
link             1698 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			pipe_ctx->stream->link, &cmd))
link             1752 drivers/gpu/drm/amd/display/dc/core/dc_link.c 						pipe_ctx->stream->link->ddc,
link             1805 drivers/gpu/drm/amd/display/dc/core/dc_link.c 								pipe_ctx->stream->link->ddc,
link             2030 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link = stream->link;
link             2044 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		unsigned short masked_chip_caps = pipe_ctx->stream->link->chip_caps &
link             2065 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			stream->link->ddc,
link             2069 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	memset(&stream->link->cur_link_settings, 0,
link             2076 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->link_enc->funcs->enable_tmds_output(
link             2077 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->link_enc,
link             2084 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dal_ddc_service_read_scdc_data(link->ddc);
link             2090 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link = stream->link;
link             2095 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	memset(&stream->link->cur_link_settings, 0,
link             2098 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->link_enc->funcs->enable_lvds_output(
link             2099 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->link_enc,
link             2140 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		pipe_ctx->stream->link->link_status.link_active = true;
link             2145 drivers/gpu/drm/amd/display/dc/core/dc_link.c static void disable_link(struct dc_link *link, enum signal_type signal)
link             2160 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			dp_disable_link_phy(link, signal);
link             2162 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			dp_disable_link_phy_mst(link, signal);
link             2166 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link->mst_stream_alloc_table.stream_count == 0) {
link             2167 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			dp_set_fec_enable(link, false);
link             2168 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			dp_set_fec_ready(link, false);
link             2173 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->link_enc->funcs->disable_output(link->link_enc, signal);
link             2178 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (link->mst_stream_alloc_table.stream_count <= 0)
link             2179 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->link_status.link_active = false;
link             2181 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->link_status.link_active = false;
link             2271 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		struct dc_link *link,
link             2274 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	uint32_t max_pix_clk = stream->link->dongle_max_pix_clk * 10;
link             2275 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dpcd_caps *dpcd_caps = &link->dpcd_caps;
link             2280 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->remote_sinks[0])
link             2295 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link,
link             2307 drivers/gpu/drm/amd/display/dc/core/dc_link.c int dc_link_get_backlight_level(const struct dc_link *link)
link             2309 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct abm *abm = link->ctx->dc->res_pool->abm;
link             2317 drivers/gpu/drm/amd/display/dc/core/dc_link.c bool dc_link_set_backlight_level(const struct dc_link *link,
link             2321 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc  *core_dc = link->ctx->dc;
link             2327 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	DC_LOGGER_INIT(link->ctx->logger);
link             2339 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (dc_is_embedded_signal(link->connector_signal)) {
link             2343 drivers/gpu/drm/amd/display/dc/core/dc_link.c 						pipe_ctx[i].stream->link
link             2344 drivers/gpu/drm/amd/display/dc/core/dc_link.c 						== link) {
link             2372 drivers/gpu/drm/amd/display/dc/core/dc_link.c bool dc_link_set_abm_disable(const struct dc_link *link)
link             2374 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc  *core_dc = link->ctx->dc;
link             2385 drivers/gpu/drm/amd/display/dc/core/dc_link.c bool dc_link_set_psr_enable(const struct dc_link *link, bool enable, bool wait)
link             2387 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc  *core_dc = link->ctx->dc;
link             2390 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && link->psr_enabled)
link             2396 drivers/gpu/drm/amd/display/dc/core/dc_link.c const struct dc_link_status *dc_link_get_status(const struct dc_link *link)
link             2398 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	return &link->link_status;
link             2401 drivers/gpu/drm/amd/display/dc/core/dc_link.c void core_link_resume(struct dc_link *link)
link             2403 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->connector_signal != SIGNAL_TYPE_VIRTUAL)
link             2404 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		program_hpd_filter(link);
link             2410 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	uint32_t link_rate_in_mbytes_per_sec = dc_link_bandwidth_kbps(stream->link,
link             2411 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			&stream->link->cur_link_settings);
link             2463 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link,
link             2476 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->mst_stream_alloc_table.stream_count < 2);
link             2481 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		for (j = 0; j < link->mst_stream_alloc_table.stream_count; j++) {
link             2483 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			&link->mst_stream_alloc_table.stream_allocations[j];
link             2494 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (j == link->mst_stream_alloc_table.stream_count) {
link             2504 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->mst_stream_alloc_table.stream_count =
link             2507 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->mst_stream_alloc_table.stream_allocations[i] =
link             2517 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link = stream->link;
link             2518 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct link_encoder *link_encoder = link->link_enc;
link             2525 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	DC_LOGGER_INIT(link->ctx->logger);
link             2539 drivers/gpu/drm/amd/display/dc/core/dc_link.c 					link, pipe_ctx->stream_res.stream_enc, &proposed_table);
link             2550 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->mst_stream_alloc_table.stream_count);
link             2557 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		(void *) link->mst_stream_alloc_table.stream_allocations[i].stream_enc,
link             2559 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->mst_stream_alloc_table.stream_allocations[i].vcp_id,
link             2561 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->mst_stream_alloc_table.stream_allocations[i].slot_count);
link             2569 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		&link->mst_stream_alloc_table);
link             2597 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link = stream->link;
link             2598 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct link_encoder *link_encoder = link->link_enc;
link             2603 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	bool mst_mode = (link->type == dc_connection_mst_branch);
link             2604 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	DC_LOGGER_INIT(link->ctx->logger);
link             2627 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				link, pipe_ctx->stream_res.stream_enc, &proposed_table);
link             2640 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->mst_stream_alloc_table.stream_count);
link             2647 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		(void *) link->mst_stream_alloc_table.stream_allocations[i].stream_enc,
link             2649 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->mst_stream_alloc_table.stream_allocations[i].vcp_id,
link             2651 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->mst_stream_alloc_table.stream_allocations[i].slot_count);
link             2656 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		&link->mst_stream_alloc_table);
link             2682 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		stream->link->link_enc->funcs->setup(
link             2683 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			stream->link->link_enc,
link             2696 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			stream->link->dpcd_caps.dprx_feature.bits.SST_SPLIT_SDP_CAP);
link             2705 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	pipe_ctx->stream->link->link_state_valid = true;
link             2748 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			pipe_ctx->stream->link->link_index,
link             2793 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			&pipe_ctx->stream->link->cur_link_settings);
link             2812 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	struct dc_link *link = stream->sink->link;
link             2823 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		unsigned short masked_chip_caps = link->chip_caps &
link             2827 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->ddc,
link             2845 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	disable_link(pipe_ctx->stream->link, pipe_ctx->stream->signal);
link             2880 drivers/gpu/drm/amd/display/dc/core/dc_link.c void dc_link_enable_hpd_filter(struct dc_link *link, bool enable)
link             2885 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->is_hpd_filter_disabled = false;
link             2886 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		program_hpd_filter(link);
link             2888 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->is_hpd_filter_disabled = true;
link             2890 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		hpd = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service);
link             2970 drivers/gpu/drm/amd/display/dc/core/dc_link.c 				const struct dc_link *link)
link             2976 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (dc->links[i] == link)
link             3001 drivers/gpu/drm/amd/display/dc/core/dc_link.c 					 struct dc_link *link)
link             3008 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	link->preferred_link_setting = store_settings;
link             3014 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (!dc_is_dp_signal(link->connector_signal) ||
link             3015 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->dongle_max_pix_clk > 0)
link             3020 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		if (pipe->stream && pipe->stream->link) {
link             3021 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			if (pipe->stream->link == link) {
link             3040 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dp_retrain_link_dp_test(link, &store_settings, false);
link             3046 drivers/gpu/drm/amd/display/dc/core/dc_link.c 						 struct dc_link *link,
link             3050 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->preferred_training_settings = *lt_overrides;
link             3052 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		memset(&link->preferred_training_settings, 0, sizeof(link->preferred_training_settings));
link             3055 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->preferred_link_setting = *link_setting;
link             3057 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->preferred_link_setting.lane_count = LANE_COUNT_UNKNOWN;
link             3058 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		link->preferred_link_setting.link_rate = LINK_RATE_UNKNOWN;
link             3063 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		dc_link_set_preferred_link_settings(dc, &link->preferred_link_setting, link);
link             3066 drivers/gpu/drm/amd/display/dc/core/dc_link.c void dc_link_enable_hpd(const struct dc_link *link)
link             3068 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dc_link_dp_enable_hpd(link);
link             3071 drivers/gpu/drm/amd/display/dc/core/dc_link.c void dc_link_disable_hpd(const struct dc_link *link)
link             3073 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	dc_link_dp_disable_hpd(link);
link             3076 drivers/gpu/drm/amd/display/dc/core/dc_link.c void dc_link_set_test_pattern(struct dc_link *link,
link             3082 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link != NULL)
link             3084 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link,
link             3092 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	const struct dc_link *link,
link             3102 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->dpcd_caps.fec_cap.bits.FEC_CAPABLE) {
link             3133 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		const struct dc_link *link)
link             3135 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	if (link->preferred_link_setting.lane_count != LANE_COUNT_UNKNOWN &&
link             3136 drivers/gpu/drm/amd/display/dc/core/dc_link.c 			link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN)
link             3137 drivers/gpu/drm/amd/display/dc/core/dc_link.c 		return &link->preferred_link_setting;
link             3138 drivers/gpu/drm/amd/display/dc/core/dc_link.c 	return &link->verified_link_cap;
link              202 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 	ddc_service->link = init_data->link;
link              295 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 	struct dc_link *link = ddc->link;
link              297 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 	if (link->dpcd_caps.branch_dev_id == DP_BRANCH_DEVICE_ID_0080E1 &&
link              298 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 		!memcmp(link->dpcd_caps.branch_dev_name,
link              300 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 			sizeof(link->dpcd_caps.branch_dev_name)))
link              364 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 			ddc->link,
link              403 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 			CONN_DATA_DETECT(ddc->link, type2_dongle_buf, sizeof(type2_dongle_buf),
link              450 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 			CONN_DATA_DETECT(ddc->link, type2_dongle_buf,
link              458 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 				CONN_DATA_DETECT(ddc->link, type2_dongle_buf,
link              465 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 				CONN_DATA_DETECT(ddc->link, type2_dongle_buf,
link              481 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 			CONN_DATA_DETECT(ddc->link, type2_dongle_buf,
link              488 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 			CONN_DATA_DETECT(ddc->link, type2_dongle_buf,
link              579 drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c 				ddc->link,
link               22 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->ctx->logger
link               53 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link               61 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) {
link               65 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link               78 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link               89 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link               93 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link              104 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static enum dc_dp_training_pattern get_supported_tp(struct dc_link *link)
link              107 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct encoder_feature_support *features = &link->link_enc->features;
link              108 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dpcd_caps *dpcd_caps = &link->dpcd_caps;
link              128 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              146 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_tr_pattern = get_supported_tp(link);
link              150 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.max_ln_count.bits.POST_LT_ADJ_REQ_SUPPORTED;
link              153 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	core_link_write_dpcd(link, DP_DOWNSPREAD_CTRL,
link              156 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	core_link_write_dpcd(link, DP_LANE_COUNT_SET,
link              159 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_14 &&
link              162 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		core_link_write_dpcd(link, DP_LINK_BW_SET, &rate, 1);
link              163 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		core_link_write_dpcd(link, DP_LINK_RATE_SET,
link              167 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		core_link_write_dpcd(link, DP_LINK_BW_SET, &rate, 1);
link              195 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              225 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              242 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dc_dp_training_pattern_to_dpcd_training_pattern(link, pattern);
link              294 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link              300 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link              308 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link              313 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->cur_lane_setting = lt_settings->lane_settings[0];
link              494 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              508 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link              573 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              599 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	core_link_write_dpcd(link,
link              631 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->cur_lane_setting = link_training_setting->lane_settings[0];
link              651 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              655 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_lane_settings(link, lt_settings);
link              658 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dpcd_set_lane_settings(link, lt_settings);
link              662 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              689 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link              726 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				dc_link_dp_set_drive_settings(link,
link              767 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              779 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_training_pattern(link, tr_pattern);
link              784 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_set_hw_lane_settings(link, lt_settings);
link              791 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link              795 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			dpcd_set_lane_settings(link, lt_settings);
link              798 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		wait_for_training_aux_rd_interval(link, lt_settings->eq_pattern_time);
link              804 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link              829 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              843 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_training_pattern(link, tr_pattern);
link              859 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link              867 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link,
link              872 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link,
link              877 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link              884 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link              925 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link              934 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dpcd_set_training_pattern(link, dpcd_pattern);
link              937 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_test_pattern(link, DP_TEST_PATTERN_VIDEO_MODE, NULL, 0);
link              944 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.max_ln_count.bits.POST_LT_ADJ_REQ_SUPPORTED != 1 ||
link              945 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			get_supported_tp(link) == DP_TRAINING_PATTERN_SEQUENCE_4)
link              949 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		perform_post_lt_adj_req_sequence(link, lt_settings) == false)
link              957 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link              966 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	 struct dc_link *link,
link              979 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN)
link              980 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		lt_settings->link_settings.link_rate = link->preferred_link_setting.link_rate;
link              984 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->preferred_link_setting.lane_count != LANE_COUNT_UNKNOWN)
link              985 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		lt_settings->link_settings.lane_count = link->preferred_link_setting.lane_count;
link              999 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dp_ss_off)
link             1039 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		lt_settings->cr_pattern_time = get_training_aux_rd_interval(link, 100);
link             1044 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		lt_settings->eq_pattern_time = get_training_aux_rd_interval(link, 400);
link             1049 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		lt_settings->pattern_for_eq = get_supported_tp(link);
link             1058 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1127 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	CONN_MSG_LT(link, "%sx%d %s VS=%d, PE=%d, DS=%s",
link             1137 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1144 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             1146 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			&link->preferred_training_settings,
link             1152 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_training_pattern(link, pattern_for_cr);
link             1155 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_lane_settings(link, &lt_settings);
link             1158 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	wait_for_training_aux_rd_interval(link, lt_settings.cr_pattern_time);
link             1163 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_training_pattern(link, lt_settings.pattern_for_eq);
link             1166 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_lane_settings(link, &lt_settings);
link             1169 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	wait_for_training_aux_rd_interval(link, lt_settings.eq_pattern_time);
link             1174 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_hw_test_pattern(link, DP_TEST_PATTERN_VIDEO_MODE, NULL, 0);
link             1176 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	print_status_message(link, &lt_settings, LINK_TRAINING_SUCCESS);
link             1182 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1193 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             1195 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			&link->preferred_training_settings,
link             1199 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dpcd_set_link_settings(link, &lt_settings);
link             1202 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->preferred_training_settings.fec_enable != NULL)
link             1203 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		fec_enable = *link->preferred_training_settings.fec_enable;
link             1207 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_fec_ready(link, fec_enable);
link             1214 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	status = perform_clock_recovery_sequence(link, &lt_settings);
link             1216 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		status = perform_channel_equalization_sequence(link,
link             1221 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		status = perform_link_training_int(link,
link             1227 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	print_status_message(link, &lt_settings, status);
link             1230 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->ctx->dc->debug_data.ltFailCount++;
link             1236 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1247 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             1259 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static enum clock_source_id get_clock_source_id(struct dc_link *link)
link             1262 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct clock_source *dp_cs = link->dc->res_pool->dp_clock_source;
link             1277 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static void set_dp_mst_mode(struct dc_link *link, bool mst_enable)
link             1280 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->type == dc_connection_mst_branch) {
link             1282 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_disable_link_phy_mst(link, link->connector_signal);
link             1284 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->type = dc_connection_single;
link             1285 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->local_sink = link->remote_sinks[0];
link             1286 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->local_sink->sink_signal = SIGNAL_TYPE_DISPLAY_PORT;
link             1288 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->type == dc_connection_single &&
link             1289 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->remote_sinks[0] != NULL) {
link             1291 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_disable_link_phy(link, link->connector_signal);
link             1292 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_enable_mst_on_sink(link, true);
link             1294 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->type = dc_connection_mst_branch;
link             1295 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->local_sink->sink_signal = SIGNAL_TYPE_DISPLAY_PORT_MST;
link             1299 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c bool dc_link_dp_sync_lt_begin(struct dc_link *link)
link             1304 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->sync_lt_in_progress = true;
link             1307 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	memset(&link->preferred_training_settings, 0,
link             1309 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	memset(&link->preferred_link_setting, 0,
link             1316 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c     struct dc_link *link,
link             1329 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link             1336 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		set_dp_mst_mode(link, *lt_overrides->mst_enable);
link             1339 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_disable_link_phy(link, link->connector_signal);
link             1342 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_cs_id = get_clock_source_id(link);
link             1343 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_enable_link_phy(link, link->connector_signal,
link             1349 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_fec_ready(link, fec_enable);
link             1358 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		panel_mode = dp_get_panel_mode(link);
link             1360 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_set_panel_mode(link, panel_mode);
link             1365 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dpcd_set_link_settings(link, &lt_settings);
link             1370 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	lt_status = perform_clock_recovery_sequence(link, &lt_settings);
link             1372 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		lt_status = perform_channel_equalization_sequence(link,
link             1378 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	print_status_message(link, &lt_settings, lt_status);
link             1383 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c bool dc_link_dp_sync_lt_end(struct dc_link *link, bool link_down)
link             1389 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_disable_link_phy(link, link->connector_signal);
link             1391 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_set_fec_ready(link, false);
link             1395 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->sync_lt_in_progress = false;
link             1399 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static struct dc_link_settings get_max_link_cap(struct dc_link *link)
link             1406 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->link_enc->features.flags.bits.IS_HBR2_CAPABLE)
link             1409 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->link_enc->features.flags.bits.IS_HBR3_CAPABLE)
link             1413 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->reported_link_cap.lane_count < max_link_cap.lane_count)
link             1415 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->reported_link_cap.lane_count;
link             1416 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->reported_link_cap.link_rate < max_link_cap.link_rate)
link             1418 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->reported_link_cap.link_rate;
link             1419 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->reported_link_cap.link_spread <
link             1422 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->reported_link_cap.link_spread;
link             1427 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1440 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dpcd_rev.raw < DPCD_REV_14)
link             1442 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             1453 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             1473 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1486 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->cur_link_settings.lane_count == 0)
link             1492 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	for (lane = 0; lane < link->cur_link_settings.lane_count; lane++) {
link             1524 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dpcd_result = core_link_read_dpcd(link,
link             1542 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1557 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dc->debug.skip_detection_link_training) {
link             1558 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->verified_link_cap = *known_limit_link_setting;
link             1566 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	max_link_cap = get_max_link_cap(link);
link             1574 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_disable_link_phy(link, link->connector_signal);
link             1576 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_cs_id = get_clock_source_id(link);
link             1592 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             1593 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->connector_signal,
link             1602 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 							link,
link             1612 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->verified_link_cap = *cur;
link             1614 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			if (read_hpd_rx_irq_data(link, &irq_data) == DC_OK)
link             1616 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 						link,
link             1624 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_disable_link_phy(link, link->connector_signal);
link             1635 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->verified_link_cap.lane_count = LANE_COUNT_ONE;
link             1636 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->verified_link_cap.link_rate = LINK_RATE_LOW;
link             1638 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->verified_link_cap.link_spread =
link             1647 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1658 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		memset(&link->verified_link_cap, 0,
link             1660 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		if (!dc_link_detect_sink(link, &type)) {
link             1662 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		} else if (dp_verify_link_cap(link,
link             1663 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				&link->reported_link_cap,
link             1865 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             1879 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link_setting = dc_link_get_link_cap(link);
link             1888 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	max_bw = dc_link_bandwidth_kbps(link, link_setting);
link             1909 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static bool decide_dp_link_settings(struct dc_link *link, struct dc_link_settings *link_setting, uint32_t req_bw)
link             1922 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->verified_link_cap.link_rate) {
link             1924 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             1932 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->verified_link_cap.lane_count) {
link             1948 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static bool decide_edp_link_settings(struct dc_link *link, struct dc_link_settings *link_setting, uint32_t req_bw)
link             1954 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dpcd_rev.raw < DPCD_REV_14 ||
link             1955 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.edp_supported_link_rates_count == 0) {
link             1956 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		*link_setting = link->verified_link_cap;
link             1962 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	initial_link_setting.link_rate = link->dpcd_caps.edp_supported_link_rates[0];
link             1973 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->verified_link_cap.link_rate) {
link             1975 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             1983 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->verified_link_cap.lane_count) {
link             1988 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			if (current_link_setting.link_rate_set < link->dpcd_caps.edp_supported_link_rates_count) {
link             1991 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link->dpcd_caps.edp_supported_link_rates[current_link_setting.link_rate_set];
link             2004 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link;
link             2009 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link = stream->link;
link             2014 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->preferred_link_setting.lane_count !=
link             2016 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->preferred_link_setting.link_rate !=
link             2018 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		*link_setting =  link->preferred_link_setting;
link             2026 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		*link_setting = link->verified_link_cap;
link             2030 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->connector_signal == SIGNAL_TYPE_EDP) {
link             2031 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		if (decide_edp_link_settings(link, link_setting, req_bw))
link             2033 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	} else if (decide_dp_link_settings(link, link_setting, req_bw))
link             2037 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	ASSERT(link->verified_link_cap.lane_count != LANE_COUNT_UNKNOWN);
link             2039 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	*link_setting = link->verified_link_cap;
link             2043 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static bool allow_hpd_rx_irq(const struct dc_link *link)
link             2052 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if ((link->cur_link_settings.lane_count != LANE_COUNT_UNKNOWN) ||
link             2053 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		(link->type == dc_connection_mst_branch) ||
link             2054 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		is_dp_active_dongle(link))
link             2060 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static bool handle_hpd_irq_psr_sink(const struct dc_link *link)
link             2064 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (!link->psr_enabled)
link             2068 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->ctx,
link             2069 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link             2081 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->ctx,
link             2082 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2096 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->ctx,
link             2097 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             2103 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			dc_link_set_psr_enable(link, false, true);
link             2104 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			dc_link_set_psr_enable(link, true, true);
link             2120 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static void dp_test_send_link_training(struct dc_link *link)
link             2125 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2130 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2136 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->verified_link_cap.lane_count = link_settings.lane_count;
link             2137 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->verified_link_cap.link_rate = link_settings.link_rate;
link             2139 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_retrain_link_dp_test(link, &link_settings, false);
link             2146 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static void dp_test_send_phy_test_pattern(struct dc_link *link)
link             2167 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2172 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2184 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2205 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		test_pattern = (link->dc->caps.force_dp_tps4_for_cp2520 == 1) ?
link             2211 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		test_pattern = (link->dc->caps.force_dp_tps4_for_cp2520 == 1) ?
link             2225 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             2231 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link_settings.link = link->cur_link_settings;
link             2234 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		(unsigned int)(link->cur_link_settings.lane_count);
link             2252 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link_training_settings.link_settings = link_settings.link;
link             2262 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link             2270 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static void dp_test_send_link_test_pattern(struct dc_link *link)
link             2281 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2286 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2310 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2317 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static void handle_automated_test(struct dc_link *link)
link             2326 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link             2334 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2338 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_test_send_link_training(link);
link             2343 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_test_send_link_test_pattern(link);
link             2347 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_test_send_phy_test_pattern(link);
link             2354 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2360 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpd_irq_dpcd_data, bool *out_link_loss)
link             2375 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		__func__, link->link_index);
link             2383 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	result = read_hpd_rx_irq_data(link, &hpd_irq_dpcd_data);
link             2396 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2401 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		handle_automated_test(link);
link             2405 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (!allow_hpd_rx_irq(link)) {
link             2407 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			__func__, link->link_index);
link             2411 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (handle_hpd_irq_psr_sink(link))
link             2431 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link             2434 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		CONN_DATA_LINK_LOSS(link,
link             2439 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		perform_link_training_with_retries(link,
link             2440 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			&link->cur_link_settings,
link             2448 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->type == dc_connection_active_dongle &&
link             2450 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			!= link->dpcd_sink_count)
link             2468 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c bool is_mst_supported(struct dc_link *link)
link             2475 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->preferred_training_settings.mst_enable &&
link             2476 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		*link->preferred_training_settings.mst_enable == false) {
link             2483 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	st = core_link_read_dpcd(link, DP_DPCD_REV, &rev.raw,
link             2488 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		st = core_link_read_dpcd(link, DP_MSTM_CAP,
link             2497 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c bool is_dp_active_dongle(const struct dc_link *link)
link             2499 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	return link->dpcd_caps.is_branch_dev;
link             2520 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static void read_dp_device_vendor_id(struct dc_link *link)
link             2526 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link             2531 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.branch_dev_id =
link             2537 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.branch_dev_name,
link             2545 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	uint8_t data, struct dc_link *link)
link             2548 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	memset(&link->dpcd_caps.dongle_caps, 0, sizeof(link->dpcd_caps.dongle_caps));
link             2552 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.dongle_type = DISPLAY_DONGLE_NONE;
link             2553 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		ddc_service_set_dongle_type(link->ddc,
link             2554 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.dongle_type);
link             2555 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.is_branch_dev = false;
link             2561 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.is_branch_dev = false;
link             2565 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
link             2570 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.dongle_type = DISPLAY_DONGLE_DP_VGA_CONVERTER;
link             2575 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.dongle_type = DISPLAY_DONGLE_DP_DVI_CONVERTER;
link             2578 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.dongle_type = DISPLAY_DONGLE_NONE;
link             2582 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_11) {
link             2586 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		core_link_read_dpcd(link, DP_DOWNSTREAM_PORT_0,
link             2592 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.dongle_type = DISPLAY_DONGLE_NONE;
link             2595 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.dongle_type =
link             2599 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.dongle_type =
link             2605 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.dongle_type =
link             2608 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.dongle_caps.dongle_type = link->dpcd_caps.dongle_type;
link             2615 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.dongle_caps.dp_hdmi_max_pixel_clk_in_khz =
link             2618 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.dongle_caps.is_dp_hdmi_s3d_converter =
link             2623 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link->dpcd_caps.dongle_caps.is_dp_hdmi_ycbcr422_pass_through =
link             2625 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link->dpcd_caps.dongle_caps.is_dp_hdmi_ycbcr420_pass_through =
link             2627 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link->dpcd_caps.dongle_caps.is_dp_hdmi_ycbcr422_converter =
link             2629 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link->dpcd_caps.dongle_caps.is_dp_hdmi_ycbcr420_converter =
link             2633 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.dongle_caps.dp_hdmi_max_bpc =
link             2637 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				if (link->dpcd_caps.dongle_caps.dp_hdmi_max_pixel_clk_in_khz != 0)
link             2638 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link->dpcd_caps.dongle_caps.extendedCapValid = true;
link             2645 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	ddc_service_set_dongle_type(link->ddc, link->dpcd_caps.dongle_type);
link             2651 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             2656 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.branch_hw_revision =
link             2660 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.branch_fw_revision,
link             2666 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static void dp_wa_power_up_0010FA(struct dc_link *link, uint8_t *dpcd_data,
link             2672 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (!link->dpcd_caps.dpcd_rev.raw) {
link             2674 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			dp_receiver_power_ctrl(link, true);
link             2675 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			core_link_read_dpcd(link, DP_DPCD_REV,
link             2677 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.dpcd_rev.raw = dpcd_data[
link             2680 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		} while (retry++ < 4 && !link->dpcd_caps.dpcd_rev.raw);
link             2686 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dongle_type == DISPLAY_DONGLE_DP_VGA_CONVERTER) {
link             2687 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		switch (link->dpcd_caps.branch_dev_id) {
link             2696 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->wa_flags.dp_keep_receiver_powered = true;
link             2701 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->wa_flags.dp_keep_receiver_powered = false;
link             2705 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->wa_flags.dp_keep_receiver_powered = false;
link             2708 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static bool retrieve_link_cap(struct dc_link *link)
link             2732 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	status = core_link_read_dpcd(link, DP_SET_POWER,
link             2745 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             2764 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.ext_receiver_cap_field_present =
link             2773 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             2787 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.dpcd_rev.raw =
link             2790 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dpcd_rev.raw >= 0x14) {
link             2793 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link,
link             2801 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.dprx_feature.raw = dpcd_dprx_data;
link             2808 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.dprx_feature.raw = 0;
link             2824 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	read_dp_device_vendor_id(link);
link             2826 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	get_active_converter_info(ds_port.byte, link);
link             2828 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	dp_wa_power_up_0010FA(link, dpcd_data, sizeof(dpcd_data));
link             2833 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.allow_invalid_MSA_timing_param =
link             2836 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.max_ln_count.raw = dpcd_data[
link             2839 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.max_down_spread.raw = dpcd_data[
link             2842 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->reported_link_cap.lane_count =
link             2843 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.max_ln_count.bits.MAX_LANE_COUNT;
link             2844 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->reported_link_cap.link_rate = dpcd_data[
link             2846 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->reported_link_cap.link_spread =
link             2847 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.max_down_spread.bits.MAX_DOWN_SPREAD ?
link             2852 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.panel_mode_edp =
link             2854 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.dpcd_display_control_capable =
link             2857 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->test_pattern_enabled = false;
link             2858 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->compliance_test_state.raw = 0;
link             2861 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	core_link_read_dpcd(link,
link             2863 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			&link->dpcd_caps.sink_count.raw,
link             2864 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			sizeof(link->dpcd_caps.sink_count.raw));
link             2867 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	core_link_read_dpcd(link,
link             2872 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.sink_dev_id =
link             2878 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.sink_dev_id_str,
link             2886 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		if ((link->dpcd_caps.sink_dev_id == 0x0010fa) &&
link             2887 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		    !memcmp(link->dpcd_caps.sink_dev_id_str, str_mbp_2017,
link             2889 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->reported_link_cap.link_rate = 0x0c;
link             2894 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link,
link             2899 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.sink_hw_revision =
link             2903 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dpcd_caps.sink_fw_revision,
link             2908 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	memset(&link->dpcd_caps.dsc_caps, '\0',
link             2909 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			sizeof(link->dpcd_caps.dsc_caps));
link             2910 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	memset(&link->dpcd_caps.fec_cap, '\0', sizeof(link->dpcd_caps.fec_cap));
link             2912 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_14) {
link             2914 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             2916 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				&link->dpcd_caps.fec_cap.raw,
link             2917 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				sizeof(link->dpcd_caps.fec_cap.raw));
link             2919 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             2921 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.dsc_caps.dsc_basic_caps.raw,
link             2922 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				sizeof(link->dpcd_caps.dsc_caps.dsc_basic_caps.raw));
link             2924 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             2926 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.dsc_caps.dsc_ext_caps.raw,
link             2927 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				sizeof(link->dpcd_caps.dsc_caps.dsc_ext_caps.raw));
link             2932 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	CONN_DATA_DETECT(link, dpcd_data, sizeof(dpcd_data), "Rx Caps: ");
link             2937 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c bool detect_dp_sink_caps(struct dc_link *link)
link             2939 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	return retrieve_link_cap(link);
link             2986 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c void detect_edp_sink_caps(struct dc_link *link)
link             2993 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	retrieve_link_cap(link);
link             2994 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->dpcd_caps.edp_supported_link_rates_count = 0;
link             2997 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_14 &&
link             2998 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			(link->dc->config.optimize_edp_link_rate ||
link             2999 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->reported_link_cap.link_rate == LINK_RATE_UNKNOWN)) {
link             3001 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		core_link_read_dpcd(link, DP_SUPPORTED_LINK_RATES,
link             3012 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.edp_supported_link_rates[link->dpcd_caps.edp_supported_link_rates_count] = link_rate;
link             3013 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.edp_supported_link_rates_count++;
link             3015 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				if (link->reported_link_cap.link_rate < link_rate)
link             3016 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link->reported_link_cap.link_rate = link_rate;
link             3020 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	link->verified_link_cap = link->reported_link_cap;
link             3023 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c void dc_link_dp_enable_hpd(const struct dc_link *link)
link             3025 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct link_encoder *encoder = link->link_enc;
link             3031 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c void dc_link_dp_disable_hpd(const struct dc_link *link)
link             3033 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct link_encoder *encoder = link->link_enc;
link             3049 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c static void set_crtc_test_pattern(struct dc_link *link,
link             3187 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct dc_link *link,
link             3193 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct pipe_ctx *pipes = link->dc->current_state->res_ctx.pipe_ctx;
link             3204 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		if (pipes[i].stream->link == link && !pipes[i].top_pipe && !pipes[i].prev_odm_pipe) {
link             3214 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->test_pattern_enabled && test_pattern ==
link             3217 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		set_crtc_test_pattern(link, pipe_ctx, test_pattern);
link             3218 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_set_hw_test_pattern(link, test_pattern,
link             3223 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->dc->hwss.unblank_stream(
link             3225 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			&link->verified_link_cap);
link             3231 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->test_pattern_enabled = false;
link             3240 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			dp_set_hw_lane_settings(link, p_link_settings);
link             3241 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			dpcd_set_lane_settings(link, p_link_settings);
link             3254 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		dp_set_hw_test_pattern(link, test_pattern,
link             3260 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->test_pattern_enabled = true;
link             3262 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				dpcd_set_link_settings(link,
link             3299 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) {
link             3309 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			core_link_write_dpcd(link,
link             3313 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		} else if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_10 ||
link             3314 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			   link->dpcd_caps.dpcd_rev.raw == 0) {
link             3322 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			core_link_read_dpcd(link, DP_TRAINING_PATTERN_SET,
link             3326 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			core_link_write_dpcd(link, DP_TRAINING_PATTERN_SET,
link             3332 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		set_crtc_test_pattern(link, pipe_ctx, test_pattern);
link             3334 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		link->test_pattern_enabled = true;
link             3340 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c void dp_enable_mst_on_sink(struct dc_link *link, bool enable)
link             3344 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	core_link_read_dpcd(link, DP_MSTM_CTRL, &mstmCntl, 1);
link             3350 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	core_link_write_dpcd(link, DP_MSTM_CTRL, &mstmCntl, 1);
link             3353 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode)
link             3374 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link,
link             3386 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link,
link             3396 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		 link->link_index,
link             3397 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		 link->dpcd_caps.panel_mode_edp,
link             3401 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c enum dp_panel_mode dp_get_panel_mode(struct dc_link *link)
link             3407 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT) {
link             3409 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		switch (link->dpcd_caps.branch_dev_id) {
link             3418 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.branch_dev_name,
link             3421 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.
link             3432 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			if (strncmp(link->dpcd_caps.branch_dev_name,
link             3435 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->dpcd_caps.
link             3445 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dpcd_caps.panel_mode_edp) {
link             3453 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c void dp_set_fec_ready(struct dc_link *link, bool ready)
link             3460 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct link_encoder *link_enc = link->link_enc;
link             3463 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dc->debug.disable_fec ||
link             3464 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			IS_FPGA_MAXIMUS_DC(link->ctx->dce_environment))
link             3468 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.fec_cap.bits.FEC_CAPABLE) {
link             3471 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			if (core_link_write_dpcd(link,
link             3476 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->fec_state = dc_link_fec_ready;
link             3478 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->link_enc->funcs->fec_set_ready(link->link_enc, false);
link             3479 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 				link->fec_state = dc_link_fec_not_ready;
link             3482 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		} else if (link->fec_state == dc_link_fec_ready) {
link             3484 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			core_link_write_dpcd(link,
link             3488 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->link_enc->funcs->fec_set_ready(
link             3489 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 					link->link_enc, false);
link             3490 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->fec_state = dc_link_fec_not_ready;
link             3495 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c void dp_set_fec_enable(struct dc_link *link, bool enable)
link             3497 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	struct link_encoder *link_enc = link->link_enc;
link             3499 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 	if (link->dc->debug.disable_fec ||
link             3500 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			IS_FPGA_MAXIMUS_DC(link->ctx->dce_environment))
link             3504 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->dpcd_caps.fec_cap.bits.FEC_CAPABLE) {
link             3505 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		if (link->fec_state == dc_link_fec_ready && enable) {
link             3515 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->fec_state = dc_link_fec_enabled;
link             3516 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 		} else if (link->fec_state == dc_link_fec_enabled && !enable) {
link             3518 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c 			link->fec_state = dc_link_fec_ready;
link               23 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct dc_link *link,
link               28 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	if (!link->aux_access_disabled &&
link               29 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			!dm_helpers_dp_read_dpcd(link->ctx,
link               30 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link, address, data, size)) {
link               38 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct dc_link *link,
link               43 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	if (!link->aux_access_disabled &&
link               44 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			!dm_helpers_dp_write_dpcd(link->ctx,
link               45 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link, address, data, size)) {
link               52 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c void dp_receiver_power_ctrl(struct dc_link *link, bool on)
link               58 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	if (link->sync_lt_in_progress)
link               61 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	core_link_write_dpcd(link, DP_SET_POWER, &state,
link               66 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct dc_link *link,
link               71 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct link_encoder *link_enc = link->link_enc;
link               72 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct dc  *core_dc = link->ctx->dc;
link               76 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link->dc->current_state->res_ctx.pipe_ctx;
link               78 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link->dc->res_pool->dp_clock_source;
link               86 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			pipes[i].stream->link == link) {
link              118 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	link->cur_link_settings = *link_settings;
link              120 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	dp_receiver_power_ctrl(link, true);
link              123 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c bool edp_receiver_ready_T9(struct dc_link *link)
link              129 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	result = core_link_read_dpcd(link, DP_EDP_DPCD_REV, &edpRev, sizeof(edpRev));
link              135 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 		result = core_link_read_dpcd(link, DP_SINK_STATUS, &sinkstatus, sizeof(sinkstatus));
link              143 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	if (link->local_sink->edid_caps.panel_patch.extra_delay_backlight_off > 0)
link              144 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 		udelay(link->local_sink->edid_caps.panel_patch.extra_delay_backlight_off * 1000);
link              148 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c bool edp_receiver_ready_T7(struct dc_link *link)
link              155 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	result = core_link_read_dpcd(link, DP_EDP_DPCD_REV, &edpRev, sizeof(edpRev));
link              161 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 		result = core_link_read_dpcd(link, DP_SINK_STATUS, &sinkstatus, sizeof(sinkstatus));
link              169 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	if (link->local_sink->edid_caps.panel_patch.extra_t7_ms > 0)
link              170 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 		udelay(link->local_sink->edid_caps.panel_patch.extra_t7_ms * 1000);
link              175 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c void dp_disable_link_phy(struct dc_link *link, enum signal_type signal)
link              177 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct dc  *core_dc = link->ctx->dc;
link              180 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	if (!link->wa_flags.dp_keep_receiver_powered)
link              181 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 		dp_receiver_power_ctrl(link, false);
link              184 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 		link->link_enc->funcs->disable_output(link->link_enc, signal);
link              185 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 		link->dc->hwss.edp_power_control(link, false);
link              190 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 		link->link_enc->funcs->disable_output(link->link_enc, signal);
link              197 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	memset(&link->cur_link_settings, 0,
link              198 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			sizeof(link->cur_link_settings));
link              201 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c void dp_disable_link_phy_mst(struct dc_link *link, enum signal_type signal)
link              204 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	if (link->mst_stream_alloc_table.stream_count > 0)
link              207 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	dp_disable_link_phy(link, signal);
link              210 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	dp_enable_mst_on_sink(link, false);
link              214 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct dc_link *link,
link              236 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	dp_set_hw_test_pattern(link, test_pattern, NULL, 0);
link              242 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct dc_link *link,
link              245 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct link_encoder *encoder = link->link_enc;
link              252 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct dc_link *link,
link              258 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	struct link_encoder *encoder = link->link_enc;
link              263 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 	pattern_param.dp_panel_mode = dp_get_panel_mode(link);
link              268 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c void dp_retrain_link_dp_test(struct dc_link *link,
link              273 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			&link->dc->current_state->res_ctx.pipe_ctx[0];
link              279 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			pipes[i].stream->link != NULL &&
link              281 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			pipes[i].stream->link == link) {
link              288 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			dp_set_hw_test_pattern(link,
link              291 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			dp_receiver_power_ctrl(link, false);
link              293 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link->dc->hwss.disable_stream(&pipes[i]);
link              294 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			if ((&pipes[i])->stream_res.audio && !link->dc->debug.az_endpoint_mute_only)
link              297 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link->link_enc->funcs->disable_output(
link              298 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 					link->link_enc,
link              302 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			memset(&link->cur_link_settings, 0,
link              303 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 				sizeof(link->cur_link_settings));
link              305 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link->link_enc->funcs->enable_dp_output(
link              306 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 						link->link_enc,
link              309 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link->cur_link_settings = *link_setting;
link              311 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			dp_receiver_power_ctrl(link, true);
link              314 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 					link,
link              320 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link->dc->hwss.enable_stream(&pipes[i]);
link              322 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c 			link->dc->hwss.unblank_stream(&pipes[i],
link             1798 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 			&& stream_has_pll->link->connector_signal
link             1856 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	struct dc_link *link = stream->link;
link             1860 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	if (!link->link_enc->funcs->is_dig_enabled(link->link_enc))
link             1869 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	inst = link->link_enc->funcs->get_dig_frontend(link->link_enc);
link             2612 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	if (false == pipe_ctx_old->stream->link->link_state_valid &&
link             2748 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	struct dc_link *link = stream->link;
link             2758 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		if (!link->link_enc->funcs->validate_output_with_stream(
link             2759 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 						link->link_enc, stream))
link             2767 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		      link,
link               47 drivers/gpu/drm/amd/display/dc/core/dc_sink.c 	struct dc_link *link = init_params->link;
link               49 drivers/gpu/drm/amd/display/dc/core/dc_sink.c 	if (!link)
link               53 drivers/gpu/drm/amd/display/dc/core/dc_sink.c 	sink->link = link;
link               54 drivers/gpu/drm/amd/display/dc/core/dc_sink.c 	sink->ctx = link->ctx;
link               58 drivers/gpu/drm/amd/display/dc/core/dc_sink.c 	sink->sink_id = init_params->link->ctx->dc_sink_id_count;
link               61 drivers/gpu/drm/amd/display/dc/core/dc_sink.c 	init_params->link->ctx->dc_sink_id_count++;
link               47 drivers/gpu/drm/amd/display/dc/core/dc_stream.c 		stream->signal = stream->link->connector_signal;
link               70 drivers/gpu/drm/amd/display/dc/core/dc_stream.c 	stream->link = dc_sink_data->link;
link              658 drivers/gpu/drm/amd/display/dc/core/dc_stream.c 			stream->link->link_index);
link             1010 drivers/gpu/drm/amd/display/dc/dc.h 	struct dc_link *link;
link             1027 drivers/gpu/drm/amd/display/dc/dc.h 	struct dc_link *link;
link              169 drivers/gpu/drm/amd/display/dc/dc_ddc_types.h 	struct dc_link *link;
link              115 drivers/gpu/drm/amd/display/dc/dc_dp_types.h 	struct dc_link_settings link;
link              214 drivers/gpu/drm/amd/display/dc/dc_link.h 	struct dc_link *link,
link              220 drivers/gpu/drm/amd/display/dc/dc_link.h 	struct dc_link *link,
link              224 drivers/gpu/drm/amd/display/dc/dc_link.h 	struct dc_link *link,
link              228 drivers/gpu/drm/amd/display/dc/dc_link.h 	struct dc_link *link,
link              232 drivers/gpu/drm/amd/display/dc/dc_link.h bool dc_link_dp_sync_lt_begin(struct dc_link *link);
link              235 drivers/gpu/drm/amd/display/dc/dc_link.h 	struct dc_link *link,
link              239 drivers/gpu/drm/amd/display/dc/dc_link.h bool dc_link_dp_sync_lt_end(struct dc_link *link, bool link_down);
link              241 drivers/gpu/drm/amd/display/dc/dc_link.h void dc_link_dp_enable_hpd(const struct dc_link *link);
link              243 drivers/gpu/drm/amd/display/dc/dc_link.h void dc_link_dp_disable_hpd(const struct dc_link *link);
link              246 drivers/gpu/drm/amd/display/dc/dc_link.h 	struct dc_link *link,
link              252 drivers/gpu/drm/amd/display/dc/dc_link.h void dc_link_enable_hpd_filter(struct dc_link *link, bool enable);
link              254 drivers/gpu/drm/amd/display/dc/dc_link.h bool dc_link_is_dp_sink_present(struct dc_link *link);
link              256 drivers/gpu/drm/amd/display/dc/dc_link.h bool dc_link_detect_sink(struct dc_link *link, enum dc_connection_type *type);
link              263 drivers/gpu/drm/amd/display/dc/dc_link.h 				const struct dc_link *link);
link              269 drivers/gpu/drm/amd/display/dc/dc_link.h 					 struct dc_link *link);
link              273 drivers/gpu/drm/amd/display/dc/dc_link.h 					struct dc_link *link,
link              275 drivers/gpu/drm/amd/display/dc/dc_link.h void dc_link_enable_hpd(const struct dc_link *link);
link              276 drivers/gpu/drm/amd/display/dc/dc_link.h void dc_link_disable_hpd(const struct dc_link *link);
link              277 drivers/gpu/drm/amd/display/dc/dc_link.h void dc_link_set_test_pattern(struct dc_link *link,
link              283 drivers/gpu/drm/amd/display/dc/dc_link.h 	const struct dc_link *link,
link              287 drivers/gpu/drm/amd/display/dc/dc_link.h 		const struct dc_link *link);
link              122 drivers/gpu/drm/amd/display/dc/dc_stream.h 	struct dc_link *link;
link              524 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c 			stream->link->ddi_channel_mapping.raw;
link              526 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c 			stream->link->link_enc->transmitter;
link              528 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c 			stream->link->cur_link_settings.lane_count;
link              530 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c 			stream->link->cur_link_settings.link_rate;
link              532 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c 			stream->link->cur_link_settings.link_spread;
link              159 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c 		struct dc_link *link,
link              171 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c 	link->link_enc->funcs->psr_program_dp_dphy_fast_training(link->link_enc,
link              219 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c 	link->link_enc->funcs->psr_program_secondary_packet(link->link_enc,
link              564 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c 		struct dc_link *link,
link              580 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c 	link->link_enc->funcs->psr_program_dp_dphy_fast_training(link->link_enc,
link              628 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c 	link->link_enc->funcs->psr_program_secondary_packet(link->link_enc,
link              794 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c 			stream->link->connector_signal,
link              863 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c 	struct dc_link *link = stream->link;
link              873 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c 					link->link_enc->preferred_engine)
link              891 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c 	if (j >= 0 && link->connector_signal == SIGNAL_TYPE_DISPLAY_PORT)
link              653 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		pipe_ctx->stream->link->cur_link_settings.lane_count;
link              656 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct dc_link *link = pipe_ctx->stream->link;
link              667 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	link->link_enc->funcs->connect_dig_be_to_fe(link->link_enc,
link              670 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	link->dc->hwss.update_info_frame(pipe_ctx);
link              735 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		struct dc_link *link,
link              738 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct dc_context *ctx = link->ctx;
link              739 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct graphics_object_id connector = link->link_enc->connector;
link              803 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		struct dc_link *link,
link              806 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct dc_context *ctx = link->ctx;
link              812 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	if (dal_graphics_object_id_get_connector_id(link->link_enc->connector)
link              826 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 							link->link_trace.time_stamp.edp_poweroff), 1000000);
link              832 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 			if (link->local_sink != NULL)
link              834 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 						500 + link->local_sink->edid_caps.panel_patch.extra_t12_ms;
link              835 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 			if (link->link_trace.time_stamp.edp_poweroff == 0)
link              855 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		cntl.transmitter = link->link_enc->transmitter;
link              856 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		cntl.connector_obj_id = link->link_enc->connector;
link              859 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		cntl.hpd_sel = link->link_enc->hpd_source;
link              864 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 			link->link_trace.time_stamp.edp_poweroff = dm_get_timestamp(ctx);
link              866 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 			link->link_trace.time_stamp.edp_poweron = dm_get_timestamp(ctx);
link              885 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		struct dc_link *link,
link              888 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct dc_context *ctx = link->ctx;
link              892 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	if (dal_graphics_object_id_get_connector_id(link->link_enc->connector)
link              916 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	cntl.transmitter = link->link_enc->transmitter;
link              917 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	cntl.connector_obj_id = link->link_enc->connector;
link              920 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	cntl.hpd_sel = link->link_enc->hpd_source;
link              936 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		edp_receiver_ready_T7(link);
link              940 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		edp_receiver_ready_T9(link);
link             1029 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct dc_link *link = stream->link;
link             1045 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	link->link_enc->funcs->connect_dig_be_to_fe(
link             1046 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 			link->link_enc,
link             1057 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct dc_link *link = stream->link;
link             1066 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	if (link->local_sink && link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
link             1067 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		link->dc->hwss.edp_backlight_control(link, true);
link             1074 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct dc_link *link = stream->link;
link             1076 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	if (link->local_sink && link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
link             1077 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		link->dc->hwss.edp_backlight_control(link, false);
link             1078 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		dc_link_set_abm_disable(link);
link             1421 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	pipe_ctx->stream->link->psr_enabled = false;
link             1549 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	struct dc_link *link = NULL;
link             1555 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 			link = dc->links[i];
link             1560 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	return link;
link             1829 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	if (!pipe_ctx->stream->link)
link             1833 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	if (pipe_ctx->stream->link->connector_signal != SIGNAL_TYPE_EDP)
link             1837 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 	if (pipe_ctx->stream->link->psr_enabled)
link             2083 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 			pipe_ctx->stream->link->link_state_valid) {
link             2398 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		struct dc_link *link = dc->links[i];
link             2400 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c 		link->link_enc->funcs->hw_init(link->link_enc);
link               74 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h void dp_receiver_power_ctrl(struct dc_link *link, bool on);
link               77 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h 		struct dc_link *link,
link               81 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h 	struct dc_link *link,
link               85 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.h 		struct dc_link *link,
link              820 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c 	pixel_clk_params->encoder_object_id = stream->link->link_enc->id;
link             1130 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c 	struct dc_link *link = stream->link;
link             1140 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c 					link->link_enc->preferred_engine)
link              775 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c 	switch (stream->link->link_enc->transmitter) {
link             1246 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 		struct dc_link *link = dc->links[i];
link             1248 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 		link->link_enc->funcs->hw_init(link->link_enc);
link             1251 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 		if (link->link_enc->funcs->is_dig_enabled &&
link             1252 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 			link->link_enc->funcs->is_dig_enabled(link->link_enc))
link             1253 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 			link->link_status.link_active = true;
link             2829 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 					stream->link->ddc->dongle_type;
link             3229 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 	struct dc_link *link = stream->link;
link             3242 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 	if (link->local_sink && link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
link             3243 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 		link->dc->hwss.edp_backlight_control(link, true);
link              790 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c 			stream->link->connector_signal,
link              991 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c 	pixel_clk_params->encoder_object_id = stream->link->link_enc->id;
link             1222 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c 	struct dc_link *link = stream->link;
link             1232 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c 					link->link_enc->preferred_engine)
link             1587 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	struct dc_link *link = stream->link;
link             1607 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	if (link->local_sink && link->local_sink->sink_signal == SIGNAL_TYPE_EDP) {
link             1608 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 		link->dc->hwss.edp_backlight_control(link, true);
link             1924 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 		pipe_ctx->stream->link->cur_link_settings.lane_count;
link             1927 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	struct dc_link *link = pipe_ctx->stream->link;
link             1938 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	link->link_enc->funcs->connect_dig_be_to_fe(link->link_enc,
link             1941 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	if (link->dc->hwss.program_dmdata_engine)
link             1942 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 		link->dc->hwss.program_dmdata_engine(pipe_ctx);
link             1944 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 	link->dc->hwss.update_info_frame(pipe_ctx);
link             1446 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c 	pixel_clk_params->encoder_object_id = stream->link->link_enc->id;
link               49 drivers/gpu/drm/amd/display/dc/dm_helpers.h 		const struct dc_link *link);
link               65 drivers/gpu/drm/amd/display/dc/dm_helpers.h 	const struct dc_link *link);
link               72 drivers/gpu/drm/amd/display/dc/dm_helpers.h 	const struct dc_link *link);
link               90 drivers/gpu/drm/amd/display/dc/dm_helpers.h 		const struct dc_link *link,
link               95 drivers/gpu/drm/amd/display/dc/dm_helpers.h 		const struct dc_link *link);
link              101 drivers/gpu/drm/amd/display/dc/dm_helpers.h 		const struct dc_link *link,
link              111 drivers/gpu/drm/amd/display/dc/dm_helpers.h 		const struct dc_link *link,
link              118 drivers/gpu/drm/amd/display/dc/dm_helpers.h 		const struct dc_link *link,
link              129 drivers/gpu/drm/amd/display/dc/dm_helpers.h 		struct dc_link *link);
link              133 drivers/gpu/drm/amd/display/dc/dm_helpers.h 		struct dc_link *link,
link               67 drivers/gpu/drm/amd/display/dc/inc/core_types.h void link_destroy(struct dc_link **link);
link               71 drivers/gpu/drm/amd/display/dc/inc/core_types.h 		struct dc_link *link,
link               74 drivers/gpu/drm/amd/display/dc/inc/core_types.h void core_link_resume(struct dc_link *link);
link               96 drivers/gpu/drm/amd/display/dc/inc/core_types.h 	void (*link_init)(struct dc_link *link);
link               70 drivers/gpu/drm/amd/display/dc/inc/dc_link_ddc.h 	struct dc_link *link;
link               37 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h 	struct dc_link *link,
link               42 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h 	struct dc_link *link,
link               47 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h 	struct dc_link *link,
link               55 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h 	struct dc_link *link,
link               60 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h bool is_mst_supported(struct dc_link *link);
link               62 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h bool detect_dp_sink_caps(struct dc_link *link);
link               64 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h void detect_edp_sink_caps(struct dc_link *link);
link               66 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h bool is_dp_active_dongle(const struct dc_link *link);
link               68 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h void dp_enable_mst_on_sink(struct dc_link *link, bool enable);
link               70 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h enum dp_panel_mode dp_get_panel_mode(struct dc_link *link);
link               71 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode);
link               74 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h void dp_set_fec_ready(struct dc_link *link, bool ready);
link               75 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h void dp_set_fec_enable(struct dc_link *link, bool enable);
link               65 drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h 			struct dc_link *link,
link              271 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h 			struct dc_link *link,
link              274 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h 			struct dc_link *link,
link              276 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h 	void (*edp_wait_for_hpd_ready)(struct dc_link *link, bool power_up);
link               32 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h 	struct dc_link *link,
link               38 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h 	struct dc_link *link,
link               48 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h 	struct dc_link *link,
link               53 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h void dp_receiver_power_ctrl(struct dc_link *link, bool on);
link               54 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h bool edp_receiver_ready_T9(struct dc_link *link);
link               55 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h bool edp_receiver_ready_T7(struct dc_link *link);
link               57 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h void dp_disable_link_phy(struct dc_link *link, enum signal_type signal);
link               59 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h void dp_disable_link_phy_mst(struct dc_link *link, enum signal_type signal);
link               62 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h 	struct dc_link *link,
link               66 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h 	struct dc_link *link,
link               70 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h 	struct dc_link *link,
link               75 drivers/gpu/drm/amd/display/dc/inc/link_hwss.h void dp_retrain_link_dp_test(struct dc_link *link,
link              102 drivers/gpu/drm/amd/display/include/logger_interface.h #define CONN_DATA_DETECT(link, hex_data, hex_len, ...) \
link              104 drivers/gpu/drm/amd/display/include/logger_interface.h 			(void)(link); \
link              109 drivers/gpu/drm/amd/display/include/logger_interface.h #define CONN_DATA_LINK_LOSS(link, hex_data, hex_len, ...) \
link              111 drivers/gpu/drm/amd/display/include/logger_interface.h 			(void)(link); \
link              116 drivers/gpu/drm/amd/display/include/logger_interface.h #define CONN_MSG_LT(link, ...) \
link              118 drivers/gpu/drm/amd/display/include/logger_interface.h 			(void)(link); \
link              122 drivers/gpu/drm/amd/display/include/logger_interface.h #define CONN_MSG_MODE(link, ...) \
link              124 drivers/gpu/drm/amd/display/include/logger_interface.h 			(void)(link); \
link              136 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 	if (stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 &&
link              137 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED)
link               65 drivers/gpu/drm/bridge/analogix-anx78xx.c 	struct drm_dp_link link;
link              796 drivers/gpu/drm/bridge/analogix-anx78xx.c 	err = drm_dp_link_probe(&anx78xx->aux, &anx78xx->link);
link              803 drivers/gpu/drm/bridge/analogix-anx78xx.c 	err = drm_dp_link_power_up(&anx78xx->aux, &anx78xx->link);
link              845 drivers/gpu/drm/bridge/analogix-anx78xx.c 	value = drm_dp_link_rate_to_bw_code(anx78xx->link.rate);
link              851 drivers/gpu/drm/bridge/analogix-anx78xx.c 	err = drm_dp_link_configure(&anx78xx->aux, &anx78xx->link);
link              247 drivers/gpu/drm/bridge/tc358767.c 	struct tc_edp_link	link;
link              436 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.scrambler_dis)
link              438 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.spread)
link              440 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.num_lanes == 2)
link              442 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.rate != 162000)
link              669 drivers/gpu/drm/bridge/tc358767.c 	ret = drm_dp_link_probe(&tc->aux, &tc->link.base);
link              672 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.rate != 162000 && tc->link.base.rate != 270000) {
link              674 drivers/gpu/drm/bridge/tc358767.c 		tc->link.base.rate = 270000;
link              677 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.num_lanes > 2) {
link              679 drivers/gpu/drm/bridge/tc358767.c 		tc->link.base.num_lanes = 2;
link              685 drivers/gpu/drm/bridge/tc358767.c 	tc->link.spread = reg & DP_MAX_DOWNSPREAD_0_5;
link              691 drivers/gpu/drm/bridge/tc358767.c 	tc->link.scrambler_dis = false;
link              696 drivers/gpu/drm/bridge/tc358767.c 	tc->link.assr = reg & DP_ALTERNATE_SCRAMBLER_RESET_ENABLE;
link              699 drivers/gpu/drm/bridge/tc358767.c 		tc->link.base.revision >> 4, tc->link.base.revision & 0x0f,
link              700 drivers/gpu/drm/bridge/tc358767.c 		(tc->link.base.rate == 162000) ? "1.62Gbps" : "2.7Gbps",
link              701 drivers/gpu/drm/bridge/tc358767.c 		tc->link.base.num_lanes,
link              702 drivers/gpu/drm/bridge/tc358767.c 		(tc->link.base.capabilities & DP_LINK_CAP_ENHANCED_FRAMING) ?
link              705 drivers/gpu/drm/bridge/tc358767.c 		tc->link.spread ? "0.5%" : "0.0%",
link              706 drivers/gpu/drm/bridge/tc358767.c 		tc->link.scrambler_dis ? "disabled" : "enabled");
link              708 drivers/gpu/drm/bridge/tc358767.c 		tc->link.assr, tc->assr);
link              742 drivers/gpu/drm/bridge/tc358767.c 	out_bw = tc->link.base.num_lanes * tc->link.base.rate;
link              903 drivers/gpu/drm/bridge/tc358767.c 		 (tc->link.spread ? DP0_SRCCTRL_SSCG : 0) |
link              904 drivers/gpu/drm/bridge/tc358767.c 		 ((tc->link.base.rate != 162000) ? DP0_SRCCTRL_BW27 : 0));
link              914 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.num_lanes == 2)
link              955 drivers/gpu/drm/bridge/tc358767.c 	if (tc->assr != tc->link.assr) {
link              972 drivers/gpu/drm/bridge/tc358767.c 			tc->link.scrambler_dis = true;
link              977 drivers/gpu/drm/bridge/tc358767.c 	ret = drm_dp_link_configure(aux, &tc->link.base);
link              982 drivers/gpu/drm/bridge/tc358767.c 	tmp[0] = tc->link.spread ? DP_SPREAD_AMP_0_5 : 0x00;
link             1021 drivers/gpu/drm/bridge/tc358767.c 			   ((tc->link.base.capabilities &
link             1083 drivers/gpu/drm/bridge/tc358767.c 	tmp[0] = tc->link.scrambler_dis ? DP_LINK_SCRAMBLING_DISABLE : 0x00;
link             1102 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.num_lanes == 2) {
link             1173 drivers/gpu/drm/bridge/tc358767.c 	if (tc->link.base.capabilities & DP_LINK_CAP_ENHANCED_FRAMING)
link             1299 drivers/gpu/drm/bridge/tc358767.c 	avail = tc->link.base.num_lanes * tc->link.base.rate;
link              350 drivers/gpu/drm/drm_dp_helper.c int drm_dp_link_probe(struct drm_dp_aux *aux, struct drm_dp_link *link)
link              355 drivers/gpu/drm/drm_dp_helper.c 	memset(link, 0, sizeof(*link));
link              361 drivers/gpu/drm/drm_dp_helper.c 	link->revision = values[0];
link              362 drivers/gpu/drm/drm_dp_helper.c 	link->rate = drm_dp_bw_code_to_link_rate(values[1]);
link              363 drivers/gpu/drm/drm_dp_helper.c 	link->num_lanes = values[2] & DP_MAX_LANE_COUNT_MASK;
link              366 drivers/gpu/drm/drm_dp_helper.c 		link->capabilities |= DP_LINK_CAP_ENHANCED_FRAMING;
link              379 drivers/gpu/drm/drm_dp_helper.c int drm_dp_link_power_up(struct drm_dp_aux *aux, struct drm_dp_link *link)
link              385 drivers/gpu/drm/drm_dp_helper.c 	if (link->revision < 0x11)
link              417 drivers/gpu/drm/drm_dp_helper.c int drm_dp_link_power_down(struct drm_dp_aux *aux, struct drm_dp_link *link)
link              423 drivers/gpu/drm/drm_dp_helper.c 	if (link->revision < 0x11)
link              448 drivers/gpu/drm/drm_dp_helper.c int drm_dp_link_configure(struct drm_dp_aux *aux, struct drm_dp_link *link)
link              453 drivers/gpu/drm/drm_dp_helper.c 	values[0] = drm_dp_link_rate_to_bw_code(link->rate);
link              454 drivers/gpu/drm/drm_dp_helper.c 	values[1] = link->num_lanes;
link              456 drivers/gpu/drm/drm_dp_helper.c 	if (link->capabilities & DP_LINK_CAP_ENHANCED_FRAMING)
link              188 drivers/gpu/drm/drm_file.c 	list_for_each_entry_safe(e, et, &file_priv->event_list, link) {
link              189 drivers/gpu/drm/drm_file.c 		list_del(&e->link);
link              502 drivers/gpu/drm/drm_file.c 					struct drm_pending_event, link);
link              504 drivers/gpu/drm/drm_file.c 			list_del(&e->link);
link              531 drivers/gpu/drm/drm_file.c 				list_add(&e->link, &file_priv->event_list);
link              727 drivers/gpu/drm/drm_file.c 	list_add_tail(&e->link,
link              171 drivers/gpu/drm/drm_mm.c 	struct rb_node **link, *rb;
link              189 drivers/gpu/drm/drm_mm.c 		link = &hole_node->rb.rb_right;
link              193 drivers/gpu/drm/drm_mm.c 		link = &mm->interval_tree.rb_root.rb_node;
link              197 drivers/gpu/drm/drm_mm.c 	while (*link) {
link              198 drivers/gpu/drm/drm_mm.c 		rb = *link;
link              203 drivers/gpu/drm/drm_mm.c 			link = &parent->rb.rb_left;
link              205 drivers/gpu/drm/drm_mm.c 			link = &parent->rb.rb_right;
link              210 drivers/gpu/drm/drm_mm.c 	rb_link_node(&node->rb, rb, link);
link              216 drivers/gpu/drm/drm_mm.c 	struct rb_node **link = &root.rb_node, *rb = NULL; \
link              218 drivers/gpu/drm/drm_mm.c 	while (*link) { \
link              219 drivers/gpu/drm/drm_mm.c 		rb = *link; \
link              221 drivers/gpu/drm/drm_mm.c 			link = &rb->rb_left; \
link              223 drivers/gpu/drm/drm_mm.c 			link = &rb->rb_right; \
link              225 drivers/gpu/drm/drm_mm.c 	rb_link_node(&node->member, rb, link); \
link              240 drivers/gpu/drm/drm_mm.c 	struct rb_node **link = &root->rb_root.rb_node, *rb = NULL;
link              244 drivers/gpu/drm/drm_mm.c 	while (*link) {
link              245 drivers/gpu/drm/drm_mm.c 		rb = *link;
link              247 drivers/gpu/drm/drm_mm.c 			link = &rb->rb_left;
link              249 drivers/gpu/drm/drm_mm.c 			link = &rb->rb_right;
link              254 drivers/gpu/drm/drm_mm.c 	rb_link_node(&node->rb_hole_size, rb, link);
link              906 drivers/gpu/drm/drm_vblank.c 	list_add_tail(&e->base.link, &dev->vblank_event_list);
link             1172 drivers/gpu/drm/drm_vblank.c 	list_for_each_entry_safe(e, t, &dev->vblank_event_list, base.link) {
link             1178 drivers/gpu/drm/drm_vblank.c 		list_del(&e->base.link);
link             1512 drivers/gpu/drm/drm_vblank.c 		list_add_tail(&e->base.link, &dev->vblank_event_list);
link             1720 drivers/gpu/drm/drm_vblank.c 	list_for_each_entry_safe(e, t, &dev->vblank_event_list, base.link) {
link             1729 drivers/gpu/drm/drm_vblank.c 		list_del(&e->base.link);
link             1966 drivers/gpu/drm/drm_vblank.c 		list_add_tail(&e->base.link, &dev->vblank_event_list);
link              373 drivers/gpu/drm/exynos/exynos_drm_g2d.c 		list_add_tail(&node->event->base.link, &file_priv->event_list);
link              920 drivers/gpu/drm/exynos/exynos_drm_g2d.c 			     struct drm_exynos_pending_g2d_event, base.link);
link              330 drivers/gpu/drm/i915/gem/i915_gem_context.c 	list_del(&ctx->link);
link              419 drivers/gpu/drm/i915/gem/i915_gem_context.c 	list_add_tail(&ctx->link, &i915->contexts.list);
link              113 drivers/gpu/drm/i915/gem/i915_gem_context_types.h 	struct list_head link;
link              504 drivers/gpu/drm/i915/gem/i915_gem_domain.c 			list_move_tail(&obj->mm.link, &i915->mm.shrink_list);
link             2160 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 	list_for_each_entry(rq, &tl->requests, link) {
link             2168 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 	if (&rq->link == &tl->requests)
link               57 drivers/gpu/drm/i915/gem/i915_gem_object.c 	INIT_LIST_HEAD(&obj->mm.link);
link              207 drivers/gpu/drm/i915/gem/i915_gem_object_types.h 		struct list_head link;
link               72 drivers/gpu/drm/i915/gem/i915_gem_pages.c 		list_add_tail(&obj->mm.link, list);
link               21 drivers/gpu/drm/i915/gem/i915_gem_pm.c 				     typeof(*active), link);
link               23 drivers/gpu/drm/i915/gem/i915_gem_pm.c 		INIT_LIST_HEAD(&active->link);
link              176 drivers/gpu/drm/i915/gem/i915_gem_pm.c 					mm.link);
link              214 drivers/gpu/drm/i915/gem/i915_gem_pm.c 			list_move_tail(&obj->mm.link, &keep);
link              232 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c 						       mm.link))) {
link              233 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c 			list_move_tail(&obj->mm.link, &still_in_list);
link              404 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c 	list_for_each_entry(obj, &i915->mm.shrink_list, mm.link) {
link              532 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c 	if (!list_empty(&obj->mm.link)) { /* pinned by caller */
link              537 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c 		GEM_BUG_ON(list_empty(&obj->mm.link));
link              539 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c 		list_del_init(&obj->mm.link);
link              551 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c 	GEM_BUG_ON(!list_empty(&obj->mm.link));
link              560 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c 		list_add_tail(&obj->mm.link, head);
link               23 drivers/gpu/drm/i915/gem/selftests/mock_context.c 	INIT_LIST_HEAD(&ctx->link);
link             1556 drivers/gpu/drm/i915/gt/intel_engine_cs.c 	list_for_each_entry(request, &engine->active.requests, sched.link) {
link               80 drivers/gpu/drm/i915/gt/intel_engine_pool.c 	list_add(&node->link, list);
link              126 drivers/gpu/drm/i915/gt/intel_engine_pool.c 	list_for_each_entry(node, list, link) {
link              129 drivers/gpu/drm/i915/gt/intel_engine_pool.c 		list_del(&node->link);
link              134 drivers/gpu/drm/i915/gt/intel_engine_pool.c 	if (&node->link == list) {
link              166 drivers/gpu/drm/i915/gt/intel_engine_pool.c 		list_for_each_entry_safe(node, nn, list, link)
link               25 drivers/gpu/drm/i915/gt/intel_engine_pool_types.h 	struct list_head link;
link              350 drivers/gpu/drm/i915/gt/intel_lrc.c 	if (!list_is_last(&rq->sched.link, &engine->active.requests) &&
link              351 drivers/gpu/drm/i915/gt/intel_lrc.c 	    rq_prio(list_next_entry(rq, sched.link)) > last_prio)
link              485 drivers/gpu/drm/i915/gt/intel_lrc.c 					 sched.link) {
link              509 drivers/gpu/drm/i915/gt/intel_lrc.c 			list_move(&rq->sched.link, pl);
link              956 drivers/gpu/drm/i915/gt/intel_lrc.c 		list_move_tail(&rq->sched.link, pl);
link              971 drivers/gpu/drm/i915/gt/intel_lrc.c 			if (list_empty(&w->sched.link))
link              978 drivers/gpu/drm/i915/gt/intel_lrc.c 			list_move_tail(&w->sched.link, &list);
link              981 drivers/gpu/drm/i915/gt/intel_lrc.c 		rq = list_first_entry_or_null(&list, typeof(*rq), sched.link);
link             1004 drivers/gpu/drm/i915/gt/intel_lrc.c 	if (list_is_last(&rq->sched.link, &engine->active.requests))
link             1007 drivers/gpu/drm/i915/gt/intel_lrc.c 	hint = max(rq_prio(list_next_entry(rq, sched.link)),
link             1016 drivers/gpu/drm/i915/gt/intel_lrc.c 	if (list_is_last(&rq->sched.link, &engine->active.requests))
link             1019 drivers/gpu/drm/i915/gt/intel_lrc.c 	return rq_prio(list_next_entry(rq, sched.link));
link             1161 drivers/gpu/drm/i915/gt/intel_lrc.c 			if (!list_is_last(&last->sched.link,
link             1658 drivers/gpu/drm/i915/gt/intel_lrc.c 	GEM_BUG_ON(!list_empty(&node->link));
link             1659 drivers/gpu/drm/i915/gt/intel_lrc.c 	list_add_tail(&node->link, i915_sched_lookup_priolist(engine, prio));
link             1698 drivers/gpu/drm/i915/gt/intel_lrc.c 	GEM_BUG_ON(list_empty(&request->sched.link));
link             2446 drivers/gpu/drm/i915/gt/intel_lrc.c 	list_for_each_entry_from_reverse(rq, list, link) {
link             2595 drivers/gpu/drm/i915/gt/intel_lrc.c 	list_for_each_entry(rq, &engine->active.requests, sched.link)
link             3662 drivers/gpu/drm/i915/gt/intel_lrc.c 		list_move_tail(&rq->sched.link, virtual_queue(ve));
link             3931 drivers/gpu/drm/i915/gt/intel_lrc.c 	list_for_each_entry(rq, &engine->active.requests, sched.link) {
link               49 drivers/gpu/drm/i915/gt/intel_reset.c 	list_for_each_entry_continue(rq, &engine->active.requests, sched.link)
link              814 drivers/gpu/drm/i915/gt/intel_reset.c 	list_for_each_entry(tl, &timelines->active_list, link) {
link              835 drivers/gpu/drm/i915/gt/intel_reset.c 		tl = list_entry(&timelines->active_list, typeof(*tl), link);
link              790 drivers/gpu/drm/i915/gt/intel_ringbuffer.c 	list_for_each_entry(pos, &engine->active.requests, sched.link) {
link              918 drivers/gpu/drm/i915/gt/intel_ringbuffer.c 	list_for_each_entry(request, &engine->active.requests, sched.link) {
link             1880 drivers/gpu/drm/i915/gt/intel_ringbuffer.c 	list_for_each_entry(target, &tl->requests, link) {
link             1890 drivers/gpu/drm/i915/gt/intel_ringbuffer.c 	if (GEM_WARN_ON(&target->link == &tl->requests))
link              350 drivers/gpu/drm/i915/gt/intel_timeline.c 	list_add(&tl->link, &timelines->active_list);
link              366 drivers/gpu/drm/i915/gt/intel_timeline.c 	list_del(&tl->link);
link               79 drivers/gpu/drm/i915/gt/intel_timeline_types.h 	struct list_head link;
link               70 drivers/gpu/drm/i915/gt/mock_engine.c 					mock.link);
link               75 drivers/gpu/drm/i915/gt/mock_engine.c 	list_del_init(&request->mock.link);
link              168 drivers/gpu/drm/i915/gt/mock_engine.c 	INIT_LIST_HEAD(&request->mock.link);
link              194 drivers/gpu/drm/i915/gt/mock_engine.c 	list_add_tail(&request->mock.link, &engine->hw_queue);
link              195 drivers/gpu/drm/i915/gt/mock_engine.c 	if (list_is_first(&request->mock.link, &engine->hw_queue)) {
link              226 drivers/gpu/drm/i915/gt/mock_engine.c 	list_for_each_entry(request, &engine->active.requests, sched.link) {
link              309 drivers/gpu/drm/i915/gt/mock_engine.c 	list_for_each_entry_safe(request, rn, &mock->hw_queue, mock.link)
link               23 drivers/gpu/drm/i915/gt/selftests/mock_timeline.c 	INIT_LIST_HEAD(&timeline->link);
link               16 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c 	struct list_head link;
link               24 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c 	struct list_head link;
link              470 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c 	list_add_tail(&request.link, &ct->pending_requests);
link              505 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c 	list_del(&request.link);
link              657 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c 	list_for_each_entry(req, &ct->pending_requests, link) {
link              715 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c 					   struct ct_incoming_request, link);
link              717 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c 		list_del(&request->link);
link              781 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c 	list_add_tail(&request->link, &ct->incoming_requests);
link              577 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c 			list_del_init(&rq->sched.link);
link              708 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c 	list_for_each_entry(rq, &engine->active.requests, sched.link) {
link              721 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c 			list_del_init(&rq->sched.link);
link              260 drivers/gpu/drm/i915/gvt/kvmgt.c 	struct rb_node **link, *parent = NULL;
link              273 drivers/gpu/drm/i915/gvt/kvmgt.c 	link = &vgpu->vdev.gfn_cache.rb_node;
link              274 drivers/gpu/drm/i915/gvt/kvmgt.c 	while (*link) {
link              275 drivers/gpu/drm/i915/gvt/kvmgt.c 		parent = *link;
link              279 drivers/gpu/drm/i915/gvt/kvmgt.c 			link = &parent->rb_left;
link              281 drivers/gpu/drm/i915/gvt/kvmgt.c 			link = &parent->rb_right;
link              283 drivers/gpu/drm/i915/gvt/kvmgt.c 	rb_link_node(&new->gfn_node, parent, link);
link              288 drivers/gpu/drm/i915/gvt/kvmgt.c 	link = &vgpu->vdev.dma_addr_cache.rb_node;
link              289 drivers/gpu/drm/i915/gvt/kvmgt.c 	while (*link) {
link              290 drivers/gpu/drm/i915/gvt/kvmgt.c 		parent = *link;
link              294 drivers/gpu/drm/i915/gvt/kvmgt.c 			link = &parent->rb_left;
link              296 drivers/gpu/drm/i915/gvt/kvmgt.c 			link = &parent->rb_right;
link              298 drivers/gpu/drm/i915/gvt/kvmgt.c 	rb_link_node(&new->dma_addr_node, parent, link);
link               52 drivers/gpu/drm/i915/i915_active.c 	return (struct llist_node *)&node->base.link;
link               58 drivers/gpu/drm/i915/i915_active.c 	return (struct intel_engine_cs *)READ_ONCE(node->base.link.prev);
link               71 drivers/gpu/drm/i915/i915_active.c 			    struct active_node, base.link);
link              335 drivers/gpu/drm/i915/i915_active.c 		INIT_LIST_HEAD(&active->link);
link              634 drivers/gpu/drm/i915/i915_active.c 			node->base.link.prev = (void *)engine;
link               66 drivers/gpu/drm/i915/i915_active.h 	INIT_LIST_HEAD(&active->link);
link               92 drivers/gpu/drm/i915/i915_active.h 	list_move(&active->link, &request->active_list);
link              327 drivers/gpu/drm/i915/i915_active.h 	list_del_init(&active->link);
link               25 drivers/gpu/drm/i915/i915_active_types.h 	struct list_head link;
link               71 drivers/gpu/drm/i915/i915_buddy.c 	list_del(&block->link);
link               80 drivers/gpu/drm/i915/i915_buddy.c 	list_add(&block->link,
link               89 drivers/gpu/drm/i915/i915_buddy.c 	list_del(&block->link);
link              242 drivers/gpu/drm/i915/i915_buddy.c 		list_del(&buddy->link);
link              264 drivers/gpu/drm/i915/i915_buddy.c 	list_for_each_entry_safe(block, on, objects, link)
link              287 drivers/gpu/drm/i915/i915_buddy.c 						 link);
link              392 drivers/gpu/drm/i915/i915_buddy.c 			list_add_tail(&block->link, &allocated);
link               33 drivers/gpu/drm/i915/i915_buddy.h 	struct list_head link;
link              314 drivers/gpu/drm/i915/i915_debugfs.c 	list_for_each_entry(ctx, &i915->contexts.list, link) {
link             1576 drivers/gpu/drm/i915/i915_debugfs.c 	list_for_each_entry(ctx, &dev_priv->contexts.list, link) {
link             1084 drivers/gpu/drm/i915/i915_drv.h 	struct list_head link;
link              899 drivers/gpu/drm/i915/i915_gem.c 	list_for_each_entry(tl, &timelines->active_list, link) {
link              927 drivers/gpu/drm/i915/i915_gem.c 		tl = list_entry(&timelines->active_list, typeof(*tl), link);
link             1117 drivers/gpu/drm/i915/i915_gem.c 			list_move_tail(&obj->mm.link, list);
link             1724 drivers/gpu/drm/i915/i915_gem.c 	list_for_each_entry(obj, &i915->mm.shrink_list, mm.link) {
link              258 drivers/gpu/drm/i915/i915_gem_fence_reg.c 		list_move(&fence->link, &fence->i915->ggtt.fence_list);
link              282 drivers/gpu/drm/i915/i915_gem_fence_reg.c 		list_move_tail(&fence->link, &fence->i915->ggtt.fence_list);
link              318 drivers/gpu/drm/i915/i915_gem_fence_reg.c 	list_for_each_entry(fence, &i915->ggtt.fence_list, link) {
link              347 drivers/gpu/drm/i915/i915_gem_fence_reg.c 			list_move_tail(&fence->link, &ggtt->fence_list);
link              434 drivers/gpu/drm/i915/i915_gem_fence_reg.c 	list_for_each_entry(fence, &ggtt->fence_list, link)
link              450 drivers/gpu/drm/i915/i915_gem_fence_reg.c 	list_del(&fence->link);
link              467 drivers/gpu/drm/i915/i915_gem_fence_reg.c 	list_add(&fence->link, &ggtt->fence_list);
link              851 drivers/gpu/drm/i915/i915_gem_fence_reg.c 		list_add_tail(&fence->link, &ggtt->fence_list);
link               41 drivers/gpu/drm/i915/i915_gem_fence_reg.h 	struct list_head link;
link               36 drivers/gpu/drm/i915/i915_globals.c 	list_for_each_entry(global, &globals, link)
link               52 drivers/gpu/drm/i915/i915_globals.c 	list_add_tail(&global->link, &globals);
link               59 drivers/gpu/drm/i915/i915_globals.c 	list_for_each_entry_safe_reverse(global, next, &globals, link)
link               15 drivers/gpu/drm/i915/i915_globals.h 	struct list_head link;
link             1197 drivers/gpu/drm/i915/i915_gpu_error.c 	list_for_each_entry_from(request, &engine->active.requests, sched.link)
link             1211 drivers/gpu/drm/i915/i915_gpu_error.c 				 &engine->active.requests, sched.link) {
link             1912 drivers/gpu/drm/i915/i915_perf.c 	list_for_each_entry(ctx, &i915->contexts.list, link) {
link             2632 drivers/gpu/drm/i915/i915_perf.c 	list_del(&stream->link);
link             2782 drivers/gpu/drm/i915/i915_perf.c 	list_add(&stream->link, &dev_priv->perf.streams);
link             2806 drivers/gpu/drm/i915/i915_perf.c 	list_del(&stream->link);
link               42 drivers/gpu/drm/i915/i915_request.c 	struct list_head link;
link              151 drivers/gpu/drm/i915/i915_request.c 	list_for_each_entry(cb, &rq->execute_cb, link)
link              214 drivers/gpu/drm/i915/i915_request.c 	list_del(&rq->sched.link);
link              243 drivers/gpu/drm/i915/i915_request.c 	GEM_BUG_ON(!list_is_first(&rq->link, &rq->timeline->requests));
link              256 drivers/gpu/drm/i915/i915_request.c 	list_for_each_entry_safe(active, next, &rq->active_list, link) {
link              269 drivers/gpu/drm/i915/i915_request.c 		INIT_LIST_HEAD(&active->link);
link              305 drivers/gpu/drm/i915/i915_request.c 	list_del(&rq->link);
link              331 drivers/gpu/drm/i915/i915_request.c 		tmp = list_first_entry(&tl->requests, typeof(*tmp), link);
link              373 drivers/gpu/drm/i915/i915_request.c 		list_add_tail(&cb->link, &signal->execute_cb);
link              446 drivers/gpu/drm/i915/i915_request.c 		list_move_tail(&request->sched.link, &engine->active.requests);
link              598 drivers/gpu/drm/i915/i915_request.c 	list_for_each_entry_safe(rq, rn, &tl->requests, link)
link              615 drivers/gpu/drm/i915/i915_request.c 	rq = list_first_entry(&tl->requests, typeof(*rq), link);
link              624 drivers/gpu/drm/i915/i915_request.c 	rq = list_last_entry(&tl->requests, typeof(*rq), link);
link              778 drivers/gpu/drm/i915/i915_request.c 	rq = list_first_entry(&tl->requests, typeof(*rq), link);
link              779 drivers/gpu/drm/i915/i915_request.c 	if (!list_is_last(&rq->link, &tl->requests))
link              801 drivers/gpu/drm/i915/i915_request.c 	if (list_is_first(&signal->link, &signal->timeline->requests))
link              804 drivers/gpu/drm/i915/i915_request.c 	signal = list_prev_entry(signal, link);
link             1169 drivers/gpu/drm/i915/i915_request.c 	list_add_tail(&rq->link, &timeline->requests);
link             1525 drivers/gpu/drm/i915/i915_request.c 	list_for_each_entry_safe(tl, tn, &timelines->active_list, link) {
link             1539 drivers/gpu/drm/i915/i915_request.c 		list_safe_reset_next(tl, tn, link);
link             1541 drivers/gpu/drm/i915/i915_request.c 			list_del(&tl->link);
link             1548 drivers/gpu/drm/i915/i915_request.c 			list_add(&tl->link, &free);
link             1553 drivers/gpu/drm/i915/i915_request.c 	list_for_each_entry_safe(tl, tn, &free, link)
link              226 drivers/gpu/drm/i915/i915_request.h 	struct list_head link;
link              233 drivers/gpu/drm/i915/i915_request.h 		struct list_head link;
link              302 drivers/gpu/drm/i915/i915_scheduler.c 		GEM_BUG_ON(!list_empty(&node->link));
link              332 drivers/gpu/drm/i915/i915_scheduler.c 		if (list_empty(&node->link)) {
link              350 drivers/gpu/drm/i915/i915_scheduler.c 			list_move_tail(&node->link, cache.priolist);
link              392 drivers/gpu/drm/i915/i915_scheduler.c 	INIT_LIST_HEAD(&node->link);
link               18 drivers/gpu/drm/i915/i915_scheduler.h 		list_for_each_entry(it, &(plist)->requests[idx], sched.link)
link               26 drivers/gpu/drm/i915/i915_scheduler.h 					 sched.link)
link               56 drivers/gpu/drm/i915/i915_scheduler_types.h 	struct list_head link;
link              231 drivers/gpu/drm/i915/i915_sysfs.c 	list_for_each_entry(ctx, &dev_priv->contexts.list, link)
link             8462 drivers/gpu/drm/i915/intel_pm.c 	void (*link)(void);
link             8464 drivers/gpu/drm/i915/intel_pm.c 	link = symbol_get(ips_link_to_i915_driver);
link             8465 drivers/gpu/drm/i915/intel_pm.c 	if (link) {
link             8466 drivers/gpu/drm/i915/intel_pm.c 		link();
link              127 drivers/gpu/drm/i915/selftests/i915_buddy.c 	list_for_each_entry(block, blocks, link) {
link              246 drivers/gpu/drm/i915/selftests/i915_buddy.c 						 link);
link              354 drivers/gpu/drm/i915/selftests/i915_buddy.c 			list_add_tail(&block->link, &blocks);
link              419 drivers/gpu/drm/i915/selftests/i915_buddy.c 		list_add_tail(&block->link, &blocks);
link              429 drivers/gpu/drm/i915/selftests/i915_buddy.c 	list_add_tail(&block->link, &blocks);
link              437 drivers/gpu/drm/i915/selftests/i915_buddy.c 			list_add_tail(&block->link, &blocks);
link              443 drivers/gpu/drm/i915/selftests/i915_buddy.c 	block = list_last_entry(&blocks, typeof(*block), link);
link              444 drivers/gpu/drm/i915/selftests/i915_buddy.c 	list_del(&block->link);
link              449 drivers/gpu/drm/i915/selftests/i915_buddy.c 	list_for_each_entry_safe(block, bn, &blocks, link) {
link              450 drivers/gpu/drm/i915/selftests/i915_buddy.c 		list_del(&block->link);
link              512 drivers/gpu/drm/i915/selftests/i915_buddy.c 		list_add_tail(&block->link, &blocks);
link              519 drivers/gpu/drm/i915/selftests/i915_buddy.c 		list_add_tail(&block->link, &blocks);
link              556 drivers/gpu/drm/i915/selftests/i915_buddy.c 		block = list_first_entry_or_null(&blocks, typeof(*block), link);
link              558 drivers/gpu/drm/i915/selftests/i915_buddy.c 			list_del(&block->link);
link              570 drivers/gpu/drm/i915/selftests/i915_buddy.c 			list_add_tail(&block->link, &blocks);
link              580 drivers/gpu/drm/i915/selftests/i915_buddy.c 		list_add_tail(&block->link, &holes);
link              586 drivers/gpu/drm/i915/selftests/i915_buddy.c 			list_add_tail(&block->link, &blocks);
link              600 drivers/gpu/drm/i915/selftests/i915_buddy.c 			list_add_tail(&block->link, &blocks);
link              664 drivers/gpu/drm/i915/selftests/i915_buddy.c 						 link);
link              115 drivers/gpu/drm/i915/selftests/i915_vma.c 			list_for_each_entry(ctx, contexts, link) {
link              179 drivers/gpu/drm/i915/selftests/i915_vma.c 				list_move(&ctx->link, &contexts);
link              192 drivers/gpu/drm/i915/selftests/i915_vma.c 		list_for_each_entry_safe(ctx, cn, &contexts, link) {
link              193 drivers/gpu/drm/i915/selftests/i915_vma.c 			list_del_init(&ctx->link);
link              204 drivers/gpu/drm/i915/selftests/i915_vma.c 	list_for_each_entry_safe(ctx, cn, &contexts, link) {
link              205 drivers/gpu/drm/i915/selftests/i915_vma.c 		list_del_init(&ctx->link);
link               51 drivers/gpu/drm/i915/selftests/mock_request.c 	was_queued = !list_empty(&request->mock.link);
link               52 drivers/gpu/drm/i915/selftests/mock_request.c 	list_del_init(&request->mock.link);
link              274 drivers/gpu/drm/nouveau/dispnv50/disp.c 	nv_encoder->link = 0;
link              300 drivers/gpu/drm/nouveau/dispnv50/disp.c 	nv_encoder->link = args.info.link;
link              867 drivers/gpu/drm/nouveau/dispnv50/disp.c 	if (mstm->outp->link & 1)
link             1484 drivers/gpu/drm/nouveau/dispnv50/disp.c 		if (nv_encoder->link & 1) {
link             1536 drivers/gpu/drm/nouveau/dispnv50/disp.c 		if (nv_encoder->link & 1)
link               48 drivers/gpu/drm/nouveau/include/nvif/cl5070.h 	__u8  link;
link               27 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dcb.h 	uint8_t link;
link               32 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dcb.h 			int link;
link               11 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h 	int link;
link               27 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h 		.link = 0,                                                     \
link               16 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h 	u8  link;
link             1399 drivers/gpu/drm/nouveau/nouveau_bios.c 	int link = 0;
link             1444 drivers/gpu/drm/nouveau/nouveau_bios.c 			entry->lvdsconf.sor.link = (conf & 0x00000030) >> 4;
link             1445 drivers/gpu/drm/nouveau/nouveau_bios.c 			link = entry->lvdsconf.sor.link;
link             1470 drivers/gpu/drm/nouveau/nouveau_bios.c 		entry->dpconf.sor.link = (conf & 0x00000030) >> 4;
link             1500 drivers/gpu/drm/nouveau/nouveau_bios.c 		link = entry->dpconf.sor.link;
link             1504 drivers/gpu/drm/nouveau/nouveau_bios.c 			entry->tmdsconf.sor.link = (conf & 0x00000030) >> 4;
link             1506 drivers/gpu/drm/nouveau/nouveau_bios.c 			link = entry->tmdsconf.sor.link;
link             1528 drivers/gpu/drm/nouveau/nouveau_bios.c 		entry->duallink_possible = (entry->sorconf.link == 3);
link             1537 drivers/gpu/drm/nouveau/nouveau_bios.c 	entry->hashm = (entry->heads << 8) | (link << 6) | entry->or;
link               46 drivers/gpu/drm/nouveau/nouveau_encoder.h 	int link;
link              112 drivers/gpu/drm/nouveau/nouveau_usif.c 		list_add_tail(&ntfy->p->base.link, &filp->event_list);
link              256 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 			init.link = ior->asy.link;
link              297 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		init.link = dp->outp.ior->asy.link;
link              309 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 			init.link = dp->outp.ior->asy.link;
link              315 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 			init.link = dp->outp.ior->asy.link;
link              323 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		init.link = dp->outp.ior->asy.link;
link              431 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		init.link = ior->arm.link;
link               33 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h 		unsigned link:2;
link               53 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h 		int (*get)(struct nvkm_outp *, int *link);
link              113 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h 	return nv50_ior_base(ior) + ((ior->asy.link == 2) * 0x80);
link              187 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	const u8  l = ffs(outp->info.link);
link              224 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		if (ior->asy.link == 3)
link              247 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		init.link = ior->asy.link;
link              272 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		init.link = ior->arm.link;
link              454 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		ior->asy.link      = (disp->sor.lvdsconf & 0x0100) ? 3  : 1;
link              109 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c 	outp->ior->asy.link = outp->info.sorconf.link;
link              182 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c 	int id, link;
link              197 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c 		id = ior->func->route.get(outp, &link);
link              205 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c 		link = (ior->type == SOR) ? outp->info.sorconf.link : 0;
link              222 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c 	OUTP_DBG(outp, "on %s link %x", ior->name, ior->arm.link);
link              263 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c 		 outp->info.type >= 2 ? outp->info.sorconf.link : 0,
link              105 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c 				args->v0.link = outp->ior->asy.link;
link              245 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c 	case 0: state->proto = LVDS; state->link = 1; break;
link              246 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c 	case 1: state->proto = TMDS; state->link = 1; break;
link              247 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c 	case 2: state->proto = TMDS; state->link = 2; break;
link              248 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c 	case 5: state->proto = TMDS; state->link = 3; break;
link              249 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c 	case 8: state->proto =   DP; state->link = 1; break;
link              250 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c 	case 9: state->proto =   DP; state->link = 2; break;
link              124 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	u32 div1 = sor->asy.link == 3;
link              125 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	u32 div2 = sor->asy.link == 3;
link              144 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	case 0: state->proto = LVDS; state->link = 1; break;
link              145 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	case 1: state->proto = TMDS; state->link = 1; break;
link              146 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	case 2: state->proto = TMDS; state->link = 2; break;
link              147 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	case 5: state->proto = TMDS; state->link = 3; break;
link              148 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	case 8: state->proto =   DP; state->link = 1; break;
link              149 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	case 9: state->proto =   DP; state->link = 2; break;
link               32 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm107.c 	if (sor->asy.link & 1)
link               54 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 	u32 link = ior ? (ior->asy.link == 2) : 0;
link               56 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 	if (outp->info.sorconf.link & 1) {
link               57 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 		nvkm_mask(device, 0x612308 + moff, 0x0000001f, link << 4 | sor);
link               58 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 		link++;
link               61 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 	if (outp->info.sorconf.link & 2)
link               62 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 		nvkm_mask(device, 0x612388 + moff, 0x0000001f, link << 4 | sor);
link               66 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c gm200_sor_route_get(struct nvkm_outp *outp, int *link)
link               69 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 	const int sublinks = outp->info.sorconf.link;
link               72 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 	for (*link = 0, m = __ffs(outp->info.or) * 2, s = 0; s < 2; m++, s++) {
link               79 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c 			*link |= lnk[s];
link               66 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgv100.c 	case 0: state->proto = LVDS; state->link = 1; break;
link               67 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgv100.c 	case 1: state->proto = TMDS; state->link = 1; break;
link               68 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgv100.c 	case 2: state->proto = TMDS; state->link = 2; break;
link               69 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgv100.c 	case 5: state->proto = TMDS; state->link = 3; break;
link               70 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgv100.c 	case 8: state->proto =   DP; state->link = 1; break;
link               71 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgv100.c 	case 9: state->proto =   DP; state->link = 2; break;
link               32 drivers/gpu/drm/nouveau/nvkm/engine/disp/sornv50.c 	const int  div = sor->asy.link == 3;
link               75 drivers/gpu/drm/nouveau/nvkm/engine/disp/sornv50.c 	case 0: state->proto = LVDS; state->link = 1; break;
link               76 drivers/gpu/drm/nouveau/nvkm/engine/disp/sornv50.c 	case 1: state->proto = TMDS; state->link = 1; break;
link               77 drivers/gpu/drm/nouveau/nvkm/engine/disp/sornv50.c 	case 2: state->proto = TMDS; state->link = 2; break;
link               78 drivers/gpu/drm/nouveau/nvkm/engine/disp/sornv50.c 	case 5: state->proto = TMDS; state->link = 3; break;
link              117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c 	return (outp->heads << 8) | (outp->link << 6) | outp->or;
link              136 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c 			outp->link      = 0;
link              179 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c 				outp->link = (conf & 0x00000030) >> 4;
link              180 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c 				outp->sorconf.link = outp->link; /*XXX*/
link              103 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c 		if (init->link)
link              104 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c 			return init->link == 2;
link              818 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c 					       (init->outp->sorconf.link << 6),
link              100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c 		info->link   = 0xff;
link              109 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c 		info->link   = nvbios_rd08(bios, vmap + 0x01);
link              143 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c 				init.link = outp.sorconf.link == 2;
link               68 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c 		u8 link = mxm_sor_map(bios, ctx->desc.dig_conn);
link               69 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c 		if ((ctx->outp[0] & 0x0f000000) != (link & 0x0f) << 24)
link               73 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c 		link = (link & 0x30) >> 4;
link               74 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c 		if ((link & ((ctx->outp[1] & 0x00000030) >> 4)) != link)
link               99 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c 	u8 type, i2cidx, link, ver, len;
link              133 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c 		link = mxm_sor_map(bios, ctx.desc.dig_conn) & 0x30;
link              135 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c 		ctx.outp[1] |= link;
link               91 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c 		if (info.link != 0xff) {
link               92 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c 			int ret = nvkm_volt_map_min(volt, info.link);
link              147 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c 		if (info.link != 0xff) {
link              148 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c 			int ret = nvkm_volt_map(volt, info.link, temp);
link               52 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct mipi_dsi_device *link;
link               90 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = mipi_dsi_dcs_set_display_off(innolux->link);
link               95 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = mipi_dsi_dcs_enter_sleep_mode(innolux->link);
link              151 drivers/gpu/drm/panel/panel-innolux-p079zca.c 			err = mipi_dsi_generic_write(innolux->link, cmd->data,
link              164 drivers/gpu/drm/panel/panel-innolux-p079zca.c 			err = mipi_dsi_dcs_nop(innolux->link);
link              173 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = mipi_dsi_dcs_exit_sleep_mode(innolux->link);
link              183 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = mipi_dsi_dcs_set_display_on(innolux->link);
link              499 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->link = dsi;
link               24 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 	struct mipi_dsi_device *link;
link              196 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 	err = mipi_dsi_dcs_set_display_off(kingdisplay->link);
link              214 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 	err = mipi_dsi_dcs_enter_sleep_mode(kingdisplay->link);
link              259 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 		err = mipi_dsi_generic_write(kingdisplay->link, &init_code[i],
link              268 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 	err = mipi_dsi_dcs_exit_sleep_mode(kingdisplay->link);
link              278 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 	err = mipi_dsi_dcs_set_display_on(kingdisplay->link);
link              375 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 	struct device *dev = &kingdisplay->link->dev;
link              396 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 	kingdisplay->base.dev = &kingdisplay->link->dev;
link              421 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 	kingdisplay->link = dsi;
link              480 drivers/gpu/drm/rockchip/cdn-dp-core.c 	dp->link.rate = 0;
link              481 drivers/gpu/drm/rockchip/cdn-dp-core.c 	dp->link.num_lanes = 0;
link              573 drivers/gpu/drm/rockchip/cdn-dp-core.c 	if (!port || !dp->link.rate || !dp->link.num_lanes)
link              955 drivers/gpu/drm/rockchip/cdn-dp-core.c 		unsigned int rate = dp->link.rate;
link              956 drivers/gpu/drm/rockchip/cdn-dp-core.c 		unsigned int lanes = dp->link.num_lanes;
link              969 drivers/gpu/drm/rockchip/cdn-dp-core.c 		    (rate != dp->link.rate || lanes != dp->link.num_lanes)) {
link               95 drivers/gpu/drm/rockchip/cdn-dp-core.h 	struct drm_dp_link link;
link              538 drivers/gpu/drm/rockchip/cdn-dp-reg.c 	dp->link.rate = drm_dp_bw_code_to_link_rate(status[0]);
link              539 drivers/gpu/drm/rockchip/cdn-dp-reg.c 	dp->link.num_lanes = status[1];
link              563 drivers/gpu/drm/rockchip/cdn-dp-reg.c 	DRM_DEV_DEBUG_KMS(dp->dev, "rate:0x%x, lanes:%d\n", dp->link.rate,
link              564 drivers/gpu/drm/rockchip/cdn-dp-reg.c 			  dp->link.num_lanes);
link              642 drivers/gpu/drm/rockchip/cdn-dp-reg.c 	link_rate = dp->link.rate / 1000;
link              662 drivers/gpu/drm/rockchip/cdn-dp-reg.c 		do_div(symbol, dp->link.num_lanes * link_rate * 8);
link              668 drivers/gpu/drm/rockchip/cdn-dp-reg.c 				      mode->clock, dp->link.num_lanes,
link              683 drivers/gpu/drm/rockchip/cdn-dp-reg.c 	val /= (dp->link.num_lanes * link_rate);
link              836 drivers/gpu/drm/rockchip/cdn-dp-reg.c 		if (dp->link.num_lanes == 1)
link              316 drivers/gpu/drm/rockchip/rockchip_drm_drv.c 	struct device_link *link;
link              318 drivers/gpu/drm/rockchip/rockchip_drm_drv.c 	list_for_each_entry(link, &dev->links.consumers, s_node)
link              319 drivers/gpu/drm/rockchip/rockchip_drm_drv.c 		device_link_del(link);
link             1184 drivers/gpu/drm/selftests/test-drm_mm.c 	struct list_head link;
link             1199 drivers/gpu/drm/selftests/test-drm_mm.c 		list_add(&e->link, evict_list);
link             1203 drivers/gpu/drm/selftests/test-drm_mm.c 	list_for_each_entry_safe(e, en, evict_list, link) {
link             1205 drivers/gpu/drm/selftests/test-drm_mm.c 			list_del(&e->link);
link             1213 drivers/gpu/drm/selftests/test-drm_mm.c 	list_for_each_entry(e, evict_list, link)
link             1222 drivers/gpu/drm/selftests/test-drm_mm.c 			list_add(&e->link, evict_list);
link             1247 drivers/gpu/drm/selftests/test-drm_mm.c 		list_add(&e->link, &evict_list);
link             1250 drivers/gpu/drm/selftests/test-drm_mm.c 	list_for_each_entry(e, &evict_list, link)
link             1261 drivers/gpu/drm/selftests/test-drm_mm.c 		e->link.next = NULL;
link             1266 drivers/gpu/drm/selftests/test-drm_mm.c 		e->link.next = &e->link;
link             1272 drivers/gpu/drm/selftests/test-drm_mm.c 		if (!e->link.next) {
link             1294 drivers/gpu/drm/selftests/test-drm_mm.c 		list_add(&e->link, &evict_list);
link             1300 drivers/gpu/drm/selftests/test-drm_mm.c 	list_for_each_entry(e, &evict_list, link) {
link             1312 drivers/gpu/drm/selftests/test-drm_mm.c 	list_for_each_entry(e, &evict_list, link)
link             1318 drivers/gpu/drm/selftests/test-drm_mm.c 	list_for_each_entry(e, &evict_list, link) {
link             1384 drivers/gpu/drm/selftests/test-drm_mm.c 	list_for_each_entry(e, &evict_list, link) {
link             2139 drivers/gpu/drm/selftests/test-drm_mm.c 	list_for_each_entry(e, &evict_list, link) {
link             2392 drivers/gpu/drm/tegra/dc.c 		struct device_link *link;
link             2400 drivers/gpu/drm/tegra/dc.c 		link = device_link_add(dc->dev, partner, flags);
link             2401 drivers/gpu/drm/tegra/dc.c 		if (!link) {
link              780 drivers/gpu/drm/tegra/dpaux.c int drm_dp_aux_train(struct drm_dp_aux *aux, struct drm_dp_link *link,
link              795 drivers/gpu/drm/tegra/dpaux.c 	for (i = 0; i < link->num_lanes; i++)
link              802 drivers/gpu/drm/tegra/dpaux.c 				link->num_lanes);
link              814 drivers/gpu/drm/tegra/dpaux.c 		if (!drm_dp_clock_recovery_ok(status, link->num_lanes))
link              820 drivers/gpu/drm/tegra/dpaux.c 		if (!drm_dp_channel_eq_ok(status, link->num_lanes))
link              167 drivers/gpu/drm/tegra/drm.h int drm_dp_aux_train(struct drm_dp_aux *aux, struct drm_dp_link *link,
link              601 drivers/gpu/drm/tegra/sor.c 				   struct drm_dp_link *link)
link              652 drivers/gpu/drm/tegra/sor.c 	for (i = 0, value = 0; i < link->num_lanes; i++) {
link              663 drivers/gpu/drm/tegra/sor.c 	err = drm_dp_aux_train(sor->aux, link, pattern);
link              673 drivers/gpu/drm/tegra/sor.c 	for (i = 0, value = 0; i < link->num_lanes; i++) {
link              684 drivers/gpu/drm/tegra/sor.c 	err = drm_dp_aux_train(sor->aux, link, pattern);
link              688 drivers/gpu/drm/tegra/sor.c 	for (i = 0, value = 0; i < link->num_lanes; i++) {
link              699 drivers/gpu/drm/tegra/sor.c 	err = drm_dp_aux_train(sor->aux, link, pattern);
link              906 drivers/gpu/drm/tegra/sor.c 				    struct drm_dp_link *link)
link              908 drivers/gpu/drm/tegra/sor.c 	const u64 f = 100000, link_rate = link->rate * 1000;
link              915 drivers/gpu/drm/tegra/sor.c 	if (!link_rate || !link->num_lanes || !pclk || !config->bits_per_pixel)
link              918 drivers/gpu/drm/tegra/sor.c 	output = link_rate * 8 * link->num_lanes;
link              962 drivers/gpu/drm/tegra/sor.c 			    (link->num_lanes * 8);
link              979 drivers/gpu/drm/tegra/sor.c 	if (link->capabilities & DP_LINK_CAP_ENHANCED_FRAMING)
link              982 drivers/gpu/drm/tegra/sor.c 	config->hblank_symbols -= 12 / link->num_lanes;
link              987 drivers/gpu/drm/tegra/sor.c 	config->vblank_symbols -= 36 / link->num_lanes + 4;
link             1687 drivers/gpu/drm/tegra/sor.c 	struct drm_dp_link link;
link             1704 drivers/gpu/drm/tegra/sor.c 	err = drm_dp_link_probe(sor->aux, &link);
link             1718 drivers/gpu/drm/tegra/sor.c 	err = tegra_sor_compute_config(sor, mode, &config, &link);
link             1833 drivers/gpu/drm/tegra/sor.c 	if (link.num_lanes <= 2)
link             1838 drivers/gpu/drm/tegra/sor.c 	if (link.num_lanes <= 1)
link             1843 drivers/gpu/drm/tegra/sor.c 	if (link.num_lanes == 0)
link             1852 drivers/gpu/drm/tegra/sor.c 	value |= SOR_DP_LINKCTL_LANE_COUNT(link.num_lanes);
link             1871 drivers/gpu/drm/tegra/sor.c 	value |= drm_dp_link_rate_to_bw_code(link.rate) << 2;
link             1896 drivers/gpu/drm/tegra/sor.c 	err = drm_dp_link_probe(sor->aux, &link);
link             1900 drivers/gpu/drm/tegra/sor.c 	err = drm_dp_link_power_up(sor->aux, &link);
link             1904 drivers/gpu/drm/tegra/sor.c 	err = drm_dp_link_configure(sor->aux, &link);
link             1908 drivers/gpu/drm/tegra/sor.c 	rate = drm_dp_link_rate_to_bw_code(link.rate);
link             1909 drivers/gpu/drm/tegra/sor.c 	lanes = link.num_lanes;
link             1920 drivers/gpu/drm/tegra/sor.c 	if (link.capabilities & DP_LINK_CAP_ENHANCED_FRAMING)
link             1927 drivers/gpu/drm/tegra/sor.c 	for (i = 0; i < link.num_lanes; i++) {
link             1936 drivers/gpu/drm/tegra/sor.c 	err = tegra_sor_dp_train_fast(sor, &link);
link               15 drivers/gpu/drm/vc4/vc4_debugfs.c 	struct list_head link;
link               32 drivers/gpu/drm/vc4/vc4_debugfs.c 	list_for_each_entry(entry, &vc4->debugfs_list, link) {
link               80 drivers/gpu/drm/vc4/vc4_debugfs.c 	list_add(&entry->link, &vc4->debugfs_list);
link               60 drivers/gpu/drm/vc4/vc4_hdmi.c 	struct snd_soc_dai_link link;
link             1064 drivers/gpu/drm/vc4/vc4_hdmi.c 	struct snd_soc_dai_link *dai_link = &hdmi->audio.link;
link              799 drivers/gpu/ipu-v3/ipu-common.c 	const struct fsu_link_info *link;
link              803 drivers/gpu/ipu-v3/ipu-common.c 	link = find_fsu_link_info(src_ch, sink_ch);
link              804 drivers/gpu/ipu-v3/ipu-common.c 	if (!link)
link              809 drivers/gpu/ipu-v3/ipu-common.c 	if (link->src.mask) {
link              810 drivers/gpu/ipu-v3/ipu-common.c 		src_reg = ipu_cm_read(ipu, link->src.reg);
link              811 drivers/gpu/ipu-v3/ipu-common.c 		src_reg &= ~link->src.mask;
link              812 drivers/gpu/ipu-v3/ipu-common.c 		src_reg |= link->src.val;
link              813 drivers/gpu/ipu-v3/ipu-common.c 		ipu_cm_write(ipu, src_reg, link->src.reg);
link              816 drivers/gpu/ipu-v3/ipu-common.c 	if (link->sink.mask) {
link              817 drivers/gpu/ipu-v3/ipu-common.c 		sink_reg = ipu_cm_read(ipu, link->sink.reg);
link              818 drivers/gpu/ipu-v3/ipu-common.c 		sink_reg &= ~link->sink.mask;
link              819 drivers/gpu/ipu-v3/ipu-common.c 		sink_reg |= link->sink.val;
link              820 drivers/gpu/ipu-v3/ipu-common.c 		ipu_cm_write(ipu, sink_reg, link->sink.reg);
link              833 drivers/gpu/ipu-v3/ipu-common.c 	const struct fsu_link_info *link;
link              837 drivers/gpu/ipu-v3/ipu-common.c 	link = find_fsu_link_info(src_ch, sink_ch);
link              838 drivers/gpu/ipu-v3/ipu-common.c 	if (!link)
link              843 drivers/gpu/ipu-v3/ipu-common.c 	if (link->src.mask) {
link              844 drivers/gpu/ipu-v3/ipu-common.c 		src_reg = ipu_cm_read(ipu, link->src.reg);
link              845 drivers/gpu/ipu-v3/ipu-common.c 		src_reg &= ~link->src.mask;
link              846 drivers/gpu/ipu-v3/ipu-common.c 		ipu_cm_write(ipu, src_reg, link->src.reg);
link              849 drivers/gpu/ipu-v3/ipu-common.c 	if (link->sink.mask) {
link              850 drivers/gpu/ipu-v3/ipu-common.c 		sink_reg = ipu_cm_read(ipu, link->sink.reg);
link              851 drivers/gpu/ipu-v3/ipu-common.c 		sink_reg &= ~link->sink.mask;
link              852 drivers/gpu/ipu-v3/ipu-common.c 		ipu_cm_write(ipu, sink_reg, link->sink.reg);
link              274 drivers/hid/intel-ish-hid/ipc/ipc.c 				    struct wr_msg_ctl_info, link);
link              323 drivers/hid/intel-ish-hid/ipc/ipc.c 	list_del_init(&ipc_link->link);
link              324 drivers/hid/intel-ish-hid/ipc/ipc.c 	list_add(&ipc_link->link, &dev->wr_free_list);
link              369 drivers/hid/intel-ish-hid/ipc/ipc.c 				    struct wr_msg_ctl_info, link);
link              370 drivers/hid/intel-ish-hid/ipc/ipc.c 	list_del_init(&ipc_link->link);
link              377 drivers/hid/intel-ish-hid/ipc/ipc.c 	list_add_tail(&ipc_link->link, &dev->wr_processing_list);
link              920 drivers/hid/intel-ish-hid/ipc/ipc.c 		list_add_tail(&tx_buf->link, &dev->wr_free_list);
link              744 drivers/hid/intel-ish-hid/ishtp/bus.c 	list_for_each_entry(cl, &ishtp_dev->cl_list, link) {
link               93 drivers/hid/intel-ish-hid/ishtp/client.c 	INIT_LIST_HEAD(&cl->link);
link              203 drivers/hid/intel-ish-hid/ishtp/client.c 	list_add_tail(&cl->link, &dev->cl_list);
link              245 drivers/hid/intel-ish-hid/ishtp/client.c 	list_for_each_entry(pos, &dev->cl_list, link)
link              247 drivers/hid/intel-ish-hid/ishtp/client.c 			list_del_init(&pos->link);
link              329 drivers/hid/intel-ish-hid/ishtp/client.c 	list_for_each_entry(pos, &dev->cl_list, link) {
link               37 drivers/hid/intel-ish-hid/ishtp/client.h 	struct list_head	link;
link              339 drivers/hid/intel-ish-hid/ishtp/hbm.c 	list_for_each_entry(cl, &dev->cl_list, link) {
link              384 drivers/hid/intel-ish-hid/ishtp/hbm.c 	list_for_each_entry(cl, &dev->cl_list, link) {
link              417 drivers/hid/intel-ish-hid/ishtp/hbm.c 	list_for_each_entry(cl, &dev->cl_list, link) {
link              466 drivers/hid/intel-ish-hid/ishtp/hbm.c 		list_for_each_entry(cl, &dev->cl_list, link) {
link              786 drivers/hid/intel-ish-hid/ishtp/hbm.c 		list_for_each_entry(cl, &dev->cl_list, link) {
link              100 drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h 	struct list_head	link;
link              213 drivers/hsi/clients/cmt_speech.c 	list_add_tail(&msg->link, &hi->cmdqueue);
link              245 drivers/hsi/clients/cmt_speech.c 	msg = list_first_entry(&ssi->cmdqueue, struct hsi_msg, link);
link              246 drivers/hsi/clients/cmt_speech.c 	list_del(&msg->link);
link              256 drivers/hsi/clients/cmt_speech.c 	list_for_each_entry_safe(msg, tmp, &ssi->cmdqueue, link) {
link              257 drivers/hsi/clients/cmt_speech.c 		list_del(&msg->link);
link              284 drivers/hsi/clients/cmt_speech.c 		list_add_tail(&msg->link, &hi->cmdqueue);
link              122 drivers/hsi/clients/hsi_char.c 	list_add_tail(&msg->link, queue);
link              137 drivers/hsi/clients/hsi_char.c 	msg = list_first_entry(queue, struct hsi_msg, link);
link              138 drivers/hsi/clients/hsi_char.c 	list_del(&msg->link);
link              155 drivers/hsi/clients/hsi_char.c 	list_for_each_entry_safe(msg, tmp, list, link) {
link              156 drivers/hsi/clients/hsi_char.c 		list_del(&msg->link);
link              205 drivers/hsi/clients/hsi_char.c 		list_add_tail(&msg->link, &channel->free_msgs_list);
link              142 drivers/hsi/clients/ssi_protocol.c 	struct list_head	link;
link              223 drivers/hsi/clients/ssi_protocol.c 	list_add_tail(&msg->link, &ssi->cmdqueue);
link              234 drivers/hsi/clients/ssi_protocol.c 	msg = list_first_entry(&ssi->cmdqueue, struct hsi_msg, link);
link              235 drivers/hsi/clients/ssi_protocol.c 	list_del(&msg->link);
link              246 drivers/hsi/clients/ssi_protocol.c 	list_for_each_entry_safe(msg, tmp, &ssi->cmdqueue, link) {
link              247 drivers/hsi/clients/ssi_protocol.c 		list_del(&msg->link);
link              271 drivers/hsi/clients/ssi_protocol.c 		list_add_tail(&msg->link, &ssi->cmdqueue);
link              332 drivers/hsi/clients/ssi_protocol.c 	list_for_each_entry(ssi, &ssip_list, link)
link              413 drivers/hsi/clients/ssi_protocol.c 		msg = list_entry(head, struct hsi_msg, link);
link              438 drivers/hsi/clients/ssi_protocol.c 	list_for_each_entry(msg, &ssi->txqueue, link)
link              584 drivers/hsi/clients/ssi_protocol.c 	dmsg = list_first_entry(&ssi->txqueue, struct hsi_msg, link);
link              585 drivers/hsi/clients/ssi_protocol.c 	list_del(&dmsg->link);
link             1007 drivers/hsi/clients/ssi_protocol.c 	list_add_tail(&msg->link, &ssi->txqueue);
link             1133 drivers/hsi/clients/ssi_protocol.c 	list_add(&ssi->link, &ssip_list);
link             1154 drivers/hsi/clients/ssi_protocol.c 	list_del(&ssi->link);
link              202 drivers/hsi/controllers/omap_ssi_core.c 		list_del(&msg->link); /* Dequeue msg */
link              205 drivers/hsi/controllers/omap_ssi_core.c 		list_add_tail(&msg->link, &omap_port->errqueue);
link              183 drivers/hsi/controllers/omap_ssi_port.c 		msg = list_entry(head, struct hsi_msg, link);
link              327 drivers/hsi/controllers/omap_ssi_port.c 	msg = list_first_entry(queue, struct hsi_msg, link);
link              367 drivers/hsi/controllers/omap_ssi_port.c 		list_add_tail(&msg->link, &omap_port->brkqueue);
link              403 drivers/hsi/controllers/omap_ssi_port.c 	list_add_tail(&msg->link, queue);
link              406 drivers/hsi/controllers/omap_ssi_port.c 		list_del(&msg->link);
link              440 drivers/hsi/controllers/omap_ssi_port.c 		msg = list_entry(node, struct hsi_msg, link);
link              652 drivers/hsi/controllers/omap_ssi_port.c 			msg = list_first_entry(queue, struct hsi_msg, link);
link              655 drivers/hsi/controllers/omap_ssi_port.c 			list_del(&msg->link);
link              687 drivers/hsi/controllers/omap_ssi_port.c 									link);
link              701 drivers/hsi/controllers/omap_ssi_port.c 									link);
link              851 drivers/hsi/controllers/omap_ssi_port.c 									link);
link              852 drivers/hsi/controllers/omap_ssi_port.c 		list_del(&msg->link);
link              883 drivers/hsi/controllers/omap_ssi_port.c 	list_for_each_entry_safe(msg, tmp, &omap_port->brkqueue, link) {
link              886 drivers/hsi/controllers/omap_ssi_port.c 		list_del(&msg->link);
link              904 drivers/hsi/controllers/omap_ssi_port.c 	msg = list_first_entry(queue, struct hsi_msg, link);
link              951 drivers/hsi/controllers/omap_ssi_port.c 	list_del(&msg->link);
link              485 drivers/hwtracing/coresight/coresight-etm-perf.c int etm_perf_symlink(struct coresight_device *csdev, bool link)
link              497 drivers/hwtracing/coresight/coresight-etm-perf.c 	if (link) {
link               61 drivers/hwtracing/coresight/coresight-etm-perf.h int etm_perf_symlink(struct coresight_device *csdev, bool link);
link               73 drivers/hwtracing/coresight/coresight-etm-perf.h static inline int etm_perf_symlink(struct coresight_device *csdev, bool link)
link              590 drivers/hwtracing/coresight/coresight-platform.c 				     const union acpi_object *link,
link              598 drivers/hwtracing/coresight/coresight-platform.c 	if (link->type != ACPI_TYPE_PACKAGE ||
link              599 drivers/hwtracing/coresight/coresight-platform.c 	    link->package.count != 4)
link              602 drivers/hwtracing/coresight/coresight-platform.c 	fields = link->package.elements;
link              667 drivers/hwtracing/coresight/coresight-platform.c 		const union acpi_object *link = &graph->package.elements[3 + i];
link              670 drivers/hwtracing/coresight/coresight-platform.c 		dir = acpi_coresight_parse_link(adev, link, ptr);
link              848 drivers/hwtracing/coresight/coresight-stm.c 	drvdata->stm.link = stm_generic_link;
link               34 drivers/hwtracing/coresight/coresight.c 	struct list_head link;
link              367 drivers/hwtracing/coresight/coresight.c 		nd = list_first_entry(path, struct coresight_node, link);
link              369 drivers/hwtracing/coresight/coresight.c 	list_for_each_entry_continue(nd, path, link) {
link              397 drivers/hwtracing/coresight/coresight.c 			parent = list_prev_entry(nd, link)->csdev;
link              398 drivers/hwtracing/coresight/coresight.c 			child = list_next_entry(nd, link)->csdev;
link              420 drivers/hwtracing/coresight/coresight.c 	list_for_each_entry_reverse(nd, path, link) {
link              451 drivers/hwtracing/coresight/coresight.c 			parent = list_prev_entry(nd, link)->csdev;
link              452 drivers/hwtracing/coresight/coresight.c 			child = list_next_entry(nd, link)->csdev;
link              476 drivers/hwtracing/coresight/coresight.c 	csdev = list_last_entry(path, struct coresight_node, link)->csdev;
link              660 drivers/hwtracing/coresight/coresight.c 	list_add(&node->link, path);
link              701 drivers/hwtracing/coresight/coresight.c 	list_for_each_entry_safe(nd, next, path, link) {
link              705 drivers/hwtracing/coresight/coresight.c 		list_del(&nd->link);
link              224 drivers/hwtracing/intel_th/sth.c 	sth->stm.link = sth_stm_link;
link               25 drivers/hwtracing/stm/console.c 		.link		= stm_console_link,
link              770 drivers/hwtracing/stm/core.c 	if (stm->data->link)
link              771 drivers/hwtracing/stm/core.c 		ret = stm->data->link(stm->data, stmf->output.master,
link             1010 drivers/hwtracing/stm/core.c 	rcu_assign_pointer(src->link, stm);
link             1029 drivers/hwtracing/stm/core.c 	if (stm->data->link)
link             1030 drivers/hwtracing/stm/core.c 		err = stm->data->link(stm->data, src->output.master,
link             1037 drivers/hwtracing/stm/core.c 	if (src->data->link)
link             1038 drivers/hwtracing/stm/core.c 		src->data->link(src->data);
link             1050 drivers/hwtracing/stm/core.c 	rcu_assign_pointer(src->link, NULL);
link             1073 drivers/hwtracing/stm/core.c 	struct stm_device *link;
link             1081 drivers/hwtracing/stm/core.c 	link = srcu_dereference_check(src->link, &stm_source_srcu, 1);
link             1088 drivers/hwtracing/stm/core.c 	if (link != stm) {
link             1093 drivers/hwtracing/stm/core.c 	stm_output_free(link, &src->output);
link             1095 drivers/hwtracing/stm/core.c 	pm_runtime_mark_last_busy(&link->dev);
link             1096 drivers/hwtracing/stm/core.c 	pm_runtime_put_autosuspend(&link->dev);
link             1098 drivers/hwtracing/stm/core.c 	stm_put_device(link);
link             1099 drivers/hwtracing/stm/core.c 	rcu_assign_pointer(src->link, NULL);
link             1143 drivers/hwtracing/stm/core.c 	stm = srcu_dereference(src->link, &stm_source_srcu);
link             1168 drivers/hwtracing/stm/core.c 	stm = srcu_dereference(src->link, &stm_source_srcu);
link             1181 drivers/hwtracing/stm/core.c 	struct stm_device *link;
link             1186 drivers/hwtracing/stm/core.c 	link = stm_find_device(buf);
link             1187 drivers/hwtracing/stm/core.c 	if (!link)
link             1190 drivers/hwtracing/stm/core.c 	pm_runtime_get(&link->dev);
link             1192 drivers/hwtracing/stm/core.c 	err = stm_source_link_add(src, link);
link             1194 drivers/hwtracing/stm/core.c 		pm_runtime_put_autosuspend(&link->dev);
link             1196 drivers/hwtracing/stm/core.c 		stm_put_device(link);
link             1309 drivers/hwtracing/stm/core.c 	stm = srcu_dereference(src->link, &stm_source_srcu);
link               90 drivers/hwtracing/stm/dummy_stm.c 		dummy_stm[i].link		= dummy_stm_link;
link               26 drivers/hwtracing/stm/ftrace.c 		.link		= stm_ftrace_link,
link               79 drivers/hwtracing/stm/heartbeat.c 		stm_heartbeat[i].data.link	= stm_heartbeat_link;
link               83 drivers/hwtracing/stm/stm.h 	struct stm_device __rcu	*link;
link               73 drivers/ide/ide-cs.c static int ide_probe(struct pcmcia_device *link)
link               77 drivers/ide/ide-cs.c     dev_dbg(&link->dev, "ide_attach()\n");
link               84 drivers/ide/ide-cs.c     info->p_dev = link;
link               85 drivers/ide/ide-cs.c     link->priv = info;
link               87 drivers/ide/ide-cs.c     link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO |
link               90 drivers/ide/ide-cs.c     return ide_config(link);
link               93 drivers/ide/ide-cs.c static void ide_detach(struct pcmcia_device *link)
link               95 drivers/ide/ide-cs.c     ide_info_t *info = link->priv;
link               97 drivers/ide/ide-cs.c     dev_dbg(&link->dev, "ide_detach(0x%p)\n", link);
link               99 drivers/ide/ide-cs.c     ide_release(link);
link              189 drivers/ide/ide-cs.c static int ide_config(struct pcmcia_device *link)
link              191 drivers/ide/ide-cs.c     ide_info_t *info = link->priv;
link              196 drivers/ide/ide-cs.c     dev_dbg(&link->dev, "ide_config(0x%p)\n", link);
link              198 drivers/ide/ide-cs.c     is_kme = ((link->manf_id == MANFID_KME) &&
link              199 drivers/ide/ide-cs.c 	      ((link->card_id == PRODID_KME_KXLC005_A) ||
link              200 drivers/ide/ide-cs.c 	       (link->card_id == PRODID_KME_KXLC005_B)));
link              202 drivers/ide/ide-cs.c     if (pcmcia_loop_config(link, pcmcia_check_one_config, &is_kme)) {
link              203 drivers/ide/ide-cs.c 	    link->config_flags &= ~CONF_AUTO_CHECK_VCC;
link              204 drivers/ide/ide-cs.c 	    if (pcmcia_loop_config(link, pcmcia_check_one_config, &is_kme))
link              207 drivers/ide/ide-cs.c     io_base = link->resource[0]->start;
link              208 drivers/ide/ide-cs.c     if (link->resource[1]->end)
link              209 drivers/ide/ide-cs.c 	    ctl_base = link->resource[1]->start;
link              211 drivers/ide/ide-cs.c 	    ctl_base = link->resource[0]->start + 0x0e;
link              213 drivers/ide/ide-cs.c     if (!link->irq)
link              216 drivers/ide/ide-cs.c     ret = pcmcia_enable_device(link);
link              227 drivers/ide/ide-cs.c      host = idecs_register(io_base, ctl_base, link->irq, link);
link              228 drivers/ide/ide-cs.c      if (host == NULL && resource_size(link->resource[0]) == 0x20) {
link              231 drivers/ide/ide-cs.c 				  link->irq, link);
link              239 drivers/ide/ide-cs.c     dev_info(&link->dev, "ide-cs: hd%c: Vpp = %d.%d\n",
link              241 drivers/ide/ide-cs.c 	    link->vpp / 10, link->vpp % 10);
link              246 drivers/ide/ide-cs.c     ide_release(link);
link              250 drivers/ide/ide-cs.c static void ide_release(struct pcmcia_device *link)
link              252 drivers/ide/ide-cs.c     ide_info_t *info = link->priv;
link              255 drivers/ide/ide-cs.c     dev_dbg(&link->dev, "ide_release(0x%p)\n", link);
link              271 drivers/ide/ide-cs.c     pcmcia_disable_device(link);
link              663 drivers/infiniband/core/cm.c 	struct rb_node **link = &cm.listen_service_table.rb_node;
link              669 drivers/infiniband/core/cm.c 	while (*link) {
link              670 drivers/infiniband/core/cm.c 		parent = *link;
link              679 drivers/infiniband/core/cm.c 			link = &(*link)->rb_left;
link              681 drivers/infiniband/core/cm.c 			link = &(*link)->rb_right;
link              683 drivers/infiniband/core/cm.c 			link = &(*link)->rb_left;
link              685 drivers/infiniband/core/cm.c 			link = &(*link)->rb_right;
link              687 drivers/infiniband/core/cm.c 			link = &(*link)->rb_right;
link              689 drivers/infiniband/core/cm.c 	rb_link_node(&cm_id_priv->service_node, parent, link);
link              724 drivers/infiniband/core/cm.c 	struct rb_node **link = &cm.remote_id_table.rb_node;
link              730 drivers/infiniband/core/cm.c 	while (*link) {
link              731 drivers/infiniband/core/cm.c 		parent = *link;
link              735 drivers/infiniband/core/cm.c 			link = &(*link)->rb_left;
link              737 drivers/infiniband/core/cm.c 			link = &(*link)->rb_right;
link              739 drivers/infiniband/core/cm.c 			link = &(*link)->rb_left;
link              741 drivers/infiniband/core/cm.c 			link = &(*link)->rb_right;
link              746 drivers/infiniband/core/cm.c 	rb_link_node(&timewait_info->remote_id_node, parent, link);
link              777 drivers/infiniband/core/cm.c 	struct rb_node **link = &cm.remote_qp_table.rb_node;
link              783 drivers/infiniband/core/cm.c 	while (*link) {
link              784 drivers/infiniband/core/cm.c 		parent = *link;
link              788 drivers/infiniband/core/cm.c 			link = &(*link)->rb_left;
link              790 drivers/infiniband/core/cm.c 			link = &(*link)->rb_right;
link              792 drivers/infiniband/core/cm.c 			link = &(*link)->rb_left;
link              794 drivers/infiniband/core/cm.c 			link = &(*link)->rb_right;
link              799 drivers/infiniband/core/cm.c 	rb_link_node(&timewait_info->remote_qp_node, parent, link);
link              807 drivers/infiniband/core/cm.c 	struct rb_node **link = &cm.remote_sidr_table.rb_node;
link              813 drivers/infiniband/core/cm.c 	while (*link) {
link              814 drivers/infiniband/core/cm.c 		parent = *link;
link              818 drivers/infiniband/core/cm.c 			link = &(*link)->rb_left;
link              820 drivers/infiniband/core/cm.c 			link = &(*link)->rb_right;
link              826 drivers/infiniband/core/cm.c 				link = &(*link)->rb_left;
link              828 drivers/infiniband/core/cm.c 				link = &(*link)->rb_right;
link              833 drivers/infiniband/core/cm.c 	rb_link_node(&cm_id_priv->sidr_id_node, parent, link);
link              154 drivers/infiniband/core/multicast.c 	struct rb_node **link = &port->table.rb_node;
link              159 drivers/infiniband/core/multicast.c 	while (*link) {
link              160 drivers/infiniband/core/multicast.c 		parent = *link;
link              166 drivers/infiniband/core/multicast.c 			link = &(*link)->rb_left;
link              168 drivers/infiniband/core/multicast.c 			link = &(*link)->rb_right;
link              170 drivers/infiniband/core/multicast.c 			link = &(*link)->rb_left;
link              174 drivers/infiniband/core/multicast.c 	rb_link_node(&group->node, parent, link);
link             1240 drivers/infiniband/hw/hfi1/debugfs.c 	char link[10];
link             1250 drivers/infiniband/hw/hfi1/debugfs.c 	snprintf(link, sizeof(link), "%d", unit);
link             1255 drivers/infiniband/hw/hfi1/debugfs.c 		debugfs_create_symlink(link, hfi1_dbg_root, name);
link              192 drivers/infiniband/hw/mlx4/cm.c 	struct rb_node **link = &sl_id_map->rb_node, *parent = NULL;
link              207 drivers/infiniband/hw/mlx4/cm.c 	while (*link) {
link              208 drivers/infiniband/hw/mlx4/cm.c 		parent = *link;
link              212 drivers/infiniband/hw/mlx4/cm.c 			link = &(*link)->rb_left;
link              214 drivers/infiniband/hw/mlx4/cm.c 			link = &(*link)->rb_right;
link              217 drivers/infiniband/hw/mlx4/cm.c 	rb_link_node(&new->node, parent, link);
link              994 drivers/infiniband/hw/mlx4/mad.c 	enum rdma_link_layer link = rdma_port_get_link_layer(ibdev, port_num);
link             1003 drivers/infiniband/hw/mlx4/mad.c 	if (link == IB_LINK_LAYER_INFINIBAND) {
link             1016 drivers/infiniband/hw/mlx4/mad.c 	if (link == IB_LINK_LAYER_ETHERNET)
link              186 drivers/infiniband/hw/mlx4/mcg.c 	struct rb_node **link = &ctx->mcg_table.rb_node;
link              191 drivers/infiniband/hw/mlx4/mcg.c 	while (*link) {
link              192 drivers/infiniband/hw/mlx4/mcg.c 		parent = *link;
link              198 drivers/infiniband/hw/mlx4/mcg.c 			link = &(*link)->rb_left;
link              200 drivers/infiniband/hw/mlx4/mcg.c 			link = &(*link)->rb_right;
link              204 drivers/infiniband/hw/mlx4/mcg.c 	rb_link_node(&group->node, parent, link);
link              127 drivers/infiniband/hw/mthca/mthca_mcg.c 	int link = 0;
link              146 drivers/infiniband/hw/mthca/mthca_mcg.c 		link = 1;
link              188 drivers/infiniband/hw/mthca/mthca_mcg.c 	if (!link)
link              204 drivers/infiniband/hw/mthca/mthca_mcg.c 	if (err && link && index != -1) {
link               56 drivers/infiniband/hw/usnic/usnic_ib.h 	struct list_head		link;
link               97 drivers/infiniband/hw/usnic/usnic_ib.h 	struct list_head		link;
link              113 drivers/infiniband/hw/usnic/usnic_ib_main.c 	list_for_each_entry(ctx, &us_ibdev->ctx_list, link) {
link              114 drivers/infiniband/hw/usnic/usnic_ib_main.c 		list_for_each_entry(qp_grp, &ctx->qp_grp_list, link) {
link              597 drivers/infiniband/hw/usnic/usnic_ib_main.c 	list_add_tail(&vf->link, &pf->vf_dev_list);
link              635 drivers/infiniband/hw/usnic/usnic_ib_main.c 	list_del(&vf->link);
link               83 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 					struct usnic_ib_qp_grp_flow, link);
link              356 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 		list_add_tail(&qp_flow->link, &qp_grp->flows_lst);
link              367 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	list_del(&qp_flow->link);
link              386 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c 	list_for_each_entry_safe(qp_flow, tmp, &qp_grp->flows_lst, link)
link               61 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.h 	struct list_head			link;
link               80 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.h 	struct list_head		link;
link              158 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 					struct usnic_ib_qp_grp_flow, link);
link              220 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	list_for_each_entry(vf, &us_ibdev->vf_dev_list, link) {
link              530 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	list_add_tail(&qp_grp->link, &ucontext->qp_grp_list);
link              557 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	list_del(&qp_grp->link);
link              654 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	list_add_tail(&context->link, &us_ibdev->ctx_list);
link              668 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	list_del(&context->link);
link              694 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	list_for_each_entry(qp_grp, &uctx->qp_grp_list, link) {
link              201 drivers/infiniband/hw/usnic/usnic_uiom.c 	list_for_each_entry_safe(interval, tmp, intervals, link) {
link              233 drivers/infiniband/hw/usnic/usnic_uiom.c 	list_for_each_entry_safe(interval, tmp, &rm_intervals, link) {
link              236 drivers/infiniband/hw/usnic/usnic_uiom.c 		list_del(&interval->link);
link              262 drivers/infiniband/hw/usnic/usnic_uiom.c 	list_for_each_entry(interval_node, intervals, link) {
link              494 drivers/infiniband/hw/usnic/usnic_uiom.c 	list_add_tail(&uiom_dev->link, &pd->devs);
link              513 drivers/infiniband/hw/usnic/usnic_uiom.c 	list_for_each_entry(uiom_dev, &pd->devs, link) {
link              527 drivers/infiniband/hw/usnic/usnic_uiom.c 	list_del(&uiom_dev->link);
link              547 drivers/infiniband/hw/usnic/usnic_uiom.c 	list_for_each_entry(uiom_dev, &pd->devs, link) {
link               54 drivers/infiniband/hw/usnic/usnic_uiom.h 	struct list_head		link;
link               55 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c #define MARK_FOR_ADD(node, list) (list_add_tail(&node->link, list))
link               90 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	node_a = list_entry(a, struct usnic_uiom_interval_node, link);
link               91 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	node_b = list_entry(b, struct usnic_uiom_interval_node, link);
link              114 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 		list_add_tail(&node->link, list);
link              134 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	list_for_each_entry(interval, &intersection_set, link) {
link              163 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	list_for_each_entry_safe(interval, tmp, diff_set, link) {
link              164 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 		list_del(&interval->link);
link              174 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	list_for_each_entry_safe(interval, tmp, intervals, link)
link              192 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	list_for_each_entry(interval, &intersection_set, link) {
link              232 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	list_for_each_entry_safe(interval, tmp, &intersection_set, link) {
link              237 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	list_for_each_entry(interval, &to_add, link)
link              243 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	list_for_each_entry_safe(interval, tmp, &to_add, link)
link              261 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 			list_add_tail(&interval->link, removed);
link              264 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c 	list_for_each_entry(interval, removed, link)
link               41 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.h 	struct list_head		link;
link              285 drivers/infiniband/sw/rxe/rxe_pool.c 	struct rb_node **link = &pool->tree.rb_node;
link              289 drivers/infiniband/sw/rxe/rxe_pool.c 	while (*link) {
link              290 drivers/infiniband/sw/rxe/rxe_pool.c 		parent = *link;
link              299 drivers/infiniband/sw/rxe/rxe_pool.c 			link = &(*link)->rb_left;
link              301 drivers/infiniband/sw/rxe/rxe_pool.c 			link = &(*link)->rb_right;
link              304 drivers/infiniband/sw/rxe/rxe_pool.c 	rb_link_node(&new->node, parent, link);
link              312 drivers/infiniband/sw/rxe/rxe_pool.c 	struct rb_node **link = &pool->tree.rb_node;
link              317 drivers/infiniband/sw/rxe/rxe_pool.c 	while (*link) {
link              318 drivers/infiniband/sw/rxe/rxe_pool.c 		parent = *link;
link              330 drivers/infiniband/sw/rxe/rxe_pool.c 			link = &(*link)->rb_left;
link              332 drivers/infiniband/sw/rxe/rxe_pool.c 			link = &(*link)->rb_right;
link              335 drivers/infiniband/sw/rxe/rxe_pool.c 	rb_link_node(&new->node, parent, link);
link              264 drivers/iommu/exynos-iommu.c 	struct device_link *link;	/* runtime PM link to master */
link             1258 drivers/iommu/exynos-iommu.c 		data->link = device_link_add(dev, data->sysmmu,
link             1288 drivers/iommu/exynos-iommu.c 		device_link_del(data->link);
link              319 drivers/iommu/fsl_pamu_domain.c 	list_del(&info->link);
link              338 drivers/iommu/fsl_pamu_domain.c 	list_for_each_entry_safe(info, tmp, &dma_domain->devices, link) {
link              368 drivers/iommu/fsl_pamu_domain.c 	list_add(&info->link, &dma_domain->devices);
link              437 drivers/iommu/fsl_pamu_domain.c 	list_for_each_entry(info, &dma_domain->devices, link) {
link              453 drivers/iommu/fsl_pamu_domain.c 	list_for_each_entry(info, &dma_domain->devices, link) {
link              468 drivers/iommu/fsl_pamu_domain.c 	list_for_each_entry(info, &dma_domain->devices, link) {
link              481 drivers/iommu/fsl_pamu_domain.c 	list_for_each_entry(info, &dma_domain->devices, link) {
link              793 drivers/iommu/fsl_pamu_domain.c 	list_for_each_entry(info, &dma_domain->devices, link) {
link               68 drivers/iommu/fsl_pamu_domain.h 	struct list_head link;	/* link to domain siblings */
link             1353 drivers/iommu/intel-iommu.c 	list_for_each_entry(info, &domain->devices, link)
link             1371 drivers/iommu/intel-iommu.c 	list_for_each_entry(info, &domain->devices, link) {
link             1474 drivers/iommu/intel-iommu.c 	list_for_each_entry(info, &domain->devices, link) {
link             2406 drivers/iommu/intel-iommu.c 	list_del(&info->link);
link             2418 drivers/iommu/intel-iommu.c 	list_for_each_entry_safe(info, tmp, &domain->devices, link)
link             2540 drivers/iommu/intel-iommu.c 	list_add(&info->link, &domain->devices);
link              103 drivers/iommu/iommu-sysfs.c int iommu_device_link(struct iommu_device *iommu, struct device *link)
link              111 drivers/iommu/iommu-sysfs.c 				      &link->kobj, dev_name(link));
link              115 drivers/iommu/iommu-sysfs.c 	ret = sysfs_create_link_nowarn(&link->kobj, &iommu->dev->kobj, "iommu");
link              118 drivers/iommu/iommu-sysfs.c 					     dev_name(link));
link              123 drivers/iommu/iommu-sysfs.c void iommu_device_unlink(struct iommu_device *iommu, struct device *link)
link              128 drivers/iommu/iommu-sysfs.c 	sysfs_remove_link(&link->kobj, "iommu");
link              129 drivers/iommu/iommu-sysfs.c 	sysfs_remove_link_from_group(&iommu->dev->kobj, "devices", dev_name(link));
link              520 drivers/iommu/qcom_iommu.c 	struct device_link *link;
link              530 drivers/iommu/qcom_iommu.c 	link = device_link_add(dev, qcom_iommu->dev, DL_FLAG_PM_RUNTIME);
link              531 drivers/iommu/qcom_iommu.c 	if (!link) {
link              114 drivers/iommu/rockchip-iommu.c 	struct device_link *link; /* runtime PM link from IOMMU to master */
link             1075 drivers/iommu/rockchip-iommu.c 	data->link = device_link_add(dev, iommu->dev,
link             1088 drivers/iommu/rockchip-iommu.c 	device_link_del(data->link);
link              222 drivers/leds/trigger/ledtrig-netdev.c static DEVICE_ATTR_RW(link);
link              119 drivers/macintosh/smu.c 	cmd = list_entry(smu->cmd_list.next, struct smu_cmd, link);
link              121 drivers/macintosh/smu.c 	list_del(&cmd->link);
link              275 drivers/macintosh/smu.c 	list_add_tail(&cmd->link, &smu->cmd_list);
link              739 drivers/macintosh/smu.c 				    struct smu_i2c_cmd, link);
link              741 drivers/macintosh/smu.c 		list_del(&cmd->link);
link              744 drivers/macintosh/smu.c 		list_add_tail(&cmd->scmd.link, &smu->cmd_list);
link              890 drivers/macintosh/smu.c 		list_add_tail(&cmd->scmd.link, &smu->cmd_list);
link              894 drivers/macintosh/smu.c 		list_add_tail(&cmd->link, &smu->cmd_i2c_list);
link               37 drivers/macintosh/windfarm.h 	struct list_head		link;
link              106 drivers/macintosh/windfarm.h 	struct list_head		link;
link              214 drivers/macintosh/windfarm_core.c 	list_for_each_entry(ct, &wf_controls, link) {
link              223 drivers/macintosh/windfarm_core.c 	list_add(&new_ct->link, &wf_controls);
link              247 drivers/macintosh/windfarm_core.c 	list_del(&ct->link);
link              309 drivers/macintosh/windfarm_core.c 	list_for_each_entry(sr, &wf_sensors, link) {
link              318 drivers/macintosh/windfarm_core.c 	list_add(&new_sr->link, &wf_sensors);
link              342 drivers/macintosh/windfarm_core.c 	list_del(&sr->link);
link              384 drivers/macintosh/windfarm_core.c 	list_for_each_entry(ct, &wf_controls, link)
link              386 drivers/macintosh/windfarm_core.c 	list_for_each_entry(sr, &wf_sensors, link)
link               64 drivers/macintosh/windfarm_fcu_controls.c 	struct list_head	link;
link              396 drivers/macintosh/windfarm_fcu_controls.c 	list_add(&fan->link, &pv->fan_list);
link              571 drivers/macintosh/windfarm_fcu_controls.c 		fan = list_first_entry(&pv->fan_list, struct wf_fcu_fan, link);
link              572 drivers/macintosh/windfarm_fcu_controls.c 		list_del(&fan->link);
link               44 drivers/macintosh/windfarm_smu_controls.c 	struct list_head	link;
link              282 drivers/macintosh/windfarm_smu_controls.c 		list_add(&fct->link, &smu_fans);
link              301 drivers/macintosh/windfarm_smu_controls.c 		list_add(&fct->link, &smu_fans);
link              314 drivers/macintosh/windfarm_smu_controls.c 		fct = list_entry(smu_fans.next, struct smu_fan_control, link);
link              315 drivers/macintosh/windfarm_smu_controls.c 		list_del(&fct->link);
link               41 drivers/macintosh/windfarm_smu_sat.c 	struct list_head	link;
link              282 drivers/macintosh/windfarm_smu_sat.c 			list_add(&sens->link, &sat->sensors);
link              309 drivers/macintosh/windfarm_smu_sat.c 			list_add(&sens->link, &sat->sensors);
link              328 drivers/macintosh/windfarm_smu_sat.c 					struct wf_sat_sensor, link);
link              329 drivers/macintosh/windfarm_smu_sat.c 		list_del(&sens->link);
link               52 drivers/macintosh/windfarm_smu_sensors.c 	struct list_head	link;
link              273 drivers/macintosh/windfarm_smu_sensors.c 	struct list_head	link;
link              439 drivers/macintosh/windfarm_smu_sensors.c 		list_add(&ads->link, &smu_ads);
link              467 drivers/macintosh/windfarm_smu_sensors.c 		ads = list_entry(smu_ads.next, struct smu_ad_sensor, link);
link              468 drivers/macintosh/windfarm_smu_sensors.c 		list_del(&ads->link);
link               61 drivers/mailbox/bcm2835-mailbox.c static struct bcm2835_mbox *bcm2835_link_mbox(struct mbox_chan *link)
link               63 drivers/mailbox/bcm2835-mailbox.c 	return container_of(link->mbox, struct bcm2835_mbox, controller);
link               70 drivers/mailbox/bcm2835-mailbox.c 	struct mbox_chan *link = &mbox->controller.chans[0];
link               75 drivers/mailbox/bcm2835-mailbox.c 		mbox_chan_received_data(link, &msg);
link               80 drivers/mailbox/bcm2835-mailbox.c static int bcm2835_send_data(struct mbox_chan *link, void *data)
link               82 drivers/mailbox/bcm2835-mailbox.c 	struct bcm2835_mbox *mbox = bcm2835_link_mbox(link);
link               92 drivers/mailbox/bcm2835-mailbox.c static int bcm2835_startup(struct mbox_chan *link)
link               94 drivers/mailbox/bcm2835-mailbox.c 	struct bcm2835_mbox *mbox = bcm2835_link_mbox(link);
link              102 drivers/mailbox/bcm2835-mailbox.c static void bcm2835_shutdown(struct mbox_chan *link)
link              104 drivers/mailbox/bcm2835-mailbox.c 	struct bcm2835_mbox *mbox = bcm2835_link_mbox(link);
link              109 drivers/mailbox/bcm2835-mailbox.c static bool bcm2835_last_tx_done(struct mbox_chan *link)
link              111 drivers/mailbox/bcm2835-mailbox.c 	struct bcm2835_mbox *mbox = bcm2835_link_mbox(link);
link              146 drivers/mailbox/stm32-ipcc.c static int stm32_ipcc_send_data(struct mbox_chan *link, void *data)
link              148 drivers/mailbox/stm32-ipcc.c 	unsigned int chan = (unsigned int)link->con_priv;
link              149 drivers/mailbox/stm32-ipcc.c 	struct stm32_ipcc *ipcc = container_of(link->mbox, struct stm32_ipcc,
link              165 drivers/mailbox/stm32-ipcc.c static int stm32_ipcc_startup(struct mbox_chan *link)
link              167 drivers/mailbox/stm32-ipcc.c 	unsigned int chan = (unsigned int)link->con_priv;
link              168 drivers/mailbox/stm32-ipcc.c 	struct stm32_ipcc *ipcc = container_of(link->mbox, struct stm32_ipcc,
link              185 drivers/mailbox/stm32-ipcc.c static void stm32_ipcc_shutdown(struct mbox_chan *link)
link              187 drivers/mailbox/stm32-ipcc.c 	unsigned int chan = (unsigned int)link->con_priv;
link              188 drivers/mailbox/stm32-ipcc.c 	struct stm32_ipcc *ipcc = container_of(link->mbox, struct stm32_ipcc,
link               56 drivers/md/dm-dust.c 	struct rb_node **link = &root->rb_node, *parent = NULL;
link               59 drivers/md/dm-dust.c 	while (*link) {
link               60 drivers/md/dm-dust.c 		parent = *link;
link               64 drivers/md/dm-dust.c 			link = &(*link)->rb_left;
link               66 drivers/md/dm-dust.c 			link = &(*link)->rb_right;
link               71 drivers/md/dm-dust.c 	rb_link_node(&new->node, parent, link);
link             1189 drivers/md/dm-integrity.c 	struct rb_node **link;
link             1195 drivers/md/dm-integrity.c 	link = &ic->journal_tree_root.rb_node;
link             1198 drivers/md/dm-integrity.c 	while (*link) {
link             1200 drivers/md/dm-integrity.c 		parent = *link;
link             1203 drivers/md/dm-integrity.c 			link = &j->node.rb_left;
link             1205 drivers/md/dm-integrity.c 			link = &j->node.rb_right;
link             1208 drivers/md/dm-integrity.c 	rb_link_node(&node->node, parent, link);
link              102 drivers/md/dm-zoned-metadata.c 	struct list_head	link;
link              278 drivers/md/dm-zoned-metadata.c 						struct dmz_mblock, link);
link              280 drivers/md/dm-zoned-metadata.c 			list_del_init(&mblk->link);
link              301 drivers/md/dm-zoned-metadata.c 	INIT_LIST_HEAD(&mblk->link);
link              365 drivers/md/dm-zoned-metadata.c 				list_del_init(&mblk->link);
link              469 drivers/md/dm-zoned-metadata.c 					struct dmz_mblock, link);
link              470 drivers/md/dm-zoned-metadata.c 		list_del_init(&mblk->link);
link              524 drivers/md/dm-zoned-metadata.c 			list_add_tail(&mblk->link, &zmd->mblk_lru_list);
link              572 drivers/md/dm-zoned-metadata.c 		list_add_tail(&mblk->link, &zmd->mblk_dirty_list);
link              682 drivers/md/dm-zoned-metadata.c 	list_for_each_entry(mblk, write_list, link) {
link              691 drivers/md/dm-zoned-metadata.c 	list_for_each_entry(mblk, write_list, link) {
link              801 drivers/md/dm-zoned-metadata.c 		mblk = list_first_entry(&write_list, struct dmz_mblock, link);
link              802 drivers/md/dm-zoned-metadata.c 		list_del_init(&mblk->link);
link              807 drivers/md/dm-zoned-metadata.c 			list_add_tail(&mblk->link, &zmd->mblk_lru_list);
link             1104 drivers/md/dm-zoned-metadata.c 	INIT_LIST_HEAD(&zone->link);
link             1395 drivers/md/dm-zoned-metadata.c 			list_add_tail(&dzone->link, &zmd->map_rnd_list);
link             1397 drivers/md/dm-zoned-metadata.c 			list_add_tail(&dzone->link, &zmd->map_seq_list);
link             1423 drivers/md/dm-zoned-metadata.c 		list_add_tail(&bzone->link, &zmd->map_rnd_list);
link             1455 drivers/md/dm-zoned-metadata.c 			list_add_tail(&dzone->link, &zmd->unmap_rnd_list);
link             1458 drivers/md/dm-zoned-metadata.c 			list_add_tail(&dzone->link, &zmd->reserved_seq_zones_list);
link             1462 drivers/md/dm-zoned-metadata.c 			list_add_tail(&dzone->link, &zmd->unmap_seq_list);
link             1491 drivers/md/dm-zoned-metadata.c 	if (list_empty(&zone->link))
link             1494 drivers/md/dm-zoned-metadata.c 	list_del_init(&zone->link);
link             1497 drivers/md/dm-zoned-metadata.c 		list_add_tail(&zone->link, &zmd->map_seq_list);
link             1500 drivers/md/dm-zoned-metadata.c 		list_add_tail(&zone->link, &zmd->map_rnd_list);
link             1583 drivers/md/dm-zoned-metadata.c 	list_for_each_entry(zone, &zmd->map_rnd_list, link) {
link             1605 drivers/md/dm-zoned-metadata.c 	list_for_each_entry(zone, &zmd->map_seq_list, link) {
link             1787 drivers/md/dm-zoned-metadata.c 	list_add_tail(&bzone->link, &zmd->map_rnd_list);
link             1818 drivers/md/dm-zoned-metadata.c 					struct dm_zone, link);
link             1819 drivers/md/dm-zoned-metadata.c 		list_del_init(&zone->link);
link             1824 drivers/md/dm-zoned-metadata.c 	zone = list_first_entry(list, struct dm_zone, link);
link             1825 drivers/md/dm-zoned-metadata.c 	list_del_init(&zone->link);
link             1853 drivers/md/dm-zoned-metadata.c 		list_add_tail(&zone->link, &zmd->unmap_rnd_list);
link             1857 drivers/md/dm-zoned-metadata.c 		list_add_tail(&zone->link, &zmd->reserved_seq_zones_list);
link             1860 drivers/md/dm-zoned-metadata.c 		list_add_tail(&zone->link, &zmd->unmap_seq_list);
link             1879 drivers/md/dm-zoned-metadata.c 		list_add_tail(&dzone->link, &zmd->map_rnd_list);
link             1881 drivers/md/dm-zoned-metadata.c 		list_add_tail(&dzone->link, &zmd->map_seq_list);
link             1922 drivers/md/dm-zoned-metadata.c 	list_del_init(&zone->link);
link             2363 drivers/md/dm-zoned-metadata.c 					struct dmz_mblock, link);
link             2366 drivers/md/dm-zoned-metadata.c 		list_del_init(&mblk->link);
link             2373 drivers/md/dm-zoned-metadata.c 					struct dmz_mblock, link);
link             2374 drivers/md/dm-zoned-metadata.c 		list_del_init(&mblk->link);
link               82 drivers/md/dm-zoned.h 	struct list_head	link;
link              396 drivers/media/dvb-core/dvbdev.c 	struct media_link *link;
link              445 drivers/media/dvb-core/dvbdev.c 	link = media_create_intf_link(dvbdev->entity,
link              449 drivers/media/dvb-core/dvbdev.c 	if (!link)
link              597 drivers/media/dvb-core/dvbdev.c 	struct media_link *link;
link              603 drivers/media/dvb-core/dvbdev.c 			link = media_create_intf_link(entity, intf,
link              606 drivers/media/dvb-core/dvbdev.c 			if (!link)
link              619 drivers/media/dvb-core/dvbdev.c 	struct media_link *link;
link              768 drivers/media/dvb-core/dvbdev.c 			link = media_create_intf_link(ca, intf,
link              771 drivers/media/dvb-core/dvbdev.c 			if (!link)
link              776 drivers/media/dvb-core/dvbdev.c 			link = media_create_intf_link(tuner, intf,
link              779 drivers/media/dvb-core/dvbdev.c 			if (!link)
link              789 drivers/media/dvb-core/dvbdev.c 			link = media_create_intf_link(demux, intf,
link              792 drivers/media/dvb-core/dvbdev.c 			if (!link)
link              174 drivers/media/mc/mc-device.c 		struct media_link *link;
link              177 drivers/media/mc/mc-device.c 		list_for_each_entry(link, &entity->links, list) {
link              181 drivers/media/mc/mc-device.c 			if (link->source->entity != entity)
link              184 drivers/media/mc/mc-device.c 			media_device_kpad_to_upad(link->source,
link              186 drivers/media/mc/mc-device.c 			media_device_kpad_to_upad(link->sink,
link              188 drivers/media/mc/mc-device.c 			klink_desc.flags = link->flags;
link              203 drivers/media/mc/mc-device.c 	struct media_link *link = NULL;
link              219 drivers/media/mc/mc-device.c 	link = media_entity_find_link(&source->pads[linkd->source.index],
link              221 drivers/media/mc/mc-device.c 	if (link == NULL)
link              227 drivers/media/mc/mc-device.c 	return __media_entity_setup_link(link, linkd->flags);
link              236 drivers/media/mc/mc-device.c 	struct media_link *link;
link              341 drivers/media/mc/mc-device.c 	media_device_for_each_link(link, mdev) {
link              342 drivers/media/mc/mc-device.c 		if (link->is_backlink)
link              358 drivers/media/mc/mc-device.c 		klink.id = link->graph_obj.id;
link              359 drivers/media/mc/mc-device.c 		klink.source_id = link->gobj0->id;
link              360 drivers/media/mc/mc-device.c 		klink.sink_id = link->gobj1->id;
link              361 drivers/media/mc/mc-device.c 		klink.flags = link->flags;
link              650 drivers/media/mc/mc-device.c 	struct media_link *link, *tmp;
link              658 drivers/media/mc/mc-device.c 		list_for_each_entry_safe(link, tmp, &intf->links, list) {
link              659 drivers/media/mc/mc-device.c 			if (link->entity == entity)
link              660 drivers/media/mc/mc-device.c 				__media_remove_intf_link(link);
link              106 drivers/media/mc/mc-entity.c 		struct media_link *link = gobj_to_link(gobj);
link              111 drivers/media/mc/mc-entity.c 			media_type(link->gobj0) == MEDIA_GRAPH_PAD ?
link              113 drivers/media/mc/mc-entity.c 			media_id(link->gobj0),
link              114 drivers/media/mc/mc-entity.c 			media_id(link->gobj1));
link              232 drivers/media/mc/mc-entity.c media_entity_other(struct media_entity *entity, struct media_link *link)
link              234 drivers/media/mc/mc-entity.c 	if (link->source->entity == entity)
link              235 drivers/media/mc/mc-entity.c 		return link->sink->entity;
link              237 drivers/media/mc/mc-entity.c 		return link->source->entity;
link              249 drivers/media/mc/mc-entity.c 	graph->stack[graph->top].link = entity->links.next;
link              263 drivers/media/mc/mc-entity.c #define link_top(en)	((en)->stack[(en)->top].link)
link              311 drivers/media/mc/mc-entity.c 	struct media_link *link;
link              314 drivers/media/mc/mc-entity.c 	link = list_entry(link_top(graph), typeof(*link), list);
link              317 drivers/media/mc/mc-entity.c 	if (!(link->flags & MEDIA_LNK_FL_ENABLED)) {
link              321 drivers/media/mc/mc-entity.c 			link->source->entity->name, link->source->index,
link              322 drivers/media/mc/mc-entity.c 			link->sink->entity->name, link->sink->index);
link              327 drivers/media/mc/mc-entity.c 	next = media_entity_other(entity, link);
link              413 drivers/media/mc/mc-entity.c 	struct media_link *link;
link              450 drivers/media/mc/mc-entity.c 		list_for_each_entry(link, &entity->links, list) {
link              451 drivers/media/mc/mc-entity.c 			struct media_pad *pad = link->sink->entity == entity
link              452 drivers/media/mc/mc-entity.c 						? link->sink : link->source;
link              463 drivers/media/mc/mc-entity.c 			    link->flags & MEDIA_LNK_FL_ENABLED)
link              470 drivers/media/mc/mc-entity.c 			if (link->sink != pad ||
link              471 drivers/media/mc/mc-entity.c 			    !(link->flags & MEDIA_LNK_FL_ENABLED))
link              474 drivers/media/mc/mc-entity.c 			ret = entity->ops->link_validate(link);
link              478 drivers/media/mc/mc-entity.c 					link->source->entity->name,
link              479 drivers/media/mc/mc-entity.c 					link->source->index,
link              480 drivers/media/mc/mc-entity.c 					entity->name, link->sink->index, ret);
link              590 drivers/media/mc/mc-entity.c 	struct media_link *link;
link              592 drivers/media/mc/mc-entity.c 	link = kzalloc(sizeof(*link), GFP_KERNEL);
link              593 drivers/media/mc/mc-entity.c 	if (link == NULL)
link              596 drivers/media/mc/mc-entity.c 	list_add_tail(&link->list, head);
link              598 drivers/media/mc/mc-entity.c 	return link;
link              602 drivers/media/mc/mc-entity.c 				       struct media_link *link)
link              607 drivers/media/mc/mc-entity.c 	if (link->source->entity == entity)
link              608 drivers/media/mc/mc-entity.c 		remote = link->sink->entity;
link              610 drivers/media/mc/mc-entity.c 		remote = link->source->entity;
link              613 drivers/media/mc/mc-entity.c 		if (rlink != link->reverse)
link              616 drivers/media/mc/mc-entity.c 		if (link->source->entity == entity)
link              627 drivers/media/mc/mc-entity.c 	list_del(&link->list);
link              628 drivers/media/mc/mc-entity.c 	media_gobj_destroy(&link->graph_obj);
link              629 drivers/media/mc/mc-entity.c 	kfree(link);
link              662 drivers/media/mc/mc-entity.c 	struct media_link *link;
link              669 drivers/media/mc/mc-entity.c 	link = media_add_link(&source->links);
link              670 drivers/media/mc/mc-entity.c 	if (link == NULL)
link              673 drivers/media/mc/mc-entity.c 	link->source = &source->pads[source_pad];
link              674 drivers/media/mc/mc-entity.c 	link->sink = &sink->pads[sink_pad];
link              675 drivers/media/mc/mc-entity.c 	link->flags = flags & ~MEDIA_LNK_FL_INTERFACE_LINK;
link              679 drivers/media/mc/mc-entity.c 			&link->graph_obj);
link              686 drivers/media/mc/mc-entity.c 		__media_entity_remove_link(source, link);
link              699 drivers/media/mc/mc-entity.c 	link->reverse = backlink;
link              700 drivers/media/mc/mc-entity.c 	backlink->reverse = link;
link              777 drivers/media/mc/mc-entity.c 	struct media_link *link, *tmp;
link              779 drivers/media/mc/mc-entity.c 	list_for_each_entry_safe(link, tmp, &entity->links, list)
link              780 drivers/media/mc/mc-entity.c 		__media_entity_remove_link(entity, link);
link              801 drivers/media/mc/mc-entity.c static int __media_entity_setup_link_notify(struct media_link *link, u32 flags)
link              806 drivers/media/mc/mc-entity.c 	ret = media_entity_call(link->source->entity, link_setup,
link              807 drivers/media/mc/mc-entity.c 				link->source, link->sink, flags);
link              811 drivers/media/mc/mc-entity.c 	ret = media_entity_call(link->sink->entity, link_setup,
link              812 drivers/media/mc/mc-entity.c 				link->sink, link->source, flags);
link              814 drivers/media/mc/mc-entity.c 		media_entity_call(link->source->entity, link_setup,
link              815 drivers/media/mc/mc-entity.c 				  link->source, link->sink, link->flags);
link              819 drivers/media/mc/mc-entity.c 	link->flags = flags;
link              820 drivers/media/mc/mc-entity.c 	link->reverse->flags = link->flags;
link              825 drivers/media/mc/mc-entity.c int __media_entity_setup_link(struct media_link *link, u32 flags)
link              832 drivers/media/mc/mc-entity.c 	if (link == NULL)
link              836 drivers/media/mc/mc-entity.c 	if ((link->flags & ~mask) != (flags & ~mask))
link              839 drivers/media/mc/mc-entity.c 	if (link->flags & MEDIA_LNK_FL_IMMUTABLE)
link              840 drivers/media/mc/mc-entity.c 		return link->flags == flags ? 0 : -EINVAL;
link              842 drivers/media/mc/mc-entity.c 	if (link->flags == flags)
link              845 drivers/media/mc/mc-entity.c 	source = link->source->entity;
link              846 drivers/media/mc/mc-entity.c 	sink = link->sink->entity;
link              848 drivers/media/mc/mc-entity.c 	if (!(link->flags & MEDIA_LNK_FL_DYNAMIC) &&
link              855 drivers/media/mc/mc-entity.c 		ret = mdev->ops->link_notify(link, flags,
link              861 drivers/media/mc/mc-entity.c 	ret = __media_entity_setup_link_notify(link, flags);
link              864 drivers/media/mc/mc-entity.c 		mdev->ops->link_notify(link, flags,
link              871 drivers/media/mc/mc-entity.c int media_entity_setup_link(struct media_link *link, u32 flags)
link              875 drivers/media/mc/mc-entity.c 	mutex_lock(&link->graph_obj.mdev->graph_mutex);
link              876 drivers/media/mc/mc-entity.c 	ret = __media_entity_setup_link(link, flags);
link              877 drivers/media/mc/mc-entity.c 	mutex_unlock(&link->graph_obj.mdev->graph_mutex);
link              886 drivers/media/mc/mc-entity.c 	struct media_link *link;
link              888 drivers/media/mc/mc-entity.c 	list_for_each_entry(link, &source->entity->links, list) {
link              889 drivers/media/mc/mc-entity.c 		if (link->source->entity == source->entity &&
link              890 drivers/media/mc/mc-entity.c 		    link->source->index == source->index &&
link              891 drivers/media/mc/mc-entity.c 		    link->sink->entity == sink->entity &&
link              892 drivers/media/mc/mc-entity.c 		    link->sink->index == sink->index)
link              893 drivers/media/mc/mc-entity.c 			return link;
link              902 drivers/media/mc/mc-entity.c 	struct media_link *link;
link              904 drivers/media/mc/mc-entity.c 	list_for_each_entry(link, &pad->entity->links, list) {
link              905 drivers/media/mc/mc-entity.c 		if (!(link->flags & MEDIA_LNK_FL_ENABLED))
link              908 drivers/media/mc/mc-entity.c 		if (link->source == pad)
link              909 drivers/media/mc/mc-entity.c 			return link->sink;
link              911 drivers/media/mc/mc-entity.c 		if (link->sink == pad)
link              912 drivers/media/mc/mc-entity.c 			return link->source;
link              966 drivers/media/mc/mc-entity.c 	struct media_link *link;
link              968 drivers/media/mc/mc-entity.c 	link = media_add_link(&intf->links);
link              969 drivers/media/mc/mc-entity.c 	if (link == NULL)
link              972 drivers/media/mc/mc-entity.c 	link->intf = intf;
link              973 drivers/media/mc/mc-entity.c 	link->entity = entity;
link              974 drivers/media/mc/mc-entity.c 	link->flags = flags | MEDIA_LNK_FL_INTERFACE_LINK;
link              978 drivers/media/mc/mc-entity.c 			&link->graph_obj);
link              980 drivers/media/mc/mc-entity.c 	return link;
link              984 drivers/media/mc/mc-entity.c void __media_remove_intf_link(struct media_link *link)
link              986 drivers/media/mc/mc-entity.c 	list_del(&link->list);
link              987 drivers/media/mc/mc-entity.c 	media_gobj_destroy(&link->graph_obj);
link              988 drivers/media/mc/mc-entity.c 	kfree(link);
link              992 drivers/media/mc/mc-entity.c void media_remove_intf_link(struct media_link *link)
link              994 drivers/media/mc/mc-entity.c 	struct media_device *mdev = link->graph_obj.mdev;
link             1001 drivers/media/mc/mc-entity.c 	__media_remove_intf_link(link);
link             1008 drivers/media/mc/mc-entity.c 	struct media_link *link, *tmp;
link             1010 drivers/media/mc/mc-entity.c 	list_for_each_entry_safe(link, tmp, &intf->links, list)
link             1011 drivers/media/mc/mc-entity.c 		__media_remove_intf_link(link);
link              237 drivers/media/pci/cobalt/cobalt-driver.c 	u16 link;
link              241 drivers/media/pci/cobalt/cobalt-driver.c 	pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &link);
link              242 drivers/media/pci/cobalt/cobalt-driver.c 	return (link & PCI_EXP_LNKSTA_NLW) >> 4;
link              248 drivers/media/pci/cobalt/cobalt-driver.c 	u32 link;
link              252 drivers/media/pci/cobalt/cobalt-driver.c 	pcie_capability_read_dword(pci_dev, PCI_EXP_LNKCAP, &link);
link              253 drivers/media/pci/cobalt/cobalt-driver.c 	return (link & PCI_EXP_LNKCAP_MLW) >> 4;
link              122 drivers/media/pci/ddbridge/ddbridge-core.c struct ddb_irq *ddb_irq_set(struct ddb *dev, u32 link, u32 nr,
link              125 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_irq *irq = &dev->link[link].irq[nr];
link              402 drivers/media/pci/ddbridge/ddbridge-core.c 	if (dev->link[0].info->type == DDB_OCTOPUS_CI && output->port->nr > 1) {
link              404 drivers/media/pci/ddbridge/ddbridge-core.c 		if (dev->link[0].ids.regmapid >= 0x10003 && !(flags & 1)) {
link             1430 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->link[0].info->port_num; i++) {
link             1452 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_ids *devids = &input->port->dev->link[input->port->lnr].ids;
link             1557 drivers/media/pci/ddbridge/ddbridge-core.c 		if (input->port->dev->link[input->port->lnr].info->ts_quirks &
link             1566 drivers/media/pci/ddbridge/ddbridge-core.c 		if (input->port->dev->link[input->port->lnr].info->ts_quirks
link             1757 drivers/media/pci/ddbridge/ddbridge-core.c 	if (dev->link[port->lnr].info->con_clock) {
link             1807 drivers/media/pci/ddbridge/ddbridge-core.c 	if (dev->link[port->lnr].info->con_clock) {
link             1849 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_link *link = &dev->link[l];
link             1859 drivers/media/pci/ddbridge/ddbridge-core.c 	    link->ids.device == 0x0005) {
link             1873 drivers/media/pci/ddbridge/ddbridge-core.c 	if (port->nr == 1 && link->info->type == DDB_OCTOPUS_CI &&
link             1874 drivers/media/pci/ddbridge/ddbridge-core.c 	    link->info->i2c_mask == 1) {
link             1880 drivers/media/pci/ddbridge/ddbridge-core.c 	if (link->info->type == DDB_OCTOPUS_MAX) {
link             1891 drivers/media/pci/ddbridge/ddbridge-core.c 	if (link->info->type == DDB_OCTOPUS_MCI) {
link             1892 drivers/media/pci/ddbridge/ddbridge-core.c 		if (port->nr >= link->info->mci_ports)
link             1897 drivers/media/pci/ddbridge/ddbridge-core.c 		port->type = DDB_TUNER_MCI + link->info->mci_type;
link             1901 drivers/media/pci/ddbridge/ddbridge-core.c 	if (port->nr > 1 && link->info->type == DDB_OCTOPUS_CI) {
link             1986 drivers/media/pci/ddbridge/ddbridge-core.c 			    link->info->ts_quirks & TS_QUIRK_REVERSED)
link             2234 drivers/media/pci/ddbridge/ddbridge-core.c static const struct ddb_regmap *io_regmap(struct ddb_io *io, int link)
link             2238 drivers/media/pci/ddbridge/ddbridge-core.c 	if (link)
link             2239 drivers/media/pci/ddbridge/ddbridge-core.c 		info = io->port->dev->link[io->port->lnr].info;
link             2241 drivers/media/pci/ddbridge/ddbridge-core.c 		info = io->port->dev->link[0].info;
link             2342 drivers/media/pci/ddbridge/ddbridge-core.c 		if (dev->i2c[i].link == port->lnr &&
link             2357 drivers/media/pci/ddbridge/ddbridge-core.c 		if (dev->i2c[i].link == port->lnr) {
link             2373 drivers/media/pci/ddbridge/ddbridge-core.c 		info = dev->link[l].info;
link             2428 drivers/media/pci/ddbridge/ddbridge-core.c 			switch (dev->link[l].info->type) {
link             2477 drivers/media/pci/ddbridge/ddbridge-core.c 		 dev->link[0].irq[_nr].handler) \
link             2478 drivers/media/pci/ddbridge/ddbridge-core.c 		dev->link[0].irq[_nr].handler(dev->link[0].irq[_nr].data); } \
link             2597 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_link *link = &dev->link[lnr];
link             2599 drivers/media/pci/ddbridge/ddbridge-core.c 	mutex_lock(&link->flash_mutex);
link             2667 drivers/media/pci/ddbridge/ddbridge-core.c 	mutex_unlock(&link->flash_mutex);
link             2670 drivers/media/pci/ddbridge/ddbridge-core.c 	mutex_unlock(&link->flash_mutex);
link             2674 drivers/media/pci/ddbridge/ddbridge-core.c int ddbridge_flashread(struct ddb *dev, u32 link, u8 *buf, u32 addr, u32 len)
link             2679 drivers/media/pci/ddbridge/ddbridge-core.c 	return flashio(dev, link, cmd, 4, buf, len);
link             2796 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_link *link = &dev->link[num];
link             2799 drivers/media/pci/ddbridge/ddbridge-core.c 	spd = ddblreadl(link, TEMPMON_FANCONTROL) & 0xff;
link             2807 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_link *link = &dev->link[0];
link             2812 drivers/media/pci/ddbridge/ddbridge-core.c 	if (!link->info->temp_num)
link             2814 drivers/media/pci/ddbridge/ddbridge-core.c 	adap = &dev->i2c[link->info->temp_bus].adap;
link             2819 drivers/media/pci/ddbridge/ddbridge-core.c 	if (link->info->temp_num == 2) {
link             2859 drivers/media/pci/ddbridge/ddbridge-core.c 	if (!dev->link[0].info->led_num)
link             3013 drivers/media/pci/ddbridge/ddbridge-core.c 		       dev->link[0].ids.hwid, dev->link[0].ids.regmapid);
link             3021 drivers/media/pci/ddbridge/ddbridge-core.c 	return sprintf(buf, "0x%08X\n", dev->link[0].ids.hwid);
link             3029 drivers/media/pci/ddbridge/ddbridge-core.c 	return sprintf(buf, "0x%08X\n", dev->link[0].ids.regmapid);
link             3038 drivers/media/pci/ddbridge/ddbridge-core.c 	return sprintf(buf, "%u\n", dev->link[num].lnb.fmode);
link             3047 drivers/media/pci/ddbridge/ddbridge-core.c 	return sprintf(buf, "%08x\n", dev->link[num].ids.devid);
link             3061 drivers/media/pci/ddbridge/ddbridge-core.c 	ddb_lnb_init_fmode(dev, &dev->link[num], val);
link             3153 drivers/media/pci/ddbridge/ddbridge-core.c 		if (dev->link[i].info && dev->link[i].info->tempmon_irq)
link             3156 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->link[0].info->temp_num; i++)
link             3158 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->link[0].info->fan_num; i++)
link             3161 drivers/media/pci/ddbridge/ddbridge-core.c 		if (dev->link[0].info->led_num)
link             3177 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->link[0].info->temp_num; i++)
link             3180 drivers/media/pci/ddbridge/ddbridge-core.c 	for (i = 0; i < dev->link[0].info->fan_num; i++)
link             3188 drivers/media/pci/ddbridge/ddbridge-core.c 		if (dev->link[0].info->led_num)
link             3194 drivers/media/pci/ddbridge/ddbridge-core.c 		if (dev->link[i].info && dev->link[i].info->tempmon_irq)
link             3246 drivers/media/pci/ddbridge/ddbridge-core.c static void tempmon_setfan(struct ddb_link *link)
link             3250 drivers/media/pci/ddbridge/ddbridge-core.c 	if ((ddblreadl(link, TEMPMON_CONTROL) &
link             3252 drivers/media/pci/ddbridge/ddbridge-core.c 		dev_info(link->dev->dev, "Over temperature condition\n");
link             3253 drivers/media/pci/ddbridge/ddbridge-core.c 		link->overtemperature_error = 1;
link             3255 drivers/media/pci/ddbridge/ddbridge-core.c 	temp  = (ddblreadl(link, TEMPMON_SENSOR0) >> 8) & 0xFF;
link             3258 drivers/media/pci/ddbridge/ddbridge-core.c 	temp2  = (ddblreadl(link, TEMPMON_SENSOR1) >> 8) & 0xFF;
link             3264 drivers/media/pci/ddbridge/ddbridge-core.c 	pwm = (ddblreadl(link, TEMPMON_FANCONTROL) >> 8) & 0x0F;
link             3268 drivers/media/pci/ddbridge/ddbridge-core.c 	if (temp >= link->temp_tab[pwm]) {
link             3269 drivers/media/pci/ddbridge/ddbridge-core.c 		while (pwm < 10 && temp >= link->temp_tab[pwm + 1])
link             3272 drivers/media/pci/ddbridge/ddbridge-core.c 		while (pwm > 1 && temp < link->temp_tab[pwm - 2])
link             3275 drivers/media/pci/ddbridge/ddbridge-core.c 	ddblwritel(link, (pwm << 8), TEMPMON_FANCONTROL);
link             3280 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_link *link = (struct ddb_link *)data;
link             3282 drivers/media/pci/ddbridge/ddbridge-core.c 	spin_lock(&link->temp_lock);
link             3283 drivers/media/pci/ddbridge/ddbridge-core.c 	tempmon_setfan(link);
link             3284 drivers/media/pci/ddbridge/ddbridge-core.c 	spin_unlock(&link->temp_lock);
link             3287 drivers/media/pci/ddbridge/ddbridge-core.c static int tempmon_init(struct ddb_link *link, int first_time)
link             3289 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb *dev = link->dev;
link             3291 drivers/media/pci/ddbridge/ddbridge-core.c 	u32 l = link->nr;
link             3293 drivers/media/pci/ddbridge/ddbridge-core.c 	spin_lock_irq(&link->temp_lock);
link             3298 drivers/media/pci/ddbridge/ddbridge-core.c 		memcpy(link->temp_tab, temperature_table,
link             3301 drivers/media/pci/ddbridge/ddbridge-core.c 	ddb_irq_set(dev, l, link->info->tempmon_irq, temp_handler, link);
link             3302 drivers/media/pci/ddbridge/ddbridge-core.c 	ddblwritel(link, (TEMPMON_CONTROL_OVERTEMP | TEMPMON_CONTROL_AUTOSCAN |
link             3305 drivers/media/pci/ddbridge/ddbridge-core.c 	ddblwritel(link, (3 << 8), TEMPMON_FANCONTROL);
link             3307 drivers/media/pci/ddbridge/ddbridge-core.c 	link->overtemperature_error =
link             3308 drivers/media/pci/ddbridge/ddbridge-core.c 		((ddblreadl(link, TEMPMON_CONTROL) &
link             3310 drivers/media/pci/ddbridge/ddbridge-core.c 	if (link->overtemperature_error) {
link             3311 drivers/media/pci/ddbridge/ddbridge-core.c 		dev_info(link->dev->dev, "Over temperature condition\n");
link             3314 drivers/media/pci/ddbridge/ddbridge-core.c 	tempmon_setfan(link);
link             3315 drivers/media/pci/ddbridge/ddbridge-core.c 	spin_unlock_irq(&link->temp_lock);
link             3319 drivers/media/pci/ddbridge/ddbridge-core.c static int ddb_init_tempmon(struct ddb_link *link)
link             3321 drivers/media/pci/ddbridge/ddbridge-core.c 	const struct ddb_info *info = link->info;
link             3326 drivers/media/pci/ddbridge/ddbridge-core.c 		if (link->ids.regmapid < 0x00010002)
link             3328 drivers/media/pci/ddbridge/ddbridge-core.c 	spin_lock_init(&link->temp_lock);
link             3329 drivers/media/pci/ddbridge/ddbridge-core.c 	dev_dbg(link->dev->dev, "init_tempmon\n");
link             3330 drivers/media/pci/ddbridge/ddbridge-core.c 	return tempmon_init(link, 1);
link             3340 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_link *link;
link             3344 drivers/media/pci/ddbridge/ddbridge-core.c 		link = &dev->link[l];
link             3345 drivers/media/pci/ddbridge/ddbridge-core.c 		info = link->info;
link             3360 drivers/media/pci/ddbridge/ddbridge-core.c 		ddb_init_tempmon(link);
link             3367 drivers/media/pci/ddbridge/ddbridge-core.c 	mutex_init(&dev->link[0].lnb.lock);
link             3368 drivers/media/pci/ddbridge/ddbridge-core.c 	mutex_init(&dev->link[0].flash_mutex);
link             3388 drivers/media/pci/ddbridge/ddbridge-core.c 	if (dev->link[0].info->fan_num)	{
link               51 drivers/media/pci/ddbridge/ddbridge-i2c.c 			dev->nr, i2c->nr, i2c->link);
link               56 drivers/media/pci/ddbridge/ddbridge-i2c.c 			if (i2c->link) {
link               58 drivers/media/pci/ddbridge/ddbridge-i2c.c 					DDB_LINK_TAG(i2c->link) |
link               62 drivers/media/pci/ddbridge/ddbridge-i2c.c 					i2c->link, listat);
link              161 drivers/media/pci/ddbridge/ddbridge-i2c.c 		       const struct ddb_regmap *regmap, int link,
link              168 drivers/media/pci/ddbridge/ddbridge-i2c.c 	i2c->link = link;
link              170 drivers/media/pci/ddbridge/ddbridge-i2c.c 	i2c->wbuf = DDB_LINK_TAG(link) |
link              173 drivers/media/pci/ddbridge/ddbridge-i2c.c 	i2c->regs = DDB_LINK_TAG(link) |
link              190 drivers/media/pci/ddbridge/ddbridge-i2c.c 		 dev->nr, i2c->link, i);
link              206 drivers/media/pci/ddbridge/ddbridge-i2c.c 		if (!dev->link[l].info)
link              208 drivers/media/pci/ddbridge/ddbridge-i2c.c 		regmap = dev->link[l].info->regmap;
link              213 drivers/media/pci/ddbridge/ddbridge-i2c.c 			if (!(dev->link[l].info->i2c_mask & (1 << i)))
link               28 drivers/media/pci/ddbridge/ddbridge-io.h static inline u32 ddblreadl(struct ddb_link *link, u32 adr)
link               30 drivers/media/pci/ddbridge/ddbridge-io.h 	return readl(link->dev->regs + adr);
link               33 drivers/media/pci/ddbridge/ddbridge-io.h static inline void ddblwritel(struct ddb_link *link, u32 val, u32 adr)
link               35 drivers/media/pci/ddbridge/ddbridge-io.h 	writel(val, link->dev->regs + adr);
link              197 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].ids.vendor = id->vendor;
link              198 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].ids.device = id->device;
link              199 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].ids.subvendor = id->subvendor;
link              200 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].ids.subdevice = pdev->subsystem_device;
link              201 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].ids.devid = (id->device << 16) | id->vendor;
link              203 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].dev = dev;
link              204 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].info = get_ddb_info(id->vendor, id->device,
link              207 drivers/media/pci/ddbridge/ddbridge-main.c 	dev_info(&pdev->dev, "detected %s\n", dev->link[0].info->name);
link              224 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].ids.hwid = ddbreadl(dev, 0);
link              225 drivers/media/pci/ddbridge/ddbridge-main.c 	dev->link[0].ids.regmapid = ddbreadl(dev, 4);
link              228 drivers/media/pci/ddbridge/ddbridge-main.c 		 dev->link[0].ids.hwid, dev->link[0].ids.regmapid);
link               58 drivers/media/pci/ddbridge/ddbridge-max.c static int lnb_command(struct ddb *dev, u32 link, u32 lnb, u32 cmd)
link               60 drivers/media/pci/ddbridge/ddbridge-max.c 	u32 c, v = 0, tag = DDB_LINK_TAG(link);
link               62 drivers/media/pci/ddbridge/ddbridge-max.c 	v = LNB_TONE & (dev->link[link].lnb.tone << (15 - lnb));
link               85 drivers/media/pci/ddbridge/ddbridge-max.c 	u32 fmode = dev->link[port->lnr].lnb.fmode;
link               92 drivers/media/pci/ddbridge/ddbridge-max.c 	mutex_lock(&dev->link[port->lnr].lnb.lock);
link               97 drivers/media/pci/ddbridge/ddbridge-max.c 	mutex_unlock(&dev->link[port->lnr].lnb.lock);
link              101 drivers/media/pci/ddbridge/ddbridge-max.c static int lnb_send_diseqc(struct ddb *dev, u32 link, u32 input,
link              104 drivers/media/pci/ddbridge/ddbridge-max.c 	u32 tag = DDB_LINK_TAG(link);
link              110 drivers/media/pci/ddbridge/ddbridge-max.c 	lnb_command(dev, link, input, LNB_CMD_DISEQC);
link              114 drivers/media/pci/ddbridge/ddbridge-max.c static int lnb_set_sat(struct ddb *dev, u32 link, u32 input, u32 sat, u32 band,
link              123 drivers/media/pci/ddbridge/ddbridge-max.c 	return lnb_send_diseqc(dev, link, input, &cmd);
link              126 drivers/media/pci/ddbridge/ddbridge-max.c static int lnb_set_tone(struct ddb *dev, u32 link, u32 input,
link              134 drivers/media/pci/ddbridge/ddbridge-max.c 		if (!(dev->link[link].lnb.tone & mask))
link              136 drivers/media/pci/ddbridge/ddbridge-max.c 		dev->link[link].lnb.tone &= ~(1ULL << input);
link              139 drivers/media/pci/ddbridge/ddbridge-max.c 		if (dev->link[link].lnb.tone & mask)
link              141 drivers/media/pci/ddbridge/ddbridge-max.c 		dev->link[link].lnb.tone |= (1ULL << input);
link              148 drivers/media/pci/ddbridge/ddbridge-max.c 		s = lnb_command(dev, link, input, LNB_CMD_NOP);
link              152 drivers/media/pci/ddbridge/ddbridge-max.c static int lnb_set_voltage(struct ddb *dev, u32 link, u32 input,
link              157 drivers/media/pci/ddbridge/ddbridge-max.c 	if (dev->link[link].lnb.oldvoltage[input] == voltage)
link              161 drivers/media/pci/ddbridge/ddbridge-max.c 		if (dev->link[link].lnb.voltage[input])
link              163 drivers/media/pci/ddbridge/ddbridge-max.c 		lnb_command(dev, link, input, LNB_CMD_OFF);
link              166 drivers/media/pci/ddbridge/ddbridge-max.c 		lnb_command(dev, link, input, LNB_CMD_LOW);
link              169 drivers/media/pci/ddbridge/ddbridge-max.c 		lnb_command(dev, link, input, LNB_CMD_HIGH);
link              175 drivers/media/pci/ddbridge/ddbridge-max.c 	dev->link[link].lnb.oldvoltage[input] = voltage;
link              192 drivers/media/pci/ddbridge/ddbridge-max.c 			dev->link[port->lnr].lnb.voltage[dvb->input & 3] & bit;
link              194 drivers/media/pci/ddbridge/ddbridge-max.c 		dev->link[port->lnr].lnb.voltage[dvb->input & 3] &= ~bit;
link              196 drivers/media/pci/ddbridge/ddbridge-max.c 		dev->link[port->lnr].lnb.voltage[dvb->input & 3] |= obit;
link              210 drivers/media/pci/ddbridge/ddbridge-max.c 	u32 fmode = dev->link[port->lnr].lnb.fmode;
link              212 drivers/media/pci/ddbridge/ddbridge-max.c 	mutex_lock(&dev->link[port->lnr].lnb.lock);
link              236 drivers/media/pci/ddbridge/ddbridge-max.c 	mutex_unlock(&dev->link[port->lnr].lnb.lock);
link              247 drivers/media/pci/ddbridge/ddbridge-max.c 	u32 nv, ov = dev->link[port->lnr].lnb.voltages;
link              249 drivers/media/pci/ddbridge/ddbridge-max.c 	u32 fmode = dev->link[port->lnr].lnb.fmode;
link              251 drivers/media/pci/ddbridge/ddbridge-max.c 	mutex_lock(&dev->link[port->lnr].lnb.lock);
link              261 drivers/media/pci/ddbridge/ddbridge-max.c 			dev->link[port->lnr].lnb.voltage[dvb->input] &=
link              264 drivers/media/pci/ddbridge/ddbridge-max.c 			dev->link[port->lnr].lnb.voltage[dvb->input] |=
link              272 drivers/media/pci/ddbridge/ddbridge-max.c 			dev->link[port->lnr].lnb.voltages &=
link              275 drivers/media/pci/ddbridge/ddbridge-max.c 			dev->link[port->lnr].lnb.voltages |=
link              278 drivers/media/pci/ddbridge/ddbridge-max.c 		nv = dev->link[port->lnr].lnb.voltages;
link              340 drivers/media/pci/ddbridge/ddbridge-max.c 	mutex_unlock(&dev->link[port->lnr].lnb.lock);
link              356 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_link *link = priv;
link              357 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb *dev = link->dev;
link              359 drivers/media/pci/ddbridge/ddbridge-max.c 	dev_info(dev->dev, "Read mxl_fw from link %u\n", link->nr);
link              361 drivers/media/pci/ddbridge/ddbridge-max.c 	return ddbridge_flashread(dev, link->nr, buf, 0xc0000, len);
link              364 drivers/media/pci/ddbridge/ddbridge-max.c int ddb_lnb_init_fmode(struct ddb *dev, struct ddb_link *link, u32 fm)
link              366 drivers/media/pci/ddbridge/ddbridge-max.c 	u32 l = link->nr;
link              368 drivers/media/pci/ddbridge/ddbridge-max.c 	if (link->lnb.fmode == fm)
link              371 drivers/media/pci/ddbridge/ddbridge-max.c 	mutex_lock(&link->lnb.lock);
link              394 drivers/media/pci/ddbridge/ddbridge-max.c 	link->lnb.fmode = fm;
link              395 drivers/media/pci/ddbridge/ddbridge-max.c 	mutex_unlock(&link->lnb.lock);
link              414 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_link *link = &dev->link[port->lnr];
link              419 drivers/media/pci/ddbridge/ddbridge-max.c 	cfg.fw_priv = link;
link              444 drivers/media/pci/ddbridge/ddbridge-max.c 	ddb_lnb_init_fmode(dev, link, fmode);
link              465 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_link *link = &dev->link[port->lnr];
link              493 drivers/media/pci/ddbridge/ddbridge-max.c 	ddb_lnb_init_fmode(dev, link, fmode);
link               26 drivers/media/pci/ddbridge/ddbridge-max.h int ddb_lnb_init_fmode(struct ddb *dev, struct ddb_link *link, u32 fm);
link               27 drivers/media/pci/ddbridge/ddbridge-mci.c 	struct ddb_link *link = state->base->link;
link               31 drivers/media/pci/ddbridge/ddbridge-mci.c 	ddblwritel(link, MCI_CONTROL_RESET, MCI_CONTROL);
link               32 drivers/media/pci/ddbridge/ddbridge-mci.c 	ddblwritel(link, 0, MCI_CONTROL + 4); /* 1= no internal init */
link               34 drivers/media/pci/ddbridge/ddbridge-mci.c 	ddblwritel(link, 0, MCI_CONTROL);
link               37 drivers/media/pci/ddbridge/ddbridge-mci.c 		status = ddblreadl(link, MCI_CONTROL);
link               46 drivers/media/pci/ddbridge/ddbridge-mci.c 	if (link->ids.device == 0x0009)
link               47 drivers/media/pci/ddbridge/ddbridge-mci.c 		ddblwritel(link, SX8_TSCONFIG_MODE_NORMAL, SX8_TSCONFIG);
link               53 drivers/media/pci/ddbridge/ddbridge-mci.c 	struct ddb_link *link = state->base->link;
link               55 drivers/media/pci/ddbridge/ddbridge-mci.c 	if (link->ids.device != 0x0009)
link               57 drivers/media/pci/ddbridge/ddbridge-mci.c 	ddblwritel(link, config, SX8_TSCONFIG);
link               65 drivers/media/pci/ddbridge/ddbridge-mci.c 	struct ddb_link *link = state->base->link;
link               69 drivers/media/pci/ddbridge/ddbridge-mci.c 	val = ddblreadl(link, MCI_CONTROL);
link               74 drivers/media/pci/ddbridge/ddbridge-mci.c 			ddblwritel(link, cmd[i], MCI_COMMAND + i * 4);
link               76 drivers/media/pci/ddbridge/ddbridge-mci.c 	ddblwritel(link, val, MCI_CONTROL);
link               85 drivers/media/pci/ddbridge/ddbridge-mci.c 			res[i] = ddblreadl(link, MCI_RESULT + i * 4);
link              132 drivers/media/pci/ddbridge/ddbridge-mci.c 	struct ddb_link *link = &dev->link[port->lnr];
link              135 drivers/media/pci/ddbridge/ddbridge-mci.c 	void *key = cfg->type ? (void *)port : (void *)link;
link              151 drivers/media/pci/ddbridge/ddbridge-mci.c 		base->link = link;
link              155 drivers/media/pci/ddbridge/ddbridge-mci.c 		ddb_irq_set(dev, link->nr, 0, mci_handler, base);
link              224 drivers/media/pci/ddbridge/ddbridge-mci.h 	struct ddb_link     *link;
link              212 drivers/media/pci/ddbridge/ddbridge.h 	u32                    link;
link              328 drivers/media/pci/ddbridge/ddbridge.h 	struct ddb_link          link[DDB_MAX_LINK];
link              359 drivers/media/pci/ddbridge/ddbridge.h int ddbridge_flashread(struct ddb *dev, u32 link, u8 *buf, u32 addr, u32 len);
link              364 drivers/media/pci/ddbridge/ddbridge.h struct ddb_irq *ddb_irq_set(struct ddb *dev, u32 link, u32 nr,
link             1332 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_video_link_validate(struct media_link *link)
link             1334 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	struct video_device *vd = container_of(link->sink->entity,
link             1341 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (!media_entity_remote_pad(link->sink->entity->pads)) {
link             1347 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	ret = cio2_subdev_link_validate_get_format(link->source, &source_fmt);
link              770 drivers/media/pci/saa7134/saa7134-video.c 	struct media_link *link, *found_link = NULL;
link              783 drivers/media/pci/saa7134/saa7134-video.c 	list_for_each_entry(link, &dev->decoder->links, list) {
link              784 drivers/media/pci/saa7134/saa7134-video.c 		if (link->sink->entity == dev->decoder) {
link              785 drivers/media/pci/saa7134/saa7134-video.c 			found_link = link;
link              786 drivers/media/pci/saa7134/saa7134-video.c 			if (link->flags & MEDIA_LNK_FL_ENABLED)
link              796 drivers/media/pci/saa7134/saa7134-video.c 	list_for_each_entry(link, &source->links, list) {
link              800 drivers/media/pci/saa7134/saa7134-video.c 		sink = link->sink->entity;
link              805 drivers/media/pci/saa7134/saa7134-video.c 		ret = media_entity_setup_link(link, flags);
link              201 drivers/media/platform/aspeed-video.c 	struct list_head link;
link              450 drivers/media/platform/aspeed-video.c 				       struct aspeed_video_buffer, link);
link              519 drivers/media/platform/aspeed-video.c 	list_for_each_entry(buf, &video->buffers, link)
link              581 drivers/media/platform/aspeed-video.c 					       link);
link              585 drivers/media/platform/aspeed-video.c 			if (!list_is_last(&buf->link, &video->buffers)) {
link              591 drivers/media/platform/aspeed-video.c 				list_del(&buf->link);
link             1484 drivers/media/platform/aspeed-video.c 	list_add_tail(&avb->link, &video->buffers);
link              304 drivers/media/platform/cadence/cdns-csi2tx.c 	struct media_link *link;
link              329 drivers/media/platform/cadence/cdns-csi2tx.c 	list_for_each_entry(link, &entity->links, list) {
link              339 drivers/media/platform/cadence/cdns-csi2tx.c 			if ((pad == link->sink) &&
link              340 drivers/media/platform/cadence/cdns-csi2tx.c 			    (link->flags & MEDIA_LNK_FL_ENABLED)) {
link             1179 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_link_notify(struct media_link *link, unsigned int flags,
link             1183 drivers/media/platform/exynos4-is/media-dev.c 		&container_of(link->graph_obj.mdev, struct fimc_md,
link             1185 drivers/media/platform/exynos4-is/media-dev.c 	struct media_entity *sink = link->sink->entity;
link             1191 drivers/media/platform/exynos4-is/media-dev.c 						   link->graph_obj.mdev);
link             1202 drivers/media/platform/exynos4-is/media-dev.c 		if (link->flags & MEDIA_LNK_FL_ENABLED)
link             2400 drivers/media/platform/omap3isp/ispccdc.c 			      struct media_link *link,
link             2415 drivers/media/platform/omap3isp/ispccdc.c 			media_entity_to_v4l2_subdev(link->source->entity);
link             1540 drivers/media/platform/omap3isp/ispresizer.c 				 struct media_link *link,
link             1549 drivers/media/platform/omap3isp/ispresizer.c 	return v4l2_subdev_link_validate_default(sd, link,
link              112 drivers/media/platform/rcar-vin/rcar-core.c static int rvin_group_link_notify(struct media_link *link, u32 flags,
link              115 drivers/media/platform/rcar-vin/rcar-core.c 	struct rvin_group *group = container_of(link->graph_obj.mdev,
link              125 drivers/media/platform/rcar-vin/rcar-core.c 	ret = v4l2_pipeline_link_notify(link, flags, notification);
link              131 drivers/media/platform/rcar-vin/rcar-core.c 	    !is_media_entity_v4l2_video_device(link->sink->entity))
link              146 drivers/media/platform/rcar-vin/rcar-core.c 	vdev = media_entity_to_video_device(link->sink->entity);
link              173 drivers/media/platform/rcar-vin/rcar-core.c 	csi_id = rvin_group_entity_to_csi_id(group, link->source->entity);
link              186 drivers/media/platform/rcar-vin/rcar-core.c 		sd = media_entity_to_v4l2_subdev(link->source->entity);
link              197 drivers/media/platform/rcar-vin/rcar-core.c 			link->source->entity->name);
link              202 drivers/media/platform/rcar-vin/rcar-core.c 	channel = rvin_group_csi_pad_to_channel(link->source->index);
link              547 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c static int sun6i_video_link_validate(struct media_link *link)
link              549 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	struct video_device *vdev = container_of(link->sink->entity,
link              557 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	if (!media_entity_remote_pad(link->sink->entity->pads)) {
link              563 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c 	ret = sun6i_video_link_validate_get_format(link->source, &source_fmt);
link              286 drivers/media/platform/vimc/vimc-common.c int vimc_link_validate(struct media_link *link)
link              291 drivers/media/platform/vimc/vimc-common.c 	ret = vimc_get_mbus_format(link->source, &source_fmt);
link              295 drivers/media/platform/vimc/vimc-common.c 	ret = vimc_get_mbus_format(link->sink, &sink_fmt);
link              303 drivers/media/platform/vimc/vimc-common.c 		link->source->entity->name,
link              309 drivers/media/platform/vimc/vimc-common.c 		link->sink->entity->name,
link              215 drivers/media/platform/vimc/vimc-common.h int vimc_link_validate(struct media_link *link);
link              146 drivers/media/platform/vimc/vimc-core.c 		const struct vimc_ent_link *link = &vimc->pipe_cfg->links[i];
link              152 drivers/media/platform/vimc/vimc-core.c 			platform_get_drvdata(vimc->subdevs[link->src_ent]);
link              154 drivers/media/platform/vimc/vimc-core.c 			platform_get_drvdata(vimc->subdevs[link->sink_ent]);
link              156 drivers/media/platform/vimc/vimc-core.c 		ret = media_create_pad_link(ved_src->ent, link->src_pad,
link              157 drivers/media/platform/vimc/vimc-core.c 					    ved_sink->ent, link->sink_pad,
link              158 drivers/media/platform/vimc/vimc-core.c 					    link->flags);
link              524 drivers/media/platform/vsp1/vsp1_entity.c 	struct media_link *link;
link              526 drivers/media/platform/vsp1/vsp1_entity.c 	list_for_each_entry(link, &pad->entity->links, list) {
link              529 drivers/media/platform/vsp1/vsp1_entity.c 		if (!(link->flags & MEDIA_LNK_FL_ENABLED))
link              533 drivers/media/platform/vsp1/vsp1_entity.c 		if (link->sink == pad)
link              534 drivers/media/platform/vsp1/vsp1_entity.c 			return link->source;
link              536 drivers/media/platform/vsp1/vsp1_entity.c 		if (link->source != pad)
link              540 drivers/media/platform/vsp1/vsp1_entity.c 		if (!is_media_entity_v4l2_subdev(link->sink->entity))
link              541 drivers/media/platform/vsp1/vsp1_entity.c 			return link->sink;
link              543 drivers/media/platform/vsp1/vsp1_entity.c 		entity = media_entity_to_vsp1_entity(link->sink->entity);
link              546 drivers/media/platform/vsp1/vsp1_entity.c 			return link->sink;
link               77 drivers/media/platform/xilinx/xilinx-vipp.c 	struct v4l2_fwnode_link link;
link               92 drivers/media/platform/xilinx/xilinx-vipp.c 		ret = v4l2_fwnode_parse_link(ep, &link);
link              102 drivers/media/platform/xilinx/xilinx-vipp.c 		if (link.local_port >= local->num_pads) {
link              104 drivers/media/platform/xilinx/xilinx-vipp.c 				link.local_port, link.local_node);
link              105 drivers/media/platform/xilinx/xilinx-vipp.c 			v4l2_fwnode_put_link(&link);
link              110 drivers/media/platform/xilinx/xilinx-vipp.c 		local_pad = &local->pads[link.local_port];
link              114 drivers/media/platform/xilinx/xilinx-vipp.c 				link.local_node, link.local_port);
link              115 drivers/media/platform/xilinx/xilinx-vipp.c 			v4l2_fwnode_put_link(&link);
link              120 drivers/media/platform/xilinx/xilinx-vipp.c 		if (link.remote_node == of_fwnode_handle(xdev->dev->of_node)) {
link              122 drivers/media/platform/xilinx/xilinx-vipp.c 				link.local_node, link.local_port);
link              123 drivers/media/platform/xilinx/xilinx-vipp.c 			v4l2_fwnode_put_link(&link);
link              128 drivers/media/platform/xilinx/xilinx-vipp.c 		ent = xvip_graph_find_entity(xdev, link.remote_node);
link              131 drivers/media/platform/xilinx/xilinx-vipp.c 				link.remote_node);
link              132 drivers/media/platform/xilinx/xilinx-vipp.c 			v4l2_fwnode_put_link(&link);
link              139 drivers/media/platform/xilinx/xilinx-vipp.c 		if (link.remote_port >= remote->num_pads) {
link              141 drivers/media/platform/xilinx/xilinx-vipp.c 				link.remote_port, link.remote_node);
link              142 drivers/media/platform/xilinx/xilinx-vipp.c 			v4l2_fwnode_put_link(&link);
link              147 drivers/media/platform/xilinx/xilinx-vipp.c 		remote_pad = &remote->pads[link.remote_port];
link              149 drivers/media/platform/xilinx/xilinx-vipp.c 		v4l2_fwnode_put_link(&link);
link              194 drivers/media/platform/xilinx/xilinx-vipp.c 	struct v4l2_fwnode_link link;
link              209 drivers/media/platform/xilinx/xilinx-vipp.c 		ret = v4l2_fwnode_parse_link(of_fwnode_handle(ep), &link);
link              217 drivers/media/platform/xilinx/xilinx-vipp.c 		dma = xvip_graph_find_dma(xdev, link.local_port);
link              220 drivers/media/platform/xilinx/xilinx-vipp.c 				link.local_port);
link              221 drivers/media/platform/xilinx/xilinx-vipp.c 			v4l2_fwnode_put_link(&link);
link              230 drivers/media/platform/xilinx/xilinx-vipp.c 		ent = xvip_graph_find_entity(xdev, link.remote_node);
link              233 drivers/media/platform/xilinx/xilinx-vipp.c 				to_of_node(link.remote_node));
link              234 drivers/media/platform/xilinx/xilinx-vipp.c 			v4l2_fwnode_put_link(&link);
link              239 drivers/media/platform/xilinx/xilinx-vipp.c 		if (link.remote_port >= ent->entity->num_pads) {
link              241 drivers/media/platform/xilinx/xilinx-vipp.c 				link.remote_port,
link              242 drivers/media/platform/xilinx/xilinx-vipp.c 				to_of_node(link.remote_node));
link              243 drivers/media/platform/xilinx/xilinx-vipp.c 			v4l2_fwnode_put_link(&link);
link              252 drivers/media/platform/xilinx/xilinx-vipp.c 			sink_pad = &sink->pads[link.remote_port];
link              255 drivers/media/platform/xilinx/xilinx-vipp.c 			source_pad = &source->pads[link.remote_port];
link              260 drivers/media/platform/xilinx/xilinx-vipp.c 		v4l2_fwnode_put_link(&link);
link              293 drivers/media/usb/au0828/au0828-core.c 	struct media_link *link, *found_link = NULL;
link              390 drivers/media/usb/au0828/au0828-core.c 	list_for_each_entry(link, &sink->links, list) {
link              392 drivers/media/usb/au0828/au0828-core.c 		if (link->sink->entity == sink &&
link              393 drivers/media/usb/au0828/au0828-core.c 		    link->source->entity == find_source) {
link              394 drivers/media/usb/au0828/au0828-core.c 			found_link = link;
link              564 drivers/media/usb/au0828/au0828-core.c 	struct media_link *link;
link              619 drivers/media/usb/au0828/au0828-core.c 		list_for_each_entry(link, &dev->tuner->links, list) {
link              620 drivers/media/usb/au0828/au0828-core.c 			if (demod && link->sink->entity == demod)
link              621 drivers/media/usb/au0828/au0828-core.c 				media_entity_setup_link(link, 0);
link              622 drivers/media/usb/au0828/au0828-core.c 			if (dev->decoder && link->sink->entity == dev->decoder)
link              623 drivers/media/usb/au0828/au0828-core.c 				media_entity_setup_link(link, 0);
link               95 drivers/media/usb/cx231xx/cx231xx-video.c 	struct media_link *link, *found_link = NULL;
link              117 drivers/media/usb/cx231xx/cx231xx-video.c 	list_for_each_entry(link, &decoder->links, list) {
link              118 drivers/media/usb/cx231xx/cx231xx-video.c 		if (link->sink->entity == decoder) {
link              119 drivers/media/usb/cx231xx/cx231xx-video.c 			found_link = link;
link              120 drivers/media/usb/cx231xx/cx231xx-video.c 			if (link->flags & MEDIA_LNK_FL_ENABLED)
link              130 drivers/media/usb/cx231xx/cx231xx-video.c 	list_for_each_entry(link, &source->links, list) {
link              134 drivers/media/usb/cx231xx/cx231xx-video.c 		sink = link->sink->entity;
link              139 drivers/media/usb/cx231xx/cx231xx-video.c 		ret = media_entity_setup_link(link, flags);
link              911 drivers/media/usb/em28xx/em28xx-video.c 	struct media_link *link, *found_link = NULL;
link              924 drivers/media/usb/em28xx/em28xx-video.c 	list_for_each_entry(link, &v4l2->decoder->links, list) {
link              925 drivers/media/usb/em28xx/em28xx-video.c 		if (link->sink->entity == v4l2->decoder) {
link              926 drivers/media/usb/em28xx/em28xx-video.c 			found_link = link;
link              927 drivers/media/usb/em28xx/em28xx-video.c 			if (link->flags & MEDIA_LNK_FL_ENABLED)
link              937 drivers/media/usb/em28xx/em28xx-video.c 	list_for_each_entry(link, &source->links, list) {
link              941 drivers/media/usb/em28xx/em28xx-video.c 		sink = link->sink->entity;
link              946 drivers/media/usb/em28xx/em28xx-video.c 		ret = media_entity_setup_link(link, flags);
link              822 drivers/media/v4l2-core/v4l2-dev.c 		struct media_link *link;
link              824 drivers/media/v4l2-core/v4l2-dev.c 		link = media_create_intf_link(&vdev->entity,
link              828 drivers/media/v4l2-core/v4l2-dev.c 		if (!link) {
link              234 drivers/media/v4l2-core/v4l2-device.c 			struct media_link *link;
link              236 drivers/media/v4l2-core/v4l2-device.c 			link = media_create_intf_link(&sd->entity,
link              240 drivers/media/v4l2-core/v4l2-device.c 			if (!link) {
link              560 drivers/media/v4l2-core/v4l2-fwnode.c 			   struct v4l2_fwnode_link *link)
link              565 drivers/media/v4l2-core/v4l2-fwnode.c 	memset(link, 0, sizeof(*link));
link              568 drivers/media/v4l2-core/v4l2-fwnode.c 	fwnode_property_read_u32(fwnode, port_prop, &link->local_port);
link              572 drivers/media/v4l2-core/v4l2-fwnode.c 	link->local_node = fwnode;
link              581 drivers/media/v4l2-core/v4l2-fwnode.c 	fwnode_property_read_u32(fwnode, port_prop, &link->remote_port);
link              585 drivers/media/v4l2-core/v4l2-fwnode.c 	link->remote_node = fwnode;
link              591 drivers/media/v4l2-core/v4l2-fwnode.c void v4l2_fwnode_put_link(struct v4l2_fwnode_link *link)
link              593 drivers/media/v4l2-core/v4l2-fwnode.c 	fwnode_handle_put(link->local_node);
link              594 drivers/media/v4l2-core/v4l2-fwnode.c 	fwnode_handle_put(link->remote_node);
link              449 drivers/media/v4l2-core/v4l2-mc.c int v4l2_pipeline_link_notify(struct media_link *link, u32 flags,
link              452 drivers/media/v4l2-core/v4l2-mc.c 	struct media_graph *graph = &link->graph_obj.mdev->pm_count_walk;
link              453 drivers/media/v4l2-core/v4l2-mc.c 	struct media_entity *source = link->source->entity;
link              454 drivers/media/v4l2-core/v4l2-mc.c 	struct media_entity *sink = link->sink->entity;
link              785 drivers/media/v4l2-core/v4l2-mem2mem.c 	struct media_link *link;
link              832 drivers/media/v4l2-core/v4l2-mem2mem.c 	link = media_create_intf_link(m2m_dev->source,
link              835 drivers/media/v4l2-core/v4l2-mem2mem.c 	if (!link) {
link              840 drivers/media/v4l2-core/v4l2-mem2mem.c 	link = media_create_intf_link(&m2m_dev->sink,
link              843 drivers/media/v4l2-core/v4l2-mem2mem.c 	if (!link) {
link              676 drivers/media/v4l2-core/v4l2-subdev.c 				      struct media_link *link,
link              718 drivers/media/v4l2-core/v4l2-subdev.c int v4l2_subdev_link_validate(struct media_link *link)
link              725 drivers/media/v4l2-core/v4l2-subdev.c 		link->source, &source_fmt);
link              730 drivers/media/v4l2-core/v4l2-subdev.c 		link->sink, &sink_fmt);
link              734 drivers/media/v4l2-core/v4l2-subdev.c 	sink = media_entity_to_v4l2_subdev(link->sink->entity);
link              736 drivers/media/v4l2-core/v4l2-subdev.c 	rval = v4l2_subdev_call(sink, pad, link_validate, link,
link              742 drivers/media/v4l2-core/v4l2-subdev.c 		sink, link, &source_fmt, &sink_fmt);
link              562 drivers/misc/mei/client.c 	INIT_LIST_HEAD(&cl->link);
link              621 drivers/misc/mei/client.c 	list_add_tail(&cl->link, &dev->file_list);
link              660 drivers/misc/mei/client.c 	list_del_init(&cl->link);
link              667 drivers/misc/mei/client.c 		!list_empty(&cl->link));
link             1858 drivers/misc/mei/client.c 	list_for_each_entry(cl, &dev->file_list, link)
link               74 drivers/misc/mei/debugfs.c 	list_for_each_entry(cl, &dev->file_list, link) {
link              215 drivers/misc/mei/hbm.c 	list_for_each_entry(cl, &dev->file_list, link)
link              313 drivers/misc/mei/interrupt.c 	list_for_each_entry(cl, &dev->file_list, link) {
link              321 drivers/misc/mei/interrupt.c 	if (&cl->link == &dev->file_list) {
link              522 drivers/misc/mei/interrupt.c 	list_for_each_entry(cl, &dev->file_list, link) {
link              223 drivers/misc/mei/mei_dev.h 	struct list_head link;
link              127 drivers/misc/ocxl/afu_irq.c 	rc = ocxl_link_irq_alloc(ctx->afu->fn->link, &irq->hw_irq,
link              144 drivers/misc/ocxl/afu_irq.c 	ocxl_link_free_irq(ctx->afu->fn->link, irq->hw_irq);
link              164 drivers/misc/ocxl/afu_irq.c 	ocxl_link_free_irq(ctx->afu->fn->link, irq->hw_irq);
link               84 drivers/misc/ocxl/context.c 	rc = ocxl_link_add_pe(ctx->afu->fn->link, ctx->pasid, pidr, ctx->tidr,
link              249 drivers/misc/ocxl/context.c 	rc = ocxl_link_remove_pe(ctx->afu->fn->link, ctx->pasid);
link              434 drivers/misc/ocxl/core.c 	rc = ocxl_link_setup(dev, 0, &fn->link);
link              440 drivers/misc/ocxl/core.c 		ocxl_link_release(dev, fn->link);
link              450 drivers/misc/ocxl/core.c 	ocxl_link_release(dev, fn->link);
link              140 drivers/misc/ocxl/file.c 			int rc = ocxl_link_update_pe(ctx->afu->fn->link,
link              182 drivers/misc/ocxl/link.c 	struct ocxl_link *link = (struct ocxl_link *) data;
link              183 drivers/misc/ocxl/link.c 	struct spa *spa = link->spa;
link              268 drivers/misc/ocxl/link.c static int setup_xsl_irq(struct pci_dev *dev, struct ocxl_link *link)
link              270 drivers/misc/ocxl/link.c 	struct spa *spa = link->spa;
link              283 drivers/misc/ocxl/link.c 				link->domain, link->bus, link->dev);
link              304 drivers/misc/ocxl/link.c 			link);
link              323 drivers/misc/ocxl/link.c static void release_xsl_irq(struct ocxl_link *link)
link              325 drivers/misc/ocxl/link.c 	struct spa *spa = link->spa;
link              328 drivers/misc/ocxl/link.c 		free_irq(spa->virq, link);
link              335 drivers/misc/ocxl/link.c static int alloc_spa(struct pci_dev *dev, struct ocxl_link *link)
link              355 drivers/misc/ocxl/link.c 	pr_debug("Allocated SPA for %x:%x:%x at %p\n", link->domain, link->bus,
link              356 drivers/misc/ocxl/link.c 		link->dev, spa->spa_mem);
link              358 drivers/misc/ocxl/link.c 	link->spa = spa;
link              362 drivers/misc/ocxl/link.c static void free_spa(struct ocxl_link *link)
link              364 drivers/misc/ocxl/link.c 	struct spa *spa = link->spa;
link              366 drivers/misc/ocxl/link.c 	pr_debug("Freeing SPA for %x:%x:%x\n", link->domain, link->bus,
link              367 drivers/misc/ocxl/link.c 		link->dev);
link              372 drivers/misc/ocxl/link.c 		link->spa = NULL;
link              378 drivers/misc/ocxl/link.c 	struct ocxl_link *link;
link              381 drivers/misc/ocxl/link.c 	link = kzalloc(sizeof(struct ocxl_link), GFP_KERNEL);
link              382 drivers/misc/ocxl/link.c 	if (!link)
link              385 drivers/misc/ocxl/link.c 	kref_init(&link->ref);
link              386 drivers/misc/ocxl/link.c 	link->domain = pci_domain_nr(dev->bus);
link              387 drivers/misc/ocxl/link.c 	link->bus = dev->bus->number;
link              388 drivers/misc/ocxl/link.c 	link->dev = PCI_SLOT(dev->devfn);
link              389 drivers/misc/ocxl/link.c 	atomic_set(&link->irq_available, MAX_IRQ_PER_LINK);
link              391 drivers/misc/ocxl/link.c 	rc = alloc_spa(dev, link);
link              395 drivers/misc/ocxl/link.c 	rc = setup_xsl_irq(dev, link);
link              400 drivers/misc/ocxl/link.c 	rc = pnv_ocxl_spa_setup(dev, link->spa->spa_mem, PE_mask,
link              401 drivers/misc/ocxl/link.c 				&link->platform_data);
link              405 drivers/misc/ocxl/link.c 	*out_link = link;
link              409 drivers/misc/ocxl/link.c 	release_xsl_irq(link);
link              411 drivers/misc/ocxl/link.c 	free_spa(link);
link              413 drivers/misc/ocxl/link.c 	kfree(link);
link              417 drivers/misc/ocxl/link.c static void free_link(struct ocxl_link *link)
link              419 drivers/misc/ocxl/link.c 	release_xsl_irq(link);
link              420 drivers/misc/ocxl/link.c 	free_spa(link);
link              421 drivers/misc/ocxl/link.c 	kfree(link);
link              427 drivers/misc/ocxl/link.c 	struct ocxl_link *link;
link              430 drivers/misc/ocxl/link.c 	list_for_each_entry(link, &links_list, list) {
link              432 drivers/misc/ocxl/link.c 		if (link->domain == pci_domain_nr(dev->bus) &&
link              433 drivers/misc/ocxl/link.c 			link->bus == dev->bus->number &&
link              434 drivers/misc/ocxl/link.c 			link->dev == PCI_SLOT(dev->devfn)) {
link              435 drivers/misc/ocxl/link.c 			kref_get(&link->ref);
link              436 drivers/misc/ocxl/link.c 			*link_handle = link;
link              440 drivers/misc/ocxl/link.c 	rc = alloc_link(dev, PE_mask, &link);
link              444 drivers/misc/ocxl/link.c 	list_add(&link->list, &links_list);
link              445 drivers/misc/ocxl/link.c 	*link_handle = link;
link              454 drivers/misc/ocxl/link.c 	struct ocxl_link *link = container_of(ref, struct ocxl_link, ref);
link              456 drivers/misc/ocxl/link.c 	list_del(&link->list);
link              458 drivers/misc/ocxl/link.c 	pnv_ocxl_spa_release(link->platform_data);
link              459 drivers/misc/ocxl/link.c 	free_link(link);
link              464 drivers/misc/ocxl/link.c 	struct ocxl_link *link = (struct ocxl_link *) link_handle;
link              467 drivers/misc/ocxl/link.c 	kref_put(&link->ref, release_xsl);
link              500 drivers/misc/ocxl/link.c 	struct ocxl_link *link = (struct ocxl_link *) link_handle;
link              501 drivers/misc/ocxl/link.c 	struct spa *spa = link->spa;
link              577 drivers/misc/ocxl/link.c 	struct ocxl_link *link = (struct ocxl_link *) link_handle;
link              578 drivers/misc/ocxl/link.c 	struct spa *spa = link->spa;
link              604 drivers/misc/ocxl/link.c 	rc = pnv_ocxl_spa_remove_pe_from_cache(link->platform_data, pe_handle);
link              613 drivers/misc/ocxl/link.c 	struct ocxl_link *link = (struct ocxl_link *) link_handle;
link              614 drivers/misc/ocxl/link.c 	struct spa *spa = link->spa;
link              666 drivers/misc/ocxl/link.c 	rc = pnv_ocxl_spa_remove_pe_from_cache(link->platform_data, pe_handle);
link              687 drivers/misc/ocxl/link.c 	struct ocxl_link *link = (struct ocxl_link *) link_handle;
link              691 drivers/misc/ocxl/link.c 	if (atomic_dec_if_positive(&link->irq_available) < 0)
link              696 drivers/misc/ocxl/link.c 		atomic_inc(&link->irq_available);
link              708 drivers/misc/ocxl/link.c 	struct ocxl_link *link = (struct ocxl_link *) link_handle;
link              711 drivers/misc/ocxl/link.c 	atomic_inc(&link->irq_available);
link               27 drivers/misc/ocxl/ocxl_internal.h 	void *link;
link               97 drivers/mmc/core/mmc_test.c 	struct list_head link;
link              114 drivers/mmc/core/mmc_test.c 	struct list_head link;
link              128 drivers/mmc/core/mmc_test.c 	struct list_head link;
link              551 drivers/mmc/core/mmc_test.c 	list_add_tail(&tr->link, &test->gr->tr_lst);
link             2961 drivers/mmc/core/mmc_test.c 			list_add_tail(&gr->link, &mmc_test_result);
link             3019 drivers/mmc/core/mmc_test.c 	list_for_each_entry_safe(gr, grs, &mmc_test_result, link) {
link             3025 drivers/mmc/core/mmc_test.c 		list_for_each_entry_safe(tr, trs, &gr->tr_lst, link) {
link             3026 drivers/mmc/core/mmc_test.c 			list_del(&tr->link);
link             3030 drivers/mmc/core/mmc_test.c 		list_del(&gr->link);
link             3046 drivers/mmc/core/mmc_test.c 	list_for_each_entry(gr, &mmc_test_result, link) {
link             3054 drivers/mmc/core/mmc_test.c 		list_for_each_entry(tr, &gr->tr_lst, link) {
link             3152 drivers/mmc/core/mmc_test.c 	list_for_each_entry_safe(df, dfs, &mmc_test_file_test, link) {
link             3156 drivers/mmc/core/mmc_test.c 		list_del(&df->link);
link             3181 drivers/mmc/core/mmc_test.c 	list_add(&df->link, &mmc_test_file_test);
link              477 drivers/mmc/host/sdricoh_cs.c static void sdricoh_pcmcia_detach(struct pcmcia_device *link)
link              479 drivers/mmc/host/sdricoh_cs.c 	struct mmc_host *mmc = link->priv;
link              481 drivers/mmc/host/sdricoh_cs.c 	dev_dbg(&link->dev, "detach\n");
link              491 drivers/mmc/host/sdricoh_cs.c 	pcmcia_disable_device(link);
link              496 drivers/mmc/host/sdricoh_cs.c static int sdricoh_pcmcia_suspend(struct pcmcia_device *link)
link              498 drivers/mmc/host/sdricoh_cs.c 	dev_dbg(&link->dev, "suspend\n");
link              502 drivers/mmc/host/sdricoh_cs.c static int sdricoh_pcmcia_resume(struct pcmcia_device *link)
link              504 drivers/mmc/host/sdricoh_cs.c 	struct mmc_host *mmc = link->priv;
link              505 drivers/mmc/host/sdricoh_cs.c 	dev_dbg(&link->dev, "resume\n");
link              302 drivers/mtd/maps/pcmciamtd.c 	struct pcmcia_device *link = dev->p_dev;
link              309 drivers/mtd/maps/pcmciamtd.c 			pcmcia_fixup_vpp(link, dev->vpp);
link              312 drivers/mtd/maps/pcmciamtd.c 			pcmcia_fixup_vpp(link, 0);
link              318 drivers/mtd/maps/pcmciamtd.c static void pcmciamtd_release(struct pcmcia_device *link)
link              320 drivers/mtd/maps/pcmciamtd.c 	struct pcmciamtd_dev *dev = link->priv;
link              322 drivers/mtd/maps/pcmciamtd.c 	pr_debug("link = 0x%p\n", link);
link              324 drivers/mtd/maps/pcmciamtd.c 	if (link->resource[2]->end) {
link              330 drivers/mtd/maps/pcmciamtd.c 	pcmcia_disable_device(link);
link              463 drivers/mtd/maps/pcmciamtd.c static int pcmciamtd_config(struct pcmcia_device *link)
link              465 drivers/mtd/maps/pcmciamtd.c 	struct pcmciamtd_dev *dev = link->priv;
link              472 drivers/mtd/maps/pcmciamtd.c 	pr_debug("link=0x%p\n", link);
link              474 drivers/mtd/maps/pcmciamtd.c 	card_settings(dev, link, &new_name);
link              495 drivers/mtd/maps/pcmciamtd.c 	link->resource[2]->flags |=  WIN_MEMORY_TYPE_CM | WIN_ENABLE;
link              496 drivers/mtd/maps/pcmciamtd.c 	link->resource[2]->flags |= (dev->pcmcia_map.bankwidth == 1) ?
link              498 drivers/mtd/maps/pcmciamtd.c 	link->resource[2]->start = 0;
link              499 drivers/mtd/maps/pcmciamtd.c 	link->resource[2]->end = (force_size) ? force_size << 20 :
link              506 drivers/mtd/maps/pcmciamtd.c 			(unsigned long) resource_size(link->resource[2]) >> 10,
link              508 drivers/mtd/maps/pcmciamtd.c 		ret = pcmcia_request_window(link, link->resource[2], mem_speed);
link              512 drivers/mtd/maps/pcmciamtd.c 			link->resource[2]->start = 0;
link              513 drivers/mtd/maps/pcmciamtd.c 			link->resource[2]->end = (force_size) ?
link              515 drivers/mtd/maps/pcmciamtd.c 			link->resource[2]->end >>= j;
link              518 drivers/mtd/maps/pcmciamtd.c 				resource_size(link->resource[2]) >> 10);
link              519 drivers/mtd/maps/pcmciamtd.c 			dev->win_size = resource_size(link->resource[2]);
link              522 drivers/mtd/maps/pcmciamtd.c 	} while (link->resource[2]->end >= 0x1000);
link              528 drivers/mtd/maps/pcmciamtd.c 		pcmciamtd_release(link);
link              534 drivers/mtd/maps/pcmciamtd.c 	dev->win_base = ioremap(link->resource[2]->start,
link              535 drivers/mtd/maps/pcmciamtd.c 				resource_size(link->resource[2]));
link              538 drivers/mtd/maps/pcmciamtd.c 			link->resource[2]);
link              539 drivers/mtd/maps/pcmciamtd.c 		pcmciamtd_release(link);
link              543 drivers/mtd/maps/pcmciamtd.c 	      dev, link->resource[2], dev->win_base);
link              547 drivers/mtd/maps/pcmciamtd.c 	dev->pcmcia_map.map_priv_2 = (unsigned long)link->resource[2];
link              549 drivers/mtd/maps/pcmciamtd.c 	dev->vpp = (vpp) ? vpp : link->socket->socket.Vpp;
link              551 drivers/mtd/maps/pcmciamtd.c 		link->vpp = dev->vpp;
link              553 drivers/mtd/maps/pcmciamtd.c 		link->vpp = 0;
link              556 drivers/mtd/maps/pcmciamtd.c 	link->config_index = 0;
link              558 drivers/mtd/maps/pcmciamtd.c 	ret = pcmcia_enable_device(link);
link              584 drivers/mtd/maps/pcmciamtd.c 		pcmciamtd_release(link);
link              628 drivers/mtd/maps/pcmciamtd.c 		pcmciamtd_release(link);
link              655 drivers/mtd/maps/pcmciamtd.c static void pcmciamtd_detach(struct pcmcia_device *link)
link              657 drivers/mtd/maps/pcmciamtd.c 	struct pcmciamtd_dev *dev = link->priv;
link              659 drivers/mtd/maps/pcmciamtd.c 	pr_debug("link=0x%p\n", link);
link              668 drivers/mtd/maps/pcmciamtd.c 	pcmciamtd_release(link);
link              672 drivers/mtd/maps/pcmciamtd.c static int pcmciamtd_probe(struct pcmcia_device *link)
link              681 drivers/mtd/maps/pcmciamtd.c 	dev->p_dev = link;
link              682 drivers/mtd/maps/pcmciamtd.c 	link->priv = dev;
link              684 drivers/mtd/maps/pcmciamtd.c 	return pcmciamtd_config(link);
link              104 drivers/net/arcnet/com20020_cs.c static int com20020_config(struct pcmcia_device *link);
link              105 drivers/net/arcnet/com20020_cs.c static void com20020_release(struct pcmcia_device *link);
link              153 drivers/net/arcnet/com20020_cs.c static void com20020_detach(struct pcmcia_device *link)
link              155 drivers/net/arcnet/com20020_cs.c 	struct com20020_dev *info = link->priv;
link              158 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "detach...\n");
link              160 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "com20020_detach\n");
link              162 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "unregister...\n");
link              172 drivers/net/arcnet/com20020_cs.c 	com20020_release(link);
link              175 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "unlinking...\n");
link              176 drivers/net/arcnet/com20020_cs.c 	if (link->priv) {
link              179 drivers/net/arcnet/com20020_cs.c 			dev_dbg(&link->dev, "kfree...\n");
link              182 drivers/net/arcnet/com20020_cs.c 		dev_dbg(&link->dev, "kfree2...\n");
link              188 drivers/net/arcnet/com20020_cs.c static int com20020_config(struct pcmcia_device *link)
link              196 drivers/net/arcnet/com20020_cs.c 	info = link->priv;
link              199 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "config...\n");
link              201 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "com20020_config\n");
link              203 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "baseport1 is %Xh\n",
link              204 drivers/net/arcnet/com20020_cs.c 		(unsigned int)link->resource[0]->start);
link              207 drivers/net/arcnet/com20020_cs.c 	link->io_lines = 16;
link              209 drivers/net/arcnet/com20020_cs.c 	if (!link->resource[0]->start) {
link              211 drivers/net/arcnet/com20020_cs.c 			link->resource[0]->start = ioaddr;
link              212 drivers/net/arcnet/com20020_cs.c 			i = pcmcia_request_io(link);
link              217 drivers/net/arcnet/com20020_cs.c 		i = pcmcia_request_io(link);
link              221 drivers/net/arcnet/com20020_cs.c 		dev_dbg(&link->dev, "requestIO failed totally!\n");
link              225 drivers/net/arcnet/com20020_cs.c 	ioaddr = dev->base_addr = link->resource[0]->start;
link              226 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "got ioaddr %Xh\n", ioaddr);
link              228 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "request IRQ %d\n",
link              229 drivers/net/arcnet/com20020_cs.c 		link->irq);
link              230 drivers/net/arcnet/com20020_cs.c 	if (!link->irq) {
link              231 drivers/net/arcnet/com20020_cs.c 		dev_dbg(&link->dev, "requestIRQ failed totally!\n");
link              235 drivers/net/arcnet/com20020_cs.c 	dev->irq = link->irq;
link              237 drivers/net/arcnet/com20020_cs.c 	ret = pcmcia_enable_device(link);
link              250 drivers/net/arcnet/com20020_cs.c 	SET_NETDEV_DEV(dev, &link->dev);
link              255 drivers/net/arcnet/com20020_cs.c 		dev_notice(&link->dev,
link              265 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "com20020_config failed...\n");
link              266 drivers/net/arcnet/com20020_cs.c 	com20020_release(link);
link              270 drivers/net/arcnet/com20020_cs.c static void com20020_release(struct pcmcia_device *link)
link              272 drivers/net/arcnet/com20020_cs.c 	dev_dbg(&link->dev, "com20020_release\n");
link              273 drivers/net/arcnet/com20020_cs.c 	pcmcia_disable_device(link);
link              276 drivers/net/arcnet/com20020_cs.c static int com20020_suspend(struct pcmcia_device *link)
link              278 drivers/net/arcnet/com20020_cs.c 	struct com20020_dev *info = link->priv;
link              281 drivers/net/arcnet/com20020_cs.c 	if (link->open)
link              287 drivers/net/arcnet/com20020_cs.c static int com20020_resume(struct pcmcia_device *link)
link              289 drivers/net/arcnet/com20020_cs.c 	struct com20020_dev *info = link->priv;
link              292 drivers/net/arcnet/com20020_cs.c 	if (link->open) {
link              196 drivers/net/bonding/bond_3ad.c 	if ((slave->link == BOND_LINK_UP) && bond_slave_is_up(slave))
link              269 drivers/net/bonding/bond_3ad.c 	if (slave->link != BOND_LINK_UP)
link              358 drivers/net/bonding/bond_3ad.c 	if (slave->link == BOND_LINK_UP) {
link             2517 drivers/net/bonding/bond_3ad.c void bond_3ad_handle_link_change(struct slave *slave, char link)
link             2539 drivers/net/bonding/bond_3ad.c 	if (link == BOND_LINK_UP) {
link             2554 drivers/net/bonding/bond_3ad.c 		  link == BOND_LINK_UP ? "UP" : "DOWN");
link             1653 drivers/net/bonding/bond_alb.c void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link)
link             1657 drivers/net/bonding/bond_alb.c 	if (link == BOND_LINK_DOWN) {
link             1661 drivers/net/bonding/bond_alb.c 	} else if (link == BOND_LINK_UP) {
link              348 drivers/net/bonding/bond_main.c 		if (slave->link == BOND_LINK_UP) {
link              399 drivers/net/bonding/bond_main.c const char *bond_slave_link_status(s8 link)
link              401 drivers/net/bonding/bond_main.c 	switch (link) {
link              727 drivers/net/bonding/bond_main.c 	if (!prim || prim->link != BOND_LINK_UP) {
link              728 drivers/net/bonding/bond_main.c 		if (!curr || curr->link != BOND_LINK_UP)
link              738 drivers/net/bonding/bond_main.c 	if (!curr || curr->link != BOND_LINK_UP)
link              775 drivers/net/bonding/bond_main.c 		if (slave->link == BOND_LINK_UP)
link              777 drivers/net/bonding/bond_main.c 		if (slave->link == BOND_LINK_BACK && bond_slave_is_up(slave) &&
link              837 drivers/net/bonding/bond_main.c 		if (new_active->link == BOND_LINK_BACK) {
link             1337 drivers/net/bonding/bond_main.c 	info->link = slave->link;
link             1368 drivers/net/bonding/bond_main.c 	info.link_up = slave->link == BOND_LINK_UP ||
link             1369 drivers/net/bonding/bond_main.c 		       slave->link == BOND_LINK_FAIL;
link             1589 drivers/net/bonding/bond_main.c 		new_slave->link = BOND_LINK_DOWN;
link             1616 drivers/net/bonding/bond_main.c 	new_slave->link = BOND_LINK_NOCHANGE;
link             1643 drivers/net/bonding/bond_main.c 	if (new_slave->link != BOND_LINK_DOWN)
link             1646 drivers/net/bonding/bond_main.c 		  new_slave->link == BOND_LINK_DOWN ? "DOWN" :
link             1647 drivers/net/bonding/bond_main.c 		  (new_slave->link == BOND_LINK_UP ? "UP" : "BACK"));
link             1698 drivers/net/bonding/bond_main.c 		    new_slave->link == BOND_LINK_UP)
link             1786 drivers/net/bonding/bond_main.c 		   new_slave->link != BOND_LINK_DOWN ? "an up" : "a down");
link             2090 drivers/net/bonding/bond_main.c 		switch (slave->link) {
link             2173 drivers/net/bonding/bond_main.c 				    char link)
link             2177 drivers/net/bonding/bond_main.c 		bond_3ad_handle_link_change(slave, link);
link             2181 drivers/net/bonding/bond_main.c 		bond_alb_handle_link_change(bond, slave, link);
link             2204 drivers/net/bonding/bond_main.c 			    slave->link == BOND_LINK_UP)
link             2211 drivers/net/bonding/bond_main.c 				slave->link = BOND_LINK_DOWN;
link             2675 drivers/net/bonding/bond_main.c 		if (slave->link != BOND_LINK_UP) {
link             2736 drivers/net/bonding/bond_main.c 				slave->link = slave->link_new_state;
link             2776 drivers/net/bonding/bond_main.c 		if (slave->link != BOND_LINK_UP) {
link             2953 drivers/net/bonding/bond_main.c 		if (!bond_slave_is_up(slave) && slave->link == BOND_LINK_UP) {
link             3133 drivers/net/bonding/bond_main.c 				slave->link = BOND_LINK_FAIL;
link             3135 drivers/net/bonding/bond_main.c 				slave->link = BOND_LINK_DOWN;
link             4128 drivers/net/bonding/bond_main.c 		if (bond_slave_is_up(slave) && slave->link == BOND_LINK_UP) {
link             4139 drivers/net/bonding/bond_main.c 	if (slave && bond_slave_is_up(slave) && slave->link == BOND_LINK_UP)
link             4163 drivers/net/bonding/bond_main.c 			    slave->link == BOND_LINK_UP) {
link               41 drivers/net/bonding/bond_netlink.c 	if (nla_put_u8(skb, IFLA_BOND_SLAVE_MII_STATUS, slave->link))
link              821 drivers/net/bonding/bond_options.c 			if (old_active && (new_active->link == BOND_LINK_UP) &&
link              175 drivers/net/bonding/bond_procfs.c 	seq_printf(seq, "MII Status: %s\n", bond_slave_link_status(slave->link));
link               42 drivers/net/bonding/bond_sysfs_slave.c 	return sprintf(buf, "%s\n", bond_slave_link_status(slave->link));
link             1018 drivers/net/can/pch_can.c 	u32 link;
link             1024 drivers/net/can/pch_can.c 		link = 0;
link             1026 drivers/net/can/pch_can.c 		link = 1;
link             1027 drivers/net/can/pch_can.c 	return link;
link              994 drivers/net/dsa/b53/b53_common.c static void b53_force_link(struct b53_device *dev, int port, int link)
link             1009 drivers/net/dsa/b53/b53_common.c 	if (link)
link             1085 drivers/net/dsa/b53/b53_common.c 	b53_force_link(dev, port, phydev->link);
link             1158 drivers/net/dsa/b53/b53_common.c 	bool link;
link             1162 drivers/net/dsa/b53/b53_common.c 	link = !!(sts & BIT(port));
link             1163 drivers/net/dsa/b53/b53_common.c 	dsa_port_phylink_mac_change(ds, port, link);
link              131 drivers/net/dsa/b53/b53_serdes.c 	state->link = !!(dig & LINK_STATUS);
link              339 drivers/net/dsa/bcm_sf2.c 		priv->port_sts[7].link = true;
link              343 drivers/net/dsa/bcm_sf2.c 		priv->port_sts[7].link = false;
link              600 drivers/net/dsa/bcm_sf2.c 	if (state->link)
link              609 drivers/net/dsa/bcm_sf2.c 				    phy_interface_t interface, bool link)
link              621 drivers/net/dsa/bcm_sf2.c 	if (link)
link              654 drivers/net/dsa/bcm_sf2.c 	status->link = false;
link              665 drivers/net/dsa/bcm_sf2.c 		status->link = priv->port_sts[port].link;
link              671 drivers/net/dsa/bcm_sf2.c 		if (!status->link)
link              675 drivers/net/dsa/bcm_sf2.c 		status->link = true;
link               46 drivers/net/dsa/bcm_sf2.h 	unsigned int link;
link              335 drivers/net/dsa/dsa_loop.c 		.link = 1,
link              460 drivers/net/dsa/microchip/ksz8795.c 	u8 restart, speed, ctrl, link;
link              494 drivers/net/dsa/microchip/ksz8795.c 		ksz_pread8(dev, p, P_LINK_STATUS, &link);
link              500 drivers/net/dsa/microchip/ksz8795.c 		if (link & PORT_AUTO_NEG_COMPLETE)
link              502 drivers/net/dsa/microchip/ksz8795.c 		if (link & PORT_STAT_LINK_GOOD)
link              526 drivers/net/dsa/microchip/ksz8795.c 		ksz_pread8(dev, p, P_REMOTE_STATUS, &link);
link              528 drivers/net/dsa/microchip/ksz8795.c 		if (link & PORT_REMOTE_SYM_PAUSE)
link              530 drivers/net/dsa/microchip/ksz8795.c 		if (link & PORT_REMOTE_100BTX_FD)
link              532 drivers/net/dsa/microchip/ksz8795.c 		if (link & PORT_REMOTE_100BTX)
link              534 drivers/net/dsa/microchip/ksz8795.c 		if (link & PORT_REMOTE_10BT_FD)
link              536 drivers/net/dsa/microchip/ksz8795.c 		if (link & PORT_REMOTE_10BT)
link              985 drivers/net/dsa/microchip/ksz8795.c 		if (p->phydev.link)
link             1279 drivers/net/dsa/microchip/ksz9477.c 		if (p->phydev.link)
link              153 drivers/net/dsa/microchip/ksz_common.c 	if (!phydev->link) {
link              158 drivers/net/dsa/microchip/ksz_common.c 	if (!phydev->link)
link             1485 drivers/net/dsa/mt7530.c 	state->link = (pmsr & PMSR_LINK);
link             1486 drivers/net/dsa/mt7530.c 	state->an_complete = state->link;
link              397 drivers/net/dsa/mv88e6xxx/chip.c int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, int link,
link              418 drivers/net/dsa/mv88e6xxx/chip.c 	if (state.link == link &&
link              465 drivers/net/dsa/mv88e6xxx/chip.c 	if (chip->info->ops->port_set_link(chip, port, link))
link              603 drivers/net/dsa/mv88e6xxx/chip.c 	int speed, duplex, link, pause, err;
link              609 drivers/net/dsa/mv88e6xxx/chip.c 		link = LINK_FORCED_UP;
link              613 drivers/net/dsa/mv88e6xxx/chip.c 		link = state->link;
link              619 drivers/net/dsa/mv88e6xxx/chip.c 		link = LINK_UNFORCED;
link              624 drivers/net/dsa/mv88e6xxx/chip.c 	err = mv88e6xxx_port_setup_mac(chip, port, link, speed, duplex, pause,
link              632 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_mac_link_force(struct dsa_switch *ds, int port, int link)
link              638 drivers/net/dsa/mv88e6xxx/chip.c 	err = chip->info->ops->port_set_link(chip, port, link);
link              382 drivers/net/dsa/mv88e6xxx/chip.h 	int (*port_set_link)(struct mv88e6xxx_chip *chip, int port, int link);
link              638 drivers/net/dsa/mv88e6xxx/chip.h int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, int link,
link              127 drivers/net/dsa/mv88e6xxx/port.c int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link)
link              139 drivers/net/dsa/mv88e6xxx/port.c 	switch (link) {
link              647 drivers/net/dsa/mv88e6xxx/port.c 	state->link = !!(reg & MV88E6250_PORT_STS_LINK);
link              649 drivers/net/dsa/mv88e6xxx/port.c 	state->an_complete = state->link;
link              723 drivers/net/dsa/mv88e6xxx/port.c 	state->link = !!(reg & MV88E6XXX_PORT_STS_LINK);
link              725 drivers/net/dsa/mv88e6xxx/port.c 	state->an_complete = state->link;
link              750 drivers/net/dsa/mv88e6xxx/port.c 			state->link = !!(mac & MV88E6185_PORT_MAC_CTL_SYNC_OK);
link              755 drivers/net/dsa/mv88e6xxx/port.c 				state->link ? DUPLEX_FULL : DUPLEX_UNKNOWN;
link              757 drivers/net/dsa/mv88e6xxx/port.c 				state->link ? SPEED_1000 : SPEED_UNKNOWN;
link              299 drivers/net/dsa/mv88e6xxx/port.h int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link);
link              434 drivers/net/dsa/mv88e6xxx/serdes.c 	int link, err;
link              444 drivers/net/dsa/mv88e6xxx/serdes.c 	link = status & MV88E6390_SGMII_PHY_STATUS_LINK ?
link              484 drivers/net/dsa/mv88e6xxx/serdes.c 	err = mv88e6xxx_port_setup_mac(chip, port, link, speed, duplex,
link              490 drivers/net/dsa/mv88e6xxx/serdes.c 		dsa_port_phylink_mac_change(ds, port, link == LINK_FORCED_UP);
link              791 drivers/net/dsa/vitesse-vsc73xx-core.c 	if (!phydev->link) {
link              217 drivers/net/ethernet/3com/3c574_cs.c static int tc574_config(struct pcmcia_device *link);
link              218 drivers/net/ethernet/3com/3c574_cs.c static void tc574_release(struct pcmcia_device *link);
link              261 drivers/net/ethernet/3com/3c574_cs.c static int tc574_probe(struct pcmcia_device *link)
link              266 drivers/net/ethernet/3com/3c574_cs.c 	dev_dbg(&link->dev, "3c574_attach()\n");
link              273 drivers/net/ethernet/3com/3c574_cs.c 	link->priv = dev;
link              274 drivers/net/ethernet/3com/3c574_cs.c 	lp->p_dev = link;
link              277 drivers/net/ethernet/3com/3c574_cs.c 	link->resource[0]->end = 32;
link              278 drivers/net/ethernet/3com/3c574_cs.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
link              279 drivers/net/ethernet/3com/3c574_cs.c 	link->config_flags |= CONF_ENABLE_IRQ;
link              280 drivers/net/ethernet/3com/3c574_cs.c 	link->config_index = 1;
link              285 drivers/net/ethernet/3com/3c574_cs.c 	return tc574_config(link);
link              288 drivers/net/ethernet/3com/3c574_cs.c static void tc574_detach(struct pcmcia_device *link)
link              290 drivers/net/ethernet/3com/3c574_cs.c 	struct net_device *dev = link->priv;
link              292 drivers/net/ethernet/3com/3c574_cs.c 	dev_dbg(&link->dev, "3c574_detach()\n");
link              296 drivers/net/ethernet/3com/3c574_cs.c 	tc574_release(link);
link              303 drivers/net/ethernet/3com/3c574_cs.c static int tc574_config(struct pcmcia_device *link)
link              305 drivers/net/ethernet/3com/3c574_cs.c 	struct net_device *dev = link->priv;
link              317 drivers/net/ethernet/3com/3c574_cs.c 	dev_dbg(&link->dev, "3c574_config()\n");
link              319 drivers/net/ethernet/3com/3c574_cs.c 	link->io_lines = 16;
link              322 drivers/net/ethernet/3com/3c574_cs.c 		link->resource[0]->start = j ^ 0x300;
link              323 drivers/net/ethernet/3com/3c574_cs.c 		i = pcmcia_request_io(link);
link              330 drivers/net/ethernet/3com/3c574_cs.c 	ret = pcmcia_request_irq(link, el3_interrupt);
link              334 drivers/net/ethernet/3com/3c574_cs.c 	ret = pcmcia_enable_device(link);
link              338 drivers/net/ethernet/3com/3c574_cs.c 	dev->irq = link->irq;
link              339 drivers/net/ethernet/3com/3c574_cs.c 	dev->base_addr = link->resource[0]->start;
link              347 drivers/net/ethernet/3com/3c574_cs.c 	len = pcmcia_get_tuple(link, 0x88, &buf);
link              363 drivers/net/ethernet/3com/3c574_cs.c 	if (link->prod_id[1])
link              364 drivers/net/ethernet/3com/3c574_cs.c 		cardname = link->prod_id[1];
link              401 drivers/net/ethernet/3com/3c574_cs.c 				dev_dbg(&link->dev, "  MII transceiver at "
link              423 drivers/net/ethernet/3com/3c574_cs.c 	SET_NETDEV_DEV(dev, &link->dev);
link              440 drivers/net/ethernet/3com/3c574_cs.c 	tc574_release(link);
link              445 drivers/net/ethernet/3com/3c574_cs.c static void tc574_release(struct pcmcia_device *link)
link              447 drivers/net/ethernet/3com/3c574_cs.c 	pcmcia_disable_device(link);
link              450 drivers/net/ethernet/3com/3c574_cs.c static int tc574_suspend(struct pcmcia_device *link)
link              452 drivers/net/ethernet/3com/3c574_cs.c 	struct net_device *dev = link->priv;
link              454 drivers/net/ethernet/3com/3c574_cs.c 	if (link->open)
link              460 drivers/net/ethernet/3com/3c574_cs.c static int tc574_resume(struct pcmcia_device *link)
link              462 drivers/net/ethernet/3com/3c574_cs.c 	struct net_device *dev = link->priv;
link              464 drivers/net/ethernet/3com/3c574_cs.c 	if (link->open) {
link              675 drivers/net/ethernet/3com/3c574_cs.c 	struct pcmcia_device *link = lp->p_dev;
link              677 drivers/net/ethernet/3com/3c574_cs.c 	if (!pcmcia_dev_present(link))
link              680 drivers/net/ethernet/3com/3c574_cs.c 	link->open++;
link              687 drivers/net/ethernet/3com/3c574_cs.c 	dev_dbg(&link->dev, "%s: opened, status %4.4x.\n",
link             1118 drivers/net/ethernet/3com/3c574_cs.c 	struct pcmcia_device *link = lp->p_dev;
link             1120 drivers/net/ethernet/3com/3c574_cs.c 	dev_dbg(&link->dev, "%s: shutting down ethercard.\n", dev->name);
link             1122 drivers/net/ethernet/3com/3c574_cs.c 	if (pcmcia_dev_present(link)) {
link             1142 drivers/net/ethernet/3com/3c574_cs.c 	link->open--;
link              161 drivers/net/ethernet/3com/3c589_cs.c static int tc589_config(struct pcmcia_device *link);
link              162 drivers/net/ethernet/3com/3c589_cs.c static void tc589_release(struct pcmcia_device *link);
link              195 drivers/net/ethernet/3com/3c589_cs.c static int tc589_probe(struct pcmcia_device *link)
link              200 drivers/net/ethernet/3com/3c589_cs.c 	dev_dbg(&link->dev, "3c589_attach()\n");
link              207 drivers/net/ethernet/3com/3c589_cs.c 	link->priv = dev;
link              208 drivers/net/ethernet/3com/3c589_cs.c 	lp->p_dev = link;
link              211 drivers/net/ethernet/3com/3c589_cs.c 	link->resource[0]->end = 16;
link              212 drivers/net/ethernet/3com/3c589_cs.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
link              214 drivers/net/ethernet/3com/3c589_cs.c 	link->config_flags |= CONF_ENABLE_IRQ;
link              215 drivers/net/ethernet/3com/3c589_cs.c 	link->config_index = 1;
link              222 drivers/net/ethernet/3com/3c589_cs.c 	return tc589_config(link);
link              225 drivers/net/ethernet/3com/3c589_cs.c static void tc589_detach(struct pcmcia_device *link)
link              227 drivers/net/ethernet/3com/3c589_cs.c 	struct net_device *dev = link->priv;
link              229 drivers/net/ethernet/3com/3c589_cs.c 	dev_dbg(&link->dev, "3c589_detach\n");
link              233 drivers/net/ethernet/3com/3c589_cs.c 	tc589_release(link);
link              238 drivers/net/ethernet/3com/3c589_cs.c static int tc589_config(struct pcmcia_device *link)
link              240 drivers/net/ethernet/3com/3c589_cs.c 	struct net_device *dev = link->priv;
link              248 drivers/net/ethernet/3com/3c589_cs.c 	dev_dbg(&link->dev, "3c589_config\n");
link              252 drivers/net/ethernet/3com/3c589_cs.c 	if (link->manf_id != MANFID_3COM)
link              253 drivers/net/ethernet/3com/3c589_cs.c 		dev_info(&link->dev, "hmmm, is this really a 3Com card??\n");
link              254 drivers/net/ethernet/3com/3c589_cs.c 	multi = (link->card_id == PRODID_3COM_3C562);
link              256 drivers/net/ethernet/3com/3c589_cs.c 	link->io_lines = 16;
link              262 drivers/net/ethernet/3com/3c589_cs.c 		link->resource[0]->start = j ^ 0x300;
link              263 drivers/net/ethernet/3com/3c589_cs.c 		i = pcmcia_request_io(link);
link              270 drivers/net/ethernet/3com/3c589_cs.c 	ret = pcmcia_request_irq(link, el3_interrupt);
link              274 drivers/net/ethernet/3com/3c589_cs.c 	ret = pcmcia_enable_device(link);
link              278 drivers/net/ethernet/3com/3c589_cs.c 	dev->irq = link->irq;
link              279 drivers/net/ethernet/3com/3c589_cs.c 	dev->base_addr = link->resource[0]->start;
link              286 drivers/net/ethernet/3com/3c589_cs.c 	len = pcmcia_get_tuple(link, 0x88, &buf);
link              296 drivers/net/ethernet/3com/3c589_cs.c 			dev_err(&link->dev, "IO port conflict at 0x%03lx-0x%03lx\n",
link              313 drivers/net/ethernet/3com/3c589_cs.c 		dev_err(&link->dev, "invalid if_port requested\n");
link              315 drivers/net/ethernet/3com/3c589_cs.c 	SET_NETDEV_DEV(dev, &link->dev);
link              318 drivers/net/ethernet/3com/3c589_cs.c 		dev_err(&link->dev, "register_netdev() failed\n");
link              331 drivers/net/ethernet/3com/3c589_cs.c 	tc589_release(link);
link              335 drivers/net/ethernet/3com/3c589_cs.c static void tc589_release(struct pcmcia_device *link)
link              337 drivers/net/ethernet/3com/3c589_cs.c 	pcmcia_disable_device(link);
link              340 drivers/net/ethernet/3com/3c589_cs.c static int tc589_suspend(struct pcmcia_device *link)
link              342 drivers/net/ethernet/3com/3c589_cs.c 	struct net_device *dev = link->priv;
link              344 drivers/net/ethernet/3com/3c589_cs.c 	if (link->open)
link              350 drivers/net/ethernet/3com/3c589_cs.c static int tc589_resume(struct pcmcia_device *link)
link              352 drivers/net/ethernet/3com/3c589_cs.c 	struct net_device *dev = link->priv;
link              354 drivers/net/ethernet/3com/3c589_cs.c 	if (link->open) {
link              511 drivers/net/ethernet/3com/3c589_cs.c 	struct pcmcia_device *link = lp->p_dev;
link              513 drivers/net/ethernet/3com/3c589_cs.c 	if (!pcmcia_dev_present(link))
link              516 drivers/net/ethernet/3com/3c589_cs.c 	link->open++;
link              523 drivers/net/ethernet/3com/3c589_cs.c 	dev_dbg(&link->dev, "%s: opened, status %4.4x.\n",
link              770 drivers/net/ethernet/3com/3c589_cs.c 	struct pcmcia_device *link = lp->p_dev;
link              772 drivers/net/ethernet/3com/3c589_cs.c 	if (pcmcia_dev_present(link)) {
link              908 drivers/net/ethernet/3com/3c589_cs.c 	struct pcmcia_device *link = lp->p_dev;
link              911 drivers/net/ethernet/3com/3c589_cs.c 	dev_dbg(&link->dev, "%s: shutting down ethercard.\n", dev->name);
link              913 drivers/net/ethernet/3com/3c589_cs.c 	if (pcmcia_dev_present(link)) {
link              940 drivers/net/ethernet/3com/3c589_cs.c 	link->open--;
link               84 drivers/net/ethernet/8390/ax88796.c 	int link;
link              335 drivers/net/ethernet/8390/ax88796.c 	if (phy_dev->link && ((ax->speed != phy_dev->speed) ||
link              343 drivers/net/ethernet/8390/ax88796.c 	if (phy_dev->link != ax->link) {
link              344 drivers/net/ethernet/8390/ax88796.c 		if (!phy_dev->link) {
link              348 drivers/net/ethernet/8390/ax88796.c 		ax->link = phy_dev->link;
link               77 drivers/net/ethernet/8390/axnet_cs.c static int axnet_config(struct pcmcia_device *link);
link               78 drivers/net/ethernet/8390/axnet_cs.c static void axnet_release(struct pcmcia_device *link);
link              140 drivers/net/ethernet/8390/axnet_cs.c static int axnet_probe(struct pcmcia_device *link)
link              146 drivers/net/ethernet/8390/axnet_cs.c     dev_dbg(&link->dev, "axnet_attach()\n");
link              156 drivers/net/ethernet/8390/axnet_cs.c     info->p_dev = link;
link              157 drivers/net/ethernet/8390/axnet_cs.c     link->priv = dev;
link              158 drivers/net/ethernet/8390/axnet_cs.c     link->config_flags |= CONF_ENABLE_IRQ;
link              164 drivers/net/ethernet/8390/axnet_cs.c     return axnet_config(link);
link              167 drivers/net/ethernet/8390/axnet_cs.c static void axnet_detach(struct pcmcia_device *link)
link              169 drivers/net/ethernet/8390/axnet_cs.c     struct net_device *dev = link->priv;
link              171 drivers/net/ethernet/8390/axnet_cs.c     dev_dbg(&link->dev, "axnet_detach(0x%p)\n", link);
link              175 drivers/net/ethernet/8390/axnet_cs.c     axnet_release(link);
link              186 drivers/net/ethernet/8390/axnet_cs.c static int get_prom(struct pcmcia_device *link)
link              188 drivers/net/ethernet/8390/axnet_cs.c     struct net_device *dev = link->priv;
link              212 drivers/net/ethernet/8390/axnet_cs.c     if (link->config_base != 0x03c0)
link              229 drivers/net/ethernet/8390/axnet_cs.c static int try_io_port(struct pcmcia_device *link)
link              232 drivers/net/ethernet/8390/axnet_cs.c     link->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
link              233 drivers/net/ethernet/8390/axnet_cs.c     link->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
link              234 drivers/net/ethernet/8390/axnet_cs.c     if (link->resource[0]->end == 32) {
link              235 drivers/net/ethernet/8390/axnet_cs.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
link              237 drivers/net/ethernet/8390/axnet_cs.c 	if (link->resource[1]->end > 0)
link              238 drivers/net/ethernet/8390/axnet_cs.c 	    link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
link              241 drivers/net/ethernet/8390/axnet_cs.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
link              242 drivers/net/ethernet/8390/axnet_cs.c 	link->resource[1]->flags |= IO_DATA_PATH_WIDTH_16;
link              244 drivers/net/ethernet/8390/axnet_cs.c     if (link->resource[0]->start == 0) {
link              246 drivers/net/ethernet/8390/axnet_cs.c 	    link->resource[0]->start = j ^ 0x300;
link              247 drivers/net/ethernet/8390/axnet_cs.c 	    link->resource[1]->start = (j ^ 0x300) + 0x10;
link              248 drivers/net/ethernet/8390/axnet_cs.c 	    link->io_lines = 16;
link              249 drivers/net/ethernet/8390/axnet_cs.c 	    ret = pcmcia_request_io(link);
link              255 drivers/net/ethernet/8390/axnet_cs.c 	return pcmcia_request_io(link);
link              271 drivers/net/ethernet/8390/axnet_cs.c static int axnet_config(struct pcmcia_device *link)
link              273 drivers/net/ethernet/8390/axnet_cs.c     struct net_device *dev = link->priv;
link              277 drivers/net/ethernet/8390/axnet_cs.c     dev_dbg(&link->dev, "axnet_config(0x%p)\n", link);
link              280 drivers/net/ethernet/8390/axnet_cs.c     link->config_regs = 0x63;
link              281 drivers/net/ethernet/8390/axnet_cs.c     link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              282 drivers/net/ethernet/8390/axnet_cs.c     ret = pcmcia_loop_config(link, axnet_configcheck, NULL);
link              286 drivers/net/ethernet/8390/axnet_cs.c     if (!link->irq)
link              289 drivers/net/ethernet/8390/axnet_cs.c     if (resource_size(link->resource[1]) == 8)
link              290 drivers/net/ethernet/8390/axnet_cs.c 	link->config_flags |= CONF_ENABLE_SPKR;
link              292 drivers/net/ethernet/8390/axnet_cs.c     ret = pcmcia_enable_device(link);
link              296 drivers/net/ethernet/8390/axnet_cs.c     dev->irq = link->irq;
link              297 drivers/net/ethernet/8390/axnet_cs.c     dev->base_addr = link->resource[0]->start;
link              299 drivers/net/ethernet/8390/axnet_cs.c     if (!get_prom(link)) {
link              335 drivers/net/ethernet/8390/axnet_cs.c 	pcmcia_write_config_byte(link, CISREG_CCSR, 0x04);
link              348 drivers/net/ethernet/8390/axnet_cs.c     SET_NETDEV_DEV(dev, &link->dev);
link              367 drivers/net/ethernet/8390/axnet_cs.c     axnet_release(link);
link              371 drivers/net/ethernet/8390/axnet_cs.c static void axnet_release(struct pcmcia_device *link)
link              373 drivers/net/ethernet/8390/axnet_cs.c 	pcmcia_disable_device(link);
link              376 drivers/net/ethernet/8390/axnet_cs.c static int axnet_suspend(struct pcmcia_device *link)
link              378 drivers/net/ethernet/8390/axnet_cs.c 	struct net_device *dev = link->priv;
link              380 drivers/net/ethernet/8390/axnet_cs.c 	if (link->open)
link              386 drivers/net/ethernet/8390/axnet_cs.c static int axnet_resume(struct pcmcia_device *link)
link              388 drivers/net/ethernet/8390/axnet_cs.c 	struct net_device *dev = link->priv;
link              391 drivers/net/ethernet/8390/axnet_cs.c 	if (link->open) {
link              393 drivers/net/ethernet/8390/axnet_cs.c 			pcmcia_write_config_byte(link, CISREG_CCSR, 0x04);
link              468 drivers/net/ethernet/8390/axnet_cs.c     struct pcmcia_device *link = info->p_dev;
link              471 drivers/net/ethernet/8390/axnet_cs.c     dev_dbg(&link->dev, "axnet_open('%s')\n", dev->name);
link              473 drivers/net/ethernet/8390/axnet_cs.c     if (!pcmcia_dev_present(link))
link              481 drivers/net/ethernet/8390/axnet_cs.c     link->open++;
link              495 drivers/net/ethernet/8390/axnet_cs.c     struct pcmcia_device *link = info->p_dev;
link              497 drivers/net/ethernet/8390/axnet_cs.c     dev_dbg(&link->dev, "axnet_close('%s')\n", dev->name);
link              502 drivers/net/ethernet/8390/axnet_cs.c     link->open--;
link              554 drivers/net/ethernet/8390/axnet_cs.c     u_short link;
link              575 drivers/net/ethernet/8390/axnet_cs.c     link = mdio_read(mii_addr, info->phy_id, 1);
link              576 drivers/net/ethernet/8390/axnet_cs.c     if (!link || (link == 0xffff)) {
link              582 drivers/net/ethernet/8390/axnet_cs.c     link &= 0x0004;
link              583 drivers/net/ethernet/8390/axnet_cs.c     if (link != info->link_status) {
link              585 drivers/net/ethernet/8390/axnet_cs.c 	netdev_info(dev, "%s link beat\n", link ? "found" : "lost");
link              586 drivers/net/ethernet/8390/axnet_cs.c 	if (link) {
link              595 drivers/net/ethernet/8390/axnet_cs.c 	info->link_status = link;
link               95 drivers/net/ethernet/8390/pcnet_cs.c static int pcnet_config(struct pcmcia_device *link);
link               96 drivers/net/ethernet/8390/pcnet_cs.c static void pcnet_release(struct pcmcia_device *link);
link              104 drivers/net/ethernet/8390/pcnet_cs.c static int setup_shmem_window(struct pcmcia_device *link, int start_pg,
link              106 drivers/net/ethernet/8390/pcnet_cs.c static int setup_dma_config(struct pcmcia_device *link, int start_pg,
link              236 drivers/net/ethernet/8390/pcnet_cs.c static int pcnet_probe(struct pcmcia_device *link)
link              241 drivers/net/ethernet/8390/pcnet_cs.c     dev_dbg(&link->dev, "pcnet_attach()\n");
link              247 drivers/net/ethernet/8390/pcnet_cs.c     info->p_dev = link;
link              248 drivers/net/ethernet/8390/pcnet_cs.c     link->priv = dev;
link              250 drivers/net/ethernet/8390/pcnet_cs.c     link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              254 drivers/net/ethernet/8390/pcnet_cs.c     return pcnet_config(link);
link              257 drivers/net/ethernet/8390/pcnet_cs.c static void pcnet_detach(struct pcmcia_device *link)
link              259 drivers/net/ethernet/8390/pcnet_cs.c 	struct net_device *dev = link->priv;
link              261 drivers/net/ethernet/8390/pcnet_cs.c 	dev_dbg(&link->dev, "pcnet_detach\n");
link              265 drivers/net/ethernet/8390/pcnet_cs.c 	pcnet_release(link);
link              277 drivers/net/ethernet/8390/pcnet_cs.c static struct hw_info *get_hwinfo(struct pcmcia_device *link)
link              279 drivers/net/ethernet/8390/pcnet_cs.c     struct net_device *dev = link->priv;
link              284 drivers/net/ethernet/8390/pcnet_cs.c     link->resource[2]->flags |= WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
link              285 drivers/net/ethernet/8390/pcnet_cs.c     link->resource[2]->start = 0; link->resource[2]->end = 0;
link              286 drivers/net/ethernet/8390/pcnet_cs.c     i = pcmcia_request_window(link, link->resource[2], 0);
link              290 drivers/net/ethernet/8390/pcnet_cs.c     virt = ioremap(link->resource[2]->start,
link              291 drivers/net/ethernet/8390/pcnet_cs.c 	    resource_size(link->resource[2]));
link              293 drivers/net/ethernet/8390/pcnet_cs.c 	    pcmcia_release_window(link, link->resource[2]);
link              298 drivers/net/ethernet/8390/pcnet_cs.c 	pcmcia_map_mem_page(link, link->resource[2],
link              299 drivers/net/ethernet/8390/pcnet_cs.c 		hw_info[i].offset & ~(resource_size(link->resource[2])-1));
link              300 drivers/net/ethernet/8390/pcnet_cs.c 	base = &virt[hw_info[i].offset & (resource_size(link->resource[2])-1)];
link              311 drivers/net/ethernet/8390/pcnet_cs.c     j = pcmcia_release_window(link, link->resource[2]);
link              323 drivers/net/ethernet/8390/pcnet_cs.c static struct hw_info *get_prom(struct pcmcia_device *link)
link              325 drivers/net/ethernet/8390/pcnet_cs.c     struct net_device *dev = link->priv;
link              377 drivers/net/ethernet/8390/pcnet_cs.c static struct hw_info *get_dl10019(struct pcmcia_device *link)
link              379 drivers/net/ethernet/8390/pcnet_cs.c     struct net_device *dev = link->priv;
link              399 drivers/net/ethernet/8390/pcnet_cs.c static struct hw_info *get_ax88190(struct pcmcia_device *link)
link              401 drivers/net/ethernet/8390/pcnet_cs.c     struct net_device *dev = link->priv;
link              406 drivers/net/ethernet/8390/pcnet_cs.c     if (link->config_base != 0x03c0)
link              430 drivers/net/ethernet/8390/pcnet_cs.c static struct hw_info *get_hwired(struct pcmcia_device *link)
link              432 drivers/net/ethernet/8390/pcnet_cs.c     struct net_device *dev = link->priv;
link              446 drivers/net/ethernet/8390/pcnet_cs.c static int try_io_port(struct pcmcia_device *link)
link              449 drivers/net/ethernet/8390/pcnet_cs.c     link->resource[0]->flags &= ~IO_DATA_PATH_WIDTH;
link              450 drivers/net/ethernet/8390/pcnet_cs.c     link->resource[1]->flags &= ~IO_DATA_PATH_WIDTH;
link              451 drivers/net/ethernet/8390/pcnet_cs.c     if (link->resource[0]->end == 32) {
link              452 drivers/net/ethernet/8390/pcnet_cs.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
link              453 drivers/net/ethernet/8390/pcnet_cs.c 	if (link->resource[1]->end > 0) {
link              455 drivers/net/ethernet/8390/pcnet_cs.c 	    link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
link              459 drivers/net/ethernet/8390/pcnet_cs.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
link              460 drivers/net/ethernet/8390/pcnet_cs.c 	link->resource[1]->flags |= IO_DATA_PATH_WIDTH_16;
link              462 drivers/net/ethernet/8390/pcnet_cs.c     if (link->resource[0]->start == 0) {
link              464 drivers/net/ethernet/8390/pcnet_cs.c 	    link->resource[0]->start = j ^ 0x300;
link              465 drivers/net/ethernet/8390/pcnet_cs.c 	    link->resource[1]->start = (j ^ 0x300) + 0x10;
link              466 drivers/net/ethernet/8390/pcnet_cs.c 	    link->io_lines = 16;
link              467 drivers/net/ethernet/8390/pcnet_cs.c 	    ret = pcmcia_request_io(link);
link              473 drivers/net/ethernet/8390/pcnet_cs.c 	return pcmcia_request_io(link);
link              495 drivers/net/ethernet/8390/pcnet_cs.c static struct hw_info *pcnet_try_config(struct pcmcia_device *link,
link              498 drivers/net/ethernet/8390/pcnet_cs.c 	struct net_device *dev = link->priv;
link              504 drivers/net/ethernet/8390/pcnet_cs.c 	ret = pcmcia_loop_config(link, pcnet_confcheck, &priv);
link              506 drivers/net/ethernet/8390/pcnet_cs.c 		dev_warn(&link->dev, "no useable port range found\n");
link              511 drivers/net/ethernet/8390/pcnet_cs.c 	if (!link->irq)
link              514 drivers/net/ethernet/8390/pcnet_cs.c 	if (resource_size(link->resource[1]) == 8)
link              515 drivers/net/ethernet/8390/pcnet_cs.c 		link->config_flags |= CONF_ENABLE_SPKR;
link              517 drivers/net/ethernet/8390/pcnet_cs.c 	if ((link->manf_id == MANFID_IBM) &&
link              518 drivers/net/ethernet/8390/pcnet_cs.c 	    (link->card_id == PRODID_IBM_HOME_AND_AWAY))
link              519 drivers/net/ethernet/8390/pcnet_cs.c 		link->config_index |= 0x10;
link              521 drivers/net/ethernet/8390/pcnet_cs.c 	ret = pcmcia_enable_device(link);
link              525 drivers/net/ethernet/8390/pcnet_cs.c 	dev->irq = link->irq;
link              526 drivers/net/ethernet/8390/pcnet_cs.c 	dev->base_addr = link->resource[0]->start;
link              532 drivers/net/ethernet/8390/pcnet_cs.c 			dev_notice(&link->dev, "invalid if_port requested\n");
link              536 drivers/net/ethernet/8390/pcnet_cs.c 	if ((link->config_base == 0x03c0) &&
link              537 drivers/net/ethernet/8390/pcnet_cs.c 	    (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) {
link              538 drivers/net/ethernet/8390/pcnet_cs.c 		dev_info(&link->dev,
link              543 drivers/net/ethernet/8390/pcnet_cs.c 	local_hw_info = get_hwinfo(link);
link              545 drivers/net/ethernet/8390/pcnet_cs.c 		local_hw_info = get_prom(link);
link              547 drivers/net/ethernet/8390/pcnet_cs.c 		local_hw_info = get_dl10019(link);
link              549 drivers/net/ethernet/8390/pcnet_cs.c 		local_hw_info = get_ax88190(link);
link              551 drivers/net/ethernet/8390/pcnet_cs.c 		local_hw_info = get_hwired(link);
link              556 drivers/net/ethernet/8390/pcnet_cs.c static int pcnet_config(struct pcmcia_device *link)
link              558 drivers/net/ethernet/8390/pcnet_cs.c     struct net_device *dev = link->priv;
link              564 drivers/net/ethernet/8390/pcnet_cs.c     dev_dbg(&link->dev, "pcnet_config\n");
link              566 drivers/net/ethernet/8390/pcnet_cs.c     local_hw_info = pcnet_try_config(link, &has_shmem, 0);
link              569 drivers/net/ethernet/8390/pcnet_cs.c 	    pcmcia_disable_device(link);
link              570 drivers/net/ethernet/8390/pcnet_cs.c 	    local_hw_info = pcnet_try_config(link, &has_shmem, 1);
link              572 drivers/net/ethernet/8390/pcnet_cs.c 		    dev_notice(&link->dev, "unable to read hardware net"
link              581 drivers/net/ethernet/8390/pcnet_cs.c     if ((link->manf_id == MANFID_SOCKET) &&
link              582 drivers/net/ethernet/8390/pcnet_cs.c 	((link->card_id == PRODID_SOCKET_LPE) ||
link              583 drivers/net/ethernet/8390/pcnet_cs.c 	 (link->card_id == PRODID_SOCKET_LPE_CF) ||
link              584 drivers/net/ethernet/8390/pcnet_cs.c 	 (link->card_id == PRODID_SOCKET_EIO)))
link              601 drivers/net/ethernet/8390/pcnet_cs.c 	(setup_shmem_window(link, start_pg, stop_pg, cm_offset) != 0))
link              602 drivers/net/ethernet/8390/pcnet_cs.c 	setup_dma_config(link, start_pg, stop_pg);
link              611 drivers/net/ethernet/8390/pcnet_cs.c     SET_NETDEV_DEV(dev, &link->dev);
link              636 drivers/net/ethernet/8390/pcnet_cs.c     pcnet_release(link);
link              640 drivers/net/ethernet/8390/pcnet_cs.c static void pcnet_release(struct pcmcia_device *link)
link              642 drivers/net/ethernet/8390/pcnet_cs.c 	struct pcnet_dev *info = PRIV(link->priv);
link              644 drivers/net/ethernet/8390/pcnet_cs.c 	dev_dbg(&link->dev, "pcnet_release\n");
link              649 drivers/net/ethernet/8390/pcnet_cs.c 	pcmcia_disable_device(link);
link              652 drivers/net/ethernet/8390/pcnet_cs.c static int pcnet_suspend(struct pcmcia_device *link)
link              654 drivers/net/ethernet/8390/pcnet_cs.c 	struct net_device *dev = link->priv;
link              656 drivers/net/ethernet/8390/pcnet_cs.c 	if (link->open)
link              662 drivers/net/ethernet/8390/pcnet_cs.c static int pcnet_resume(struct pcmcia_device *link)
link              664 drivers/net/ethernet/8390/pcnet_cs.c 	struct net_device *dev = link->priv;
link              666 drivers/net/ethernet/8390/pcnet_cs.c 	if (link->open) {
link              902 drivers/net/ethernet/8390/pcnet_cs.c     struct pcmcia_device *link = info->p_dev;
link              905 drivers/net/ethernet/8390/pcnet_cs.c     dev_dbg(&link->dev, "pcnet_open('%s')\n", dev->name);
link              907 drivers/net/ethernet/8390/pcnet_cs.c     if (!pcmcia_dev_present(link))
link              917 drivers/net/ethernet/8390/pcnet_cs.c     link->open++;
link              932 drivers/net/ethernet/8390/pcnet_cs.c     struct pcmcia_device *link = info->p_dev;
link              934 drivers/net/ethernet/8390/pcnet_cs.c     dev_dbg(&link->dev, "pcnet_close('%s')\n", dev->name);
link              939 drivers/net/ethernet/8390/pcnet_cs.c     link->open--;
link             1016 drivers/net/ethernet/8390/pcnet_cs.c     u_short link;
link             1039 drivers/net/ethernet/8390/pcnet_cs.c     link = mdio_read(mii_addr, info->phy_id, 1);
link             1040 drivers/net/ethernet/8390/pcnet_cs.c     if (!link || (link == 0xffff)) {
link             1050 drivers/net/ethernet/8390/pcnet_cs.c     link &= 0x0004;
link             1051 drivers/net/ethernet/8390/pcnet_cs.c     if (link != info->link_status) {
link             1053 drivers/net/ethernet/8390/pcnet_cs.c 	netdev_info(dev, "%s link beat\n", link ? "found" : "lost");
link             1054 drivers/net/ethernet/8390/pcnet_cs.c 	if (link && (info->flags & IS_DL10022)) {
link             1057 drivers/net/ethernet/8390/pcnet_cs.c 	} else if (link && (info->flags & IS_DL10019)) {
link             1061 drivers/net/ethernet/8390/pcnet_cs.c 	if (link) {
link             1073 drivers/net/ethernet/8390/pcnet_cs.c 	info->link_status = link;
link             1076 drivers/net/ethernet/8390/pcnet_cs.c 	link = mdio_read(mii_addr, info->eth_phy, 1) & 0x0004;
link             1077 drivers/net/ethernet/8390/pcnet_cs.c 	if (((info->phy_id == info->pna_phy) && link) ||
link             1078 drivers/net/ethernet/8390/pcnet_cs.c 	    ((info->phy_id != info->pna_phy) && !link)) {
link             1297 drivers/net/ethernet/8390/pcnet_cs.c static int setup_dma_config(struct pcmcia_device *link, int start_pg,
link             1300 drivers/net/ethernet/8390/pcnet_cs.c     struct net_device *dev = link->priv;
link             1400 drivers/net/ethernet/8390/pcnet_cs.c static int setup_shmem_window(struct pcmcia_device *link, int start_pg,
link             1403 drivers/net/ethernet/8390/pcnet_cs.c     struct net_device *dev = link->priv;
link             1415 drivers/net/ethernet/8390/pcnet_cs.c     link->resource[3]->flags |= WIN_DATA_WIDTH_16|WIN_MEMORY_TYPE_CM|WIN_ENABLE;
link             1416 drivers/net/ethernet/8390/pcnet_cs.c     link->resource[3]->flags |= WIN_USE_WAIT;
link             1417 drivers/net/ethernet/8390/pcnet_cs.c     link->resource[3]->start = 0; link->resource[3]->end = window_size;
link             1418 drivers/net/ethernet/8390/pcnet_cs.c     ret = pcmcia_request_window(link, link->resource[3], mem_speed);
link             1424 drivers/net/ethernet/8390/pcnet_cs.c     ret = pcmcia_map_mem_page(link, link->resource[3], offset);
link             1429 drivers/net/ethernet/8390/pcnet_cs.c     info->base = ioremap(link->resource[3]->start,
link             1430 drivers/net/ethernet/8390/pcnet_cs.c 			resource_size(link->resource[3]));
link             1444 drivers/net/ethernet/8390/pcnet_cs.c 	pcmcia_release_window(link, link->resource[3]);
link             1450 drivers/net/ethernet/8390/pcnet_cs.c     ei_status.priv = resource_size(link->resource[3]);
link             1452 drivers/net/ethernet/8390/pcnet_cs.c     dev->mem_end = dev->mem_start + resource_size(link->resource[3]);
link             1457 drivers/net/ethernet/8390/pcnet_cs.c 	    (resource_size(link->resource[3]) - offset) >> 8);
link             1210 drivers/net/ethernet/aeroflex/greth.c 	if (phydev->link) {
link             1231 drivers/net/ethernet/aeroflex/greth.c 	if (phydev->link != greth->link) {
link             1232 drivers/net/ethernet/aeroflex/greth.c 		if (!phydev->link) {
link             1236 drivers/net/ethernet/aeroflex/greth.c 		greth->link = phydev->link;
link             1244 drivers/net/ethernet/aeroflex/greth.c 		if (phydev->link)
link             1283 drivers/net/ethernet/aeroflex/greth.c 	greth->link = 0;
link              128 drivers/net/ethernet/aeroflex/greth.h 	unsigned int link;
link              451 drivers/net/ethernet/agere/et131x.c 	int link;
link             3099 drivers/net/ethernet/agere/et131x.c 	if (!phydev->link && adapter->boot_coma < 11)
link             3103 drivers/net/ethernet/agere/et131x.c 		if (!phydev->link) {
link             3160 drivers/net/ethernet/agere/et131x.c 	if (phydev->link == adapter->link)
link             3170 drivers/net/ethernet/agere/et131x.c 	adapter->link = phydev->link;
link             3173 drivers/net/ethernet/agere/et131x.c 	if (phydev->link) {
link              445 drivers/net/ethernet/alacritech/slic.h 	__le32 link;
link              632 drivers/net/ethernet/alacritech/slicoss.c 	u32 link;
link              634 drivers/net/ethernet/alacritech/slicoss.c 	link = le32_to_cpu(sm_data->link);
link              636 drivers/net/ethernet/alacritech/slicoss.c 	if (link & SLIC_GIG_LINKUP) {
link              637 drivers/net/ethernet/alacritech/slicoss.c 		if (link & SLIC_GIG_SPEED_1000)
link              639 drivers/net/ethernet/alacritech/slicoss.c 		else if (link & SLIC_GIG_SPEED_100)
link              644 drivers/net/ethernet/alacritech/slicoss.c 		duplex = (link & SLIC_GIG_FULLDUPLEX) ? DUPLEX_FULL :
link             1241 drivers/net/ethernet/alacritech/slicoss.c 	sm->link_paddr = paddr + offsetof(struct slic_shmem_data, link);
link               86 drivers/net/ethernet/allwinner/sun4i-emac.c 	unsigned int		link;
link              126 drivers/net/ethernet/allwinner/sun4i-emac.c 	if (phydev->link) {
link              144 drivers/net/ethernet/allwinner/sun4i-emac.c 	if (phydev->link != db->link) {
link              145 drivers/net/ethernet/allwinner/sun4i-emac.c 		if (!phydev->link) {
link              149 drivers/net/ethernet/allwinner/sun4i-emac.c 		db->link = phydev->link;
link              177 drivers/net/ethernet/allwinner/sun4i-emac.c 	db->link = 0;
link              408 drivers/net/ethernet/alteon/acenic.c module_param_array_named(link, link_state, int, NULL, 0);
link              415 drivers/net/ethernet/alteon/acenic.c MODULE_PARM_DESC(link, "AceNIC/3C985/NetGear link state");
link             1414 drivers/net/ethernet/alteon/acenic.c 	ap->link = tmp;
link             2583 drivers/net/ethernet/alteon/acenic.c 	u32 link;
link             2595 drivers/net/ethernet/alteon/acenic.c 	link = readl(&regs->GigLnkState);
link             2596 drivers/net/ethernet/alteon/acenic.c 	if (link & LNK_1000MB) {
link             2599 drivers/net/ethernet/alteon/acenic.c 		link = readl(&regs->FastLnkState);
link             2600 drivers/net/ethernet/alteon/acenic.c 		if (link & LNK_100MB)
link             2602 drivers/net/ethernet/alteon/acenic.c 		else if (link & LNK_10MB)
link             2607 drivers/net/ethernet/alteon/acenic.c 	if (link & LNK_FULL_DUPLEX)
link             2612 drivers/net/ethernet/alteon/acenic.c 	if (link & LNK_NEGOTIATE)
link             2638 drivers/net/ethernet/alteon/acenic.c 	u32 link, speed;
link             2640 drivers/net/ethernet/alteon/acenic.c 	link = readl(&regs->GigLnkState);
link             2641 drivers/net/ethernet/alteon/acenic.c 	if (link & LNK_1000MB)
link             2644 drivers/net/ethernet/alteon/acenic.c 		link = readl(&regs->FastLnkState);
link             2645 drivers/net/ethernet/alteon/acenic.c 		if (link & LNK_100MB)
link             2647 drivers/net/ethernet/alteon/acenic.c 		else if (link & LNK_10MB)
link             2653 drivers/net/ethernet/alteon/acenic.c 	link = LNK_ENABLE | LNK_1000MB | LNK_100MB | LNK_10MB |
link             2656 drivers/net/ethernet/alteon/acenic.c 		link |= LNK_TX_FLOW_CTL_Y;
link             2658 drivers/net/ethernet/alteon/acenic.c 		link |= LNK_NEGOTIATE;
link             2660 drivers/net/ethernet/alteon/acenic.c 		link &= ~(LNK_1000MB | LNK_100MB | LNK_10MB);
link             2663 drivers/net/ethernet/alteon/acenic.c 			link |= LNK_1000MB;
link             2666 drivers/net/ethernet/alteon/acenic.c 			link |= LNK_100MB;
link             2669 drivers/net/ethernet/alteon/acenic.c 			link |= LNK_10MB;
link             2675 drivers/net/ethernet/alteon/acenic.c 		link |= LNK_FULL_DUPLEX;
link             2677 drivers/net/ethernet/alteon/acenic.c 	if (link != ap->link) {
link             2682 drivers/net/ethernet/alteon/acenic.c 		ap->link = link;
link             2683 drivers/net/ethernet/alteon/acenic.c 		writel(link, &regs->TuneLink);
link             2685 drivers/net/ethernet/alteon/acenic.c 			writel(link, &regs->TuneFastLink);
link              641 drivers/net/ethernet/alteon/acenic.h 	int			version, link;
link              632 drivers/net/ethernet/altera/altera_tse_main.c 	if (phydev->link) {
link              847 drivers/net/ethernet/altera/altera_tse_main.c 		   phydev->mdio.addr, phydev->phy_id, phydev->link);
link              910 drivers/net/ethernet/amazon/ena/ena_admin_defs.h 		struct ena_admin_get_feature_link_desc link;
link              276 drivers/net/ethernet/amazon/ena/ena_ethtool.c 	struct ena_admin_get_feature_link_desc *link;
link              284 drivers/net/ethernet/amazon/ena/ena_ethtool.c 	link = &feat_resp.u.link;
link              285 drivers/net/ethernet/amazon/ena/ena_ethtool.c 	link_ksettings->base.speed = link->speed;
link              287 drivers/net/ethernet/amazon/ena/ena_ethtool.c 	if (link->flags & ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK) {
link              295 drivers/net/ethernet/amazon/ena/ena_ethtool.c 		(link->flags & ENA_ADMIN_GET_FEATURE_LINK_DESC_AUTONEG_MASK) ?
link              408 drivers/net/ethernet/amd/au1000_eth.c 	if (phydev->link && (aup->old_speed != phydev->speed)) {
link              426 drivers/net/ethernet/amd/au1000_eth.c 	if (phydev->link && (aup->old_duplex != phydev->duplex)) {
link              450 drivers/net/ethernet/amd/au1000_eth.c 	if (phydev->link != aup->old_link) {
link              453 drivers/net/ethernet/amd/au1000_eth.c 		if (!phydev->link) {
link              459 drivers/net/ethernet/amd/au1000_eth.c 		aup->old_link = phydev->link;
link              466 drivers/net/ethernet/amd/au1000_eth.c 		if (phydev->link)
link              731 drivers/net/ethernet/amd/au1000_eth.c 		if (dev->phydev->link && (DUPLEX_FULL == dev->phydev->duplex))
link              401 drivers/net/ethernet/amd/nmclan_cs.c static int nmclan_config(struct pcmcia_device *link);
link              402 drivers/net/ethernet/amd/nmclan_cs.c static void nmclan_release(struct pcmcia_device *link);
link              433 drivers/net/ethernet/amd/nmclan_cs.c static int nmclan_probe(struct pcmcia_device *link)
link              438 drivers/net/ethernet/amd/nmclan_cs.c     dev_dbg(&link->dev, "nmclan_attach()\n");
link              445 drivers/net/ethernet/amd/nmclan_cs.c     lp->p_dev = link;
link              446 drivers/net/ethernet/amd/nmclan_cs.c     link->priv = dev;
link              449 drivers/net/ethernet/amd/nmclan_cs.c     link->resource[0]->end = 32;
link              450 drivers/net/ethernet/amd/nmclan_cs.c     link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
link              451 drivers/net/ethernet/amd/nmclan_cs.c     link->config_flags |= CONF_ENABLE_IRQ;
link              452 drivers/net/ethernet/amd/nmclan_cs.c     link->config_index = 1;
link              453 drivers/net/ethernet/amd/nmclan_cs.c     link->config_regs = PRESENT_OPTION;
link              461 drivers/net/ethernet/amd/nmclan_cs.c     return nmclan_config(link);
link              464 drivers/net/ethernet/amd/nmclan_cs.c static void nmclan_detach(struct pcmcia_device *link)
link              466 drivers/net/ethernet/amd/nmclan_cs.c     struct net_device *dev = link->priv;
link              468 drivers/net/ethernet/amd/nmclan_cs.c     dev_dbg(&link->dev, "nmclan_detach\n");
link              472 drivers/net/ethernet/amd/nmclan_cs.c     nmclan_release(link);
link              607 drivers/net/ethernet/amd/nmclan_cs.c static int nmclan_config(struct pcmcia_device *link)
link              609 drivers/net/ethernet/amd/nmclan_cs.c   struct net_device *dev = link->priv;
link              616 drivers/net/ethernet/amd/nmclan_cs.c   dev_dbg(&link->dev, "nmclan_config\n");
link              618 drivers/net/ethernet/amd/nmclan_cs.c   link->io_lines = 5;
link              619 drivers/net/ethernet/amd/nmclan_cs.c   ret = pcmcia_request_io(link);
link              622 drivers/net/ethernet/amd/nmclan_cs.c   ret = pcmcia_request_irq(link, mace_interrupt);
link              625 drivers/net/ethernet/amd/nmclan_cs.c   ret = pcmcia_enable_device(link);
link              629 drivers/net/ethernet/amd/nmclan_cs.c   dev->irq = link->irq;
link              630 drivers/net/ethernet/amd/nmclan_cs.c   dev->base_addr = link->resource[0]->start;
link              635 drivers/net/ethernet/amd/nmclan_cs.c   len = pcmcia_get_tuple(link, 0x80, &buf);
link              650 drivers/net/ethernet/amd/nmclan_cs.c       dev_dbg(&link->dev, "nmclan_cs configured: mace id=%x %x\n",
link              668 drivers/net/ethernet/amd/nmclan_cs.c   SET_NETDEV_DEV(dev, &link->dev);
link              681 drivers/net/ethernet/amd/nmclan_cs.c 	nmclan_release(link);
link              685 drivers/net/ethernet/amd/nmclan_cs.c static void nmclan_release(struct pcmcia_device *link)
link              687 drivers/net/ethernet/amd/nmclan_cs.c 	dev_dbg(&link->dev, "nmclan_release\n");
link              688 drivers/net/ethernet/amd/nmclan_cs.c 	pcmcia_disable_device(link);
link              691 drivers/net/ethernet/amd/nmclan_cs.c static int nmclan_suspend(struct pcmcia_device *link)
link              693 drivers/net/ethernet/amd/nmclan_cs.c 	struct net_device *dev = link->priv;
link              695 drivers/net/ethernet/amd/nmclan_cs.c 	if (link->open)
link              701 drivers/net/ethernet/amd/nmclan_cs.c static int nmclan_resume(struct pcmcia_device *link)
link              703 drivers/net/ethernet/amd/nmclan_cs.c 	struct net_device *dev = link->priv;
link              705 drivers/net/ethernet/amd/nmclan_cs.c 	if (link->open) {
link              723 drivers/net/ethernet/amd/nmclan_cs.c   struct pcmcia_device *link = &lp->link;
link              727 drivers/net/ethernet/amd/nmclan_cs.c   pcmcia_read_config_byte(link, CISREG_COR, &OrigCorValue);
link              730 drivers/net/ethernet/amd/nmclan_cs.c   dev_dbg(&link->dev, "nmclan_reset: OrigCorValue=0x%x, resetting...\n",
link              732 drivers/net/ethernet/amd/nmclan_cs.c   pcmcia_write_config_byte(link, CISREG_COR, COR_SOFT_RESET);
link              736 drivers/net/ethernet/amd/nmclan_cs.c   pcmcia_write_config_byte(link, CISREG_COR,
link              780 drivers/net/ethernet/amd/nmclan_cs.c   struct pcmcia_device *link = lp->p_dev;
link              782 drivers/net/ethernet/amd/nmclan_cs.c   if (!pcmcia_dev_present(link))
link              785 drivers/net/ethernet/amd/nmclan_cs.c   link->open++;
link              803 drivers/net/ethernet/amd/nmclan_cs.c   struct pcmcia_device *link = lp->p_dev;
link              805 drivers/net/ethernet/amd/nmclan_cs.c   dev_dbg(&link->dev, "%s: shutting down ethercard.\n", dev->name);
link              810 drivers/net/ethernet/amd/nmclan_cs.c   link->open--;
link              843 drivers/net/ethernet/amd/nmclan_cs.c   struct pcmcia_device *link = lp->p_dev;
link              848 drivers/net/ethernet/amd/nmclan_cs.c   pcmcia_reset_card(link->socket);
link             2166 drivers/net/ethernet/amd/pcnet32.c 			netif_printk(lp, link, KERN_DEBUG, dev,
link             2255 drivers/net/ethernet/amd/pcnet32.c 		netif_info(lp, link, dev, "Using PHY number %d\n", first_phy);
link             2816 drivers/net/ethernet/amd/pcnet32.c 				netif_info(lp, link, dev, "Using PHY number %d\n",
link             2870 drivers/net/ethernet/amd/pcnet32.c 			netif_info(lp, link, dev, "link down\n");
link             2897 drivers/net/ethernet/amd/pcnet32.c 			netif_info(lp, link, dev, "link up\n");
link              367 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c 	netif_dbg(pdata, link, netdev,
link              293 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c 		netif_dbg(pdata, link, pdata->netdev,
link              442 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c 	netif_dbg(pdata, link, pdata->netdev, "stopping I2C\n");
link              461 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c 	netif_dbg(pdata, link, pdata->netdev, "starting I2C\n");
link              324 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		netif_dbg(pdata, link, pdata->netdev,
link              373 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "CL37 AN enabled/restarted\n");
link              381 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "CL37 AN disabled\n");
link              412 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "CL73 AN enabled/restarted\n");
link              422 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "CL73 AN disabled\n");
link              500 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev,
link              583 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 			netif_dbg(pdata, link, pdata->netdev,
link              780 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "CL37 AN %s\n",
link              790 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		netif_dbg(pdata, link, pdata->netdev,
link              817 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		netif_dbg(pdata, link, pdata->netdev, "CL37 AN result: %s\n",
link              846 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "CL73 AN %s\n",
link              869 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		netif_dbg(pdata, link, pdata->netdev, "%s successful\n",
link              903 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		netif_dbg(pdata, link, pdata->netdev, "CL73 AN result: %s\n",
link              989 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "CL37 AN (%s) initialized\n",
link             1041 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "CL73 AN initialized\n");
link             1094 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	if (pdata->phy.link)
link             1108 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	if (pdata->phy.link) {
link             1130 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		if (pdata->phy_link != pdata->phy.link) {
link             1132 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 			pdata->phy_link = pdata->phy.link;
link             1153 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "fixed PHY configuration\n");
link             1201 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		netif_dbg(pdata, link, pdata->netdev, "AN redriver support\n");
link             1203 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		netif_dbg(pdata, link, pdata->netdev, "AN PHY configuration\n");
link             1281 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		netif_dbg(pdata, link, pdata->netdev, "AN link timeout\n");
link             1338 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 		pdata->phy.link = 0;
link             1344 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	pdata->phy.link = pdata->phy_if.phy_impl.link_status(pdata,
link             1351 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	if (pdata->phy.link) {
link             1382 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "stopping PHY\n");
link             1398 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	pdata->phy.link = 0;
link             1409 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	netif_dbg(pdata, link, pdata->netdev, "starting PHY\n");
link             1588 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c 	pdata->phy.link = 0;
link              358 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c 	netif_dbg(pdata, link, pdata->netdev, "SerDes rx/tx not ready (%#hx)\n",
link              407 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c 	netif_dbg(pdata, link, pdata->netdev, "10GbE KR mode set\n");
link              450 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c 	netif_dbg(pdata, link, pdata->netdev, "2.5GbE KX mode set\n");
link              493 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c 	netif_dbg(pdata, link, pdata->netdev, "1GbE KX mode set\n");
link             1959 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 		netif_dbg(pdata, link, pdata->netdev,
link             1980 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev,
link             1989 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "receiver reset complete\n");
link             2001 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "phy powered off\n");
link             2024 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "10GbE SFI mode set\n");
link             2038 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "1GbE X mode set\n");
link             2052 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "1GbE SGMII mode set\n");
link             2066 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "100MbE SGMII mode set\n");
link             2080 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "10GbE KR mode set\n");
link             2094 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "2.5GbE KX mode set\n");
link             2108 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 	netif_dbg(pdata, link, pdata->netdev, "1GbE KX mode set\n");
link             2566 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c 		if (!phy_data->phydev->link)
link              623 drivers/net/ethernet/amd/xgbe/xgbe.h 	int link;
link               68 drivers/net/ethernet/apm/xgene-v2/mdio.c 	if (phydev->link) {
link              806 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c 	if (phydev->link) {
link              539 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c 	u32 link, poll_interval;
link              541 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c 	link = xgene_enet_link_status(p);
link              542 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c 	if (link) {
link              159 drivers/net/ethernet/arc/emac.h 	unsigned int link;
link               52 drivers/net/ethernet/arc/emac_main.c 	if (priv->link != phy_dev->link) {
link               53 drivers/net/ethernet/arc/emac_main.c 		priv->link = phy_dev->link;
link              411 drivers/net/ethernet/atheros/ag71xx.c 	netif_err(ag, link, ndev, "MDIO operation timed out\n");
link              438 drivers/net/ethernet/atheros/ag71xx.c 	netif_dbg(ag, link, ag->ndev, "mii_read: addr=%04x, reg=%04x, value=%04x\n",
link              449 drivers/net/ethernet/atheros/ag71xx.c 	netif_dbg(ag, link, ag->ndev, "mii_write: addr=%04x, reg=%04x, value=%04x\n",
link              855 drivers/net/ethernet/atheros/ag71xx.c 	if (!phydev->link && update) {
link             1430 drivers/net/ethernet/atheros/ag71xx.c 	if (ndev->phydev->link)
link             1302 drivers/net/ethernet/atheros/alx/main.c 		netif_info(alx, link, alx->dev,
link             1313 drivers/net/ethernet/atheros/alx/main.c 		netif_info(alx, link, alx->dev, "Link Down\n");
link              629 drivers/net/ethernet/aurora/nb8800.c 		if (!phydev || !phydev->link)
link              661 drivers/net/ethernet/aurora/nb8800.c 	if (phydev->link) {
link              678 drivers/net/ethernet/aurora/nb8800.c 	if (phydev->link != priv->link) {
link              679 drivers/net/ethernet/aurora/nb8800.c 		priv->link = phydev->link;
link              295 drivers/net/ethernet/aurora/nb8800.h 	int				link;
link             2223 drivers/net/ethernet/broadcom/b44.c 	if (bp->old_link != phydev->link) {
link             2225 drivers/net/ethernet/broadcom/b44.c 		bp->old_link = phydev->link;
link             2229 drivers/net/ethernet/broadcom/b44.c 	if (phydev->link) {
link              781 drivers/net/ethernet/broadcom/bcm63xx_enet.c 	if (priv->old_link != phydev->link) {
link              783 drivers/net/ethernet/broadcom/bcm63xx_enet.c 		priv->old_link = phydev->link;
link              787 drivers/net/ethernet/broadcom/bcm63xx_enet.c 	if (phydev->link && phydev->duplex != priv->old_duplex) {
link              796 drivers/net/ethernet/broadcom/bcm63xx_enet.c 	if (phydev->link && phydev->pause != priv->old_pause) {
link              818 drivers/net/ethernet/broadcom/bcm63xx_enet.c 		pr_info("%s: link %s", dev->name, phydev->link ?
link              820 drivers/net/ethernet/broadcom/bcm63xx_enet.c 		if (phydev->link)
link             1376 drivers/net/ethernet/broadcom/bcmsysport.c 	if (priv->old_link != phydev->link) {
link             1378 drivers/net/ethernet/broadcom/bcmsysport.c 		priv->old_link = phydev->link;
link             1421 drivers/net/ethernet/broadcom/bcmsysport.c 	if (phydev->link) {
link             1420 drivers/net/ethernet/broadcom/bgmac.c 	if (phy_dev->link) {
link             1442 drivers/net/ethernet/broadcom/bgmac.c 		.link = 1,
link             1895 drivers/net/ethernet/broadcom/bnx2.c 	u32 link;
link             1898 drivers/net/ethernet/broadcom/bnx2.c 		link = bnx2_shmem_rd(bp, BNX2_RPHY_COPPER_LINK);
link             1900 drivers/net/ethernet/broadcom/bnx2.c 		link = bnx2_shmem_rd(bp, BNX2_RPHY_SERDES_LINK);
link             1902 drivers/net/ethernet/broadcom/bnx2.c 	if (link & BNX2_NETLINK_SET_LINK_ENABLE_AUTONEG) {
link             1906 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_10HALF)
link             1908 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_10FULL)
link             1910 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_100HALF)
link             1912 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_100FULL)
link             1914 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_1GFULL)
link             1916 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_2G5FULL)
link             1922 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_10) {
link             1924 drivers/net/ethernet/broadcom/bnx2.c 			if (link & BNX2_NETLINK_SET_LINK_SPEED_10HALF)
link             1927 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_100) {
link             1929 drivers/net/ethernet/broadcom/bnx2.c 			if (link & BNX2_NETLINK_SET_LINK_SPEED_100HALF)
link             1932 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_1GFULL)
link             1934 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_NETLINK_SET_LINK_SPEED_2G5FULL)
link             4733 drivers/net/ethernet/broadcom/bnx2.c 		u32 link;
link             4737 drivers/net/ethernet/broadcom/bnx2.c 		link = bnx2_shmem_rd(bp, BNX2_LINK_STATUS);
link             4738 drivers/net/ethernet/broadcom/bnx2.c 		if (link & BNX2_LINK_STATUS_SERDES_LINK)
link             1329 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h 	struct list_head link;
link             8490 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	list_for_each_entry(vlan, &bp->vlan_reg, link)
link             12678 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		list_add_tail(&mc_mac->link, &p->mcast_list);
link             13019 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	list_for_each_entry(vlan, &bp->vlan_reg, link) {
link             13080 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	list_add_tail(&vlan->link, &bp->vlan_reg);
link             13097 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	list_for_each_entry(vlan, &bp->vlan_reg, link)
link             13114 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	list_del(&vlan->link);
link               93 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(elem, &o->exe_queue, link)
link              135 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_add_tail(&elem->link, &o->exe_queue);
link              157 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 					struct bnx2x_exeq_elem, link);
link              159 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_del(&elem->link);
link              202 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 					link);
link              211 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			list_add_tail(&spacer.link, &o->pending_comp);
link              213 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			list_move_tail(&elem->link, &o->pending_comp);
link              214 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			list_del(&spacer.link);
link              620 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->head, link) {
link              651 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->head, link)
link              667 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->head, link)
link              683 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->head, link)
link              704 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->head, link)
link              721 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->head, link)
link              738 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->head, link)
link             1241 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 					 link);
link             1243 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		*ppos = list_next_entry(*ppos, link);
link             1248 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	if (list_is_last(&pos->link, &o->head))
link             1278 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->exe_queue, link)
link             1295 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->exe_queue, link)
link             1313 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->exe_queue, link)
link             1705 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_del(&pos->link);
link             1801 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_for_each_entry(elem, exe_chunk, link) {
link             1823 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				list_add(&reg_elem->link, &cam_obj->head);
link             1852 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(elem, exe_chunk, link) {
link             1862 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			list_del(&reg_elem->link);
link             1876 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(elem, exe_chunk, link) {
link             1891 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				list_del(&reg_elem->link);
link             2035 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry_safe(exeq_pos, exeq_pos_n, &exeq->exe_queue, link) {
link             2045 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			list_del(&exeq_pos->link);
link             2070 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(pos, &o->head, link) {
link             2598 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct list_head link;
link             2604 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct list_head link;
link             2624 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct list_head link;
link             2728 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_for_each_entry(pos, &p->mcast_list, link) {
link             2734 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			list_add_tail(&mac_elem->link,
link             2760 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_add_tail(&new_cmd->link, &o->pending_cmds_head);
link             2941 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				 link) {
link             2951 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_del(&pmac_pos->link);
link             3029 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				 link) {
link             3036 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_del(&pmac_pos->link);
link             3059 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_add_tail(&p_item->link , &cmd_pos->data.macs_head);
link             3099 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				 link) {
link             3104 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_del(&p_item->link);
link             3124 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				 link) {
link             3152 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			list_del(&cmd_pos->link);
link             3173 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(mlist_pos, &p->mcast_list, link) {
link             3494 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(mlist_pos, &p->mcast_list, link) {
link             3732 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_for_each_entry(elem, &o->registry.exact_match.macs, link) {
link             3762 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				   struct bnx2x_pending_mcast_cmd, link);
link             3766 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		list_for_each_entry(pmac_pos, &cmd_pos->data.macs_head, link) {
link             3791 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	list_del(&cmd_pos->link);
link             3861 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			list_add_tail(&elem->link,
link             3866 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 					struct bnx2x_mcast_mac_elem, link);
link              154 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h 	struct list_head		link;
link              248 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h 	struct list_head	link;
link              509 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h 	struct list_head link;
link              587 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 			list_add_tail(&mc[i].link,
link             1143 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	pci_read_config_byte(dev, pos + PCI_SRIOV_FUNC_LINK, &iov->link);
link               57 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h 	u8 link;		/* Function Dependency Link */
link             8470 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	link_info->phy_link_status = resp->link;
link             2410 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h 	u8	link;
link              318 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c int bnxt_set_vf_link_state(struct net_device *dev, int vf_id, int link)
link              331 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c 	switch (link) {
link             1045 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c 			if (phy_qcfg_resp.link !=
link             1047 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c 				phy_qcfg_resp.link =
link             1061 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c 			phy_qcfg_resp.link = PORT_PHY_QCFG_RESP_LINK_NO_LINK;
link               38 drivers/net/ethernet/broadcom/genet/bcmmii.c 	if (priv->old_link != phydev->link) {
link               40 drivers/net/ethernet/broadcom/genet/bcmmii.c 		priv->old_link = phydev->link;
link               43 drivers/net/ethernet/broadcom/genet/bcmmii.c 	if (phydev->link) {
link              121 drivers/net/ethernet/broadcom/genet/bcmmii.c 		status->link = !!(reg & MODE_LINK_STATUS);
link              519 drivers/net/ethernet/broadcom/genet/bcmmii.c 			phydev->link = 0;
link              556 drivers/net/ethernet/broadcom/genet/bcmmii.c 			.link = 1,
link              570 drivers/net/ethernet/broadcom/genet/bcmmii.c 		phydev->link = 0;
link             2366 drivers/net/ethernet/broadcom/sb1250-mac.c 	link_chg = (sc->sbm_link != phy_dev->link);
link             2374 drivers/net/ethernet/broadcom/sb1250-mac.c 	if (!phy_dev->link) {
link             2376 drivers/net/ethernet/broadcom/sb1250-mac.c 			sc->sbm_link = phy_dev->link;
link             2404 drivers/net/ethernet/broadcom/sb1250-mac.c 	sc->sbm_link = phy_dev->link;
link             1884 drivers/net/ethernet/broadcom/tg3.c 		netif_info(tp, link, tp->dev, "Link is down\n");
link             2024 drivers/net/ethernet/broadcom/tg3.c 	if (phydev->link) {
link             2078 drivers/net/ethernet/broadcom/tg3.c 	if (phydev->link != tp->old_link ||
link             2084 drivers/net/ethernet/broadcom/tg3.c 	tp->old_link = phydev->link;
link             1189 drivers/net/ethernet/cadence/macb.h 	int 			link;
link              452 drivers/net/ethernet/cadence/macb_main.c 	if (phydev->link) {
link              478 drivers/net/ethernet/cadence/macb_main.c 	if (phydev->link != bp->link) {
link              479 drivers/net/ethernet/cadence/macb_main.c 		if (!phydev->link) {
link              483 drivers/net/ethernet/cadence/macb_main.c 		bp->link = phydev->link;
link              491 drivers/net/ethernet/cadence/macb_main.c 		if (phydev->link) {
link              577 drivers/net/ethernet/cadence/macb_main.c 	bp->link = 0;
link              515 drivers/net/ethernet/cavium/liquidio/lio_core.c 	    lio->linfo.link.s.link_up &&
link              226 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	switch (linfo->link.s.phy_type) {
link              242 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		if (linfo->link.s.if_mode == INTERFACE_MODE_XAUI ||
link              243 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		    linfo->link.s.if_mode == INTERFACE_MODE_RXAUI ||
link              244 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		    linfo->link.s.if_mode == INTERFACE_MODE_XLAUI ||
link              245 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		    linfo->link.s.if_mode == INTERFACE_MODE_XFI) {
link              250 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 				linfo->link.s.if_mode);
link              329 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 				if (linfo->link.s.speed == 10000) {
link              351 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 				if (linfo->link.s.speed == 25000) {
link              382 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	if (linfo->link.s.link_up) {
link              383 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		ecmd->base.speed = linfo->link.s.speed;
link              384 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		ecmd->base.duplex = linfo->link.s.duplex;
link              416 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	     ecmd->base.duplex != linfo->link.s.duplex) ||
link              880 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 			if (linfo->link.s.phy_type == LIO_PHY_PORT_TP &&
link              892 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		    linfo->link.s.phy_type == LIO_PHY_PORT_TP &&
link              905 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 		    linfo->link.s.phy_type == LIO_PHY_PORT_TP &&
link             1070 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64;
link             1377 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 	if (linfo->link.s.duplex == 0) {
link              527 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (linfo->link.s.link_up) {
link              528 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netif_info(lio, link, lio->netdev, "%d Mbps %s Duplex UP\n",
link              529 drivers/net/ethernet/cavium/liquidio/lio_main.c 				   linfo->link.s.speed,
link              530 drivers/net/ethernet/cavium/liquidio/lio_main.c 				   (linfo->link.s.duplex) ? "Full" : "Half");
link              532 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netif_info(lio, link, lio->netdev, "Link Down\n");
link              551 drivers/net/ethernet/cavium/liquidio/lio_main.c 	dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu);
link              599 drivers/net/ethernet/cavium/liquidio/lio_main.c 	int changed = (lio->linfo.link.u64 != ls->u64);
link              600 drivers/net/ethernet/cavium/liquidio/lio_main.c 	int current_max_mtu = lio->linfo.link.s.mtu;
link              604 drivers/net/ethernet/cavium/liquidio/lio_main.c 		__func__, lio->linfo.link.u64, ls->u64);
link              605 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->linfo.link.u64 = ls->u64;
link              611 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio->linfo.link.s.link_up) {
link              620 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio->linfo.link.s.mtu != current_max_mtu) {
link              622 drivers/net/ethernet/cavium/liquidio/lio_main.c 				   current_max_mtu, lio->linfo.link.s.mtu);
link              623 drivers/net/ethernet/cavium/liquidio/lio_main.c 			netdev->max_mtu = lio->linfo.link.s.mtu;
link              625 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (lio->linfo.link.s.mtu < netdev->mtu) {
link              628 drivers/net/ethernet/cavium/liquidio/lio_main.c 				     netdev->mtu, lio->linfo.link.s.mtu);
link             1891 drivers/net/ethernet/cavium/liquidio/lio_main.c 	lio->linfo.link.s.link_up = 0;
link             2349 drivers/net/ethernet/cavium/liquidio/lio_main.c 	    (!lio->linfo.link.s.link_up) ||
link             2353 drivers/net/ethernet/cavium/liquidio/lio_main.c 			   lio->linfo.link.s.link_up);
link             3008 drivers/net/ethernet/cavium/liquidio/lio_main.c 	ivi->max_tx_rate = lio->linfo.link.s.speed;
link             3569 drivers/net/ethernet/cavium/liquidio/lio_main.c 		lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64;
link              271 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (linfo->link.s.link_up) {
link              272 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			netif_info(lio, link, lio->netdev, "%d Mbps %s Duplex UP\n",
link              273 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 				   linfo->link.s.speed,
link              274 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 				   (linfo->link.s.duplex) ? "Full" : "Half");
link              276 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			netif_info(lio, link, lio->netdev, "Link Down\n");
link              295 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu);
link              343 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	int current_max_mtu = lio->linfo.link.s.mtu;
link              346 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	if ((lio->intf_open) && (lio->linfo.link.u64 != ls->u64)) {
link              347 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.link.u64 = ls->u64;
link              352 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (lio->linfo.link.s.link_up) {
link              360 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (lio->linfo.link.s.mtu != current_max_mtu) {
link              363 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 				 current_max_mtu, lio->linfo.link.s.mtu);
link              364 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			netdev->max_mtu = lio->linfo.link.s.mtu;
link              367 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		if (lio->linfo.link.s.mtu < netdev->mtu) {
link              370 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 				 netdev->mtu, lio->linfo.link.s.mtu);
link              963 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	lio->linfo.link.s.link_up = 0;
link             1434 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 	    (!lio->linfo.link.s.link_up) || (skb->len <= 0)) {
link             1436 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 			   lio->linfo.link.s.link_up);
link             2070 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c 		lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64;
link              773 drivers/net/ethernet/cavium/liquidio/liquidio_common.h 	union oct_link_status link;
link              596 drivers/net/ethernet/cavium/liquidio/octeon_network.h 	if (lio->linfo.link.s.link_up) {
link              842 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c 	if (!phydev->link)
link              918 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c 	if (!phydev->link && p->last_link)
link              921 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c 	if (phydev->link &&
link              923 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c 	     p->last_link != phydev->link ||
link              931 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c 	p->last_link = phydev->link;
link              930 drivers/net/ethernet/cavium/thunder/nic_main.c 	struct bgx_link_status link;
link              940 drivers/net/ethernet/cavium/thunder/nic_main.c 	bgx_get_lmac_link_state(nic->node, bgx, lmac, &link);
link              943 drivers/net/ethernet/cavium/thunder/nic_main.c 	mbx.link_status.link_up = link.link_up;
link              944 drivers/net/ethernet/cavium/thunder/nic_main.c 	mbx.link_status.duplex = link.duplex;
link              945 drivers/net/ethernet/cavium/thunder/nic_main.c 	mbx.link_status.speed = link.speed;
link              946 drivers/net/ethernet/cavium/thunder/nic_main.c 	mbx.link_status.mac_type = link.mac_type;
link              207 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	struct bgx_link_status *link = (struct bgx_link_status *)status;
link              216 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	link->mac_type = lmac->lmac_type;
link              217 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	link->link_up = lmac->link_up;
link              218 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	link->duplex = lmac->last_duplex;
link              219 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	link->speed = lmac->last_speed;
link              602 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	if (!phydev->link && lmac->last_link)
link              605 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	if (phydev->link &&
link              607 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	     lmac->last_link != phydev->link ||
link              612 drivers/net/ethernet/cavium/thunder/thunder_bgx.c 	lmac->last_link = phydev->link;
link             2977 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 					int link)
link             2987 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	switch (link) {
link             3015 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	adap->vfinfo[vf].link_state = link;
link              155 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 	struct cxgb4_link *link;
link              269 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			link = &t->table[link_uhtid - 1];
link              270 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			link->match_field = next[i].jump;
link              271 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			link->link_handle = cls->knode.handle;
link              272 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			memcpy(&link->fs, &fs, sizeof(fs));
link              344 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 	struct cxgb4_link *link = NULL;
link              374 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		link = &t->table[uhtid - 1];
link              375 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		if (!link->link_handle)
link              378 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		if (!test_bit(filter_id, link->tid_map))
link              386 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 	if (link)
link              387 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		clear_bit(filter_id, link->tid_map);
link              394 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		link = &t->table[i];
link              396 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		if (link->link_handle == handle) {
link              398 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 				if (!test_bit(j, link->tid_map))
link              405 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 				clear_bit(j, link->tid_map);
link              409 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			link->match_field = NULL;
link              410 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			link->link_handle = 0;
link              411 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			memset(&link->fs, 0, sizeof(link->fs));
link              431 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		struct cxgb4_link *link = &t->table[i];
link              433 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		kvfree(link->tid_map);
link              454 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		struct cxgb4_link *link = &t->table[i];
link              458 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		link->tid_map = kvcalloc(bmap_size, sizeof(unsigned long),
link              460 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		if (!link->tid_map)
link              462 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		bitmap_zero(link->tid_map, max_tids);
link              469 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		struct cxgb4_link *link = &t->table[i];
link              471 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		if (link->tid_map)
link              472 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			kvfree(link->tid_map);
link              301 drivers/net/ethernet/cortina/gemini.c 	status.bits.link = phydev->link;
link              852 drivers/net/ethernet/cortina/gemini.h 		unsigned int link:1;
link              900 drivers/net/ethernet/dec/tulip/de2104x.c 		netif_info(de, link, de->dev, "link up, media %s\n",
link              909 drivers/net/ethernet/dec/tulip/de2104x.c 		netif_info(de, link, de->dev, "link down\n");
link              938 drivers/net/ethernet/dec/tulip/de2104x.c 	netif_info(de, link, de->dev, "set link %s\n", media_name[media]);
link             1678 drivers/net/ethernet/dec/tulip/de2104x.c 	netif_info(de, link, dev, "link nway restart, status %x,%x\n",
link             1000 drivers/net/ethernet/dec/tulip/xircom_cb.c 	u8 link;
link             1006 drivers/net/ethernet/dec/tulip/xircom_cb.c 	for (i = 0x100; i < 0x1f7; i += link + 2) {
link             1012 drivers/net/ethernet/dec/tulip/xircom_cb.c 		link = xr32(CSR9);
link             1025 drivers/net/ethernet/dec/tulip/xircom_cb.c 		} else if (link == 0) {
link              184 drivers/net/ethernet/dnet.c 	if (phydev->link) {
link              218 drivers/net/ethernet/dnet.c 	if (phydev->link != bp->link) {
link              219 drivers/net/ethernet/dnet.c 		if (phydev->link) {
link              229 drivers/net/ethernet/dnet.c 		bp->link = phydev->link;
link              242 drivers/net/ethernet/dnet.c 		if (phydev->link)
link              290 drivers/net/ethernet/dnet.c 	bp->link = 0;
link              216 drivers/net/ethernet/dnet.h 	unsigned int			link;
link              672 drivers/net/ethernet/ethoc.c 	if (priv->old_link != phydev->link) {
link              674 drivers/net/ethernet/ethoc.c 		priv->old_link = phydev->link;
link             1001 drivers/net/ethernet/faraday/ftgmac100.c 	if (!phydev->link)
link              543 drivers/net/ethernet/freescale/fec.h 	int	link;
link             1123 drivers/net/ethernet/freescale/fec_main.c 	if (fep->link)
link             1159 drivers/net/ethernet/freescale/fec_main.c 	if (fep->link) {
link             1658 drivers/net/ethernet/freescale/fec_main.c 	if ((fep->work_tx || fep->work_rx) && fep->link) {
link             1779 drivers/net/ethernet/freescale/fec_main.c 		fep->link = 0;
link             1780 drivers/net/ethernet/freescale/fec_main.c 	} else if (phy_dev->link) {
link             1781 drivers/net/ethernet/freescale/fec_main.c 		if (!fep->link) {
link             1782 drivers/net/ethernet/freescale/fec_main.c 			fep->link = phy_dev->link;
link             1806 drivers/net/ethernet/freescale/fec_main.c 		if (fep->link) {
link             1812 drivers/net/ethernet/freescale/fec_main.c 			fep->link = phy_dev->link;
link             2055 drivers/net/ethernet/freescale/fec_main.c 	fep->link = 0;
link             3794 drivers/net/ethernet/freescale/fec_main.c 		fep->link = 0;
link               69 drivers/net/ethernet/freescale/fec_mpc52xx.c 	enum phy_state link;
link              170 drivers/net/ethernet/freescale/fec_mpc52xx.c 	if (phydev->link != PHY_DOWN) {
link              198 drivers/net/ethernet/freescale/fec_mpc52xx.c 		if (priv->link == PHY_DOWN) {
link              200 drivers/net/ethernet/freescale/fec_mpc52xx.c 			priv->link = phydev->link;
link              203 drivers/net/ethernet/freescale/fec_mpc52xx.c 	} else if (priv->link) {
link              205 drivers/net/ethernet/freescale/fec_mpc52xx.c 		priv->link = PHY_DOWN;
link              428 drivers/net/ethernet/freescale/fman/mac.c 	if (!phy_dev->link) {
link              828 drivers/net/ethernet/freescale/fman/mac.c 		priv->fixed_link->link = phy->link;
link              660 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	if (phydev->link) {
link             1519 drivers/net/ethernet/freescale/gianfar.c 	if (phydev->link) {
link             1556 drivers/net/ethernet/freescale/gianfar.c 				netif_warn(priv, link, priv->ndev,
link             1612 drivers/net/ethernet/freescale/gianfar.c 	if (unlikely(phydev->link != priv->oldlink ||
link             1613 drivers/net/ethernet/freescale/gianfar.c 		     (phydev->link && (phydev->duplex != priv->oldduplex ||
link             1590 drivers/net/ethernet/freescale/ucc_geth.c 	if (phydev->link) {
link               78 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_config(struct pcmcia_device *link);
link               79 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id);
link               80 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_setup_mfc(struct pcmcia_device *link);
link               81 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static void fmvj18x_release(struct pcmcia_device *link);
link              232 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_probe(struct pcmcia_device *link)
link              237 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     dev_dbg(&link->dev, "fmvj18x_attach()\n");
link              244 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->priv = dev;
link              245 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     lp->p_dev = link;
link              249 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->resource[0]->end = 32;
link              250 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
link              253 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->config_flags |= CONF_ENABLE_IRQ;
link              260 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     return fmvj18x_config(link);
link              265 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static void fmvj18x_detach(struct pcmcia_device *link)
link              267 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     struct net_device *dev = link->priv;
link              269 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     dev_dbg(&link->dev, "fmvj18x_detach\n");
link              273 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     fmvj18x_release(link);
link              280 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int mfc_try_io_port(struct pcmcia_device *link)
link              287 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	link->resource[1]->start = serial_base[i];
link              288 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
link              289 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	if (link->resource[1]->start == 0) {
link              290 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->resource[1]->end = 0;
link              293 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	ret = pcmcia_request_io(link);
link              300 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int ungermann_try_io_port(struct pcmcia_device *link)
link              309 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	link->resource[0]->start = ioaddr;
link              310 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	ret = pcmcia_request_io(link);
link              313 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->config_index =
link              314 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		((link->resource[0]->start & 0x0f0) >> 3) | 0x22;
link              326 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_config(struct pcmcia_device *link)
link              328 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     struct net_device *dev = link->priv;
link              338 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     dev_dbg(&link->dev, "fmvj18x_config\n");
link              340 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->io_lines = 5;
link              342 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     len = pcmcia_get_tuple(link, CISTPL_FUNCE, &buf);
link              347 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	ret = pcmcia_loop_config(link, fmvj18x_ioprobe, NULL);
link              351 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	switch (link->manf_id) {
link              354 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    if (link->card_id == PRODID_TDK_GN3410 ||
link              355 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		link->card_id == PRODID_TDK_NP9610 ||
link              356 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		link->card_id == PRODID_TDK_MN3200) {
link              358 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		link->config_base = 0x800;
link              359 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		link->config_index = 0x47;
link              360 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		link->resource[1]->end = 8;
link              365 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->config_base = 0x800;
link              366 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->config_index = 0x47;
link              367 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->resource[1]->end = 8;
link              371 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->config_base = 0x800;
link              372 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->config_index = 0x47;
link              373 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->resource[1]->end = 8;
link              379 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    if (link->config_base == 0x0fe0)
link              381 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    else if (link->card_id == PRODID_FUJITSU_MBH10302) 
link              385 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    else if (link->card_id == PRODID_FUJITSU_MBH10304)
link              395 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	switch (link->manf_id) {
link              397 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    if (link->card_id == PRODID_FUJITSU_MBH10304) {
link              399 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		link->config_index = 0x20;
link              402 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		link->config_index = 1;
link              410 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    link->config_index = 1;
link              414 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     if (link->resource[1]->end != 0) {
link              415 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	ret = mfc_try_io_port(link);
link              418 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	ret = ungermann_try_io_port(link);
link              421 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    ret = pcmcia_request_io(link);
link              425 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     ret = pcmcia_request_irq(link, fjn_interrupt);
link              428 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     ret = pcmcia_enable_device(link);
link              432 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     dev->irq = link->irq;
link              433 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     dev->base_addr = link->resource[0]->start;
link              435 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     if (resource_size(link->resource[1]) != 0) {
link              436 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	ret = fmvj18x_setup_mfc(link);
link              465 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    len = pcmcia_get_tuple(link, CISTPL_FUNCE, &buf);
link              475 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    if (pcmcia_get_mac_from_cis(link, dev))
link              498 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	if (fmvj18x_get_hwinfo(link, buggybuf) == -1) {
link              517 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     SET_NETDEV_DEV(dev, &link->dev);
link              532 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     fmvj18x_release(link);
link              537 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id)
link              543 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->resource[2]->flags |= WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
link              544 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->resource[2]->start = 0; link->resource[2]->end = 0;
link              545 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     i = pcmcia_request_window(link, link->resource[2], 0);
link              549 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     base = ioremap(link->resource[2]->start, resource_size(link->resource[2]));
link              551 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	    pcmcia_release_window(link, link->resource[2]);
link              555 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     pcmcia_map_mem_page(link, link->resource[2], 0);
link              580 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     j = pcmcia_release_window(link, link->resource[2]);
link              586 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_setup_mfc(struct pcmcia_device *link)
link              589 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     struct net_device *dev = link->priv;
link              594 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->resource[3]->flags = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
link              595 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->resource[3]->start = link->resource[3]->end = 0;
link              596 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     i = pcmcia_request_window(link, link->resource[3], 0);
link              600 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     lp->base = ioremap(link->resource[3]->start,
link              601 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 		       resource_size(link->resource[3]));
link              607 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     i = pcmcia_map_mem_page(link, link->resource[3], 0);
link              629 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static void fmvj18x_release(struct pcmcia_device *link)
link              632 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     struct net_device *dev = link->priv;
link              636 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     dev_dbg(&link->dev, "fmvj18x_release\n");
link              644 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     pcmcia_disable_device(link);
link              648 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_suspend(struct pcmcia_device *link)
link              650 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	struct net_device *dev = link->priv;
link              652 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	if (link->open)
link              658 drivers/net/ethernet/fujitsu/fmvj18x_cs.c static int fmvj18x_resume(struct pcmcia_device *link)
link              660 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	struct net_device *dev = link->priv;
link              662 drivers/net/ethernet/fujitsu/fmvj18x_cs.c 	if (link->open) {
link             1066 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     struct pcmcia_device *link = lp->p_dev;
link             1070 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     if (!pcmcia_dev_present(link))
link             1073 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->open++;
link             1091 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     struct pcmcia_device *link = lp->p_dev;
link             1114 drivers/net/ethernet/fujitsu/fmvj18x_cs.c     link->open--;
link              195 drivers/net/ethernet/hisilicon/hisi_femac.c 	if (phy->link)
link               88 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	mac_cb->link = *link_status;
link              538 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	mac_cb->link = 0;
link              815 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	mac_cb->link = false;
link             1216 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c 	mac_cb->dsaf_dev->misc_op->cpld_set_led(mac_cb, (int)mac_cb->link,
link              322 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h 	u8 link;
link               59 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c                                       u32 link, u32 port, u32 act)
link               65 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c        obj_args[0].integer.value = link;
link               79 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c                         link, port, act);
link              985 drivers/net/ethernet/hisilicon/hns/hns_enet.c 	if (unlikely(priv->link && !netif_carrier_ok(ndev)))
link             1098 drivers/net/ethernet/hisilicon/hns/hns_enet.c 		if (ndev->phydev->link == 0)
link             1117 drivers/net/ethernet/hisilicon/hns/hns_enet.c 	if (state != priv->link) {
link             1126 drivers/net/ethernet/hisilicon/hns/hns_enet.c 		priv->link = state;
link             1386 drivers/net/ethernet/hisilicon/hns/hns_enet.c 	priv->link = 0;
link             1450 drivers/net/ethernet/hisilicon/hns/hns_enet.c 	priv->link = 0;
link               71 drivers/net/ethernet/hisilicon/hns/hns_enet.h 	int link;
link               42 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 	u32 link_stat = priv->link;
link               49 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 			link_stat = net_dev->phydev->link;
link              526 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h 	int link;
link             2606 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	mac->link = 0;
link             2698 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 				hdev->hw.mac.phydev->link;
link             2721 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	if (state != hdev->hw.mac.link) {
link             2731 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 		hdev->hw.mac.link = state;
link             2873 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	return hdev->hw.mac.link;
link             6314 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 		if (phydev->link == link_ret)
link             6664 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	hdev->hw.mac.link = 0;
link             8639 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 	if (!phydev->link || !phydev->autoneg)
link              266 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h 	int link;	/* store the link status of mac & phy (if phy exit) */
link              438 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 	link_status = (u16)hdev->hw.mac.link;
link              184 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c 	if (netdev->phydev->link == 0)
link              449 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 	if (link_state != hdev->hw.mac.link) {
link              453 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 		hdev->hw.mac.link = link_state;
link             2936 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 	return hdev->hw.mac.link;
link              159 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h 	int link;
link              860 drivers/net/ethernet/huawei/hinic/hinic_main.c 	if (link_status->link == HINIC_LINK_STATE_UP) {
link              152 drivers/net/ethernet/huawei/hinic/hinic_port.h 	u8      link;
link             1162 drivers/net/ethernet/ibm/ehea/ehea_main.c 				netif_info(port, link, dev,
link             1173 drivers/net/ethernet/ibm/ehea/ehea_main.c 				netif_info(port, link, dev,
link             1181 drivers/net/ethernet/ibm/ehea/ehea_main.c 			netif_info(port, link, dev,
link             1187 drivers/net/ethernet/ibm/ehea/ehea_main.c 			netif_info(port, link, dev,
link              577 drivers/net/ethernet/ibm/emac/core.c 	int tx_size, rx_size, link = netif_carrier_ok(dev->ndev);
link              582 drivers/net/ethernet/ibm/emac/core.c 	if (!link) {
link              593 drivers/net/ethernet/ibm/emac/core.c 	    link, dev->phy.duplex, dev->phy.pause, dev->phy.asym_pause);
link              600 drivers/net/ethernet/ibm/emac/core.c 	if (!link)
link             2551 drivers/net/ethernet/ibm/emac/core.c 	return dev->phy_dev->link;
link              413 drivers/net/ethernet/intel/e100.c 	__le32 link;
link              480 drivers/net/ethernet/intel/e100.c 	__le32 link;
link             1898 drivers/net/ethernet/intel/e100.c 		cb->link = cpu_to_le32(nic->cbs_dma_addr +
link             1946 drivers/net/ethernet/intel/e100.c 		put_unaligned_le32(rx->dma_addr, &prev_rfd->link);
link             2427 drivers/net/ethernet/intel/e1000/e1000_main.c 	u32 link, tctl;
link             2429 drivers/net/ethernet/intel/e1000/e1000_main.c 	link = e1000_has_link(adapter);
link             2430 drivers/net/ethernet/intel/e1000/e1000_main.c 	if ((netif_carrier_ok(netdev)) && link)
link             2433 drivers/net/ethernet/intel/e1000/e1000_main.c 	if (link) {
link              525 drivers/net/ethernet/intel/e1000e/80003es2lan.c 	bool link;
link              560 drivers/net/ethernet/intel/e1000e/80003es2lan.c 						      100000, &link);
link              564 drivers/net/ethernet/intel/e1000e/80003es2lan.c 		if (!link) {
link              575 drivers/net/ethernet/intel/e1000e/80003es2lan.c 						      100000, &link);
link             1442 drivers/net/ethernet/intel/e1000e/ethtool.c 	int link;
link             1457 drivers/net/ethernet/intel/e1000e/ethtool.c 	link = (er32(STATUS) & E1000_STATUS_LU);
link             1459 drivers/net/ethernet/intel/e1000e/ethtool.c 	if (!link) {
link              128 drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link);
link              900 drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_k1_workaround_lpt_lp(struct e1000_hw *hw, bool link)
link              907 drivers/net/ethernet/intel/e1000e/ich8lan.c 	if (link && (status & E1000_STATUS_SPEED_1000)) {
link              940 drivers/net/ethernet/intel/e1000e/ich8lan.c 		if ((hw->phy.revision > 5) || !link ||
link              994 drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_platform_pm_pch_lpt(struct e1000_hw *hw, bool link)
link              996 drivers/net/ethernet/intel/e1000e/ich8lan.c 	u32 reg = link << (E1000_LTRV_REQ_SHIFT + E1000_LTRV_NOSNOOP_SHIFT) |
link              997 drivers/net/ethernet/intel/e1000e/ich8lan.c 	    link << E1000_LTRV_REQ_SHIFT | E1000_LTRV_SEND;
link             1000 drivers/net/ethernet/intel/e1000e/ich8lan.c 	if (link) {
link             1358 drivers/net/ethernet/intel/e1000e/ich8lan.c 	bool link;
link             1374 drivers/net/ethernet/intel/e1000e/ich8lan.c 	ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
link             1379 drivers/net/ethernet/intel/e1000e/ich8lan.c 		ret_val = e1000_k1_gig_workaround_hv(hw, link);
link             1388 drivers/net/ethernet/intel/e1000e/ich8lan.c 	if ((hw->mac.type >= e1000_pch2lan) && link) {
link             1512 drivers/net/ethernet/intel/e1000e/ich8lan.c 		ret_val = e1000_k1_workaround_lpt_lp(hw, link);
link             1520 drivers/net/ethernet/intel/e1000e/ich8lan.c 		ret_val = e1000_platform_pm_pch_lpt(hw, link);
link             1544 drivers/net/ethernet/intel/e1000e/ich8lan.c 	if (!link)
link             2187 drivers/net/ethernet/intel/e1000e/ich8lan.c static s32 e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link)
link             2202 drivers/net/ethernet/intel/e1000e/ich8lan.c 	if (link) {
link             5124 drivers/net/ethernet/intel/e1000e/ich8lan.c 	bool link;
link             5133 drivers/net/ethernet/intel/e1000e/ich8lan.c 	ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
link             5134 drivers/net/ethernet/intel/e1000e/ich8lan.c 	if (!link)
link              400 drivers/net/ethernet/intel/e1000e/mac.c 	bool link;
link              415 drivers/net/ethernet/intel/e1000e/mac.c 	ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
link              416 drivers/net/ethernet/intel/e1000e/mac.c 	if (ret_val || !link)
link             5178 drivers/net/ethernet/intel/e1000e/netdev.c 	u32 link, tctl, pcim_state;
link             5183 drivers/net/ethernet/intel/e1000e/netdev.c 	link = e1000e_has_link(adapter);
link             5184 drivers/net/ethernet/intel/e1000e/netdev.c 	if ((netif_carrier_ok(netdev)) && link) {
link             5196 drivers/net/ethernet/intel/e1000e/netdev.c 	if (link) {
link             1133 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             1158 drivers/net/ethernet/intel/e1000e/phy.c 					      &link);
link             1162 drivers/net/ethernet/intel/e1000e/phy.c 	if (link) {
link             1186 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             1220 drivers/net/ethernet/intel/e1000e/phy.c 						      100000, &link);
link             1224 drivers/net/ethernet/intel/e1000e/phy.c 		if (!link)
link             1229 drivers/net/ethernet/intel/e1000e/phy.c 						      100000, &link);
link             1250 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             1287 drivers/net/ethernet/intel/e1000e/phy.c 						      100000, &link);
link             1291 drivers/net/ethernet/intel/e1000e/phy.c 		if (!link) {
link             1310 drivers/net/ethernet/intel/e1000e/phy.c 						      100000, &link);
link             1357 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             1389 drivers/net/ethernet/intel/e1000e/phy.c 						      100000, &link);
link             1393 drivers/net/ethernet/intel/e1000e/phy.c 		if (!link)
link             1398 drivers/net/ethernet/intel/e1000e/phy.c 						      100000, &link);
link             1885 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             1892 drivers/net/ethernet/intel/e1000e/phy.c 	ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
link             1896 drivers/net/ethernet/intel/e1000e/phy.c 	if (!link) {
link             1956 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             1958 drivers/net/ethernet/intel/e1000e/phy.c 	ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
link             1962 drivers/net/ethernet/intel/e1000e/phy.c 	if (!link) {
link             2014 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             2016 drivers/net/ethernet/intel/e1000e/phy.c 	ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
link             2020 drivers/net/ethernet/intel/e1000e/phy.c 	if (!link) {
link             3100 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             3118 drivers/net/ethernet/intel/e1000e/phy.c 						      100000, &link);
link             3122 drivers/net/ethernet/intel/e1000e/phy.c 		if (!link)
link             3127 drivers/net/ethernet/intel/e1000e/phy.c 						      100000, &link);
link             3147 drivers/net/ethernet/intel/e1000e/phy.c 	bool link;
link             3149 drivers/net/ethernet/intel/e1000e/phy.c 	ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
link             3153 drivers/net/ethernet/intel/e1000e/phy.c 	if (!link) {
link             1812 drivers/net/ethernet/intel/i40e/i40e_common.c 				bool enable_lse, struct i40e_link_status *link,
link             1889 drivers/net/ethernet/intel/i40e/i40e_common.c 	if (link)
link             1890 drivers/net/ethernet/intel/i40e/i40e_common.c 		*link = *hw_link_info;
link               97 drivers/net/ethernet/intel/i40e/i40e_prototype.h 				bool enable_lse, struct i40e_link_status *link,
link             4370 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link)
link             4398 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c 	switch (link) {
link              137 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link);
link              264 drivers/net/ethernet/intel/ice/ice_common.c 		     struct ice_link_status *link, struct ice_sq_cd *cd)
link              341 drivers/net/ethernet/intel/ice/ice_common.c 	if (link)
link              342 drivers/net/ethernet/intel/ice/ice_common.c 		*link = *li;
link              110 drivers/net/ethernet/intel/ice/ice_common.h 		     struct ice_link_status *link, struct ice_sq_cd *cd);
link              579 drivers/net/ethernet/intel/igb/e1000_mac.c 	bool link;
link              595 drivers/net/ethernet/intel/igb/e1000_mac.c 	ret_val = igb_phy_has_link(hw, 1, 0, &link);
link              599 drivers/net/ethernet/intel/igb/e1000_mac.c 	if (!link)
link             1083 drivers/net/ethernet/intel/igb/e1000_phy.c 	bool link;
link             1107 drivers/net/ethernet/intel/igb/e1000_phy.c 	ret_val = igb_phy_has_link(hw, COPPER_LINK_UP_LIMIT, 10, &link);
link             1111 drivers/net/ethernet/intel/igb/e1000_phy.c 	if (link) {
link             1136 drivers/net/ethernet/intel/igb/e1000_phy.c 	bool link;
link             1169 drivers/net/ethernet/intel/igb/e1000_phy.c 		ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 10000, &link);
link             1173 drivers/net/ethernet/intel/igb/e1000_phy.c 		if (!link)
link             1177 drivers/net/ethernet/intel/igb/e1000_phy.c 		ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 10000, &link);
link             1201 drivers/net/ethernet/intel/igb/e1000_phy.c 	bool link;
link             1240 drivers/net/ethernet/intel/igb/e1000_phy.c 		ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 100000, &link);
link             1244 drivers/net/ethernet/intel/igb/e1000_phy.c 		if (!link) {
link             1279 drivers/net/ethernet/intel/igb/e1000_phy.c 					   100000, &link);
link             1914 drivers/net/ethernet/intel/igb/e1000_phy.c 	bool link;
link             1922 drivers/net/ethernet/intel/igb/e1000_phy.c 	ret_val = igb_phy_has_link(hw, 1, 0, &link);
link             1926 drivers/net/ethernet/intel/igb/e1000_phy.c 	if (!link) {
link             1990 drivers/net/ethernet/intel/igb/e1000_phy.c 	bool link;
link             1992 drivers/net/ethernet/intel/igb/e1000_phy.c 	ret_val = igb_phy_has_link(hw, 1, 0, &link);
link             1996 drivers/net/ethernet/intel/igb/e1000_phy.c 	if (!link) {
link             2449 drivers/net/ethernet/intel/igb/e1000_phy.c 	bool link;
link             2481 drivers/net/ethernet/intel/igb/e1000_phy.c 		ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 100000, &link);
link             2485 drivers/net/ethernet/intel/igb/e1000_phy.c 		if (!link)
link             2489 drivers/net/ethernet/intel/igb/e1000_phy.c 		ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 100000, &link);
link             2512 drivers/net/ethernet/intel/igb/e1000_phy.c 	bool link;
link             2514 drivers/net/ethernet/intel/igb/e1000_phy.c 	ret_val = igb_phy_has_link(hw, 1, 0, &link);
link             2518 drivers/net/ethernet/intel/igb/e1000_phy.c 	if (!link) {
link             5228 drivers/net/ethernet/intel/igb/igb_main.c 	u32 link;
link             5233 drivers/net/ethernet/intel/igb/igb_main.c 	link = igb_has_link(adapter);
link             5239 drivers/net/ethernet/intel/igb/igb_main.c 			link = false;
link             5247 drivers/net/ethernet/intel/igb/igb_main.c 				link = 0;
link             5250 drivers/net/ethernet/intel/igb/igb_main.c 	if (link) {
link             1915 drivers/net/ethernet/intel/igbvf/netdev.c 	u32 link;
link             1918 drivers/net/ethernet/intel/igbvf/netdev.c 	link = igbvf_has_link(adapter);
link             1920 drivers/net/ethernet/intel/igbvf/netdev.c 	if (link) {
link              371 drivers/net/ethernet/intel/igc/igc_mac.c 	bool link;
link              387 drivers/net/ethernet/intel/igc/igc_mac.c 	ret_val = igc_phy_has_link(hw, 1, 0, &link);
link              391 drivers/net/ethernet/intel/igc/igc_mac.c 	if (!link)
link             2910 drivers/net/ethernet/intel/igc/igc_main.c 	u32 link;
link             2913 drivers/net/ethernet/intel/igc/igc_main.c 	link = igc_has_link(adapter);
link             2919 drivers/net/ethernet/intel/igc/igc_main.c 			link = false;
link             2927 drivers/net/ethernet/intel/igc/igc_main.c 				link = 0;
link             2930 drivers/net/ethernet/intel/igc/igc_main.c 	if (link) {
link              496 drivers/net/ethernet/intel/igc/igc_phy.c 	bool link;
link              520 drivers/net/ethernet/intel/igc/igc_phy.c 	ret_val = igc_phy_has_link(hw, COPPER_LINK_UP_LIMIT, 10, &link);
link              524 drivers/net/ethernet/intel/igc/igc_phy.c 	if (link) {
link              149 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	bool link = adapter->link_up;
link              178 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	if (!link) {
link              202 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 	if (!link) {
link             3096 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			e_info(link, "Received ECC Err, initiating reset\n");
link             3334 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			e_info(link, "Received ECC Err, initiating reset\n");
link             5104 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	int link, tc, kb, marker;
link             5108 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	tc = link = dev->mtu + ETH_HLEN + ETH_FCS_LEN + IXGBE_ETH_FRAMING;
link             5124 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		dv_id = IXGBE_DV_X540(link, tc);
link             5127 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		dv_id = IXGBE_DV(link, tc);
link             9543 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			struct ixgbe_jump_table *link = adapter->jump_tables[i];
link             9545 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			if (link && (test_bit(loc - 1, link->child_loc_map))) {
link             10826 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		hw->link.ops  = *ii->link_ops;
link             3636 drivers/net/ethernet/intel/ixgbe/ixgbe_type.h 	struct ixgbe_link_info		link;
link               19 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 	struct ixgbe_link_info *link = &hw->link;
link               27 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 	link->addr = IXGBE_CS4227;
link               96 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 	return hw->link.ops.read_link_unlocked(hw, hw->link.addr, reg, value);
link              109 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 	return hw->link.ops.write_link_unlocked(hw, hw->link.addr, reg, value);
link             1679 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c 	status = hw->link.ops.write_link(hw, hw->link.addr, reg_slice,
link              540 drivers/net/ethernet/jme.c 		netif_info(jme, link, jme->dev, "Link is up at %s\n", linkmsg);
link              546 drivers/net/ethernet/jme.c 		netif_info(jme, link, jme->dev, "Link is down\n");
link              259 drivers/net/ethernet/korina.c 			lp->td_ring[chain_prev].link =  CPHYSADDR(td);
link              283 drivers/net/ethernet/korina.c 			lp->td_ring[chain_prev].link =  CPHYSADDR(td);
link              585 drivers/net/ethernet/korina.c 		lp->td_ring[lp->tx_next_done].link = 0;
link              753 drivers/net/ethernet/korina.c 		lp->td_ring[i].link = 0;
link              769 drivers/net/ethernet/korina.c 		lp->rd_ring[i].link = CPHYSADDR(&lp->rd_ring[i+1]);
link              774 drivers/net/ethernet/korina.c 	lp->rd_ring[i - 1].link = CPHYSADDR(&lp->rd_ring[0]);
link             3447 drivers/net/ethernet/marvell/mvneta.c 	state->link = !!(gmac_stat & MVNETA_GMAC_LINK_UP);
link             2735 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 	bool event = false, link = false;
link             2746 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 				link = true;
link             2756 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 				link = true;
link             2761 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 		phylink_mac_change(port->phylink, link);
link             2768 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 	if (link) {
link             4832 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 	state->link = !!(val & MVPP22_XLG_STATUS_LINK_UP);
link             4850 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c 	state->link = !!(val & MVPP2_GMAC_STATUS0_LINK_UP);
link             1049 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	int link;
link             1059 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	for (link = 0; link < (hw->cgx_links + hw->lbk_links); link++)
link             1061 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 			    NIX_AF_TL3_TL2X_LINKX_CFG(schq, link), 0x00);
link             2373 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	int blkaddr, schq, link = -1;
link             2416 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 		link = hw->cgx_links + hw->lbk_links;
link             2424 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 		link = (cgx * hw->lmac_per_cgx) + lmac;
link             2427 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 		link = hw->cgx_links;
link             2430 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	if (link < 0)
link             2436 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	cfg = rvu_read64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link));
link             2440 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	rvu_write64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link), cfg);
link             2448 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	cfg = rvu_read64(rvu, blkaddr, NIX_AF_TX_LINKX_NORM_CREDIT(link));
link             2451 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	rvu_write64(rvu, blkaddr, NIX_AF_TX_LINKX_NORM_CREDIT(link), cfg);
link             2452 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	rvu_write64(rvu, blkaddr, NIX_AF_TX_LINKX_EXPR_CREDIT(link), cfg);
link             2561 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	int cgx, lmac_cnt, slink, link;
link             2570 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	for (link = 0; link < (hw->cgx_links + hw->lbk_links); link++) {
link             2571 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 		rvu_write64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link),
link             2576 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 		link = hw->cgx_links + hw->lbk_links;
link             2577 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 		rvu_write64(rvu, blkaddr, NIX_AF_RX_LINKX_CFG(link),
link             2590 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 		for (link = slink; link < (slink + lmac_cnt); link++) {
link             2592 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 				    NIX_AF_TX_LINKX_NORM_CREDIT(link),
link             2595 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 				    NIX_AF_TX_LINKX_EXPR_CREDIT(link),
link             2602 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	for (link = slink; link < (slink + hw->lbk_links); link++) {
link             2607 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 			    NIX_AF_TX_LINKX_NORM_CREDIT(link), tx_credits);
link             2609 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 			    NIX_AF_TX_LINKX_EXPR_CREDIT(link), tx_credits);
link             1057 drivers/net/ethernet/marvell/skge.c 	netif_info(skge, link, skge->netdev,
link             1070 drivers/net/ethernet/marvell/skge.c 	netif_info(skge, link, skge->netdev, "Link is down\n");
link             2197 drivers/net/ethernet/marvell/sky2.c 	netif_info(sky2, link, sky2->netdev,
link             2221 drivers/net/ethernet/marvell/sky2.c 	netif_info(sky2, link, sky2->netdev, "Link is down\n");
link              393 drivers/net/ethernet/mediatek/mtk_eth_soc.c 	state->link = (pmsr & MAC_MSR_LINK);
link             3121 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 				__s8 link = bonding_info->slave.link;
link             3127 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 				if ((link == BOND_LINK_UP) ||
link             3128 drivers/net/ethernet/mellanox/mlx4/en_netdev.c 				    (link == BOND_LINK_FAIL)) {
link             1113 drivers/net/ethernet/mellanox/mlx4/mcg.c 	int link = 0;
link             1136 drivers/net/ethernet/mellanox/mlx4/mcg.c 		link = 1;
link             1177 drivers/net/ethernet/mellanox/mlx4/mcg.c 	if (!link)
link             1200 drivers/net/ethernet/mellanox/mlx4/mcg.c 	if (err && link && index != -1) {
link             1951 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	pause->rx_pause = mlxsw_sp_port->link.rx_pause;
link             1952 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	pause->tx_pause = mlxsw_sp_port->link.tx_pause;
link             1997 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_sp_port->link.rx_pause = pause->rx_pause;
link             1998 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_sp_port->link.tx_pause = pause->tx_pause;
link             3305 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	autoneg = mlxsw_sp_port->link.autoneg;
link             3369 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_sp_port->link.autoneg = autoneg;
link             3455 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			       eth_proto_admin, mlxsw_sp_port->link.autoneg);
link             3644 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_sp_port->link.autoneg = 1;
link              251 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 	} link;
link              354 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 	return mlxsw_sp_port->link.tx_pause || mlxsw_sp_port->link.rx_pause;
link              577 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	mlxsw_reg_pfcc_pprx_set(pfcc_pl, mlxsw_sp_port->link.rx_pause);
link              578 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c 	mlxsw_reg_pfcc_pptx_set(pfcc_pl, mlxsw_sp_port->link.tx_pause);
link              302 drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c 		   ipip_entry->parms4.link != new_parms.link) {
link              987 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	return __dev_get_by_index(net, tun->parms.link);
link              308 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c 			    0, 0, parms.link, tun->fwmark, 0);
link              541 drivers/net/ethernet/micrel/ks8851_mll.c 	netif_dbg(ks, link, ks->netdev,
link             5474 drivers/net/ethernet/micrel/ksz884x.c 	netif_info(priv, link, dev, "link %s\n",
link              698 drivers/net/ethernet/microchip/encx24j600.c 			netif_warn(priv, link, dev, "unsupported link speed setting\n");
link              704 drivers/net/ethernet/microchip/encx24j600.c 		netif_warn(priv, link, dev, "Warning: hw must be disabled to set link mode\n");
link              818 drivers/net/ethernet/microchip/encx24j600.c 		netif_dbg(priv, link, dev, "promiscuous mode\n");
link              821 drivers/net/ethernet/microchip/encx24j600.c 		netif_dbg(priv, link, dev, "%smulticast mode\n",
link              825 drivers/net/ethernet/microchip/encx24j600.c 		netif_dbg(priv, link, dev, "normal mode\n");
link              395 drivers/net/ethernet/mscc/ocelot.c 	if (!dev->phydev->link)
link             1505 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 				netif_info(mgp, link, mgp->dev, "link up\n");
link             1509 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 				netif_info(mgp, link, mgp->dev, "link %s\n",
link              490 drivers/net/ethernet/natsemi/ns83820.c static inline void build_rx_desc(struct ns83820 *dev, __le32 *desc, dma_addr_t link, dma_addr_t buf, u32 cmdsts, u32 extsts)
link              492 drivers/net/ethernet/natsemi/ns83820.c 	desc_addr_set(desc + DESC_LINK, link);
link             1109 drivers/net/ethernet/neterion/s2io.c static int init_tti(struct s2io_nic *nic, int link)
link             1133 drivers/net/ethernet/neterion/s2io.c 			if (use_continuous_tx_intrs && (link == LINK_UP))
link             7454 drivers/net/ethernet/neterion/s2io.c static void s2io_link(struct s2io_nic *sp, int link)
link             7459 drivers/net/ethernet/neterion/s2io.c 	if (link != sp->last_link_state) {
link             7460 drivers/net/ethernet/neterion/s2io.c 		init_tti(sp, link);
link             7461 drivers/net/ethernet/neterion/s2io.c 		if (link == LINK_DOWN) {
link             7479 drivers/net/ethernet/neterion/s2io.c 	sp->last_link_state = link;
link             1071 drivers/net/ethernet/neterion/s2io.h static void s2io_link(struct s2io_nic * sp, int link);
link              155 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	bool link;
link              158 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	link = msg->info & NFP_FLOWER_CMSG_PORTMOD_INFO_LINK;
link              171 drivers/net/ethernet/netronome/nfp/flower/cmsg.c 	if (link) {
link               16 drivers/net/ethernet/netronome/nfp/flower/metadata.c 	struct hlist_node link;
link              210 drivers/net/ethernet/netronome/nfp/flower/metadata.c 	INIT_HLIST_NODE(&mask_entry->link);
link              215 drivers/net/ethernet/netronome/nfp/flower/metadata.c 	hash_add(priv->mask_table, &mask_entry->link, hash_key);
link              229 drivers/net/ethernet/netronome/nfp/flower/metadata.c 	hash_for_each_possible(priv->mask_table, mask_entry, link, hash_key)
link              282 drivers/net/ethernet/netronome/nfp/flower/metadata.c 		hash_del(&mask_entry->link);
link              870 drivers/net/ethernet/netronome/nfp/flower/offload.c static void nfp_flower_unlink_flow(struct nfp_fl_payload_link *link)
link              872 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_del(&link->merge_flow.list);
link              873 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_del(&link->sub_flow.list);
link              874 drivers/net/ethernet/netronome/nfp/flower/offload.c 	kfree(link);
link              880 drivers/net/ethernet/netronome/nfp/flower/offload.c 	struct nfp_fl_payload_link *link;
link              882 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_for_each_entry(link, &merge_flow->linked_flows, merge_flow.list)
link              883 drivers/net/ethernet/netronome/nfp/flower/offload.c 		if (link->sub_flow.flow == sub_flow) {
link              884 drivers/net/ethernet/netronome/nfp/flower/offload.c 			nfp_flower_unlink_flow(link);
link              892 drivers/net/ethernet/netronome/nfp/flower/offload.c 	struct nfp_fl_payload_link *link;
link              894 drivers/net/ethernet/netronome/nfp/flower/offload.c 	link = kmalloc(sizeof(*link), GFP_KERNEL);
link              895 drivers/net/ethernet/netronome/nfp/flower/offload.c 	if (!link)
link              898 drivers/net/ethernet/netronome/nfp/flower/offload.c 	link->merge_flow.flow = merge_flow;
link              899 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_add_tail(&link->merge_flow.list, &merge_flow->linked_flows);
link              900 drivers/net/ethernet/netronome/nfp/flower/offload.c 	link->sub_flow.flow = sub_flow;
link              901 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_add_tail(&link->sub_flow.list, &sub_flow->linked_flows);
link             1213 drivers/net/ethernet/netronome/nfp/flower/offload.c 	struct nfp_fl_payload_link *link, *temp;
link             1218 drivers/net/ethernet/netronome/nfp/flower/offload.c 	link = list_first_entry(&merge_flow->linked_flows,
link             1220 drivers/net/ethernet/netronome/nfp/flower/offload.c 	origin = link->sub_flow.flow;
link             1250 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_for_each_entry_safe(link, temp, &merge_flow->linked_flows,
link             1252 drivers/net/ethernet/netronome/nfp/flower/offload.c 		nfp_flower_unlink_flow(link);
link             1267 drivers/net/ethernet/netronome/nfp/flower/offload.c 	struct nfp_fl_payload_link *link, *temp;
link             1270 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_for_each_entry_safe(link, temp, &sub_flow->linked_flows,
link             1273 drivers/net/ethernet/netronome/nfp/flower/offload.c 					     link->merge_flow.flow);
link             1345 drivers/net/ethernet/netronome/nfp/flower/offload.c 	struct nfp_fl_payload_link *link;
link             1366 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_for_each_entry(link, &merge_flow->linked_flows, merge_flow.list) {
link             1367 drivers/net/ethernet/netronome/nfp/flower/offload.c 		sub_flow = link->sub_flow.flow;
link             1380 drivers/net/ethernet/netronome/nfp/flower/offload.c 	struct nfp_fl_payload_link *link;
link             1383 drivers/net/ethernet/netronome/nfp/flower/offload.c 	list_for_each_entry(link, &sub_flow->linked_flows, sub_flow.list)
link             1384 drivers/net/ethernet/netronome/nfp/flower/offload.c 		__nfp_flower_update_merge_stats(app, link->merge_flow.flow);
link              177 drivers/net/ethernet/ni/nixge.c 	int link;
link              430 drivers/net/ethernet/ni/nixge.c 	if (phydev->link != priv->link || phydev->speed != priv->speed ||
link              432 drivers/net/ethernet/ni/nixge.c 		priv->link = phydev->link;
link              411 drivers/net/ethernet/nxp/lpc_eth.c 	int			link;
link              724 drivers/net/ethernet/nxp/lpc_eth.c 	if (phydev->link) {
link              733 drivers/net/ethernet/nxp/lpc_eth.c 	if (phydev->link != pldat->link) {
link              734 drivers/net/ethernet/nxp/lpc_eth.c 		if (!phydev->link) {
link              738 drivers/net/ethernet/nxp/lpc_eth.c 		pldat->link = phydev->link;
link              775 drivers/net/ethernet/nxp/lpc_eth.c 	pldat->link = 0;
link             1370 drivers/net/ethernet/nxp/lpc_eth.c 	pldat->link = 0;
link              981 drivers/net/ethernet/pasemi/pasemi_mac.c 	if (!dev->phydev->link) {
link              985 drivers/net/ethernet/pasemi/pasemi_mac.c 		if (mac->link && netif_msg_link(mac))
link              990 drivers/net/ethernet/pasemi/pasemi_mac.c 		mac->link = 0;
link             1023 drivers/net/ethernet/pasemi/pasemi_mac.c 	msg = mac->link != dev->phydev->link || flags != new_flags;
link             1027 drivers/net/ethernet/pasemi/pasemi_mac.c 	mac->link = dev->phydev->link;
link             1046 drivers/net/ethernet/pasemi/pasemi_mac.c 	mac->link = 0;
link               81 drivers/net/ethernet/pasemi/pasemi_mac.h 	int	link;
link             3946 drivers/net/ethernet/qlogic/qed/qed_dev.c 	struct qed_mcp_link_params *link;
link             4007 drivers/net/ethernet/qlogic/qed/qed_dev.c 	link = &p_hwfn->mcp_info->link_input;
link             4015 drivers/net/ethernet/qlogic/qed/qed_dev.c 	link->speed.advertised_speeds = link_temp;
link             4017 drivers/net/ethernet/qlogic/qed/qed_dev.c 	link_temp = link->speed.advertised_speeds;
link             4026 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.autoneg = true;
link             4029 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.forced_speed = 1000;
link             4032 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.forced_speed = 10000;
link             4035 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.forced_speed = 20000;
link             4038 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.forced_speed = 25000;
link             4041 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.forced_speed = 40000;
link             4044 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.forced_speed = 50000;
link             4047 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.forced_speed = 100000;
link             4054 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->speed.autoneg;
link             4058 drivers/net/ethernet/qlogic/qed/qed_dev.c 	link->pause.autoneg = !!(link_temp &
link             4060 drivers/net/ethernet/qlogic/qed/qed_dev.c 	link->pause.forced_rx = !!(link_temp &
link             4062 drivers/net/ethernet/qlogic/qed/qed_dev.c 	link->pause.forced_tx = !!(link_temp &
link             4064 drivers/net/ethernet/qlogic/qed/qed_dev.c 	link->loopback_mode = 0;
link             4072 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->eee.enable = true;
link             4076 drivers/net/ethernet/qlogic/qed/qed_dev.c 			link->eee.enable = false;
link             4090 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->eee.tx_lpi_timer = p_caps->eee_lpi_timer;
link             4091 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->eee.tx_lpi_enable = link->eee.enable;
link             4092 drivers/net/ethernet/qlogic/qed/qed_dev.c 		link->eee.adv_caps = QED_EEE_1G_ADV | QED_EEE_10G_ADV;
link             4100 drivers/net/ethernet/qlogic/qed/qed_dev.c 		   link->speed.forced_speed,
link             4101 drivers/net/ethernet/qlogic/qed/qed_dev.c 		   link->speed.advertised_speeds,
link             4102 drivers/net/ethernet/qlogic/qed/qed_dev.c 		   link->speed.autoneg,
link             4103 drivers/net/ethernet/qlogic/qed/qed_dev.c 		   link->pause.autoneg,
link             1631 drivers/net/ethernet/qlogic/qed/qed_main.c 			     struct qed_mcp_link_state *link,
link             1638 drivers/net/ethernet/qlogic/qed/qed_main.c 		qed_vf_get_link_state(hwfn, link);
link             1652 drivers/net/ethernet/qlogic/qed/qed_main.c 	memcpy(link, p, sizeof(*link));
link             1809 drivers/net/ethernet/qlogic/qed/qed_main.c 	struct qed_mcp_link_state link;
link             1815 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (qed_get_link_data(hwfn, &params, &link, &link_caps)) {
link             1821 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.link_up)
link             1847 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.link_up)
link             1848 drivers/net/ethernet/qlogic/qed/qed_main.c 		if_link->speed = link.speed;
link             1865 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_speed &
link             1868 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_speed & QED_LINK_PARTNER_SPEED_10G)
link             1870 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_speed & QED_LINK_PARTNER_SPEED_20G)
link             1872 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_speed & QED_LINK_PARTNER_SPEED_25G)
link             1874 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_speed & QED_LINK_PARTNER_SPEED_40G)
link             1876 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_speed & QED_LINK_PARTNER_SPEED_50G)
link             1878 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_speed & QED_LINK_PARTNER_SPEED_100G)
link             1881 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.an_complete)
link             1884 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_pause)
link             1886 drivers/net/ethernet/qlogic/qed/qed_main.c 	if (link.partner_adv_pause == QED_LINK_PARTNER_ASYMMETRIC_PAUSE ||
link             1887 drivers/net/ethernet/qlogic/qed/qed_main.c 	    link.partner_adv_pause == QED_LINK_PARTNER_BOTH_PAUSE)
link             1894 drivers/net/ethernet/qlogic/qed/qed_main.c 		if_link->eee_active = link.eee_active;
link             1897 drivers/net/ethernet/qlogic/qed/qed_main.c 		if_link->eee.adv_caps = link.eee_adv_caps ? link.eee_adv_caps :
link             1899 drivers/net/ethernet/qlogic/qed/qed_main.c 		if_link->eee.lp_adv_caps = link.eee_lp_adv_caps;
link              397 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	pci_read_config_byte(cdev->pdev, pos + PCI_SRIOV_FUNC_LINK, &iov->link);
link              959 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			     struct qed_mcp_link_state *link,
link              979 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->link_up = link->link_up;
link              980 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->speed = link->speed;
link              981 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->full_duplex = link->full_duplex;
link              982 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->autoneg = link->an;
link              983 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->autoneg_complete = link->an_complete;
link              984 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->parallel_detection = link->parallel_detection;
link              985 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->pfc_enabled = link->pfc_enabled;
link              986 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->partner_adv_speed = link->partner_adv_speed;
link              987 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->partner_tx_flow_ctrl_en = link->partner_tx_flow_ctrl_en;
link              988 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->partner_rx_flow_ctrl_en = link->partner_rx_flow_ctrl_en;
link              989 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->partner_adv_pause = link->partner_adv_pause;
link              990 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->sfp_tx_fault = link->sfp_tx_fault;
link             1110 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	struct qed_mcp_link_state link;
link             1129 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	memcpy(&link, qed_mcp_get_link_state(p_hwfn), sizeof(link));
link             1131 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	qed_iov_set_link(p_hwfn, rel_vf_id, &params, &link, &caps);
link             4684 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	struct qed_mcp_link_state link;
link             4699 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	qed_iov_get_link(hwfn, vf_id, NULL, &link, NULL);
link             4713 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	ivi->max_tx_rate = tx_rate ? tx_rate : link.speed;
link             4724 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	struct qed_mcp_link_state link;
link             4745 drivers/net/ethernet/qlogic/qed/qed_sriov.c 		memcpy(&link, qed_mcp_get_link_state(lead_hwfn), sizeof(link));
link             4752 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			link.link_up = false;
link             4755 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			link.link_up = true;
link             4760 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			link.speed = (hwfn->cdev->num_hwfns > 1) ?
link             4767 drivers/net/ethernet/qlogic/qed/qed_sriov.c 		if (link.link_up && vf_info->tx_rate) {
link             4771 drivers/net/ethernet/qlogic/qed/qed_sriov.c 			rate = min_t(int, vf_info->tx_rate, link.speed);
link             4781 drivers/net/ethernet/qlogic/qed/qed_sriov.c 				link.speed = rate;
link             4787 drivers/net/ethernet/qlogic/qed/qed_sriov.c 		qed_iov_set_link(hwfn, i, &params, &link, &caps);
link              126 drivers/net/ethernet/qlogic/qed/qed_sriov.h 	u8 link;		/* Function Dependency Link */
link             1565 drivers/net/ethernet/qlogic/qed/qed_vf.c 			   struct qed_mcp_link_state *link)
link             1567 drivers/net/ethernet/qlogic/qed/qed_vf.c 	__qed_vf_get_link_state(p_hwfn, link,
link              769 drivers/net/ethernet/qlogic/qed/qed_vf.h 			   struct qed_mcp_link_state *link);
link             1072 drivers/net/ethernet/qlogic/qed/qed_vf.h 					 struct qed_mcp_link_state *link)
link              135 drivers/net/ethernet/qlogic/qede/qede_main.c static void qede_link_update(void *dev, struct qed_link_output *link);
link             2392 drivers/net/ethernet/qlogic/qede/qede_main.c static void qede_link_update(void *dev, struct qed_link_output *link)
link             2401 drivers/net/ethernet/qlogic/qede/qede_main.c 	if (link->link_up) {
link              644 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG);
link              655 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG);
link              676 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG);
link              691 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG);
link              712 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG);
link              723 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG);
link              741 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG);
link              756 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG);
link             1184 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_info(qdev, link, qdev->ndev, "Auto-Negotiate complete\n");
link             1187 drivers/net/ethernet/qlogic/qla3xxx.c 	netif_info(qdev, link, qdev->ndev, "Auto-Negotiate incomplete\n");
link             1314 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_printk(qdev, link, KERN_DEBUG, qdev->ndev,
link             1319 drivers/net/ethernet/qlogic/qla3xxx.c 	netif_printk(qdev, link, KERN_DEBUG, qdev->ndev, "link master\n");
link             1468 drivers/net/ethernet/qlogic/qla3xxx.c 			netif_printk(qdev, link, KERN_DEBUG, qdev->ndev,
link             1484 drivers/net/ethernet/qlogic/qla3xxx.c 			netif_printk(qdev, link, KERN_DEBUG, qdev->ndev,
link             1492 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_info(qdev, link, qdev->ndev,
link             1500 drivers/net/ethernet/qlogic/qla3xxx.c 			netif_printk(qdev, link, KERN_DEBUG, qdev->ndev,
link             1529 drivers/net/ethernet/qlogic/qla3xxx.c 		netif_info(qdev, link, qdev->ndev,
link             1549 drivers/net/ethernet/qlogic/qla3xxx.c 			netif_info(qdev, link, qdev->ndev, "Link is up\n");
link             1566 drivers/net/ethernet/qlogic/qla3xxx.c 			netif_info(qdev, link, qdev->ndev, "Link is down\n");
link              919 drivers/net/ethernet/qualcomm/emac/emac-mac.c 	if (phydev->link) {
link              976 drivers/net/ethernet/rdc/r6040.c 	if (lp->old_link != phydev->link) {
link              978 drivers/net/ethernet/rdc/r6040.c 		lp->old_link = phydev->link;
link              982 drivers/net/ethernet/rdc/r6040.c 	if (phydev->link && (lp->old_duplex != phydev->duplex)) {
link             4316 drivers/net/ethernet/realtek/r8169_main.c 		netif_notice(tp, link, dev, "Promiscuous mode enabled\n");
link             1027 drivers/net/ethernet/renesas/ravb.h 	int link;
link              978 drivers/net/ethernet/renesas/ravb_main.c 	if (phydev->link) {
link              984 drivers/net/ethernet/renesas/ravb_main.c 		if (!priv->link) {
link              987 drivers/net/ethernet/renesas/ravb_main.c 			priv->link = phydev->link;
link              989 drivers/net/ethernet/renesas/ravb_main.c 	} else if (priv->link) {
link              991 drivers/net/ethernet/renesas/ravb_main.c 		priv->link = 0;
link              996 drivers/net/ethernet/renesas/ravb_main.c 	if (priv->no_avb_link && phydev->link)
link             1019 drivers/net/ethernet/renesas/ravb_main.c 	priv->link = 0;
link             1987 drivers/net/ethernet/renesas/sh_eth.c 	if (phydev->link) {
link             2001 drivers/net/ethernet/renesas/sh_eth.c 		if (!mdp->link) {
link             2004 drivers/net/ethernet/renesas/sh_eth.c 			mdp->link = phydev->link;
link             2006 drivers/net/ethernet/renesas/sh_eth.c 	} else if (mdp->link) {
link             2008 drivers/net/ethernet/renesas/sh_eth.c 		mdp->link = 0;
link             2014 drivers/net/ethernet/renesas/sh_eth.c 	if ((mdp->cd->no_psr || mdp->no_ether_link) && phydev->link)
link             2030 drivers/net/ethernet/renesas/sh_eth.c 	mdp->link = 0;
link              537 drivers/net/ethernet/renesas/sh_eth.h 	int link;
link              353 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h 	void (*set_eee_pls)(void __iomem *ioaddr, const int link);
link              370 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h 	struct mac_link link;
link              208 drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c static void  sxgbe_set_eee_pls(void __iomem *ioaddr, const int link)
link              215 drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c 	if (link)
link              159 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 		priv->hw->mac->set_eee_pls(priv->ioaddr, ndev->phydev->link);
link              216 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	if (phydev->link) {
link              230 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 				netif_err(priv, link, dev,
link              306 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 		   __func__, phydev->phy_id, phydev->link);
link             1985 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	ops_ptr->link.port	= 0;
link             1986 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	ops_ptr->link.duplex	= 0;
link             1987 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	ops_ptr->link.speed	= SXGBE_SPEED_10G;
link              976 drivers/net/ethernet/sfc/efx.c 		netif_info(efx, link, efx->net_dev,
link              981 drivers/net/ethernet/sfc/efx.c 		netif_info(efx, link, efx->net_dev, "link down\n");
link              927 drivers/net/ethernet/sfc/falcon/efx.c 		netif_info(efx, link, efx->net_dev,
link              932 drivers/net/ethernet/sfc/falcon/efx.c 		netif_info(efx, link, efx->net_dev, "link down\n");
link              285 drivers/net/ethernet/sfc/falcon/tenxpress.c 			netif_err(efx, link, efx->net_dev,
link              554 drivers/net/ethernet/sfc/mcdi_port.c 		netif_err(efx, link, efx->net_dev,
link              181 drivers/net/ethernet/sfc/ptp.c 	struct list_head link;
link             1168 drivers/net/ethernet/sfc/ptp.c 					 link);
link             1170 drivers/net/ethernet/sfc/ptp.c 				list_move(&evt->link, &ptp->evt_free_list);
link             1204 drivers/net/ethernet/sfc/ptp.c 		evt = list_entry(cursor, struct efx_ptp_event_rx, link);
link             1215 drivers/net/ethernet/sfc/ptp.c 			list_move(&evt->link, &ptp->evt_free_list);
link             1485 drivers/net/ethernet/sfc/ptp.c 		list_add(&ptp->rx_evts[pos].link, &ptp->evt_free_list);
link             1875 drivers/net/ethernet/sfc/ptp.c 				       struct efx_ptp_event_rx, link);
link             1876 drivers/net/ethernet/sfc/ptp.c 		list_del(&evt->link);
link             1890 drivers/net/ethernet/sfc/ptp.c 		list_add_tail(&evt->link, &ptp->evt_list);
link              143 drivers/net/ethernet/sfc/siena_sriov.c 	struct list_head link;
link              155 drivers/net/ethernet/sfc/siena_sriov.c 	struct list_head link;
link              436 drivers/net/ethernet/sfc/siena_sriov.c 	list_for_each_entry(epp, &nic_data->local_page_list, link) {
link             1117 drivers/net/ethernet/sfc/siena_sriov.c 	list_for_each_entry(local_addr, &nic_data->local_addr_list, link) {
link             1136 drivers/net/ethernet/sfc/siena_sriov.c 					&pages, struct efx_endpoint_page, link);
link             1137 drivers/net/ethernet/sfc/siena_sriov.c 				list_del(&epp->link);
link             1140 drivers/net/ethernet/sfc/siena_sriov.c 			list_add_tail(&epp->link, &nic_data->local_page_list);
link             1151 drivers/net/ethernet/sfc/siena_sriov.c 			&pages, struct efx_endpoint_page, link);
link             1152 drivers/net/ethernet/sfc/siena_sriov.c 		list_del(&epp->link);
link             1177 drivers/net/ethernet/sfc/siena_sriov.c 					      struct efx_local_addr, link);
link             1178 drivers/net/ethernet/sfc/siena_sriov.c 		list_del(&local_addr->link);
link             1184 drivers/net/ethernet/sfc/siena_sriov.c 				       struct efx_endpoint_page, link);
link             1185 drivers/net/ethernet/sfc/siena_sriov.c 		list_del(&epp->link);
link              937 drivers/net/ethernet/sis/sis190.c 		netif_warn(tp, link, dev, "auto-negotiating...\n");
link              963 drivers/net/ethernet/sis/sis190.c 		netif_info(tp, link, dev, "mii ext = %04x\n", val);
link              968 drivers/net/ethernet/sis/sis190.c 		netif_info(tp, link, dev, "mii lpa=%04x adv=%04x exp=%04x\n",
link             1010 drivers/net/ethernet/sis/sis190.c 		netif_info(tp, link, dev, "link on %s mode\n", p->msg);
link             1717 drivers/net/ethernet/sis/sis190.c 	netif_info(tp, link, dev, "Enabling Auto-negotiation\n");
link              157 drivers/net/ethernet/sis/sis900.c 	u32 link;
link             1137 drivers/net/ethernet/sis/sis900.c 		sis_priv->tx_ring[i].link = sis_priv->tx_ring_dma +
link             1172 drivers/net/ethernet/sis/sis900.c 		sis_priv->rx_ring[i].link = sis_priv->rx_ring_dma +
link              268 drivers/net/ethernet/smsc/smc91c92_cs.c static int smc91c92_config(struct pcmcia_device *link);
link              269 drivers/net/ethernet/smsc/smc91c92_cs.c static void smc91c92_release(struct pcmcia_device *link);
link              302 drivers/net/ethernet/smsc/smc91c92_cs.c static int smc91c92_probe(struct pcmcia_device *link)
link              307 drivers/net/ethernet/smsc/smc91c92_cs.c     dev_dbg(&link->dev, "smc91c92_attach()\n");
link              314 drivers/net/ethernet/smsc/smc91c92_cs.c     smc->p_dev = link;
link              315 drivers/net/ethernet/smsc/smc91c92_cs.c     link->priv = dev;
link              330 drivers/net/ethernet/smsc/smc91c92_cs.c     return smc91c92_config(link);
link              333 drivers/net/ethernet/smsc/smc91c92_cs.c static void smc91c92_detach(struct pcmcia_device *link)
link              335 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              337 drivers/net/ethernet/smsc/smc91c92_cs.c     dev_dbg(&link->dev, "smc91c92_detach\n");
link              341 drivers/net/ethernet/smsc/smc91c92_cs.c     smc91c92_release(link);
link              378 drivers/net/ethernet/smsc/smc91c92_cs.c static int mhz_3288_power(struct pcmcia_device *link)
link              380 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              393 drivers/net/ethernet/smsc/smc91c92_cs.c     tmp = readb(smc->base + link->config_base + CISREG_COR);
link              395 drivers/net/ethernet/smsc/smc91c92_cs.c     writeb(tmp, smc->base + link->config_base + CISREG_COR);
link              421 drivers/net/ethernet/smsc/smc91c92_cs.c static int mhz_mfc_config(struct pcmcia_device *link)
link              423 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              428 drivers/net/ethernet/smsc/smc91c92_cs.c     link->config_flags |= CONF_ENABLE_SPKR | CONF_ENABLE_IRQ |
link              433 drivers/net/ethernet/smsc/smc91c92_cs.c     if (pcmcia_loop_config(link, mhz_mfc_config_check, NULL))
link              436 drivers/net/ethernet/smsc/smc91c92_cs.c     dev->base_addr = link->resource[0]->start;
link              439 drivers/net/ethernet/smsc/smc91c92_cs.c     link->resource[2]->flags = WIN_DATA_WIDTH_8|WIN_MEMORY_TYPE_AM|WIN_ENABLE;
link              440 drivers/net/ethernet/smsc/smc91c92_cs.c     link->resource[2]->start = link->resource[2]->end = 0;
link              441 drivers/net/ethernet/smsc/smc91c92_cs.c     i = pcmcia_request_window(link, link->resource[2], 0);
link              445 drivers/net/ethernet/smsc/smc91c92_cs.c     smc->base = ioremap(link->resource[2]->start,
link              446 drivers/net/ethernet/smsc/smc91c92_cs.c 		    resource_size(link->resource[2]));
link              447 drivers/net/ethernet/smsc/smc91c92_cs.c     offset = (smc->manfid == MANFID_MOTOROLA) ? link->config_base : 0;
link              448 drivers/net/ethernet/smsc/smc91c92_cs.c     i = pcmcia_map_mem_page(link, link->resource[2], offset);
link              452 drivers/net/ethernet/smsc/smc91c92_cs.c 	    mhz_3288_power(link);
link              476 drivers/net/ethernet/smsc/smc91c92_cs.c static int mhz_setup(struct pcmcia_device *link)
link              478 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              485 drivers/net/ethernet/smsc/smc91c92_cs.c     if ((link->prod_id[3]) &&
link              486 drivers/net/ethernet/smsc/smc91c92_cs.c 	(cvt_ascii_address(dev, link->prod_id[3]) == 0))
link              491 drivers/net/ethernet/smsc/smc91c92_cs.c     if (!pcmcia_loop_tuple(link, CISTPL_VERS_1, pcmcia_get_versmac, dev))
link              496 drivers/net/ethernet/smsc/smc91c92_cs.c     len = pcmcia_get_tuple(link, 0x81, &buf);
link              516 drivers/net/ethernet/smsc/smc91c92_cs.c static void mot_config(struct pcmcia_device *link)
link              518 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              521 drivers/net/ethernet/smsc/smc91c92_cs.c     unsigned int iouart = link->resource[1]->start;
link              537 drivers/net/ethernet/smsc/smc91c92_cs.c static int mot_setup(struct pcmcia_device *link)
link              539 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              580 drivers/net/ethernet/smsc/smc91c92_cs.c static int smc_config(struct pcmcia_device *link)
link              582 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              585 drivers/net/ethernet/smsc/smc91c92_cs.c     link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              587 drivers/net/ethernet/smsc/smc91c92_cs.c     i = pcmcia_loop_config(link, smc_configcheck, NULL);
link              589 drivers/net/ethernet/smsc/smc91c92_cs.c 	    dev->base_addr = link->resource[0]->start;
link              595 drivers/net/ethernet/smsc/smc91c92_cs.c static int smc_setup(struct pcmcia_device *link)
link              597 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              600 drivers/net/ethernet/smsc/smc91c92_cs.c     if (!pcmcia_get_mac_from_cis(link, dev))
link              604 drivers/net/ethernet/smsc/smc91c92_cs.c     if (link->prod_id[2]) {
link              605 drivers/net/ethernet/smsc/smc91c92_cs.c 	    if (cvt_ascii_address(dev, link->prod_id[2]) == 0)
link              613 drivers/net/ethernet/smsc/smc91c92_cs.c static int osi_config(struct pcmcia_device *link)
link              615 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              619 drivers/net/ethernet/smsc/smc91c92_cs.c     link->config_flags |= CONF_ENABLE_SPKR | CONF_ENABLE_IRQ;
link              620 drivers/net/ethernet/smsc/smc91c92_cs.c     link->resource[0]->end = 64;
link              621 drivers/net/ethernet/smsc/smc91c92_cs.c     link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
link              622 drivers/net/ethernet/smsc/smc91c92_cs.c     link->resource[1]->end = 8;
link              625 drivers/net/ethernet/smsc/smc91c92_cs.c     link->io_lines = 16;
link              626 drivers/net/ethernet/smsc/smc91c92_cs.c     link->config_index = 0x23;
link              629 drivers/net/ethernet/smsc/smc91c92_cs.c 	link->resource[1]->start = com[j];
link              630 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = pcmcia_request_io(link);
link              636 drivers/net/ethernet/smsc/smc91c92_cs.c 	link->config_index = 0x03;
link              637 drivers/net/ethernet/smsc/smc91c92_cs.c 	link->resource[1]->end = 0;
link              638 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = pcmcia_request_io(link);
link              640 drivers/net/ethernet/smsc/smc91c92_cs.c     dev->base_addr = link->resource[0]->start + 0x10;
link              644 drivers/net/ethernet/smsc/smc91c92_cs.c static int osi_load_firmware(struct pcmcia_device *link)
link              649 drivers/net/ethernet/smsc/smc91c92_cs.c 	err = request_firmware(&fw, FIRMWARE_NAME, &link->dev);
link              657 drivers/net/ethernet/smsc/smc91c92_cs.c 	    outb(fw->data[i], link->resource[0]->start + 2);
link              681 drivers/net/ethernet/smsc/smc91c92_cs.c static int osi_setup(struct pcmcia_device *link, u_short manfid, u_short cardid)
link              683 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              687 drivers/net/ethernet/smsc/smc91c92_cs.c     if (pcmcia_loop_tuple(link, 0x90, pcmcia_osi_mac, dev))
link              694 drivers/net/ethernet/smsc/smc91c92_cs.c 	rc = osi_load_firmware(link);
link              699 drivers/net/ethernet/smsc/smc91c92_cs.c 	set_bits(0x300, link->resource[0]->start + OSITECH_AUI_PWR);
link              701 drivers/net/ethernet/smsc/smc91c92_cs.c 	set_bits(0x300, link->resource[0]->start + OSITECH_RESET_ISR);
link              702 drivers/net/ethernet/smsc/smc91c92_cs.c 	dev_dbg(&link->dev, "AUI/PWR: %4.4x RESET/ISR: %4.4x\n",
link              703 drivers/net/ethernet/smsc/smc91c92_cs.c 	      inw(link->resource[0]->start + OSITECH_AUI_PWR),
link              704 drivers/net/ethernet/smsc/smc91c92_cs.c 	      inw(link->resource[0]->start + OSITECH_RESET_ISR));
link              709 drivers/net/ethernet/smsc/smc91c92_cs.c static int smc91c92_suspend(struct pcmcia_device *link)
link              711 drivers/net/ethernet/smsc/smc91c92_cs.c 	struct net_device *dev = link->priv;
link              713 drivers/net/ethernet/smsc/smc91c92_cs.c 	if (link->open)
link              719 drivers/net/ethernet/smsc/smc91c92_cs.c static int smc91c92_resume(struct pcmcia_device *link)
link              721 drivers/net/ethernet/smsc/smc91c92_cs.c 	struct net_device *dev = link->priv;
link              727 drivers/net/ethernet/smsc/smc91c92_cs.c 		mhz_3288_power(link);
link              729 drivers/net/ethernet/smsc/smc91c92_cs.c 		mot_config(link);
link              740 drivers/net/ethernet/smsc/smc91c92_cs.c 		i = osi_load_firmware(link);
link              746 drivers/net/ethernet/smsc/smc91c92_cs.c 	if (link->open) {
link              762 drivers/net/ethernet/smsc/smc91c92_cs.c static int check_sig(struct pcmcia_device *link)
link              764 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              777 drivers/net/ethernet/smsc/smc91c92_cs.c     width = (link->resource[0]->flags == IO_DATA_PATH_WIDTH_AUTO);
link              797 drivers/net/ethernet/smsc/smc91c92_cs.c 	    smc91c92_suspend(link);
link              798 drivers/net/ethernet/smsc/smc91c92_cs.c 	    pcmcia_fixup_iowidth(link);
link              799 drivers/net/ethernet/smsc/smc91c92_cs.c 	    smc91c92_resume(link);
link              800 drivers/net/ethernet/smsc/smc91c92_cs.c 	    return check_sig(link);
link              805 drivers/net/ethernet/smsc/smc91c92_cs.c static int smc91c92_config(struct pcmcia_device *link)
link              807 drivers/net/ethernet/smsc/smc91c92_cs.c     struct net_device *dev = link->priv;
link              814 drivers/net/ethernet/smsc/smc91c92_cs.c     dev_dbg(&link->dev, "smc91c92_config\n");
link              816 drivers/net/ethernet/smsc/smc91c92_cs.c     smc->manfid = link->manf_id;
link              817 drivers/net/ethernet/smsc/smc91c92_cs.c     smc->cardid = link->card_id;
link              821 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = osi_config(link);
link              826 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = mhz_mfc_config(link);
link              828 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = smc_config(link);
link              833 drivers/net/ethernet/smsc/smc91c92_cs.c     i = pcmcia_request_irq(link, smc_interrupt);
link              836 drivers/net/ethernet/smsc/smc91c92_cs.c     i = pcmcia_enable_device(link);
link              841 drivers/net/ethernet/smsc/smc91c92_cs.c 	mot_config(link);
link              843 drivers/net/ethernet/smsc/smc91c92_cs.c     dev->irq = link->irq;
link              848 drivers/net/ethernet/smsc/smc91c92_cs.c 	dev_notice(&link->dev, "invalid if_port requested\n");
link              853 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = osi_setup(link, smc->manfid, smc->cardid); break;
link              856 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = smc_setup(link); break;
link              859 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = mhz_setup(link); break;
link              862 drivers/net/ethernet/smsc/smc91c92_cs.c 	i = mot_setup(link); break;
link              866 drivers/net/ethernet/smsc/smc91c92_cs.c 	dev_notice(&link->dev, "Unable to find hardware address.\n");
link              873 drivers/net/ethernet/smsc/smc91c92_cs.c     rev = check_sig(link);
link              916 drivers/net/ethernet/smsc/smc91c92_cs.c     SET_NETDEV_DEV(dev, &link->dev);
link              919 drivers/net/ethernet/smsc/smc91c92_cs.c 	dev_err(&link->dev, "register_netdev() failed\n");
link              948 drivers/net/ethernet/smsc/smc91c92_cs.c     smc91c92_release(link);
link              953 drivers/net/ethernet/smsc/smc91c92_cs.c static void smc91c92_release(struct pcmcia_device *link)
link              955 drivers/net/ethernet/smsc/smc91c92_cs.c 	dev_dbg(&link->dev, "smc91c92_release\n");
link              956 drivers/net/ethernet/smsc/smc91c92_cs.c 	if (link->resource[2]->end) {
link              957 drivers/net/ethernet/smsc/smc91c92_cs.c 		struct net_device *dev = link->priv;
link              961 drivers/net/ethernet/smsc/smc91c92_cs.c 	pcmcia_disable_device(link);
link             1050 drivers/net/ethernet/smsc/smc91c92_cs.c     struct pcmcia_device *link = smc->p_dev;
link             1052 drivers/net/ethernet/smsc/smc91c92_cs.c     dev_dbg(&link->dev, "%s: smc_open(%p), ID/Window %4.4x.\n",
link             1059 drivers/net/ethernet/smsc/smc91c92_cs.c     if (!pcmcia_dev_present(link))
link             1062 drivers/net/ethernet/smsc/smc91c92_cs.c     if (check_sig(link) < 0) {
link             1066 drivers/net/ethernet/smsc/smc91c92_cs.c     link->open++;
link             1084 drivers/net/ethernet/smsc/smc91c92_cs.c     struct pcmcia_device *link = smc->p_dev;
link             1087 drivers/net/ethernet/smsc/smc91c92_cs.c     dev_dbg(&link->dev, "%s: smc_close(), status %4.4x.\n",
link             1104 drivers/net/ethernet/smsc/smc91c92_cs.c     link->open--;
link             1717 drivers/net/ethernet/smsc/smc91c92_cs.c     u_short link;
link             1769 drivers/net/ethernet/smsc/smc91c92_cs.c 	link = mdio_read(dev, smc->mii_if.phy_id, 1);
link             1770 drivers/net/ethernet/smsc/smc91c92_cs.c 	if (!link || (link == 0xffff)) {
link             1776 drivers/net/ethernet/smsc/smc91c92_cs.c 	link &= 0x0004;
link             1777 drivers/net/ethernet/smsc/smc91c92_cs.c 	if (link != smc->link_status) {
link             1779 drivers/net/ethernet/smsc/smc91c92_cs.c 	    netdev_info(dev, "%s link beat\n", link ? "found" : "lost");
link             1782 drivers/net/ethernet/smsc/smc91c92_cs.c 	    if (link) {
link             1789 drivers/net/ethernet/smsc/smc91c92_cs.c 	    smc->link_status = link;
link             1060 drivers/net/ethernet/smsc/smsc9420.c 		netif_info(pd, link, pd->dev, "rx pause %s, tx pause %s\n",
link             1064 drivers/net/ethernet/smsc/smsc9420.c 		netif_info(pd, link, pd->dev, "half duplex\n");
link             1082 drivers/net/ethernet/smsc/smsc9420.c 			netif_dbg(pd, link, pd->dev, "full duplex mode\n");
link             1085 drivers/net/ethernet/smsc/smsc9420.c 			netif_dbg(pd, link, pd->dev, "half duplex mode\n");
link             1097 drivers/net/ethernet/smsc/smsc9420.c 			netif_dbg(pd, link, pd->dev, "carrier OK\n");
link             1099 drivers/net/ethernet/smsc/smsc9420.c 			netif_dbg(pd, link, pd->dev, "no carrier\n");
link             1558 drivers/net/ethernet/socionext/netsec.c 	if (ndev->phydev->link)
link             1617 drivers/net/ethernet/socionext/netsec.c 			netif_err(priv, link, priv->ndev, "missing PHY\n");
link             1626 drivers/net/ethernet/socionext/netsec.c 			netif_err(priv, link, priv->ndev,
link              443 drivers/net/ethernet/stmicro/stmmac/common.h 	struct mac_link link;
link             1056 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	mac->link.speed_mask = GENMASK(3, 2) | EMAC_LOOPBACK;
link             1057 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	mac->link.speed10 = EMAC_SPEED_10;
link             1058 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	mac->link.speed100 = EMAC_SPEED_100;
link             1059 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	mac->link.speed1000 = EMAC_SPEED_1000;
link             1060 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	mac->link.duplex = EMAC_DUPLEX_FULL;
link               50 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 		value &= ~hw->link.speed_mask;
link               53 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 			value |= hw->link.speed1000;
link               56 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 			value |= hw->link.speed100;
link               59 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 			value |= hw->link.speed10;
link              379 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c static void dwmac1000_set_eee_pls(struct mac_device_info *hw, int link)
link              386 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	if (link)
link              549 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	mac->link.duplex = GMAC_CONTROL_DM;
link              550 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	mac->link.speed10 = GMAC_CONTROL_PS;
link              551 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	mac->link.speed100 = GMAC_CONTROL_PS | GMAC_CONTROL_FES;
link              552 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	mac->link.speed1000 = 0;
link              553 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	mac->link.speed_mask = GMAC_CONTROL_PS | GMAC_CONTROL_FES;
link              186 drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c 	mac->link.duplex = MAC_CONTROL_F;
link              187 drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c 	mac->link.speed10 = 0;
link              188 drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c 	mac->link.speed100 = 0;
link              189 drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c 	mac->link.speed1000 = 0;
link              190 drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c 	mac->link.speed_mask = MAC_CONTROL_PS;
link               34 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 		value &= hw->link.speed_mask;
link               37 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 			value |= hw->link.speed1000;
link               40 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 			value |= hw->link.speed100;
link               43 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 			value |= hw->link.speed10;
link              367 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c static void dwmac4_set_eee_pls(struct mac_device_info *hw, int link)
link              374 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 	if (link)
link              930 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 	mac->link.duplex = GMAC_CONFIG_DM;
link              931 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 	mac->link.speed10 = GMAC_CONFIG_PS;
link              932 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 	mac->link.speed100 = GMAC_CONFIG_FES | GMAC_CONFIG_PS;
link              933 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 	mac->link.speed1000 = 0;
link              934 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 	mac->link.speed_mask = GMAC_CONFIG_FES | GMAC_CONFIG_PS;
link               28 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 		tx &= ~hw->link.speed_mask;
link               32 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 			tx |= hw->link.xgmii.speed10000;
link               35 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 			tx |= hw->link.speed2500;
link               39 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 			tx |= hw->link.speed1000;
link              393 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static void dwxgmac2_set_eee_pls(struct mac_device_info *hw, int link)
link              399 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	if (link)
link             1407 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.duplex = 0;
link             1408 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.speed10 = XGMAC_CONFIG_SS_10_MII;
link             1409 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.speed100 = XGMAC_CONFIG_SS_100_MII;
link             1410 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.speed1000 = XGMAC_CONFIG_SS_1000_GMII;
link             1411 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.speed2500 = XGMAC_CONFIG_SS_2500_GMII;
link             1412 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.xgmii.speed2500 = XGMAC_CONFIG_SS_2500;
link             1413 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.xgmii.speed5000 = XGMAC_CONFIG_SS_5000;
link             1414 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.xgmii.speed10000 = XGMAC_CONFIG_SS_10000;
link             1415 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->link.speed_mask = XGMAC_CONFIG_SS_MASK;
link              331 drivers/net/ethernet/stmicro/stmmac/hwif.h 	void (*set_eee_pls)(struct mac_device_info *hw, int link);
link              885 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	ctrl &= ~priv->hw->link.speed_mask;
link              890 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			ctrl |= priv->hw->link.xgmii.speed10000;
link              893 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			ctrl |= priv->hw->link.xgmii.speed5000;
link              896 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			ctrl |= priv->hw->link.xgmii.speed2500;
link              904 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			ctrl |= priv->hw->link.speed2500;
link              907 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			ctrl |= priv->hw->link.speed1000;
link              910 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			ctrl |= priv->hw->link.speed100;
link              913 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			ctrl |= priv->hw->link.speed10;
link              926 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		ctrl &= ~priv->hw->link.duplex;
link              928 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		ctrl |= priv->hw->link.duplex;
link             1011 drivers/net/ethernet/sun/cassini.c 		netif_info(cp, link, cp->dev, "PCS RemoteFault\n");
link             1059 drivers/net/ethernet/sun/cassini.c 			netif_info(cp, link, cp->dev, "PCS link down\n");
link             1571 drivers/net/ethernet/sun/cassini.c 		netif_info(cp, link, cp->dev, "Autoneg failed again, keeping forced mode\n");
link             1640 drivers/net/ethernet/sun/cassini.c 				netif_info(cp, link, cp->dev,
link             1669 drivers/net/ethernet/sun/cassini.c 			netif_info(cp, link, cp->dev, "Link down\n");
link             3614 drivers/net/ethernet/sun/cassini.c 	netif_info(cp, link, cp->dev, "Link up at %d Mbps, %s-duplex\n",
link             1894 drivers/net/ethernet/sun/niu.c 		netif_info(np, link, dev, "Link is up at %s, %s duplex\n",
link             1908 drivers/net/ethernet/sun/niu.c 		netif_warn(np, link, dev, "Link is down\n");
link             2174 drivers/net/ethernet/sun/niu.c 				netif_warn(np, link, np->dev,
link             3279 drivers/net/ethernet/sun/niu.c 				    struct page ***link)
link             3288 drivers/net/ethernet/sun/niu.c 			*link = pp;
link             3371 drivers/net/ethernet/sun/niu.c 		struct page *page, **link;
link             3380 drivers/net/ethernet/sun/niu.c 		page = niu_find_rxpage(rp, addr, &link);
link             3385 drivers/net/ethernet/sun/niu.c 			*link = (struct page *) page->mapping;
link             3418 drivers/net/ethernet/sun/niu.c 		struct page *page, **link;
link             3432 drivers/net/ethernet/sun/niu.c 		page = niu_find_rxpage(rp, addr, &link);
link             3454 drivers/net/ethernet/sun/niu.c 			*link = (struct page *) page->mapping;
link             1372 drivers/net/ethernet/sun/sungem.c 	netif_info(gp, link, gp->dev, "Link is up at %d Mbps, %s-duplex\n",
link             1462 drivers/net/ethernet/sun/sungem.c 		netif_info(gp, link, gp->dev,
link             1476 drivers/net/ethernet/sun/sungem.c 		netif_info(gp, link, gp->dev, "switching to forced 100bt\n");
link             1492 drivers/net/ethernet/sun/sungem.c 			netif_info(gp, link, gp->dev,
link             1555 drivers/net/ethernet/sun/sungem.c 			netif_info(gp, link, dev, "Link down\n");
link              199 drivers/net/ethernet/tehuti/tehuti.c 	u32 link = READ_REG(priv, regMAC_LNK_STAT) & MAC_LINK_STAT;
link              201 drivers/net/ethernet/tehuti/tehuti.c 	if (!link) {
link              880 drivers/net/ethernet/ti/cpmac.c 	if (dev->phydev->link) {
link             1057 drivers/net/ethernet/ti/cpsw.c 			      struct cpsw_priv *priv, bool *link)
link             1069 drivers/net/ethernet/ti/cpsw.c 	if (phy->link) {
link             1097 drivers/net/ethernet/ti/cpsw.c 		*link = true;
link             1126 drivers/net/ethernet/ti/cpsw.c 		if (cpsw->slaves[i].phy && cpsw->slaves[i].phy->link)
link             1163 drivers/net/ethernet/ti/cpsw.c 	bool			link = false;
link             1165 drivers/net/ethernet/ti/cpsw.c 	for_each_slave(priv, _cpsw_adjust_link, priv, &link);
link             1167 drivers/net/ethernet/ti/cpsw.c 	if (link) {
link             1559 drivers/net/ethernet/ti/cpsw.c 	if (slave->phy && slave->phy->link) {
link             2446 drivers/net/ethernet/ti/cpsw.c 	bool link;
link             2451 drivers/net/ethernet/ti/cpsw.c 	for_each_slave(priv, _cpsw_adjust_link, priv, &link);
link              322 drivers/net/ethernet/ti/davinci_emac.c 	u32 link; /* 1=link on, 0=link off */
link              517 drivers/net/ethernet/ti/davinci_emac.c 	if ((priv->link) && (new_duplex != cur_duplex)) {
link              543 drivers/net/ethernet/ti/davinci_emac.c 	if (priv->link) {
link              939 drivers/net/ethernet/ti/davinci_emac.c 	if (unlikely(!priv->link)) {
link             1318 drivers/net/ethernet/ti/davinci_emac.c 	if (phydev->link) {
link             1328 drivers/net/ethernet/ti/davinci_emac.c 		if (!priv->link) {
link             1330 drivers/net/ethernet/ti/davinci_emac.c 			priv->link = 1;
link             1333 drivers/net/ethernet/ti/davinci_emac.c 	} else if (priv->link) {
link             1335 drivers/net/ethernet/ti/davinci_emac.c 		priv->link = 0;
link             1509 drivers/net/ethernet/ti/davinci_emac.c 		priv->link = 0;
link             1519 drivers/net/ethernet/ti/davinci_emac.c 		priv->link = 1;
link               54 drivers/net/ethernet/ti/davinci_mdio.c 	u32	link;
link             2125 drivers/net/ethernet/ti/netcp_ethss.c 	 return !slave->phy || slave->phy->link;
link               81 drivers/net/ethernet/ti/netcp_sgmii.c 	u32 status = 0, link = 0;
link               85 drivers/net/ethernet/ti/netcp_sgmii.c 		link = 1;
link               86 drivers/net/ethernet/ti/netcp_sgmii.c 	return link;
link              410 drivers/net/ethernet/toshiba/tc35815.c 	int link;
link              547 drivers/net/ethernet/toshiba/tc35815.c 	if (phydev->link &&
link              583 drivers/net/ethernet/toshiba/tc35815.c 	if (phydev->link != lp->link) {
link              584 drivers/net/ethernet/toshiba/tc35815.c 		if (phydev->link) {
link              592 drivers/net/ethernet/toshiba/tc35815.c 		lp->link = phydev->link;
link              650 drivers/net/ethernet/toshiba/tc35815.c 	lp->link = 0;
link             1673 drivers/net/ethernet/toshiba/tc35815.c 	if (!lp->link || lp->duplex == DUPLEX_FULL)
link             1913 drivers/net/ethernet/toshiba/tc35815.c 		if (!lp->link)
link             2103 drivers/net/ethernet/toshiba/tc35815.c 	if (!dev->phydev || !lp->link || lp->duplex == DUPLEX_FULL)
link             1376 drivers/net/ethernet/via/via-rhine.c 	netif_info(rp, link, dev, "force_media %d, carrier %d\n",
link             1394 drivers/net/ethernet/via/via-rhine.c 	netif_info(rp, link, dev, "force_media %d, carrier %d\n",
link              952 drivers/net/ethernet/wiznet/w5100.c 			netif_info(priv, link, ndev, "link is up\n");
link              955 drivers/net/ethernet/wiznet/w5100.c 			netif_info(priv, link, ndev, "link is down\n");
link              446 drivers/net/ethernet/wiznet/w5300.c 			netif_info(priv, link, ndev, "link is up\n");
link              449 drivers/net/ethernet/wiznet/w5300.c 			netif_info(priv, link, ndev, "link is down\n");
link              713 drivers/net/ethernet/xilinx/ll_temac_main.c 	link_state = phy->speed | (phy->duplex << 1) | phy->link;
link              898 drivers/net/ethernet/xilinx/xilinx_emaclite.c 	link_state = phy->speed | (phy->duplex << 1) | phy->link;
link              262 drivers/net/ethernet/xircom/xirc2ps_cs.c static int has_ce2_string(struct pcmcia_device * link);
link              263 drivers/net/ethernet/xircom/xirc2ps_cs.c static int xirc2ps_config(struct pcmcia_device * link);
link              264 drivers/net/ethernet/xircom/xirc2ps_cs.c static void xirc2ps_release(struct pcmcia_device * link);
link              295 drivers/net/ethernet/xircom/xirc2ps_cs.c static int set_card_type(struct pcmcia_device *link);
link              474 drivers/net/ethernet/xircom/xirc2ps_cs.c xirc2ps_probe(struct pcmcia_device *link)
link              479 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev_dbg(&link->dev, "attach()\n");
link              487 drivers/net/ethernet/xircom/xirc2ps_cs.c     local->p_dev = link;
link              488 drivers/net/ethernet/xircom/xirc2ps_cs.c     link->priv = dev;
link              491 drivers/net/ethernet/xircom/xirc2ps_cs.c     link->config_index = 1;
link              499 drivers/net/ethernet/xircom/xirc2ps_cs.c     return xirc2ps_config(link);
link              503 drivers/net/ethernet/xircom/xirc2ps_cs.c xirc2ps_detach(struct pcmcia_device *link)
link              505 drivers/net/ethernet/xircom/xirc2ps_cs.c     struct net_device *dev = link->priv;
link              507 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev_dbg(&link->dev, "detach\n");
link              511 drivers/net/ethernet/xircom/xirc2ps_cs.c     xirc2ps_release(link);
link              535 drivers/net/ethernet/xircom/xirc2ps_cs.c set_card_type(struct pcmcia_device *link)
link              537 drivers/net/ethernet/xircom/xirc2ps_cs.c     struct net_device *dev = link->priv;
link              543 drivers/net/ethernet/xircom/xirc2ps_cs.c     len = pcmcia_get_tuple(link, CISTPL_MANFID, &buf);
link              545 drivers/net/ethernet/xircom/xirc2ps_cs.c 	    dev_err(&link->dev, "invalid CIS -- sorry\n");
link              553 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev_dbg(&link->dev, "cisrev=%02x mediaid=%02x prodid=%02x\n",
link              587 drivers/net/ethernet/xircom/xirc2ps_cs.c 	  case 1: local->card_type = has_ce2_string(link)? XIR_CE2 : XIR_CE ;
link              689 drivers/net/ethernet/xircom/xirc2ps_cs.c xirc2ps_config(struct pcmcia_device * link)
link              691 drivers/net/ethernet/xircom/xirc2ps_cs.c     struct net_device *dev = link->priv;
link              700 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev_dbg(&link->dev, "config\n");
link              703 drivers/net/ethernet/xircom/xirc2ps_cs.c     if (link->has_manf_id == 0) {
link              708 drivers/net/ethernet/xircom/xirc2ps_cs.c     switch (link->manf_id) {
link              727 drivers/net/ethernet/xircom/xirc2ps_cs.c 		  (unsigned)link->manf_id);
link              730 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev_dbg(&link->dev, "found %s card\n", local->manf_str);
link              732 drivers/net/ethernet/xircom/xirc2ps_cs.c     if (!set_card_type(link)) {
link              738 drivers/net/ethernet/xircom/xirc2ps_cs.c     err = pcmcia_get_mac_from_cis(link, dev);
link              742 drivers/net/ethernet/xircom/xirc2ps_cs.c 	    len = pcmcia_get_tuple(link, 0x89, &buf);
link              756 drivers/net/ethernet/xircom/xirc2ps_cs.c 	err = pcmcia_loop_tuple(link, CISTPL_FUNCE, pcmcia_get_mac_ce, dev);
link              765 drivers/net/ethernet/xircom/xirc2ps_cs.c 	link->config_flags |= CONF_AUTO_SET_IO;
link              770 drivers/net/ethernet/xircom/xirc2ps_cs.c 	    if (!pcmcia_loop_config(link, xirc2ps_config_modem, NULL))
link              779 drivers/net/ethernet/xircom/xirc2ps_cs.c 		    if (!pcmcia_loop_config(link, xirc2ps_config_check,
link              788 drivers/net/ethernet/xircom/xirc2ps_cs.c 	link->io_lines = 10;
link              789 drivers/net/ethernet/xircom/xirc2ps_cs.c 	link->resource[0]->end = 16;
link              790 drivers/net/ethernet/xircom/xirc2ps_cs.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
link              792 drivers/net/ethernet/xircom/xirc2ps_cs.c 	    link->resource[0]->start = ioaddr;
link              793 drivers/net/ethernet/xircom/xirc2ps_cs.c 	    if (!(err = pcmcia_request_io(link)))
link              796 drivers/net/ethernet/xircom/xirc2ps_cs.c 	link->resource[0]->start = 0; /* let CS decide */
link              797 drivers/net/ethernet/xircom/xirc2ps_cs.c 	if ((err = pcmcia_request_io(link)))
link              808 drivers/net/ethernet/xircom/xirc2ps_cs.c     if ((err=pcmcia_request_irq(link, xirc2ps_interrupt)))
link              811 drivers/net/ethernet/xircom/xirc2ps_cs.c     link->config_flags |= CONF_ENABLE_IRQ;
link              813 drivers/net/ethernet/xircom/xirc2ps_cs.c 	    link->config_flags |= CONF_ENABLE_SPKR;
link              815 drivers/net/ethernet/xircom/xirc2ps_cs.c     if ((err = pcmcia_enable_device(link)))
link              824 drivers/net/ethernet/xircom/xirc2ps_cs.c 	err = pcmcia_write_config_byte(link, CISREG_IOBASE_0, (u8)
link              825 drivers/net/ethernet/xircom/xirc2ps_cs.c 				link->resource[1]->start & 0xff);
link              829 drivers/net/ethernet/xircom/xirc2ps_cs.c 	err = pcmcia_write_config_byte(link, CISREG_IOBASE_1,
link              830 drivers/net/ethernet/xircom/xirc2ps_cs.c 				(link->resource[1]->start >> 8) & 0xff);
link              838 drivers/net/ethernet/xircom/xirc2ps_cs.c 	link->resource[2]->flags = WIN_DATA_WIDTH_8 | WIN_MEMORY_TYPE_AM |
link              840 drivers/net/ethernet/xircom/xirc2ps_cs.c 	link->resource[2]->start = link->resource[2]->end = 0;
link              841 drivers/net/ethernet/xircom/xirc2ps_cs.c 	if ((err = pcmcia_request_window(link, link->resource[2], 0)))
link              844 drivers/net/ethernet/xircom/xirc2ps_cs.c 	local->dingo_ccr = ioremap(link->resource[2]->start, 0x1000) + 0x0800;
link              845 drivers/net/ethernet/xircom/xirc2ps_cs.c 	if ((err = pcmcia_map_mem_page(link, link->resource[2], 0)))
link              852 drivers/net/ethernet/xircom/xirc2ps_cs.c 	ioaddr = link->resource[0]->start;
link              898 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev->irq = link->irq;
link              899 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev->base_addr = link->resource[0]->start;
link              904 drivers/net/ethernet/xircom/xirc2ps_cs.c     SET_NETDEV_DEV(dev, &link->dev);
link              919 drivers/net/ethernet/xircom/xirc2ps_cs.c     xirc2ps_release(link);
link              927 drivers/net/ethernet/xircom/xirc2ps_cs.c xirc2ps_release(struct pcmcia_device *link)
link              929 drivers/net/ethernet/xircom/xirc2ps_cs.c 	dev_dbg(&link->dev, "release\n");
link              931 drivers/net/ethernet/xircom/xirc2ps_cs.c 	if (link->resource[2]->end) {
link              932 drivers/net/ethernet/xircom/xirc2ps_cs.c 		struct net_device *dev = link->priv;
link              937 drivers/net/ethernet/xircom/xirc2ps_cs.c 	pcmcia_disable_device(link);
link              943 drivers/net/ethernet/xircom/xirc2ps_cs.c static int xirc2ps_suspend(struct pcmcia_device *link)
link              945 drivers/net/ethernet/xircom/xirc2ps_cs.c 	struct net_device *dev = link->priv;
link              947 drivers/net/ethernet/xircom/xirc2ps_cs.c 	if (link->open) {
link              955 drivers/net/ethernet/xircom/xirc2ps_cs.c static int xirc2ps_resume(struct pcmcia_device *link)
link              957 drivers/net/ethernet/xircom/xirc2ps_cs.c 	struct net_device *dev = link->priv;
link              959 drivers/net/ethernet/xircom/xirc2ps_cs.c 	if (link->open) {
link             1390 drivers/net/ethernet/xircom/xirc2ps_cs.c     struct pcmcia_device *link = lp->p_dev;
link             1392 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev_dbg(&link->dev, "do_open(%p)\n", dev);
link             1396 drivers/net/ethernet/xircom/xirc2ps_cs.c     if (!pcmcia_dev_present(link))
link             1400 drivers/net/ethernet/xircom/xirc2ps_cs.c     link->open++;
link             1718 drivers/net/ethernet/xircom/xirc2ps_cs.c     struct pcmcia_device *link = lp->p_dev;
link             1720 drivers/net/ethernet/xircom/xirc2ps_cs.c     dev_dbg(&link->dev, "do_stop(%p)\n", dev);
link             1722 drivers/net/ethernet/xircom/xirc2ps_cs.c     if (!link)
link             1735 drivers/net/ethernet/xircom/xirc2ps_cs.c     link->open--;
link              552 drivers/net/ethernet/xscale/ixp4xx_eth.c 	if (!phydev->link) {
link              352 drivers/net/phy/aquantia_main.c 	if (!phydev->link || phydev->autoneg == AUTONEG_DISABLE)
link              371 drivers/net/phy/at803x.c 	int ss, err, old_link = phydev->link;
link              379 drivers/net/phy/at803x.c 	if (phydev->autoneg == AUTONEG_ENABLE && old_link && phydev->link)
link              129 drivers/net/phy/bcm87xx.c 	phydev->link = 1;
link              134 drivers/net/phy/bcm87xx.c 	phydev->link = 0;
link              418 drivers/net/phy/broadcom.c 		if (phydev->link) {
link               38 drivers/net/phy/cortina.c 		phydev->link = 1;
link               40 drivers/net/phy/cortina.c 		phydev->link = 0;
link               72 drivers/net/phy/fixed_phy.c 		fp->status.link = !!gpiod_get_value_cansleep(fp->link_gpiod);
link               87 drivers/net/phy/fixed_phy.c 				fp->status.link = !fp->no_carrier;
link              270 drivers/net/phy/fixed_phy.c 	phy->link = status->link;
link              271 drivers/net/phy/fixed_phy.c 	if (status->link) {
link              112 drivers/net/phy/icplus.c 		phydev->link = 1;
link              138 drivers/net/phy/lxt.c 		phydev->link = 0;
link              140 drivers/net/phy/lxt.c 		phydev->link = 1;
link             1207 drivers/net/phy/marvell.c 			phydev->link = 0;
link             1209 drivers/net/phy/marvell.c 			phydev->link = 1;
link             1378 drivers/net/phy/marvell.c 		if (phydev->link)
link              366 drivers/net/phy/marvell10g.c 	     phydev->interface == PHY_INTERFACE_MODE_10GKR) && phydev->link) {
link              394 drivers/net/phy/marvell10g.c 	phydev->link = 1;
link              410 drivers/net/phy/marvell10g.c 	phydev->link = 0;
link              783 drivers/net/phy/micrel.c 	phydev->link = 1;
link              831 drivers/net/phy/micrel.c 		phydev->link = 0;
link              230 drivers/net/phy/nxp-tja11xx.c 	if (phydev->link) {
link              236 drivers/net/phy/nxp-tja11xx.c 			phydev->link = 0;
link              220 drivers/net/phy/phy-c45.c 	bool link = true;
link              231 drivers/net/phy/phy-c45.c 			phydev->link = 0;
link              236 drivers/net/phy/phy-c45.c 	while (mmd_mask && link) {
link              257 drivers/net/phy/phy-c45.c 			link = false;
link              260 drivers/net/phy/phy-c45.c 	phydev->link = link;
link               96 drivers/net/phy/phy.c 	if (phydev->link) {
link              543 drivers/net/phy/phy.c 	if (phydev->link && phydev->state != PHY_RUNNING) {
link              546 drivers/net/phy/phy.c 	} else if (!phydev->link && phydev->state != PHY_NOLINK) {
link              920 drivers/net/phy/phy.c 		if (phydev->link) {
link              921 drivers/net/phy/phy.c 			phydev->link = 0;
link              608 drivers/net/phy/phy_device.c 	dev->link = 0;
link             1781 drivers/net/phy/phy_device.c 	phydev->link = status & BMSR_LSTATUS ? 1 : 0;
link             1788 drivers/net/phy/phy_device.c 		phydev->link = 0;
link             1852 drivers/net/phy/phy_device.c 	int err, old_link = phydev->link;
link             1860 drivers/net/phy/phy_device.c 	if (phydev->autoneg == AUTONEG_ENABLE && old_link && phydev->link)
link               33 drivers/net/phy/phy_led_triggers.c 	if (!phy->link)
link              248 drivers/net/phy/phylink.c 	pl->link_config.link = 1;
link              343 drivers/net/phy/phylink.c 		    state->pause, state->link, state->an_enabled);
link              351 drivers/net/phy/phylink.c 	if (state->link)
link              373 drivers/net/phy/phylink.c 	state->link = 1;
link              387 drivers/net/phy/phylink.c 		state->link = !!gpiod_get_value_cansleep(pl->link_gpio);
link              480 drivers/net/phy/phylink.c 		link_state.link = false;
link              482 drivers/net/phy/phylink.c 		link_state.link = false;
link              502 drivers/net/phy/phylink.c 				link_state.link &= pl->phy_state.link;
link              505 drivers/net/phy/phylink.c 			if (pl->phydev && pl->phy_state.link) {
link              519 drivers/net/phy/phylink.c 		link_changed = (link_state.link != netif_carrier_ok(ndev));
link              521 drivers/net/phy/phylink.c 		link_changed = (link_state.link != pl->old_link_state);
link              524 drivers/net/phy/phylink.c 		pl->old_link_state = link_state.link;
link              525 drivers/net/phy/phylink.c 		if (!link_state.link)
link              530 drivers/net/phy/phylink.c 	if (!link_state.link && pl->mac_link_dropped) {
link              711 drivers/net/phy/phylink.c 	pl->phy_state.link = up;
link             1461 drivers/net/phy/phylink.c 	fs.link = state->link;
link              114 drivers/net/phy/smsc.c 	if (!phydev->link && priv->energy_enable) {
link               97 drivers/net/phy/swphy.c 	if (state->link) {
link              135 drivers/net/phy/swphy.c 	if (state->link) {
link               49 drivers/net/phy/teranetics.c 	phydev->link = 1;
link               58 drivers/net/phy/teranetics.c 			phydev->link = 0;
link               64 drivers/net/phy/teranetics.c 			phydev->link = 0;
link               44 drivers/net/phy/uPD60620.c 	phydev->link = 0;
link               55 drivers/net/phy/uPD60620.c 			phydev->link = 1;
link              779 drivers/net/usb/aqc111.c 	int link = 0;
link              788 drivers/net/usb/aqc111.c 		link = 1;
link              790 drivers/net/usb/aqc111.c 		link = 0;
link              794 drivers/net/usb/aqc111.c 	aqc111_data->link = link;
link              796 drivers/net/usb/aqc111.c 	if (netif_carrier_ok(dev->net) != link)
link              906 drivers/net/usb/aqc111.c 	if (aqc111_data->link == 1) { /* Link up */
link              165 drivers/net/usb/aqc111.h 	u8 link;
link               37 drivers/net/usb/asix_devices.c 	u8 link;
link               46 drivers/net/usb/asix_devices.c 	int link;
link               52 drivers/net/usb/asix_devices.c 	link = event->link & 0x01;
link               53 drivers/net/usb/asix_devices.c 	if (netif_carrier_ok(dev->net) != link) {
link               54 drivers/net/usb/asix_devices.c 		usbnet_link_change(dev, link, 1);
link               55 drivers/net/usb/asix_devices.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
link               61 drivers/net/usb/ax88172a.c 	if (phydev->link) {
link              336 drivers/net/usb/ax88179_178a.c 	u32 link;
link              344 drivers/net/usb/ax88179_178a.c 	link = (((__force u32)event->intdata1) & AX_INT_PPLS_LINK) >> 16;
link              346 drivers/net/usb/ax88179_178a.c 	if (netif_carrier_ok(dev->net) != link) {
link              347 drivers/net/usb/ax88179_178a.c 		usbnet_link_change(dev, link, 1);
link              348 drivers/net/usb/ax88179_178a.c 		netdev_info(dev->net, "ax88179 - Link status is: %d\n", link);
link             1593 drivers/net/usb/cdc_ncm.c 		netif_info(dev, link, dev->net,
link             1598 drivers/net/usb/cdc_ncm.c 		netif_info(dev, link, dev->net,
link             1628 drivers/net/usb/cdc_ncm.c 		netif_info(dev, link, dev->net,
link              230 drivers/net/usb/ch9200.c 	int link;
link              237 drivers/net/usb/ch9200.c 	link = !!(buf[0] & 0x01);
link              239 drivers/net/usb/ch9200.c 	if (link) {
link              127 drivers/net/usb/cx82310_eth.c 	u8 link[3];
link              158 drivers/net/usb/cx82310_eth.c 				  link, sizeof(link));
link              160 drivers/net/usb/cx82310_eth.c 		if (!ret && link[0] == 1 && link[2] == 1)
link              521 drivers/net/usb/dm9601.c 	int link;
link              540 drivers/net/usb/dm9601.c 	link = !!(buf[0] & 0x40);
link              541 drivers/net/usb/dm9601.c 	if (netif_carrier_ok(dev->net) != link) {
link              542 drivers/net/usb/dm9601.c 		usbnet_link_change(dev, link, 1);
link              543 drivers/net/usb/dm9601.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
link             1150 drivers/net/usb/lan78xx.c 	netif_dbg(dev, link, dev->net, "rx pause %s, tx pause %s",
link             1176 drivers/net/usb/lan78xx.c 	if (!phydev->link && dev->link_on) {
link             1189 drivers/net/usb/lan78xx.c 	} else if (phydev->link && !dev->link_on) {
link             1221 drivers/net/usb/lan78xx.c 		netif_dbg(dev, link, dev->net,
link             1265 drivers/net/usb/lan78xx.c 		netif_dbg(dev, link, dev->net, "PHY INTR: 0x%08x\n", intdata);
link             1480 drivers/net/usb/lan78xx.c 	return net->phydev->link;
link             2049 drivers/net/usb/lan78xx.c 		.link = 1,
link              548 drivers/net/usb/mcs7830.c 	bool link, link_changed;
link              553 drivers/net/usb/mcs7830.c 	link = !(buf[1] == 0x20);
link              554 drivers/net/usb/mcs7830.c 	link_changed = netif_carrier_ok(dev->net) != link;
link              556 drivers/net/usb/mcs7830.c 		usbnet_link_change(dev, link, 0);
link              557 drivers/net/usb/mcs7830.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
link              184 drivers/net/usb/net1080.c 	netif_dbg(dev, link, dev->net,
link              227 drivers/net/usb/net1080.c 	netif_dbg(dev, link, dev->net,
link              296 drivers/net/usb/net1080.c 	netif_info(dev, link, dev->net, "port %c, peer %sconnected\n",
link             1034 drivers/net/usb/pegasus.c 		netif_info(pegasus, link, net, "Promiscuous mode enabled\n");
link             1038 drivers/net/usb/pegasus.c 		netif_dbg(pegasus, link, net, "set allmulti\n");
link               88 drivers/net/usb/plusb.c 		netif_dbg(dev, link, dev->net, "pl_reset --> %d\n", status);
link             2356 drivers/net/usb/r8152.c 		netif_notice(tp, link, netdev, "Promiscuous mode enabled\n");
link             3061 drivers/net/usb/r8152.c 				netif_warn(tp, link, tp->netdev,
link             4168 drivers/net/usb/r8152.c 			netif_info(tp, link, netdev, "carrier on\n");
link             4181 drivers/net/usb/r8152.c 			netif_info(tp, link, netdev, "carrier off\n");
link             4721 drivers/net/usb/r8152.c 				netif_info(tp, link, netdev, "linking down\n");
link              604 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, link, dev->net, "rx pause %s, tx pause %s\n",
link              608 drivers/net/usb/smsc75xx.c 		netif_dbg(dev, link, dev->net, "half duplex\n");
link              648 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, link, dev->net, "speed: %u duplex: %d lcladv: %04x rmtadv: %04x\n",
link              666 drivers/net/usb/smsc75xx.c 	netif_dbg(dev, link, dev->net, "intdata: 0x%08X\n", intdata);
link              536 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, link, dev->net, "rx pause %s, tx pause %s\n",
link              540 drivers/net/usb/smsc95xx.c 		netif_dbg(dev, link, dev->net, "half duplex\n");
link              574 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, link, dev->net,
link              610 drivers/net/usb/smsc95xx.c 	netif_dbg(dev, link, dev->net, "intdata: 0x%08X\n", intdata);
link              619 drivers/net/usb/smsc95xx.c static void set_carrier(struct usbnet *dev, bool link)
link              623 drivers/net/usb/smsc95xx.c 	if (pdata->link_ok == link)
link              626 drivers/net/usb/smsc95xx.c 	pdata->link_ok = link;
link              628 drivers/net/usb/smsc95xx.c 	if (link)
link              481 drivers/net/usb/sr9700.c 	int link;
link              500 drivers/net/usb/sr9700.c 	link = !!(buf[0] & 0x40);
link              501 drivers/net/usb/sr9700.c 	if (netif_carrier_ok(dev->net) != link) {
link              502 drivers/net/usb/sr9700.c 		usbnet_link_change(dev, link, 1);
link              503 drivers/net/usb/sr9700.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
link              153 drivers/net/usb/sr9800.c 	int link;
link              159 drivers/net/usb/sr9800.c 	link = event->link & 0x01;
link              160 drivers/net/usb/sr9800.c 	if (netif_carrier_ok(dev->net) != link) {
link              161 drivers/net/usb/sr9800.c 		usbnet_link_change(dev, link, 1);
link              162 drivers/net/usb/sr9800.c 		netdev_dbg(dev->net, "Link Status is: %d\n", link);
link              196 drivers/net/usb/sr9800.h 	u8 link;
link              619 drivers/net/usb/usbnet.c 			netif_dbg(dev, link, dev->net,
link             1278 drivers/net/usb/usbnet.c 				netif_dbg(dev, link, dev->net,
link             1565 drivers/net/usb/usbnet.c 				netif_dbg(dev, link, dev->net,
link             1958 drivers/net/usb/usbnet.c void usbnet_link_change(struct usbnet *dev, bool link, bool need_reset)
link             1961 drivers/net/usb/usbnet.c 	if (link && !need_reset)
link             1966 drivers/net/usb/usbnet.c 	if (need_reset && link)
link              110 drivers/net/wan/sbni.c 	struct net_device		*link;
link              430 drivers/net/wan/sbni.c 	nl->link   = NULL;
link              453 drivers/net/wan/sbni.c 			p = nl->link;
link              640 drivers/net/wan/sbni.c 			if( (nl->state & FL_SLAVE)  ||  nl->link )
link             1219 drivers/net/wan/sbni.c 		while( nl->link )	/* it's master device! */
link             1220 drivers/net/wan/sbni.c 			emancipate( nl->link );
link             1396 drivers/net/wan/sbni.c 	snl->link = nl->link;
link             1397 drivers/net/wan/sbni.c 	nl->link  = slave_dev;
link             1431 drivers/net/wan/sbni.c 		if( t->link == dev ) {
link             1432 drivers/net/wan/sbni.c 			t->link = snl->link;
link             1435 drivers/net/wan/sbni.c 		p = t->link;
link             1438 drivers/net/wan/sbni.c 	snl->link = NULL;
link               48 drivers/net/wireless/ath/ath10k/usb.c 					       struct ath10k_urb_context, link);
link               49 drivers/net/wireless/ath/ath10k/usb.c 		list_del(&urb_context->link);
link               69 drivers/net/wireless/ath/ath10k/usb.c 	list_add(&urb_context->link, &pipe->urb_list_head);
link              106 drivers/net/wireless/ath/ath10k/usb.h 	struct list_head link;
link              631 drivers/net/wireless/ath/ath5k/ath5k.h 	u32			*link;
link              833 drivers/net/wireless/ath/ath5k/base.c 	if (txq->link == NULL) /* is this first packet? */
link              836 drivers/net/wireless/ath/ath5k/base.c 		*txq->link = bf->daddr;
link              838 drivers/net/wireless/ath/ath5k/base.c 	txq->link = &ds->ds_link;
link             1013 drivers/net/wireless/ath/ath5k/base.c 		txq->link = NULL;
link             1131 drivers/net/wireless/ath/ath5k/base.c 			txq->link = NULL;
link               78 drivers/net/wireless/ath/ath6kl/usb.c 	struct list_head link;
link              143 drivers/net/wireless/ath/ath6kl/usb.c 				     struct ath6kl_urb_context, link);
link              144 drivers/net/wireless/ath/ath6kl/usb.c 		list_del(&urb_context->link);
link              164 drivers/net/wireless/ath/ath6kl/usb.c 	list_add(&urb_context->link, &pipe->urb_list_head);
link              223 drivers/net/wireless/ath/ath9k/ar9002_mac.c 	WRITE_ONCE(ads->ds_link, i->link);
link               44 drivers/net/wireless/ath/ath9k/ar9003_mac.c 	checksum += i->link;
link               45 drivers/net/wireless/ath/ath9k/ar9003_mac.c 	WRITE_ONCE(ads->link, i->link);
link              164 drivers/net/wireless/ath/ath9k/ar9003_mac.c 	checksum = ads->info + ads->link
link              177 drivers/net/wireless/ath/ath9k/ar9003_mac.c 	ads->link = ds_link;
link               73 drivers/net/wireless/ath/ath9k/ar9003_mac.h 	u32 link;   /* link pointer */
link               39 drivers/net/wireless/ath/ath9k/hw-ops.h 					  u32 link)
link               41 drivers/net/wireless/ath/ath9k/hw-ops.h 	ath9k_hw_ops(ah)->set_desc_link(ds, link);
link              726 drivers/net/wireless/ath/ath9k/hw.h 	void (*set_desc_link)(void *ds, u32 link);
link              695 drivers/net/wireless/ath/ath9k/mac.h 	dma_addr_t link;
link             1364 drivers/net/wireless/ath/ath9k/xmit.c 			info.link = bf->bf_next->bf_daddr;
link             1366 drivers/net/wireless/ath/ath9k/xmit.c 			info.link = (sc->tx99_state) ? bf->bf_daddr : 0;
link             1469 drivers/net/wireless/ath/wil6210/debugfs.c DEFINE_SHOW_ATTRIBUTE(link);
link               64 drivers/net/wireless/atmel/atmel_cs.c static int atmel_config(struct pcmcia_device *link);
link               65 drivers/net/wireless/atmel/atmel_cs.c static void atmel_release(struct pcmcia_device *link);
link               89 drivers/net/wireless/atmel/atmel_cs.c static void atmel_detach(struct pcmcia_device *link)
link               91 drivers/net/wireless/atmel/atmel_cs.c 	dev_dbg(&link->dev, "atmel_detach\n");
link               93 drivers/net/wireless/atmel/atmel_cs.c 	atmel_release(link);
link               95 drivers/net/wireless/atmel/atmel_cs.c 	kfree(link->priv);
link              102 drivers/net/wireless/atmel/atmel_cs.c 	struct pcmcia_device *link = (struct pcmcia_device *)arg;
link              104 drivers/net/wireless/atmel/atmel_cs.c 	if (pcmcia_dev_present(link))
link              118 drivers/net/wireless/atmel/atmel_cs.c static int atmel_config(struct pcmcia_device *link)
link              124 drivers/net/wireless/atmel/atmel_cs.c 	dev = link->priv;
link              125 drivers/net/wireless/atmel/atmel_cs.c 	did = dev_get_drvdata(&link->dev);
link              127 drivers/net/wireless/atmel/atmel_cs.c 	dev_dbg(&link->dev, "atmel_config\n");
link              129 drivers/net/wireless/atmel/atmel_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_VPP |
link              132 drivers/net/wireless/atmel/atmel_cs.c 	if (pcmcia_loop_config(link, atmel_config_check, NULL))
link              135 drivers/net/wireless/atmel/atmel_cs.c 	if (!link->irq) {
link              136 drivers/net/wireless/atmel/atmel_cs.c 		dev_err(&link->dev, "atmel: cannot assign IRQ: check that CONFIG_ISA is set in kernel config.");
link              140 drivers/net/wireless/atmel/atmel_cs.c 	ret = pcmcia_enable_device(link);
link              144 drivers/net/wireless/atmel/atmel_cs.c 	((struct local_info *)link->priv)->eth_dev =
link              145 drivers/net/wireless/atmel/atmel_cs.c 		init_atmel_card(link->irq,
link              146 drivers/net/wireless/atmel/atmel_cs.c 				link->resource[0]->start,
link              148 drivers/net/wireless/atmel/atmel_cs.c 				&link->dev,
link              150 drivers/net/wireless/atmel/atmel_cs.c 				link);
link              151 drivers/net/wireless/atmel/atmel_cs.c 	if (!((struct local_info *)link->priv)->eth_dev)
link              158 drivers/net/wireless/atmel/atmel_cs.c 	atmel_release(link);
link              162 drivers/net/wireless/atmel/atmel_cs.c static void atmel_release(struct pcmcia_device *link)
link              164 drivers/net/wireless/atmel/atmel_cs.c 	struct net_device *dev = ((struct local_info *)link->priv)->eth_dev;
link              166 drivers/net/wireless/atmel/atmel_cs.c 	dev_dbg(&link->dev, "atmel_release\n");
link              170 drivers/net/wireless/atmel/atmel_cs.c 	((struct local_info *)link->priv)->eth_dev = NULL;
link              172 drivers/net/wireless/atmel/atmel_cs.c 	pcmcia_disable_device(link);
link              175 drivers/net/wireless/atmel/atmel_cs.c static int atmel_suspend(struct pcmcia_device *link)
link              177 drivers/net/wireless/atmel/atmel_cs.c 	struct local_info *local = link->priv;
link              184 drivers/net/wireless/atmel/atmel_cs.c static int atmel_resume(struct pcmcia_device *link)
link              186 drivers/net/wireless/atmel/atmel_cs.c 	struct local_info *local = link->priv;
link               54 drivers/net/wireless/cisco/airo_cs.c static int airo_config(struct pcmcia_device *link);
link               55 drivers/net/wireless/cisco/airo_cs.c static void airo_release(struct pcmcia_device *link);
link               79 drivers/net/wireless/cisco/airo_cs.c static void airo_detach(struct pcmcia_device *link)
link               81 drivers/net/wireless/cisco/airo_cs.c 	dev_dbg(&link->dev, "airo_detach\n");
link               83 drivers/net/wireless/cisco/airo_cs.c 	airo_release(link);
link               85 drivers/net/wireless/cisco/airo_cs.c 	if (((struct local_info *)link->priv)->eth_dev) {
link               86 drivers/net/wireless/cisco/airo_cs.c 		stop_airo_card(((struct local_info *)link->priv)->eth_dev,
link               89 drivers/net/wireless/cisco/airo_cs.c 	((struct local_info *)link->priv)->eth_dev = NULL;
link               91 drivers/net/wireless/cisco/airo_cs.c 	kfree(link->priv);
link              103 drivers/net/wireless/cisco/airo_cs.c static int airo_config(struct pcmcia_device *link)
link              107 drivers/net/wireless/cisco/airo_cs.c 	dev_dbg(&link->dev, "airo_config\n");
link              109 drivers/net/wireless/cisco/airo_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_VPP |
link              112 drivers/net/wireless/cisco/airo_cs.c 	ret = pcmcia_loop_config(link, airo_cs_config_check, NULL);
link              116 drivers/net/wireless/cisco/airo_cs.c 	if (!link->irq)
link              119 drivers/net/wireless/cisco/airo_cs.c 	ret = pcmcia_enable_device(link);
link              122 drivers/net/wireless/cisco/airo_cs.c 	((struct local_info *)link->priv)->eth_dev =
link              123 drivers/net/wireless/cisco/airo_cs.c 		init_airo_card(link->irq,
link              124 drivers/net/wireless/cisco/airo_cs.c 			       link->resource[0]->start, 1, &link->dev);
link              125 drivers/net/wireless/cisco/airo_cs.c 	if (!((struct local_info *)link->priv)->eth_dev)
link              131 drivers/net/wireless/cisco/airo_cs.c 	airo_release(link);
link              135 drivers/net/wireless/cisco/airo_cs.c static void airo_release(struct pcmcia_device *link)
link              137 drivers/net/wireless/cisco/airo_cs.c 	dev_dbg(&link->dev, "airo_release\n");
link              138 drivers/net/wireless/cisco/airo_cs.c 	pcmcia_disable_device(link);
link              141 drivers/net/wireless/cisco/airo_cs.c static int airo_suspend(struct pcmcia_device *link)
link              143 drivers/net/wireless/cisco/airo_cs.c 	struct local_info *local = link->priv;
link              150 drivers/net/wireless/cisco/airo_cs.c static int airo_resume(struct pcmcia_device *link)
link              152 drivers/net/wireless/cisco/airo_cs.c 	struct local_info *local = link->priv;
link              154 drivers/net/wireless/cisco/airo_cs.c 	if (link->open) {
link               40 drivers/net/wireless/intersil/hostap/hostap_cs.c 	struct pcmcia_device *link;
link              202 drivers/net/wireless/intersil/hostap/hostap_cs.c static int prism2_config(struct pcmcia_device *link);
link              208 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (hw_priv != NULL && hw_priv->link != NULL && pcmcia_dev_present(hw_priv->link))
link              228 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, 0x10,
link              229 drivers/net/wireless/intersil/hostap/hostap_cs.c 				hw_priv->link->resource[0]->start & 0x00ff);
link              236 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, 0x12,
link              237 drivers/net/wireless/intersil/hostap/hostap_cs.c 				(hw_priv->link->resource[0]->start >> 8) & 0x00ff);
link              267 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (resource_size(hw_priv->link->resource[0]) < 0x42) {
link              273 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (hw_priv->link->manf_id != 0xd601 || hw_priv->link->card_id != 0x0101) {
link              279 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (hw_priv->link->socket->functions < 2) {
link              289 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
link              302 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
link              333 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_read_config_byte(hw_priv->link, CISREG_COR, &val);
link              343 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, val);
link              355 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR, val);
link              383 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_read_config_byte(hw_priv->link, CISREG_COR, &old_cor);
link              390 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
link              400 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_CCSR, hcr);
link              407 drivers/net/wireless/intersil/hostap/hostap_cs.c 	res = pcmcia_write_config_byte(hw_priv->link, CISREG_COR,
link              444 drivers/net/wireless/intersil/hostap/hostap_cs.c static void prism2_detach(struct pcmcia_device *link)
link              448 drivers/net/wireless/intersil/hostap/hostap_cs.c 	prism2_release((u_long)link);
link              451 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (link->priv) {
link              455 drivers/net/wireless/intersil/hostap/hostap_cs.c 		dev = link->priv;
link              472 drivers/net/wireless/intersil/hostap/hostap_cs.c static int prism2_config(struct pcmcia_device *link)
link              490 drivers/net/wireless/intersil/hostap/hostap_cs.c 	link->config_flags |= CONF_AUTO_SET_VPP | CONF_AUTO_AUDIO |
link              493 drivers/net/wireless/intersil/hostap/hostap_cs.c 		link->config_flags &= ~CONF_AUTO_CHECK_VCC;
link              494 drivers/net/wireless/intersil/hostap/hostap_cs.c 	ret = pcmcia_loop_config(link, prism2_config_check, NULL);
link              505 drivers/net/wireless/intersil/hostap/hostap_cs.c 				     &link->dev);
link              510 drivers/net/wireless/intersil/hostap/hostap_cs.c 	link->priv = dev;
link              515 drivers/net/wireless/intersil/hostap/hostap_cs.c 	hw_priv->link = link;
link              522 drivers/net/wireless/intersil/hostap/hostap_cs.c 	ret = pcmcia_request_irq(link, prism2_interrupt);
link              526 drivers/net/wireless/intersil/hostap/hostap_cs.c 	ret = pcmcia_enable_device(link);
link              531 drivers/net/wireless/intersil/hostap/hostap_cs.c 	dev->irq = link->irq;
link              532 drivers/net/wireless/intersil/hostap/hostap_cs.c 	dev->base_addr = link->resource[0]->start;
link              547 drivers/net/wireless/intersil/hostap/hostap_cs.c 	prism2_release((u_long)link);
link              554 drivers/net/wireless/intersil/hostap/hostap_cs.c 	struct pcmcia_device *link = (struct pcmcia_device *)arg;
link              558 drivers/net/wireless/intersil/hostap/hostap_cs.c 	if (link->priv) {
link              559 drivers/net/wireless/intersil/hostap/hostap_cs.c 		struct net_device *dev = link->priv;
link              567 drivers/net/wireless/intersil/hostap/hostap_cs.c 	pcmcia_disable_device(link);
link              571 drivers/net/wireless/intersil/hostap/hostap_cs.c static int hostap_cs_suspend(struct pcmcia_device *link)
link              573 drivers/net/wireless/intersil/hostap/hostap_cs.c 	struct net_device *dev = (struct net_device *) link->priv;
link              594 drivers/net/wireless/intersil/hostap/hostap_cs.c static int hostap_cs_resume(struct pcmcia_device *link)
link              596 drivers/net/wireless/intersil/hostap/hostap_cs.c 	struct net_device *dev = (struct net_device *) link->priv;
link               62 drivers/net/wireless/intersil/orinoco/orinoco_cs.c static int orinoco_cs_config(struct pcmcia_device *link);
link               63 drivers/net/wireless/intersil/orinoco/orinoco_cs.c static void orinoco_cs_release(struct pcmcia_device *link);
link               74 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	struct pcmcia_device *link = card->p_dev;
link               80 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	err = pcmcia_reset_card(link->socket);
link               95 drivers/net/wireless/intersil/orinoco/orinoco_cs.c orinoco_cs_probe(struct pcmcia_device *link)
link              100 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	priv = alloc_orinocodev(sizeof(*card), &link->dev,
link              107 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	card->p_dev = link;
link              108 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	link->priv = priv;
link              110 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	return orinoco_cs_config(link);
link              113 drivers/net/wireless/intersil/orinoco/orinoco_cs.c static void orinoco_cs_detach(struct pcmcia_device *link)
link              115 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	struct orinoco_private *priv = link->priv;
link              119 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	orinoco_cs_release(link);
link              134 drivers/net/wireless/intersil/orinoco/orinoco_cs.c orinoco_cs_config(struct pcmcia_device *link)
link              136 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	struct orinoco_private *priv = link->priv;
link              141 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	link->config_flags |= CONF_AUTO_SET_VPP | CONF_AUTO_CHECK_VCC |
link              144 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 		link->config_flags &= ~CONF_AUTO_CHECK_VCC;
link              145 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	ret = pcmcia_loop_config(link, orinoco_cs_config_check, NULL);
link              154 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	mem = ioport_map(link->resource[0]->start,
link              155 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 			resource_size(link->resource[0]));
link              164 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	ret = pcmcia_request_irq(link, orinoco_interrupt);
link              168 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	ret = pcmcia_enable_device(link);
link              179 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	if (orinoco_if_add(priv, link->resource[0]->start,
link              180 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 			   link->irq, NULL) != 0) {
link              188 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	orinoco_cs_release(link);
link              193 drivers/net/wireless/intersil/orinoco/orinoco_cs.c orinoco_cs_release(struct pcmcia_device *link)
link              195 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	struct orinoco_private *priv = link->priv;
link              204 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	pcmcia_disable_device(link);
link              209 drivers/net/wireless/intersil/orinoco/orinoco_cs.c static int orinoco_cs_suspend(struct pcmcia_device *link)
link              211 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	struct orinoco_private *priv = link->priv;
link              223 drivers/net/wireless/intersil/orinoco/orinoco_cs.c static int orinoco_cs_resume(struct pcmcia_device *link)
link              225 drivers/net/wireless/intersil/orinoco/orinoco_cs.c 	struct orinoco_private *priv = link->priv;
link               63 drivers/net/wireless/intersil/orinoco/spectrum_cs.c static int spectrum_cs_config(struct pcmcia_device *link);
link               64 drivers/net/wireless/intersil/orinoco/spectrum_cs.c static void spectrum_cs_release(struct pcmcia_device *link);
link               77 drivers/net/wireless/intersil/orinoco/spectrum_cs.c spectrum_reset(struct pcmcia_device *link, int idle)
link               84 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	if (!pcmcia_dev_present(link))
link               88 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	ret = pcmcia_read_config_byte(link, CISREG_COR, &save_cor);
link               93 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	ret = pcmcia_write_config_byte(link, CISREG_COR,
link              100 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	ret = pcmcia_read_config_byte(link, CISREG_CCSR, &ccsr);
link              109 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	ret = pcmcia_write_config_byte(link, CISREG_CCSR, ccsr);
link              115 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	ret = pcmcia_write_config_byte(link, CISREG_COR,
link              134 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	struct pcmcia_device *link = card->p_dev;
link              137 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	spectrum_reset(link, 0);
link              146 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	struct pcmcia_device *link = card->p_dev;
link              148 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	return spectrum_reset(link, idle);
link              156 drivers/net/wireless/intersil/orinoco/spectrum_cs.c spectrum_cs_probe(struct pcmcia_device *link)
link              161 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	priv = alloc_orinocodev(sizeof(*card), &link->dev,
link              169 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	card->p_dev = link;
link              170 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	link->priv = priv;
link              172 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	return spectrum_cs_config(link);
link              175 drivers/net/wireless/intersil/orinoco/spectrum_cs.c static void spectrum_cs_detach(struct pcmcia_device *link)
link              177 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	struct orinoco_private *priv = link->priv;
link              181 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	spectrum_cs_release(link);
link              196 drivers/net/wireless/intersil/orinoco/spectrum_cs.c spectrum_cs_config(struct pcmcia_device *link)
link              198 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	struct orinoco_private *priv = link->priv;
link              203 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	link->config_flags |= CONF_AUTO_SET_VPP | CONF_AUTO_CHECK_VCC |
link              206 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 		link->config_flags &= ~CONF_AUTO_CHECK_VCC;
link              207 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	ret = pcmcia_loop_config(link, spectrum_cs_config_check, NULL);
link              216 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	mem = ioport_map(link->resource[0]->start,
link              217 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 			resource_size(link->resource[0]));
link              227 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	ret = pcmcia_request_irq(link, orinoco_interrupt);
link              231 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	ret = pcmcia_enable_device(link);
link              246 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	if (orinoco_if_add(priv, link->resource[0]->start,
link              247 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 			   link->irq, NULL) != 0) {
link              255 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	spectrum_cs_release(link);
link              260 drivers/net/wireless/intersil/orinoco/spectrum_cs.c spectrum_cs_release(struct pcmcia_device *link)
link              262 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	struct orinoco_private *priv = link->priv;
link              271 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	pcmcia_disable_device(link);
link              278 drivers/net/wireless/intersil/orinoco/spectrum_cs.c spectrum_cs_suspend(struct pcmcia_device *link)
link              280 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	struct orinoco_private *priv = link->priv;
link              290 drivers/net/wireless/intersil/orinoco/spectrum_cs.c spectrum_cs_resume(struct pcmcia_device *link)
link              292 drivers/net/wireless/intersil/orinoco/spectrum_cs.c 	struct orinoco_private *priv = link->priv;
link             10300 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		rt2x00dev->link.watchdog_interval = msecs_to_jiffies(100);
link             10302 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		rt2x00dev->link.watchdog_disabled = true;
link              866 drivers/net/wireless/ralink/rt2x00/rt2x00.h 	struct link link;
link              106 drivers/net/wireless/ralink/rt2x00/rt2x00config.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link              108 drivers/net/wireless/ralink/rt2x00/rt2x00config.c 	struct antenna_setup *active = &rt2x00dev->link.ant.active;
link              447 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 		rt2x00dev->link.qual.tx_success += success;
link              448 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 		rt2x00dev->link.qual.tx_failed += !success;
link              524 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	rt2x00dev->link.qual.tx_success += success;
link              525 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	rt2x00dev->link.qual.tx_failed += !success;
link              857 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	rx_status->antenna = rt2x00dev->link.ant.active.rx;
link               38 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link               40 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	if (rt2x00dev->link.qual.rx_success)
link               48 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link               58 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link               64 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	ewma_rssi_init(&rt2x00dev->link.ant.rssi_ant);
link               69 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link              110 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link              150 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link              171 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	} else if (rt2x00dev->link.count & 1) {
link              183 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link *link = &rt2x00dev->link;
link              184 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_qual *qual = &rt2x00dev->link.qual;
link              185 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link              212 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	ewma_rssi_add(&link->avg_rssi, -rxdesc->rssi);
link              222 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link *link = &rt2x00dev->link;
link              244 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 					     &link->work, LINK_TUNE_INTERVAL);
link              249 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	cancel_delayed_work_sync(&rt2x00dev->link.work);
link              254 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_qual *qual = &rt2x00dev->link.qual;
link              268 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	rt2x00dev->link.count = 0;
link              270 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	ewma_rssi_init(&rt2x00dev->link.avg_rssi);
link              290 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_qual *qual = &rt2x00dev->link.qual;
link              298 drivers/net/wireless/ralink/rt2x00/rt2x00link.c static void rt2x00link_tuner_sta(struct rt2x00_dev *rt2x00dev, struct link *link)
link              300 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link_qual *qual = &rt2x00dev->link.qual;
link              317 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 		qual->rssi = rt2x00link_get_avg_rssi(&link->avg_rssi);
link              325 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 		rt2x00dev->ops->lib->link_tuner(rt2x00dev, qual, link->count);
link              344 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	    container_of(work, struct rt2x00_dev, link.work.work);
link              345 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link *link = &rt2x00dev->link;
link              359 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 		rt2x00link_tuner_sta(rt2x00dev, link);
link              362 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	    (link->count % (AGC_SECONDS / LINK_TUNE_SECONDS)) == 0)
link              367 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	    (link->count % (VCO_SECONDS / LINK_TUNE_SECONDS)) == 0)
link              375 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	link->count++;
link              379 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 					     &link->work, LINK_TUNE_INTERVAL);
link              384 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link *link = &rt2x00dev->link;
link              387 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	    rt2x00dev->ops->lib->watchdog && !link->watchdog_disabled)
link              389 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 					     &link->watchdog_work,
link              390 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 					     link->watchdog_interval);
link              395 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	cancel_delayed_work_sync(&rt2x00dev->link.watchdog_work);
link              401 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	    container_of(work, struct rt2x00_dev, link.watchdog_work.work);
link              402 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link *link = &rt2x00dev->link;
link              415 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 					     &link->watchdog_work,
link              416 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 					     link->watchdog_interval);
link              421 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	struct link *link = &rt2x00dev->link;
link              423 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	INIT_DELAYED_WORK(&link->work, rt2x00link_tuner);
link              424 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	INIT_DELAYED_WORK(&link->watchdog_work, rt2x00link_watchdog);
link              426 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 	if (link->watchdog_interval == 0)
link              427 drivers/net/wireless/ralink/rt2x00/rt2x00link.c 		link->watchdog_interval = WATCHDOG_INTERVAL;
link              626 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c 		rt2x00dev->link.count = 0;
link              714 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link              759 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c 	struct link_ant *ant = &rt2x00dev->link.ant;
link              760 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c 	struct antenna_setup *active = &rt2x00dev->link.ant.active;
link               57 drivers/net/wireless/ray_cs.c static int ray_config(struct pcmcia_device *link);
link               58 drivers/net/wireless/ray_cs.c static void ray_release(struct pcmcia_device *link);
link              322 drivers/net/wireless/ray_cs.c static void ray_detach(struct pcmcia_device *link)
link              327 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_detach\n");
link              330 drivers/net/wireless/ray_cs.c 	dev = link->priv;
link              332 drivers/net/wireless/ray_cs.c 	ray_release(link);
link              337 drivers/net/wireless/ray_cs.c 	if (link->priv) {
link              341 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_cs ray_detach ending\n");
link              345 drivers/net/wireless/ray_cs.c static int ray_config(struct pcmcia_device *link)
link              349 drivers/net/wireless/ray_cs.c 	struct net_device *dev = (struct net_device *)link->priv;
link              352 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_config\n");
link              356 drivers/net/wireless/ray_cs.c 	       link->prod_id[0] ? link->prod_id[0] : " ",
link              357 drivers/net/wireless/ray_cs.c 	       link->prod_id[1] ? link->prod_id[1] : " ",
link              358 drivers/net/wireless/ray_cs.c 	       link->prod_id[2] ? link->prod_id[2] : " ",
link              359 drivers/net/wireless/ray_cs.c 	       link->prod_id[3] ? link->prod_id[3] : " ");
link              364 drivers/net/wireless/ray_cs.c 	ret = pcmcia_request_irq(link, ray_interrupt);
link              367 drivers/net/wireless/ray_cs.c 	dev->irq = link->irq;
link              369 drivers/net/wireless/ray_cs.c 	ret = pcmcia_enable_device(link);
link              374 drivers/net/wireless/ray_cs.c 	link->resource[2]->flags |= WIN_DATA_WIDTH_8 | WIN_MEMORY_TYPE_CM | WIN_ENABLE | WIN_USE_WAIT;
link              375 drivers/net/wireless/ray_cs.c 	link->resource[2]->start = 0;
link              376 drivers/net/wireless/ray_cs.c 	link->resource[2]->end = 0x8000;
link              377 drivers/net/wireless/ray_cs.c 	ret = pcmcia_request_window(link, link->resource[2], ray_mem_speed);
link              380 drivers/net/wireless/ray_cs.c 	ret = pcmcia_map_mem_page(link, link->resource[2], 0);
link              383 drivers/net/wireless/ray_cs.c 	local->sram = ioremap(link->resource[2]->start,
link              384 drivers/net/wireless/ray_cs.c 			resource_size(link->resource[2]));
link              387 drivers/net/wireless/ray_cs.c 	link->resource[3]->flags |=
link              389 drivers/net/wireless/ray_cs.c 	link->resource[3]->start = 0;
link              390 drivers/net/wireless/ray_cs.c 	link->resource[3]->end = 0x4000;
link              391 drivers/net/wireless/ray_cs.c 	ret = pcmcia_request_window(link, link->resource[3], ray_mem_speed);
link              394 drivers/net/wireless/ray_cs.c 	ret = pcmcia_map_mem_page(link, link->resource[3], 0x8000);
link              397 drivers/net/wireless/ray_cs.c 	local->rmem = ioremap(link->resource[3]->start,
link              398 drivers/net/wireless/ray_cs.c 			resource_size(link->resource[3]));
link              401 drivers/net/wireless/ray_cs.c 	link->resource[4]->flags |=
link              403 drivers/net/wireless/ray_cs.c 	link->resource[4]->start = 0;
link              404 drivers/net/wireless/ray_cs.c 	link->resource[4]->end = 0x1000;
link              405 drivers/net/wireless/ray_cs.c 	ret = pcmcia_request_window(link, link->resource[4], ray_mem_speed);
link              408 drivers/net/wireless/ray_cs.c 	ret = pcmcia_map_mem_page(link, link->resource[4], 0);
link              411 drivers/net/wireless/ray_cs.c 	local->amem = ioremap(link->resource[4]->start,
link              412 drivers/net/wireless/ray_cs.c 			resource_size(link->resource[4]));
link              414 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_config sram=%p\n", local->sram);
link              415 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_config rmem=%p\n", local->rmem);
link              416 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_config amem=%p\n", local->amem);
link              418 drivers/net/wireless/ray_cs.c 		ray_release(link);
link              422 drivers/net/wireless/ray_cs.c 	SET_NETDEV_DEV(dev, &link->dev);
link              426 drivers/net/wireless/ray_cs.c 		ray_release(link);
link              436 drivers/net/wireless/ray_cs.c 	ray_release(link);
link              463 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link              464 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_init(0x%p)\n", dev);
link              465 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link              466 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_init - device not present\n");
link              488 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_init firmware version %d.%d\n", local->fw_ver,
link              494 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_init tib_length = 0x%02x\n", local->tib_length);
link              510 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_init ending\n");
link              521 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link              523 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "dl_startup_params entered\n");
link              524 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link              525 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs dl_startup_params - device not present\n");
link              543 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "dl_startup_params start ccsindex = %d\n",
link              558 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev,
link              631 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link              633 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link              634 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs verify_dl_startup - device not present\n");
link              673 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link              674 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link              675 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs start_net - device not present\n");
link              686 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray start net failed - card not ready for intr\n");
link              701 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link              703 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link              704 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs join_net - device not present\n");
link              716 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray join net failed - card not ready for intr\n");
link              724 drivers/net/wireless/ray_cs.c static void ray_release(struct pcmcia_device *link)
link              726 drivers/net/wireless/ray_cs.c 	struct net_device *dev = link->priv;
link              729 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_release\n");
link              736 drivers/net/wireless/ray_cs.c 	pcmcia_disable_device(link);
link              738 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_release ending\n");
link              741 drivers/net/wireless/ray_cs.c static int ray_suspend(struct pcmcia_device *link)
link              743 drivers/net/wireless/ray_cs.c 	struct net_device *dev = link->priv;
link              745 drivers/net/wireless/ray_cs.c 	if (link->open)
link              751 drivers/net/wireless/ray_cs.c static int ray_resume(struct pcmcia_device *link)
link              753 drivers/net/wireless/ray_cs.c 	struct net_device *dev = link->priv;
link              755 drivers/net/wireless/ray_cs.c 	if (link->open) {
link              770 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link              772 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_dev_init(dev=%p)\n", dev);
link              773 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link              774 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_dev_init - device not present\n");
link              788 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev,
link              797 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_dev_init ending\n");
link              805 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link              807 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_dev_config(dev=%p,ifmap=%p)\n", dev, map);
link              808 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link              809 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_dev_config - device not present\n");
link              821 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link              824 drivers/net/wireless/ray_cs.c 	if (!pcmcia_dev_present(link)) {
link              825 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_dev_start_xmit - device not present\n");
link              830 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_dev_start_xmit(skb=%p, dev=%p)\n", skb, dev);
link              832 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs Sending authentication request.\n");
link             1387 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             1403 drivers/net/wireless/ray_cs.c 	if (pcmcia_dev_present(link)) {
link             1475 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link;
link             1476 drivers/net/wireless/ray_cs.c 	link = local->finder;
link             1478 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_open('%s')\n", dev->name);
link             1480 drivers/net/wireless/ray_cs.c 	if (link->open == 0)
link             1482 drivers/net/wireless/ray_cs.c 	link->open++;
link             1488 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_open: doing init now !\n");
link             1504 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_open ending\n");
link             1512 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link;
link             1513 drivers/net/wireless/ray_cs.c 	link = local->finder;
link             1515 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_dev_close('%s')\n", dev->name);
link             1517 drivers/net/wireless/ray_cs.c 	link->open--;
link             1540 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             1542 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link             1543 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs interrupt_ecf - device not present\n");
link             1546 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "interrupt_ecf(local=%p, ccs = 0x%x\n", local, ccs);
link             1553 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs interrupt_ecf card not ready for interrupt\n");
link             1569 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             1571 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link             1572 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs get_free_tx_ccs - device not present\n");
link             1577 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs tx_ccs_lock busy\n");
link             1584 drivers/net/wireless/ray_cs.c 			writeb(CCS_END_LIST, &(pccs + i)->link);
link             1590 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_cs ERROR no free tx CCS for raylink card\n");
link             1601 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             1603 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link             1604 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs get_free_ccs - device not present\n");
link             1608 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs ccs_lock busy\n");
link             1615 drivers/net/wireless/ray_cs.c 			writeb(CCS_END_LIST, &(pccs + i)->link);
link             1621 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_cs ERROR no free CCS for raylink card\n");
link             1676 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             1678 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link             1679 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs net_device_stats - device not present\n");
link             1706 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             1711 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link             1712 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_update_parm - device not present\n");
link             1717 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_update_parm - No free ccs\n");
link             1730 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs associate failed - ECF not ready for intr\n");
link             1741 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             1744 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link             1745 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_update_multi_list - device not present\n");
link             1748 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_update_multi_list(%p)\n", dev);
link             1750 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_update_multi - No free ccs\n");
link             1766 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev, "ray_update_multi add addr %pm\n",
link             1774 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs update_multi %d addresses in list\n", i);
link             1779 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev,
link             1825 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link;
link             1842 drivers/net/wireless/ray_cs.c 	link = local->finder;
link             1843 drivers/net/wireless/ray_cs.c 	if (!pcmcia_dev_present(link)) {
link             1851 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs interrupt bad rcsindex = 0x%x\n", rcsindex);
link             1863 drivers/net/wireless/ray_cs.c 				dev_dbg(&link->dev,
link             1866 drivers/net/wireless/ray_cs.c 				dev_dbg(&link->dev,
link             1871 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev, "ray_cs interrupt update params done\n");
link             1876 drivers/net/wireless/ray_cs.c 				dev_dbg(&link->dev,
link             1882 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev, "ray_cs interrupt report params done\n");
link             1885 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev,
link             1889 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev,
link             1902 drivers/net/wireless/ray_cs.c 					dev_dbg(&link->dev,
link             1906 drivers/net/wireless/ray_cs.c 					dev_dbg(&link->dev,
link             1933 drivers/net/wireless/ray_cs.c 					dev_dbg(&link->dev,
link             1938 drivers/net/wireless/ray_cs.c 					dev_dbg(&link->dev,
link             1949 drivers/net/wireless/ray_cs.c 				dev_dbg(&link->dev, "ray_cs association successful\n");
link             1951 drivers/net/wireless/ray_cs.c 				dev_dbg(&link->dev, "ray_cs association failed,\n");
link             1958 drivers/net/wireless/ray_cs.c 				dev_dbg(&link->dev,
link             1961 drivers/net/wireless/ray_cs.c 				dev_dbg(&link->dev,
link             1969 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev, "ray_cs interrupt mem test done\n");
link             1972 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev,
link             1976 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev, "ray_cs interrupt dump memory done\n");
link             1979 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev,
link             1983 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev,
link             1997 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev, "ray_cs interrupt rejoin net complete\n");
link             2007 drivers/net/wireless/ray_cs.c 				dev_dbg(&link->dev, "ray_cs new BSSID = %pm\n",
link             2014 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev, "ray_cs interrupt roaming initiated\n");
link             2019 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev, "ray_cs interrupt japan call sign rx\n");
link             2022 drivers/net/wireless/ray_cs.c 			dev_dbg(&link->dev,
link             2397 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             2398 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_cs Starting authentication.\n");
link             2399 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link             2400 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs authenticate - device not present\n");
link             2467 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link = local->finder;
link             2468 drivers/net/wireless/ray_cs.c 	struct net_device *dev = link->priv;
link             2470 drivers/net/wireless/ray_cs.c 	if (!(pcmcia_dev_present(link))) {
link             2471 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs associate - device not present\n");
link             2477 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs associate - No free ccs\n");
link             2480 drivers/net/wireless/ray_cs.c 	dev_dbg(&link->dev, "ray_cs Starting association with access point\n");
link             2486 drivers/net/wireless/ray_cs.c 		dev_dbg(&link->dev, "ray_cs associate failed - ECF not ready for intr\n");
link             2553 drivers/net/wireless/ray_cs.c 	struct pcmcia_device *link;
link             2560 drivers/net/wireless/ray_cs.c 	link = this_device;
link             2561 drivers/net/wireless/ray_cs.c 	if (!link)
link             2563 drivers/net/wireless/ray_cs.c 	dev = (struct net_device *)link->priv;
link              521 drivers/net/wireless/rayctl.h     UCHAR link;                          /* link to next CCS, FF=end of list */
link             1752 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c 		bool scan = false, link = false, roam = false;
link             1761 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c 		btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             1764 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c 		if (!scan && !link && !roam)
link             2684 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c 	bool roam = false, scan = false, link = false, wifi_under_5g = false;
link             2729 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             2732 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c 		   "Wifi link/ roam/ scan", link, roam, scan);
link             2036 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 	bool scan = false, link = false, roam = false;
link             2052 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             2055 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 	if (scan || link || roam) {
link             2284 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 		bool scan = false, link = false, roam = false;
link             2290 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 		btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             2293 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 		if (scan || link || roam) {
link             2466 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 	bool link = false, wifi_under_5g = false;
link             2519 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             2522 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c 		   "Wifi link/ roam/ scan", link, roam, scan);
link             1571 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 	bool scan = false, link = false, roam = false;
link             1579 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             1587 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 	} else if (scan || link || roam) {
link             2746 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 		bool scan = false, link = false, roam = false;
link             2752 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 		btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             2755 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 		if (!scan && !link && !roam)
link             3353 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 	bool scan = false, link = false, roam = false;
link             3380 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             3383 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 	if (scan || link || roam) {
link             3648 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 	bool link = false, wifi_under_5g = false;
link             3698 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             3701 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c 		   "Wifi link/ roam/ scan", link, roam, scan);
link             1742 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 	bool scan = false, link = false, roam = false;
link             1759 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             1761 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 	if (scan || link || roam) {
link             2002 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 		bool scan = false, link = false, roam = false;
link             2008 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 		btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             2011 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 		if (scan || link || roam) {
link             2118 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 	bool roam = false, scan = false, link = false, wifi_under_5g = false;
link             2176 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             2179 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c 		   link, roam, scan);
link             1454 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 	bool scan = false, link = false, roam = false;
link             1469 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             1474 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 	if (scan || link || roam) {
link             2592 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 		bool scan = false, link = false, roam = false;
link             2599 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 		btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             2602 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 		if (!scan && !link && !roam) {
link             3389 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 	bool scan = false, link = false, roam = false;
link             3422 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             3425 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 	if (scan || link || roam) {
link             3645 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 	bool roam = false, scan = false, link = false, wifi_under_5g = false;
link             3692 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link             3695 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c 		   link, roam, scan);
link              823 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c 	bool scan = false, link = false, roam = false, wifi_busy = false;
link              858 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c 	btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link);
link              862 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c 		   link, roam, scan);
link              380 drivers/net/wireless/realtek/rtw88/coex.c 	bool scan = false, link = false;
link              395 drivers/net/wireless/realtek/rtw88/coex.c 	if (scan || link || reason == COEX_RSN_2GCONSTART ||
link              639 drivers/net/wireless/realtek/rtw88/coex.c 	u8 link = 0;
link              650 drivers/net/wireless/realtek/rtw88/coex.c 		link = 0;
link              652 drivers/net/wireless/realtek/rtw88/coex.c 		link = 0x1;
link              661 drivers/net/wireless/realtek/rtw88/coex.c 				link = 0x3;
link              669 drivers/net/wireless/realtek/rtw88/coex.c 	coex_dm->wl_ch_info[0] = link;
link              673 drivers/net/wireless/realtek/rtw88/coex.c 	rtw_fw_wl_ch_info(rtwdev, link, center_chan, bw);
link              230 drivers/net/wireless/realtek/rtw88/fw.c void rtw_fw_wl_ch_info(struct rtw_dev *rtwdev, u8 link, u8 ch, u8 bw)
link              236 drivers/net/wireless/realtek/rtw88/fw.c 	SET_WL_CH_INFO_LINK(h2c_pkt, link);
link              274 drivers/net/wireless/realtek/rtw88/fw.h void rtw_fw_wl_ch_info(struct rtw_dev *rtwdev, u8 link, u8 ch, u8 bw);
link               45 drivers/net/wireless/st/cw1200/sta.c 	list_for_each_entry_safe(event, tmp, list, link) {
link               46 drivers/net/wireless/st/cw1200/sta.c 		list_del(&event->link);
link              974 drivers/net/wireless/st/cw1200/sta.c 	list_for_each_entry(event, &list, link) {
link              222 drivers/net/wireless/st/cw1200/txrx.c 	list_for_each_entry(it, &cache->used, link) {
link              227 drivers/net/wireless/st/cw1200/txrx.c 	list_for_each_entry(it, &cache->free, link) {
link              238 drivers/net/wireless/st/cw1200/txrx.c 	list_move(&entry->link, &cache->used);
link              246 drivers/net/wireless/st/cw1200/txrx.c 		list_move(&entry->link, &cache->free);
link              267 drivers/net/wireless/st/cw1200/txrx.c 			list_move(&entry->link, &cache->free);
link              293 drivers/net/wireless/st/cw1200/txrx.c 		list_add(&cache->cache[i].link, &cache->free);
link              322 drivers/net/wireless/st/cw1200/txrx.c 			struct tx_policy_cache_entry, link);
link               34 drivers/net/wireless/st/cw1200/txrx.h 	struct list_head link;
link              937 drivers/net/wireless/st/cw1200/wsm.c 	list_add_tail(&event->link, &priv->event_queue);
link              881 drivers/net/wireless/st/cw1200/wsm.h 	struct list_head link;
link              315 drivers/net/wireless/ti/wlcore/cmd.c 	u8 link = find_first_zero_bit(wl->links_map, wl->num_links);
link              316 drivers/net/wireless/ti/wlcore/cmd.c 	if (link >= wl->num_links)
link              319 drivers/net/wireless/ti/wlcore/cmd.c 	wl->session_ids[link] = wlcore_get_new_session_id(wl, link);
link              323 drivers/net/wireless/ti/wlcore/cmd.c 	__set_bit(link, wl->links_map);
link              324 drivers/net/wireless/ti/wlcore/cmd.c 	__set_bit(link, wlvif->links_map);
link              333 drivers/net/wireless/ti/wlcore/cmd.c 		wl->links[link].prev_freed_pkts =
link              334 drivers/net/wireless/ti/wlcore/cmd.c 			wl->fw_status->counters.tx_lnk_free_pkts[link];
link              335 drivers/net/wireless/ti/wlcore/cmd.c 	wl->links[link].wlvif = wlvif;
link              342 drivers/net/wireless/ti/wlcore/cmd.c 		wl->links[link].total_freed_pkts = wlvif->total_freed_pkts;
link              344 drivers/net/wireless/ti/wlcore/cmd.c 	*hlid = link;
link               78 drivers/net/wireless/wl3501_cs.c static int wl3501_config(struct pcmcia_device *link);
link               79 drivers/net/wireless/wl3501_cs.c static void wl3501_release(struct pcmcia_device *link);
link             1230 drivers/net/wireless/wl3501_cs.c 	struct pcmcia_device *link;
link             1231 drivers/net/wireless/wl3501_cs.c 	link = this->p_dev;
link             1234 drivers/net/wireless/wl3501_cs.c 	link->open--;
link             1341 drivers/net/wireless/wl3501_cs.c 	struct pcmcia_device *link;
link             1342 drivers/net/wireless/wl3501_cs.c 	link = this->p_dev;
link             1345 drivers/net/wireless/wl3501_cs.c 	if (!pcmcia_dev_present(link))
link             1348 drivers/net/wireless/wl3501_cs.c 	link->open++;
link             1419 drivers/net/wireless/wl3501_cs.c static void wl3501_detach(struct pcmcia_device *link)
link             1421 drivers/net/wireless/wl3501_cs.c 	struct net_device *dev = link->priv;
link             1427 drivers/net/wireless/wl3501_cs.c 	while (link->open > 0)
link             1431 drivers/net/wireless/wl3501_cs.c 	wl3501_release(link);
link             1435 drivers/net/wireless/wl3501_cs.c 	if (link->priv)
link             1436 drivers/net/wireless/wl3501_cs.c 		free_netdev(link->priv);
link             1893 drivers/net/wireless/wl3501_cs.c static int wl3501_config(struct pcmcia_device *link)
link             1895 drivers/net/wireless/wl3501_cs.c 	struct net_device *dev = link->priv;
link             1902 drivers/net/wireless/wl3501_cs.c 	link->io_lines = 5;
link             1907 drivers/net/wireless/wl3501_cs.c 		link->resource[0]->start = j;
link             1908 drivers/net/wireless/wl3501_cs.c 		link->resource[1]->start = link->resource[0]->start + 0x10;
link             1909 drivers/net/wireless/wl3501_cs.c 		i = pcmcia_request_io(link);
link             1919 drivers/net/wireless/wl3501_cs.c 	ret = pcmcia_request_irq(link, wl3501_interrupt);
link             1923 drivers/net/wireless/wl3501_cs.c 	ret = pcmcia_enable_device(link);
link             1927 drivers/net/wireless/wl3501_cs.c 	dev->irq = link->irq;
link             1928 drivers/net/wireless/wl3501_cs.c 	dev->base_addr = link->resource[0]->start;
link             1929 drivers/net/wireless/wl3501_cs.c 	SET_NETDEV_DEV(dev, &link->dev);
link             1974 drivers/net/wireless/wl3501_cs.c 	wl3501_release(link);
link             1978 drivers/net/wireless/wl3501_cs.c static void wl3501_release(struct pcmcia_device *link)
link             1980 drivers/net/wireless/wl3501_cs.c 	pcmcia_disable_device(link);
link             1983 drivers/net/wireless/wl3501_cs.c static int wl3501_suspend(struct pcmcia_device *link)
link             1985 drivers/net/wireless/wl3501_cs.c 	struct net_device *dev = link->priv;
link             1988 drivers/net/wireless/wl3501_cs.c 	if (link->open)
link             1994 drivers/net/wireless/wl3501_cs.c static int wl3501_resume(struct pcmcia_device *link)
link             1996 drivers/net/wireless/wl3501_cs.c 	struct net_device *dev = link->priv;
link             1999 drivers/net/wireless/wl3501_cs.c 	if (link->open) {
link              226 drivers/net/xen-netback/common.h 	struct list_head link;
link               54 drivers/net/xen-netback/hash.c 	list_for_each_entry_rcu(entry, &vif->hash.cache.list, link) {
link               65 drivers/net/xen-netback/hash.c 		list_add_rcu(&new->link, &vif->hash.cache.list);
link               68 drivers/net/xen-netback/hash.c 			list_del_rcu(&oldest->link);
link              105 drivers/net/xen-netback/hash.c 	list_for_each_entry_rcu(entry, &vif->hash.cache.list, link) {
link              106 drivers/net/xen-netback/hash.c 		list_del_rcu(&entry->link);
link              131 drivers/net/xen-netback/hash.c 	list_for_each_entry_rcu(entry, &vif->hash.cache.list, link) {
link              131 drivers/net/xen-netfront.c 		unsigned long link;
link              172 drivers/net/xen-netfront.c 	list->link = id;
link              177 drivers/net/xen-netfront.c 	BUILD_BUG_ON(sizeof(list->skb) != sizeof(list->link));
link              196 drivers/net/xen-netfront.c 	*head = list[id].link;
link               67 drivers/nfc/nfcsim.c 	struct nfcsim_link *link;
link               69 drivers/nfc/nfcsim.c 	link = kzalloc(sizeof(struct nfcsim_link), GFP_KERNEL);
link               70 drivers/nfc/nfcsim.c 	if (!link)
link               73 drivers/nfc/nfcsim.c 	mutex_init(&link->lock);
link               74 drivers/nfc/nfcsim.c 	init_waitqueue_head(&link->recv_wait);
link               76 drivers/nfc/nfcsim.c 	return link;
link               79 drivers/nfc/nfcsim.c static void nfcsim_link_free(struct nfcsim_link *link)
link               81 drivers/nfc/nfcsim.c 	dev_kfree_skb(link->skb);
link               82 drivers/nfc/nfcsim.c 	kfree(link);
link               85 drivers/nfc/nfcsim.c static void nfcsim_link_recv_wake(struct nfcsim_link *link)
link               87 drivers/nfc/nfcsim.c 	link->cond = 1;
link               88 drivers/nfc/nfcsim.c 	wake_up_interruptible(&link->recv_wait);
link               91 drivers/nfc/nfcsim.c static void nfcsim_link_set_skb(struct nfcsim_link *link, struct sk_buff *skb,
link               94 drivers/nfc/nfcsim.c 	mutex_lock(&link->lock);
link               96 drivers/nfc/nfcsim.c 	dev_kfree_skb(link->skb);
link               97 drivers/nfc/nfcsim.c 	link->skb = skb;
link               98 drivers/nfc/nfcsim.c 	link->rf_tech = rf_tech;
link               99 drivers/nfc/nfcsim.c 	link->mode = mode;
link              101 drivers/nfc/nfcsim.c 	mutex_unlock(&link->lock);
link              104 drivers/nfc/nfcsim.c static void nfcsim_link_recv_cancel(struct nfcsim_link *link)
link              106 drivers/nfc/nfcsim.c 	mutex_lock(&link->lock);
link              108 drivers/nfc/nfcsim.c 	link->mode = NFCSIM_MODE_NONE;
link              110 drivers/nfc/nfcsim.c 	mutex_unlock(&link->lock);
link              112 drivers/nfc/nfcsim.c 	nfcsim_link_recv_wake(link);
link              115 drivers/nfc/nfcsim.c static void nfcsim_link_shutdown(struct nfcsim_link *link)
link              117 drivers/nfc/nfcsim.c 	mutex_lock(&link->lock);
link              119 drivers/nfc/nfcsim.c 	link->shutdown = 1;
link              120 drivers/nfc/nfcsim.c 	link->mode = NFCSIM_MODE_NONE;
link              122 drivers/nfc/nfcsim.c 	mutex_unlock(&link->lock);
link              124 drivers/nfc/nfcsim.c 	nfcsim_link_recv_wake(link);
link              127 drivers/nfc/nfcsim.c static struct sk_buff *nfcsim_link_recv_skb(struct nfcsim_link *link,
link              133 drivers/nfc/nfcsim.c 	rc = wait_event_interruptible_timeout(link->recv_wait,
link              134 drivers/nfc/nfcsim.c 					      link->cond,
link              137 drivers/nfc/nfcsim.c 	mutex_lock(&link->lock);
link              139 drivers/nfc/nfcsim.c 	skb = link->skb;
link              140 drivers/nfc/nfcsim.c 	link->skb = NULL;
link              147 drivers/nfc/nfcsim.c 	if (!skb || link->rf_tech != rf_tech || link->mode == mode) {
link              152 drivers/nfc/nfcsim.c 	if (link->shutdown) {
link              158 drivers/nfc/nfcsim.c 	mutex_unlock(&link->lock);
link              165 drivers/nfc/nfcsim.c 	link->cond = 0;
link              248 drivers/ntb/test/ntb_perf.c 	u64 link;
link              250 drivers/ntb/test/ntb_perf.c 	link = ntb_link_is_up(peer->perf->ntb, NULL, NULL);
link              251 drivers/ntb/test/ntb_perf.c 	return !!(link & BIT_ULL_MASK(peer->pidx));
link              118 drivers/ntb/test/ntb_pingpong.c 	u64 link, out_db;
link              121 drivers/ntb/test/ntb_pingpong.c 	link = ntb_link_is_up(pp->ntb, NULL, NULL);
link              124 drivers/ntb/test/ntb_pingpong.c 	if (link & pp->nmask) {
link              125 drivers/ntb/test/ntb_pingpong.c 		pidx = __ffs64(link & pp->nmask);
link              127 drivers/ntb/test/ntb_pingpong.c 	} else if (link & pp->pmask) {
link              128 drivers/ntb/test/ntb_pingpong.c 		pidx = __ffs64(link & pp->pmask);
link              739 drivers/nvme/host/pci.c 			struct nvme_sgl_desc *link = &old_sg_desc[i - 1];
link              747 drivers/nvme/host/pci.c 			sg_list[i++] = *link;
link              748 drivers/nvme/host/pci.c 			nvme_pci_sgl_set_seg(link, sgl_dma, entries);
link              623 drivers/nvme/target/configfs.c 	struct nvmet_subsys_link *link, *p;
link              631 drivers/nvme/target/configfs.c 	link = kmalloc(sizeof(*link), GFP_KERNEL);
link              632 drivers/nvme/target/configfs.c 	if (!link)
link              634 drivers/nvme/target/configfs.c 	link->subsys = subsys;
link              649 drivers/nvme/target/configfs.c 	list_add_tail(&link->entry, &port->subsystems);
link              657 drivers/nvme/target/configfs.c 	kfree(link);
link              702 drivers/nvme/target/configfs.c 	struct nvmet_host_link *link, *p;
link              711 drivers/nvme/target/configfs.c 	link = kmalloc(sizeof(*link), GFP_KERNEL);
link              712 drivers/nvme/target/configfs.c 	if (!link)
link              714 drivers/nvme/target/configfs.c 	link->host = host;
link              728 drivers/nvme/target/configfs.c 	list_add_tail(&link->entry, &subsys->hosts);
link              735 drivers/nvme/target/configfs.c 	kfree(link);
link             1979 drivers/of/base.c 	list_add_tail(&ap->link, &aliases_lookup);
link             2069 drivers/of/base.c 	list_for_each_entry(app, &aliases_lookup, link) {
link             2109 drivers/of/base.c 	list_for_each_entry(app, &aliases_lookup, link) {
link             2150 drivers/of/base.c 	list_for_each_entry(app, &aliases_lookup, link) {
link              309 drivers/of/device.c 	list_for_each_entry(app, &aliases_lookup, link) {
link              469 drivers/of/of_mdio.c 		status.link = 1;
link              488 drivers/of/of_mdio.c 		status.link = 1;
link               23 drivers/of/of_private.h 	struct list_head link;
link               80 drivers/parport/parport_cs.c static int parport_config(struct pcmcia_device *link);
link               83 drivers/parport/parport_cs.c static int parport_probe(struct pcmcia_device *link)
link               87 drivers/parport/parport_cs.c     dev_dbg(&link->dev, "parport_attach()\n");
link               92 drivers/parport/parport_cs.c     link->priv = info;
link               93 drivers/parport/parport_cs.c     info->p_dev = link;
link               95 drivers/parport/parport_cs.c     link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link               97 drivers/parport/parport_cs.c     return parport_config(link);
link              100 drivers/parport/parport_cs.c static void parport_detach(struct pcmcia_device *link)
link              102 drivers/parport/parport_cs.c     dev_dbg(&link->dev, "parport_detach\n");
link              104 drivers/parport/parport_cs.c     parport_cs_release(link);
link              106 drivers/parport/parport_cs.c     kfree(link->priv);
link              119 drivers/parport/parport_cs.c static int parport_config(struct pcmcia_device *link)
link              121 drivers/parport/parport_cs.c     parport_info_t *info = link->priv;
link              125 drivers/parport/parport_cs.c     dev_dbg(&link->dev, "parport_config\n");
link              128 drivers/parport/parport_cs.c 	    link->config_index |= FORCE_EPP_MODE;
link              130 drivers/parport/parport_cs.c     ret = pcmcia_loop_config(link, parport_config_check, NULL);
link              134 drivers/parport/parport_cs.c     if (!link->irq)
link              136 drivers/parport/parport_cs.c     ret = pcmcia_enable_device(link);
link              140 drivers/parport/parport_cs.c     p = parport_pc_probe_port(link->resource[0]->start,
link              141 drivers/parport/parport_cs.c 			      link->resource[1]->start,
link              142 drivers/parport/parport_cs.c 			      link->irq, PARPORT_DMA_NONE,
link              143 drivers/parport/parport_cs.c 			      &link->dev, IRQF_SHARED);
link              147 drivers/parport/parport_cs.c 	       (unsigned int) link->resource[0]->start,
link              148 drivers/parport/parport_cs.c 	       link->irq);
link              161 drivers/parport/parport_cs.c 	parport_cs_release(link);
link              162 drivers/parport/parport_cs.c 	kfree(link->priv);
link              166 drivers/parport/parport_cs.c static void parport_cs_release(struct pcmcia_device *link)
link              168 drivers/parport/parport_cs.c 	parport_info_t *info = link->priv;
link              170 drivers/parport/parport_cs.c 	dev_dbg(&link->dev, "parport_release\n");
link              178 drivers/parport/parport_cs.c 	pcmcia_disable_device(link);
link              682 drivers/pci/controller/dwc/pci-dra7xx.c 	struct device_link **link;
link              736 drivers/pci/controller/dwc/pci-dra7xx.c 	link = devm_kcalloc(dev, phy_count, sizeof(*link), GFP_KERNEL);
link              737 drivers/pci/controller/dwc/pci-dra7xx.c 	if (!link)
link              746 drivers/pci/controller/dwc/pci-dra7xx.c 		link[i] = device_link_add(dev, &phy[i]->dev, DL_FLAG_STATELESS);
link              747 drivers/pci/controller/dwc/pci-dra7xx.c 		if (!link[i]) {
link              852 drivers/pci/controller/dwc/pci-dra7xx.c 		device_link_del(link[i]);
link              340 drivers/pci/controller/dwc/pci-imx6.c 	struct device_link *link;
link              352 drivers/pci/controller/dwc/pci-imx6.c 	link = device_link_add(dev, imx6_pcie->pd_pcie,
link              356 drivers/pci/controller/dwc/pci-imx6.c 	if (!link) {
link              365 drivers/pci/controller/dwc/pci-imx6.c 	link = device_link_add(dev, imx6_pcie->pd_pcie_phy,
link              369 drivers/pci/controller/dwc/pci-imx6.c 	if (!link) {
link              128 drivers/pci/controller/dwc/pci-keystone.c 	struct device_link	**link;
link             1195 drivers/pci/controller/dwc/pci-keystone.c 	struct device_link **link;
link             1271 drivers/pci/controller/dwc/pci-keystone.c 	link = devm_kzalloc(dev, sizeof(*link) * num_lanes, GFP_KERNEL);
link             1272 drivers/pci/controller/dwc/pci-keystone.c 	if (!link)
link             1286 drivers/pci/controller/dwc/pci-keystone.c 		link[i] = device_link_add(dev, &phy[i]->dev, DL_FLAG_STATELESS);
link             1287 drivers/pci/controller/dwc/pci-keystone.c 		if (!link[i]) {
link             1295 drivers/pci/controller/dwc/pci-keystone.c 	ks_pcie->link = link;
link             1404 drivers/pci/controller/dwc/pci-keystone.c 	while (--i >= 0 && link[i])
link             1405 drivers/pci/controller/dwc/pci-keystone.c 		device_link_del(link[i]);
link             1413 drivers/pci/controller/dwc/pci-keystone.c 	struct device_link **link = ks_pcie->link;
link             1421 drivers/pci/controller/dwc/pci-keystone.c 		device_link_del(link[num_lanes]);
link              536 drivers/pci/controller/pcie-cadence-ep.c 		device_link_del(pcie->link[phy_count]);
link              334 drivers/pci/controller/pcie-cadence-host.c 		device_link_del(pcie->link[phy_count]);
link              171 drivers/pci/controller/pcie-cadence.c 	struct device_link **link;
link              187 drivers/pci/controller/pcie-cadence.c 	link = devm_kcalloc(dev, phy_count, sizeof(*link), GFP_KERNEL);
link              188 drivers/pci/controller/pcie-cadence.c 	if (!link)
link              198 drivers/pci/controller/pcie-cadence.c 		link[i] = device_link_add(dev, &phy[i]->dev, DL_FLAG_STATELESS);
link              199 drivers/pci/controller/pcie-cadence.c 		if (!link[i]) {
link              208 drivers/pci/controller/pcie-cadence.c 	pcie->link = link;
link              218 drivers/pci/controller/pcie-cadence.c 		device_link_del(link[i]);
link              238 drivers/pci/controller/pcie-cadence.h 	struct device_link	**link;
link              169 drivers/pci/hotplug/ibmphp_core.c 					rtable->slots[loop].irq[0].link);
link              171 drivers/pci/hotplug/ibmphp_core.c 					rtable->slots[loop].irq[1].link);
link              173 drivers/pci/hotplug/ibmphp_core.c 					rtable->slots[loop].irq[2].link);
link              175 drivers/pci/hotplug/ibmphp_core.c 					rtable->slots[loop].irq[3].link);
link               97 drivers/pci/hotplug/pnv_php.c 	list_for_each_entry(tmp, &php_slot->children, link) {
link              112 drivers/pci/hotplug/pnv_php.c 	list_for_each_entry(tmp, &pnv_php_slot_list, link) {
link              603 drivers/pci/hotplug/pnv_php.c 	list_del(&php_slot->link);
link              655 drivers/pci/hotplug/pnv_php.c 	INIT_LIST_HEAD(&php_slot->link);
link              701 drivers/pci/hotplug/pnv_php.c 		list_add_tail(&php_slot->link, &parent->children);
link              703 drivers/pci/hotplug/pnv_php.c 		list_add_tail(&php_slot->link, &pnv_php_slot_list);
link              491 drivers/pci/iov.c 	if (iov->link != dev->devfn) {
link              492 drivers/pci/iov.c 		pdev = pci_get_slot(dev->bus, iov->link);
link              543 drivers/pci/iov.c 	if (iov->link != dev->devfn)
link              578 drivers/pci/iov.c 	if (iov->link != dev->devfn)
link              667 drivers/pci/iov.c 	pci_read_config_byte(dev, pos + PCI_SRIOV_FUNC_LINK, &iov->link);
link              669 drivers/pci/iov.c 		iov->link = PCI_DEVFN(PCI_SLOT(dev->devfn), iov->link);
link              330 drivers/pci/pci.h 	u8		link;		/* Function Dependency Link */
link              116 drivers/pci/pcie/aspm.c static int policy_to_aspm_state(struct pcie_link_state *link)
link              129 drivers/pci/pcie/aspm.c 		return link->aspm_default;
link              134 drivers/pci/pcie/aspm.c static int policy_to_clkpm_state(struct pcie_link_state *link)
link              145 drivers/pci/pcie/aspm.c 		return link->clkpm_default;
link              150 drivers/pci/pcie/aspm.c static void pcie_set_clkpm_nocheck(struct pcie_link_state *link, int enable)
link              153 drivers/pci/pcie/aspm.c 	struct pci_bus *linkbus = link->pdev->subordinate;
link              160 drivers/pci/pcie/aspm.c 	link->clkpm_enabled = !!enable;
link              163 drivers/pci/pcie/aspm.c static void pcie_set_clkpm(struct pcie_link_state *link, int enable)
link              169 drivers/pci/pcie/aspm.c 	if (!link->clkpm_capable || link->clkpm_disable)
link              172 drivers/pci/pcie/aspm.c 	if (link->clkpm_enabled == enable)
link              174 drivers/pci/pcie/aspm.c 	pcie_set_clkpm_nocheck(link, enable);
link              177 drivers/pci/pcie/aspm.c static void pcie_clkpm_cap_init(struct pcie_link_state *link, int blacklist)
link              183 drivers/pci/pcie/aspm.c 	struct pci_bus *linkbus = link->pdev->subordinate;
link              197 drivers/pci/pcie/aspm.c 	link->clkpm_enabled = enabled;
link              198 drivers/pci/pcie/aspm.c 	link->clkpm_default = enabled;
link              199 drivers/pci/pcie/aspm.c 	link->clkpm_capable = capable;
link              200 drivers/pci/pcie/aspm.c 	link->clkpm_disable = blacklist ? 1 : 0;
link              203 drivers/pci/pcie/aspm.c static bool pcie_retrain_link(struct pcie_link_state *link)
link              205 drivers/pci/pcie/aspm.c 	struct pci_dev *parent = link->pdev;
link              238 drivers/pci/pcie/aspm.c static void pcie_aspm_configure_common_clock(struct pcie_link_state *link)
link              242 drivers/pci/pcie/aspm.c 	struct pci_dev *child, *parent = link->pdev;
link              299 drivers/pci/pcie/aspm.c 	if (pcie_retrain_link(link))
link              439 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link;
link              446 drivers/pci/pcie/aspm.c 	link = endpoint->bus->self->link_state;
link              447 drivers/pci/pcie/aspm.c 	acceptable = &link->acceptable[PCI_FUNC(endpoint->devfn)];
link              449 drivers/pci/pcie/aspm.c 	while (link) {
link              451 drivers/pci/pcie/aspm.c 		if ((link->aspm_capable & ASPM_STATE_L0S_UP) &&
link              452 drivers/pci/pcie/aspm.c 		    (link->latency_up.l0s > acceptable->l0s))
link              453 drivers/pci/pcie/aspm.c 			link->aspm_capable &= ~ASPM_STATE_L0S_UP;
link              456 drivers/pci/pcie/aspm.c 		if ((link->aspm_capable & ASPM_STATE_L0S_DW) &&
link              457 drivers/pci/pcie/aspm.c 		    (link->latency_dw.l0s > acceptable->l0s))
link              458 drivers/pci/pcie/aspm.c 			link->aspm_capable &= ~ASPM_STATE_L0S_DW;
link              472 drivers/pci/pcie/aspm.c 		latency = max_t(u32, link->latency_up.l1, link->latency_dw.l1);
link              473 drivers/pci/pcie/aspm.c 		if ((link->aspm_capable & ASPM_STATE_L1) &&
link              475 drivers/pci/pcie/aspm.c 			link->aspm_capable &= ~ASPM_STATE_L1;
link              478 drivers/pci/pcie/aspm.c 		link = link->parent;
link              497 drivers/pci/pcie/aspm.c static void aspm_calc_l1ss_info(struct pcie_link_state *link,
link              504 drivers/pci/pcie/aspm.c 	link->l1ss.up_cap_ptr = upreg->l1ss_cap_ptr;
link              505 drivers/pci/pcie/aspm.c 	link->l1ss.dw_cap_ptr = dwreg->l1ss_cap_ptr;
link              506 drivers/pci/pcie/aspm.c 	link->l1ss.ctl1 = link->l1ss.ctl2 = 0;
link              508 drivers/pci/pcie/aspm.c 	if (!(link->aspm_support & ASPM_STATE_L1_2_MASK))
link              522 drivers/pci/pcie/aspm.c 	if (calc_l1ss_pwron(link->pdev, scale1, val1) >
link              523 drivers/pci/pcie/aspm.c 	    calc_l1ss_pwron(link->downstream, scale2, val2)) {
link              524 drivers/pci/pcie/aspm.c 		link->l1ss.ctl2 |= scale1 | (val1 << 3);
link              525 drivers/pci/pcie/aspm.c 		t_power_on = calc_l1ss_pwron(link->pdev, scale1, val1);
link              527 drivers/pci/pcie/aspm.c 		link->l1ss.ctl2 |= scale2 | (val2 << 3);
link              528 drivers/pci/pcie/aspm.c 		t_power_on = calc_l1ss_pwron(link->downstream, scale2, val2);
link              543 drivers/pci/pcie/aspm.c 	link->l1ss.ctl1 |= t_common_mode << 8 | scale << 29 | value << 16;
link              546 drivers/pci/pcie/aspm.c static void pcie_aspm_cap_init(struct pcie_link_state *link, int blacklist)
link              548 drivers/pci/pcie/aspm.c 	struct pci_dev *child = link->downstream, *parent = link->pdev;
link              554 drivers/pci/pcie/aspm.c 		link->aspm_enabled = ASPM_STATE_ALL;
link              555 drivers/pci/pcie/aspm.c 		link->aspm_disable = ASPM_STATE_ALL;
link              571 drivers/pci/pcie/aspm.c 	pcie_aspm_configure_common_clock(link);
link              588 drivers/pci/pcie/aspm.c 		link->aspm_support |= ASPM_STATE_L0S;
link              590 drivers/pci/pcie/aspm.c 		link->aspm_enabled |= ASPM_STATE_L0S_UP;
link              592 drivers/pci/pcie/aspm.c 		link->aspm_enabled |= ASPM_STATE_L0S_DW;
link              593 drivers/pci/pcie/aspm.c 	link->latency_up.l0s = calc_l0s_latency(upreg.latency_encoding_l0s);
link              594 drivers/pci/pcie/aspm.c 	link->latency_dw.l0s = calc_l0s_latency(dwreg.latency_encoding_l0s);
link              598 drivers/pci/pcie/aspm.c 		link->aspm_support |= ASPM_STATE_L1;
link              600 drivers/pci/pcie/aspm.c 		link->aspm_enabled |= ASPM_STATE_L1;
link              601 drivers/pci/pcie/aspm.c 	link->latency_up.l1 = calc_l1_latency(upreg.latency_encoding_l1);
link              602 drivers/pci/pcie/aspm.c 	link->latency_dw.l1 = calc_l1_latency(dwreg.latency_encoding_l1);
link              606 drivers/pci/pcie/aspm.c 		link->aspm_support |= ASPM_STATE_L1_1;
link              608 drivers/pci/pcie/aspm.c 		link->aspm_support |= ASPM_STATE_L1_2;
link              610 drivers/pci/pcie/aspm.c 		link->aspm_support |= ASPM_STATE_L1_1_PCIPM;
link              612 drivers/pci/pcie/aspm.c 		link->aspm_support |= ASPM_STATE_L1_2_PCIPM;
link              615 drivers/pci/pcie/aspm.c 		link->aspm_enabled |= ASPM_STATE_L1_1;
link              617 drivers/pci/pcie/aspm.c 		link->aspm_enabled |= ASPM_STATE_L1_2;
link              619 drivers/pci/pcie/aspm.c 		link->aspm_enabled |= ASPM_STATE_L1_1_PCIPM;
link              621 drivers/pci/pcie/aspm.c 		link->aspm_enabled |= ASPM_STATE_L1_2_PCIPM;
link              623 drivers/pci/pcie/aspm.c 	if (link->aspm_support & ASPM_STATE_L1SS)
link              624 drivers/pci/pcie/aspm.c 		aspm_calc_l1ss_info(link, &upreg, &dwreg);
link              627 drivers/pci/pcie/aspm.c 	link->aspm_default = link->aspm_enabled;
link              630 drivers/pci/pcie/aspm.c 	link->aspm_capable = link->aspm_support;
link              637 drivers/pci/pcie/aspm.c 			link->aspm_disable = ASPM_STATE_ALL;
link              646 drivers/pci/pcie/aspm.c 			&link->acceptable[PCI_FUNC(child->devfn)];
link              676 drivers/pci/pcie/aspm.c static void pcie_config_aspm_l1ss(struct pcie_link_state *link, u32 state)
link              679 drivers/pci/pcie/aspm.c 	struct pci_dev *child = link->downstream, *parent = link->pdev;
link              680 drivers/pci/pcie/aspm.c 	u32 up_cap_ptr = link->l1ss.up_cap_ptr;
link              681 drivers/pci/pcie/aspm.c 	u32 dw_cap_ptr = link->l1ss.dw_cap_ptr;
link              683 drivers/pci/pcie/aspm.c 	enable_req = (link->aspm_enabled ^ state) & state;
link              718 drivers/pci/pcie/aspm.c 				       link->l1ss.ctl2);
link              720 drivers/pci/pcie/aspm.c 				       link->l1ss.ctl2);
link              725 drivers/pci/pcie/aspm.c 					link->l1ss.ctl1);
link              731 drivers/pci/pcie/aspm.c 					link->l1ss.ctl1);
link              735 drivers/pci/pcie/aspm.c 					link->l1ss.ctl1);
link              761 drivers/pci/pcie/aspm.c static void pcie_config_aspm_link(struct pcie_link_state *link, u32 state)
link              764 drivers/pci/pcie/aspm.c 	struct pci_dev *child = link->downstream, *parent = link->pdev;
link              768 drivers/pci/pcie/aspm.c 	state &= (link->aspm_capable & ~link->aspm_disable);
link              777 drivers/pci/pcie/aspm.c 		state |= (link->aspm_enabled & ASPM_STATE_L1_SS_PCIPM);
link              781 drivers/pci/pcie/aspm.c 	if (link->aspm_enabled == state)
link              793 drivers/pci/pcie/aspm.c 	if (link->aspm_capable & ASPM_STATE_L1SS)
link              794 drivers/pci/pcie/aspm.c 		pcie_config_aspm_l1ss(link, state);
link              809 drivers/pci/pcie/aspm.c 	link->aspm_enabled = state;
link              812 drivers/pci/pcie/aspm.c static void pcie_config_aspm_path(struct pcie_link_state *link)
link              814 drivers/pci/pcie/aspm.c 	while (link) {
link              815 drivers/pci/pcie/aspm.c 		pcie_config_aspm_link(link, policy_to_aspm_state(link));
link              816 drivers/pci/pcie/aspm.c 		link = link->parent;
link              820 drivers/pci/pcie/aspm.c static void free_link_state(struct pcie_link_state *link)
link              822 drivers/pci/pcie/aspm.c 	link->pdev->link_state = NULL;
link              823 drivers/pci/pcie/aspm.c 	kfree(link);
link              863 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link;
link              865 drivers/pci/pcie/aspm.c 	link = kzalloc(sizeof(*link), GFP_KERNEL);
link              866 drivers/pci/pcie/aspm.c 	if (!link)
link              869 drivers/pci/pcie/aspm.c 	INIT_LIST_HEAD(&link->sibling);
link              870 drivers/pci/pcie/aspm.c 	link->pdev = pdev;
link              871 drivers/pci/pcie/aspm.c 	link->downstream = pci_function_0(pdev->subordinate);
link              883 drivers/pci/pcie/aspm.c 		link->root = link;
link              889 drivers/pci/pcie/aspm.c 			kfree(link);
link              893 drivers/pci/pcie/aspm.c 		link->parent = parent;
link              894 drivers/pci/pcie/aspm.c 		link->root = link->parent->root;
link              897 drivers/pci/pcie/aspm.c 	list_add(&link->sibling, &link_list);
link              898 drivers/pci/pcie/aspm.c 	pdev->link_state = link;
link              899 drivers/pci/pcie/aspm.c 	return link;
link              909 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link;
link              936 drivers/pci/pcie/aspm.c 	link = alloc_pcie_link_state(pdev);
link              937 drivers/pci/pcie/aspm.c 	if (!link)
link              944 drivers/pci/pcie/aspm.c 	pcie_aspm_cap_init(link, blacklist);
link              947 drivers/pci/pcie/aspm.c 	pcie_clkpm_cap_init(link, blacklist);
link              959 drivers/pci/pcie/aspm.c 		pcie_config_aspm_path(link);
link              960 drivers/pci/pcie/aspm.c 		pcie_set_clkpm(link, policy_to_clkpm_state(link));
link              972 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link;
link              974 drivers/pci/pcie/aspm.c 	list_for_each_entry(link, &link_list, sibling) {
link              975 drivers/pci/pcie/aspm.c 		if (link->root != root)
link              977 drivers/pci/pcie/aspm.c 		link->aspm_capable = link->aspm_support;
link              979 drivers/pci/pcie/aspm.c 	list_for_each_entry(link, &link_list, sibling) {
link              981 drivers/pci/pcie/aspm.c 		struct pci_bus *linkbus = link->pdev->subordinate;
link              982 drivers/pci/pcie/aspm.c 		if (link->root != root)
link              997 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link, *root, *parent_link;
link             1011 drivers/pci/pcie/aspm.c 	link = parent->link_state;
link             1012 drivers/pci/pcie/aspm.c 	root = link->root;
link             1013 drivers/pci/pcie/aspm.c 	parent_link = link->parent;
link             1016 drivers/pci/pcie/aspm.c 	pcie_config_aspm_link(link, 0);
link             1017 drivers/pci/pcie/aspm.c 	list_del(&link->sibling);
link             1019 drivers/pci/pcie/aspm.c 	free_link_state(link);
link             1034 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link = pdev->link_state;
link             1036 drivers/pci/pcie/aspm.c 	if (aspm_disabled || !link)
link             1044 drivers/pci/pcie/aspm.c 	pcie_update_aspm_capable(link->root);
link             1045 drivers/pci/pcie/aspm.c 	pcie_config_aspm_path(link);
link             1052 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link = pdev->link_state;
link             1054 drivers/pci/pcie/aspm.c 	if (aspm_disabled || !link)
link             1063 drivers/pci/pcie/aspm.c 	pcie_config_aspm_path(link);
link             1064 drivers/pci/pcie/aspm.c 	pcie_set_clkpm(link, policy_to_clkpm_state(link));
link             1072 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link;
link             1098 drivers/pci/pcie/aspm.c 	link = parent->link_state;
link             1100 drivers/pci/pcie/aspm.c 		link->aspm_disable |= ASPM_STATE_L0S;
link             1102 drivers/pci/pcie/aspm.c 		link->aspm_disable |= ASPM_STATE_L1;
link             1103 drivers/pci/pcie/aspm.c 	pcie_config_aspm_link(link, policy_to_aspm_state(link));
link             1106 drivers/pci/pcie/aspm.c 		link->clkpm_disable = 1;
link             1107 drivers/pci/pcie/aspm.c 	pcie_set_clkpm(link, policy_to_clkpm_state(link));
link             1140 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link;
link             1153 drivers/pci/pcie/aspm.c 	list_for_each_entry(link, &link_list, sibling) {
link             1154 drivers/pci/pcie/aspm.c 		pcie_config_aspm_link(link, policy_to_aspm_state(link));
link             1155 drivers/pci/pcie/aspm.c 		pcie_set_clkpm(link, policy_to_clkpm_state(link));
link             1213 drivers/pci/pcie/aspm.c 	struct pcie_link_state *link, *root = pdev->link_state->root;
link             1226 drivers/pci/pcie/aspm.c 	list_for_each_entry(link, &link_list, sibling) {
link             1227 drivers/pci/pcie/aspm.c 		if (link->root != root)
link             1229 drivers/pci/pcie/aspm.c 		pcie_config_aspm_link(link, state);
link             1041 drivers/pci/quirks.c 		dev->sriov->link = dev->devfn;
link              107 drivers/pci/vc.c 	struct pci_dev *link = NULL;
link              141 drivers/pci/vc.c 			link = dev->bus->self;
link              146 drivers/pci/vc.c 	if (!link)
link              152 drivers/pci/vc.c 		pci_write_config_dword(link, ctrl_pos2, ctrl2);
link              157 drivers/pci/vc.c 	pci_write_config_dword(link, ctrl_pos2, ctrl2);
link              165 drivers/pci/vc.c 	if (link && !pci_wait_for_pending(link, status_pos2,
link              167 drivers/pci/vc.c 		pci_err(link, "VC%d negotiation stuck pending\n", id);
link              475 drivers/pcmcia/cistpl.c 	u_char link[5];
link              482 drivers/pcmcia/cistpl.c 				tuple->LinkOffset, 5, link);
link              485 drivers/pcmcia/cistpl.c 		ofs = get_unaligned_le32(link + 1);
link              486 drivers/pcmcia/cistpl.c 		SPACE(tuple->Flags) = (link[0] == CISTPL_MFC_ATTR);
link              500 drivers/pcmcia/cistpl.c 		ret = read_cis_cache(s, SPACE(tuple->Flags), ofs, 5, link);
link              503 drivers/pcmcia/cistpl.c 		if ((link[0] == CISTPL_LINKTARGET) && (link[1] >= 3) &&
link              504 drivers/pcmcia/cistpl.c 			(strncmp(link+2, "CIS", 3) == 0))
link              510 drivers/pcmcia/cistpl.c 	ret = read_cis_cache(s, SPACE(tuple->Flags), ofs, 5, link);
link              513 drivers/pcmcia/cistpl.c 	if ((link[0] == CISTPL_LINKTARGET) && (link[1] >= 3) &&
link              514 drivers/pcmcia/cistpl.c 		(strncmp(link+2, "CIS", 3) == 0))
link              523 drivers/pcmcia/cistpl.c 	u_char link[2], tmp;
link              532 drivers/pcmcia/cistpl.c 	link[1] = tuple->TupleLink;
link              537 drivers/pcmcia/cistpl.c 		if (link[1] == 0xff)
link              538 drivers/pcmcia/cistpl.c 			link[0] = CISTPL_END;
link              540 drivers/pcmcia/cistpl.c 			ret = read_cis_cache(s, attr, ofs, 2, link);
link              543 drivers/pcmcia/cistpl.c 			if (link[0] == CISTPL_NULL) {
link              550 drivers/pcmcia/cistpl.c 		if (link[0] == CISTPL_END) {
link              555 drivers/pcmcia/cistpl.c 			ret = read_cis_cache(s, attr, ofs, 2, link);
link              561 drivers/pcmcia/cistpl.c 		if ((link[0] == CISTPL_LONGLINK_A) ||
link              562 drivers/pcmcia/cistpl.c 			(link[0] == CISTPL_LONGLINK_C) ||
link              563 drivers/pcmcia/cistpl.c 			(link[0] == CISTPL_LONGLINK_MFC) ||
link              564 drivers/pcmcia/cistpl.c 			(link[0] == CISTPL_LINKTARGET) ||
link              565 drivers/pcmcia/cistpl.c 			(link[0] == CISTPL_INDIRECT) ||
link              566 drivers/pcmcia/cistpl.c 			(link[0] == CISTPL_NO_LINK)) {
link              567 drivers/pcmcia/cistpl.c 			switch (link[0]) {
link              617 drivers/pcmcia/cistpl.c 		if (link[0] == tuple->DesiredTuple)
link              619 drivers/pcmcia/cistpl.c 		ofs += link[1] + 2;
link              626 drivers/pcmcia/cistpl.c 	tuple->TupleCode = link[0];
link              627 drivers/pcmcia/cistpl.c 	tuple->TupleLink = link[1];
link              732 drivers/pcmcia/cistpl.c static int parse_longlink(tuple_t *tuple, cistpl_longlink_t *link)
link              736 drivers/pcmcia/cistpl.c 	link->addr = get_unaligned_le32(tuple->TupleData);
link              741 drivers/pcmcia/cistpl.c static int parse_longlink_mfc(tuple_t *tuple, cistpl_longlink_mfc_t *link)
link              748 drivers/pcmcia/cistpl.c 	link->nfn = *p; p++;
link              749 drivers/pcmcia/cistpl.c 	if (tuple->TupleDataLen <= link->nfn*5)
link              751 drivers/pcmcia/cistpl.c 	for (i = 0; i < link->nfn; i++) {
link              752 drivers/pcmcia/cistpl.c 		link->fn[i].space = *p; p++;
link              753 drivers/pcmcia/cistpl.c 		link->fn[i].addr = get_unaligned_le32(p);
link               66 drivers/pnp/card.c 	drv->link.remove = &card_remove;
link              359 drivers/pnp/card.c 	dev->dev.driver = &drv->link.driver;
link              381 drivers/pnp/card.c 	drv->link.remove = &card_remove;
link              383 drivers/pnp/card.c 	drv->link.remove = &card_remove_first;
link              391 drivers/pnp/card.c 	struct pnp_card_link *link = dev->card_link;
link              393 drivers/pnp/card.c 	if (link->pm_state.event == state.event)
link              395 drivers/pnp/card.c 	link->pm_state = state;
link              396 drivers/pnp/card.c 	return link->driver->suspend(link, state);
link              401 drivers/pnp/card.c 	struct pnp_card_link *link = dev->card_link;
link              403 drivers/pnp/card.c 	if (link->pm_state.event == PM_EVENT_ON)
link              405 drivers/pnp/card.c 	link->pm_state = PMSG_ON;
link              406 drivers/pnp/card.c 	link->driver->resume(link);
link              419 drivers/pnp/card.c 	drv->link.name = drv->name;
link              420 drivers/pnp/card.c 	drv->link.id_table = NULL;	/* this will disable auto matching */
link              421 drivers/pnp/card.c 	drv->link.flags = drv->flags;
link              422 drivers/pnp/card.c 	drv->link.probe = NULL;
link              423 drivers/pnp/card.c 	drv->link.remove = &card_remove_first;
link              424 drivers/pnp/card.c 	drv->link.suspend = drv->suspend ? card_suspend : NULL;
link              425 drivers/pnp/card.c 	drv->link.resume = drv->resume ? card_resume : NULL;
link              427 drivers/pnp/card.c 	error = pnp_register_driver(&drv->link);
link              452 drivers/pnp/card.c 	pnp_unregister_driver(&drv->link);
link              457 drivers/ps3/ps3-vuart.c 	struct list_head link;
link              524 drivers/ps3/ps3-vuart.c 	list_add_tail(&lb->link, &priv->tx_list.head);
link              578 drivers/ps3/ps3-vuart.c 	list_add_tail(&lb->link, &priv->rx_list.head);
link              627 drivers/ps3/ps3-vuart.c 	list_for_each_entry_safe(lb, n, &priv->rx_list.head, link) {
link              648 drivers/ps3/ps3-vuart.c 		list_del(&lb->link);
link              730 drivers/ps3/ps3-vuart.c 	list_for_each_entry_safe(lb, n, &priv->tx_list.head, link) {
link              758 drivers/ps3/ps3-vuart.c 		list_del(&lb->link);
link              603 drivers/s390/cio/chp.c int chp_ssd_get_mask(struct chsc_ssd_info *ssd, struct chp_link *link)
link              612 drivers/s390/cio/chp.c 		if (!chp_id_is_equal(&ssd->chpid[i], &link->chpid))
link              615 drivers/s390/cio/chp.c 		    ((ssd->fla[i] & link->fla_mask) != link->fla))
link              232 drivers/s390/cio/chsc.c 	struct chp_link link;
link              240 drivers/s390/cio/chsc.c 	memset(&link, 0, sizeof(struct chp_link));
link              241 drivers/s390/cio/chsc.c 	link.chpid = chpid;
link              249 drivers/s390/cio/chsc.c 	for_each_subchannel_staged(s390_subchannel_remove_chpid, NULL, &link);
link              262 drivers/s390/cio/chsc.c static void s390_process_res_acc(struct chp_link *link)
link              266 drivers/s390/cio/chsc.c 	sprintf(dbf_txt, "accpr%x.%02x", link->chpid.cssid,
link              267 drivers/s390/cio/chsc.c 		link->chpid.id);
link              269 drivers/s390/cio/chsc.c 	if (link->fla != 0) {
link              270 drivers/s390/cio/chsc.c 		sprintf(dbf_txt, "fla%x", link->fla);
link              282 drivers/s390/cio/chsc.c 	for_each_subchannel_staged(__s390_process_res_acc, NULL, link);
link              427 drivers/s390/cio/chsc.c 	struct chp_link link;
link              450 drivers/s390/cio/chsc.c 	memset(&link, 0, sizeof(struct chp_link));
link              451 drivers/s390/cio/chsc.c 	link.chpid = chpid;
link              453 drivers/s390/cio/chsc.c 		link.fla = sei_area->fla;
link              456 drivers/s390/cio/chsc.c 			link.fla_mask = 0xffff;
link              459 drivers/s390/cio/chsc.c 			link.fla_mask = 0xff00;
link              461 drivers/s390/cio/chsc.c 	s390_process_res_acc(&link);
link              694 drivers/s390/cio/chsc.c 	struct chp_link link;
link              701 drivers/s390/cio/chsc.c 		memset(&link, 0, sizeof(struct chp_link));
link              702 drivers/s390/cio/chsc.c 		link.chpid = chpid;
link              711 drivers/s390/cio/chsc.c 					   &link);
link              720 drivers/s390/cio/chsc.c 	struct chp_link link;
link              722 drivers/s390/cio/chsc.c 	memset(&link, 0, sizeof(struct chp_link));
link              723 drivers/s390/cio/chsc.c 	link.chpid = chpid;
link              726 drivers/s390/cio/chsc.c 		sch->driver->chp_event(sch, &link,
link             1170 drivers/s390/cio/device.c 				   struct chp_link *link, int event)
link             1175 drivers/s390/cio/device.c 	mask = chp_ssd_get_mask(&sch->ssd_info, link);
link              642 drivers/scsi/a100u2w.c 	scb->link = 0xFF;
link              887 drivers/scsi/a100u2w.c 	scb->link = 0xFF;
link              160 drivers/scsi/a100u2w.h 	u8 link;		/*1F Link pointer, default 0xFF */
link             1457 drivers/scsi/be2iscsi/be_main.c 	list_del_init(&pasync_handle->link);
link             1469 drivers/scsi/be2iscsi/be_main.c 	list_for_each_entry_safe(pasync_handle, tmp_handle, plist, link)
link             1566 drivers/scsi/be2iscsi/be_main.c 	if (pasync_handle->in_use || !list_empty(&pasync_handle->link)) {
link             1573 drivers/scsi/be2iscsi/be_main.c 	list_del_init(&pasync_handle->link);
link             1600 drivers/scsi/be2iscsi/be_main.c 	list_for_each_entry(pasync_handle, plist, link) {
link             1668 drivers/scsi/be2iscsi/be_main.c 		list_add_tail(&pasync_handle->link, &wq->list);
link             1684 drivers/scsi/be2iscsi/be_main.c 		list_add_tail(&pasync_handle->link, &wq->list);
link             2873 drivers/scsi/be2iscsi/be_main.c 				INIT_LIST_HEAD(&pasync_header_h->link);
link             2893 drivers/scsi/be2iscsi/be_main.c 				INIT_LIST_HEAD(&pasync_data_h->link);
link              544 drivers/scsi/be2iscsi/be_main.h 	struct list_head link;
link              417 drivers/scsi/bnx2fc/bnx2fc.h 	struct list_head link;
link               52 drivers/scsi/bnx2fc/bnx2fc_els.c 			list_del_init(&rrq_req->link);
link              145 drivers/scsi/bnx2fc/bnx2fc_els.c 			list_del_init(&els_req->link);
link              795 drivers/scsi/bnx2fc/bnx2fc_els.c 	list_add_tail(&els_req->link, &tgt->els_queue);
link              831 drivers/scsi/bnx2fc/bnx2fc_els.c 		list_del_init(&els_req->link);
link              282 drivers/scsi/bnx2fc/bnx2fc_io.c 		INIT_LIST_HEAD(&io_req->link);
link              287 drivers/scsi/bnx2fc/bnx2fc_io.c 			list_add_tail(&io_req->link,
link              291 drivers/scsi/bnx2fc/bnx2fc_io.c 			list_add_tail(&io_req->link,
link              383 drivers/scsi/bnx2fc/bnx2fc_io.c 					 &cmgr->free_list[i], link) {
link              384 drivers/scsi/bnx2fc/bnx2fc_io.c 			list_del(&io_req->link);
link              447 drivers/scsi/bnx2fc/bnx2fc_io.c 	INIT_LIST_HEAD(&io_req->link);
link              503 drivers/scsi/bnx2fc/bnx2fc_io.c 	INIT_LIST_HEAD(&io_req->link);
link              537 drivers/scsi/bnx2fc/bnx2fc_io.c 	list_del_init(&io_req->link);
link              539 drivers/scsi/bnx2fc/bnx2fc_io.c 	list_add(&io_req->link,
link              776 drivers/scsi/bnx2fc/bnx2fc_io.c 	list_add_tail(&io_req->link, &tgt->active_tm_queue);
link              793 drivers/scsi/bnx2fc/bnx2fc_io.c 			list_del_init(&io_req->link);
link             1196 drivers/scsi/bnx2fc/bnx2fc_io.c 	list_del_init(&io_req->link);
link             1199 drivers/scsi/bnx2fc/bnx2fc_io.c 	list_add_tail(&io_req->link, &tgt->io_retire_queue);
link             1441 drivers/scsi/bnx2fc/bnx2fc_io.c 			list_del_init(&io_req->link);
link             1444 drivers/scsi/bnx2fc/bnx2fc_io.c 			list_add_tail(&io_req->link, &tgt->io_retire_queue);
link             1466 drivers/scsi/bnx2fc/bnx2fc_io.c 	list_for_each_entry_safe(cmd, tmp, &tgt->active_cmd_queue, link) {
link             1501 drivers/scsi/bnx2fc/bnx2fc_io.c 	list_for_each_entry_safe(cmd, tmp, &tgt->active_cmd_queue, link) {
link             1601 drivers/scsi/bnx2fc/bnx2fc_io.c 		list_del_init(&io_req->link);
link             1961 drivers/scsi/bnx2fc/bnx2fc_io.c 		list_del_init(&io_req->link);
link             1964 drivers/scsi/bnx2fc/bnx2fc_io.c 		list_add_tail(&io_req->link, &tgt->io_retire_queue);
link             2109 drivers/scsi/bnx2fc/bnx2fc_io.c 	list_add_tail(&io_req->link, &tgt->active_cmd_queue);
link              178 drivers/scsi/bnx2fc/bnx2fc_tgt.c 	list_for_each_entry_safe(io_req, tmp, &tgt->active_cmd_queue, link) {
link              180 drivers/scsi/bnx2fc/bnx2fc_tgt.c 		list_del_init(&io_req->link);
link              208 drivers/scsi/bnx2fc/bnx2fc_tgt.c 	list_for_each_entry_safe(io_req, tmp, &tgt->active_tm_queue, link) {
link              210 drivers/scsi/bnx2fc/bnx2fc_tgt.c 		list_del_init(&io_req->link);
link              217 drivers/scsi/bnx2fc/bnx2fc_tgt.c 	list_for_each_entry_safe(io_req, tmp, &tgt->els_queue, link) {
link              219 drivers/scsi/bnx2fc/bnx2fc_tgt.c 		list_del_init(&io_req->link);
link              242 drivers/scsi/bnx2fc/bnx2fc_tgt.c 	list_for_each_entry_safe(io_req, tmp, &tgt->io_retire_queue, link) {
link              244 drivers/scsi/bnx2fc/bnx2fc_tgt.c 		list_del_init(&io_req->link);
link              223 drivers/scsi/bnx2i/bnx2i.h 	struct list_head link;
link              400 drivers/scsi/bnx2i/bnx2i.h 	struct list_head link;
link              749 drivers/scsi/bnx2i/bnx2i.h 	struct list_head link;
link              118 drivers/scsi/bnx2i/bnx2i_init.c 	list_for_each_entry(tmp_hba, &adapter_list, link) {
link              140 drivers/scsi/bnx2i/bnx2i_init.c 	list_for_each_entry_safe(hba, temp, &adapter_list, link) {
link              203 drivers/scsi/bnx2i/bnx2i_init.c 			bnx2i_ep = list_entry(pos, struct bnx2i_endpoint, link);
link              290 drivers/scsi/bnx2i/bnx2i_init.c 		list_add_tail(&hba->link, &adapter_list);
link              353 drivers/scsi/bnx2i/bnx2i_init.c 	list_del_init(&hba->link);
link              531 drivers/scsi/bnx2i/bnx2i_init.c 		hba = list_entry(adapter_list.next, struct bnx2i_hba, link);
link              532 drivers/scsi/bnx2i/bnx2i_init.c 		list_del(&hba->link);
link              395 drivers/scsi/bnx2i/bnx2i_iscsi.c 	INIT_LIST_HEAD(&bnx2i_ep->link);
link              610 drivers/scsi/bnx2i/bnx2i_iscsi.c 	list_add_tail(&ep->link, &hba->ep_destroy_list);
link              627 drivers/scsi/bnx2i/bnx2i_iscsi.c 	list_del_init(&ep->link);
link              644 drivers/scsi/bnx2i/bnx2i_iscsi.c 	list_add_tail(&ep->link, &hba->ep_ofld_list);
link              660 drivers/scsi/bnx2i/bnx2i_iscsi.c 	list_del_init(&ep->link);
link              735 drivers/scsi/bnx2i/bnx2i_iscsi.c 	list_add_tail(&ep->link, &hba->ep_active_list);
link              751 drivers/scsi/bnx2i/bnx2i_iscsi.c 	list_del_init(&ep->link);
link             1580 drivers/scsi/bnx2i/bnx2i_iscsi.c 						    link);
link              733 drivers/scsi/hisi_sas/hisi_sas_main.c 			struct ata_link *link;
link              736 drivers/scsi/hisi_sas/hisi_sas_main.c 			ata_for_each_link(link, ap, EDGE)
link              737 drivers/scsi/hisi_sas/hisi_sas_main.c 				rc = ops->hardreset(link, &classes,
link             1314 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct ata_link *link;
link             1320 drivers/scsi/hisi_sas/hisi_sas_main.c 	ata_for_each_link(link, ap, EDGE) {
link             1321 drivers/scsi/hisi_sas/hisi_sas_main.c 		int pmp = sata_srst_pmp(link);
link             1323 drivers/scsi/hisi_sas/hisi_sas_main.c 		hisi_sas_fill_ata_reset_cmd(link->device, 1, pmp, fis);
link             1330 drivers/scsi/hisi_sas/hisi_sas_main.c 		ata_for_each_link(link, ap, EDGE) {
link             1331 drivers/scsi/hisi_sas/hisi_sas_main.c 			int pmp = sata_srst_pmp(link);
link             1333 drivers/scsi/hisi_sas/hisi_sas_main.c 			hisi_sas_fill_ata_reset_cmd(link->device, 0, pmp, fis);
link             1462 drivers/scsi/hisi_sas/hisi_sas_main.c 	struct ata_link *link;
link             1471 drivers/scsi/hisi_sas/hisi_sas_main.c 		ata_for_each_link(link, ap, EDGE) {
link             1472 drivers/scsi/hisi_sas/hisi_sas_main.c 			int pmp = sata_srst_pmp(link);
link             1475 drivers/scsi/hisi_sas/hisi_sas_main.c 			hisi_sas_fill_ata_reset_cmd(link->device, 1, pmp, fis);
link             4912 drivers/scsi/ipr.c 			res->sata_port->ap->link.device[0].class = ATA_DEV_NONE;
link             5270 drivers/scsi/ipr.c static int ipr_sata_reset(struct ata_link *link, unsigned int *classes,
link             5273 drivers/scsi/ipr.c 	struct ipr_sata_port *sata_port = link->ap->private_data;
link             6779 drivers/scsi/ipr.c 		ap->link.device[0].class = ATA_DEV_NONE;
link             6783 drivers/scsi/ipr.c 	ap->link.device[0].class = res->ata_class;
link             6784 drivers/scsi/ipr.c 	if (ap->link.device[0].class == ATA_DEV_UNKNOWN)
link             6785 drivers/scsi/ipr.c 		ap->link.device[0].class = ATA_DEV_NONE;
link               90 drivers/scsi/libsas/sas_ata.c 	struct ata_link *link;
link              108 drivers/scsi/libsas/sas_ata.c 	link = &ap->link;
link              130 drivers/scsi/libsas/sas_ata.c 		if (!link->sactive) {
link              133 drivers/scsi/libsas/sas_ata.c 			link->eh_info.err_mask |= ac_err_mask(dev->sata_dev.fis[2]);
link              134 drivers/scsi/libsas/sas_ata.c 			if (unlikely(link->eh_info.err_mask))
link              142 drivers/scsi/libsas/sas_ata.c 			if (!link->sactive) {
link              145 drivers/scsi/libsas/sas_ata.c 				link->eh_info.err_mask |= AC_ERR_DEV;
link              197 drivers/scsi/libsas/sas_ata.c 	ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *)&task->ata_task.fis);
link              300 drivers/scsi/libsas/sas_ata.c static int smp_ata_check_ready(struct ata_link *link)
link              303 drivers/scsi/libsas/sas_ata.c 	struct ata_port *ap = link->ap;
link              332 drivers/scsi/libsas/sas_ata.c static int local_ata_check_ready(struct ata_link *link)
link              334 drivers/scsi/libsas/sas_ata.c 	struct ata_port *ap = link->ap;
link              371 drivers/scsi/libsas/sas_ata.c static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class,
link              376 drivers/scsi/libsas/sas_ata.c 	struct ata_port *ap = link->ap;
link              377 drivers/scsi/libsas/sas_ata.c 	int (*check_ready)(struct ata_link *link);
link              395 drivers/scsi/libsas/sas_ata.c 	ret = ata_wait_after_reset(link, deadline, check_ready);
link              834 drivers/scsi/libsas/sas_ata.c 	ehi = &ap->link.eh_info;
link              966 drivers/scsi/lpfc/lpfc_attr.c 		struct lpfc_trunk_link link = phba->trunk_link;
link              971 drivers/scsi/lpfc/lpfc_attr.c 				(link.link0.state == LPFC_LINK_UP) ?
link              973 drivers/scsi/lpfc/lpfc_attr.c 				trunk_errmsg[link.link0.fault]);
link              978 drivers/scsi/lpfc/lpfc_attr.c 				(link.link1.state == LPFC_LINK_UP) ?
link              980 drivers/scsi/lpfc/lpfc_attr.c 				trunk_errmsg[link.link1.fault]);
link              985 drivers/scsi/lpfc/lpfc_attr.c 				(link.link2.state == LPFC_LINK_UP) ?
link              987 drivers/scsi/lpfc/lpfc_attr.c 				trunk_errmsg[link.link2.fault]);
link              992 drivers/scsi/lpfc/lpfc_attr.c 				(link.link3.state == LPFC_LINK_UP) ?
link              994 drivers/scsi/lpfc/lpfc_attr.c 				trunk_errmsg[link.link3.fault]);
link             5046 drivers/scsi/lpfc/lpfc_init.c 	       ((phba->trunk_link.link##__idx.state == LPFC_LINK_UP) ?\
link             1159 drivers/scsi/ncr53c8xx.c 	struct link   jump_tcb;
link             1177 drivers/scsi/ncr53c8xx.c 	struct link   call_lun;
link             1189 drivers/scsi/ncr53c8xx.c 	struct link     jump_lcb[4];	/* JUMPs for reselection	*/
link             1258 drivers/scsi/ncr53c8xx.c 	struct link	jump_lcb;
link             1260 drivers/scsi/ncr53c8xx.c 	struct link	jump_tag;
link             1336 drivers/scsi/ncr53c8xx.c 	struct link	schedule;	/* Jump to scheduler point	*/
link             1641 drivers/scsi/ncr53c8xx.c 	struct link     jump_tcb[4];	/* JUMPs for reselection	*/
link               84 drivers/scsi/pcmcia/aha152x_stub.c static void aha152x_release_cs(struct pcmcia_device *link);
link               86 drivers/scsi/pcmcia/aha152x_stub.c static int aha152x_config_cs(struct pcmcia_device *link);
link               88 drivers/scsi/pcmcia/aha152x_stub.c static int aha152x_probe(struct pcmcia_device *link)
link               92 drivers/scsi/pcmcia/aha152x_stub.c     dev_dbg(&link->dev, "aha152x_attach()\n");
link               97 drivers/scsi/pcmcia/aha152x_stub.c     info->p_dev = link;
link               98 drivers/scsi/pcmcia/aha152x_stub.c     link->priv = info;
link              100 drivers/scsi/pcmcia/aha152x_stub.c     link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              101 drivers/scsi/pcmcia/aha152x_stub.c     link->config_regs = PRESENT_OPTION;
link              103 drivers/scsi/pcmcia/aha152x_stub.c     return aha152x_config_cs(link);
link              108 drivers/scsi/pcmcia/aha152x_stub.c static void aha152x_detach(struct pcmcia_device *link)
link              110 drivers/scsi/pcmcia/aha152x_stub.c     dev_dbg(&link->dev, "aha152x_detach\n");
link              112 drivers/scsi/pcmcia/aha152x_stub.c     aha152x_release_cs(link);
link              115 drivers/scsi/pcmcia/aha152x_stub.c     kfree(link->priv);
link              140 drivers/scsi/pcmcia/aha152x_stub.c static int aha152x_config_cs(struct pcmcia_device *link)
link              142 drivers/scsi/pcmcia/aha152x_stub.c     scsi_info_t *info = link->priv;
link              147 drivers/scsi/pcmcia/aha152x_stub.c     dev_dbg(&link->dev, "aha152x_config\n");
link              149 drivers/scsi/pcmcia/aha152x_stub.c     ret = pcmcia_loop_config(link, aha152x_config_check, NULL);
link              153 drivers/scsi/pcmcia/aha152x_stub.c     if (!link->irq)
link              156 drivers/scsi/pcmcia/aha152x_stub.c     ret = pcmcia_enable_device(link);
link              163 drivers/scsi/pcmcia/aha152x_stub.c     s.io_port     = link->resource[0]->start;
link              164 drivers/scsi/pcmcia/aha152x_stub.c     s.irq         = link->irq;
link              184 drivers/scsi/pcmcia/aha152x_stub.c     aha152x_release_cs(link);
link              188 drivers/scsi/pcmcia/aha152x_stub.c static void aha152x_release_cs(struct pcmcia_device *link)
link              190 drivers/scsi/pcmcia/aha152x_stub.c 	scsi_info_t *info = link->priv;
link              193 drivers/scsi/pcmcia/aha152x_stub.c 	pcmcia_disable_device(link);
link              196 drivers/scsi/pcmcia/aha152x_stub.c static int aha152x_resume(struct pcmcia_device *link)
link              198 drivers/scsi/pcmcia/aha152x_stub.c 	scsi_info_t *info = link->priv;
link               31 drivers/scsi/pcmcia/fdomain_cs.c static int fdomain_probe(struct pcmcia_device *link)
link               36 drivers/scsi/pcmcia/fdomain_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link               37 drivers/scsi/pcmcia/fdomain_cs.c 	link->config_regs = PRESENT_OPTION;
link               39 drivers/scsi/pcmcia/fdomain_cs.c 	ret = pcmcia_loop_config(link, fdomain_config_check, NULL);
link               43 drivers/scsi/pcmcia/fdomain_cs.c 	ret = pcmcia_enable_device(link);
link               47 drivers/scsi/pcmcia/fdomain_cs.c 	if (!request_region(link->resource[0]->start, FDOMAIN_REGION_SIZE,
link               51 drivers/scsi/pcmcia/fdomain_cs.c 	sh = fdomain_create(link->resource[0]->start, link->irq, 7, &link->dev);
link               53 drivers/scsi/pcmcia/fdomain_cs.c 		dev_err(&link->dev, "Controller initialization failed");
link               58 drivers/scsi/pcmcia/fdomain_cs.c 	link->priv = sh;
link               63 drivers/scsi/pcmcia/fdomain_cs.c 	release_region(link->resource[0]->start, FDOMAIN_REGION_SIZE);
link               65 drivers/scsi/pcmcia/fdomain_cs.c 	pcmcia_disable_device(link);
link               69 drivers/scsi/pcmcia/fdomain_cs.c static void fdomain_remove(struct pcmcia_device *link)
link               71 drivers/scsi/pcmcia/fdomain_cs.c 	fdomain_destroy(link->priv);
link               72 drivers/scsi/pcmcia/fdomain_cs.c 	release_region(link->resource[0]->start, FDOMAIN_REGION_SIZE);
link               73 drivers/scsi/pcmcia/fdomain_cs.c 	pcmcia_disable_device(link);
link             1505 drivers/scsi/pcmcia/nsp_cs.c static int nsp_cs_probe(struct pcmcia_device *link)
link             1516 drivers/scsi/pcmcia/nsp_cs.c 	info->p_dev = link;
link             1517 drivers/scsi/pcmcia/nsp_cs.c 	link->priv = info;
link             1522 drivers/scsi/pcmcia/nsp_cs.c 	ret = nsp_cs_config(link);
link             1524 drivers/scsi/pcmcia/nsp_cs.c 	nsp_dbg(NSP_DEBUG_INIT, "link=0x%p", link);
link             1529 drivers/scsi/pcmcia/nsp_cs.c static void nsp_cs_detach(struct pcmcia_device *link)
link             1531 drivers/scsi/pcmcia/nsp_cs.c 	nsp_dbg(NSP_DEBUG_INIT, "in, link=0x%p", link);
link             1533 drivers/scsi/pcmcia/nsp_cs.c 	((scsi_info_t *)link->priv)->stop = 1;
link             1534 drivers/scsi/pcmcia/nsp_cs.c 	nsp_cs_release(link);
link             1536 drivers/scsi/pcmcia/nsp_cs.c 	kfree(link->priv);
link             1537 drivers/scsi/pcmcia/nsp_cs.c 	link->priv = NULL;
link             1578 drivers/scsi/pcmcia/nsp_cs.c static int nsp_cs_config(struct pcmcia_device *link)
link             1581 drivers/scsi/pcmcia/nsp_cs.c 	scsi_info_t	 *info	 = link->priv;
link             1587 drivers/scsi/pcmcia/nsp_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_CHECK_VCC |
link             1591 drivers/scsi/pcmcia/nsp_cs.c 	ret = pcmcia_loop_config(link, nsp_cs_config_check, data);
link             1595 drivers/scsi/pcmcia/nsp_cs.c 	if (pcmcia_request_irq(link, nspintr))
link             1598 drivers/scsi/pcmcia/nsp_cs.c 	ret = pcmcia_enable_device(link);
link             1603 drivers/scsi/pcmcia/nsp_cs.c 		if (link->resource[0]) {
link             1604 drivers/scsi/pcmcia/nsp_cs.c 			release_region(link->resource[0]->start,
link             1605 drivers/scsi/pcmcia/nsp_cs.c 					resource_size(link->resource[0]));
link             1607 drivers/scsi/pcmcia/nsp_cs.c 		if (link->resource[1]) {
link             1608 drivers/scsi/pcmcia/nsp_cs.c 			release_region(link->resource[1]->start,
link             1609 drivers/scsi/pcmcia/nsp_cs.c 					resource_size(link->resource[1]));
link             1614 drivers/scsi/pcmcia/nsp_cs.c 	data->BaseAddress = link->resource[0]->start;
link             1615 drivers/scsi/pcmcia/nsp_cs.c 	data->NumAddress  = resource_size(link->resource[0]);
link             1616 drivers/scsi/pcmcia/nsp_cs.c 	data->IrqNumber   = link->irq;
link             1645 drivers/scsi/pcmcia/nsp_cs.c 	nsp_cs_release(link);
link             1651 drivers/scsi/pcmcia/nsp_cs.c static void nsp_cs_release(struct pcmcia_device *link)
link             1653 drivers/scsi/pcmcia/nsp_cs.c 	scsi_info_t *info = link->priv;
link             1662 drivers/scsi/pcmcia/nsp_cs.c 	nsp_dbg(NSP_DEBUG_INIT, "link=0x%p", link);
link             1669 drivers/scsi/pcmcia/nsp_cs.c 	if (resource_size(link->resource[2])) {
link             1674 drivers/scsi/pcmcia/nsp_cs.c 	pcmcia_disable_device(link);
link             1681 drivers/scsi/pcmcia/nsp_cs.c static int nsp_cs_suspend(struct pcmcia_device *link)
link             1683 drivers/scsi/pcmcia/nsp_cs.c 	scsi_info_t *info = link->priv;
link             1701 drivers/scsi/pcmcia/nsp_cs.c static int nsp_cs_resume(struct pcmcia_device *link)
link             1703 drivers/scsi/pcmcia/nsp_cs.c 	scsi_info_t *info = link->priv;
link              289 drivers/scsi/pcmcia/nsp_cs.h static void        nsp_cs_release(struct pcmcia_device *link);
link              290 drivers/scsi/pcmcia/nsp_cs.h static int        nsp_cs_config (struct pcmcia_device *link);
link               86 drivers/scsi/pcmcia/qlogic_stub.c static void qlogic_release(struct pcmcia_device *link);
link               88 drivers/scsi/pcmcia/qlogic_stub.c static int qlogic_config(struct pcmcia_device * link);
link               91 drivers/scsi/pcmcia/qlogic_stub.c 				struct pcmcia_device *link, int qbase, int qlirq)
link              145 drivers/scsi/pcmcia/qlogic_stub.c static int qlogic_probe(struct pcmcia_device *link)
link              149 drivers/scsi/pcmcia/qlogic_stub.c 	dev_dbg(&link->dev, "qlogic_attach()\n");
link              155 drivers/scsi/pcmcia/qlogic_stub.c 	info->p_dev = link;
link              156 drivers/scsi/pcmcia/qlogic_stub.c 	link->priv = info;
link              157 drivers/scsi/pcmcia/qlogic_stub.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              158 drivers/scsi/pcmcia/qlogic_stub.c 	link->config_regs = PRESENT_OPTION;
link              160 drivers/scsi/pcmcia/qlogic_stub.c 	return qlogic_config(link);
link              165 drivers/scsi/pcmcia/qlogic_stub.c static void qlogic_detach(struct pcmcia_device *link)
link              167 drivers/scsi/pcmcia/qlogic_stub.c 	dev_dbg(&link->dev, "qlogic_detach\n");
link              169 drivers/scsi/pcmcia/qlogic_stub.c 	qlogic_release(link);
link              170 drivers/scsi/pcmcia/qlogic_stub.c 	kfree(link->priv);
link              188 drivers/scsi/pcmcia/qlogic_stub.c static int qlogic_config(struct pcmcia_device * link)
link              190 drivers/scsi/pcmcia/qlogic_stub.c 	scsi_info_t *info = link->priv;
link              194 drivers/scsi/pcmcia/qlogic_stub.c 	dev_dbg(&link->dev, "qlogic_config\n");
link              196 drivers/scsi/pcmcia/qlogic_stub.c 	ret = pcmcia_loop_config(link, qlogic_config_check, NULL);
link              200 drivers/scsi/pcmcia/qlogic_stub.c 	if (!link->irq)
link              203 drivers/scsi/pcmcia/qlogic_stub.c 	ret = pcmcia_enable_device(link);
link              209 drivers/scsi/pcmcia/qlogic_stub.c 		outb(0xb4, link->resource[0]->start + 0xd);
link              210 drivers/scsi/pcmcia/qlogic_stub.c 		outb(0x24, link->resource[0]->start + 0x9);
link              211 drivers/scsi/pcmcia/qlogic_stub.c 		outb(0x04, link->resource[0]->start + 0xd);
link              215 drivers/scsi/pcmcia/qlogic_stub.c 	if (resource_size(link->resource[0]) == 32)
link              216 drivers/scsi/pcmcia/qlogic_stub.c 		host = qlogic_detect(&qlogicfas_driver_template, link,
link              217 drivers/scsi/pcmcia/qlogic_stub.c 			link->resource[0]->start + 16, link->irq);
link              219 drivers/scsi/pcmcia/qlogic_stub.c 		host = qlogic_detect(&qlogicfas_driver_template, link,
link              220 drivers/scsi/pcmcia/qlogic_stub.c 			link->resource[0]->start, link->irq);
link              232 drivers/scsi/pcmcia/qlogic_stub.c 	pcmcia_disable_device(link);
link              238 drivers/scsi/pcmcia/qlogic_stub.c static void qlogic_release(struct pcmcia_device *link)
link              240 drivers/scsi/pcmcia/qlogic_stub.c 	scsi_info_t *info = link->priv;
link              242 drivers/scsi/pcmcia/qlogic_stub.c 	dev_dbg(&link->dev, "qlogic_release\n");
link              246 drivers/scsi/pcmcia/qlogic_stub.c 	free_irq(link->irq, info->host);
link              247 drivers/scsi/pcmcia/qlogic_stub.c 	pcmcia_disable_device(link);
link              254 drivers/scsi/pcmcia/qlogic_stub.c static int qlogic_resume(struct pcmcia_device *link)
link              256 drivers/scsi/pcmcia/qlogic_stub.c 	scsi_info_t *info = link->priv;
link              259 drivers/scsi/pcmcia/qlogic_stub.c 	ret = pcmcia_enable_device(link);
link              266 drivers/scsi/pcmcia/qlogic_stub.c 		outb(0x80, link->resource[0]->start + 0xd);
link              267 drivers/scsi/pcmcia/qlogic_stub.c 		outb(0x24, link->resource[0]->start + 0x9);
link              268 drivers/scsi/pcmcia/qlogic_stub.c 		outb(0x04, link->resource[0]->start + 0xd);
link              500 drivers/scsi/pcmcia/sym53c500_cs.c SYM53C500_release(struct pcmcia_device *link)
link              502 drivers/scsi/pcmcia/sym53c500_cs.c 	struct scsi_info_t *info = link->priv;
link              505 drivers/scsi/pcmcia/sym53c500_cs.c 	dev_dbg(&link->dev, "SYM53C500_release\n");
link              521 drivers/scsi/pcmcia/sym53c500_cs.c 	pcmcia_disable_device(link);
link              690 drivers/scsi/pcmcia/sym53c500_cs.c SYM53C500_config(struct pcmcia_device *link)
link              692 drivers/scsi/pcmcia/sym53c500_cs.c 	struct scsi_info_t *info = link->priv;
link              699 drivers/scsi/pcmcia/sym53c500_cs.c 	dev_dbg(&link->dev, "SYM53C500_config\n");
link              701 drivers/scsi/pcmcia/sym53c500_cs.c 	info->manf_id = link->manf_id;
link              703 drivers/scsi/pcmcia/sym53c500_cs.c 	ret = pcmcia_loop_config(link, SYM53C500_config_check, NULL);
link              707 drivers/scsi/pcmcia/sym53c500_cs.c 	if (!link->irq)
link              710 drivers/scsi/pcmcia/sym53c500_cs.c 	ret = pcmcia_enable_device(link);
link              723 drivers/scsi/pcmcia/sym53c500_cs.c 		outb(0xb4, link->resource[0]->start + 0xd);
link              724 drivers/scsi/pcmcia/sym53c500_cs.c 		outb(0x24, link->resource[0]->start + 0x9);
link              725 drivers/scsi/pcmcia/sym53c500_cs.c 		outb(0x04, link->resource[0]->start + 0xd);
link              738 drivers/scsi/pcmcia/sym53c500_cs.c 	port_base = link->resource[0]->start;
link              739 drivers/scsi/pcmcia/sym53c500_cs.c 	irq_level = link->irq;
link              799 drivers/scsi/pcmcia/sym53c500_cs.c 	SYM53C500_release(link);
link              803 drivers/scsi/pcmcia/sym53c500_cs.c static int sym53c500_resume(struct pcmcia_device *link)
link              805 drivers/scsi/pcmcia/sym53c500_cs.c 	struct scsi_info_t *info = link->priv;
link              811 drivers/scsi/pcmcia/sym53c500_cs.c 		outb(0x80, link->resource[0]->start + 0xd);
link              812 drivers/scsi/pcmcia/sym53c500_cs.c 		outb(0x24, link->resource[0]->start + 0x9);
link              813 drivers/scsi/pcmcia/sym53c500_cs.c 		outb(0x04, link->resource[0]->start + 0xd);
link              819 drivers/scsi/pcmcia/sym53c500_cs.c 	SYM53C500_int_host_reset(link->resource[0]->start);
link              825 drivers/scsi/pcmcia/sym53c500_cs.c SYM53C500_detach(struct pcmcia_device *link)
link              827 drivers/scsi/pcmcia/sym53c500_cs.c 	dev_dbg(&link->dev, "SYM53C500_detach\n");
link              829 drivers/scsi/pcmcia/sym53c500_cs.c 	SYM53C500_release(link);
link              831 drivers/scsi/pcmcia/sym53c500_cs.c 	kfree(link->priv);
link              832 drivers/scsi/pcmcia/sym53c500_cs.c 	link->priv = NULL;
link              836 drivers/scsi/pcmcia/sym53c500_cs.c SYM53C500_probe(struct pcmcia_device *link)
link              840 drivers/scsi/pcmcia/sym53c500_cs.c 	dev_dbg(&link->dev, "SYM53C500_attach()\n");
link              846 drivers/scsi/pcmcia/sym53c500_cs.c 	info->p_dev = link;
link              847 drivers/scsi/pcmcia/sym53c500_cs.c 	link->priv = info;
link              848 drivers/scsi/pcmcia/sym53c500_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              850 drivers/scsi/pcmcia/sym53c500_cs.c 	return SYM53C500_config(link);
link              101 drivers/scsi/qedf/qedf.h 	struct list_head link;
link              433 drivers/scsi/qedf/qedf_main.c 	struct qed_link_output *link)
link              441 drivers/scsi/qedf/qedf_main.c 	switch (link->speed) {
link              469 drivers/scsi/qedf/qedf_main.c 	if ((link->supported_caps & QED_LM_10000baseT_Full_BIT) ||
link              470 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_10000baseKX4_Full_BIT) ||
link              471 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_10000baseR_FEC_BIT) ||
link              472 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_10000baseCR_Full_BIT) ||
link              473 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_10000baseSR_Full_BIT) ||
link              474 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_10000baseLR_Full_BIT) ||
link              475 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_10000baseLRM_Full_BIT) ||
link              476 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_10000baseKR_Full_BIT)) {
link              479 drivers/scsi/qedf/qedf_main.c 	if ((link->supported_caps & QED_LM_25000baseKR_Full_BIT) ||
link              480 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_25000baseCR_Full_BIT) ||
link              481 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_25000baseSR_Full_BIT)) {
link              484 drivers/scsi/qedf/qedf_main.c 	if ((link->supported_caps & QED_LM_40000baseLR4_Full_BIT) ||
link              485 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_40000baseKR4_Full_BIT) ||
link              486 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_40000baseCR4_Full_BIT) ||
link              487 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_40000baseSR4_Full_BIT)) {
link              490 drivers/scsi/qedf/qedf_main.c 	if ((link->supported_caps & QED_LM_50000baseKR2_Full_BIT) ||
link              491 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_50000baseCR2_Full_BIT) ||
link              492 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_50000baseSR2_Full_BIT)) {
link              495 drivers/scsi/qedf/qedf_main.c 	if ((link->supported_caps & QED_LM_100000baseKR4_Full_BIT) ||
link              496 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_100000baseSR4_Full_BIT) ||
link              497 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_100000baseCR4_Full_BIT) ||
link              498 drivers/scsi/qedf/qedf_main.c 	    (link->supported_caps & QED_LM_100000baseLR4_ER4_Full_BIT)) {
link              501 drivers/scsi/qedf/qedf_main.c 	if (link->supported_caps & QED_LM_20000baseKR2_Full_BIT)
link              506 drivers/scsi/qedf/qedf_main.c static void qedf_link_update(void *dev, struct qed_link_output *link)
link              520 drivers/scsi/qedf/qedf_main.c 	if (link->link_up) {
link              527 drivers/scsi/qedf/qedf_main.c 		    link->speed / 1000);
link              533 drivers/scsi/qedf/qedf_main.c 		qedf_update_link_speed(qedf, link);
link              563 drivers/scsi/qedf/qedf_main.c 		qedf_update_link_speed(qedf, link);
link             1116 drivers/scsi/qedi/qedi_main.c static void qedi_link_update(void *dev, struct qed_link_output *link)
link             1120 drivers/scsi/qedi/qedi_main.c 	if (link->link_up) {
link              867 drivers/scsi/qla2xxx/qla_target.c     struct fc_port *sess, enum qlt_plogi_link_t link)
link              876 drivers/scsi/qla2xxx/qla_target.c 		sess, link, sess->port_name,
link              879 drivers/scsi/qla2xxx/qla_target.c 		pla->ref_count, pla, link);
link              881 drivers/scsi/qla2xxx/qla_target.c 	if (link == QLT_PLOGI_LINK_CONFLICT) {
link              892 drivers/scsi/qla2xxx/qla_target.c 	if (sess->plogi_link[link])
link              893 drivers/scsi/qla2xxx/qla_target.c 		qlt_plogi_ack_unref(vha, sess->plogi_link[link]);
link              895 drivers/scsi/qla2xxx/qla_target.c 	if (link == QLT_PLOGI_LINK_SAME_WWN)
link              898 drivers/scsi/qla2xxx/qla_target.c 	sess->plogi_link[link] = pla;
link              814 drivers/scsi/qla4xxx/ql4_fw.h 	uint16_t link;
link              258 drivers/soc/fsl/dpio/dpio-service.c 	struct device_link *link;
link              265 drivers/soc/fsl/dpio/dpio-service.c 	link = device_link_add(dev, d->dev, DL_FLAG_AUTOREMOVE_CONSUMER);
link              266 drivers/soc/fsl/dpio/dpio-service.c 	if (!link)
link              953 drivers/soundwire/intel.c 	struct fwnode_handle *link;
link              961 drivers/soundwire/intel.c 	link = device_get_named_child_node(bus->dev, name);
link              962 drivers/soundwire/intel.c 	if (!link) {
link              967 drivers/soundwire/intel.c 	fwnode_property_read_u32(link,
link              971 drivers/soundwire/intel.c 	fwnode_property_read_u32(link,
link               41 drivers/soundwire/intel_init.c 	struct sdw_link_data *link = ctx->links;
link               44 drivers/soundwire/intel_init.c 	if (!link)
link               48 drivers/soundwire/intel_init.c 		if (link->pdev)
link               49 drivers/soundwire/intel_init.c 			platform_device_unregister(link->pdev);
link               50 drivers/soundwire/intel_init.c 		link++;
link               64 drivers/soundwire/intel_init.c 	struct sdw_link_data *link;
link              114 drivers/soundwire/intel_init.c 	link = ctx->links;
link              121 drivers/soundwire/intel_init.c 			link++;
link              125 drivers/soundwire/intel_init.c 		link->res.irq = res->irq;
link              126 drivers/soundwire/intel_init.c 		link->res.registers = res->mmio_base + SDW_LINK_BASE
link              128 drivers/soundwire/intel_init.c 		link->res.shim = res->mmio_base + SDW_SHIM_BASE;
link              129 drivers/soundwire/intel_init.c 		link->res.alh = res->mmio_base + SDW_ALH_BASE;
link              131 drivers/soundwire/intel_init.c 		link->res.ops = res->ops;
link              132 drivers/soundwire/intel_init.c 		link->res.arg = res->arg;
link              140 drivers/soundwire/intel_init.c 		pdevinfo.data = &link->res;
link              141 drivers/soundwire/intel_init.c 		pdevinfo.size_data = sizeof(link->res);
link              151 drivers/soundwire/intel_init.c 		link->pdev = pdev;
link              152 drivers/soundwire/intel_init.c 		link++;
link               33 drivers/soundwire/mipi_disco.c 	struct fwnode_handle *link;
link               45 drivers/soundwire/mipi_disco.c 	link = device_get_named_child_node(bus->dev, name);
link               46 drivers/soundwire/mipi_disco.c 	if (!link) {
link               51 drivers/soundwire/mipi_disco.c 	if (fwnode_property_read_bool(link,
link               55 drivers/soundwire/mipi_disco.c 	if (fwnode_property_read_bool(link,
link               59 drivers/soundwire/mipi_disco.c 	fwnode_property_read_u32(link,
link               63 drivers/soundwire/mipi_disco.c 	nval = fwnode_property_count_u32(link, "mipi-sdw-clock-frequencies-supported");
link               72 drivers/soundwire/mipi_disco.c 		fwnode_property_read_u32_array(link,
link               89 drivers/soundwire/mipi_disco.c 	nval = fwnode_property_count_u32(link, "mipi-sdw-supported-clock-gears");
link               98 drivers/soundwire/mipi_disco.c 		fwnode_property_read_u32_array(link,
link              104 drivers/soundwire/mipi_disco.c 	fwnode_property_read_u32(link, "mipi-sdw-default-frame-rate",
link              107 drivers/soundwire/mipi_disco.c 	fwnode_property_read_u32(link, "mipi-sdw-default-frame-row-size",
link              110 drivers/soundwire/mipi_disco.c 	fwnode_property_read_u32(link, "mipi-sdw-default-frame-col-size",
link              113 drivers/soundwire/mipi_disco.c 	prop->dynamic_frame =  fwnode_property_read_bool(link,
link              116 drivers/soundwire/mipi_disco.c 	fwnode_property_read_u32(link, "mipi-sdw-command-error-threshold",
link               31 drivers/staging/comedi/comedi_pcmcia.c static int comedi_pcmcia_conf_check(struct pcmcia_device *link,
link               34 drivers/staging/comedi/comedi_pcmcia.c 	if (link->config_index == 0)
link               37 drivers/staging/comedi/comedi_pcmcia.c 	return pcmcia_request_io(link);
link               75 drivers/staging/comedi/comedi_pcmcia.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link               78 drivers/staging/comedi/comedi_pcmcia.c 	if (!link)
link               84 drivers/staging/comedi/comedi_pcmcia.c 	ret = pcmcia_loop_config(link, conf_check, NULL);
link               88 drivers/staging/comedi/comedi_pcmcia.c 	return pcmcia_enable_device(link);
link              102 drivers/staging/comedi/comedi_pcmcia.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link              104 drivers/staging/comedi/comedi_pcmcia.c 	if (link)
link              105 drivers/staging/comedi/comedi_pcmcia.c 		pcmcia_disable_device(link);
link              122 drivers/staging/comedi/comedi_pcmcia.c int comedi_pcmcia_auto_config(struct pcmcia_device *link,
link              125 drivers/staging/comedi/comedi_pcmcia.c 	return comedi_auto_config(&link->dev, driver, 0);
link              143 drivers/staging/comedi/comedi_pcmcia.c void comedi_pcmcia_auto_unconfig(struct pcmcia_device *link)
link              145 drivers/staging/comedi/comedi_pcmcia.c 	comedi_auto_unconfig(&link->dev);
link               25 drivers/staging/comedi/comedi_pcmcia.h int comedi_pcmcia_auto_config(struct pcmcia_device *link,
link               27 drivers/staging/comedi/comedi_pcmcia.h void comedi_pcmcia_auto_unconfig(struct pcmcia_device *link);
link              327 drivers/staging/comedi/drivers/cb_das16_cs.c 					  struct pcmcia_device *link)
link              334 drivers/staging/comedi/drivers/cb_das16_cs.c 		if (board->device_id == link->card_id)
link              344 drivers/staging/comedi/drivers/cb_das16_cs.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link              350 drivers/staging/comedi/drivers/cb_das16_cs.c 	board = das16cs_find_boardinfo(dev, link);
link              356 drivers/staging/comedi/drivers/cb_das16_cs.c 	link->config_flags |= CONF_AUTO_SET_IO | CONF_ENABLE_IRQ;
link              360 drivers/staging/comedi/drivers/cb_das16_cs.c 	dev->iobase = link->resource[0]->start;
link              362 drivers/staging/comedi/drivers/cb_das16_cs.c 	link->priv = dev;
link              433 drivers/staging/comedi/drivers/cb_das16_cs.c static int das16cs_pcmcia_attach(struct pcmcia_device *link)
link              435 drivers/staging/comedi/drivers/cb_das16_cs.c 	return comedi_pcmcia_auto_config(link, &driver_das16cs);
link               53 drivers/staging/comedi/drivers/das08_cs.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link               61 drivers/staging/comedi/drivers/das08_cs.c 	link->config_flags |= CONF_AUTO_SET_IO;
link               65 drivers/staging/comedi/drivers/das08_cs.c 	iobase = link->resource[0]->start;
link               81 drivers/staging/comedi/drivers/das08_cs.c static int das08_pcmcia_attach(struct pcmcia_device *link)
link               83 drivers/staging/comedi/drivers/das08_cs.c 	return comedi_pcmcia_auto_config(link, &driver_das08_cs);
link               80 drivers/staging/comedi/drivers/jr3_pci.c 	} link[8];
link              141 drivers/staging/comedi/drivers/jr3_pci.c 		set_u16(&sensor->transforms[num].link[i].link_type,
link              142 drivers/staging/comedi/drivers/jr3_pci.c 			transf->link[i].link_type);
link              144 drivers/staging/comedi/drivers/jr3_pci.c 		set_s16(&sensor->transforms[num].link[i].link_amount,
link              145 drivers/staging/comedi/drivers/jr3_pci.c 			transf->link[i].link_amount);
link              147 drivers/staging/comedi/drivers/jr3_pci.c 		if (transf->link[i].link_type == end_x_form)
link              490 drivers/staging/comedi/drivers/jr3_pci.c 			for (i = 0; i < ARRAY_SIZE(transf.link); i++) {
link              491 drivers/staging/comedi/drivers/jr3_pci.c 				transf.link[i].link_type = (enum link_types)0;
link              492 drivers/staging/comedi/drivers/jr3_pci.c 				transf.link[i].link_amount = 0;
link              276 drivers/staging/comedi/drivers/jr3_pci.h 	} link[8];
link              212 drivers/staging/comedi/drivers/ni_daq_700.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link              216 drivers/staging/comedi/drivers/ni_daq_700.c 	link->config_flags |= CONF_AUTO_SET_IO;
link              220 drivers/staging/comedi/drivers/ni_daq_700.c 	dev->iobase = link->resource[0]->start;
link              257 drivers/staging/comedi/drivers/ni_daq_700.c static int daq700_cs_attach(struct pcmcia_device *link)
link              259 drivers/staging/comedi/drivers/ni_daq_700.c 	return comedi_pcmcia_auto_config(link, &daq700_driver);
link               33 drivers/staging/comedi/drivers/ni_daq_dio24.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link               37 drivers/staging/comedi/drivers/ni_daq_dio24.c 	link->config_flags |= CONF_AUTO_SET_IO;
link               41 drivers/staging/comedi/drivers/ni_daq_dio24.c 	dev->iobase = link->resource[0]->start;
link               59 drivers/staging/comedi/drivers/ni_daq_dio24.c static int dio24_cs_attach(struct pcmcia_device *link)
link               61 drivers/staging/comedi/drivers/ni_daq_dio24.c 	return comedi_pcmcia_auto_config(link, &driver_dio24);
link               58 drivers/staging/comedi/drivers/ni_labpc_cs.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link               64 drivers/staging/comedi/drivers/ni_labpc_cs.c 	link->config_flags |= CONF_AUTO_SET_IO |
link               69 drivers/staging/comedi/drivers/ni_labpc_cs.c 	dev->iobase = link->resource[0]->start;
link               71 drivers/staging/comedi/drivers/ni_labpc_cs.c 	if (!link->irq)
link               74 drivers/staging/comedi/drivers/ni_labpc_cs.c 	return labpc_common_attach(dev, link->irq, IRQF_SHARED);
link               90 drivers/staging/comedi/drivers/ni_labpc_cs.c static int labpc_cs_attach(struct pcmcia_device *link)
link               92 drivers/staging/comedi/drivers/ni_labpc_cs.c 	return comedi_pcmcia_auto_config(link, &driver_labpc_cs);
link              118 drivers/staging/comedi/drivers/ni_mio_cs.c 				   struct pcmcia_device *link)
link              125 drivers/staging/comedi/drivers/ni_mio_cs.c 		if (board->device_id == link->card_id)
link              150 drivers/staging/comedi/drivers/ni_mio_cs.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link              154 drivers/staging/comedi/drivers/ni_mio_cs.c 	board = ni_getboardtype(dev, link);
link              160 drivers/staging/comedi/drivers/ni_mio_cs.c 	link->config_flags |= CONF_AUTO_SET_IO | CONF_ENABLE_IRQ;
link              164 drivers/staging/comedi/drivers/ni_mio_cs.c 	dev->iobase = link->resource[0]->start;
link              166 drivers/staging/comedi/drivers/ni_mio_cs.c 	link->priv = dev;
link              167 drivers/staging/comedi/drivers/ni_mio_cs.c 	ret = pcmcia_request_irq(link, ni_E_interrupt);
link              170 drivers/staging/comedi/drivers/ni_mio_cs.c 	dev->irq = link->irq;
link              192 drivers/staging/comedi/drivers/ni_mio_cs.c static int cs_attach(struct pcmcia_device *link)
link              194 drivers/staging/comedi/drivers/ni_mio_cs.c 	return comedi_pcmcia_auto_config(link, &driver_ni_mio_cs);
link              701 drivers/staging/comedi/drivers/quatech_daqp_cs.c 	struct pcmcia_device *link = comedi_to_pcmcia_dev(dev);
link              710 drivers/staging/comedi/drivers/quatech_daqp_cs.c 	link->config_flags |= CONF_AUTO_SET_IO | CONF_ENABLE_IRQ;
link              714 drivers/staging/comedi/drivers/quatech_daqp_cs.c 	dev->iobase = link->resource[0]->start;
link              716 drivers/staging/comedi/drivers/quatech_daqp_cs.c 	link->priv = dev;
link              717 drivers/staging/comedi/drivers/quatech_daqp_cs.c 	ret = pcmcia_request_irq(link, daqp_interrupt);
link              719 drivers/staging/comedi/drivers/quatech_daqp_cs.c 		dev->irq = link->irq;
link              795 drivers/staging/comedi/drivers/quatech_daqp_cs.c static int daqp_cs_suspend(struct pcmcia_device *link)
link              797 drivers/staging/comedi/drivers/quatech_daqp_cs.c 	struct comedi_device *dev = link->priv;
link              807 drivers/staging/comedi/drivers/quatech_daqp_cs.c static int daqp_cs_resume(struct pcmcia_device *link)
link              809 drivers/staging/comedi/drivers/quatech_daqp_cs.c 	struct comedi_device *dev = link->priv;
link              818 drivers/staging/comedi/drivers/quatech_daqp_cs.c static int daqp_cs_attach(struct pcmcia_device *link)
link              820 drivers/staging/comedi/drivers/quatech_daqp_cs.c 	return comedi_pcmcia_auto_config(link, &driver_daqp);
link              103 drivers/staging/fwserial/dma_fifo.c 	list_for_each_entry_safe(pending, next, &fifo->pending, link)
link              104 drivers/staging/fwserial/dma_fifo.c 		list_del_init(&pending->link);
link              120 drivers/staging/fwserial/dma_fifo.c 	list_for_each_entry_safe(pending, next, &fifo->pending, link)
link              121 drivers/staging/fwserial/dma_fifo.c 		list_del_init(&pending->link);
link              222 drivers/staging/fwserial/dma_fifo.c 	list_add_tail(&pended->link, &fifo->pending);
link              260 drivers/staging/fwserial/dma_fifo.c 	list_replace(&complete->link, &tmp->link);
link              264 drivers/staging/fwserial/dma_fifo.c 	list_for_each_entry_safe(pending, next, &fifo->pending, link) {
link              278 drivers/staging/fwserial/dma_fifo.c 		list_del_init(&pending->link);
link               58 drivers/staging/fwserial/dma_fifo.h 	struct list_head link;
link               40 drivers/staging/isdn/avm/avm_cs.c static int avmcs_config(struct pcmcia_device *link);
link               41 drivers/staging/isdn/avm/avm_cs.c static void avmcs_release(struct pcmcia_device *link);
link               55 drivers/staging/isdn/avm/avm_cs.c static void avmcs_detach(struct pcmcia_device *link)
link               57 drivers/staging/isdn/avm/avm_cs.c 	avmcs_release(link);
link               69 drivers/staging/isdn/avm/avm_cs.c static int avmcs_config(struct pcmcia_device *link)
link               77 drivers/staging/isdn/avm/avm_cs.c 	if (link->prod_id[1])
link               78 drivers/staging/isdn/avm/avm_cs.c 		strlcpy(devname, link->prod_id[1], sizeof(devname));
link               83 drivers/staging/isdn/avm/avm_cs.c 	if (pcmcia_loop_config(link, avmcs_configcheck, NULL))
link               87 drivers/staging/isdn/avm/avm_cs.c 		if (!link->irq) {
link               89 drivers/staging/isdn/avm/avm_cs.c 			pcmcia_disable_device(link);
link               96 drivers/staging/isdn/avm/avm_cs.c 		i = pcmcia_enable_device(link);
link               98 drivers/staging/isdn/avm/avm_cs.c 			pcmcia_disable_device(link);
link              121 drivers/staging/isdn/avm/avm_cs.c 		avmcs_release(link);
link              132 drivers/staging/isdn/avm/avm_cs.c 	if ((i = (*addcard)(link->resource[0]->start, link->irq)) < 0) {
link              133 drivers/staging/isdn/avm/avm_cs.c 		dev_err(&link->dev,
link              135 drivers/staging/isdn/avm/avm_cs.c 			(unsigned int) link->resource[0]->start, link->irq);
link              136 drivers/staging/isdn/avm/avm_cs.c 		avmcs_release(link);
link              144 drivers/staging/isdn/avm/avm_cs.c static void avmcs_release(struct pcmcia_device *link)
link              146 drivers/staging/isdn/avm/avm_cs.c 	b1pcmcia_delcard(link->resource[0]->start, link->irq);
link              147 drivers/staging/isdn/avm/avm_cs.c 	pcmcia_disable_device(link);
link              529 drivers/staging/media/hantro/hantro_drv.c 	struct media_link *link;
link              578 drivers/staging/media/hantro/hantro_drv.c 	link = media_create_intf_link(&func->vdev.entity,
link              582 drivers/staging/media/hantro/hantro_drv.c 	if (!link) {
link              587 drivers/staging/media/hantro/hantro_drv.c 	link = media_create_intf_link(&func->sink, &func->intf_devnode->intf,
link              590 drivers/staging/media/hantro/hantro_drv.c 	if (!link) {
link              289 drivers/staging/media/imx/imx-ic-prp.c 			     struct media_link *link,
link              298 drivers/staging/media/imx/imx-ic-prp.c 	ret = v4l2_subdev_link_validate_default(sd, link,
link             1101 drivers/staging/media/imx/imx-media-csi.c 			     struct media_link *link,
link             1110 drivers/staging/media/imx/imx-media-csi.c 	ret = v4l2_subdev_link_validate_default(sd, link,
link               81 drivers/staging/media/imx/imx-media-dev-common.c 	struct media_link *link;
link              126 drivers/staging/media/imx/imx-media-dev-common.c 		list_for_each_entry(link, &entity->links, list) {
link              127 drivers/staging/media/imx/imx-media-dev-common.c 			if (link->sink != pad)
link              130 drivers/staging/media/imx/imx-media-dev-common.c 							link->source);
link              173 drivers/staging/media/imx/imx-media-dev-common.c 	struct media_link *link;
link              181 drivers/staging/media/imx/imx-media-dev-common.c 		link = list_first_entry(&vdev->vfd->entity.links,
link              183 drivers/staging/media/imx/imx-media-dev-common.c 		ret = imx_media_add_vdev_to_pad(imxmd, vdev, link->source);
link              260 drivers/staging/media/imx/imx-media-dev-common.c static int imx_media_link_notify(struct media_link *link, u32 flags,
link              263 drivers/staging/media/imx/imx-media-dev-common.c 	struct imx_media_dev *imxmd = container_of(link->graph_obj.mdev,
link              265 drivers/staging/media/imx/imx-media-dev-common.c 	struct media_entity *source = link->source->entity;
link              272 drivers/staging/media/imx/imx-media-dev-common.c 	ret = v4l2_pipeline_link_notify(link, flags, notification);
link              281 drivers/staging/media/imx/imx-media-dev-common.c 	pad_idx = link->source->index;
link              307 drivers/staging/media/imx/imx-media-dev-common.c 		   (link->flags & MEDIA_LNK_FL_ENABLED)) {
link               27 drivers/staging/media/imx/imx-media-internal-sd.c 	struct internal_link link[MAX_INTERNAL_LINKS];
link               46 drivers/staging/media/imx/imx-media-internal-sd.c 			.link = {
link               64 drivers/staging/media/imx/imx-media-internal-sd.c 			.link = {
link               84 drivers/staging/media/imx/imx-media-internal-sd.c 			.link = {
link              100 drivers/staging/media/imx/imx-media-internal-sd.c 			.link = {
link              110 drivers/staging/media/imx/imx-media-internal-sd.c 			.link = {
link              136 drivers/staging/media/imx/imx-media-internal-sd.c 				const struct internal_link *link)
link              141 drivers/staging/media/imx/imx-media-internal-sd.c 	if (media_entity_find_link(&src->entity.pads[link->local_pad],
link              142 drivers/staging/media/imx/imx-media-internal-sd.c 				   &sink->entity.pads[link->remote_pad]))
link              146 drivers/staging/media/imx/imx-media-internal-sd.c 		  src->name, link->local_pad,
link              147 drivers/staging/media/imx/imx-media-internal-sd.c 		  sink->name, link->remote_pad);
link              149 drivers/staging/media/imx/imx-media-internal-sd.c 	ret = media_create_pad_link(&src->entity, link->local_pad,
link              150 drivers/staging/media/imx/imx-media-internal-sd.c 				    &sink->entity, link->remote_pad, 0);
link              163 drivers/staging/media/imx/imx-media-internal-sd.c 	const struct internal_link *link;
link              178 drivers/staging/media/imx/imx-media-internal-sd.c 			link = &intpad->link[j];
link              179 drivers/staging/media/imx/imx-media-internal-sd.c 			sink = imxmd->sync_sd[ipu_id][link->remote];
link              181 drivers/staging/media/imx/imx-media-internal-sd.c 			ret = create_internal_link(imxmd, sd, sink, link);
link               87 drivers/staging/media/imx/imx-media-of.c 			  struct v4l2_fwnode_link *link)
link               92 drivers/staging/media/imx/imx-media-of.c 	if (link->local_port >= sd->entity.num_pads)
link               95 drivers/staging/media/imx/imx-media-of.c 	remote = imx_media_find_subdev_by_fwnode(imxmd, link->remote_node);
link               99 drivers/staging/media/imx/imx-media-of.c 	if (sd->entity.pads[link->local_port].flags & MEDIA_PAD_FL_SINK) {
link              101 drivers/staging/media/imx/imx-media-of.c 		src_pad = link->remote_port;
link              103 drivers/staging/media/imx/imx-media-of.c 		sink_pad = link->local_port;
link              106 drivers/staging/media/imx/imx-media-of.c 		src_pad = link->local_port;
link              108 drivers/staging/media/imx/imx-media-of.c 		sink_pad = link->remote_port;
link              129 drivers/staging/media/imx/imx-media-of.c 	struct v4l2_fwnode_link link;
link              134 drivers/staging/media/imx/imx-media-of.c 		ret = v4l2_fwnode_parse_link(of_fwnode_handle(ep), &link);
link              138 drivers/staging/media/imx/imx-media-of.c 		ret = create_of_link(imxmd, sd, &link);
link              139 drivers/staging/media/imx/imx-media-of.c 		v4l2_fwnode_put_link(&link);
link              160 drivers/staging/media/imx/imx-media-of.c 		struct v4l2_fwnode_link link;
link              163 drivers/staging/media/imx/imx-media-of.c 		memset(&link, 0, sizeof(link));
link              165 drivers/staging/media/imx/imx-media-of.c 		link.local_node = of_fwnode_handle(csi_np);
link              166 drivers/staging/media/imx/imx-media-of.c 		link.local_port = CSI_SINK_PAD;
link              175 drivers/staging/media/imx/imx-media-of.c 		fwnode_property_read_u32(fwnode, "reg", &link.remote_port);
link              180 drivers/staging/media/imx/imx-media-of.c 		link.remote_node = fwnode;
link              182 drivers/staging/media/imx/imx-media-of.c 		ret = create_of_link(imxmd, csi, &link);
link              183 drivers/staging/media/imx/imx-media-of.c 		fwnode_handle_put(link.remote_node);
link              757 drivers/staging/media/imx/imx-media-vdic.c 			      struct media_link *link,
link              764 drivers/staging/media/imx/imx-media-vdic.c 	ret = v4l2_subdev_link_validate_default(sd, link,
link              547 drivers/staging/media/imx/imx7-media-csi.c 				      struct media_link *link,
link              555 drivers/staging/media/imx/imx7-media-csi.c 	ret = v4l2_subdev_link_validate_default(sd, link, source_fmt, sink_fmt);
link              123 drivers/staging/media/omap4iss/iss.c 			       struct media_link *link)
link              139 drivers/staging/media/omap4iss/iss.c 	fmt.pad = link->source->index;
link              141 drivers/staging/media/omap4iss/iss.c 	ret = v4l2_subdev_call(media_entity_to_v4l2_subdev(link->sink->entity),
link              126 drivers/staging/media/omap4iss/iss.h 			       struct media_link *link);
link             1017 drivers/staging/media/omap4iss/iss_csi2.c static int csi2_link_validate(struct v4l2_subdev *sd, struct media_link *link,
link             1025 drivers/staging/media/omap4iss/iss_csi2.c 	pipe->external = media_entity_to_v4l2_subdev(link->source->entity);
link             1026 drivers/staging/media/omap4iss/iss_csi2.c 	rval = omap4iss_get_external_info(pipe, link);
link             1030 drivers/staging/media/omap4iss/iss_csi2.c 	return v4l2_subdev_link_validate_default(sd, link, source_fmt,
link              361 drivers/staging/media/omap4iss/iss_ipipe.c static int ipipe_link_validate(struct v4l2_subdev *sd, struct media_link *link,
link              576 drivers/staging/media/omap4iss/iss_ipipeif.c 				 struct media_link *link,
link              630 drivers/staging/media/omap4iss/iss_resizer.c 				 struct media_link *link,
link               36 drivers/staging/most/configfs.c static int set_cfg_buffer_size(struct mdev_link *link)
link               38 drivers/staging/most/configfs.c 	return most_set_cfg_buffer_size(link->device, link->channel,
link               39 drivers/staging/most/configfs.c 					link->buffer_size);
link               42 drivers/staging/most/configfs.c static int set_cfg_subbuffer_size(struct mdev_link *link)
link               44 drivers/staging/most/configfs.c 	return most_set_cfg_subbuffer_size(link->device, link->channel,
link               45 drivers/staging/most/configfs.c 					   link->subbuffer_size);
link               48 drivers/staging/most/configfs.c static int set_cfg_dbr_size(struct mdev_link *link)
link               50 drivers/staging/most/configfs.c 	return most_set_cfg_dbr_size(link->device, link->channel,
link               51 drivers/staging/most/configfs.c 				     link->dbr_size);
link               54 drivers/staging/most/configfs.c static int set_cfg_num_buffers(struct mdev_link *link)
link               56 drivers/staging/most/configfs.c 	return most_set_cfg_num_buffers(link->device, link->channel,
link               57 drivers/staging/most/configfs.c 					link->num_buffers);
link               60 drivers/staging/most/configfs.c static int set_cfg_packets_xact(struct mdev_link *link)
link               62 drivers/staging/most/configfs.c 	return most_set_cfg_packets_xact(link->device, link->channel,
link               63 drivers/staging/most/configfs.c 					 link->packets_per_xact);
link               66 drivers/staging/most/configfs.c static int set_cfg_direction(struct mdev_link *link)
link               68 drivers/staging/most/configfs.c 	return most_set_cfg_direction(link->device, link->channel,
link               69 drivers/staging/most/configfs.c 				      link->direction);
link               72 drivers/staging/most/configfs.c static int set_cfg_datatype(struct mdev_link *link)
link               74 drivers/staging/most/configfs.c 	return most_set_cfg_datatype(link->device, link->channel,
link               75 drivers/staging/most/configfs.c 				     link->datatype);
link               78 drivers/staging/most/configfs.c static int (*set_config_val[])(struct mdev_link *link) = {
link              785 drivers/staging/most/usb/usb.c 	u16 hi, mi, lo, link;
link              803 drivers/staging/most/usb/usb.c 	if (drci_rd_reg(usb_device, DRCI_REG_NI_STATE, &link) < 0) {
link              816 drivers/staging/most/usb/usb.c 		mdev->on_netinfo(&mdev->iface, link, hw_addr);
link              772 drivers/staging/netlogic/xlr_net.c 	if (phydev->link) {
link               87 drivers/staging/octeon/ethernet-mdio.c 	link_info.s.link_up	= dev->phydev->link ? 1 : 0;
link               98 drivers/staging/octeon/ethernet-mdio.c 	if (priv->last_link != dev->phydev->link) {
link               99 drivers/staging/octeon/ethernet-mdio.c 		priv->last_link = dev->phydev->link;
link              482 drivers/staging/octeon/ethernet.c 		if (r == 0 && dev->phydev->link == 0)
link              482 drivers/staging/qlge/qlge_main.c 	netif_err(qdev, link, qdev->ndev, "Link is up.\n");
link              489 drivers/staging/qlge/qlge_main.c 	netif_err(qdev, link, qdev->ndev, "Link is down.\n");
link              959 drivers/staging/qlge/qlge_main.c 		netif_info(qdev, link, qdev->ndev,
link              963 drivers/staging/qlge/qlge_main.c 			netif_crit(qdev, link, qdev->ndev,
link              969 drivers/staging/qlge/qlge_main.c 	netif_info(qdev, link, qdev->ndev, "Got xgmac semaphore!.\n");
link             2366 drivers/staging/qlge/qlge_main.c 			netif_err(qdev, link, qdev->ndev,
link             2378 drivers/staging/qlge/qlge_main.c 			netif_err(qdev, link, qdev->ndev,
link              210 drivers/staging/wlan-ng/p80211metastruct.h 	struct p80211item_uint32 link;
link              367 drivers/staging/wlan-ng/prism2sta.c 		qualmsg->link.status = P80211ENUM_msgitem_status_data_ok;
link              371 drivers/staging/wlan-ng/prism2sta.c 		qualmsg->link.data = le16_to_cpu(hw->qual.cq_curr_bss);
link               50 drivers/staging/wusbcore/host/whci/asl.c 	whc_qset_set_link_ptr(&qset->qh.link, next->qset_dma);
link               51 drivers/staging/wusbcore/host/whci/asl.c 	whc_qset_set_link_ptr(&prev->qh.link, qset->qset_dma);
link               72 drivers/staging/wusbcore/host/whci/asl.c 	whc_qset_set_link_ptr(&prev->qh.link, next->qset_dma);
link               41 drivers/staging/wusbcore/host/whci/debug.c 	seq_printf(s, "  -> %08x\n", (u32)qset->qh.link);
link              202 drivers/staging/wusbcore/host/whci/pzl.c 			whc_qset_set_link_ptr(&qset->qh.link, tmp_qh);
link              115 drivers/staging/wusbcore/host/whci/qset.c 	qset->qh.link = cpu_to_le64(QH_LINK_NTDS(8) | QH_LINK_T);
link              121 drivers/staging/wusbcore/host/whci/whci-hc.h 	__le64 link; /*< next qset in list */
link              100 drivers/target/sbp/sbp_target.c 	list_for_each_entry(login, &session->login_list, link) {
link              124 drivers/target/sbp/sbp_target.c 		list_for_each_entry(login, &sess->login_list, link) {
link              150 drivers/target/sbp/sbp_target.c 		list_for_each_entry(login, &sess->login_list, link) {
link              167 drivers/target/sbp/sbp_target.c 	hlist_for_each_entry_rcu(se_lun, &se_tpg->tpg_lun_hlist, link) {
link              246 drivers/target/sbp/sbp_target.c 		list_del(&login->link);
link              428 drivers/target/sbp/sbp_target.c 	list_add_tail(&login->link, &sess->login_list);
link              625 drivers/target/sbp/sbp_target.c 	list_for_each_entry_safe(login, temp, &sess->login_list, link) {
link              627 drivers/target/sbp/sbp_target.c 		list_move_tail(&login->link, &login_list);
link              631 drivers/target/sbp/sbp_target.c 	list_for_each_entry_safe(login, temp, &login_list, link) {
link              632 drivers/target/sbp/sbp_target.c 		list_del(&login->link);
link             1804 drivers/target/sbp/sbp_target.c 	hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link)
link             1877 drivers/target/sbp/sbp_target.c 	hlist_for_each_entry_rcu(lun, &tport->tpg->se_tpg.tpg_lun_hlist, link) {
link              127 drivers/target/sbp/sbp_target.h 	struct list_head link;
link              222 drivers/target/target_core_device.c 	hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) {
link              250 drivers/target/target_core_device.c 	hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) {
link              279 drivers/target/target_core_device.c 	hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link)
link              301 drivers/target/target_core_device.c 	hlist_for_each_entry_rcu(tmp, &nacl->lun_entry_hlist, link) {
link              364 drivers/target/target_core_device.c 		hlist_del_rcu(&orig->link);
link              365 drivers/target/target_core_device.c 		hlist_add_head_rcu(&new->link, &nacl->lun_entry_hlist);
link              383 drivers/target/target_core_device.c 	hlist_add_head_rcu(&new->link, &nacl->lun_entry_hlist);
link              429 drivers/target/target_core_device.c 	hlist_del_rcu(&orig->link);
link              463 drivers/target/target_core_device.c 		hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) {
link             1225 drivers/target/target_core_spc.c 	hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) {
link               95 drivers/target/target_core_tpg.c 	hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link)
link              116 drivers/target/target_core_tpg.c 	hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) {
link              616 drivers/target/target_core_tpg.c 		hlist_add_head_rcu(&lun->link, &tpg->tpg_lun_hlist);
link              659 drivers/target/target_core_tpg.c 		hlist_del_rcu(&lun->link);
link               16 drivers/tee/optee/rpc.c 	struct list_head link;
link               58 drivers/tee/optee/rpc.c 	list_for_each_entry(w, &wq->db, link)
link               66 drivers/tee/optee/rpc.c 		list_add_tail(&w->link, &wq->db);
link               80 drivers/tee/optee/rpc.c 		list_del(&w->link);
link               11 drivers/tee/optee/supp.c 	struct list_head link;
link               54 drivers/tee/optee/supp.c 	list_for_each_entry_safe(req, req_tmp, &supp->reqs, link) {
link               55 drivers/tee/optee/supp.c 		list_del(&req->link);
link              104 drivers/tee/optee/supp.c 	list_add_tail(&req->link, &supp->reqs);
link              134 drivers/tee/optee/supp.c 				list_del(&req->link);
link              168 drivers/tee/optee/supp.c 	req = list_first_entry(&supp->reqs, struct optee_supp_req, link);
link              179 drivers/tee/optee/supp.c 	list_del(&req->link);
link               21 drivers/tee/tee_shm.c 		list_del(&shm->link);
link              180 drivers/tee/tee_shm.c 		list_add_tail(&shm->link, &ctx->list_shm);
link              311 drivers/tee/tee_shm.c 	list_add_tail(&shm->link, &ctx->list_shm);
link               86 drivers/thunderbolt/icm.c 	int (*get_route)(struct tb *tb, u8 link, u8 depth, u64 *route);
link              157 drivers/thunderbolt/icm.c 	u8 link;
link              159 drivers/thunderbolt/icm.c 	link = depth ? route >> ((depth - 1) * 8) : route;
link              160 drivers/thunderbolt/icm.c 	return tb_phy_port_from_link(link);
link              163 drivers/thunderbolt/icm.c static inline u8 dual_link_from_link(u8 link)
link              165 drivers/thunderbolt/icm.c 	return link ? ((link - 1) ^ 0x01) + 1 : 0;
link              358 drivers/thunderbolt/icm.c static int icm_fr_get_route(struct tb *tb, u8 link, u8 depth, u64 *route)
link              378 drivers/thunderbolt/icm.c 	index = icm_fr_get_switch_index(sw->ports[link]);
link              528 drivers/thunderbolt/icm.c 	request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link;
link              553 drivers/thunderbolt/icm.c 	phy_port = tb_phy_port_from_link(xd->link);
link              568 drivers/thunderbolt/icm.c 				    u8 connection_key, u8 link, u8 depth,
link              590 drivers/thunderbolt/icm.c 	sw->link = link;
link              621 drivers/thunderbolt/icm.c 			  u8 link, u8 depth, bool boot)
link              633 drivers/thunderbolt/icm.c 	sw->link = link;
link              655 drivers/thunderbolt/icm.c 			u8 link, u8 depth)
link              665 drivers/thunderbolt/icm.c 	xd->link = link;
link              677 drivers/thunderbolt/icm.c static void update_xdomain(struct tb_xdomain *xd, u64 route, u8 link)
link              679 drivers/thunderbolt/icm.c 	xd->link = link;
link              703 drivers/thunderbolt/icm.c 	u8 link, depth;
link              710 drivers/thunderbolt/icm.c 	link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
link              720 drivers/thunderbolt/icm.c 			link, depth);
link              729 drivers/thunderbolt/icm.c 		sw_phy_port = tb_phy_port_from_link(sw->link);
link              730 drivers/thunderbolt/icm.c 		phy_port = tb_phy_port_from_link(link);
link              746 drivers/thunderbolt/icm.c 			if (sw->link != link) {
link              747 drivers/thunderbolt/icm.c 				ret = icm->get_route(tb, link, depth, &route);
link              750 drivers/thunderbolt/icm.c 					       link, depth);
link              759 drivers/thunderbolt/icm.c 				      pkg->connection_key, link, depth, boot);
link              779 drivers/thunderbolt/icm.c 	sw = tb_switch_find_by_link_depth(tb, link, depth);
link              783 drivers/thunderbolt/icm.c 		dual_link = dual_link_from_link(link);
link              793 drivers/thunderbolt/icm.c 	xd = tb_xdomain_find_by_link_depth(tb, link, depth);
link              799 drivers/thunderbolt/icm.c 	parent_sw = tb_switch_find_by_link_depth(tb, link, depth - 1);
link              802 drivers/thunderbolt/icm.c 		       link, depth);
link              806 drivers/thunderbolt/icm.c 	ret = icm->get_route(tb, link, depth, &route);
link              809 drivers/thunderbolt/icm.c 		       link, depth);
link              816 drivers/thunderbolt/icm.c 		   pkg->connection_key, link, depth, security_level,
link              828 drivers/thunderbolt/icm.c 	u8 link, depth;
link              830 drivers/thunderbolt/icm.c 	link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
link              834 drivers/thunderbolt/icm.c 	if (link > ICM_MAX_LINK || depth > TB_SWITCH_MAX_DEPTH) {
link              835 drivers/thunderbolt/icm.c 		tb_warn(tb, "invalid topology %u.%u, ignoring\n", link, depth);
link              839 drivers/thunderbolt/icm.c 	sw = tb_switch_find_by_link_depth(tb, link, depth);
link              841 drivers/thunderbolt/icm.c 		tb_warn(tb, "no switch exists at %u.%u, ignoring\n", link,
link              857 drivers/thunderbolt/icm.c 	u8 link, depth;
link              860 drivers/thunderbolt/icm.c 	link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
link              864 drivers/thunderbolt/icm.c 	if (link > ICM_MAX_LINK || depth > TB_SWITCH_MAX_DEPTH) {
link              865 drivers/thunderbolt/icm.c 		tb_warn(tb, "invalid topology %u.%u, ignoring\n", link, depth);
link              879 drivers/thunderbolt/icm.c 			update_xdomain(xd, route, link);
link              899 drivers/thunderbolt/icm.c 	xd = tb_xdomain_find_by_link_depth(tb, link, depth);
link              903 drivers/thunderbolt/icm.c 		dual_link = dual_link_from_link(link);
link              924 drivers/thunderbolt/icm.c 	sw = tb_switch_find_by_link_depth(tb, link, depth);
link              926 drivers/thunderbolt/icm.c 		tb_warn(tb, "no switch exists at %u.%u, ignoring\n", link,
link              931 drivers/thunderbolt/icm.c 	add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, link,
link             1430 drivers/thunderbolt/icm.c static int icm_ar_get_route(struct tb *tb, u8 link, u8 depth, u64 *route)
link             1435 drivers/thunderbolt/icm.c 		.link_info = depth << ICM_LINK_INFO_DEPTH_SHIFT | link,
link             2025 drivers/thunderbolt/switch.c 	u8 link;
link             2053 drivers/thunderbolt/switch.c 	return sw->link == lookup->link && sw->depth == lookup->depth;
link             2065 drivers/thunderbolt/switch.c struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link, u8 depth)
link             2072 drivers/thunderbolt/switch.c 	lookup.link = link;
link              115 drivers/thunderbolt/tb.h 	u8 link;
link              528 drivers/thunderbolt/tb.h struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
link              663 drivers/thunderbolt/tb.h struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,
link             1399 drivers/thunderbolt/xdomain.c 	u8 link;
link             1420 drivers/thunderbolt/xdomain.c 			} else if (lookup->link &&
link             1421 drivers/thunderbolt/xdomain.c 				   lookup->link == xd->link &&
link             1482 drivers/thunderbolt/xdomain.c struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,
link             1489 drivers/thunderbolt/xdomain.c 	lookup.link = link;
link               44 drivers/tty/ipwireless/main.c static void ipwireless_detach(struct pcmcia_device *link);
link               67 drivers/tty/ipwireless/main.c 	struct pcmcia_device *link = ipw->link;
link               68 drivers/tty/ipwireless/main.c 	pcmcia_reset_card(link->socket);
link              171 drivers/tty/ipwireless/main.c 	struct pcmcia_device *link = ipw->link;
link              175 drivers/tty/ipwireless/main.c 	link->config_flags |= CONF_AUTO_SET_IO | CONF_AUTO_SET_IOMEM |
link              178 drivers/tty/ipwireless/main.c 	ret = pcmcia_loop_config(link, ipwireless_probe, ipw);
link              184 drivers/tty/ipwireless/main.c 	ipwireless_init_hardware_v1(ipw->hardware, link->resource[0]->start,
link              189 drivers/tty/ipwireless/main.c 	ret = pcmcia_request_irq(link, ipwireless_interrupt);
link              196 drivers/tty/ipwireless/main.c 		": I/O ports %pR, irq %d\n", link->resource[0],
link              197 drivers/tty/ipwireless/main.c 			(unsigned int) link->irq);
link              201 drivers/tty/ipwireless/main.c 			link->resource[3],
link              202 drivers/tty/ipwireless/main.c 			link->resource[2]);
link              218 drivers/tty/ipwireless/main.c 	ret = pcmcia_enable_device(link);
link              226 drivers/tty/ipwireless/main.c 		release_mem_region(link->resource[2]->start,
link              227 drivers/tty/ipwireless/main.c 				resource_size(link->resource[2]));
link              231 drivers/tty/ipwireless/main.c 		release_mem_region(link->resource[3]->start,
link              232 drivers/tty/ipwireless/main.c 				resource_size(link->resource[3]));
link              235 drivers/tty/ipwireless/main.c 	pcmcia_disable_device(link);
link              241 drivers/tty/ipwireless/main.c 	release_region(ipw->link->resource[0]->start,
link              242 drivers/tty/ipwireless/main.c 		       resource_size(ipw->link->resource[0]));
link              244 drivers/tty/ipwireless/main.c 		release_mem_region(ipw->link->resource[2]->start,
link              245 drivers/tty/ipwireless/main.c 				resource_size(ipw->link->resource[2]));
link              249 drivers/tty/ipwireless/main.c 		release_mem_region(ipw->link->resource[3]->start,
link              250 drivers/tty/ipwireless/main.c 				resource_size(ipw->link->resource[3]));
link              253 drivers/tty/ipwireless/main.c 	pcmcia_disable_device(ipw->link);
link              265 drivers/tty/ipwireless/main.c static int ipwireless_attach(struct pcmcia_device *link)
link              274 drivers/tty/ipwireless/main.c 	ipw->link = link;
link              275 drivers/tty/ipwireless/main.c 	link->priv = ipw;
link              287 drivers/tty/ipwireless/main.c 		ipwireless_detach(link);
link              300 drivers/tty/ipwireless/main.c static void ipwireless_detach(struct pcmcia_device *link)
link              302 drivers/tty/ipwireless/main.c 	struct ipw_dev *ipw = link->priv;
link               45 drivers/tty/ipwireless/main.h 	struct pcmcia_device *link;
link              281 drivers/tty/n_tty.c 		tty_wakeup(tty->link);
link              349 drivers/tty/n_tty.c 	if (tty->link->packet) {
link              353 drivers/tty/n_tty.c 		wake_up_interruptible(&tty->link->read_wait);
link              377 drivers/tty/n_tty.c 	if (tty->link)
link             1148 drivers/tty/n_tty.c 		if (tty->link)
link             1892 drivers/tty/n_tty.c 	if (tty->link)
link             2180 drivers/tty/n_tty.c 		if (packet && tty->link->ctrl_status) {
link             2184 drivers/tty/n_tty.c 			spin_lock_irq(&tty->link->ctrl_lock);
link             2185 drivers/tty/n_tty.c 			cs = tty->link->ctrl_status;
link             2186 drivers/tty/n_tty.c 			tty->link->ctrl_status = 0;
link             2187 drivers/tty/n_tty.c 			spin_unlock_irq(&tty->link->ctrl_lock);
link             2327 drivers/tty/n_tty.c 		if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) {
link             2416 drivers/tty/n_tty.c 	if (tty->packet && tty->link->ctrl_status)
link               64 drivers/tty/pty.c 	if (!tty->link)
link               66 drivers/tty/pty.c 	set_bit(TTY_OTHER_CLOSED, &tty->link->flags);
link               67 drivers/tty/pty.c 	wake_up_interruptible(&tty->link->read_wait);
link               68 drivers/tty/pty.c 	wake_up_interruptible(&tty->link->write_wait);
link               74 drivers/tty/pty.c 			if (tty->link->driver_data)
link               75 drivers/tty/pty.c 				devpts_pty_kill(tty->link->driver_data);
link               79 drivers/tty/pty.c 		tty_vhangup(tty->link);
link               95 drivers/tty/pty.c 	tty_wakeup(tty->link);
link              113 drivers/tty/pty.c 	struct tty_struct *to = tty->link;
link              143 drivers/tty/pty.c 	return tty_buffer_space_avail(tty->link->port);
link              189 drivers/tty/pty.c 			tty->link->ctrl_status = 0;
link              215 drivers/tty/pty.c 	if (tty->link) {
link              216 drivers/tty/pty.c 		pgrp = tty_get_pgrp(tty->link);
link              226 drivers/tty/pty.c 	struct tty_struct *to = tty->link;
link              242 drivers/tty/pty.c 	if (!tty || !tty->link)
link              247 drivers/tty/pty.c 	if (test_bit(TTY_PTY_LOCK, &tty->link->flags))
link              249 drivers/tty/pty.c 	if (tty->driver->subtype == PTY_TYPE_SLAVE && tty->link->count != 1)
link              253 drivers/tty/pty.c 	clear_bit(TTY_OTHER_CLOSED, &tty->link->flags);
link              266 drivers/tty/pty.c 	if (tty->link && tty->link->packet) {
link              286 drivers/tty/pty.c 			wake_up_interruptible(&tty->link->read_wait);
link              306 drivers/tty/pty.c 	struct tty_struct *pty = tty->link;
link              346 drivers/tty/pty.c 	if (tty->link && tty->link->packet) {
link              351 drivers/tty/pty.c 		wake_up_interruptible_poll(&tty->link->read_wait, EPOLLIN);
link              359 drivers/tty/pty.c 	if (tty->link && tty->link->packet) {
link              364 drivers/tty/pty.c 		wake_up_interruptible_poll(&tty->link->read_wait, EPOLLIN);
link              426 drivers/tty/pty.c 	tty->link   = o_tty;
link              427 drivers/tty/pty.c 	o_tty->link = tty;
link              466 drivers/tty/pty.c 	struct tty_struct *pair = tty->link;
link              645 drivers/tty/pty.c 	path.dentry = tty->link->driver_data;
link              751 drivers/tty/pty.c 		fsi = tty->link->driver_data;
link              863 drivers/tty/pty.c 	dentry = devpts_pty_new(fsi, index, tty->link);
link              868 drivers/tty/pty.c 	tty->link->driver_data = dentry;
link              108 drivers/tty/serial/8250/serial_cs.c static void quirk_setup_brainboxes_0104(struct pcmcia_device *link, struct uart_8250_port *uart)
link              113 drivers/tty/serial/8250/serial_cs.c static int quirk_post_ibm(struct pcmcia_device *link)
link              118 drivers/tty/serial/8250/serial_cs.c 	ret = pcmcia_read_config_byte(link, 0x800, &val);
link              122 drivers/tty/serial/8250/serial_cs.c 	ret = pcmcia_write_config_byte(link, 0x800, val | 1);
link              135 drivers/tty/serial/8250/serial_cs.c static void quirk_config_nokia(struct pcmcia_device *link)
link              137 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              143 drivers/tty/serial/8250/serial_cs.c static void quirk_wakeup_oxsemi(struct pcmcia_device *link)
link              145 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              157 drivers/tty/serial/8250/serial_cs.c static void quirk_wakeup_possio_gcc(struct pcmcia_device *link)
link              159 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              180 drivers/tty/serial/8250/serial_cs.c static void quirk_config_socket(struct pcmcia_device *link)
link              182 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              185 drivers/tty/serial/8250/serial_cs.c 		link->config_flags |= CONF_ENABLE_ESR;
link              261 drivers/tty/serial/8250/serial_cs.c static int serial_config(struct pcmcia_device *link);
link              264 drivers/tty/serial/8250/serial_cs.c static void serial_remove(struct pcmcia_device *link)
link              266 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              269 drivers/tty/serial/8250/serial_cs.c 	dev_dbg(&link->dev, "serial_release\n");
link              278 drivers/tty/serial/8250/serial_cs.c 		pcmcia_disable_device(link);
link              281 drivers/tty/serial/8250/serial_cs.c static int serial_suspend(struct pcmcia_device *link)
link              283 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              292 drivers/tty/serial/8250/serial_cs.c static int serial_resume(struct pcmcia_device *link)
link              294 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              301 drivers/tty/serial/8250/serial_cs.c 		info->quirk->wakeup(link);
link              306 drivers/tty/serial/8250/serial_cs.c static int serial_probe(struct pcmcia_device *link)
link              310 drivers/tty/serial/8250/serial_cs.c 	dev_dbg(&link->dev, "serial_attach()\n");
link              316 drivers/tty/serial/8250/serial_cs.c 	info->p_dev = link;
link              317 drivers/tty/serial/8250/serial_cs.c 	link->priv = info;
link              319 drivers/tty/serial/8250/serial_cs.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
link              321 drivers/tty/serial/8250/serial_cs.c 		link->config_flags |= CONF_ENABLE_SPKR;
link              323 drivers/tty/serial/8250/serial_cs.c 	return serial_config(link);
link              326 drivers/tty/serial/8250/serial_cs.c static void serial_detach(struct pcmcia_device *link)
link              328 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              330 drivers/tty/serial/8250/serial_cs.c 	dev_dbg(&link->dev, "serial_detach\n");
link              335 drivers/tty/serial/8250/serial_cs.c 	serial_remove(link);
link              440 drivers/tty/serial/8250/serial_cs.c static int simple_config(struct pcmcia_device *link)
link              442 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              449 drivers/tty/serial/8250/serial_cs.c 	link->config_flags |= CONF_AUTO_SET_VPP;
link              451 drivers/tty/serial/8250/serial_cs.c 		if (!pcmcia_loop_config(link, simple_config_check, &try))
link              459 drivers/tty/serial/8250/serial_cs.c 	if (!pcmcia_loop_config(link, simple_config_check_notpicky, NULL))
link              462 drivers/tty/serial/8250/serial_cs.c 	dev_warn(&link->dev, "no usable port range found, giving up\n");
link              467 drivers/tty/serial/8250/serial_cs.c 		link->config_index &= ~(0x08);
link              473 drivers/tty/serial/8250/serial_cs.c 		info->quirk->config(link);
link              475 drivers/tty/serial/8250/serial_cs.c 	i = pcmcia_enable_device(link);
link              478 drivers/tty/serial/8250/serial_cs.c 	return setup_serial(link, info, link->resource[0]->start, link->irq);
link              524 drivers/tty/serial/8250/serial_cs.c static int multi_config(struct pcmcia_device *link)
link              526 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              530 drivers/tty/serial/8250/serial_cs.c 	if (!pcmcia_loop_config(link, multi_config_check, &info->multi))
link              531 drivers/tty/serial/8250/serial_cs.c 		base2 = link->resource[0]->start + 8;
link              535 drivers/tty/serial/8250/serial_cs.c 		if (pcmcia_loop_config(link, multi_config_check_notpicky,
link              537 drivers/tty/serial/8250/serial_cs.c 			dev_warn(&link->dev,
link              543 drivers/tty/serial/8250/serial_cs.c 	if (!link->irq)
link              544 drivers/tty/serial/8250/serial_cs.c 		dev_warn(&link->dev, "no usable IRQ found, continuing...\n");
link              550 drivers/tty/serial/8250/serial_cs.c 		info->quirk->config(link);
link              552 drivers/tty/serial/8250/serial_cs.c 	i = pcmcia_enable_device(link);
link              564 drivers/tty/serial/8250/serial_cs.c 		if (link->config_index == 1 ||
link              565 drivers/tty/serial/8250/serial_cs.c 		    link->config_index == 3) {
link              566 drivers/tty/serial/8250/serial_cs.c 			err = setup_serial(link, info, base2,
link              567 drivers/tty/serial/8250/serial_cs.c 					link->irq);
link              568 drivers/tty/serial/8250/serial_cs.c 			base2 = link->resource[0]->start;
link              570 drivers/tty/serial/8250/serial_cs.c 			err = setup_serial(link, info, link->resource[0]->start,
link              571 drivers/tty/serial/8250/serial_cs.c 					link->irq);
link              580 drivers/tty/serial/8250/serial_cs.c 			info->quirk->wakeup(link);
link              585 drivers/tty/serial/8250/serial_cs.c 	setup_serial(link, info, link->resource[0]->start, link->irq);
link              587 drivers/tty/serial/8250/serial_cs.c 		setup_serial(link, info, base2 + (8 * i),
link              588 drivers/tty/serial/8250/serial_cs.c 				link->irq);
link              610 drivers/tty/serial/8250/serial_cs.c static int serial_config(struct pcmcia_device *link)
link              612 drivers/tty/serial/8250/serial_cs.c 	struct serial_info *info = link->priv;
link              615 drivers/tty/serial/8250/serial_cs.c 	dev_dbg(&link->dev, "serial_config\n");
link              618 drivers/tty/serial/8250/serial_cs.c 	info->multi = (link->socket->functions > 1);
link              621 drivers/tty/serial/8250/serial_cs.c 	info->manfid = link->manf_id;
link              622 drivers/tty/serial/8250/serial_cs.c 	info->prodid = link->card_id;
link              638 drivers/tty/serial/8250/serial_cs.c 	    (link->has_func_id) &&
link              639 drivers/tty/serial/8250/serial_cs.c 	    (link->socket->pcmcia_pfc == 0) &&
link              640 drivers/tty/serial/8250/serial_cs.c 	    ((link->func_id == CISTPL_FUNCID_MULTI) ||
link              641 drivers/tty/serial/8250/serial_cs.c 	     (link->func_id == CISTPL_FUNCID_SERIAL))) {
link              642 drivers/tty/serial/8250/serial_cs.c 		if (pcmcia_loop_config(link, serial_check_for_multi, info))
link              652 drivers/tty/serial/8250/serial_cs.c 	dev_info(&link->dev,
link              654 drivers/tty/serial/8250/serial_cs.c 		link->manf_id, link->card_id,
link              655 drivers/tty/serial/8250/serial_cs.c 		link->socket->pcmcia_pfc, info->multi, info->quirk);
link              656 drivers/tty/serial/8250/serial_cs.c 	if (link->socket->pcmcia_pfc)
link              657 drivers/tty/serial/8250/serial_cs.c 		i = pfc_config(link);
link              659 drivers/tty/serial/8250/serial_cs.c 		i = multi_config(link);
link              661 drivers/tty/serial/8250/serial_cs.c 		i = simple_config(link);
link              671 drivers/tty/serial/8250/serial_cs.c 		if (info->quirk->post(link))
link              677 drivers/tty/serial/8250/serial_cs.c 	dev_warn(&link->dev, "failed to initialize\n");
link              678 drivers/tty/serial/8250/serial_cs.c 	serial_remove(link);
link              141 drivers/tty/synclink.c 	u32 link;	/* 32-bit flat link to next buffer entry */
link             3701 drivers/tty/synclink.c 		info->rx_buffer_list[i].link = info->buffer_list_phys;
link             3704 drivers/tty/synclink.c 			info->rx_buffer_list[i].link += (i + 1) * sizeof(DMABUFFERENTRY);
link             3715 drivers/tty/synclink.c 		info->tx_buffer_list[i].link = info->buffer_list_phys +
link             3719 drivers/tty/synclink.c 			info->tx_buffer_list[i].link += (i + 1) * sizeof(DMABUFFERENTRY);
link              294 drivers/tty/tty_io.c 	    tty->link && tty->link->count)
link             1361 drivers/tty/tty_io.c 	retval = tty_ldisc_setup(tty, tty->link);
link             1423 drivers/tty/tty_io.c 	if (tty->link) {
link             1424 drivers/tty/tty_io.c 		flush_work(&tty->link->SAK_work);
link             1425 drivers/tty/tty_io.c 		flush_work(&tty->link->hangup_work);
link             1514 drivers/tty/tty_io.c 	if (tty->link)
link             1515 drivers/tty/tty_io.c 		tty->link->port->itty = NULL;
link             1517 drivers/tty/tty_io.c 	if (tty->link)
link             1518 drivers/tty/tty_io.c 		tty_buffer_cancel_work(tty->link->port);
link             1520 drivers/tty/tty_io.c 	tty_kref_put(tty->link);
link             1551 drivers/tty/tty_io.c 		struct tty_struct *o_tty = tty->link;
link             1558 drivers/tty/tty_io.c 		if (o_tty->link != tty) {
link             1559 drivers/tty/tty_io.c 			tty_debug(tty, "bad link = %p\n", o_tty->link);
link             1669 drivers/tty/tty_io.c 		o_tty = tty->link;
link             2528 drivers/tty/tty_io.c 		tty = tty->link;
link              720 drivers/tty/tty_ioctl.c 		real_tty = tty->link;
link              806 drivers/tty/tty_ldisc.c 	struct tty_struct *o_tty = tty->link;
link               47 drivers/tty/tty_mutex.c 	if (tty && tty != tty->link)
link               53 drivers/tty/tty_mutex.c 	if (tty && tty != tty->link)
link              384 drivers/usb/gadget/function/u_ether.c static int alloc_requests(struct eth_dev *dev, struct gether *link, unsigned n)
link              389 drivers/usb/gadget/function/u_ether.c 	status = prealloc(&dev->tx_reqs, link->in_ep, n);
link              392 drivers/usb/gadget/function/u_ether.c 	status = prealloc(&dev->rx_reqs, link->out_ep, n);
link              625 drivers/usb/gadget/function/u_ether.c 	struct gether	*link;
link              632 drivers/usb/gadget/function/u_ether.c 	link = dev->port_usb;
link              633 drivers/usb/gadget/function/u_ether.c 	if (link && link->open)
link              634 drivers/usb/gadget/function/u_ether.c 		link->open(link);
link              656 drivers/usb/gadget/function/u_ether.c 		struct gether	*link = dev->port_usb;
link              660 drivers/usb/gadget/function/u_ether.c 		if (link->close)
link              661 drivers/usb/gadget/function/u_ether.c 			link->close(link);
link              672 drivers/usb/gadget/function/u_ether.c 		in = link->in_ep->desc;
link              673 drivers/usb/gadget/function/u_ether.c 		out = link->out_ep->desc;
link              674 drivers/usb/gadget/function/u_ether.c 		usb_ep_disable(link->in_ep);
link              675 drivers/usb/gadget/function/u_ether.c 		usb_ep_disable(link->out_ep);
link              678 drivers/usb/gadget/function/u_ether.c 			link->in_ep->desc = in;
link              679 drivers/usb/gadget/function/u_ether.c 			link->out_ep->desc = out;
link              680 drivers/usb/gadget/function/u_ether.c 			usb_ep_enable(link->in_ep);
link              681 drivers/usb/gadget/function/u_ether.c 			usb_ep_enable(link->out_ep);
link             1048 drivers/usb/gadget/function/u_ether.c struct net_device *gether_connect(struct gether *link)
link             1050 drivers/usb/gadget/function/u_ether.c 	struct eth_dev		*dev = link->ioport;
link             1056 drivers/usb/gadget/function/u_ether.c 	link->in_ep->driver_data = dev;
link             1057 drivers/usb/gadget/function/u_ether.c 	result = usb_ep_enable(link->in_ep);
link             1060 drivers/usb/gadget/function/u_ether.c 			link->in_ep->name, result);
link             1064 drivers/usb/gadget/function/u_ether.c 	link->out_ep->driver_data = dev;
link             1065 drivers/usb/gadget/function/u_ether.c 	result = usb_ep_enable(link->out_ep);
link             1068 drivers/usb/gadget/function/u_ether.c 			link->out_ep->name, result);
link             1073 drivers/usb/gadget/function/u_ether.c 		result = alloc_requests(dev, link, qlen(dev->gadget,
link             1077 drivers/usb/gadget/function/u_ether.c 		dev->zlp = link->is_zlp_ok;
link             1081 drivers/usb/gadget/function/u_ether.c 		dev->header_len = link->header_len;
link             1082 drivers/usb/gadget/function/u_ether.c 		dev->unwrap = link->unwrap;
link             1083 drivers/usb/gadget/function/u_ether.c 		dev->wrap = link->wrap;
link             1086 drivers/usb/gadget/function/u_ether.c 		dev->port_usb = link;
link             1088 drivers/usb/gadget/function/u_ether.c 			if (link->open)
link             1089 drivers/usb/gadget/function/u_ether.c 				link->open(link);
link             1091 drivers/usb/gadget/function/u_ether.c 			if (link->close)
link             1092 drivers/usb/gadget/function/u_ether.c 				link->close(link);
link             1102 drivers/usb/gadget/function/u_ether.c 		(void) usb_ep_disable(link->out_ep);
link             1104 drivers/usb/gadget/function/u_ether.c 		(void) usb_ep_disable(link->in_ep);
link             1126 drivers/usb/gadget/function/u_ether.c void gether_disconnect(struct gether *link)
link             1128 drivers/usb/gadget/function/u_ether.c 	struct eth_dev		*dev = link->ioport;
link             1144 drivers/usb/gadget/function/u_ether.c 	usb_ep_disable(link->in_ep);
link             1151 drivers/usb/gadget/function/u_ether.c 		usb_ep_free_request(link->in_ep, req);
link             1155 drivers/usb/gadget/function/u_ether.c 	link->in_ep->desc = NULL;
link             1157 drivers/usb/gadget/function/u_ether.c 	usb_ep_disable(link->out_ep);
link             1164 drivers/usb/gadget/function/u_ether.c 		usb_ep_free_request(link->out_ep, req);
link             1168 drivers/usb/gadget/function/u_ether.c 	link->out_ep->desc = NULL;
link             2317 drivers/usb/gadget/udc/fsl_udc_core.c 		char *name, int link)
link             2350 drivers/usb/gadget/udc/fsl_udc_core.c 	if (link)
link               48 drivers/usb/host/sl811_cs.c static void sl811_cs_release(struct pcmcia_device * link);
link              116 drivers/usb/host/sl811_cs.c static void sl811_cs_detach(struct pcmcia_device *link)
link              118 drivers/usb/host/sl811_cs.c 	dev_dbg(&link->dev, "sl811_cs_detach\n");
link              120 drivers/usb/host/sl811_cs.c 	sl811_cs_release(link);
link              123 drivers/usb/host/sl811_cs.c 	kfree(link->priv);
link              126 drivers/usb/host/sl811_cs.c static void sl811_cs_release(struct pcmcia_device * link)
link              128 drivers/usb/host/sl811_cs.c 	dev_dbg(&link->dev, "sl811_cs_release\n");
link              130 drivers/usb/host/sl811_cs.c 	pcmcia_disable_device(link);
link              143 drivers/usb/host/sl811_cs.c static int sl811_cs_config(struct pcmcia_device *link)
link              145 drivers/usb/host/sl811_cs.c 	struct device		*parent = &link->dev;
link              148 drivers/usb/host/sl811_cs.c 	dev_dbg(&link->dev, "sl811_cs_config\n");
link              150 drivers/usb/host/sl811_cs.c 	link->config_flags |= CONF_ENABLE_IRQ |	CONF_AUTO_SET_VPP |
link              153 drivers/usb/host/sl811_cs.c 	if (pcmcia_loop_config(link, sl811_cs_config_check, NULL))
link              157 drivers/usb/host/sl811_cs.c 	if (resource_size(link->resource[0]) < 2)
link              160 drivers/usb/host/sl811_cs.c 	if (!link->irq)
link              163 drivers/usb/host/sl811_cs.c 	ret = pcmcia_enable_device(link);
link              167 drivers/usb/host/sl811_cs.c 	if (sl811_hc_init(parent, link->resource[0]->start, link->irq)
link              171 drivers/usb/host/sl811_cs.c 		sl811_cs_release(link);
link              177 drivers/usb/host/sl811_cs.c static int sl811_cs_probe(struct pcmcia_device *link)
link              184 drivers/usb/host/sl811_cs.c 	local->p_dev = link;
link              185 drivers/usb/host/sl811_cs.c 	link->priv = local;
link              187 drivers/usb/host/sl811_cs.c 	return sl811_cs_config(link);
link               52 drivers/usb/host/uhci-debug.c 		hc32_to_cpu(uhci, td->link));
link              183 drivers/usb/host/uhci-debug.c 			hc32_to_cpu(uhci, qh->link),
link              382 drivers/usb/host/uhci-debug.c 	__hc32 link;
link              421 drivers/usb/host/uhci-debug.c 		link = uhci->frame[i];
link              427 drivers/usb/host/uhci-debug.c 					i, hc32_to_cpu(uhci, link));
link              436 drivers/usb/host/uhci-debug.c 			if (link != LINK_TO_TD(uhci, td)) {
link              451 drivers/usb/host/uhci-debug.c 			link = td->link;
link              456 drivers/usb/host/uhci-debug.c 		if (link != qh_dma) {
link              461 drivers/usb/host/uhci-debug.c 						i, hc32_to_cpu(uhci, link));
link              500 drivers/usb/host/uhci-debug.c 			link = fsbr_link;
link              501 drivers/usb/host/uhci-debug.c 			if (!link)
link              502 drivers/usb/host/uhci-debug.c 				link = LINK_TO_QH(uhci, uhci->skel_term_qh);
link              524 drivers/usb/host/uhci-debug.c 		link = UHCI_PTR_TERM(uhci);
link              528 drivers/usb/host/uhci-debug.c 			link = LINK_TO_QH(uhci, uhci->skel_async_qh);
link              532 drivers/usb/host/uhci-debug.c 			link = LINK_TO_QH(uhci, uhci->skel_term_qh);
link              534 drivers/usb/host/uhci-debug.c 		if (qh->link != link)
link              645 drivers/usb/host/uhci-hcd.c 		uhci->skelqh[i]->link = LINK_TO_QH(uhci, uhci->skel_async_qh);
link              646 drivers/usb/host/uhci-hcd.c 	uhci->skel_async_qh->link = UHCI_PTR_TERM(uhci);
link              647 drivers/usb/host/uhci-hcd.c 	uhci->skel_term_qh->link = LINK_TO_QH(uhci, uhci->skel_term_qh);
link              652 drivers/usb/host/uhci-hcd.c 	uhci->term_td->link = UHCI_PTR_TERM(uhci);
link              153 drivers/usb/host/uhci-hcd.h 	__hc32 link;			/* Next QH in the schedule */
link              260 drivers/usb/host/uhci-hcd.h 	__hc32 link;
link               57 drivers/usb/host/uhci-q.c 	lqh->link = LINK_TO_QH(uhci, uhci->skel_term_qh);
link               69 drivers/usb/host/uhci-q.c 	lqh->link = UHCI_PTR_TERM(uhci);
link              171 drivers/usb/host/uhci-q.c 		td->link = ltd->link;
link              173 drivers/usb/host/uhci-q.c 		ltd->link = LINK_TO_TD(uhci, td);
link              175 drivers/usb/host/uhci-q.c 		td->link = uhci->frame[framenum];
link              193 drivers/usb/host/uhci-q.c 			uhci->frame[td->frame] = td->link;
link              208 drivers/usb/host/uhci-q.c 		ptd->link = td->link;
link              225 drivers/usb/host/uhci-q.c 		uhci->frame[framenum] = ltd->link;
link              258 drivers/usb/host/uhci-q.c 	qh->link = UHCI_PTR_TERM(uhci);
link              344 drivers/usb/host/uhci-q.c 		ptd->link = td->link;
link              442 drivers/usb/host/uhci-q.c 	qh->link = pqh->link;
link              444 drivers/usb/host/uhci-q.c 	pqh->link = LINK_TO_QH(uhci, qh);
link              466 drivers/usb/host/uhci-q.c 	qh->link = pqh->link;
link              469 drivers/usb/host/uhci-q.c 	pqh->link = link_to_new_qh;
link              474 drivers/usb/host/uhci-q.c 		uhci->skel_term_qh->link = link_to_new_qh;
link              526 drivers/usb/host/uhci-q.c 	pqh->link = qh->link;
link              536 drivers/usb/host/uhci-q.c 	__hc32 link_to_next_qh = qh->link;
link              539 drivers/usb/host/uhci-q.c 	pqh->link = link_to_next_qh;
link              544 drivers/usb/host/uhci-q.c 		uhci->skel_term_qh->link = link_to_next_qh;
link              816 drivers/usb/host/uhci-q.c 	plink = &td->link;
link              855 drivers/usb/host/uhci-q.c 		plink = &td->link;
link              876 drivers/usb/host/uhci-q.c 	plink = &td->link;
link              984 drivers/usb/host/uhci-q.c 		plink = &td->link;
link             1020 drivers/usb/host/uhci-q.c 		plink = &td->link;
link             1151 drivers/usb/host/uhci-q.c 		qh->element = td->link;
link             1713 drivers/usb/host/uhci-q.c 			qh->element = qh->post_td->link;
link              232 drivers/usb/host/xhci-dbgcap.c 	if (TRB_TYPE_LINK_LE32(next->link.control)) {
link              233 drivers/usb/host/xhci-dbgcap.c 		next->link.control ^= cpu_to_le32(TRB_CYCLE);
link               60 drivers/usb/host/xhci-mem.c 			seg->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE);
link              108 drivers/usb/host/xhci-mem.c 		prev->trbs[TRBS_PER_SEGMENT-1].link.segment_ptr =
link              112 drivers/usb/host/xhci-mem.c 		val = le32_to_cpu(prev->trbs[TRBS_PER_SEGMENT-1].link.control);
link              121 drivers/usb/host/xhci-mem.c 		prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val);
link              145 drivers/usb/host/xhci-mem.c 		ring->last_seg->trbs[TRBS_PER_SEGMENT-1].link.control
link              147 drivers/usb/host/xhci-mem.c 		last->trbs[TRBS_PER_SEGMENT-1].link.control
link              390 drivers/usb/host/xhci-mem.c 		ring->last_seg->trbs[TRBS_PER_SEGMENT - 1].link.control |=
link               87 drivers/usb/host/xhci-ring.c 	return TRB_TYPE_LINK_LE32(trb->link.control);
link              103 drivers/usb/host/xhci-ring.c 	return le32_to_cpu(trb->link.control) & LINK_TOGGLE;
link              124 drivers/usb/host/xhci-ring.c 		trb->link.control &= cpu_to_le32(~TRB_CHAIN);
link              236 drivers/usb/host/xhci-ring.c 			next->link.control &= cpu_to_le32(~TRB_CHAIN);
link              237 drivers/usb/host/xhci-ring.c 			next->link.control |= cpu_to_le32(chain);
link              241 drivers/usb/host/xhci-ring.c 		next->link.control ^= cpu_to_le32(TRB_CYCLE);
link             2991 drivers/usb/host/xhci-ring.c 			ep_ring->enqueue->link.control &=
link             2994 drivers/usb/host/xhci-ring.c 			ep_ring->enqueue->link.control |=
link             2998 drivers/usb/host/xhci-ring.c 		ep_ring->enqueue->link.control ^= cpu_to_le32(TRB_CYCLE);
link              858 drivers/usb/host/xhci.c 		seg->trbs[TRBS_PER_SEGMENT - 1].link.control &=
link             1338 drivers/usb/host/xhci.h 	struct xhci_link_trb		link;
link              618 drivers/usb/mtu3/mtu3_core.c 	u32 link;
link              621 drivers/usb/mtu3/mtu3_core.c 	link = mtu3_readl(mbase, U3D_DEV_LINK_INTR);
link              622 drivers/usb/mtu3/mtu3_core.c 	link &= mtu3_readl(mbase, U3D_DEV_LINK_INTR_ENABLE);
link              623 drivers/usb/mtu3/mtu3_core.c 	mtu3_writel(mbase, U3D_DEV_LINK_INTR, link); /* W1C */
link              624 drivers/usb/mtu3/mtu3_core.c 	dev_dbg(mtu->dev, "=== LINK[%x] ===\n", link);
link              626 drivers/usb/mtu3/mtu3_core.c 	if (!(link & SSUSB_DEV_SPEED_CHG_INTR))
link               38 drivers/vfio/platform/vfio_platform_common.c 	list_for_each_entry(iter, &reset_list, link) {
link              725 drivers/vfio/platform/vfio_platform_common.c 	list_add(&node->link, &reset_list);
link              736 drivers/vfio/platform/vfio_platform_common.c 	list_for_each_entry_safe(iter, temp, &reset_list, link) {
link              738 drivers/vfio/platform/vfio_platform_common.c 			list_del(&iter->link);
link               75 drivers/vfio/platform/vfio_platform_private.h 	struct list_head link;
link              155 drivers/vfio/vfio_iommu_type1.c 	struct rb_node **link = &iommu->dma_list.rb_node, *parent = NULL;
link              158 drivers/vfio/vfio_iommu_type1.c 	while (*link) {
link              159 drivers/vfio/vfio_iommu_type1.c 		parent = *link;
link              163 drivers/vfio/vfio_iommu_type1.c 			link = &(*link)->rb_left;
link              165 drivers/vfio/vfio_iommu_type1.c 			link = &(*link)->rb_right;
link              168 drivers/vfio/vfio_iommu_type1.c 	rb_link_node(&new->node, parent, link);
link              201 drivers/vfio/vfio_iommu_type1.c 	struct rb_node **link, *parent = NULL;
link              204 drivers/vfio/vfio_iommu_type1.c 	link = &dma->pfn_list.rb_node;
link              205 drivers/vfio/vfio_iommu_type1.c 	while (*link) {
link              206 drivers/vfio/vfio_iommu_type1.c 		parent = *link;
link              210 drivers/vfio/vfio_iommu_type1.c 			link = &(*link)->rb_left;
link              212 drivers/vfio/vfio_iommu_type1.c 			link = &(*link)->rb_right;
link              215 drivers/vfio/vfio_iommu_type1.c 	rb_link_node(&new->node, parent, link);
link              620 drivers/vhost/vhost.c 	list_del(&node->link);
link              632 drivers/vhost/vhost.c 	list_for_each_entry_safe(node, tmp, &umem->umem_list, link)
link              720 drivers/vhost/vhost.c 	list_for_each_entry(node, &umem->umem_list, link) {
link             1031 drivers/vhost/vhost.c 		tmp = list_first_entry(&umem->umem_list, typeof(*tmp), link);
link             1040 drivers/vhost/vhost.c 	INIT_LIST_HEAD(&node->link);
link             1041 drivers/vhost/vhost.c 	list_add_tail(&node->link, &umem->umem_list);
link             1883 drivers/vhost/vhost.c 		list_for_each_entry(u, &umem->umem_list, link) {
link               60 drivers/vhost/vhost.h 	struct list_head link;
link              922 drivers/xen/xen-scsiback.c 			hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) {
link             1433 fs/9p/vfs_inode.c 	.link = v9fs_vfs_link,
link              950 fs/9p/vfs_inode_dotl.c 	.link = v9fs_vfs_link_dotl,
link               35 fs/affs/dir.c  	.link		= affs_link,
link               18 fs/affs/symlink.c 	char *link = page_address(page);
link               40 fs/affs/symlink.c 			link[i++] = c;
link               43 fs/affs/symlink.c 			link[i++] = lf->symname[j++];
link               45 fs/affs/symlink.c 			link[i++] = '/';
link               51 fs/affs/symlink.c 			link[i++] = '.';
link               52 fs/affs/symlink.c 			link[i++] = '.';
link               54 fs/affs/symlink.c 		link[i++] = c;
link               58 fs/affs/symlink.c 	link[i] = '\0';
link               63 fs/afs/dir.c   	.link		= afs_link,
link               94 fs/afs/flock.c 	list_for_each_entry_safe(p, _p, &vnode->pending_locks, fl_u.afs.link) {
link               98 fs/afs/flock.c 		list_move_tail(&p->fl_u.afs.link, &vnode->granted_locks);
link              121 fs/afs/flock.c 	list_for_each_entry_safe(p, _p, &vnode->pending_locks, fl_u.afs.link) {
link              125 fs/afs/flock.c 			list_del_init(&p->fl_u.afs.link);
link              165 fs/afs/flock.c 			       struct file_lock, fl_u.afs.link);
link              166 fs/afs/flock.c 		list_del_init(&p->fl_u.afs.link);
link              481 fs/afs/flock.c 	INIT_LIST_HEAD(&fl->fl_u.afs.link);
link              510 fs/afs/flock.c 	list_add_tail(&fl->fl_u.afs.link, &vnode->pending_locks);
link              524 fs/afs/flock.c 			list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks);
link              531 fs/afs/flock.c 			list_move_tail(&fl->fl_u.afs.link, &vnode->granted_locks);
link              578 fs/afs/flock.c 		list_del_init(&fl->fl_u.afs.link);
link              585 fs/afs/flock.c 		list_del_init(&fl->fl_u.afs.link);
link              592 fs/afs/flock.c 		list_del_init(&fl->fl_u.afs.link);
link              602 fs/afs/flock.c 		ASSERTCMP(vnode->pending_locks.next, ==, &fl->fl_u.afs.link);
link              636 fs/afs/flock.c 		list_del_init(&fl->fl_u.afs.link);
link              700 fs/afs/flock.c 	list_del_init(&fl->fl_u.afs.link);
link              869 fs/afs/flock.c 	list_add(&new->fl_u.afs.link, &fl->fl_u.afs.link);
link              886 fs/afs/flock.c 	list_del_init(&fl->fl_u.afs.link);
link              158 fs/bad_inode.c 	.link		= bad_inode_link,
link              477 fs/befs/linuxvfs.c 	char *link = page_address(page);
link              485 fs/befs/linuxvfs.c 	if (befs_read_lsymlink(sb, data, link, len) != len) {
link              489 fs/befs/linuxvfs.c 	link[len - 1] = '\0';
link              262 fs/bfs/dir.c   	.link			= bfs_link,
link             2352 fs/btrfs/free-space-cache.c 		goto link;
link             2366 fs/btrfs/free-space-cache.c link:
link             11070 fs/btrfs/inode.c 	.link		= btrfs_link,
link             1836 fs/ceph/dir.c  	.link = ceph_link,
link             1042 fs/cifs/cifsfs.c 	.link = cifs_hardlink,
link              570 fs/coda/dir.c  	.link		= coda_link,
link              387 fs/coda/upcall.c 	offset = INSIZE(link);
link              388 fs/coda/upcall.c 	insize = max_t(unsigned int, offset  + len + 1, OUTSIZE(link));
link              645 fs/debugfs/inode.c 	char *link = kstrdup(target, GFP_KERNEL);
link              646 fs/debugfs/inode.c 	if (!link)
link              651 fs/debugfs/inode.c 		kfree(link);
link              659 fs/debugfs/inode.c 		kfree(link);
link              664 fs/debugfs/inode.c 	inode->i_link = link;
link              643 fs/ecryptfs/inode.c 	const char *link;
link              647 fs/ecryptfs/inode.c 	link = vfs_get_link(lower_dentry, &done);
link              648 fs/ecryptfs/inode.c 	if (IS_ERR(link))
link              649 fs/ecryptfs/inode.c 		return ERR_CAST(link);
link              652 fs/ecryptfs/inode.c 						  link, strlen(link));
link             1107 fs/ecryptfs/inode.c 	.link = ecryptfs_link,
link               17 fs/efs/symlink.c 	char *link = page_address(page);
link               32 fs/efs/symlink.c 	memcpy(link, bh->b_data, (size > EFS_BLOCKSIZE) ? EFS_BLOCKSIZE : size);
link               38 fs/efs/symlink.c 		memcpy(link + EFS_BLOCKSIZE, bh->b_data, size - EFS_BLOCKSIZE);
link               41 fs/efs/symlink.c 	link[size] = '\0';
link              409 fs/ext2/namei.c 	.link		= ext2_link,
link             4019 fs/ext4/namei.c 	.link		= ext4_link,
link              572 fs/f2fs/namei.c 	const char *link = page_get_link(dentry, inode, done);
link              573 fs/f2fs/namei.c 	if (!IS_ERR(link) && !*link) {
link              577 fs/f2fs/namei.c 		link = ERR_PTR(-ENOENT);
link              579 fs/f2fs/namei.c 	return link;
link             1263 fs/f2fs/namei.c 	.link		= f2fs_link,
link               30 fs/fscache/cache.c 	list_for_each_entry(tag, &fscache_cache_tag_list, link) {
link               52 fs/fscache/cache.c 	list_for_each_entry(tag, &fscache_cache_tag_list, link) {
link               61 fs/fscache/cache.c 	list_add_tail(&xtag->link, &fscache_cache_tag_list);
link               75 fs/fscache/cache.c 			list_del_init(&tag->link);
link              161 fs/fscache/cache.c 			   struct fscache_cache, link);
link              194 fs/fscache/cache.c 	INIT_LIST_HEAD(&cache->link);
link              257 fs/fscache/cache.c 	list_add(&cache->link, &fscache_cache_list);
link              375 fs/fscache/cache.c 	list_del_init(&cache->link);
link              678 fs/fuse/dir.c  			const char *link)
link              681 fs/fuse/dir.c  	unsigned len = strlen(link) + 1;
link              689 fs/fuse/dir.c  	args.in_args[1].value = link;
link             1219 fs/fuse/dir.c  	char *link;
link             1239 fs/fuse/dir.c  	link = page_address(page);
link             1240 fs/fuse/dir.c  	link[res] = '\0';
link             1705 fs/fuse/dir.c  	.link		= fuse_link,
link             2931 fs/fuse/file.c 	struct rb_node **link = &fc->polled_files.rb_node;
link             2934 fs/fuse/file.c 	while (*link) {
link             2937 fs/fuse/file.c 		last = *link;
link             2941 fs/fuse/file.c 			link = &last->rb_left;
link             2943 fs/fuse/file.c 			link = &last->rb_right;
link             2945 fs/fuse/file.c 			return link;
link             2950 fs/fuse/file.c 	return link;
link             2964 fs/fuse/file.c 		struct rb_node **link, *uninitialized_var(parent);
link             2966 fs/fuse/file.c 		link = fuse_find_polled_node(fc, ff->kh, &parent);
link             2967 fs/fuse/file.c 		BUG_ON(*link);
link             2968 fs/fuse/file.c 		rb_link_node(&ff->polled_node, parent, link);
link             3026 fs/fuse/file.c 	struct rb_node **link;
link             3030 fs/fuse/file.c 	link = fuse_find_polled_node(fc, kh, NULL);
link             3031 fs/fuse/file.c 	if (*link) {
link             3034 fs/fuse/file.c 		ff = rb_entry(*link, struct fuse_file, polled_node);
link              711 fs/fuse/virtio_fs.c 	struct fuse_forget_link *link;
link              722 fs/fuse/virtio_fs.c 	link = fuse_dequeue_forget(fiq, 1, NULL);
link              734 fs/fuse/virtio_fs.c 		.nodeid = link->forget_one.nodeid,
link              739 fs/fuse/virtio_fs.c 		.nlookup = link->forget_one.nlookup,
link              782 fs/fuse/virtio_fs.c 	kfree(link);
link             2102 fs/gfs2/inode.c 	.link = gfs2_link,
link              561 fs/hfsplus/dir.c 	.link			= hfsplus_link,
link              140 fs/hostfs/hostfs_kern.c static char *follow_link(char *link)
link              151 fs/hostfs/hostfs_kern.c 	n = hostfs_do_readlink(link, name, PATH_MAX);
link              162 fs/hostfs/hostfs_kern.c 	end = strrchr(link, '/');
link              167 fs/hostfs/hostfs_kern.c 	len = strlen(link) + strlen(name) + 1;
link              175 fs/hostfs/hostfs_kern.c 	sprintf(resolved, "%s%s", link, name);
link              177 fs/hostfs/hostfs_kern.c 	kfree(link);
link              864 fs/hostfs/hostfs_kern.c 	.link		= hostfs_link,
link              879 fs/hostfs/hostfs_kern.c 	char *link;
link              882 fs/hostfs/hostfs_kern.c 	link = kmalloc(PATH_MAX, GFP_KERNEL);
link              883 fs/hostfs/hostfs_kern.c 	if (link) {
link              887 fs/hostfs/hostfs_kern.c 			err = hostfs_do_readlink(path, link, PATH_MAX);
link              893 fs/hostfs/hostfs_kern.c 			kfree(link);
link              900 fs/hostfs/hostfs_kern.c 	set_delayed_call(done, kfree_link, link);
link              901 fs/hostfs/hostfs_kern.c 	return link;
link              331 fs/hostfs/hostfs_user.c 	err = link(to, from);
link              480 fs/hpfs/namei.c 	char *link = page_address(page);
link              490 fs/hpfs/namei.c 	err = hpfs_read_ea(i->i_sb, fnode, "SYMLINK", link, PAGE_SIZE);
link             1097 fs/hugetlbfs/inode.c 	.link		= simple_link,
link              712 fs/io_uring.c  	struct io_kiocb *link;
link              715 fs/io_uring.c  		link = list_first_entry(&req->link_list, struct io_kiocb, list);
link              716 fs/io_uring.c  		list_del(&link->list);
link              718 fs/io_uring.c  		io_cqring_add_event(req->ctx, link->user_data, -ECANCELED);
link              719 fs/io_uring.c  		__io_free_req(link);
link             2523 fs/io_uring.c  			  struct io_submit_state *state, struct io_kiocb **link)
link             2576 fs/io_uring.c  	if (*link) {
link             2577 fs/io_uring.c  		struct io_kiocb *prev = *link;
link             2593 fs/io_uring.c  		*link = req;
link             2684 fs/io_uring.c  	struct io_kiocb *link = NULL;
link             2704 fs/io_uring.c  		if (!prev_was_link && link) {
link             2705 fs/io_uring.c  			io_queue_link_head(ctx, link, &link->submit, shadow_req);
link             2706 fs/io_uring.c  			link = NULL;
link             2711 fs/io_uring.c  		if (link && (s.sqe->flags & IOSQE_IO_DRAIN)) {
link             2730 fs/io_uring.c  			io_submit_sqe(ctx, &s, statep, &link);
link             2735 fs/io_uring.c  	if (link)
link             2736 fs/io_uring.c  		io_queue_link_head(ctx, link, &link->submit, shadow_req);
link             2878 fs/io_uring.c  	struct io_kiocb *link = NULL;
link             2898 fs/io_uring.c  		if (!prev_was_link && link) {
link             2899 fs/io_uring.c  			io_queue_link_head(ctx, link, &link->submit, shadow_req);
link             2900 fs/io_uring.c  			link = NULL;
link             2905 fs/io_uring.c  		if (link && (s.sqe->flags & IOSQE_IO_DRAIN)) {
link             2921 fs/io_uring.c  		io_submit_sqe(ctx, &s, statep, &link);
link             2924 fs/io_uring.c  	if (link)
link             2925 fs/io_uring.c  		io_queue_link_head(ctx, link, &link->submit, shadow_req);
link              454 fs/isofs/rock.c 				slp = &rr->u.SL.link;
link              610 fs/isofs/rock.c 	slp = &rr->u.SL.link;
link              698 fs/isofs/rock.c 	char *link = page_address(page);
link              701 fs/isofs/rock.c 	char *rpnt = link;
link              761 fs/isofs/rock.c 						 link + (PAGE_SIZE - 1));
link              780 fs/isofs/rock.c 	if (rpnt == link)
link               52 fs/isofs/rock.h 	struct SL_component link;
link               55 fs/jffs2/dir.c 	.link =		jffs2_link,
link              125 fs/jffs2/nodelist.c 	struct rb_node **link = &parent;
link              129 fs/jffs2/nodelist.c 	while (*link) {
link              130 fs/jffs2/nodelist.c 		parent = *link;
link              134 fs/jffs2/nodelist.c 			link = &base->rb.rb_right;
link              136 fs/jffs2/nodelist.c 			link = &base->rb.rb_left;
link              143 fs/jffs2/nodelist.c 	rb_link_node(&newfrag->rb, &base->rb, link);
link              339 fs/jffs2/readinode.c 		struct rb_node **link = &rii->tn_root.rb_node;
link              342 fs/jffs2/readinode.c 		while (*link) {
link              343 fs/jffs2/readinode.c 			parent = *link;
link              346 fs/jffs2/readinode.c 				link = &insert_point->rb.rb_right;
link              349 fs/jffs2/readinode.c 				link = &insert_point->rb.rb_left;
link              351 fs/jffs2/readinode.c 				link = &insert_point->rb.rb_right;
link              353 fs/jffs2/readinode.c 		rb_link_node(&tn->rb, &insert_point->rb, link);
link              405 fs/jffs2/readinode.c 	struct rb_node **link;
link              411 fs/jffs2/readinode.c 		link = &root->rb_node;
link              413 fs/jffs2/readinode.c 		link = &parent->rb_left;
link              415 fs/jffs2/readinode.c 		link = &parent->rb_right;
link              417 fs/jffs2/readinode.c 	*link = node->rb_left;
link              426 fs/jffs2/readinode.c 	struct rb_node **link = &ver_root->rb_node;
link              430 fs/jffs2/readinode.c 	while (*link) {
link              431 fs/jffs2/readinode.c 		parent = *link;
link              435 fs/jffs2/readinode.c 			link = &parent->rb_left;
link              437 fs/jffs2/readinode.c 			link = &parent->rb_right;
link              439 fs/jffs2/readinode.c 	dbg_readinode("Link new node at %p (root is %p)\n", link, ver_root);
link              440 fs/jffs2/readinode.c 	rb_link_node(&tn->rb, parent, link);
link               85 fs/jfs/jfs_incore.h 		} link;
link               97 fs/jfs/jfs_incore.h #define i_inline u.link._inline
link               98 fs/jfs/jfs_incore.h #define i_inline_ea u.link._inline_ea
link             1515 fs/jfs/namei.c 	.link		= jfs_link,
link              262 fs/minix/namei.c 	.link		= minix_link,
link              499 fs/namei.c     		struct path link;
link              598 fs/namei.c     			path_put(&nd->stack[i].link);
link              633 fs/namei.c     		if (unlikely(!legitimize_path(nd, &last->link, last->seq))) {
link              877 fs/namei.c     		path_put(&last->link);
link              927 fs/namei.c     	audit_inode(nd->name, nd->stack[0].link.dentry, 0);
link              979 fs/namei.c     static int may_linkat(struct path *link)
link              981 fs/namei.c     	struct inode *inode = link->dentry->d_inode;
link             1044 fs/namei.c     	struct dentry *dentry = last->link.dentry;
link             1050 fs/namei.c     		touch_atime(&last->link);
link             1052 fs/namei.c     	} else if (atime_needs_update(&last->link, inode)) {
link             1055 fs/namei.c     		touch_atime(&last->link);
link             1711 fs/namei.c     static int pick_link(struct nameidata *nd, struct path *link,
link             1717 fs/namei.c     		path_to_nameidata(link, nd);
link             1721 fs/namei.c     		if (link->mnt == nd->path.mnt)
link             1722 fs/namei.c     			mntget(link->mnt);
link             1727 fs/namei.c     			if (unlikely(!legitimize_path(nd, link, seq))) {
link             1738 fs/namei.c     			path_put(link);
link             1744 fs/namei.c     	last->link = *link;
link             4218 fs/namei.c     	if (!dir->i_op->link)
link             4236 fs/namei.c     			error = dir->i_op->link(old_dentry, dir, new_dentry);
link             4331 fs/namei.c     SYSCALL_DEFINE2(link, const char __user *, oldname, const char __user *, newname)
link             4685 fs/namei.c     int readlink_copy(char __user *buffer, int buflen, const char *link)
link             4687 fs/namei.c     	int len = PTR_ERR(link);
link             4688 fs/namei.c     	if (IS_ERR(link))
link             4691 fs/namei.c     	len = strlen(link);
link             4694 fs/namei.c     	if (copy_to_user(buffer, link, len))
link             4714 fs/namei.c     	const char *link;
link             4729 fs/namei.c     	link = READ_ONCE(inode->i_link);
link             4730 fs/namei.c     	if (!link) {
link             4731 fs/namei.c     		link = inode->i_op->get_link(dentry, inode, &done);
link             4732 fs/namei.c     		if (IS_ERR(link))
link             4733 fs/namei.c     			return PTR_ERR(link);
link             4735 fs/namei.c     	res = readlink_copy(buffer, buflen, link);
link             2025 fs/nfs/dir.c   	error = NFS_PROTO(dir)->link(inode, dir, &dentry->d_name);
link              956 fs/nfs/nfs3proc.c 	.link		= nfs_link,
link             1007 fs/nfs/nfs3proc.c 	.link		= nfs3_proc_link,
link             2542 fs/nfs/nfs3xdr.c 	PROC(LINK,		link,		link,		0),
link             10002 fs/nfs/nfs4proc.c 	.link		= nfs_link,
link             10045 fs/nfs/nfs4proc.c 	.link		= nfs4_proc_link,
link              687 fs/nfs/proc.c  	.link		= nfs_link,
link              727 fs/nfs/proc.c  	.link		= nfs_proc_link,
link              708 fs/nfsd/nfs4proc.c 	struct nfsd4_link *link = &u->link;
link              712 fs/nfsd/nfs4proc.c 			   link->li_name, link->li_namelen, &cstate->save_fh);
link              714 fs/nfsd/nfs4proc.c 		set_change_info(&link->li_cinfo, &cstate->current_fh);
link              712 fs/nfsd/nfs4xdr.c nfsd4_decode_link(struct nfsd4_compoundargs *argp, struct nfsd4_link *link)
link              717 fs/nfsd/nfs4xdr.c 	link->li_namelen = be32_to_cpup(p++);
link              718 fs/nfsd/nfs4xdr.c 	READ_BUF(link->li_namelen);
link              719 fs/nfsd/nfs4xdr.c 	SAVEMEM(link->li_name, link->li_namelen);
link              720 fs/nfsd/nfs4xdr.c 	if ((status = check_filename(link->li_name, link->li_namelen)))
link             3333 fs/nfsd/nfs4xdr.c nfsd4_encode_link(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_link *link)
link             3341 fs/nfsd/nfs4xdr.c 	p = encode_cinfo(p, &link->li_cinfo);
link             1478 fs/nfsd/vfs.c  	const char *link;
link             1495 fs/nfsd/vfs.c  	link = vfs_get_link(path.dentry, &done);
link             1496 fs/nfsd/vfs.c  	if (IS_ERR(link))
link             1497 fs/nfsd/vfs.c  		return nfserrno(PTR_ERR(link));
link             1499 fs/nfsd/vfs.c  	len = strlen(link);
link             1502 fs/nfsd/vfs.c  	memcpy(buf, link, *lenp);
link              128 fs/nfsd/xdr.h  	struct nfsd_linkargs	link;
link              114 fs/nfsd/xdr4.h 		} link;   /* NF4LNK */
link              127 fs/nfsd/xdr4.h #define cr_datalen	u.link.datalen
link              128 fs/nfsd/xdr4.h #define cr_data		u.link.data
link              129 fs/nfsd/xdr4.h #define cr_first	u.link.first
link              583 fs/nfsd/xdr4.h 		struct nfsd4_link		link;
link              542 fs/nilfs2/namei.c 	.link		= nilfs_link,
link             2896 fs/ocfs2/namei.c 	.link		= ocfs2_link,
link               63 fs/ocfs2/symlink.c 	const char *link;
link               73 fs/ocfs2/symlink.c 	link = (char *) fe->id2.i_symlink;
link               75 fs/ocfs2/symlink.c 	len = strnlen(link, ocfs2_fast_symlink_chars(inode->i_sb));
link               77 fs/ocfs2/symlink.c 	memcpy(kaddr, link, len + 1);
link              391 fs/overlayfs/copy_up.c 	const char *link;
link              538 fs/overlayfs/copy_up.c 		.link = c->link
link              827 fs/overlayfs/copy_up.c 		ctx.link = vfs_get_link(ctx.lowerpath.dentry, &done);
link              828 fs/overlayfs/copy_up.c 		if (IS_ERR(ctx.link))
link              829 fs/overlayfs/copy_up.c 			return PTR_ERR(ctx.link);
link              181 fs/overlayfs/dir.c 			err = ovl_do_symlink(dir, newdentry, attr->link);
link              587 fs/overlayfs/dir.c 			     const char *link)
link              593 fs/overlayfs/dir.c 		.link = link,
link              646 fs/overlayfs/dir.c 		       const char *link)
link              648 fs/overlayfs/dir.c 	return ovl_create_object(dentry, S_IFLNK, 0, link);
link             1242 fs/overlayfs/dir.c 	.link		= ovl_link,
link              406 fs/overlayfs/overlayfs.h 	const char *link;
link               67 fs/overlayfs/readdir.c 				      struct rb_node ***link,
link               71 fs/overlayfs/readdir.c 	struct rb_node **newp = *link;
link               87 fs/overlayfs/readdir.c 	*link = newp;
link             1165 fs/proc/proc_sysctl.c 	struct ctl_table *link_table, *entry, *link;
link             1191 fs/proc/proc_sysctl.c 	for (link = link_table, entry = table; entry->procname; link++, entry++) {
link             1194 fs/proc/proc_sysctl.c 		link->procname = link_name;
link             1195 fs/proc/proc_sysctl.c 		link->mode = S_IFLNK|S_IRWXUGO;
link             1196 fs/proc/proc_sysctl.c 		link->data = link_root;
link             1209 fs/proc/proc_sysctl.c 	struct ctl_table *entry, *link;
link             1214 fs/proc/proc_sysctl.c 		link = find_entry(&head, dir, procname, strlen(procname));
link             1215 fs/proc/proc_sysctl.c 		if (!link)
link             1217 fs/proc/proc_sysctl.c 		if (S_ISDIR(link->mode) && S_ISDIR(entry->mode))
link             1219 fs/proc/proc_sysctl.c 		if (S_ISLNK(link->mode) && (link->data == link_root))
link             1227 fs/proc/proc_sysctl.c 		link = find_entry(&head, dir, procname, strlen(procname));
link             1630 fs/proc/proc_sysctl.c 		struct ctl_table *link;
link             1633 fs/proc/proc_sysctl.c 		link = find_entry(&link_head, core_parent, name, strlen(name));
link             1634 fs/proc/proc_sysctl.c 		if (link &&
link             1635 fs/proc/proc_sysctl.c 		    ((S_ISDIR(link->mode) && S_ISDIR(entry->mode)) ||
link             1636 fs/proc/proc_sysctl.c 		     (S_ISLNK(link->mode) && (link->data == root)))) {
link              153 fs/ramfs/inode.c 	.link		= simple_link,
link             1648 fs/reiserfs/namei.c 	.link = reiserfs_link,
link              436 fs/reiserfs/super.c 	__le32 link;
link              491 fs/reiserfs/super.c 	link = INODE_PKEY(inode)->k_dir_id;
link              495 fs/reiserfs/super.c 	    reiserfs_insert_item(th, &path, &key, &ih, NULL, (char *)&link);
link              430 fs/sysfs/group.c 	struct kernfs_node *link;
link              451 fs/sysfs/group.c 	link = kernfs_create_link(kobj->sd, target_name, entry);
link              452 fs/sysfs/group.c 	if (IS_ERR(link) && PTR_ERR(link) == -EEXIST)
link              457 fs/sysfs/group.c 	return PTR_ERR_OR_ZERO(link);
link              267 fs/sysv/namei.c 	.link		= sysv_link,
link             1632 fs/ubifs/dir.c 	.link        = ubifs_link,
link             1326 fs/udf/namei.c 	.link				= udf_link,
link              330 fs/ufs/namei.c 	.link		= ufs_link,
link              444 fs/xfs/xfs_iops.c 	char			*link;
link              450 fs/xfs/xfs_iops.c 	link = kmalloc(XFS_SYMLINK_MAXLEN+1, GFP_KERNEL);
link              451 fs/xfs/xfs_iops.c 	if (!link)
link              454 fs/xfs/xfs_iops.c 	error = xfs_readlink(XFS_I(d_inode(dentry)), link);
link              458 fs/xfs/xfs_iops.c 	set_delayed_call(done, kfree_link, link);
link              459 fs/xfs/xfs_iops.c 	return link;
link              462 fs/xfs/xfs_iops.c 	kfree(link);
link              473 fs/xfs/xfs_iops.c 	char			*link;
link              481 fs/xfs/xfs_iops.c 	link = XFS_I(inode)->i_df.if_u1.if_data;
link              482 fs/xfs/xfs_iops.c 	if (!link)
link              484 fs/xfs/xfs_iops.c 	return link;
link             1146 fs/xfs/xfs_iops.c 	.link			= xfs_vn_link,
link             1171 fs/xfs/xfs_iops.c 	.link			= xfs_vn_link,
link               28 fs/xfs/xfs_symlink.c 	char			*link)
link               89 fs/xfs/xfs_symlink.c 		memcpy(link + offset, cur_chunk, byte_cnt);
link               98 fs/xfs/xfs_symlink.c 	link[ip->i_d.di_size] = '\0';
link              108 fs/xfs/xfs_symlink.c 	char		*link)
link              137 fs/xfs/xfs_symlink.c 	error = xfs_readlink_bmap_ilocked(ip, link);
link               12 fs/xfs/xfs_symlink.h int xfs_readlink_bmap_ilocked(struct xfs_inode *ip, char *link);
link               13 fs/xfs/xfs_symlink.h int xfs_readlink(struct xfs_inode *ip, char *link);
link             1368 include/drm/drm_dp_helper.h int drm_dp_link_probe(struct drm_dp_aux *aux, struct drm_dp_link *link);
link             1369 include/drm/drm_dp_helper.h int drm_dp_link_power_up(struct drm_dp_aux *aux, struct drm_dp_link *link);
link             1370 include/drm/drm_dp_helper.h int drm_dp_link_power_down(struct drm_dp_aux *aux, struct drm_dp_link *link);
link             1371 include/drm/drm_dp_helper.h int drm_dp_link_configure(struct drm_dp_aux *aux, struct drm_dp_link *link);
link              141 include/drm/drm_file.h 	struct list_head link;
link               17 include/keys/asymmetric-parser.h 	struct list_head	link;
link             1654 include/linux/device.h void device_link_del(struct device_link *link);
link              155 include/linux/dma/ipu-dma.h 	enum ipu_channel	link;	/* input channel, linked to the output	   */
link              558 include/linux/edac.h 	struct list_head link;	/* for global list of mem_ctl_info structs */
link              116 include/linux/firewire.h 	struct list_head link;
link              312 include/linux/firewire.h 	struct list_head link;
link              319 include/linux/firewire.h 	struct list_head link;
link              339 include/linux/firewire.h 	struct list_head link;
link              375 include/linux/firewire.h 	struct list_head link;
link             1111 include/linux/fs.h 			struct list_head link;	/* link in AFS vnode's pending_locks list */
link             1873 include/linux/fs.h 	int (*link) (struct dentry *,struct inode *,struct dentry *);
link               44 include/linux/fscache-cache.h 	struct list_head	link;
link               59 include/linux/fscache-cache.h 	struct list_head	link;		/* link in list of caches */
link              186 include/linux/hsi/hsi.h 	struct list_head	link;
link              563 include/linux/intel-iommu.h 	struct list_head link;	/* link to domain siblings */
link               41 include/linux/interval_tree_generic.h 	struct rb_node **link = &root->rb_root.rb_node, *rb_parent = NULL;    \
link               46 include/linux/interval_tree_generic.h 	while (*link) {							      \
link               47 include/linux/interval_tree_generic.h 		rb_parent = *link;					      \
link               52 include/linux/interval_tree_generic.h 			link = &parent->ITRB.rb_left;			      \
link               54 include/linux/interval_tree_generic.h 			link = &parent->ITRB.rb_right;			      \
link               60 include/linux/interval_tree_generic.h 	rb_link_node(&node->ITRB, rb_parent, link);			      \
link              376 include/linux/iommu.h int  iommu_device_link(struct iommu_device   *iommu, struct device *link);
link              377 include/linux/iommu.h void iommu_device_unlink(struct iommu_device *iommu, struct device *link);
link              914 include/linux/iommu.h static inline int iommu_device_link(struct device *dev, struct device *link)
link              919 include/linux/iommu.h static inline void iommu_device_unlink(struct device *dev, struct device *link)
link               40 include/linux/ipmi.h 	struct list_head link;
link              263 include/linux/ipmi.h 	struct list_head link;
link               55 include/linux/ipmi_smi.h 	struct list_head link;
link              161 include/linux/irqdomain.h 	struct list_head link;
link              159 include/linux/key-type.h 	struct list_head	link;		/* link in types list */
link              203 include/linux/kvm_host.h 	struct list_head link;
link              399 include/linux/kvm_host.h 	struct hlist_node link;
link              977 include/linux/kvm_host.h 	struct hlist_node link;
link               36 include/linux/kvm_irqfd.h 	struct list_head link;
link              528 include/linux/libata.h typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline);
link              529 include/linux/libata.h typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes,
link              531 include/linux/libata.h typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes);
link              670 include/linux/libata.h 	struct ata_link		*link;
link              843 include/linux/libata.h 	struct ata_link		link;		/* host default link */
link              907 include/linux/libata.h 	int  (*set_mode)(struct ata_link *link, struct ata_device **r_failed_dev);
link              931 include/linux/libata.h 	int  (*scr_read)(struct ata_link *link, unsigned int sc_reg, u32 *val);
link              932 include/linux/libata.h 	int  (*scr_write)(struct ata_link *link, unsigned int sc_reg, u32 val);
link              935 include/linux/libata.h 	int  (*set_lpm)(struct ata_link *link, enum ata_lpm_policy policy,
link             1077 include/linux/libata.h extern int sata_set_spd(struct ata_link *link);
link             1078 include/linux/libata.h extern int ata_std_prereset(struct ata_link *link, unsigned long deadline);
link             1079 include/linux/libata.h extern int ata_wait_after_reset(struct ata_link *link, unsigned long deadline,
link             1080 include/linux/libata.h 				int (*check_ready)(struct ata_link *link));
link             1081 include/linux/libata.h extern int sata_link_debounce(struct ata_link *link,
link             1083 include/linux/libata.h extern int sata_link_resume(struct ata_link *link, const unsigned long *params,
link             1085 include/linux/libata.h extern int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy,
link             1087 include/linux/libata.h extern int sata_link_hardreset(struct ata_link *link,
link             1090 include/linux/libata.h extern int sata_std_hardreset(struct ata_link *link, unsigned int *class,
link             1092 include/linux/libata.h extern void ata_std_postreset(struct ata_link *link, unsigned int *classes);
link             1126 include/linux/libata.h extern int sata_scr_valid(struct ata_link *link);
link             1127 include/linux/libata.h extern int sata_scr_read(struct ata_link *link, int reg, u32 *val);
link             1128 include/linux/libata.h extern int sata_scr_write(struct ata_link *link, int reg, u32 val);
link             1129 include/linux/libata.h extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val);
link             1130 include/linux/libata.h extern bool ata_link_online(struct ata_link *link);
link             1131 include/linux/libata.h extern bool ata_link_offline(struct ata_link *link);
link             1190 include/linux/libata.h extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);
link             1193 include/linux/libata.h extern bool sata_lpm_ignore_phy_events(struct ata_link *link);
link             1289 include/linux/libata.h extern int ata_link_abort(struct ata_link *link);
link             1299 include/linux/libata.h extern void ata_eh_analyze_ncq_error(struct ata_link *link);
link             1307 include/linux/libata.h extern int ata_link_nr_enabled(struct ata_link *link);
link             1374 include/linux/libata.h static inline bool ata_is_host_link(const struct ata_link *link)
link             1376 include/linux/libata.h 	return link == &link->ap->link || link == link->ap->slave_link;
link             1389 include/linux/libata.h static inline bool ata_is_host_link(const struct ata_link *link)
link             1395 include/linux/libata.h static inline int sata_srst_pmp(struct ata_link *link)
link             1397 include/linux/libata.h 	if (sata_pmp_supported(link->ap) && ata_is_host_link(link))
link             1399 include/linux/libata.h 	return link->pmp;
link             1409 include/linux/libata.h void ata_link_printk(const struct ata_link *link, const char *level,
link             1426 include/linux/libata.h #define ata_link_err(link, fmt, ...)				\
link             1427 include/linux/libata.h 	ata_link_printk(link, KERN_ERR, fmt, ##__VA_ARGS__)
link             1428 include/linux/libata.h #define ata_link_warn(link, fmt, ...)				\
link             1429 include/linux/libata.h 	ata_link_printk(link, KERN_WARNING, fmt, ##__VA_ARGS__)
link             1430 include/linux/libata.h #define ata_link_notice(link, fmt, ...)				\
link             1431 include/linux/libata.h 	ata_link_printk(link, KERN_NOTICE, fmt, ##__VA_ARGS__)
link             1432 include/linux/libata.h #define ata_link_info(link, fmt, ...)				\
link             1433 include/linux/libata.h 	ata_link_printk(link, KERN_INFO, fmt, ##__VA_ARGS__)
link             1434 include/linux/libata.h #define ata_link_dbg(link, fmt, ...)				\
link             1435 include/linux/libata.h 	ata_link_printk(link, KERN_DEBUG, fmt, ##__VA_ARGS__)
link             1550 include/linux/libata.h static inline int ata_link_max_devices(const struct ata_link *link)
link             1552 include/linux/libata.h 	if (ata_is_host_link(link) && link->ap->flags & ATA_FLAG_SLAVE_POSS)
link             1557 include/linux/libata.h static inline int ata_link_active(struct ata_link *link)
link             1559 include/linux/libata.h 	return ata_tag_valid(link->active_tag) || link->sactive;
link             1589 include/linux/libata.h extern struct ata_link *ata_link_next(struct ata_link *link,
link             1594 include/linux/libata.h 				       struct ata_link *link,
link             1611 include/linux/libata.h #define ata_for_each_link(link, ap, mode) \
link             1612 include/linux/libata.h 	for ((link) = ata_link_next(NULL, (ap), ATA_LITER_##mode); (link); \
link             1613 include/linux/libata.h 	     (link) = ata_link_next((link), (ap), ATA_LITER_##mode))
link             1615 include/linux/libata.h #define ata_for_each_dev(dev, link, mode) \
link             1616 include/linux/libata.h 	for ((dev) = ata_dev_next(NULL, (link), ATA_DITER_##mode); (dev); \
link             1617 include/linux/libata.h 	     (dev) = ata_dev_next((dev), (link), ATA_DITER_##mode))
link             1700 include/linux/libata.h 	tf->ctl = dev->link->ap->ctl;
link             1838 include/linux/libata.h extern int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline);
link             1854 include/linux/libata.h extern void ata_sff_queue_pio_task(struct ata_link *link, unsigned long delay);
link             1863 include/linux/libata.h extern int ata_sff_prereset(struct ata_link *link, unsigned long deadline);
link             1866 include/linux/libata.h extern int ata_sff_wait_after_reset(struct ata_link *link, unsigned int devmask,
link             1868 include/linux/libata.h extern int ata_sff_softreset(struct ata_link *link, unsigned int *classes,
link             1870 include/linux/libata.h extern int sata_sff_hardreset(struct ata_link *link, unsigned int *class,
link             1872 include/linux/libata.h extern void ata_sff_postreset(struct ata_link *link, unsigned int *classes);
link               34 include/linux/mroute_base.h 	int link;
link             1669 include/linux/nfs_xdr.h 	int	(*link)    (struct inode *, struct inode *, const struct qstr *);
link              382 include/linux/phy.h 	unsigned link:1;
link                6 include/linux/phy_fixed.h 	int link;
link               52 include/linux/phylink.h 	unsigned int link:1;
link              398 include/linux/pnp.h 	struct pnp_driver link;
link              401 include/linux/pnp.h #define	to_pnp_card_driver(drv) container_of(drv, struct pnp_card_driver, link)
link              307 include/linux/preempt.h 	struct hlist_node link;
link              319 include/linux/preempt.h 	INIT_HLIST_NODE(&notifier->link);
link              814 include/linux/qed/qed_if.h 			       struct qed_link_output	*link);
link               80 include/linux/rbtree_latch.h 	struct rb_node **link = &root->rb_node;
link               85 include/linux/rbtree_latch.h 	while (*link) {
link               86 include/linux/rbtree_latch.h 		parent = *link;
link               90 include/linux/rbtree_latch.h 			link = &parent->rb_left;
link               92 include/linux/rbtree_latch.h 			link = &parent->rb_right;
link               95 include/linux/rbtree_latch.h 	rb_link_node_rcu(node, parent, link);
link               96 include/linux/skmsg.h 	struct list_head		link;
link              317 include/linux/skmsg.h static inline void sk_psock_free_link(struct sk_psock_link *link)
link              319 include/linux/skmsg.h 	kfree(link);
link              324 include/linux/skmsg.h void sk_psock_unlink(struct sock *sk, struct sk_psock_link *link);
link              327 include/linux/skmsg.h 				   struct sk_psock_link *link)
link               89 include/linux/stm.h 	int			(*link)(struct stm_data *, unsigned int,
link              120 include/linux/stm.h 	int			(*link)(struct stm_source_data *data);
link              190 include/linux/tee_drv.h 	struct list_head link;
link               92 include/linux/thunderbolt.h static inline unsigned int tb_phy_port_from_link(unsigned int link)
link               94 include/linux/thunderbolt.h 	return (link - 1) / TB_LINKS_PER_PHY_PORT;
link              242 include/linux/thunderbolt.h 	u8 link;
link              323 include/linux/tty.h 	struct tty_struct *link;
link               12 include/linux/user-return-notifier.h 	struct hlist_node link;
link               66 include/media/media-device.h 	int (*link_notify)(struct media_link *link, u32 flags,
link              403 include/media/media-device.h #define media_device_for_each_link(link, mdev)			\
link              404 include/media/media-device.h 	list_for_each_entry(link, &(mdev)->links, graph_obj.list)
link               91 include/media/media-entity.h 		struct list_head *link;
link              219 include/media/media-entity.h 	int (*link_validate)(struct media_link *link);
link              796 include/media/media-entity.h int __media_entity_setup_link(struct media_link *link, u32 flags);
link              834 include/media/media-entity.h int media_entity_setup_link(struct media_link *link, u32 flags);
link             1054 include/media/media-entity.h void __media_remove_intf_link(struct media_link *link);
link             1063 include/media/media-entity.h void media_remove_intf_link(struct media_link *link);
link              225 include/media/v4l2-fwnode.h 			   struct v4l2_fwnode_link *link);
link              234 include/media/v4l2-fwnode.h void v4l2_fwnode_put_link(struct v4l2_fwnode_link *link);
link              123 include/media/v4l2-mc.h int v4l2_pipeline_link_notify(struct media_link *link, u32 flags,
link              152 include/media/v4l2-mc.h static inline int v4l2_pipeline_link_notify(struct media_link *link, u32 flags,
link              705 include/media/v4l2-subdev.h 	int (*link_validate)(struct v4l2_subdev *sd, struct media_link *link,
link             1042 include/media/v4l2-subdev.h 				      struct media_link *link,
link             1057 include/media/v4l2-subdev.h int v4l2_subdev_link_validate(struct media_link *link);
link               60 include/net/af_unix.h 	struct list_head	link;
link              529 include/net/bluetooth/hci_core.h 	struct hci_conn	*link;
link              299 include/net/bond_3ad.h void bond_3ad_handle_link_change(struct slave *slave, char link);
link              157 include/net/bond_alb.h void bond_alb_handle_link_change(struct bonding *bond, struct slave *slave, char link);
link              160 include/net/bonding.h 	s8     link;		/* one of BOND_LINK_XXXX */
link              382 include/net/bonding.h 		if (tmp->link == BOND_LINK_UP)
link              384 include/net/bonding.h 		else if (tmp->link == BOND_LINK_DOWN)
link              414 include/net/bonding.h 	return bond_slave_is_up(slave) && slave->link == BOND_LINK_UP &&
link              554 include/net/bonding.h 	slave->link = slave->link_new_state;
link              638 include/net/bonding.h const char *bond_slave_link_status(s8 link);
link               23 include/net/ip6_tunnel.h 	int link;		/* ifindex of underlying L2 interface */
link              279 include/net/ip_tunnels.h 				   int link, __be16 flags,
link               63 include/net/llc_conn.h 	u16		    link;		/* network layer link number */
link              412 include/net/pkt_cls.h 	struct list_head	link;
link              986 include/net/xfrm.h 	int link;		/* ifindex of underlying L2 interface */
link              420 include/scsi/libsas.h 	return &dev->sata_dev.ap->link.device[0];
link              122 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *link);
link              123 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *link);
link              126 include/sound/hdaudio_ext.h void snd_hdac_ext_link_set_stream_id(struct hdac_ext_link *link,
link              128 include/sound/hdaudio_ext.h void snd_hdac_ext_link_clear_stream_id(struct hdac_ext_link *link,
link              131 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_link_get(struct hdac_bus *bus, struct hdac_ext_link *link);
link              132 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *link);
link               67 include/sound/simple_card_utils.h 	int link; /* number of link */
link              183 include/sound/simple_card_utils.h 		struct snd_soc_dai_link *link = simple_priv_to_link(priv, i);
link              190 include/sound/simple_card_utils.h 		if (link->name)
link              191 include/sound/simple_card_utils.h 			dev_dbg(dev, "dai name = %s\n", link->name);
link              193 include/sound/simple_card_utils.h 		dev_dbg(dev, "dai format = %04x\n", link->dai_fmt);
link              145 include/sound/soc-topology.h 		struct snd_soc_dai_link *link,
link              850 include/sound/soc.h #define for_each_link_codecs(link, i, codec)				\
link              852 include/sound/soc.h 	     ((i) < link->num_codecs) && ((codec) = &link->codecs[i]);	\
link              855 include/sound/soc.h #define for_each_link_platforms(link, i, platform)			\
link              857 include/sound/soc.h 	     ((i) < link->num_platforms) &&				\
link              858 include/sound/soc.h 	     ((platform) = &link->platforms[i]);			\
link             1020 include/sound/soc.h 			    struct snd_soc_dai_link *link);
link             1022 include/sound/soc.h 			    struct snd_soc_dai_link *link);
link             1091 include/sound/soc.h #define for_each_card_prelinks(card, i, link)				\
link             1093 include/sound/soc.h 	     ((i) < (card)->num_links) && ((link) = &(card)->dai_link[i]); \
link             1100 include/sound/soc.h #define for_each_card_links(card, link)				\
link             1101 include/sound/soc.h 	list_for_each_entry(link, &(card)->dai_link_list, list)
link             1102 include/sound/soc.h #define for_each_card_links_safe(card, link, _link)			\
link             1103 include/sound/soc.h 	list_for_each_entry_safe(link, _link, &(card)->dai_link_list, list)
link              661 include/target/target_core_base.h 	struct hlist_node	link;
link              747 include/target/target_core_base.h 	struct hlist_node	link;
link               12 include/trace/events/fsi.h 	TP_PROTO(const struct fsi_master *master, int link, int id,
link               14 include/trace/events/fsi.h 	TP_ARGS(master, link, id, addr, size),
link               17 include/trace/events/fsi.h 		__field(int,	link)
link               24 include/trace/events/fsi.h 		__entry->link = link;
link               31 include/trace/events/fsi.h 		__entry->link,
link               39 include/trace/events/fsi.h 	TP_PROTO(const struct fsi_master *master, int link, int id,
link               41 include/trace/events/fsi.h 	TP_ARGS(master, link, id, addr, size, data),
link               44 include/trace/events/fsi.h 		__field(int,	link)
link               52 include/trace/events/fsi.h 		__entry->link = link;
link               61 include/trace/events/fsi.h 		__entry->link,
link               70 include/trace/events/fsi.h 	TP_PROTO(const struct fsi_master *master, int link, int id,
link               73 include/trace/events/fsi.h 	TP_ARGS(master, link, id, addr, size, write, data, ret),
link               76 include/trace/events/fsi.h 		__field(int,	link)
link               86 include/trace/events/fsi.h 		__entry->link = link;
link               98 include/trace/events/fsi.h 		__entry->link,
link              109 include/trace/events/fsi.h 	TP_PROTO(const struct fsi_master *master, int link),
link              110 include/trace/events/fsi.h 	TP_ARGS(master, link),
link              113 include/trace/events/fsi.h 		__field(int,	link)
link              117 include/trace/events/fsi.h 		__entry->link = link;
link              121 include/trace/events/fsi.h 		__entry->link
link              180 include/trace/events/libata.h 		__entry->ata_dev	= qc->dev->link->pmp + qc->dev->devno;
link              238 include/trace/events/libata.h 		__entry->ata_dev	= qc->dev->link->pmp + qc->dev->devno;
link              292 include/trace/events/libata.h 		__entry->ata_port	= dev->link->ap->print_id;
link              293 include/trace/events/libata.h 		__entry->ata_dev	= dev->link->pmp + dev->devno;
link              320 include/trace/events/libata.h 		__entry->ata_dev	= qc->dev->link->pmp + qc->dev->devno;
link              107 include/uapi/linux/if_bonding.h 	__s8 link;
link               50 include/uapi/linux/if_tunnel.h 	int			link;
link               29 include/uapi/linux/ip6_tunnel.h 	int link;		/* ifindex of underlying L2 interface */
link               41 include/uapi/linux/ip6_tunnel.h 	int link;		/* ifindex of underlying L2 interface */
link              353 kernel/bpf/inode.c 	char *link = kstrdup(target, GFP_USER | __GFP_NOWARN);
link              356 kernel/bpf/inode.c 	if (!link)
link              361 kernel/bpf/inode.c 		kfree(link);
link              366 kernel/bpf/inode.c 	inode->i_link = link;
link              378 kernel/bpf/inode.c 	.link		= simple_link,
link              101 kernel/cgroup/cgroup-v1.c 	struct cgrp_cset_link *link;
link              119 kernel/cgroup/cgroup-v1.c 	list_for_each_entry(link, &from->cset_links, cset_link)
link              120 kernel/cgroup/cgroup-v1.c 		cgroup_migrate_add_src(link->cset, to, &mgctx);
link              605 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link;
link              609 kernel/cgroup/cgroup.c 	list_for_each_entry(link, &cgrp->cset_links, cset_link)
link              610 kernel/cgroup/cgroup.c 		count += link->cset->nr_tasks;
link              840 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link;
link              844 kernel/cgroup/cgroup.c 	list_for_each_entry(link, &cset->cgrp_links, cgrp_link)
link              845 kernel/cgroup/cgroup.c 		cgroup_update_populated(link->cgrp, populated);
link              936 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link, *tmp_link;
link              955 kernel/cgroup/cgroup.c 	list_for_each_entry_safe(link, tmp_link, &cset->cgrp_links, cgrp_link) {
link              956 kernel/cgroup/cgroup.c 		list_del(&link->cset_link);
link              957 kernel/cgroup/cgroup.c 		list_del(&link->cgrp_link);
link              958 kernel/cgroup/cgroup.c 		if (cgroup_parent(link->cgrp))
link              959 kernel/cgroup/cgroup.c 			cgroup_put(link->cgrp);
link              960 kernel/cgroup/cgroup.c 		kfree(link);
link             1106 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link, *tmp_link;
link             1108 kernel/cgroup/cgroup.c 	list_for_each_entry_safe(link, tmp_link, links_to_free, cset_link) {
link             1109 kernel/cgroup/cgroup.c 		list_del(&link->cset_link);
link             1110 kernel/cgroup/cgroup.c 		kfree(link);
link             1124 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link;
link             1130 kernel/cgroup/cgroup.c 		link = kzalloc(sizeof(*link), GFP_KERNEL);
link             1131 kernel/cgroup/cgroup.c 		if (!link) {
link             1135 kernel/cgroup/cgroup.c 		list_add(&link->cset_link, tmp_links);
link             1149 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link;
link             1156 kernel/cgroup/cgroup.c 	link = list_first_entry(tmp_links, struct cgrp_cset_link, cset_link);
link             1157 kernel/cgroup/cgroup.c 	link->cset = cset;
link             1158 kernel/cgroup/cgroup.c 	link->cgrp = cgrp;
link             1164 kernel/cgroup/cgroup.c 	list_move_tail(&link->cset_link, &cgrp->cset_links);
link             1165 kernel/cgroup/cgroup.c 	list_add_tail(&link->cgrp_link, &cset->cgrp_links);
link             1185 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link;
link             1231 kernel/cgroup/cgroup.c 	list_for_each_entry(link, &old_cset->cgrp_links, cgrp_link) {
link             1232 kernel/cgroup/cgroup.c 		struct cgroup *c = link->cgrp;
link             1321 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link, *tmp_link;
link             1339 kernel/cgroup/cgroup.c 	list_for_each_entry_safe(link, tmp_link, &cgrp->cset_links, cset_link) {
link             1340 kernel/cgroup/cgroup.c 		list_del(&link->cset_link);
link             1341 kernel/cgroup/cgroup.c 		list_del(&link->cgrp_link);
link             1342 kernel/cgroup/cgroup.c 		kfree(link);
link             1378 kernel/cgroup/cgroup.c 		struct cgrp_cset_link *link;
link             1380 kernel/cgroup/cgroup.c 		list_for_each_entry(link, &cset->cgrp_links, cgrp_link) {
link             1381 kernel/cgroup/cgroup.c 			struct cgroup *c = link->cgrp;
link             1409 kernel/cgroup/cgroup.c 		struct cgrp_cset_link *link;
link             1411 kernel/cgroup/cgroup.c 		list_for_each_entry(link, &cset->cgrp_links, cgrp_link) {
link             1412 kernel/cgroup/cgroup.c 			struct cgroup *c = link->cgrp;
link             2947 kernel/cgroup/cgroup.c 		struct cgrp_cset_link *link;
link             2949 kernel/cgroup/cgroup.c 		list_for_each_entry(link, &dsct->cset_links, cset_link)
link             2950 kernel/cgroup/cgroup.c 			cgroup_migrate_add_src(link->cset, dsct, &mgctx);
link             4394 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link;
link             4423 kernel/cgroup/cgroup.c 		link = list_entry(l, struct cgrp_cset_link, cset_link);
link             4424 kernel/cgroup/cgroup.c 		cset = link->cset;
link             5541 kernel/cgroup/cgroup.c 	struct cgrp_cset_link *link;
link             5570 kernel/cgroup/cgroup.c 	list_for_each_entry(link, &cgrp->cset_links, cset_link)
link             5571 kernel/cgroup/cgroup.c 		link->cset->dead = true;
link               89 kernel/cgroup/debug.c 	struct cgrp_cset_link *link;
link              100 kernel/cgroup/debug.c 	list_for_each_entry(link, &cset->cgrp_links, cgrp_link) {
link              101 kernel/cgroup/debug.c 		struct cgroup *c = link->cgrp;
link              117 kernel/cgroup/debug.c 	struct cgrp_cset_link *link;
link              122 kernel/cgroup/debug.c 	list_for_each_entry(link, &css->cgroup->cset_links, cset_link) {
link              123 kernel/cgroup/debug.c 		struct css_set *cset = link->cset;
link              227 kernel/irq/irqdomain.c 	list_add(&domain->link, &irq_domain_list);
link              250 kernel/irq/irqdomain.c 	list_del(&domain->link);
link              401 kernel/irq/irqdomain.c 	list_for_each_entry(h, &irq_domain_list, link) {
link              434 kernel/irq/irqdomain.c 	list_for_each_entry(h, &irq_domain_list, link) {
link             1796 kernel/irq/irqdomain.c 	list_for_each_entry(d, &irq_domain_list, link)
link              370 kernel/locking/locktorture.c 		struct list_head link;
link              376 kernel/locking/locktorture.c 	list_add(&locks[0].link, &list);
link              379 kernel/locking/locktorture.c 	list_add(&locks[1].link, &list);
link              382 kernel/locking/locktorture.c 	list_add(&locks[2].link, &list);
link              386 kernel/locking/locktorture.c 	list_for_each_entry(ll, &list, link) {
link              394 kernel/locking/locktorture.c 		list_for_each_entry_continue_reverse(ln, &list, link)
link              401 kernel/locking/locktorture.c 		list_move(&ll->link, &list);
link              275 kernel/locking/rtmutex.c 	struct rb_node **link = &lock->waiters.rb_root.rb_node;
link              280 kernel/locking/rtmutex.c 	while (*link) {
link              281 kernel/locking/rtmutex.c 		parent = *link;
link              284 kernel/locking/rtmutex.c 			link = &parent->rb_left;
link              286 kernel/locking/rtmutex.c 			link = &parent->rb_right;
link              291 kernel/locking/rtmutex.c 	rb_link_node(&waiter->tree_entry, parent, link);
link              308 kernel/locking/rtmutex.c 	struct rb_node **link = &task->pi_waiters.rb_root.rb_node;
link              313 kernel/locking/rtmutex.c 	while (*link) {
link              314 kernel/locking/rtmutex.c 		parent = *link;
link              317 kernel/locking/rtmutex.c 			link = &parent->rb_left;
link              319 kernel/locking/rtmutex.c 			link = &parent->rb_right;
link              324 kernel/locking/rtmutex.c 	rb_link_node(&waiter->pi_tree_entry, parent, link);
link              433 kernel/locking/test-ww_mutex.c 	struct list_head link;
link              456 kernel/locking/test-ww_mutex.c 		list_add(&ll->link, &locks);
link              464 kernel/locking/test-ww_mutex.c 		list_for_each_entry(ll, &locks, link) {
link              470 kernel/locking/test-ww_mutex.c 			list_for_each_entry_continue_reverse(ln, &locks, link)
link              480 kernel/locking/test-ww_mutex.c 			list_move(&ll->link, &locks); /* restarts iteration */
link              484 kernel/locking/test-ww_mutex.c 		list_for_each_entry(ll, &locks, link)
link              491 kernel/locking/test-ww_mutex.c 	list_for_each_entry_safe(ll, ln, &locks, link)
link             3004 kernel/sched/core.c 	hlist_add_head(&notifier->link, &current->preempt_notifiers);
link             3016 kernel/sched/core.c 	hlist_del(&notifier->link);
link             3024 kernel/sched/core.c 	hlist_for_each_entry(notifier, &curr->preempt_notifiers, link)
link             3040 kernel/sched/core.c 	hlist_for_each_entry(notifier, &curr->preempt_notifiers, link)
link              448 kernel/sched/deadline.c 	struct rb_node **link = &dl_rq->pushable_dl_tasks_root.rb_root.rb_node;
link              455 kernel/sched/deadline.c 	while (*link) {
link              456 kernel/sched/deadline.c 		parent = *link;
link              460 kernel/sched/deadline.c 			link = &parent->rb_left;
link              462 kernel/sched/deadline.c 			link = &parent->rb_right;
link              470 kernel/sched/deadline.c 	rb_link_node(&p->pushable_dl_tasks, parent, link);
link             1405 kernel/sched/deadline.c 	struct rb_node **link = &dl_rq->root.rb_root.rb_node;
link             1412 kernel/sched/deadline.c 	while (*link) {
link             1413 kernel/sched/deadline.c 		parent = *link;
link             1416 kernel/sched/deadline.c 			link = &parent->rb_left;
link             1418 kernel/sched/deadline.c 			link = &parent->rb_right;
link             1423 kernel/sched/deadline.c 	rb_link_node(&dl_se->rb_node, parent, link);
link              567 kernel/sched/fair.c 	struct rb_node **link = &cfs_rq->tasks_timeline.rb_root.rb_node;
link              575 kernel/sched/fair.c 	while (*link) {
link              576 kernel/sched/fair.c 		parent = *link;
link              583 kernel/sched/fair.c 			link = &parent->rb_left;
link              585 kernel/sched/fair.c 			link = &parent->rb_right;
link              590 kernel/sched/fair.c 	rb_link_node(&se->run_node, parent, link);
link             1338 kernel/trace/trace.h 	struct list_head	link;
link               79 kernel/trace/trace_events.c 	list_for_each_entry(field, head, link) {
link              127 kernel/trace/trace_events.c 	list_add(&field->link, head);
link              194 kernel/trace/trace_events.c 	list_for_each_entry_safe(field, next, head, link) {
link              195 kernel/trace/trace_events.c 		list_del(&field->link);
link              214 kernel/trace/trace_events.c 	tail = list_first_entry(head, struct ftrace_event_field, link);
link             1238 kernel/trace/trace_events.c 	field = list_entry(v, struct ftrace_event_field, link);
link             1214 kernel/trace/trace_kprobe.c 	struct event_file_link *link;
link             1216 kernel/trace/trace_kprobe.c 	trace_probe_for_each_link_rcu(link, &tk->tp)
link             1217 kernel/trace/trace_kprobe.c 		__kprobe_trace_func(tk, regs, link->file);
link             1264 kernel/trace/trace_kprobe.c 	struct event_file_link *link;
link             1266 kernel/trace/trace_kprobe.c 	trace_probe_for_each_link_rcu(link, &tk->tp)
link             1267 kernel/trace/trace_kprobe.c 		__kretprobe_trace_func(tk, ri, regs, link->file);
link             1050 kernel/trace/trace_probe.c 	struct event_file_link *link;
link             1052 kernel/trace/trace_probe.c 	link = kmalloc(sizeof(*link), GFP_KERNEL);
link             1053 kernel/trace/trace_probe.c 	if (!link)
link             1056 kernel/trace/trace_probe.c 	link->file = file;
link             1057 kernel/trace/trace_probe.c 	INIT_LIST_HEAD(&link->list);
link             1058 kernel/trace/trace_probe.c 	list_add_tail_rcu(&link->list, &tp->event->files);
link             1066 kernel/trace/trace_probe.c 	struct event_file_link *link;
link             1068 kernel/trace/trace_probe.c 	trace_probe_for_each_link(link, tp) {
link             1069 kernel/trace/trace_probe.c 		if (link->file == file)
link             1070 kernel/trace/trace_probe.c 			return link;
link             1079 kernel/trace/trace_probe.c 	struct event_file_link *link;
link             1081 kernel/trace/trace_probe.c 	link = trace_probe_get_file_link(tp, file);
link             1082 kernel/trace/trace_probe.c 	if (!link)
link             1085 kernel/trace/trace_probe.c 	list_del_rcu(&link->list);
link             1087 kernel/trace/trace_probe.c 	kfree(link);
link              974 kernel/trace/trace_uprobe.c 	struct event_file_link *link;
link              980 kernel/trace/trace_uprobe.c 	trace_probe_for_each_link_rcu(link, &tu->tp)
link              981 kernel/trace/trace_uprobe.c 		__uprobe_trace_func(tu, 0, regs, ucb, dsize, link->file);
link              991 kernel/trace/trace_uprobe.c 	struct event_file_link *link;
link              994 kernel/trace/trace_uprobe.c 	trace_probe_for_each_link_rcu(link, &tu->tp)
link              995 kernel/trace/trace_uprobe.c 		__uprobe_trace_func(tu, func, regs, ucb, dsize, link->file);
link               18 kernel/user-return-notifier.c 	hlist_add_head(&urn->link, this_cpu_ptr(&return_notifier_list));
link               28 kernel/user-return-notifier.c 	hlist_del(&urn->link);
link               42 kernel/user-return-notifier.c 	hlist_for_each_entry_safe(urn, tmp2, head, link)
link               46 lib/dynamic_debug.c 	struct list_head link;
link              151 lib/dynamic_debug.c 	list_for_each_entry(dt, &ddebug_tables, link) {
link              735 lib/dynamic_debug.c 				 struct ddebug_table, link);
link              753 lib/dynamic_debug.c 		if (list_is_last(&iter->table->link, &ddebug_tables)) {
link              757 lib/dynamic_debug.c 		iter->table = list_entry(iter->table->link.next,
link              758 lib/dynamic_debug.c 					 struct ddebug_table, link);
link              904 lib/dynamic_debug.c 	list_add_tail(&dt->link, &ddebug_tables);
link              953 lib/dynamic_debug.c 	list_del_init(&dt->link);
link              969 lib/dynamic_debug.c 	list_for_each_entry_safe(dt, nextdt, &ddebug_tables, link) {
link              986 lib/dynamic_debug.c 						      link);
link              243 mm/hugetlb.c   	struct list_head link;
link              270 mm/hugetlb.c   	list_for_each_entry(rg, head, link)
link              280 mm/hugetlb.c   	if (&rg->link == head || t < rg->from) {
link              285 mm/hugetlb.c   					link);
link              286 mm/hugetlb.c   		list_del(&nrg->link);
link              290 mm/hugetlb.c   		list_add(&nrg->link, rg->link.prev);
link              302 mm/hugetlb.c   	list_for_each_entry_safe(rg, trg, rg->link.prev, link) {
link              303 mm/hugetlb.c   		if (&rg->link == head)
link              319 mm/hugetlb.c   			list_del(&rg->link);
link              388 mm/hugetlb.c   		list_add(&trg->link, &resv->region_cache);
link              394 mm/hugetlb.c   	list_for_each_entry(rg, head, link)
link              401 mm/hugetlb.c   	if (&rg->link == head || t < rg->from) {
link              411 mm/hugetlb.c   			INIT_LIST_HEAD(&nrg->link);
link              415 mm/hugetlb.c   		list_add(&nrg->link, rg->link.prev);
link              426 mm/hugetlb.c   	list_for_each_entry(rg, rg->link.prev, link) {
link              427 mm/hugetlb.c   		if (&rg->link == head)
link              494 mm/hugetlb.c   	list_for_each_entry_safe(rg, trg, head, link) {
link              517 mm/hugetlb.c   							link);
link              518 mm/hugetlb.c   				list_del(&nrg->link);
link              535 mm/hugetlb.c   			INIT_LIST_HEAD(&nrg->link);
link              540 mm/hugetlb.c   			list_add(&nrg->link, &rg->link);
link              547 mm/hugetlb.c   			list_del(&rg->link);
link              600 mm/hugetlb.c   	list_for_each_entry(rg, head, link) {
link              717 mm/hugetlb.c   	list_add(&rg->link, &resv_map->region_cache);
link              733 mm/hugetlb.c   	list_for_each_entry_safe(rg, trg, head, link) {
link              734 mm/hugetlb.c   		list_del(&rg->link);
link               32 mm/interval_tree.c 	struct rb_node **link;
link               40 mm/interval_tree.c 		link = &prev->shared.rb.rb_right;
link               52 mm/interval_tree.c 		link = &parent->shared.rb.rb_left;
link               56 mm/interval_tree.c 	rb_link_node(&node->shared.rb, &parent->shared.rb, link);
link              575 mm/kmemleak.c  	struct rb_node **link, *rb_parent;
link              625 mm/kmemleak.c  	link = &object_tree_root.rb_node;
link              627 mm/kmemleak.c  	while (*link) {
link              628 mm/kmemleak.c  		rb_parent = *link;
link              631 mm/kmemleak.c  			link = &parent->rb_node.rb_left;
link              633 mm/kmemleak.c  			link = &parent->rb_node.rb_right;
link              647 mm/kmemleak.c  	rb_link_node(&object->rb_node, rb_parent, link);
link              121 mm/ksm.c       	struct hlist_node link;
link              428 mm/ksm.c       	hash_for_each_possible(mm_slots_hash, slot, link, (unsigned long)mm)
link              439 mm/ksm.c       	hash_add(mm_slots_hash, &mm_slot->link, (unsigned long)mm);
link              998 mm/ksm.c       			hash_del(&mm_slot->link);
link             2354 mm/ksm.c       		hash_del(&slot->link);
link             2547 mm/ksm.c       			hash_del(&mm_slot->link);
link             3818 mm/shmem.c     	.link		= shmem_link,
link             2314 mm/swapfile.c  	struct rb_node **link = &sis->swap_extent_root.rb_node, *parent = NULL;
link             2322 mm/swapfile.c  	while (*link) {
link             2323 mm/swapfile.c  		parent = *link;
link             2324 mm/swapfile.c  		link = &parent->rb_right;
link             2345 mm/swapfile.c  	rb_link_node(&new_se->rb_node, parent, link);
link              443 mm/vmalloc.c   	struct rb_node **link;
link              446 mm/vmalloc.c   		link = &root->rb_node;
link              447 mm/vmalloc.c   		if (unlikely(!*link)) {
link              449 mm/vmalloc.c   			return link;
link              452 mm/vmalloc.c   		link = &from;
link              461 mm/vmalloc.c   		tmp_va = rb_entry(*link, struct vmap_area, rb_node);
link              470 mm/vmalloc.c   			link = &(*link)->rb_left;
link              473 mm/vmalloc.c   			link = &(*link)->rb_right;
link              476 mm/vmalloc.c   	} while (*link);
link              479 mm/vmalloc.c   	return link;
link              483 mm/vmalloc.c   get_va_next_sibling(struct rb_node *parent, struct rb_node **link)
link              497 mm/vmalloc.c   	return (&parent->rb_right == link ? list->next : list);
link              502 mm/vmalloc.c   	struct rb_node *parent, struct rb_node **link, struct list_head *head)
link              510 mm/vmalloc.c   		if (&parent->rb_right != link)
link              515 mm/vmalloc.c   	rb_link_node(&va->rb_node, parent, link);
link              656 mm/vmalloc.c   	struct rb_node **link;
link              659 mm/vmalloc.c   	link = find_va_links(va, root, NULL, &parent);
link              660 mm/vmalloc.c   	link_va(va, root, parent, link, head);
link              668 mm/vmalloc.c   	struct rb_node **link;
link              672 mm/vmalloc.c   		link = find_va_links(va, NULL, from, &parent);
link              674 mm/vmalloc.c   		link = find_va_links(va, root, NULL, &parent);
link              676 mm/vmalloc.c   	link_va(va, root, parent, link, head);
link              692 mm/vmalloc.c   	struct rb_node **link;
link              700 mm/vmalloc.c   	link = find_va_links(va, root, NULL, &parent);
link              705 mm/vmalloc.c   	next = get_va_next_sibling(parent, link);
link              759 mm/vmalloc.c   		link_va(va, root, parent, link, head);
link              991 mm/zsmalloc.c  		struct link_free *link;
link              997 mm/zsmalloc.c  		link = (struct link_free *)vaddr + off / sizeof(*link);
link             1000 mm/zsmalloc.c  			link->next = freeobj++ << OBJ_TAG_BITS;
link             1001 mm/zsmalloc.c  			link += class->size / sizeof(*link);
link             1011 mm/zsmalloc.c  			link->next = freeobj++ << OBJ_TAG_BITS;
link             1017 mm/zsmalloc.c  			link->next = -1UL << OBJ_TAG_BITS;
link             1412 mm/zsmalloc.c  	struct link_free *link;
link             1430 mm/zsmalloc.c  	link = (struct link_free *)vaddr + m_offset / sizeof(*link);
link             1431 mm/zsmalloc.c  	set_freeobj(zspage, link->next >> OBJ_TAG_BITS);
link             1434 mm/zsmalloc.c  		link->handle = handle;
link             1517 mm/zsmalloc.c  	struct link_free *link;
link             1532 mm/zsmalloc.c  	link = (struct link_free *)(vaddr + f_offset);
link             1533 mm/zsmalloc.c  	link->next = get_freeobj(zspage) << OBJ_TAG_BITS;
link              291 mm/zswap.c     	struct rb_node **link = &root->rb_node, *parent = NULL;
link              294 mm/zswap.c     	while (*link) {
link              295 mm/zswap.c     		parent = *link;
link              298 mm/zswap.c     			link = &(*link)->rb_left;
link              300 mm/zswap.c     			link = &(*link)->rb_right;
link              306 mm/zswap.c     	rb_link_node(&entry->rbnode, parent, link);
link              297 net/bluetooth/hci_conn.c 		if (lmp_esco_capable(conn->link)) {
link              378 net/bluetooth/hci_conn.c 	struct hci_conn *sco = conn->link;
link              583 net/bluetooth/hci_conn.c 		struct hci_conn *sco = conn->link;
link              585 net/bluetooth/hci_conn.c 			sco->link = NULL;
link              597 net/bluetooth/hci_conn.c 		struct hci_conn *acl = conn->link;
link              599 net/bluetooth/hci_conn.c 			acl->link = NULL;
link             1248 net/bluetooth/hci_conn.c 	acl->link = sco;
link             1249 net/bluetooth/hci_conn.c 	sco->link = acl;
link             1832 net/bluetooth/hci_event.c 		sco = acl->link;
link             2124 net/bluetooth/hci_event.c 		sco = acl->link;
link             4224 net/bluetooth/hci_event.c 			if (hci_setup_sync(conn, conn->link->handle))
link              177 net/core/rtnetlink.c 	struct rtnl_link *link, *old;
link              198 net/core/rtnetlink.c 		link = kmemdup(old, sizeof(*old), GFP_KERNEL);
link              199 net/core/rtnetlink.c 		if (!link)
link              202 net/core/rtnetlink.c 		link = kzalloc(sizeof(*link), GFP_KERNEL);
link              203 net/core/rtnetlink.c 		if (!link)
link              207 net/core/rtnetlink.c 	WARN_ON(link->owner && link->owner != owner);
link              208 net/core/rtnetlink.c 	link->owner = owner;
link              210 net/core/rtnetlink.c 	WARN_ON(doit && link->doit && link->doit != doit);
link              212 net/core/rtnetlink.c 		link->doit = doit;
link              213 net/core/rtnetlink.c 	WARN_ON(dumpit && link->dumpit && link->dumpit != dumpit);
link              215 net/core/rtnetlink.c 		link->dumpit = dumpit;
link              217 net/core/rtnetlink.c 	link->flags |= flags;
link              220 net/core/rtnetlink.c 	rcu_assign_pointer(tab[msgindex], link);
link              289 net/core/rtnetlink.c 	struct rtnl_link **tab, *link;
link              302 net/core/rtnetlink.c 	link = tab[msgindex];
link              306 net/core/rtnetlink.c 	kfree_rcu(link, rcu);
link              321 net/core/rtnetlink.c 	struct rtnl_link **tab, *link;
link              334 net/core/rtnetlink.c 		link = tab[msgindex];
link              335 net/core/rtnetlink.c 		if (!link)
link              339 net/core/rtnetlink.c 		kfree_rcu(link, rcu);
link             3454 net/core/rtnetlink.c 		struct rtnl_link *link;
link             3467 net/core/rtnetlink.c 		link = tab[type];
link             3468 net/core/rtnetlink.c 		if (!link)
link             3471 net/core/rtnetlink.c 		dumpit = link->dumpit;
link             5159 net/core/rtnetlink.c 	struct rtnl_link *link;
link             5190 net/core/rtnetlink.c 		link = rtnl_get_link(family, type);
link             5191 net/core/rtnetlink.c 		if (!link || !link->dumpit) {
link             5193 net/core/rtnetlink.c 			link = rtnl_get_link(family, type);
link             5194 net/core/rtnetlink.c 			if (!link || !link->dumpit)
link             5197 net/core/rtnetlink.c 		owner = link->owner;
link             5198 net/core/rtnetlink.c 		dumpit = link->dumpit;
link             5226 net/core/rtnetlink.c 	link = rtnl_get_link(family, type);
link             5227 net/core/rtnetlink.c 	if (!link || !link->doit) {
link             5229 net/core/rtnetlink.c 		link = rtnl_get_link(PF_UNSPEC, type);
link             5230 net/core/rtnetlink.c 		if (!link || !link->doit)
link             5234 net/core/rtnetlink.c 	owner = link->owner;
link             5240 net/core/rtnetlink.c 	flags = link->flags;
link             5242 net/core/rtnetlink.c 		doit = link->doit;
link             5252 net/core/rtnetlink.c 	link = rtnl_get_link(family, type);
link             5253 net/core/rtnetlink.c 	if (link && link->doit)
link             5254 net/core/rtnetlink.c 		err = link->doit(skb, nlh, extack);
link              505 net/core/skmsg.c 	INIT_LIST_HEAD(&psock->link);
link              524 net/core/skmsg.c 	struct sk_psock_link *link;
link              527 net/core/skmsg.c 	link = list_first_entry_or_null(&psock->link, struct sk_psock_link,
link              529 net/core/skmsg.c 	if (link)
link              530 net/core/skmsg.c 		list_del(&link->list);
link              532 net/core/skmsg.c 	return link;
link              554 net/core/skmsg.c 	struct sk_psock_link *link, *tmp;
link              556 net/core/skmsg.c 	list_for_each_entry_safe(link, tmp, &psock->link, list) {
link              557 net/core/skmsg.c 		list_del(&link->list);
link              558 net/core/skmsg.c 		sk_psock_free_link(link);
link               96 net/core/sock_map.c 			      struct sk_psock_link *link,
link               99 net/core/sock_map.c 	link->link_raw = link_raw;
link              100 net/core/sock_map.c 	link->map = map;
link              102 net/core/sock_map.c 	list_add_tail(&link->list, &psock->link);
link              109 net/core/sock_map.c 	struct sk_psock_link *link, *tmp;
link              113 net/core/sock_map.c 	list_for_each_entry_safe(link, tmp, &psock->link, list) {
link              114 net/core/sock_map.c 		if (link->link_raw == link_raw) {
link              115 net/core/sock_map.c 			struct bpf_map *map = link->map;
link              120 net/core/sock_map.c 			list_del(&link->list);
link              121 net/core/sock_map.c 			sk_psock_free_link(link);
link              344 net/core/sock_map.c 	struct sk_psock_link *link;
link              357 net/core/sock_map.c 	link = sk_psock_init_link();
link              358 net/core/sock_map.c 	if (!link)
link              378 net/core/sock_map.c 	sock_map_add_link(psock, link, map, &stab->sks[idx]);
link              389 net/core/sock_map.c 	sk_psock_free_link(link);
link              671 net/core/sock_map.c 	struct sk_psock_link *link;
link              681 net/core/sock_map.c 	link = sk_psock_init_link();
link              682 net/core/sock_map.c 	if (!link)
link              711 net/core/sock_map.c 	sock_map_add_link(psock, link, map, elem_new);
link              727 net/core/sock_map.c 	sk_psock_free_link(link);
link             1018 net/core/sock_map.c void sk_psock_unlink(struct sock *sk, struct sk_psock_link *link)
link             1020 net/core/sock_map.c 	switch (link->map->map_type) {
link             1022 net/core/sock_map.c 		return sock_map_delete_from_link(link->map, sk,
link             1023 net/core/sock_map.c 						 link->link_raw);
link             1025 net/core/sock_map.c 		return sock_hash_delete_from_link(link->map, sk,
link             1026 net/core/sock_map.c 						  link->link_raw);
link             1532 net/decnet/af_decnet.c 	struct linkinfo_dn link;
link             1569 net/decnet/af_decnet.c 		memset(&link, 0, sizeof(link));
link             1573 net/decnet/af_decnet.c 			link.idn_linkstate = LL_CONNECTING;
link             1576 net/decnet/af_decnet.c 			link.idn_linkstate = LL_DISCONNECTING;
link             1579 net/decnet/af_decnet.c 			link.idn_linkstate = LL_RUNNING;
link             1582 net/decnet/af_decnet.c 			link.idn_linkstate = LL_INACTIVE;
link             1585 net/decnet/af_decnet.c 		link.idn_segsize = scp->segsize_rem;
link             1586 net/decnet/af_decnet.c 		r_data = &link;
link              661 net/dsa/dsa2.c 	bool link = of_property_read_bool(dn, "link");
link              675 net/dsa/dsa2.c 	if (link)
link               34 net/hsr/hsr_netlink.c 	struct net_device *link[2];
link               45 net/hsr/hsr_netlink.c 	link[0] = __dev_get_by_index(src_net,
link               51 net/hsr/hsr_netlink.c 	link[1] = __dev_get_by_index(src_net,
link               54 net/hsr/hsr_netlink.c 	if (!link[0] || !link[1])
link               56 net/hsr/hsr_netlink.c 	if (link[0] == link[1])
link               75 net/hsr/hsr_netlink.c 	return hsr_dev_finalize(dev, link, multicast_spec, hsr_version);
link              867 net/ipv4/ip_gre.c 					 t->parms.link);
link             1104 net/ipv4/ip_gre.c 		parms->link = nla_get_u32(data[IFLA_GRE_LINK]);
link             1473 net/ipv4/ip_gre.c 	if (nla_put_u32(skb, IFLA_GRE_LINK, p->link) ||
link               84 net/ipv4/ip_tunnel.c 				   int link, __be16 flags,
link              104 net/ipv4/ip_tunnel.c 		if (t->parms.link == link)
link              119 net/ipv4/ip_tunnel.c 		if (t->parms.link == link)
link              139 net/ipv4/ip_tunnel.c 		if (t->parms.link == link)
link              152 net/ipv4/ip_tunnel.c 		if (t->parms.link == link)
link              215 net/ipv4/ip_tunnel.c 	int link = parms->link;
link              222 net/ipv4/ip_tunnel.c 		    link == t->parms.link &&
link              295 net/ipv4/ip_tunnel.c 				    RT_TOS(iph->tos), tunnel->parms.link,
link              309 net/ipv4/ip_tunnel.c 	if (!tdev && tunnel->parms.link)
link              310 net/ipv4/ip_tunnel.c 		tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link);
link              732 net/ipv4/ip_tunnel.c 			    tunnel->parms.o_key, RT_TOS(tos), tunnel->parms.link,
link              850 net/ipv4/ip_tunnel.c 	if (t->parms.link != p->link || t->fwmark != fwmark) {
link              853 net/ipv4/ip_tunnel.c 		t->parms.link = p->link;
link             1027 net/ipv4/ip_tunnel.c 	return tunnel->parms.link;
link              556 net/ipv4/ip_vti.c 		parms->link = nla_get_u32(data[IFLA_VTI_LINK]);
link              620 net/ipv4/ip_vti.c 	if (nla_put_u32(skb, IFLA_VTI_LINK, p->link) ||
link              173 net/ipv4/ipip.c 		ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol);
link              178 net/ipv4/ipip.c 		ipv4_redirect(skb, net, t->parms.link, iph->protocol);
link              430 net/ipv4/ipip.c 		parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]);
link              579 net/ipv4/ipip.c 	if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) ||
link             1868 net/ipv4/ipmr.c 					   RT_TOS(iph->tos), vif->link);
link             1876 net/ipv4/ipmr.c 					   RT_TOS(iph->tos), vif->link);
link               25 net/ipv4/ipmr_base.c 		v->link = dev_get_iflink(dev);
link               27 net/ipv4/ipmr_base.c 		v->link = dev->ifindex;
link              535 net/ipv4/tcp_bpf.c 	struct sk_psock_link *link;
link              537 net/ipv4/tcp_bpf.c 	while ((link = sk_psock_link_pop(psock))) {
link              538 net/ipv4/tcp_bpf.c 		sk_psock_unlink(sk, link);
link              539 net/ipv4/tcp_bpf.c 		sk_psock_free_link(link);
link              120 net/ipv6/ip6_gre.c 	int link = dev->ifindex;
link              143 net/ipv6/ip6_gre.c 		if (t->parms.link != link)
link              167 net/ipv6/ip6_gre.c 		if (t->parms.link != link)
link              193 net/ipv6/ip6_gre.c 		if (t->parms.link != link)
link              216 net/ipv6/ip6_gre.c 		if (t->parms.link != link)
link              327 net/ipv6/ip6_gre.c 	int link = parms->link;
link              338 net/ipv6/ip6_gre.c 		    link == t->parms.link &&
link             1083 net/ipv6/ip6_gre.c 	fl6->flowi6_oif = p->link;
link             1114 net/ipv6/ip6_gre.c 						 p->link, NULL, strict);
link             1165 net/ipv6/ip6_gre.c 	t->parms.link = p->link;
link             1196 net/ipv6/ip6_gre.c 	p->link = u->link;
link             1214 net/ipv6/ip6_gre.c 	u->link = p->link;
link             1753 net/ipv6/ip6_gre.c 		parms->link = nla_get_u32(data[IFLA_GRE_LINK]);
link             2128 net/ipv6/ip6_gre.c 	if (nla_put_u32(skb, IFLA_GRE_LINK, p->link) ||
link              731 net/ipv6/ip6_tunnel.c 		   (!((ltype|rtype) & IPV6_ADDR_LINKLOCAL) || p->link)) {
link              755 net/ipv6/ip6_tunnel.c 		if (p->link)
link              756 net/ipv6/ip6_tunnel.c 			ldev = dev_get_by_index_rcu(net, p->link);
link              991 net/ipv6/ip6_tunnel.c 		if (p->link)
link              992 net/ipv6/ip6_tunnel.c 			ldev = dev_get_by_index_rcu(net, p->link);
link             1433 net/ipv6/ip6_tunnel.c 	fl6->flowi6_oif = p->link;
link             1459 net/ipv6/ip6_tunnel.c 						 p->link, NULL, strict);
link             1497 net/ipv6/ip6_tunnel.c 	t->parms.link = p->link;
link             1536 net/ipv6/ip6_tunnel.c 	p->link = u->link;
link             1550 net/ipv6/ip6_tunnel.c 	u->link = p->link;
link             1716 net/ipv6/ip6_tunnel.c 	return t->parms.link;
link             1931 net/ipv6/ip6_tunnel.c 		parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]);
link             2111 net/ipv6/ip6_tunnel.c 	if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) ||
link              674 net/ipv6/ip6_vti.c 						 p->link, NULL, strict);
link              681 net/ipv6/ip6_vti.c 	if (!tdev && p->link)
link              682 net/ipv6/ip6_vti.c 		tdev = __dev_get_by_index(t->net, p->link);
link              707 net/ipv6/ip6_vti.c 	t->parms.link = p->link;
link              737 net/ipv6/ip6_vti.c 	p->link = u->link;
link              750 net/ipv6/ip6_vti.c 	u->link = p->link;
link              976 net/ipv6/ip6_vti.c 		parms->link = nla_get_u32(data[IFLA_VTI_LINK]);
link             1069 net/ipv6/ip6_vti.c 	if (nla_put_u32(skb, IFLA_VTI_LINK, parm->link) ||
link             2022 net/ipv6/ip6mr.c 		.flowi6_oif = vif->link,
link              103 net/ipv6/sit.c 		    (!dev || !t->parms.link || ifindex == t->parms.link ||
link              104 net/ipv6/sit.c 		     sifindex == t->parms.link) &&
link              110 net/ipv6/sit.c 		    (!dev || !t->parms.link || ifindex == t->parms.link ||
link              111 net/ipv6/sit.c 		     sifindex == t->parms.link) &&
link              117 net/ipv6/sit.c 		    (!dev || !t->parms.link || ifindex == t->parms.link ||
link              118 net/ipv6/sit.c 		     sifindex == t->parms.link) &&
link              239 net/ipv6/sit.c 		    parms->link == t->parms.link) {
link              533 net/ipv6/sit.c 				 t->parms.link, iph->protocol);
link              538 net/ipv6/sit.c 		ipv4_redirect(skb, dev_net(skb->dev), t->parms.link,
link              899 net/ipv6/sit.c 	flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark,
link             1076 net/ipv6/sit.c 							  tunnel->parms.link);
link             1085 net/ipv6/sit.c 	if (!tdev && tunnel->parms.link)
link             1086 net/ipv6/sit.c 		tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link);
link             1114 net/ipv6/sit.c 	if (t->parms.link != p->link || t->fwmark != fwmark) {
link             1115 net/ipv6/sit.c 		t->parms.link = p->link;
link             1463 net/ipv6/sit.c 		parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]);
link             1704 net/ipv6/sit.c 	if (nla_put_u32(skb, IFLA_IPTUN_LINK, parm->link) ||
link              480 net/llc/af_llc.c 	llc->link   = llc_ui_next_link_no(llc->sap->laddr.lsap);
link              704 net/llc/af_llc.c 	newllc->link = llc_ui_next_link_no(newllc->laddr.lsap);
link              155 net/llc/llc_proc.c 		   llc->link);
link              215 net/ncsi/internal.h 	struct list_head            link;
link               80 net/ncsi/ncsi-aen.c 	chained = !list_empty(&nc->link);
link               97 net/ncsi/ncsi-aen.c 			list_add_tail_rcu(&nc->link, &ndp->channel_queue);
link              152 net/ncsi/ncsi-aen.c 	if (!list_empty(&nc->link) ||
link              166 net/ncsi/ncsi-aen.c 	list_add_tail_rcu(&nc->link, &ndp->channel_queue);
link               67 net/ncsi/ncsi-manage.c 			if (!list_empty(&nc->link) ||
link              101 net/ncsi/ncsi-manage.c 	chained = !list_empty(&nc->link);
link              147 net/ncsi/ncsi-manage.c 		list_add_tail_rcu(&nc->link, &ndp->channel_queue);
link              216 net/ncsi/ncsi-manage.c 	INIT_LIST_HEAD(&nc->link);
link              798 net/ncsi/ncsi-manage.c 	list_for_each_entry_rcu(channel, &ndp->channel_queue, link) {
link              810 net/ncsi/ncsi-manage.c 	list_for_each_entry_rcu(channel, &ndp->channel_queue, link)
link             1106 net/ncsi/ncsi-manage.c 			list_add_tail_rcu(&nc->link, &ndp->channel_queue);
link             1171 net/ncsi/ncsi-manage.c 			if (!list_empty(&nc->link) ||
link             1195 net/ncsi/ncsi-manage.c 				list_add_tail_rcu(&nc->link,
link             1219 net/ncsi/ncsi-manage.c 		list_add_tail_rcu(&found->link, &ndp->channel_queue);
link             1432 net/ncsi/ncsi-manage.c 				    struct ncsi_channel, link);
link             1438 net/ncsi/ncsi-manage.c 	list_del_init(&nc->link);
link             1504 net/ncsi/ncsi-manage.c 						!list_empty(&nc->link)) {
link             1522 net/ncsi/ncsi-manage.c 			list_add_tail_rcu(&nc->link, &ndp->channel_queue);
link             1714 net/ncsi/ncsi-manage.c 			chained = !list_empty(&nc->link);
link             1771 net/ncsi/ncsi-manage.c 		list_for_each_entry_safe(nc, tmp, &ndp->channel_queue, link)
link             1772 net/ncsi/ncsi-manage.c 			list_del_init(&nc->link);
link             2540 net/netlink/af_netlink.c 	int link;
link             2545 net/netlink/af_netlink.c 	rhashtable_walk_enter(&nl_table[iter->link].hash, &iter->hti);
link             2575 net/netlink/af_netlink.c 			if (++iter->link >= MAX_LINKS)
link             2591 net/netlink/af_netlink.c 	iter->link = 0;
link             2611 net/netlink/af_netlink.c 	if (iter->link >= MAX_LINKS)
link              271 net/rxrpc/ar-internal.h 	struct list_head	link;
link              445 net/rxrpc/ar-internal.h 	struct list_head	link;		/* link in master connection list */
link              580 net/rxrpc/ar-internal.h 	struct list_head	link;		/* link in master call list */
link              139 net/rxrpc/call_accept.c 	list_add_tail(&call->link, &rxnet->calls);
link              214 net/rxrpc/call_accept.c 		list_del(&conn->link);
link              129 net/rxrpc/call_object.c 	INIT_LIST_HEAD(&call->link);
link              280 net/rxrpc/call_object.c 	list_add_tail(&call->link, &rxnet->calls);
link              553 net/rxrpc/call_object.c 		if (!list_empty(&call->link)) {
link              555 net/rxrpc/call_object.c 			list_del_init(&call->link);
link              632 net/rxrpc/call_object.c 					  struct rxrpc_call, link);
link              636 net/rxrpc/call_object.c 			list_del_init(&call->link);
link               49 net/rxrpc/conn_object.c 		INIT_LIST_HEAD(&conn->link);
link              394 net/rxrpc/conn_object.c 	list_for_each_entry_safe(conn, _p, &rxnet->service_conns, link) {
link              430 net/rxrpc/conn_object.c 		list_move_tail(&conn->link, &graveyard);
link              442 net/rxrpc/conn_object.c 				  link);
link              443 net/rxrpc/conn_object.c 		list_del_init(&conn->link);
link              471 net/rxrpc/conn_object.c 	list_for_each_entry_safe(conn, _p, &rxnet->service_conns, link) {
link              133 net/rxrpc/conn_service.c 		list_add_tail(&conn->link, &rxnet->service_conns);
link               84 net/rxrpc/local_object.c 		INIT_LIST_HEAD(&local->link);
link              239 net/rxrpc/local_object.c 		local = list_entry(cursor, struct rxrpc_local, link);
link              277 net/rxrpc/local_object.c 		list_replace_init(cursor, &local->link);
link              279 net/rxrpc/local_object.c 		list_add_tail(&local->link, cursor);
link              420 net/rxrpc/local_object.c 	list_del_init(&local->link);
link              506 net/rxrpc/local_object.c 		list_for_each_entry(local, &rxnet->local_endpoints, link) {
link               75 net/rxrpc/proc.c 	call = list_entry(v, struct rxrpc_call, link);
link               34 net/sched/cls_basic.c 	struct list_head	link;
link               46 net/sched/cls_basic.c 	list_for_each_entry_rcu(f, &head->flist, link) {
link               65 net/sched/cls_basic.c 	list_for_each_entry(f, &head->flist, link) {
link              112 net/sched/cls_basic.c 	list_for_each_entry_safe(f, n, &head->flist, link) {
link              113 net/sched/cls_basic.c 		list_del_rcu(&f->link);
link              131 net/sched/cls_basic.c 	list_del_rcu(&f->link);
link              231 net/sched/cls_basic.c 		list_replace_rcu(&fold->link, &fnew->link);
link              236 net/sched/cls_basic.c 		list_add_rcu(&fnew->link, &head->flist);
link              253 net/sched/cls_basic.c 	list_for_each_entry(f, &head->flist, link) {
link               39 net/sched/cls_bpf.c 	struct list_head link;
link               90 net/sched/cls_bpf.c 	list_for_each_entry_rcu(prog, &head->plist, link) {
link              294 net/sched/cls_bpf.c 	list_del_rcu(&prog->link);
link              318 net/sched/cls_bpf.c 	list_for_each_entry_safe(prog, tmp, &head->plist, link)
link              330 net/sched/cls_bpf.c 	list_for_each_entry(prog, &head->plist, link) {
link              520 net/sched/cls_bpf.c 		list_replace_rcu(&oldprog->link, &prog->link);
link              525 net/sched/cls_bpf.c 		list_add_rcu(&prog->link, &head->plist);
link              653 net/sched/cls_bpf.c 	list_for_each_entry(prog, &head->plist, link) {
link              674 net/sched/cls_bpf.c 	list_for_each_entry(prog, &head->plist, link) {
link              211 net/sched/em_canid.c 	.link	  = LIST_HEAD_INIT(em_canid_ops.link)
link               77 net/sched/em_cmp.c 	.link	  = LIST_HEAD_INIT(em_cmp_ops.link)
link              114 net/sched/em_ipset.c 	.link	  = LIST_HEAD_INIT(em_ipset_ops.link)
link              277 net/sched/em_ipt.c 	.link	  = LIST_HEAD_INIT(em_ipt_ops.link)
link              993 net/sched/em_meta.c 	.link	  = LIST_HEAD_INIT(em_meta_ops.link)
link               58 net/sched/em_nbyte.c 	.link	  = LIST_HEAD_INIT(em_nbyte_ops.link)
link              135 net/sched/em_text.c 	.link	  = LIST_HEAD_INIT(em_text_ops.link)
link               42 net/sched/em_u32.c 	.link	  = LIST_HEAD_INIT(em_u32_ops.link)
link               97 net/sched/ematch.c 	list_for_each_entry(e, &ematch_ops, link) {
link              131 net/sched/ematch.c 	list_for_each_entry(e, &ematch_ops, link)
link              135 net/sched/ematch.c 	list_add_tail(&ops->link, &ematch_ops);
link              157 net/sched/ematch.c 	list_del(&ops->link);
link               65 net/sched/sch_atm.c 	struct atm_flow_data	link;		/* unclassified skbs go here */
link              164 net/sched/sch_atm.c 	if (flow != &p->link)
link              310 net/sched/sch_atm.c 	list_add(&flow->list, &p->link.list);
link              331 net/sched/sch_atm.c 	if (rcu_access_pointer(flow->filter_list) || flow == &p->link)
link              372 net/sched/sch_atm.c 	return flow ? flow->block : p->link.block;
link              410 net/sched/sch_atm.c 		flow = &p->link;
link              454 net/sched/sch_atm.c 	if (flow == &p->link) {
link              478 net/sched/sch_atm.c 		if (flow == &p->link)
link              526 net/sched/sch_atm.c 	skb = qdisc_dequeue_peeked(p->link.q);
link              538 net/sched/sch_atm.c 	return p->link.q->ops->peek(p->link.q);
link              549 net/sched/sch_atm.c 	INIT_LIST_HEAD(&p->link.list);
link              550 net/sched/sch_atm.c 	list_add(&p->link.list, &p->flows);
link              551 net/sched/sch_atm.c 	p->link.q = qdisc_create_dflt(sch->dev_queue,
link              553 net/sched/sch_atm.c 	if (!p->link.q)
link              554 net/sched/sch_atm.c 		p->link.q = &noop_qdisc;
link              555 net/sched/sch_atm.c 	pr_debug("atm_tc_init: link (%p) qdisc %p\n", &p->link, p->link.q);
link              557 net/sched/sch_atm.c 	err = tcf_block_get(&p->link.block, &p->link.filter_list, sch,
link              562 net/sched/sch_atm.c 	p->link.vcc = NULL;
link              563 net/sched/sch_atm.c 	p->link.sock = NULL;
link              564 net/sched/sch_atm.c 	p->link.common.classid = sch->handle;
link              565 net/sched/sch_atm.c 	p->link.ref = 1;
link              137 net/sched/sch_cbq.c 	struct cbq_class	link;
link              208 net/sched/sch_cbq.c 	struct cbq_class *head = &q->link;
link              562 net/sched/sch_cbq.c 	now = q->now + L2T(&q->link, len);
link              619 net/sched/sch_cbq.c 			idle -= L2T(&q->link, len);
link              842 net/sched/sch_cbq.c 		    q->link.undertime == PSCHED_PASTPERFECT)
link              846 net/sched/sch_cbq.c 		q->link.undertime = PSCHED_PASTPERFECT;
link             1180 net/sched/sch_cbq.c 	q->link.R_tab = qdisc_get_rtab(r, tb[TCA_CBQ_RTAB], extack);
link             1181 net/sched/sch_cbq.c 	if (!q->link.R_tab)
link             1184 net/sched/sch_cbq.c 	err = tcf_block_get(&q->link.block, &q->link.filter_list, sch, extack);
link             1192 net/sched/sch_cbq.c 	q->link.sibling = &q->link;
link             1193 net/sched/sch_cbq.c 	q->link.common.classid = sch->handle;
link             1194 net/sched/sch_cbq.c 	q->link.qdisc = sch;
link             1195 net/sched/sch_cbq.c 	q->link.q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops,
link             1197 net/sched/sch_cbq.c 	if (!q->link.q)
link             1198 net/sched/sch_cbq.c 		q->link.q = &noop_qdisc;
link             1200 net/sched/sch_cbq.c 		qdisc_hash_add(q->link.q, true);
link             1202 net/sched/sch_cbq.c 	q->link.priority = TC_CBQ_MAXPRIO - 1;
link             1203 net/sched/sch_cbq.c 	q->link.priority2 = TC_CBQ_MAXPRIO - 1;
link             1204 net/sched/sch_cbq.c 	q->link.cpriority = TC_CBQ_MAXPRIO - 1;
link             1205 net/sched/sch_cbq.c 	q->link.allot = psched_mtu(qdisc_dev(sch));
link             1206 net/sched/sch_cbq.c 	q->link.quantum = q->link.allot;
link             1207 net/sched/sch_cbq.c 	q->link.weight = q->link.R_tab->rate.rate;
link             1209 net/sched/sch_cbq.c 	q->link.ewma_log = TC_CBQ_DEF_EWMA;
link             1210 net/sched/sch_cbq.c 	q->link.avpkt = q->link.allot/2;
link             1211 net/sched/sch_cbq.c 	q->link.minidle = -0x7FFFFFFF;
link             1216 net/sched/sch_cbq.c 	cbq_link_class(&q->link);
link             1219 net/sched/sch_cbq.c 		cbq_set_lss(&q->link, nla_data(tb[TCA_CBQ_LSSOPT]));
link             1221 net/sched/sch_cbq.c 	cbq_addprio(q, &q->link);
link             1225 net/sched/sch_cbq.c 	tcf_block_put(q->link.block);
link             1228 net/sched/sch_cbq.c 	qdisc_put_rtab(q->link.R_tab);
link             1328 net/sched/sch_cbq.c 	if (cbq_dump_attr(skb, &q->link) < 0)
link             1342 net/sched/sch_cbq.c 	q->link.xstats.avgidle = q->link.avgidle;
link             1343 net/sched/sch_cbq.c 	return gnet_stats_copy_app(d, &q->link.xstats, sizeof(q->link.xstats));
link             1443 net/sched/sch_cbq.c 	if (cl != &q->link)
link             1599 net/sched/sch_cbq.c 	parent = &q->link;
link             1652 net/sched/sch_cbq.c 	if (cl->tparent != &q->link)
link             1659 net/sched/sch_cbq.c 		cl->ewma_log = q->link.ewma_log;
link             1661 net/sched/sch_cbq.c 		cl->maxidle = q->link.maxidle;
link             1663 net/sched/sch_cbq.c 		cl->avpkt = q->link.avpkt;
link             1683 net/sched/sch_cbq.c 	if (cl->filters || cl->children || cl == &q->link)
link             1723 net/sched/sch_cbq.c 		cl = &q->link;
link             1198 net/sctp/sm_statefuns.c 	struct sctp_transport *link;
link             1217 net/sctp/sm_statefuns.c 	link = sctp_assoc_lookup_paddr(asoc, &from_addr);
link             1220 net/sctp/sm_statefuns.c 	if (unlikely(!link)) {
link             1236 net/sctp/sm_statefuns.c 	if (hbinfo->hb_nonce != link->hb_nonce)
link             1239 net/sctp/sm_statefuns.c 	max_interval = link->hbinterval + link->rto;
link             1245 net/sctp/sm_statefuns.c 			 "for transport:%p\n", __func__, link);
link             1256 net/sctp/sm_statefuns.c 	sctp_add_cmd_sf(commands, SCTP_CMD_TRANSPORT_ON, SCTP_TRANSPORT(link));
link              338 net/smc/af_smc.c static int smc_reg_rmb(struct smc_link *link, struct smc_buf_desc *rmb_desc,
link              343 net/smc/af_smc.c 		if (smc_wr_reg_send(link, rmb_desc->mr_rx[SMC_SINGLE_LINK])) {
link              352 net/smc/af_smc.c 	if (smc_llc_do_confirm_rkey(link, rmb_desc)) {
link              363 net/smc/af_smc.c 	struct smc_link *link;
link              367 net/smc/af_smc.c 	link = &lgr->lnk[SMC_SINGLE_LINK];
link              370 net/smc/af_smc.c 		&link->llc_confirm,
link              380 net/smc/af_smc.c 	if (link->llc_confirm_rc)
link              383 net/smc/af_smc.c 	rc = smc_ib_modify_qp_rts(link);
link              387 net/smc/af_smc.c 	smc_wr_remember_qp_attr(link);
link              389 net/smc/af_smc.c 	if (smc_reg_rmb(link, smc->conn.rmb_desc, false))
link              393 net/smc/af_smc.c 	rc = smc_llc_send_confirm_link(link, SMC_LLC_RESP);
link              398 net/smc/af_smc.c 	rest = wait_for_completion_interruptible_timeout(&link->llc_add,
link              409 net/smc/af_smc.c 	rc = smc_llc_send_add_link(link,
link              410 net/smc/af_smc.c 				   link->smcibdev->mac[link->ibport - 1],
link              411 net/smc/af_smc.c 				   link->gid, SMC_LLC_RESP);
link              415 net/smc/af_smc.c 	smc_llc_link_active(link, net->ipv4.sysctl_tcp_keepalive_time);
link              454 net/smc/af_smc.c static void smc_link_save_peer_info(struct smc_link *link,
link              457 net/smc/af_smc.c 	link->peer_qpn = ntoh24(clc->qpn);
link              458 net/smc/af_smc.c 	memcpy(link->peer_gid, clc->lcl.gid, SMC_GID_SIZE);
link              459 net/smc/af_smc.c 	memcpy(link->peer_mac, clc->lcl.mac, sizeof(link->peer_mac));
link              460 net/smc/af_smc.c 	link->peer_psn = ntoh24(clc->psn);
link              461 net/smc/af_smc.c 	link->peer_mtu = clc->qp_mtu;
link              593 net/smc/af_smc.c 	struct smc_link *link;
link              607 net/smc/af_smc.c 	link = &smc->conn.lgr->lnk[SMC_SINGLE_LINK];
link              617 net/smc/af_smc.c 		smc_link_save_peer_info(link, aclc);
link              627 net/smc/af_smc.c 		if (smc_ib_ready_link(link))
link              631 net/smc/af_smc.c 		if (smc_reg_rmb(link, smc->conn.rmb_desc, true))
link              998 net/smc/af_smc.c 	struct smc_link *link;
link             1002 net/smc/af_smc.c 	link = &lgr->lnk[SMC_SINGLE_LINK];
link             1004 net/smc/af_smc.c 	if (smc_reg_rmb(link, smc->conn.rmb_desc, false))
link             1008 net/smc/af_smc.c 	rc = smc_llc_send_confirm_link(link, SMC_LLC_REQ);
link             1014 net/smc/af_smc.c 		&link->llc_confirm_resp,
link             1024 net/smc/af_smc.c 	if (link->llc_confirm_resp_rc)
link             1028 net/smc/af_smc.c 	rc = smc_llc_send_add_link(link,
link             1029 net/smc/af_smc.c 				   link->smcibdev->mac[link->ibport - 1],
link             1030 net/smc/af_smc.c 				   link->gid, SMC_LLC_REQ);
link             1035 net/smc/af_smc.c 	rest = wait_for_completion_interruptible_timeout(&link->llc_add_resp,
link             1045 net/smc/af_smc.c 	smc_llc_link_active(link, net->ipv4.sysctl_tcp_keepalive_time);
link             1187 net/smc/af_smc.c 	struct smc_link *link = &new_smc->conn.lgr->lnk[SMC_SINGLE_LINK];
link             1190 net/smc/af_smc.c 		if (smc_reg_rmb(link, new_smc->conn.rmb_desc, true))
link             1203 net/smc/af_smc.c 	struct smc_link *link = &new_smc->conn.lgr->lnk[SMC_SINGLE_LINK];
link             1207 net/smc/af_smc.c 		smc_link_save_peer_info(link, cclc);
link             1215 net/smc/af_smc.c 		if (smc_ib_ready_link(link)) {
link               26 net/smc/smc_cdc.c 			       struct smc_link *link,
link               60 net/smc/smc_cdc.c 	struct smc_link *link = &conn->lgr->lnk[SMC_SINGLE_LINK];
link               63 net/smc/smc_cdc.c 	rc = smc_wr_tx_get_free_slot(link, smc_cdc_tx_handler, wr_buf,
link               95 net/smc/smc_cdc.c 	struct smc_link *link;
link               98 net/smc/smc_cdc.c 	link = &conn->lgr->lnk[SMC_SINGLE_LINK];
link              105 net/smc/smc_cdc.c 	rc = smc_wr_tx_send(link, (struct smc_wr_tx_pend_priv *)pend);
link              165 net/smc/smc_cdc.c 	struct smc_link *link = &conn->lgr->lnk[SMC_SINGLE_LINK];
link              167 net/smc/smc_cdc.c 	smc_wr_tx_dismiss_slots(link, SMC_CDC_MSG_TYPE,
link              353 net/smc/smc_cdc.c 	struct smc_link *link = (struct smc_link *)wc->qp->qp_context;
link              365 net/smc/smc_cdc.c 	lgr = smc_get_lgr(link);
link              473 net/smc/smc_clc.c 	struct smc_link *link;
link              498 net/smc/smc_clc.c 		link = &conn->lgr->lnk[SMC_SINGLE_LINK];
link              505 net/smc/smc_clc.c 		memcpy(&cclc.lcl.gid, link->gid, SMC_GID_SIZE);
link              506 net/smc/smc_clc.c 		memcpy(&cclc.lcl.mac, &link->smcibdev->mac[link->ibport - 1],
link              508 net/smc/smc_clc.c 		hton24(cclc.qpn, link->roce_qp->qp_num);
link              513 net/smc/smc_clc.c 		cclc.qp_mtu = min(link->path_mtu, link->peer_mtu);
link              517 net/smc/smc_clc.c 		hton24(cclc.psn, link->psn_initial);
link              544 net/smc/smc_clc.c 	struct smc_link *link;
link              574 net/smc/smc_clc.c 		link = &conn->lgr->lnk[SMC_SINGLE_LINK];
link              577 net/smc/smc_clc.c 		memcpy(&aclc.lcl.gid, link->gid, SMC_GID_SIZE);
link              578 net/smc/smc_clc.c 		memcpy(&aclc.lcl.mac, link->smcibdev->mac[link->ibport - 1],
link              580 net/smc/smc_clc.c 		hton24(aclc.qpn, link->roce_qp->qp_num);
link              585 net/smc/smc_clc.c 		aclc.qp_mtu = link->path_mtu;
link              589 net/smc/smc_clc.c 		hton24(aclc.psn, link->psn_initial);
link               69 net/smc/smc_core.c 	struct rb_node **link, *parent = NULL;
link               72 net/smc/smc_core.c 	link = &conn->lgr->conns_all.rb_node;
link               73 net/smc/smc_core.c 	while (*link) {
link               74 net/smc/smc_core.c 		struct smc_connection *cur = rb_entry(*link,
link               77 net/smc/smc_core.c 		parent = *link;
link               79 net/smc/smc_core.c 			link = &parent->rb_left;
link               81 net/smc/smc_core.c 			link = &parent->rb_right;
link               84 net/smc/smc_core.c 	rb_link_node(&conn->alert_node, parent, link);
link              310 net/smc/smc_core.h static inline struct smc_link_group *smc_get_lgr(struct smc_link *link)
link              312 net/smc/smc_core.h 	return container_of(link, struct smc_link_group, lnk[SMC_SINGLE_LINK]);
link              144 net/smc/smc_llc.c 			       struct smc_link *link,
link              163 net/smc/smc_llc.c static int smc_llc_add_pending_send(struct smc_link *link,
link              169 net/smc/smc_llc.c 	rc = smc_wr_tx_get_free_slot(link, smc_llc_tx_handler, wr_buf, NULL,
link              186 net/smc/smc_llc.c int smc_llc_send_confirm_link(struct smc_link *link,
link              189 net/smc/smc_llc.c 	struct smc_link_group *lgr = smc_get_lgr(link);
link              195 net/smc/smc_llc.c 	rc = smc_llc_add_pending_send(link, &wr_buf, &pend);
link              205 net/smc/smc_llc.c 	memcpy(confllc->sender_mac, link->smcibdev->mac[link->ibport - 1],
link              207 net/smc/smc_llc.c 	memcpy(confllc->sender_gid, link->gid, SMC_GID_SIZE);
link              208 net/smc/smc_llc.c 	hton24(confllc->sender_qp_num, link->roce_qp->qp_num);
link              209 net/smc/smc_llc.c 	confllc->link_num = link->link_id;
link              213 net/smc/smc_llc.c 	rc = smc_wr_tx_send(link, pend);
link              218 net/smc/smc_llc.c static int smc_llc_send_confirm_rkey(struct smc_link *link,
link              226 net/smc/smc_llc.c 	rc = smc_llc_add_pending_send(link, &wr_buf, &pend);
link              238 net/smc/smc_llc.c 	rc = smc_wr_tx_send(link, pend);
link              243 net/smc/smc_llc.c static int smc_llc_send_delete_rkey(struct smc_link *link,
link              251 net/smc/smc_llc.c 	rc = smc_llc_add_pending_send(link, &wr_buf, &pend);
link              261 net/smc/smc_llc.c 	rc = smc_wr_tx_send(link, pend);
link              267 net/smc/smc_llc.c 				  struct smc_link *link, u8 mac[], u8 gid[],
link              284 net/smc/smc_llc.c int smc_llc_send_add_link(struct smc_link *link, u8 mac[], u8 gid[],
link              292 net/smc/smc_llc.c 	rc = smc_llc_add_pending_send(link, &wr_buf, &pend);
link              296 net/smc/smc_llc.c 	smc_llc_prep_add_link(addllc, link, mac, gid, reqresp);
link              298 net/smc/smc_llc.c 	rc = smc_wr_tx_send(link, pend);
link              304 net/smc/smc_llc.c 				     struct smc_link *link,
link              316 net/smc/smc_llc.c 	delllc->link_num = link->link_id;
link              320 net/smc/smc_llc.c int smc_llc_send_delete_link(struct smc_link *link,
link              328 net/smc/smc_llc.c 	rc = smc_llc_add_pending_send(link, &wr_buf, &pend);
link              332 net/smc/smc_llc.c 	smc_llc_prep_delete_link(delllc, link, reqresp, orderly);
link              334 net/smc/smc_llc.c 	rc = smc_wr_tx_send(link, pend);
link              339 net/smc/smc_llc.c static int smc_llc_send_test_link(struct smc_link *link, u8 user_data[16])
link              346 net/smc/smc_llc.c 	rc = smc_llc_add_pending_send(link, &wr_buf, &pend);
link              355 net/smc/smc_llc.c 	rc = smc_wr_tx_send(link, pend);
link              361 net/smc/smc_llc.c 	struct smc_link *link;
link              375 net/smc/smc_llc.c 	if (llcwrk->link->state == SMC_LNK_INACTIVE)
link              377 net/smc/smc_llc.c 	rc = smc_llc_add_pending_send(llcwrk->link, &wr_buf, &pend);
link              381 net/smc/smc_llc.c 	smc_wr_tx_send(llcwrk->link, pend);
link              387 net/smc/smc_llc.c static int smc_llc_send_message(struct smc_link *link, void *llcbuf, int llclen)
link              394 net/smc/smc_llc.c 	wrk->link = link;
link              397 net/smc/smc_llc.c 	queue_work(link->llc_wq, &wrk->work);
link              403 net/smc/smc_llc.c static void smc_llc_rx_confirm_link(struct smc_link *link,
link              406 net/smc/smc_llc.c 	struct smc_link_group *lgr = smc_get_lgr(link);
link              417 net/smc/smc_llc.c 		    link->state == SMC_LNK_ACTIVATING) {
link              418 net/smc/smc_llc.c 			link->llc_confirm_resp_rc = conf_rc;
link              419 net/smc/smc_llc.c 			complete(&link->llc_confirm_resp);
link              423 net/smc/smc_llc.c 		    link->state == SMC_LNK_ACTIVATING) {
link              424 net/smc/smc_llc.c 			link->llc_confirm_rc = conf_rc;
link              425 net/smc/smc_llc.c 			link->link_id = llc->link_num;
link              426 net/smc/smc_llc.c 			complete(&link->llc_confirm);
link              431 net/smc/smc_llc.c static void smc_llc_rx_add_link(struct smc_link *link,
link              434 net/smc/smc_llc.c 	struct smc_link_group *lgr = smc_get_lgr(link);
link              437 net/smc/smc_llc.c 		if (link->state == SMC_LNK_ACTIVATING)
link              438 net/smc/smc_llc.c 			complete(&link->llc_add_resp);
link              440 net/smc/smc_llc.c 		if (link->state == SMC_LNK_ACTIVATING) {
link              441 net/smc/smc_llc.c 			complete(&link->llc_add);
link              446 net/smc/smc_llc.c 			smc_llc_prep_add_link(llc, link,
link              447 net/smc/smc_llc.c 					link->smcibdev->mac[link->ibport - 1],
link              448 net/smc/smc_llc.c 					link->gid, SMC_LLC_REQ);
link              451 net/smc/smc_llc.c 			smc_llc_prep_add_link(llc, link,
link              452 net/smc/smc_llc.c 					link->smcibdev->mac[link->ibport - 1],
link              453 net/smc/smc_llc.c 					link->gid, SMC_LLC_RESP);
link              455 net/smc/smc_llc.c 		smc_llc_send_message(link, llc, sizeof(*llc));
link              459 net/smc/smc_llc.c static void smc_llc_rx_delete_link(struct smc_link *link,
link              462 net/smc/smc_llc.c 	struct smc_link_group *lgr = smc_get_lgr(link);
link              469 net/smc/smc_llc.c 		smc_llc_link_deleting(link);
link              472 net/smc/smc_llc.c 			smc_llc_prep_delete_link(llc, link, SMC_LLC_REQ, true);
link              475 net/smc/smc_llc.c 			smc_llc_prep_delete_link(llc, link, SMC_LLC_RESP, true);
link              477 net/smc/smc_llc.c 		smc_llc_send_message(link, llc, sizeof(*llc));
link              482 net/smc/smc_llc.c static void smc_llc_rx_test_link(struct smc_link *link,
link              486 net/smc/smc_llc.c 		if (link->state == SMC_LNK_ACTIVE)
link              487 net/smc/smc_llc.c 			complete(&link->llc_testlink_resp);
link              490 net/smc/smc_llc.c 		smc_llc_send_message(link, llc, sizeof(*llc));
link              494 net/smc/smc_llc.c static void smc_llc_rx_confirm_rkey(struct smc_link *link,
link              500 net/smc/smc_llc.c 		link->llc_confirm_rkey_rc = llc->hd.flags &
link              502 net/smc/smc_llc.c 		complete(&link->llc_confirm_rkey);
link              504 net/smc/smc_llc.c 		rc = smc_rtoken_add(smc_get_lgr(link),
link              513 net/smc/smc_llc.c 		smc_llc_send_message(link, llc, sizeof(*llc));
link              517 net/smc/smc_llc.c static void smc_llc_rx_confirm_rkey_cont(struct smc_link *link,
link              525 net/smc/smc_llc.c 		smc_llc_send_message(link, llc, sizeof(*llc));
link              529 net/smc/smc_llc.c static void smc_llc_rx_delete_rkey(struct smc_link *link,
link              536 net/smc/smc_llc.c 		link->llc_delete_rkey_rc = llc->hd.flags &
link              538 net/smc/smc_llc.c 		complete(&link->llc_delete_rkey);
link              542 net/smc/smc_llc.c 			if (smc_rtoken_delete(smc_get_lgr(link), llc->rkey[i]))
link              552 net/smc/smc_llc.c 		smc_llc_send_message(link, llc, sizeof(*llc));
link              558 net/smc/smc_llc.c 	struct smc_link *link = (struct smc_link *)wc->qp->qp_context;
link              565 net/smc/smc_llc.c 	if (link->state == SMC_LNK_INACTIVE)
link              570 net/smc/smc_llc.c 		smc_llc_rx_test_link(link, &llc->test_link);
link              573 net/smc/smc_llc.c 		smc_llc_rx_confirm_link(link, &llc->confirm_link);
link              576 net/smc/smc_llc.c 		smc_llc_rx_add_link(link, &llc->add_link);
link              579 net/smc/smc_llc.c 		smc_llc_rx_delete_link(link, &llc->delete_link);
link              582 net/smc/smc_llc.c 		smc_llc_rx_confirm_rkey(link, &llc->confirm_rkey);
link              585 net/smc/smc_llc.c 		smc_llc_rx_confirm_rkey_cont(link, &llc->confirm_rkey_cont);
link              588 net/smc/smc_llc.c 		smc_llc_rx_delete_rkey(link, &llc->delete_rkey);
link              597 net/smc/smc_llc.c 	struct smc_link *link = container_of(to_delayed_work(work),
link              604 net/smc/smc_llc.c 	if (link->state != SMC_LNK_ACTIVE)
link              606 net/smc/smc_llc.c 	expire_time = link->wr_rx_tstamp + link->llc_testlink_time;
link              611 net/smc/smc_llc.c 	reinit_completion(&link->llc_testlink_resp);
link              612 net/smc/smc_llc.c 	smc_llc_send_test_link(link, user_data);
link              614 net/smc/smc_llc.c 	rc = wait_for_completion_interruptible_timeout(&link->llc_testlink_resp,
link              617 net/smc/smc_llc.c 		smc_lgr_terminate(smc_get_lgr(link));
link              620 net/smc/smc_llc.c 	next_interval = link->llc_testlink_time;
link              622 net/smc/smc_llc.c 	queue_delayed_work(link->llc_wq, &link->llc_testlink_wrk,
link              626 net/smc/smc_llc.c int smc_llc_link_init(struct smc_link *link)
link              628 net/smc/smc_llc.c 	struct smc_link_group *lgr = smc_get_lgr(link);
link              629 net/smc/smc_llc.c 	link->llc_wq = alloc_ordered_workqueue("llc_wq-%x:%x)", WQ_MEM_RECLAIM,
link              631 net/smc/smc_llc.c 					       link->link_id);
link              632 net/smc/smc_llc.c 	if (!link->llc_wq)
link              634 net/smc/smc_llc.c 	init_completion(&link->llc_confirm);
link              635 net/smc/smc_llc.c 	init_completion(&link->llc_confirm_resp);
link              636 net/smc/smc_llc.c 	init_completion(&link->llc_add);
link              637 net/smc/smc_llc.c 	init_completion(&link->llc_add_resp);
link              638 net/smc/smc_llc.c 	init_completion(&link->llc_confirm_rkey);
link              639 net/smc/smc_llc.c 	init_completion(&link->llc_delete_rkey);
link              640 net/smc/smc_llc.c 	mutex_init(&link->llc_delete_rkey_mutex);
link              641 net/smc/smc_llc.c 	init_completion(&link->llc_testlink_resp);
link              642 net/smc/smc_llc.c 	INIT_DELAYED_WORK(&link->llc_testlink_wrk, smc_llc_testlink_work);
link              646 net/smc/smc_llc.c void smc_llc_link_active(struct smc_link *link, int testlink_time)
link              648 net/smc/smc_llc.c 	link->state = SMC_LNK_ACTIVE;
link              650 net/smc/smc_llc.c 		link->llc_testlink_time = testlink_time * HZ;
link              651 net/smc/smc_llc.c 		queue_delayed_work(link->llc_wq, &link->llc_testlink_wrk,
link              652 net/smc/smc_llc.c 				   link->llc_testlink_time);
link              656 net/smc/smc_llc.c void smc_llc_link_deleting(struct smc_link *link)
link              658 net/smc/smc_llc.c 	link->state = SMC_LNK_DELETING;
link              662 net/smc/smc_llc.c void smc_llc_link_inactive(struct smc_link *link)
link              664 net/smc/smc_llc.c 	link->state = SMC_LNK_INACTIVE;
link              665 net/smc/smc_llc.c 	cancel_delayed_work(&link->llc_testlink_wrk);
link              669 net/smc/smc_llc.c void smc_llc_link_clear(struct smc_link *link)
link              671 net/smc/smc_llc.c 	flush_workqueue(link->llc_wq);
link              672 net/smc/smc_llc.c 	destroy_workqueue(link->llc_wq);
link              676 net/smc/smc_llc.c int smc_llc_do_confirm_rkey(struct smc_link *link,
link              682 net/smc/smc_llc.c 	reinit_completion(&link->llc_confirm_rkey);
link              683 net/smc/smc_llc.c 	rc = smc_llc_send_confirm_rkey(link, rmb_desc);
link              687 net/smc/smc_llc.c 	rc = wait_for_completion_interruptible_timeout(&link->llc_confirm_rkey,
link              689 net/smc/smc_llc.c 	if (rc <= 0 || link->llc_confirm_rkey_rc)
link              695 net/smc/smc_llc.c int smc_llc_do_delete_rkey(struct smc_link *link,
link              700 net/smc/smc_llc.c 	mutex_lock(&link->llc_delete_rkey_mutex);
link              701 net/smc/smc_llc.c 	reinit_completion(&link->llc_delete_rkey);
link              702 net/smc/smc_llc.c 	rc = smc_llc_send_delete_rkey(link, rmb_desc);
link              706 net/smc/smc_llc.c 	rc = wait_for_completion_interruptible_timeout(&link->llc_delete_rkey,
link              708 net/smc/smc_llc.c 	if (rc <= 0 || link->llc_delete_rkey_rc)
link              713 net/smc/smc_llc.c 	mutex_unlock(&link->llc_delete_rkey_mutex);
link               41 net/smc/smc_llc.h int smc_llc_send_add_link(struct smc_link *link, u8 mac[], u8 gid[],
link               43 net/smc/smc_llc.h int smc_llc_send_delete_link(struct smc_link *link,
link               45 net/smc/smc_llc.h int smc_llc_link_init(struct smc_link *link);
link               46 net/smc/smc_llc.h void smc_llc_link_active(struct smc_link *link, int testlink_time);
link               47 net/smc/smc_llc.h void smc_llc_link_deleting(struct smc_link *link);
link               48 net/smc/smc_llc.h void smc_llc_link_inactive(struct smc_link *link);
link               49 net/smc/smc_llc.h void smc_llc_link_clear(struct smc_link *link);
link               50 net/smc/smc_llc.h int smc_llc_do_confirm_rkey(struct smc_link *link,
link               52 net/smc/smc_llc.h int smc_llc_do_delete_rkey(struct smc_link *link,
link              271 net/smc/smc_tx.c 	struct smc_link *link;
link              274 net/smc/smc_tx.c 	link = &lgr->lnk[SMC_SINGLE_LINK];
link              275 net/smc/smc_tx.c 	rdma_wr->wr.wr_id = smc_wr_tx_get_next_wr_id(link);
link              284 net/smc/smc_tx.c 	rc = ib_post_send(link->roce_qp, &rdma_wr->wr, NULL);
link               44 net/smc/smc_wr.c 	struct smc_link		*link;
link               53 net/smc/smc_wr.c static inline int smc_wr_tx_find_pending_index(struct smc_link *link, u64 wr_id)
link               57 net/smc/smc_wr.c 	for (i = 0; i < link->wr_tx_cnt; i++) {
link               58 net/smc/smc_wr.c 		if (link->wr_tx_pends[i].wr_id == wr_id)
link               61 net/smc/smc_wr.c 	return link->wr_tx_cnt;
link               67 net/smc/smc_wr.c 	struct smc_link *link;
link               71 net/smc/smc_wr.c 	link = wc->qp->qp_context;
link               75 net/smc/smc_wr.c 			link->wr_reg_state = FAILED;
link               77 net/smc/smc_wr.c 			link->wr_reg_state = CONFIRMED;
link               78 net/smc/smc_wr.c 		wake_up(&link->wr_reg_wait);
link               82 net/smc/smc_wr.c 	pnd_snd_idx = smc_wr_tx_find_pending_index(link, wc->wr_id);
link               83 net/smc/smc_wr.c 	if (pnd_snd_idx == link->wr_tx_cnt)
link               85 net/smc/smc_wr.c 	link->wr_tx_pends[pnd_snd_idx].wc_status = wc->status;
link               86 net/smc/smc_wr.c 	memcpy(&pnd_snd, &link->wr_tx_pends[pnd_snd_idx], sizeof(pnd_snd));
link               88 net/smc/smc_wr.c 	memset(&link->wr_tx_pends[pnd_snd_idx], 0,
link               89 net/smc/smc_wr.c 	       sizeof(link->wr_tx_pends[pnd_snd_idx]));
link               90 net/smc/smc_wr.c 	memset(&link->wr_tx_bufs[pnd_snd_idx], 0,
link               91 net/smc/smc_wr.c 	       sizeof(link->wr_tx_bufs[pnd_snd_idx]));
link               92 net/smc/smc_wr.c 	if (!test_and_clear_bit(pnd_snd_idx, link->wr_tx_mask))
link               95 net/smc/smc_wr.c 		for_each_set_bit(i, link->wr_tx_mask, link->wr_tx_cnt) {
link               97 net/smc/smc_wr.c 			memset(&link->wr_tx_pends[i], 0,
link               98 net/smc/smc_wr.c 			       sizeof(link->wr_tx_pends[i]));
link               99 net/smc/smc_wr.c 			memset(&link->wr_tx_bufs[i], 0,
link              100 net/smc/smc_wr.c 			       sizeof(link->wr_tx_bufs[i]));
link              101 net/smc/smc_wr.c 			clear_bit(i, link->wr_tx_mask);
link              104 net/smc/smc_wr.c 		smc_lgr_terminate(smc_get_lgr(link));
link              107 net/smc/smc_wr.c 		pnd_snd.handler(&pnd_snd.priv, link, wc->status);
link              108 net/smc/smc_wr.c 	wake_up(&link->wr_tx_wait);
link              146 net/smc/smc_wr.c static inline int smc_wr_tx_get_free_slot_index(struct smc_link *link, u32 *idx)
link              148 net/smc/smc_wr.c 	*idx = link->wr_tx_cnt;
link              149 net/smc/smc_wr.c 	for_each_clear_bit(*idx, link->wr_tx_mask, link->wr_tx_cnt) {
link              150 net/smc/smc_wr.c 		if (!test_and_set_bit(*idx, link->wr_tx_mask))
link              153 net/smc/smc_wr.c 	*idx = link->wr_tx_cnt;
link              168 net/smc/smc_wr.c int smc_wr_tx_get_free_slot(struct smc_link *link,
link              175 net/smc/smc_wr.c 	u32 idx = link->wr_tx_cnt;
link              183 net/smc/smc_wr.c 		rc = smc_wr_tx_get_free_slot_index(link, &idx);
link              188 net/smc/smc_wr.c 			link->wr_tx_wait,
link              189 net/smc/smc_wr.c 			link->state == SMC_LNK_INACTIVE ||
link              190 net/smc/smc_wr.c 			(smc_wr_tx_get_free_slot_index(link, &idx) != -EBUSY),
link              194 net/smc/smc_wr.c 			smc_lgr_terminate(smc_get_lgr(link));
link              197 net/smc/smc_wr.c 		if (idx == link->wr_tx_cnt)
link              200 net/smc/smc_wr.c 	wr_id = smc_wr_tx_get_next_wr_id(link);
link              201 net/smc/smc_wr.c 	wr_pend = &link->wr_tx_pends[idx];
link              204 net/smc/smc_wr.c 	wr_pend->link = link;
link              206 net/smc/smc_wr.c 	wr_ib = &link->wr_tx_ibs[idx];
link              208 net/smc/smc_wr.c 	*wr_buf = &link->wr_tx_bufs[idx];
link              210 net/smc/smc_wr.c 		*wr_rdma_buf = &link->wr_tx_rdmas[idx];
link              215 net/smc/smc_wr.c int smc_wr_tx_put_slot(struct smc_link *link,
link              221 net/smc/smc_wr.c 	if (pend->idx < link->wr_tx_cnt) {
link              225 net/smc/smc_wr.c 		memset(&link->wr_tx_pends[idx], 0,
link              226 net/smc/smc_wr.c 		       sizeof(link->wr_tx_pends[idx]));
link              227 net/smc/smc_wr.c 		memset(&link->wr_tx_bufs[idx], 0,
link              228 net/smc/smc_wr.c 		       sizeof(link->wr_tx_bufs[idx]));
link              229 net/smc/smc_wr.c 		test_and_clear_bit(idx, link->wr_tx_mask);
link              239 net/smc/smc_wr.c int smc_wr_tx_send(struct smc_link *link, struct smc_wr_tx_pend_priv *priv)
link              244 net/smc/smc_wr.c 	ib_req_notify_cq(link->smcibdev->roce_cq_send,
link              247 net/smc/smc_wr.c 	rc = ib_post_send(link->roce_qp, &link->wr_tx_ibs[pend->idx], NULL);
link              249 net/smc/smc_wr.c 		smc_wr_tx_put_slot(link, priv);
link              250 net/smc/smc_wr.c 		smc_lgr_terminate(smc_get_lgr(link));
link              256 net/smc/smc_wr.c int smc_wr_reg_send(struct smc_link *link, struct ib_mr *mr)
link              260 net/smc/smc_wr.c 	ib_req_notify_cq(link->smcibdev->roce_cq_send,
link              262 net/smc/smc_wr.c 	link->wr_reg_state = POSTED;
link              263 net/smc/smc_wr.c 	link->wr_reg.wr.wr_id = (u64)(uintptr_t)mr;
link              264 net/smc/smc_wr.c 	link->wr_reg.mr = mr;
link              265 net/smc/smc_wr.c 	link->wr_reg.key = mr->rkey;
link              266 net/smc/smc_wr.c 	rc = ib_post_send(link->roce_qp, &link->wr_reg.wr, NULL);
link              270 net/smc/smc_wr.c 	rc = wait_event_interruptible_timeout(link->wr_reg_wait,
link              271 net/smc/smc_wr.c 					      (link->wr_reg_state != POSTED),
link              275 net/smc/smc_wr.c 		smc_lgr_terminate(smc_get_lgr(link));
link              280 net/smc/smc_wr.c 	switch (link->wr_reg_state) {
link              294 net/smc/smc_wr.c void smc_wr_tx_dismiss_slots(struct smc_link *link, u8 wr_tx_hdr_type,
link              303 net/smc/smc_wr.c 	for_each_set_bit(i, link->wr_tx_mask, link->wr_tx_cnt) {
link              304 net/smc/smc_wr.c 		wr_tx = (struct smc_wr_rx_hdr *)&link->wr_tx_bufs[i];
link              307 net/smc/smc_wr.c 		tx_pend = &link->wr_tx_pends[i].priv;
link              339 net/smc/smc_wr.c 	struct smc_link *link = (struct smc_link *)wc->qp->qp_context;
link              348 net/smc/smc_wr.c 	index = do_div(temp_wr_id, link->wr_rx_cnt);
link              349 net/smc/smc_wr.c 	wr_rx = (struct smc_wr_rx_hdr *)&link->wr_rx_bufs[index];
link              358 net/smc/smc_wr.c 	struct smc_link *link;
link              362 net/smc/smc_wr.c 		link = wc[i].qp->qp_context;
link              364 net/smc/smc_wr.c 			link->wr_rx_tstamp = jiffies;
link              366 net/smc/smc_wr.c 			smc_wr_rx_post(link); /* refill WR RX */
link              376 net/smc/smc_wr.c 				smc_lgr_terminate(smc_get_lgr(link));
link              379 net/smc/smc_wr.c 				smc_wr_rx_post(link); /* refill WR RX */
link              418 net/smc/smc_wr.c int smc_wr_rx_post_init(struct smc_link *link)
link              423 net/smc/smc_wr.c 	for (i = 0; i < link->wr_rx_cnt; i++)
link              424 net/smc/smc_wr.c 		rc = smc_wr_rx_post(link);
link              558 net/smc/smc_wr.c int smc_wr_alloc_link_mem(struct smc_link *link)
link              561 net/smc/smc_wr.c 	link->wr_tx_bufs = kcalloc(SMC_WR_BUF_CNT, SMC_WR_BUF_SIZE, GFP_KERNEL);
link              562 net/smc/smc_wr.c 	if (!link->wr_tx_bufs)
link              564 net/smc/smc_wr.c 	link->wr_rx_bufs = kcalloc(SMC_WR_BUF_CNT * 3, SMC_WR_BUF_SIZE,
link              566 net/smc/smc_wr.c 	if (!link->wr_rx_bufs)
link              568 net/smc/smc_wr.c 	link->wr_tx_ibs = kcalloc(SMC_WR_BUF_CNT, sizeof(link->wr_tx_ibs[0]),
link              570 net/smc/smc_wr.c 	if (!link->wr_tx_ibs)
link              572 net/smc/smc_wr.c 	link->wr_rx_ibs = kcalloc(SMC_WR_BUF_CNT * 3,
link              573 net/smc/smc_wr.c 				  sizeof(link->wr_rx_ibs[0]),
link              575 net/smc/smc_wr.c 	if (!link->wr_rx_ibs)
link              577 net/smc/smc_wr.c 	link->wr_tx_rdmas = kcalloc(SMC_WR_BUF_CNT,
link              578 net/smc/smc_wr.c 				    sizeof(link->wr_tx_rdmas[0]),
link              580 net/smc/smc_wr.c 	if (!link->wr_tx_rdmas)
link              582 net/smc/smc_wr.c 	link->wr_tx_rdma_sges = kcalloc(SMC_WR_BUF_CNT,
link              583 net/smc/smc_wr.c 					sizeof(link->wr_tx_rdma_sges[0]),
link              585 net/smc/smc_wr.c 	if (!link->wr_tx_rdma_sges)
link              587 net/smc/smc_wr.c 	link->wr_tx_sges = kcalloc(SMC_WR_BUF_CNT, sizeof(link->wr_tx_sges[0]),
link              589 net/smc/smc_wr.c 	if (!link->wr_tx_sges)
link              591 net/smc/smc_wr.c 	link->wr_rx_sges = kcalloc(SMC_WR_BUF_CNT * 3,
link              592 net/smc/smc_wr.c 				   sizeof(link->wr_rx_sges[0]),
link              594 net/smc/smc_wr.c 	if (!link->wr_rx_sges)
link              596 net/smc/smc_wr.c 	link->wr_tx_mask = kcalloc(BITS_TO_LONGS(SMC_WR_BUF_CNT),
link              597 net/smc/smc_wr.c 				   sizeof(*link->wr_tx_mask),
link              599 net/smc/smc_wr.c 	if (!link->wr_tx_mask)
link              601 net/smc/smc_wr.c 	link->wr_tx_pends = kcalloc(SMC_WR_BUF_CNT,
link              602 net/smc/smc_wr.c 				    sizeof(link->wr_tx_pends[0]),
link              604 net/smc/smc_wr.c 	if (!link->wr_tx_pends)
link              609 net/smc/smc_wr.c 	kfree(link->wr_tx_mask);
link              611 net/smc/smc_wr.c 	kfree(link->wr_rx_sges);
link              613 net/smc/smc_wr.c 	kfree(link->wr_tx_sges);
link              615 net/smc/smc_wr.c 	kfree(link->wr_tx_rdma_sges);
link              617 net/smc/smc_wr.c 	kfree(link->wr_tx_rdmas);
link              619 net/smc/smc_wr.c 	kfree(link->wr_rx_ibs);
link              621 net/smc/smc_wr.c 	kfree(link->wr_tx_ibs);
link              623 net/smc/smc_wr.c 	kfree(link->wr_rx_bufs);
link              625 net/smc/smc_wr.c 	kfree(link->wr_tx_bufs);
link               53 net/smc/smc_wr.h static inline long smc_wr_tx_get_next_wr_id(struct smc_link *link)
link               55 net/smc/smc_wr.h 	return atomic_long_inc_return(&link->wr_tx_id);
link               64 net/smc/smc_wr.h static inline int smc_wr_rx_post(struct smc_link *link)
link               70 net/smc/smc_wr.h 	wr_id = ++link->wr_rx_id; /* tasklet context, thus not atomic */
link               72 net/smc/smc_wr.h 	index = do_div(temp_wr_id, link->wr_rx_cnt);
link               73 net/smc/smc_wr.h 	link->wr_rx_ibs[index].wr_id = wr_id;
link               74 net/smc/smc_wr.h 	rc = ib_post_recv(link->roce_qp, &link->wr_rx_ibs[index], NULL);
link               86 net/smc/smc_wr.h int smc_wr_tx_get_free_slot(struct smc_link *link, smc_wr_tx_handler handler,
link               90 net/smc/smc_wr.h int smc_wr_tx_put_slot(struct smc_link *link,
link               92 net/smc/smc_wr.h int smc_wr_tx_send(struct smc_link *link,
link              101 net/smc/smc_wr.h int smc_wr_rx_post_init(struct smc_link *link);
link              103 net/smc/smc_wr.h int smc_wr_reg_send(struct smc_link *link, struct ib_mr *mr);
link              124 net/sunrpc/debugfs.c 	char link[9]; /* enough for 8 hex digits + NULL */
link              134 net/sunrpc/debugfs.c 		strcpy(link, "xprt");
link              136 net/sunrpc/debugfs.c 		len = snprintf(link, sizeof(link), "xprt%d", *nump);
link              137 net/sunrpc/debugfs.c 		if (len > sizeof(link))
link              140 net/sunrpc/debugfs.c 	debugfs_create_symlink(link, clnt->cl_debugfs, name);
link               64 net/tipc/bcast.c 	struct tipc_link *link;
link              109 net/tipc/bcast.c 	int all_dests =  tipc_link_bc_peers(bb->link);
link              123 net/tipc/bcast.c 		if (mtu < tipc_link_mtu(bb->link))
link              124 net/tipc/bcast.c 			tipc_link_set_mtu(bb->link, mtu);
link              698 net/tipc/bcast.c 	bb->link = l;
link              450 net/tipc/link.c 		      struct tipc_link **link)
link              459 net/tipc/link.c 	*link = l;
link              520 net/tipc/link.c 			 struct tipc_link **link)
link              526 net/tipc/link.c 			      NULL, inputq, namedq, link))
link              529 net/tipc/link.c 	l = *link;
link             2435 net/tipc/link.c 		       struct tipc_link *link, int nlflags)
link             2452 net/tipc/link.c 	if (nla_put_string(msg->skb, TIPC_NLA_LINK_NAME, link->name))
link             2456 net/tipc/link.c 	if (nla_put_u32(msg->skb, TIPC_NLA_LINK_MTU, link->mtu))
link             2458 net/tipc/link.c 	if (nla_put_u32(msg->skb, TIPC_NLA_LINK_RX, link->stats.recv_pkts))
link             2460 net/tipc/link.c 	if (nla_put_u32(msg->skb, TIPC_NLA_LINK_TX, link->stats.sent_pkts))
link             2463 net/tipc/link.c 	if (tipc_link_is_up(link))
link             2466 net/tipc/link.c 	if (link->active)
link             2473 net/tipc/link.c 	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority))
link             2475 net/tipc/link.c 	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, link->tolerance))
link             2478 net/tipc/link.c 			link->window))
link             2480 net/tipc/link.c 	if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority))
link             2484 net/tipc/link.c 	err = __tipc_nl_add_stats(msg->skb, &link->stats);
link               82 net/tipc/link.h 		      struct tipc_link **link);
link               88 net/tipc/link.h 			 struct tipc_link **link);
link              107 net/tipc/link.h int tipc_link_xmit(struct tipc_link *link, struct sk_buff_head *list,
link              129 net/tipc/link.h 		       struct tipc_link *link, int nlflags);
link              515 net/tipc/netlink_compat.c 	struct nlattr *link[TIPC_NLA_LINK_MAX + 1];
link              524 net/tipc/netlink_compat.c 	err = nla_parse_nested_deprecated(link, TIPC_NLA_LINK_MAX,
link              529 net/tipc/netlink_compat.c 	if (!link[TIPC_NLA_LINK_PROP])
link              533 net/tipc/netlink_compat.c 					  link[TIPC_NLA_LINK_PROP], NULL,
link              538 net/tipc/netlink_compat.c 	if (!link[TIPC_NLA_LINK_STATS])
link              542 net/tipc/netlink_compat.c 					  link[TIPC_NLA_LINK_STATS], NULL,
link              557 net/tipc/netlink_compat.c 	if (strcmp(name, nla_data(link[TIPC_NLA_LINK_NAME])) != 0)
link              561 net/tipc/netlink_compat.c 			 nla_data(link[TIPC_NLA_LINK_NAME]));
link              563 net/tipc/netlink_compat.c 	if (link[TIPC_NLA_LINK_BROADCAST]) {
link              568 net/tipc/netlink_compat.c 	if (link[TIPC_NLA_LINK_ACTIVE])
link              570 net/tipc/netlink_compat.c 	else if (link[TIPC_NLA_LINK_UP])
link              576 net/tipc/netlink_compat.c 			 nla_get_u32(link[TIPC_NLA_LINK_MTU]),
link              585 net/tipc/netlink_compat.c 			 nla_get_u32(link[TIPC_NLA_LINK_RX]) -
link              594 net/tipc/netlink_compat.c 			 nla_get_u32(link[TIPC_NLA_LINK_TX]) -
link              654 net/tipc/netlink_compat.c 	struct nlattr *link[TIPC_NLA_LINK_MAX + 1];
link              661 net/tipc/netlink_compat.c 	err = nla_parse_nested_deprecated(link, TIPC_NLA_LINK_MAX,
link              666 net/tipc/netlink_compat.c 	link_info.dest = nla_get_flag(link[TIPC_NLA_LINK_DEST]);
link              667 net/tipc/netlink_compat.c 	link_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP]));
link              668 net/tipc/netlink_compat.c 	nla_strlcpy(link_info.str, link[TIPC_NLA_LINK_NAME],
link              749 net/tipc/netlink_compat.c 	struct nlattr *link;
link              754 net/tipc/netlink_compat.c 	link = nla_nest_start_noflag(skb, TIPC_NLA_LINK);
link              755 net/tipc/netlink_compat.c 	if (!link)
link              767 net/tipc/netlink_compat.c 	nla_nest_end(skb, link);
link              812 net/tipc/netlink_compat.c 	struct nlattr *link;
link              817 net/tipc/netlink_compat.c 	link = nla_nest_start_noflag(skb, TIPC_NLA_LINK);
link              818 net/tipc/netlink_compat.c 	if (!link)
link              832 net/tipc/netlink_compat.c 	nla_nest_end(skb, link);
link               64 net/tipc/node.c 	struct tipc_link *link;
link               72 net/tipc/node.c 	struct tipc_link *link;
link              184 net/tipc/node.c 	return n->links[bearer_id].link;
link              242 net/tipc/node.c 	kfree(n->bc_entry.link);
link              381 net/tipc/node.c 			l = n->links[bearer_id].link;
link              427 net/tipc/node.c 				 &n->bc_entry.link)) {
link              590 net/tipc/node.c 		if (le->link) {
link              591 net/tipc/node.c 			kfree(le->link);
link              592 net/tipc/node.c 			le->link = NULL;
link              659 net/tipc/node.c 		if (le->link) {
link              662 net/tipc/node.c 			tipc_node_calculate_timer(n, le->link);
link              663 net/tipc/node.c 			rc = tipc_link_timeout(le->link, &xmitq);
link              686 net/tipc/node.c 	struct tipc_link *nl = n->links[bearer_id].link;
link              814 net/tipc/node.c 	l = n->links[*bearer_id].link;
link              831 net/tipc/node.c 		_l = n->links[i].link;
link              865 net/tipc/node.c 	tnl = n->links[*bearer_id].link;
link              882 net/tipc/node.c 	struct tipc_link *l = le->link;
link              901 net/tipc/node.c 		le->link = NULL;
link             1010 net/tipc/node.c 	l = le->link;
link             1089 net/tipc/node.c 				      tipc_bc_sndlink(n->net), n->bc_entry.link,
link             1100 net/tipc/node.c 		le->link = l;
link             1334 net/tipc/node.c 	tipc_bcast_remove_peer(n->net, n->bc_entry.link);
link             1338 net/tipc/node.c 		l = n->links[i].link;
link             1371 net/tipc/node.c 	struct tipc_link *link;
link             1382 net/tipc/node.c 	link = node->links[bearer_id].link;
link             1383 net/tipc/node.c 	if (link) {
link             1384 net/tipc/node.c 		strncpy(linkname, tipc_link_name(link), len);
link             1470 net/tipc/node.c 	rc = tipc_link_xmit(le->link, list, &xmitq);
link             1560 net/tipc/node.c 	rc = tipc_bcast_sync_rcv(n->net, n->bc_entry.link, hdr);
link             1576 net/tipc/node.c 	ucl = n->links[bearer_id].link;
link             1615 net/tipc/node.c 	rc = tipc_bcast_rcv(net, be->link, skb);
link             1620 net/tipc/node.c 		tipc_link_build_state_msg(le->link, &xmitq);
link             1665 net/tipc/node.c 	l = n->links[bearer_id].link;
link             1676 net/tipc/node.c 		if ((pb_id != bearer_id) && n->links[pb_id].link) {
link             1677 net/tipc/node.c 			pl = n->links[pb_id].link;
link             1842 net/tipc/node.c 	else if (unlikely(tipc_link_acked(n->bc_entry.link) != bc_ack))
link             1843 net/tipc/node.c 		tipc_bcast_ack_rcv(net, n->bc_entry.link, hdr);
link             1849 net/tipc/node.c 		if (le->link) {
link             1850 net/tipc/node.c 			rc = tipc_link_rcv(le->link, skb, &xmitq);
link             1863 net/tipc/node.c 			if (le->link) {
link             1864 net/tipc/node.c 				rc = tipc_link_rcv(le->link, skb, &xmitq);
link             1910 net/tipc/node.c 		if (e->link) {
link             1912 net/tipc/node.c 				tipc_link_set_tolerance(e->link, b->tolerance,
link             1915 net/tipc/node.c 				tipc_link_set_mtu(e->link, b->mtu);
link             2062 net/tipc/node.c 			l = n->links[i].link;
link             2084 net/tipc/node.c 	struct tipc_link *link;
link             2115 net/tipc/node.c 	link = node->links[bearer_id].link;
link             2116 net/tipc/node.c 	if (!link) {
link             2135 net/tipc/node.c 			tipc_link_set_tolerance(link, tol, &xmitq);
link             2141 net/tipc/node.c 			tipc_link_set_prio(link, prio, &xmitq);
link             2147 net/tipc/node.c 			tipc_link_set_queue_limits(link, win);
link             2193 net/tipc/node.c 		struct tipc_link *link;
link             2202 net/tipc/node.c 		link = node->links[bearer_id].link;
link             2203 net/tipc/node.c 		if (!link) {
link             2209 net/tipc/node.c 		err = __tipc_nl_add_link(net, &msg, link, 0);
link             2227 net/tipc/node.c 	struct tipc_link *link;
link             2261 net/tipc/node.c 	link = node->links[bearer_id].link;
link             2262 net/tipc/node.c 	if (!link) {
link             2267 net/tipc/node.c 	tipc_link_reset_stats(link);
link             2283 net/tipc/node.c 		if (!node->links[i].link)
link             2287 net/tipc/node.c 					 node->links[i].link, NLM_F_MULTI);
link             2576 net/tipc/node.c 	i += tipc_link_dump(n->links[0].link, TIPC_DUMP_NONE, buf + i);
link             2585 net/tipc/node.c 	i += tipc_link_dump(n->links[1].link, TIPC_DUMP_NONE, buf + i);
link             2590 net/tipc/node.c 	i += tipc_link_dump(n->bc_entry.link, TIPC_DUMP_NONE, buf + i);
link              788 net/unix/af_unix.c 	INIT_LIST_HEAD(&u->link);
link              154 net/unix/garbage.c 			BUG_ON(!list_empty(&u->link));
link              155 net/unix/garbage.c 			list_add_tail(&u->link, &embryos);
link              160 net/unix/garbage.c 			u = list_entry(embryos.next, struct unix_sock, link);
link              162 net/unix/garbage.c 			list_del_init(&u->link);
link              185 net/unix/garbage.c 		list_move_tail(&u->link, &gc_candidates);
link              232 net/unix/garbage.c 	list_for_each_entry_safe(u, next, &gc_inflight_list, link) {
link              242 net/unix/garbage.c 			list_move_tail(&u->link, &gc_candidates);
link              251 net/unix/garbage.c 	list_for_each_entry(u, &gc_candidates, link)
link              263 net/unix/garbage.c 		u = list_entry(cursor.next, struct unix_sock, link);
link              266 net/unix/garbage.c 		list_move(&cursor, &u->link);
link              269 net/unix/garbage.c 			list_move_tail(&u->link, &not_cycle_list);
link              281 net/unix/garbage.c 	list_for_each_entry(u, &gc_candidates, link)
link              288 net/unix/garbage.c 		u = list_entry(not_cycle_list.next, struct unix_sock, link);
link              290 net/unix/garbage.c 		list_move_tail(&u->link, &gc_inflight_list);
link               57 net/unix/scm.c 			BUG_ON(!list_empty(&u->link));
link               58 net/unix/scm.c 			list_add_tail(&u->link, &gc_inflight_list);
link               60 net/unix/scm.c 			BUG_ON(list_empty(&u->link));
link               78 net/unix/scm.c 		BUG_ON(list_empty(&u->link));
link               81 net/unix/scm.c 			list_del_init(&u->link);
link              385 net/xfrm/xfrm_interface.c 	fl.flowi_oif = xi->p.link;
link              516 net/xfrm/xfrm_interface.c 	if (xi->p.link != p->link)
link              571 net/xfrm/xfrm_interface.c 	return xi->p.link;
link              601 net/xfrm/xfrm_interface.c 	struct net_device *phydev = __dev_get_by_index(xi->net, xi->p.link);
link              648 net/xfrm/xfrm_interface.c 		parms->link = nla_get_u32(data[IFLA_XFRM_LINK]);
link              717 net/xfrm/xfrm_interface.c 	if (nla_put_u32(skb, IFLA_XFRM_LINK, parm->link) ||
link             2638 net/xfrm/xfrm_user.c 	const struct xfrm_link *link;
link             2649 net/xfrm/xfrm_user.c 	link = &xfrm_dispatch[type];
link             2658 net/xfrm/xfrm_user.c 		if (link->dump == NULL)
link             2663 net/xfrm/xfrm_user.c 				.start = link->start,
link             2664 net/xfrm/xfrm_user.c 				.dump = link->dump,
link             2665 net/xfrm/xfrm_user.c 				.done = link->done,
link             2672 net/xfrm/xfrm_user.c 				     link->nla_max ? : XFRMA_MAX,
link             2673 net/xfrm/xfrm_user.c 				     link->nla_pol ? : xfrma_policy, extack);
link             2677 net/xfrm/xfrm_user.c 	if (link->doit == NULL)
link             2680 net/xfrm/xfrm_user.c 	return link->doit(skb, nlh, attrs);
link              608 samples/bpf/xdp_redirect_cpu_user.c 	struct bpf_link *link;
link              623 samples/bpf/xdp_redirect_cpu_user.c 	link = bpf_program__attach_tracepoint(prog, tp_category, tp_name);
link              624 samples/bpf/xdp_redirect_cpu_user.c 	if (IS_ERR(link))
link              627 samples/bpf/xdp_redirect_cpu_user.c 	return link;
link              137 scripts/insert-sys-cert.c 	unsigned int link;
link              142 scripts/insert-sys-cert.c 	link = symtab->sh_link;
link              145 scripts/insert-sys-cert.c 	strtab = (void *)hdr + x[link].sh_offset;
link              182 security/apparmor/apparmorfs.c 			       umode_t mode, void *data, char *link,
link              205 security/apparmor/apparmorfs.c 		inode->i_link = link;
link              232 security/apparmor/apparmorfs.c 				  struct dentry *parent, void *data, void *link,
link              264 security/apparmor/apparmorfs.c 	error = __aafs_setup_d_inode(dir, dentry, mode, data, link, fops, iops);
link              331 security/apparmor/apparmorfs.c 	char *link = NULL;
link              334 security/apparmor/apparmorfs.c 		if (!link)
link              337 security/apparmor/apparmorfs.c 	dent = aafs_create(name, S_IFLNK | 0444, parent, private, link, NULL,
link              340 security/apparmor/apparmorfs.c 		kfree(link);
link              356 security/apparmor/file.c static inline bool xindex_is_subset(u32 link, u32 target)
link              358 security/apparmor/file.c 	if (((link & ~AA_X_UNSAFE) != (target & ~AA_X_UNSAFE)) ||
link              359 security/apparmor/file.c 	    ((link & AA_X_UNSAFE) && !(target & AA_X_UNSAFE)))
link              366 security/apparmor/file.c 			     const struct path *link, char *buffer,
link              377 security/apparmor/file.c 	error = path_name(OP_LINK, &profile->label, link, profile->path_flags,
link              467 security/apparmor/file.c 	struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry };
link              480 security/apparmor/file.c 			profile_path_link(profile, &link, buffer, &target,
link              266 security/inode.c 	char *link = NULL;
link              269 security/inode.c 		link = kstrdup(target, GFP_KERNEL);
link              270 security/inode.c 		if (!link)
link              274 security/inode.c 					link, NULL, iops);
link              276 security/inode.c 		kfree(link);
link              705 security/keys/key.c 	list_for_each_entry(ktype, &key_types_list, link) {
link             1138 security/keys/key.c 	list_for_each_entry(p, &key_types_list, link) {
link             1144 security/keys/key.c 	list_add(&ktype->link, &key_types_list);
link             1166 security/keys/key.c 	list_del_init(&ktype->link);
link             1184 security/keys/key.c 	list_add_tail(&key_type_keyring.link, &key_types_list);
link             1185 security/keys/key.c 	list_add_tail(&key_type_dead.link, &key_types_list);
link             1186 security/keys/key.c 	list_add_tail(&key_type_user.link, &key_types_list);
link             1187 security/keys/key.c 	list_add_tail(&key_type_logon.link, &key_types_list);
link              163 sound/hda/ext/hdac_ext_controller.c static int check_hdac_link_power_active(struct hdac_ext_link *link, bool enable)
link              173 sound/hda/ext/hdac_ext_controller.c 		val = readl(link->ml_addr + AZX_REG_ML_LCTL);
link              191 sound/hda/ext/hdac_ext_controller.c int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *link)
link              193 sound/hda/ext/hdac_ext_controller.c 	snd_hdac_updatel(link->ml_addr, AZX_REG_ML_LCTL,
link              196 sound/hda/ext/hdac_ext_controller.c 	return check_hdac_link_power_active(link, true);
link              204 sound/hda/ext/hdac_ext_controller.c int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *link)
link              206 sound/hda/ext/hdac_ext_controller.c 	snd_hdac_updatel(link->ml_addr, AZX_REG_ML_LCTL, AZX_MLCTL_SPA, 0);
link              208 sound/hda/ext/hdac_ext_controller.c 	return check_hdac_link_power_active(link, false);
link              255 sound/hda/ext/hdac_ext_controller.c 				struct hdac_ext_link *link)
link              266 sound/hda/ext/hdac_ext_controller.c 	if (++link->ref_count == 1) {
link              272 sound/hda/ext/hdac_ext_controller.c 		ret = snd_hdac_ext_bus_link_power_up(link);
link              277 sound/hda/ext/hdac_ext_controller.c 		snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV,
link              297 sound/hda/ext/hdac_ext_controller.c 				struct hdac_ext_link *link)
link              309 sound/hda/ext/hdac_ext_controller.c 	if (--link->ref_count == 0) {
link              310 sound/hda/ext/hdac_ext_controller.c 		ret = snd_hdac_ext_bus_link_power_down(link);
link              224 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_link_set_stream_id(struct hdac_ext_link *link,
link              227 sound/hda/ext/hdac_ext_stream.c 	snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 1 << stream);
link              236 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_link_clear_stream_id(struct hdac_ext_link *link,
link              239 sound/hda/ext/hdac_ext_stream.c 	snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 0);
link               46 sound/pcmcia/pdaudiocf/pdaudiocf.c static int pdacf_config(struct pcmcia_device *link);
link               49 sound/pcmcia/pdaudiocf/pdaudiocf.c static void pdacf_release(struct pcmcia_device *link)
link               51 sound/pcmcia/pdaudiocf/pdaudiocf.c 	free_irq(link->irq, link->priv);
link               52 sound/pcmcia/pdaudiocf/pdaudiocf.c 	pcmcia_disable_device(link);
link               60 sound/pcmcia/pdaudiocf/pdaudiocf.c 	struct pcmcia_device *link = pdacf->p_dev;
link               62 sound/pcmcia/pdaudiocf/pdaudiocf.c 	pdacf_release(link);
link               80 sound/pcmcia/pdaudiocf/pdaudiocf.c static int snd_pdacf_probe(struct pcmcia_device *link)
link              103 sound/pcmcia/pdaudiocf/pdaudiocf.c 	err = snd_card_new(&link->dev, index[i], id[i], THIS_MODULE,
link              126 sound/pcmcia/pdaudiocf/pdaudiocf.c 	pdacf->p_dev = link;
link              127 sound/pcmcia/pdaudiocf/pdaudiocf.c 	link->priv = pdacf;
link              129 sound/pcmcia/pdaudiocf/pdaudiocf.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
link              130 sound/pcmcia/pdaudiocf/pdaudiocf.c 	link->resource[0]->end = 16;
link              132 sound/pcmcia/pdaudiocf/pdaudiocf.c 	link->config_flags = CONF_ENABLE_IRQ | CONF_ENABLE_PULSE_IRQ;
link              133 sound/pcmcia/pdaudiocf/pdaudiocf.c 	link->config_index = 1;
link              134 sound/pcmcia/pdaudiocf/pdaudiocf.c 	link->config_regs = PRESENT_OPTION;
link              136 sound/pcmcia/pdaudiocf/pdaudiocf.c 	return pdacf_config(link);
link              183 sound/pcmcia/pdaudiocf/pdaudiocf.c static void snd_pdacf_detach(struct pcmcia_device *link)
link              185 sound/pcmcia/pdaudiocf/pdaudiocf.c 	struct snd_pdacf *chip = link->priv;
link              200 sound/pcmcia/pdaudiocf/pdaudiocf.c static int pdacf_config(struct pcmcia_device *link)
link              202 sound/pcmcia/pdaudiocf/pdaudiocf.c 	struct snd_pdacf *pdacf = link->priv;
link              206 sound/pcmcia/pdaudiocf/pdaudiocf.c 	link->config_index = 0x5;
link              207 sound/pcmcia/pdaudiocf/pdaudiocf.c 	link->config_flags |= CONF_ENABLE_IRQ | CONF_ENABLE_PULSE_IRQ;
link              209 sound/pcmcia/pdaudiocf/pdaudiocf.c 	ret = pcmcia_request_io(link);
link              213 sound/pcmcia/pdaudiocf/pdaudiocf.c 	ret = request_threaded_irq(link->irq, pdacf_interrupt,
link              215 sound/pcmcia/pdaudiocf/pdaudiocf.c 				   IRQF_SHARED, link->devname, link->priv);
link              219 sound/pcmcia/pdaudiocf/pdaudiocf.c 	ret = pcmcia_enable_device(link);
link              223 sound/pcmcia/pdaudiocf/pdaudiocf.c 	if (snd_pdacf_assign_resources(pdacf, link->resource[0]->start,
link              224 sound/pcmcia/pdaudiocf/pdaudiocf.c 					link->irq) < 0)
link              230 sound/pcmcia/pdaudiocf/pdaudiocf.c 	free_irq(link->irq, link->priv);
link              232 sound/pcmcia/pdaudiocf/pdaudiocf.c 	pcmcia_disable_device(link);
link              238 sound/pcmcia/pdaudiocf/pdaudiocf.c static int pdacf_suspend(struct pcmcia_device *link)
link              240 sound/pcmcia/pdaudiocf/pdaudiocf.c 	struct snd_pdacf *chip = link->priv;
link              251 sound/pcmcia/pdaudiocf/pdaudiocf.c static int pdacf_resume(struct pcmcia_device *link)
link              253 sound/pcmcia/pdaudiocf/pdaudiocf.c 	struct snd_pdacf *chip = link->priv;
link              256 sound/pcmcia/pdaudiocf/pdaudiocf.c 	if (pcmcia_dev_present(link)) {
link               51 sound/pcmcia/vx/vxpocket.c static void vxpocket_release(struct pcmcia_device *link)
link               53 sound/pcmcia/vx/vxpocket.c 	free_irq(link->irq, link->priv);
link               54 sound/pcmcia/vx/vxpocket.c 	pcmcia_disable_device(link);
link              124 sound/pcmcia/vx/vxpocket.c 			    struct pcmcia_device *link,
link              148 sound/pcmcia/vx/vxpocket.c 	vxp->p_dev = link;
link              149 sound/pcmcia/vx/vxpocket.c 	link->priv = chip;
link              151 sound/pcmcia/vx/vxpocket.c 	link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
link              152 sound/pcmcia/vx/vxpocket.c 	link->resource[0]->end = 16;
link              154 sound/pcmcia/vx/vxpocket.c 	link->config_flags |= CONF_ENABLE_IRQ;
link              155 sound/pcmcia/vx/vxpocket.c 	link->config_index = 1;
link              156 sound/pcmcia/vx/vxpocket.c 	link->config_regs = PRESENT_OPTION;
link              200 sound/pcmcia/vx/vxpocket.c static int vxpocket_config(struct pcmcia_device *link)
link              202 sound/pcmcia/vx/vxpocket.c 	struct vx_core *chip = link->priv;
link              208 sound/pcmcia/vx/vxpocket.c 	if (!strcmp(link->prod_id[1], "VX-POCKET")) {
link              218 sound/pcmcia/vx/vxpocket.c 	ret = pcmcia_request_io(link);
link              222 sound/pcmcia/vx/vxpocket.c 	ret = request_threaded_irq(link->irq, snd_vx_irq_handler,
link              224 sound/pcmcia/vx/vxpocket.c 				   IRQF_SHARED, link->devname, link->priv);
link              228 sound/pcmcia/vx/vxpocket.c 	ret = pcmcia_enable_device(link);
link              232 sound/pcmcia/vx/vxpocket.c 	chip->dev = &link->dev;
link              234 sound/pcmcia/vx/vxpocket.c 	if (snd_vxpocket_assign_resources(chip, link->resource[0]->start,
link              235 sound/pcmcia/vx/vxpocket.c 						link->irq) < 0)
link              241 sound/pcmcia/vx/vxpocket.c 	free_irq(link->irq, link->priv);
link              243 sound/pcmcia/vx/vxpocket.c 	pcmcia_disable_device(link);
link              249 sound/pcmcia/vx/vxpocket.c static int vxp_suspend(struct pcmcia_device *link)
link              251 sound/pcmcia/vx/vxpocket.c 	struct vx_core *chip = link->priv;
link              262 sound/pcmcia/vx/vxpocket.c static int vxp_resume(struct pcmcia_device *link)
link              264 sound/pcmcia/vx/vxpocket.c 	struct vx_core *chip = link->priv;
link              267 sound/pcmcia/vx/vxpocket.c 	if (pcmcia_dev_present(link)) {
link              325 sound/pcmcia/vx/vxpocket.c static void vxpocket_detach(struct pcmcia_device *link)
link              330 sound/pcmcia/vx/vxpocket.c 	if (! link)
link              333 sound/pcmcia/vx/vxpocket.c 	vxp = link->priv;
link              339 sound/pcmcia/vx/vxpocket.c 	vxpocket_release(link);
link               94 sound/soc/fsl/fsl_dma.c 	struct fsl_dma_link_descriptor link[NUM_DMA_LINKS];
link              162 sound/soc/fsl/fsl_dma.c 	struct fsl_dma_link_descriptor *link =
link              163 sound/soc/fsl/fsl_dma.c 		&dma_private->link[dma_private->current_link];
link              170 sound/soc/fsl/fsl_dma.c 		link->source_addr = cpu_to_be32(dma_private->dma_buf_next);
link              172 sound/soc/fsl/fsl_dma.c 		link->source_attr = cpu_to_be32(CCSR_DMA_ATR_SNOOP |
link              176 sound/soc/fsl/fsl_dma.c 		link->dest_addr = cpu_to_be32(dma_private->dma_buf_next);
link              178 sound/soc/fsl/fsl_dma.c 		link->dest_attr = cpu_to_be32(CCSR_DMA_ATR_SNOOP |
link              461 sound/soc/fsl/fsl_dma.c 		dma_private->link[i].next = cpu_to_be64(temp_link);
link              466 sound/soc/fsl/fsl_dma.c 	dma_private->link[i - 1].next = cpu_to_be64(dma_private->ld_buf_phys);
link              644 sound/soc/fsl/fsl_dma.c 		struct fsl_dma_link_descriptor *link = &dma_private->link[i];
link              646 sound/soc/fsl/fsl_dma.c 		link->count = cpu_to_be32(period_size);
link              666 sound/soc/fsl/fsl_dma.c 			link->source_addr = cpu_to_be32(temp_addr);
link              667 sound/soc/fsl/fsl_dma.c 			link->source_attr = cpu_to_be32(CCSR_DMA_ATR_SNOOP |
link              670 sound/soc/fsl/fsl_dma.c 			link->dest_addr = cpu_to_be32(ssi_sxx_phys);
link              671 sound/soc/fsl/fsl_dma.c 			link->dest_attr = cpu_to_be32(CCSR_DMA_ATR_NOSNOOP |
link              674 sound/soc/fsl/fsl_dma.c 			link->source_addr = cpu_to_be32(ssi_sxx_phys);
link              675 sound/soc/fsl/fsl_dma.c 			link->source_attr = cpu_to_be32(CCSR_DMA_ATR_NOSNOOP |
link              678 sound/soc/fsl/fsl_dma.c 			link->dest_addr = cpu_to_be32(temp_addr);
link              679 sound/soc/fsl/fsl_dma.c 			link->dest_attr = cpu_to_be32(CCSR_DMA_ATR_SNOOP |
link              208 sound/soc/generic/audio-graph-card.c 	struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
link              209 sound/soc/generic/audio-graph-card.c 	struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
link              228 sound/soc/generic/audio-graph-card.c 	li->link++;
link              338 sound/soc/generic/audio-graph-card.c 	struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
link              339 sound/soc/generic/audio-graph-card.c 	struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
link              351 sound/soc/generic/audio-graph-card.c 	li->link++;
link              522 sound/soc/generic/audio-graph-card.c 	li->link += 1; /* 1xCPU-Codec */
link              538 sound/soc/generic/audio-graph-card.c 	li->link++; /* 1xCPU-dummy */
link              542 sound/soc/generic/audio-graph-card.c 		li->link++; /* 1xdummy-Codec */
link              607 sound/soc/generic/audio-graph-card.c 		li->link, li->dais, li->conf);
link              648 sound/soc/generic/audio-graph-card.c 	if (!li.link || !li.dais)
link              559 sound/soc/generic/simple-card-utils.c 	dai_props = devm_kcalloc(dev, li->link, sizeof(*dai_props), GFP_KERNEL);
link              560 sound/soc/generic/simple-card-utils.c 	dai_link  = devm_kcalloc(dev, li->link, sizeof(*dai_link),  GFP_KERNEL);
link              581 sound/soc/generic/simple-card-utils.c 	for (i = 0; i < li->link; i++) {
link              596 sound/soc/generic/simple-card-utils.c 	card->num_links		= li->link;
link              122 sound/soc/generic/simple-card.c 	struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
link              123 sound/soc/generic/simple-card.c 	struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
link              143 sound/soc/generic/simple-card.c 	li->link++;
link              251 sound/soc/generic/simple-card.c 	struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
link              252 sound/soc/generic/simple-card.c 	struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
link              274 sound/soc/generic/simple-card.c 	li->link++;
link              513 sound/soc/generic/simple-card.c 		li->link++; /* CPU-Codec */
link              524 sound/soc/generic/simple-card.c 	li->link++; /* CPU-dummy or dummy-Codec */
link              584 sound/soc/generic/simple-card.c 		li->link = 1;
link              595 sound/soc/generic/simple-card.c 		li->link, li->dais, li->conf);
link              635 sound/soc/generic/simple-card.c 	if (!li.link || !li.dais)
link               70 sound/soc/intel/boards/skl_hda_dsp_generic.c skl_hda_add_dai_link(struct snd_soc_card *card, struct snd_soc_dai_link *link)
link               75 sound/soc/intel/boards/skl_hda_dsp_generic.c 	dev_dbg(card->dev, "%s: dai link name - %s\n", __func__, link->name);
link               76 sound/soc/intel/boards/skl_hda_dsp_generic.c 	link->platforms->name = ctx->platform_name;
link               77 sound/soc/intel/boards/skl_hda_dsp_generic.c 	link->nonatomic = 1;
link               79 sound/soc/intel/boards/skl_hda_dsp_generic.c 	if (strstr(link->name, "HDMI")) {
link              186 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_link *link;
link              208 sound/soc/intel/skylake/skl-pcm.c 		list_for_each_entry(link, &bus->hlink_list, list) {
link              209 sound/soc/intel/skylake/skl-pcm.c 			if (link->index == params->link_index)
link              210 sound/soc/intel/skylake/skl-pcm.c 				snd_hdac_ext_link_set_stream_id(link,
link              563 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_link *link;
link              573 sound/soc/intel/skylake/skl-pcm.c 	link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name);
link              574 sound/soc/intel/skylake/skl-pcm.c 	if (!link)
link              590 sound/soc/intel/skylake/skl-pcm.c 	p_params.link_index = link->index;
link              653 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_link *link;
link              660 sound/soc/intel/skylake/skl-pcm.c 	link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name);
link              661 sound/soc/intel/skylake/skl-pcm.c 	if (!link)
link              666 sound/soc/intel/skylake/skl-pcm.c 		snd_hdac_ext_link_clear_stream_id(link, stream_tag);
link               94 sound/soc/meson/axg-card.c 				  struct snd_soc_dai_link *link,
link              103 sound/soc/meson/axg-card.c 	link->name = name;
link              104 sound/soc/meson/axg-card.c 	link->stream_name = name;
link              112 sound/soc/meson/axg-card.c 	struct snd_soc_dai_link *link;
link              118 sound/soc/meson/axg-card.c 		for_each_card_prelinks(card, i, link) {
link              119 sound/soc/meson/axg-card.c 			if (link->cpus)
link              120 sound/soc/meson/axg-card.c 				of_node_put(link->cpus->of_node);
link              121 sound/soc/meson/axg-card.c 			for_each_link_codecs(link, j, codec)
link              334 sound/soc/meson/axg-card.c 					struct snd_soc_dai_link *link,
link              357 sound/soc/meson/axg-card.c 		link->dpcm_playback = 0;
link              367 sound/soc/meson/axg-card.c 		link->dpcm_capture = 0;
link              397 sound/soc/meson/axg-card.c 				       struct snd_soc_dai_link *link,
link              404 sound/soc/meson/axg-card.c 	codec_mask = devm_kcalloc(card->dev, link->num_codecs,
link              428 sound/soc/meson/axg-card.c 	struct snd_soc_dai_link *link = &card->dai_link[*index];
link              439 sound/soc/meson/axg-card.c 	link->ops = &axg_card_tdm_be_ops;
link              440 sound/soc/meson/axg-card.c 	link->init = axg_card_tdm_dai_init;
link              441 sound/soc/meson/axg-card.c 	link->dai_fmt = axg_card_parse_daifmt(node, link->cpus->of_node);
link              445 sound/soc/meson/axg-card.c 	ret = axg_card_parse_cpu_tdm_slots(card, link, node, be);
link              451 sound/soc/meson/axg-card.c 	ret = axg_card_parse_codecs_masks(card, link, node, be);
link              456 sound/soc/meson/axg-card.c 	if (link->dpcm_playback) {
link              466 sound/soc/meson/axg-card.c 				struct snd_soc_dai_link *link,
link              473 sound/soc/meson/axg-card.c 	link->no_pcm = 1;
link              474 sound/soc/meson/axg-card.c 	link->dpcm_playback = 1;
link              475 sound/soc/meson/axg-card.c 	link->dpcm_capture = 1;
link              488 sound/soc/meson/axg-card.c 	link->codecs = codec;
link              489 sound/soc/meson/axg-card.c 	link->num_codecs = num_codecs;
link              502 sound/soc/meson/axg-card.c 	ret = axg_card_set_link_name(card, link, node, "be");
link              510 sound/soc/meson/axg-card.c 				struct snd_soc_dai_link *link,
link              520 sound/soc/meson/axg-card.c 	link->codecs = codec;
link              521 sound/soc/meson/axg-card.c 	link->num_codecs = 1;
link              523 sound/soc/meson/axg-card.c 	link->dynamic = 1;
link              524 sound/soc/meson/axg-card.c 	link->dpcm_merged_format = 1;
link              525 sound/soc/meson/axg-card.c 	link->dpcm_merged_chan = 1;
link              526 sound/soc/meson/axg-card.c 	link->dpcm_merged_rate = 1;
link              527 sound/soc/meson/axg-card.c 	link->codecs->dai_name = "snd-soc-dummy-dai";
link              528 sound/soc/meson/axg-card.c 	link->codecs->name = "snd-soc-dummy";
link              531 sound/soc/meson/axg-card.c 		link->dpcm_playback = 1;
link              533 sound/soc/meson/axg-card.c 		link->dpcm_capture = 1;
link              535 sound/soc/meson/axg-card.c 	return axg_card_set_link_name(card, link, node, "fe");
link              117 sound/soc/qcom/apq8016_sbc.c 	struct snd_soc_dai_link *link;
link              151 sound/soc/qcom/apq8016_sbc.c 	link = data->dai_link;
link              158 sound/soc/qcom/apq8016_sbc.c 		link->cpus	= &dlc[0];
link              159 sound/soc/qcom/apq8016_sbc.c 		link->platforms	= &dlc[1];
link              161 sound/soc/qcom/apq8016_sbc.c 		link->num_cpus		= 1;
link              162 sound/soc/qcom/apq8016_sbc.c 		link->num_platforms	= 1;
link              173 sound/soc/qcom/apq8016_sbc.c 		link->cpus->of_node = of_parse_phandle(cpu, "sound-dai", 0);
link              174 sound/soc/qcom/apq8016_sbc.c 		if (!link->cpus->of_node) {
link              180 sound/soc/qcom/apq8016_sbc.c 		ret = snd_soc_of_get_dai_name(cpu, &link->cpus->dai_name);
link              186 sound/soc/qcom/apq8016_sbc.c 		ret = snd_soc_of_get_dai_link_codecs(dev, codec, link);
link              193 sound/soc/qcom/apq8016_sbc.c 		link->platforms->of_node = link->cpus->of_node;
link              194 sound/soc/qcom/apq8016_sbc.c 		ret = of_property_read_string(np, "link-name", &link->name);
link              200 sound/soc/qcom/apq8016_sbc.c 		link->stream_name = link->name;
link              201 sound/soc/qcom/apq8016_sbc.c 		link->init = apq8016_sbc_dai_init;
link              202 sound/soc/qcom/apq8016_sbc.c 		link++;
link               94 sound/soc/qcom/apq8096.c 	struct snd_soc_dai_link *link;
link               97 sound/soc/qcom/apq8096.c 	for_each_card_prelinks(card, i, link) {
link               98 sound/soc/qcom/apq8096.c 		if (link->no_pcm == 1) {
link               99 sound/soc/qcom/apq8096.c 			link->be_hw_params_fixup = apq8096_be_hw_params_fixup;
link              100 sound/soc/qcom/apq8096.c 			link->init = apq8096_init;
link              101 sound/soc/qcom/apq8096.c 			link->ops = &apq8096_ops;
link               15 sound/soc/qcom/common.c 	struct snd_soc_dai_link *link;
link               38 sound/soc/qcom/common.c 	card->dai_link = kcalloc(num_links, sizeof(*link), GFP_KERNEL);
link               43 sound/soc/qcom/common.c 	link = card->dai_link;
link               50 sound/soc/qcom/common.c 		link->cpus	= &dlc[0];
link               51 sound/soc/qcom/common.c 		link->platforms	= &dlc[1];
link               53 sound/soc/qcom/common.c 		link->num_cpus		= 1;
link               54 sound/soc/qcom/common.c 		link->num_platforms	= 1;
link               56 sound/soc/qcom/common.c 		ret = of_property_read_string(np, "link-name", &link->name);
link               67 sound/soc/qcom/common.c 			dev_err(dev, "%s: Can't find cpu DT node\n", link->name);
link               75 sound/soc/qcom/common.c 			dev_err(card->dev, "%s: error getting cpu phandle\n", link->name);
link               78 sound/soc/qcom/common.c 		link->cpus->of_node = args.np;
link               79 sound/soc/qcom/common.c 		link->id = args.args[0];
link               81 sound/soc/qcom/common.c 		ret = snd_soc_of_get_dai_name(cpu, &link->cpus->dai_name);
link               83 sound/soc/qcom/common.c 			dev_err(card->dev, "%s: error getting cpu dai name\n", link->name);
link               88 sound/soc/qcom/common.c 			link->platforms->of_node = of_parse_phandle(platform,
link               91 sound/soc/qcom/common.c 			if (!link->platforms->of_node) {
link               92 sound/soc/qcom/common.c 				dev_err(card->dev, "%s: platform dai not found\n", link->name);
link               97 sound/soc/qcom/common.c 			ret = snd_soc_of_get_dai_link_codecs(dev, codec, link);
link               99 sound/soc/qcom/common.c 				dev_err(card->dev, "%s: codec dai not found\n", link->name);
link              102 sound/soc/qcom/common.c 			link->no_pcm = 1;
link              103 sound/soc/qcom/common.c 			link->ignore_pmdown_time = 1;
link              109 sound/soc/qcom/common.c 			link->codecs	 = dlc;
link              110 sound/soc/qcom/common.c 			link->num_codecs = 1;
link              112 sound/soc/qcom/common.c 			link->platforms->of_node = link->cpus->of_node;
link              113 sound/soc/qcom/common.c 			link->codecs->dai_name = "snd-soc-dummy-dai";
link              114 sound/soc/qcom/common.c 			link->codecs->name = "snd-soc-dummy";
link              115 sound/soc/qcom/common.c 			link->dynamic = 1;
link              118 sound/soc/qcom/common.c 		link->ignore_suspend = 1;
link              119 sound/soc/qcom/common.c 		link->nonatomic = 1;
link              120 sound/soc/qcom/common.c 		link->dpcm_playback = 1;
link              121 sound/soc/qcom/common.c 		link->dpcm_capture = 1;
link              122 sound/soc/qcom/common.c 		link->stream_name = link->name;
link              123 sound/soc/qcom/common.c 		link++;
link              380 sound/soc/qcom/sdm845.c 	struct snd_soc_dai_link *link;
link              383 sound/soc/qcom/sdm845.c 	for_each_card_prelinks(card, i, link) {
link              384 sound/soc/qcom/sdm845.c 		if (link->no_pcm == 1) {
link              385 sound/soc/qcom/sdm845.c 			link->ops = &sdm845_be_ops;
link              386 sound/soc/qcom/sdm845.c 			link->be_hw_params_fixup = sdm845_be_hw_params_fixup;
link              388 sound/soc/qcom/sdm845.c 		link->init = sdm845_dai_init;
link              206 sound/soc/samsung/odroid.c 	struct snd_soc_dai_link *link, *codec_link;
link              246 sound/soc/samsung/odroid.c 	link = card->dai_link;
link              262 sound/soc/samsung/odroid.c 	for (i = 0; i < num_pcms; i++, link += 2) {
link              274 sound/soc/samsung/odroid.c 		ret = snd_soc_get_dai_name(&args, &link->cpus->dai_name);
link              133 sound/soc/samsung/snow.c 	struct snd_soc_dai_link *link;
link              141 sound/soc/samsung/snow.c 	link = &priv->dai_link;
link              143 sound/soc/samsung/snow.c 	link->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
link              146 sound/soc/samsung/snow.c 	link->name = "Primary";
link              147 sound/soc/samsung/snow.c 	link->stream_name = link->name;
link              149 sound/soc/samsung/snow.c 	link->cpus = links_cpus;
link              150 sound/soc/samsung/snow.c 	link->num_cpus = ARRAY_SIZE(links_cpus);
link              151 sound/soc/samsung/snow.c 	link->codecs = links_codecs;
link              152 sound/soc/samsung/snow.c 	link->num_codecs = ARRAY_SIZE(links_codecs);
link              153 sound/soc/samsung/snow.c 	link->platforms = links_platforms;
link              154 sound/soc/samsung/snow.c 	link->num_platforms = ARRAY_SIZE(links_platforms);
link              156 sound/soc/samsung/snow.c 	card->dai_link = link;
link              164 sound/soc/samsung/snow.c 		link->ops = &snow_card_ops;
link              166 sound/soc/samsung/snow.c 		link->cpus->of_node = of_parse_phandle(cpu, "sound-dai", 0);
link              169 sound/soc/samsung/snow.c 		if (!link->cpus->of_node) {
link              175 sound/soc/samsung/snow.c 		ret = snd_soc_of_get_dai_link_codecs(dev, codec, link);
link              179 sound/soc/samsung/snow.c 			of_node_put(link->cpus->of_node);
link              184 sound/soc/samsung/snow.c 		priv->clk_i2s_bus = of_clk_get_by_name(link->cpus->of_node,
link              187 sound/soc/samsung/snow.c 			snd_soc_of_put_dai_link_codecs(link);
link              188 sound/soc/samsung/snow.c 			of_node_put(link->cpus->of_node);
link              192 sound/soc/samsung/snow.c 		link->codecs->dai_name = "HiFi",
link              194 sound/soc/samsung/snow.c 		link->cpus->of_node = of_parse_phandle(dev->of_node,
link              196 sound/soc/samsung/snow.c 		if (!link->cpus->of_node) {
link              201 sound/soc/samsung/snow.c 		link->codecs->of_node = of_parse_phandle(dev->of_node,
link              203 sound/soc/samsung/snow.c 		if (!link->codecs->of_node) {
link              204 sound/soc/samsung/snow.c 			of_node_put(link->cpus->of_node);
link              210 sound/soc/samsung/snow.c 	link->platforms->of_node = link->cpus->of_node;
link              229 sound/soc/samsung/snow.c 	struct snd_soc_dai_link *link = &priv->dai_link;
link              231 sound/soc/samsung/snow.c 	of_node_put(link->cpus->of_node);
link              232 sound/soc/samsung/snow.c 	of_node_put(link->codecs->of_node);
link              233 sound/soc/samsung/snow.c 	snd_soc_of_put_dai_link_codecs(link);
link              840 sound/soc/soc-core.c 	struct snd_soc_dai_link *link;
link              844 sound/soc/soc-core.c 	for_each_card_links(card, link) {
link              845 sound/soc/soc-core.c 		if (link->id != id)
link              848 sound/soc/soc-core.c 		if (name && (!link->name || strcmp(name, link->name)))
link              851 sound/soc/soc-core.c 		if (stream_name && (!link->stream_name
link              852 sound/soc/soc-core.c 			|| strcmp(stream_name, link->stream_name)))
link              855 sound/soc/soc-core.c 		return link;
link             1239 sound/soc/soc-core.c 	struct snd_soc_dai_link *link, *_link;
link             1245 sound/soc/soc-core.c 	for_each_card_links_safe(card, link, _link) {
link             1246 sound/soc/soc-core.c 		if (link->dobj.type == SND_SOC_DOBJ_DAI_LINK)
link             1248 sound/soc/soc-core.c 				link->name);
link             1250 sound/soc/soc-core.c 		list_del(&link->list);
link             1255 sound/soc/soc-core.c 			     struct snd_soc_dai_link *link)
link             1260 sound/soc/soc-core.c 	for_each_link_codecs(link, i, codec) {
link             1267 sound/soc/soc-core.c 				link->name);
link             1274 sound/soc/soc-core.c 				link->name);
link             1286 sound/soc/soc-core.c 	for_each_link_platforms(link, i, platform) {
link             1295 sound/soc/soc-core.c 				link->name);
link             1308 sound/soc/soc-core.c 	if (link->num_cpus > 1) {
link             1311 sound/soc/soc-core.c 			link->name);
link             1320 sound/soc/soc-core.c 	if (link->cpus->name && link->cpus->of_node) {
link             1323 sound/soc/soc-core.c 			link->name);
link             1331 sound/soc/soc-core.c 	if ((link->cpus->of_node || link->cpus->name) &&
link             1332 sound/soc/soc-core.c 	    !soc_find_component(link->cpus))
link             1339 sound/soc/soc-core.c 	if (!link->cpus->dai_name &&
link             1340 sound/soc/soc-core.c 	    !(link->cpus->name || link->cpus->of_node)) {
link             1343 sound/soc/soc-core.c 			link->name);
link              291 sound/soc/soc-pcm.c 	struct snd_soc_dai_link *link = rtd->dai_link;
link              295 sound/soc/soc-pcm.c 	symmetry = cpu_driver->symmetric_rates || link->symmetric_rates ||
link              296 sound/soc/soc-pcm.c 		cpu_driver->symmetric_channels || link->symmetric_channels ||
link              297 sound/soc/soc-pcm.c 		cpu_driver->symmetric_samplebits || link->symmetric_samplebits;
link              319 sound/soc/soc-topology.c 	struct snd_soc_dai_link *link, struct snd_soc_tplg_link_config *cfg)
link              322 sound/soc/soc-topology.c 		return tplg->ops->link_load(tplg->comp, tplg->index, link, cfg);
link              542 sound/soc/soc-topology.c 	struct snd_soc_dai_link *link =
link              552 sound/soc/soc-topology.c 	snd_soc_remove_dai_link(comp->card, link);
link              554 sound/soc/soc-topology.c 	kfree(link->name);
link              555 sound/soc/soc-topology.c 	kfree(link->stream_name);
link              556 sound/soc/soc-topology.c 	kfree(link->cpus->dai_name);
link              557 sound/soc/soc-topology.c 	kfree(link);
link             1870 sound/soc/soc-topology.c static void set_link_flags(struct snd_soc_dai_link *link,
link             1874 sound/soc/soc-topology.c 		link->symmetric_rates =
link             1878 sound/soc/soc-topology.c 		link->symmetric_channels =
link             1883 sound/soc/soc-topology.c 		link->symmetric_samplebits =
link             1888 sound/soc/soc-topology.c 		link->ignore_suspend =
link             1897 sound/soc/soc-topology.c 	struct snd_soc_dai_link *link;
link             1902 sound/soc/soc-topology.c 	link = kzalloc(sizeof(*link) + (3 * sizeof(*dlc)), GFP_KERNEL);
link             1903 sound/soc/soc-topology.c 	if (link == NULL)
link             1906 sound/soc/soc-topology.c 	dlc = (struct snd_soc_dai_link_component *)(link + 1);
link             1908 sound/soc/soc-topology.c 	link->cpus	= &dlc[0];
link             1909 sound/soc/soc-topology.c 	link->codecs	= &dlc[1];
link             1910 sound/soc/soc-topology.c 	link->platforms	= &dlc[2];
link             1912 sound/soc/soc-topology.c 	link->num_cpus	 = 1;
link             1913 sound/soc/soc-topology.c 	link->num_codecs = 1;
link             1914 sound/soc/soc-topology.c 	link->num_platforms = 1;
link             1916 sound/soc/soc-topology.c 	link->dobj.index = tplg->index;
link             1917 sound/soc/soc-topology.c 	link->dobj.ops = tplg->ops;
link             1918 sound/soc/soc-topology.c 	link->dobj.type = SND_SOC_DOBJ_DAI_LINK;
link             1921 sound/soc/soc-topology.c 		link->name = kstrdup(pcm->pcm_name, GFP_KERNEL);
link             1922 sound/soc/soc-topology.c 		link->stream_name = kstrdup(pcm->pcm_name, GFP_KERNEL);
link             1924 sound/soc/soc-topology.c 	link->id = le32_to_cpu(pcm->pcm_id);
link             1927 sound/soc/soc-topology.c 		link->cpus->dai_name = kstrdup(pcm->dai_name, GFP_KERNEL);
link             1929 sound/soc/soc-topology.c 	link->codecs->name = "snd-soc-dummy";
link             1930 sound/soc/soc-topology.c 	link->codecs->dai_name = "snd-soc-dummy-dai";
link             1932 sound/soc/soc-topology.c 	link->platforms->name = "snd-soc-dummy";
link             1935 sound/soc/soc-topology.c 	link->dynamic = 1;
link             1936 sound/soc/soc-topology.c 	link->dpcm_playback = le32_to_cpu(pcm->playback);
link             1937 sound/soc/soc-topology.c 	link->dpcm_capture = le32_to_cpu(pcm->capture);
link             1939 sound/soc/soc-topology.c 		set_link_flags(link,
link             1944 sound/soc/soc-topology.c 	ret = soc_tplg_dai_link_load(tplg, link, NULL);
link             1950 sound/soc/soc-topology.c 	ret = snd_soc_add_dai_link(tplg->comp->card, link);
link             1956 sound/soc/soc-topology.c 	list_add(&link->dobj.list, &tplg->comp->dobj_list);
link             1960 sound/soc/soc-topology.c 	kfree(link->name);
link             1961 sound/soc/soc-topology.c 	kfree(link->stream_name);
link             1962 sound/soc/soc-topology.c 	kfree(link->cpus->dai_name);
link             1963 sound/soc/soc-topology.c 	kfree(link);
link             2131 sound/soc/soc-topology.c static void set_link_hw_format(struct snd_soc_dai_link *link,
link             2144 sound/soc/soc-topology.c 		link->dai_fmt = le32_to_cpu(hw_config->fmt) &
link             2150 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_GATED;
link             2154 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_CONT;
link             2166 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_NB_NF;
link             2168 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_NB_IF;
link             2170 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_IB_NF;
link             2172 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_IB_IF;
link             2180 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
link             2182 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_CBS_CFM;
link             2184 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_CBM_CFS;
link             2186 sound/soc/soc-topology.c 			link->dai_fmt |= SND_SOC_DAIFMT_CBS_CFS;
link             2201 sound/soc/soc-topology.c 			struct snd_soc_tplg_link_config **link)
link             2207 sound/soc/soc-topology.c 	*link = NULL;
link             2229 sound/soc/soc-topology.c 	*link = dest;
link             2237 sound/soc/soc-topology.c 	struct snd_soc_dai_link *link;
link             2258 sound/soc/soc-topology.c 	link = snd_soc_find_dai_link(tplg->comp->card, le32_to_cpu(cfg->id),
link             2260 sound/soc/soc-topology.c 	if (!link) {
link             2268 sound/soc/soc-topology.c 		set_link_hw_format(link, cfg);
link             2272 sound/soc/soc-topology.c 		set_link_flags(link,
link             2277 sound/soc/soc-topology.c 	ret = soc_tplg_dai_link_load(tplg, link, cfg);
link             2284 sound/soc/soc-topology.c 	link->dobj.index = tplg->index;
link             2285 sound/soc/soc-topology.c 	link->dobj.ops = tplg->ops;
link             2286 sound/soc/soc-topology.c 	link->dobj.type = SND_SOC_DOBJ_BACKEND_LINK;
link             2287 sound/soc/soc-topology.c 	list_add(&link->dobj.list, &tplg->comp->dobj_list);
link             2297 sound/soc/soc-topology.c 	struct snd_soc_tplg_link_config *link, *_link;
link             2312 sound/soc/soc-topology.c 	link = (struct snd_soc_tplg_link_config *)tplg->pos;
link             2313 sound/soc/soc-topology.c 	size = le32_to_cpu(link->size);
link             2332 sound/soc/soc-topology.c 		link = (struct snd_soc_tplg_link_config *)tplg->pos;
link             2333 sound/soc/soc-topology.c 		size = le32_to_cpu(link->size);
link             2334 sound/soc/soc-topology.c 		if (size == sizeof(*link)) {
link             2336 sound/soc/soc-topology.c 			_link = link;
link             2339 sound/soc/soc-topology.c 			ret = link_new_ver(tplg, link, &_link);
link               56 sound/soc/sof/imx/imx8.c 	struct device_link **link;
link              215 sound/soc/sof/imx/imx8.c 	priv->link = devm_kmalloc_array(&pdev->dev, priv->num_domains,
link              216 sound/soc/sof/imx/imx8.c 					sizeof(*priv->link), GFP_KERNEL);
link              217 sound/soc/sof/imx/imx8.c 	if (!priv->link)
link              226 sound/soc/sof/imx/imx8.c 		priv->link[i] = device_link_add(&pdev->dev, priv->pd_dev[i],
link              230 sound/soc/sof/imx/imx8.c 		if (!priv->link[i]) {
link              316 sound/soc/sof/imx/imx8.c 		device_link_del(priv->link[i]);
link              331 sound/soc/sof/imx/imx8.c 		device_link_del(priv->link[i]);
link              125 sound/soc/sof/intel/hda-dai.c 	struct hdac_ext_link *link;
link              141 sound/soc/sof/intel/hda-dai.c 		list_for_each_entry(link, &bus->hlink_list, list) {
link              142 sound/soc/sof/intel/hda-dai.c 			if (link->index == params->link_index)
link              143 sound/soc/sof/intel/hda-dai.c 				snd_hdac_ext_link_set_stream_id(link,
link              209 sound/soc/sof/intel/hda-dai.c 	struct hdac_ext_link *link;
link              233 sound/soc/sof/intel/hda-dai.c 	link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name);
link              234 sound/soc/sof/intel/hda-dai.c 	if (!link)
link              248 sound/soc/sof/intel/hda-dai.c 	p_params.link_index = link->index;
link              285 sound/soc/sof/intel/hda-dai.c 	struct hdac_ext_link *link;
link              295 sound/soc/sof/intel/hda-dai.c 	link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name);
link              296 sound/soc/sof/intel/hda-dai.c 	if (!link)
link              330 sound/soc/sof/intel/hda-dai.c 			snd_hdac_ext_link_clear_stream_id(link, stream_tag);
link              351 sound/soc/sof/intel/hda-dai.c 	struct hdac_ext_link *link;
link              376 sound/soc/sof/intel/hda-dai.c 	link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name);
link              377 sound/soc/sof/intel/hda-dai.c 	if (!link)
link              382 sound/soc/sof/intel/hda-dai.c 		snd_hdac_ext_link_clear_stream_id(link, stream_tag);
link              432 sound/soc/sof/intel/hda-dsp.c 	struct hdac_ext_link *link;
link              450 sound/soc/sof/intel/hda-dsp.c 			link = snd_hdac_ext_bus_get_link(bus, name);
link              451 sound/soc/sof/intel/hda-dsp.c 			if (!link)
link              461 sound/soc/sof/intel/hda-dsp.c 			snd_hdac_ext_link_clear_stream_id(link, stream_tag);
link             2411 sound/soc/sof/topology.c 			      struct snd_soc_dai_link *link,
link             2421 sound/soc/sof/topology.c 		if (strcmp(link->name, dai->name) == 0) {
link             2427 sound/soc/sof/topology.c 			dai->cpu_dai_name = link->cpus->dai_name;
link             2440 sound/soc/sof/topology.c 			 link->name);
link             2447 sound/soc/sof/topology.c 			     struct snd_soc_dai_link *link,
link             2515 sound/soc/sof/topology.c 	ret = sof_set_dai_config(sdev, size, link, config);
link             2524 sound/soc/sof/topology.c 			     struct snd_soc_dai_link *link,
link             2534 sound/soc/sof/topology.c 			      struct snd_soc_dai_link *link,
link             2544 sound/soc/sof/topology.c 			      struct snd_soc_dai_link *link,
link             2658 sound/soc/sof/topology.c 	ret = sof_set_dai_config(sdev, size, link, ipc_config);
link             2676 sound/soc/sof/topology.c 				struct snd_soc_dai_link *link,
link             2689 sound/soc/sof/topology.c 		if (strcmp(link->name, sof_dai->name) == 0) {
link             2700 sound/soc/sof/topology.c 			sof_dai->cpu_dai_name = link->cpus->dai_name;
link             2724 sound/soc/sof/topology.c 			 link->name);
link             2731 sound/soc/sof/topology.c 			     struct snd_soc_dai_link *link,
link             2756 sound/soc/sof/topology.c 	dai = snd_soc_find_dai(link->cpus);
link             2759 sound/soc/sof/topology.c 			link->cpus->dai_name, __func__);
link             2763 sound/soc/sof/topology.c 	ret = sof_link_hda_process(sdev, link, config);
link             2766 sound/soc/sof/topology.c 			link->name);
link             2772 sound/soc/sof/topology.c 			     struct snd_soc_dai_link *link,
link             2797 sound/soc/sof/topology.c 	ret = sof_set_dai_config(sdev, size, link, config);
link             2807 sound/soc/sof/topology.c 			 struct snd_soc_dai_link *link,
link             2818 sound/soc/sof/topology.c 	if (!link->platforms) {
link             2822 sound/soc/sof/topology.c 	link->platforms->name = dev_name(sdev->dev);
link             2828 sound/soc/sof/topology.c 	if (!link->no_pcm) {
link             2829 sound/soc/sof/topology.c 		link->nonatomic = true;
link             2832 sound/soc/sof/topology.c 		link->trigger[0] = SND_SOC_DPCM_TRIGGER_POST;
link             2833 sound/soc/sof/topology.c 		link->trigger[1] = SND_SOC_DPCM_TRIGGER_POST;
link             2894 sound/soc/sof/topology.c 		ret = sof_link_ssp_load(scomp, index, link, cfg, hw_config,
link             2898 sound/soc/sof/topology.c 		ret = sof_link_dmic_load(scomp, index, link, cfg, hw_config,
link             2902 sound/soc/sof/topology.c 		ret = sof_link_hda_load(scomp, index, link, cfg, hw_config,
link             2906 sound/soc/sof/topology.c 		ret = sof_link_alh_load(scomp, index, link, cfg, hw_config,
link             2910 sound/soc/sof/topology.c 		ret = sof_link_sai_load(scomp, index, link, cfg, hw_config,
link             2914 sound/soc/sof/topology.c 		ret = sof_link_esai_load(scomp, index, link, cfg, hw_config,
link             2929 sound/soc/sof/topology.c 			       struct snd_soc_dai_link *link)
link             2934 sound/soc/sof/topology.c 	dai = snd_soc_find_dai(link->cpus);
link             2937 sound/soc/sof/topology.c 			link->cpus->dai_name, __func__);
link             2948 sound/soc/sof/topology.c 	struct snd_soc_dai_link *link =
link             2955 sound/soc/sof/topology.c 	if (!link->no_pcm)
link             2962 sound/soc/sof/topology.c 		if (strcmp(link->name, sof_dai->name) == 0)
link             2967 sound/soc/sof/topology.c 		link->name, __func__);
link             2978 sound/soc/sof/topology.c 		ret = sof_link_hda_unload(sdev, link);
link              142 sound/soc/sprd/sprd-pcm-compress.c 	struct sprd_dma_linklist link = { };
link              224 sound/soc/sprd/sprd-pcm-compress.c 	link.virt_addr = (unsigned long)dma->virt;
link              225 sound/soc/sprd/sprd-pcm-compress.c 	link.phy_addr = dma->phys;
link              240 sound/soc/sprd/sprd-pcm-compress.c 							    flags, &link);
link              242 sound/soc/sprd/sprd-pcm-dma.c 		struct sprd_dma_linklist link = { };
link              274 sound/soc/sprd/sprd-pcm-dma.c 		link.virt_addr = (unsigned long)data->virt;
link              275 sound/soc/sprd/sprd-pcm-dma.c 		link.phy_addr = data->phys;
link              292 sound/soc/sprd/sprd-pcm-dma.c 								flags, &link);
link             1297 sound/soc/sunxi/sun4i-codec.c 	struct snd_soc_dai_link *link = devm_kzalloc(dev, sizeof(*link),
link             1301 sound/soc/sunxi/sun4i-codec.c 	if (!link || !dlc)
link             1304 sound/soc/sunxi/sun4i-codec.c 	link->cpus	= &dlc[0];
link             1305 sound/soc/sunxi/sun4i-codec.c 	link->codecs	= &dlc[1];
link             1306 sound/soc/sunxi/sun4i-codec.c 	link->platforms	= &dlc[2];
link             1308 sound/soc/sunxi/sun4i-codec.c 	link->num_cpus		= 1;
link             1309 sound/soc/sunxi/sun4i-codec.c 	link->num_codecs	= 1;
link             1310 sound/soc/sunxi/sun4i-codec.c 	link->num_platforms	= 1;
link             1312 sound/soc/sunxi/sun4i-codec.c 	link->name		= "cdc";
link             1313 sound/soc/sunxi/sun4i-codec.c 	link->stream_name	= "CDC PCM";
link             1314 sound/soc/sunxi/sun4i-codec.c 	link->codecs->dai_name	= "Codec";
link             1315 sound/soc/sunxi/sun4i-codec.c 	link->cpus->dai_name	= dev_name(dev);
link             1316 sound/soc/sunxi/sun4i-codec.c 	link->codecs->name	= dev_name(dev);
link             1317 sound/soc/sunxi/sun4i-codec.c 	link->platforms->name	= dev_name(dev);
link             1318 sound/soc/sunxi/sun4i-codec.c 	link->dai_fmt		= SND_SOC_DAIFMT_I2S;
link             1322 sound/soc/sunxi/sun4i-codec.c 	return link;
link               20 tools/firewire/list.h list_insert(struct list *link, struct list *new_link)
link               22 tools/firewire/list.h 	new_link->prev		= link->prev;
link               23 tools/firewire/list.h 	new_link->next		= link;
link               41 tools/firewire/list.h list_remove(struct list *link)
link               43 tools/firewire/list.h 	link->prev->next = link->next;
link               44 tools/firewire/list.h 	link->next->prev = link->prev;
link               47 tools/firewire/list.h #define list_entry(link, type, member) \
link               48 tools/firewire/list.h 	((type *)((char *)(link)-(unsigned long)(&((type *)0)->member)))
link              164 tools/firewire/nosy-dump.c 	list_for_each_entry(t, &pending_transaction_list, link) {
link              180 tools/firewire/nosy-dump.c 	list_append(&pending_transaction_list, &t->link);
link              191 tools/firewire/nosy-dump.c 		sa = list_head(&t->request_list, struct subaction, link);
link              192 tools/firewire/nosy-dump.c 		list_remove(&sa->link);
link              196 tools/firewire/nosy-dump.c 		sa = list_head(&t->response_list, struct subaction, link);
link              197 tools/firewire/nosy-dump.c 		list_remove(&sa->link);
link              239 tools/firewire/nosy-dump.c 		list_for_each_entry(sa, &t->request_list, link)
link              241 tools/firewire/nosy-dump.c 		list_for_each_entry(sa, &t->response_list, link)
link              256 tools/firewire/nosy-dump.c 			      struct link_transaction, link);
link              257 tools/firewire/nosy-dump.c 		list_remove(&t->link);
link              495 tools/firewire/nosy-dump.c 				 struct subaction, link);
link              513 tools/firewire/nosy-dump.c 	list_append(&t->request_list, &sa->link);
link              520 tools/firewire/nosy-dump.c 		list_remove(&t->link);
link              527 tools/firewire/nosy-dump.c 		list_remove(&t->link);
link              563 tools/firewire/nosy-dump.c 		prev = list_tail(&t->response_list, struct subaction, link);
link              578 tools/firewire/nosy-dump.c 		prev = list_tail(&t->request_list, struct subaction, link);
link              592 tools/firewire/nosy-dump.c 	list_append(&t->response_list, &sa->link);
link              599 tools/firewire/nosy-dump.c 		list_remove(&t->link);
link              161 tools/firewire/nosy-dump.h 	struct list link;
link              169 tools/firewire/nosy-dump.h 	struct list link;
link             4885 tools/lib/bpf/libbpf.c 	int (*destroy)(struct bpf_link *link);
link             4888 tools/lib/bpf/libbpf.c int bpf_link__destroy(struct bpf_link *link)
link             4892 tools/lib/bpf/libbpf.c 	if (!link)
link             4895 tools/lib/bpf/libbpf.c 	err = link->destroy(link);
link             4896 tools/lib/bpf/libbpf.c 	free(link);
link             4902 tools/lib/bpf/libbpf.c 	struct bpf_link link; /* has to be at the top of struct */
link             4906 tools/lib/bpf/libbpf.c static int bpf_link__destroy_perf_event(struct bpf_link *link)
link             4908 tools/lib/bpf/libbpf.c 	struct bpf_link_fd *l = (void *)link;
link             4923 tools/lib/bpf/libbpf.c 	struct bpf_link_fd *link;
link             4938 tools/lib/bpf/libbpf.c 	link = malloc(sizeof(*link));
link             4939 tools/lib/bpf/libbpf.c 	if (!link)
link             4941 tools/lib/bpf/libbpf.c 	link->link.destroy = &bpf_link__destroy_perf_event;
link             4942 tools/lib/bpf/libbpf.c 	link->fd = pfd;
link             4946 tools/lib/bpf/libbpf.c 		free(link);
link             4954 tools/lib/bpf/libbpf.c 		free(link);
link             4960 tools/lib/bpf/libbpf.c 	return (struct bpf_link *)link;
link             5074 tools/lib/bpf/libbpf.c 	struct bpf_link *link;
link             5086 tools/lib/bpf/libbpf.c 	link = bpf_program__attach_perf_event(prog, pfd);
link             5087 tools/lib/bpf/libbpf.c 	if (IS_ERR(link)) {
link             5089 tools/lib/bpf/libbpf.c 		err = PTR_ERR(link);
link             5094 tools/lib/bpf/libbpf.c 		return link;
link             5096 tools/lib/bpf/libbpf.c 	return link;
link             5105 tools/lib/bpf/libbpf.c 	struct bpf_link *link;
link             5118 tools/lib/bpf/libbpf.c 	link = bpf_program__attach_perf_event(prog, pfd);
link             5119 tools/lib/bpf/libbpf.c 	if (IS_ERR(link)) {
link             5121 tools/lib/bpf/libbpf.c 		err = PTR_ERR(link);
link             5127 tools/lib/bpf/libbpf.c 		return link;
link             5129 tools/lib/bpf/libbpf.c 	return link;
link             5187 tools/lib/bpf/libbpf.c 	struct bpf_link *link;
link             5198 tools/lib/bpf/libbpf.c 	link = bpf_program__attach_perf_event(prog, pfd);
link             5199 tools/lib/bpf/libbpf.c 	if (IS_ERR(link)) {
link             5201 tools/lib/bpf/libbpf.c 		err = PTR_ERR(link);
link             5206 tools/lib/bpf/libbpf.c 		return link;
link             5208 tools/lib/bpf/libbpf.c 	return link;
link             5211 tools/lib/bpf/libbpf.c static int bpf_link__destroy_fd(struct bpf_link *link)
link             5213 tools/lib/bpf/libbpf.c 	struct bpf_link_fd *l = (void *)link;
link             5222 tools/lib/bpf/libbpf.c 	struct bpf_link_fd *link;
link             5232 tools/lib/bpf/libbpf.c 	link = malloc(sizeof(*link));
link             5233 tools/lib/bpf/libbpf.c 	if (!link)
link             5235 tools/lib/bpf/libbpf.c 	link->link.destroy = &bpf_link__destroy_fd;
link             5240 tools/lib/bpf/libbpf.c 		free(link);
link             5246 tools/lib/bpf/libbpf.c 	link->fd = pfd;
link             5247 tools/lib/bpf/libbpf.c 	return (struct bpf_link *)link;
link              171 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_link__destroy(struct bpf_link *link);
link               22 tools/perf/arch/powerpc/include/dwarf-regs-table.h 	REG_DWARFNUM_NAME(link,  108),
link               69 tools/perf/arch/powerpc/util/dwarf-regs.c 	REG_DWARFNUM_NAME(link,  108),
link               49 tools/perf/arch/powerpc/util/perf_regs.c 	SMPL_REG(link, PERF_REG_POWERPC_LINK),
link              690 tools/perf/util/build-id.c 		} else if (link(realname, filename) && errno != EEXIST &&
link              715 tools/perf/util/build-id.c 				} else if (link(debugfile, filename) &&
link              126 tools/perf/util/copyfile.c 		err = link(tmp, to);
link              502 tools/testing/selftests/bpf/bpf_helpers.h #define BPF_KPROBE_READ_RET_IP(ip, ctx)		({ (ip) = (ctx)->link; })
link              295 tools/testing/selftests/bpf/prog_tests/core_reloc.c 	struct bpf_link *link = NULL;
link              335 tools/testing/selftests/bpf/prog_tests/core_reloc.c 		link = bpf_program__attach_raw_tracepoint(prog, "sys_enter");
link              336 tools/testing/selftests/bpf/prog_tests/core_reloc.c 		if (CHECK(IS_ERR(link), "attach_raw_tp", "err %ld\n",
link              337 tools/testing/selftests/bpf/prog_tests/core_reloc.c 			  PTR_ERR(link)))
link              379 tools/testing/selftests/bpf/prog_tests/core_reloc.c 		if (!IS_ERR_OR_NULL(link)) {
link              380 tools/testing/selftests/bpf/prog_tests/core_reloc.c 			bpf_link__destroy(link);
link              381 tools/testing/selftests/bpf/prog_tests/core_reloc.c 			link = NULL;
link               90 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 	struct bpf_link *link = NULL;
link              123 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 	link = bpf_program__attach_raw_tracepoint(prog, "sys_enter");
link              124 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 	if (CHECK(IS_ERR(link), "attach_raw_tp", "err %ld\n", PTR_ERR(link)))
link              144 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 	if (!IS_ERR_OR_NULL(link))
link              145 tools/testing/selftests/bpf/prog_tests/get_stack_raw_tp.c 		bpf_link__destroy(link);
link               32 tools/testing/selftests/bpf/prog_tests/perf_buffer.c 	struct bpf_link *link;
link               65 tools/testing/selftests/bpf/prog_tests/perf_buffer.c 	link = bpf_program__attach_kprobe(prog, false /* retprobe */,
link               67 tools/testing/selftests/bpf/prog_tests/perf_buffer.c 	if (CHECK(IS_ERR(link), "attach_kprobe", "err %ld\n", PTR_ERR(link)))
link              109 tools/testing/selftests/bpf/prog_tests/perf_buffer.c 	bpf_link__destroy(link);
link               13 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 	struct bpf_link *link = NULL;
link               29 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 	link = bpf_program__attach_tracepoint(prog, "random", "urandom_read");
link               30 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 	if (CHECK(IS_ERR(link), "attach_tp", "err %ld\n", PTR_ERR(link)))
link              111 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 		bpf_link__destroy(link);
link              129 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c 	bpf_link__destroy(link);
link               31 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 	struct bpf_link *link;
link               61 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 	link = bpf_program__attach_perf_event(prog, pmu_fd);
link               62 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 	if (CHECK(IS_ERR(link), "attach_perf_event",
link               63 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 		  "err %ld\n", PTR_ERR(link))) {
link              146 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 		bpf_link__destroy(link);
link              165 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c 	bpf_link__destroy(link);
link               13 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c 	struct bpf_link *link;
link               23 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c 	link = bpf_program__attach_tracepoint(prog, "sched", "sched_switch");
link               24 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c 	if (CHECK(IS_ERR(link), "attach_tp", "err %ld\n", PTR_ERR(link)))
link               72 tools/testing/selftests/bpf/prog_tests/stacktrace_map.c 	bpf_link__destroy(link);
link               13 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 	struct bpf_link *link = NULL;
link               23 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 	link = bpf_program__attach_raw_tracepoint(prog, "sched_switch");
link               24 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 	if (CHECK(IS_ERR(link), "attach_raw_tp", "err %ld\n", PTR_ERR(link)))
link               62 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 	if (!IS_ERR_OR_NULL(link))
link               63 tools/testing/selftests/bpf/prog_tests/stacktrace_map_raw_tp.c 		bpf_link__destroy(link);
link               86 virt/kvm/async_pf.c 	list_add_tail(&apf->link, &vcpu->async_pf.done);
link              138 virt/kvm/async_pf.c 					 typeof(*work), link);
link              139 virt/kvm/async_pf.c 		list_del(&work->link);
link              155 virt/kvm/async_pf.c 					      link);
link              156 virt/kvm/async_pf.c 		list_del(&work->link);
link              230 virt/kvm/async_pf.c 	list_add_tail(&work->link, &vcpu->async_pf.done);
link               98 virt/kvm/eventfd.c 		list_del(&resampler->link);
link              337 virt/kvm/eventfd.c 				    &kvm->irqfds.resampler_list, link) {
link              357 virt/kvm/eventfd.c 			INIT_LIST_HEAD(&resampler->link);
link              359 virt/kvm/eventfd.c 			list_add(&resampler->link, &kvm->irqfds.resampler_list);
link              455 virt/kvm/eventfd.c 					 link)
link              472 virt/kvm/eventfd.c 				 link)
link              494 virt/kvm/eventfd.c 	hlist_add_head_rcu(&kian->link, &kvm->irq_ack_notifier_list);
link              503 virt/kvm/eventfd.c 	hlist_del_init_rcu(&kian->link);
link               32 virt/kvm/irqchip.c 		hlist_for_each_entry(e, &irq_rt->map[gsi], link) {
link              111 virt/kvm/irqchip.c 		hlist_for_each_entry_safe(e, n, &rt->map[i], link) {
link              112 virt/kvm/irqchip.c 			hlist_del(&e->link);
link              141 virt/kvm/irqchip.c 	hlist_for_each_entry(ei, &rt->map[gsi], link)
link              155 virt/kvm/irqchip.c 	hlist_add_head(&e->link, &rt->map[e->gsi]);