/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | tables_phy_lcn.c | 457 u32 b43_lcntab_read(struct b43_wldev *dev, u32 offset) in b43_lcntab_read() argument 467 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset); in b43_lcntab_read() 468 value = b43_phy_read(dev, B43_PHY_LCN_TABLE_DATALO) & 0xFF; in b43_lcntab_read() 471 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset); in b43_lcntab_read() 472 value = b43_phy_read(dev, B43_PHY_LCN_TABLE_DATALO); in b43_lcntab_read() 475 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset); in b43_lcntab_read() 476 value = b43_phy_read(dev, B43_PHY_LCN_TABLE_DATALO); in b43_lcntab_read() 477 value |= (b43_phy_read(dev, B43_PHY_LCN_TABLE_DATAHI) << 16); in b43_lcntab_read() 487 void b43_lcntab_read_bulk(struct b43_wldev *dev, u32 offset, in b43_lcntab_read_bulk() argument 498 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset); in b43_lcntab_read_bulk() [all …]
|
/openbmc/linux/drivers/net/ethernet/3com/ |
H A D | 3c509.c | 183 static int el3_common_init(struct net_device *dev); 184 static void el3_common_remove(struct net_device *dev); 187 static int el3_open(struct net_device *dev); 188 static netdev_tx_t el3_start_xmit(struct sk_buff *skb, struct net_device *dev); 190 static void update_stats(struct net_device *dev); 191 static struct net_device_stats *el3_get_stats(struct net_device *dev); 192 static int el3_rx(struct net_device *dev); 193 static int el3_close(struct net_device *dev); 194 static void set_multicast_list(struct net_device *dev); 195 static void el3_tx_timeout (struct net_device *dev, unsigned int txqueue); [all …]
|
/openbmc/linux/drivers/net/wan/ |
H A D | hdlc.c | 45 static int hdlc_rcv(struct sk_buff *skb, struct net_device *dev, in hdlc_rcv() argument 51 if (!(dev->priv_flags & IFF_WAN_HDLC)) { in hdlc_rcv() 56 hdlc = dev_to_hdlc(dev); in hdlc_rcv() 58 if (!net_eq(dev_net(dev), &init_net)) { in hdlc_rcv() 67 netdev_tx_t hdlc_start_xmit(struct sk_buff *skb, struct net_device *dev) in hdlc_start_xmit() argument 69 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_start_xmit() 72 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit() 74 return hdlc->xmit(skb, dev); /* call hardware driver directly */ in hdlc_start_xmit() 78 static inline void hdlc_proto_start(struct net_device *dev) in hdlc_proto_start() argument 80 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_proto_start() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_beacon.c | 10 static void mt76x02_set_beacon_offsets(struct mt76x02_dev *dev) in mt76x02_set_beacon_offsets() argument 16 for (i = 0; i < dev->beacon_ops->nslots; i++) { in mt76x02_set_beacon_offsets() 17 val = i * dev->beacon_ops->slot_size; in mt76x02_set_beacon_offsets() 22 mt76_wr(dev, MT_BCN_OFFSET(i), regs[i]); in mt76x02_set_beacon_offsets() 26 mt76x02_write_beacon(struct mt76x02_dev *dev, int offset, struct sk_buff *skb) in mt76x02_write_beacon() argument 28 int beacon_len = dev->beacon_ops->slot_size; in mt76x02_write_beacon() 36 if (mt76_is_usb(&dev->mt76)) { in mt76x02_write_beacon() 40 mt76x02_mac_write_txwi(dev, txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon() 45 mt76x02_mac_write_txwi(dev, &txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon() 46 mt76_wr_copy(dev, offset, &txwi, sizeof(txwi)); in mt76x02_write_beacon() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pm_wakeup.h | 61 struct device *dev; member 77 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup() argument 79 return dev->power.can_wakeup; in device_can_wakeup() 82 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup() argument 84 return dev->power.can_wakeup && !!dev->power.wakeup; in device_may_wakeup() 87 static inline bool device_wakeup_path(struct device *dev) in device_wakeup_path() argument 89 return dev->power.wakeup_path; in device_wakeup_path() 92 static inline void device_set_wakeup_path(struct device *dev) in device_set_wakeup_path() argument 94 dev->power.wakeup_path = true; in device_set_wakeup_path() 102 extern struct wakeup_source *wakeup_source_register(struct device *dev, [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | mn88473.c | 20 struct mn88473_dev *dev = i2c_get_clientdata(client); in mn88473_set_frontend() local 28 dev_dbg(&client->dev, in mn88473_set_frontend() 33 if (!dev->active) { in mn88473_set_frontend() 96 dev_dbg(&client->dev, "get_if_frequency=%u\n", if_frequency); in mn88473_set_frontend() 103 uitmp = DIV_ROUND_CLOSEST_ULL((u64) if_frequency * 0x1000000, dev->clk); in mn88473_set_frontend() 108 ret = regmap_write(dev->regmap[2], 0x05, 0x00); in mn88473_set_frontend() 111 ret = regmap_write(dev->regmap[2], 0xfb, 0x13); in mn88473_set_frontend() 114 ret = regmap_write(dev->regmap[2], 0xef, 0x13); in mn88473_set_frontend() 117 ret = regmap_write(dev->regmap[2], 0xf9, 0x13); in mn88473_set_frontend() 120 ret = regmap_write(dev->regmap[2], 0x00, 0x18); in mn88473_set_frontend() [all …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | smscufx.c | 78 struct ufx_data *dev; member 134 static struct urb *ufx_get_urb(struct ufx_data *dev); 135 static int ufx_submit_urb(struct ufx_data *dev, struct urb * urb, size_t len); 136 static int ufx_alloc_urb_list(struct ufx_data *dev, int count, size_t size); 137 static void ufx_free_urb_list(struct ufx_data *dev); 142 static int ufx_reg_read(struct ufx_data *dev, u32 index, u32 *data) in ufx_reg_read() argument 147 BUG_ON(!dev); in ufx_reg_read() 152 ret = usb_control_msg(dev->udev, usb_rcvctrlpipe(dev->udev, 0), in ufx_reg_read() 168 static int ufx_reg_write(struct ufx_data *dev, u32 index, u32 data) in ufx_reg_write() argument 173 BUG_ON(!dev); in ufx_reg_write() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_vio.c | 46 SpaprVioDevice *dev = VIO_SPAPR_DEVICE(qdev); in spapr_vio_get_dev_name() local 47 SpaprVioDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev); in spapr_vio_get_dev_name() 50 return g_strdup_printf("%s@%x", pc->dt_name, dev->reg); in spapr_vio_get_dev_name() 71 SpaprVioDevice *dev = NULL; in spapr_vio_find_by_reg() local 74 dev = (SpaprVioDevice *)kid->child; in spapr_vio_find_by_reg() 75 if (dev->reg == reg) { in spapr_vio_find_by_reg() 76 return dev; in spapr_vio_find_by_reg() 83 static int vio_make_devnode(SpaprVioDevice *dev, in vio_make_devnode() argument 86 SpaprVioDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev); in vio_make_devnode() 96 dt_name = spapr_vio_get_dev_name(DEVICE(dev)); in vio_make_devnode() [all …]
|
/openbmc/linux/drivers/net/ethernet/8390/ |
H A D | mac8390.c | 123 extern int mac8390_memtest(struct net_device *dev); 124 static int mac8390_initdev(struct net_device *dev, struct nubus_board *board, 127 static int mac8390_open(struct net_device *dev); 128 static int mac8390_close(struct net_device *dev); 129 static void mac8390_no_reset(struct net_device *dev); 130 static void interlan_reset(struct net_device *dev); 133 static void sane_get_8390_hdr(struct net_device *dev, 135 static void sane_block_input(struct net_device *dev, int count, 137 static void sane_block_output(struct net_device *dev, int count, 141 static void dayna_memcpy_fromcard(struct net_device *dev, void *to, [all …]
|
H A D | axnet_cs.c | 79 static int axnet_open(struct net_device *dev); 80 static int axnet_close(struct net_device *dev); 81 static int axnet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 83 struct net_device *dev); 84 static struct net_device_stats *get_stats(struct net_device *dev); 85 static void set_multicast_list(struct net_device *dev); 86 static void axnet_tx_timeout(struct net_device *dev, unsigned int txqueue); 89 static void axnet_reset_8390(struct net_device *dev); 96 static void block_input(struct net_device *dev, int count, 98 static void block_output(struct net_device *dev, int count, [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | quirks.c | 84 int pcie_failed_link_retrain(struct pci_dev *dev) in pcie_failed_link_retrain() argument 93 if (!pci_is_pcie(dev) || !pcie_downstream_port(dev) || in pcie_failed_link_retrain() 94 !pcie_cap_has_lnkctl2(dev) || !dev->link_active_reporting) in pcie_failed_link_retrain() 97 pcie_capability_read_word(dev, PCI_EXP_LNKCTL2, &lnkctl2); in pcie_failed_link_retrain() 98 pcie_capability_read_word(dev, PCI_EXP_LNKSTA, &lnksta); in pcie_failed_link_retrain() 103 pci_info(dev, "broken device, retraining non-functional downstream link at 2.5GT/s\n"); in pcie_failed_link_retrain() 107 pcie_capability_write_word(dev, PCI_EXP_LNKCTL2, lnkctl2); in pcie_failed_link_retrain() 109 ret = pcie_retrain_link(dev, false); in pcie_failed_link_retrain() 111 pci_info(dev, "retraining failed\n"); in pcie_failed_link_retrain() 112 pcie_capability_write_word(dev, PCI_EXP_LNKCTL2, in pcie_failed_link_retrain() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | init.c | 46 static ssize_t mt7915_thermal_temp_show(struct device *dev, in mt7915_thermal_temp_show() argument 50 struct mt7915_phy *phy = dev_get_drvdata(dev); in mt7915_thermal_temp_show() 72 static ssize_t mt7915_thermal_temp_store(struct device *dev, in mt7915_thermal_temp_store() argument 76 struct mt7915_phy *phy = dev_get_drvdata(dev); in mt7915_thermal_temp_store() 84 mutex_lock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store() 91 dev_err(phy->dev->mt76.dev, in mt7915_thermal_temp_store() 93 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store() 98 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store() 150 dev_err(phy->dev->mt76.dev, in mt7915_thermal_set_cur_throttle_state() 184 sysfs_remove_link(&wiphy->dev.kobj, "cooling_device"); in mt7915_unregister_thermal() [all …]
|
/openbmc/linux/sound/usb/ |
H A D | quirks.c | 43 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk() 55 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk() 108 usb_set_interface(chip->dev, altsd->bInterfaceNumber, 0); in create_standard_audio_quirk() 204 usb_set_interface(chip->dev, fp->iface, 0); in create_fixed_stream_quirk() 483 usb_set_interface(chip->dev, fp->iface, 0); in create_uaxx_quirk() 555 static int snd_usb_extigy_boot_quirk(struct usb_device *dev, struct usb_interface *intf) in snd_usb_extigy_boot_quirk() argument 557 struct usb_host_config *config = dev->actconfig; in snd_usb_extigy_boot_quirk() 563 dev_dbg(&dev->dev, "sending Extigy boot sequence...\n"); in snd_usb_extigy_boot_quirk() 565 err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev,0), in snd_usb_extigy_boot_quirk() 568 dev_dbg(&dev->dev, "error sending boot message: %d\n", err); in snd_usb_extigy_boot_quirk() [all …]
|
/openbmc/linux/sound/soc/atmel/ |
H A D | atmel-i2s.c | 197 struct device *dev; member 211 struct atmel_i2s_dev *dev = dev_id; in atmel_i2s_interrupt() local 215 regmap_read(dev->regmap, ATMEL_I2SC_SR, &sr); in atmel_i2s_interrupt() 216 regmap_read(dev->regmap, ATMEL_I2SC_IMR, &imr); in atmel_i2s_interrupt() 228 dev_err(dev->dev, in atmel_i2s_interrupt() 232 regmap_write(dev->regmap, ATMEL_I2SC_SCR, mask); in atmel_i2s_interrupt() 242 dev_err(dev->dev, in atmel_i2s_interrupt() 246 regmap_write(dev->regmap, ATMEL_I2SC_SCR, mask); in atmel_i2s_interrupt() 265 struct atmel_i2s_dev *dev = snd_soc_dai_get_drvdata(dai); in atmel_i2s_set_dai_fmt() local 267 dev->fmt = fmt; in atmel_i2s_set_dai_fmt() [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_nand.c | 20 int yaffs_rd_chunk_tags_nand(struct yaffs_dev *dev, int nand_chunk, in yaffs_rd_chunk_tags_nand() argument 25 int flash_chunk = nand_chunk - dev->chunk_offset; in yaffs_rd_chunk_tags_nand() 27 dev->n_page_reads++; in yaffs_rd_chunk_tags_nand() 33 if (dev->param.read_chunk_tags_fn) in yaffs_rd_chunk_tags_nand() 35 dev->param.read_chunk_tags_fn(dev, flash_chunk, buffer, in yaffs_rd_chunk_tags_nand() 38 result = yaffs_tags_compat_rd(dev, in yaffs_rd_chunk_tags_nand() 43 bi = yaffs_get_block_info(dev, in yaffs_rd_chunk_tags_nand() 45 dev->param.chunks_per_block); in yaffs_rd_chunk_tags_nand() 46 yaffs_handle_chunk_error(dev, bi); in yaffs_rd_chunk_tags_nand() 51 int yaffs_wr_chunk_tags_nand(struct yaffs_dev *dev, in yaffs_wr_chunk_tags_nand() argument [all …]
|
/openbmc/linux/drivers/media/pci/cx25821/ |
H A D | cx25821-medusa-video.c | 21 static void medusa_enable_bluefield_output(struct cx25821_dev *dev, int channel, in medusa_enable_bluefield_output() argument 63 value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl, &tmp); in medusa_enable_bluefield_output() 67 cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl, value); in medusa_enable_bluefield_output() 69 value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl_ns, &tmp); in medusa_enable_bluefield_output() 73 cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl_ns, value); in medusa_enable_bluefield_output() 76 static int medusa_initialize_ntsc(struct cx25821_dev *dev) in medusa_initialize_ntsc() argument 85 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc() 90 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 94 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc() 98 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-ibm_iic.c | 81 static void dump_iic_regs(const char* header, struct ibm_iic_private* dev) in dump_iic_regs() argument 83 volatile struct iic_regs __iomem *iic = dev->vaddr; in dump_iic_regs() 84 printk(KERN_DEBUG "ibm-iic%d: %s\n", dev->idx, header); in dump_iic_regs() 94 # define DUMP_REGS(h,dev) dump_iic_regs((h),(dev)) argument 96 # define DUMP_REGS(h,dev) ((void)0) argument 125 static inline void iic_interrupt_mode(struct ibm_iic_private* dev, int enable) in iic_interrupt_mode() argument 127 out_8(&dev->vaddr->intmsk, enable ? INTRMSK_EIMTC : 0); in iic_interrupt_mode() 133 static void iic_dev_init(struct ibm_iic_private* dev) in iic_dev_init() argument 135 volatile struct iic_regs __iomem *iic = dev->vaddr; in iic_dev_init() 137 DBG("%d: init\n", dev->idx); in iic_dev_init() [all …]
|
/openbmc/linux/drivers/staging/most/i2c/ |
H A D | i2c.c | 71 struct hdm_i2c *dev = to_hdm(most_iface); in configure_channel() local 81 if (channel_config->direction != dev->capabilities[ch_idx].direction) { in configure_channel() 88 if (dev->client->irq <= 0) { in configure_channel() 89 pr_err("bad irq: %d\n", dev->client->irq); in configure_channel() 92 dev->rx.int_disabled = false; in configure_channel() 93 ret = request_irq(dev->client->irq, most_irq_handler, 0, in configure_channel() 94 dev->client->name, dev); in configure_channel() 97 dev->client->irq, ret); in configure_channel() 102 dev->rx.delay = delay ? delay : 1; in configure_channel() 103 pr = MSEC_PER_SEC / jiffies_to_msecs(dev->rx.delay); in configure_channel() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | debugfs.c | 9 struct mt792x_dev *dev = data; in mt7921_reg_set() local 11 mt792x_mutex_acquire(dev); in mt7921_reg_set() 12 mt76_wr(dev, dev->mt76.debugfs_reg, val); in mt7921_reg_set() 13 mt792x_mutex_release(dev); in mt7921_reg_set() 21 struct mt792x_dev *dev = data; in mt7921_reg_get() local 23 mt792x_mutex_acquire(dev); in mt7921_reg_get() 24 *val = mt76_rr(dev, dev->mt76.debugfs_reg); in mt7921_reg_get() 25 mt792x_mutex_release(dev); in mt7921_reg_get() 35 struct mt792x_dev *dev = data; in mt7921_fw_debug_set() local 37 mt792x_mutex_acquire(dev); in mt7921_fw_debug_set() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | pinctrl.c | 21 int pinctrl_bind_pins(struct device *dev) in pinctrl_bind_pins() argument 25 if (dev->of_node_reused) in pinctrl_bind_pins() 28 dev->pins = devm_kzalloc(dev, sizeof(*(dev->pins)), GFP_KERNEL); in pinctrl_bind_pins() 29 if (!dev->pins) in pinctrl_bind_pins() 32 dev->pins->p = devm_pinctrl_get(dev); in pinctrl_bind_pins() 33 if (IS_ERR(dev->pins->p)) { in pinctrl_bind_pins() 34 dev_dbg(dev, "no pinctrl handle\n"); in pinctrl_bind_pins() 35 ret = PTR_ERR(dev->pins->p); in pinctrl_bind_pins() 39 dev->pins->default_state = pinctrl_lookup_state(dev->pins->p, in pinctrl_bind_pins() 41 if (IS_ERR(dev->pins->default_state)) { in pinctrl_bind_pins() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_pci.c | 45 static int drm_get_pci_domain(struct drm_device *dev) in drm_get_pci_domain() argument 52 if (dev->if_version < 0x10004) in drm_get_pci_domain() 56 return pci_domain_nr(to_pci_dev(dev->dev)->bus); in drm_get_pci_domain() 59 int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master) in drm_pci_set_busid() argument 61 struct pci_dev *pdev = to_pci_dev(dev->dev); in drm_pci_set_busid() 64 drm_get_pci_domain(dev), in drm_pci_set_busid() 77 static int drm_legacy_pci_irq_by_busid(struct drm_device *dev, struct drm_irq_busid *p) in drm_legacy_pci_irq_by_busid() argument 79 struct pci_dev *pdev = to_pci_dev(dev->dev); in drm_legacy_pci_irq_by_busid() 81 if ((p->busnum >> 8) != drm_get_pci_domain(dev) || in drm_legacy_pci_irq_by_busid() 105 int drm_legacy_irq_by_busid(struct drm_device *dev, void *data, in drm_legacy_irq_by_busid() argument [all …]
|
/openbmc/linux/drivers/w1/ |
H A D | w1.c | 61 static int w1_master_probe(struct device *dev) in w1_master_probe() argument 66 static void w1_master_release(struct device *dev) in w1_master_release() argument 68 struct w1_master *md = dev_to_w1_master(dev); in w1_master_release() 70 dev_dbg(dev, "%s: Releasing %s.\n", __func__, md->name); in w1_master_release() 75 static void w1_slave_release(struct device *dev) in w1_slave_release() argument 77 struct w1_slave *sl = dev_to_w1_slave(dev); in w1_slave_release() 79 dev_dbg(dev, "%s: Releasing %s [%p]\n", __func__, sl->name, sl); in w1_slave_release() 85 static ssize_t name_show(struct device *dev, struct device_attribute *attr, char *buf) in name_show() argument 87 struct w1_slave *sl = dev_to_w1_slave(dev); in name_show() 93 static ssize_t id_show(struct device *dev, in id_show() argument [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | pci.c | 15 struct mt76x02_dev *dev = hw->priv; in mt76x0e_start() local 17 mt76x02_mac_start(dev); in mt76x0e_start() 18 mt76x0_phy_calibrate(dev, true); in mt76x0e_start() 19 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->mphy.mac_work, in mt76x0e_start() 21 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->cal_work, in mt76x0e_start() 23 set_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x0e_start() 28 static void mt76x0e_stop_hw(struct mt76x02_dev *dev) in mt76x0e_stop_hw() argument 30 cancel_delayed_work_sync(&dev->cal_work); in mt76x0e_stop_hw() 31 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt76x0e_stop_hw() 32 clear_bit(MT76_RESTART, &dev->mphy.state); in mt76x0e_stop_hw() [all …]
|
/openbmc/linux/drivers/gpu/drm/lima/ |
H A D | lima_device.c | 85 static int lima_clk_enable(struct lima_device *dev) in lima_clk_enable() argument 89 err = clk_prepare_enable(dev->clk_bus); in lima_clk_enable() 93 err = clk_prepare_enable(dev->clk_gpu); in lima_clk_enable() 97 if (dev->reset) { in lima_clk_enable() 98 err = reset_control_deassert(dev->reset); in lima_clk_enable() 100 dev_err(dev->dev, in lima_clk_enable() 109 clk_disable_unprepare(dev->clk_gpu); in lima_clk_enable() 111 clk_disable_unprepare(dev->clk_bus); in lima_clk_enable() 115 static void lima_clk_disable(struct lima_device *dev) in lima_clk_disable() argument 117 if (dev->reset) in lima_clk_disable() [all …]
|
/openbmc/linux/drivers/media/common/saa7146/ |
H A D | saa7146_vbi.c | 6 static int vbi_workaround(struct saa7146_dev *dev) in vbi_workaround() argument 8 struct saa7146_vv *vv = dev->vv_data; in vbi_workaround() 18 DEB_VBI("dev:%p\n", dev); in vbi_workaround() 25 cpu = dma_alloc_coherent(&dev->pci->dev, 4096, &dma_addr, GFP_KERNEL); in vbi_workaround() 30 saa7146_write(dev, BASE_EVEN3, dma_addr); in vbi_workaround() 31 saa7146_write(dev, BASE_ODD3, dma_addr+vbi_pixel_to_capture); in vbi_workaround() 32 saa7146_write(dev, PROT_ADDR3, dma_addr+4096); in vbi_workaround() 33 saa7146_write(dev, PITCH3, vbi_pixel_to_capture); in vbi_workaround() 34 saa7146_write(dev, BASE_PAGE3, 0x0); in vbi_workaround() 35 saa7146_write(dev, NUM_LINE_BYTE3, (2<<16)|((vbi_pixel_to_capture)<<0)); in vbi_workaround() [all …]
|