/linux/Documentation/devicetree/bindings/usb/ |
H A D | usb251xb.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Microchip USB 2.0 Hi-Speed Hub Controller 10 - Richard Leitner <richard.leitner@skidata.com> 15 - microchip,usb2422 16 - microchip,usb2512b 17 - microchip,usb2512bi 18 - microchip,usb2513b 19 - microchip,usb2513bi [all …]
|
/linux/drivers/usb/host/ |
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-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-mem.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/dma-mapping.h> 19 #include "xhci-trace.h" 20 #include "xhci-debugfs.h" 38 struct device *dev = xhci_to_hcd(xhci)->self.sysdev; in xhci_segment_alloc() 44 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc() 45 if (!seg->trbs) { in xhci_segment_alloc() 51 seg->bounce_buf = kzalloc_node(max_packet, flags, in xhci_segment_alloc() 53 if (!seg->bounce_buf) { in xhci_segment_alloc() 54 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc() [all …]
|
H A D | xhci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 #include <linux/io-64-nonatomic-lo-hi.h> 20 #include <linux/io-64-nonatomic-hi-lo.h> 22 /* Code sharing between pci-quirks and xhci hcd */ 23 #include "xhci-ext-caps.h" 24 #include "pci-quirks.h" 26 #include "xhci-port.h" 27 #include "xhci-caps.h" 35 /* Max number of USB devices for any host controller - limit in section 6.1 */ 37 /* Section 5.3.3 - MaxPorts */ [all …]
|
H A D | xhci.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include <linux/dma-mapping.h> 23 #include "xhci-trace.h" 24 #include "xhci-debugfs.h" 25 #include "xhci-dbgcap.h" 43 struct xhci_segment *seg = ring->first_seg; in td_on_ring() 45 if (!td || !td->start_seg) in td_on_ring() 48 if (seg == td->start_seg) in td_on_ring() 50 seg = seg->next; in td_on_ring() 51 } while (seg && seg != ring->first_seg); in td_on_ring() [all …]
|
H A D | ehci-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Copyright (c) 2000-2004 by David Brownell 27 #include <linux/dma-mapping.h> 41 /*-------------------------------------------------------------------------*/ 53 * test this driver on, and Cypress (including In-System Design) for 66 #define EHCI_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 69 #define EHCI_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 77 #define EHCI_TUNE_FLS 1 /* (medium) 512-frame schedule */ 82 MODULE_PARM_DESC (log2_irq_thresh, "log2 IRQ latency, 1-64 microframes"); 87 MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets"); [all …]
|
/linux/arch/m68k/atari/ |
H A D | config.c | 10 * gettod() for TT 40 #include <asm/bootinfo-atari.h> 118 * Parse an Atari-specific record in the bootinfo 124 const void *data = record->data; in atari_parse_bootinfo() 126 switch (be16_to_cpu(record->tag)) { in atari_parse_bootinfo() 141 /* Parse the Atari-specific switches= option. */ 233 * hardware, we assume that the ST-DMA serves SCSI instead of in config_atari() 238 pr_cont(" STDMA-SCSI"); in config_atari() 265 * The ST-DMA address registers aren't readable in config_atari() 385 /* 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> 79 return res->mem_type == XE_PL_STOLEN && IS_DGFX(xe); in resource_is_stolen_vram() 84 return mem_type_is_vram(res->mem_type); in resource_is_vram() 89 return resource_is_vram(bo->ttm.resource) || in xe_bo_is_vram() 90 resource_is_stolen_vram(xe_bo_device(bo), bo->ttm.resource); in xe_bo_is_vram() 95 return bo->ttm.resource->mem_type == XE_PL_STOLEN; in xe_bo_is_stolen() 99 * xe_bo_has_single_placement - check if BO is placed only in one memory location 109 return bo->placement.num_placement == 1; in xe_bo_has_single_placement() 113 * xe_bo_is_stolen_devmem - check if BO is of stolen type accessed via PCI BAR [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tc.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 156 return tc ? tc : ERR_PTR(-ENOMEM); in mlx5e_tc_table_alloc() 166 return tc->chains; in mlx5e_nic_chains() 172 * which call rhashtable_destroy on fg->ftes_hash which will take ht->mutex but 173 * it's different than the ht->mutex here. 189 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_match() 193 u32 max_mask = GENMASK(match_len - 1, 0); in mlx5e_tc_match_to_reg_match() 227 spec->match_criteria_enable |= MLX5_MATCH_MISC_PARAMETERS_2; in mlx5e_tc_match_to_reg_match() 236 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_get_match() [all …]
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm_move.c | 1 // SPDX-License-Identifier: MIT 57 ttm->caching == ttm_cached) ? I915_CACHE_LLC : in i915_ttm_cache_level() 74 ttm_mem_type - I915_PL_LMEM0); in i915_ttm_region() 78 * i915_ttm_adjust_domains_after_move - Adjust the GEM domains after a 86 if (i915_ttm_cpu_maps_iomem(bo->resource) || bo->ttm->caching != ttm_cached) { in i915_ttm_adjust_domains_after_move() 87 obj->write_domain = I915_GEM_DOMAIN_WC; in i915_ttm_adjust_domains_after_move() 88 obj->read_domains = I915_GEM_DOMAIN_WC; in i915_ttm_adjust_domains_after_move() 90 obj->write_domain = I915_GEM_DOMAIN_CPU; in i915_ttm_adjust_domains_after_move() 91 obj->read_domains = I915_GEM_DOMAIN_CPU; in i915_ttm_adjust_domains_after_move() 96 * i915_ttm_adjust_gem_after_move - Adjust the GEM state after a TTM move [all …]
|
/linux/include/linux/usb/ |
H A D | hcd.h | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (c) 2001-2002 by David Brownell 42 /*-------------------------------------------------------------------------*/ 51 /*-------------------------------------------------------------------------*/ 73 struct usb_bus self; /* hcd is-a bus */ 79 * hcd->driver->flags & HCD_MASK 83 struct timer_list rh_timer; /* drives root-hub polling */ 93 const struct hc_driver *driver; /* hw-specific hooks */ 97 * other external phys should be software-transparent 119 #define HCD_HW_ACCESSIBLE(hcd) ((hcd)->flags & (1U << HCD_FLAG_HW_ACCESSIBLE)) [all …]
|
/linux/drivers/isdn/mISDN/ |
H A D | dsp_cmx.c | 20 * There are 3 different solutions: -1 = software, 0 = hardware-crossconnect 21 * 1-n = hardware-conference. The n will give the conference number. 39 * - Crossconnecting or even conference, if more than two members are together. 40 * - Force mixing of transmit data with other crossconnect/conference members. 41 * - Echo generation to benchmark the delay of audio processing. 42 * - Use hardware to minimize cpu load, disable FIFO load and minimize delay. 43 * - Dejittering and clock generation. 48 * RX-Buffer 51 * ----------------+-------------+------------------- 53 * The rx-buffer is a ring buffer used to store the received data for each [all …]
|
/linux/net/batman-adv/ |
H A D | main.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #define BATADV_DRIVER_DEVICE "batman-adv" 32 * -> TODO: check influence on BATADV_TQ_LOCAL_WINDOW_SIZE 63 /* number of OGMs sent with the last tt diff */ 78 /* default interface for multi interface operation. The default interface is 100 /* BATADV_TQ_SIMILARITY_THRESHOLD - TQ points that a secondary metric can differ 106 * forw_packet->direct_link_flags 127 * BATADV_TP_MAX_NUM - maximum number of simultaneously active tp sessions 132 * enum batadv_mesh_state - State of a soft interface 149 * enum batadv_uev_action - action type of uevent [all …]
|
/linux/rust/kernel/ |
H A D | workqueue.rs | 1 // SPDX-License-Identifier: GPL-2.0 11 //! generic, they are used only at compile-time, so they shouldn't exist in the final binary. 51 //! fn new(value: i32) -> Result<Arc<Self>> { 54 //! work <- new_work!("MyStruct::work"), 96 //! fn new(value_1: i32, value_2: i32) -> Result<Arc<Self>> { 100 //! work_1 <- new_work!("MyStruct::work_1"), 101 //! work_2 <- new_work!("MyStruct::work_2"), 137 /// Creates a [`Work`] initialiser with the given name and a newly-created lock class. 155 // SAFETY: Accesses to workqueues used by [`Queue`] are thread-safe. 157 // SAFETY: Accesses to workqueues used by [`Queue`] are thread-safe. [all …]
|
/linux/drivers/usb/misc/ |
H A D | usb251xb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Microchip USB251xB USB 2.0 Hi-Speed Hub Controller 9 * a not-accepted patch by Fabien Lahoudere, see: 110 #define DRIVER_DESC "Microchip USB 2.0 Hi-Speed Hub Controller" 234 if (dev->type == &i2c_adapter_type) { in usb251xb_check_dev_children() 244 struct gpio_chip *gc = gpiod_to_chip(hub->gpio_reset); in usb251x_check_gpio_chip() 245 struct i2c_adapter *adap = hub->i2c->adapter; in usb251x_check_gpio_chip() 248 if (!hub->gpio_reset) in usb251x_check_gpio_chip() 252 return -EINVAL; in usb251x_check_gpio_chip() 254 ret = usb251xb_check_dev_children(&adap->dev, gc->parent); in usb251x_check_gpio_chip() [all …]
|
/linux/fs/jfs/ |
H A D | jfs_dmap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) International Business Machines Corp., 2000-2004 41 * take the lock in read mode. a single top-down request may proceed 42 * exclusively while multiple bottoms-up requests may proceed 50 * in the face of multiple-bottoms up requests. 57 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock) 58 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) 59 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) 133 2, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 141 * memory is allocated for the in-core bmap descriptor and [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> 18 #include <linux/dma-mapping.h> 24 /* MUSB HOST status 22-mar-2006 26 * - There's still lots of partial code duplication for fault paths, so 29 * - PIO mostly behaved when last tested. 36 * - DMA (CPPI) ... partially behaves, not currently recommended 41 * - DMA (Mentor/OMAP) ...has at least toggle update problems [all …]
|
/linux/include/linux/ |
H A D | rcupdate.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Read-Copy Update mechanism for mutual exclusion 15 * For detailed explanation of Read-Copy Update mechanism see - 34 #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) 35 #define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b)) 38 #define RCU_SEQ_STATE_MASK ((1 << RCU_SEQ_CTR_SHIFT) - 1) 50 // not-yet-completed RCU grace periods. 54 * same_state_synchronize_rcu - Are two old-state values identical? 55 * @oldstate1: First old-state value. 56 * @oldstate2: Second old-state value. [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/drivers/scsi/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 29 If you want to use a SCSI hard disk, SCSI tape drive, SCSI CD-ROM or 79 comment "SCSI support type (disk, tape, CD-ROM)" 89 the IOMEGA ZIP drive, say Y and read the SCSI-HOWTO, 90 the Disk-HOWTO and the Multi-Disk-HOWTO, available from 92 CD-ROMs. 108 SCSI-HOWTO, available from 111 for SCSI CD-ROMs. 122 by SCSI, FireWire, USB or ATAPI, say Y and read the SCSI-HOWTO 123 and the CDROM-HOWTO at <http://www.tldp.org/docs.html#howto>. [all …]
|
/linux/Documentation/gpu/ |
H A D | drm-mm.rst | 6 frame buffers, textures, vertices and other graphics-related data. Given 13 manager to be developed and tried to be a one-size-fits-them all 20 GEM started as an Intel-sponsored project in reaction to TTM's 22 providing a solution to every graphics memory-related problems, GEM 31 .. kernel-doc:: drivers/gpu/drm/ttm/ttm_module.c 34 .. kernel-doc:: include/drm/ttm/ttm_caching.h 38 --------------------------- 40 .. kernel-doc:: include/drm/ttm/ttm_device.h 43 .. kernel-doc:: drivers/gpu/drm/ttm/ttm_device.c 47 -------------------------------- [all …]
|