/drivers/media/pci/tw68/ |
H A D | tw68-risc.c | 195 } instr[8] = { 205 if (!(risc & 0x80000000) || !instr[p].name) { 210 risc, instr[p].name, (risc >> 27) & 1); 211 if (instr[p].has_data_type) 213 if (instr[p].has_byte_info) 216 if (instr[p].has_addr)
|
/drivers/mtd/ |
H A D | inftlmount.c | 209 struct erase_info *instr = &inftl->instr; local 211 instr->mtd = inftl->mbd.mtd; 220 instr->addr = ip->Reserved0 * inftl->EraseSize; 221 instr->len = inftl->EraseSize; 222 mtd_erase(mtd, instr); 376 struct erase_info *instr = &inftl->instr; local 382 memset(instr, 0, sizeof(struct erase_info)); 388 instr [all...] |
H A D | mtdconcat.c | 335 static void concat_erase_callback(struct erase_info *instr) argument 337 wake_up((wait_queue_head_t *) instr->priv); 374 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) argument 390 if (instr->addr & (concat->mtd.erasesize - 1)) 392 if (instr->len & (concat->mtd.erasesize - 1)) 403 instr->addr >= erase_regions[i].offset; i++) ; 411 if (i < 0 || instr->addr & (erase_regions[i].erasesize - 1)) 418 (instr->addr + instr->len) >= erase_regions[i].offset; 424 if (i < 0 || ((instr [all...] |
H A D | nftlmount.c | 308 struct erase_info *instr = &nftl->instr; local 324 memset(instr, 0, sizeof(struct erase_info)); 327 instr->mtd = nftl->mbd.mtd; 328 instr->addr = block * nftl->EraseSize; 329 instr->len = nftl->EraseSize; 330 mtd_erase(mtd, instr); 332 if (instr->state == MTD_ERASE_FAILED) { 348 if (check_free_sectors(nftl, instr->addr, nftl->EraseSize, 1) != 0) 359 mtd_block_markbad(nftl->mbd.mtd, instr [all...] |
H A D | mtdpart.c | 228 static int part_erase(struct mtd_info *mtd, struct erase_info *instr) argument 233 instr->addr += part->offset; 234 ret = part->master->_erase(part->master, instr); 236 if (instr->fail_addr != MTD_FAIL_ADDR_UNKNOWN) 237 instr->fail_addr -= part->offset; 238 instr->addr -= part->offset; 243 void mtd_erase_callback(struct erase_info *instr) argument 245 if (instr->mtd->_erase == part_erase) { 246 struct mtd_part *part = PART(instr->mtd); 248 if (instr [all...] |
H A D | mtdcore.c | 771 * to call instr->callback() whenever the operation completes, even 776 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) argument 778 if (instr->addr >= mtd->size || instr->len > mtd->size - instr->addr) 782 instr->fail_addr = MTD_FAIL_ADDR_UNKNOWN; 783 if (!instr->len) { 784 instr->state = MTD_ERASE_DONE; 785 mtd_erase_callback(instr); 788 return mtd->_erase(mtd, instr); [all...] |
/drivers/mtd/devices/ |
H A D | lart.c | 361 static int flash_erase (struct mtd_info *mtd,struct erase_info *instr) argument 367 printk (KERN_DEBUG "%s(addr = 0x%.8x, len = %d)\n", __func__, instr->addr, instr->len); 379 for (i = 0; i < mtd->numeraseregions && instr->addr >= mtd->eraseregions[i].offset; i++) ; 388 if (i < 0 || (instr->addr & (mtd->eraseregions[i].erasesize - 1))) 401 for (; i < mtd->numeraseregions && instr->addr + instr->len >= mtd->eraseregions[i].offset; i++) ; 405 if (i < 0 || ((instr->addr + instr->len) & (mtd->eraseregions[i].erasesize - 1))) 408 addr = instr [all...] |
H A D | mtdram.c | 35 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) argument 37 memset((char *)mtd->priv + instr->addr, 0xff, instr->len); 38 instr->state = MTD_ERASE_DONE; 39 mtd_erase_callback(instr);
|
H A D | mtd_dataflash.c | 148 static int dataflash_erase(struct mtd_info *mtd, struct erase_info *instr) argument 159 dev_name(&spi->dev), (long long)instr->addr, 160 (long long)instr->len); 162 div_u64_rem(instr->len, priv->page_size, &rem); 165 div_u64_rem(instr->addr, priv->page_size, &rem); 176 while (instr->len > 0) { 184 pageaddr = div_u64(instr->addr, priv->page_size); 185 do_block = (pageaddr & 0x7) == 0 && instr->len >= blocksize; 204 /* REVISIT: can retry instr->retries times; or 205 * giveup and instr [all...] |
H A D | phram.c | 36 static int phram_erase(struct mtd_info *mtd, struct erase_info *instr) argument 40 memset(start + instr->addr, 0xff, instr->len); 47 instr->state = MTD_ERASE_DONE; 48 mtd_erase_callback(instr);
|
H A D | pmc551.c | 139 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) argument 149 printk(KERN_DEBUG "pmc551_erase(pos:%ld, len:%ld)\n", (long)instr->addr, 150 (long)instr->len); 153 end = instr->addr + instr->len - 1; 155 soff_hi = instr->addr & ~(priv->asize - 1); 157 soff_lo = instr->addr & (priv->asize - 1); 159 pmc551_point(mtd, instr->addr, instr->len, &retlen, 165 memset(ptr, 0xff, instr [all...] |
H A D | sst25l.c | 170 static int sst25l_erase(struct mtd_info *mtd, struct erase_info *instr) argument 177 if ((uint32_t)instr->len % mtd->erasesize) 180 if ((uint32_t)instr->addr % mtd->erasesize) 183 addr = instr->addr; 184 end = addr + instr->len; 198 instr->state = MTD_ERASE_FAILED; 208 instr->state = MTD_ERASE_DONE; 209 mtd_erase_callback(instr);
|
H A D | block2mtd.c | 75 static int block2mtd_erase(struct mtd_info *mtd, struct erase_info *instr) argument 78 size_t from = instr->addr; 79 size_t len = instr->len; 82 instr->state = MTD_ERASING; 88 instr->state = MTD_ERASE_FAILED; 90 instr->state = MTD_ERASE_DONE; 92 mtd_erase_callback(instr);
|
H A D | slram.c | 82 static int slram_erase(struct mtd_info *mtd, struct erase_info *instr) argument 86 memset(priv->start + instr->addr, 0xff, instr->len); 91 instr->state = MTD_ERASE_DONE; 92 mtd_erase_callback(instr);
|
/drivers/mtd/chips/ |
H A D | map_ram.c | 116 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) argument 125 for (i=0; i<instr->len; i += map_bankwidth(map)) 126 map_write(map, allff, instr->addr + i); 127 instr->state = MTD_ERASE_DONE; 128 mtd_erase_callback(instr);
|
H A D | map_absent.c | 81 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) argument
|
H A D | cfi_cmdset_0020.c | 890 struct erase_info *instr) 910 while (i < mtd->numeraseregions && instr->addr >= regions[i].offset) 920 if (instr->addr & (regions[i].erasesize-1)) 930 while (i<mtd->numeraseregions && (instr->addr + instr->len) >= regions[i].offset) 938 if ((instr->addr + instr->len) & (regions[i].erasesize-1)) 941 chipnum = instr->addr >> cfi->chipshift; 942 adr = instr->addr - (chipnum << cfi->chipshift); 943 len = instr 889 cfi_staa_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) argument [all...] |
/drivers/mtd/ubi/ |
H A D | gluebi.c | 247 * @instr: the erase operation description 252 static int gluebi_erase(struct mtd_info *mtd, struct erase_info *instr) argument 257 if (mtd_mod_by_ws(instr->addr, mtd) || mtd_mod_by_ws(instr->len, mtd)) 260 lnum = mtd_div_by_eb(instr->addr, mtd); 261 count = mtd_div_by_eb(instr->len, mtd); 280 instr->state = MTD_ERASE_DONE; 281 mtd_erase_callback(instr); 285 instr->state = MTD_ERASE_FAILED; 286 instr [all...] |
/drivers/misc/eeprom/ |
H A D | at25.c | 52 #define AT25_INSTR_BIT3 0x08 /* Additional address bit in instr */ 78 u8 instr; local 89 instr = AT25_READ; 92 instr |= AT25_INSTR_BIT3; 93 *cp++ = instr; 183 u8 instr; local 193 instr = AT25_WRITE; 196 instr |= AT25_INSTR_BIT3; 197 *cp++ = instr;
|
/drivers/mtd/lpddr/ |
H A D | lpddr2_nvm.c | 381 static int lpddr2_nvm_erase(struct mtd_info *mtd, struct erase_info *instr) argument 383 int ret = lpddr2_nvm_do_block_op(mtd, instr->addr, instr->len, 386 instr->state = MTD_ERASE_DONE; 387 mtd_erase_callback(instr);
|
/drivers/pci/host/ |
H A D | pci-keystone.c | 242 unsigned long instr = *(unsigned long *) instruction_pointer(regs); local 244 if ((instr & 0x0e100090) == 0x00100090) { 245 int reg = (instr >> 12) & 15;
|
/drivers/mtd/onenand/ |
H A D | onenand_base.c | 2243 struct erase_info *instr) 2246 loff_t addr = instr->addr; 2247 int len = instr->len; 2257 instr->state = MTD_ERASE_FAILED; 2258 instr->fail_addr = addr; 2270 * @param instr erase instruction 2276 struct erase_info *instr, 2280 loff_t addr = instr->addr; 2281 int len = instr->len; 2286 instr 2242 onenand_multiblock_erase_verify(struct mtd_info *mtd, struct erase_info *instr) argument 2275 onenand_multiblock_erase(struct mtd_info *mtd, struct erase_info *instr, unsigned int block_size) argument 2392 onenand_block_by_block_erase(struct mtd_info *mtd, struct erase_info *instr, struct mtd_erase_region_info *region, unsigned int block_size) argument 2466 onenand_erase(struct mtd_info *mtd, struct erase_info *instr) argument [all...] |
/drivers/mtd/spi-nor/ |
H A D | spi-nor.c | 274 static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr) argument 281 dev_dbg(nor->dev, "at 0x%llx, len %lld\n", (long long)instr->addr, 282 (long long)instr->len); 284 div_u64_rem(instr->len, mtd->erasesize, &rem); 288 addr = instr->addr; 289 len = instr->len; 322 instr->state = MTD_ERASE_DONE; 323 mtd_erase_callback(instr); 329 instr->state = MTD_ERASE_FAILED;
|
/drivers/staging/goldfish/ |
H A D | goldfish_nand.c | 98 static int goldfish_nand_erase(struct mtd_info *mtd, struct erase_info *instr) argument 100 loff_t ofs = instr->addr; 101 u32 len = instr->len; 121 instr->state = MTD_ERASE_DONE; 122 mtd_erase_callback(instr);
|
/drivers/scsi/aic7xxx/aicasm/ |
H A D | aicasm_gram.y | 1653 struct instruction *instr; 1669 instr = seq_alloc(); 1670 f1_instr = &instr->format.format1; 1730 struct instruction *instr; 1742 instr = seq_alloc(); 1743 f2_instr = &instr->format.format2; 1791 struct instruction *instr; 1799 instr = seq_alloc(); 1800 f3_instr = &instr->format.format3; 1807 instr [all...] |