/linux/drivers/mtd/nand/raw/ |
H A D | internals.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2018 - Bootlin 17 * NAND Flash Manufacturer ID Codes 38 * struct nand_manufacturer_ops - NAND Manufacturer operations 40 * @init: initialize all vendor specific fields (like the ->read_retry() 42 * @cleanup: the ->init() function may have allocated resources, ->cleanup() 56 * struct nand_manufacturer_desc - NAND Flash Manufacturer descriptor 57 * @name: Manufacturer name 58 * @id: manufacturer ID code of device. 59 * @ops: manufacturer operations [all …]
|
H A D | nand_onfi.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 24 while (len--) { in onfi_crc16() 37 struct nand_device *base = &chip->base; in nand_flash_detect_ext_param_page() 47 len = le16_to_cpu(p->ext_param_page_length) * 16; in nand_flash_detect_ext_param_page() 50 return -ENOMEM; in nand_flash_detect_ext_param_page() 57 sizeof(*p) * p->num_of_param_pages, in nand_flash_detect_ext_param_page() 62 ret = -EINVAL; in nand_flash_detect_ext_param_page() 63 if ((onfi_crc16(ONFI_CRC_BASE, ((uint8_t *)ep) + 2, len - 2) in nand_flash_detect_ext_param_page() 64 != le16_to_cpu(ep->crc))) { in nand_flash_detect_ext_param_page() [all …]
|
H A D | nand_ids.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 * The chip ID list: 18 * name, device ID, page size, chip size in MiB, eraseblock size, options 21 * extended chip ID. 25 * Some incompatible NAND chips share device ID's and so must be 26 * listed by full ID. We list them first so that we can easily identify 29 {"TC58NVG0S3E 1G 3.3V 8-bit", 30 { .id = {0x98, 0xd1, 0x90, 0x15, 0x76, 0x14, 0x01, 0x00} }, 32 {"TC58NVG2S0F 4G 3.3V 8-bit", 33 { .id = {0x98, 0xdc, 0x90, 0x26, 0x76, 0x15, 0x01, 0x08} }, [all …]
|
H A D | nand_jedec.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 26 struct nand_device *base = &chip->base; in nand_jedec_detect() 33 char id[5]; in nand_jedec_detect() local 37 memorg = nanddev_get_memorg(&chip->base); in nand_jedec_detect() 40 ret = nand_readid_op(chip, 0x40, id, sizeof(id)); in nand_jedec_detect() 41 if (ret || strncmp(id, "JEDEC", sizeof(id))) in nand_jedec_detect() 47 return -ENOMEM; in nand_jedec_detect() 49 if (!nand_has_exec_op(chip) || chip->controller->supported_op.data_only_read) in nand_jedec_detect() 68 if (crc == le16_to_cpu(p->crc)) in nand_jedec_detect() [all …]
|
/linux/include/uapi/linux/ |
H A D | zorro.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * linux/zorro.h -- Amiga AutoConfig (Zorro) Bus Definitions 5 * Copyright (C) 1995--2003 Geert Uytterhoeven 19 * Each Zorro board has a 32-bit ID of the form 25 * mmmmmmmmmmmmmmmm 16-bit Manufacturer ID (assigned by CBM (sigh)) 26 * pppppppp 8-bit Product ID (assigned by manufacturer) 27 * eeeeeeee 8-bit Extended Product ID (currently only used 32 #define ZORRO_MANUF(id) ((id) >> 16) argument 33 #define ZORRO_PROD(id) (((id) >> 8) & 0xff) argument 34 #define ZORRO_EPC(id) ((id) & 0xff) argument [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-cdx | 18 Vendor ID for this CDX device, in hexadecimal. Vendor ID is 19 16 bit identifier which is specific to the device manufacturer. 20 Combination of Vendor ID and Device ID identifies a device. 26 Device ID for this CDX device, in hexadecimal. Device ID is 28 of a device manufacturer. 29 Combination of Vendor ID and Device ID identifies a device. 35 Subsystem Vendor ID for this CDX device, in hexadecimal. 36 Subsystem Vendor ID is 16 bit identifier specific to the 37 card manufacturer. 43 Subsystem Device ID for this CDX device, in hexadecimal [all …]
|
H A D | sysfs-devices-platform-ipmi | 4 Contact: openipmi-developer@lists.sourceforge.net 12 Contact: openipmi-developer@lists.sourceforge.net 17 identified by Manufacturer ID. 23 Contact: openipmi-developer@lists.sourceforge.net 33 Contact: openipmi-developer@lists.sourceforge.net 42 Contact: openipmi-developer@lists.sourceforge.net 44 (RO) Device id is specified by the manufacturer identified by 45 the Manufacturer ID field. This field allows controller specific 53 Contact: openipmi-developer@lists.sourceforge.net 63 Contact: openipmi-developer@lists.sourceforge.net [all …]
|
H A D | sysfs-devices-soc | 5 The /sys/devices/ directory contains a sub-directory for each 6 System-on-Chip (SoC) device on a running platform. Information 19 Read-only attribute common to all SoCs. Contains the SoC machine 26 Read-only attribute common to all SoCs. Contains SoC family name 30 this will contain the JEDEC JEP106 manufacturer’s identification 34 This manufacturer’s identification code is defined by one 45 by the manufacturer's identity code. 57 Read-only attribute supported by most SoCs. Contains the SoC's 64 Read-only attribute supported by most SoCs. In the case of 65 ST-Ericsson's chips this contains the SoC serial number. [all …]
|
H A D | sysfs-bus-spi-devices-spi-nor | 1 What: /sys/bus/spi/devices/.../spi-nor/jedec_id 4 Contact: linux-mtd@lists.infradead.org 5 Description: (RO) The JEDEC ID of the SPI NOR flash as reported by the 9 the "Read JEDEC ID" command (9Fh). This is the case for 10 non-JEDEC compliant flashes. 12 What: /sys/bus/spi/devices/.../spi-nor/manufacturer 15 Contact: linux-mtd@lists.infradead.org 16 Description: (RO) Manufacturer of the SPI NOR flash. 22 What: /sys/bus/spi/devices/.../spi-nor/partname 25 Contact: linux-mtd@lists.infradead.org [all …]
|
/linux/drivers/hwmon/pmbus/ |
H A D | ltc4286.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 43 .R[PSC_CURRENT_OUT] = 3 - 6, 51 .R[PSC_POWER] = 4 - 6, 78 return dev_err_probe(&client->dev, ret, in ltc4286_probe() 79 "Failed to read manufacturer id\n"); in ltc4286_probe() 84 * the manufacturer id is LTC in ltc4286_probe() 88 return dev_err_probe(&client->dev, -ENODEV, in ltc4286_probe() 89 "Manufacturer id mismatch\n"); in ltc4286_probe() 94 return dev_err_probe(&client->dev, ret, in ltc4286_probe() 95 "Failed to read manufacturer model\n"); in ltc4286_probe() [all …]
|
H A D | dps920ab.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 48 return -ENXIO; in dps920ab_read_word_data() 64 return -EACCES; in dps920ab_write_word_data() 92 struct dps920ab_data *priv = s->private; in dps920ab_mfr_id_show() 94 seq_printf(s, "%s\n", priv->mfr_id); in dps920ab_mfr_id_show() 103 struct dps920ab_data *priv = s->private; in dps920ab_mfr_model_show() 105 seq_printf(s, "%s\n", priv->mfr_model); in dps920ab_mfr_model_show() 121 debugfs_dir = debugfs_create_dir(client->name, root); in dps920ab_init_debugfs() 142 data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); in dps920ab_probe() 144 return -ENOMEM; in dps920ab_probe() [all …]
|
H A D | q54sj108a2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 77 int *idxp = file->private_data; in q54sj108a2_debugfs_read() 86 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_OPERATION); in q54sj108a2_debugfs_read() 93 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_WRITE_PROTECT); in q54sj108a2_debugfs_read() 100 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_VOUT_OV_FAULT_RESPONSE); in q54sj108a2_debugfs_read() 107 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_IOUT_OC_FAULT_RESPONSE); in q54sj108a2_debugfs_read() 114 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_REVISION); in q54sj108a2_debugfs_read() 121 rc = i2c_smbus_read_block_data(psu->client, PMBUS_MFR_ID, data); in q54sj108a2_debugfs_read() 126 rc = i2c_smbus_read_block_data(psu->client, PMBUS_MFR_MODEL, data); in q54sj108a2_debugfs_read() 131 rc = i2c_smbus_read_block_data(psu->client, PMBUS_MFR_REVISION, data); in q54sj108a2_debugfs_read() [all …]
|
H A D | max20730.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Step-Down Switching Regulators 50 enum chips id; member 111 int *idxp = file->private_data; in max20730_debugfs_read() 120 info = pmbus_get_driver_info(psu->client); in max20730_debugfs_read() 125 ret = VOLT_FROM_REG(data->mfr_voutmin * 10000); in max20730_debugfs_read() 130 val = (data->mfr_devset1 & MAX20730_MFR_DEVSET1_FSW_MASK) in max20730_debugfs_read() 148 val = (data->mfr_devset1 & MAX20730_MFR_DEVSET1_TSTAT_MASK) in max20730_debugfs_read() 161 val = (data->mfr_devset1 & MAX20730_MFR_DEVSET1_RGAIN_MASK) in max20730_debugfs_read() 164 if (data->id == max20734) { in max20730_debugfs_read() [all …]
|
/linux/drivers/mtd/spi-nor/ |
H A D | sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <linux/mtd/spi-nor.h> 5 #include <linux/spi/spi-mem.h> 17 return sysfs_emit(buf, "%s\n", nor->manufacturer->name); in manufacturer_show() 19 static DEVICE_ATTR_RO(manufacturer); 28 return sysfs_emit(buf, "%s\n", nor->info->name); in partname_show() 38 const u8 *id = nor->info->id ? nor->info->id->bytes : nor->id; in jedec_id_show() local 39 u8 id_len = nor->info->id ? nor->info->id->len : SPI_NOR_MAX_ID_LEN; in jedec_id_show() 41 return sysfs_emit(buf, "%*phN\n", id_len, id); in jedec_id_show() 59 struct sfdp *sfdp = nor->sfdp; in sfdp_read() [all …]
|
/linux/include/linux/mtd/ |
H A D | onenand.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright © 2005-2009 Samsung Electronics 27 * struct onenand_bufferram - OneNAND BufferRAM Data 35 * struct onenand_chip - OneNAND Private Flash Chip Data 37 * @dies: [INTERN][FLEX-ONENAND] number of dies on chip 38 * @boundary: [INTERN][FLEX-ONENAND] Boundary of the dies 39 * @diesize: [INTERN][FLEX-ONENAND] Size of the dies 41 * FIXME For Flex-OneNAND, chipsize holds maximum possible 43 * @device_id: [INTERN] device ID 45 * @verstion_id: [INTERN] version ID [all …]
|
/linux/drivers/usb/gadget/function/ |
H A D | u_midi2.h | 1 // SPDX-License-Identifier: GPL-2.0+ 18 unsigned int direction; /* FB direction: 1-3 */ 19 unsigned int first_group; /* first UMP group: 0-15 */ 20 unsigned int num_groups; /* number of UMP groups: 1-16 */ 23 unsigned int ui_hint; /* UI-hint: 0-3 */ 24 unsigned int midi_ci_version; /* MIDI-CI version: 0-255 */ 25 unsigned int sysex8_streams; /* number of sysex8 streams: 0-255 */ 26 unsigned int is_midi1; /* MIDI 1.0 port: 0-2 */ 33 unsigned int protocol_caps; /* protocol capabilities: 1-3 */ 34 unsigned int protocol; /* default protocol: 1-2 */ [all …]
|
/linux/drivers/usb/storage/ |
H A D | uas-detect.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 return (intf->desc.bInterfaceClass == USB_CLASS_MASS_STORAGE && in uas_is_interface() 9 intf->desc.bInterfaceSubClass == USB_SC_SCSI && in uas_is_interface() 10 intf->desc.bInterfaceProtocol == USB_PR_UAS); in uas_is_interface() 18 for (i = 0; i < intf->num_altsetting; i++) { in uas_find_uas_alt_setting() 19 struct usb_host_interface *alt = &intf->altsetting[i]; in uas_find_uas_alt_setting() 31 struct usb_host_endpoint *endpoint = alt->endpoint; in uas_find_endpoints() 32 unsigned i, n_endpoints = alt->desc.bNumEndpoints; in uas_find_endpoints() 41 eps[pipe_id - 1] = &endpoint[i]; in uas_find_endpoints() 44 len -= extra[0]; in uas_find_endpoints() [all …]
|
/linux/Documentation/devicetree/bindings/nvmem/layouts/ |
H A D | onie,tlv-layout.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/onie,tlv-layout.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Miquel Raynal <miquel.raynal@bootlin.com> 14 infrastructure shall provide a non-volatile memory with a table whose the 15 content is well specified and gives many information about the manufacturer 20 parameters the manufacturer decided to embed. 26 const: onie,tlv-layout 28 product-name: [all …]
|
/linux/arch/mips/include/asm/sgi/ |
H A D | gio.h | 22 * ----- --------- ----------------------- ----- 23 * 0 GFX 0x1f000000 - 0x1f3fffff 4MB 24 * 1 EXP0 0x1f400000 - 0x1f5fffff 2MB 25 * 2 EXP1 0x1f600000 - 0x1f9fffff 4MB 27 * There are un-slotted devices, HPC, I/O and misc devices, which are grouped 29 * - MISC 0x1fb00000 - 0x1fbfffff 1MB 32 * - RESERVED 0x18000000 - 0x1effffff 112MB 37 * read with an "ID" value. IDs are either 8 or 32 bits long. IDs less 41 * 32-bit IDs are divided into 42 * bits 0:6 the product ID; ranges from 0x00 to 0x7F. [all …]
|
/linux/tools/usb/ |
H A D | p9_fwd.py | 2 # SPDX-License-Identifier: GPL-2.0 23 return f"{dev.bus}-{dev_path}" 69 # we have to detach the usb-storage driver from multi gadget since 124 data += self.ep_in.read(size - len(data)) 138 data += self.s.recv(size - len(data)) 158 if (time.monotonic() - self.stats_logged) < interval: 167 with open(f"/sys/bus/usb/devices/{dev.bus}-{dev.address}/{name}") as f: 174 vid, pid = [int(x, 16) for x in args.id.split(":", 1)] 176 print("Bus | Addr | Manufacturer | Product | ID | Path") 177 print("--- | ---- | ---------------- | ---------------- | --------- | ----") [all …]
|
/linux/drivers/zorro/ |
H A D | names.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 1999--2000 Geert Uytterhoeven 9 * Copyright 1992--1999 Drew Eckhardt, Frederic Potter, 10 * David Mosberger-Tang, Martin Mares 63 char *name = dev->name; in zorro_name_device() 66 if (manuf_p->manuf == ZORRO_MANUF(dev->id)) in zorro_name_device() 69 } while (--i); in zorro_name_device() 71 /* Couldn't find either the manufacturer nor the product */ in zorro_name_device() 75 struct zorro_prod_info *prod_p = manuf_p->prods; in zorro_name_device() 76 int i = manuf_p->nr; in zorro_name_device() [all …]
|
/linux/drivers/staging/greybus/ |
H A D | power_supply.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2014-2015 Google Inc. 6 * Copyright 2014-2015 Linaro Ltd. 26 u8 id; member 33 char *manufacturer; member 63 #define POWER_SUPPLY_PROP_VOLTAGE_BOOT -1 66 #define POWER_SUPPLY_PROP_CURRENT_BOOT -1 69 #define POWER_SUPPLY_PROP_CALIBRATE -1 76 * back-off exponential 298 prop = -1; in get_psp_from_gb_prop() [all …]
|
/linux/arch/arm/boot/compressed/ |
H A D | head-sharpsl.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * linux/arch/arm/boot/compressed/head-sharpsl.S 5 * Copyright (C) 2004-2005 Richard Purdie <rpurdie@rpsys.net> 7 * Sharp's bootloader doesn't pass any kind of machine ID 10 * Support for Poodle, Corgi (SL-C700), Shepherd (SL-C750) 11 * Husky (SL-C760), Tosa (SL-C6000), Spitz (SL-C3000), 12 * Akita (SL-C1000) and Borzoi (SL-C3100). 17 #include <asm/mach-types.h> 27 /* Check for TC6393 - if found we have a Tosa */ 33 beq .SHARPEND @ Success -> tosa [all …]
|
/linux/drivers/soc/versatile/ |
H A D | soc-integrator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 { .compatible = "arm,core-module-integrator", }, 25 static const char *integrator_arch_str(u32 id) in integrator_arch_str() argument 27 switch ((id >> 16) & 0xff) { in integrator_arch_str() 29 return "ASB little-endian"; in integrator_arch_str() 31 return "AHB little-endian"; in integrator_arch_str() 33 return "AHB-Lite system bus, bi-endian"; in integrator_arch_str() 43 static const char *integrator_fpga_str(u32 id) in integrator_fpga_str() argument 45 switch ((id >> 12) & 0xf) { in integrator_fpga_str() 65 static DEVICE_ATTR_RO(manufacturer); [all …]
|
/linux/Documentation/networking/ |
H A D | arcnet-hardware.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 2) This file is no longer Linux-specific. It should probably be moved out 17 e-mail apenwarr@worldvisions.ca with any settings for your particular card, 39 There are two "types" of ARCnet - STAR topology and BUS topology. This 46 well-designed standard. It uses something called "modified token passing" 47 which makes it completely incompatible with so-called "Token Ring" cards, 60 card, whereas with Ethernet each manufacturer uses what is sometimes a 63 programming interface also means that when high-performance hardware 73 although they are generally kept down to the Ethernet-style 1500 bytes. 91 - Avery Pennraun <apenwarr@worldvisions.ca> [all …]
|