Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/cavium/thunder/
H A 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 …]
H A Dnic_main.c702 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()
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()
[all …]
H A 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 …]
H A 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.15/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dqos.c277 struct mlx5e_txqsq **sqs; in mlx5e_qos_alloc_queues() local
279 sqs = kvcalloc(qos_sqs_size, sizeof(struct mlx5e_txqsq *), GFP_KERNEL); in mlx5e_qos_alloc_queues()
280 if (!sqs) in mlx5e_qos_alloc_queues()
285 rcu_assign_pointer(chs->c[i]->qos_sqs, sqs); in mlx5e_qos_alloc_queues()
292 struct mlx5e_txqsq **sqs; in mlx5e_qos_alloc_queues() local
294 sqs = rcu_replace_pointer(chs->c[i]->qos_sqs, NULL, in mlx5e_qos_alloc_queues()
298 kvfree(sqs); in mlx5e_qos_alloc_queues()
/linux-6.15/drivers/nvme/target/
H A Dcore.c830 ctrl->sqs[qid] = sq; in nvmet_sq_setup()
842 if (!ctrl->sqs) in nvmet_check_cqid()
856 if (ctrl->sqs[cqid]) in nvmet_check_cqid()
880 if (!ctrl->sqs) in nvmet_check_sqid()
886 if ((create && ctrl->sqs[sqid]) || in nvmet_check_sqid()
887 (!create && !ctrl->sqs[sqid])) in nvmet_check_sqid()
931 if (ctrl && ctrl->sqs && ctrl->sqs[0] == sq) in nvmet_sq_destroy()
956 sq->ctrl->sqs[sq->qid] = NULL; in nvmet_sq_destroy()
1612 if (!ctrl->sqs) in nvmet_alloc_ctrl()
1680 kfree(ctrl->sqs); in nvmet_alloc_ctrl()
[all …]
H A Dfabrics-cmd.c189 if (ctrl->sqs[qid] != NULL) { in nvmet_install_queue()
225 ctrl->sqs[qid] = NULL; in nvmet_install_queue()
H A Ddebugfs.c139 key_serial_t keyid = nvmet_queue_tls_keyid(ctrl->sqs[0]); in nvmet_ctrl_tls_key_show()
H A Dnvmet.h249 struct nvmet_sq **sqs; member
H A Drdma.c2017 struct nvmet_sq *nvme_sq = ctrl->sqs[0]; in nvmet_rdma_host_port_addr()
H A Dtcp.c2211 struct nvmet_sq *sq = ctrl->sqs[0]; in nvmet_tcp_host_port_addr()
H A Dfc.c2907 struct nvmet_sq *sq = ctrl->sqs[0]; in nvmet_fc_host_traddr()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rep.c580 u32 *sqs; in mlx5e_add_sqs_fwd_rules() local
591 sqs = kvcalloc(nch * sqs_per_channel, sizeof(*sqs), GFP_KERNEL); in mlx5e_add_sqs_fwd_rules()
592 if (!sqs) in mlx5e_add_sqs_fwd_rules()
598 sqs[num_sqs++] = c->sq[tc].sqn; in mlx5e_add_sqs_fwd_rules()
602 sqs[num_sqs++] = c->rq_xdpsq.sqn; in mlx5e_add_sqs_fwd_rules()
605 sqs[num_sqs++] = c->xdpsq->sqn; in mlx5e_add_sqs_fwd_rules()
612 sqs[num_sqs++] = ptp_ch->ptpsq[tc].txqsq.sqn; in mlx5e_add_sqs_fwd_rules()
615 err = mlx5e_sqs2vport_start(esw, rep, sqs, num_sqs); in mlx5e_add_sqs_fwd_rules()
616 kvfree(sqs); in mlx5e_add_sqs_fwd_rules()