/linux-6.6.21/drivers/media/i2c/ |
D | adp1653.c | 38 static int adp1653_update_hw(struct adp1653_flash *flash) in adp1653_update_hw() argument 40 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw() 46 flash->indicator_intensity->val) in adp1653_update_hw() 49 switch (flash->led_mode->val) { in adp1653_update_hw() 55 config |= TIMEOUT_US_TO_CODE(flash->flash_timeout->val) in adp1653_update_hw() 61 flash->torch_intensity->val) in adp1653_update_hw() 77 static int adp1653_get_fault(struct adp1653_flash *flash) in adp1653_get_fault() argument 79 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_get_fault() 87 flash->fault |= fault; in adp1653_get_fault() 89 if (!flash->fault) in adp1653_get_fault() [all …]
|
D | lm3560.c | 68 static int lm3560_mode_ctrl(struct lm3560_flash *flash) in lm3560_mode_ctrl() argument 72 switch (flash->led_mode) { in lm3560_mode_ctrl() 74 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 78 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 82 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 90 static int lm3560_enable_ctrl(struct lm3560_flash *flash, in lm3560_enable_ctrl() argument 97 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 100 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 104 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 107 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() [all …]
|
D | lm3646.c | 81 static int lm3646_mode_ctrl(struct lm3646_flash *flash, in lm3646_mode_ctrl() argument 86 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 87 REG_ENABLE, flash->mode_reg | MODE_SHDN); in lm3646_mode_ctrl() 89 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 90 REG_ENABLE, flash->mode_reg | MODE_TORCH); in lm3646_mode_ctrl() 92 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 93 REG_ENABLE, flash->mode_reg | MODE_FLASH); in lm3646_mode_ctrl() 101 struct lm3646_flash *flash = to_lm3646_flash(ctrl); in lm3646_get_ctrl() local 108 rval = regmap_read(flash->regmap, REG_FLAG, ®_val); in lm3646_get_ctrl() 135 struct lm3646_flash *flash = to_lm3646_flash(ctrl); in lm3646_set_ctrl() local [all …]
|
/linux-6.6.21/drivers/leds/flash/ |
D | leds-as3645a.c | 156 static int as3645a_write(struct as3645a *flash, u8 addr, u8 val) in as3645a_write() argument 158 struct i2c_client *client = flash->client; in as3645a_write() 170 static int as3645a_read(struct as3645a *flash, u8 addr) in as3645a_read() argument 172 struct i2c_client *client = flash->client; in as3645a_read() 197 static int as3645a_set_current(struct as3645a *flash) in as3645a_set_current() argument 201 val = (flash->flash_current << AS_CURRENT_FLASH_CURRENT_SHIFT) in as3645a_set_current() 202 | (flash->assist_current << AS_CURRENT_ASSIST_LIGHT_SHIFT) in as3645a_set_current() 205 return as3645a_write(flash, AS_CURRENT_SET_REG, val); in as3645a_set_current() 208 static int as3645a_set_timeout(struct as3645a *flash) in as3645a_set_timeout() argument 212 val = flash->timeout << AS_INDICATOR_AND_TIMER_TIMEOUT_SHIFT; in as3645a_set_timeout() [all …]
|
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" 28 This option enables support for Kinetic KTD2692 LED flash connected 39 of flash, torch and indicator classes. 47 This option enables support for the flash part of the MAX77693 48 multifunction device. It has build in control for two leds in flash 61 Independent current sources supply for each flash LED support torch 75 will be called "leds-mt6370-flash". [all …]
|
D | leds-rt4505.c | 48 struct led_classdev_flash flash; member 56 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_set() 84 container_of(lcdev, struct rt4505_priv, flash.led_cdev); in rt4505_torch_brightness_get() 120 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_brightness_set() 137 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_strobe_set() 153 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_strobe_get() 174 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_flash_timeout_set() 190 container_of(fled_cdev, struct rt4505_priv, flash); in rt4505_fault_get() 243 struct led_classdev_flash *flash = v4l2_flash->fled_cdev; in rt4505_flash_external_strobe_set() local 245 container_of(flash, struct rt4505_priv, flash); in rt4505_flash_external_strobe_set() [all …]
|
/linux-6.6.21/drivers/mtd/devices/ |
D | mchp48l640.c | 60 static int mchp48l640_mkcmd(struct mchp48l640_flash *flash, u8 cmd, loff_t addr, char *buf) in mchp48l640_mkcmd() argument 69 static int mchp48l640_read_status(struct mchp48l640_flash *flash, int *status) in mchp48l640_read_status() argument 76 mutex_lock(&flash->lock); in mchp48l640_read_status() 77 ret = spi_write_then_read(flash->spi, &cmd[0], 1, &cmd[1], 1); in mchp48l640_read_status() 78 mutex_unlock(&flash->lock); in mchp48l640_read_status() 81 dev_dbg(&flash->spi->dev, "read status ret: %d status: %x", ret, *status); in mchp48l640_read_status() 86 static int mchp48l640_waitforbit(struct mchp48l640_flash *flash, int bit, bool set) in mchp48l640_waitforbit() argument 93 ret = mchp48l640_read_status(flash, &status); in mchp48l640_waitforbit() 94 dev_dbg(&flash->spi->dev, "read status ret: %d bit: %x %sset status: %x", in mchp48l640_waitforbit() 110 dev_err(&flash->spi->dev, "Timeout waiting for bit %x %s set in status register.", in mchp48l640_waitforbit() [all …]
|
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 …]
|
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 …]
|
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-6.6.21/drivers/staging/media/atomisp/i2c/ |
D | atomisp-lm3554.c | 82 static int lm3554_write(struct lm3554 *flash, u8 addr, u8 val) in lm3554_write() argument 84 struct i2c_client *client = v4l2_get_subdevdata(&flash->sd); in lm3554_write() 96 static int lm3554_read(struct lm3554 *flash, u8 addr) in lm3554_read() argument 98 struct i2c_client *client = v4l2_get_subdevdata(&flash->sd); in lm3554_read() 113 static int lm3554_set_mode(struct lm3554 *flash, unsigned int mode) in lm3554_set_mode() argument 119 (flash->flash_current << LM3554_FLASH_CURRENT_SHIFT); in lm3554_set_mode() 121 ret = lm3554_write(flash, LM3554_FLASH_BRIGHTNESS_REG, val); in lm3554_set_mode() 123 flash->mode = mode; in lm3554_set_mode() 127 static int lm3554_set_torch(struct lm3554 *flash) in lm3554_set_torch() argument 131 val = (flash->mode << LM3554_TORCH_MODE_SHIFT) | in lm3554_set_torch() [all …]
|
/linux-6.6.21/drivers/sbus/char/ |
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-6.6.21/Documentation/userspace-api/media/v4l/ |
D | ext-ctrls-flash.rst | 9 The V4L2 flash controls are intended to provide generic access to flash 13 The interface can support both LED and xenon flash devices. As of 14 writing this, there is no xenon flash driver using this interface. 23 Unsynchronised LED flash (software strobe) 26 Unsynchronised LED flash is controlled directly by the host as the 27 sensor. The flash must be enabled by the host before the exposure of the 29 for the timing of the flash. 34 Synchronised LED flash (hardware strobe) 37 The synchronised LED flash is pre-programmed by the host (power and 39 sensor to the flash. [all …]
|
/linux-6.6.21/Documentation/ABI/testing/ |
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 …]
|
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. 33 Description: (RO) This attribute is only present if the SPI NOR flash 36 If present, it contains the complete SFDP (serial flash 37 discoverable parameters) binary data of the flash.
|
/linux-6.6.21/Documentation/devicetree/bindings/leds/ |
D | qcom,spmi-flash-led.yaml | 4 $id: http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml# 14 The flash LED module can have different number of LED channels supported 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. [all …]
|
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>;
|
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-6.6.21/Documentation/leds/ |
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-6.6.21/Documentation/devicetree/bindings/mtd/ |
D | mtd-physmap.yaml | 7 title: CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 29 - arm,versatile-flash 30 - arm,vexpress-flash 31 - cortina,gemini-flash 34 - ge,imp3a-paged-flash 36 - gef,ppc9a-paged-flash 38 - gef,sbc310-paged-flash 40 - gef,sbc610-paged-flash 43 - intel,ixp4xx-flash 52 - cfi-flash [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/media/i2c/ |
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-6.6.21/drivers/net/ethernet/brocade/bna/ |
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-6.6.21/drivers/mtd/maps/ |
D | Kconfig | 7 bool "Support non-linear mappings of flash chips" 10 paged mappings of flash chips. 19 the physical address and size of the flash chips on your 38 hex "Physical start address of flash mapping" 42 This is the physical memory location at which the flash chips 48 hex "Physical length of flash mapping" 52 This is the total length of the mapping of the flash chips on 55 than the total amount of flash present. Refer to the memory 64 This is the total width of the data bus of the flash devices 97 the flash can be taken out of write protection. [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/mtd/partitions/ |
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-6.6.21/Documentation/networking/devlink/ |
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 …]
|