Lines Matching refs:sqs
696 static void nic_send_pnicvf(struct nicpf *nic, int sqs) in nic_send_pnicvf() argument
701 mbx.nicvf.nicvf = nic->nicvf[nic->pqs_vf[sqs]]; in nic_send_pnicvf()
702 nic_send_msg_to_vf(nic, sqs, &mbx); in nic_send_pnicvf()
722 int sqs; in nic_nxt_avail_sqs() local
724 for (sqs = 0; sqs < nic->num_sqs_en; sqs++) { in nic_nxt_avail_sqs()
725 if (!nic->sqs_used[sqs]) in nic_nxt_avail_sqs()
726 nic->sqs_used[sqs] = true; in nic_nxt_avail_sqs()
729 return sqs + nic->num_vf_en; in nic_nxt_avail_sqs()
735 static void nic_alloc_sqs(struct nicpf *nic, struct sqs_alloc *sqs) in nic_alloc_sqs() argument
744 for (idx = 0; idx < sqs->qs_count; idx++) { in nic_alloc_sqs()
748 nic->vf_sqs[sqs->vf_id][idx] = sqs_id; in nic_alloc_sqs()
749 nic->pqs_vf[sqs_id] = sqs->vf_id; in nic_alloc_sqs()
755 mbx.sqs_alloc.vf_id = sqs->vf_id; in nic_alloc_sqs()
757 nic_send_msg_to_vf(nic, sqs->vf_id, &mbx); in nic_alloc_sqs()