Home
last modified time | relevance | path

Searched refs:CFIDEV_BUSWIDTH (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/include/linux/mtd/
Dcfi.h159 # ifdef CFIDEV_BUSWIDTH
160 # undef CFIDEV_BUSWIDTH
161 # define CFIDEV_BUSWIDTH (map->buswidth) macro
163 # define CFIDEV_BUSWIDTH CFIDEV_BUSWIDTH_1 macro
165 # define cfi_buswidth_is_1() (CFIDEV_BUSWIDTH == CFIDEV_BUSWIDTH_1)
171 # ifdef CFIDEV_BUSWIDTH
172 # undef CFIDEV_BUSWIDTH
173 # define CFIDEV_BUSWIDTH (map->buswidth) macro
175 # define CFIDEV_BUSWIDTH CFIDEV_BUSWIDTH_2 macro
177 # define cfi_buswidth_is_2() (CFIDEV_BUSWIDTH == CFIDEV_BUSWIDTH_2)
[all …]
/linux-2.4.37.9/drivers/mtd/chips/
Dcfi_cmdset_0001.c315 cmd_addr = adr & ~(CFIDEV_BUSWIDTH-1);
476 cmd_addr = adr & ~(CFIDEV_BUSWIDTH-1);
952 if (ofs & (CFIDEV_BUSWIDTH-1)) {
953 unsigned long bus_ofs = ofs & ~(CFIDEV_BUSWIDTH-1);
961 while (len && i < CFIDEV_BUSWIDTH)
963 while (i < CFIDEV_BUSWIDTH)
993 while(len >= CFIDEV_BUSWIDTH) {
1013 ofs += CFIDEV_BUSWIDTH;
1014 buf += CFIDEV_BUSWIDTH;
1015 (*retlen) += CFIDEV_BUSWIDTH;
[all …]
Dcfi_cmdset_0002.c211 switch (CFIDEV_BUSWIDTH) in cfi_amdstd_setup()
585 if (ofs & (CFIDEV_BUSWIDTH-1)) { in cfi_amdstd_write()
586 unsigned long bus_ofs = ofs & ~(CFIDEV_BUSWIDTH-1); in cfi_amdstd_write()
592 map->copy_from(map, tmp_buf, bus_ofs + cfi->chips[chipnum].start, CFIDEV_BUSWIDTH); in cfi_amdstd_write()
593 while (len && i < CFIDEV_BUSWIDTH) in cfi_amdstd_write()
629 while(len >= CFIDEV_BUSWIDTH) { in cfi_amdstd_write()
652 ofs += CFIDEV_BUSWIDTH; in cfi_amdstd_write()
653 buf += CFIDEV_BUSWIDTH; in cfi_amdstd_write()
654 (*retlen) += CFIDEV_BUSWIDTH; in cfi_amdstd_write()
655 len -= CFIDEV_BUSWIDTH; in cfi_amdstd_write()
[all …]
Dcfi_cmdset_0020.c277 cmd_addr = adr & ~(CFIDEV_BUSWIDTH-1); in do_read_onechip()
448 if (adr & (CFIDEV_BUSWIDTH-1)) in do_write_buffer()
538 cfi_write(map, CMD(len/CFIDEV_BUSWIDTH-1), cmd_adr ); in do_write_buffer()
541 for (z = 0; z < len; z += CFIDEV_BUSWIDTH) { in do_write_buffer()
652 printk("%s: CFIDEV_BUSWIDTH[%x]\n", __FUNCTION__, CFIDEV_BUSWIDTH); in cfi_staa_write_buffers()