Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c238 int sqs; in nicvf_get_strings() local
255 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_strings()
256 if (!nic->snicvf[sqs]) in nicvf_get_strings()
258 nicvf_get_qset_strings(nic->snicvf[sqs], &data, sqs + 1); in nicvf_get_strings()
276 int sqs; in nicvf_get_sset_count() local
283 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_sset_count()
286 snic = nic->snicvf[sqs]; in nicvf_get_sset_count()
326 int sqs, cpu; in nicvf_get_ethtool_stats() local
346 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_get_ethtool_stats()
347 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.c404 int sqs; in nicvf_request_sqs() local
433 for (sqs = 0; sqs < nic->sqs_count; sqs++) { in nicvf_request_sqs()
436 mbx.nicvf.sqs_id = sqs; in nicvf_request_sqs()
439 nic->snicvf[sqs]->sqs_id = sqs; in nicvf_request_sqs()
441 nic->snicvf[sqs]->qs->rq_cnt = MAX_RCV_QUEUES_PER_QS; in nicvf_request_sqs()
444 nic->snicvf[sqs]->qs->rq_cnt = rx_queues; in nicvf_request_sqs()
449 nic->snicvf[sqs]->qs->sq_cnt = MAX_SND_QUEUES_PER_QS; in nicvf_request_sqs()
452 nic->snicvf[sqs]->qs->sq_cnt = tx_queues; in nicvf_request_sqs()
456 nic->snicvf[sqs]->qs->cq_cnt = in nicvf_request_sqs()
457 max(nic->snicvf[sqs]->qs->rq_cnt, nic->snicvf[sqs]->qs->sq_cnt); in nicvf_request_sqs()
[all …]
Dnicvf_queues.c713 int sqs; in nicvf_config_vlan_stripping() local
725 for (sqs = 0; sqs < nic->sqs_count; sqs++) in nicvf_config_vlan_stripping()
726 if (nic->snicvf[sqs]) in nicvf_config_vlan_stripping()
727 nicvf_queue_reg_write(nic->snicvf[sqs], in nicvf_config_vlan_stripping()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dqos.c268 struct mlx5e_txqsq **sqs; in mlx5e_qos_alloc_queues() local
270 sqs = kvcalloc(qos_sqs_size, sizeof(struct mlx5e_txqsq *), GFP_KERNEL); in mlx5e_qos_alloc_queues()
271 if (!sqs) in mlx5e_qos_alloc_queues()
276 rcu_assign_pointer(chs->c[i]->qos_sqs, sqs); in mlx5e_qos_alloc_queues()
283 struct mlx5e_txqsq **sqs; in mlx5e_qos_alloc_queues() local
285 sqs = rcu_replace_pointer(chs->c[i]->qos_sqs, NULL, in mlx5e_qos_alloc_queues()
289 kvfree(sqs); in mlx5e_qos_alloc_queues()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c413 u32 *sqs; in mlx5e_add_sqs_fwd_rules() local
424 sqs = kvcalloc(nch * sqs_per_channel, sizeof(*sqs), GFP_KERNEL); in mlx5e_add_sqs_fwd_rules()
425 if (!sqs) in mlx5e_add_sqs_fwd_rules()
431 sqs[num_sqs++] = c->sq[tc].sqn; in mlx5e_add_sqs_fwd_rules()
435 sqs[num_sqs++] = c->rq_xdpsq.sqn; in mlx5e_add_sqs_fwd_rules()
437 sqs[num_sqs++] = c->xdpsq.sqn; in mlx5e_add_sqs_fwd_rules()
444 sqs[num_sqs++] = ptp_ch->ptpsq[tc].txqsq.sqn; in mlx5e_add_sqs_fwd_rules()
447 err = mlx5e_sqs2vport_start(esw, rep, sqs, num_sqs); in mlx5e_add_sqs_fwd_rules()
448 kvfree(sqs); in mlx5e_add_sqs_fwd_rules()
/linux-6.1.9/drivers/nvme/target/
Dcore.c777 ctrl->sqs[qid] = sq; in nvmet_sq_setup()
795 if (ctrl && ctrl->sqs && ctrl->sqs[0] == sq) in nvmet_sq_destroy()
811 sq->ctrl->sqs[sq->qid] = NULL; in nvmet_sq_destroy()
1419 ctrl->sqs = kcalloc(subsys->max_qid + 1, in nvmet_alloc_ctrl()
1422 if (!ctrl->sqs) in nvmet_alloc_ctrl()
1461 kfree(ctrl->sqs); in nvmet_alloc_ctrl()
1492 kfree(ctrl->sqs); in nvmet_ctrl_free()
Dfabrics-cmd.c154 if (ctrl->sqs[qid] != NULL) { in nvmet_install_queue()
189 ctrl->sqs[qid] = NULL; in nvmet_install_queue()
Dnvmet.h182 struct nvmet_sq **sqs; member