Home | History | Annotate | Download | only in nor

Lines Matching defs:cfi_unpack_1

165 #define cfi_unpack_1(n)			((n) & 0xff)
169 ((cfi_unpack_1(b1) << 8) | cfi_unpack_1(b0))
173 ((cfi_unpack_1(b3) << 24) | \
174 (cfi_unpack_1(b2) << 16) | \
175 (cfi_unpack_1(b1) << 8) | \
176 (cfi_unpack_1(b0)))
180 (qryp)->qry[0] = cfi_unpack_1(data[0x10]); \
181 (qryp)->qry[1] = cfi_unpack_1(data[0x11]); \
182 (qryp)->qry[2] = cfi_unpack_1(data[0x12]); \
187 (qryp)->vcc_min = cfi_unpack_1(data[0x1b]); \
188 (qryp)->vcc_max = cfi_unpack_1(data[0x1c]); \
189 (qryp)->vpp_min = cfi_unpack_1(data[0x1d]); \
190 (qryp)->vpp_max = cfi_unpack_1(data[0x1e]); \
191 (qryp)->write_word_time_typ = cfi_unpack_1(data[0x1f]); \
192 (qryp)->write_nbyte_time_typ = cfi_unpack_1(data[0x20]); \
193 (qryp)->erase_blk_time_typ = cfi_unpack_1(data[0x21]); \
194 (qryp)->erase_chip_time_typ = cfi_unpack_1(data[0x22]); \
195 (qryp)->write_word_time_max = cfi_unpack_1(data[0x23]); \
196 (qryp)->write_nbyte_time_max = cfi_unpack_1(data[0x24]); \
197 (qryp)->erase_blk_time_max = cfi_unpack_1(data[0x25]); \
198 (qryp)->erase_chip_time_max = cfi_unpack_1(data[0x26]); \
199 (qryp)->device_size = cfi_unpack_1(data[0x27]); \
204 (qryp)->erase_blk_regions = cfi_unpack_1(data[0x2c]); \
218 (qryp)->pri.cmd_0002.pri[0] = cfi_unpack_1(data[0x00]); \
219 (qryp)->pri.cmd_0002.pri[1] = cfi_unpack_1(data[0x01]); \
220 (qryp)->pri.cmd_0002.pri[2] = cfi_unpack_1(data[0x02]); \
221 (qryp)->pri.cmd_0002.version_maj = cfi_unpack_1(data[0x03]); \
222 (qryp)->pri.cmd_0002.version_min = cfi_unpack_1(data[0x04]); \
223 (qryp)->pri.cmd_0002.asupt = cfi_unpack_1(data[0x05]); \
224 (qryp)->pri.cmd_0002.erase_susp = cfi_unpack_1(data[0x06]); \
225 (qryp)->pri.cmd_0002.sector_prot = cfi_unpack_1(data[0x07]); \
227 cfi_unpack_1(data[0x08]); \
229 cfi_unpack_1(data[0x09]); \
230 (qryp)->pri.cmd_0002.simul_op = cfi_unpack_1(data[0x0a]); \
231 (qryp)->pri.cmd_0002.burst_mode_type = cfi_unpack_1(data[0x0b]);\
232 (qryp)->pri.cmd_0002.page_mode_type = cfi_unpack_1(data[0x0c]); \
233 (qryp)->pri.cmd_0002.acc_min = cfi_unpack_1(data[0x0d]); \
234 (qryp)->pri.cmd_0002.acc_max = cfi_unpack_1(data[0x0e]); \
235 (qryp)->pri.cmd_0002.wp_prot = cfi_unpack_1(data[0x0f]); \
237 (qryp)->pri.cmd_0002.prog_susp = cfi_unpack_1(data[0x10]); \
238 (qryp)->pri.cmd_0002.unlock_bypass = cfi_unpack_1(data[0x11]); \
239 (qryp)->pri.cmd_0002.sss_size = cfi_unpack_1(data[0x12]); \
240 (qryp)->pri.cmd_0002.soft_feat = cfi_unpack_1(data[0x13]); \
241 (qryp)->pri.cmd_0002.page_size = cfi_unpack_1(data[0x14]); \
243 cfi_unpack_1(data[0x15]); \
245 cfi_unpack_1(data[0x16]); \
247 cfi_unpack_1(data[0x38]); \
249 cfi_unpack_1(data[0x39]); \
261 if ((cfi_unpack_1(data[qryp->addr_pri + 0]) == 'P') && \
262 (cfi_unpack_1(data[qryp->addr_pri + 1]) == 'R') && \
263 (cfi_unpack_1(data[qryp->addr_pri + 2]) == 'I')) { \