Home
last modified time | relevance | path

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

12345

/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
DMakefile19 obj-$(CONFIG_MTD_PXA2XX) += pxa2xx-flash.o
28 obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcmsp-flash.o
30 obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o
46 obj-$(CONFIG_MTD_RBTX4939) += rbtx4939-flash.o
47 obj-$(CONFIG_MTD_VMU) += vmu-flash.o
48 obj-$(CONFIG_MTD_LANTIQ) += lantiq-flash.o
Dpxa2xx-flash.c48 struct flash_platform_data *flash = dev_get_platdata(&pdev->dev); in pxa2xx_flash_probe() local
60 info->map.name = flash->name; in pxa2xx_flash_probe()
61 info->map.bankwidth = flash->width; in pxa2xx_flash_probe()
85 info->mtd = do_map_probe(flash->map_name, &info->map); in pxa2xx_flash_probe()
96 mtd_device_parse_register(info->mtd, probes, NULL, flash->parts, in pxa2xx_flash_probe()
97 flash->nr_parts); in pxa2xx_flash_probe()
/drivers/scsi/bfa/
Dbfa_ioc.c4208 bfa_flash_cb(struct bfa_flash_s *flash) in bfa_flash_cb() argument
4210 flash->op_busy = 0; in bfa_flash_cb()
4211 if (flash->cbfn) in bfa_flash_cb()
4212 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb()
4218 struct bfa_flash_s *flash = cbarg; in bfa_flash_notify() local
4220 bfa_trc(flash, event); in bfa_flash_notify()
4224 if (flash->op_busy) { in bfa_flash_notify()
4225 flash->status = BFA_STATUS_IOC_FAILURE; in bfa_flash_notify()
4226 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify()
4227 flash->op_busy = 0; in bfa_flash_notify()
[all …]
/drivers/mtd/chips/
DKconfig6 tristate "Detect flash chips by Common Flash Interface (CFI) probe"
11 AMD and other flash manufactures that provides a universal method
12 for probing the capabilities of flash devices. If you wish to
18 tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
22 This option enables JEDEC-style probing of flash chips which are not
24 CFI-targeted flash drivers for any chips which are identified which
36 If you need to specify a specific endianness for access to flash
38 support for only specific arrangements of flash chips, say 'Y'. This
128 bool "Support 1-chip flash interleave" if MTD_CFI_GEOMETRY
131 If your flash chips are not interleaved - i.e. you only have one
[all …]
/drivers/scsi/aic94xx/
Daic94xx_sds.c554 d = asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
555 d ^= asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
570 asd_write_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar, FLASH_RESET); in asd_reset_flash()
579 asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs, in asd_read_flash_seg()
601 asd_ha->hw_prof.flash.dir_offs = v; in asd_find_flash_dir()
618 &asd_ha->hw_prof.flash.bar)) { in asd_flash_getid()
623 asd_ha->hw_prof.flash.present = 1; in asd_flash_getid()
624 asd_ha->hw_prof.flash.wide = reg & FLASHW ? 1 : 0; in asd_flash_getid()
1087 reg = asd_ha->hw_prof.flash.bar; in asd_verify_flash_seg()
1117 reg = asd_ha->hw_prof.flash.bar; in asd_write_flash_seg()
[all …]
/drivers/scsi/esas2r/
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()
104 && vi->cmd.flash.sub_func != VDA_FLASH_FINFO) { 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()
117 sizeof(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()
[all …]
/drivers/mtd/parsers/
DKconfig28 command line. Multiple flash resources are supported for hardware where
29 different kinds of flash memory are available.
52 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
55 Same flash, but 2 named partitions, the first one being read-only:
67 flash memory node, as described in
85 The ARM Firmware Suite allows the user to divide flash devices into
107 tristate "Sharp SL Series NAND flash partition parser"
111 table from the NAND flash of Sharp SL Series (Zaurus) and the MTD
118 'images' in flash devices by putting a table one of the erase
121 flash.
[all …]
/drivers/mtd/spi-nor/controllers/
DKconfig3 tristate "Aspeed flash controllers in SPI mode"
9 and support for the SPI flash memory controller (SPI) for
17 This enables support for HiSilicon FMC SPI NOR flash controller.
34 tristate "Intel PCH/PCU SPI flash PCI driver (DANGEROUS)"
44 SPI flash may render the system unbootable.
50 tristate "Intel PCH/PCU SPI flash platform driver (DANGEROUS)"
61 SPI flash may render the system unbootable.
/drivers/mtd/nand/raw/
DKconfig20 NAND flash devices. For further information see
35 comment "Raw/parallel NAND flash controllers"
45 Enable the driver for NAND flash on Intel Moorestown, using the
53 Enable the driver for NAND flash on platforms using a Denali NAND
61 Support for NAND flash on Amstrad E3 (Delta).
68 Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4
90 This enables the driver for the NAND flash controller on the
104 This enables the NAND flash controller on the S3C24xx and S3C64xx
144 Use NAND flash attached to the CAFÉ chip designed for the OLPC
153 include NAND flash controllers with built-in hardware ECC
[all …]
/drivers/mtd/nand/onenand/
DKconfig6 This enables support for accessing all type of OneNAND flash
14 This adds an extra check when data is written to the flash. The
15 OneNAND flash device internally checks only bits transitioning
23 Support for OneNAND flash via platform device driver.
30 Support for a OneNAND flash device connected to an OMAP2/OMAP3 SoC
38 Support for a OneNAND flash device connected to an Samsung SOC.
/drivers/mtd/lpddr/
DKconfig6 tristate "Support for LPDDR flash chips"
10 flash chips. Synonymous with Mobile-DDR. It is a new standard for
15 tristate "Detect flash chips by QINFO probe"
25 tristate "Support for LPDDR2-NVM flash chips"
/drivers/media/v4l2-core/
DKconfig60 # Used by LED subsystem flash drivers
62 tristate "V4L2 flash API for LED flash class devices"
66 Say Y here to enable V4L2 flash API support for LED flash
/drivers/mtd/ubi/
DKconfig8 flash chips like wear and bad blocks and provides some other useful
38 flash does not admit of bad eraseblocks (e.g. NOR flash), this value
51 flash chip admits maximum 40 bad eraseblocks, and it is split on two
64 Important: this feature is experimental so far and the on-flash
70 The on-flash fastmap contains all information needed to attach
76 fastmap support. On typical flash devices the whole fastmap fits
/drivers/spi/
Dspi-stm32-qspi.c108 struct stm32_qspi_flash flash[STM32_QSPI_MAX_NORCHIP]; member
336 struct stm32_qspi_flash *flash = &qspi->flash[mem->spi->chip_select]; in stm32_qspi_send() local
363 cr |= FIELD_PREP(CR_PRESC_MASK, flash->presc); in stm32_qspi_send()
364 cr |= FIELD_PREP(CR_FSEL, flash->cs); in stm32_qspi_send()
460 struct stm32_qspi_flash *flash; in stm32_qspi_setup() local
478 flash = &qspi->flash[spi->chip_select]; in stm32_qspi_setup()
479 flash->qspi = qspi; in stm32_qspi_setup()
480 flash->cs = spi->chip_select; in stm32_qspi_setup()
481 flash->presc = presc; in stm32_qspi_setup()

12345