Lines Matching refs:color
47 static inline void cq_color_enc(struct cq_desc *desc, const u8 color)
49 if (color)
56 const u8 type, const u8 color, const u16 q_number,
60 ((color & CQ_DESC_COLOR_MASK) << CQ_DESC_COLOR_SHIFT);
67 u8 *type, u8 *color, u16 *q_number, u16 *completed_index)
72 *color = (type_color >> CQ_DESC_COLOR_SHIFT) & CQ_DESC_COLOR_MASK;
75 * Make sure color bit is read from desc *before* other fields
76 * are read from desc. Hardware guarantees color bit is last
90 static inline void cq_color_dec(const struct cq_desc *desc_arg, u8 *color)
94 *color = (desc->type_color >> CQ_DESC_COLOR_SHIFT) & CQ_DESC_COLOR_MASK;