Searched refs:src_buffer (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/mtd/nand/gpmi-nand/
H A Dgpmi-lib.c1378 u32 src_buffer = 0; gpmi_copy_bits() local
1395 * Initialize the src_buffer value with bits available in the first gpmi_copy_bits()
1399 src_buffer = src[0] >> src_bit_off; gpmi_copy_bits()
1403 src_buffer &= GENMASK(nbits - 1, 0); gpmi_copy_bits()
1416 src_buffer |= src[0] << bits_in_src_buffer; gpmi_copy_bits()
1424 dst[0] |= src_buffer << dst_bit_off; gpmi_copy_bits()
1425 src_buffer >>= (8 - dst_bit_off); gpmi_copy_bits()
1431 dst[0] = src_buffer; gpmi_copy_bits()
1433 src_buffer >>= 8; gpmi_copy_bits()
1448 * src byte to the src_buffer variable before extracting a byte gpmi_copy_bits()
1452 src_buffer |= src[i] << bits_in_src_buffer; gpmi_copy_bits()
1453 dst[i] = src_buffer; gpmi_copy_bits()
1454 src_buffer >>= 8; gpmi_copy_bits()
1474 /* Copy the remaining bits to src_buffer */ gpmi_copy_bits()
1476 src_buffer |= (*src & GENMASK(nbits - 1, 0)) << gpmi_copy_bits()
1482 * prepare the src_buffer variable to match the dst organization (shift gpmi_copy_bits()
1483 * src_buffer by dst_bit_off and retrieve the least significant bits gpmi_copy_bits()
1487 src_buffer = (src_buffer << dst_bit_off) | gpmi_copy_bits()
1497 src_buffer |= (dst[nbytes] & gpmi_copy_bits()
1505 dst[i] = src_buffer; gpmi_copy_bits()
1506 src_buffer >>= 8; gpmi_copy_bits()

Completed in 49 milliseconds