Lines Matching refs:u16
261 ice_cfg_cq_regs(struct ice_hw *hw, struct ice_ctl_q_ring *ring, u16 num_entries)
825 static u16 ice_clean_sq(struct ice_hw *hw, struct ice_ctl_q_info *cq)
828 u16 ntc = sq->next_to_clean;
860 static void ice_debug_cq(struct ice_hw *hw, void *desc, void *buf, u16 buf_len)
863 u16 datalen, flags;
894 MIN_T(u16, buf_len, datalen));
928 struct ice_aq_desc *desc, void *buf, u16 buf_size,
937 u16 retval = 0;
1042 u16 copy_size = LE16_TO_CPU(desc->datalen);
1107 struct ice_aq_desc *desc, void *buf, u16 buf_size,
1130 void ice_fill_dflt_direct_cmd_desc(struct ice_aq_desc *desc, u16 opcode)
1151 struct ice_rq_event_info *e, u16 *pending)
1153 u16 ntc = cq->rq.next_to_clean;
1157 u16 desc_idx;
1158 u16 datalen;
1159 u16 flags;
1160 u16 ntu;
1175 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask);
1197 e->msg_len = MIN_T(u16, datalen, e->buf_len);
1232 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask);
1233 *pending = (u16)((ntc > ntu ? cq->rq.count : 0) + (ntu - ntc));