Home
last modified time | relevance | path

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

12345678910>>...51

/linux-6.3-rc2/drivers/media/i2c/
A Dadp1653.c87 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()
471 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in adp1653_probe()
[all …]
A Dlm3560.c72 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 Dlm3646.c86 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-6.3-rc2/drivers/leds/flash/
A Dleds-as3645a.c216 | ((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()
509 if (!flash->flash_node) { in as3645a_parse_node()
659 &flash->client->dev, flash->flash_node, &flash->fled, NULL, in as3645a_v4l2_setup()
661 if (IS_ERR(flash->vf)) in as3645a_v4l2_setup()
665 &flash->client->dev, flash->indicator_node, &flash->iled_cdev, in as3645a_v4l2_setup()
677 struct as3645a *flash; in as3645a_probe() local
683 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in as3645a_probe()
684 if (flash == NULL) in as3645a_probe()
687 flash->client = client; in as3645a_probe()
[all …]
A DKconfig15 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
70 This option enables support for the RT4505 flash LED controller.
76 tristate "LED support for Richtek RT8515 flash/torch LED"
[all …]
A Dleds-rt4505.c48 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 …]
A Dleds-mt6360.c78 struct led_classdev_flash flash; member
419 struct led_classdev_flash *flash = &led->flash; in mt6360_flash_init_default_state() local
443 flash->led_cdev.brightness = flash->led_cdev.max_brightness; in mt6360_flash_init_default_state()
446 flash->led_cdev.brightness = in mt6360_flash_init_default_state()
462 struct mt6360_led *led = container_of(flash, struct mt6360_led, flash); in mt6360_flash_external_strobe_set()
494 lcdev = &led->flash.led_cdev; in mt6360_init_v4l2_flash_config()
589 &led->flash, in mt6360_led_register()
694 struct led_classdev_flash *flash = &led->flash; in mt6360_init_flash_properties() local
726 s = &flash->brightness; in mt6360_init_flash_properties()
749 s = &flash->timeout; in mt6360_init_flash_properties()
[all …]
/linux-6.3-rc2/drivers/mtd/devices/
A Dmchp48l640.c76 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 Dsst25l.c182 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 Dmchp23k256.c84 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 Dspear_smi.c501 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()
1054 flash = dev->flash[i]; in spear_smi_remove()
[all …]
/linux-6.3-rc2/drivers/staging/media/atomisp/i2c/
A Datomisp-lm3554.c123 flash->mode = mode; in lm3554_set_mode()
172 struct lm3554 *flash = from_timer(flash, t, flash_off_delay); in lm3554_flash_off_delay() local
268 flash->timeout = val; in lm3554_s_flash_timeout()
383 *val = flash->mode; in lm3554_g_flash_mode()
636 ret = lm3554_setup(flash); in __lm3554_s_power()
836 struct lm3554 *flash; in lm3554_probe() local
839 flash = kzalloc(sizeof(*flash), GFP_KERNEL); in lm3554_probe()
840 if (!flash) in lm3554_probe()
872 flash->sd.ctrl_handler = &flash->ctrl_handler; in lm3554_probe()
908 kfree(flash); in lm3554_probe()
[all …]
/linux-6.3-rc2/drivers/sbus/char/
A 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()
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-6.3-rc2/Documentation/userspace-api/media/v4l/
A Dext-ctrls-flash.rst9 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-6.3-rc2/Documentation/ABI/testing/
A Dsysfs-class-led-flash8 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 Dsysfs-bus-spi-devices-spi-nor5 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.3-rc2/Documentation/leds/
A Dleds-class-flash.rst16 (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-6.3-rc2/Documentation/devicetree/bindings/mtd/
A Dmtd-physmap.yaml29 - 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-6.3-rc2/Documentation/devicetree/bindings/media/i2c/
A 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>;
/linux-6.3-rc2/drivers/net/ethernet/brocade/bna/
A Dbfa_ioc.c3036 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-6.3-rc2/drivers/mtd/maps/
A DKconfig7 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-6.3-rc2/Documentation/devicetree/bindings/leds/
A Dskyworks,aat1290.yaml15 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 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>;
/linux-6.3-rc2/Documentation/devicetree/bindings/mtd/partitions/
A Dredboot-fis.yaml9 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.3-rc2/Documentation/networking/devlink/
A Ddevlink-flash.rst9 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 …]

Completed in 51 milliseconds

12345678910>>...51