Lines Matching refs:fd
116 static inline dma_addr_t qm_fd_addr(const struct qm_fd *fd) in qm_fd_addr() argument
118 return be64_to_cpu(fd->data) & 0xffffffffffLLU; in qm_fd_addr()
121 static inline u64 qm_fd_addr_get64(const struct qm_fd *fd) in qm_fd_addr_get64() argument
123 return be64_to_cpu(fd->data) & 0xffffffffffLLU; in qm_fd_addr_get64()
126 static inline void qm_fd_addr_set64(struct qm_fd *fd, u64 addr) in qm_fd_addr_set64() argument
128 fd->addr_hi = upper_32_bits(addr); in qm_fd_addr_set64()
129 fd->addr_lo = cpu_to_be32(lower_32_bits(addr)); in qm_fd_addr_set64()
139 static inline enum qm_fd_format qm_fd_get_format(const struct qm_fd *fd) in qm_fd_get_format() argument
141 return be32_to_cpu(fd->cfg) & QM_FD_FORMAT_MASK; in qm_fd_get_format()
144 static inline int qm_fd_get_offset(const struct qm_fd *fd) in qm_fd_get_offset() argument
146 return (be32_to_cpu(fd->cfg) & QM_FD_OFF_MASK) >> QM_FD_OFF_SHIFT; in qm_fd_get_offset()
149 static inline int qm_fd_get_length(const struct qm_fd *fd) in qm_fd_get_length() argument
151 return be32_to_cpu(fd->cfg) & QM_FD_LEN_MASK; in qm_fd_get_length()
154 static inline int qm_fd_get_len_big(const struct qm_fd *fd) in qm_fd_get_len_big() argument
156 return be32_to_cpu(fd->cfg) & QM_FD_LEN_BIG_MASK; in qm_fd_get_len_big()
159 static inline void qm_fd_set_param(struct qm_fd *fd, enum qm_fd_format fmt, in qm_fd_set_param() argument
162 fd->cfg = cpu_to_be32(fmt | (len & QM_FD_LEN_BIG_MASK) | in qm_fd_set_param()
166 #define qm_fd_set_contig(fd, off, len) \ argument
167 qm_fd_set_param(fd, qm_fd_contig, off, len)
168 #define qm_fd_set_sg(fd, off, len) qm_fd_set_param(fd, qm_fd_sg, off, len) argument
169 #define qm_fd_set_contig_big(fd, len) \ argument
170 qm_fd_set_param(fd, qm_fd_contig_big, 0, len)
171 #define qm_fd_set_sg_big(fd, len) qm_fd_set_param(fd, qm_fd_sg_big, 0, len) argument
172 #define qm_fd_set_compound(fd, len) qm_fd_set_param(fd, qm_fd_compound, 0, len) argument
174 static inline void qm_fd_clear_fd(struct qm_fd *fd) in qm_fd_clear_fd() argument
176 fd->data = 0; in qm_fd_clear_fd()
177 fd->cfg = 0; in qm_fd_clear_fd()
178 fd->cmd = 0; in qm_fd_clear_fd()
257 struct qm_fd fd; member
290 struct qm_fd fd; member
1089 int qman_enqueue(struct qman_fq *fq, const struct qm_fd *fd);