/openbmc/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00queue.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com> 68 * @SKBDESC_DESC_IN_SKB: The descriptor is at the start of the 80 * struct skb_frame_desc: Descriptor information for the skb buffer 86 * @desc_len: Length of the frame descriptor. 89 * @desc: Pointer to descriptor part of the frame. 91 * of the scope of the skb->data pointer. 93 * @skb_dma: (PCI-only) the DMA address associated with the sk buffer. 112 * get_skb_frame_desc - Obtain the rt2x00 frame descriptor from a sk_buff. 119 return (struct skb_frame_desc *)&IEEE80211_SKB_CB(skb)->driver_data; in get_skb_frame_desc() [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/ |
H A D | 7990.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * 7990.h -- LANCE ethernet IC generic routines. 11 * in particular a2065.[ch]. The AMD C-LANCE datasheet was also helpful. 32 * too long (and overflow the RAM on shared-memory cards like the HP LANCE. 41 #define TX_RING_MOD_MASK (TX_RING_SIZE - 1) 42 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1) 49 /* Each receive buffer is described by a receive message descriptor (RMD) */ 51 volatile unsigned short rmd0; /* low address of packet */ 52 volatile unsigned char rmd1_bits; /* descriptor bits */ 54 volatile short length; /* This length is 2s complement (negative)! [all …]
|
H A D | a2065.h | 4 * (C) Copyright 1995 by Geert Uytterhoeven <geert@linux-m68k.org> 6 * --------------------------------------------------------------------------- 15 * Written 1993-94 by Donald Becker. 17 * Am79C960: PCnet(tm)-ISA Single-Chip Ethernet Controller 21 * --------------------------------------------------------------------------- 27 * --------------------------------------------------------------------------- 29 * The A2065 is a Zorro-II board made by Commodore/Ameristar. It contains: 31 * - an Am7990 Local Area Network Controller for Ethernet (LANCE) with 32 * both 10BASE-2 (thin coax) and AUI (DB-15) connectors 41 unsigned short rdp; /* Register Data Port */ [all …]
|
/openbmc/u-boot/disk/ |
H A D | part_iso.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 14 …unsigned char desctype; /* type of Volume descriptor: 0 = boot record, 1 = primary, 2 = Suppleme… 24 …unsigned char desctype; /* type of Volume descriptor: 0 = boot record, 1 = primary, 2 = Suppleme… 34 unsigned short setsize_LE; /* volume set size LE */ 35 unsigned short setsize_BE; /* volume set size BE */ 36 unsigned short seqnum_LE; /* volume sequence number LE */ 37 unsigned short seqnum_BE; /* volume sequence number BE */ 38 unsigned short secsize_LE; /* sector size LE */ 39 unsigned short secsize_BE; /* sector size BE */ 62 …unsigned char desctype; /* type of Volume descriptor: 0 = boot record, 1 = primary, 2 = Suppleme… [all …]
|
/openbmc/linux/tools/virtio/ringtest/ |
H A D | ring.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Simple descriptor-based ring. virtio 0.9 compatible event index is used for 15 /* Next - Where next entry will be written. 16 * Prev - "Next" value when event triggered previously. 17 * Event - Peer requested event after writing this entry. 19 static inline bool need_event(unsigned short event, in need_event() 20 unsigned short next, in need_event() 21 unsigned short prev) in need_event() 23 return (unsigned short)(next - event - 1) < (unsigned short)(next - prev); in need_event() 34 unsigned short flags; [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | 3w-9xxx.h | 2 3w-9xxx.h -- 3ware 9000 Storage Controller device driver for Linux. 7 Copyright (C) 2004-2009 Applied Micro Circuits Corporation. 22 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 41 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 88 {0x0020, "Prepare for shutdown (power-off)"}, 111 {0x0037, "SO-DIMM incompatible"}, 112 {0x0038, "SO-DIMM not detected"}, 189 {0x0184, "DCB UDB (unit descriptor block) segment invalid"}, 233 {0x0242, "SO-DIMM parameter(s) incompatible using defaults"}, 234 {0x0243, "SO-DIMM unsupported"}, [all …]
|
H A D | st.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 /* Descriptor for analyzed sense data */ 36 /* The tape buffer descriptor. */ 39 unsigned short do_dio; /* direct i/o set up? */ 53 unsigned short use_sg; /* zero or max number of s/g segments for this adapter */ 54 unsigned short sg_segs; /* number of segments in s/g list */ 55 unsigned short frp_segs; /* number of buffer segments */ 67 short default_density; /* Forced density, -1 = no value */ 68 int default_blksize; /* Forced blocksize, -1 = no value */ 70 struct device *devs[2]; /* Auto-rewind and non-rewind devices */ [all …]
|
/openbmc/linux/drivers/target/loopback/ |
H A D | tcm_loop.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 #define TCM_LOOP_VERSION "v2.1-rc2" 11 /* State of Linux/SCSI CDB+Data descriptor */ 15 /* Pointer to the CDB+Data descriptor from Linux/SCSI subsystem */ 17 /* The TCM I/O descriptor that is accessed via container_of() */ 35 unsigned short tl_tpgt; 36 unsigned short tl_transport_status;
|
/openbmc/linux/drivers/net/ethernet/i825xx/ |
H A D | sun3_82586.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 * copyrights (c) 1994 by Michael Hipp (hippm@informatik.uni-tuebingen.de) 11 * crynwr-packet-driver by Russ Nelson 12 * Garret A. Wollman's i82586-driver for BSD 48 unsigned short zero_dum0; /* has to be zero */ 51 unsigned short zero_dum2; 52 unsigned short zero_dum3; 53 char *iscp; /* pointer to the iscp-block */ 64 unsigned short scb_offset; /* pointeroffset to the scb_base */ 65 char *scb_base; /* base-address of all 16-bit offsets */ [all …]
|
/openbmc/linux/drivers/staging/vt6655/ |
H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 * vt6655_mac_is_reg_bits_off - Test if All test Bits Off 14 * vt6655_mac_set_short_retry_limit - Set 802.11 Short Retry limit 15 * MACvSetLongRetryLimit - Set 802.11 Long Retry limit 16 * vt6655_mac_set_loopback_mode - Set MAC Loopback Mode 17 * vt6655_mac_save_context - Save Context of MAC Registers 18 * vt6655_mac_restore_context - Restore Context of MAC Registers 19 * MACbSoftwareReset - Software Reset MAC 20 * vt6655_mac_safe_rx_off - Turn Off MAC Rx 21 * vt6655_mac_safe_tx_off - Turn Off MAC Tx [all …]
|
/openbmc/linux/drivers/net/ethernet/synopsys/ |
H A D | dwc-xlgmac.h | 5 * This program is dual-licensed; you may select either version 2 of 21 #include <linux/dma-mapping.h> 29 #define XLGMAC_DRV_NAME "dwc-xlgmac" 33 /* Descriptor related parameters */ 47 #define XLGMAC_TX_MAX_BUF_SIZE (0x3fff & ~(64 - 1)) 92 /* Helper macro for descriptor handling 93 * Always use XLGMAC_GET_DESC_DATA to access the descriptor data 97 ((_ring)->desc_data_head + \ 98 ((idx) & ((_ring)->dma_desc_count - 1))); \ 104 ((var) & GENMASK(_pos + _len - 1, _pos)) >> (_pos); \ [all …]
|
/openbmc/linux/drivers/net/wan/ |
H A D | hd64572.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * hd64572.h Description of the Hitachi HD64572 (SCA-II), valid for 8 * Copyright: (c) 2000-2001 Cyclades Corp. 15 * PC300 initial CVS version (3.4.0-pre1) 98 #define TFN 0x143 /* Inter-transmit-frame Time Fill Ctl Reg */ 125 #define BOLR 0x0c /* Back-off Length Reg */ 143 #define DARL 0x80 /* Dest Addr Register L (single-block, RX only) */ 144 #define DARH 0x81 /* Dest Addr Register H (single-block, RX only) */ 145 #define DARB 0x82 /* Dest Addr Register B (single-block, RX only) */ 146 #define DARBH 0x83 /* Dest Addr Register BH (single-block, RX only) */ [all …]
|
/openbmc/linux/drivers/target/ |
H A D | target_core_xcopy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * This file contains support for SPC-4 Extended-Copy offload with generic 8 * Copyright (c) 2011-2013 Datera, Inc. All rights reserved. 37 * target_xcopy_locate_se_dev_e4_iter - compare XCOPY NAA device identifiers 41 * @return: 1 on match, 0 on no-match 49 if (!se_dev->dev_attrib.emulate_3pc) { in target_xcopy_locate_se_dev_e4_iter() 59 pr_debug("XCOPY: skip non-matching: %*ph\n", in target_xcopy_locate_se_dev_e4_iter() 85 nacl = sess->se_node_acl; in target_xcopy_locate_se_dev_e4() 87 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) { in target_xcopy_locate_se_dev_e4() 91 this_lun = deve->se_lun; in target_xcopy_locate_se_dev_e4() [all …]
|
/openbmc/linux/drivers/dma/fsl-dpaa2-qdma/ |
H A D | dpaa2-qdma.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 24 u32 rbpcmd; /* Route-by-port command */ 28 /* Source descriptor command read transaction type for RBP=0: */ 31 /* Destination descriptor command write transaction type for RBP=0: */ 39 #define QMAN_FD_SL_DISABLE (0) /* short lengthe disabled */ 40 #define QMAN_FD_SL_ENABLE BIT(14) /* short lengthe enabled */ 45 #define QDMA_FD_SHORT_FORMAT BIT(11) /* short format */ 65 #define QDMA_FL_SL_SHORT (0x1) /* short length */ 110 * dpaa2_qdma_priv - driver private data 145 /* FD pool size: one FD + 3 Frame list + 2 source/destination descriptor */
|
/openbmc/linux/drivers/usb/core/ |
H A D | config.c | 1 // SPDX-License-Identifier: GPL-2.0 34 /* Find the next descriptor of type dt1 or dt2 */ in find_next_descriptor() 37 if (h->bDescriptorType == dt1 || h->bDescriptorType == dt2) in find_next_descriptor() 39 buffer += h->bLength; in find_next_descriptor() 40 size -= h->bLength; in find_next_descriptor() 48 return buffer - buffer0; in find_next_descriptor() 58 * The SuperSpeedPlus Isoc endpoint companion descriptor immediately in usb_parse_ssp_isoc_endpoint_companion() 59 * follows the SuperSpeed Endpoint Companion descriptor in usb_parse_ssp_isoc_endpoint_companion() 62 if (desc->bDescriptorType != USB_DT_SSP_ISOC_ENDPOINT_COMP || in usb_parse_ssp_isoc_endpoint_companion() 66 cfgno, inum, asnum, ep->desc.bEndpointAddress); in usb_parse_ssp_isoc_endpoint_companion() [all …]
|
/openbmc/u-boot/drivers/fpga/ |
H A D | lattice.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 static unsigned short expectedCRC; 27 extern unsigned short g_usCalculatedCRC; 28 extern unsigned short g_usDataType; 31 extern unsigned short g_iHeapCounter; 32 extern unsigned short g_iHEAPSize; 33 extern unsigned short g_usIntelDataIndex; 34 extern unsigned short g_usIntelBufferSize; 51 * It is understood that due to a_usTimeDelay is defined as unsigned short, a 16 53 * micro-seconds or 32000 milli-second maximum. The VME file will never pass on [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | natsemi.c | 2 natsemi.c: A U-Boot driver for the NatSemi DP8381x series. 21 Written/copyright 1999-2001 by Donald Becker. 48 * Initial U-Boot Release. Tested with Netgear FA311 board 61 #define EEPROM_SIZE 0xb /*12 16-bit chunks, or 24 bytes*/ 68 #define NUM_RX_DESC 4 /* Number of Rx descriptor registers. */ 71 Unlike software-only systems, device drivers interact with complex hardware. 228 short value); 248 #define bus_to_phys(a) pci_mem_to_phys((pci_dev_t)dev->priv, a) 249 #define phys_to_bus(a) pci_phys_to_mem((pci_dev_t)dev->priv, a) 254 return le16_to_cpu(*(vu_short *) (addr + dev->iobase)); in INW() [all …]
|
H A D | eepro100.c | 1 // SPDX-License-Identifier: GPL-2.0+ 70 #define SCB_SWI 0x0200 /* 1 - cause device to interrupt */ 103 /* The EEPROM commands include the alway-set leading bit. 138 #define RFD_RX_SHORT 0x0080 /* short frame error */ 147 struct TxFD { /* Transmit frame descriptor set. */ 172 struct descriptor { /* A generic descriptor. */ struct 175 volatile u32 link; /* struct descriptor * */ argument 196 static struct RxFD rx_ring[NUM_RX_DESC]; /* RX descriptor ring */ argument 197 static struct TxFD tx_ring[NUM_TX_DESC]; /* TX descriptor ring */ 198 static int rx_next; /* RX descriptor ring pointer */ [all …]
|
/openbmc/linux/arch/x86/math-emu/ |
H A D | get_address.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /*---------------------------------------------------------------------------+ 9 | Australia. E-mail billm@suburbia.net | 12 +---------------------------------------------------------------------------*/ 14 /*---------------------------------------------------------------------------+ 19 +---------------------------------------------------------------------------*/ 43 #define REG_(x) (*(long *)(reg_offset[(x)] + (u_char *)FPU_info->regs)) 55 #define VM86_REG_(x) (*(unsigned short *) \ 56 (reg_offset_vm86[((unsigned)x)] + (u_char *)FPU_info->regs)) 68 #define PM_REG_(x) (*(unsigned short *) \ [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() 89 unsigned short dtype = USB_DT_HUB; in usb_get_hub_descriptor() 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() [all …]
|
H A D | usb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * (C) Copyright Johannes Erdfelt 1999-2001 15 * Adapted for U-Boot: 71 usb_dev[i].devnum = -1; in usb_init() 79 if (ret == -ENODEV) { /* No such device. */ in usb_init() 106 usb_free_device(dev->controller); in usb_init() 113 dev_index - start_index); in usb_init() 124 return usb_started ? 0 : -ENODEV; in usb_init() 189 /*------------------------------------------------------------------- 209 * returns the transferred length if OK or -1 if error. The transferred length [all …]
|
/openbmc/u-boot/include/ |
H A D | usb.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 6 * Adapted for U-Boot driver model 45 * time for a BULK device to react - some are slow. 69 * Companion Descriptor (section 9.6.7 of usb 3.0 spec) 92 * struct usb_device - information about a USB device 123 /* Device Descriptor */ 124 struct usb_device_descriptor descriptor member 126 struct usb_config config; /* config descriptor */ 135 * Child devices - if this is a hub device 149 /* slot_id - for xHCI enabled devices */ [all …]
|
/openbmc/linux/arch/x86/lib/ |
H A D | insn-eval.c | 14 #include <asm/insn-eval.h> 29 * is_string_insn() - Determine if instruction is a string instruction 40 /* All string instructions have a 1-byte opcode. */ in is_string_insn() 41 if (insn->opcode.nbytes != 1) in is_string_insn() 44 switch (insn->opcode.bytes[0]) { in is_string_insn() 55 * insn_has_rep_prefix() - Determine if instruction has a REP prefix 78 * get_seg_reg_override_idx() - obtain segment register override index 89 * -EINVAL in case of error. 135 return -EINVAL; in get_seg_reg_override_idx() 141 * check_seg_overrides() - check if segment override prefixes are allowed [all …]
|
/openbmc/qemu/tests/tcg/x86_64/system/ |
H A D | boot.S | 7 * See the COPYING file in the top-level directory. 13 * SPDX-License-Identifier: GPL-2.0-or-later 21 .long 2f - 1f /* namesz */ ; \ 22 .long 4484f - 3f /* descsz */ ; \ 57 * - `ebx`: contains the physical memory address where the loader has placed 59 * - `cr0`: bit 0 (PE) must be set. All the other writable bits are cleared. 60 * - `cr4`: all bits are cleared. 61 * - `cs `: must be a 32-bit read/execute code segment with a base of ‘0’ 63 * - `ds`, `es`: must be a 32-bit read/write data segment with a base of 66 * - `tr`: must be a 32-bit TSS (active) with a base of '0' and a limit [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath5k/ |
H A D | desc.h | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 20 * RX/TX descriptor structures 24 * struct ath5k_hw_rx_ctl - Common hardware RX control descriptor 38 * struct ath5k_hw_rx_status - Common hardware RX status descriptor 62 #define AR5K_5210_RX_DESC_STATUS1_DONE 0x00000001 /* descriptor complete */ 89 #define AR5K_5212_RX_DESC_STATUS1_DONE 0x00000001 /* descriptor complete */ 105 * enum ath5k_phy_error_code - PHY Error codes 151 * struct ath5k_hw_2w_tx_ctl - 5210/5211 hardware 2-word TX control descriptor 168 #define AR5K_2W_TX_DESC_CTL0_VEOL_5211 0x00800000 /* [5211] virtual end-of-list */ [all …]
|