/Linux-v4.19/drivers/leds/ |
D | leds-as3645a.c | 136 char flash[32]; member 169 static int as3645a_write(struct as3645a *flash, u8 addr, u8 val) in as3645a_write() argument 171 struct i2c_client *client = flash->client; in as3645a_write() 183 static int as3645a_read(struct as3645a *flash, u8 addr) in as3645a_read() argument 185 struct i2c_client *client = flash->client; in as3645a_read() 210 static int as3645a_set_current(struct as3645a *flash) in as3645a_set_current() argument 214 val = (flash->flash_current << AS_CURRENT_FLASH_CURRENT_SHIFT) in as3645a_set_current() 215 | (flash->assist_current << AS_CURRENT_ASSIST_LIGHT_SHIFT) in as3645a_set_current() 218 return as3645a_write(flash, AS_CURRENT_SET_REG, val); in as3645a_set_current() 221 static int as3645a_set_timeout(struct as3645a *flash) in as3645a_set_timeout() argument [all …]
|
/Linux-v4.19/drivers/media/i2c/ |
D | adp1653.c | 47 static int adp1653_update_hw(struct adp1653_flash *flash) in adp1653_update_hw() argument 49 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw() 55 flash->indicator_intensity->val) in adp1653_update_hw() 58 switch (flash->led_mode->val) { in adp1653_update_hw() 64 config |= TIMEOUT_US_TO_CODE(flash->flash_timeout->val) in adp1653_update_hw() 70 flash->torch_intensity->val) in adp1653_update_hw() 86 static int adp1653_get_fault(struct adp1653_flash *flash) in adp1653_get_fault() argument 88 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_get_fault() 96 flash->fault |= fault; in adp1653_get_fault() 98 if (!flash->fault) in adp1653_get_fault() [all …]
|
D | lm3560.c | 76 static int lm3560_mode_ctrl(struct lm3560_flash *flash) in lm3560_mode_ctrl() argument 80 switch (flash->led_mode) { in lm3560_mode_ctrl() 82 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 86 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 90 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl() 98 static int lm3560_enable_ctrl(struct lm3560_flash *flash, in lm3560_enable_ctrl() argument 105 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 108 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 112 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() 115 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl() [all …]
|
D | lm3646.c | 84 static int lm3646_mode_ctrl(struct lm3646_flash *flash, in lm3646_mode_ctrl() argument 89 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 90 REG_ENABLE, flash->mode_reg | MODE_SHDN); in lm3646_mode_ctrl() 92 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 93 REG_ENABLE, flash->mode_reg | MODE_TORCH); in lm3646_mode_ctrl() 95 return regmap_write(flash->regmap, in lm3646_mode_ctrl() 96 REG_ENABLE, flash->mode_reg | MODE_FLASH); in lm3646_mode_ctrl() 104 struct lm3646_flash *flash = to_lm3646_flash(ctrl); in lm3646_get_ctrl() local 111 rval = regmap_read(flash->regmap, REG_FLAG, ®_val); in lm3646_get_ctrl() 138 struct lm3646_flash *flash = to_lm3646_flash(ctrl); in lm3646_set_ctrl() local [all …]
|
/Linux-v4.19/drivers/mtd/devices/ |
D | sst25l.c | 71 static int sst25l_status(struct sst25l_flash *flash, int *status) in sst25l_status() argument 87 err = spi_sync(flash->spi, &m); in sst25l_status() 95 static int sst25l_write_enable(struct sst25l_flash *flash, int enable) in sst25l_write_enable() argument 101 err = spi_write(flash->spi, command, 1); in sst25l_write_enable() 106 err = spi_write(flash->spi, command, 1); in sst25l_write_enable() 112 err = spi_write(flash->spi, command, 2); in sst25l_write_enable() 117 err = sst25l_status(flash, &status); in sst25l_write_enable() 127 static int sst25l_wait_till_ready(struct sst25l_flash *flash) in sst25l_wait_till_ready() argument 134 err = sst25l_status(flash, &status); in sst25l_wait_till_ready() 146 static int sst25l_erase_sector(struct sst25l_flash *flash, uint32_t offset) in sst25l_erase_sector() argument [all …]
|
D | mchp23k256.c | 45 static void mchp23k256_addr2cmd(struct mchp23k256_flash *flash, in mchp23k256_addr2cmd() argument 55 for (i = flash->caps->addr_width; i > 0; i--, addr >>= 8) in mchp23k256_addr2cmd() 59 static int mchp23k256_cmdsz(struct mchp23k256_flash *flash) in mchp23k256_cmdsz() argument 61 return 1 + flash->caps->addr_width; in mchp23k256_cmdsz() 67 struct mchp23k256_flash *flash = to_mchp23k256_flash(mtd); in mchp23k256_write() local 76 mchp23k256_addr2cmd(flash, to, command); in mchp23k256_write() 79 transfer[0].len = mchp23k256_cmdsz(flash); in mchp23k256_write() 86 mutex_lock(&flash->lock); in mchp23k256_write() 88 ret = spi_sync(flash->spi, &message); in mchp23k256_write() 90 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 …]
|
D | m25p80.c | 38 struct m25p *flash = nor->priv; in m25p80_read_reg() local 51 ret = spi_mem_exec_op(flash->spimem, &op); in m25p80_read_reg() 53 dev_err(&flash->spimem->spi->dev, "error %d reading %x\n", ret, in m25p80_read_reg() 65 struct m25p *flash = nor->priv; in m25p80_write_reg() local 78 ret = spi_mem_exec_op(flash->spimem, &op); in m25p80_write_reg() 87 struct m25p *flash = nor->priv; in m25p80_write() local 106 ret = spi_mem_adjust_op_size(flash->spimem, &op); in m25p80_write() 110 ret = spi_mem_exec_op(flash->spimem, &op); in m25p80_write() 129 struct m25p *flash = nor->priv; in m25p80_read() local 149 ret = spi_mem_adjust_op_size(flash->spimem, &op); in m25p80_read() [all …]
|
/Linux-v4.19/drivers/sbus/char/ |
D | flash.c | 31 } flash; variable 42 if (flash.read_base == flash.write_base) { in flash_mmap() 43 addr = flash.read_base; in flash_mmap() 44 size = flash.read_size; in flash_mmap() 52 addr = flash.read_base; in flash_mmap() 53 size = flash.read_size; in flash_mmap() 55 addr = flash.write_base; in flash_mmap() 56 size = flash.write_size; in flash_mmap() 89 if (file->f_pos > flash.read_size) in flash_llseek() 90 file->f_pos = flash.read_size; in flash_llseek() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/mtd/spi-nor/ |
D | stm32-quadspi.c | 152 struct stm32_qspi_flash flash[STM32_MAX_NORCHIP]; member 285 static int stm32_qspi_send(struct stm32_qspi_flash *flash, in stm32_qspi_send() argument 288 struct stm32_qspi *qspi = flash->qspi; in stm32_qspi_send() 298 dcr |= DCR_FSIZE(flash->fsize); in stm32_qspi_send() 303 cr |= CR_PRESC(flash->presc); in stm32_qspi_send() 304 cr |= flash->cs ? CR_FSEL : 0; in stm32_qspi_send() 335 if (last_byte > flash->prefetch_limit) in stm32_qspi_send() 354 struct stm32_qspi_flash *flash = nor->priv; in stm32_qspi_read_reg() local 355 struct device *dev = flash->qspi->dev; in stm32_qspi_read_reg() 369 return stm32_qspi_send(flash, &cmd); in stm32_qspi_read_reg() [all …]
|
/Linux-v4.19/Documentation/leds/ |
D | leds-class-flash.txt | 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) 25 V4L2 flash wrapper for flash LEDs 34 - dev : flash device, e.g. an I2C device 36 - fled_cdev : LED flash class device to wrap 37 - iled_cdev : LED flash class device representing indicator LED associated with 40 * external_strobe_set - defines the source of the flash LED strobe - [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/leds/ |
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 42 label : The label of the flash LED. 66 flash@0 { 68 flash-timeout-us = <150000>; [all …]
|
D | leds-aat1290.txt | 4 asserted high, enable flash strobe and movie mode (max 1/2 of flash current) 7 of the flash chip. The switch is controlled with pin control. 12 - flen-gpios : Must be device tree identifier of the flash device FL_EN pin. 13 - enset-gpios : Must be device tree identifier of the flash device EN_SET pin. 27 - flash-max-microamp : see Documentation/devicetree/bindings/leds/common.txt 28 Maximum flash LED supply current can be calculated using 30 - flash-max-timeout-us : see Documentation/devicetree/bindings/leds/common.txt 31 Maximum flash timeout can be calculated using following 53 camera_flash: flash-led { 54 label = "aat1290-flash"; [all …]
|
D | leds-ktd2692.txt | 3 KTD2692 is the ideal power solution for high-power flash LEDs. 11 LED current will be ramped up to the flash-mode current level. 25 Required properties for flash LED child nodes: 29 - flash-max-microamp : Flash LED maximum current 31 - flash-max-timeout-us : Flash LED maximum timeout. 33 Optional properties for flash LED child nodes: 44 flash-led { 45 label = "ktd2692-flash"; 47 flash-max-microamp = <1500000>; 48 flash-max-timeout-us = <1835000>;
|
D | common.txt | 3 LED and flash LED devices provide the same basic functionality as current 4 regulators, but extended with LED and flash LED specific features like 5 blinking patterns, flash timeout, flash faults and external flash strobe mode. 45 For flash LED controllers with configurable current this 46 property is mandatory for the LEDs in the non-flash modes 68 Required properties for flash LED child nodes: 69 - flash-max-microamp : Maximum flash LED supply current in microamperes. 70 - flash-max-timeout-us : Maximum timeout in microseconds after which the flash 73 For controllers that have no configurable current the flash-max-microamp 75 For controllers that have no configurable timeout the flash-max-timeout-us [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/mtd/ |
D | cortina,gemini-flash.txt | 3 This flash is regular CFI compatible (Intel or AMD extended) flash chips with 7 - compatible : must be "cortina,gemini-flash", "cfi-flash"; 8 - reg : memory address for the flash chip 10 - bank-width : width in bytes of flash interface, should be <2> 19 flash@30000000 { 20 compatible = "cortina,gemini-flash", "cfi-flash";
|
D | arm-versatile.txt | 3 These flash chips are found in the ARM reference designs like Integrator, 6 They are regular CFI compatible (Intel or AMD extended) flash chips with 11 - compatible : must be "arm,versatile-flash", "cfi-flash"; 12 - reg : memory address for the flash chip 13 - bank-width : width in bytes of flash interface. 22 flash@34000000 { 23 compatible = "arm,versatile-flash", "cfi-flash";
|
D | mtd-physmap.txt | 1 CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 7 used, if known, followed by either "cfi-flash", "jedec-flash", 20 mapping of the flash. 24 By defining "no-unaligned-direct-access", the flash will not be 27 physmap-flash drivers as boot loader pass the mtd partition via the old 28 device name physmap-flash. 36 - vendor-id : Contains the flash chip's vendor id (1 byte). 37 - device-id : Contains the flash chip's device id (1 byte). 39 For ROM compatible devices (and ROM fallback from cfi-flash), the following 47 from/to the flash. If this property is missing, [all …]
|
D | partition.txt | 8 flash layout set at production time. Some may use on-flash table that describes 13 method is used for a given flash device. To describe the method there should be 14 a subnode of the flash device that is named 'partitions'. It must have a 30 Partitions can be represented by sub-nodes of a flash device. This can be used 31 on platforms which have strong conventions about which portions of a flash are 32 used for what purposes, but which don't use an on-flash partition table such 35 The partition table should be a subnode of the flash node and should be named 40 For backwards compatibility partitions as direct subnodes of the flash device are 46 flash device. There are two valid values for both: 53 - reg : The partition's offset and size within the flash [all …]
|
/Linux-v4.19/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-v4.19/drivers/mtd/maps/ |
D | Kconfig | 6 bool "Support non-linear mappings of flash chips" 9 paged mappings of flash chips. 18 the physical address and size of the flash chips on your 37 hex "Physical start address of flash mapping" 41 This is the physical memory location at which the flash chips 47 hex "Physical length of flash mapping" 51 This is the total length of the mapping of the flash chips on 54 than the total amount of flash present. Refer to the memory 63 This is the total width of the data bus of the flash devices 85 the flash can be taken out of write protection. [all …]
|
D | Makefile | 19 obj-$(CONFIG_MTD_PXA2XX) += pxa2xx-flash.o 27 obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcmsp-flash.o 29 obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o 45 obj-$(CONFIG_MTD_RBTX4939) += rbtx4939-flash.o 46 obj-$(CONFIG_MTD_VMU) += vmu-flash.o 47 obj-$(CONFIG_MTD_GPIO_ADDR) += gpio-addr-flash.o 48 obj-$(CONFIG_MTD_LATCH_ADDR) += latch-addr-flash.o 49 obj-$(CONFIG_MTD_LANTIQ) += lantiq-flash.o
|
/Linux-v4.19/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc.c | 3039 bfa_flash_cb(struct bfa_flash *flash) in bfa_flash_cb() argument 3041 flash->op_busy = 0; in bfa_flash_cb() 3042 if (flash->cbfn) in bfa_flash_cb() 3043 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb() 3049 struct bfa_flash *flash = cbarg; in bfa_flash_notify() local 3054 if (flash->op_busy) { in bfa_flash_notify() 3055 flash->status = BFA_STATUS_IOC_FAILURE; in bfa_flash_notify() 3056 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify() 3057 flash->op_busy = 0; in bfa_flash_notify() 3069 bfa_flash_write_send(struct bfa_flash *flash) in bfa_flash_write_send() argument [all …]
|
/Linux-v4.19/arch/arm/mach-ixp4xx/ |
D | goramo_mlr.c | 330 static inline u8 __init flash_readb(u8 __iomem *flash, u32 addr) in flash_readb() argument 333 return __raw_readb(flash + addr); in flash_readb() 335 return __raw_readb(flash + (addr ^ 3)); in flash_readb() 339 static inline u16 __init flash_readw(u8 __iomem *flash, u32 addr) in flash_readw() argument 342 return __raw_readw(flash + addr); in flash_readw() 344 return __raw_readw(flash + (addr ^ 2)); in flash_readw() 350 u8 __iomem *flash; in gmlr_init() local 355 if ((flash = ioremap(IXP4XX_EXP_BUS_BASE_PHYS, 0x80)) == NULL) in gmlr_init() 359 system_rev = __raw_readl(flash + CFG_REV); in gmlr_init() 360 hw_bits = __raw_readl(flash + CFG_HW_BITS); in gmlr_init() [all …]
|