Lines Matching refs:fd

38 static inline u64 ldpaa_fd_get_addr(const struct dpaa_fd *fd)  in ldpaa_fd_get_addr()  argument
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()
44 static inline void ldpaa_fd_set_addr(struct dpaa_fd *fd, u64 addr) in ldpaa_fd_set_addr() argument
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()
50 static inline u32 ldpaa_fd_get_len(const struct dpaa_fd *fd) in ldpaa_fd_get_len() argument
52 return fd->simple.len; in ldpaa_fd_get_len()
55 static inline void ldpaa_fd_set_len(struct dpaa_fd *fd, u32 len) in ldpaa_fd_set_len() argument
57 fd->simple.len = len; in ldpaa_fd_set_len()
60 static inline uint16_t ldpaa_fd_get_offset(const struct dpaa_fd *fd) in ldpaa_fd_get_offset() argument
62 return (uint16_t)(fd->simple.bpid_offset >> 16) & 0x0FFF; in ldpaa_fd_get_offset()
65 static inline void ldpaa_fd_set_offset(struct dpaa_fd *fd, uint16_t offset) in ldpaa_fd_set_offset() argument
67 fd->simple.bpid_offset &= 0xF000FFFF; in ldpaa_fd_set_offset()
68 fd->simple.bpid_offset |= (u32)offset << 16; in ldpaa_fd_set_offset()
71 static inline uint16_t ldpaa_fd_get_bpid(const struct dpaa_fd *fd) in ldpaa_fd_get_bpid() argument
73 return (uint16_t)(fd->simple.bpid_offset & 0xFFFF); in ldpaa_fd_get_bpid()
76 static inline void ldpaa_fd_set_bpid(struct dpaa_fd *fd, uint16_t bpid) in ldpaa_fd_set_bpid() argument
78 fd->simple.bpid_offset &= 0xFFFF0000; in ldpaa_fd_set_bpid()
79 fd->simple.bpid_offset |= (u32)bpid; in ldpaa_fd_set_bpid()