/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | net2272.c | 116 dev_dbg(ep->dev->dev, "%s %s %02x !NAK\n", in assert_out_naking() 177 struct net2272 *dev; in net2272_enable() local 187 dev = ep->dev; in net2272_enable() 188 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) in net2272_enable() 193 spin_lock_irqsave(&dev->lock, flags); in net2272_enable() 210 if ((dev->gadget.speed == USB_SPEED_HIGH && max != 512) || in net2272_enable() 211 (dev->gadget.speed == USB_SPEED_FULL && max > 64)) { in net2272_enable() 212 spin_unlock_irqrestore(&dev->lock, flags); in net2272_enable() 230 tmp = (1 << ep->num) | net2272_read(dev, IRQENB0); in net2272_enable() 231 net2272_write(dev, IRQENB0, tmp); in net2272_enable() [all …]
|
/openbmc/linux/drivers/scsi/libsas/ |
H A D | sas_discover.c | 22 void sas_init_dev(struct domain_device *dev) in sas_init_dev() argument 24 switch (dev->dev_type) { in sas_init_dev() 26 INIT_LIST_HEAD(&dev->ssp_dev.eh_list_node); in sas_init_dev() 30 INIT_LIST_HEAD(&dev->ex_dev.children); in sas_init_dev() 31 mutex_init(&dev->ex_dev.cmd_mutex); in sas_init_dev() 53 struct domain_device *dev; in sas_get_port_device() local 56 dev = sas_alloc_device(); in sas_get_port_device() 57 if (!dev) in sas_get_port_device() 63 sas_put_device(dev); in sas_get_port_device() 68 memcpy(dev->frame_rcvd, phy->frame_rcvd, min(sizeof(dev->frame_rcvd), in sas_get_port_device() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | smc911x.c | 16 u32 pkt_data_pull(struct eth_device *dev, u32 addr) \ 18 void pkt_data_push(struct eth_device *dev, u32 addr, u32 val) \ 21 static void smc911x_handle_mac_address(struct eth_device *dev) in smc911x_handle_mac_address() argument 24 uchar *m = dev->enetaddr; in smc911x_handle_mac_address() 28 smc911x_set_mac_csr(dev, ADDRL, addrl); in smc911x_handle_mac_address() 29 smc911x_set_mac_csr(dev, ADDRH, addrh); in smc911x_handle_mac_address() 34 static int smc911x_eth_phy_read(struct eth_device *dev, in smc911x_eth_phy_read() argument 37 while (smc911x_get_mac_csr(dev, MII_ACC) & MII_ACC_MII_BUSY) in smc911x_eth_phy_read() 40 smc911x_set_mac_csr(dev, MII_ACC, phy << 11 | reg << 6 | in smc911x_eth_phy_read() 43 while (smc911x_get_mac_csr(dev, MII_ACC) & MII_ACC_MII_BUSY) in smc911x_eth_phy_read() [all …]
|
/openbmc/linux/drivers/pci/pcie/ |
H A D | ptm.c | 16 static struct pci_dev *pci_upstream_ptm(struct pci_dev *dev) in pci_upstream_ptm() argument 18 struct pci_dev *ups = pci_upstream_bridge(dev); in pci_upstream_ptm() 39 void pci_ptm_init(struct pci_dev *dev) in pci_ptm_init() argument 45 if (!pci_is_pcie(dev)) in pci_ptm_init() 48 ptm = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_PTM); in pci_ptm_init() 52 dev->ptm_cap = ptm; in pci_ptm_init() 53 pci_add_ext_cap_save_buffer(dev, PCI_EXT_CAP_ID_PTM, sizeof(u32)); in pci_ptm_init() 55 pci_read_config_dword(dev, ptm + PCI_PTM_CAP, &cap); in pci_ptm_init() 56 dev->ptm_granularity = (cap & PCI_PTM_GRANULARITY_MASK) >> 8; in pci_ptm_init() 64 ups = pci_upstream_ptm(dev); in pci_ptm_init() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | mlx5_core.h | 100 static inline void mlx5_printk(struct mlx5_core_dev *dev, int level, const char *format, ...) in mlx5_printk() argument 102 struct device *device = dev->device; in mlx5_printk() 124 static inline struct device *mlx5_core_dma_dev(struct mlx5_core_dev *dev) in mlx5_core_dma_dev() argument 126 return &dev->pdev->dev; in mlx5_core_dma_dev() 147 static inline int mlx5_flexible_inlen(struct mlx5_core_dev *dev, size_t fixed, in mlx5_flexible_inlen() argument 154 mlx5_core_err(dev, "%s: %s:%d: input values too big: %zu + %zu * %zu\n", in mlx5_flexible_inlen() 160 mlx5_core_err(dev, "%s: %s:%d: multiplication overflow: %zu + %zu * %zu\n", in mlx5_flexible_inlen() 166 mlx5_core_err(dev, "%s: %s:%d: addition overflow: %zu + %zu * %zu\n", in mlx5_flexible_inlen() 174 #define MLX5_FLEXIBLE_INLEN(dev, fixed, item_size, num_items) \ argument 175 mlx5_flexible_inlen(dev, fixed, item_size, num_items, __func__, __LINE__) [all …]
|
H A D | fw_reset.c | 19 struct mlx5_core_dev *dev; member 44 static u8 mlx5_get_fw_rst_state(struct mlx5_core_dev *dev) in mlx5_get_fw_rst_state() argument 46 return (ioread32be(&dev->iseg->initializing) >> MLX5_RST_STATE_BIT_NUM) & 0xF; in mlx5_get_fw_rst_state() 49 static void mlx5_set_fw_rst_ack(struct mlx5_core_dev *dev) in mlx5_set_fw_rst_ack() argument 51 iowrite32be(BIT(MLX5_RST_ACK_BIT_NUM), &dev->iseg->initializing); in mlx5_set_fw_rst_ack() 57 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_fw_reset_enable_remote_dev_reset_set() local 60 fw_reset = dev->priv.fw_reset; in mlx5_fw_reset_enable_remote_dev_reset_set() 72 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_fw_reset_enable_remote_dev_reset_get() local 75 fw_reset = dev->priv.fw_reset; in mlx5_fw_reset_enable_remote_dev_reset_get() 82 static int mlx5_reg_mfrl_set(struct mlx5_core_dev *dev, u8 reset_level, in mlx5_reg_mfrl_set() argument [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | init.c | 24 mt7603_set_tmac_template(struct mt7603_dev *dev) in mt7603_set_tmac_template() argument 33 addr = mt7603_reg_map(dev, MT_CLIENT_BASE_PHYS_ADDR); in mt7603_set_tmac_template() 36 mt76_wr(dev, addr + 4 * i, desc[i]); in mt7603_set_tmac_template() 40 mt7603_dma_sched_init(struct mt7603_dev *dev) in mt7603_dma_sched_init() argument 54 page_count = mt76_get_field(dev, MT_PSE_FC_P0, in mt7603_dma_sched_init() 59 mt76_wr(dev, MT_PSE_FRP, in mt7603_dma_sched_init() 64 mt76_wr(dev, MT_HIGH_PRIORITY_1, 0x55555553); in mt7603_dma_sched_init() 65 mt76_wr(dev, MT_HIGH_PRIORITY_2, 0x78555555); in mt7603_dma_sched_init() 67 mt76_wr(dev, MT_QUEUE_PRIORITY_1, 0x2b1a096e); in mt7603_dma_sched_init() 68 mt76_wr(dev, MT_QUEUE_PRIORITY_2, 0x785f4d3c); in mt7603_dma_sched_init() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | qdev.c | 46 const VMStateDescription *qdev_get_vmsd(DeviceState *dev) in qdev_get_vmsd() argument 48 DeviceClass *dc = DEVICE_GET_CLASS(dev); in qdev_get_vmsd() 108 bool qdev_set_parent_bus(DeviceState *dev, BusState *bus, Error **errp) in qdev_set_parent_bus() argument 110 BusState *old_parent_bus = dev->parent_bus; in qdev_set_parent_bus() 111 DeviceClass *dc = DEVICE_GET_CLASS(dev); in qdev_set_parent_bus() 115 if (!bus_check_address(bus, dev, errp)) { in qdev_set_parent_bus() 120 trace_qdev_update_parent_bus(dev, object_get_typename(OBJECT(dev)), in qdev_set_parent_bus() 130 object_ref(OBJECT(dev)); in qdev_set_parent_bus() 131 bus_remove_child(dev->parent_bus, dev); in qdev_set_parent_bus() 133 dev->parent_bus = bus; in qdev_set_parent_bus() [all …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | ipheth.c | 121 static int ipheth_rx_submit(struct ipheth_device *dev, gfp_t mem_flags); 176 static void ipheth_kill_urbs(struct ipheth_device *dev) in ipheth_kill_urbs() argument 178 usb_kill_urb(dev->tx_urb); in ipheth_kill_urbs() 179 usb_kill_urb(dev->rx_urb); in ipheth_kill_urbs() 182 static int ipheth_consume_skb(char *buf, int len, struct ipheth_device *dev) in ipheth_consume_skb() argument 188 dev->net->stats.rx_dropped++; in ipheth_consume_skb() 193 skb->dev = dev->net; in ipheth_consume_skb() 194 skb->protocol = eth_type_trans(skb, dev->net); in ipheth_consume_skb() 196 dev->net->stats.rx_packets++; in ipheth_consume_skb() 197 dev->net->stats.rx_bytes += len; in ipheth_consume_skb() [all …]
|
H A D | sr9800.c | 28 static int sr_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in sr_read_cmd() argument 33 err = usbnet_read_cmd(dev, cmd, SR_REQ_RD_REG, value, index, in sr_read_cmd() 41 static int sr_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in sr_write_cmd() argument 46 err = usbnet_write_cmd(dev, cmd, SR_REQ_WR_REG, value, index, in sr_write_cmd() 55 sr_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index, in sr_write_cmd_async() argument 58 usbnet_write_cmd_async(dev, cmd, SR_REQ_WR_REG, value, index, data, in sr_write_cmd_async() 62 static int sr_rx_fixup(struct usbnet *dev, struct sk_buff *skb) in sr_rx_fixup() argument 67 if (skb->len < dev->net->hard_header_len) in sr_rx_fixup() 79 netdev_err(dev->net, "%s : Bad Header Length\n", in sr_rx_fixup() 84 if ((size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) || in sr_rx_fixup() [all …]
|
/openbmc/linux/sound/soc/atmel/ |
H A D | mchp-spdifrx.c | 131 static bool mchp_spdifrx_readable_reg(struct device *dev, unsigned int reg) in mchp_spdifrx_readable_reg() argument 171 static bool mchp_spdifrx_writeable_reg(struct device *dev, unsigned int reg) in mchp_spdifrx_writeable_reg() argument 185 static bool mchp_spdifrx_precious_reg(struct device *dev, unsigned int reg) in mchp_spdifrx_precious_reg() argument 196 static bool mchp_spdifrx_volatile_reg(struct device *dev, unsigned int reg) in mchp_spdifrx_volatile_reg() argument 303 struct device *dev; member 310 static void mchp_spdifrx_channel_status_read(struct mchp_spdifrx_dev *dev, in mchp_spdifrx_channel_status_read() argument 313 struct mchp_spdifrx_mixer_control *ctrl = &dev->control; in mchp_spdifrx_channel_status_read() 319 regmap_read(dev->regmap, SPDIFRX_CHSR(channel, i), &val); in mchp_spdifrx_channel_status_read() 327 static void mchp_spdifrx_channel_user_data_read(struct mchp_spdifrx_dev *dev, in mchp_spdifrx_channel_user_data_read() argument 330 struct mchp_spdifrx_mixer_control *ctrl = &dev->control; in mchp_spdifrx_channel_user_data_read() [all …]
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-ctrls.c | 119 struct vivid_dev *dev = container_of(ctrl->handler, struct vivid_dev, ctrl_hdl_user_gen); in vivid_user_gen_s_ctrl() local 123 v4l2_info(&dev->v4l2_dev, "disconnect\n"); in vivid_user_gen_s_ctrl() 124 dev->disconnect_error = true; in vivid_user_gen_s_ctrl() 125 vivid_unregister_dev(dev->has_vid_cap, &dev->vid_cap_dev); in vivid_user_gen_s_ctrl() 126 vivid_unregister_dev(dev->has_vid_out, &dev->vid_out_dev); in vivid_user_gen_s_ctrl() 127 vivid_unregister_dev(dev->has_vbi_cap, &dev->vbi_cap_dev); in vivid_user_gen_s_ctrl() 128 vivid_unregister_dev(dev->has_vbi_out, &dev->vbi_out_dev); in vivid_user_gen_s_ctrl() 129 vivid_unregister_dev(dev->has_radio_rx, &dev->radio_rx_dev); in vivid_user_gen_s_ctrl() 130 vivid_unregister_dev(dev->has_radio_tx, &dev->radio_tx_dev); in vivid_user_gen_s_ctrl() 131 vivid_unregister_dev(dev->has_sdr_cap, &dev->sdr_cap_dev); in vivid_user_gen_s_ctrl() [all …]
|
/openbmc/linux/drivers/media/pci/cx23885/ |
H A D | cx23885-video.c | 88 void cx23885_video_wakeup(struct cx23885_dev *dev, in cx23885_video_wakeup() argument 106 int cx23885_set_tvnorm(struct cx23885_dev *dev, v4l2_std_id norm) in cx23885_set_tvnorm() argument 118 if (dev->tvnorm == norm) in cx23885_set_tvnorm() 121 if (dev->tvnorm != norm) { in cx23885_set_tvnorm() 122 if (vb2_is_busy(&dev->vb2_vidq) || vb2_is_busy(&dev->vb2_vbiq) || in cx23885_set_tvnorm() 123 vb2_is_busy(&dev->vb2_mpegq)) in cx23885_set_tvnorm() 127 dev->tvnorm = norm; in cx23885_set_tvnorm() 128 dev->width = 720; in cx23885_set_tvnorm() 129 dev->height = norm_maxh(norm); in cx23885_set_tvnorm() 130 dev->field = V4L2_FIELD_INTERLACED; in cx23885_set_tvnorm() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | zd1301_demod.c | 21 static int zd1301_demod_wreg(struct zd1301_demod_dev *dev, u16 reg, u8 val) in zd1301_demod_wreg() argument 23 struct platform_device *pdev = dev->pdev; in zd1301_demod_wreg() 24 struct zd1301_demod_platform_data *pdata = pdev->dev.platform_data; in zd1301_demod_wreg() 29 static int zd1301_demod_rreg(struct zd1301_demod_dev *dev, u16 reg, u8 *val) in zd1301_demod_rreg() argument 31 struct platform_device *pdev = dev->pdev; in zd1301_demod_rreg() 32 struct zd1301_demod_platform_data *pdata = pdev->dev.platform_data; in zd1301_demod_rreg() 39 struct zd1301_demod_dev *dev = fe->demodulator_priv; in zd1301_demod_set_frontend() local 40 struct platform_device *pdev = dev->pdev; in zd1301_demod_set_frontend() 46 dev_dbg(&pdev->dev, "frequency=%u bandwidth_hz=%u\n", in zd1301_demod_set_frontend() 63 dev_dbg(&pdev->dev, "if_frequency=%u\n", if_frequency); in zd1301_demod_set_frontend() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | rdacm20.c | 314 struct device *dev; member 333 static int ov10635_read16(struct rdacm20_device *dev, u16 reg) in ov10635_read16() argument 338 ret = i2c_master_send(dev->sensor, buf, 2); in ov10635_read16() 340 dev_dbg(dev->dev, "%s: register 0x%04x write failed (%d)\n", in ov10635_read16() 345 ret = i2c_master_recv(dev->sensor, buf, 2); in ov10635_read16() 347 dev_dbg(dev->dev, "%s: register 0x%04x read failed (%d)\n", in ov10635_read16() 355 static int __ov10635_write(struct rdacm20_device *dev, u16 reg, u8 val) in __ov10635_write() argument 360 dev_dbg(dev->dev, "%s(0x%04x, 0x%02x)\n", __func__, reg, val); in __ov10635_write() 362 ret = i2c_master_send(dev->sensor, buf, 3); in __ov10635_write() 366 static int ov10635_write(struct rdacm20_device *dev, u16 reg, u8 val) in ov10635_write() argument [all …]
|
/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-dvb.c | 167 static inline void print_err_status(struct cx231xx *dev, int packet, int status) in print_err_status() argument 198 dev_dbg(dev->dev, in print_err_status() 201 dev_dbg(dev->dev, in print_err_status() 207 static inline int dvb_isoc_copy(struct cx231xx *dev, struct urb *urb) in dvb_isoc_copy() argument 211 if (!dev) in dvb_isoc_copy() 214 if (dev->state & DEV_DISCONNECTED) in dvb_isoc_copy() 218 print_err_status(dev, -1, urb->status); in dvb_isoc_copy() 227 print_err_status(dev, i, status); in dvb_isoc_copy() 232 dvb_dmx_swfilter(&dev->dvb->demux, in dvb_isoc_copy() 241 static inline int dvb_bulk_copy(struct cx231xx *dev, struct urb *urb) in dvb_bulk_copy() argument [all …]
|
H A D | cx231xx-cards.c | 1088 struct cx231xx *dev = ptr; in cx231xx_tuner_callback() local 1090 if (dev->tuner_type == TUNER_XC5000) { in cx231xx_tuner_callback() 1092 dev_dbg(dev->dev, in cx231xx_tuner_callback() 1094 command, dev->tuner_type); in cx231xx_tuner_callback() 1095 cx231xx_set_gpio_value(dev, dev->board.tuner_gpio->bit, in cx231xx_tuner_callback() 1098 cx231xx_set_gpio_value(dev, dev->board.tuner_gpio->bit, in cx231xx_tuner_callback() 1101 cx231xx_set_gpio_value(dev, dev->board.tuner_gpio->bit, in cx231xx_tuner_callback() 1105 } else if (dev->tuner_type == TUNER_NXP_TDA18271) { in cx231xx_tuner_callback() 1108 if (dev->model == CX231XX_BOARD_PV_PLAYTV_USB_HYBRID) in cx231xx_tuner_callback() 1109 rc = cx231xx_set_agc_analog_digital_mux_select(dev, arg); in cx231xx_tuner_callback() [all …]
|
/openbmc/linux/drivers/media/usb/hdpvr/ |
H A D | hdpvr-video.c | 30 v4l2_dbg(MSG_BUFFER, hdpvr_debug, &dev->v4l2_dev, \ 33 list_size(&dev->free_buff_list), \ 34 list_size(&dev->rec_buff_list)); } 72 struct hdpvr_device *dev = buf->dev; in hdpvr_read_bulk_callback() local 76 wake_up_interruptible(&dev->wait_data); in hdpvr_read_bulk_callback() 83 int hdpvr_cancel_queue(struct hdpvr_device *dev) in hdpvr_cancel_queue() argument 87 list_for_each_entry(buf, &dev->rec_buff_list, buff_list) { in hdpvr_cancel_queue() 92 list_splice_init(&dev->rec_buff_list, dev->free_buff_list.prev); in hdpvr_cancel_queue() 108 usb_free_coherent(urb->dev, urb->transfer_buffer_length, in hdpvr_free_queue() 121 int hdpvr_free_buffers(struct hdpvr_device *dev) in hdpvr_free_buffers() argument [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | init.c | 18 static ssize_t mt7615_thermal_show_temp(struct device *dev, in mt7615_thermal_show_temp() argument 22 struct mt7615_dev *mdev = dev_get_drvdata(dev); in mt7615_thermal_show_temp() 48 int mt7615_thermal_init(struct mt7615_dev *dev) in mt7615_thermal_init() argument 50 struct wiphy *wiphy = mt76_hw(dev)->wiphy; in mt7615_thermal_init() 57 name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7615_%s", in mt7615_thermal_init() 62 hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, name, dev, in mt7615_thermal_init() 72 mt7615_phy_init(struct mt7615_dev *dev) in mt7615_phy_init() argument 75 mt76_set(dev, MT_WF_PHY_WF2_RFCTRL0(0), MT_WF_PHY_WF2_RFCTRL0_LPBCN_EN); in mt7615_phy_init() 76 mt76_set(dev, MT_WF_PHY_WF2_RFCTRL0(1), MT_WF_PHY_WF2_RFCTRL0_LPBCN_EN); in mt7615_phy_init() 80 mt7615_init_mac_chain(struct mt7615_dev *dev, int chain) in mt7615_init_mac_chain() argument [all …]
|
/openbmc/u-boot/test/dm/ |
H A D | test-fdt.c | 23 static int testfdt_drv_ping(struct udevice *dev, int pingval, int *pingret) in testfdt_drv_ping() argument 25 const struct dm_test_pdata *pdata = dev->platdata; in testfdt_drv_ping() 26 struct dm_test_priv *priv = dev_get_priv(dev); in testfdt_drv_ping() 38 static int testfdt_ofdata_to_platdata(struct udevice *dev) in testfdt_ofdata_to_platdata() argument 40 struct dm_test_pdata *pdata = dev_get_platdata(dev); in testfdt_ofdata_to_platdata() 42 pdata->ping_add = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in testfdt_ofdata_to_platdata() 44 pdata->base = fdtdec_get_addr(gd->fdt_blob, dev_of_offset(dev), in testfdt_ofdata_to_platdata() 50 static int testfdt_drv_probe(struct udevice *dev) in testfdt_drv_probe() argument 52 struct dm_test_priv *priv = dev_get_priv(dev); in testfdt_drv_probe() 110 int testfdt_ping(struct udevice *dev, int pingval, int *pingret) in testfdt_ping() argument [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | mmio.c | 80 static u32 mt7996_reg_map_l1(struct mt7996_dev *dev, u32 addr) in mt7996_reg_map_l1() argument 85 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1, in mt7996_reg_map_l1() 89 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7996_reg_map_l1() 94 static u32 mt7996_reg_map_l2(struct mt7996_dev *dev, u32 addr) in mt7996_reg_map_l2() argument 99 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2, in mt7996_reg_map_l2() 103 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2); in mt7996_reg_map_l2() 108 static u32 __mt7996_reg_addr(struct mt7996_dev *dev, u32 addr) in __mt7996_reg_addr() argument 115 for (i = 0; i < dev->reg.map_size; i++) { in __mt7996_reg_addr() 118 if (addr < dev->reg.map[i].phys) in __mt7996_reg_addr() 121 ofs = addr - dev->reg.map[i].phys; in __mt7996_reg_addr() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | core.c | 44 static void __fw_devlink_link_to_consumers(struct device *dev); 182 if (fwnode->dev) in fw_devlink_purge_absent_suppliers() 228 if (fwnode->dev && fwnode->dev->bus) in __fw_devlink_pickup_dangling_consumers() 277 static bool device_is_ancestor(struct device *dev, struct device *target) in device_is_ancestor() argument 281 if (dev == target) in device_is_ancestor() 303 int device_is_dependent(struct device *dev, void *target) in device_is_dependent() argument 313 if (dev == target || device_is_ancestor(dev, target)) in device_is_dependent() 316 ret = device_for_each_child(dev, target, device_is_dependent); in device_is_dependent() 320 list_for_each_entry(link, &dev->links.consumers, s_node) { in device_is_dependent() 378 static int device_reorder_to_tail(struct device *dev, void *not_used) in device_reorder_to_tail() argument [all …]
|
/openbmc/linux/drivers/media/pci/ngene/ |
H A D | ngene-core.c | 41 #define ngwriteb(dat, adr) writeb((dat), dev->iomem + (adr)) 42 #define ngwritel(dat, adr) writel((dat), dev->iomem + (adr)) 43 #define ngwriteb(dat, adr) writeb((dat), dev->iomem + (adr)) 44 #define ngreadl(adr) readl(dev->iomem + (adr)) 45 #define ngreadb(adr) readb(dev->iomem + (adr)) 46 #define ngcpyto(adr, src, count) memcpy_toio(dev->iomem + (adr), (src), (count)) 47 #define ngcpyfrom(dst, adr, count) memcpy_fromio((dst), dev->iomem + (adr), (count)) 55 struct ngene *dev = from_tasklet(dev, t, event_tasklet); in event_tasklet() local 57 while (dev->EventQueueReadIndex != dev->EventQueueWriteIndex) { in event_tasklet() 59 dev->EventQueue[dev->EventQueueReadIndex]; in event_tasklet() [all …]
|
/openbmc/linux/kernel/dma/ |
H A D | mapping.c | 36 static void dmam_release(struct device *dev, void *res) in dmam_release() argument 40 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release() 44 static int dmam_match(struct device *dev, void *res, void *match_data) in dmam_match() argument 65 void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, in dmam_free_coherent() argument 70 WARN_ON(devres_destroy(dev, dmam_release, dmam_match, &match_data)); in dmam_free_coherent() 71 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent() 89 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs() argument 99 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs() 110 devres_add(dev, dr); in dmam_alloc_attrs() 116 static bool dma_go_direct(struct device *dev, dma_addr_t mask, in dma_go_direct() argument [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | device-remove.c | 20 int device_chld_unbind(struct udevice *dev, struct driver *drv) in device_chld_unbind() argument 25 assert(dev); in device_chld_unbind() 27 list_for_each_entry_safe(pos, n, &dev->child_head, sibling_node) { in device_chld_unbind() 39 int device_chld_remove(struct udevice *dev, struct driver *drv, in device_chld_remove() argument 45 assert(dev); in device_chld_remove() 47 list_for_each_entry_safe(pos, n, &dev->child_head, sibling_node) { in device_chld_remove() 59 int device_unbind(struct udevice *dev) in device_unbind() argument 64 if (!dev) in device_unbind() 67 if (dev->flags & DM_FLAG_ACTIVATED) in device_unbind() 70 if (!(dev->flags & DM_FLAG_BOUND)) in device_unbind() [all …]
|