Home
last modified time | relevance | path

Searched refs:sqs (Results 1 – 7 of 7) sorted by relevance

/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c203 int sqs; in nicvf_get_strings() local
220 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_strings()
221 if (!nic->snicvf[sqs]) in nicvf_get_strings()
223 nicvf_get_qset_strings(nic->snicvf[sqs], &data, sqs + 1); in nicvf_get_strings()
241 int sqs; in nicvf_get_sset_count() local
248 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_sset_count()
251 snic = nic->snicvf[sqs]; in nicvf_get_sset_count()
291 int sqs, cpu; in nicvf_get_ethtool_stats() local
311 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_ethtool_stats()
312 if (!nic->snicvf[sqs]) in nicvf_get_ethtool_stats()
[all …]
Dnic_main.c736 static void nic_send_pnicvf(struct nicpf *nic, int sqs) in nic_send_pnicvf() argument
741 mbx.nicvf.nicvf = nic->nicvf[nic->pqs_vf[sqs]]; in nic_send_pnicvf()
742 nic_send_msg_to_vf(nic, sqs, &mbx); in nic_send_pnicvf()
762 int sqs; in nic_nxt_avail_sqs() local
764 for (sqs = 0; sqs < nic->num_sqs_en; sqs++) { in nic_nxt_avail_sqs()
765 if (!nic->sqs_used[sqs]) in nic_nxt_avail_sqs()
766 nic->sqs_used[sqs] = true; in nic_nxt_avail_sqs()
769 return sqs + nic->num_vf_en; in nic_nxt_avail_sqs()
775 static void nic_alloc_sqs(struct nicpf *nic, struct sqs_alloc *sqs) in nic_alloc_sqs() argument
784 for (idx = 0; idx < sqs->qs_count; idx++) { in nic_alloc_sqs()
[all …]
Dnicvf_main.c369 int sqs; in nicvf_request_sqs() local
396 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_request_sqs()
399 mbx.nicvf.sqs_id = sqs; in nicvf_request_sqs()
402 nic->snicvf[sqs]->sqs_id = sqs; in nicvf_request_sqs()
404 nic->snicvf[sqs]->qs->rq_cnt = MAX_RCV_QUEUES_PER_QS; in nicvf_request_sqs()
407 nic->snicvf[sqs]->qs->rq_cnt = rx_queues; in nicvf_request_sqs()
412 nic->snicvf[sqs]->qs->sq_cnt = MAX_SND_QUEUES_PER_QS; in nicvf_request_sqs()
415 nic->snicvf[sqs]->qs->sq_cnt = tx_queues; in nicvf_request_sqs()
419 nic->snicvf[sqs]->qs->cq_cnt = in nicvf_request_sqs()
420 max(nic->snicvf[sqs]->qs->rq_cnt, nic->snicvf[sqs]->qs->sq_cnt); in nicvf_request_sqs()
[all …]
Dnicvf_queues.c477 int sqs; in nicvf_config_vlan_stripping() local
489 for (sqs = 0; sqs < nic->sqs_count; sqs++) in nicvf_config_vlan_stripping()
490 if (nic->snicvf[sqs]) in nicvf_config_vlan_stripping()
491 nicvf_queue_reg_write(nic->snicvf[sqs], in nicvf_config_vlan_stripping()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c163 u16 *sqs; in mlx5e_add_sqs_fwd_rules() local
165 sqs = kcalloc(priv->params.num_channels * priv->params.num_tc, sizeof(u16), GFP_KERNEL); in mlx5e_add_sqs_fwd_rules()
166 if (!sqs) in mlx5e_add_sqs_fwd_rules()
172 sqs[num_sqs++] = c->sq[tc].sqn; in mlx5e_add_sqs_fwd_rules()
175 err = mlx5_eswitch_sqs2vport_start(esw, rep, sqs, num_sqs); in mlx5e_add_sqs_fwd_rules()
177 kfree(sqs); in mlx5e_add_sqs_fwd_rules()
/drivers/nvme/target/
Dcore.c422 ctrl->sqs[qid] = sq; in nvmet_sq_setup()
438 if (sq->ctrl && sq->ctrl->sqs && sq->ctrl->sqs[0] == sq) in nvmet_sq_destroy()
755 ctrl->sqs = kcalloc(subsys->max_qid + 1, in nvmet_alloc_ctrl()
758 if (!ctrl->sqs) in nvmet_alloc_ctrl()
806 kfree(ctrl->sqs); in nvmet_alloc_ctrl()
834 kfree(ctrl->sqs); in nvmet_ctrl_free()
Dnvmet.h109 struct nvmet_sq **sqs; member