Searched defs:instr (Results 1 - 25 of 36) sorted by relevance

12

/drivers/mtd/chips/
H A Dmap_absent.c81 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) argument
H A Dmap_ram.c116 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 Dcfi_cmdset_0020.c890 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/devices/
H A Dmtdram.c35 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 Dblock2mtd.c75 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 Dphram.c36 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 Dslram.c82 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);
H A Dsst25l.c170 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 Dlart.c361 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 Dpmc551.c139 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 Dmtd_dataflash.c148 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...]
/drivers/misc/eeprom/
H A Dat25.c52 #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/
H A Dinftlmount.c209 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 Dnftlmount.c308 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 Dmtdconcat.c335 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 Dmtdchar.c357 static void mtdchar_erase_callback (struct erase_info *instr) argument
359 wake_up((wait_queue_head_t *)instr->priv);
H A Dmtdpart.c228 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...]
/drivers/mtd/lpddr/
H A Dlpddr_cmds.c38 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr);
678 static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) argument
686 ofs = instr->addr;
687 len = instr->len;
696 instr->state = MTD_ERASE_DONE;
697 mtd_erase_callback(instr);
H A Dlpddr2_nvm.c381 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/mtd/ubi/
H A Dgluebi.c247 * @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/pci/host/
H A Dpci-keystone.c242 unsigned long instr = *(unsigned long *) instruction_pointer(regs); local
244 if ((instr & 0x0e100090) == 0x00100090) {
245 int reg = (instr >> 12) & 15;
/drivers/staging/goldfish/
H A Dgoldfish_nand.c98 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/media/pci/cx25821/
H A Dcx25821-core.c315 static const char * const instr[16] = { local
345 risc, instr[risc >> 28] ? instr[risc >> 28] : "INVALID");
/drivers/media/pci/cx88/
H A Dcx88-core.c399 static const char * const instr[16] = { local
427 instr[risc >> 28] ? instr[risc >> 28] : "INVALID");
/drivers/mtd/spi-nor/
H A Dspi-nor.c274 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;

Completed in 146 milliseconds

12