Lines Matching refs:amount
425 uint16_t amount) in ed_hpp_readmem() argument
443 if (use_32bit_access && (amount > 3)) { in ed_hpp_readmem()
447 uint32_t *const fence = dl + (amount >> 2); in ed_hpp_readmem()
456 dst += (amount & ~3); in ed_hpp_readmem()
457 amount &= 3; in ed_hpp_readmem()
462 if (amount > 1) { in ed_hpp_readmem()
466 u_short *const fence = d + (amount >> 1); in ed_hpp_readmem()
472 dst += (amount & ~1); in ed_hpp_readmem()
473 amount &= 1; in ed_hpp_readmem()
481 if (amount == 1) { in ed_hpp_readmem()
492 if (use_32bit_access && (amount > 3)) { in ed_hpp_readmem()
493 ed_asic_insl(sc, ED_HPP_PAGE_4, dst, amount >> 2); in ed_hpp_readmem()
494 dst += (amount & ~3); in ed_hpp_readmem()
495 amount &= 3; in ed_hpp_readmem()
497 if (amount > 1) { in ed_hpp_readmem()
498 ed_asic_insw(sc, ED_HPP_PAGE_4, dst, amount >> 1); in ed_hpp_readmem()
499 dst += (amount & ~1); in ed_hpp_readmem()
500 amount &= 1; in ed_hpp_readmem()
502 if (amount == 1) { /* read in a short and keep the LSB */ in ed_hpp_readmem()