Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-altera.c92 altr_i2c_int_enable(struct altr_i2c_dev *idev, u32 mask, bool enable) in altr_i2c_int_enable() argument
96 int_en = readl(idev->base + ALTR_I2C_ISER); in altr_i2c_int_enable()
98 idev->isr_mask = int_en | mask; in altr_i2c_int_enable()
100 idev->isr_mask = int_en & ~mask; in altr_i2c_int_enable()
102 writel(idev->isr_mask, idev->base + ALTR_I2C_ISER); in altr_i2c_int_enable()
105 static void altr_i2c_int_clear(struct altr_i2c_dev *idev, u32 mask) in altr_i2c_int_clear() argument
107 u32 int_en = readl(idev->base + ALTR_I2C_ISR); in altr_i2c_int_clear()
109 writel(int_en | mask, idev->base + ALTR_I2C_ISR); in altr_i2c_int_clear()
112 static void altr_i2c_core_disable(struct altr_i2c_dev *idev) in altr_i2c_core_disable() argument
114 u32 tmp = readl(idev->base + ALTR_I2C_CTRL); in altr_i2c_core_disable()
[all …]
Di2c-axxia.c152 static void i2c_int_disable(struct axxia_i2c_dev *idev, u32 mask) in i2c_int_disable() argument
156 int_en = readl(idev->base + MST_INT_ENABLE); in i2c_int_disable()
157 writel(int_en & ~mask, idev->base + MST_INT_ENABLE); in i2c_int_disable()
160 static void i2c_int_enable(struct axxia_i2c_dev *idev, u32 mask) in i2c_int_enable() argument
164 int_en = readl(idev->base + MST_INT_ENABLE); in i2c_int_enable()
165 writel(int_en | mask, idev->base + MST_INT_ENABLE); in i2c_int_enable()
176 static int axxia_i2c_init(struct axxia_i2c_dev *idev) in axxia_i2c_init() argument
178 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in axxia_i2c_init()
179 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in axxia_i2c_init()
186 dev_dbg(idev->dev, "rate=%uHz per_clk=%uMHz -> ratio=1:%u\n", in axxia_i2c_init()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/isci/
Dremote_device.c75 enum sci_status sci_remote_device_suspend(struct isci_remote_device *idev, in sci_remote_device_suspend() argument
78 return sci_remote_node_context_suspend(&idev->rnc, reason, in sci_remote_device_suspend()
90 static void isci_remote_device_ready(struct isci_host *ihost, struct isci_remote_device *idev) in isci_remote_device_ready() argument
93 "%s: idev = %p\n", __func__, idev); in isci_remote_device_ready()
95 clear_bit(IDEV_IO_NCQERROR, &idev->flags); in isci_remote_device_ready()
96 set_bit(IDEV_IO_READY, &idev->flags); in isci_remote_device_ready()
97 if (test_and_clear_bit(IDEV_START_PENDING, &idev->flags)) in isci_remote_device_ready()
103 struct isci_remote_device *idev, in sci_remote_device_terminate_req() argument
108 (ireq->target_device != idev) || in sci_remote_device_terminate_req()
114 __func__, idev, idev->flags, ireq, ireq->target_device); in sci_remote_device_terminate_req()
[all …]
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 …]
Dtask.c107 static inline int isci_device_io_ready(struct isci_remote_device *idev, in isci_device_io_ready() argument
110 return idev ? test_bit(IDEV_IO_READY, &idev->flags) || in isci_device_io_ready()
111 (test_bit(IDEV_IO_NCQERROR, &idev->flags) && in isci_device_io_ready()
127 struct isci_remote_device *idev; in isci_task_execute_task() local
134 idev = isci_lookup_device(task->dev); in isci_task_execute_task()
135 io_ready = isci_device_io_ready(idev, task); in isci_task_execute_task()
141 task, task->dev, idev, idev ? idev->flags : 0, in isci_task_execute_task()
144 if (!idev) { in isci_task_execute_task()
169 status = isci_request_execute(ihost, idev, task, tag); in isci_task_execute_task()
177 if (test_bit(IDEV_GONE, &idev->flags)) { in isci_task_execute_task()
[all …]
/kernel/linux/linux-5.10/drivers/uio/
Duio.c216 struct uio_device *idev = dev_get_drvdata(dev); in name_show() local
219 mutex_lock(&idev->info_lock); in name_show()
220 if (!idev->info) { in name_show()
226 ret = sprintf(buf, "%s\n", idev->info->name); in name_show()
229 mutex_unlock(&idev->info_lock); in name_show()
237 struct uio_device *idev = dev_get_drvdata(dev); in version_show() local
240 mutex_lock(&idev->info_lock); in version_show()
241 if (!idev->info) { in version_show()
247 ret = sprintf(buf, "%s\n", idev->info->version); in version_show()
250 mutex_unlock(&idev->info_lock); in version_show()
[all …]
/kernel/linux/linux-5.10/net/ipv6/
Dmcast.c78 static void mld_ifc_event(struct inet6_dev *idev);
79 static void mld_add_delrec(struct inet6_dev *idev, struct ifmcaddr6 *pmc);
80 static void mld_del_delrec(struct inet6_dev *idev, struct ifmcaddr6 *pmc);
81 static void mld_clear_delrec(struct inet6_dev *idev);
82 static bool mld_in_v1_mode(const struct inet6_dev *idev);
86 static int ip6_mc_del_src(struct inet6_dev *idev, const struct in6_addr *pmca,
89 static int ip6_mc_add_src(struct inet6_dev *idev, const struct in6_addr *pmca,
93 struct inet6_dev *idev);
121 static int unsolicited_report_interval(struct inet6_dev *idev) in unsolicited_report_interval() argument
125 if (mld_in_v1_mode(idev)) in unsolicited_report_interval()
[all …]
Danycast.c67 struct inet6_dev *idev; in ipv6_sock_ac_join() local
114 idev = __in6_dev_get(dev); in ipv6_sock_ac_join()
115 if (!idev) { in ipv6_sock_ac_join()
123 ishost = !idev->cnf.forwarding; in ipv6_sock_ac_join()
139 err = __ipv6_dev_ac_inc(idev, addr); in ipv6_sock_ac_join()
284 int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr) in __ipv6_dev_ac_inc() argument
293 write_lock_bh(&idev->lock); in __ipv6_dev_ac_inc()
294 if (idev->dead) { in __ipv6_dev_ac_inc()
299 for (aca = idev->ac_list; aca; aca = aca->aca_next) { in __ipv6_dev_ac_inc()
307 net = dev_net(idev->dev); in __ipv6_dev_ac_inc()
[all …]
Daddrconf.c125 static int addrconf_sysctl_register(struct inet6_dev *idev);
126 static void addrconf_sysctl_unregister(struct inet6_dev *idev);
128 static inline int addrconf_sysctl_register(struct inet6_dev *idev) in addrconf_sysctl_register() argument
133 static inline void addrconf_sysctl_unregister(struct inet6_dev *idev) in addrconf_sysctl_unregister() argument
141 static int ipv6_count_addresses(const struct inet6_dev *idev);
144 const struct inet6_dev *idev);
178 static void addrconf_dad_run(struct inet6_dev *idev, bool restart);
183 static void inet6_prefix_notify(int event, struct inet6_dev *idev,
302 static void addrconf_del_rs_timer(struct inet6_dev *idev) in addrconf_del_rs_timer() argument
304 if (del_timer(&idev->rs_timer)) in addrconf_del_rs_timer()
[all …]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dnip_addrconf.c95 static void nip_link_dev_addr(struct ninet_dev *idev, struct ninet_ifaddr *ifp) in nip_link_dev_addr() argument
97 list_add_tail(&ifp->if_list, &idev->addr_list); in nip_link_dev_addr()
105 static struct ninet_ifaddr *nip_add_addr(struct ninet_dev *idev, in nip_add_addr() argument
117 nin_dev_hold(idev); in nip_add_addr()
119 if (idev->dead) { in nip_add_addr()
124 if (!netif_running(idev->dev)) { in nip_add_addr()
130 if (idev->cnf.disable_nip) { in nip_add_addr()
138 if (nip_chk_same_addr(dev_net(idev->dev), addr, idev->dev)) { in nip_add_addr()
153 rt = nip_addrconf_dst_alloc(idev, addr); in nip_add_addr()
159 neigh_parms_data_state_setall(idev->nd_parms); in nip_add_addr()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_dev.c33 struct ionic_dev *idev = &ionic->idev; in ionic_init_devinfo() local
35 idev->dev_info.asic_type = ioread8(&idev->dev_info_regs->asic_type); in ionic_init_devinfo()
36 idev->dev_info.asic_rev = ioread8(&idev->dev_info_regs->asic_rev); in ionic_init_devinfo()
38 memcpy_fromio(idev->dev_info.fw_version, in ionic_init_devinfo()
39 idev->dev_info_regs->fw_version, in ionic_init_devinfo()
42 memcpy_fromio(idev->dev_info.serial_num, in ionic_init_devinfo()
43 idev->dev_info_regs->serial_num, in ionic_init_devinfo()
46 idev->dev_info.fw_version[IONIC_DEVINFO_FWVERS_BUFLEN] = 0; in ionic_init_devinfo()
47 idev->dev_info.serial_num[IONIC_DEVINFO_SERIAL_BUFLEN] = 0; in ionic_init_devinfo()
49 dev_dbg(ionic->dev, "fw_version %s\n", idev->dev_info.fw_version); in ionic_init_devinfo()
[all …]
Dionic_main.c314 struct ionic_dev *idev = &ionic->idev; in ionic_dev_cmd_clean() local
316 iowrite32(0, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_clean()
317 memset_io(&idev->dev_cmd_regs->cmd, 0, sizeof(idev->dev_cmd_regs->cmd)); in ionic_dev_cmd_clean()
322 struct ionic_dev *idev = &ionic->idev; in ionic_dev_cmd_wait() local
336 opcode = readb(&idev->dev_cmd_regs->cmd.cmd.opcode); in ionic_dev_cmd_wait()
339 done = ionic_dev_cmd_done(idev); in ionic_dev_cmd_wait()
373 err = ionic_dev_cmd_status(&ionic->idev); in ionic_dev_cmd_wait()
381 iowrite32(0, &idev->dev_cmd_regs->done); in ionic_dev_cmd_wait()
383 iowrite32(1, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_wait()
415 struct ionic_dev *idev = &ionic->idev; in ionic_identify() local
[all …]
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/
Dnip_addrconf.h50 struct ninet_dev *idev; in nin_dev_get() local
53 idev = rcu_dereference(dev->nip_ptr); in nin_dev_get()
54 if (idev) in nin_dev_get()
55 refcount_inc(&idev->refcnt); in nin_dev_get()
57 return idev; in nin_dev_get()
63 struct ninet_dev *idev = __nin_dev_get(dev); in __nin_dev_nd_parms_get_rcu() local
65 return idev ? idev->nd_parms : NULL; in __nin_dev_nd_parms_get_rcu()
68 void nin_dev_finish_destroy(struct ninet_dev *idev);
70 static inline void nin_dev_put(struct ninet_dev *idev) in nin_dev_put() argument
72 if (refcount_dec_and_test(&idev->refcnt)) in nin_dev_put()
[all …]
/kernel/linux/linux-5.10/drivers/platform/x86/
Dacer-wireless.c23 struct input_dev *idev = acpi_driver_data(adev); in acer_wireless_notify() local
30 input_report_key(idev, KEY_RFKILL, 1); in acer_wireless_notify()
31 input_report_key(idev, KEY_RFKILL, 0); in acer_wireless_notify()
32 input_sync(idev); in acer_wireless_notify()
37 struct input_dev *idev; in acer_wireless_add() local
39 idev = devm_input_allocate_device(&adev->dev); in acer_wireless_add()
40 if (!idev) in acer_wireless_add()
43 adev->driver_data = idev; in acer_wireless_add()
44 idev->name = "Acer Wireless Radio Control"; in acer_wireless_add()
45 idev->phys = "acer-wireless/input0"; in acer_wireless_add()
[all …]
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dchromeos_tbmc.c25 struct input_dev *idev) in chromeos_tbmc_query_switch() argument
35 input_report_switch(idev, SW_TABLET_MODE, state); in chromeos_tbmc_query_switch()
36 input_sync(idev); in chromeos_tbmc_query_switch()
60 static int chromeos_tbmc_open(struct input_dev *idev) in chromeos_tbmc_open() argument
62 struct acpi_device *adev = input_get_drvdata(idev); in chromeos_tbmc_open()
64 return chromeos_tbmc_query_switch(adev, idev); in chromeos_tbmc_open()
69 struct input_dev *idev; in chromeos_tbmc_add() local
73 idev = devm_input_allocate_device(dev); in chromeos_tbmc_add()
74 if (!idev) in chromeos_tbmc_add()
77 idev->name = "Tablet Mode Switch"; in chromeos_tbmc_add()
[all …]
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/
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 …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dmc13783_ts.c34 struct input_dev *idev; member
69 struct input_dev *idev = priv->idev; in mc13783_ts_report_sample() local
86 dev_dbg(&idev->dev, in mc13783_ts_report_sample()
100 input_report_abs(idev, ABS_X, x1); in mc13783_ts_report_sample()
101 input_report_abs(idev, ABS_Y, y1); in mc13783_ts_report_sample()
103 dev_dbg(&idev->dev, "report (%d, %d, %d)\n", in mc13783_ts_report_sample()
107 dev_dbg(&idev->dev, "report release\n"); in mc13783_ts_report_sample()
110 input_report_abs(idev, ABS_PRESSURE, in mc13783_ts_report_sample()
112 input_report_key(idev, BTN_TOUCH, cr0); in mc13783_ts_report_sample()
113 input_sync(idev); in mc13783_ts_report_sample()
[all …]
/kernel/linux/linux-5.10/drivers/media/firewire/
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 …]
/kernel/linux/linux-5.10/drivers/bluetooth/
Dhci_intel.c272 struct intel_device *idev = dev_id; in intel_irq() local
274 dev_info(&idev->pdev->dev, "hci_intel irq\n"); in intel_irq()
276 mutex_lock(&idev->hu_lock); in intel_irq()
277 if (idev->hu) in intel_irq()
278 intel_lpm_host_wake(idev->hu); in intel_irq()
279 mutex_unlock(&idev->hu_lock); in intel_irq()
282 pm_runtime_get(&idev->pdev->dev); in intel_irq()
283 pm_runtime_mark_last_busy(&idev->pdev->dev); in intel_irq()
284 pm_runtime_put_autosuspend(&idev->pdev->dev); in intel_irq()
291 struct intel_device *idev; in intel_set_power() local
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dat91_adc.c248 struct iio_dev *idev = pf->indio_dev; in at91_adc_trigger_handler() local
249 struct at91_adc_state *st = iio_priv(idev); in at91_adc_trigger_handler()
253 for (i = 0; i < idev->masklength; i++) { in at91_adc_trigger_handler()
254 if (!test_bit(i, idev->active_scan_mask)) in at91_adc_trigger_handler()
256 chan = idev->channels + i; in at91_adc_trigger_handler()
261 iio_push_to_buffers_with_timestamp(idev, st->buffer, pf->timestamp); in at91_adc_trigger_handler()
263 iio_trigger_notify_done(idev->trig); in at91_adc_trigger_handler()
274 static void handle_adc_eoc_trigger(int irq, struct iio_dev *idev) in handle_adc_eoc_trigger() argument
276 struct at91_adc_state *st = iio_priv(idev); in handle_adc_eoc_trigger()
278 if (iio_buffer_enabled(idev)) { in handle_adc_eoc_trigger()
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
Dpsxpad-spi.c62 struct input_dev *idev; member
139 static int psxpad_spi_play_effect(struct input_dev *idev, in psxpad_spi_play_effect() argument
142 struct psxpad *pad = input_get_drvdata(idev); in psxpad_spi_play_effect()
159 input_set_capability(pad->idev, EV_FF, FF_RUMBLE); in psxpad_spi_init_ff()
161 err = input_ff_create_memless(pad->idev, NULL, psxpad_spi_play_effect); in psxpad_spi_init_ff()
285 struct input_dev *idev; in psxpad_spi_probe() local
292 idev = devm_input_allocate_device(&spi->dev); in psxpad_spi_probe()
293 if (!idev) { in psxpad_spi_probe()
299 pad->idev = idev; in psxpad_spi_probe()
303 input_set_drvdata(idev, pad); in psxpad_spi_probe()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
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 …]
/kernel/linux/linux-5.10/arch/x86/platform/intel-quark/
Dimr.c110 static int imr_read(struct imr_device *idev, u32 imr_id, struct imr_regs *imr) in imr_read() argument
112 u32 reg = imr_id * IMR_NUM_REGS + idev->reg_base; in imr_read()
141 static int imr_write(struct imr_device *idev, u32 imr_id, struct imr_regs *imr) in imr_write() argument
144 u32 reg = imr_id * IMR_NUM_REGS + idev->reg_base; in imr_write()
192 struct imr_device *idev = s->private; in imr_dbgfs_state_show() local
197 mutex_lock(&idev->lock); in imr_dbgfs_state_show()
199 for (i = 0; i < idev->max_imr; i++) { in imr_dbgfs_state_show()
201 ret = imr_read(idev, i, &imr); in imr_dbgfs_state_show()
226 mutex_unlock(&idev->lock); in imr_dbgfs_state_show()
236 static void imr_debugfs_register(struct imr_device *idev) in imr_debugfs_register() argument
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
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 …]
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 …]

1234567