Home
last modified time | relevance | path

Searched refs:flash (Results 1 – 25 of 970) sorted by relevance

12345678910>>...39

/kernel/linux/linux-5.10/drivers/media/i2c/
Dadp1653.c38 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 …]
Dlm3560.c68 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 …]
Dlm3646.c81 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, &reg_val); in lm3646_get_ctrl()
135 struct lm3646_flash *flash = to_lm3646_flash(ctrl); in lm3646_set_ctrl() local
[all …]
/kernel/linux/linux-5.10/drivers/leds/
Dleds-as3645a.c156 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 …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/i2c/
Datomisp-lm3554.c82 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 …]
/kernel/linux/linux-5.10/drivers/mtd/devices/
Dsst25l.c67 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 …]
Dmchp23k256.c41 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 …]
Dspear_smi.c178 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 …]
/kernel/linux/linux-5.10/drivers/sbus/char/
Dflash.c31 } 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 …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
Dext-ctrls-flash.rst9 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 …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
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 …]
/kernel/linux/linux-5.10/Documentation/leds/
Dleds-class-flash.rst5 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/
Dintel,ixp4xx-flash.txt3 This flash is regular CFI compatible (Intel or AMD extended) flash chips with
7 - compatible : must be "intel,ixp4xx-flash", "cfi-flash";
8 - reg : memory address for the flash chip
9 - bank-width : width in bytes of flash interface, should be <2>
18 flash@50000000 {
19 compatible = "intel,ixp4xx-flash", "cfi-flash";
Darm-versatile.txt3 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";
Dcortina,gemini-flash.txt3 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";
Dmtd-physmap.txt1 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.
38 - vendor-id : Contains the flash chip's vendor id (1 byte).
39 - device-id : Contains the flash chip's device id (1 byte).
41 For ROM compatible devices (and ROM fallback from cfi-flash), the following
49 from/to the flash. If this property is missing,
[all …]
Dpartition.txt8 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/i2c/
Dadp1653.txt1 * 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>;
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c3033 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 …]
/kernel/linux/linux-5.10/drivers/mtd/maps/
DKconfig7 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-aat1290.txt4 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
60 flash-max-microamp = <1012500>;
61 flash-max-timeout-us = <1940000>;
[all …]
Dleds-ktd2692.txt3 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>;
Dams,as3645a.txt3 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>;
/kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/
Dgoramo_mlr.c353 static inline u8 __init flash_readb(u8 __iomem *flash, u32 addr) in flash_readb() argument
356 return __raw_readb(flash + addr); in flash_readb()
358 return __raw_readb(flash + (addr ^ 3)); in flash_readb()
362 static inline u16 __init flash_readw(u8 __iomem *flash, u32 addr) in flash_readw() argument
365 return __raw_readw(flash + addr); in flash_readw()
367 return __raw_readw(flash + (addr ^ 2)); in flash_readw()
373 u8 __iomem *flash; in gmlr_init() local
378 if ((flash = ioremap(IXP4XX_EXP_BUS_BASE_PHYS, 0x80)) == NULL) in gmlr_init()
382 system_rev = __raw_readl(flash + CFG_REV); in gmlr_init()
383 hw_bits = __raw_readl(flash + CFG_HW_BITS); in gmlr_init()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/partitions/
Dredboot-fis.txt4 The FLASH Image System (FIS) directory is a flash description
7 It uses one single flash eraseblock in the flash to store an index of
8 all images in the flash.
10 This block size will vary depending on flash but is typically
16 the FIS directory on this device. On a flash memory with 32KB
22 flash@0 {

12345678910>>...39