Home
last modified time | relevance | path

Searched full:flash (Results 1 – 25 of 1574) sorted by relevance

12345678910>>...63

/linux/drivers/media/i2c/
H A Dlm3560.c4 * General device driver for TI lm3559, lm3560, FLASH LED Driver
92 * @max_flash_timeout: flash timeout
93 * @max_flash_brt: flash mode led brightness
124 static int lm3560_mode_ctrl(struct lm3560_flash *flash) in lm3560_mode_ctrl() argument
128 switch (flash->led_mode) { in lm3560_mode_ctrl()
130 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
134 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
138 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
146 static int lm3560_enable_ctrl(struct lm3560_flash *flash, in lm3560_enable_ctrl() argument
153 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
[all …]
/linux/include/linux/
H A Dled-class-flash.h3 * LED Flash class interface
34 /* set flash brightness */
37 /* get flash brightness */
40 /* set flash strobe state */
42 /* get flash strobe state */
44 /* set flash timeout */
46 /* get the flash LED fault */
48 /* set flash duration */
53 * Current value of a flash setting along
71 /* flash led specific ops */
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-led-flash6 Set the brightness of this LED in the flash strobe mode, in
7 microamperes. The file is created only for the flash LED devices
8 that support setting flash brightness.
18 Maximum brightness level for this LED in the flash strobe mode,
26 Hardware timeout for flash, in microseconds. The flash strobe
28 of the strobe. The file is created only for the flash LED
29 devices that support setting flash timeout.
36 Maximum flash timeout for this LED, in microseconds.
43 Flash strobe state. When written with 1 it triggers flash strobe
44 and when written with 0 it turns the flash off.
[all …]
H A Dsysfs-bus-spi-devices-spi-nor5 Description: (RO) The JEDEC ID of the SPI NOR flash as reported by the
6 flash device.
8 The attribute is not present if the flash doesn't support
16 Description: (RO) Manufacturer of the SPI NOR flash.
18 The attribute is not present if the flash device isn't
26 Description: (RO) Part name of the SPI NOR flash.
36 Description: (RO) This attribute is only present if the SPI NOR flash
39 If present, it contains the complete SFDP (serial flash
40 discoverable parameters) binary data of the flash.
/linux/drivers/mtd/devices/
H A Dsst25l.c5 * Driver for SST25L SPI Flash chips
25 #include <linux/spi/flash.h>
67 static int sst25l_status(struct sst25l_flash *flash, int *status) in sst25l_status() argument
83 err = spi_sync(flash->spi, &m); in sst25l_status()
91 static int sst25l_write_enable(struct sst25l_flash *flash, int enable) in sst25l_write_enable() argument
97 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
108 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
113 err = sst25l_status(flash, &status); in sst25l_write_enable()
123 static int sst25l_wait_till_ready(struct sst25l_flash *flash) in sst25l_wait_till_ready() argument
[all …]
H A Dmchp23k256.c16 #include <linux/spi/flash.h>
41 static void mchp23k256_addr2cmd(struct mchp23k256_flash *flash, in mchp23k256_addr2cmd() argument
51 for (i = flash->caps->addr_width; i > 0; i--, addr >>= 8) in mchp23k256_addr2cmd()
55 static int mchp23k256_cmdsz(struct mchp23k256_flash *flash) in mchp23k256_cmdsz() argument
57 return 1 + flash->caps->addr_width; in mchp23k256_cmdsz()
63 struct mchp23k256_flash *flash = to_mchp23k256_flash(mtd); in mchp23k256_write() local
71 cmd_len = mchp23k256_cmdsz(flash); in mchp23k256_write()
74 mchp23k256_addr2cmd(flash, to, command); in mchp23k256_write()
84 mutex_lock(&flash->lock); in mchp23k256_write()
86 ret = spi_sync(flash->spi, &message); in mchp23k256_write()
[all …]
H A Dspear_smi.c2 * SMI (Serial Memory Controller) device driver for Serial NOR Flash on
90 /* flash opcodes */
93 /* Flash Device Ids maintenance section */
95 /* data structure to maintain flash ids from different vendors */
165 * @cmd_complete: queue to wait for command completion of NOR-flash.
167 * @flash: separate structure for each Serial NOR-flash attached to SMI.
178 struct spear_snor_flash *flash[MAX_NUM_FLASH_CHIP]; member
182 * struct spear_snor_flash - Structure for Serial NOR Flash
184 * @bank: Bank number(0, 1, 2, 3) for each NOR-flash.
185 * @dev_id: Device ID of NOR-flash.
[all …]
/linux/drivers/sbus/char/
H A Dflash.c2 /* flash.c: Allow mmap access to the OBP Flash, for OBP updates.
31 } flash; variable
40 if (flash.read_base == flash.write_base) { in flash_mmap()
41 addr = flash.read_base; in flash_mmap()
42 size = flash.read_size; in flash_mmap()
50 addr = flash.read_base; in flash_mmap()
51 size = flash.read_size; in flash_mmap()
53 addr = flash.write_base; in flash_mmap()
54 size = flash.write_size; in flash_mmap()
87 if (file->f_pos > flash.read_size) in flash_llseek()
[all …]
/linux/Documentation/leds/
H A Dleds-class-flash.rst2 Flash LED handling under Linux
5 Some LED devices provide two modes - torch and flash. In the LED subsystem
7 and LED Flash class respectively. The torch mode related features are enabled
8 by default and the flash ones only if a driver declares it by setting
11 In order to enable the support for flash LEDs CONFIG_LEDS_CLASS_FLASH symbol
12 must be defined in the kernel config. A LED Flash class driver must be
15 Following sysfs attributes are exposed for controlling flash LED devices:
16 (see Documentation/ABI/testing/sysfs-class-led-flash)
26 V4L2 flash wrapper for flash LEDs
37 flash device, e.g. an I2C device
[all …]
H A Dleds-lm3556.rst6 1.5 A Synchronous Boost LED Flash Driver w/ High-Side Current Source
16 There are 3 functions in LM3556, Flash, Torch and Indicator.
18 Flash Mode
21 In Flash Mode, the LED current source(LED) provides 16 target current levels
22 from 93.75 mA to 1500 mA.The Flash currents are adjusted via the CURRENT
23 CONTROL REGISTER(0x09).Flash mode is activated by the ENABLE REGISTER(0x0A),
26 LM3556 Flash can be controlled through /sys/class/leds/flash/brightness file
31 Flash Example:
35 #echo 0 > /sys/class/leds/flash/brightness
39 #echo 1 > /sys/class/leds/flash/brightness
[all …]
/linux/include/media/
H A Dv4l2-flash-led-class.h3 * V4L2 flash LED sub-device registration helpers.
21 * struct v4l2_flash_ctrl_data - flash control initialization data, filled
22 * basing on the features declared by the LED flash
25 * @cid: contains v4l2 flash control id if the config
34 * struct v4l2_flash_ops - V4L2 flash operations
36 * @external_strobe_set: Setup strobing the flash by hardware pin state
53 * struct v4l2_flash_config - V4L2 Flash sub-device initialization data
56 * @intensity: non-flash strobe constraints for the LED
57 * @flash_faults: bitmask of flash faults that the LED flash class
60 * <linux/led-class-flash.h>
[all …]
/linux/drivers/mtd/chips/
H A DKconfig2 menu "RAM/ROM/Flash chip drivers"
6 tristate "Detect flash chips by Common Flash Interface (CFI) probe"
10 The Common Flash Interface specification was developed by Intel,
11 AMD and other flash manufactures that provides a universal method
12 for probing the capabilities of flash devices. If you wish to
18 tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
22 This option enables JEDEC-style probing of flash chips which are not
23 compatible with the Common Flash Interface, but will use the common
24 CFI-targeted flash drivers for any chips which are identified which
33 bool "Flash chip driver advanced configuration options"
[all …]
/linux/drivers/mtd/nand/raw/
H A DKconfig8 NAND flash devices. For further information see
13 comment "Raw/parallel NAND flash controllers"
23 Enable the driver for NAND flash on Intel Moorestown, using the
31 Enable the driver for NAND flash on platforms using a Denali NAND
39 Support for NAND flash on Amstrad E3 (Delta).
47 Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4
69 This enables the driver for the NAND flash controller on the
79 NDFC Nand Flash Controllers are integrated in IBM/AMCC's 4xx SoCs
92 Use NAND flash attached to the CAFÉ chip designed for the OLPC
101 include NAND flash controllers with built-in hardware ECC
[all …]
/linux/drivers/net/ethernet/brocade/bna/
H A Dbfa_ioc.c1424 BFA_FLASH_NOT_PRESENT = -1, /*!< flash not present */
1425 BFA_FLASH_UNINIT = -2, /*!< flash not initialized */
1426 BFA_FLASH_BAD = -3, /*!< flash bad */
1427 BFA_FLASH_BUSY = -4, /*!< flash busy */
1435 /* flash command register data structure */
1457 /* flash device status register data structure */
1481 /* flash address register data structure */
1495 /* Flash raw private functions */
1563 /* Read flash status. */
1601 /* Start flash read operation. */
[all …]
/linux/drivers/leds/flash/
H A Dleds-mt6370-flash.c15 #include <linux/led-class-flash.h>
22 #include <media/v4l2-flash-led-class.h>
71 struct led_classdev_flash flash; member
89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev); in mt6370_torch_brightness_set()
101 * There is only one set of flash control logic, and this flag is used to check if 'strobe' in mt6370_torch_brightness_set()
124 * There're two flash channels in MT6370. If joint flash output is used, in mt6370_torch_brightness_set()
157 * Because of the current spikes when turning on the flash, the brightness should be kept in mt6370_flash_brightness_set()
166 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in _mt6370_flash_brightness_set()
176 * There're two flash channels in MT6370. If joint flash output is used, storbe in _mt6370_flash_brightness_set()
197 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_strobe_set()
[all …]
H A Dleds-mt6360.c8 #include <linux/led-class-flash.h>
15 #include <media/v4l2-flash-led-class.h>
78 struct led_classdev_flash flash; member
160 container_of(lcdev, struct mt6360_led, flash.led_cdev); in mt6360_torch_brightness_set()
170 * Only one set of flash control logic, use the flag to avoid strobe is in mt6360_torch_brightness_set()
212 * Due to the current spike when turning on flash, let brightness to be in mt6360_flash_brightness_set()
224 container_of(fl_cdev, struct mt6360_led, flash); in _mt6360_flash_brightness_set()
237 container_of(fl_cdev, struct mt6360_led, flash); in mt6360_strobe_set()
259 * Only one set of flash control logic, use the flag to avoid torch is in mt6360_strobe_set()
286 * If the flash need to be on, config the flash current ramping up to in mt6360_strobe_set()
[all …]
/linux/Documentation/devicetree/bindings/leds/
H A Dkinetic,ktd2692.yaml7 title: KTD2692 Flash LED Driver from Kinetic Technologies
13 KTD2692 is the ideal power solution for high-power flash LEDs.
17 enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode current,
18 Flash timeout, LVP(low voltage protection).
21 LED current will be ramped up to the flash-mode current level.
45 flash-max-timeout-us:
46 description: Flash LED maximum timeout.
53 flash-max-microamp:
55 description: Flash LED maximum current
81 flash-max-timeout-us = <250000>;
[all …]
/linux/Documentation/networking/devlink/
H A Ddevlink-flash.rst6 Devlink Flash
9 The ``devlink-flash`` API allows updating device firmware. It replaces the
10 older ``ethtool-flash`` mechanism, and doesn't require taking any
11 networking locks in the kernel to perform the flash update. Example use::
13 $ devlink dev flash pci/0000:05:00.0 file flash-boot.bin
22 The ``devlink-flash`` command allows optionally specifying a mask indicating
23 how the device should handle subsections of flash components when updating.
51 memory on the board, e.g. flash. Some devices store only basic firmware on
57 disk, or automatically flash a new image from disk. The ``fw_load_policy``
66 Drivers are expected to implement ``devlink-flash`` and ``devlink-info``
[all …]
/linux/drivers/mtd/parsers/
H A DKconfig33 command line. Multiple flash resources are supported for hardware where
34 different kinds of flash memory are available.
57 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
60 Same flash, but 2 named partitions, the first one being read-only:
72 flash memory node, as described in
90 Northstar architecture. Linksys commonly uses fixed flash layout with
109 The ARM Firmware Suite allows the user to divide flash devices into
125 TP-Link home routers use flash partitions to store various data. Info
126 about flash space layout is stored in a partitions table using a
146 tristate "Sharp SL Series NAND flash partition parser"
[all …]
/linux/drivers/mtd/maps/
H A Dscx200_docflash.c6 National Semiconductor SCx200 flash mapped with DOCCS
24 MODULE_DESCRIPTION("NatSemi SCx200 DOCCS Flash Driver");
35 MODULE_PARM_DESC(size, "Size of the flash mapping");
37 MODULE_PARM_DESC(width, "Data width of the flash mapping (8/16)");
43 .name = "NatSemi SCx200 DOCCS Flash",
62 .size = ~0 /* calculate from flash size */
66 .offset = ~0, /* calculate from flash size */
73 .name = "NatSemi SCx200 DOCCS Flash",
84 printk(KERN_DEBUG NAME ": NatSemi SCx200 DOCCS Flash Driver\n"); in init_scx200_docflash()
98 /* Try to use the present flash mapping if any */ in init_scx200_docflash()
[all …]
/linux/drivers/mtd/nand/onenand/
H A DKconfig6 This enables support for accessing all type of OneNAND flash
14 This adds an extra check when data is written to the flash. The
15 OneNAND flash device internally checks only bits transitioning
21 tristate "OneNAND Flash device via platform device driver"
23 Support for OneNAND flash via platform device driver.
31 Support for a OneNAND flash device connected to an OMAP2/OMAP3 SoC
39 Support for a OneNAND flash device connected to Samsung S3C64XX
47 One Block of the NAND Flash Array memory is reserved as
49 Also, 1st Block of NAND Flash Array can be used as OTP.
52 operations as any other NAND Flash Array memory block.
[all …]
/linux/Documentation/arch/arm/sa1100/
H A Dassabet.rst52 you need to have RedBoot installed in your flash memory. A known to work
75 To initialize the flash directory::
85 Writing a kernel image into flash
97 To write it to flash::
113 Now the kernel can be retrieved from flash like this::
121 The ramdisk image could be stored into flash as well, but there are better
122 solutions for on-flash filesystems as mentioned below.
128 Using JFFS2 (the Second Journalling Flash File System) is probably the most
129 convenient way to store a writable filesystem into flash. JFFS2 is used in
130 conjunction with the MTD layer which is responsible for low-level flash
[all …]
/linux/drivers/scsi/aic94xx/
H A Daic94xx_sds.c360 /* ---------- FLASH stuff ---------- */
365 #define FLASH_DIR_COOKIE "*** ADAPTEC FLASH DIRECTORY *** "
556 d = asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
557 d ^= asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
572 asd_write_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar, FLASH_RESET); in asd_reset_flash()
581 asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs, in asd_read_flash_seg()
587 * asd_find_flash_dir - finds and reads the flash directory
589 * @flash_dir: pointer to flash directory structure
591 * If found, the flash directory segment will be copied to
603 asd_ha->hw_prof.flash.dir_offs = v; in asd_find_flash_dir()
[all …]
/linux/Documentation/devicetree/bindings/mtd/partitions/
H A Dredboot-fis.yaml7 title: RedBoot FLASH Image System (FIS) Partitions
9 description: The FLASH Image System (FIS) directory is a flash description
11 It uses one single flash eraseblock in the flash to store an index of
12 all images in the flash.
13 This block size will vary depending on flash but is typically
28 device. On a flash memory with 32KB eraseblocks, 0 means the first
39 flash {
/linux/arch/mips/cavium-octeon/
H A Dflash_setup.c2 * Octeon Bootbus flash setup
84 * address of the flash. in octeon_flash_probe()
89 * The bootloader always takes the flash and sets its in octeon_flash_probe()
90 * address so the entire flash fits below in octeon_flash_probe()
91 * 0x1fc00000. This way the flash aliases to in octeon_flash_probe()
93 * full flash at the true address, while core boot can in octeon_flash_probe()
103 pr_notice("Bootbus flash: Setting flash for %luMB flash at " in octeon_flash_probe()
116 pr_err("Failed to register MTD device for flash\n"); in octeon_flash_probe()
124 .compatible = "cfi-flash",
132 .name = "octeon-of-flash",

12345678910>>...63