Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c237 int sqs; in nicvf_get_strings() local
254 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_strings()
255 if (!nic->snicvf[sqs]) in nicvf_get_strings()
257 nicvf_get_qset_strings(nic->snicvf[sqs], &data, sqs + 1); in nicvf_get_strings()
275 int sqs; in nicvf_get_sset_count() local
282 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_sset_count()
285 snic = nic->snicvf[sqs]; in nicvf_get_sset_count()
325 int sqs, cpu; in nicvf_get_ethtool_stats() local
345 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_ethtool_stats()
346 if (!nic->snicvf[sqs]) in nicvf_get_ethtool_stats()
[all …]
Dnic_main.c696 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()
[all …]
Dnicvf_main.c405 int sqs; in nicvf_request_sqs() local
434 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_request_sqs()
437 mbx.nicvf.sqs_id = sqs; in nicvf_request_sqs()
440 nic->snicvf[sqs]->sqs_id = sqs; in nicvf_request_sqs()
442 nic->snicvf[sqs]->qs->rq_cnt = MAX_RCV_QUEUES_PER_QS; in nicvf_request_sqs()
445 nic->snicvf[sqs]->qs->rq_cnt = rx_queues; in nicvf_request_sqs()
450 nic->snicvf[sqs]->qs->sq_cnt = MAX_SND_QUEUES_PER_QS; in nicvf_request_sqs()
453 nic->snicvf[sqs]->qs->sq_cnt = tx_queues; in nicvf_request_sqs()
457 nic->snicvf[sqs]->qs->cq_cnt = in nicvf_request_sqs()
458 max(nic->snicvf[sqs]->qs->rq_cnt, nic->snicvf[sqs]->qs->sq_cnt); in nicvf_request_sqs()
[all …]
Dnicvf_queues.c712 int sqs; in nicvf_config_vlan_stripping() local
724 for (sqs = 0; sqs < nic->sqs_count; sqs++) in nicvf_config_vlan_stripping()
725 if (nic->snicvf[sqs]) in nicvf_config_vlan_stripping()
726 nicvf_queue_reg_write(nic->snicvf[sqs], in nicvf_config_vlan_stripping()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c442 u32 *sqs; in mlx5e_add_sqs_fwd_rules() local
444 sqs = kcalloc(priv->channels.num * priv->channels.params.num_tc, sizeof(*sqs), GFP_KERNEL); in mlx5e_add_sqs_fwd_rules()
445 if (!sqs) in mlx5e_add_sqs_fwd_rules()
451 sqs[num_sqs++] = c->sq[tc].sqn; in mlx5e_add_sqs_fwd_rules()
454 err = mlx5e_sqs2vport_start(esw, rep, sqs, num_sqs); in mlx5e_add_sqs_fwd_rules()
455 kfree(sqs); in mlx5e_add_sqs_fwd_rules()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dcore.c773 ctrl->sqs[qid] = sq; in nvmet_sq_setup()
791 if (ctrl && ctrl->sqs && ctrl->sqs[0] == sq) in nvmet_sq_destroy()
1367 ctrl->sqs = kcalloc(subsys->max_qid + 1, in nvmet_alloc_ctrl()
1370 if (!ctrl->sqs) in nvmet_alloc_ctrl()
1411 kfree(ctrl->sqs); in nvmet_alloc_ctrl()
1440 kfree(ctrl->sqs); in nvmet_ctrl_free()
Dnvmet.h167 struct nvmet_sq **sqs; member