| /linux/drivers/media/i2c/ |
| A D | adp1653.c | 87 flash->fault |= fault; in adp1653_get_fault() 89 if (!flash->fault) in adp1653_get_fault() 103 return flash->fault; in adp1653_get_fault() 161 flash->fault = 0; in adp1653_get_ctrl() 204 flash->led_mode = in adp1653_init_controls() 252 flash->subdev.ctrl_handler = &flash->ctrls; in adp1653_init_controls() 275 flash->fault = 0; in adp1653_init_device() 301 ret = flash->platform_data->power(&flash->subdev, on); in __adp1653_set_power() 319 flash->platform_data->power(&flash->subdev, 0); in __adp1653_set_power() 473 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in adp1653_probe() [all …]
|
| A D | lm3560.c | 72 switch (flash->led_mode) { in lm3560_mode_ctrl() 165 mutex_lock(&flash->lock); in lm3560_get_ctrl() 183 mutex_unlock(&flash->lock); in lm3560_get_ctrl() 193 mutex_lock(&flash->lock); in lm3560_set_ctrl() 243 mutex_unlock(&flash->lock); in lm3560_set_ctrl() 396 struct lm3560_flash *flash; in lm3560_probe() local 400 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in lm3560_probe() 401 if (flash == NULL) in lm3560_probe() 424 flash->pdata = pdata; in lm3560_probe() 425 flash->dev = &client->dev; in lm3560_probe() [all …]
|
| A D | lm3646.c | 86 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 89 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 92 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 172 return lm3646_mode_ctrl(flash, in lm3646_set_ctrl() 339 struct lm3646_flash *flash; in lm3646_probe() local 343 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in lm3646_probe() 344 if (flash == NULL) in lm3646_probe() 348 if (IS_ERR(flash->regmap)) in lm3646_probe() 349 return PTR_ERR(flash->regmap); in lm3646_probe() 363 flash->pdata = pdata; in lm3646_probe() [all …]
|
| /linux/drivers/leds/flash/ |
| A D | leds-as3645a.c | 216 | ((flash->indicator_current ? flash->indicator_current - 1 : 0) in as3645a_set_timeout() 350 flash->flash_current = as3645a_current_to_reg(flash, true, in as3645a_set_flash_brightness() 507 if (!flash->flash_node) { in as3645a_parse_node() 657 &flash->client->dev, flash->flash_node, &flash->fled, NULL, in as3645a_v4l2_setup() 659 if (IS_ERR(flash->vf)) in as3645a_v4l2_setup() 663 &flash->client->dev, flash->indicator_node, &flash->iled_cdev, in as3645a_v4l2_setup() 675 struct as3645a *flash; in as3645a_probe() local 681 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in as3645a_probe() 682 if (flash == NULL) in as3645a_probe() 685 flash->client = client; in as3645a_probe() [all …]
|
| A D | Kconfig | 15 tristate "AS3645A and LM3555 LED flash controllers support" 19 Enable LED flash class support for AS3645A LED flash 20 controller. V4L2 flash API is provided as well if 24 tristate "LED support for Kinetic KTD2692 flash LED controller" 29 This option enables support for Kinetic KTD2692 LED flash connected 40 of flash, torch and indicator classes. 48 This option enables support for the flash part of the MAX77693 76 will be called "leds-mt6370-flash". 86 Technologies, Inc. PMICs. The flash module can have 3 or 4 flash LED 107 tristate "LED support for Richtek RT8515 flash/torch LED" [all …]
|
| A D | leds-rt4505.c | 48 struct led_classdev_flash flash; member 120 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_brightness_set() 245 container_of(flash, struct rt4505_priv, flash); in rt4505_flash_external_strobe_set() 264 struct led_classdev_flash *flash = &priv->flash; in rt4505_init_v4l2_config() local 265 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_v4l2_config() 293 struct led_classdev_flash *flash = &priv->flash; in rt4505_init_flash_properties() local 294 struct led_classdev *lcdev = &flash->led_cdev; in rt4505_init_flash_properties() 319 s = &flash->brightness; in rt4505_init_flash_properties() 333 s = &flash->timeout; in rt4505_init_flash_properties() 338 flash->ops = &rt4505_flash_ops; in rt4505_init_flash_properties() [all …]
|
| /linux/drivers/mtd/devices/ |
| A D | mchp48l640.c | 76 mutex_lock(&flash->lock); in mchp48l640_read_status() 78 mutex_unlock(&flash->lock); in mchp48l640_read_status() 125 mutex_lock(&flash->lock); in mchp48l640_write_prepare() 153 mutex_lock(&flash->lock); in mchp48l640_set_mode() 187 mutex_lock(&flash->lock); in mchp48l640_write_page() 305 flash = devm_kzalloc(&spi->dev, sizeof(*flash), GFP_KERNEL); in mchp48l640_probe() 306 if (!flash) in mchp48l640_probe() 309 flash->spi = spi; in mchp48l640_probe() 324 if (!flash->caps) in mchp48l640_probe() 331 flash->mtd.writesize = flash->caps->page_size; in mchp48l640_probe() [all …]
|
| A D | sst25l.c | 182 mutex_lock(&flash->lock); in sst25l_erase() 201 mutex_unlock(&flash->lock); in sst25l_erase() 231 mutex_lock(&flash->lock); in sst25l_read() 259 mutex_lock(&flash->lock); in sst25l_write() 359 flash = devm_kzalloc(&spi->dev, sizeof(*flash), GFP_KERNEL); in sst25l_probe() 360 if (!flash) in sst25l_probe() 363 flash->spi = spi; in sst25l_probe() 364 mutex_init(&flash->lock); in sst25l_probe() 387 flash->mtd.name, in sst25l_probe() 388 (long long)flash->mtd.size, (long long)(flash->mtd.size >> 20), in sst25l_probe() [all …]
|
| A D | mchp23k256.c | 84 mutex_lock(&flash->lock); in mchp23k256_write() 88 mutex_unlock(&flash->lock); in mchp23k256_write() 124 mutex_lock(&flash->lock); in mchp23k256_read() 128 mutex_unlock(&flash->lock); in mchp23k256_read() 177 flash = devm_kzalloc(&spi->dev, sizeof(*flash), GFP_KERNEL); in mchp23k256_probe() 178 if (!flash) in mchp23k256_probe() 181 flash->spi = spi; in mchp23k256_probe() 182 mutex_init(&flash->lock); in mchp23k256_probe() 192 if (!flash->caps) in mchp23k256_probe() 199 flash->mtd.writesize = 1; in mchp23k256_probe() [all …]
|
| A D | spear_smi.c | 501 if (!flash || !dev) in spear_mtd_erase() 504 bank = flash->bank; in spear_mtd_erase() 554 if (!flash || !dev) in spear_mtd_read() 861 flash = devm_kzalloc(&pdev->dev, sizeof(*flash), GFP_ATOMIC); in spear_smi_setup_banks() 862 if (!flash) in spear_smi_setup_banks() 880 dev->flash[bank] = flash; in spear_smi_setup_banks() 896 flash->mtd.writebufsize = flash->page_size; in spear_smi_setup_banks() 904 flash->mtd.name, flash->mtd.size, in spear_smi_setup_banks() 908 flash->mtd.erasesize, flash->mtd.erasesize / 1024); in spear_smi_setup_banks() 1044 flash = dev->flash[i]; in spear_smi_remove() [all …]
|
| /linux/drivers/sbus/char/ |
| 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() 139 flash.busy = 0; in flash_release() 180 flash.busy = 0; in flash_probe() 184 flash.read_base, flash.read_size, in flash_probe() [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| A D | ext-ctrls-flash.rst | 9 The V4L2 flash controls are intended to provide generic access to flash 23 Unsynchronised LED flash (software strobe) 29 for the timing of the flash. 34 Synchronised LED flash (hardware strobe) 39 sensor to the flash. 45 LED flash as torch 110 Stop flash strobe immediately. 117 Hardware timeout for flash. The flash strobe is stopped after this 121 Intensity of the flash strobe when the flash LED is in flash mode 153 specific to the flash controller. [all …]
|
| /linux/Documentation/ABI/testing/ |
| A D | sysfs-class-led-flash | 8 that support setting flash brightness. 26 Hardware timeout for flash, in microseconds. The flash strobe 47 that flash is off. 56 flash faults: 59 flash controller voltage to the flash LED 61 * flash-timeout-exceeded 66 the flash controller has 76 the flash controller has detected 79 flash controller voltage to the flash 81 the flash [all …]
|
| 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/devicetree/bindings/leds/ |
| A D | qcom,spmi-flash-led.yaml | 25 - qcom,pm6150l-flash-led 26 - qcom,pm8150c-flash-led 27 - qcom,pm8150l-flash-led 28 - qcom,pm8350c-flash-led 29 - qcom,pm8550-flash-led 30 - qcom,pmi8998-flash-led 31 - const: qcom,spmi-flash-led 43 flash LED channels' output. 65 flash-max-microamp: 74 flash-max-timeout-us: [all …]
|
| A D | skyworks,aat1290.yaml | 15 asserted high, enable flash strobe and movie mode (max 1/2 of flash current) 18 independent of the flash chip. The switch is controlled with pin control. 39 flash-max-microamp: 41 Maximum flash LED supply current can be calculated using following 44 flash-max-timeout-us: 46 Maximum flash timeout can be calculated using following formula:: 50 - flash-max-microamp 51 - flash-max-timeout-us 92 flash-max-microamp = <1012500>; 93 flash-max-timeout-us = <1940000>;
|
| A D | ams,as3645a.txt | 3 The AS3645A flash LED controller can drive two LEDs, one high current 4 flash LED and one indicator LED. The high current flash LED can be 22 Required properties of the flash child node (0) 26 flash-timeout-us: Flash timeout in microseconds. The value must be in 28 flash-max-microamp: Maximum flash current in microamperes. Has to be 34 ams,input-max-microamp: Maximum flash controller input current. The 39 Optional properties of the flash child node 74 flash-timeout-us = <150000>; 75 flash-max-microamp = <320000>;
|
| /linux/Documentation/leds/ |
| A D | leds-class-flash.rst | 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 49 defines the source of the flash LED strobe - 51 a sensor, which makes it possible to synchronise the flash 64 bitmask of flash faults that the LED flash class 66 available in <linux/led-class-flash.h>, 74 determines whether the flash strobe source 82 v4l2 flash wrapper. [all …]
|
| /linux/Documentation/devicetree/bindings/mtd/ |
| A D | mtd-physmap.yaml | 29 - arm,versatile-flash 30 - arm,vexpress-flash 43 - intel,ixp4xx-flash 52 - cfi-flash 53 - jedec-flash 60 - cfi-flash 61 - jedec-flash 99 physmap-flash. 152 flash@ff000000 { 176 flash@0 { [all …]
|
| /linux/Documentation/devicetree/bindings/media/i2c/ |
| A D | adp1653.txt | 1 * Analog Devices ADP1653 flash LED driver 11 There are two LED outputs available - flash and indicator. One LED is 12 represented by one child node, nodes need to be named "flash" and "indicator". 17 Required properties of the flash LED child node: 19 - flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 20 - flash-timeout-us : see Documentation/devicetree/bindings/leds/common.txt 30 flash { 31 flash-timeout-us = <500000>; 32 flash-max-microamp = <320000>;
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| A D | bfa_ioc.c | 3036 if (flash->cbfn) in bfa_flash_cb() 3037 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb() 3050 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify() 3071 msg->offset = be32_to_cpu(flash->addr_off + flash->offset); in bfa_flash_write_send() 3082 memcpy(flash->dbuf_kva, flash->ubuf + flash->offset, len); in bfa_flash_write_send() 3083 bfa_nw_ioc_mbox_queue(flash->ioc, &flash->mb, NULL, NULL); in bfa_flash_write_send() 3104 msg->offset = be32_to_cpu(flash->addr_off + flash->offset); in bfa_flash_read_send() 3111 bfa_nw_ioc_mbox_queue(flash->ioc, &flash->mb, NULL, NULL); in bfa_flash_read_send() 3183 memcpy(flash->ubuf + flash->offset, in bfa_flash_intr() 3228 list_add_tail(&flash->ioc_notify.qe, &flash->ioc->notify_q); in bfa_nw_flash_attach() [all …]
|
| /linux/Documentation/driver-api/mtd/ |
| A D | spi-nor.rst | 5 How to propose a new flash addition 10 the functional and feature capabilities of serial flash devices in a 14 flash's parameters and settings. If the flash defines the SFDP tables 15 it's likely that you won't need a flash entry at all, and instead 16 rely on the generic flash driver which probes the flash solely based 34 the frequency at which the flash was operated, e.g.:: 36 This flash is populated on the X board and was tested at Y 80 Supported read modes by the flash 110 Supported page program modes by the flash 160 Erased 2097152 bytes from address 0x00000000 in flash [all …]
|
| /linux/drivers/mtd/maps/ |
| A D | Kconfig | 7 bool "Support non-linear mappings of flash chips" 10 paged mappings of flash chips. 38 hex "Physical start address of flash mapping" 48 hex "Physical length of flash mapping" 97 the flash can be taken out of write protection. 153 to use the flash chips on it, say 'Y'. 166 flash disk (RFD) flash translation layer. 202 tristate "BIOS flash chip on AMD76x southbridge" 229 tristate "BIOS flash chip on Nvidia CK804" 238 tristate "BIOS flash chip on Intel SCB2 boards" [all …]
|
| /linux/Documentation/devicetree/bindings/mtd/partitions/ |
| A D | redboot-fis.yaml | 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 43 flash {
|
| /linux/Documentation/networking/devlink/ |
| 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. 91 # Find out which FW flash we want to use for this NIC 92 $want_flash_vers = some-db-backed.lookup($hw_id, 'flash') 94 # Update flash if necessary 96 $file = some-db-backed.download($hw_id, 'flash') [all …]
|