Home
last modified time | relevance | path

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

1234567

/linux-6.1.9/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 …]
Di2c-microchip-corei2c.c119 static void mchp_corei2c_core_disable(struct mchp_corei2c_dev *idev) in mchp_corei2c_core_disable() argument
121 u8 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_disable()
124 writeb(ctrl, idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_disable()
127 static void mchp_corei2c_core_enable(struct mchp_corei2c_dev *idev) in mchp_corei2c_core_enable() argument
129 u8 ctrl = readb(idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_enable()
132 writeb(ctrl, idev->base + CORE_I2C_CTRL); in mchp_corei2c_core_enable()
135 static void mchp_corei2c_reset(struct mchp_corei2c_dev *idev) in mchp_corei2c_reset() argument
137 mchp_corei2c_core_disable(idev); in mchp_corei2c_reset()
138 mchp_corei2c_core_enable(idev); in mchp_corei2c_reset()
141 static inline void mchp_corei2c_stop(struct mchp_corei2c_dev *idev) in mchp_corei2c_stop() argument
[all …]
/linux-6.1.9/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.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-6.1.9/net/ipv6/
Dmcast.c77 static void mld_ifc_event(struct inet6_dev *idev);
78 static bool mld_in_v1_mode(const struct inet6_dev *idev);
82 static int ip6_mc_del_src(struct inet6_dev *idev, const struct in6_addr *pmca,
85 static int ip6_mc_add_src(struct inet6_dev *idev, const struct in6_addr *pmca,
89 struct inet6_dev *idev);
111 #define mc_dereference(e, idev) \ argument
112 rcu_dereference_protected(e, lockdep_is_held(&(idev)->mc_lock))
128 for (psf = mc_dereference((mc)->mca_sources, mc->idev); \
130 psf = mc_dereference(psf->sf_next, mc->idev))
138 for (psf = mc_dereference((mc)->mca_tomb, mc->idev); \
[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.c126 static int addrconf_sysctl_register(struct inet6_dev *idev);
127 static void addrconf_sysctl_unregister(struct inet6_dev *idev);
129 static inline int addrconf_sysctl_register(struct inet6_dev *idev) in addrconf_sysctl_register() argument
134 static inline void addrconf_sysctl_unregister(struct inet6_dev *idev) in addrconf_sysctl_unregister() argument
142 static int ipv6_count_addresses(const struct inet6_dev *idev);
145 const struct inet6_dev *idev);
172 static void addrconf_dad_run(struct inet6_dev *idev, bool restart);
177 static void inet6_prefix_notify(int event, struct inet6_dev *idev,
306 static void addrconf_del_rs_timer(struct inet6_dev *idev) in addrconf_del_rs_timer() argument
308 if (del_timer(&idev->rs_timer)) in addrconf_del_rs_timer()
[all …]
/linux-6.1.9/drivers/uio/
Duio.c218 struct uio_device *idev = dev_get_drvdata(dev); in name_show() local
221 mutex_lock(&idev->info_lock); in name_show()
222 if (!idev->info) { in name_show()
228 ret = sprintf(buf, "%s\n", idev->info->name); in name_show()
231 mutex_unlock(&idev->info_lock); in name_show()
239 struct uio_device *idev = dev_get_drvdata(dev); in version_show() local
242 mutex_lock(&idev->info_lock); in version_show()
243 if (!idev->info) { in version_show()
249 ret = sprintf(buf, "%s\n", idev->info->version); in version_show()
252 mutex_unlock(&idev->info_lock); in version_show()
[all …]
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/
Dionic_dev.c52 struct ionic_dev *idev = &ionic->idev; in ionic_watchdog_init() local
58 atomic_long_set(&idev->last_check_time, jiffies - 2 * HZ); in ionic_watchdog_init()
59 idev->last_hb_time = jiffies - 2 * ionic->watchdog_period; in ionic_watchdog_init()
61 idev->last_fw_hb = 0; in ionic_watchdog_init()
62 idev->fw_hb_ready = true; in ionic_watchdog_init()
63 idev->fw_status_ready = true; in ionic_watchdog_init()
64 idev->fw_generation = IONIC_FW_STS_F_GENERATION & in ionic_watchdog_init()
65 ioread8(&idev->dev_info_regs->fw_status); in ionic_watchdog_init()
70 struct ionic_dev *idev = &ionic->idev; in ionic_init_devinfo() local
72 idev->dev_info.asic_type = ioread8(&idev->dev_info_regs->asic_type); in ionic_init_devinfo()
[all …]
Dionic_main.c364 !lif->ionic->idev.fw_status_ready) || in ionic_adminq_wait()
404 struct ionic_dev *idev = &ionic->idev; in ionic_dev_cmd_clean() local
406 iowrite32(0, &idev->dev_cmd_regs->doorbell); in ionic_dev_cmd_clean()
407 memset_io(&idev->dev_cmd_regs->cmd, 0, sizeof(idev->dev_cmd_regs->cmd)); in ionic_dev_cmd_clean()
425 struct ionic_dev *idev = &ionic->idev; in __ionic_dev_cmd_wait() local
439 opcode = readb(&idev->dev_cmd_regs->cmd.cmd.opcode); in __ionic_dev_cmd_wait()
441 for (fw_up = ionic_is_fw_running(idev); in __ionic_dev_cmd_wait()
443 fw_up = ionic_is_fw_running(idev)) { in __ionic_dev_cmd_wait()
444 done = ionic_dev_cmd_done(idev); in __ionic_dev_cmd_wait()
469 err = ionic_dev_cmd_status(&ionic->idev); in __ionic_dev_cmd_wait()
[all …]
/linux-6.1.9/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_sync(idev); in acer_wireless_notify()
32 input_report_key(idev, KEY_RFKILL, 0); in acer_wireless_notify()
33 input_sync(idev); in acer_wireless_notify()
38 struct input_dev *idev; in acer_wireless_add() local
40 idev = devm_input_allocate_device(&adev->dev); in acer_wireless_add()
41 if (!idev) in acer_wireless_add()
44 adev->driver_data = idev; in acer_wireless_add()
45 idev->name = "Acer Wireless Radio Control"; in acer_wireless_add()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/iio/adc/
Dat91_adc.c267 struct iio_dev *idev = pf->indio_dev; in at91_adc_trigger_handler() local
268 struct at91_adc_state *st = iio_priv(idev); in at91_adc_trigger_handler()
272 for (i = 0; i < idev->masklength; i++) { in at91_adc_trigger_handler()
273 if (!test_bit(i, idev->active_scan_mask)) in at91_adc_trigger_handler()
275 chan = idev->channels + i; in at91_adc_trigger_handler()
280 iio_push_to_buffers_with_timestamp(idev, st->buffer, pf->timestamp); in at91_adc_trigger_handler()
282 iio_trigger_notify_done(idev->trig); in at91_adc_trigger_handler()
293 static void handle_adc_eoc_trigger(int irq, struct iio_dev *idev) in handle_adc_eoc_trigger() argument
295 struct at91_adc_state *st = iio_priv(idev); in handle_adc_eoc_trigger()
297 if (iio_buffer_enabled(idev)) { in handle_adc_eoc_trigger()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
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()
127 struct input_dev *idev; in apanel_probe() local
135 idev = devm_input_allocate_device(&client->dev); in apanel_probe()
136 if (!idev) in apanel_probe()
139 ap->idev = idev; in apanel_probe()
[all …]

1234567