Lines Matching +full:ls +full:- +full:bits
1 /* SPDX-License-Identifier: GPL-2.0+ */
8 /* Place-holder for FDs, we represent it via the simplest form that we need for
11 * routines (lots of read-modify-writes) would be worst-case performance whether
20 /* offset in the MS 16 bits, BPID in the LS 16 bits */
40 return (u64)((((uint64_t)fd->simple.addr_hi) << 32) in ldpaa_fd_get_addr()
41 + fd->simple.addr_lo); in ldpaa_fd_get_addr()
46 fd->simple.addr_hi = upper_32_bits(addr); in ldpaa_fd_set_addr()
47 fd->simple.addr_lo = lower_32_bits(addr); in ldpaa_fd_set_addr()
52 return fd->simple.len; in ldpaa_fd_get_len()
57 fd->simple.len = len; in ldpaa_fd_set_len()
62 return (uint16_t)(fd->simple.bpid_offset >> 16) & 0x0FFF; in ldpaa_fd_get_offset()
67 fd->simple.bpid_offset &= 0xF000FFFF; in ldpaa_fd_set_offset()
68 fd->simple.bpid_offset |= (u32)offset << 16; in ldpaa_fd_set_offset()
73 return (uint16_t)(fd->simple.bpid_offset & 0xFFFF); in ldpaa_fd_get_bpid()
78 fd->simple.bpid_offset &= 0xFFFF0000; in ldpaa_fd_set_bpid()
79 fd->simple.bpid_offset |= (u32)bpid; in ldpaa_fd_set_bpid()
86 * suitably-sized (and aligned) memory for these entries. */