Home
last modified time | relevance | path

Searched refs:kinfo (Results 1 – 24 of 24) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_tqp_stats.c12 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclge_comm_tqps_get_stats() local
17 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_get_stats()
18 tqp = container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_stats()
22 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_get_stats()
23 tqp = container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_stats()
32 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclge_comm_tqps_get_sset_count() local
34 return kinfo->num_tqps * HCLGE_COMM_QUEUE_PAIR_SIZE; in hclge_comm_tqps_get_sset_count()
39 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclge_comm_tqps_get_strings() local
43 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_get_strings()
45 container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_strings()
[all …]
Dhclge_comm_rss.c43 rss_cfg->rss_size = nic->kinfo.rss_size; in hclge_comm_rss_init_cfg()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/
Dhns3_dcbnl.c14 if (h->kinfo.dcb_ops->ieee_getets) in hns3_dcbnl_ieee_getets()
15 return h->kinfo.dcb_ops->ieee_getets(h, ets); in hns3_dcbnl_ieee_getets()
27 if (h->kinfo.dcb_ops->ieee_setets) in hns3_dcbnl_ieee_setets()
28 return h->kinfo.dcb_ops->ieee_setets(h, ets); in hns3_dcbnl_ieee_setets()
40 if (h->kinfo.dcb_ops->ieee_getpfc) in hns3_dcbnl_ieee_getpfc()
41 return h->kinfo.dcb_ops->ieee_getpfc(h, pfc); in hns3_dcbnl_ieee_getpfc()
53 if (h->kinfo.dcb_ops->ieee_setpfc) in hns3_dcbnl_ieee_setpfc()
54 return h->kinfo.dcb_ops->ieee_setpfc(h, pfc); in hns3_dcbnl_ieee_setpfc()
66 if (h->kinfo.dcb_ops->ieee_setapp) in hns3_dcbnl_ieee_setapp()
67 return h->kinfo.dcb_ops->ieee_setapp(h, app); in hns3_dcbnl_ieee_setapp()
[all …]
Dhns3_ethtool.c208 struct hnae3_knic_private_info *kinfo; in hns3_lb_check_rx_ring() local
211 kinfo = &h->kinfo; in hns3_lb_check_rx_ring()
212 for (i = kinfo->num_tqps; i < kinfo->num_tqps * 2; i++) { in hns3_lb_check_rx_ring()
483 return ((HNS3_TQP_STATS_COUNT * h->kinfo.num_tqps) + in hns3_get_sset_count()
525 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hns3_get_strings_tqps() local
531 kinfo->num_tqps, tx_prefix); in hns3_get_strings_tqps()
535 kinfo->num_tqps, rx_prefix); in hns3_get_strings_tqps()
572 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hns3_get_stats_tqps() local
579 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps()
588 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps()
[all …]
Dhns3_enet.c599 hns3_set_vector_coalesce_rl(tqp_vector, h->kinfo.int_rl_setting); in hns3_vector_coalesce_init_hw()
611 struct hnae3_knic_private_info *kinfo = &h->kinfo; in hns3_nic_set_real_num_queue() local
612 struct hnae3_tc_info *tc_info = &kinfo->tc_info; in hns3_nic_set_real_num_queue()
613 unsigned int queue_size = kinfo->num_tqps; in hns3_nic_set_real_num_queue()
653 rss_size = alloc_tqps / h->kinfo.tc_info.num_tc; in hns3_get_max_available_channels()
728 for (j = 0; j < h->kinfo.num_tqps; j++) in hns3_nic_net_up()
729 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
736 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
772 struct hnae3_knic_private_info *kinfo; in hns3_nic_net_open() local
795 kinfo = &h->kinfo; in hns3_nic_net_open()
[all …]
Dhns3_debugfs.c700 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_rx_queue_info()
709 ring = &priv->ring[(u32)(i + h->kinfo.num_tqps)]; in hns3_dbg_rx_queue_info()
804 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_tx_queue_info()
822 hns3_dbg_tx_spare_info(ring, buf, len, h->kinfo.num_tqps, &pos); in hns3_dbg_tx_queue_info()
852 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_queue_map()
924 if (d->qid >= d->handle->kinfo.num_tqps) { in hns3_dbg_rx_bd_info()
939 ring = &priv->ring[d->qid + d->handle->kinfo.num_tqps]; in hns3_dbg_rx_bd_info()
997 if (d->qid >= d->handle->kinfo.num_tqps) { in hns3_dbg_tx_bd_info()
1050 struct hnae3_knic_private_info *kinfo = &h->kinfo; in hns3_dbg_dev_specs() local
1051 struct net_device *dev = kinfo->netdev; in hns3_dbg_dev_specs()
[all …]
Dhns3_trace.h77 __string(devname, ring->tqp->handle->kinfo.netdev->name)
87 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
109 __string(devname, ring->tqp->handle->kinfo.netdev->name)
120 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
Dhnae3.h889 struct hnae3_knic_private_info kinfo; member
/linux-6.6.21/fs/
Dsignalfd.c72 kernel_siginfo_t const *kinfo) in signalfd_copyinfo() argument
87 new.ssi_signo = kinfo->si_signo; in signalfd_copyinfo()
88 new.ssi_errno = kinfo->si_errno; in signalfd_copyinfo()
89 new.ssi_code = kinfo->si_code; in signalfd_copyinfo()
90 switch (siginfo_layout(kinfo->si_signo, kinfo->si_code)) { in signalfd_copyinfo()
92 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo()
93 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo()
96 new.ssi_tid = kinfo->si_tid; in signalfd_copyinfo()
97 new.ssi_overrun = kinfo->si_overrun; in signalfd_copyinfo()
98 new.ssi_ptr = (long) kinfo->si_ptr; in signalfd_copyinfo()
[all …]
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c255 struct net_device *netdev = h->kinfo.netdev; in hclge_ieee_setets()
262 h->kinfo.tc_info.mqprio_active) in hclge_ieee_setets()
278 h->kinfo.tc_info.dcb_ets_active = num_tc > 1; in hclge_ieee_setets()
329 struct net_device *netdev = h->kinfo.netdev; in hclge_ieee_setpfc()
397 struct net_device *netdev = h->kinfo.netdev; in hclge_ieee_setapp()
410 if (app->priority == h->kinfo.dscp_prio[app->protocol]) in hclge_ieee_setapp()
419 old_app.priority = h->kinfo.dscp_prio[app->protocol]; in hclge_ieee_setapp()
421 h->kinfo.dscp_prio[app->protocol] = app->priority; in hclge_ieee_setapp()
426 h->kinfo.dscp_prio[app->protocol] = old_app.priority; in hclge_ieee_setapp()
431 vport->nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_DSCP; in hclge_ieee_setapp()
[all …]
Dhclge_tm.c273 hdev->vport[0].nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_PRIO; in hclge_dscp_to_prio_map_init()
274 hdev->vport[0].nic.kinfo.dscp_app_cnt = 0; in hclge_dscp_to_prio_map_init()
276 hdev->vport[0].nic.kinfo.dscp_prio[i] = HNAE3_PRIO_ID_INVALID; in hclge_dscp_to_prio_map_init()
292 pri_id = hdev->vport[0].nic.kinfo.dscp_prio[i]; in hclge_dscp_to_tc_map()
301 pri_id = hdev->vport[0].nic.kinfo.dscp_prio[j]; in hclge_dscp_to_tc_map()
589 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_tm_qs_shaper_cfg() local
611 for (i = 0; i < kinfo->tc_info.num_tc; i++) { in hclge_tm_qs_shaper_cfg()
637 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_vport_get_max_rss_size() local
638 struct hnae3_tc_info *tc_info = &kinfo->tc_info; in hclge_vport_get_max_rss_size()
658 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_vport_get_tqp_num() local
[all …]
Dhclge_trace.h27 __string(devname, &hdev->vport[0].nic.kinfo.netdev->name)
36 __assign_str(devname, &hdev->vport[0].nic.kinfo.netdev->name);
59 __string(devname, &hdev->vport[0].nic.kinfo.netdev->name)
67 __assign_str(devname, &hdev->vport[0].nic.kinfo.netdev->name);
Dhclge_regs.c511 struct hnae3_knic_private_info *kinfo) in hclge_fetch_pf_reg() argument
534 for (j = 0; j < kinfo->num_tqps; j++) { in hclge_fetch_pf_reg()
541 data_num_sum += (reg_num + HCLGE_REG_TLV_SPACE) * kinfo->num_tqps; in hclge_fetch_pf_reg()
584 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclge_get_regs_len() local
615 kinfo->num_tqps + tqp_intr_len * (hdev->num_msi_used - 1) + in hclge_get_regs_len()
624 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclge_get_regs() local
641 reg += hclge_fetch_pf_reg(hdev, reg, kinfo); in hclge_get_regs()
Dhclge_mbx.c196 if (req->msg.param[i].tqp_index >= vport->nic.kinfo.rss_size) { in hclge_get_ring_chain_from_mbx()
199 vport->nic.kinfo.rss_size - 1U); in hclge_get_ring_chain_from_mbx()
207 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
223 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
493 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_get_basic_info() local
500 for (i = 0; i < kinfo->tc_info.num_tc; i++) in hclge_get_basic_info()
522 queue_info->rss_size = cpu_to_le16(vport->nic.kinfo.rss_size); in hclge_get_vf_queue_info()
733 if (queue_id >= handle->kinfo.num_tqps) { in hclge_get_queue_id_in_pf()
Dhclge_main.c1653 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_assign_tqp() local
1662 hdev->htqp[i].q.tx_desc_num = kinfo->num_tx_desc; in hclge_assign_tqp()
1663 hdev->htqp[i].q.rx_desc_num = kinfo->num_rx_desc; in hclge_assign_tqp()
1664 kinfo->tqp[alloced] = &hdev->htqp[i].q; in hclge_assign_tqp()
1670 kinfo->rss_size = min_t(u16, hdev->pf_rss_size_max, in hclge_assign_tqp()
1674 kinfo->rss_size = min_t(u16, kinfo->rss_size, in hclge_assign_tqp()
1685 struct hnae3_knic_private_info *kinfo = &nic->kinfo; in hclge_knic_setup() local
1689 kinfo->num_tx_desc = num_tx_desc; in hclge_knic_setup()
1690 kinfo->num_rx_desc = num_rx_desc; in hclge_knic_setup()
1692 kinfo->rx_buf_len = hdev->rx_buf_len; in hclge_knic_setup()
[all …]
Dhclge_debugfs.c1181 struct hnae3_knic_private_info *kinfo = &hdev->vport[0].nic.kinfo; in hclge_dbg_dump_qos_dscp_map() local
1190 tc_map_mode_str[kinfo->tc_map_mode]); in hclge_dbg_dump_qos_dscp_map()
1192 if (kinfo->tc_map_mode != HNAE3_TC_MAP_MODE_DSCP) in hclge_dbg_dump_qos_dscp_map()
1220 if (kinfo->dscp_prio[i] == HNAE3_PRIO_ID_INVALID) in hclge_dbg_dump_qos_dscp_map()
1224 i, kinfo->dscp_prio[i], dscp_tc[i]); in hclge_dbg_dump_qos_dscp_map()
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_file_ops.c103 struct qib_base_info *kinfo = NULL; in qib_get_base_info() local
120 sz = sizeof(*kinfo); in qib_get_base_info()
129 kinfo = kzalloc(sizeof(*kinfo), GFP_KERNEL); in qib_get_base_info()
130 if (kinfo == NULL) { in qib_get_base_info()
135 ret = dd->f_get_base_info(rcd, kinfo); in qib_get_base_info()
139 kinfo->spi_rcvhdr_cnt = dd->rcvhdrcnt; in qib_get_base_info()
140 kinfo->spi_rcvhdrent_size = dd->rcvhdrentsize; in qib_get_base_info()
141 kinfo->spi_tidegrcnt = rcd->rcvegrcnt; in qib_get_base_info()
142 kinfo->spi_rcv_egrbufsize = dd->rcvegrbufsize; in qib_get_base_info()
146 kinfo->spi_rcv_egrbuftotlen = in qib_get_base_info()
[all …]
Dqib_iba6120.c2014 struct qib_base_info *kinfo) in qib_6120_get_base_info() argument
2017 kinfo->spi_runtime_flags |= QIB_RUNTIME_FORCE_WC_ORDER; in qib_6120_get_base_info()
2019 kinfo->spi_runtime_flags |= QIB_RUNTIME_PCIE | in qib_6120_get_base_info()
Dqib_iba7220.c2247 struct qib_base_info *kinfo) in qib_7220_get_base_info() argument
2249 kinfo->spi_runtime_flags |= QIB_RUNTIME_PCIE | in qib_7220_get_base_info()
2253 kinfo->spi_runtime_flags |= QIB_RUNTIME_SPECIAL_TRIGGER; in qib_7220_get_base_info()
Dqib_iba7322.c3849 struct qib_base_info *kinfo) in qib_7322_get_base_info() argument
3851 kinfo->spi_runtime_flags |= QIB_RUNTIME_CTXT_MSB_IN_QP | in qib_7322_get_base_info()
3855 kinfo->spi_runtime_flags |= QIB_RUNTIME_RCHK; in qib_7322_get_base_info()
3857 kinfo->spi_runtime_flags |= QIB_RUNTIME_SPECIAL_TRIGGER; in qib_7322_get_base_info()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_trace.h26 __string(devname, &hdev->nic.kinfo.netdev->name)
34 __assign_str(devname, &hdev->nic.kinfo.netdev->name);
58 __string(devname, &hdev->nic.kinfo.netdev->name)
67 __assign_str(devname, &hdev->nic.kinfo.netdev->name);
Dhclgevf_main.c317 struct hnae3_knic_private_info *kinfo; in hclgevf_knic_setup() local
322 kinfo = &nic->kinfo; in hclgevf_knic_setup()
323 kinfo->num_tx_desc = hdev->num_tx_desc; in hclgevf_knic_setup()
324 kinfo->num_rx_desc = hdev->num_rx_desc; in hclgevf_knic_setup()
325 kinfo->rx_buf_len = hdev->rx_buf_len; in hclgevf_knic_setup()
331 kinfo->tc_info.num_tc = num_tc; in hclgevf_knic_setup()
332 kinfo->rss_size = min_t(u16, hdev->rss_size_max, new_tqps / num_tc); in hclgevf_knic_setup()
333 new_tqps = kinfo->rss_size * num_tc; in hclgevf_knic_setup()
334 kinfo->num_tqps = min(new_tqps, hdev->num_tqps); in hclgevf_knic_setup()
336 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, kinfo->num_tqps, in hclgevf_knic_setup()
[all …]
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/
Dsparx5_tc_flower.c385 const struct vcap_set *kinfo; in sparx5_tc_select_protocol_keyset() local
408 kinfo = vcap_keyfieldset(vctrl, admin->vtype, in sparx5_tc_select_protocol_keyset()
410 if (!kinfo) in sparx5_tc_select_protocol_keyset()
420 mru = &multi->rule[kinfo->sw_per_item]; in sparx5_tc_select_protocol_keyset()
424 mru->value = kinfo->type_id; in sparx5_tc_select_protocol_keyset()
426 mru->value &= kinfo->type_id; in sparx5_tc_select_protocol_keyset()
427 mru->mask |= kinfo->type_id; in sparx5_tc_select_protocol_keyset()
/linux-6.6.21/kernel/
Dsignal.c3837 static int copy_siginfo_from_user_any(kernel_siginfo_t *kinfo, in copy_siginfo_from_user_any() argument
3848 kinfo, (struct compat_siginfo __user *)info); in copy_siginfo_from_user_any()
3850 return copy_siginfo_from_user(kinfo, info); in copy_siginfo_from_user_any()
3888 kernel_siginfo_t kinfo; in SYSCALL_DEFINE4() local
3910 ret = copy_siginfo_from_user_any(&kinfo, info); in SYSCALL_DEFINE4()
3915 if (unlikely(sig != kinfo.si_signo)) in SYSCALL_DEFINE4()
3921 (kinfo.si_code >= 0 || kinfo.si_code == SI_TKILL)) in SYSCALL_DEFINE4()
3924 prepare_kill_siginfo(sig, &kinfo); in SYSCALL_DEFINE4()
3927 ret = kill_pid_info(sig, &kinfo, pid); in SYSCALL_DEFINE4()