/kernel/linux/linux-5.10/drivers/net/can/ |
H A D | flexcan.c | 14 #include <linux/can/dev.h> 341 struct device *dev; member 717 static int __flexcan_get_berr_counter(const struct net_device *dev, in __flexcan_get_berr_counter() argument 720 const struct flexcan_priv *priv = netdev_priv(dev); in __flexcan_get_berr_counter() 730 static int flexcan_get_berr_counter(const struct net_device *dev, in flexcan_get_berr_counter() argument 733 const struct flexcan_priv *priv = netdev_priv(dev); in flexcan_get_berr_counter() 736 err = pm_runtime_get_sync(priv->dev); in flexcan_get_berr_counter() 738 pm_runtime_put_noidle(priv->dev); in flexcan_get_berr_counter() 742 err = __flexcan_get_berr_counter(dev, bec); in flexcan_get_berr_counter() 744 pm_runtime_put(priv->dev); in flexcan_get_berr_counter() 749 flexcan_start_xmit(struct sk_buff *skb, struct net_device *dev) flexcan_start_xmit() argument 801 flexcan_irq_bus_err(struct net_device *dev, u32 reg_esr) flexcan_irq_bus_err() argument 863 flexcan_irq_state(struct net_device *dev, u32 reg_esr) flexcan_irq_state() argument 1045 struct net_device *dev = dev_id; flexcan_irq() local 1164 flexcan_set_bittiming_ctrl(const struct net_device *dev) flexcan_set_bittiming_ctrl() argument 1192 flexcan_set_bittiming_cbt(const struct net_device *dev) flexcan_set_bittiming_cbt() argument 1298 flexcan_set_bittiming(struct net_device *dev) flexcan_set_bittiming() argument 1324 flexcan_ram_init(struct net_device *dev) flexcan_ram_init() argument 1360 flexcan_chip_start(struct net_device *dev) flexcan_chip_start() argument 1608 __flexcan_chip_stop(struct net_device *dev, bool disable_on_error) __flexcan_chip_stop() argument 1638 flexcan_chip_stop_disable_on_error(struct net_device *dev) flexcan_chip_stop_disable_on_error() argument 1643 flexcan_chip_stop(struct net_device *dev) flexcan_chip_stop() argument 1648 flexcan_open(struct net_device *dev) flexcan_open() argument 1738 flexcan_close(struct net_device *dev) flexcan_close() argument 1758 flexcan_set_mode(struct net_device *dev, enum can_mode mode) flexcan_set_mode() argument 1785 register_flexcandev(struct net_device *dev) register_flexcandev() argument 1852 unregister_flexcandev(struct net_device *dev) unregister_flexcandev() argument 1859 struct net_device *dev = platform_get_drvdata(pdev); flexcan_setup_stop_mode() local 1940 struct net_device *dev; flexcan_probe() local 2079 struct net_device *dev = platform_get_drvdata(pdev); flexcan_remove() local 2092 struct net_device *dev = dev_get_drvdata(device); flexcan_suspend() local 2124 struct net_device *dev = dev_get_drvdata(device); flexcan_resume() local 2153 struct net_device *dev = dev_get_drvdata(device); flexcan_runtime_suspend() local 2163 struct net_device *dev = dev_get_drvdata(device); flexcan_runtime_resume() local 2171 struct net_device *dev = dev_get_drvdata(device); flexcan_noirq_suspend() local 2190 struct net_device *dev = dev_get_drvdata(device); flexcan_noirq_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/ |
H A D | fsl-viu.c | 87 struct viu_dev *dev; member 122 struct device *dev; member 159 struct viu_dev *dev; member 246 static void viu_start_dma(struct viu_dev *dev) in viu_start_dma() argument 248 struct viu_reg __iomem *vr = dev->vr; in viu_start_dma() 250 dev->field = 0; in viu_start_dma() 257 static void viu_stop_dma(struct viu_dev *dev) in viu_stop_dma() argument 259 struct viu_reg __iomem *vr = dev->vr; in viu_stop_dma() 287 dev->field = 0; in viu_stop_dma() 300 viu_stop_dma(vidq->dev); in restart_video_queue() 345 struct viu_dev *dev = from_timer(dev, t, vidq.timeout); viu_vid_timeout() local 397 buffer_activate(struct viu_dev *dev, struct viu_buf *buf) buffer_activate() argument 496 struct viu_dev *dev = fh->dev; buffer_queue() local 544 struct viu_dev *dev = (struct viu_dev *)fh->dev; buffer_release() local 659 verify_preview(struct viu_dev *dev, struct v4l2_window *win) verify_preview() argument 706 viu_setup_preview(struct viu_dev *dev, struct viu_fh *fh) viu_setup_preview() argument 752 struct viu_dev *dev = (struct viu_dev *)fh->dev; vidioc_s_fmt_overlay() local 777 struct viu_dev *dev = (struct viu_dev *)fh->dev; vidioc_overlay() local 799 struct viu_dev *dev = fh->dev; vidioc_g_fbuf() local 810 struct viu_dev *dev = fh->dev; vidioc_s_fbuf() local 866 struct viu_dev *dev = fh->dev; vidioc_streamon() local 955 viu_activate_next_buf(struct viu_dev *dev, struct viu_dmaqueue *viuq) viu_activate_next_buf() argument 991 viu_overlay_intr(struct viu_dev *dev, u32 status) viu_overlay_intr() argument 1021 viu_capture_intr(struct viu_dev *dev, u32 status) viu_capture_intr() argument 1095 struct viu_dev *dev = (struct viu_dev *)dev_id; viu_intr() local 1159 struct viu_dev *dev = video_get_drvdata(vdev); viu_open() local 1234 struct viu_dev *dev = fh->dev; viu_read() local 1257 struct viu_dev *dev = fh->dev; viu_poll() local 1276 struct viu_dev *dev = fh->dev; viu_release() local 1312 struct viu_dev *dev = fh->dev; viu_mmap() local 1544 struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); viu_of_remove() local 1565 struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); viu_suspend() local 1574 struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); viu_resume() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/ |
H A D | ocelot_net.c | 24 struct net_device *dev; member 30 static bool ocelot_netdevice_dev_check(const struct net_device *dev); 278 if (!a->dev) in ocelot_setup_tc_cls_matchall_mirred() 281 if (!ocelot_netdevice_dev_check(a->dev)) { in ocelot_setup_tc_cls_matchall_mirred() 287 other_priv = netdev_priv(a->dev); in ocelot_setup_tc_cls_matchall_mirred() 405 if (!tc_cls_can_offload_and_chain0(priv->dev, type_data)) in ocelot_setup_tc_block_cb() 478 static int ocelot_setup_tc(struct net_device *dev, enum tc_setup_type type, in ocelot_setup_tc() argument 481 struct ocelot_port_private *priv = netdev_priv(dev); in ocelot_setup_tc() 492 static int ocelot_vlan_vid_add(struct net_device *dev, u16 vid, bool pvid, in ocelot_vlan_vid_add() argument 495 struct ocelot_port_private *priv = netdev_priv(dev); in ocelot_vlan_vid_add() 512 ocelot_vlan_vid_del(struct net_device *dev, u16 vid) ocelot_vlan_vid_del() argument 536 ocelot_port_open(struct net_device *dev) ocelot_port_open() argument 545 ocelot_port_stop(struct net_device *dev) ocelot_port_stop() argument 554 ocelot_port_xmit(struct sk_buff *skb, struct net_device *dev) ocelot_port_xmit() argument 655 ocelot_mc_unsync(struct net_device *dev, const unsigned char *addr) ocelot_mc_unsync() argument 669 ocelot_mc_sync(struct net_device *dev, const unsigned char *addr) ocelot_mc_sync() argument 685 ocelot_set_rx_mode(struct net_device *dev) ocelot_set_rx_mode() argument 703 ocelot_port_set_mac_address(struct net_device *dev, void *p) ocelot_port_set_mac_address() argument 720 ocelot_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats) ocelot_get_stats64() argument 730 ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, u16 flags, struct netlink_ext_ack *extack) ocelot_port_fdb_add() argument 744 ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, struct netlink_ext_ack *extack) ocelot_port_fdb_del() argument 800 ocelot_port_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb, struct net_device *dev, struct net_device *filter_dev, int *idx) ocelot_port_fdb_dump() argument 823 ocelot_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) ocelot_vlan_rx_add_vid() argument 829 ocelot_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) ocelot_vlan_rx_kill_vid() argument 849 ocelot_set_features(struct net_device *dev, netdev_features_t features) ocelot_set_features() argument 870 ocelot_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ocelot_ioctl() argument 891 ocelot_change_mtu(struct net_device *dev, int new_mtu) ocelot_change_mtu() argument 935 ocelot_netdevice_dev_check(const struct net_device *dev) ocelot_netdevice_dev_check() argument 940 ocelot_netdev_to_port(struct net_device *dev) ocelot_netdev_to_port() argument 962 ocelot_port_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data) ocelot_port_get_ethtool_stats() argument 973 ocelot_port_get_sset_count(struct net_device *dev, int sset) ocelot_port_get_sset_count() argument 982 ocelot_port_get_ts_info(struct net_device *dev, struct ethtool_ts_info *info) ocelot_port_get_ts_info() argument 1033 ocelot_port_attr_set(struct net_device *dev, const void *ctx, const struct switchdev_attr *attr, struct netlink_ext_ack *extack) ocelot_port_attr_set() argument 1074 ocelot_vlan_vid_prepare(struct net_device *dev, u16 vid, bool pvid, bool untagged, struct netlink_ext_ack *extack) ocelot_vlan_vid_prepare() argument 1085 ocelot_port_obj_add_vlan(struct net_device *dev, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) ocelot_port_obj_add_vlan() argument 1100 ocelot_port_obj_add_mdb(struct net_device *dev, const struct switchdev_obj_port_mdb *mdb) ocelot_port_obj_add_mdb() argument 1111 ocelot_port_obj_del_mdb(struct net_device *dev, const struct switchdev_obj_port_mdb *mdb) ocelot_port_obj_del_mdb() argument 1122 ocelot_port_obj_mrp_add(struct net_device *dev, const struct switchdev_obj_mrp *mrp) ocelot_port_obj_mrp_add() argument 1133 ocelot_port_obj_mrp_del(struct net_device *dev, const struct switchdev_obj_mrp *mrp) ocelot_port_obj_mrp_del() argument 1145 ocelot_port_obj_mrp_add_ring_role(struct net_device *dev, const struct switchdev_obj_ring_role_mrp *mrp) ocelot_port_obj_mrp_add_ring_role() argument 1157 ocelot_port_obj_mrp_del_ring_role(struct net_device *dev, const struct switchdev_obj_ring_role_mrp *mrp) ocelot_port_obj_mrp_del_ring_role() argument 1168 ocelot_port_obj_add(struct net_device *dev, const void *ctx, const struct switchdev_obj *obj, struct netlink_ext_ack *extack) ocelot_port_obj_add() argument 1201 ocelot_port_obj_del(struct net_device *dev, const void *ctx, const struct switchdev_obj *obj) ocelot_port_obj_del() argument 1320 ocelot_netdevice_bridge_join(struct net_device *dev, struct net_device *brport_dev, struct net_device *bridge, struct netlink_ext_ack *extack) ocelot_netdevice_bridge_join() argument 1362 ocelot_netdevice_pre_bridge_leave(struct net_device *dev, struct net_device *brport_dev) ocelot_netdevice_pre_bridge_leave() argument 1372 ocelot_netdevice_bridge_leave(struct net_device *dev, struct net_device *brport_dev, struct net_device *bridge) ocelot_netdevice_bridge_leave() argument 1393 ocelot_netdevice_lag_join(struct net_device *dev, struct net_device *bond, struct netdev_lag_upper_info *info, struct netlink_ext_ack *extack) ocelot_netdevice_lag_join() argument 1425 ocelot_netdevice_pre_lag_leave(struct net_device *dev, struct net_device *bond) ocelot_netdevice_pre_lag_leave() argument 1437 ocelot_netdevice_lag_leave(struct net_device *dev, struct net_device *bond) ocelot_netdevice_lag_leave() argument 1455 ocelot_netdevice_changeupper(struct net_device *dev, struct net_device *brport_dev, struct netdev_notifier_changeupper_info *info) ocelot_netdevice_changeupper() argument 1491 ocelot_netdevice_lag_changeupper(struct net_device *dev, struct netdev_notifier_changeupper_info *info) ocelot_netdevice_lag_changeupper() argument 1514 ocelot_netdevice_prechangeupper(struct net_device *dev, struct net_device *brport_dev, struct netdev_notifier_changeupper_info *info) ocelot_netdevice_prechangeupper() argument 1528 ocelot_netdevice_lag_prechangeupper(struct net_device *dev, struct netdev_notifier_changeupper_info *info) ocelot_netdevice_lag_prechangeupper() argument 1551 ocelot_netdevice_changelowerstate(struct net_device *dev, struct netdev_lag_lower_state_info *info) ocelot_netdevice_changelowerstate() argument 1574 struct net_device *dev = netdev_notifier_info_to_dev(ptr); ocelot_netdevice_event() local 1622 struct net_device *dev = switchdev_notifier_info_to_dev(ptr); ocelot_switchdev_event() local 1643 struct net_device *dev = switchdev_notifier_info_to_dev(ptr); ocelot_switchdev_blocking_event() local 1725 struct device *dev = ocelot->dev; ocelot_port_phylink_create() local 1788 struct net_device *dev; ocelot_probe_port() local [all...] |
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpiolib-devres.c | 18 static void devm_gpiod_release(struct device *dev, void *res) in devm_gpiod_release() argument 25 static int devm_gpiod_match(struct device *dev, void *res, void *data) in devm_gpiod_match() argument 32 static void devm_gpiod_release_array(struct device *dev, void *res) in devm_gpiod_release_array() argument 39 static int devm_gpiod_match_array(struct device *dev, void *res, void *data) in devm_gpiod_match_array() argument 48 * @dev: GPIO consumer 56 struct gpio_desc *__must_check devm_gpiod_get(struct device *dev, in devm_gpiod_get() argument 60 return devm_gpiod_get_index(dev, con_id, 0, flags); in devm_gpiod_get() 66 * @dev: GPIO consumer 74 struct gpio_desc *__must_check devm_gpiod_get_optional(struct device *dev, in devm_gpiod_get_optional() argument 78 return devm_gpiod_get_index_optional(dev, con_i in devm_gpiod_get_optional() 93 devm_gpiod_get_index(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags) devm_gpiod_get_index() argument 147 devm_gpiod_get_from_of_node(struct device *dev, struct device_node *node, const char *propname, int index, enum gpiod_flags dflags, const char *label) devm_gpiod_get_from_of_node() argument 202 devm_fwnode_gpiod_get_index(struct device *dev, struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label) devm_fwnode_gpiod_get_index() argument 241 devm_gpiod_get_index_optional(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags) devm_gpiod_get_index_optional() argument 268 devm_gpiod_get_array(struct device *dev, const char *con_id, enum gpiod_flags flags) devm_gpiod_get_array() argument 305 devm_gpiod_get_array_optional(struct device *dev, const char *con_id, enum gpiod_flags flags) devm_gpiod_get_array_optional() argument 327 devm_gpiod_put(struct device *dev, struct gpio_desc *desc) devm_gpiod_put() argument 344 devm_gpiod_unhinge(struct device *dev, struct gpio_desc *desc) devm_gpiod_unhinge() argument 373 devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs) devm_gpiod_put_array() argument 383 devm_gpio_release(struct device *dev, void *res) devm_gpio_release() argument 390 devm_gpio_match(struct device *dev, void *res, void *data) devm_gpio_match() argument 412 devm_gpio_request(struct device *dev, unsigned gpio, const char *label) devm_gpio_request() argument 441 devm_gpio_request_one(struct device *dev, unsigned gpio, unsigned long flags, const char *label) devm_gpio_request_one() argument 474 devm_gpio_free(struct device *dev, unsigned int gpio) devm_gpio_free() argument 482 devm_gpio_chip_release(struct device *dev, void *res) devm_gpio_chip_release() argument 506 devm_gpiochip_add_data_with_key(struct device *dev, struct gpio_chip *gc, void *data, struct lock_class_key *lock_key, struct lock_class_key *request_key) devm_gpiochip_add_data_with_key() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/pci/ |
H A D | intel_mid_pci.c | 215 static int intel_mid_pci_irq_enable(struct pci_dev *dev) in intel_mid_pci_irq_enable() argument 222 if (dev->irq_managed && dev->irq > 0) in intel_mid_pci_irq_enable() 225 ret = pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &gsi); in intel_mid_pci_irq_enable() 227 dev_warn(&dev->dev, "Failed to read interrupt line: %d\n", ret); in intel_mid_pci_irq_enable() 241 if (dev->device == PCI_DEVICE_ID_INTEL_MRFLD_HSU) in intel_mid_pci_irq_enable() 250 if (dev->device != PCI_DEVICE_ID_INTEL_MRFLD_MMC) in intel_mid_pci_irq_enable() 259 ioapic_set_alloc_attr(&info, dev_to_node(&dev->dev), in intel_mid_pci_irq_enable() 275 intel_mid_pci_irq_disable(struct pci_dev *dev) intel_mid_pci_irq_disable() argument 312 pci_d3delay_fixup(struct pci_dev *dev) pci_d3delay_fixup() argument 330 mid_power_off_one_device(struct pci_dev *dev) mid_power_off_one_device() argument 344 mid_power_off_devices(struct pci_dev *dev) mid_power_off_devices() argument 367 pci_fixed_bar_fixup(struct pci_dev *dev) pci_fixed_bar_fixup() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/8390/ |
H A D | hydra.c | 59 static int hydra_open(struct net_device *dev); 60 static int hydra_close(struct net_device *dev); 61 static void hydra_reset_8390(struct net_device *dev); 62 static void hydra_get_8390_hdr(struct net_device *dev, 64 static void hydra_block_input(struct net_device *dev, int count, 66 static void hydra_block_output(struct net_device *dev, int count, 114 struct net_device *dev; in hydra_init() local 127 dev = ____alloc_ei_netdev(0); in hydra_init() 128 if (!dev) in hydra_init() 132 dev in hydra_init() 181 hydra_open(struct net_device *dev) hydra_open() argument 187 hydra_close(struct net_device *dev) hydra_close() argument 196 hydra_reset_8390(struct net_device *dev) hydra_reset_8390() argument 201 hydra_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page) hydra_get_8390_hdr() argument 217 hydra_block_input(struct net_device *dev, int count, struct sk_buff *skb, int ring_offset) hydra_block_input() argument 238 hydra_block_output(struct net_device *dev, int count, const unsigned char *buf, int start_page) hydra_block_output() argument 252 struct net_device *dev = zorro_get_drvdata(z); hydra_remove_one() local [all...] |
/kernel/linux/linux-6.6/arch/mips/sgi-ip22/ |
H A D | ip22-gio.c | 31 static void gio_bus_release(struct device *dev) in gio_bus_release() argument 33 kfree(dev); in gio_bus_release() 45 * @dev: the of device structure to match against 52 const struct gio_device *dev) in gio_match_device() 57 if (ids->id == dev->id.id) in gio_match_device() 63 struct gio_device *gio_dev_get(struct gio_device *dev) in gio_dev_get() argument 67 if (!dev) in gio_dev_get() 69 tmp = get_device(&dev->dev); in gio_dev_get() 77 void gio_dev_put(struct gio_device *dev) in gio_dev_put() argument 51 gio_match_device(const struct gio_device_id *match, const struct gio_device *dev) gio_match_device() argument 91 gio_release_dev(struct device *dev) gio_release_dev() argument 114 gio_bus_match(struct device *dev, struct device_driver *drv) gio_bus_match() argument 122 gio_device_probe(struct device *dev) gio_device_probe() argument 146 gio_device_remove(struct device *dev) gio_device_remove() argument 155 gio_device_shutdown(struct device *dev) gio_device_shutdown() argument 164 modalias_show(struct device *dev, struct device_attribute *a, char *buf) modalias_show() argument 174 name_show(struct device *dev, struct device_attribute *attr, char *buf) name_show() argument 184 id_show(struct device *dev, struct device_attribute *attr, char *buf) id_show() argument 202 gio_device_uevent(const struct device *dev, struct kobj_uevent_env *env) gio_device_uevent() argument 230 gio_set_master(struct gio_device *dev) gio_set_master() argument [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
H A D | mthca_profile.c | 64 s64 mthca_make_profile(struct mthca_dev *dev, in mthca_make_profile() argument 96 profile[MTHCA_RES_MTT].size = dev->limits.mtt_seg_size; in mthca_make_profile() 118 if (mthca_is_memfree(dev)) in mthca_make_profile() 122 if (mthca_is_memfree(dev)) { in mthca_make_profile() 126 mem_base = dev->ddr_start; in mthca_make_profile() 127 mem_avail = dev->fw.tavor.fw_start - dev->ddr_start; in mthca_make_profile() 148 mthca_err(dev, "Profile requires 0x%llx bytes; " in mthca_make_profile() 157 mthca_dbg(dev, "profile[%2d]--%2d/%2d @ 0x%16llx " in mthca_make_profile() 164 if (mthca_is_memfree(dev)) in mthca_make_profile() [all...] |
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A D | elo.c | 52 struct input_dev *dev; member 67 struct input_dev *dev = elo->dev; in elo_process_data_10() local 75 dev_dbg(&elo->serio->dev, in elo_process_data_10() 84 dev_dbg(&elo->serio->dev, in elo_process_data_10() 91 dev_dbg(&elo->serio->dev, in elo_process_data_10() 97 input_report_abs(dev, ABS_X, (elo->data[4] << 8) | elo->data[3]); in elo_process_data_10() 98 input_report_abs(dev, ABS_Y, (elo->data[6] << 8) | elo->data[5]); in elo_process_data_10() 100 input_report_abs(dev, ABS_PRESSURE, in elo_process_data_10() 102 input_report_key(dev, BTN_TOUC in elo_process_data_10() 119 struct input_dev *dev = elo->dev; elo_process_data_6() local 177 struct input_dev *dev = elo->dev; elo_process_data_3() local 261 struct input_dev *dev = elo->dev; elo_setup_10() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-mdp/ |
H A D | mtk_mdp_core.c | 57 struct device *dev = &mdp->pdev->dev; in mtk_mdp_clock_on() local 61 mtk_mdp_comp_clock_on(dev, comp_node); in mtk_mdp_clock_on() 66 struct device *dev = &mdp->pdev->dev; in mtk_mdp_clock_off() local 70 mtk_mdp_comp_clock_off(dev, comp_node); in mtk_mdp_clock_off() 109 struct device *dev = &pdev->dev; in mtk_mdp_probe() local 114 mdp = devm_kzalloc(dev, sizeof(*mdp), GFP_KERNEL); in mtk_mdp_probe() 127 node = of_get_next_child(dev in mtk_mdp_probe() 264 mtk_mdp_pm_suspend(struct device *dev) mtk_mdp_pm_suspend() argument 273 mtk_mdp_pm_resume(struct device *dev) mtk_mdp_pm_resume() argument 282 mtk_mdp_suspend(struct device *dev) mtk_mdp_suspend() argument 290 mtk_mdp_resume(struct device *dev) mtk_mdp_resume() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/roles/ |
H A D | class.c | 20 struct device dev; member 34 #define to_role_switch(d) container_of(d, struct usb_role_switch, dev) 55 kobject_uevent(&sw->dev.kobj, KOBJ_CHANGE); in usb_role_switch_set_role() 94 struct device *dev; in usb_role_switch_match() local 99 dev = class_find_device_by_fwnode(role_class, fwnode); in usb_role_switch_match() 101 return dev ? to_role_switch(dev) : ERR_PTR(-EPROBE_DEFER); in usb_role_switch_match() 108 struct device *dev; in usb_role_switch_is_parent() local 115 dev = class_find_device_by_fwnode(role_class, parent); in usb_role_switch_is_parent() 117 return dev in usb_role_switch_is_parent() 127 usb_role_switch_get(struct device *dev) usb_role_switch_get() argument 190 struct device *dev; usb_role_switch_find_by_fwnode() local 209 struct device *dev = kobj_to_dev(kobj); usb_role_switch_is_visible() local 225 role_show(struct device *dev, struct device_attribute *attr, char *buf) role_show() argument 233 role_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) role_store() argument 273 usb_role_switch_uevent(struct device *dev, struct kobj_uevent_env *env) usb_role_switch_uevent() argument 284 usb_role_switch_release(struct device *dev) usb_role_switch_release() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ohci-s3c2410.c | 60 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc() argument 62 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev); in s3c2410_start_hc() 64 dev_dbg(&dev->dev, "s3c2410_start_hc:\n"); in s3c2410_start_hc() 80 static void s3c2410_stop_hc(struct platform_device *dev) in s3c2410_stop_hc() argument 82 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev); in s3c2410_stop_hc() 84 dev_dbg(&dev->dev, "s3c2410_stop_h in s3c2410_stop_hc() 336 ohci_hcd_s3c2410_remove(struct platform_device *dev) ohci_hcd_s3c2410_remove() argument 355 ohci_hcd_s3c2410_probe(struct platform_device *dev) ohci_hcd_s3c2410_probe() argument 411 ohci_hcd_s3c2410_drv_suspend(struct device *dev) ohci_hcd_s3c2410_drv_suspend() argument 427 ohci_hcd_s3c2410_drv_resume(struct device *dev) ohci_hcd_s3c2410_drv_resume() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | usb3503.c | 46 struct device *dev; member 72 struct device *dev = hub->dev; in usb3503_connect() local 83 dev_err(dev, "SP_ILOCK failed (%d)\n", err); in usb3503_connect() 93 dev_err(dev, "PDS failed (%d)\n", err); in usb3503_connect() 103 dev_err(dev, "CFG1 failed (%d)\n", err); in usb3503_connect() 112 dev_err(dev, "SP_ILOCK failed (%d)\n", err); in usb3503_connect() 121 dev_info(dev, "switched to HUB mode\n"); in usb3503_connect() 128 struct device *dev = hub->dev; in usb3503_switch_mode() local 159 struct device *dev = hub->dev; usb3503_probe() local 341 usb3503_i2c_suspend(struct device *dev) usb3503_i2c_suspend() argument 348 usb3503_i2c_resume(struct device *dev) usb3503_i2c_resume() argument 355 usb3503_platform_suspend(struct device *dev) usb3503_platform_suspend() argument 360 usb3503_platform_resume(struct device *dev) usb3503_platform_resume() argument [all...] |
/kernel/linux/linux-5.10/sound/isa/sb/ |
H A D | jazz16.c | 186 static int snd_jazz16_match(struct device *devptr, unsigned int dev) in snd_jazz16_match() argument 188 if (!enable[dev]) in snd_jazz16_match() 190 if (port[dev] == SNDRV_AUTO_PORT) { in snd_jazz16_match() 193 } else if (port[dev] == 0x200 || (port[dev] & ~0x270)) { in snd_jazz16_match() 197 if (dma8[dev] != SNDRV_AUTO_DMA && in snd_jazz16_match() 198 dma8[dev] != 1 && dma8[dev] != 3) { in snd_jazz16_match() 202 if (dma16[dev] != SNDRV_AUTO_DMA && in snd_jazz16_match() 203 dma16[dev] ! in snd_jazz16_match() 221 snd_jazz16_probe(struct device *devptr, unsigned int dev) snd_jazz16_probe() argument 342 snd_jazz16_remove(struct device *devptr, unsigned int dev) snd_jazz16_remove() argument [all...] |
/kernel/linux/linux-5.10/sound/soc/ |
H A D | soc-ac97.c | 49 static void soc_ac97_device_release(struct device *dev) in soc_ac97_device_release() argument 51 kfree(to_ac97_t(dev)); in soc_ac97_device_release() 75 dev_dbg(component->dev, "set gpio %d to output\n", offset); in snd_soc_ac97_gpio_direction_in() 87 dev_dbg(component->dev, "get gpio %d : %d\n", offset, in snd_soc_ac97_gpio_get() 103 dev_dbg(component->dev, "set gpio %d to %d\n", offset, !!value); in snd_soc_ac97_gpio_set() 111 dev_dbg(component->dev, "set gpio %d to output\n", offset); in snd_soc_ac97_gpio_direction_out() 134 gpio_priv = devm_kzalloc(component->dev, sizeof(*gpio_priv), GFP_KERNEL); in snd_soc_ac97_init_gpio() 141 gpio_priv->gpio_chip.parent = component->dev; in snd_soc_ac97_init_gpio() 146 dev_err(component->dev, "Failed to add GPIOs: %d\n", ret); in snd_soc_ac97_init_gpio() 171 * it. The caller is responsible to either call device_add(&ac97->dev) t 301 snd_soc_ac97_parse_pinctl(struct device *dev, struct snd_ac97_reset_cfg *cfg) snd_soc_ac97_parse_pinctl() argument 405 struct device *dev = &pdev->dev; snd_soc_set_ac97_ops_of_reset() local [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-bq32k.c | 52 static int bq32k_read(struct device *dev, void *data, uint8_t off, uint8_t len) in bq32k_read() argument 54 struct i2c_client *client = to_i2c_client(dev); in bq32k_read() 75 static int bq32k_write(struct device *dev, void *data, uint8_t off, uint8_t len) in bq32k_write() argument 77 struct i2c_client *client = to_i2c_client(dev); in bq32k_write() 89 static int bq32k_rtc_read_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_read_time() argument 94 error = bq32k_read(dev, ®s, 0, sizeof(regs)); in bq32k_rtc_read_time() 117 static int bq32k_rtc_set_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_set_time() argument 134 return bq32k_write(dev, ®s, 0, sizeof(regs)); in bq32k_rtc_set_time() 142 static int trickle_charger_of_init(struct device *dev, struct device_node *node) in trickle_charger_of_init() argument 159 dev_err(dev, "diod in trickle_charger_of_init() 193 bq32k_sysfs_show_tricklecharge_bypass(struct device *dev, struct device_attribute *attr, char *buf) bq32k_sysfs_show_tricklecharge_bypass() argument 206 bq32k_sysfs_store_tricklecharge_bypass(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) bq32k_sysfs_store_tricklecharge_bypass() argument 242 bq32k_sysfs_register(struct device *dev) bq32k_sysfs_register() argument 247 bq32k_sysfs_unregister(struct device *dev) bq32k_sysfs_unregister() argument 255 struct device *dev = &client->dev; bq32k_probe() local [all...] |
H A D | rtc-cros-ec.c | 47 dev_err(cros_ec->dev, in cros_ec_rtc_get() 75 dev_err(cros_ec->dev, "error setting %s on EC: %d\n", in cros_ec_rtc_set() 85 static int cros_ec_rtc_read_time(struct device *dev, struct rtc_time *tm) in cros_ec_rtc_read_time() argument 87 struct cros_ec_rtc *cros_ec_rtc = dev_get_drvdata(dev); in cros_ec_rtc_read_time() 94 dev_err(dev, "error getting time: %d\n", ret); in cros_ec_rtc_read_time() 104 static int cros_ec_rtc_set_time(struct device *dev, struct rtc_time *tm) in cros_ec_rtc_set_time() argument 106 struct cros_ec_rtc *cros_ec_rtc = dev_get_drvdata(dev); in cros_ec_rtc_set_time() 113 dev_err(dev, "error setting time: %d\n", ret); in cros_ec_rtc_set_time() 121 static int cros_ec_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in cros_ec_rtc_read_alarm() argument 123 struct cros_ec_rtc *cros_ec_rtc = dev_get_drvdata(dev); in cros_ec_rtc_read_alarm() 151 cros_ec_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) cros_ec_rtc_set_alarm() argument 200 cros_ec_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) cros_ec_rtc_alarm_irq_enable() argument 291 cros_ec_rtc_suspend(struct device *dev) cros_ec_rtc_suspend() argument 302 cros_ec_rtc_resume(struct device *dev) cros_ec_rtc_resume() argument 372 struct device *dev = &pdev->dev; cros_ec_rtc_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | gbphy.c | 29 static ssize_t protocol_id_show(struct device *dev, in protocol_id_show() argument 32 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in protocol_id_show() 45 static void gbphy_dev_release(struct device *dev) in gbphy_dev_release() argument 47 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in gbphy_dev_release() 54 static int gb_gbphy_idle(struct device *dev) in gb_gbphy_idle() argument 56 pm_runtime_mark_last_busy(dev); in gb_gbphy_idle() 57 pm_request_autosuspend(dev); in gb_gbphy_idle() 74 static int gbphy_dev_uevent(struct device *dev, struct kobj_uevent_env *env) in gbphy_dev_uevent() argument 76 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in gbphy_dev_uevent() 120 static int gbphy_dev_match(struct device *dev, struc argument 133 gbphy_dev_probe(struct device *dev) gbphy_dev_probe() argument 172 gbphy_dev_remove(struct device *dev) gbphy_dev_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_dcb.c | 46 static int sparx5_dcb_app_validate(struct net_device *dev, in sparx5_dcb_app_validate() argument 79 netdev_err(dev, "Invalid entry: %d:%d\n", app->protocol, in sparx5_dcb_app_validate() 90 static int sparx5_dcb_apptrust_validate(struct net_device *dev, u8 *selectors, in sparx5_dcb_apptrust_validate() argument 113 netdev_err(dev, "Valid apptrust configurations are:\n"); in sparx5_dcb_apptrust_validate() 134 static int sparx5_dcb_app_update(struct net_device *dev) in sparx5_dcb_app_update() argument 138 struct sparx5_port *port = netdev_priv(dev); in sparx5_dcb_app_update() 153 qos.default_prio = dcb_ieee_getapp_default_prio_mask(dev); in sparx5_dcb_app_update() 161 dscp_map->map[i] = dcb_getapp(dev, &app_itr); in sparx5_dcb_app_update() 168 pcp_map->map[i] = dcb_getapp(dev, &app_itr); in sparx5_dcb_app_update() 172 dcb_getrewr_prio_pcp_mask_map(dev, in sparx5_dcb_app_update() 231 sparx5_dcb_ieee_dscp_setdel(struct net_device *dev, struct dcb_app *app, int (*setdel)(struct net_device *, struct dcb_app *)) sparx5_dcb_ieee_dscp_setdel() argument 252 sparx5_dcb_ieee_delapp(struct net_device *dev, struct dcb_app *app) sparx5_dcb_ieee_delapp() argument 267 sparx5_dcb_ieee_setapp(struct net_device *dev, struct dcb_app *app) sparx5_dcb_ieee_setapp() argument 299 sparx5_dcb_setapptrust(struct net_device *dev, u8 *selectors, int nselectors) sparx5_dcb_setapptrust() argument 314 sparx5_dcb_getapptrust(struct net_device *dev, u8 *selectors, int *nselectors) sparx5_dcb_getapptrust() argument 328 sparx5_dcb_delrewr(struct net_device *dev, struct dcb_app *app) sparx5_dcb_delrewr() argument 343 sparx5_dcb_setrewr(struct net_device *dev, struct dcb_app *app) sparx5_dcb_setrewr() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/8390/ |
H A D | hydra.c | 57 static int hydra_open(struct net_device *dev); 58 static int hydra_close(struct net_device *dev); 59 static void hydra_reset_8390(struct net_device *dev); 60 static void hydra_get_8390_hdr(struct net_device *dev, 62 static void hydra_block_input(struct net_device *dev, int count, 64 static void hydra_block_output(struct net_device *dev, int count, 112 struct net_device *dev; in hydra_init() local 126 dev = ____alloc_ei_netdev(0); in hydra_init() 127 if (!dev) in hydra_init() 132 eth_hw_addr_set(dev, macadd in hydra_init() 181 hydra_open(struct net_device *dev) hydra_open() argument 187 hydra_close(struct net_device *dev) hydra_close() argument 196 hydra_reset_8390(struct net_device *dev) hydra_reset_8390() argument 201 hydra_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page) hydra_get_8390_hdr() argument 217 hydra_block_input(struct net_device *dev, int count, struct sk_buff *skb, int ring_offset) hydra_block_input() argument 238 hydra_block_output(struct net_device *dev, int count, const unsigned char *buf, int start_page) hydra_block_output() argument 252 struct net_device *dev = zorro_get_drvdata(z); hydra_remove_one() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/greybus/ |
H A D | gbphy.c | 29 static ssize_t protocol_id_show(struct device *dev, in protocol_id_show() argument 32 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in protocol_id_show() 45 static void gbphy_dev_release(struct device *dev) in gbphy_dev_release() argument 47 struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in gbphy_dev_release() 54 static int gb_gbphy_idle(struct device *dev) in gb_gbphy_idle() argument 56 pm_runtime_mark_last_busy(dev); in gb_gbphy_idle() 57 pm_request_autosuspend(dev); in gb_gbphy_idle() 74 static int gbphy_dev_uevent(const struct device *dev, struct kobj_uevent_env *env) in gbphy_dev_uevent() argument 76 const struct gbphy_device *gbphy_dev = to_gbphy_dev(dev); in gbphy_dev_uevent() 120 static int gbphy_dev_match(struct device *dev, struc argument 133 gbphy_dev_probe(struct device *dev) gbphy_dev_probe() argument 172 gbphy_dev_remove(struct device *dev) gbphy_dev_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-bq32k.c | 53 static int bq32k_read(struct device *dev, void *data, uint8_t off, uint8_t len) in bq32k_read() argument 55 struct i2c_client *client = to_i2c_client(dev); in bq32k_read() 76 static int bq32k_write(struct device *dev, void *data, uint8_t off, uint8_t len) in bq32k_write() argument 78 struct i2c_client *client = to_i2c_client(dev); in bq32k_write() 90 static int bq32k_rtc_read_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_read_time() argument 95 error = bq32k_read(dev, ®s, 0, sizeof(regs)); in bq32k_rtc_read_time() 118 static int bq32k_rtc_set_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_set_time() argument 135 return bq32k_write(dev, ®s, 0, sizeof(regs)); in bq32k_rtc_set_time() 143 static int trickle_charger_of_init(struct device *dev, struct device_node *node) in trickle_charger_of_init() argument 160 dev_err(dev, "diod in trickle_charger_of_init() 194 bq32k_sysfs_show_tricklecharge_bypass(struct device *dev, struct device_attribute *attr, char *buf) bq32k_sysfs_show_tricklecharge_bypass() argument 207 bq32k_sysfs_store_tricklecharge_bypass(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) bq32k_sysfs_store_tricklecharge_bypass() argument 243 bq32k_sysfs_register(struct device *dev) bq32k_sysfs_register() argument 248 bq32k_sysfs_unregister(struct device *dev) bq32k_sysfs_unregister() argument 255 struct device *dev = &client->dev; bq32k_probe() local [all...] |
H A D | rtc-moxart.c | 67 static void moxart_rtc_write_byte(struct device *dev, u8 data) in moxart_rtc_write_byte() argument 69 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_write_byte() 81 static u8 moxart_rtc_read_byte(struct device *dev) in moxart_rtc_read_byte() argument 83 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_read_byte() 99 static u8 moxart_rtc_read_register(struct device *dev, u8 cmd) in moxart_rtc_read_register() argument 101 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_read_register() 110 moxart_rtc_write_byte(dev, cmd); in moxart_rtc_read_register() 113 data = moxart_rtc_read_byte(dev); in moxart_rtc_read_register() 123 static void moxart_rtc_write_register(struct device *dev, u8 cmd, u8 data) in moxart_rtc_write_register() argument 125 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_write_register() 142 moxart_rtc_set_time(struct device *dev, struct rtc_time *tm) moxart_rtc_set_time() argument 185 moxart_rtc_read_time(struct device *dev, struct rtc_time *tm) moxart_rtc_read_time() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ohci-s3c2410.c | 58 static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) in s3c2410_start_hc() argument 60 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev); in s3c2410_start_hc() 62 dev_dbg(&dev->dev, "s3c2410_start_hc:\n"); in s3c2410_start_hc() 78 static void s3c2410_stop_hc(struct platform_device *dev) in s3c2410_stop_hc() argument 80 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev); in s3c2410_stop_hc() 82 dev_dbg(&dev->dev, "s3c2410_stop_h in s3c2410_stop_hc() 333 ohci_hcd_s3c2410_remove(struct platform_device *dev) ohci_hcd_s3c2410_remove() argument 352 ohci_hcd_s3c2410_probe(struct platform_device *dev) ohci_hcd_s3c2410_probe() argument 414 ohci_hcd_s3c2410_drv_suspend(struct device *dev) ohci_hcd_s3c2410_drv_suspend() argument 430 ohci_hcd_s3c2410_drv_resume(struct device *dev) ohci_hcd_s3c2410_drv_resume() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/roles/ |
H A D | class.c | 22 struct device dev; member 37 #define to_role_switch(d) container_of(d, struct usb_role_switch, dev) 61 kobject_uevent(&sw->dev.kobj, KOBJ_CHANGE); in usb_role_switch_set_role() 100 struct device *dev; in usb_role_switch_match() local 105 dev = class_find_device_by_fwnode(&role_class, fwnode); in usb_role_switch_match() 107 return dev ? to_role_switch(dev) : ERR_PTR(-EPROBE_DEFER); in usb_role_switch_match() 114 struct device *dev; in usb_role_switch_is_parent() local 121 dev = class_find_device_by_fwnode(&role_class, parent); in usb_role_switch_is_parent() 123 return dev in usb_role_switch_is_parent() 133 usb_role_switch_get(struct device *dev) usb_role_switch_get() argument 196 struct device *dev; usb_role_switch_find_by_fwnode() local 215 struct device *dev = kobj_to_dev(kobj); usb_role_switch_is_visible() local 240 role_show(struct device *dev, struct device_attribute *attr, char *buf) role_show() argument 248 role_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) role_store() argument 287 usb_role_switch_uevent(const struct device *dev, struct kobj_uevent_env *env) usb_role_switch_uevent() argument 298 usb_role_switch_release(struct device *dev) usb_role_switch_release() argument [all...] |