/openbmc/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 */ 43 return "Can't schedule Start-Split in Y6"; in sch_error_string() 45 return "Can't find a suitable Start-Split location"; in sch_error_string() 47 return "The last Complete-Split is greater than 7"; in sch_error_string() 66 struct usb_endpoint_descriptor *epd = &ep->desc; in decode_ep() 82 usb_endpoint_maxp(epd), epd->bInterval, interval, unit); in decode_ep() 110 * each HS root port is treated as a single bandwidth domain, 116 * SSport0-OUT, SSport0-IN, ..., SSportX-OUT, SSportX-IN, HSport0, ..., HSportY [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 | ehci-q.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2001-2004 by David Brownell 6 /* this file is part of ehci-hcd.c */ 8 /*-------------------------------------------------------------------------*/ 14 * entries describing USB transactions, max 16-20kB/entry (with 4kB-aligned 20 * an ongoing challenge. That's in "ehci-sched.c". 28 /*-------------------------------------------------------------------------*/ 30 /* PID Codes that are used here, from EHCI specification, Table 3-16. */ 45 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 46 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() [all …]
|
H A D | ehci.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (c) 2001-2002 by David Brownell 16 * To facilitate the strongest possible byte-order checking from "sparse" 46 * high-speed devices and full/low-speed devices lying behind a TT. 49 struct usb_device *udev; /* access to the TT */ 53 u16 cs_mask; /* C-mask and S-mask bytes */ 66 /* ehci_hcd->lock guards shared data against other CPUs: 92 * ehci-timer.c) in parallel with this list. 188 the change-suspend feature turned on */ 194 /* per-HC memory pools (could be per-bus, but ...) */ [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/include/qemu/ |
H A D | throttle.h | 4 * Copyright (C) Nodalink, EURL. 2013-2014 5 * Copyright (C) Igalia, S.L. 2015-2016 28 #include "qapi/qapi-types-block-core.h" 50 * - avg: the desired I/O limits in units per second. 51 * - max: the limit during bursts, also in units per second. 52 * - burst_length: the maximum length of the burst period, in seconds. 56 * - The bucket level (number of performed I/O units) is kept in 59 * - The size of the bucket is bkt.max * bkt.burst_length. Once the 63 * - The bkt.avg rate does not apply until the bucket is full, 69 * - Because of all of the above, the user can perform I/O at a [all …]
|
/openbmc/u-boot/Documentation/sphinx-static/ |
H A D | theme_overrides.css | 1 /* -*- coding: utf-8; mode: css -*- 7 /* Interim: Code-blocks with line nos - lines and line numbers don't line up. 12 line-height: normal; 14 .rst-content .highlight > pre { 15 line-height: normal; 23 * tables with tons of columns, which need the full width of the view-port. 26 .wy-nav-content{max-width: none; } 30 * - Sequences of whitespace should collapse into a single whitespace. 31 * - make the overflow auto (scrollbar if needed) 32 * - align caption "left" ("center" is unsuitable on vast tables) [all …]
|
/openbmc/linux/net/batman-adv/ |
H A D | types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 36 * typedef batadv_dat_addr_t - type used for all DHT addresses 47 * enum batadv_dhcp_recipient - dhcp destination 61 * BATADV_TT_REMOTE_MASK - bitmask selecting the flags that are sent over the 67 * BATADV_TT_SYNC_MASK - bitmask of the flags that need to be kept in sync 73 * struct batadv_hard_iface_bat_iv - per hard-interface B.A.T.M.A.N. IV data 82 /** @ogm_seqno: OGM sequence number - used to identify each OGM */ 90 * enum batadv_v_hard_iface_flags - interface flags useful to B.A.T.M.A.N. V 95 * full-duplex 108 * struct batadv_hard_iface_bat_v - per hard-interface B.A.T.M.A.N. V data [all …]
|
H A D | translation-table.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "translation-table.h" 46 #include "hard-interface.h" 51 #include "soft-interface.h" 78 * batadv_compare_tt() - check if two TT entries are the same 79 * @node: the list element pointer of the first TT entry 80 * @data2: pointer to the tt_common_entry of the second TT entry 82 * Compare the MAC address and the VLAN ID of the two TT entries and check if 83 * they are the same TT client. 84 * Return: true if the two TT clients are the same, false otherwise [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | smmu-common.c | 2 * Copyright (C) 2014-2016 Broadcom Corporation 23 #include "hw/qdev-properties.h" 28 #include "qemu/error-report.h" 29 #include "hw/arm/smmu-common.h" 30 #include "smmu-internal.h" 41 a += key->asid + key->vmid + key->level + key->tg; in smmu_iotlb_key_hash() 42 b += extract64(key->iova, 0, 32); in smmu_iotlb_key_hash() 43 c += extract64(key->iova, 32, 32); in smmu_iotlb_key_hash() 55 return (k1->asid == k2->asid) && (k1->iova == k2->iova) && in smmu_iotlb_key_equal() 56 (k1->level == k2->level) && (k1->tg == k2->tg) && in smmu_iotlb_key_equal() [all …]
|
H A D | smmuv3.c | 2 * Copyright (C) 2014-2016 Broadcom Corporation 24 #include "hw/qdev-properties.h" 25 #include "hw/qdev-core.h" 30 #include "qemu/error-report.h" 34 #include "smmuv3-internal.h" 35 #include "smmu-internal.h" 38 (cfg)->record_faults) || \ 40 (cfg)->s2cfg.record_faults)) 43 * smmuv3_trigger_irq - pulse @irq if enabled and update 67 uint32_t pending = s->gerror ^ s->gerrorn; in smmuv3_trigger_irq() [all …]
|
/openbmc/linux/Documentation/sphinx-static/ |
H A D | theme_overrides.css | 1 /* -*- coding: utf-8; mode: css -*- 11 font-family: serif; 12 font-size: 100%; 15 h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend { 16 font-family: sans-serif; 20 font-family: monospace; 21 font-size: 100%; 24 .wy-menu-vertical { 25 font-family: sans-serif; 29 font-style: normal; [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-throttle.c | 4 * Copyright Nodalink, EURL. 2013-2014 12 * See the COPYING.LIB file in the top-level directory. 20 #include "qemu/error-report.h" 21 #include "qemu/main-loop.h" 23 #include "block/throttle-groups.h" 24 #include "sysemu/block-backend.h" 31 static ThrottleTimers *tt; variable 36 return fabsl(x - y) < 1e-6; in double_cmp() 39 /* tests for single bucket operations */ 136 g_assert(double_cmp(bkt.level, (i + 1) * (bkt.max - bkt.avg) / 10.0)); in test_compute_wait() [all …]
|
/openbmc/u-boot/arch/powerpc/lib/ |
H A D | kgdb.c | 48 unsigned int tt; /* Trap type code for powerpc */ member 62 { 0xd00, SIGTRAP }, /* single-step/watch */ 68 computeSignal(unsigned int tt) in computeSignal() argument 72 for (ht = hard_trap_info; ht->tt && ht->signo; ht++) in computeSignal() 73 if (ht->tt == tt) in computeSignal() 74 return ht->signo; in computeSignal() 84 kdp->private[0] = msr = get_msr(); in kgdb_enter() 87 if (regs->nip == (unsigned long)breakinst) { in kgdb_enter() 89 regs->nip += 4; in kgdb_enter() 91 regs->msr &= ~MSR_SE; in kgdb_enter() [all …]
|
/openbmc/u-boot/common/ |
H A D | usb_hub.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * (C) Copyright Johannes Erdfelt 1999-2001 15 * Adapted for U-Boot: 64 return hdev->descriptor.bDeviceProtocol == 3; in usb_hub_is_superspeed() 70 if (device_get_uclass_id(hub->parent) != UCLASS_USB_HUB) in usb_hub_is_root_hub() 79 return -EINVAL; in usb_set_hub_depth() 134 * that U-Boot understands. Do this only when the hub is not root hub. in usb_get_port_status() 141 if (!usb_hub_is_root_hub(dev->dev) && usb_hub_is_superspeed(dev)) { in usb_get_port_status() 143 u16 tmp = (status->wPortStatus) & USB_SS_PORT_STAT_MASK; in usb_get_port_status() 145 if (status->wPortStatus & USB_SS_PORT_STAT_POWER) in usb_get_port_status() [all …]
|
/openbmc/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_gem.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 #include <linux/dma-buf.h> 28 lbo->sharing_count++; in lsdc_gem_prime_pin() 45 if (lbo->sharing_count) in lsdc_gem_prime_unpin() 46 lbo->sharing_count--; in lsdc_gem_prime_unpin() 54 struct ttm_tt *tt = tbo->ttm; in lsdc_gem_prime_get_sg_table() local 56 if (!tt) { in lsdc_gem_prime_get_sg_table() 57 drm_err(obj->dev, "sharing a buffer without backing memory\n"); in lsdc_gem_prime_get_sg_table() 58 return ERR_PTR(-ENOMEM); in lsdc_gem_prime_get_sg_table() 61 return drm_prime_pages_to_sg(obj->dev, tt->pages, tt->num_pages); in lsdc_gem_prime_get_sg_table() [all …]
|
/openbmc/linux/include/uapi/linux/usb/ |
H A D | ch11.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 16 * From USB 2.0 spec Table 11-13, offset 7, a hub can 24 /* See USB 3.1 spec Table 10-5 */ 36 * See USB 3.1 spec Table 10-12 44 * See USB 2.0 spec Table 11-16 53 * See USB 3.0 spec Table 10-6 60 * See USB 2.0 spec Table 11-17 67 * See USB 2.0 spec Table 11-17 88 * See USB 3.0 spec Table 10-7 102 /* USB 3.0 hub remote wake mask bits, see table 10-14 */ [all …]
|
/openbmc/qemu/docs/sphinx-static/ |
H A D | theme_overrides.css | 1 /* -*- coding: utf-8; mode: css -*- 4 * Based on Linux Documentation/sphinx-static/theme_overrides.css 10 font-family: serif; 12 font-size: 100%; 15 h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend { 16 font-family: sans-serif; 19 .rst-content dl:not(.docutils) dt { 20 border-top: none; 21 border-left: solid 3px #ccc; 22 background-color: #f0f0f0; [all …]
|
/openbmc/qemu/rust/qemu-api/src/ |
H A D | offset_of.rs | 1 // SPDX-License-Identifier: MIT 22 …// https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=10a22a9b8393abd7b54… 24 // used under MIT license with permission of Yandros aka Daniel Henry-Mantilla 50 // now turn StructOffsetsHelper<T>'s consts into a single struct, 79 @names [$field_name:ident $($other_names:tt)*] 80 @tys [$field_ty:ty , $($other_tys:tt)*] 89 END_OF_PREV_FIELD + (if TRAIL == 0 { 0usize } else { ALIGN - TRAIL })
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | spiterrs.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * We pass the AFAR in as-is, and we encode the status 7 * information as described in asm-sparc64/sfafsr.h 27 rdpr %tt, %g3 40 * error bits as-needed. We only clear them if the UE bit is 44 * NOTE: UltraSparc-I/II have high and low UDB error 46 * present on those chips. UltraSparc-IIi only 47 * has a single UDB, called "SDB" in the manual. 105 .size __spitfire_access_error,.-__spitfire_access_error 112 * 1) single-bit ECC errors during UDB reads to system [all …]
|
/openbmc/linux/drivers/scsi/libfc/ |
H A D | fc_disc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2007 - 2008 Intel Corporation. All rights reserved. 5 * Maintained at www.Open-FCoE.org 11 * This block discovers all FC-4 remote ports, including FCP initiators. It 12 * also handles RSCN events and re-discovery if necessary. 48 * fc_disc_stop_rports() - Delete all the remote ports associated with the lport 55 lockdep_assert_held(&disc->disc_mutex); in fc_disc_stop_rports() 57 list_for_each_entry(rdata, &disc->rports, peers) { in fc_disc_stop_rports() 58 if (kref_get_unless_zero(&rdata->kref)) { in fc_disc_stop_rports() 60 kref_put(&rdata->kref, fc_rport_destroy); in fc_disc_stop_rports() [all …]
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm_infineon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * SLD 9630 TT 1.1 and SLB 9635 TT 1.2 Trusted Platform Module 9 * Sirrix AG - security technologies <tpmdd@sirrix.com> and 10 * Applied Data Security Group, Ruhr-University Bochum, Germany 11 * Project-Homepage: http://www.trust.rub.de/projects/linux-device-driver-infineon-tpm/ 19 /* maximum number of WTX-packages */ 21 /* msleep-Time for WTX-packages */ 23 /* msleep-Time --> Interval to check status register */ 25 /* gives number of max. msleep()-calls before throwing timeout */ 176 return -EIO; in empty_fifo() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | kgdb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 2004-2006 MontaVista Software, Inc. 11 * Copyright (C) 2007-2008 Wind River Systems, Inc. 24 #include <asm/code-patching.h> 31 * don't always agree on values, so we use constants taken from gdb-6.2. 35 unsigned int tt; /* Trap type code for powerpc */ member 68 { 0x0d00, 0x05 /* SIGTRAP */ }, /* single-step */ 92 static int computeSignal(unsigned int tt) in computeSignal() argument 96 for (ht = hard_trap_info; ht->tt && ht->signo; ht++) in computeSignal() 97 if (ht->tt == tt) in computeSignal() [all …]
|
/openbmc/linux/arch/m68k/atari/ |
H A D | config.c | 10 * gettod() for TT 40 #include <asm/bootinfo-atari.h> 125 * Parse an Atari-specific record in the bootinfo 131 const void *data = record->data; in atari_parse_bootinfo() 133 switch (be16_to_cpu(record->tag)) { in atari_parse_bootinfo() 148 /* Parse the Atari-specific switches= option. */ 240 * hardware, we assume that the ST-DMA serves SCSI instead of in config_atari() 245 pr_cont(" STDMA-SCSI"); in config_atari() 272 * The ST-DMA address registers aren't readable in config_atari() 392 /* allocator for memory that must reside in st-ram */ in config_atari() [all …]
|
/openbmc/u-boot/drivers/serial/ |
H A D | usbtty.c | 1 // SPDX-License-Identifier: GPL-2.0+ 95 static u8 wstrManufacturer[2 + 2*(sizeof(CONFIG_USBD_MANUFACTURER)-1)]; 96 static u8 wstrProduct[2 + 2*(sizeof(CONFIG_USBD_PRODUCT_NAME)-1)]; 97 static u8 wstrSerial[2 + 2*(sizeof(serial_number) - 1)]; 98 static u8 wstrConfiguration[2 + 2*(sizeof(CONFIG_USBD_CONFIGURATION_STR)-1)]; 99 static u8 wstrDataInterface[2 + 2*(sizeof(CONFIG_USBD_DATA_INTERFACE_STR)-1)]; 100 static u8 wstrCtrlInterface[2 + 2*(sizeof(CONFIG_USBD_DATA_INTERFACE_STR)-1)]; 153 struct usb_endpoint_descriptor data_endpoints[NUM_ENDPOINTS-1]; 398 udc_unset_nak(endpoint->endpoint_address&0x03); in usbtty_tstc() 406 * Read a single byte from the usb client port. Returns 1 on success, 0 [all …]
|