/drivers/media/video/ |
H A D | adp1653.c | 50 static int adp1653_update_hw(struct adp1653_flash *flash) argument 52 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); 58 flash->indicator_intensity->val) 61 switch (flash->led_mode->val) { 67 config |= TIMEOUT_US_TO_CODE(flash->flash_timeout->val) 73 flash->torch_intensity->val) 89 static int adp1653_get_fault(struct adp1653_flash *flash) argument 91 struct i2c_client *client = v4l2_get_subdevdata(&flash->subdev); 99 flash->fault |= fault; 101 if (!flash 118 adp1653_strobe(struct adp1653_flash *flash, int enable) argument 154 struct adp1653_flash *flash = local 180 struct adp1653_flash *flash = local 210 adp1653_init_controls(struct adp1653_flash *flash) argument 273 adp1653_init_device(struct adp1653_flash *flash) argument 308 __adp1653_set_power(struct adp1653_flash *flash, int on) argument 329 struct adp1653_flash *flash = to_adp1653_flash(subdev); local 384 struct adp1653_flash *flash = to_adp1653_flash(subdev); local 396 struct adp1653_flash *flash = to_adp1653_flash(subdev); local 414 struct adp1653_flash *flash; local 454 struct adp1653_flash *flash = to_adp1653_flash(subdev); local [all...] |
H A D | as3645a.c | 2 * drivers/media/video/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 852 struct as3645a *flash = to_as3645a(subdev); local [all...] |
/drivers/mtd/devices/ |
H A D | m25p80.c | 2 * MTD SPI driver for ST M25Pxx (and similar) serial flash chips 36 #include <linux/spi/flash.h> 47 #define OPCODE_CHIP_ERASE 0xc7 /* Erase whole flash chip */ 114 static int read_sr(struct m25p *flash) argument 120 retval = spi_write_then_read(flash->spi, &code, 1, &val, 1); 123 dev_err(&flash->spi->dev, "error %d reading SR\n", 135 static int write_sr(struct m25p *flash, u8 val) argument 137 flash->command[0] = OPCODE_WRSR; 138 flash->command[1] = val; 140 return spi_write(flash 147 write_enable(struct m25p *flash) argument 157 write_disable(struct m25p *flash) argument 167 set_4byte(struct m25p *flash, u32 jedec_id, int enable) argument 185 wait_till_ready(struct m25p *flash) argument 210 erase_chip(struct m25p *flash) argument 230 m25p_addr2cmd(struct m25p *flash, unsigned int addr, u8 *cmd) argument 239 m25p_cmdsz(struct m25p *flash) argument 250 erase_sector(struct m25p *flash, u32 offset) argument 283 struct m25p *flash = mtd_to_m25p(mtd); local 342 struct m25p *flash = mtd_to_m25p(mtd); local 399 struct m25p *flash = mtd_to_m25p(mtd); local 481 struct m25p *flash = mtd_to_m25p(mtd); local 791 struct m25p *flash; local 949 struct m25p *flash = dev_get_drvdata(&spi->dev); local [all...] |
H A D | sst25l.c | 30 #include <linux/spi/flash.h> 72 static int sst25l_status(struct sst25l_flash *flash, int *status) argument 88 err = spi_sync(flash->spi, &m); 96 static int sst25l_write_enable(struct sst25l_flash *flash, int enable) argument 102 err = spi_write(flash->spi, command, 1); 107 err = spi_write(flash->spi, command, 1); 113 err = spi_write(flash->spi, command, 2); 118 err = sst25l_status(flash, &status); 128 static int sst25l_wait_till_ready(struct sst25l_flash *flash) argument 135 err = sst25l_status(flash, 147 sst25l_erase_sector(struct sst25l_flash *flash, uint32_t offset) argument 173 struct sst25l_flash *flash = to_sst25l_flash(mtd); local 217 struct sst25l_flash *flash = to_sst25l_flash(mtd); local 260 struct sst25l_flash *flash = to_sst25l_flash(mtd); local 359 struct sst25l_flash *flash; local 416 struct sst25l_flash *flash = dev_get_drvdata(&spi->dev); local [all...] |
H A D | spear_smi.c | 89 /* flash opcodes */ 94 /* data structure to maintain flash ids from different vendors */ 164 * @cmd_complete: queue to wait for command completion of NOR-flash. 166 * @flash: separate structure for each Serial NOR-flash attached to SMI. 177 struct spear_snor_flash *flash[MAX_NUM_FLASH_CHIP]; member in struct:spear_smi 183 * @bank: Bank number(0, 1, 2, 3) for each NOR-flash. 184 * @dev_id: Device ID of NOR-flash. 185 * @lock: lock to manage flash read, write and erase operations 186 * @mtd: MTD info for each NOR-flash 413 get_sector_erase_cmd(struct spear_snor_flash *flash, u32 offset) argument 489 struct spear_snor_flash *flash = get_flash_data(mtd); local 544 struct spear_snor_flash *flash = get_flash_data(mtd); local 637 struct spear_snor_flash *flash = get_flash_data(mtd); local 809 struct spear_snor_flash *flash; local 1046 struct spear_snor_flash *flash; local [all...] |
H A D | mtd_dataflash.c | 24 #include <linux/spi/flash.h> 30 * DataFlash is a kind of SPI flash. Most AT45 chips have two buffers in 52 /* erasing flash */ 56 /* move data between buffer and flash */ 66 /* write to buffer, then write-erase to flash */ 70 /* compare buffer to flash */ 74 /* read flash to buffer, then write-erase to flash */ 93 unsigned short page_offset; /* offset in flash address */ 151 * Erase pages of flash 902 struct dataflash *flash = dev_get_drvdata(&spi->dev); local [all...] |
/drivers/sbus/char/ |
H A D | flash.c | 0 /* flash.c: Allow mmap access to the OBP Flash, for OBP updates. 32 } flash; variable in typeref:struct:__anon3993 43 if (flash.read_base == flash.write_base) { 44 addr = flash.read_base; 45 size = flash.read_size; 53 addr = flash.read_base; 54 size = flash.read_size; 56 addr = flash.write_base; 57 size = flash [all...] |
H A D | Makefile | 14 obj-$(CONFIG_OBP_FLASH) += flash.o
|
/drivers/mtd/maps/ |
H A D | Makefile | 20 obj-$(CONFIG_MTD_PXA2XX) += pxa2xx-flash.o 26 obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcmsp-flash.o 30 obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o 38 obj-$(CONFIG_MTD_DBOX2) += dbox2-flash.o 47 obj-$(CONFIG_MTD_H720X) += h720x-flash.o 54 obj-$(CONFIG_MTD_BFIN_ASYNC) += bfin-async-flash.o 55 obj-$(CONFIG_MTD_RBTX4939) += rbtx4939-flash.o 56 obj-$(CONFIG_MTD_VMU) += vmu-flash.o 57 obj-$(CONFIG_MTD_GPIO_ADDR) += gpio-addr-flash.o 58 obj-$(CONFIG_MTD_LATCH_ADDR) += latch-addr-flash [all...] |
H A D | pxa2xx-flash.c | 25 #include <asm/mach/flash.h> 54 struct flash_platform_data *flash = pdev->dev.platform_data; local 66 info->map.name = (char *) flash->name; 67 info->map.bankwidth = flash->width; 91 info->mtd = do_map_probe(flash->map_name, &info->map); 101 mtd_device_parse_register(info->mtd, probes, NULL, flash->parts, 102 flash->nr_parts); 138 .name = "pxa2xx-flash",
|
H A D | ixp2000.c | 34 #include <asm/mach/flash.h> 83 * we have banked flash. 156 dev_info(&dev->dev, "Probe of IXP2000 flash(%d banks x %dMiB)\n", 206 dev_err(&dev->dev, "Failed to ioremap flash region\n");
|
H A D | ixp4xx.c | 31 #include <asm/mach/flash.h> 36 * Read/write a 16 bit word from flash address 'addr'. 40 * and the like end up on the correct flash address. 43 * handles 32 bit reads, the byte stream ABCD is stored on the flash as: 52 * data and other flash commands which are always in D7-D0.
|
H A D | latch-addr-flash.c | 2 * Interface for NOR flash driver whose high address lines are latched 20 #include <linux/mtd/latch-addr-flash.h> 23 #define DRIVER_NAME "latch-addr-flash" 142 pr_notice("latch-addr platform flash device: %#llx byte "
|
/drivers/mtd/onenand/ |
H A D | onenand_sim.c | 70 #define ONENAND_CORE(flash) (flash->data) 71 #define ONENAND_CORE_SPARE(flash, this, offset) \ 72 ((flash->data) + (this->chipsize) + (offset >> 5)) 111 struct onenand_flash flash; member in struct:onenand_info 264 struct onenand_flash *flash = this->priv; local 295 src = ONENAND_CORE(flash) + offset; 305 src = ONENAND_CORE_SPARE(flash, this, offset); 312 dest = ONENAND_CORE(flash) + offset; 335 dest = ONENAND_CORE_SPARE(flash, thi 447 flash_init(struct onenand_flash *flash) argument 492 flash_exit(struct onenand_flash *flash) argument 551 struct onenand_flash *flash = this->priv; local [all...] |
/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_ioc.c | 2619 bfa_flash_cb(struct bfa_flash *flash) argument 2621 flash->op_busy = 0; 2622 if (flash->cbfn) 2623 flash->cbfn(flash->cbarg, flash->status); 2629 struct bfa_flash *flash = cbarg; local 2634 if (flash->op_busy) { 2635 flash->status = BFA_STATUS_IOC_FAILURE; 2636 flash 2651 bfa_flash_write_send(struct bfa_flash *flash) argument 2685 struct bfa_flash *flash = cbarg; local 2711 struct bfa_flash *flash = flasharg; local 2807 bfa_nw_flash_attach(struct bfa_flash *flash, struct bfa_ioc *ioc, void *dev) argument 2828 bfa_nw_flash_memclaim(struct bfa_flash *flash, u8 *dm_kva, u64 dm_pa) argument 2848 bfa_nw_flash_get_attr(struct bfa_flash *flash, struct bfa_flash_attr *attr, bfa_cb_flash cbfn, void *cbarg) argument 2888 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 2937 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 D | bfa_ioc.h | 365 enum bfa_status bfa_nw_flash_get_attr(struct bfa_flash *flash, 368 enum bfa_status bfa_nw_flash_update_part(struct bfa_flash *flash, 371 enum bfa_status bfa_nw_flash_read_part(struct bfa_flash *flash, 375 void bfa_nw_flash_attach(struct bfa_flash *flash, 377 void bfa_nw_flash_memclaim(struct bfa_flash *flash, u8 *dm_kva, u64 dm_pa);
|
/drivers/scsi/bfa/ |
H A D | bfa_ioc.c | 3953 bfa_flash_cb(struct bfa_flash_s *flash) argument 3955 flash->op_busy = 0; 3956 if (flash->cbfn) 3957 flash->cbfn(flash->cbarg, flash->status); 3963 struct bfa_flash_s *flash = cbarg; local 3965 bfa_trc(flash, event); 3969 if (flash->op_busy) { 3970 flash 3989 struct bfa_flash_s *flash = cbarg; local 4006 bfa_flash_write_send(struct bfa_flash_s *flash) argument 4040 struct bfa_flash_s *flash = cbarg; local 4065 struct bfa_flash_s *flash = cbarg; local 4085 struct bfa_flash_s *flash = flasharg; local 4221 bfa_flash_attach(struct bfa_flash_s *flash, struct bfa_ioc_s *ioc, void *dev, struct bfa_trc_mod_s *trcmod, bfa_boolean_t mincfg) argument 4251 bfa_flash_memclaim(struct bfa_flash_s *flash, u8 *dm_kva, u64 dm_pa, bfa_boolean_t mincfg) argument 4275 bfa_flash_get_attr(struct bfa_flash_s *flash, struct bfa_flash_attr_s *attr, bfa_cb_flash_t cbfn, void *cbarg) argument 4309 bfa_flash_erase_part(struct bfa_flash_s *flash, enum bfa_flash_part_type type, u8 instance, bfa_cb_flash_t cbfn, void *cbarg) argument 4351 bfa_flash_update_part(struct bfa_flash_s *flash, enum bfa_flash_part_type type, u8 instance, void *buf, u32 len, u32 offset, bfa_cb_flash_t cbfn, void *cbarg) argument 4408 bfa_flash_read_part(struct bfa_flash_s *flash, enum bfa_flash_part_type type, u8 instance, void *buf, u32 len, u32 offset, bfa_cb_flash_t cbfn, void *cbarg) argument [all...] |
H A D | bfa_modules.h | 44 struct bfa_flash_s flash; /* flash module */ member in struct:bfa_modules_s
|
H A D | bfa_ioc.h | 491 #define BFA_FLASH(__bfa) (&(__bfa)->modules.flash) 494 bfa_status_t bfa_flash_get_attr(struct bfa_flash_s *flash, 497 bfa_status_t bfa_flash_erase_part(struct bfa_flash_s *flash, 500 bfa_status_t bfa_flash_update_part(struct bfa_flash_s *flash, 504 bfa_status_t bfa_flash_read_part(struct bfa_flash_s *flash, 508 void bfa_flash_attach(struct bfa_flash_s *flash, struct bfa_ioc_s *ioc, 510 void bfa_flash_memclaim(struct bfa_flash_s *flash,
|
/drivers/scsi/aic94xx/ |
H A D | aic94xx_sds.c | 572 d = asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); 573 d ^= asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); 588 asd_write_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar, FLASH_RESET); 597 asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs, 603 * asd_find_flash_dir - finds and reads the flash directory 605 * @flash_dir: pointer to flash directory structure 607 * If found, the flash directory segment will be copied to 619 asd_ha->hw_prof.flash.dir_offs = v; 636 &asd_ha->hw_prof.flash.bar)) { 641 asd_ha->hw_prof.flash [all...] |
/drivers/scsi/qla4xxx/ |
H A D | ql4_bsg.c | 22 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/media/video/m5mols/ |
H A D | m5mols.h | 56 * @flash: status register value of the flash 67 u16 flash; member in struct:m5mols_exif 100 * @flash: status of the Flash 121 u8 flash; member in struct:m5mols_scenemode
|
H A D | m5mols_capture.c | 88 ret = m5mols_read_u16(sd, EXIF_INFO_FLASH, &exif->flash);
|
/drivers/spi/ |
H A D | spi-butterfly.c | 30 #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 D | os_pri.c | 770 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);
|