| /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() 122 * each HS root port is treated as a single bandwidth domain, [all …]
|
| H A D | xhci-mtk.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 #define XHCI_MTK_BW_INDEX(x) ((x) & (XHCI_MTK_MAX_ESIT - 1)) 37 * struct mu3h_sch_tt - TT scheduling data 42 * @in_ss_cnt: the count of Start-Split for IN eps 43 * @ep_list: Endpoints using this TT 55 * struct mu3h_sch_bw_info - schedule information for bandwidth domain 67 * struct mu3h_sch_ep_info - schedule information for endpoint 69 * @esit: unit is 125us, equal to 2 << Interval field in ep-context 93 * distribute the bMaxBurst+1 packets for a single burst 130 * struct mu3c_ippc_regs - MTK ssusb ip port control registers [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 …]
|
| /linux/net/batman-adv/ |
| H A D | types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 37 * typedef batadv_dat_addr_t - type used for all DHT addresses 48 * enum batadv_dhcp_recipient - dhcp destination 62 * BATADV_TT_REMOTE_MASK - bitmask selecting the flags that are sent over the 68 * BATADV_TT_SYNC_MASK - bitmask of the flags that need to be kept in sync 74 * struct batadv_hard_iface_bat_iv - per hard-interface B.A.T.M.A.N. IV data 83 /** @ogm_seqno: OGM sequence number - used to identify each OGM */ 91 * enum batadv_v_hard_iface_flags - interface flags useful to B.A.T.M.A.N. V 96 * full-duplex 109 * 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" 47 #include "hard-interface.h" 50 #include "mesh-interface.h" 79 * batadv_compare_tt() - check if two TT entries are the same 80 * @node: the list element pointer of the first TT entry 81 * @data2: pointer to the tt_common_entry of the second TT entry 83 * Compare the MAC address and the VLAN ID of the two TT entries and check if 84 * they are the same TT client. 85 * Return: true if the two TT clients are the same, false otherwise [all …]
|
| H A D | mesh-interface.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "mesh-interface.h" 46 #include "distributed-arp-table.h" 48 #include "hard-interface.h" 51 #include "translation-table.h" 54 * batadv_skb_head_push() - Increase header size and move (push) head pointer 64 /* TODO: We must check if we can release all references to non-payload in batadv_skb_head_push() 67 * or write any data which is before the current position of skb->data in batadv_skb_head_push() 80 * batadv_sum_counter() - Sum the cpu-local counters for index 'idx' 84 * Return: sum of all cpu-local counters [all …]
|
| /linux/rust/quote/ |
| H A D | lib.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 3 …]](https://github.com/dtolnay/quote) [![crates-io]](https://crates.io/crates/quote) [![d… 5 //! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo… 6 //! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=55555… 7 //! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&lo… 17 //! crate. Quasi-quoting is a solution to one piece of that — producing 20 //! The idea of quasi-quoting is that we write *code* that we treat as *data*. 29 //! general-purpose Rust quasi-quoting library and is not specific to procedural 41 //! The following quasi-quoted block of code is something you might find in [a] 67 //! fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> [all …]
|
| H A D | runtime.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 29 fn bitor(self, _rhs: ThereIsNoIteratorInRepetition) -> ThereIsNoIteratorInRepetition { in bitor() 36 fn bitor(self, _rhs: ThereIsNoIteratorInRepetition) -> HasIterator { in bitor() 43 fn bitor(self, _rhs: HasIterator) -> HasIterator { in bitor() 50 fn bitor(self, _rhs: HasIterator) -> HasIterator { in bitor() 56 /// in separate traits, rather than as a single trait due to ambiguity issues. 72 fn quote_into_iter(self) -> (Self, HasIter) { in quote_into_iter() 80 /// non-iterable types. These types interpolate the same value in each 87 fn next(&self) -> Option<&Self> { in next() 91 fn quote_into_iter(&self) -> (&Self, DoesNotHaveIter) { in quote_into_iter() [all …]
|
| /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 …]
|
| /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 …]
|
| /linux/rust/kernel/ |
| H A D | init.rs | 1 // SPDX-License-Identifier: GPL-2.0 3 //! Extensions to the [`pin-init`] crate. 5 //! Most `struct`s from the [`sync`] module need to be pinned, because they contain self-referential 8 //! The [`pin-init`] crate is the way such structs are initialized on the Rust side. Please refer 14 //! [pinning]: https://doc.rust-lang.org/std/pin/index.html 15 //! [`pin-init`]: https://rust.docs.kernel.org/pin_init/ 19 //! For the special case where initializing a field is a single FFI-functio [all...] |
| H A D | dma.rs | 1 // SPDX-License-Identifier: GPL-2.0 5 //! C header: [`include/linux/dma-mapping.h`](srctree/include/linux/dma-mapping.h) 41 /// Note that this may be `u64` even on 32-bit architectures. 60 unsafe fn dma_set_mask(&self, mask: DmaMask) -> Result { in dma_set_mask() 62 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid. in dma_set_mask() 63 // - The safety requirement of this function guarantees that there are no concurrent calls in dma_set_mask() 77 unsafe fn dma_set_coherent_mask(&self, mask: DmaMask) -> Result { in dma_set_coherent_mask() 79 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid. in dma_set_coherent_mask() 80 // - The safety requirement of this function guarantees that there are no concurrent calls in dma_set_coherent_mask() 96 unsafe fn dma_set_mask_and_coherent(&self, mask: DmaMask) -> Result { in dma_set_mask_and_coherent() [all …]
|
| /linux/rust/syn/ |
| H A D | buffer.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 7 // Syn, and caution should be used when editing it. The public-facing interface 20 // Mimicking types from proc-macro. 35 // NOTE: Do not implement clone on this - while the current design could be 42 for tt in stream { in recursive_new() 43 match tt { in recursive_new() 52 let group_offset = group_end_index - group_start_index; in recursive_new() 54 -(group_end_index as isize), in recursive_new() 55 -(group_offset as isize), in recursive_new() 65 #[cfg(feature = "proc-macro")] [all …]
|
| /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 …]
|
| /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 …]
|
| H A D | fc_lport.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Maintained at www.Open-FCoE.org 27 * be held while attempting to acquire a greater lock. Here is the hierarchy- 42 * single-threaded workqueue. An rport would never be free'd while in a 92 /* Fabric IDs to use for point-to-point mode, chosen on whims. */ 134 * struct fc_bsg_info - FC Passthrough managemet structure 138 * @sg: job->reply_payload.sg_list 139 * @nents: job->reply_payload.sg_cnt 152 * fc_frame_drop() - Dummy frame handler 163 * fc_lport_rport_callback() - Event handler for rport events [all …]
|
| /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 */ 182 return -EIO; in empty_fifo() [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 122 * Returns: true if the BO is placed in a single memory location, false otherwise. 127 return bo->placement.num_placement == 1; in xe_bo_has_single_placement() [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/rust/proc-macro2/ |
| H A D | fallback.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 25 #[cfg(feature = "proc-macro")] 33 /// Force use of proc-macro2's fallback implementation of the API for now, even 58 pub(crate) fn span(&self) -> Span { in span() 62 pub(crate) fn call_site() -> Self { in call_site() 70 pub(crate) fn new() -> Self { in new() 76 pub(crate) fn from_str_checked(src: &str) -> Result<Self, LexError> { in from_str_checked() 89 #[cfg(feature = "proc-macro")] 90 pub(crate) fn from_str_unchecked(src: &str) -> Self { in from_str_unchecked() 94 pub(crate) fn is_empty(&self) -> bool { in is_empty() [all …]
|
| /linux/drivers/usb/dwc2/ |
| H A D | hcd.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * hcd.h - DesignWare HS OTG Controller host-mode declarations 5 * Copyright (C) 2004-2013 Synopsys, Inc. 24 * struct dwc2_host_chan - Software host channel descriptor 31 * - USB_SPEED_LOW 32 * - USB_SPEED_FULL 33 * - USB_SPEED_HIGH 35 * - USB_ENDPOINT_XFER_CONTROL: 0 36 * - USB_ENDPOINT_XFER_ISOC: 1 37 * - USB_ENDPOINT_XFER_BULK: 2 [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | atafb.c | 2 * linux/drivers/video/atafb.c -- Atari builtin chipset frame buffer device 11 * - 03 Jan 95: Original version by Martin Schaller: The TT driver and 13 * - 09 Jan 95: Roman: I've added the hardware abstraction (hw_switch) 15 * based on the original TT driver. 16 * - 07 May 95: Martin: Added colormap operations for the external driver 17 * - 21 May 95: Martin: Added support for overscan 19 * - Jul 95: Guenther Kelleter <guenther@pool.informatik.rwth-aachen.de>: 23 * - 27 Dec 95: Guenther: Implemented user definable video modes "user[0-7]" 28 * - 23 Sep 97: Juergen: added xres_virtual for cards like ProMST 29 * The external-part is legacy, therefore hardware-specific [all …]
|
| /linux/drivers/scsi/ |
| H A D | libiscsi_tcp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * iSCSI over TCP/IP Data-Path lib 7 * Copyright (C) 2005 - 2006 Mike Christie 9 * maintained by open-iscsi@googlegroups.com 42 MODULE_DESCRIPTION("iSCSI/TCP data-path"); 59 &(_conn)->cls_conn->dev, \ 80 * iscsi_tcp_segment_init_sg - init indicated scatterlist entry 93 segment->sg = sg; in iscsi_tcp_segment_init_sg() 94 segment->sg_offset = offset; in iscsi_tcp_segment_init_sg() 95 segment->size = min(sg->length - offset, in iscsi_tcp_segment_init_sg() [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/lib/crypto/ |
| H A D | sha3.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * SHA-3, as specified in 6 * SHA-3 code by Jeff Garzik <jeff@garzik.org> 23 * On some 32-bit architectures, such as h8300, GCC ends up using over 1 KB of 25 * sha3_keccakf_generic(). On the other hand, on 64-bit architectures with 26 * plenty of [64-bit wide] general purpose registers, not inlining it severely 27 * hurts performance. So let's use 64-bitness as a heuristic to decide whether 50 * Perform a single round of Keccak mixing. 54 u64 t[5], tt, bc[5]; in sha3_keccakf_one_round_generic() local 72 tt = st[1]; in sha3_keccakf_one_round_generic() [all …]
|