Home
last modified time | relevance | path

Searched refs:idev (Results 1 – 25 of 136) sorted by relevance

123456

/linux/drivers/i2c/busses/
H A Di2c-axxia.c154 static void i2c_int_disable(struct axxia_i2c_dev *idev, u32 mask) in i2c_int_disable() argument
158 int_en = readl(idev->base + MST_INT_ENABLE); in i2c_int_disable()
159 writel(int_en & ~mask, idev->base + MST_INT_ENABLE); in i2c_int_disable()
162 static void i2c_int_enable(struct axxia_i2c_dev *idev, u32 mask) in i2c_int_enable() argument
166 int_en = readl(idev->base + MST_INT_ENABLE); in i2c_int_enable()
167 writel(int_en | mask, idev->base + MST_INT_ENABLE); in i2c_int_enable()
178 static int axxia_i2c_init(struct axxia_i2c_dev *idev) in axxia_i2c_init() argument
180 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in axxia_i2c_init()
181 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in axxia_i2c_init()
188 dev_dbg(idev->dev, "rate=%uHz per_clk=%uMHz -> ratio=1:%u\n", in axxia_i2c_init()
[all …]
H A Di2c-microchip-corei2c.c129 static void mchp_corei2c_core_disable(struct mchp_corei2c_dev *idev) in mchp_corei2c_core_disable() argument
131 u8 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_disable()
134 writeb(ctrl, idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_disable()
137 static void mchp_corei2c_core_enable(struct mchp_corei2c_dev *idev) in mchp_corei2c_core_enable() argument
139 u8 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_enable()
142 writeb(ctrl, idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_enable()
145 static void mchp_corei2c_reset(struct mchp_corei2c_dev *idev) in mchp_corei2c_reset() argument
147 mchp_corei2c_core_disable(idev); in mchp_corei2c_reset()
148 mchp_corei2c_core_enable(idev); in mchp_corei2c_reset()
151 static inline void mchp_corei2c_stop(struct mchp_corei2c_dev *idev) in mchp_corei2c_stop() argument
[all …]
/linux/net/ipv6/
H A Dmcast.c80 static void mld_ifc_event(struct inet6_dev *idev);
81 static bool mld_in_v1_mode(const struct inet6_dev *idev);
85 static int ip6_mc_del_src(struct inet6_dev *idev, const struct in6_addr *pmca,
88 static int ip6_mc_add_src(struct inet6_dev *idev, const struct in6_addr *pmca,
92 struct inet6_dev *idev);
111 #define mc_assert_locked(idev) \ argument
112 lockdep_assert_held(&(idev)->mc_lock)
114 #define mc_dereference(e, idev) \ argument
115 rcu_dereference_protected(e, lockdep_is_held(&(idev)->mc_lock))
131 for (psf = mc_dereference((mc)->mca_sources, mc->idev); \
[all …]
H A Daddrconf.c127 static int addrconf_sysctl_register(struct inet6_dev *idev);
128 static void addrconf_sysctl_unregister(struct inet6_dev *idev);
130 static inline int addrconf_sysctl_register(struct inet6_dev *idev) in addrconf_sysctl_register() argument
135 static inline void addrconf_sysctl_unregister(struct inet6_dev *idev) in addrconf_sysctl_unregister() argument
143 static int ipv6_count_addresses(const struct inet6_dev *idev);
146 const struct inet6_dev *idev);
173 static void addrconf_dad_run(struct inet6_dev *idev, bool restart);
178 static void inet6_prefix_notify(int event, struct inet6_dev *idev,
317 static void addrconf_del_rs_timer(struct inet6_dev *idev) in addrconf_del_rs_timer() argument
319 if (timer_delete(&idev in addrconf_del_rs_timer()
329 addrconf_mod_rs_timer(struct inet6_dev * idev,unsigned long when) addrconf_mod_rs_timer() argument
344 snmp6_alloc_dev(struct inet6_dev * idev) snmp6_alloc_dev() argument
492 struct inet6_dev *idev; ipv6_find_idev() local
745 struct inet6_dev *idev; inet6_netconf_dump_devconf() local
806 dev_forward_change(struct inet6_dev * idev) dev_forward_change() argument
856 struct inet6_dev *idev; addrconf_forward_change() local
922 struct inet6_dev *idev; addrconf_linkdown_change() local
969 struct inet6_dev *idev = table->extra1; addrconf_fixup_linkdown() local
1010 ipv6_link_dev_addr(struct inet6_dev * idev,struct inet6_ifaddr * ifp) ipv6_link_dev_addr() argument
1074 ipv6_add_addr(struct inet6_dev * idev,struct ifa6_config * cfg,bool can_block,struct netlink_ext_ack * extack) ipv6_add_addr() argument
1237 struct inet6_dev *idev = ifp->idev; check_cleanup_prefix_route() local
1361 ipv6_get_regen_advance(const struct inet6_dev * idev) ipv6_get_regen_advance() argument
1371 struct inet6_dev *idev = ifp->idev; ipv6_create_tempaddr() local
1560 ipv6_use_optimistic_addr(const struct net * net,const struct inet6_dev * idev) ipv6_use_optimistic_addr() argument
1579 ipv6_allow_optimistic_dad(const struct net * net,const struct inet6_dev * idev) ipv6_allow_optimistic_dad() argument
1730 __ipv6_dev_get_saddr(struct net * net,struct ipv6_saddr_dst * dst,struct inet6_dev * idev,struct ipv6_saddr_score * scores,int hiscore_idx) __ipv6_dev_get_saddr() argument
1807 struct inet6_dev *idev; ipv6_get_saddr_master() local
1828 struct inet6_dev *idev; ipv6_dev_get_saddr() local
1921 __ipv6_get_lladdr(struct inet6_dev * idev,struct in6_addr * addr,u32 banned_flags) __ipv6_get_lladdr() argument
1943 struct inet6_dev *idev; ipv6_get_lladdr() local
1957 ipv6_count_addresses(const struct inet6_dev * idev) ipv6_count_addresses() argument
2044 const struct inet6_dev *idev; ipv6_chk_custom_prefix() local
2065 const struct inet6_dev *idev; ipv6_chk_prefix() local
2174 struct inet6_dev *idev = ifp->idev; addrconf_dad_failure() local
2265 addrconf_leave_solict(struct inet6_dev * idev,const struct in6_addr * addr) addrconf_leave_solict() argument
2419 ipv6_inherit_eui64(u8 * eui,struct inet6_dev * idev) ipv6_inherit_eui64() argument
2573 struct inet6_dev *idev; addrconf_add_dev() local
2591 delete_tempaddrs(struct inet6_dev * idev,struct inet6_ifaddr * ifp) delete_tempaddrs() argument
2609 manage_tempaddrs(struct inet6_dev * idev,struct inet6_ifaddr * ifp,__u32 valid_lft,__u32 prefered_lft,bool create,unsigned long now) manage_tempaddrs() argument
2689 is_addr_mode_generate_stable(struct inet6_dev * idev) is_addr_mode_generate_stable() argument
3042 struct inet6_dev *idev; inet6_addr_add() local
3112 struct inet6_dev *idev; inet6_addr_del() local
3211 add_addr(struct inet6_dev * idev,const struct in6_addr * addr,int plen,int scope,u8 proto) add_addr() argument
3237 add_v4_addrs(struct inet6_dev * idev) add_v4_addrs() argument
3299 struct inet6_dev *idev; init_loopback() local
3314 addrconf_add_linklocal(struct inet6_dev * idev,const struct in6_addr * addr,u32 flags) addrconf_add_linklocal() argument
3363 ipv6_generate_stable_address(struct in6_addr * address,u8 dad_count,const struct inet6_dev * idev) ipv6_generate_stable_address() argument
3428 ipv6_gen_mode_random_init(struct inet6_dev * idev) ipv6_gen_mode_random_init() argument
3439 addrconf_addr_gen(struct inet6_dev * idev,bool prefix_route) addrconf_addr_gen() argument
3485 struct inet6_dev *idev; addrconf_dev_config() local
3524 struct inet6_dev *idev; addrconf_sit_config() local
3555 struct inet6_dev *idev; addrconf_gre_config() local
3602 fixup_permanent_addr(struct net * net,struct inet6_dev * idev,struct inet6_ifaddr * ifp) fixup_permanent_addr() argument
3642 struct inet6_dev *idev; addrconf_permanent_addr() local
3678 struct inet6_dev *idev = __in6_dev_get(dev); addrconf_notify() local
3859 struct inet6_dev *idev; addrconf_type_change() local
3880 struct inet6_dev *idev; addrconf_ifdown() local
4052 struct inet6_dev *idev = timer_container_of(idev, t, rs_timer); addrconf_rs_timer() local
4106 struct inet6_dev *idev = ifp->idev; addrconf_dad_kick() local
4130 struct inet6_dev *idev = ifp->idev; addrconf_dad_begin() local
4217 struct inet6_dev *idev = ifp->idev; addrconf_dad_work() local
4329 struct inet6_dev *idev = ifp->idev; ipv6_lonely_lladdr() local
4419 addrconf_dad_run(struct inet6_dev * idev,bool restart) addrconf_dad_run() argument
4993 struct inet6_dev *idev; inet6_rtm_newaddr() local
5315 in6_dump_addrs(const struct inet6_dev * idev,struct sk_buff * skb,struct netlink_callback * cb,int * s_ip_idx,struct inet6_fill_args * fillargs) in6_dump_addrs() argument
5449 struct inet6_dev *idev; inet6_dump_addr() local
5818 snmp6_fill_stats(u64 * stats,struct inet6_dev * idev,int attrtype,int bytes) snmp6_fill_stats() argument
5833 inet6_fill_ifla6_stats_attrs(struct sk_buff * skb,struct inet6_dev * idev) inet6_fill_ifla6_stats_attrs() argument
5853 inet6_fill_ifla6_attrs(struct sk_buff * skb,struct inet6_dev * idev,u32 ext_filter_mask) inet6_fill_ifla6_attrs() argument
5913 struct inet6_dev *idev = __in6_dev_get(dev); inet6_fill_link_af() local
5924 inet6_set_iftoken(struct inet6_dev * idev,struct in6_addr * token,struct netlink_ext_ack * extack) inet6_set_iftoken() argument
6026 check_stable_privacy(struct inet6_dev * idev,struct net * net,int mode) check_stable_privacy() argument
6041 struct inet6_dev *idev = NULL; inet6_validate_link_af() local
6073 struct inet6_dev *idev = __in6_dev_get(dev); inet6_set_link_af() local
6099 inet6_fill_ifinfo(struct sk_buff * skb,struct inet6_dev * idev,u32 portid,u32 seq,int event,unsigned int flags) inet6_fill_ifinfo() argument
6179 struct inet6_dev *idev; inet6_dump_ifinfo() local
6210 inet6_ifinfo_notify(int event,struct inet6_dev * idev) inet6_ifinfo_notify() argument
6240 inet6_fill_prefix(struct sk_buff * skb,struct inet6_dev * idev,struct prefix_info * pinfo,u32 portid,u32 seq,int event,unsigned int flags) inet6_fill_prefix() argument
6276 inet6_prefix_notify(int event,struct inet6_dev * idev,struct prefix_info * pinfo) inet6_prefix_notify() argument
6391 struct inet6_dev *idev = ctl->extra1; addrconf_sysctl_mtu() local
6402 dev_disable_change(struct inet6_dev * idev) dev_disable_change() argument
6419 struct inet6_dev *idev; addrconf_disable_change() local
6511 struct inet6_dev *idev = ctl->extra1; addrconf_sysctl_proxy_ndp() local
6531 struct inet6_dev *idev = (struct inet6_dev *)ctl->extra1; addrconf_sysctl_addr_gen_mode() local
6639 struct inet6_dev *idev = __in6_dev_get_rtnl_net(dev); addrconf_sysctl_stable_secret() local
6647 struct inet6_dev *idev = ctl->extra1; addrconf_sysctl_stable_secret() local
6697 addrconf_disable_policy_idev(struct inet6_dev * idev,int val) addrconf_disable_policy_idev() argument
6730 struct inet6_dev *idev; addrconf_disable_policy() local
6782 struct inet6_dev *idev; addrconf_force_forward_change() local
6801 struct inet6_dev *idev = ctl->extra1; addrconf_sysctl_force_forwarding() local
7327 __addrconf_sysctl_register(struct net * net,char * dev_name,struct inet6_dev * idev,struct ipv6_devconf * p) __addrconf_sysctl_register() argument
7389 addrconf_sysctl_register(struct inet6_dev * idev) addrconf_sysctl_register() argument
7408 addrconf_sysctl_unregister(struct inet6_dev * idev) addrconf_sysctl_unregister() argument
7563 struct inet6_dev *idev; addrconf_init() local
[all...]
H A Danycast.c50 #define ac_dereference(a, idev) \ argument
51 rcu_dereference_protected(a, lockdep_is_held(&(idev)->lock))
74 struct inet6_dev *idev; in ipv6_sock_ac_join() local
127 idev = in6_dev_get(dev); in ipv6_sock_ac_join()
128 if (!idev) { in ipv6_sock_ac_join()
137 ishost = !READ_ONCE(idev->cnf.forwarding); in ipv6_sock_ac_join()
153 err = __ipv6_dev_ac_inc(idev, addr); in ipv6_sock_ac_join()
161 in6_dev_put(idev); in ipv6_sock_ac_join()
332 int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr) in __ipv6_dev_ac_inc() argument
339 write_lock_bh(&idev->lock); in __ipv6_dev_ac_inc()
[all …]
/linux/drivers/scsi/isci/
H A Dremote_device.h113 struct isci_remote_device *idev) in isci_get_device() argument
115 if (idev) in isci_get_device()
116 kref_get(&idev->kref); in isci_get_device()
117 return idev; in isci_get_device()
122 struct isci_remote_device *idev = dev->lldd_dev; in isci_lookup_device() local
124 if (idev && !test_bit(IDEV_GONE, &idev->flags)) { in isci_lookup_device()
125 kref_get(&idev->kref); in isci_lookup_device()
126 return idev; in isci_lookup_device()
133 static inline void isci_put_device(struct isci_remote_device *idev) in isci_put_device() argument
135 if (idev) in isci_put_device()
[all …]
H A Dtask.c106 static inline int isci_device_io_ready(struct isci_remote_device *idev, in isci_device_io_ready() argument
109 return idev ? test_bit(IDEV_IO_READY, &idev->flags) || in isci_device_io_ready()
110 (test_bit(IDEV_IO_NCQERROR, &idev->flags) && in isci_device_io_ready()
126 struct isci_remote_device *idev; in isci_task_execute_task() local
133 idev = isci_lookup_device(task->dev); in isci_task_execute_task()
134 io_ready = isci_device_io_ready(idev, task); in isci_task_execute_task()
140 task, task->dev, idev, idev ? idev->flags : 0, in isci_task_execute_task()
143 if (!idev) { in isci_task_execute_task()
172 status = isci_request_execute(ihost, idev, task, ireq); in isci_task_execute_task()
175 if (test_bit(IDEV_GONE, &idev->flags)) { in isci_task_execute_task()
[all …]
/linux/drivers/iommu/iommufd/
H A Ddevice.c34 static bool iommufd_device_is_noiommu(struct iommufd_device *idev) in iommufd_device_is_noiommu() argument
36 return IS_ENABLED(CONFIG_IOMMUFD_NOIOMMU) && !idev->dev->iommu; in iommufd_device_is_noiommu()
166 static void iommufd_device_remove_vdev(struct iommufd_device *idev) in iommufd_device_remove_vdev() argument
170 mutex_lock(&idev->igroup->lock); in iommufd_device_remove_vdev()
172 idev->destroying = true; in iommufd_device_remove_vdev()
174 if (!idev->vdev) in iommufd_device_remove_vdev()
177 vdev = idev->vdev; in iommufd_device_remove_vdev()
185 if (iommufd_try_inc_users(idev->ictx, &vdev->obj)) in iommufd_device_remove_vdev()
193 mutex_unlock(&idev->igroup->lock); in iommufd_device_remove_vdev()
194 iommufd_object_tombstone_user(idev->ictx, &vdev->obj); in iommufd_device_remove_vdev()
[all …]
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_main.c285 if (lif->ionic->idev.fw_status_ready && in ionic_notifyq_service()
450 !lif->ionic->idev.fw_status_ready) || in ionic_adminq_wait()
476 if (!ionic_is_fw_running(&lif->ionic->idev)) in __ionic_adminq_post_wait()
497 struct ionic_dev *idev = &ionic->idev; in ionic_dev_cmd_clean() local
499 if (!idev->dev_cmd_regs) in ionic_dev_cmd_clean()
502 iowrite32(0, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_clean()
503 memset_io(&idev->dev_cmd_regs->cmd, 0, sizeof(idev->dev_cmd_regs->cmd)); in ionic_dev_cmd_clean()
521 struct ionic_dev *idev = &ionic->idev; in __ionic_dev_cmd_wait() local
536 opcode = idev->opcode; in __ionic_dev_cmd_wait()
538 for (fw_up = ionic_is_fw_running(idev); in __ionic_dev_cmd_wait()
[all …]
/linux/tools/usb/usbip/libsrc/
H A Dvhci_driver.c21 imported_device_init(struct usbip_imported_device *idev, char *busid) in imported_device_init() argument
31 read_usb_device(sudev, &idev->udev); in imported_device_init()
34 return idev; in imported_device_init()
55 struct usbip_imported_device *idev; in parse_status() local
72 idev = &vhci_driver->idev[port]; in parse_status()
73 memset(idev, 0, sizeof(*idev)); in parse_status()
76 idev->hub = HUB_SPEED_HIGH; in parse_status()
78 idev->hub = HUB_SPEED_SUPER; in parse_status()
80 idev->port = port; in parse_status()
81 idev->status = status; in parse_status()
[all …]
/linux/drivers/input/touchscreen/
H A Dmc13783_ts.c34 struct input_dev *idev; member
67 struct input_dev *idev = priv->idev; in mc13783_ts_report_sample() local
84 dev_dbg(&idev->dev, in mc13783_ts_report_sample()
98 input_report_abs(idev, ABS_X, x1); in mc13783_ts_report_sample()
99 input_report_abs(idev, ABS_Y, y1); in mc13783_ts_report_sample()
101 dev_dbg(&idev->dev, "report (%d, %d, %d)\n", in mc13783_ts_report_sample()
105 dev_dbg(&idev->dev, "report release\n"); in mc13783_ts_report_sample()
108 input_report_abs(idev, ABS_PRESSURE, in mc13783_ts_report_sample()
110 input_report_key(idev, BTN_TOUCH, cr0); in mc13783_ts_report_sample()
111 input_sync(idev); in mc13783_ts_report_sample()
[all …]
H A D88pm860x-ts.c41 struct input_dev *idev; member
74 input_report_abs(touch->idev, ABS_X, x); in pm860x_touch_handler()
75 input_report_abs(touch->idev, ABS_Y, y); in pm860x_touch_handler()
76 input_report_abs(touch->idev, ABS_PRESSURE, rt); in pm860x_touch_handler()
77 input_report_key(touch->idev, BTN_TOUCH, 1); in pm860x_touch_handler()
80 input_report_abs(touch->idev, ABS_PRESSURE, 0); in pm860x_touch_handler()
81 input_report_key(touch->idev, BTN_TOUCH, 0); in pm860x_touch_handler()
84 input_sync(touch->idev); in pm860x_touch_handler()
240 touch->idev = devm_input_allocate_device(&pdev->dev); in pm860x_touch_probe()
241 if (!touch->idev) { in pm860x_touch_probe()
[all …]
/linux/drivers/platform/x86/
H A Dacer-wireless.c25 struct input_dev *idev = dev_get_drvdata(dev); in acer_wireless_notify() local
32 input_report_key(idev, KEY_RFKILL, 1); in acer_wireless_notify()
33 input_sync(idev); in acer_wireless_notify()
34 input_report_key(idev, KEY_RFKILL, 0); in acer_wireless_notify()
35 input_sync(idev); in acer_wireless_notify()
41 struct input_dev *idev; in acer_wireless_probe() local
48 idev = devm_input_allocate_device(&pdev->dev); in acer_wireless_probe()
49 if (!idev) in acer_wireless_probe()
52 platform_set_drvdata(pdev, idev); in acer_wireless_probe()
53 idev->name = "Acer Wireless Radio Control"; in acer_wireless_probe()
[all …]
/linux/drivers/mfd/
H A Ducb1x00-ts.c39 struct input_dev *idev; member
56 struct input_dev *idev = ts->idev; in ucb1x00_ts_evt_add() local
58 input_report_abs(idev, ABS_X, x); in ucb1x00_ts_evt_add()
59 input_report_abs(idev, ABS_Y, y); in ucb1x00_ts_evt_add()
60 input_report_abs(idev, ABS_PRESSURE, pressure); in ucb1x00_ts_evt_add()
61 input_report_key(idev, BTN_TOUCH, 1); in ucb1x00_ts_evt_add()
62 input_sync(idev); in ucb1x00_ts_evt_add()
67 struct input_dev *idev = ts->idev; in ucb1x00_ts_event_release() local
69 input_report_abs(idev, ABS_PRESSURE, 0); in ucb1x00_ts_event_release()
70 input_report_key(idev, BTN_TOUCH, 0); in ucb1x00_ts_event_release()
[all …]
/linux/drivers/bluetooth/
H A Dhci_intel.c270 struct intel_device *idev = dev_id; in intel_irq() local
272 dev_info(&idev->pdev->dev, "hci_intel irq\n"); in intel_irq()
274 mutex_lock(&idev->hu_lock); in intel_irq()
275 if (idev->hu) in intel_irq()
276 intel_lpm_host_wake(idev->hu); in intel_irq()
277 mutex_unlock(&idev->hu_lock); in intel_irq()
280 pm_runtime_get(&idev->pdev->dev); in intel_irq()
281 pm_runtime_put_autosuspend(&idev->pdev->dev); in intel_irq()
288 struct intel_device *idev; in intel_set_power() local
296 list_for_each_entry(idev, &intel_device_list, list) { in intel_set_power()
[all …]
/linux/drivers/media/firewire/
H A Dfiredtv-rc.c127 struct input_dev *idev; in fdtv_register_rc() local
130 idev = input_allocate_device(); in fdtv_register_rc()
131 if (!idev) in fdtv_register_rc()
134 fdtv->remote_ctrl_dev = idev; in fdtv_register_rc()
135 idev->name = "FireDTV remote control"; in fdtv_register_rc()
136 idev->dev.parent = dev; in fdtv_register_rc()
137 idev->evbit[0] = BIT_MASK(EV_KEY); in fdtv_register_rc()
138 idev->keycode = kmemdup(keytable, sizeof(keytable), GFP_KERNEL); in fdtv_register_rc()
139 if (!idev->keycode) { in fdtv_register_rc()
143 idev->keycodesize = sizeof(keytable[0]); in fdtv_register_rc()
[all …]
/linux/drivers/input/misc/
H A Dqnap-mcu-input.c33 struct qnap_mcu_input_dev *idev = input_get_drvdata(input); in qnap_mcu_input_poll() local
39 ret = qnap_mcu_exec(idev->mcu, cmd, sizeof(cmd), reply, sizeof(reply)); in qnap_mcu_input_poll()
45 dev_err(idev->dev, "malformed data received\n"); in qnap_mcu_input_poll()
56 struct qnap_mcu_input_dev *idev = in qnap_mcu_input_beeper_work() local
58 const u8 cmd[] = { '@', 'C', (idev->beep_type == SND_TONE) ? '3' : '2' }; in qnap_mcu_input_beeper_work()
60 qnap_mcu_exec_with_ack(idev->mcu, cmd, sizeof(cmd)); in qnap_mcu_input_beeper_work()
66 struct qnap_mcu_input_dev *idev = input_get_drvdata(input); in qnap_mcu_input_event() local
79 idev->beep_type = code; in qnap_mcu_input_event()
80 schedule_work(&idev->beep_work); in qnap_mcu_input_event()
87 struct qnap_mcu_input_dev *idev = input_get_drvdata(input); in qnap_mcu_input_close() local
[all …]
H A D88pm886-onkey.c11 struct input_dev *idev; member
19 struct input_dev *idev = onkey->idev; in pm886_onkey_irq_handler() local
20 struct device *parent = idev->dev.parent; in pm886_onkey_irq_handler()
31 input_report_key(idev, KEY_POWER, val); in pm886_onkey_irq_handler()
32 input_sync(idev); in pm886_onkey_irq_handler()
42 struct input_dev *idev; in pm886_onkey_probe() local
55 idev = devm_input_allocate_device(dev); in pm886_onkey_probe()
56 if (!idev) { in pm886_onkey_probe()
60 onkey->idev = idev; in pm886_onkey_probe()
62 idev->name = "88pm886-onkey"; in pm886_onkey_probe()
[all …]
H A Dpcf8574_keypad.c39 struct input_dev *idev; member
74 input_report_key(lp->idev, keycode, key_down); in pcf8574_kp_irq_handler()
75 input_sync(lp->idev); in pcf8574_kp_irq_handler()
86 struct input_dev *idev; in pcf8574_kp_probe() local
98 idev = input_allocate_device(); in pcf8574_kp_probe()
99 if (!idev) { in pcf8574_kp_probe()
105 lp->idev = idev; in pcf8574_kp_probe()
108 idev->evbit[0] = BIT_MASK(EV_KEY); in pcf8574_kp_probe()
109 idev->keycode = lp->btncode; in pcf8574_kp_probe()
110 idev->keycodesize = sizeof(lp->btncode[0]); in pcf8574_kp_probe()
[all …]
H A Dretu-pwrbutton.c33 struct input_dev *idev = _pwr; in retu_pwrbutton_irq() local
34 struct retu_dev *rdev = input_get_drvdata(idev); in retu_pwrbutton_irq()
38 input_report_key(idev, KEY_POWER, state); in retu_pwrbutton_irq()
39 input_sync(idev); in retu_pwrbutton_irq()
47 struct input_dev *idev; in retu_pwrbutton_probe() local
55 idev = devm_input_allocate_device(&pdev->dev); in retu_pwrbutton_probe()
56 if (!idev) in retu_pwrbutton_probe()
59 idev->name = "retu-pwrbutton"; in retu_pwrbutton_probe()
60 idev->dev.parent = &pdev->dev; in retu_pwrbutton_probe()
62 input_set_capability(idev, EV_KEY, KEY_POWER); in retu_pwrbutton_probe()
[all …]
H A Dapanel.c54 struct input_dev *idev; member
91 static void apanel_poll(struct input_dev *idev) in apanel_poll() argument
93 struct apanel *ap = input_get_drvdata(idev); in apanel_poll()
108 dev_dbg(&idev->dev, APANEL ": data %#x\n", data); in apanel_poll()
109 for (i = 0; i < idev->keycodemax; i++) in apanel_poll()
111 report_key(idev, ap->keymap[i]); in apanel_poll()
126 struct input_dev *idev; in apanel_probe() local
134 idev = devm_input_allocate_device(&client->dev); in apanel_probe()
135 if (!idev) in apanel_probe()
138 ap->idev = idev; in apanel_probe()
[all …]
H A Drave-sp-pwrbutton.c18 struct input_dev *idev; member
29 struct input_dev *idev = pb->idev; in rave_sp_power_button_event() local
32 input_report_key(idev, KEY_POWER, value); in rave_sp_power_button_event()
33 input_sync(idev); in rave_sp_power_button_event()
45 struct input_dev *idev; in rave_sp_pwrbutton_probe() local
52 idev = devm_input_allocate_device(dev); in rave_sp_pwrbutton_probe()
53 if (!idev) in rave_sp_pwrbutton_probe()
56 idev->name = pdev->name; in rave_sp_pwrbutton_probe()
58 input_set_capability(idev, EV_KEY, KEY_POWER); in rave_sp_pwrbutton_probe()
60 error = input_register_device(idev); in rave_sp_pwrbutton_probe()
[all …]
/linux/drivers/input/joystick/
H A Dpsxpad-spi.c65 struct input_dev *idev; member
142 static int psxpad_spi_play_effect(struct input_dev *idev, in psxpad_spi_play_effect() argument
145 struct psxpad *pad = input_get_drvdata(idev); in psxpad_spi_play_effect()
162 input_set_capability(pad->idev, EV_FF, FF_RUMBLE); in psxpad_spi_init_ff()
164 err = input_ff_create_memless(pad->idev, NULL, psxpad_spi_play_effect); in psxpad_spi_init_ff()
288 struct input_dev *idev; in psxpad_spi_probe() local
295 idev = devm_input_allocate_device(&spi->dev); in psxpad_spi_probe()
296 if (!idev) { in psxpad_spi_probe()
302 pad->idev = idev; in psxpad_spi_probe()
306 input_set_drvdata(idev, pad); in psxpad_spi_probe()
[all …]
/linux/include/net/
H A Daddrconf.h151 void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr);
153 void addrconf_add_linklocal(struct inet6_dev *idev,
263 int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr);
265 void ipv6_mc_up(struct inet6_dev *idev);
266 void ipv6_mc_down(struct inet6_dev *idev);
267 void ipv6_mc_unmap(struct inet6_dev *idev);
268 void ipv6_mc_remap(struct inet6_dev *idev);
269 void ipv6_mc_init_dev(struct inet6_dev *idev);
270 void ipv6_mc_destroy_dev(struct inet6_dev *idev);
277 void ipv6_mc_dad_complete(struct inet6_dev *idev);
[all …]
/linux/drivers/virtio/
H A Dvirtio_input.c15 struct input_dev *idev; member
47 input_event(vi->idev, in virtinput_recv_events()
86 if (vi->idev->mt && type == EV_MSC && code == MSC_TIMESTAMP) in virtinput_send_status()
125 static int virtinput_status(struct input_dev *idev, unsigned int type, in virtinput_status() argument
128 struct virtio_input *vi = input_get_drvdata(idev); in virtinput_status()
175 __set_bit(subsel, vi->idev->evbit); in virtinput_cfg_bits()
188 input_set_abs_params(vi->idev, abs, mi, ma, fu, fl); in virtinput_cfg_abs()
189 input_abs_set_res(vi->idev, abs, re); in virtinput_cfg_abs()
247 vi->idev = input_allocate_device(); in virtinput_probe()
248 if (!vi->idev) { in virtinput_probe()
[all …]

123456