/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
H A D | hclge_comm_tqp_stats.c | 12 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() 33 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclge_comm_tqps_get_sset_count() local 35 return kinfo->num_tqps * HCLGE_COMM_QUEUE_PAIR_SIZE; in hclge_comm_tqps_get_sset_count() 41 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hclge_comm_tqps_get_strings() local 45 for (i = 0; i < kinfo->num_tqps; i++) { in hclge_comm_tqps_get_strings() 47 container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_strings() [all …]
|
H A D | hclge_comm_rss.c | 43 rss_cfg->rss_size = nic->kinfo.rss_size; in hclge_comm_rss_init_cfg()
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_dcbnl.c | 14 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 …]
|
H A D | hns3_ethtool.c | 211 struct hnae3_knic_private_info *kinfo; in hns3_lb_check_rx_ring() local 214 kinfo = &h->kinfo; in hns3_lb_check_rx_ring() 215 for (i = kinfo->num_tqps; i < kinfo->num_tqps * 2; i++) { in hns3_lb_check_rx_ring() 498 return ((HNS3_TQP_STATS_COUNT * h->kinfo.num_tqps) + in hns3_get_sset_count() 540 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hns3_get_strings_tqps() local 546 kinfo->num_tqps, tx_prefix); in hns3_get_strings_tqps() 550 kinfo->num_tqps, rx_prefix); in hns3_get_strings_tqps() 587 struct hnae3_knic_private_info *kinfo = &handle->kinfo; in hns3_get_stats_tqps() local 594 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps() 603 for (i = 0; i < kinfo->num_tqps; i++) { in hns3_get_stats_tqps() [all …]
|
H A D | hns3_enet.c | 599 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 …]
|
H A D | hns3_debugfs.c | 703 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_rx_queue_info() 712 ring = &priv->ring[(u32)(i + h->kinfo.num_tqps)]; in hns3_dbg_rx_queue_info() 807 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_tx_queue_info() 825 hns3_dbg_tx_spare_info(ring, buf, len, h->kinfo.num_tqps, &pos); in hns3_dbg_tx_queue_info() 855 for (i = 0; i < h->kinfo.num_tqps; i++) { in hns3_dbg_queue_map() 927 if (d->qid >= d->handle->kinfo.num_tqps) { in hns3_dbg_rx_bd_info() 942 ring = &priv->ring[d->qid + d->handle->kinfo.num_tqps]; in hns3_dbg_rx_bd_info() 1000 if (d->qid >= d->handle->kinfo.num_tqps) { in hns3_dbg_tx_bd_info() 1053 struct hnae3_knic_private_info *kinfo = &h->kinfo; in hns3_dbg_dev_specs() local 1054 struct net_device *dev = kinfo->netdev; in hns3_dbg_dev_specs() [all …]
|
H A D | hnae3.h | 909 struct hnae3_knic_private_info kinfo; member
|
/linux/fs/ |
H A D | signalfd.c | 71 static int signalfd_copyinfo(struct iov_iter *to, kernel_siginfo_t const *kinfo) in signalfd_copyinfo() argument 86 new.ssi_signo = kinfo->si_signo; in signalfd_copyinfo() 87 new.ssi_errno = kinfo->si_errno; in signalfd_copyinfo() 88 new.ssi_code = kinfo->si_code; in signalfd_copyinfo() 89 switch (siginfo_layout(kinfo->si_signo, kinfo->si_code)) { in signalfd_copyinfo() 91 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo() 92 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo() 95 new.ssi_tid = kinfo->si_tid; in signalfd_copyinfo() 96 new.ssi_overrun = kinfo->si_overrun; in signalfd_copyinfo() 97 new.ssi_ptr = (long) kinfo->si_ptr; in signalfd_copyinfo() [all …]
|
H A D | nsfs.c | 133 struct mnt_ns_info *kinfo) in copy_ns_info_to_user() argument 142 kinfo->size = min(usize, sizeof(*kinfo)); in copy_ns_info_to_user() 143 kinfo->mnt_ns_id = mnt_ns->seq; in copy_ns_info_to_user() 144 kinfo->nr_mounts = READ_ONCE(mnt_ns->nr_mounts); in copy_ns_info_to_user() 146 if (kinfo->nr_mounts) in copy_ns_info_to_user() 147 kinfo->nr_mounts--; in copy_ns_info_to_user() 149 if (copy_to_user(uinfo, kinfo, kinfo->size)) in copy_ns_info_to_user() 246 struct mnt_ns_info kinfo = {}; in ns_ioctl() local 259 return copy_ns_info_to_user(to_mnt_ns(ns), uinfo, usize, &kinfo); in ns_ioctl() 265 struct mnt_ns_info kinfo = {}; in ns_ioctl() local [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_dcb.c | 255 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 …]
|
H A D | hclge_tm.c | 273 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 …]
|
H A D | hclge_regs.c | 511 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()
|
H A D | hclge_mbx.c | 196 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()
|
H A D | hclge_main.c | 1712 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_assign_tqp() local 1721 hdev->htqp[i].q.tx_desc_num = kinfo->num_tx_desc; in hclge_assign_tqp() 1722 hdev->htqp[i].q.rx_desc_num = kinfo->num_rx_desc; in hclge_assign_tqp() 1723 kinfo->tqp[alloced] = &hdev->htqp[i].q; in hclge_assign_tqp() 1729 kinfo->rss_size = min_t(u16, hdev->pf_rss_size_max, in hclge_assign_tqp() 1733 kinfo->rss_size = min_t(u16, kinfo->rss_size, in hclge_assign_tqp() 1744 struct hnae3_knic_private_info *kinfo = &nic->kinfo; in hclge_knic_setup() local 1748 kinfo->num_tx_desc = num_tx_desc; in hclge_knic_setup() 1749 kinfo->num_rx_desc = num_rx_desc; in hclge_knic_setup() 1751 kinfo->rx_buf_len = hdev->rx_buf_len; in hclge_knic_setup() [all …]
|
H A D | hclge_debugfs.c | 1826 struct hnae3_knic_private_info *kinfo = &hdev->vport[0].nic.kinfo; in hclge_dbg_dump_qos_dscp_map() local 1835 tc_map_mode_str[kinfo->tc_map_mode]); in hclge_dbg_dump_qos_dscp_map() 1837 if (kinfo->tc_map_mode != HNAE3_TC_MAP_MODE_DSCP) in hclge_dbg_dump_qos_dscp_map() 1865 if (kinfo->dscp_prio[i] == HNAE3_PRIO_ID_INVALID) in hclge_dbg_dump_qos_dscp_map() 1869 i, kinfo->dscp_prio[i], dscp_tc[i]); in hclge_dbg_dump_qos_dscp_map()
|
/linux/sound/virtio/ |
H A D | virtio_kctl.c | 52 struct virtio_snd_ctl_info *kinfo = in virtsnd_kctl_info() local 56 uinfo->type = g_v2a_type_map[le32_to_cpu(kinfo->type)]; in virtsnd_kctl_info() 57 uinfo->count = le32_to_cpu(kinfo->count); in virtsnd_kctl_info() 62 le32_to_cpu(kinfo->value.integer.min); in virtsnd_kctl_info() 64 le32_to_cpu(kinfo->value.integer.max); in virtsnd_kctl_info() 66 le32_to_cpu(kinfo->value.integer.step); in virtsnd_kctl_info() 71 le64_to_cpu(kinfo->value.integer64.min); in virtsnd_kctl_info() 73 le64_to_cpu(kinfo->value.integer64.max); in virtsnd_kctl_info() 75 le64_to_cpu(kinfo->value.integer64.step); in virtsnd_kctl_info() 80 le32_to_cpu(kinfo->value.enumerated.items); in virtsnd_kctl_info() [all …]
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_file_ops.c | 103 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 …]
|
H A D | qib_iba6120.c | 2014 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()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.c | 354 struct hnae3_knic_private_info *kinfo; in hclgevf_knic_setup() local 359 kinfo = &nic->kinfo; in hclgevf_knic_setup() 360 kinfo->num_tx_desc = hdev->num_tx_desc; in hclgevf_knic_setup() 361 kinfo->num_rx_desc = hdev->num_rx_desc; in hclgevf_knic_setup() 362 kinfo->rx_buf_len = hdev->rx_buf_len; in hclgevf_knic_setup() 368 kinfo->tc_info.num_tc = num_tc; in hclgevf_knic_setup() 369 kinfo->rss_size = min_t(u16, hdev->rss_size_max, new_tqps / num_tc); in hclgevf_knic_setup() 370 new_tqps = kinfo->rss_size * num_tc; in hclgevf_knic_setup() 371 kinfo->num_tqps = min(new_tqps, hdev->num_tqps); in hclgevf_knic_setup() 373 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, kinfo->num_tqps, in hclgevf_knic_setup() [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_tc_flower.c | 408 const struct vcap_set *kinfo; in sparx5_tc_select_protocol_keyset() local 431 kinfo = vcap_keyfieldset(vctrl, admin->vtype, in sparx5_tc_select_protocol_keyset() 433 if (!kinfo) in sparx5_tc_select_protocol_keyset() 443 mru = &multi->rule[kinfo->sw_per_item]; in sparx5_tc_select_protocol_keyset() 447 mru->value = kinfo->type_id; in sparx5_tc_select_protocol_keyset() 449 mru->value &= kinfo->type_id; in sparx5_tc_select_protocol_keyset() 450 mru->mask |= kinfo->type_id; in sparx5_tc_select_protocol_keyset()
|
/linux/kernel/ |
H A D | signal.c | 3863 static int copy_siginfo_from_user_any(kernel_siginfo_t *kinfo, in copy_siginfo_from_user_any() argument 3874 kinfo, (struct compat_siginfo __user *)info); in copy_siginfo_from_user_any() 3876 return copy_siginfo_from_user(kinfo, info); in copy_siginfo_from_user_any() 3914 kernel_siginfo_t kinfo; in SYSCALL_DEFINE4() local 3960 ret = copy_siginfo_from_user_any(&kinfo, info); in SYSCALL_DEFINE4() 3965 if (unlikely(sig != kinfo.si_signo)) in SYSCALL_DEFINE4() 3971 (kinfo.si_code >= 0 || kinfo.si_code == SI_TKILL)) in SYSCALL_DEFINE4() 3974 prepare_kill_siginfo(sig, &kinfo, type); in SYSCALL_DEFINE4() 3978 ret = kill_pgrp_info(sig, &kinfo, pid); in SYSCALL_DEFINE4() 3980 ret = kill_pid_info_type(sig, &kinfo, pid, type); in SYSCALL_DEFINE4()
|
/linux/arch/arm64/boot/dts/exynos/google/ |
H A D | gs101.dtsi | 256 debug_kinfo_reserved: debug-kinfo-reserved@fd3fe000 {
|