Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/huawei/hinic3/
H A Dhinic3_nic_io.c403 struct hinic3_io_queue *sqs; in hinic3_alloc_qps() local
411 sqs = kzalloc_objs(*sqs, qp_params->num_qps); in hinic3_alloc_qps()
412 if (!sqs) { in hinic3_alloc_qps()
424 err = hinic3_create_qp(hwdev, &sqs[q_id], &rqs[q_id], q_id, in hinic3_alloc_qps()
434 qp_params->sqs = sqs; in hinic3_alloc_qps()
442 hinic3_destroy_qp(hwdev, &sqs[q_id], &rqs[q_id]); in hinic3_alloc_qps()
446 kfree(sqs); in hinic3_alloc_qps()
458 hinic3_destroy_qp(hwdev, &qp_params->sqs[q_id], in hinic3_free_qps()
461 kfree(qp_params->sqs); in hinic3_free_qps()
469 struct hinic3_io_queue *sqs = qp_params->sqs; in hinic3_init_qps() local
[all …]
/linux/drivers/net/ethernet/cavium/thunder/
H A 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 …]
H A 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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dqos.c277 struct mlx5e_txqsq **sqs; in mlx5e_qos_alloc_queues() local
279 sqs = kvzalloc_objs(struct mlx5e_txqsq *, qos_sqs_size); 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/drivers/net/ethernet/intel/idpf/
H A Dxdp.c156 u32 sqs; in idpf_xdpsqs_get() local
177 sqs = vport->dflt_qv_rsrc.xdp_txq_offset; in idpf_xdpsqs_get()
179 for (u32 i = sqs; i < vport->num_txq; i++) { in idpf_xdpsqs_get()
192 xdpsq->timer = timers[i - sqs]; in idpf_xdpsqs_get()
208 u32 sqs; in idpf_xdpsqs_put() local
214 sqs = vport->dflt_qv_rsrc.xdp_txq_offset; in idpf_xdpsqs_put()
216 for (u32 i = sqs; i < vport->num_txq; i++) { in idpf_xdpsqs_put()
/linux/drivers/nvme/target/
H A Dcore.c866 ctrl->sqs[qid] = sq; in nvmet_sq_setup()
926 if (!ctrl->sqs) in nvmet_check_sqid()
932 if ((create && ctrl->sqs[sqid]) || in nvmet_check_sqid()
933 (!create && !ctrl->sqs[sqid])) in nvmet_check_sqid()
977 if (ctrl && ctrl->sqs && ctrl->sqs[0] == sq) in nvmet_sq_destroy()
1003 sq->ctrl->sqs[sq->qid] = NULL; in nvmet_sq_destroy()
1676 ctrl->sqs = kzalloc_objs(struct nvmet_sq *, ctrl->max_qid + 1); in nvmet_alloc_ctrl()
1677 if (!ctrl->sqs) in nvmet_alloc_ctrl()
1736 kfree(ctrl->sqs); in nvmet_alloc_ctrl()
1772 kfree(ctrl->sqs); in nvmet_ctrl_free()
H A Dfabrics-cmd.c189 if (ctrl->sqs[qid] != NULL) { in nvmet_install_queue()
233 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.h257 struct nvmet_sq **sqs; member
H A Dtcp.c2236 struct nvmet_sq *sq = ctrl->sqs[0]; in nvmet_tcp_host_port_addr()
H A Dfc.c2963 struct nvmet_sq *sq = ctrl->sqs[0]; in nvmet_fc_host_traddr()