/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_enc.c | 1135 struct s5p_mfc_dev *dev = ctx->dev; in enc_pre_seq_start() local 1143 s5p_mfc_hw_call(dev->mfc_ops, set_enc_stream_buffer, ctx, dst_addr, in enc_pre_seq_start() 1150 struct s5p_mfc_dev *dev = ctx->dev; in enc_post_seq_start() local 1162 s5p_mfc_hw_call(dev->mfc_ops, get_enc_strm_size, in enc_post_seq_start() 1163 dev)); in enc_post_seq_start() 1169 if (!IS_MFCV6_PLUS(dev)) { in enc_post_seq_start() 1173 s5p_mfc_hw_call(dev->mfc_ops, try_run, dev); in enc_post_seq_start() 1175 enc_pb_count = s5p_mfc_hw_call(dev->mfc_ops, in enc_post_seq_start() 1176 get_enc_dpb_count, dev); in enc_post_seq_start() 1179 if (FW_HAS_E_MIN_SCRATCH_BUF(dev)) { in enc_post_seq_start() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | 88pm805.c | 130 dev_err(chip->dev, "incorrect parameters\n"); in device_irq_init_805() 183 dev_err(chip->dev, "regmap is invalid\n"); in device_805_init() 191 dev_err(chip->dev, "Failed to init pm805 irq!\n"); in device_805_init() 195 ret = mfd_add_devices(chip->dev, 0, &codec_devs[0], in device_805_init() 199 dev_err(chip->dev, "Failed to add codec subdev\n"); in device_805_init() 202 dev_info(chip->dev, "[%s]:Added mfd codec_devs\n", __func__); in device_805_init() 216 struct pm80x_platform_data *pdata = dev_get_platdata(&client->dev); in pm805_probe() 220 dev_err(&client->dev, "pm805_init fail!\n"); in pm805_probe() 228 dev_err(chip->dev, "Failed to initialize 88pm805 devices\n"); in pm805_probe() 245 mfd_remove_devices(chip->dev); in pm805_remove()
|
H A D | ti-lmu.c | 138 struct device *dev = &cl->dev; in ti_lmu_probe() local 148 data = of_device_get_match_data(dev); in ti_lmu_probe() 152 lmu = devm_kzalloc(dev, sizeof(*lmu), GFP_KERNEL); in ti_lmu_probe() 156 lmu->dev = &cl->dev; in ti_lmu_probe() 170 lmu->en_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_HIGH); in ti_lmu_probe() 173 dev_err(dev, "Can not request enable GPIO: %d\n", ret); in ti_lmu_probe() 181 ret = devm_add_action_or_reset(dev, ti_lmu_disable_hw, lmu); in ti_lmu_probe() 194 return devm_mfd_add_devices(lmu->dev, 0, data->cells, in ti_lmu_probe()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | restrack.c | 15 static int dump_rsc(struct mlx5_core_dev *dev, enum mlx5_sgmt_type type, in dump_rsc() argument 18 struct mlx5_core_dev *mdev = dev; in dump_rsc() 60 static int fill_res_raw(struct sk_buff *msg, struct mlx5_ib_dev *dev, in fill_res_raw() argument 71 err = dump_rsc(dev->mdev, type, key, data, &len); in fill_res_raw() 153 struct mlx5_ib_dev *dev = to_mdev(ibcq->device); in fill_res_cq_entry_raw() local 156 return fill_res_raw(msg, dev, MLX5_SGMT_TYPE_PRM_QUERY_CQ, cq->mcq.cqn); in fill_res_cq_entry_raw() 161 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); in fill_res_qp_entry_raw() local 163 return fill_res_raw(msg, dev, MLX5_SGMT_TYPE_PRM_QUERY_QP, in fill_res_qp_entry_raw() 175 int mlx5_ib_restrack_init(struct mlx5_ib_dev *dev) in mlx5_ib_restrack_init() argument 177 ib_set_device_ops(&dev->ib_dev, &restrack_ops); in mlx5_ib_restrack_init()
|
H A D | devx.c | 87 struct mlx5_ib_dev *dev; member 112 int mlx5_ib_devx_create(struct mlx5_ib_dev *dev, bool is_user) in mlx5_ib_devx_create() argument 122 if (!MLX5_CAP_GEN(dev->mdev, log_max_uctx)) in mlx5_ib_devx_create() 127 (MLX5_CAP_GEN(dev->mdev, uctx_cap) & MLX5_UCTX_CAP_RAW_TX)) in mlx5_ib_devx_create() 130 (MLX5_CAP_GEN(dev->mdev, uctx_cap) & in mlx5_ib_devx_create() 137 err = mlx5_cmd_exec(dev->mdev, in, sizeof(in), out, sizeof(out)); in mlx5_ib_devx_create() 145 void mlx5_ib_devx_destroy(struct mlx5_ib_dev *dev, u16 uid) in mlx5_ib_devx_destroy() argument 153 mlx5_cmd_exec(dev->mdev, in, sizeof(in), out, sizeof(out)); in mlx5_ib_devx_destroy() 594 struct mlx5_ib_dev *dev = mlx5_udata_to_mdev(&attrs->driver_udata); in devx_is_valid_obj_id() local 619 if (!dev->mdev->issi) in devx_is_valid_obj_id() [all …]
|
/openbmc/linux/drivers/nfc/nfcmrvl/ |
H A D | spi.c | 45 nfc_err(&drv_data->spi->dev, "failed to read spi packet"); in nfcmrvl_spi_int_irq_thread_fn() 50 nfc_err(&drv_data->spi->dev, "corrupted RX packet"); in nfcmrvl_spi_int_irq_thread_fn() 85 nfc_err(priv->dev, "spi_send failed %d", err); in nfcmrvl_spi_nci_send() 134 drv_data = devm_kzalloc(&spi->dev, sizeof(*drv_data), GFP_KERNEL); in nfcmrvl_spi_probe() 142 pdata = spi->dev.platform_data; in nfcmrvl_spi_probe() 144 if (!pdata && spi->dev.of_node) in nfcmrvl_spi_probe() 145 if (nfcmrvl_spi_parse_dt(spi->dev.of_node, &config) == 0) in nfcmrvl_spi_probe() 151 ret = devm_request_threaded_irq(&drv_data->spi->dev, pdata->irq, in nfcmrvl_spi_probe() 156 nfc_err(&drv_data->spi->dev, "Unable to register IRQ handler"); in nfcmrvl_spi_probe() 162 &drv_data->spi->dev, in nfcmrvl_spi_probe()
|
/openbmc/linux/drivers/watchdog/ |
H A D | imx_sc_wdt.c | 160 struct device *dev = &pdev->dev; in imx_sc_wdt_probe() local 163 imx_sc_wdd = devm_kzalloc(dev, sizeof(*imx_sc_wdd), GFP_KERNEL); in imx_sc_wdt_probe() 174 wdog->parent = dev; in imx_sc_wdt_probe() 177 watchdog_init_timeout(wdog, 0, dev); in imx_sc_wdt_probe() 190 dev_warn(dev, "Enable irq failed, pretimeout NOT supported\n"); in imx_sc_wdt_probe() 200 dev_warn(dev, in imx_sc_wdt_probe() 205 ret = devm_add_action_or_reset(dev, imx_sc_wdt_action, in imx_sc_wdt_probe() 210 dev_warn(dev, "Add action failed, pretimeout NOT supported\n"); in imx_sc_wdt_probe() 213 return devm_watchdog_register_device(dev, wdog); in imx_sc_wdt_probe()
|
/openbmc/linux/drivers/input/misc/ |
H A D | ibm-panel.c | 53 dev_dbg(&panel->input->dev, "command invalid: %02x %02x\n", in ibm_panel_process_command() 60 dev_dbg(&panel->input->dev, in ibm_panel_process_command() 72 dev_dbg(&panel->input->dev, "unknown button %u\n", in ibm_panel_process_command() 83 dev_dbg(&panel->input->dev, "event: %u data: %02x\n", event, *val); in ibm_panel_i2c_slave_cb() 92 dev_dbg(&panel->input->dev, in ibm_panel_i2c_slave_cb() 128 panel = devm_kzalloc(&client->dev, sizeof(*panel), GFP_KERNEL); in ibm_panel_probe() 134 panel->input = devm_input_allocate_device(&client->dev); in ibm_panel_probe() 141 error = device_property_read_u32_array(&client->dev, in ibm_panel_probe() 160 dev_err(&client->dev, in ibm_panel_probe() 168 dev_err(&client->dev, in ibm_panel_probe()
|
/openbmc/linux/drivers/phy/mediatek/ |
H A D | phy-mtk-dp.c | 117 dev_err(&phy->dev, in mtk_dp_phy_configure() 165 struct device *dev = &pdev->dev; in mtk_dp_phy_probe() local 170 regs = *(struct regmap **)dev->platform_data; in mtk_dp_phy_probe() 172 return dev_err_probe(dev, -EINVAL, in mtk_dp_phy_probe() 175 dp_phy = devm_kzalloc(dev, sizeof(*dp_phy), GFP_KERNEL); in mtk_dp_phy_probe() 180 phy = devm_phy_create(dev, NULL, &mtk_dp_phy_dev_ops); in mtk_dp_phy_probe() 182 return dev_err_probe(dev, PTR_ERR(phy), in mtk_dp_phy_probe() 186 if (!dev->of_node) in mtk_dp_phy_probe() 187 phy_create_lookup(phy, "dp", dev_name(dev)); in mtk_dp_phy_probe()
|
/openbmc/linux/drivers/phy/allwinner/ |
H A D | phy-sun50i-usb3.c | 136 struct device *dev = &pdev->dev; in sun50i_usb3_phy_probe() local 139 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in sun50i_usb3_phy_probe() 143 phy->clk = devm_clk_get(dev, NULL); in sun50i_usb3_phy_probe() 146 dev_err(dev, "failed to get phy clock\n"); in sun50i_usb3_phy_probe() 150 phy->reset = devm_reset_control_get(dev, NULL); in sun50i_usb3_phy_probe() 152 dev_err(dev, "failed to get reset control\n"); in sun50i_usb3_phy_probe() 160 phy->phy = devm_phy_create(dev, NULL, &sun50i_usb3_phy_ops); in sun50i_usb3_phy_probe() 162 dev_err(dev, "failed to create PHY\n"); in sun50i_usb3_phy_probe() 167 phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); in sun50i_usb3_phy_probe()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | unicast_extensions.sh | 34 if ! which nettest >/dev/null; then 36 if ! which nettest >/dev/null; then 44 hide_output(){ exec 3>&1 4>&2 >/dev/null 2>/dev/null; } 67 ip -n $foo_ns address add $1/$3 dev foo || return 1 69 ip -n $bar_ns address add $2/$3 dev bar || return 1 95 ip -n $foo_ns address add $1/$5 dev foo || return 1 98 ip -n $bar_ns address add $4/$5 dev bar || return 1 101 ip -n $router_ns address add $2/$5 dev foo1 || return 1 103 ip -n $router_ns address add $3/$5 dev bar1 || return 1
|
/openbmc/qemu/tests/functional/ |
H A D | test_virtio_version.py | 82 alldevs = [dev for bus in pcibuses for dev in bus['devices']] 83 devfortest = [dev for dev in alldevs 84 if dev['qdev_id'] == 'devfortest'] 88 def assert_devids(self, dev, devid, non_transitional=False): argument 89 self.assertEqual(dev['id']['vendor'], PCI_VENDOR_ID_REDHAT_QUMRANET) 90 self.assertEqual(dev['id']['device'], devid) 92 self.assertTrue(0x1040 <= dev['id']['device'] <= 0x107f) 93 self.assertGreaterEqual(dev['id']['subsystem'], 0x40)
|
/openbmc/qemu/hw/net/ |
H A D | lasi_i82596.c | 110 static void lasi_82596_realize(DeviceState *dev, Error **errp) in lasi_82596_realize() argument 112 SysBusI82596State *d = SYSBUS_I82596(dev); in lasi_82596_realize() 118 i82596_common_init(dev, s, &net_lasi_82596_info); in lasi_82596_realize() 124 DeviceState *dev; in lasi_82596_init() local 129 dev = qemu_create_nic_device(TYPE_LASI_82596, match_default, "lasi"); in lasi_82596_init() 130 if (!dev) { in lasi_82596_init() 134 s = SYSBUS_I82596(dev); in lasi_82596_init() 136 sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); in lasi_82596_init() 144 static void lasi_82596_reset(DeviceState *dev) in lasi_82596_reset() argument 146 SysBusI82596State *d = SYSBUS_I82596(dev); in lasi_82596_reset()
|
/openbmc/linux/drivers/mailbox/ |
H A D | platform_mhu.c | 94 dev_err(chan->mbox->dev, in platform_mhu_startup() 120 struct device *dev = &pdev->dev; in platform_mhu_probe() local 126 mhu = devm_kzalloc(dev, sizeof(*mhu), GFP_KERNEL); in platform_mhu_probe() 132 dev_err(dev, "ioremap failed\n"); in platform_mhu_probe() 145 mhu->mbox.dev = dev; in platform_mhu_probe() 155 err = devm_mbox_controller_register(dev, &mhu->mbox); in platform_mhu_probe() 157 dev_err(dev, "Failed to register mailboxes %d\n", err); in platform_mhu_probe() 161 dev_info(dev, "Platform MHU Mailbox registered\n"); in platform_mhu_probe()
|
/openbmc/linux/drivers/net/wireless/atmel/ |
H A D | atmel_cs.c | 77 dev_dbg(&p_dev->dev, "atmel_attach()\n"); in atmel_probe() 99 dev_dbg(&link->dev, "atmel_detach\n"); in atmel_detach() 131 did = dev_get_drvdata(&link->dev); in atmel_config() 133 dev_dbg(&link->dev, "atmel_config\n"); in atmel_config() 142 dev_err(&link->dev, "atmel: cannot assign IRQ: check that CONFIG_ISA is set in kernel config."); in atmel_config() 154 &link->dev, in atmel_config() 170 struct net_device *dev = ((struct local_info *)link->priv)->eth_dev; in atmel_release() local 172 dev_dbg(&link->dev, "atmel_release\n"); in atmel_release() 174 if (dev) in atmel_release() 175 stop_atmel_card(dev); in atmel_release()
|
/openbmc/linux/drivers/pcmcia/ |
H A D | ricoh.h | 151 if(socket->dev->vendor == PCI_VENDOR_ID_RICOH) in ricoh_set_zv() 153 switch(socket->dev->device) in ricoh_set_zv() 171 if (socket->dev->device != PCI_DEVICE_ID_RICOH_RL5C476 && in ricoh_set_clkrun() 172 socket->dev->device != PCI_DEVICE_ID_RICOH_RL5C478) in ricoh_set_clkrun() 175 if (socket->dev->revision < 0x80) in ricoh_set_clkrun() 181 dev_dbg(&socket->dev->dev, in ricoh_set_clkrun() 185 dev_info(&socket->dev->dev, in ricoh_set_clkrun() 224 if(socket->dev->device < PCI_DEVICE_ID_RICOH_RL5C475) { in ricoh_override()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | ak5386.c | 90 dev_err(component->dev, "Invalid DAI format\n"); in ak5386_set_dai_fmt() 163 struct device *dev = &pdev->dev; in ak5386_probe() local 167 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in ak5386_probe() 172 dev_set_drvdata(dev, priv); in ak5386_probe() 177 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(priv->supplies), in ak5386_probe() 182 if (of_match_device(of_match_ptr(ak5386_dt_ids), dev)) in ak5386_probe() 183 priv->reset_gpio = of_get_named_gpio(dev->of_node, in ak5386_probe() 187 if (devm_gpio_request_one(dev, priv->reset_gpio, in ak5386_probe() 192 return devm_snd_soc_register_component(dev, &soc_component_ak5386, in ak5386_probe()
|
/openbmc/qemu/hw/mem/ |
H A D | sparse-mem.c | 111 DeviceState *dev; in sparse_mem_init() local 113 dev = qdev_new(TYPE_SPARSE_MEM); in sparse_mem_init() 114 qdev_prop_set_uint64(dev, "baseaddr", addr); in sparse_mem_init() 115 qdev_prop_set_uint64(dev, "length", length); in sparse_mem_init() 116 sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); in sparse_mem_init() 117 sysbus_mmio_map_overlap(SYS_BUS_DEVICE(dev), 0, addr, -10000); in sparse_mem_init() 118 return &SPARSE_MEM(dev)->mmio; in sparse_mem_init() 121 static void sparse_mem_realize(DeviceState *dev, Error **errp) in sparse_mem_realize() argument 123 SparseMemState *s = SPARSE_MEM(dev); in sparse_mem_realize() 124 SysBusDevice *sbd = SYS_BUS_DEVICE(dev); in sparse_mem_realize()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | mp2629_adc.c | 44 struct device *dev; member 119 struct device *dev = &pdev->dev; in mp2629_adc_probe() local 120 struct mp2629_data *ddata = dev_get_drvdata(dev->parent); in mp2629_adc_probe() 125 indio_dev = devm_iio_device_alloc(dev, sizeof(*info)); in mp2629_adc_probe() 131 info->dev = dev; in mp2629_adc_probe() 138 dev_err(dev, "adc enable fail: %d\n", ret); in mp2629_adc_probe() 144 dev_err(dev, "IIO maps register fail: %d\n", ret); in mp2629_adc_probe() 156 dev_err(dev, "IIO device register fail: %d\n", ret); in mp2629_adc_probe()
|
/openbmc/linux/sound/soc/mxs/ |
H A D | mxs-sgtl5000.c | 42 dev_err(codec_dai->dev, "Failed to set sysclk to %u.%03uMHz\n", in mxs_sgtl5000_hw_params() 50 dev_err(cpu_dai->dev, "Failed to set sysclk to %u.%03uMHz\n", in mxs_sgtl5000_hw_params() 113 struct device_node *np = pdev->dev.of_node; in mxs_sgtl5000_probe() 120 dev_err(&pdev->dev, "phandle missing or invalid\n"); in mxs_sgtl5000_probe() 147 dev_err(&pdev->dev, "failed to get mclk\n"); in mxs_sgtl5000_probe() 151 card->dev = &pdev->dev; in mxs_sgtl5000_probe() 159 dev_err(&pdev->dev, "failed to parse audio-routing (%d)\n", in mxs_sgtl5000_probe() 165 ret = devm_snd_soc_register_card(&pdev->dev, card); in mxs_sgtl5000_probe() 167 return dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n"); in mxs_sgtl5000_probe()
|
/openbmc/u-boot/test/dm/ |
H A D | wdt.c | 18 struct udevice *dev; in dm_test_wdt_base() local 21 ut_assertok(uclass_get_device(UCLASS_WDT, 0, &dev)); in dm_test_wdt_base() 22 ut_assertnonnull(dev); in dm_test_wdt_base() 26 ut_assertok(wdt_start(dev, timeout, 0)); in dm_test_wdt_base() 31 ut_assertok(wdt_reset(dev)); in dm_test_wdt_base() 35 ut_assertok(wdt_stop(dev)); in dm_test_wdt_base()
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | tables_phy_ht.h | 14 u32 b43_httab_read(struct b43_wldev *dev, u32 offset); 15 void b43_httab_read_bulk(struct b43_wldev *dev, u32 offset, 17 void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value); 18 void b43_httab_write_few(struct b43_wldev *dev, u32 offset, size_t num, ...); 19 void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset, 22 void b43_phy_ht_tables_init(struct b43_wldev *dev);
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | fw_qos.h | 66 int mlx4_SET_PORT_PRIO2TC(struct mlx4_dev *dev, u8 port, u8 *prio2tc); 84 int mlx4_SET_PORT_SCHEDULER(struct mlx4_dev *dev, u8 port, u8 *tc_tx_bw, 98 int mlx4_ALLOCATE_VPP_get(struct mlx4_dev *dev, u8 port, 113 int mlx4_ALLOCATE_VPP_set(struct mlx4_dev *dev, u8 port, u8 *vpp_p_up); 127 int mlx4_SET_VPORT_QOS_get(struct mlx4_dev *dev, u8 port, u8 vport, 142 int mlx4_SET_VPORT_QOS_set(struct mlx4_dev *dev, u8 port, u8 vport,
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-messages.c | 25 static int skl_alloc_dma_buf(struct device *dev, in skl_alloc_dma_buf() argument 28 return snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, dev, size, dmab); in skl_alloc_dma_buf() 31 static int skl_free_dma_buf(struct device *dev, struct snd_dma_buffer *dmab) in skl_free_dma_buf() argument 50 static int skl_dsp_setup_spib(struct device *dev, unsigned int size, in skl_dsp_setup_spib() argument 53 struct hdac_bus *bus = dev_get_drvdata(dev); in skl_dsp_setup_spib() 69 static int skl_dsp_prepare(struct device *dev, unsigned int format, in skl_dsp_prepare() argument 72 struct hdac_bus *bus = dev_get_drvdata(dev); in skl_dsp_prepare() 96 skl_dsp_setup_spib(dev, size, stream->stream_tag, true); in skl_dsp_prepare() 101 static int skl_dsp_trigger(struct device *dev, bool start, int stream_tag) in skl_dsp_trigger() argument 103 struct hdac_bus *bus = dev_get_drvdata(dev); in skl_dsp_trigger() [all …]
|
/openbmc/linux/drivers/hwtracing/ptt/ |
H A D | hisi_ptt.c | 37 static ssize_t hisi_ptt_tune_attr_show(struct device *dev, in hisi_ptt_tune_attr_show() argument 41 struct hisi_ptt *hisi_ptt = to_hisi_ptt(dev_get_drvdata(dev)); in hisi_ptt_tune_attr_show() 74 static ssize_t hisi_ptt_tune_attr_store(struct device *dev, in hisi_ptt_tune_attr_store() argument 78 struct hisi_ptt *hisi_ptt = to_hisi_ptt(dev_get_drvdata(dev)); in hisi_ptt_tune_attr_store() 340 ret = devm_add_action_or_reset(&pdev->dev, hisi_ptt_irq_free_vectors, pdev); in hisi_ptt_register_irq() 345 ret = devm_request_irq(&pdev->dev, hisi_ptt->trace_irq, hisi_ptt_isr, in hisi_ptt_register_irq() 408 static ssize_t hisi_ptt_filter_show(struct device *dev, struct device_attribute *attr, in hisi_ptt_filter_show() argument 424 struct kobject *kobj = &hisi_ptt->hisi_ptt_pmu.dev->kobj; in hisi_ptt_create_rp_filter_attr() 438 struct kobject *kobj = &hisi_ptt->hisi_ptt_pmu.dev->kobj; in hisi_ptt_remove_rp_filter_attr() 447 struct kobject *kobj = &hisi_ptt->hisi_ptt_pmu.dev->kobj; in hisi_ptt_create_req_filter_attr() [all …]
|