Home
last modified time | relevance | path

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

1234567

/linux/drivers/i2c/busses/
A Di2c-altera.c102 writel(idev->isr_mask, idev->base + ALTR_I2C_ISER); in altr_i2c_int_enable()
139 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in altr_i2c_init()
198 *idev->buf++ = readl(idev->base + ALTR_I2C_RX_DATA); in altr_i2c_empty_rx_fifo()
199 idev->msg_len--; in altr_i2c_empty_rx_fifo()
209 size_t tx_fifo_avail = idev->fifo_size - readl(idev->base + in altr_i2c_fill_tx_fifo()
215 altr_i2c_transfer(idev, *idev->buf++); in altr_i2c_fill_tx_fifo()
228 idev->isr_status = readl(idev->base + ALTR_I2C_ISR) & idev->isr_mask; in altr_i2c_isr_quick()
313 idev->msg = msg; in altr_i2c_xfer_msg()
388 idev = devm_kzalloc(&pdev->dev, sizeof(*idev), GFP_KERNEL); in altr_i2c_probe()
389 if (!idev) in altr_i2c_probe()
[all …]
A Di2c-axxia.c178 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in axxia_i2c_init()
310 writel(msg->buf[idev->msg_xfrd++], idev->base + MST_DATA); in axxia_i2c_fill_tx_fifo()
378 if (!idev->msg) { in axxia_i2c_isr()
419 if (i2c_m_rd(idev->msg_r) && idev->msg_xfrd_r < idev->msg_r->len) in axxia_i2c_isr()
518 if (unlikely(idev->msg_err) && idev->msg_err != -ENXIO) in axxia_i2c_xfer_seq()
532 idev->msg = msg; in axxia_i2c_xfer_msg()
593 if (unlikely(idev->msg_err) && idev->msg_err != -ENXIO && in axxia_i2c_xfer_msg()
680 if (idev->slave) in axxia_i2c_reg_slave()
740 idev = devm_kzalloc(&pdev->dev, sizeof(*idev), GFP_KERNEL); in axxia_i2c_probe()
741 if (!idev) in axxia_i2c_probe()
[all …]
/linux/drivers/scsi/isci/
A Dremote_device.c114 __func__, idev, idev->flags, ireq, ireq->target_device); in sci_remote_device_terminate_req()
213 __func__, idev, ireq, idev->started_request_count, in isci_remote_device_terminate_requests()
239 idev->started_request_count, idev->flags, in isci_remote_device_terminate_requests()
272 idev->started_request_count, idev->flags, in isci_remote_device_terminate_requests()
376 idev); in sci_remote_device_stop()
1145 idev); in sci_stp_remote_device_ready_idle_substate_enter()
1421 idev->abort_resume_cb = idev->rnc.user_callback; in isci_remote_device_resume_from_abort()
1422 idev->abort_resume_cbparam = idev->rnc.user_cookie; in isci_remote_device_resume_from_abort()
1429 idev); in isci_remote_device_resume_from_abort()
1466 idev); in sci_remote_device_start()
[all …]
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()
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()
135 if (idev) in isci_put_device()
159 struct isci_remote_device *idev,
293 idev = container_of(rnc, typeof(*idev), rnc); in rnc_to_dev()
[all …]
A Dtask.c110 return idev ? test_bit(IDEV_IO_READY, &idev->flags) || in isci_device_io_ready()
141 task, task->dev, idev, idev ? idev->flags : 0, in isci_task_execute_task()
144 if (!idev) { in isci_task_execute_task()
210 isci_put_device(idev); in isci_task_execute_task()
278 if (!idev || in isci_task_execute_tmf()
284 idev, idev ? idev->flags : 0); in isci_task_execute_tmf()
289 __func__, idev); in isci_task_execute_tmf()
427 if (!idev) { in isci_task_lu_reset()
512 __func__, idev, in isci_task_abort_task()
517 ((idev) ? ((test_bit(IDEV_GONE, &idev->flags)) in isci_task_abort_task()
[all …]
/linux/net/ipv6/
A Dmcast.c143 for (mc = mc_dereference((idev)->mc_list, idev); \
746 pmc->idev = im->idev; in mld_add_delrec()
790 im->idev = pmc->idev; in mld_del_delrec()
817 pmc = mc_dereference(idev->mc_tomb, idev); in mld_clear_delrec()
1248 switchback = (idev->mc_qrv * idev->mc_qi) + idev->mc_qri; in mld_set_v1_mode()
1882 struct inet6_dev *idev = pmc->idev; in add_grec() local
2251 idev->mc_dad_count = idev->mc_qrv; in ipv6_mc_dad_complete()
2298 struct inet6_dev *idev = pmc->idev; in ip6_mc_del1_src() local
2677 idev->mc_ifc_count = idev->mc_qrv; in mld_ifc_event()
2884 state->idev = idev; in igmp6_mc_get_first()
[all …]
A Daddrconf.c1132 ifa->idev = idev; in ipv6_add_addr()
1205 struct inet6_dev *idev = ifp->idev; in check_cleanup_prefix_route() local
1320 struct inet6_dev *idev = ifp->idev; in ipv6_create_tempaddr() local
2098 struct inet6_dev *idev = ifp->idev; in addrconf_dad_failure() local
3767 if (ifa->idev == idev) { in addrconf_ifdown()
3931 struct inet6_dev *idev = ifp->idev; in addrconf_dad_kick() local
3953 struct inet6_dev *idev = ifp->idev; in addrconf_dad_begin() local
4042 struct inet6_dev *idev = ifp->idev; in addrconf_dad_work() local
4151 struct inet6_dev *idev = ifp->idev; in ipv6_lonely_lladdr() local
6201 if (!idev || !idev->dev) in dev_disable_change()
[all …]
A Danycast.c67 struct inet6_dev *idev; in ipv6_sock_ac_join() local
115 if (!idev) { in ipv6_sock_ac_join()
294 if (idev->dead) { in __ipv6_dev_ac_inc()
321 idev->ac_list = aca; in __ipv6_dev_ac_inc()
385 if (!idev) in ipv6_dev_ac_dec()
422 if (idev) { in ipv6_chk_acast_dev()
491 state->idev = NULL; in ac6_get_first()
495 if (!idev) in ac6_get_first()
498 im = idev->ac_list; in ac6_get_first()
500 state->idev = idev; in ac6_get_first()
[all …]
/linux/drivers/uio/
A Duio.c447 ret = idev->info->handler(irq, idev->info); in uio_interrupt()
498 ret = idev->info->open(idev->info, inode); in uio_open()
533 if (idev->info && idev->info->release) in uio_release()
534 ret = idev->info->release(idev->info, inode); in uio_release()
550 if (!idev->info || !idev->info->irq) in uio_poll()
579 if (!idev->info || !idev->info->irq) { in uio_read()
648 retval = idev->info->irqcontrol(idev->info, irq_on); in uio_write()
794 ret = idev->info->mmap(idev->info, vma); in uio_mmap()
931 idev = kzalloc(sizeof(*idev), GFP_KERNEL); in __uio_register_device()
949 idev->dev.devt = MKDEV(uio_major, idev->minor); in __uio_register_device()
[all …]
/linux/drivers/net/ethernet/pensando/ionic/
A Dionic_dev.c51 struct ionic_dev *idev = &ionic->idev; in ionic_init_devinfo() local
53 idev->dev_info.asic_type = ioread8(&idev->dev_info_regs->asic_type); in ionic_init_devinfo()
54 idev->dev_info.asic_rev = ioread8(&idev->dev_info_regs->asic_rev); in ionic_init_devinfo()
74 struct ionic_dev *idev = &ionic->idev; in ionic_dev_setup() local
95 idev->hwstamp_regs = &idev->dev_info_regs->hwstamp; in ionic_dev_setup()
119 idev->last_fw_hb = 0; in ionic_dev_setup()
120 idev->fw_hb_ready = true; in ionic_dev_setup()
128 idev->db_pages = bar->vaddr; in ionic_dev_setup()
137 struct ionic_dev *idev = &ionic->idev; in ionic_heartbeat_check() local
231 idev->last_fw_hb = fw_hb; in ionic_heartbeat_check()
[all …]
A Dionic_main.c381 struct ionic_dev *idev = &ionic->idev; in ionic_dev_cmd_wait() local
472 struct ionic_dev *idev = &ionic->idev; in ionic_identify() local
527 struct ionic_dev *idev = &ionic->idev; in ionic_init() local
540 struct ionic_dev *idev = &ionic->idev; in ionic_reset() local
554 struct ionic_dev *idev = &ionic->idev; in ionic_port_identify() local
575 struct ionic_dev *idev = &ionic->idev; in ionic_port_init() local
580 idev->port_info_sz = ALIGN(sizeof(*idev->port_info), PAGE_SIZE); in ionic_port_init()
604 idev->port_info, idev->port_info_pa); in ionic_port_init()
614 struct ionic_dev *idev = &ionic->idev; in ionic_port_reset() local
617 if (!idev->port_info) in ionic_port_reset()
[all …]
/linux/tools/usb/usbip/libsrc/
A Dvhci_driver.c34 return idev; in imported_device_init()
72 idev = &vhci_driver->idev[port]; in parse_status()
73 memset(idev, 0, sizeof(*idev)); in parse_status()
80 idev->port = port; in parse_status()
81 idev->status = status; in parse_status()
83 idev->devid = devid; in parse_status()
90 idev = imported_device_init(idev, lbusid); in parse_status()
91 if (!idev) { in parse_status()
450 idev->udev.idVendor, idev->udev.idProduct); in usbip_vhci_imported_device_dump()
458 idev->busnum, idev->devnum); in usbip_vhci_imported_device_dump()
[all …]
/linux/drivers/bluetooth/
A Dhci_intel.c277 if (idev->hu) in intel_irq()
306 if (!idev->reset) { in intel_set_power()
325 if (idev->irq < 0) in intel_set_power()
348 devm_free_irq(&idev->pdev->dev, idev->irq, idev); in intel_set_power()
1077 if (idev->hu) in intel_suspend_device()
1089 if (idev->hu) in intel_resume_device()
1138 idev = devm_kzalloc(&pdev->dev, sizeof(*idev), GFP_KERNEL); in intel_probe()
1139 if (!idev) in intel_probe()
1144 idev->pdev = pdev; in intel_probe()
1157 if (idev->irq < 0) { in intel_probe()
[all …]
/linux/drivers/input/touchscreen/
A 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()
113 input_sync(idev); in mc13783_ts_report_sample()
172 struct input_dev *idev; in mc13783_ts_probe() local
177 if (!priv || !idev) in mc13783_ts_probe()
182 priv->idev = idev; in mc13783_ts_probe()
190 idev->name = MC13783_TS_NAME; in mc13783_ts_probe()
191 idev->dev.parent = &pdev->dev; in mc13783_ts_probe()
199 idev->open = mc13783_ts_open; in mc13783_ts_probe()
[all …]
/linux/drivers/platform/x86/
A Dacer-wireless.c31 input_sync(idev); in acer_wireless_notify()
33 input_sync(idev); in acer_wireless_notify()
38 struct input_dev *idev; in acer_wireless_add() local
41 if (!idev) in acer_wireless_add()
44 adev->driver_data = idev; in acer_wireless_add()
47 idev->id.bustype = BUS_HOST; in acer_wireless_add()
48 idev->id.vendor = PCI_VENDOR_ID_AI; in acer_wireless_add()
49 idev->id.product = 0x1229; in acer_wireless_add()
50 set_bit(EV_KEY, idev->evbit); in acer_wireless_add()
51 set_bit(KEY_RFKILL, idev->keybit); in acer_wireless_add()
[all …]
/linux/drivers/iio/adc/
A Dat91_adc.c471 at91_ts_sample(idev); in at91_adc_9x5_interrupt()
536 return idev->num_channels; in at91_adc_channel_init()
549 idev->name, in at91_adc_get_trigger_value_by_name()
550 iio_device_id(idev), in at91_adc_get_trigger_value_by_name()
628 trig = iio_trigger_alloc(idev->dev.parent, "%s-dev%d-%s", idev->name, in at91_adc_allocate_trigger()
664 dev_err(&idev->dev, in at91_adc_trigger_init()
1000 struct iio_dev *idev; in at91_adc_probe() local
1006 if (!idev) in at91_adc_probe()
1009 st = iio_priv(idev); in at91_adc_probe()
1214 free_irq(st->irq, idev); in at91_adc_probe()
[all …]
/linux/drivers/platform/chrome/
A Dchromeos_tbmc.c25 struct input_dev *idev) in chromeos_tbmc_query_switch() argument
36 input_sync(idev); in chromeos_tbmc_query_switch()
69 struct input_dev *idev; in chromeos_tbmc_add() local
74 if (!idev) in chromeos_tbmc_add()
77 idev->name = "Tablet Mode Switch"; in chromeos_tbmc_add()
80 idev->id.bustype = BUS_HOST; in chromeos_tbmc_add()
81 idev->id.version = 1; in chromeos_tbmc_add()
82 idev->id.product = 0; in chromeos_tbmc_add()
83 idev->open = chromeos_tbmc_open; in chromeos_tbmc_add()
85 input_set_drvdata(idev, adev); in chromeos_tbmc_add()
[all …]
/linux/drivers/input/joystick/
A Dpsxpad-spi.c62 struct input_dev *idev; member
285 struct input_dev *idev; in psxpad_spi_probe() local
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()
307 idev->id.bustype = BUS_SPI; in psxpad_spi_probe()
309 idev->open = psxpad_spi_poll_open; in psxpad_spi_probe()
310 idev->close = psxpad_spi_poll_close; in psxpad_spi_probe()
357 input_set_poll_interval(idev, 16); in psxpad_spi_probe()
358 input_set_min_poll_interval(idev, 8); in psxpad_spi_probe()
[all …]
/linux/drivers/media/firewire/
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()
136 idev->dev.parent = dev; in fdtv_register_rc()
139 if (!idev->keycode) { in fdtv_register_rc()
156 kfree(idev->keycode); in fdtv_register_rc()
158 input_free_device(idev); in fdtv_register_rc()
172 u16 *keycode = idev->keycode; in fdtv_handle_rc()
190 input_sync(idev); in fdtv_handle_rc()
[all …]
/linux/arch/x86/platform/intel-quark/
A Dimr.c197 mutex_lock(&idev->lock); in imr_dbgfs_state_show()
226 mutex_unlock(&idev->lock); in imr_dbgfs_state_show()
331 mutex_lock(&idev->lock); in imr_add_range()
383 imr_write(idev, reg, &imr); in imr_add_range()
386 mutex_unlock(&idev->lock); in imr_add_range()
434 mutex_lock(&idev->lock); in __imr_remove_range()
482 mutex_unlock(&idev->lock); in __imr_remove_range()
590 idev->init = true; in imr_init()
592 mutex_init(&idev->lock); in imr_init()
593 imr_debugfs_register(idev); in imr_init()
[all …]
/linux/drivers/mfd/
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()
62 input_sync(idev); in ucb1x00_ts_evt_add()
67 struct input_dev *idev = ts->idev; in ucb1x00_ts_event_release() local
71 input_sync(idev); in ucb1x00_ts_event_release()
367 struct input_dev *idev; in ucb1x00_ts_add() local
372 if (!ts || !idev) { in ucb1x00_ts_add()
378 ts->idev = idev; in ucb1x00_ts_add()
391 input_set_drvdata(idev, ts); in ucb1x00_ts_add()
[all …]
/linux/drivers/input/misc/
A Dpcf8574_keypad.c39 struct input_dev *idev; member
75 input_sync(lp->idev); in pcf8574_kp_irq_handler()
86 struct input_dev *idev; in pcf8574_kp_probe() local
99 if (!idev) { in pcf8574_kp_probe()
105 lp->idev = idev; in pcf8574_kp_probe()
124 idev->name = lp->name; in pcf8574_kp_probe()
125 idev->phys = lp->phys; in pcf8574_kp_probe()
127 idev->id.vendor = 0x0001; in pcf8574_kp_probe()
128 idev->id.product = 0x0001; in pcf8574_kp_probe()
129 idev->id.version = 0x0100; in pcf8574_kp_probe()
[all …]
A Dapanel.c54 struct input_dev *idev; member
111 report_key(idev, ap->keymap[i]); in apanel_poll()
127 struct input_dev *idev; in apanel_probe() local
136 if (!idev) in apanel_probe()
139 ap->idev = idev; in apanel_probe()
150 input_set_drvdata(idev, ap); in apanel_probe()
153 idev->phys = "apanel/input0"; in apanel_probe()
154 idev->id.bustype = BUS_HOST; in apanel_probe()
157 idev->keycode = ap->keymap; in apanel_probe()
161 set_bit(EV_KEY, idev->evbit); in apanel_probe()
[all …]
/linux/drivers/virtio/
A Dvirtio_input.c14 struct input_dev *idev; member
44 input_event(vi->idev, in virtinput_recv_events()
241 if (!vi->idev) { in virtinput_probe()
245 input_set_drvdata(vi->idev, vi); in virtinput_probe()
257 vi->idev->name = vi->name; in virtinput_probe()
258 vi->idev->phys = vi->phys; in virtinput_probe()
259 vi->idev->uniq = vi->serial; in virtinput_probe()
286 vi->idev->keybit, KEY_CNT); in virtinput_probe()
288 vi->idev->relbit, REL_CNT); in virtinput_probe()
294 vi->idev->swbit, SW_CNT); in virtinput_probe()
[all …]
/linux/include/net/
A Daddrconf.h356 struct inet6_dev *idev; in in6_dev_get() local
360 if (idev) in in6_dev_get()
361 refcount_inc(&idev->refcnt); in in6_dev_get()
363 return idev; in in6_dev_get()
370 return idev ? idev->nd_parms : NULL; in __in6_dev_nd_parms_get_rcu()
378 in6_dev_finish_destroy(idev); in in6_dev_put()
383 struct inet6_dev *idev = *pidev; in in6_dev_put_clear() local
385 if (idev) { in in6_dev_put_clear()
386 in6_dev_put(idev); in in6_dev_put_clear()
393 refcount_dec(&idev->refcnt); in __in6_dev_put()
[all …]

Completed in 72 milliseconds

1234567