Searched defs:flash (Results 1 - 25 of 32) sorted by relevance

12

/drivers/mtd/maps/
H A Dpxa2xx-flash.c24 #include <asm/mach/flash.h>
51 struct flash_platform_data *flash = dev_get_platdata(&pdev->dev); local
63 info->map.name = flash->name;
64 info->map.bankwidth = flash->width;
88 info->mtd = do_map_probe(flash->map_name, &info->map);
98 mtd_device_parse_register(info->mtd, probes, NULL, flash->parts,
99 flash->nr_parts);
133 .name = "pxa2xx-flash",
/drivers/sbus/char/
H A Dflash.c0 /* flash.c: Allow mmap access to the OBP Flash, for OBP updates.
31 } flash; variable in typeref:struct:__anon5036
42 if (flash.read_base == flash.write_base) {
43 addr = flash.read_base;
44 size = flash.read_size;
52 addr = flash.read_base;
53 size = flash.read_size;
55 addr = flash.write_base;
56 size = flash
[all...]
/drivers/spi/
H A Dspi-butterfly.c30 #include <linux/spi/flash.h>
187 static struct flash_platform_data flash = { variable in typeref:struct:flash_platform_data
284 pp->info[0].platform_data = &flash;
/drivers/isdn/hardware/eicon/
H A Dos_pri.c770 volatile byte __iomem *flash; local
788 flash = DIVA_OS_MEM_ATTACH_PROM(&a->xdi_adapter);
790 data[i] = READ_BYTE(&flash[0x8000 - len + i]);
792 DIVA_OS_MEM_DETACH_PROM(&a->xdi_adapter, flash);
807 addr3 = a->resources.pci.bar[3]; /* flash */
848 flash = DIVA_OS_MEM_ATTACH_PROM(&a->xdi_adapter);
850 data[i] = flash[0x8000 - len + i];
852 DIVA_OS_MEM_ATTACH_PROM(&a->xdi_adapter, flash);
/drivers/media/i2c/
H A Dadp1653.c49 static int adp1653_update_hw(struct adp1653_flash *flash) argument
51 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev);
57 flash->indicator_intensity->val)
60 switch (flash->led_mode->val) {
66 config |= TIMEOUT_US_TO_CODE(flash->flash_timeout->val)
72 flash->torch_intensity->val)
88 static int adp1653_get_fault(struct adp1653_flash *flash) argument
90 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev);
98 flash->fault |= fault;
100 if (!flash
117 adp1653_strobe(struct adp1653_flash *flash, int enable) argument
153 struct adp1653_flash *flash = local
179 struct adp1653_flash *flash = local
209 adp1653_init_controls(struct adp1653_flash *flash) argument
272 adp1653_init_device(struct adp1653_flash *flash) argument
307 __adp1653_set_power(struct adp1653_flash *flash, int on) argument
328 struct adp1653_flash *flash = to_adp1653_flash(subdev); local
383 struct adp1653_flash *flash = to_adp1653_flash(subdev); local
395 struct adp1653_flash *flash = to_adp1653_flash(subdev); local
413 struct adp1653_flash *flash; local
452 struct adp1653_flash *flash = to_adp1653_flash(subdev); local
[all...]
H A Dlm3560.c75 static int lm3560_mode_ctrl(struct lm3560_flash *flash) argument
79 switch (flash->led_mode) {
81 rval = regmap_update_bits(flash->regmap,
85 rval = regmap_update_bits(flash->regmap,
89 rval = regmap_update_bits(flash->regmap,
97 static int lm3560_enable_ctrl(struct lm3560_flash *flash, argument
104 rval = regmap_update_bits(flash->regmap,
107 rval = regmap_update_bits(flash->regmap,
111 rval = regmap_update_bits(flash->regmap,
114 rval = regmap_update_bits(flash
121 lm3560_torch_brt_ctrl(struct lm3560_flash *flash, enum lm3560_led_id led_no, unsigned int brt) argument
144 lm3560_flash_brt_ctrl(struct lm3560_flash *flash, enum lm3560_led_id led_no, unsigned int brt) argument
169 struct lm3560_flash *flash = to_lm3560_flash(ctrl, led_no); local
196 struct lm3560_flash *flash = to_lm3560_flash(ctrl, led_no); local
285 lm3560_init_controls(struct lm3560_flash *flash, enum lm3560_led_id led_no) argument
356 lm3560_subdev_init(struct lm3560_flash *flash, enum lm3560_led_id led_no, char *led_name) argument
380 lm3560_init_device(struct lm3560_flash *flash) argument
403 struct lm3560_flash *flash; local
454 struct lm3560_flash *flash = i2c_get_clientdata(client); local
[all...]
H A Dlm3646.c84 static int lm3646_mode_ctrl(struct lm3646_flash *flash, argument
89 return regmap_write(flash->regmap,
90 REG_ENABLE, flash->mode_reg | MODE_SHDN);
92 return regmap_write(flash->regmap,
93 REG_ENABLE, flash->mode_reg | MODE_TORCH);
95 return regmap_write(flash->regmap,
96 REG_ENABLE, flash->mode_reg | MODE_FLASH);
104 struct lm3646_flash *flash = to_lm3646_flash(ctrl); local
111 rval = regmap_read(flash->regmap, REG_FLAG, &reg_val);
138 struct lm3646_flash *flash local
206 lm3646_init_controls(struct lm3646_flash *flash) argument
274 lm3646_subdev_init(struct lm3646_flash *flash) argument
296 lm3646_init_device(struct lm3646_flash *flash) argument
342 struct lm3646_flash *flash; local
384 struct lm3646_flash *flash = i2c_get_clientdata(client); local
[all...]
H A Das3645a.c2 * drivers/media/i2c/as3645a.c - AS3645A and LM3555 flash controllers driver
110 * @led_mode: V4L2 flash LED mode
139 static int as3645a_write(struct as3645a *flash, u8 addr, u8 val) argument
141 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev);
153 static int as3645a_read(struct as3645a *flash, u8 addr) argument
155 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev);
171 * as3645a_set_config - Set flash configuration registers
172 * @flash: The flash
174 * Configure the hardware with flash, assis
180 as3645a_set_config(struct as3645a *flash) argument
215 as3645a_set_control(struct as3645a *flash, enum as_mode mode, bool on) argument
250 as3645a_set_output(struct as3645a *flash, bool strobe) argument
280 as3645a_is_active(struct as3645a *flash) argument
288 as3645a_read_fault(struct as3645a *flash) argument
326 struct as3645a *flash = local
373 struct as3645a *flash = local
480 as3645a_setup(struct as3645a *flash) argument
515 __as3645a_set_power(struct as3645a *flash, int on) argument
542 struct as3645a *flash = to_as3645a(sd); local
563 struct as3645a *flash = to_as3645a(sd); local
672 struct as3645a *flash = to_as3645a(subdev); local
689 struct as3645a *flash = to_as3645a(subdev); local
716 as3645a_init_controls(struct as3645a *flash) argument
810 struct as3645a *flash; local
850 struct as3645a *flash = to_as3645a(subdev); local
[all...]
/drivers/mtd/devices/
H A Dm25p80.c2 * MTD SPI driver for ST M25Pxx (and similar) serial flash chips
27 #include <linux/spi/flash.h>
40 struct m25p *flash = nor->priv; local
41 struct spi_device *spi = flash->spi;
68 struct m25p *flash = nor->priv; local
69 struct spi_device *spi = flash->spi;
71 flash->command[0] = opcode;
73 memcpy(&flash->command[1], buf, len);
75 return spi_write(spi, flash->command, len + 1);
81 struct m25p *flash local
127 struct m25p *flash = nor->priv; local
162 struct m25p *flash = nor->priv; local
196 struct m25p *flash; local
257 struct m25p *flash = spi_get_drvdata(spi); local
[all...]
H A Dsst25l.c29 #include <linux/spi/flash.h>
71 static int sst25l_status(struct sst25l_flash *flash, int *status) argument
87 err = spi_sync(flash->spi, &m);
95 static int sst25l_write_enable(struct sst25l_flash *flash, int enable) argument
101 err = spi_write(flash->spi, command, 1);
106 err = spi_write(flash->spi, command, 1);
112 err = spi_write(flash->spi, command, 2);
117 err = sst25l_status(flash, &status);
127 static int sst25l_wait_till_ready(struct sst25l_flash *flash) argument
134 err = sst25l_status(flash,
146 sst25l_erase_sector(struct sst25l_flash *flash, uint32_t offset) argument
172 struct sst25l_flash *flash = to_sst25l_flash(mtd); local
216 struct sst25l_flash *flash = to_sst25l_flash(mtd); local
259 struct sst25l_flash *flash = to_sst25l_flash(mtd); local
358 struct sst25l_flash *flash; local
412 struct sst25l_flash *flash = spi_get_drvdata(spi); local
[all...]
H A Dmtd_dataflash.c23 #include <linux/spi/flash.h>
29 * DataFlash is a kind of SPI flash. Most AT45 chips have two buffers in
51 /* erasing flash */
55 /* move data between buffer and flash */
65 /* write to buffer, then write-erase to flash */
69 /* compare buffer to flash */
73 /* read flash to buffer, then write-erase to flash */
90 unsigned short page_offset; /* offset in flash address */
146 * Erase pages of flash
899 struct dataflash *flash = spi_get_drvdata(spi); local
[all...]
H A Dspear_smi.c90 /* flash opcodes */
95 /* data structure to maintain flash ids from different vendors */
165 * @cmd_complete: queue to wait for command completion of NOR-flash.
167 * @flash: separate structure for each Serial NOR-flash attached to SMI.
178 struct spear_snor_flash *flash[MAX_NUM_FLASH_CHIP]; member in struct:spear_smi
184 * @bank: Bank number(0, 1, 2, 3) for each NOR-flash.
185 * @dev_id: Device ID of NOR-flash.
186 * @lock: lock to manage flash read, write and erase operations
187 * @mtd: MTD info for each NOR-flash
420 get_sector_erase_cmd(struct spear_snor_flash *flash, u32 offset) argument
496 struct spear_snor_flash *flash = get_flash_data(mtd); local
551 struct spear_snor_flash *flash = get_flash_data(mtd); local
644 struct spear_snor_flash *flash = get_flash_data(mtd); local
816 struct spear_snor_flash *flash; local
1017 struct spear_snor_flash *flash; local
[all...]
/drivers/scsi/bfa/
H A Dbfa_modules.h44 struct bfa_flash_s flash; /* flash module */ member in struct:bfa_modules_s
H A Dbfa_core.c140 struct bfa_flash_s *flash = BFA_FLASH(bfa); local
143 bfa_flash_attach(flash, &bfa->ioc, bfa, bfa->trcmod, mincfg);
144 bfa_flash_memclaim(flash, flash_dma->kva_curp,
1688 * Return boot target port wwns -- read from boot information in flash.
/drivers/scsi/qla4xxx/
H A Dql4_bsg.c22 uint8_t *flash = NULL; local
37 ql4_printk(KERN_ERR, ha, "%s: another flash operation "
47 flash = dma_alloc_coherent(&ha->pdev->dev, length, &flash_dma,
49 if (!flash) {
50 ql4_printk(KERN_ERR, ha, "%s: dma alloc failed for flash "
58 ql4_printk(KERN_ERR, ha, "%s: get flash failed\n", __func__);
65 flash, length);
71 dma_free_coherent(&ha->pdev->dev, length, flash, flash_dma);
88 uint8_t *flash = NULL; local
103 ql4_printk(KERN_ERR, ha, "%s: another flash operatio
[all...]
/drivers/misc/genwqe/
H A Dcard_dev.c497 * do_flash_update() - Excute flash update (write image or CVPD)
512 u64 flash = 0; local
584 *(__be64 *)&req->__asiv[16] = cpu_to_be64(flash);
597 *(__be64 *)&req->asiv[16] = cpu_to_be64(flash);
632 flash += tocopy;
648 u64 flash = 0; local
710 *(__be64 *)&cmd->__asiv[16] = cpu_to_be64(flash);
719 *(__be64 *)&cmd->asiv[16] = cpu_to_be64(flash);
761 flash += tocopy;
/drivers/media/i2c/m5mols/
H A Dm5mols.h59 * @flash: status register value of the flash
70 u16 flash; member in struct:m5mols_exif
105 * @flash: status of the Flash
126 u8 flash; member in struct:m5mols_scenemode
/drivers/video/fbdev/
H A Dauo_k190x.c677 return sprintf(buf, "%d\n", par->flash);
685 int flash, ret; local
687 ret = kstrtoint(buf, 10, &flash);
691 if (flash > 0)
692 par->flash = 1;
694 par->flash = 0;
711 static DEVICE_ATTR(flash, 0644, flash_show, flash_store);
982 par->flash = 0;
/drivers/media/rc/
H A Dredrat3.c170 atomic_t flash; member in struct:redrat3_dev
823 if (brightness != LED_OFF && atomic_cmpxchg(&rr3->flash, 0, 1) == 0) {
828 atomic_set(&rr3->flash, 0);
852 atomic_dec(&rr3->flash);
1004 atomic_set(&rr3->flash, 0);
/drivers/scsi/aic94xx/
H A Daic94xx_hwi.h106 struct flash_struct flash; member in struct:hw_profile
/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_main.c703 __le16 *flash = (__le16 *)&qdev->flash; local
705 status = strncmp((char *)&qdev->flash, str, 4);
707 netif_err(qdev, ifup, qdev->ndev, "Invalid flash signature.\n");
712 csum += le16_to_cpu(*flash++);
716 "Invalid flash checksum, csum = 0x%.04x.\n", csum);
736 /* This data is stored on flash as an array of
749 __le32 *p = (__le32 *)&qdev->flash;
753 /* Get flash offset for function and adjust
769 "Error reading flash
[all...]
/drivers/net/ethernet/brocade/bna/
H A Dbfa_ioc.c1451 BFA_FLASH_NOT_PRESENT = -1, /*!< flash not present */
1452 BFA_FLASH_UNINIT = -2, /*!< flash not initialized */
1453 BFA_FLASH_BAD = -3, /*!< flash bad */
1454 BFA_FLASH_BUSY = -4, /*!< flash busy */
1462 /* flash command register data structure */
1484 /* flash device status register data structure */
1508 /* flash address register data structure */
1591 /* Read flash status. */
1629 /* Start flash read operation. */
1659 /* Check flash rea
3053 bfa_flash_cb(struct bfa_flash *flash) argument
3063 struct bfa_flash *flash = cbarg; local
3083 bfa_flash_write_send(struct bfa_flash *flash) argument
3117 struct bfa_flash *flash = cbarg; local
3143 struct bfa_flash *flash = flasharg; local
3239 bfa_nw_flash_attach(struct bfa_flash *flash, struct bfa_ioc *ioc, void *dev) argument
3260 bfa_nw_flash_memclaim(struct bfa_flash *flash, u8 *dm_kva, u64 dm_pa) argument
3280 bfa_nw_flash_get_attr(struct bfa_flash *flash, struct bfa_flash_attr *attr, bfa_cb_flash cbfn, void *cbarg) argument
3320 bfa_nw_flash_update_part(struct bfa_flash *flash, u32 type, u8 instance, void *buf, u32 len, u32 offset, bfa_cb_flash cbfn, void *cbarg) argument
3369 bfa_nw_flash_read_part(struct bfa_flash *flash, u32 type, u8 instance, void *buf, u32 len, u32 offset, bfa_cb_flash cbfn, void *cbarg) argument
[all...]
H A Dbna_types.h937 struct bfa_flash flash; member in struct:bna
/drivers/infiniband/hw/amso1100/
H A Dc2_wr.h236 * Image types of objects written to flash
1179 * For upgrading flash.
1466 union c2wr_flash flash; member in union:c2wr
/drivers/media/platform/exynos4-is/
H A Dfimc-is-param.h297 #define ISP_FLASH_COMMAND_MANUAL_ON 1 /* (forced flash) */
691 struct param_isp_flash flash; member in struct:isp_param
868 u32 flash; member in struct:exif_attribute

Completed in 2843 milliseconds

12