/openbmc/qemu/tests/rocker/ |
H A D | bridge | 5 while ! simp ssh tut sw1 --cmd "ping -c 1 localhost >/dev/null"; do sleep 1; done 6 while ! simp ssh tut h1 --cmd "ping -c 1 localhost >/dev/null"; do sleep 1; done 7 while ! simp ssh tut h2 --cmd "ping -c 1 localhost >/dev/null"; do sleep 1; done 12 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p1 master br0" 13 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p2 master br0" 21 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 learning off" 22 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 learning off" 24 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p1 flood off" 25 simp ssh tut sw1 --cmd "sudo /sbin/bridge link set dev sw1p2 flood off" 41 simp ssh tut h1 --cmd "ping -c10 11.0.0.2 >/dev/null" [all …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | xhci-exynos5.c | 53 static int xhci_usb_ofdata_to_platdata(struct udevice *dev) in xhci_usb_ofdata_to_platdata() argument 55 struct exynos_xhci_platdata *plat = dev_get_platdata(dev); in xhci_usb_ofdata_to_platdata() 63 plat->hcd_base = devfdt_get_addr(dev); in xhci_usb_ofdata_to_platdata() 87 gpio_request_by_name(dev, "samsung,vbus-gpio", 0, in xhci_usb_ofdata_to_platdata() 204 static int xhci_usb_probe(struct udevice *dev) in xhci_usb_probe() argument 206 struct exynos_xhci_platdata *plat = dev_get_platdata(dev); in xhci_usb_probe() 207 struct exynos_xhci *ctx = dev_get_priv(dev); in xhci_usb_probe() 227 return xhci_register(dev, ctx->hcd, hcor); in xhci_usb_probe() 230 static int xhci_usb_remove(struct udevice *dev) in xhci_usb_remove() argument 232 struct exynos_xhci *ctx = dev_get_priv(dev); in xhci_usb_remove() [all …]
|
/openbmc/linux/drivers/hwspinlock/ |
H A D | sun6i_hwspinlock.c | 103 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in sun6i_hwspinlock_probe() 107 priv->ahb_clk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_hwspinlock_probe() 110 dev_err(&pdev->dev, "unable to get AHB clock (%d)\n", err); in sun6i_hwspinlock_probe() 114 priv->reset = devm_reset_control_get(&pdev->dev, "ahb"); in sun6i_hwspinlock_probe() 116 return dev_err_probe(&pdev->dev, PTR_ERR(priv->reset), in sun6i_hwspinlock_probe() 121 dev_err(&pdev->dev, "deassert reset control failure (%d)\n", err); in sun6i_hwspinlock_probe() 127 dev_err(&pdev->dev, "unable to prepare AHB clk (%d)\n", err); in sun6i_hwspinlock_probe() 153 dev_err(&pdev->dev, "unsupported hwspinlock setup (%d)\n", num_banks); in sun6i_hwspinlock_probe() 174 err = devm_add_action_or_reset(&pdev->dev, sun6i_hwspinlock_disable, priv); in sun6i_hwspinlock_probe() 176 dev_err(&pdev->dev, "failed to add hwspinlock disable action\n"); in sun6i_hwspinlock_probe() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | gpio-ir-tx.c | 32 struct gpio_ir *gpio_ir = dev->priv; in gpio_ir_tx_set_duty_cycle() 39 static int gpio_ir_tx_set_carrier(struct rc_dev *dev, u32 carrier) in gpio_ir_tx_set_carrier() argument 41 struct gpio_ir *gpio_ir = dev->priv; in gpio_ir_tx_set_carrier() 146 static int gpio_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in gpio_ir_tx() argument 149 struct gpio_ir *gpio_ir = dev->priv; in gpio_ir_tx() 168 gpio_ir = devm_kmalloc(&pdev->dev, sizeof(*gpio_ir), GFP_KERNEL); in gpio_ir_tx_probe() 172 rcdev = devm_rc_allocate_device(&pdev->dev, RC_DRIVER_IR_RAW_TX); in gpio_ir_tx_probe() 176 gpio_ir->gpio = devm_gpiod_get(&pdev->dev, NULL, GPIOD_OUT_LOW); in gpio_ir_tx_probe() 178 return dev_err_probe(&pdev->dev, PTR_ERR(gpio_ir->gpio), in gpio_ir_tx_probe() 191 rc = devm_rc_register_device(&pdev->dev, rcdev); in gpio_ir_tx_probe() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | msc313e_wdt.c | 99 struct device *dev = &pdev->dev; in msc313e_wdt_probe() local 102 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in msc313e_wdt_probe() 110 priv->clk = devm_clk_get(dev, NULL); in msc313e_wdt_probe() 112 dev_err(dev, "No input clock\n"); in msc313e_wdt_probe() 118 priv->wdev.parent = dev; in msc313e_wdt_probe() 129 watchdog_init_timeout(&priv->wdev, timeout, dev); in msc313e_wdt_probe() 133 return devm_watchdog_register_device(dev, &priv->wdev); in msc313e_wdt_probe() 136 static int __maybe_unused msc313e_wdt_suspend(struct device *dev) in msc313e_wdt_suspend() argument 138 struct msc313e_wdt_priv *priv = dev_get_drvdata(dev); in msc313e_wdt_suspend() 146 static int __maybe_unused msc313e_wdt_resume(struct device *dev) in msc313e_wdt_resume() argument [all …]
|
/openbmc/linux/drivers/clk/ |
H A D | clk-rk808.c | 150 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_clkout_probe() 151 struct device *dev = &pdev->dev; in rk808_clkout_probe() local 156 dev->of_node = pdev->dev.parent->of_node; in rk808_clkout_probe() 158 rk808_clkout = devm_kzalloc(dev, in rk808_clkout_probe() 163 rk808_clkout->regmap = dev_get_regmap(pdev->dev.parent, NULL); in rk808_clkout_probe() 174 of_property_read_string_index(dev->of_node, "clock-output-names", in rk808_clkout_probe() 177 ret = devm_clk_hw_register(dev, &rk808_clkout->clkout1_hw); in rk808_clkout_probe() 186 of_property_read_string_index(dev->of_node, "clock-output-names", in rk808_clkout_probe() 189 ret = devm_clk_hw_register(dev, &rk808_clkout->clkout2_hw); in rk808_clkout_probe() 193 return devm_of_clk_add_hw_provider(&pdev->dev, of_clk_rk808_get, in rk808_clkout_probe()
|
/openbmc/linux/drivers/power/supply/ |
H A D | lego_ev3_battery.c | 156 struct device *dev = &pdev->dev; in lego_ev3_battery_probe() local 161 batt = devm_kzalloc(dev, sizeof(*batt), GFP_KERNEL); in lego_ev3_battery_probe() 167 batt->iio_v = devm_iio_channel_get(dev, "voltage"); in lego_ev3_battery_probe() 170 return dev_err_probe(dev, err, in lego_ev3_battery_probe() 173 batt->iio_i = devm_iio_channel_get(dev, "current"); in lego_ev3_battery_probe() 176 return dev_err_probe(dev, err, in lego_ev3_battery_probe() 179 batt->rechargeable_gpio = devm_gpiod_get(dev, "rechargeable", GPIOD_IN); in lego_ev3_battery_probe() 182 return dev_err_probe(dev, err, in lego_ev3_battery_probe() 201 psy_cfg.of_node = pdev->dev.of_node; in lego_ev3_battery_probe() 204 batt->psy = devm_power_supply_register(dev, &lego_ev3_battery_desc, in lego_ev3_battery_probe() [all …]
|
/openbmc/linux/drivers/phy/broadcom/ |
H A D | phy-bcm-ns-usb3.c | 49 struct device *dev; member 191 struct device *dev = &mdiodev->dev; in bcm_ns_usb3_mdio_probe() local 199 usb3 = devm_kzalloc(dev, sizeof(*usb3), GFP_KERNEL); in bcm_ns_usb3_mdio_probe() 203 usb3->dev = dev; in bcm_ns_usb3_mdio_probe() 206 of_id = of_match_device(bcm_ns_usb3_id_table, dev); in bcm_ns_usb3_mdio_probe() 211 syscon_np = of_parse_phandle(dev->of_node, "usb3-dmp-syscon", 0); in bcm_ns_usb3_mdio_probe() 217 usb3->dmp = devm_ioremap_resource(dev, &res); in bcm_ns_usb3_mdio_probe() 221 usb3->phy = devm_phy_create(dev, NULL, &ops); in bcm_ns_usb3_mdio_probe() 223 dev_err(dev, "Failed to create PHY\n"); in bcm_ns_usb3_mdio_probe() 229 phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); in bcm_ns_usb3_mdio_probe()
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | clps711x-keypad.c | 90 struct device *dev = &pdev->dev; in clps711x_keypad_probe() local 95 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in clps711x_keypad_probe() 99 priv->syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in clps711x_keypad_probe() 103 priv->row_count = gpiod_count(dev, "row"); in clps711x_keypad_probe() 107 priv->gpio_data = devm_kcalloc(dev, in clps711x_keypad_probe() 118 data->desc = devm_gpiod_get_index(dev, "row", i, GPIOD_IN); in clps711x_keypad_probe() 123 err = device_property_read_u32(dev, "poll-interval", &poll_interval); in clps711x_keypad_probe() 127 input = devm_input_allocate_device(dev); in clps711x_keypad_probe() 134 input->dev.parent = dev; in clps711x_keypad_probe() 147 if (device_property_read_bool(dev, "autorepeat")) in clps711x_keypad_probe()
|
/openbmc/qemu/hw/remote/ |
H A D | remote-obj.c | 46 DeviceState *dev; member 81 DeviceState *dev) in remote_object_unrealize_listener() argument 85 if (o->dev == dev) { in remote_object_unrealize_listener() 93 DeviceState *dev = NULL; in remote_object_machine_done() local 99 dev = qdev_find_recursive(sysbus_get_default(), o->devid); in remote_object_machine_done() 100 if (!dev || !object_dynamic_cast(OBJECT(dev), TYPE_PCI_DEVICE)) { in remote_object_machine_done() 112 o->dev = dev; in remote_object_machine_done() 121 .dev = PCI_DEVICE(dev), in remote_object_machine_done()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-generic.c | 13 static int __init generic_rtc_probe(struct platform_device *dev) in generic_rtc_probe() argument 16 const struct rtc_class_ops *ops = dev_get_platdata(&dev->dev); in generic_rtc_probe() 18 rtc = devm_rtc_device_register(&dev->dev, "rtc-generic", in generic_rtc_probe() 23 platform_set_drvdata(dev, rtc); in generic_rtc_probe()
|
H A D | nvmem.c | 16 struct device *dev = rtc->dev.parent; in devm_rtc_nvmem_register() local 22 nvmem_config->dev = dev; in devm_rtc_nvmem_register() 25 nvmem = devm_nvmem_register(dev, nvmem_config); in devm_rtc_nvmem_register() 27 dev_err(dev, "failed to register nvmem device for RTC\n"); in devm_rtc_nvmem_register()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | rsc_dump.h | 15 struct mlx5_rsc_dump *mlx5_rsc_dump_create(struct mlx5_core_dev *dev); 16 void mlx5_rsc_dump_destroy(struct mlx5_core_dev *dev); 18 int mlx5_rsc_dump_init(struct mlx5_core_dev *dev); 19 void mlx5_rsc_dump_cleanup(struct mlx5_core_dev *dev); 21 struct mlx5_rsc_dump_cmd *mlx5_rsc_dump_cmd_create(struct mlx5_core_dev *dev, 25 int mlx5_rsc_dump_next(struct mlx5_core_dev *dev, struct mlx5_rsc_dump_cmd *cmd,
|
/openbmc/linux/drivers/soundwire/ |
H A D | qcom.c | 178 struct device *dev; member 647 dev_err_ratelimited(ctrl->dev, in qcom_swrm_wake_irq_handler() 737 dev_err(ctrl->dev, in qcom_swrm_irq_handler() 1263 dev_err_ratelimited(ctrl->dev, in qcom_swrm_startup() 1330 struct device *dev = ctrl->dev; in qcom_swrm_register_dais() local 1479 dev_err_ratelimited(ctrl->dev, in swrm_reg_show() 1501 struct device *dev = &pdev->dev; local 1559 ctrl->dev = dev; 1618 ret = sdw_bus_master_add(&ctrl->bus, dev, dev->fwnode); 1639 pm_runtime_set_active(dev); [all …]
|
/openbmc/linux/fs/nfs/ |
H A D | nfs4trace.h | 564 MAJOR(__entry->dev), MINOR(__entry->dev), 567 MAJOR(__entry->dev), MINOR(__entry->dev), 619 MAJOR(__entry->dev), MINOR(__entry->dev), 667 MAJOR(__entry->dev), MINOR(__entry->dev), 724 MAJOR(__entry->dev), MINOR(__entry->dev), 800 MAJOR(__entry->dev), MINOR(__entry->dev), 882 MAJOR(__entry->dev), MINOR(__entry->dev), 915 MAJOR(__entry->dev), MINOR(__entry->dev), 962 MAJOR(__entry->dev), MINOR(__entry->dev), 1005 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/openbmc/u-boot/include/ |
H A D | reset.h | 56 struct udevice *dev; member 99 int reset_get_by_index(struct udevice *dev, int index, 116 int reset_get_bulk(struct udevice *dev, struct reset_ctl_bulk *bulk); 134 int reset_get_by_name(struct udevice *dev, const char *name, 250 static inline int reset_get_by_index(struct udevice *dev, int index, in reset_get_by_index() argument 256 static inline int reset_get_bulk(struct udevice *dev, in reset_get_bulk() argument 262 static inline int reset_get_by_name(struct udevice *dev, const char *name, in reset_get_by_name() argument 317 return !!reset_ctl->dev; in reset_valid()
|
H A D | video.h | 101 #define video_get_ops(dev) ((struct video_ops *)(dev)->driver->ops) argument 127 int video_clear(struct udevice *dev); 166 int video_bmp_display(struct udevice *dev, ulong bmp_image, int x, int y, 175 int video_get_xsize(struct udevice *dev); 183 int video_get_ysize(struct udevice *dev); 191 void video_set_flush_dcache(struct udevice *dev, bool flush); 199 void video_set_default_colors(struct udevice *dev, bool invert);
|
/openbmc/u-boot/drivers/timer/ |
H A D | omap-timer.c | 50 static int omap_timer_get_count(struct udevice *dev, u64 *count) in omap_timer_get_count() argument 52 struct omap_timer_priv *priv = dev_get_priv(dev); in omap_timer_get_count() 59 static int omap_timer_probe(struct udevice *dev) in omap_timer_probe() argument 61 struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); in omap_timer_probe() 62 struct omap_timer_priv *priv = dev_get_priv(dev); in omap_timer_probe() 77 static int omap_timer_ofdata_to_platdata(struct udevice *dev) in omap_timer_ofdata_to_platdata() argument 79 struct omap_timer_priv *priv = dev_get_priv(dev); in omap_timer_ofdata_to_platdata() 81 priv->regs = map_physmem(devfdt_get_addr(dev), in omap_timer_ofdata_to_platdata()
|
H A D | ast_timer.c | 30 static int ast_timer_probe(struct udevice *dev) in ast_timer_probe() argument 32 struct ast_timer_priv *priv = dev_get_priv(dev); in ast_timer_probe() 33 struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); in ast_timer_probe() 53 static int ast_timer_get_count(struct udevice *dev, u64 *count) in ast_timer_get_count() argument 55 struct ast_timer_priv *priv = dev_get_priv(dev); in ast_timer_get_count() 62 static int ast_timer_ofdata_to_platdata(struct udevice *dev) in ast_timer_ofdata_to_platdata() argument 64 struct ast_timer_priv *priv = dev_get_priv(dev); in ast_timer_ofdata_to_platdata() 66 priv->regs = devfdt_get_addr_ptr(dev); in ast_timer_ofdata_to_platdata()
|
/openbmc/u-boot/drivers/hwspinlock/ |
H A D | stm32_hwspinlock.c | 20 static int stm32mp1_lock(struct udevice *dev, int index) in stm32mp1_lock() argument 22 struct stm32mp1_hws_priv *priv = dev_get_priv(dev); in stm32mp1_lock() 42 static int stm32mp1_unlock(struct udevice *dev, int index) in stm32mp1_unlock() argument 44 struct stm32mp1_hws_priv *priv = dev_get_priv(dev); in stm32mp1_unlock() 54 static int stm32mp1_hwspinlock_probe(struct udevice *dev) in stm32mp1_hwspinlock_probe() argument 56 struct stm32mp1_hws_priv *priv = dev_get_priv(dev); in stm32mp1_hwspinlock_probe() 60 priv->base = dev_read_addr(dev); in stm32mp1_hwspinlock_probe() 64 ret = clk_get_by_index(dev, 0, &clk); in stm32mp1_hwspinlock_probe()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/lockdev/lockdev/ |
H A D | 0001-lockdev-Define-MAJOR-MINOR-for-non-glibc-case.patch | 22 -# define MAJOR(dev) gnu_dev_major (dev) 23 -# define MINOR(dev) gnu_dev_minor (dev) 24 +# define MAJOR(dev) major (dev) 25 +# define MINOR(dev) minor (dev)
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | pnv-ocxl.h | 59 int pnv_ocxl_get_actag(struct pci_dev *dev, u16 *base, u16 *enabled, u16 *supported); 60 int pnv_ocxl_get_pasid_count(struct pci_dev *dev, int *count); 62 int pnv_ocxl_get_tl_cap(struct pci_dev *dev, long *cap, 64 int pnv_ocxl_set_tl_conf(struct pci_dev *dev, long cap, 67 int pnv_ocxl_get_xsl_irq(struct pci_dev *dev, int *hwirq); 70 int pnv_ocxl_map_xsl_regs(struct pci_dev *dev, void __iomem **dsisr, 74 int pnv_ocxl_spa_setup(struct pci_dev *dev, void *spa_mem, int PE_mask, void **platform_data); 78 int pnv_ocxl_map_lpar(struct pci_dev *dev, uint64_t lparid,
|
/openbmc/linux/tools/testing/selftests/drivers/net/bonding/ |
H A D | dev_addr_lists.sh | 28 ip link del "$ifname" &>/dev/null 64 ip link set dev dummy1 master bond1 66 ip link set dev bond1 up 69 grep_bridge_fdb "$lacpdu_mc" bridge fdb show brport dummy1 >/dev/null 72 ip link set dev bond1 down 74 not grep_bridge_fdb "$lacpdu_mc" bridge fdb show brport dummy1 >/dev/null 77 ip link set dev bond1 up 79 grep_bridge_fdb "$lacpdu_mc" bridge fdb show brport dummy1 >/dev/null
|
/openbmc/linux/include/linux/soc/qcom/ |
H A D | mdt_loader.h | 18 int qcom_mdt_pas_init(struct device *dev, const struct firmware *fw, 21 int qcom_mdt_load(struct device *dev, const struct firmware *fw, 26 int qcom_mdt_load_no_init(struct device *dev, const struct firmware *fw, 31 const char *fw_name, struct device *dev); 40 static inline int qcom_mdt_pas_init(struct device *dev, const struct firmware *fw, in qcom_mdt_pas_init() argument 47 static inline int qcom_mdt_load(struct device *dev, const struct firmware *fw, in qcom_mdt_load() argument 55 static inline int qcom_mdt_load_no_init(struct device *dev, in qcom_mdt_load_no_init() argument 67 struct device *dev) in qcom_mdt_read_metadata() argument
|
/openbmc/linux/drivers/memory/tegra/ |
H A D | tegra210-emc-table.c | 13 struct device *dev) in tegra210_emc_table_device_init() argument 15 struct tegra210_emc *emc = dev_get_drvdata(dev); in tegra210_emc_table_device_init() 21 dev_err(dev, "failed to map EMC table\n"); in tegra210_emc_table_device_init() 34 dev_warn(dev, "excess EMC table '%s'\n", rmem->name); in tegra210_emc_table_device_init() 40 dev_warn(dev, "%u derated vs. %u nominal entries\n", in tegra210_emc_table_device_init() 60 struct device *dev) in tegra210_emc_table_device_release() argument 63 struct tegra210_emc *emc = dev_get_drvdata(dev); in tegra210_emc_table_device_release() 67 dev_warn(dev, "trying to release unassigned EMC table '%s'\n", in tegra210_emc_table_device_release()
|