Home
last modified time | relevance | path

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

1234

/drivers/media/i2c/
Dadp1653.c49 static int adp1653_update_hw(struct adp1653_flash *flash) in adp1653_update_hw() argument
51 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_update_hw()
57 flash->indicator_intensity->val) in adp1653_update_hw()
60 switch (flash->led_mode->val) { in adp1653_update_hw()
66 config |= TIMEOUT_US_TO_CODE(flash->flash_timeout->val) in adp1653_update_hw()
72 flash->torch_intensity->val) in adp1653_update_hw()
88 static int adp1653_get_fault(struct adp1653_flash *flash) in adp1653_get_fault() argument
90 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in adp1653_get_fault()
98 flash->fault |= fault; in adp1653_get_fault()
100 if (!flash->fault) in adp1653_get_fault()
[all …]
Das3645a.c139 static int as3645a_write(struct as3645a *flash, u8 addr, u8 val) in as3645a_write() argument
141 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_write()
153 static int as3645a_read(struct as3645a *flash, u8 addr) in as3645a_read() argument
155 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); in as3645a_read()
180 static int as3645a_set_config(struct as3645a *flash) in as3645a_set_config() argument
185 val = (flash->flash_current << AS_CURRENT_FLASH_CURRENT_SHIFT) in as3645a_set_config()
186 | (flash->assist_current << AS_CURRENT_ASSIST_LIGHT_SHIFT) in as3645a_set_config()
189 ret = as3645a_write(flash, AS_CURRENT_SET_REG, val); in as3645a_set_config()
193 val = AS_TIMER_MS_TO_CODE(flash->timeout / 1000) in as3645a_set_config()
196 val |= (flash->pdata->vref << AS_INDICATOR_AND_TIMER_VREF_SHIFT) in as3645a_set_config()
[all …]
Dlm3560.c75 static int lm3560_mode_ctrl(struct lm3560_flash *flash) in lm3560_mode_ctrl() argument
79 switch (flash->led_mode) { in lm3560_mode_ctrl()
81 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
85 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
89 rval = regmap_update_bits(flash->regmap, in lm3560_mode_ctrl()
97 static int lm3560_enable_ctrl(struct lm3560_flash *flash, in lm3560_enable_ctrl() argument
104 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
107 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
111 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
114 rval = regmap_update_bits(flash->regmap, in lm3560_enable_ctrl()
[all …]
Dlm3646.c84 static int lm3646_mode_ctrl(struct lm3646_flash *flash, in lm3646_mode_ctrl() argument
89 return regmap_write(flash->regmap, in lm3646_mode_ctrl()
90 REG_ENABLE, flash->mode_reg | MODE_SHDN); in lm3646_mode_ctrl()
92 return regmap_write(flash->regmap, in lm3646_mode_ctrl()
93 REG_ENABLE, flash->mode_reg | MODE_TORCH); in lm3646_mode_ctrl()
95 return regmap_write(flash->regmap, in lm3646_mode_ctrl()
96 REG_ENABLE, flash->mode_reg | MODE_FLASH); in lm3646_mode_ctrl()
104 struct lm3646_flash *flash = to_lm3646_flash(ctrl); in lm3646_get_ctrl() local
111 rval = regmap_read(flash->regmap, REG_FLAG, &reg_val); in lm3646_get_ctrl()
138 struct lm3646_flash *flash = to_lm3646_flash(ctrl); in lm3646_set_ctrl() local
[all …]
/drivers/mtd/devices/
Dsst25l.c71 static int sst25l_status(struct sst25l_flash *flash, int *status) in sst25l_status() argument
87 err = spi_sync(flash->spi, &m); in sst25l_status()
95 static int sst25l_write_enable(struct sst25l_flash *flash, int enable) in sst25l_write_enable() argument
101 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
106 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
112 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
117 err = sst25l_status(flash, &status); in sst25l_write_enable()
127 static int sst25l_wait_till_ready(struct sst25l_flash *flash) in sst25l_wait_till_ready() argument
134 err = sst25l_status(flash, &status); in sst25l_wait_till_ready()
146 static int sst25l_erase_sector(struct sst25l_flash *flash, uint32_t offset) in sst25l_erase_sector() argument
[all …]
Dm25p80.c40 struct m25p *flash = nor->priv; in m25p80_read_reg() local
41 struct spi_device *spi = flash->spi; in m25p80_read_reg()
68 struct m25p *flash = nor->priv; in m25p80_write_reg() local
69 struct spi_device *spi = flash->spi; in m25p80_write_reg()
71 flash->command[0] = opcode; in m25p80_write_reg()
73 memcpy(&flash->command[1], buf, len); in m25p80_write_reg()
75 return spi_write(spi, flash->command, len + 1); in m25p80_write_reg()
81 struct m25p *flash = nor->priv; in m25p80_write() local
82 struct spi_device *spi = flash->spi; in m25p80_write()
92 flash->command[0] = nor->program_opcode; in m25p80_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()
522 mutex_unlock(&flash->lock); in spear_mtd_erase()
529 mutex_unlock(&flash->lock); in spear_mtd_erase()
[all …]
DKconfig65 This adds an extra check when data is written to the flash.
85 This enables access to most modern SPI flash chips, used for
109 This enables access to the non JEDEC SST25L SPI flash chips, used
116 tristate "R/O support for serial flash on BCMA bus"
119 BCMA bus can have various flash memories attached, they are
121 serial flash memories (only read-only mode is implemented).
140 tristate "28F160xx flash driver for LART"
143 This enables the flash driver for LART. Please note that you do
/drivers/sbus/char/
Dflash.c31 } flash; variable
42 if (flash.read_base == flash.write_base) { in flash_mmap()
43 addr = flash.read_base; in flash_mmap()
44 size = flash.read_size; in flash_mmap()
52 addr = flash.read_base; in flash_mmap()
53 size = flash.read_size; in flash_mmap()
55 addr = flash.write_base; in flash_mmap()
56 size = flash.write_size; in flash_mmap()
89 if (file->f_pos > flash.read_size) in flash_llseek()
90 file->f_pos = flash.read_size; in flash_llseek()
[all …]
/drivers/mtd/maps/
DKconfig6 bool "Support non-linear mappings of flash chips"
9 paged mappings of flash chips.
18 the physical address and size of the flash chips on your
37 hex "Physical start address of flash mapping"
41 This is the physical memory location at which the flash chips
47 hex "Physical length of flash mapping"
51 This is the total length of the mapping of the flash chips on
54 than the total amount of flash present. Refer to the memory
63 This is the total width of the data bus of the flash devices
82 in which user-programmable flash chips are connected on the
[all …]
DMakefile18 obj-$(CONFIG_MTD_PXA2XX) += pxa2xx-flash.o
22 obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcmsp-flash.o
24 obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o
40 obj-$(CONFIG_MTD_BFIN_ASYNC) += bfin-async-flash.o
41 obj-$(CONFIG_MTD_RBTX4939) += rbtx4939-flash.o
42 obj-$(CONFIG_MTD_VMU) += vmu-flash.o
43 obj-$(CONFIG_MTD_GPIO_ADDR) += gpio-addr-flash.o
44 obj-$(CONFIG_MTD_LATCH_ADDR) += latch-addr-flash.o
45 obj-$(CONFIG_MTD_LANTIQ) += lantiq-flash.o
Dpxa2xx-flash.c51 struct flash_platform_data *flash = dev_get_platdata(&pdev->dev); in pxa2xx_flash_probe() local
63 info->map.name = flash->name; in pxa2xx_flash_probe()
64 info->map.bankwidth = flash->width; in pxa2xx_flash_probe()
88 info->mtd = do_map_probe(flash->map_name, &info->map); in pxa2xx_flash_probe()
98 mtd_device_parse_register(info->mtd, probes, NULL, flash->parts, in pxa2xx_flash_probe()
99 flash->nr_parts); in pxa2xx_flash_probe()
/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c3053 bfa_flash_cb(struct bfa_flash *flash) in bfa_flash_cb() argument
3055 flash->op_busy = 0; in bfa_flash_cb()
3056 if (flash->cbfn) in bfa_flash_cb()
3057 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb()
3063 struct bfa_flash *flash = cbarg; in bfa_flash_notify() local
3068 if (flash->op_busy) { in bfa_flash_notify()
3069 flash->status = BFA_STATUS_IOC_FAILURE; in bfa_flash_notify()
3070 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify()
3071 flash->op_busy = 0; in bfa_flash_notify()
3083 bfa_flash_write_send(struct bfa_flash *flash) in bfa_flash_write_send() argument
[all …]
Dbfa_ioc.h354 enum bfa_status bfa_nw_flash_get_attr(struct bfa_flash *flash,
357 enum bfa_status bfa_nw_flash_update_part(struct bfa_flash *flash,
360 enum bfa_status bfa_nw_flash_read_part(struct bfa_flash *flash,
364 void bfa_nw_flash_attach(struct bfa_flash *flash,
366 void bfa_nw_flash_memclaim(struct bfa_flash *flash, u8 *dm_kva, u64 dm_pa);
/drivers/scsi/bfa/
Dbfa_ioc.c4222 bfa_flash_cb(struct bfa_flash_s *flash) in bfa_flash_cb() argument
4224 flash->op_busy = 0; in bfa_flash_cb()
4225 if (flash->cbfn) in bfa_flash_cb()
4226 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_cb()
4232 struct bfa_flash_s *flash = cbarg; in bfa_flash_notify() local
4234 bfa_trc(flash, event); in bfa_flash_notify()
4238 if (flash->op_busy) { in bfa_flash_notify()
4239 flash->status = BFA_STATUS_IOC_FAILURE; in bfa_flash_notify()
4240 flash->cbfn(flash->cbarg, flash->status); in bfa_flash_notify()
4241 flash->op_busy = 0; in bfa_flash_notify()
[all …]
/drivers/mtd/chips/
DKconfig5 tristate "Detect flash chips by Common Flash Interface (CFI) probe"
10 AMD and other flash manufactures that provides a universal method
11 for probing the capabilities of flash devices. If you wish to
17 tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
20 This option enables JEDEC-style probing of flash chips which are not
22 CFI-targeted flash drivers for any chips which are identified which
34 If you need to specify a specific endianness for access to flash
36 support for only specific arrangements of flash chips, say 'Y'. This
120 bool "Support 1-chip flash interleave" if MTD_CFI_GEOMETRY
123 If your flash chips are not interleaved - i.e. you only have one
[all …]
/drivers/scsi/aic94xx/
Daic94xx_sds.c572 d = asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
573 d ^= asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
588 asd_write_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar, FLASH_RESET); in asd_reset_flash()
597 asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs, in asd_read_flash_seg()
619 asd_ha->hw_prof.flash.dir_offs = v; in asd_find_flash_dir()
636 &asd_ha->hw_prof.flash.bar)) { in asd_flash_getid()
641 asd_ha->hw_prof.flash.present = 1; in asd_flash_getid()
642 asd_ha->hw_prof.flash.wide = reg & FLASHW ? 1 : 0; in asd_flash_getid()
1105 reg = asd_ha->hw_prof.flash.bar; in asd_verify_flash_seg()
1135 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/
DKconfig5 Memory Technology Devices are flash, RAM and similar chips, often
30 'images' in flash devices by putting a table one of the erase
33 flash.
63 bool "Include unallocated flash regions"
65 If you need to register each unallocated flash region as a MTD
81 command line. Multiple flash resources are supported for hardware where
82 different kinds of flash memory are available.
105 1 flash resource (mtd-id "sa1100"), with 1 single writable partition:
108 Same flash, but 2 named partitions, the first one being read-only:
117 The ARM Firmware Suite allows the user to divide flash devices into
[all …]
/drivers/mtd/lpddr/
DKconfig5 tristate "Support for LPDDR flash chips"
9 flash chips. Synonymous with Mobile-DDR. It is a new standard for
14 tristate "Detect flash chips by QINFO probe"
24 tristate "Support for LPDDR2-NVM flash chips"
/drivers/mtd/onenand/
DKconfig6 This enables support for accessing all type of OneNAND flash
15 This adds an extra check when data is written to the flash. The
16 OneNAND flash device internally checks only bits transitioning
24 Support for OneNAND flash via platform device driver.
30 Support for a OneNAND flash device connected to an OMAP2/OMAP3 CPU
37 Support for a OneNAND flash device connected to an Samsung SOC.
/drivers/mtd/nand/
DKconfig26 This enables support for accessing all type of NAND flash
63 Enable the driver for NAND flash on Intel Moorestown, using the
70 Enable the driver for NAND flash on platforms using a Denali NAND
88 This enables a GPIO based NAND flash driver.
95 Support for NAND flash on Amstrad E3 (Delta).
101 Support for NAND flash on Texas Instruments OMAP2, OMAP3 and OMAP4
135 This enables the driver for the NAND flash controller on the
142 This enables the Blackfin on-chip NAND flash controller
174 This enables the NAND flash controller on the S3C24xx and S3C64xx
288 Support for diskonchip G4 nand flash, found in various smartphones and
[all …]
/drivers/mtd/ubi/
DKconfig7 flash chips like wear and bad blocks and provides some other useful
37 flash does not admit of bad eraseblocks (e.g. NOR flash), this value
50 flash chip admits maximum 40 bad eraseblocks, and it is split on two
63 Important: this feature is experimental so far and the on-flash
69 The on-flash fastmap contains all information needed to attach
75 fastmap support. On typical flash devices the whole fastmap fits
/drivers/scsi/qla4xxx/
Dql4_bsg.c22 uint8_t *flash = NULL; in qla4xxx_read_flash() local
47 flash = dma_alloc_coherent(&ha->pdev->dev, length, &flash_dma, in qla4xxx_read_flash()
49 if (!flash) { in qla4xxx_read_flash()
65 flash, length); in qla4xxx_read_flash()
71 dma_free_coherent(&ha->pdev->dev, length, flash, flash_dma); in qla4xxx_read_flash()
88 uint8_t *flash = NULL; in qla4xxx_update_flash() local
114 flash = dma_alloc_coherent(&ha->pdev->dev, length, &flash_dma, in qla4xxx_update_flash()
116 if (!flash) { in qla4xxx_update_flash()
124 bsg_job->request_payload.sg_cnt, flash, length); in qla4xxx_update_flash()
136 dma_free_coherent(&ha->pdev->dev, length, flash, flash_dma); in qla4xxx_update_flash()
/drivers/isdn/hardware/mISDN/
Dhfcmulti.c1643 hc->flash[2] = 0; in hfcmulti_leds()
1644 hc->flash[3] = 0; in hfcmulti_leds()
1648 if (!hc->flash[2] && hc->activity_tx) in hfcmulti_leds()
1649 hc->flash[2] = poll; in hfcmulti_leds()
1650 if (!hc->flash[3] && hc->activity_rx) in hfcmulti_leds()
1651 hc->flash[3] = poll; in hfcmulti_leds()
1652 if (hc->flash[2] && hc->flash[2] < 1024) in hfcmulti_leds()
1654 if (hc->flash[3] && hc->flash[3] < 1024) in hfcmulti_leds()
1656 if (hc->flash[2] >= 2048) in hfcmulti_leds()
1657 hc->flash[2] = 0; in hfcmulti_leds()
[all …]

1234