/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_cn9k_pf.c | 45 struct device *dev = &oct->pdev->dev; in cn93_dump_regs() local 413 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() 421 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() 434 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() 440 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() 454 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() 463 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() 483 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() 492 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() 501 dev_info(&pdev->dev, in octep_non_ioq_intr_handler_cn93_pf() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | rt712-sdca-dmic.c | 141 dev_err(&rt712->slave->dev, in rt712_sdca_dmic_index_write() 157 dev_err(&rt712->slave->dev, in rt712_sdca_dmic_index_read() 196 pm_runtime_set_active(&slave->dev); in rt712_sdca_dmic_io_init() 199 pm_runtime_get_noresume(&slave->dev); in rt712_sdca_dmic_io_init() 239 pm_runtime_mark_last_busy(&slave->dev); in rt712_sdca_dmic_io_init() 769 dev_set_drvdata(dev, rt712); in rt712_sdca_dmic_init() 796 pm_runtime_use_autosuspend(dev); in rt712_sdca_dmic_init() 799 pm_runtime_mark_last_busy(dev); in rt712_sdca_dmic_init() 801 pm_runtime_enable(dev); in rt712_sdca_dmic_init() 809 dev_dbg(dev, "%s\n", __func__); in rt712_sdca_dmic_init() [all …]
|
H A D | wcd938x-sdw.c | 1220 struct device *dev = &pdev->dev; in wcd9380_probe() local 1247 dev_set_drvdata(dev, wcd); in wcd9380_probe() 1277 pm_runtime_mark_last_busy(dev); in wcd9380_probe() 1278 pm_runtime_set_active(dev); in wcd9380_probe() 1279 pm_runtime_enable(dev); in wcd9380_probe() 1288 pm_runtime_disable(dev); in wcd9380_probe() 1289 pm_runtime_set_suspended(dev); in wcd9380_probe() 1297 struct device *dev = &pdev->dev; in wcd9380_remove() local 1301 pm_runtime_disable(dev); in wcd9380_remove() 1302 pm_runtime_set_suspended(dev); in wcd9380_remove() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-bcm63xx-hsspi.c | 168 dev_warn(dev, "invalid wait mode %u\n", val); in wait_mode_store() 363 dev_warn(&bs->pdev->dev, in bcm63xx_hsspi_do_prepend_txrx() 616 dev_warn_once(&bs->pdev->dev, in bcm63xx_hsspi_do_dummy_cs_txrx() 675 dev_err(&bs->pdev->dev, in bcm63xx_hsspi_transfer_one() 729 struct device *dev = &pdev->dev; in bcm63xx_hsspi_probe() local 743 clk = devm_clk_get(dev, "hsspi"); in bcm63xx_hsspi_probe() 764 pll_clk = devm_clk_get(dev, "pll"); in bcm63xx_hsspi_probe() 807 host->dev.of_node = dev->of_node; in bcm63xx_hsspi_probe() 808 if (!dev->of_node) in bcm63xx_hsspi_probe() 850 pm_runtime_enable(&pdev->dev); in bcm63xx_hsspi_probe() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | s5m8767.c | 21 struct device *dev; member 445 dev_warn(s5m8767->dev, in s5m8767_regulator_config_ext_control() 452 dev_warn(s5m8767->dev, in s5m8767_regulator_config_ext_control() 568 dev_warn(iodev->dev, in s5m8767_pmic_dt_parse_pdata() 575 &pdev->dev, in s5m8767_pmic_dt_parse_pdata() 590 &pdev->dev, reg_np, in s5m8767_pmic_dt_parse_pdata() 597 dev_warn(iodev->dev, in s5m8767_pmic_dt_parse_pdata() 654 dev_info(iodev->dev, in s5m8767_pmic_dt_parse_pdata() 730 s5m8767->dev = &pdev->dev; in s5m8767_pmic_probe() 953 config.dev = s5m8767->dev; in s5m8767_pmic_probe() [all …]
|
/openbmc/linux/drivers/usb/serial/ |
H A D | sierra.c | 131 udev = serial->dev; in sierra_probe() 148 dev_dbg(&serial->dev->dev, "Ignoring interface #%d\n", ifnum); in sierra_probe() 334 retval = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in sierra_send_setup() 470 usb_fill_bulk_urb(urb, serial->dev, in sierra_write() 471 usb_sndbulkpipe(serial->dev, in sierra_write() 606 usb_mark_last_busy(serial->dev); in sierra_instat_callback() 712 usb_fill_bulk_urb(urb, serial->dev, in sierra_setup_urb() 716 dev_dbg(&serial->dev->dev, "%s %c u : %p d:%p\n", __func__, in sierra_setup_urb() 789 usb_clear_halt(serial->dev, in sierra_open() 844 sierra_vsc_set_nmea(serial->dev, 1); in sierra_startup() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | rohm_bu21023.c | 316 struct device *dev = &client->dev; in rohm_ts_manual_calibration() local 474 dev_warn(dev, "calibration timeout\n"); in rohm_ts_manual_calibration() 525 struct device *dev = &client->dev; in rohm_ts_soft_irq() local 596 dev_dbg(dev, in rohm_ts_soft_irq() 645 struct device *dev = &client->dev; in rohm_ts_load_firmware() local 864 struct device *dev = &client->dev; in rohm_ts_device_init() local 1055 dev_err(&client->dev, in rohm_ts_power_off() 1063 dev_err(&client->dev, in rohm_ts_power_off() 1078 dev_err(&client->dev, in rohm_ts_open() 1100 struct device *dev = &client->dev; in rohm_bu21023_i2c_probe() local [all …]
|
/openbmc/linux/drivers/iio/light/ |
H A D | tsl2591.c | 634 dev_err(&client->dev, in tsl2591_set_power_state() 720 pm_runtime_get_sync(&client->dev); in tsl2591_read_raw() 775 pm_runtime_mark_last_busy(&client->dev); in tsl2591_read_raw() 776 pm_runtime_put_autosuspend(&client->dev); in tsl2591_read_raw() 995 pm_runtime_get_sync(&client->dev); in tsl2591_write_event_config() 1110 pm_runtime_disable(&client->dev); in tsl2591_chip_off() 1111 pm_runtime_set_suspended(&client->dev); in tsl2591_chip_off() 1112 pm_runtime_put_noidle(&client->dev); in tsl2591_chip_off() 1124 dev_err(&client->dev, in tsl2591_probe() 1156 dev_err(&client->dev, in tsl2591_probe() [all …]
|
/openbmc/qemu/hw/nvram/ |
H A D | fw_cfg-acpi.c | 13 Aml *dev = aml_device("FWCF"); in fw_cfg_acpi_dsdt_add() local 14 aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0002"))); in fw_cfg_acpi_dsdt_add() 16 aml_append(dev, aml_name_decl("_STA", aml_int(0xB))); in fw_cfg_acpi_dsdt_add() 17 aml_append(dev, aml_name_decl("_CCA", aml_int(1))); in fw_cfg_acpi_dsdt_add() 22 aml_append(dev, aml_name_decl("_CRS", crs)); in fw_cfg_acpi_dsdt_add() 23 aml_append(scope, dev); in fw_cfg_acpi_dsdt_add()
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | bridge_brouter.sh | 14 ebtables -V > /dev/null 2>&1 20 ip -Version > /dev/null 2>&1 50 ip -net ns0 addr add 10.0.0.1/24 dev br0 56 ip -net ns$i addr add 10.0.0.1$i/24 dev eth0 72 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 2>&1 87 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 97 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 106 ip netns exec ns1 ping -q -c 1 10.0.0.12 > /dev/null 2>&1 115 ip netns exec ns2 ping -q -c 1 10.0.0.11 > /dev/null 126 ip netns exec ns1 ping -c 1 -q 10.0.0.12 > /dev/null [all …]
|
/openbmc/linux/drivers/nvmem/ |
H A D | mxs-ocotp.c | 140 struct device *dev = &pdev->dev; in mxs_ocotp_probe() local 146 match = of_match_device(dev->driver->of_match_table, dev); in mxs_ocotp_probe() 150 otp = devm_kzalloc(dev, sizeof(*otp), GFP_KERNEL); in mxs_ocotp_probe() 158 otp->clk = devm_clk_get(&pdev->dev, NULL); in mxs_ocotp_probe() 164 dev_err(dev, "failed to prepare clk: %d\n", ret); in mxs_ocotp_probe() 168 ret = devm_add_action_or_reset(&pdev->dev, mxs_ocotp_action, otp->clk); in mxs_ocotp_probe() 176 ocotp_config.dev = dev; in mxs_ocotp_probe() 177 otp->nvmem = devm_nvmem_register(dev, &ocotp_config); in mxs_ocotp_probe()
|
/openbmc/linux/drivers/power/reset/ |
H A D | reboot-mode.c | 66 struct device_node *np = reboot->dev->of_node; in reboot_mode_register() 76 info = devm_kzalloc(reboot->dev, sizeof(*info), GFP_KERNEL); in reboot_mode_register() 83 dev_err(reboot->dev, "reboot mode %s without magic number\n", in reboot_mode_register() 85 devm_kfree(reboot->dev, info); in reboot_mode_register() 96 dev_err(reboot->dev, "invalid mode name(%s): too short!\n", in reboot_mode_register() 134 static void devm_reboot_mode_release(struct device *dev, void *res) in devm_reboot_mode_release() argument 146 int devm_reboot_mode_register(struct device *dev, in devm_reboot_mode_register() argument 163 devres_add(dev, dr); in devm_reboot_mode_register() 169 static int devm_reboot_mode_match(struct device *dev, void *res, void *data) in devm_reboot_mode_match() argument 184 void devm_reboot_mode_unregister(struct device *dev, in devm_reboot_mode_unregister() argument [all …]
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | scu.c | 123 struct udevice *dev; in scu_ipc_raw_command() local 127 ret = syscon_get_by_driver_data(X86_SYSCON_SCU, &dev); in scu_ipc_raw_command() 131 scu = dev_get_priv(dev); in scu_ipc_raw_command() 170 struct udevice *dev; in scu_ipc_simple_command() local 173 ret = syscon_get_by_driver_data(X86_SYSCON_SCU, &dev); in scu_ipc_simple_command() 177 scu = dev_get_priv(dev); in scu_ipc_simple_command() 197 struct udevice *dev; in scu_ipc_command() local 200 ret = syscon_get_by_driver_data(X86_SYSCON_SCU, &dev); in scu_ipc_command() 204 scu = dev_get_priv(dev); in scu_ipc_command() 209 static int scu_ipc_probe(struct udevice *dev) in scu_ipc_probe() argument [all …]
|
/openbmc/linux/arch/mips/bcm47xx/ |
H A D | setup.c | 179 struct device *dev; in bcm47xx_setup_device() local 182 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in bcm47xx_setup_device() 183 if (!dev) in bcm47xx_setup_device() 186 err = dev_set_name(dev, "bcm47xx_soc"); in bcm47xx_setup_device() 189 kfree(dev); in bcm47xx_setup_device() 193 err = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32)); in bcm47xx_setup_device() 197 return dev; in bcm47xx_setup_device() 211 bcm47xx_bus.bcma.dev = bcm47xx_setup_device(); in bcm47xx_bus_setup() 212 if (!bcm47xx_bus.bcma.dev) in bcm47xx_bus_setup() 267 if (device_register(bcm47xx_bus.bcma.dev)) in bcm47xx_register_bus_complete()
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_vbc.c | 20 struct device *dev = kobj_to_dev(kobj); in vboot_context_read() local 21 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in vboot_context_read() 45 dev_err(dev, "Error sending read request: %d\n", err); in vboot_context_read() 60 struct device *dev = kobj_to_dev(kobj); in vboot_context_write() local 61 struct cros_ec_dev *ec = to_cros_ec_dev(dev); in vboot_context_write() 88 dev_err(dev, "Error sending write request: %d\n", err); in vboot_context_write() 111 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_vbc_probe() 112 struct device *dev = &pd->dev; in cros_ec_vbc_probe() local 118 dev_err(dev, "failed to create %s attributes. err=%d\n", in cros_ec_vbc_probe() 126 struct cros_ec_dev *ec_dev = dev_get_drvdata(pd->dev.parent); in cros_ec_vbc_remove()
|
/openbmc/qemu/hw/9pfs/ |
H A D | 9p-util.h | 36 uint64_t dev; in makedev_dotl() local 39 dev = (((uint64_t) (dev_major & 0x00000fffu)) << 8); in makedev_dotl() 40 dev |= (((uint64_t) (dev_major & 0xfffff000u)) << 32); in makedev_dotl() 41 dev |= (((uint64_t) (dev_minor & 0x000000ffu)) << 0); in makedev_dotl() 42 dev |= (((uint64_t) (dev_minor & 0xffffff00u)) << 12); in makedev_dotl() 43 return dev; in makedev_dotl() 54 static inline uint64_t host_dev_to_dotl_dev(dev_t dev) in host_dev_to_dotl_dev() argument 57 return dev; in host_dev_to_dotl_dev() 59 return makedev_dotl(major(dev), minor(dev)); in host_dev_to_dotl_dev() 261 int qemu_mknodat(int dirfd, const char *filename, mode_t mode, dev_t dev);
|
/openbmc/linux/drivers/net/wireless/marvell/libertas/ |
H A D | tx.c | 65 netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) in lbs_hard_start_xmit() argument 68 struct lbs_private *priv = dev->ml_priv; in lbs_hard_start_xmit() 86 dev->stats.tx_dropped++; in lbs_hard_start_xmit() 87 dev->stats.tx_errors++; in lbs_hard_start_xmit() 92 netif_stop_queue(priv->dev); in lbs_hard_start_xmit() 100 lbs_deb_tx("Packet on %s while busy\n", dev->name); in lbs_hard_start_xmit() 137 lbs_mesh_set_txpd(priv, dev, txpd); in lbs_hard_start_xmit() 150 dev->stats.tx_packets++; in lbs_hard_start_xmit() 151 dev->stats.tx_bytes += skb->len; in lbs_hard_start_xmit() 195 priv->dev); in lbs_send_tx_feedback() [all …]
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | histb-rng.c | 87 depth_show(struct device *dev, struct device_attribute *attr, char *buf) in depth_show() argument 89 struct histb_rng_priv *priv = dev_get_drvdata(dev); in depth_show() 96 depth_store(struct device *dev, struct device_attribute *attr, in depth_store() argument 99 struct histb_rng_priv *priv = dev_get_drvdata(dev); in depth_store() 121 struct device *dev = &pdev->dev; in histb_rng_probe() local 126 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in histb_rng_probe() 136 dev_err(dev, "cannot bring up device\n"); in histb_rng_probe() 143 ret = devm_hwrng_register(dev, &priv->rng); in histb_rng_probe() 145 dev_err(dev, "failed to register hwrng: %d\n", ret); in histb_rng_probe() 150 dev_set_drvdata(dev, priv); in histb_rng_probe()
|
/openbmc/linux/drivers/hwmon/ |
H A D | ltc4151.c | 48 static struct ltc4151_data *ltc4151_update_device(struct device *dev) in ltc4151_update_device() argument 50 struct ltc4151_data *data = dev_get_drvdata(dev); in ltc4151_update_device() 63 dev_dbg(&client->dev, "Starting ltc4151 update\n"); in ltc4151_update_device() 71 dev_dbg(dev, in ltc4151_update_device() 120 static ssize_t ltc4151_value_show(struct device *dev, in ltc4151_value_show() argument 124 struct ltc4151_data *data = ltc4151_update_device(dev); in ltc4151_value_show() 160 struct device *dev = &client->dev; in ltc4151_probe() local 168 data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); in ltc4151_probe() 172 if (of_property_read_u32(client->dev.of_node, in ltc4151_probe() 184 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ltc4151_probe()
|
/openbmc/linux/samples/bpf/ |
H A D | test_cgrp2_tc.sh | 75 $IP link set dev $HOST_IFC up || return $? 80 $IP link set dev $NS_IFC netns $NS || return $? 81 $IP -n $NS link set dev $NS_IFC up || return $? 84 $TC qdisc add dev $HOST_IFC clsact || return $? 85 $TC filter add dev $HOST_IFC egress bpf da obj $BPF_PROG sec $BPF_SECTION || return $? 104 local dropped=$($TC -s qdisc show dev $HOST_IFC | tail -3 | \ 128 $IP link show dev $HOST_IFC 129 $IP -6 a show dev $HOST_IFC 130 $TC -s qdisc show dev $HOST_IFC 133 $IP -n $NS link show dev $NS_IFC [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | ts4800_wdt.c | 109 struct device *dev = &pdev->dev; in ts4800_wdt_probe() local 110 struct device_node *np = dev->of_node; in ts4800_wdt_probe() 119 dev_err(dev, "no syscon property\n"); in ts4800_wdt_probe() 125 dev_err(dev, "no offset in syscon\n"); in ts4800_wdt_probe() 131 wdt = devm_kzalloc(dev, sizeof(*wdt), GFP_KERNEL); in ts4800_wdt_probe() 142 dev_err(dev, "cannot get parent's regmap\n"); in ts4800_wdt_probe() 148 wdd->parent = dev; in ts4800_wdt_probe() 156 watchdog_init_timeout(wdd, 0, dev); in ts4800_wdt_probe() 174 ret = devm_watchdog_register_device(dev, wdd); in ts4800_wdt_probe() 180 dev_info(dev, "initialized (timeout = %d sec, nowayout = %d)\n", in ts4800_wdt_probe()
|
/openbmc/linux/drivers/net/can/usb/kvaser_usb/ |
H A D | kvaser_usb.h | 118 struct kvaser_usb *dev; member 169 int (*dev_setup_endpoints)(struct kvaser_usb *dev); 170 int (*dev_init_card)(struct kvaser_usb *dev); 173 int (*dev_get_software_info)(struct kvaser_usb *dev); 174 int (*dev_get_software_details)(struct kvaser_usb *dev); 175 int (*dev_get_card_info)(struct kvaser_usb *dev); 176 int (*dev_get_capabilities)(struct kvaser_usb *dev); 180 int (*dev_reset_chip)(struct kvaser_usb *dev, int channel); 182 void (*dev_read_bulk_callback)(struct kvaser_usb *dev, void *buf, 207 int kvaser_usb_recv_cmd(const struct kvaser_usb *dev, void *cmd, int len, [all …]
|
/openbmc/linux/drivers/mtd/hyperbus/ |
H A D | hyperbus-core.c | 64 struct device *dev; in hyperbus_register_device() local 67 if (!hbdev || !hbdev->np || !hbdev->ctlr || !hbdev->ctlr->dev) { in hyperbus_register_device() 75 dev_err(ctlr->dev, "\"cypress,hyperflash\" compatible missing\n"); in hyperbus_register_device() 81 dev = ctlr->dev; in hyperbus_register_device() 83 map->name = dev_name(dev); in hyperbus_register_device() 102 dev_err(dev, "Calibration failed\n"); in hyperbus_register_device() 111 dev_err(dev, "probing of hyperbus device failed\n"); in hyperbus_register_device() 115 hbdev->mtd->dev.parent = dev; in hyperbus_register_device() 120 dev_err(dev, "failed to register mtd device\n"); in hyperbus_register_device()
|
/openbmc/linux/include/linux/mlx5/ |
H A D | eswitch.h | 38 int (*load)(struct mlx5_core_dev *dev, struct mlx5_eswitch_rep *rep); 79 mlx5_eswitch_get_encap_mode(const struct mlx5_core_dev *dev); 150 u8 mlx5_eswitch_mode(const struct mlx5_core_dev *dev); 151 u16 mlx5_eswitch_get_total_vports(const struct mlx5_core_dev *dev); 156 static inline u8 mlx5_eswitch_mode(const struct mlx5_core_dev *dev) in mlx5_eswitch_mode() argument 162 mlx5_eswitch_get_encap_mode(const struct mlx5_core_dev *dev) in mlx5_eswitch_get_encap_mode() argument 191 static inline u16 mlx5_eswitch_get_total_vports(const struct mlx5_core_dev *dev) in mlx5_eswitch_get_total_vports() argument 203 static inline bool is_mdev_legacy_mode(struct mlx5_core_dev *dev) in is_mdev_legacy_mode() argument 205 return mlx5_eswitch_mode(dev) == MLX5_ESWITCH_LEGACY; in is_mdev_legacy_mode() 208 static inline bool is_mdev_switchdev_mode(struct mlx5_core_dev *dev) in is_mdev_switchdev_mode() argument [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-pisosr.c | 126 struct device *dev = &spi->dev; in pisosr_gpio_probe() local 130 gpio = devm_kzalloc(dev, sizeof(*gpio), GFP_KERNEL); in pisosr_gpio_probe() 135 gpio->chip.parent = dev; in pisosr_gpio_probe() 136 of_property_read_u16(dev->of_node, "ngpios", &gpio->chip.ngpio); in pisosr_gpio_probe() 141 gpio->buffer = devm_kzalloc(dev, gpio->buffer_size, GFP_KERNEL); in pisosr_gpio_probe() 145 gpio->load_gpio = devm_gpiod_get_optional(dev, "load", GPIOD_OUT_LOW); in pisosr_gpio_probe() 147 return dev_err_probe(dev, PTR_ERR(gpio->load_gpio), in pisosr_gpio_probe() 151 ret = devm_add_action_or_reset(dev, pisosr_mutex_destroy, &gpio->lock); in pisosr_gpio_probe() 155 ret = devm_gpiochip_add_data(dev, &gpio->chip, gpio); in pisosr_gpio_probe() 157 dev_err(dev, "Unable to register gpiochip\n"); in pisosr_gpio_probe()
|