Lines Matching refs:simple
50 } simple; member
106 return (dma_addr_t)le64_to_cpu(fd->simple.addr); in dpaa2_fd_get_addr()
116 fd->simple.addr = cpu_to_le64(addr); in dpaa2_fd_set_addr()
127 return le32_to_cpu(fd->simple.frc); in dpaa2_fd_get_frc()
137 fd->simple.frc = cpu_to_le32(frc); in dpaa2_fd_set_frc()
148 return le32_to_cpu(fd->simple.ctrl); in dpaa2_fd_get_ctrl()
158 fd->simple.ctrl = cpu_to_le32(ctrl); in dpaa2_fd_set_ctrl()
169 return (dma_addr_t)le64_to_cpu(fd->simple.flc); in dpaa2_fd_get_flc()
179 fd->simple.flc = cpu_to_le64(flc_addr); in dpaa2_fd_set_flc()
184 return !!((le16_to_cpu(fd->simple.format_offset) >> in dpaa2_fd_short_len()
197 return le32_to_cpu(fd->simple.len) & FD_SHORT_LEN_MASK; in dpaa2_fd_get_len()
199 return le32_to_cpu(fd->simple.len); in dpaa2_fd_get_len()
209 fd->simple.len = cpu_to_le32(len); in dpaa2_fd_set_len()
220 return le16_to_cpu(fd->simple.format_offset) & FD_OFFSET_MASK; in dpaa2_fd_get_offset()
230 fd->simple.format_offset &= cpu_to_le16(~FD_OFFSET_MASK); in dpaa2_fd_set_offset()
231 fd->simple.format_offset |= cpu_to_le16(offset); in dpaa2_fd_set_offset()
243 return (enum dpaa2_fd_format)((le16_to_cpu(fd->simple.format_offset) in dpaa2_fd_get_format()
255 fd->simple.format_offset &= in dpaa2_fd_set_format()
257 fd->simple.format_offset |= cpu_to_le16(format << FD_FORMAT_SHIFT); in dpaa2_fd_set_format()
268 return le16_to_cpu(fd->simple.bpid) & FD_BPID_MASK; in dpaa2_fd_get_bpid()
278 fd->simple.bpid &= cpu_to_le16(~(FD_BPID_MASK)); in dpaa2_fd_set_bpid()
279 fd->simple.bpid |= cpu_to_le16(bpid); in dpaa2_fd_set_bpid()