Home
last modified time | relevance | path

Searched refs:dev (Results 251 – 275 of 24604) sorted by relevance

1...<<11121314151617181920>>...985

/openbmc/linux/drivers/net/arcnet/
H A Darc-rimi.c46 static int arcrimi_probe(struct net_device *dev);
47 static int arcrimi_found(struct net_device *dev);
48 static void arcrimi_command(struct net_device *dev, int command);
49 static int arcrimi_status(struct net_device *dev);
50 static void arcrimi_setmask(struct net_device *dev, int mask);
51 static int arcrimi_reset(struct net_device *dev, int really_reset);
52 static void arcrimi_copy_to_card(struct net_device *dev, int bufnum, int offset,
54 static void arcrimi_copy_from_card(struct net_device *dev, int bufnum,
67 static int __init arcrimi_probe(struct net_device *dev) in arcrimi_probe() argument
73 dev->dev_addr[0], dev->mem_start, dev->irq); in arcrimi_probe()
[all …]
/openbmc/qemu/hw/virtio/
H A Dvhost-backend.c23 static int vhost_kernel_call(struct vhost_dev *dev, unsigned long int request, in vhost_kernel_call() argument
26 int fd = (uintptr_t) dev->opaque; in vhost_kernel_call()
29 assert(dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_KERNEL); in vhost_kernel_call()
35 static int vhost_kernel_init(struct vhost_dev *dev, void *opaque, Error **errp) in vhost_kernel_init() argument
37 assert(dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_KERNEL); in vhost_kernel_init()
39 dev->opaque = opaque; in vhost_kernel_init()
44 static int vhost_kernel_cleanup(struct vhost_dev *dev) in vhost_kernel_cleanup() argument
46 int fd = (uintptr_t) dev->opaque; in vhost_kernel_cleanup()
48 assert(dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_KERNEL); in vhost_kernel_cleanup()
53 static int vhost_kernel_memslots_limit(struct vhost_dev *dev) in vhost_kernel_memslots_limit() argument
[all …]
/openbmc/u-boot/drivers/net/
H A Dcs8900.c50 static u16 get_reg_init_bus(struct eth_device *dev, int regno) in get_reg_init_bus() argument
53 struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv); in get_reg_init_bus()
54 uint8_t volatile * const iob = (uint8_t volatile * const)dev->iobase; in get_reg_init_bus()
67 static u16 get_reg(struct eth_device *dev, int regno) in get_reg() argument
69 struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv); in get_reg()
75 static void put_reg(struct eth_device *dev, int regno, u16 val) in put_reg() argument
77 struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv); in put_reg()
82 static void cs8900_reset(struct eth_device *dev) in cs8900_reset() argument
88 put_reg(dev, PP_SelfCTL, get_reg(dev, PP_SelfCTL) | PP_SelfCTL_Reset); in cs8900_reset()
95 while ((((us = get_reg_init_bus(dev, PP_SelfSTAT)) & in cs8900_reset()
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dtoshiba_acpi.c320 static acpi_status tci_raw(struct toshiba_acpi_dev *dev, in tci_raw() argument
339 status = acpi_evaluate_object(dev->acpi_dev->handle, in tci_raw()
340 (char *)dev->method_hci, &params, in tci_raw()
357 static u32 hci_write(struct toshiba_acpi_dev *dev, u32 reg, u32 in1) in hci_write() argument
361 acpi_status status = tci_raw(dev, in, out); in hci_write()
366 static u32 hci_read(struct toshiba_acpi_dev *dev, u32 reg, u32 *out1) in hci_read() argument
370 acpi_status status = tci_raw(dev, in, out); in hci_read()
384 static int sci_open(struct toshiba_acpi_dev *dev) in sci_open() argument
388 acpi_status status = tci_raw(dev, in, out); in sci_open()
421 static void sci_close(struct toshiba_acpi_dev *dev) in sci_close() argument
[all …]
/openbmc/linux/drivers/usb/gadget/udc/
H A Dsnps_udc_core.c39 static void udc_setup_endpoints(struct udc *dev);
40 static void udc_soft_reset(struct udc *dev);
184 static void print_regs(struct udc *dev) in print_regs() argument
186 DBG(dev, "------- Device registers -------\n"); in print_regs()
187 DBG(dev, "dev config = %08x\n", readl(&dev->regs->cfg)); in print_regs()
188 DBG(dev, "dev control = %08x\n", readl(&dev->regs->ctl)); in print_regs()
189 DBG(dev, "dev status = %08x\n", readl(&dev->regs->sts)); in print_regs()
190 DBG(dev, "\n"); in print_regs()
191 DBG(dev, "dev int's = %08x\n", readl(&dev->regs->irqsts)); in print_regs()
192 DBG(dev, "dev intmask = %08x\n", readl(&dev->regs->irqmsk)); in print_regs()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dusb_phy.c11 mt76x2u_phy_channel_calibrate(struct mt76x02_dev *dev, bool mac_stopped) in mt76x2u_phy_channel_calibrate() argument
13 struct ieee80211_channel *chan = dev->mphy.chandef.chan; in mt76x2u_phy_channel_calibrate()
16 if (dev->cal.channel_cal_done) in mt76x2u_phy_channel_calibrate()
19 if (mt76x2_channel_silent(dev)) in mt76x2u_phy_channel_calibrate()
23 mt76x2u_mac_stop(dev); in mt76x2u_phy_channel_calibrate()
26 mt76x02_mcu_calibrate(dev, MCU_CAL_LC, 0); in mt76x2u_phy_channel_calibrate()
28 mt76x02_mcu_calibrate(dev, MCU_CAL_TX_LOFT, is_5ghz); in mt76x2u_phy_channel_calibrate()
29 mt76x02_mcu_calibrate(dev, MCU_CAL_TXIQ, is_5ghz); in mt76x2u_phy_channel_calibrate()
30 mt76x02_mcu_calibrate(dev, MCU_CAL_RXIQC_FI, is_5ghz); in mt76x2u_phy_channel_calibrate()
31 mt76x02_mcu_calibrate(dev, MCU_CAL_TEMP_SENSOR, 0); in mt76x2u_phy_channel_calibrate()
[all …]
/openbmc/linux/drivers/media/usb/stk1160/
H A Dstk1160-v4l.c67 static void stk1160_set_std(struct stk1160 *dev) in stk1160_set_std() argument
110 if (dev->norm & V4L2_STD_525_60) { in stk1160_set_std()
113 stk1160_write_reg(dev, std525[i].reg, std525[i].val); in stk1160_set_std()
117 stk1160_write_reg(dev, std625[i].reg, std625[i].val); in stk1160_set_std()
122 static void stk1160_set_fmt(struct stk1160 *dev, in stk1160_set_fmt() argument
145 stk1160_write_reg(dev, STK1160_DMCTRL_H_UNITS, ctrl->col_n); in stk1160_set_fmt()
147 stk1160_write_reg(dev, STK1160_DMCTRL_V_UNITS, ctrl->row_n); in stk1160_set_fmt()
154 stk1160_write_reg(dev, STK1160_DMCTRL, val); in stk1160_set_fmt()
161 static bool stk1160_set_alternate(struct stk1160 *dev) in stk1160_set_alternate() argument
163 int i, prev_alt = dev->alt; in stk1160_set_alternate()
[all …]
/openbmc/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-417.c308 static int set_itvc_reg(struct cx231xx *dev, u32 gpio_direction, u32 value) in set_itvc_reg() argument
315 status = cx231xx_send_gpio_cmd(dev, _gpio_direction, in set_itvc_reg()
320 static int get_itvc_reg(struct cx231xx *dev, u32 gpio_direction, u32 *val_ptr) in get_itvc_reg() argument
328 status = cx231xx_send_gpio_cmd(dev, _gpio_direction, in get_itvc_reg()
333 static int wait_for_mci_complete(struct cx231xx *dev) in wait_for_mci_complete() argument
338 get_itvc_reg(dev, gpio_direction, &gpio); in wait_for_mci_complete()
343 get_itvc_reg(dev, gpio_direction, &gpio); in wait_for_mci_complete()
353 static int mc417_register_write(struct cx231xx *dev, u16 address, u32 value) in mc417_register_write() argument
360 status = set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write()
364 set_itvc_reg(dev, ITVC_WRITE_DIR, temp); in mc417_register_write()
[all …]
H A Dcx231xx-video.c42 dev->name, __func__ , ##arg); } while (0)
52 dev->name, __func__ , ##arg); \
90 static int cx231xx_enable_analog_tuner(struct cx231xx *dev) in cx231xx_enable_analog_tuner() argument
93 struct media_device *mdev = dev->media_dev; in cx231xx_enable_analog_tuner()
141 dev_err(dev->dev, in cx231xx_enable_analog_tuner()
148 dev_dbg(dev->dev, in cx231xx_enable_analog_tuner()
164 static inline void buffer_filled(struct cx231xx *dev, in buffer_filled() argument
173 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, dev->size); in buffer_filled()
175 if (dev->USE_ISO) in buffer_filled()
176 dev->video_mode.isoc_ctl.buf = NULL; in buffer_filled()
[all …]
/openbmc/linux/include/linux/
H A Ddma-mapping.h80 void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr);
81 void debug_dma_map_single(struct device *dev, const void *addr,
84 static inline void debug_dma_mapping_error(struct device *dev, in debug_dma_mapping_error() argument
88 static inline void debug_dma_map_single(struct device *dev, const void *addr, in debug_dma_map_single() argument
95 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument
97 debug_dma_mapping_error(dev, dma_addr); in dma_mapping_error()
104 dma_addr_t dma_map_page_attrs(struct device *dev, struct page *page,
107 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size,
109 unsigned int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg,
111 void dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg,
[all …]
/openbmc/qemu/tests/docker/dockerfiles/
H A Dalpine.docker12 alsa-lib-dev \
13 attr-dev \
18 bzip2-dev \
20 capstone-dev \
22 ceph-dev \
24 cmocka-dev \
26 curl-dev \
27 cyrus-sasl-dev \
30 dtc-dev \
31 eudev-dev \
[all …]
H A Dubuntu2204.docker33 libaio-dev \
35 libasound2-dev \
36 libattr1-dev \
37 libbpf-dev \
38 libbrlapi-dev \
39 libbz2-dev \
40 libc6-dev \
41 libcacard-dev \
42 libcap-ng-dev \
43 libcapstone-dev \
[all …]
/openbmc/linux/drivers/scsi/
H A Dscsi_pm.c22 static int do_scsi_suspend(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_suspend() argument
24 return pm && pm->suspend ? pm->suspend(dev) : 0; in do_scsi_suspend()
27 static int do_scsi_freeze(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_freeze() argument
29 return pm && pm->freeze ? pm->freeze(dev) : 0; in do_scsi_freeze()
32 static int do_scsi_poweroff(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_poweroff() argument
34 return pm && pm->poweroff ? pm->poweroff(dev) : 0; in do_scsi_poweroff()
37 static int do_scsi_resume(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_resume() argument
39 return pm && pm->resume ? pm->resume(dev) : 0; in do_scsi_resume()
42 static int do_scsi_thaw(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_thaw() argument
44 return pm && pm->thaw ? pm->thaw(dev) : 0; in do_scsi_thaw()
[all …]
/openbmc/linux/drivers/media/pci/cx23885/
H A Dcx23885-core.c307 static void cx23885_irq_add(struct cx23885_dev *dev, u32 mask) in cx23885_irq_add() argument
310 spin_lock_irqsave(&dev->pci_irqmask_lock, flags); in cx23885_irq_add()
312 dev->pci_irqmask |= mask; in cx23885_irq_add()
314 spin_unlock_irqrestore(&dev->pci_irqmask_lock, flags); in cx23885_irq_add()
317 void cx23885_irq_add_enable(struct cx23885_dev *dev, u32 mask) in cx23885_irq_add_enable() argument
320 spin_lock_irqsave(&dev->pci_irqmask_lock, flags); in cx23885_irq_add_enable()
322 dev->pci_irqmask |= mask; in cx23885_irq_add_enable()
325 spin_unlock_irqrestore(&dev->pci_irqmask_lock, flags); in cx23885_irq_add_enable()
328 void cx23885_irq_enable(struct cx23885_dev *dev, u32 mask) in cx23885_irq_enable() argument
332 spin_lock_irqsave(&dev->pci_irqmask_lock, flags); in cx23885_irq_enable()
[all …]
/openbmc/linux/drivers/staging/rtl8192e/rtl8192e/
H A Dr8192E_phy.c19 static u32 _rtl92e_phy_rf_fw_read(struct net_device *dev,
21 static void _rtl92e_phy_rf_fw_write(struct net_device *dev,
32 void rtl92e_set_bb_reg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask, in rtl92e_set_bb_reg() argument
38 OriginalValue = rtl92e_readl(dev, dwRegAddr); in rtl92e_set_bb_reg()
41 rtl92e_writel(dev, dwRegAddr, NewValue); in rtl92e_set_bb_reg()
43 rtl92e_writel(dev, dwRegAddr, dwData); in rtl92e_set_bb_reg()
47 u32 rtl92e_get_bb_reg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask) in rtl92e_get_bb_reg() argument
51 OriginalValue = rtl92e_readl(dev, dwRegAddr); in rtl92e_get_bb_reg()
57 static u32 _rtl92e_phy_rf_read(struct net_device *dev, in _rtl92e_phy_rf_read() argument
60 struct r8192_priv *priv = rtllib_priv(dev); in _rtl92e_phy_rf_read()
[all …]
/openbmc/linux/drivers/media/usb/em28xx/
H A Dem28xx-video.c54 dev_printk(KERN_DEBUG, &dev->intf->dev, \
60 dev_printk(KERN_DEBUG, &dev->intf->dev, \
126 static inline unsigned int norm_maxw(struct em28xx *dev) in norm_maxw() argument
128 struct em28xx_v4l2 *v4l2 = dev->v4l2; in norm_maxw()
130 if (dev->is_webcam) in norm_maxw()
133 if (dev->board.max_range_640_480) in norm_maxw()
139 static inline unsigned int norm_maxh(struct em28xx *dev) in norm_maxh() argument
141 struct em28xx_v4l2 *v4l2 = dev->v4l2; in norm_maxh()
143 if (dev->is_webcam) in norm_maxh()
146 if (dev->board.max_range_640_480) in norm_maxh()
[all …]
/openbmc/linux/drivers/comedi/drivers/
H A Dni_mio_common.c222 static void ni_writel(struct comedi_device *dev, unsigned int data, int reg) in ni_writel() argument
224 if (dev->mmio) in ni_writel()
225 writel(data, dev->mmio + reg); in ni_writel()
227 outl(data, dev->iobase + reg); in ni_writel()
230 static void ni_writew(struct comedi_device *dev, unsigned int data, int reg) in ni_writew() argument
232 if (dev->mmio) in ni_writew()
233 writew(data, dev->mmio + reg); in ni_writew()
235 outw(data, dev->iobase + reg); in ni_writew()
238 static void ni_writeb(struct comedi_device *dev, unsigned int data, int reg) in ni_writeb() argument
240 if (dev->mmio) in ni_writeb()
[all …]
/openbmc/linux/drivers/misc/c2port/
H A Dcore.c61 static void c2port_reset(struct c2port_device *dev) in c2port_reset() argument
63 struct c2port_ops *ops = dev->ops; in c2port_reset()
69 ops->c2ck_set(dev, 0); in c2port_reset()
71 ops->c2ck_set(dev, 1); in c2port_reset()
77 static void c2port_strobe_ck(struct c2port_device *dev) in c2port_strobe_ck() argument
79 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck()
87 ops->c2ck_set(dev, 0); in c2port_strobe_ck()
89 ops->c2ck_set(dev, 1); in c2port_strobe_ck()
99 static void c2port_write_ar(struct c2port_device *dev, u8 addr) in c2port_write_ar() argument
101 struct c2port_ops *ops = dev->ops; in c2port_write_ar()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dusb.c46 static void mt76x0_init_usb_dma(struct mt76x02_dev *dev) in mt76x0_init_usb_dma() argument
50 val = mt76_rr(dev, MT_USB_DMA_CFG); in mt76x0_init_usb_dma()
59 mt76_wr(dev, MT_USB_DMA_CFG, val); in mt76x0_init_usb_dma()
61 val = mt76_rr(dev, MT_COM_REG0); in mt76x0_init_usb_dma()
63 dev_dbg(dev->mt76.dev, "MCU not ready\n"); in mt76x0_init_usb_dma()
65 val = mt76_rr(dev, MT_USB_DMA_CFG); in mt76x0_init_usb_dma()
68 mt76_wr(dev, MT_USB_DMA_CFG, val); in mt76x0_init_usb_dma()
70 mt76_wr(dev, MT_USB_DMA_CFG, val); in mt76x0_init_usb_dma()
73 static void mt76x0u_cleanup(struct mt76x02_dev *dev) in mt76x0u_cleanup() argument
75 clear_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt76x0u_cleanup()
[all …]
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_yaffs2.c42 void yaffs_calc_oldest_dirty_seq(struct yaffs_dev *dev) in yaffs_calc_oldest_dirty_seq() argument
49 if (!dev->param.is_yaffs2) in yaffs_calc_oldest_dirty_seq()
53 seq = dev->seq_number + 1; in yaffs_calc_oldest_dirty_seq()
54 b = dev->block_info; in yaffs_calc_oldest_dirty_seq()
55 for (i = dev->internal_start_block; i <= dev->internal_end_block; i++) { in yaffs_calc_oldest_dirty_seq()
58 dev->param.chunks_per_block && in yaffs_calc_oldest_dirty_seq()
67 dev->oldest_dirty_seq = seq; in yaffs_calc_oldest_dirty_seq()
68 dev->oldest_dirty_block = block_no; in yaffs_calc_oldest_dirty_seq()
72 void yaffs2_find_oldest_dirty_seq(struct yaffs_dev *dev) in yaffs2_find_oldest_dirty_seq() argument
74 if (!dev->param.is_yaffs2) in yaffs2_find_oldest_dirty_seq()
[all …]
/openbmc/qemu/hw/pci/
H A Dpcie_sriov.c25 static void unregister_vfs(PCIDevice *dev);
27 void pcie_sriov_pf_init(PCIDevice *dev, uint16_t offset, in pcie_sriov_pf_init() argument
32 uint8_t *cfg = dev->config + offset; in pcie_sriov_pf_init()
35 pcie_add_capability(dev, PCI_EXT_CAP_ID_SRIOV, 1, in pcie_sriov_pf_init()
37 dev->exp.sriov_cap = offset; in pcie_sriov_pf_init()
38 dev->exp.sriov_pf.num_vfs = 0; in pcie_sriov_pf_init()
39 dev->exp.sriov_pf.vfname = g_strdup(vfname); in pcie_sriov_pf_init()
40 dev->exp.sriov_pf.vf = NULL; in pcie_sriov_pf_init()
65 wmask = dev->wmask + offset; in pcie_sriov_pf_init()
71 qdev_prop_set_bit(&dev->qdev, "multifunction", true); in pcie_sriov_pf_init()
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dvirtio-mmio.c21 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_config_readb() local
22 return qtest_readb(dev->qts, dev->addr + QVIRTIO_MMIO_DEVICE_SPECIFIC + off); in qvirtio_mmio_config_readb()
27 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_config_readw() local
28 return qtest_readw(dev->qts, dev->addr + QVIRTIO_MMIO_DEVICE_SPECIFIC + off); in qvirtio_mmio_config_readw()
33 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_config_readl() local
34 return qtest_readl(dev->qts, dev->addr + QVIRTIO_MMIO_DEVICE_SPECIFIC + off); in qvirtio_mmio_config_readl()
39 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_config_readq() local
40 return qtest_readq(dev->qts, dev->addr + QVIRTIO_MMIO_DEVICE_SPECIFIC + off); in qvirtio_mmio_config_readq()
45 QVirtioMMIODevice *dev = container_of(d, QVirtioMMIODevice, vdev); in qvirtio_mmio_get_features() local
49 qtest_writel(dev->qts, dev->addr + QVIRTIO_MMIO_HOST_FEATURES_SEL, 0); in qvirtio_mmio_get_features()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dusb.c35 bool mt7601u_usb_alloc_buf(struct mt7601u_dev *dev, size_t len, in mt7601u_usb_alloc_buf() argument
38 struct usb_device *usb_dev = mt7601u_to_usb_dev(dev); in mt7601u_usb_alloc_buf()
47 void mt7601u_usb_free_buf(struct mt7601u_dev *dev, struct mt7601u_dma_buf *buf) in mt7601u_usb_free_buf() argument
49 struct usb_device *usb_dev = mt7601u_to_usb_dev(dev); in mt7601u_usb_free_buf()
55 int mt7601u_usb_submit_buf(struct mt7601u_dev *dev, int dir, int ep_idx, in mt7601u_usb_submit_buf() argument
59 struct usb_device *usb_dev = mt7601u_to_usb_dev(dev); in mt7601u_usb_submit_buf()
64 pipe = usb_rcvbulkpipe(usb_dev, dev->in_eps[ep_idx]); in mt7601u_usb_submit_buf()
66 pipe = usb_sndbulkpipe(usb_dev, dev->out_eps[ep_idx]); in mt7601u_usb_submit_buf()
73 trace_mt_submit_urb(dev, buf->urb); in mt7601u_usb_submit_buf()
76 dev_err(dev->dev, "Error: submit URB dir:%d ep:%d failed:%d\n", in mt7601u_usb_submit_buf()
[all …]
/openbmc/linux/drivers/net/dsa/microchip/
H A Dlan937x_main.c21 static int lan937x_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in lan937x_cfg() argument
23 return regmap_update_bits(ksz_regmap_8(dev), addr, bits, set ? bits : 0); in lan937x_cfg()
26 static int lan937x_port_cfg(struct ksz_device *dev, int port, int offset, in lan937x_port_cfg() argument
29 return regmap_update_bits(ksz_regmap_8(dev), PORT_CTRL_ADDR(port, offset), in lan937x_port_cfg()
33 static int lan937x_enable_spi_indirect_access(struct ksz_device *dev) in lan937x_enable_spi_indirect_access() argument
39 ret = lan937x_cfg(dev, REG_GLOBAL_CTRL_0, SW_PHY_REG_BLOCK, false); in lan937x_enable_spi_indirect_access()
43 ret = ksz_read16(dev, REG_VPHY_SPECIAL_CTRL__2, &data16); in lan937x_enable_spi_indirect_access()
50 return ksz_write16(dev, REG_VPHY_SPECIAL_CTRL__2, data16); in lan937x_enable_spi_indirect_access()
53 static int lan937x_vphy_ind_addr_wr(struct ksz_device *dev, int addr, int reg) in lan937x_vphy_ind_addr_wr() argument
61 return ksz_write16(dev, REG_VPHY_IND_ADDR__2, temp); in lan937x_vphy_ind_addr_wr()
[all …]
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc.c51 struct s5p_mfc_dev *dev = ctx->dev; in clear_work_bit() local
53 spin_lock(&dev->condlock); in clear_work_bit()
54 __clear_bit(ctx->num, &dev->ctx_work_bits); in clear_work_bit()
55 spin_unlock(&dev->condlock); in clear_work_bit()
61 struct s5p_mfc_dev *dev = ctx->dev; in set_work_bit() local
63 spin_lock(&dev->condlock); in set_work_bit()
64 __set_bit(ctx->num, &dev->ctx_work_bits); in set_work_bit()
65 spin_unlock(&dev->condlock); in set_work_bit()
71 struct s5p_mfc_dev *dev = ctx->dev; in clear_work_bit_irqsave() local
74 spin_lock_irqsave(&dev->condlock, flags); in clear_work_bit_irqsave()
[all …]

1...<<11121314151617181920>>...985