Home
last modified time | relevance | path

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

12345

/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()
473 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 …]
/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()
507 if (!flash->flash_node) { in as3645a_parse_node()
657 &flash->client->dev, flash->flash_node, &flash->fled, NULL, in as3645a_v4l2_setup()
659 if (IS_ERR(flash->vf)) in as3645a_v4l2_setup()
663 &flash->client->dev, flash->indicator_node, &flash->iled_cdev, in as3645a_v4l2_setup()
675 struct as3645a *flash; in as3645a_probe() local
681 flash = devm_kzalloc(&client->dev, sizeof(*flash), GFP_KERNEL); in as3645a_probe()
682 if (flash == NULL) in as3645a_probe()
685 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"
40 of flash, torch and indicator classes.
76 will be called "leds-mt6370-flash".
86 Technologies, Inc. PMICs. The flash module can have 3 or 4 flash LED
107 tristate "LED support for Richtek RT8515 flash/torch LED"
111 This option enables support for the Richtek RT8515 flash
136 tristate "LED support for TI TPS6131x flash LED driver"
[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
429 struct led_classdev_flash *flash = &led->flash; in mt6360_flash_init_default_state() local
453 flash->led_cdev.brightness = flash->led_cdev.max_brightness; in mt6360_flash_init_default_state()
456 flash->led_cdev.brightness = in mt6360_flash_init_default_state()
472 struct mt6360_led *led = container_of(flash, struct mt6360_led, flash); in mt6360_flash_external_strobe_set()
504 lcdev = &led->flash.led_cdev; in mt6360_init_v4l2_flash_config()
599 &led->flash, in mt6360_led_register()
707 struct led_classdev_flash *flash = &led->flash; in mt6360_init_flash_properties() local
739 s = &flash->brightness; in mt6360_init_flash_properties()
762 s = &flash->timeout; in mt6360_init_flash_properties()
[all …]
A Dleds-mt6370-flash.c71 struct led_classdev_flash flash; member
166 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in _mt6370_flash_brightness_set()
197 struct mt6370_led *led = to_mt6370_led(fl_cdev, flash); in mt6370_strobe_set()
347 struct mt6370_led *led = to_mt6370_led(flash, flash); in mt6370_flash_external_strobe_set()
379 lcdev = &led->flash.led_cdev; in mt6370_init_v4l2_flash_config()
438 struct led_classdev_flash *flash = &led->flash; in mt6370_init_flash_properties() local
439 struct led_classdev *lcdev = &flash->led_cdev; in mt6370_init_flash_properties()
482 s = &flash->brightness; in mt6370_init_flash_properties()
488 ret = _mt6370_flash_brightness_set(flash, s->min); in mt6370_init_flash_properties()
498 s = &flash->timeout; in mt6370_init_flash_properties()
[all …]
A Dleds-sy7802.c89 struct led_classdev_flash flash; member
175 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_flash_brightness_set()
196 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_strobe_set()
240 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_strobe_get()
252 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_timeout_set()
262 struct sy7802_led *led = container_of(fl_cdev, struct sy7802_led, flash); in sy7802_fault_get()
337 struct led_classdev_flash *flash = &led->flash; in sy7802_init_flash_properties() local
338 struct led_classdev *lcdev = &flash->led_cdev; in sy7802_init_flash_properties()
367 flash->ops = &sy7802_flash_ops; in sy7802_init_flash_properties()
369 sy7802_init_flash_brightness(flash); in sy7802_init_flash_properties()
[all …]
/drivers/mtd/devices/
A Dmchp48l640.c78 mutex_lock(&flash->lock); in mchp48l640_read_status()
80 mutex_unlock(&flash->lock); in mchp48l640_read_status()
127 mutex_lock(&flash->lock); in mchp48l640_write_prepare()
155 mutex_lock(&flash->lock); in mchp48l640_set_mode()
189 mutex_lock(&flash->lock); in mchp48l640_write_page()
320 flash = devm_kzalloc(&spi->dev, sizeof(*flash), GFP_KERNEL); in mchp48l640_probe()
321 if (!flash) in mchp48l640_probe()
324 flash->spi = spi; in mchp48l640_probe()
339 if (!flash->caps) in mchp48l640_probe()
346 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()
1044 flash = dev->flash[i]; in spear_smi_remove()
[all …]
/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 …]
/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 …]
/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 …]
A Dpxa2xx-flash.c46 struct flash_platform_data *flash = dev_get_platdata(&pdev->dev); in pxa2xx_flash_probe() local
58 info->map.name = flash->name; in pxa2xx_flash_probe()
59 info->map.bankwidth = flash->width; in pxa2xx_flash_probe()
83 info->mtd = do_map_probe(flash->map_name, &info->map); in pxa2xx_flash_probe()
94 mtd_device_parse_register(info->mtd, probes, NULL, flash->parts, in pxa2xx_flash_probe()
95 flash->nr_parts); in pxa2xx_flash_probe()
/drivers/scsi/bfa/
A Dbfa_ioc.c4191 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb()
4205 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify()
4231 bfa_ioc_mbox_queue(flash->ioc, &flash->mb); in bfa_flash_query_send()
4259 memcpy(flash->dbuf_kva, flash->ubuf + flash->offset, len); in bfa_flash_write_send()
4385 bfa_trc(flash, flash->offset); in bfa_flash_intr()
4397 bfa_trc(flash, flash->offset); in bfa_flash_intr()
4399 memcpy(flash->ubuf + flash->offset, in bfa_flash_intr()
4518 bfa_trc(flash, flash->op_busy); in bfa_flash_get_attr()
4554 bfa_trc(flash, flash->op_busy); in bfa_flash_erase_part()
4609 bfa_trc(flash, flash->op_busy); in bfa_flash_update_part()
[all …]
/drivers/mtd/chips/
A DKconfig6 tristate "Detect flash chips by Common Flash Interface (CFI) probe"
12 for probing the capabilities of flash devices. If you wish to
18 tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
128 bool "Support 1-chip flash interleave" if MTD_CFI_GEOMETRY
132 flash chip addressed by each bus cycle, then say 'Y'.
135 bool "Support 2-chip flash interleave" if MTD_CFI_GEOMETRY
139 flash chips addressed by each bus cycle, then say 'Y'.
142 bool "Support 4-chip flash interleave" if MTD_CFI_GEOMETRY
146 flash chips addressed by each bus cycle, then say 'Y'.
153 flash chips addressed by each bus cycle, then say 'Y'.
[all …]
/drivers/firmware/microchip/
A Dmpfs-auto-update.c82 struct mtd_info *flash; member
116 priv->flash = mpfs_sys_controller_get_flash(priv->sys_controller); in mpfs_auto_update_prepare()
117 if (!priv->flash) in mpfs_auto_update_prepare()
120 erase_size = round_up(erase_size, (u64)priv->flash->erasesize); in mpfs_auto_update_prepare()
131 priv->size_per_bitstream = priv->flash->size - SZ_1K - SZ_1M; in mpfs_auto_update_prepare()
225 ret = mtd_read(priv->flash, AUTO_UPDATE_DIRECTORY_BASE, erase_size, &bytes_read, in mpfs_auto_update_set_image_address()
237 ret = mtd_erase(priv->flash, &erase); in mpfs_auto_update_set_image_address()
253 ret = mtd_write(priv->flash, 0x0, erase_size, &bytes_written, (u_char *)buffer); in mpfs_auto_update_set_image_address()
275 erase_size = round_up(erase_size, (u64)priv->flash->erasesize); in mpfs_auto_update_write_bitstream()
305 erase.len = round_up(size, (size_t)priv->flash->erasesize); in mpfs_auto_update_write_bitstream()
[all …]
/drivers/scsi/aic94xx/
A Daic94xx_sds.c603 asd_ha->hw_prof.flash.dir_offs = v; in asd_find_flash_dir()
620 &asd_ha->hw_prof.flash.bar)) { in asd_flash_getid()
625 asd_ha->hw_prof.flash.present = 1; in asd_flash_getid()
1091 reg = asd_ha->hw_prof.flash.bar; in asd_verify_flash_seg()
1121 reg = asd_ha->hw_prof.flash.bar; in asd_write_flash_seg()
1147 switch (asd_ha->hw_prof.flash.method) { in asd_write_flash_seg()
1205 reg = asd_ha->hw_prof.flash.bar; in asd_chk_write_status()
1261 reg = asd_ha->hw_prof.flash.bar; in asd_erase_nv_sector()
1311 reg = asd_ha->hw_prof.flash.bar; in asd_check_flash_type()
1458 asd_ha->hw_prof.flash.manuf = manuf_id; in asd_check_flash_type()
[all …]
/drivers/scsi/esas2r/
A Desas2r_vda.c102 if (vi->cmd.flash.sub_func != VDA_FLASH_FREAD in esas2r_process_vda_ioctl()
103 && vi->cmd.flash.sub_func != VDA_FLASH_FWRITE in esas2r_process_vda_ioctl()
109 if (vi->cmd.flash.sub_func != VDA_FLASH_FINFO) in esas2r_process_vda_ioctl()
112 rq->vrq->flash.length = cpu_to_le32(datalen); in esas2r_process_vda_ioctl()
113 rq->vrq->flash.sub_func = vi->cmd.flash.sub_func; in esas2r_process_vda_ioctl()
115 memcpy(rq->vrq->flash.data.file.file_name, in esas2r_process_vda_ioctl()
116 vi->cmd.flash.data.file.file_name, in esas2r_process_vda_ioctl()
119 firstsg = rq->vrq->flash.data.file.sge; in esas2r_process_vda_ioctl()
279 if (vi->cmd.flash.sub_func == VDA_FLASH_FINFO in esas2r_complete_vda_ioctl()
281 vi->cmd.flash.data.file.file_size = in esas2r_complete_vda_ioctl()
[all …]
/drivers/mtd/parsers/
A DKconfig34 different kinds of flash memory are available.
60 Same flash, but 2 named partitions, the first one being read-only:
72 flash memory node, as described in
126 about flash space layout is stored in a partitions table using a
146 tristate "Sharp SL Series NAND flash partition parser"
157 'images' in flash devices by putting a table one of the erase
160 flash.
190 bool "Include unallocated flash regions"
192 If you need to register each unallocated flash region as a MTD
204 tristate "Qualcomm SMEM flash partition parser"
[all …]
/drivers/net/ethernet/intel/ice/
A Dice_nvm.c214 if (hw->flash.blank_nvm_mode) in ice_acquire_nvm()
228 if (hw->flash.blank_nvm_mode) in ice_release_nvm()
248 struct ice_bank_info *banks = &hw->flash.banks; in ice_get_flash_bank_offset()
664 orom_data = vzalloc(hw->flash.banks.orom_size); in ice_get_orom_civd_data()
669 orom_data, hw->flash.banks.orom_size); in ice_get_orom_civd_data()
889 hw->flash.flash_size = max_size; in ice_discover_flash_size()
969 struct ice_bank_info *banks = &hw->flash.banks; in ice_determine_active_flash_banks()
1090 struct ice_bank_info *banks = &hw->flash.banks; in ice_determine_css_hdr_len()
1115 struct ice_flash_info *flash = &hw->flash; in ice_init_nvm() local
1132 flash->blank_nvm_mode = false; in ice_init_nvm()
[all …]
/drivers/mtd/spi-nor/
A DKconfig17 Many flash memories support erasing small (4096 B) sectors. Depending
20 Changing a small part of the flash's contents is usually faster with
37 Depending on the flash chip this either clears the block protection
41 of your SPI flash. This is only to keep backwards compatibility.
47 power-up or a reset the flash is software write protected by
55 the flash either the block protection bits are cleared or a
64 SPI flashes will not be changed. If your flash is software write

Completed in 775 milliseconds

12345