Lines Matching defs:format_offset
33 * @simple.format_offset: format, offset, and short-length fields
47 __le16 format_offset;
185 return !!((le16_to_cpu(fd->simple.format_offset) >>
221 return le16_to_cpu(fd->simple.format_offset) & FD_OFFSET_MASK;
231 fd->simple.format_offset &= cpu_to_le16(~FD_OFFSET_MASK);
232 fd->simple.format_offset |= cpu_to_le16(offset);
244 return (enum dpaa2_fd_format)((le16_to_cpu(fd->simple.format_offset)
256 fd->simple.format_offset &=
258 fd->simple.format_offset |= cpu_to_le16(format << FD_FORMAT_SHIFT);
288 * @format_offset: format and offset fields
294 __le16 format_offset;
328 return !!((le16_to_cpu(sg->format_offset) >> SG_SHORT_LEN_FLAG_SHIFT)
364 return le16_to_cpu(sg->format_offset) & SG_OFFSET_MASK;
375 sg->format_offset &= cpu_to_le16(~SG_OFFSET_MASK);
376 sg->format_offset |= cpu_to_le16(offset);
388 return (enum dpaa2_sg_format)((le16_to_cpu(sg->format_offset)
400 sg->format_offset &= cpu_to_le16(~(SG_FORMAT_MASK << SG_FORMAT_SHIFT));
401 sg->format_offset |= cpu_to_le16(format << SG_FORMAT_SHIFT);
434 return !!(le16_to_cpu(sg->format_offset) >> SG_FINAL_FLAG_SHIFT);
444 sg->format_offset &= cpu_to_le16((~(SG_FINAL_FLAG_MASK
446 sg->format_offset |= cpu_to_le16(final << SG_FINAL_FLAG_SHIFT);
454 * @format_offset: format, offset, and short-length fields
463 __le16 format_offset;
563 return !!((le16_to_cpu(fle->format_offset) >>
599 return le16_to_cpu(fle->format_offset) & FL_OFFSET_MASK;
609 fle->format_offset &= cpu_to_le16(~FL_OFFSET_MASK);
610 fle->format_offset |= cpu_to_le16(offset);
621 return (enum dpaa2_fl_format)((le16_to_cpu(fle->format_offset) >>
633 fle->format_offset &= cpu_to_le16(~(FL_FORMAT_MASK << FL_FORMAT_SHIFT));
634 fle->format_offset |= cpu_to_le16(format << FL_FORMAT_SHIFT);
667 return !!(le16_to_cpu(fle->format_offset) >> FL_FINAL_FLAG_SHIFT);
677 fle->format_offset &= cpu_to_le16((~(FL_FINAL_FLAG_MASK <<
679 fle->format_offset |= cpu_to_le16(final << FL_FINAL_FLAG_SHIFT);