| /linux/drivers/media/i2c/ |
| H A D | lm3560.c | 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() 156 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 160 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 163 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() [all …]
|
| /linux/drivers/mtd/devices/ |
| H A D | sst25l.c | 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 130 err = sst25l_status(flash, &status); in sst25l_wait_till_ready() 142 static int sst25l_erase_sector(struct sst25l_flash *flash, uint32_t offset) in sst25l_erase_sector() argument [all …]
|
| H A D | mchp23k256.c | 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() 88 mutex_unlock(&flash->lock); in mchp23k256_write() [all …]
|
| H A D | spear_smi.c | 178 struct spear_snor_flash *flash[MAX_NUM_FLASH_CHIP]; member 420 get_sector_erase_cmd(struct spear_snor_flash *flash, u32 offset) in get_sector_erase_cmd() argument 425 x[0] = flash->erase_cmd; in get_sector_erase_cmd() 496 struct spear_snor_flash *flash = get_flash_data(mtd); in spear_mtd_erase() local 501 if (!flash || !dev) in spear_mtd_erase() 504 bank = flash->bank; in spear_mtd_erase() 513 mutex_lock(&flash->lock); in spear_mtd_erase() 517 command = get_sector_erase_cmd(flash, addr); in spear_mtd_erase() 521 mutex_unlock(&flash->lock); in spear_mtd_erase() 528 mutex_unlock(&flash->lock); in spear_mtd_erase() [all …]
|
| /linux/drivers/sbus/char/ |
| H A D | flash.c | 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() 88 file->f_pos = flash.read_size; in flash_llseek() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-led-flash | 6 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 D | sysfs-bus-spi-devices-spi-nor | 5 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/Documentation/leds/ |
| H A D | leds-class-flash.rst | 5 Some LED devices provide two modes - torch and flash. In the LED subsystem 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 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 41 LED flash class device to wrap 43 LED flash class device representing indicator LED associated with 49 defines the source of the flash LED strobe - [all …]
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bfa_ioc.c | 3033 bfa_flash_cb(struct bfa_flash *flash) in bfa_flash_cb() argument 3035 flash->op_busy = 0; in bfa_flash_cb() 3036 if (flash->cbfn) in bfa_flash_cb() 3037 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb() 3043 struct bfa_flash *flash = cbarg; in bfa_flash_notify() local 3048 if (flash->op_busy) { in bfa_flash_notify() 3049 flash->status = BFA_STATUS_IOC_FAILURE; in bfa_flash_notify() 3050 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify() 3051 flash->op_busy = 0; in bfa_flash_notify() 3063 bfa_flash_write_send(struct bfa_flash *flash) in bfa_flash_write_send() argument [all …]
|
| /linux/Documentation/networking/devlink/ |
| H A D | devlink-flash.rst | 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`` 91 # Find out which FW flash we want to use for this NIC [all …]
|
| /linux/drivers/leds/flash/ |
| H A D | leds-mt6360.c | 78 struct led_classdev_flash flash; member 160 container_of(lcdev, struct mt6360_led, flash.led_cdev); in mt6360_torch_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() 313 container_of(fl_cdev, struct mt6360_led, flash); in mt6360_strobe_get() 326 container_of(fl_cdev, struct mt6360_led, flash); in mt6360_timeout_set() 343 container_of(fl_cdev, struct mt6360_led, flash); in mt6360_fault_get() 429 struct led_classdev_flash *flash = &led->flash; in mt6360_flash_init_default_state() local 453 flash->led_cdev.brightness = flash->led_cdev.max_brightness; in mt6360_flash_init_default_state() 456 flash->led_cdev.brightness = in mt6360_flash_init_default_state() [all …]
|
| H A D | leds-mt6370-flash.c | 71 struct led_classdev_flash flash; member 89 struct mt6370_led *led = to_mt6370_led(lcdev, flash.led_cdev); in mt6370_torch_brightness_set() 166 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in _mt6370_flash_brightness_set() 197 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_strobe_set() 262 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_strobe_get() 274 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_timeout_set() 284 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_fault_get() 346 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in mt6370_flash_external_strobe_set() local 347 struct mt6370_led *led = to_mt6370_led(flash, flash); in mt6370_flash_external_strobe_set() 379 lcdev = &led->flash.led_cdev; in mt6370_init_v4l2_flash_config() [all …]
|
| H A D | leds-sy7802.c | 89 struct led_classdev_flash flash; member 111 struct sy7802_led *led = container_of(lcdev, struct sy7802_led, flash.led_cdev); in sy7802_torch_brightness_set() 175 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_flash_brightness_set() 196 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_strobe_set() 240 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_strobe_get() 252 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_timeout_set() 262 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_fault_get() 325 ret = devm_led_classdev_flash_register_ext(dev, &led->flash, &init_data); in sy7802_led_register() 337 struct led_classdev_flash *flash = &led->flash; in sy7802_init_flash_properties() local 338 struct led_classdev *lcdev = &flash->led_cdev; in sy7802_init_flash_properties() [all …]
|
| /linux/drivers/mtd/chips/ |
| H A D | Kconfig | 6 tristate "Detect flash chips by Common Flash Interface (CFI) probe" 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 24 CFI-targeted flash drivers for any chips which are identified which 36 If you need to specify a specific endianness for access to flash 38 support for only specific arrangements of flash chips, say 'Y'. This 128 bool "Support 1-chip flash interleave" if MTD_CFI_GEOMETRY 131 If your flash chips are not interleaved - i.e. you only have one [all …]
|
| /linux/drivers/firmware/microchip/ |
| H A D | mpfs-auto-update.c | 82 struct mtd_info *flash; member 116 erase_size = round_up(erase_size, (u64)priv->flash->erasesize); in mpfs_auto_update_prepare() 127 priv->size_per_bitstream = priv->flash->size - SZ_1K - SZ_1M; in mpfs_auto_update_prepare() 202 size_t erase_size = round_up(AUTO_UPDATE_DIRECTORY_SIZE, (u64)priv->flash->erasesize); in mpfs_auto_update_set_image_address() 221 ret = mtd_read(priv->flash, AUTO_UPDATE_DIRECTORY_BASE, erase_size, &bytes_read, in mpfs_auto_update_set_image_address() 233 ret = mtd_erase(priv->flash, &erase); in mpfs_auto_update_set_image_address() 249 ret = mtd_write(priv->flash, 0x0, erase_size, &bytes_written, (u_char *)buffer); in mpfs_auto_update_set_image_address() 271 erase_size = round_up(erase_size, (u64)priv->flash->erasesize); in mpfs_auto_update_write_bitstream() 301 erase.len = round_up(size, (size_t)priv->flash->erasesize); in mpfs_auto_update_write_bitstream() 305 ret = mtd_erase(priv->flash, &erase); in mpfs_auto_update_write_bitstream() [all …]
|
| /linux/Documentation/devicetree/bindings/leds/ |
| H A D | leds-lm3601x.txt | 3 The LM3601X are ultra-small LED flash drivers that 18 Required properties for flash LED child nodes: 20 - flash-max-microamp : Range from 11mA - 1.5A 21 - flash-max-timeout-us : Range from 40ms - 1600ms 44 flash-max-microamp = <1500000>; 45 flash-max-timeout-us = <1600000>;
|
| /linux/drivers/scsi/aic94xx/ |
| H A D | aic94xx_sds.c | 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() 603 asd_ha->hw_prof.flash.dir_offs = v; in asd_find_flash_dir() 620 &asd_ha->hw_prof.flash.bar)) { in asd_flash_getid() 625 asd_ha->hw_prof.flash.present = 1; in asd_flash_getid() 626 asd_ha->hw_prof.flash.wide = reg & FLASHW ? 1 : 0; in asd_flash_getid() 1091 reg = asd_ha->hw_prof.flash.bar; in asd_verify_flash_seg() 1121 reg = asd_ha->hw_prof.flash.bar; in asd_write_flash_seg() [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls1088a-qds.dts | 24 flash@0 { 32 flash@1 { 42 flash@2 { 116 flash@0,0 { 117 compatible = "cfi-flash"; 149 s25fs512s0: flash@0 { 159 s25fs512s1: flash@1 {
|
| /linux/drivers/mtd/parsers/ |
| H A D | Kconfig | 33 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/Documentation/driver-api/mtd/ |
| H A D | spi-intel.rst | 5 Many Intel CPUs like Baytrail and Braswell include SPI serial flash host 7 Since contents of the SPI serial flash is crucial for machine to function, 11 Not all manufacturers protect the SPI serial flash, mainly because it 15 flash, if certain protection bits are not set and locked. If it finds 17 partial overwrites. By default the driver exposes SPI serial flash 21 Please keep in mind that overwriting the BIOS image on SPI serial flash 32 serial flash. Distros like Debian and Fedora have this prepackaged with 63 7) Erase the SPI serial flash. After this step, do not reboot the 73 9) Verify that the new content of the SPI serial flash matches the new
|
| /linux/drivers/mtd/maps/ |
| H A D | pxa2xx-flash.c | 46 struct flash_platform_data *flash = dev_get_platdata(&pdev->dev); in pxa2xx_flash_probe() local 58 info->map.name = flash->name; in pxa2xx_flash_probe() 59 info->map.bankwidth = flash->width; in pxa2xx_flash_probe() 83 info->mtd = do_map_probe(flash->map_name, &info->map); in pxa2xx_flash_probe() 94 mtd_device_parse_register(info->mtd, probes, NULL, flash->parts, in pxa2xx_flash_probe() 95 flash->nr_parts); in pxa2xx_flash_probe()
|
| /linux/Documentation/arch/arm/sa1100/ |
| H A D | assabet.rst | 52 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. 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 147 Now we must know the size of the unallocated flash:: [all …]
|
| /linux/arch/powerpc/boot/dts/fsl/ |
| H A D | gef_sbc610.dts | 31 ranges = <0 0 0xff000000 0x01000000 // 16MB Boot flash 40 /* flash@0,0 is a mirror of part of the memory in flash@1,0 41 flash@0,0 { 42 compatible = "gef,sbc610-firmware-mirror", "cfi-flash"; 56 flash@1,0 { 57 compatible = "gef,sbc610-paged-flash", "cfi-flash";
|
| /linux/arch/arm/boot/dts/gemini/ |
| H A D | gemini-wbd111.dts | 46 /* Conflict with TVC and extended parallel flash */ 52 /* Conflict with TVC and extended parallel flash */ 58 /* Conflict with TVC and extended parallel flash */ 64 /* Conflict with TVC and extended parallel flash */ 85 flash@30000000 { 87 /* 8MB of flash */
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_nvm.c | 86 if (read_shadow_ram && ((offset + inlen) > (hw->flash.sr_words * 2u))) { in ice_read_flat_nvm() 247 if (hw->flash.blank_nvm_mode) in ice_acquire_nvm() 261 if (hw->flash.blank_nvm_mode) in ice_release_nvm() 281 struct ice_bank_info *banks = &hw->flash.banks; in ice_get_flash_bank_offset() 416 sr_copy = roundup(hw->flash.banks.active_css_hdr_len, 32); in ice_read_nvm_sr_copy() 419 sr_copy = roundup(hw->flash.banks.inactive_css_hdr_len, 32); in ice_read_nvm_sr_copy() 671 orom_data = vzalloc(hw->flash.banks.orom_size); in ice_get_orom_civd_data() 676 orom_data, hw->flash.banks.orom_size); in ice_get_orom_civd_data() 684 for (offset = 0; (offset + 512) <= hw->flash.banks.orom_size; offset += 512) { in ice_get_orom_civd_data() 894 hw->flash.flash_size = max_size; in ice_discover_flash_size() [all …]
|