Home
last modified time | relevance | path

Searched refs:dev (Results 726 – 750 of 26031) sorted by relevance

1...<<21222324252627282930>>...1042

/openbmc/linux/drivers/media/pci/cx23885/
H A Dcx23885-417.c921 &dev->pci->dev); in cx23885_load_firmware()
1019 dev->ts1.height, dev->ts1.width); in cx23885_codec_settings()
1021 dev->cxhdl.width = dev->ts1.width; in cx23885_codec_settings()
1022 dev->cxhdl.height = dev->ts1.height; in cx23885_codec_settings()
1361 dev->ts1.width, dev->ts1.height); in vidioc_g_fmt_vid_cap()
1377 dev->ts1.width, dev->ts1.height); in vidioc_try_fmt_vid_cap()
1476 struct cx23885_dev *dev = tsport->dev; in cx23885_video_dev_alloc() local
1516 dev->cxhdl.priv = dev; in cx23885_417_register()
1535 q->dev = &dev->pci->dev; in cx23885_417_register()
1540 video_set_drvdata(dev->v4l_device, dev); in cx23885_417_register()
[all …]
/openbmc/linux/drivers/net/ethernet/i825xx/
H A Dsun3_82586.c172 free_irq(dev->irq, dev); in sun3_82586_close()
189 alloc586(dev); in sun3_82586_open()
190 init586(dev); in sun3_82586_open()
194 ret = request_irq(dev->irq, sun3_82586_interrupt,0,dev->name,dev); in sun3_82586_open()
308 if (!dev) in sun3_82586_probe()
359 dev->mem_end = dev->mem_start + size; in sun3_82586_probe1()
366 if(!check586(dev,(char *) dev->mem_start,size)) { in sun3_82586_probe1()
375 alloc586(dev); in sun3_82586_probe1()
689 if (!dev) { in sun3_82586_interrupt()
1145 alloc586(dev); in set_multicast_list()
[all …]
/openbmc/linux/drivers/net/ethernet/realtek/
H A Datp.c306 if (!dev) in atp_probe1()
317 dev->irq = 7; in atp_probe1()
319 dev->irq = 5; in atp_probe1()
335 dev->name, dev->base_addr, dev->irq, dev->dev_addr); in atp_probe1()
348 dev->if_port = (dev->mem_start & 0xf) ? (dev->mem_start & 0x7) : 4; in atp_probe1()
438 ret = request_irq(dev->irq, atp_interrupt, 0, dev->name, dev); in net_open()
444 lp->dev = dev; in net_open()
635 net_rx(dev); in atp_interrupt()
640 net_rx(dev); in atp_interrupt()
721 struct net_device *dev = lp->dev; in atp_timed_checker() local
[all …]
/openbmc/linux/drivers/staging/greybus/
H A Darche-apb-ctrl.c68 struct device *dev = &pdev->dev; in coldboot_seq() local
80 devm_gpiod_put(dev, apb->spi_en); in coldboot_seq()
99 apb_bootret_deassert(dev); in coldboot_seq()
117 struct device *dev = &pdev->dev; in fw_flashing_seq() local
163 struct device *dev = &pdev->dev; in standby_boot_seq() local
178 devm_gpiod_put(dev, apb->spi_en); in standby_boot_seq()
195 struct device *dev = &pdev->dev; in poweroff_seq() local
288 dev_err(dev, "unknown state\n"); in state_store()
320 struct device *dev = &pdev->dev; in apb_ctrl_get_devtree_data() local
391 struct device *dev = &pdev->dev; in arche_apb_ctrl_probe() local
[all …]
/openbmc/linux/drivers/block/xen-blkback/
H A Dxenbus.c58 struct xenbus_device *dev = blkif->be->dev; in blkback_name() local
542 dev_set_drvdata(&dev->dev, NULL); in xen_blkbk_remove()
555 struct xenbus_device *dev = be->dev; in xen_blkbk_flush_diskcache() local
568 struct xenbus_device *dev = be->dev; in xen_blkbk_discard() local
611 struct xenbus_device *dev = be->dev; in xen_blkbk_barrier() local
642 be->dev = dev; in xen_blkbk_probe()
643 dev_set_drvdata(&dev->dev, be); in xen_blkbk_probe()
657 dev_warn(&dev->dev, in xen_blkbk_probe()
706 struct xenbus_device *dev = be->dev; in backend_changed() local
848 device_unregister(&dev->dev); in frontend_changed()
[all …]
/openbmc/linux/drivers/net/usb/
H A Dcx82310_eth.c45 struct usbnet *dev; member
170 dev->rx_urb_size = 4096; in cx82310_bind()
172 dev->partial_data = (unsigned long) kmalloc(dev->hard_mtu, GFP_KERNEL); in cx82310_bind()
173 if (!dev->partial_data) in cx82310_bind()
181 dev->driver_priv = priv; in cx82310_bind()
183 priv->dev = dev; in cx82310_bind()
220 kfree(dev->driver_priv); in cx82310_bind()
232 kfree(dev->driver_priv); in cx82310_unbind()
253 if (dev->partial_rem) { in cx82310_rx_fixup()
254 len = dev->partial_len + dev->partial_rem; in cx82310_rx_fixup()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_dfs.c169 seq = devm_kzalloc(dev->mt76.dev, sizeof(*seq), GFP_ATOMIC); in mt76x02_dfs_seq_pool_get()
275 switch (dev->mt76.region) { in mt76x02_dfs_check_hw_pulse()
449 switch (dev->mt76.region) { in mt76x02_dfs_create_sequence()
616 struct mt76x02_dev *dev = container_of(dfs_pd, typeof(*dev), dfs_pd); in mt76x02_dfs_tasklet() local
629 mt76x02_dfs_add_events(dev); in mt76x02_dfs_tasklet()
678 switch (dev->mt76.region) { in mt76x02_dfs_init_sw_detector()
718 switch (dev->mt76.region) { in mt76x02_dfs_set_bbp_params()
813 if (is_mt76x2(dev)) { in mt76x02_phy_dfs_adjust_agc()
874 dev->ed_monitor = dev->ed_monitor_enabled && in mt76x02_dfs_set_domain()
876 mt76x02_edcca_init(dev); in mt76x02_dfs_set_domain()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpagealloc.c49 struct mlx5_core_dev *dev; member
82 if (func_id <= max(mlx5_core_max_vfs(dev), mlx5_core_max_ec_vfs(dev))) { in func_id_to_type()
588 struct mlx5_core_dev *dev = req->dev; in pages_work_handler() local
615 struct mlx5_core_dev *dev; in req_pages_handler() local
640 req->dev = dev; in req_pages_handler()
663 return give_pages(dev, func_id, npages, 0, mlx5_core_is_ecpf(dev)); in mlx5_satisfy_startup_pages()
730 WARN(dev->priv.fw_pages, in mlx5_reclaim_startup_pages()
732 dev->priv.fw_pages); in mlx5_reclaim_startup_pages()
750 if (!dev->priv.pg_wq) in mlx5_pagealloc_init()
769 mlx5_eq_notifier_register(dev, &dev->priv.pg_nb); in mlx5_pagealloc_start()
[all …]
/openbmc/u-boot/drivers/serial/
H A Dserial.c141 if (dev->start) in serial_register()
143 if (dev->stop) in serial_register()
147 if (dev->getc) in serial_register()
149 if (dev->tstc) in serial_register()
151 if (dev->putc) in serial_register()
153 if (dev->puts) in serial_register()
202 dev->putc(ch); in serial_stub_putc()
239 memset(&dev, 0, sizeof(dev)); in serial_stdio_init()
250 dev.priv = s; in serial_stdio_init()
325 if (!dev) { in get_current()
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dextack.sh40 ip link set dev br1 up
69 ip link set dev vx2 up &>/dev/null
72 ip link set dev vx2 up 2>&1 >/dev/null | grep -q mlxsw_spectrum
77 ip link del dev vx2
78 ip link del dev br2
80 ip link del dev vx1
81 ip link del dev br1
106 bridge vlan add dev vx1 vid 1 pvid untagged 2>&1 >/dev/null \
132 ip link set dev $swp1 master br1 2>&1 > /dev/null \
139 ip link set dev $swp1 master br1 2>&1 > /dev/null \
[all …]
/openbmc/linux/drivers/net/ethernet/
H A Dethoc.c312 ethoc_write(dev, TX_BD_NUM, dev->num_tx); in ethoc_init_ring()
339 dev->vma[dev->num_tx + i] = vma; in ethoc_init_ring()
461 dev_warn(&dev->dev, in ethoc_rx()
576 dev_dbg(&dev->dev, "packet dropped\n"); in ethoc_interrupt()
732 dev->name, dev); in ethoc_open()
742 dev_dbg(&dev->dev, " resuming queue\n"); in ethoc_open()
745 dev_dbg(&dev->dev, " starting queue\n"); in ethoc_open()
756 dev->base_addr, dev->mem_start, dev->mem_end); in ethoc_open()
772 free_irq(dev->irq, dev); in ethoc_stop()
877 ethoc_interrupt(dev->irq, dev); in ethoc_tx_timeout()
[all …]
/openbmc/linux/drivers/net/ethernet/xircom/
H A Dxirc2ps_cs.c483 if (!dev) in xirc2ps_probe()
486 local->dev = dev; in xirc2ps_probe()
903 SET_NETDEV_DEV(dev, &link->dev); in xirc2ps_config()
912 local->manf_str, (u_long)dev->base_addr, (int)dev->irq, in xirc2ps_config()
913 dev->dev_addr); in xirc2ps_config()
959 do_reset(dev,1); in xirc2ps_resume()
1197 struct net_device *dev = local->dev; in xirc2ps_tx_timeout_task() local
1376 netdev_info(dev, "switching to %s port\n", if_names[dev->if_port]); in do_config()
1391 dev_dbg(&link->dev, "do_open(%p)\n", dev); in do_open()
1475 pr_debug("%s: do_reset(%p,%d)\n", dev->name, dev, full); in do_reset()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dsdio_mcu.c21 struct mt76_sdio *sdio = &dev->mt76.sdio; in mt7663s_mcu_init_sched()
59 struct mt76_connac_pm *pm = &dev->pm; in __mt7663s_mcu_drv_pmctrl()
70 dev_err(dev->mt76.dev, "Cannot get ownership from device"); in __mt7663s_mcu_drv_pmctrl()
88 mutex_lock(&dev->pm.mutex); in mt7663s_mcu_drv_pmctrl()
93 mutex_unlock(&dev->pm.mutex); in mt7663s_mcu_drv_pmctrl()
118 dev_err(dev->mt76.dev, "Cannot set ownership to device"); in mt7663s_mcu_fw_pmctrl()
154 mt7615_mcu_restart(&dev->mt76); in mt7663s_mcu_init()
160 ret = __mt7663_load_firmware(dev); in mt7663s_mcu_init()
164 mcu_ops = devm_kmemdup(dev->mt76.dev, dev->mcu_ops, sizeof(*mcu_ops), in mt7663s_mcu_init()
171 dev->mcu_ops = mcu_ops; in mt7663s_mcu_init()
[all …]
/openbmc/linux/drivers/comedi/drivers/
H A Drtd520.c617 if (!dev->attached) in rtd_interrupt()
1179 rtd_reset(dev); in rtd_init_board()
1240 dev->board_name, dev); in rtd_auto_attach()
1258 if (dev->irq) { in rtd_auto_attach()
1292 dev->pacer = comedi_8254_mm_init(dev->mmio + LAS0_8254_TIMER_BASE, in rtd_auto_attach()
1294 if (!dev->pacer) in rtd_auto_attach()
1307 if (dev->irq) in rtd_auto_attach()
1321 rtd_reset(dev); in rtd_detach()
1322 if (dev->irq) in rtd_detach()
1323 free_irq(dev->irq, dev); in rtd_detach()
[all …]
/openbmc/linux/sound/aoa/soundbus/
H A Dcore.c19 if (!dev) in soundbus_dev_get()
21 tmp = get_device(&dev->ofdev.dev); in soundbus_dev_get()
31 if (dev) in soundbus_dev_put()
32 put_device(&dev->ofdev.dev); in soundbus_dev_put()
66 if (!dev) in soundbus_uevent()
142 if (!dev->attach_codec || in soundbus_add_one()
143 !dev->ofdev.dev.of_node || in soundbus_add_one()
144 dev->pcmname || in soundbus_add_one()
145 dev->pcmid != -1) { in soundbus_add_one()
150 dev_set_name(&dev->ofdev.dev, "soundbus:%x", ++devcount); in soundbus_add_one()
[all …]
/openbmc/u-boot/include/
H A Dtpm_api.h29 u32 tpm_self_test_full(struct udevice *dev);
37 u32 tpm_continue_self_test(struct udevice *dev);
132 u32 tpm_force_clear(struct udevice *dev);
140 u32 tpm_physical_enable(struct udevice *dev);
148 u32 tpm_physical_disable(struct udevice *dev);
202 u32 tpm_end_oiap(struct udevice *dev);
297 u32 tpm_nv_enable_locking(struct udevice *dev);
305 u32 tpm_set_global_lock(struct udevice *dev);
322 u32 tpm_resume(struct udevice *dev);
324 static inline bool tpm_is_v1(struct udevice *dev) in tpm_is_v1() argument
[all …]
/openbmc/linux/drivers/pci/pcie/
H A Daer.c145 int aer = dev->aer_cap; in enable_ecrc_checking()
169 int aer = dev->aer_cap; in disable_ecrc_checking()
228 if (!dev->aer_cap) in pcie_aer_is_native()
371 dev->aer_cap = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); in pci_aer_init()
372 if (!dev->aer_cap) in pci_aer_init()
723 dev->vendor, dev->device, info->status, info->mask); in aer_print_error()
734 trace_aer_event(dev_name(&dev->dev), (info->status & ~info->mask), in aer_print_error()
801 trace_aer_event(dev_name(&dev->dev), (status & ~mask), in cper_print_aer()
814 e_info->dev[e_info->error_dev_num] = pci_dev_get(dev); in add_error_device()
973 pci_dev_put(dev); in handle_error_source()
[all …]
/openbmc/linux/drivers/ata/
H A Dlibata-acpi.c38 kfree(dev->gtf_cache); in ata_acpi_clear_gtf()
69 if (dev) in ata_acpi_detach_device()
137 struct ata_device *dev = ata_hotplug_data(adev->hp).dev; in ata_acpi_dev_notify_dock() local
138 ata_acpi_handle_hotplug(dev->link->ap, dev, event); in ata_acpi_dev_notify_dock()
155 if (dev) { in ata_acpi_uevent()
156 if (dev->sdev) in ata_acpi_uevent()
174 struct ata_device *dev = ata_hotplug_data(adev->hp).dev; in ata_acpi_dev_uevent() local
175 ata_acpi_uevent(dev->link->ap, dev, event); in ata_acpi_dev_uevent()
230 adr = dev->devno; in ata_acpi_bind_dev()
243 context->data.dev = dev; in ata_acpi_bind_dev()
[all …]
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_bitmap.c22 if (blk < dev->internal_start_block || blk > dev->internal_end_block) { in yaffs_block_bits()
28 return dev->chunk_bits + in yaffs_block_bits()
29 (dev->chunk_bit_stride * (blk - dev->internal_start_block)); in yaffs_block_bits()
34 if (blk < dev->internal_start_block || blk > dev->internal_end_block || in yaffs_verify_chunk_bit_id()
45 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bits()
47 memset(blk_bits, 0, dev->chunk_bit_stride); in yaffs_clear_chunk_bits()
52 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bit()
54 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_clear_chunk_bit()
60 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_set_chunk_bit()
68 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_check_chunk_bit()
[all …]
/openbmc/linux/drivers/media/test-drivers/visl/
H A Dvisl-core.c251 kfree(dev); in visl_device_release()
258 struct visl_dev *dev = ctx->dev; in visl_init_ctrls() local
307 ctx->dev = dev; in visl_open()
403 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in visl_probe()
404 if (!dev) in visl_probe()
407 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in visl_probe()
414 vfd = &dev->vfd; in visl_probe()
430 dev->mdev.dev = &pdev->dev; in visl_probe()
431 strscpy(dev->mdev.model, "visl", sizeof(dev->mdev.model)); in visl_probe()
436 dev->v4l2_dev.mdev = &dev->mdev; in visl_probe()
[all …]
/openbmc/linux/sound/isa/sb/
H A Dsb16.c259 port[dev], mpu_port[dev], fm_port[dev]); in snd_card_sb16_pnp()
261 dma8[dev], dma16[dev], irq[dev]); in snd_card_sb16_pnp()
289 #define is_isapnp_selected(dev) isapnp[dev] argument
383 fm_port[dev], fm_port[dev] + 2); in snd_sb16_probe()
473 fm_port[dev] = port[dev]; in snd_sb16_isa_probe1()
479 awe_port[dev] = port[dev] + 0x400; in snd_sb16_isa_probe1()
492 return enable[dev] && !is_isapnp_selected(dev); in snd_sb16_isa_match()
579 for ( ; dev < SNDRV_CARDS; dev++) { in snd_sb16_pnp_detect()
580 if (!enable[dev] || !isapnp[dev]) in snd_sb16_pnp_detect()
582 res = snd_sb16_card_new(&pcard->card->dev, dev, &card); in snd_sb16_pnp_detect()
[all …]
/openbmc/linux/drivers/net/ethernet/8390/
H A Detherh.c268 etherh_setif(dev); in etherh_set_config()
457 if (request_irq(dev->irq, __ei_interrupt, 0, dev->name, dev)) in etherh_open()
482 etherh_reset(dev); in etherh_open()
483 __ei_open(dev); in etherh_open()
494 __ei_close (dev); in etherh_close()
495 free_irq (dev->irq, dev); in etherh_close()
560 strscpy(info->bus_info, dev_name(dev->dev.parent), in etherh_get_drvinfo()
666 if (!dev) { in etherh_probe()
671 SET_NETDEV_DEV(dev, &ec->dev); in etherh_probe()
762 free_netdev(dev); in etherh_probe()
[all …]
H A Dne.c271 dev->base_addr, dev->irq); in ne_probe_isapnp()
338 bad_card = ((dev->base_addr != 0) && (dev->mem_end == BAD)); in ne_probe1()
484 dev->irq = 9; in ne_probe1()
494 ret = request_irq(dev->irq, eip_interrupt, 0, name, dev); in ne_probe1()
537 free_irq(dev->irq, dev); in ne_probe1()
788 if (!dev) in ne_drv_probe()
808 SET_NETDEV_DEV(dev, &pdev->dev); in ne_drv_probe()
830 if (dev) { in ne_drv_remove()
841 free_irq(dev->irq, dev); in ne_drv_remove()
961 if (!dev) in ne_probe()
[all …]
/openbmc/linux/net/dsa/
H A Dmaster.c29 len = ops->get_regs_len(dev); in dsa_master_get_regs_len()
60 len = ops->get_regs_len(dev); in dsa_master_get_regs()
247 dev->ethtool_ops = ops; in dsa_master_ethtool_setup()
355 netdev_dbg(dev, in dsa_master_reset_mtu()
370 consumer_link = device_link_add(ds->dev, dev->dev.parent, in dsa_master_setup()
373 netdev_err(dev, in dsa_master_setup()
375 dev_name(ds->dev)); in dsa_master_setup()
393 dev->dsa_ptr = cpu_dp; in dsa_master_setup()
401 ret = sysfs_create_group(&dev->dev.kobj, &dsa_group); in dsa_master_setup()
416 sysfs_remove_group(&dev->dev.kobj, &dsa_group); in dsa_master_teardown()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dcoredump.c50 switch (mt76_chip(&dev->mt76)) { in mt7996_coredump_get_mem_layout()
88 lockdep_assert_held(&dev->dump_mutex); in mt7996_coredump_new()
106 count = mt76_rr(dev, MT_FW_ASSERT_CNT); in mt7996_coredump_fw_state()
185 mutex_lock(&dev->dump_mutex); in mt7996_coredump_build()
211 mutex_unlock(&dev->dump_mutex); in mt7996_coredump_build()
220 dump = mt7996_coredump_build(dev); in mt7996_coredump_submit()
222 dev_warn(dev->mt76.dev, "no crash dump data found\n"); in mt7996_coredump_submit()
226 dev_coredumpv(dev->mt76.dev, dump, dump->len, GFP_KERNEL); in mt7996_coredump_submit()
239 dev->coredump.crash_data = crash_data; in mt7996_coredump_register()
265 vfree(dev->coredump.crash_data); in mt7996_coredump_unregister()
[all …]

1...<<21222324252627282930>>...1042