Home
last modified time | relevance | path

Searched refs:edata (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v6.1/drivers/pci/controller/
Dpcie-hisi-error.c195 const struct hisi_pcie_error_data *edata) in hisi_pcie_handle_error() argument
199 const unsigned long valid_bits[] = {BITMAP_FROM_U64(edata->val_bits)}; in hisi_pcie_handle_error()
201 if (edata->val_bits == 0) { in hisi_pcie_handle_error()
207 if (edata->val_bits & HISI_PCIE_LOCAL_VALID_SOC_ID) in hisi_pcie_handle_error()
208 dev_info(dev, "Table version = %d\n", edata->version); in hisi_pcie_handle_error()
209 if (edata->val_bits & HISI_PCIE_LOCAL_VALID_SOCKET_ID) in hisi_pcie_handle_error()
210 dev_info(dev, "Socket ID = %d\n", edata->socket_id); in hisi_pcie_handle_error()
211 if (edata->val_bits & HISI_PCIE_LOCAL_VALID_NIMBUS_ID) in hisi_pcie_handle_error()
212 dev_info(dev, "Nimbus ID = %d\n", edata->nimbus_id); in hisi_pcie_handle_error()
213 if (edata->val_bits & HISI_PCIE_LOCAL_VALID_SUB_MODULE_ID) in hisi_pcie_handle_error()
[all …]
/Linux-v6.1/kernel/trace/
Dtrace_eprobe.c511 __eprobe_trace_func(struct eprobe_data *edata, void *rec) in __eprobe_trace_func() argument
514 struct trace_event_call *call = trace_probe_event_call(&edata->ep->tp); in __eprobe_trace_func()
518 if (WARN_ON_ONCE(call != edata->file->event_call)) in __eprobe_trace_func()
521 if (trace_trigger_soft_disabled(edata->file)) in __eprobe_trace_func()
524 dsize = get_eprobe_size(&edata->ep->tp, rec); in __eprobe_trace_func()
526 entry = trace_event_buffer_reserve(&fbuffer, edata->file, in __eprobe_trace_func()
527 sizeof(*entry) + edata->ep->tp.size + dsize); in __eprobe_trace_func()
533 store_trace_args(&entry[1], &edata->ep->tp, rec, sizeof(*entry), dsize); in __eprobe_trace_func()
565 struct eprobe_data *edata = data->private_data; in eprobe_trigger_func() local
570 __eprobe_trace_func(edata, rec); in eprobe_trigger_func()
[all …]
Dtrace_events.c3178 struct event_probe_data *edata; in event_enable_probe() local
3185 edata = *pdata; in event_enable_probe()
3186 update_event_probe(edata); in event_enable_probe()
3195 struct event_probe_data *edata; in event_enable_count_probe() local
3202 edata = *pdata; in event_enable_count_probe()
3204 if (!edata->count) in event_enable_count_probe()
3208 if (edata->enable == !(edata->file->flags & EVENT_FILE_FL_SOFT_DISABLED)) in event_enable_count_probe()
3211 if (edata->count != -1) in event_enable_count_probe()
3212 (edata->count)--; in event_enable_count_probe()
3214 update_event_probe(edata); in event_enable_count_probe()
[all …]
/Linux-v6.1/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_ethtool.c136 struct ethtool_eee *edata) in sxgbe_get_eee() argument
143 edata->eee_enabled = priv->eee_enabled; in sxgbe_get_eee()
144 edata->eee_active = priv->eee_active; in sxgbe_get_eee()
145 edata->tx_lpi_timer = priv->tx_lpi_timer; in sxgbe_get_eee()
147 return phy_ethtool_get_eee(dev->phydev, edata); in sxgbe_get_eee()
151 struct ethtool_eee *edata) in sxgbe_set_eee() argument
155 priv->eee_enabled = edata->eee_enabled; in sxgbe_set_eee()
169 priv->tx_lpi_timer = edata->tx_lpi_timer; in sxgbe_set_eee()
172 return phy_ethtool_set_eee(dev->phydev, edata); in sxgbe_set_eee()
/Linux-v6.1/drivers/devfreq/event/
Dexynos-ppmu.c202 struct devfreq_event_data *edata) in exynos_ppmu_get_event() argument
228 edata->total_count = total_count; in exynos_ppmu_get_event()
238 edata->load_count = load_count; in exynos_ppmu_get_event()
249 edata->load_count = ((pmcnt3_high << 8) | pmcnt3_low); in exynos_ppmu_get_event()
266 edata->load_count, edata->total_count); in exynos_ppmu_get_event()
420 struct devfreq_event_data *edata) in exynos_ppmu_v2_get_event() argument
444 edata->total_count = total_count; in exynos_ppmu_v2_get_event()
468 edata->load_count = load_count; in exynos_ppmu_v2_get_event()
481 edata->load_count, edata->total_count); in exynos_ppmu_v2_get_event()
Dexynos-nocp.c144 struct devfreq_event_data *edata) in exynos_nocp_get_event() argument
167 edata->load_count = ((counter[1] << 16) | counter[0]); in exynos_nocp_get_event()
168 edata->total_count = ((counter[3] << 16) | counter[2]); in exynos_nocp_get_event()
171 edata->load_count, edata->total_count); in exynos_nocp_get_event()
Drockchip-dfi.c150 struct devfreq_event_data *edata) in rockchip_dfi_get_event() argument
157 edata->load_count = info->ch_usage[busier_ch].access; in rockchip_dfi_get_event()
158 edata->total_count = info->ch_usage[busier_ch].total; in rockchip_dfi_get_event()
/Linux-v6.1/net/sched/
Dact_ife.c45 u16 edata = 0; in ife_encode_meta_u16() local
48 edata = *(u16 *)mi->metaval; in ife_encode_meta_u16()
50 edata = metaval; in ife_encode_meta_u16()
52 if (!edata) /* will not encode */ in ife_encode_meta_u16()
55 edata = htons(edata); in ife_encode_meta_u16()
56 return ife_tlv_meta_encode(skbdata, mi->metaid, 2, &edata); in ife_encode_meta_u16()
89 u32 edata = metaval; in ife_encode_meta_u32() local
92 edata = *(u32 *)mi->metaval; in ife_encode_meta_u32()
94 edata = metaval; in ife_encode_meta_u32()
96 if (!edata) /* will not encode */ in ife_encode_meta_u32()
[all …]
/Linux-v6.1/include/linux/
Ddevfreq-event.h74 struct devfreq_event_data *edata);
106 struct devfreq_event_data *edata);
147 struct devfreq_event_data *edata) in devfreq_event_get_event() argument
/Linux-v6.1/drivers/devfreq/
Ddevfreq-event.c161 struct devfreq_event_data *edata) in devfreq_event_get_event() argument
174 edata->total_count = edata->load_count = 0; in devfreq_event_get_event()
177 ret = edev->desc->ops->get_event(edev, edata); in devfreq_event_get_event()
179 edata->total_count = edata->load_count = 0; in devfreq_event_get_event()
Dexynos-bus.c64 struct devfreq_event_data *edata) in exynos_bus_get_event() argument
84 edata->load_count = load_count; in exynos_bus_get_event()
85 edata->total_count = total_count; in exynos_bus_get_event()
123 struct devfreq_event_data edata; in exynos_bus_get_dev_status() local
128 ret = exynos_bus_get_event(bus, &edata); in exynos_bus_get_dev_status()
135 stat->busy_time = (edata.load_count * 100) / bus->ratio; in exynos_bus_get_dev_status()
136 stat->total_time = edata.total_count; in exynos_bus_get_dev_status()
Drk3399_dmc.c222 struct devfreq_event_data edata; in rk3399_dmcfreq_get_dev_status() local
225 ret = devfreq_event_get_event(dmcfreq->edev, &edata); in rk3399_dmcfreq_get_dev_status()
230 stat->busy_time = edata.load_count; in rk3399_dmcfreq_get_dev_status()
231 stat->total_time = edata.total_count; in rk3399_dmcfreq_get_dev_status()
/Linux-v6.1/arch/riscv/kernel/
Dcpu.c152 struct riscv_isa_ext_data *edata; in print_isa_ext() local
162 edata = &isa_ext_arr[i]; in print_isa_ext()
163 if (!__riscv_isa_extension_available(NULL, edata->isa_ext_id)) in print_isa_ext()
165 seq_printf(f, "_%s", edata->uprop); in print_isa_ext()
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c778 struct ethtool_eee *edata) in stmmac_ethtool_op_get_eee() argument
785 edata->eee_enabled = priv->eee_enabled; in stmmac_ethtool_op_get_eee()
786 edata->eee_active = priv->eee_active; in stmmac_ethtool_op_get_eee()
787 edata->tx_lpi_timer = priv->tx_lpi_timer; in stmmac_ethtool_op_get_eee()
788 edata->tx_lpi_enabled = priv->tx_lpi_enabled; in stmmac_ethtool_op_get_eee()
790 return phylink_ethtool_get_eee(priv->phylink, edata); in stmmac_ethtool_op_get_eee()
794 struct ethtool_eee *edata) in stmmac_ethtool_op_set_eee() argument
802 if (priv->tx_lpi_enabled != edata->tx_lpi_enabled) in stmmac_ethtool_op_set_eee()
806 if (!edata->eee_enabled) in stmmac_ethtool_op_set_eee()
809 ret = phylink_ethtool_set_eee(priv->phylink, edata); in stmmac_ethtool_op_set_eee()
[all …]
/Linux-v6.1/net/ethtool/
Dioctl.c255 struct ethtool_value edata = { in ethtool_get_one_feature() local
260 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_one_feature()
268 struct ethtool_value edata; in ethtool_set_one_feature() local
271 if (copy_from_user(&edata, useraddr, sizeof(edata))) in ethtool_set_one_feature()
279 if (edata.data) in ethtool_set_one_feature()
1459 struct ethtool_eee edata; in ethtool_get_eee() local
1465 memset(&edata, 0, sizeof(struct ethtool_eee)); in ethtool_get_eee()
1466 edata.cmd = ETHTOOL_GEEE; in ethtool_get_eee()
1467 rc = dev->ethtool_ops->get_eee(dev, &edata); in ethtool_get_eee()
1472 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_eee()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/igc/
Digc_ethtool.c1582 struct ethtool_eee *edata) in igc_ethtool_get_eee() argument
1589 edata->advertised = in igc_ethtool_get_eee()
1592 *edata = adapter->eee; in igc_ethtool_get_eee()
1593 edata->supported = SUPPORTED_Autoneg; in igc_ethtool_get_eee()
1599 edata->eee_active = true; in igc_ethtool_get_eee()
1602 edata->tx_lpi_enabled = true; in igc_ethtool_get_eee()
1604 edata->eee_enabled = hw->dev_spec._base.eee_enable; in igc_ethtool_get_eee()
1606 edata->advertised = SUPPORTED_Autoneg; in igc_ethtool_get_eee()
1607 edata->lp_advertised = SUPPORTED_Autoneg; in igc_ethtool_get_eee()
1613 edata->eee_enabled = false; in igc_ethtool_get_eee()
[all …]
/Linux-v6.1/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c1782 static int qede_get_eee(struct net_device *dev, struct ethtool_eee *edata) in qede_get_eee() argument
1796 edata->advertised = ADVERTISED_1000baseT_Full; in qede_get_eee()
1798 edata->advertised |= ADVERTISED_10000baseT_Full; in qede_get_eee()
1800 edata->supported = ADVERTISED_1000baseT_Full; in qede_get_eee()
1802 edata->supported |= ADVERTISED_10000baseT_Full; in qede_get_eee()
1804 edata->lp_advertised = ADVERTISED_1000baseT_Full; in qede_get_eee()
1806 edata->lp_advertised |= ADVERTISED_10000baseT_Full; in qede_get_eee()
1808 edata->tx_lpi_timer = current_link.eee.tx_lpi_timer; in qede_get_eee()
1809 edata->eee_enabled = current_link.eee.enable; in qede_get_eee()
1810 edata->tx_lpi_enabled = current_link.eee.tx_lpi_enable; in qede_get_eee()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/igb/
Digb_ethtool.c3026 static int igb_get_eee(struct net_device *netdev, struct ethtool_eee *edata) in igb_get_eee() argument
3037 edata->supported = (SUPPORTED_1000baseT_Full | in igb_get_eee()
3040 edata->advertised = in igb_get_eee()
3045 igb_get_eee_status_i354(hw, (bool *)&edata->eee_active); in igb_get_eee()
3053 edata->eee_active = true; in igb_get_eee()
3056 edata->tx_lpi_enabled = true; in igb_get_eee()
3067 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in igb_get_eee()
3078 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in igb_get_eee()
3085 edata->eee_enabled = !hw->dev_spec._82575.eee_disable; in igb_get_eee()
3088 (edata->eee_enabled)) in igb_get_eee()
[all …]
/Linux-v6.1/arch/alpha/boot/
Dbootloader.lds16 PROVIDE (edata = .); symbol
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c3394 ixgbe_get_eee_fw(struct ixgbe_adapter *adapter, struct ethtool_eee *edata) in ixgbe_get_eee_fw() argument
3405 edata->lp_advertised = 0; in ixgbe_get_eee_fw()
3408 edata->lp_advertised |= ixgbe_lp_map[i].mac_speed; in ixgbe_get_eee_fw()
3411 edata->supported = 0; in ixgbe_get_eee_fw()
3414 edata->supported |= ixgbe_ls_map[i].supported; in ixgbe_get_eee_fw()
3417 edata->advertised = 0; in ixgbe_get_eee_fw()
3420 edata->advertised |= ixgbe_ls_map[i].supported; in ixgbe_get_eee_fw()
3423 edata->eee_enabled = !!edata->advertised; in ixgbe_get_eee_fw()
3424 edata->tx_lpi_enabled = edata->eee_enabled; in ixgbe_get_eee_fw()
3425 if (edata->advertised & edata->lp_advertised) in ixgbe_get_eee_fw()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/e1000e/
Dethtool.c2178 static int e1000e_get_eee(struct net_device *netdev, struct ethtool_eee *edata) in e1000e_get_eee() argument
2215 edata->supported = mmd_eee_cap_to_ethtool_sup_t(phy_data); in e1000e_get_eee()
2218 edata->advertised = mmd_eee_adv_to_ethtool_adv_t(adapter->eee_advert); in e1000e_get_eee()
2224 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in e1000e_get_eee()
2238 edata->eee_active = true; in e1000e_get_eee()
2240 edata->eee_enabled = !hw->dev_spec.ich8lan.eee_disable; in e1000e_get_eee()
2241 edata->tx_lpi_enabled = true; in e1000e_get_eee()
2242 edata->tx_lpi_timer = er32(LPIC) >> E1000_LPIC_LPIET_SHIFT; in e1000e_get_eee()
2254 static int e1000e_set_eee(struct net_device *netdev, struct ethtool_eee *edata) in e1000e_set_eee() argument
2265 if (eee_curr.tx_lpi_enabled != edata->tx_lpi_enabled) { in e1000e_set_eee()
[all …]
/Linux-v6.1/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c2111 static int bnx2x_get_eee(struct net_device *dev, struct ethtool_eee *edata) in bnx2x_get_eee() argument
2123 edata->supported = in bnx2x_get_eee()
2127 edata->advertised = in bnx2x_get_eee()
2130 edata->lp_advertised = in bnx2x_get_eee()
2135 edata->tx_lpi_timer = (eee_cfg & SHMEM_EEE_TIMER_MASK) << 4; in bnx2x_get_eee()
2137 edata->eee_enabled = (eee_cfg & SHMEM_EEE_REQUESTED_BIT) ? 1 : 0; in bnx2x_get_eee()
2138 edata->eee_active = (eee_cfg & SHMEM_EEE_ACTIVE_BIT) ? 1 : 0; in bnx2x_get_eee()
2139 edata->tx_lpi_enabled = (eee_cfg & SHMEM_EEE_LPI_REQUESTED_BIT) ? 1 : 0; in bnx2x_get_eee()
2144 static int bnx2x_set_eee(struct net_device *dev, struct ethtool_eee *edata) in bnx2x_set_eee() argument
2165 advertised = bnx2x_adv_to_eee(edata->advertised, in bnx2x_set_eee()
[all …]
/Linux-v6.1/arch/um/kernel/
Duml.lds.S107 PROVIDE (edata = .);
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c3068 static int bnxt_set_eee(struct net_device *dev, struct ethtool_eee *edata) in bnxt_set_eee() argument
3084 if (!edata->eee_enabled) in bnxt_set_eee()
3092 if (edata->tx_lpi_enabled) { in bnxt_set_eee()
3093 if (bp->lpi_tmr_hi && (edata->tx_lpi_timer > bp->lpi_tmr_hi || in bnxt_set_eee()
3094 edata->tx_lpi_timer < bp->lpi_tmr_lo)) { in bnxt_set_eee()
3100 edata->tx_lpi_timer = eee->tx_lpi_timer; in bnxt_set_eee()
3103 if (!edata->advertised) { in bnxt_set_eee()
3104 edata->advertised = advertising & eee->supported; in bnxt_set_eee()
3105 } else if (edata->advertised & ~advertising) { in bnxt_set_eee()
3107 edata->advertised, advertising); in bnxt_set_eee()
[all …]
/Linux-v6.1/drivers/net/ethernet/ti/
Dam65-cpsw-ethtool.c516 static int am65_cpsw_get_eee(struct net_device *ndev, struct ethtool_eee *edata) in am65_cpsw_get_eee() argument
520 return phylink_ethtool_get_eee(salve->phylink, edata); in am65_cpsw_get_eee()
523 static int am65_cpsw_set_eee(struct net_device *ndev, struct ethtool_eee *edata) in am65_cpsw_set_eee() argument
527 return phylink_ethtool_set_eee(salve->phylink, edata); in am65_cpsw_set_eee()

12