| /linux/drivers/gpu/drm/ttm/ |
| H A D | ttm_pool.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 36 #include <linux/dma-mapping.h> 54 #include <linux/fault-inject.h> 61 * struct ttm_pool_dma - Helper object for coherent DMA mappings 72 * struct ttm_pool_alloc_state - Current state of the tt page allocation process 73 * @pages: Pointer to the next tt page pointer to populate. 75 * not committed caching transition from write-back to @tt_caching. 76 * @dma_addr: Pointer to the next tt dma_address entry to populate if any. 78 * @tt_caching: The requested cpu-caching for the pages allocated. 89 * struct ttm_pool_tt_restore - State representing restore from backup [all …]
|
| /linux/drivers/usb/host/ |
| H A D | ehci-sched.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (c) 2001-2004 by David Brownell 4 * Copyright (c) 2003 Michal Sojka, for high-speed iso transfers 7 /* this file is part of ehci-hcd.c */ 9 /*-------------------------------------------------------------------------*/ 21 * pre-calculated schedule data to make appending to the queue be quick. 27 * periodic_next_shadow - return "next" pointer on shadow list 37 return &periodic->qh->qh_next; in periodic_next_shadow() 39 return &periodic->fstn->fstn_next; in periodic_next_shadow() 41 return &periodic->itd->itd_next; in periodic_next_shadow() [all …]
|
| H A D | xhci-mtk-sch.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "xhci-mtk.h" 18 /* table 5-5. High-speed Isoc Transaction Limits in usb_20 spec */ 28 * max number of microframes for split transfer, assume extra-cs budget is 0 55 return "Can't schedule Start-Split in Y6"; in sch_error_string() 57 return "Can't find a suitable Start-Split location"; in sch_error_string() 59 return "The last Complete-Split is greater than 7"; in sch_error_string() 78 struct usb_endpoint_descriptor *epd = &ep->desc; in decode_ep() 94 usb_endpoint_maxp(epd), epd->bInterval, interval, unit); in decode_ep() 130 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in get_bw_info() [all …]
|
| H A D | ehci-dbg.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (c) 2001-2002 by David Brownell 6 /* this file is part of ehci-hcd.c */ 13 * see EHCI spec, Table 2-4 for each value 17 u32 params = ehci_readl(ehci, &ehci->caps->hcs_params); in dbg_hcs_params() 37 byte = readb(&ehci->caps->portroute[(i >> 1)]); in dbg_hcs_params() 49 * see EHCI Spec, Table 2-5 for each value 53 u32 params = ehci_readl(ehci, &ehci->caps->hcc_params); in dbg_hcc_params() 83 hc32_to_cpup(ehci, &qtd->hw_next), in dbg_qtd() 84 hc32_to_cpup(ehci, &qtd->hw_alt_next), in dbg_qtd() [all …]
|
| H A D | xhci.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <linux/dma-mapping.h> 23 #include <linux/usb/xhci-sideband.h> 26 #include "xhci-trace.h" 27 #include "xhci-debugfs.h" 28 #include "xhci-dbgcap.h" 47 writel(val, &port->port_reg->portsc); in xhci_portsc_writel() 53 return readl(&port->port_reg->portsc); in xhci_portsc_readl() 61 if (!td || !td->start_seg) in td_on_ring() 64 xhci_for_each_ring_seg(ring->first_seg, seg) { in td_on_ring() [all …]
|
| /linux/rust/syn/ |
| H A D | custom_punctuation.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 3 /// Define a type that supports parsing and printing a multi-character symbol 13 /// any built-in punctuation token. 15 /// - [Peeking] — `input.peek(LeftRightArrow)` 17 /// - [Parsing] — `input.parse::<LeftRightArrow>()?` 19 /// - [Printing] — `quote!( ... #lrarrow ... )` 21 /// - Construction from a [`Span`] — `let lrarrow = LeftRightArrow(sp)` 23 /// - Construction from multiple [`Span`] — `let lrarrow = LeftRightArrow([sp, sp, sp])` 25 /// - Field access to its spans — `let spans = lrarrow.spans` 48 /// fn parse(input: ParseStream) -> Result<Self> { [all …]
|
| /linux/arch/m68k/atari/ |
| H A D | config.c | 10 * gettod() for TT 39 #include <asm/bootinfo-atari.h> 117 * Parse an Atari-specific record in the bootinfo 123 const void *data = record->data; in atari_parse_bootinfo() 125 switch (be16_to_cpu(record->tag)) { in atari_parse_bootinfo() 140 /* Parse the Atari-specific switches= option. */ 232 * hardware, we assume that the ST-DMA serves SCSI instead of in config_atari() 237 pr_cont(" STDMA-SCSI"); in config_atari() 264 * The ST-DMA address registers aren't readable in config_atari() 384 /* allocator for memory that must reside in st-ram */ in config_atari() [all …]
|
| /linux/Documentation/sound/hd-audio/ |
| H A D | models.rst | 2 HD-Audio Codec-Specific Models 8 3-jack in back and a headphone out 9 3stack-digout 10 3-jack in back, a HP out and a SPDIF out 12 5-jack in back, 2-jack in front 13 5stack-digout 14 5-jack in back, 2-jack in front, a SPDIF out 16 6-jack in back, 2-jack in front 17 6stack-digout 18 6-jack with a SPDIF out [all …]
|
| /linux/drivers/usb/fotg210/ |
| H A D | fotg210-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Faraday FOTG210 EHCI-like driver 6 * Author: Yuan-Hsin Chen <yhchen@faraday-tech.com> 7 * Feng-Hsin Chiang <john453@faraday-tech.com> 8 * Po-Yu Chuang <ratbert.chuang@gmail.com> 10 * Most of code borrowed from the Linux-3.7 EHCI driver 29 #include <linux/dma-mapping.h> 49 #define FOTG210_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 52 #define FOTG210_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 60 #define FOTG210_TUNE_FLS 1 /* (medium) 512-frame schedule */ [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_bo.c | 1 // SPDX-License-Identifier: MIT 8 #include <linux/dma-buf.h> 97 return res->mem_type == XE_PL_STOLEN && IS_DGFX(xe); in resource_is_stolen_vram() 102 return mem_type_is_vram(res->mem_type); in resource_is_vram() 107 return resource_is_vram(bo->ttm.resource) || in xe_bo_is_vram() 108 resource_is_stolen_vram(xe_bo_device(bo), bo->ttm.resource); in xe_bo_is_vram() 113 return bo->ttm.resource->mem_type == XE_PL_STOLEN; in xe_bo_is_stolen() 117 * xe_bo_has_single_placement - check if BO is placed only in one memory location 127 return bo->placement.num_placement == 1; in xe_bo_has_single_placement() 131 * xe_bo_is_stolen_devmem - check if BO is of stolen type accessed via PCI BAR [all …]
|
| /linux/drivers/usb/core/ |
| H A D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 79 /* Protect struct usb_device->state and ->children members 80 * Note: Both are also protected by ->dev.sem, except that ->state can 88 /* synchronize hub-port add/remove and peering operations */ 98 * 10 seconds to send reply for the initial 64-byte descriptor request. 100 /* define initial 64-byte descriptor request timeout in milliseconds */ 104 "initial 64-byte descriptor request timeout in milliseconds " 105 "(default 5000 - 5.0 seconds)"); 149 if (hub_is_superspeedplus(hub->hdev)) in portspeed() 151 if (hub_is_superspeed(hub->hdev)) in portspeed() [all …]
|
| /linux/drivers/usb/dwc2/ |
| H A D | hcd_queue.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * hcd_queue.c - DesignWare HS OTG Controller host queuing routines 5 * Copyright (C) 2004-2013 Synopsys, Inc. 17 #include <linux/dma-mapping.h> 36 * dwc2_periodic_channel_available() - Checks that a channel is available for a 48 * non-periodic transactions in dwc2_periodic_channel_available() 53 num_channels = hsotg->params.host_channels; in dwc2_periodic_channel_available() 54 if ((hsotg->periodic_channels + hsotg->non_periodic_channels < in dwc2_periodic_channel_available() 55 num_channels) && (hsotg->periodic_channels < num_channels - 1)) { in dwc2_periodic_channel_available() 58 dev_dbg(hsotg->dev, in dwc2_periodic_channel_available() [all …]
|
| H A D | hcd.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * hcd.c - DesignWare HS OTG Controller host-mode routines 5 * Copyright (C) 2004-2013 Synopsys, Inc. 17 #include <linux/dma-mapping.h> 37 * dwc2_enable_common_interrupts() - Initializes the commmon interrupts, 55 if (!hsotg->params.host_dma) in dwc2_enable_common_interrupts() 57 if (!hsotg->params.external_id_pin_ctl) in dwc2_enable_common_interrupts() 63 if (dwc2_is_device_mode(hsotg) && hsotg->params.lpm) in dwc2_enable_common_interrupts() 73 switch (hsotg->hw_params.arch) { in dwc2_gahbcfg_init() 75 dev_err(hsotg->dev, "External DMA Mode not supported\n"); in dwc2_gahbcfg_init() [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | musb_host.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2005-2006 by Texas Instruments 7 * Copyright (C) 2006-2007 Nokia Corporation 8 * Copyright (C) 2008-2009 MontaVista Software, Inc. <source@mvista.com> 19 #include <linux/dma-mapping.h> 25 /* MUSB HOST status 22-mar-2006 27 * - There's still lots of partial code duplication for fault paths, so 30 * - PIO mostly behaved when last tested. 37 * - DMA (CPPI) ... partially behaves, not currently recommended 42 * - DMA (Mentor/OMAP) ...has at least toggle update problems [all …]
|
| /linux/sound/hda/codecs/realtek/ |
| H A D | alc882.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 // 6-channel independent captures. 10 // In addition, an independent DAC for the multi-playback (not used in this 78 struct alc_spec *spec = codec->spec; in alc885_fixup_macpro_gpio() 80 spec->gpio_write_delay = true; in alc885_fixup_macpro_gpio() 114 struct alc_spec *spec = codec->spec; in alc889_fixup_mbp_vref() 126 spec->gen.keep_vref_in_automute = 1; in alc889_fixup_mbp_vref() 134 struct alc_spec *spec = codec->spec; in alc889_fixup_mac_pins() 143 spec->gen.keep_vref_in_automute = 1; in alc889_fixup_mac_pins() 178 * all-in-one desktop PCs (for example VGC-LN51JGB) through DAC 0x05 [all …]
|
| /linux/Documentation/admin-guide/media/ |
| H A D | bttv.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ---------------------- 12 ./scripts/config -e PCI 13 ./scripts/config -m I2C 14 ./scripts/config -m INPUT 15 ./scripts/config -m MEDIA_SUPPORT 16 ./scripts/config -e MEDIA_PCI_SUPPORT 17 ./scripts/config -e MEDIA_ANALOG_TV_SUPPORT 18 ./scripts/config -e MEDIA_DIGITAL_TV_SUPPORT 19 ./scripts/config -e MEDIA_RADIO_SUPPORT [all …]
|
| /linux/drivers/usb/isp1760/ |
| H A D | isp1760-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * - ISO 7 * - OTG 33 #include "isp1760-core.h" 34 #include "isp1760-hcd.h" 35 #include "isp1760-regs.h" 46 return *(struct isp1760_hcd **)hcd->hcd_priv; in hcd_to_priv() 150 /* the rest is HCD-private */ 158 /* QTD_XFER_STARTED: valid ptd has been written to isp176x - only 204 return isp1760_field_read(priv->fields, field); in isp1760_hcd_read() [all …]
|
| /linux/sound/oss/dmasound/ |
| H A D | dmasound_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * OSS/Free compatible Atari TT/Falcon and Amiga DMA sound driver for 13 * interface and the u-law to signed byte conversion. 15 * Michael Marte (marte@informatik.uni-muenchen.de) did the sound queue, 18 * - Michael Schlueter for initial ideas and documentation on the MFP and 20 * - Therapy? for their CD 'Troublegum' which really made me rock. 30 * - Fixed atari_stram_alloc() call, the timer 33 * - After some discussion with Michael Schlueter, 35 * - Slightly speeded up U8->S8 translation by using 37 * - Added 4:3 interpolation for /dev/audio [all …]
|
| /linux/include/linux/ |
| H A D | usb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #include <linux/errno.h> /* for -ENODEV */ 30 /*-------------------------------------------------------------------------*/ 33 * Host-side wrappers for standard USB descriptors ... these are parsed 37 * - devices have one (usually) or more configs; 38 * - configs have one (often) or more interfaces; 39 * - interfaces have one (usually) or more settings; 40 * - each interface setting has zero or (usually) more endpoints. 41 * - a SuperSpeed endpoint has a companion descriptor 45 * Devices may also have class-specific or vendor-specific descriptors. [all …]
|
| /linux/kernel/trace/ |
| H A D | trace.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2007-2012 Steven Rostedt <srostedt@redhat.com> 12 * Copyright (C) 2004-2006 Ingo Molnar 64 * A selftest will lurk into the ring-buffer to count the 66 * insertions into the ring-buffer such as trace_printk could occurred 72 * If boot-time tracing including tracers/events via kernel cmdline 121 * ftrace_dump_on_oops - variable to dump ftrace buffer on oops 249 strscpy(buf + len, str, size - len); in trace_append_boot_param() 279 strscpy(ftrace_dump_on_oops + 1, str, MAX_TRACER_SIZE - 1); in set_ftrace_dump_on_oops() 303 int left = sizeof(boot_instance_info) - boot_instance_index; in boot_instance() [all …]
|
| /linux/kernel/rcu/ |
| H A D | srcutree.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Sleepable Read-Copy Update mechanism for mutual exclusion. 11 * For detailed explanation of Read-Copy Update mechanism see - 34 /* Holdoff in nanoseconds for auto-expediting. */ 39 /* Overflow-check frequency. N bits roughly says every 2**N grace periods. */ 64 /* Number of CPUs to trigger init_srcu_struct()-time transition to big. */ 72 /* Early-boot callback-management, so early that no lock is required! */ 83 * Initialize SRCU per-CPU data. Note that statically allocated 86 * parameter is set, don't initialize ->srcu_ctrs[].srcu_locks and 87 * ->srcu_ctrs[].srcu_unlocks. [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_main.c | 2 * Copyright (c) 2015-2016, Mellanox Technologies. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 88 /* Our HW-GRO implementation relies on "KSM Mkey" for in mlx5e_hw_gro_supported() 128 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_carrier() 137 if (up == netif_carrier_ok(priv->netdev)) in mlx5e_update_carrier() 138 netif_carrier_event(priv->netdev); in mlx5e_update_carrier() 140 netdev_info(priv->netdev, "Link up\n"); in mlx5e_update_carrier() 141 netif_carrier_on(priv->netdev); in mlx5e_update_carrier() 143 netdev_info(priv->netdev, "Link down\n"); in mlx5e_update_carrier() [all …]
|
| /linux/drivers/net/wireless/ath/wil6210/ |
| H A D | wmi.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2006-2012 Wilocity 70 * Each ID maps to a bit in a 32-bit bitmask value provided by the FW to 444 * - WMI_RX_MGMT_PACKET_EVENTID - for every probe resp. 445 * - WMI_SCAN_COMPLETE_EVENTID 470 * 0 - 58320 MHz 471 * 1 - 60480 MHz 472 * 2 - 62640 MHz [all …]
|
| /linux/drivers/usb/serial/ |
| H A D | ftdi_sio_ids.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Philipp Gühring - pg@futureware.at - added the Device ID of the USB relais 25 #define FTDI_4232H_PID 0x6011 /* Quad channel hi-speed device */ 26 #define FTDI_232H_PID 0x6014 /* Single channel hi-speed device */ 27 #define FTDI_FTX_PID 0x6015 /* FT-X series (FT201X, FT230X, FT231X, etc) */ 28 #define FTDI_FT2233HP_PID 0x6040 /* Dual channel hi-speed device with PD */ 29 #define FTDI_FT4233HP_PID 0x6041 /* Quad channel hi-speed device with PD */ 30 #define FTDI_FT2232HP_PID 0x6042 /* Dual channel hi-speed device with PD */ 31 #define FTDI_FT4232HP_PID 0x6043 /* Quad channel hi-speed device with PD */ 32 #define FTDI_FT233HP_PID 0x6044 /* Dual channel hi-speed device with PD */ [all …]
|
| /linux/scripts/ |
| H A D | checkpatch.pl | 2 # SPDX-License-Identifier: GPL-2.0 7 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com> 8 # (c) 2010-2018 Joe Perches <joe@perches.com> 69 my $docsfile = "$D/../Documentation/dev-tools/checkpatch.rst"; 72 my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE 74 my $git_command ='export LANGUAGE=en_US.UTF-8; git'; 88 -q, --quiet quiet 89 -v, --verbose verbose mode 90 --no-tree run without a kernel tree 91 --no-signoff do not check for 'Signed-off-by' line [all …]
|