/Linux-v5.10/drivers/staging/vt6655/ |
D | rf.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 * IFRFbWriteEmbedded - Embedded write RF register via MAC 57 0x03F79000 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW, /* channel = 1, Tf = 2412MHz */ 58 0x03F79000 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW, /* channel = 2, Tf = 2417MHz */ 59 0x03E79000 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW, /* channel = 3, Tf = 2422MHz */ 60 0x03E79000 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW, /* channel = 4, Tf = 2427MHz */ 61 0x03F7A000 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW, /* channel = 5, Tf = 2432MHz */ 62 0x03F7A000 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW, /* channel = 6, Tf = 2437MHz */ 63 0x03E7A000 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW, /* channel = 7, Tf = 2442MHz */ 64 0x03E7A000 + (BY_AL2230_REG_LEN << 3) + IFREGCTL_REGW, /* channel = 8, Tf = 2447MHz */ [all …]
|
/Linux-v5.10/drivers/target/ |
D | target_core_fabric_configfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * (c) Copyright 2010-2013 Datera, Inc. 10 * Nicholas A. Bellinger <nab@linux-iscsi.org> 37 static void target_fabric_setup_##_name##_cit(struct target_fabric_configfs *tf) \ 39 struct config_item_type *cit = &tf->tf_##_name##_cit; \ 41 cit->ct_item_ops = _item_ops; \ 42 cit->ct_group_ops = _group_ops; \ 43 cit->ct_attrs = _attrs; \ 44 cit->ct_owner = tf->tf_ops->module; \ 49 static void target_fabric_setup_##_name##_cit(struct target_fabric_configfs *tf) \ [all …]
|
/Linux-v5.10/drivers/ata/ |
D | sata_svw.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * sata_svw.c - ServerWorks / Apple K2 SATA 7 * Please ALWAYS copy linux-ide@vger.kernel.org 14 * This driver probably works with non-Apple versions of the 18 * as Documentation/driver-api/libata.rst 40 /* ap->flags bits */ 84 u8 cmnd = qc->scsicmd->cmnd[0]; in k2_sata_check_atapi_dma() 86 if (qc->ap->flags & K2_FLAG_NO_ATAPI_DMA) in k2_sata_check_atapi_dma() 87 return -1; /* ATAPI DMA not supported */ in k2_sata_check_atapi_dma() 99 return -1; in k2_sata_check_atapi_dma() [all …]
|
D | libata-scsi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * libata-scsi.c - helper library for ATA 5 * Copyright 2003-2004 Red Hat, Inc. All rights reserved. 6 * Copyright 2003-2004 Jeff Garzik 9 * as Documentation/driver-api/libata.rst 12 * - http://www.t10.org/ 13 * - http://www.t13.org/ 38 #include "libata-transport.h" 62 RW_RECOVERY_MPAGE_LEN - 2, 72 CACHE_MPAGE_LEN - 2, [all …]
|
D | pata_octeon_cf.c | 8 * Copyright (C) 2005 - 2012 Cavium Inc. 30 * -- 8 bits no irq, no DMA 31 * -- 16 bits no irq, no DMA 32 * -- 16 bits True IDE mode with DMA, but no irq. 131 struct octeon_cf_port *cf_port = ap->private_data; in octeon_cf_set_piomode() 144 * A divisor value of four will overflow the timing fields at in octeon_cf_set_piomode() 153 BUG_ON(ata_timing_compute(dev, dev->pio_mode, &timing, T, T)); in octeon_cf_set_piomode() 157 t2--; in octeon_cf_set_piomode() 161 trh--; in octeon_cf_set_piomode() 163 pause = (int)timing.cycle - (int)timing.active - in octeon_cf_set_piomode() [all …]
|
D | libata-sff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * libata-sff.c - helper library for PCI IDE BMDMA 5 * Copyright 2003-2006 Red Hat, Inc. All rights reserved. 6 * Copyright 2003-2006 Jeff Garzik 9 * as Documentation/driver-api/libata.rst 12 * http://www.sata-io.org/ 54 * ata_sff_check_status - Read device status reg & clear interrupt 57 * Reads ATA taskfile status register for currently-selected device 66 return ioread8(ap->ioaddr.status_addr); in ata_sff_check_status() 71 * ata_sff_altstatus - Read device alternate status reg [all …]
|
D | pata_ns87415.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * pata_ns87415.c - NS87415 (and PARISC SUPERIO 87560) PATA 7 * This is a fairly generic MWDMA controller. It has some limitations 11 * This driver assumes the firmware has left the chip in a valid ST506 39 * ns87415_set_mode - Initialize host controller mode timings 54 struct pci_dev *dev = to_pci_dev(ap->host->dev); in ns87415_set_mode() 55 int unit = 2 * ap->port_no + adev->devno; in ns87415_set_mode() 63 /* Timing register format is 17 - low nybble read timing with in ns87415_set_mode() 64 the high nybble being 16 - x for recovery time in PCI clocks */ in ns87415_set_mode() 66 ata_timing_compute(adev, adev->pio_mode, &t, T, 0); in ns87415_set_mode() [all …]
|
D | sata_vsc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * sata_vsc.c - Vitesse VSC7174 4 port DPA SATA 6 * Please ALWAYS copy linux-ide@vger.kernel.org 14 * as Documentation/driver-api/libata.rst 27 #include <linux/dma-mapping.h> 88 return -EINVAL; in vsc_sata_scr_read() 89 *val = readl(link->ap->ioaddr.scr_addr + (sc_reg * 4)); in vsc_sata_scr_read() 98 return -EINVAL; in vsc_sata_scr_write() 99 writel(val, link->ap->ioaddr.scr_addr + (sc_reg * 4)); in vsc_sata_scr_write() 108 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_freeze() [all …]
|
D | libata-sata.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2003-2004 Red Hat, Inc. All rights reserved. 6 * Copyright 2003-2004 Jeff Garzik 17 #include "libata-transport.h" 28 * sata_scr_valid - test whether SCRs are accessible 41 struct ata_port *ap = link->ap; in sata_scr_valid() 43 return (ap->flags & ATA_FLAG_SATA) && ap->ops->scr_read; in sata_scr_valid() 48 * sata_scr_read - read SCR register of the specified port 54 * guaranteed to succeed if @link is ap->link, the cable type of 55 * the port is SATA and the port implements ->scr_read. [all …]
|
D | libata-acpi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * libata-acpi.c 26 …fermode, 0x2=lock/freeze lock, 0x4=DIPM, 0x8=FPDMA non-zero offset, 0x10=FPDMA DMA Setup FIS auto-… 33 u8 tf[REGS_PER_GTF]; /* regs. 0x1f1 - 0x1f7 */ member 38 kfree(dev->gtf_cache); in ata_acpi_clear_gtf() 39 dev->gtf_cache = NULL; in ata_acpi_clear_gtf() 50 #define ata_hotplug_data(context) (container_of((context), struct ata_acpi_hotplug_context, hp)->da… 53 * ata_dev_acpi_handle - provide the acpi_handle for an ata_device 62 return dev->flags & ATA_DFLAG_ACPI_DISABLED ? in ata_dev_acpi_handle() 63 NULL : ACPI_HANDLE(&dev->tdev); in ata_dev_acpi_handle() [all …]
|
D | libata-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * libata-core.c - helper library for ATA 5 * Copyright 2003-2004 Red Hat, Inc. All rights reserved. 6 * Copyright 2003-2004 Jeff Garzik 9 * as Documentation/driver-api/libata.rst 12 * http://www.sata-io.org/ 16 * http://www.t10.org (SCSI MMC - for ATAPI MMC) 17 * http://www.sata-io.org (SATA) 19 * http://www.qic.org (QIC157 - Tape and DSC) 20 * http://www.ce-ata.org (CE-ATA: not supported) [all …]
|
D | sata_dwc_460ex.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 47 #define DRV_NAME "sata-dwc" 50 #define sata_dwc_writel(a, v) writel_relaxed(v, a) argument 51 #define sata_dwc_readl(a) readl_relaxed(a) argument 136 struct ata_probe_ent *pe; /* ptr to probe-ent */ 164 #define HSDEV_FROM_HOST(host) ((struct sata_dwc_device *)(host)->private_data) 165 #define HSDEV_FROM_AP(ap) ((struct sata_dwc_device *)(ap)->host->private_data) 166 #define HSDEVP_FROM_AP(ap) ((struct sata_dwc_device_port *)(ap)->private_data) 167 #define HSDEV_FROM_QC(qc) ((struct sata_dwc_device *)(qc)->ap->host->private_data) 168 #define HSDEV_FROM_HSDEVP(p) ((struct sata_dwc_device *)(p)->hsdev) [all …]
|
D | sata_rcar.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Renesas R-Car SATA driver 6 * Copyright (C) 2013-2015 Cogent Embedded, Inc. 7 * Copyright (C) 2013-2015 Renesas Solutions Corp. 21 /* SH-Navi2G/ATAPI-ATA compatible task registers */ 25 /* SH-Navi2G/ATAPI module compatible control registers */ 86 /* Serial-ATA HOST control registers */ 159 void __iomem *base = priv->base; in sata_rcar_gen1_phy_preinit() 173 void __iomem *base = priv->base; in sata_rcar_gen1_phy_write() 212 void __iomem *base = priv->base; in sata_rcar_gen2_phy_init() [all …]
|
D | pata_samsung_cf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #include <linux/platform_data/ata-samsung_cf.h> 59 * struct s3c_ide_info - S3C PATA instance. 85 /* Select true-ide as the internal operating mode */ in pata_s3c_cfg_mode() 93 int t1 = ata->setup; in pata_s3c_setup_timing() 94 int t2 = ata->act8b; in pata_s3c_setup_timing() 95 int t2i = ata->rec8b; in pata_s3c_setup_timing() 105 struct s3c_ide_info *info = ap->host->private_data; in pata_s3c_set_piomode() 108 ulong ata_cfg = readl(info->ide_addr + S3C_ATA_CFG); in pata_s3c_set_piomode() 117 cycle_time = (int)(1000000000UL / clk_get_rate(info->clk)); in pata_s3c_set_piomode() [all …]
|
D | pata_ep93xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * DMA engine support based on spi-ep93xx.c by Mika Westerberg. 21 * Heavily based on the ep93xx-ide.c driver: 47 #include <linux/platform_data/dma-ep93xx.h> 50 #define DRV_NAME "ep93xx-ide" 68 * ORed to the IDECTRL register, hence giving directly the A[2:0] and 166 * of HCLK cycles to hold the data bus after a PIO write operation. 200 * Based on delay loop found in mach-pxa/mp900.c. 223 * tA = 35ns after activation of DIOR-/DIOW-. Maximum IORDY pulse in ep93xx_pata_wait_for_iordy() 227 * DIOR-/DIOW-, so we set timeout to (1250 + 35) / 25 - t2 additional in ep93xx_pata_wait_for_iordy() [all …]
|
D | pata_via.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * pata_via.c - VIA PATA for new ATA layer 4 * (C) 2005-2006 Red Hat Inc 10 * VIA VT82C561 - early design, uses ata_generic currently 11 * VIA VT82C576 - MWDMA, 33Mhz 12 * VIA VT82C586 - MWDMA, 33Mhz 13 * VIA VT82C586a - Added UDMA to 33Mhz 14 * VIA VT82C586b - UDMA33 15 * VIA VT82C596a - Nonfunctional UDMA66 16 * VIA VT82C596b - Working UDMA66 [all …]
|
/Linux-v5.10/tools/testing/selftests/x86/ |
D | single_step_syscall.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * single_step_syscall.c - single-steps various x86 syscalls 4 * Copyright (c) 2014-2015 Andrew Lutomirski 6 * This is a very simple series of tests that makes system calls with 7 * the TF flag set. This exercises some nasty kernel code in the 8 * SYSENTER case: SYSENTER does not clear TF, so SYSENTER with TF set 78 printf("[WARN]\tSIGTRAP handler had TF set\n"); in sigtrap() 87 (unsigned long)info->si_addr, in sigtrap() 88 (unsigned long)ctx->uc_mcontext.gregs[REG_IP]); in sigtrap() 103 printf("\tGot %s with RIP=%lx, TF=%ld\n", signames[sig], in print_and_longjmp() [all …]
|
D | syscall_nt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * syscall_nt.c - checks syscalls with NT set 4 * Copyright (c) 2014-2015 Andrew Lutomirski 6 * Some obscure user-space code requires the ability to make system calls 56 printf("[RUN]\tSet NT and issue a syscall\n"); in main() 59 printf("[RUN]\tSet AC and issue a syscall\n"); in main() 62 printf("[RUN]\tSet NT|AC and issue a syscall\n"); in main() 66 * Now try it again with TF set -- TF forces returns via IRET in all in main() 67 * cases except non-ptregs-using 64-bit full fast path syscalls. in main() 72 printf("[RUN]\tSet TF and issue a syscall\n"); in main() [all …]
|
/Linux-v5.10/drivers/ide/ |
D | ide-lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 struct ide_taskfile *tf = &cmd->tf; in ide_get_lba_addr() local 15 low = (tf->lbah << 16) | (tf->lbam << 8) | tf->lbal; in ide_get_lba_addr() 17 tf = &cmd->hob; in ide_get_lba_addr() 18 high = (tf->lbah << 16) | (tf->lbam << 8) | tf->lbal; in ide_get_lba_addr() 20 high = tf->device & 0xf; in ide_get_lba_addr() 29 struct ide_taskfile *tf = &cmd.tf; in ide_dump_sector() local 30 u8 lba48 = !!(drive->dev_flags & IDE_DFLAG_LBA48); in ide_dump_sector() 34 cmd.valid.in.tf = IDE_VALID_LBA; in ide_dump_sector() 38 cmd.valid.in.tf = IDE_VALID_LBA | IDE_VALID_DEVICE; in ide_dump_sector() [all …]
|
D | ide-disk.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 1994-1998 Linus Torvalds & authors (see below) 4 * Copyright (C) 1998-2002 Linux ATA Development 5 * Andre Hedrick <andre@linux-ide.org> 7 * Copyright (C) 2003-2005, 2007 Bartlomiej Zolnierkiewicz 13 * and Andre Hedrick <andre@linux-ide.org> 39 #include "ide-disk.h" 60 lba48 = (cmd->tf_flags & IDE_TFLAG_LBA48) ? 2 : 0; in ide_tf_set_cmd() 61 write = (cmd->tf_flags & IDE_TFLAG_WRITE) ? 1 : 0; in ide_tf_set_cmd() 64 cmd->protocol = ATA_PROT_DMA; in ide_tf_set_cmd() [all …]
|
D | ide-taskfile.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2000-2002 Michael Cornwell <cornwell@acm.org> 4 * Copyright (C) 2000-2002 Andre Hedrick <andre@linux-ide.org> 5 * Copyright (C) 2001-2002 Klaus Smolin 7 * Copyright (C) 2003-2004, 2007 Bartlomiej Zolnierkiewicz 31 ide_hwif_t *hwif = drive->hwif; in ide_tf_readback() 32 const struct ide_tp_ops *tp_ops = hwif->tp_ops; in ide_tf_readback() 35 tp_ops->write_devctl(hwif, ATA_DEVCTL_OBS); in ide_tf_readback() 37 tp_ops->tf_read(drive, &cmd->tf, cmd->valid.in.tf); in ide_tf_readback() 39 if (cmd->tf_flags & IDE_TFLAG_LBA48) { in ide_tf_readback() [all …]
|
D | ide-io.c | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 61 * decide whether to reenable DMA -- 3 is a random magic for now, in ide_end_rq() 64 if ((drive->dev_flags & IDE_DFLAG_DMA_PIO_RETRY) && in ide_end_rq() 65 drive->retry_pio <= 3) { in ide_end_rq() 66 drive->dev_flags &= ~IDE_DFLAG_DMA_PIO_RETRY; in ide_end_rq() 71 if (rq == drive->sense_rq) { in ide_end_rq() 72 drive->sense_rq = NULL; in ide_end_rq() 73 drive->sense_rq_active = false; in ide_end_rq() 86 const struct ide_tp_ops *tp_ops = drive->hwif->tp_ops; in ide_complete_cmd() 87 struct ide_taskfile *tf = &cmd->tf; in ide_complete_cmd() local [all …]
|
/Linux-v5.10/drivers/gpu/drm/i915/selftests/ |
D | lib_sw_fence.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 41 __init_waitqueue_head(&fence->wait, name, key); in __onstack_fence_init() 42 atomic_set(&fence->pending, 1); in __onstack_fence_init() 43 fence->error = 0; in __onstack_fence_init() 44 fence->flags = (unsigned long)nop_fence_notify; in __onstack_fence_init() 49 if (!fence->flags) in onstack_fence_fini() 58 struct timed_fence *tf = from_timer(tf, t, timer); in timed_fence_wake() local 60 i915_sw_fence_commit(&tf->fence); in timed_fence_wake() 63 void timed_fence_init(struct timed_fence *tf, unsigned long expires) in timed_fence_init() argument [all …]
|
/Linux-v5.10/net/mac80211/ |
D | tdls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright 2015 - 2016 Intel Deutschland GmbH 17 #include "driver-ops.h" 31 local = sdata->local; in ieee80211_tdls_peer_del_work() 33 mutex_lock(&local->mtx); in ieee80211_tdls_peer_del_work() 34 if (!is_zero_ether_addr(sdata->u.mgd.tdls_peer)) { in ieee80211_tdls_peer_del_work() 35 tdls_dbg(sdata, "TDLS del peer %pM\n", sdata->u.mgd.tdls_peer); in ieee80211_tdls_peer_del_work() 36 sta_info_destroy_addr(sdata, sdata->u.mgd.tdls_peer); in ieee80211_tdls_peer_del_work() 37 eth_zero_addr(sdata->u.mgd.tdls_peer); in ieee80211_tdls_peer_del_work() [all …]
|
/Linux-v5.10/arch/x86/kernel/ |
D | step.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * x86 single-step support code, common to 32-bit and 64-bit. 16 addr = regs->ip; in convert_ip_to_linear() 17 seg = regs->cs; in convert_ip_to_linear() 26 * are all zero-based. That is largely true: the in convert_ip_to_linear() 36 mutex_lock(&child->mm->context.lock); in convert_ip_to_linear() 37 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear() 38 seg >= child->mm->context.ldt->nr_entries)) in convert_ip_to_linear() 39 addr = -1L; /* bogus selector, access would fault */ in convert_ip_to_linear() 41 desc = &child->mm->context.ldt->entries[seg]; in convert_ip_to_linear() [all …]
|