Home
last modified time | relevance | path

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

12345678910>>...46

/linux/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()
472 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()
397 struct lm3560_flash *flash; in lm3560_probe() local
401 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in lm3560_probe()
402 if (flash == NULL) in lm3560_probe()
425 flash->pdata = pdata; in lm3560_probe()
426 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()
340 struct lm3646_flash *flash; in lm3646_probe() local
344 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in lm3646_probe()
345 if (flash == NULL) in lm3646_probe()
349 if (IS_ERR(flash->regmap)) in lm3646_probe()
350 return PTR_ERR(flash->regmap); in lm3646_probe()
364 flash->pdata = pdata; in lm3646_probe()
[all …]
/linux/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 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 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
57 This option enables support for the RT4505 flash LED controller.
63 tristate "LED support for Richtek RT8515 flash/torch LED"
[all …]
/linux/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()
1058 flash = dev->flash[i]; in spear_smi_remove()
[all …]
/linux/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/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/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/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 …]
/linux/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/Documentation/devicetree/bindings/mtd/
A Dmtd-physmap.yaml25 - arm,versatile-flash
26 - arm,vexpress-flash
27 - cortina,gemini-flash
39 - intel,ixp4xx-flash
47 - const: cfi-flash
54 - cfi-flash
55 - jedec-flash
93 physmap-flash.
136 flash@ff000000 {
160 flash@0 {
[all …]
A 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";
/linux/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/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/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/Documentation/devicetree/bindings/leds/
A 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
60 flash-max-microamp = <1012500>;
61 flash-max-timeout-us = <1940000>;
66 camera_flash_host: camera-flash-host {
[all …]
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>;
A 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>;
/linux/arch/arm/mach-ixp4xx/
A Dgoramo_mlr.c356 return __raw_readb(flash + addr); in flash_readb()
358 return __raw_readb(flash + (addr ^ 3)); in flash_readb()
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
382 system_rev = __raw_readl(flash + CFG_REV); in gmlr_init()
383 hw_bits = __raw_readl(flash + CFG_HW_BITS); in gmlr_init()
387 flash_readb(flash, CFG_ETH0_ADDRESS + i); in gmlr_init()
392 __raw_writew(FLASH_CMD_READ_ID, flash); in gmlr_init()
399 __raw_writew(FLASH_CMD_READ_ARRAY, flash); in gmlr_init()
[all …]
/linux/drivers/scsi/bfa/
A Dbfa_ioc.c4213 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb()
4227 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify()
4253 bfa_ioc_mbox_queue(flash->ioc, &flash->mb); in bfa_flash_query_send()
4281 memcpy(flash->dbuf_kva, flash->ubuf + flash->offset, len); in bfa_flash_write_send()
4407 bfa_trc(flash, flash->offset); in bfa_flash_intr()
4419 bfa_trc(flash, flash->offset); in bfa_flash_intr()
4421 memcpy(flash->ubuf + flash->offset, in bfa_flash_intr()
4540 bfa_trc(flash, flash->op_busy); in bfa_flash_get_attr()
4576 bfa_trc(flash, flash->op_busy); in bfa_flash_erase_part()
4631 bfa_trc(flash, flash->op_busy); in bfa_flash_update_part()
[all …]

Completed in 60 milliseconds

12345678910>>...46