/drivers/uio/ |
D | uio.c | 210 struct uio_device *idev = dev_get_drvdata(dev); in show_name() local 211 if (idev) in show_name() 212 return sprintf(buf, "%s\n", idev->info->name); in show_name() 221 struct uio_device *idev = dev_get_drvdata(dev); in show_version() local 222 if (idev) in show_version() 223 return sprintf(buf, "%s\n", idev->info->version); in show_version() 232 struct uio_device *idev = dev_get_drvdata(dev); in show_event() local 233 if (idev) in show_event() 235 (unsigned int)atomic_read(&idev->event)); in show_event() 255 static int uio_dev_add_attributes(struct uio_device *idev) in uio_dev_add_attributes() argument [all …]
|
/drivers/net/irda/ |
D | vlsi_ir.c | 181 vlsi_irda_dev_t *idev = netdev_priv(ndev); in vlsi_proc_ndev() local 198 pci_read_config_byte(idev->pdev, VLSI_PCI_IRMISC, &byte); in vlsi_proc_ndev() 209 pci_read_config_byte(idev->pdev, VLSI_PCI_CLKCTL, &byte); in vlsi_proc_ndev() 216 pci_read_config_byte(idev->pdev, VLSI_PCI_MSTRPAGE, &byte); in vlsi_proc_ndev() 279 seq_printf(seq, "IrPHY setup: %d baud - %s encoding\n", idev->baud, in vlsi_proc_ndev() 280 (idev->mode==IFF_SIR)?"SIR":((idev->mode==IFF_MIR)?"MIR":"FIR")); in vlsi_proc_ndev() 282 if (now.tv_usec >= idev->last_rx.tv_usec) { in vlsi_proc_ndev() 283 delta2 = now.tv_usec - idev->last_rx.tv_usec; in vlsi_proc_ndev() 287 delta2 = 1000000 + now.tv_usec - idev->last_rx.tv_usec; in vlsi_proc_ndev() 291 now.tv_sec - idev->last_rx.tv_sec - delta1, delta2); in vlsi_proc_ndev() [all …]
|
/drivers/staging/mimio/ |
D | mimio.c | 118 struct input_dev *idev; member 165 static void mimio_close(struct input_dev *idev) in mimio_close() argument 169 mimio = input_get_drvdata(idev); in mimio_close() 171 dev_err(&idev->dev, "null mimio attached to input device\n"); in mimio_close() 176 dev_err(&idev->dev, "mimio not open.\n"); in mimio_close() 193 if (mimio->idev) { in mimio_dealloc() 194 input_unregister_device(mimio->idev); in mimio_dealloc() 195 if (mimio->idev->grab) in mimio_dealloc() 196 input_close_device(mimio->idev->grab); in mimio_dealloc() 198 dev_dbg(&mimio->idev->dev, "mimio->idev->grab == NULL" in mimio_dealloc() [all …]
|
/drivers/mfd/ |
D | ucb1x00-ts.c | 42 struct input_dev *idev; member 58 struct input_dev *idev = ts->idev; in ucb1x00_ts_evt_add() local 60 input_report_abs(idev, ABS_X, x); in ucb1x00_ts_evt_add() 61 input_report_abs(idev, ABS_Y, y); in ucb1x00_ts_evt_add() 62 input_report_abs(idev, ABS_PRESSURE, pressure); in ucb1x00_ts_evt_add() 63 input_sync(idev); in ucb1x00_ts_evt_add() 68 struct input_dev *idev = ts->idev; in ucb1x00_ts_event_release() local 70 input_report_abs(idev, ABS_PRESSURE, 0); in ucb1x00_ts_event_release() 71 input_sync(idev); in ucb1x00_ts_event_release() 291 static int ucb1x00_ts_open(struct input_dev *idev) in ucb1x00_ts_open() argument [all …]
|
/drivers/input/misc/ |
D | ati_remote2.c | 117 struct input_dev *idev; member 180 static int ati_remote2_open(struct input_dev *idev) in ati_remote2_open() argument 182 struct ati_remote2 *ar2 = input_get_drvdata(idev); in ati_remote2_open() 217 static void ati_remote2_close(struct input_dev *idev) in ati_remote2_close() argument 219 struct ati_remote2 *ar2 = input_get_drvdata(idev); in ati_remote2_close() 235 struct input_dev *idev = ar2->idev; in ati_remote2_input_mouse() local 256 input_event(idev, EV_REL, REL_X, (s8) data[1]); in ati_remote2_input_mouse() 257 input_event(idev, EV_REL, REL_Y, (s8) data[2]); in ati_remote2_input_mouse() 258 input_sync(idev); in ati_remote2_input_mouse() 274 struct input_dev *idev = ar2->idev; in ati_remote2_input_key() local [all …]
|
D | apanel.c | 92 struct input_dev *idev = ipdev->input; in apanel_poll() local 107 dev_dbg(&idev->dev, APANEL ": data %#x\n", data); in apanel_poll() 108 for (i = 0; i < idev->keycodemax; i++) in apanel_poll() 110 report_key(idev, ap->keymap[i]); in apanel_poll() 193 struct input_dev *idev; in apanel_probe() local 219 idev = ipdev->input; in apanel_probe() 220 idev->name = APANEL_NAME " buttons"; in apanel_probe() 221 idev->phys = "apanel/input0"; in apanel_probe() 222 idev->id.bustype = BUS_HOST; in apanel_probe() 223 idev->dev.parent = &client->dev; in apanel_probe() [all …]
|
D | ati_remote.c | 165 struct input_dev *idev; member 466 struct input_dev *dev = ati_remote->idev; in ati_remote_input_report() 661 struct input_dev *idev = ati_remote->idev; in ati_remote_input_init() local 664 idev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in ati_remote_input_init() 665 idev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_LEFT) | in ati_remote_input_init() 667 idev->relbit[0] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); in ati_remote_input_init() 670 set_bit(ati_remote_tbl[i].code, idev->keybit); in ati_remote_input_init() 672 input_set_drvdata(idev, ati_remote); in ati_remote_input_init() 674 idev->open = ati_remote_open; in ati_remote_input_init() 675 idev->close = ati_remote_close; in ati_remote_input_init() [all …]
|
D | cm109.c | 92 struct input_dev *idev; /* input device */ member 300 struct input_dev *idev = dev->idev; in report_key() local 304 input_report_key(idev, dev->key_code, 0); in report_key() 310 input_report_key(idev, key, 1); in report_key() 313 input_sync(idev); in report_key() 515 static int cm109_input_open(struct input_dev *idev) in cm109_input_open() argument 517 struct cm109_dev *dev = input_get_drvdata(idev); in cm109_input_open() 553 static void cm109_input_close(struct input_dev *idev) in cm109_input_close() argument 555 struct cm109_dev *dev = input_get_drvdata(idev); in cm109_input_close() 572 static int cm109_input_ev(struct input_dev *idev, unsigned int type, in cm109_input_ev() argument [all …]
|
D | yealink.c | 102 struct input_dev *idev; /* input device */ member 240 struct input_dev *idev = yld->idev; in report_key() local 244 input_report_key(idev, yld->key_code & 0xff, 0); in report_key() 246 input_report_key(idev, yld->key_code >> 8, 0); in report_key() 252 input_report_key(idev, key & 0xff, 1); in report_key() 254 input_report_key(idev, key >> 8, 1); in report_key() 256 input_sync(idev); in report_key() 829 if (yld->idev) { in usb_cleanup() 831 input_free_device(yld->idev); in usb_cleanup() 833 input_unregister_device(yld->idev); in usb_cleanup() [all …]
|
/drivers/input/joystick/ |
D | maplecontrol.c | 101 struct input_dev *idev; in probe_maple_controller() local 105 idev = input_allocate_device(); in probe_maple_controller() 106 if (!pad || !idev) { in probe_maple_controller() 111 pad->dev = idev; in probe_maple_controller() 114 idev->open = dc_pad_open; in probe_maple_controller() 115 idev->close = dc_pad_close; in probe_maple_controller() 120 __set_bit(btn_bit[i], idev->keybit); in probe_maple_controller() 122 __set_bit(abs_bit[i], idev->absbit); in probe_maple_controller() 126 if (idev->keybit[BIT_WORD(BTN_JOYSTICK)]) in probe_maple_controller() 127 idev->evbit[0] |= BIT_MASK(EV_KEY); in probe_maple_controller() [all …]
|
/drivers/hwmon/ams/ |
D | ams-input.c | 34 struct input_dev *idev = dev->input; in ams_idev_poll() local 45 input_report_abs(idev, ABS_X, invert ? -x : x); in ams_idev_poll() 46 input_report_abs(idev, ABS_Y, invert ? -y : y); in ams_idev_poll() 47 input_report_abs(idev, ABS_Z, z); in ams_idev_poll() 49 input_sync(idev); in ams_idev_poll() 66 ams_info.idev = input_allocate_polled_device(); in ams_input_enable() 67 if (!ams_info.idev) in ams_input_enable() 70 ams_info.idev->poll = ams_idev_poll; in ams_input_enable() 71 ams_info.idev->poll_interval = 25; in ams_input_enable() 73 input = ams_info.idev->input; in ams_input_enable() [all …]
|
/drivers/ata/ |
D | pata_isapnp.c | 40 static int isapnp_init_one(struct pnp_dev *idev, const struct pnp_device_id *dev_id) in isapnp_init_one() argument 48 if (pnp_port_valid(idev, 0) == 0) in isapnp_init_one() 51 if (pnp_irq_valid(idev, 0)) { in isapnp_init_one() 52 irq = pnp_irq(idev, 0); in isapnp_init_one() 57 host = ata_host_alloc(&idev->dev, 1); in isapnp_init_one() 62 cmd_addr = devm_ioport_map(&idev->dev, pnp_port_start(idev, 0), 8); in isapnp_init_one() 74 if (pnp_port_valid(idev, 1) == 0) { in isapnp_init_one() 75 ctl_addr = devm_ioport_map(&idev->dev, in isapnp_init_one() 76 pnp_port_start(idev, 1), 1); in isapnp_init_one() 84 (unsigned long long)pnp_port_start(idev, 0), in isapnp_init_one() [all …]
|
/drivers/media/dvb/firewire/ |
D | firedtv-rc.c | 129 struct input_dev *idev; in fdtv_register_rc() local 132 idev = input_allocate_device(); in fdtv_register_rc() 133 if (!idev) in fdtv_register_rc() 136 fdtv->remote_ctrl_dev = idev; in fdtv_register_rc() 137 idev->name = "FireDTV remote control"; in fdtv_register_rc() 138 idev->dev.parent = dev; in fdtv_register_rc() 139 idev->evbit[0] = BIT_MASK(EV_KEY); in fdtv_register_rc() 140 idev->keycode = kmemdup(keytable, sizeof(keytable), GFP_KERNEL); in fdtv_register_rc() 141 if (!idev->keycode) { in fdtv_register_rc() 145 idev->keycodesize = sizeof(keytable[0]); in fdtv_register_rc() [all …]
|
/drivers/hwmon/ |
D | lis3lv02d.c | 287 input_report_abs(adev.idev, ABS_X, x - adev.xcalib); in lis3lv02d_joystick_kthread() 288 input_report_abs(adev.idev, ABS_Y, y - adev.ycalib); in lis3lv02d_joystick_kthread() 289 input_report_abs(adev.idev, ABS_Z, z - adev.zcalib); in lis3lv02d_joystick_kthread() 291 input_sync(adev.idev); in lis3lv02d_joystick_kthread() 327 if (adev.idev) in lis3lv02d_joystick_enable() 330 adev.idev = input_allocate_device(); in lis3lv02d_joystick_enable() 331 if (!adev.idev) in lis3lv02d_joystick_enable() 336 adev.idev->name = "ST LIS3LV02DL Accelerometer"; in lis3lv02d_joystick_enable() 337 adev.idev->phys = DRIVER_NAME "/input0"; in lis3lv02d_joystick_enable() 338 adev.idev->id.bustype = BUS_HOST; in lis3lv02d_joystick_enable() [all …]
|
D | hdaps.c | 541 struct input_dev *idev; in hdaps_init() local 582 idev = hdaps_idev->input; in hdaps_init() 583 idev->name = "hdaps"; in hdaps_init() 584 idev->phys = "isa1600/input0"; in hdaps_init() 585 idev->id.bustype = BUS_ISA; in hdaps_init() 586 idev->dev.parent = &pdev->dev; in hdaps_init() 587 idev->evbit[0] = BIT_MASK(EV_ABS); in hdaps_init() 588 input_set_abs_params(idev, ABS_X, in hdaps_init() 590 input_set_abs_params(idev, ABS_Y, in hdaps_init()
|
/drivers/leds/ |
D | leds-pca9532.c | 37 struct input_dev *idev; member 246 BUG_ON(data->idev); in pca9532_configure() 249 data->idev = input_allocate_device(); in pca9532_configure() 250 if (data->idev == NULL) { in pca9532_configure() 254 data->idev->name = pled->name; in pca9532_configure() 255 data->idev->phys = "i2c/pca9532"; in pca9532_configure() 256 data->idev->id.bustype = BUS_HOST; in pca9532_configure() 257 data->idev->id.vendor = 0x001f; in pca9532_configure() 258 data->idev->id.product = 0x0001; in pca9532_configure() 259 data->idev->id.version = 0x0100; in pca9532_configure() [all …]
|
/drivers/net/bonding/ |
D | bond_ipv6.c | 36 struct inet6_dev *idev; in bond_glean_dev_ipv6() local 42 idev = in6_dev_get(dev); in bond_glean_dev_ipv6() 43 if (!idev) in bond_glean_dev_ipv6() 46 read_lock_bh(&idev->lock); in bond_glean_dev_ipv6() 47 ifa = idev->addr_list; in bond_glean_dev_ipv6() 53 read_unlock_bh(&idev->lock); in bond_glean_dev_ipv6() 55 in6_dev_put(idev); in bond_glean_dev_ipv6() 108 struct inet6_dev *idev; in bond_send_unsolicited_na() local 120 idev = in6_dev_get(bond->dev); in bond_send_unsolicited_na() 121 if (!idev) in bond_send_unsolicited_na() [all …]
|
/drivers/input/keyboard/ |
D | maple_keyb.c | 166 struct input_dev *idev; in probe_maple_kbd() local 172 idev = input_allocate_device(); in probe_maple_kbd() 173 if (!kbd || !idev) { in probe_maple_kbd() 178 kbd->dev = idev; in probe_maple_kbd() 181 idev->name = mdev->product_name; in probe_maple_kbd() 182 idev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP); in probe_maple_kbd() 183 idev->keycode = kbd->keycode; in probe_maple_kbd() 184 idev->keycodesize = sizeof(unsigned short); in probe_maple_kbd() 185 idev->keycodemax = ARRAY_SIZE(kbd->keycode); in probe_maple_kbd() 186 idev->id.bustype = BUS_HOST; in probe_maple_kbd() [all …]
|
/drivers/net/ |
D | ne.c | 247 struct pnp_dev *idev = NULL; in ne_probe_isapnp() local 249 while ((idev = pnp_find_dev(NULL, in ne_probe_isapnp() 252 idev))) { in ne_probe_isapnp() 254 if (pnp_device_attach(idev) < 0) in ne_probe_isapnp() 256 if (pnp_activate_dev(idev) < 0) { in ne_probe_isapnp() 257 pnp_device_detach(idev); in ne_probe_isapnp() 261 if (!pnp_port_valid(idev, 0) || !pnp_irq_valid(idev, 0)) { in ne_probe_isapnp() 262 pnp_device_detach(idev); in ne_probe_isapnp() 266 dev->base_addr = pnp_port_start(idev, 0); in ne_probe_isapnp() 267 dev->irq = pnp_irq(idev, 0); in ne_probe_isapnp() [all …]
|
D | smc-ultra.c | 338 struct pnp_dev *idev = NULL; in ultra_probe_isapnp() local 340 while ((idev = pnp_find_dev(NULL, in ultra_probe_isapnp() 343 idev))) { in ultra_probe_isapnp() 345 if (pnp_device_attach(idev) < 0) in ultra_probe_isapnp() 347 if (pnp_activate_dev(idev) < 0) { in ultra_probe_isapnp() 349 pnp_device_detach(idev); in ultra_probe_isapnp() 353 if (!pnp_port_valid(idev, 0) || !pnp_irq_valid(idev, 0)) in ultra_probe_isapnp() 356 dev->base_addr = pnp_port_start(idev, 0); in ultra_probe_isapnp() 357 dev->irq = pnp_irq(idev, 0); in ultra_probe_isapnp() 363 pnp_device_detach(idev); in ultra_probe_isapnp() [all …]
|
D | 3c515.c | 369 struct pnp_dev *idev, int card_number); 509 struct pnp_dev *idev = NULL; in corkscrew_scan() local 511 while((idev = pnp_find_dev(NULL, in corkscrew_scan() 514 idev))) { in corkscrew_scan() 516 if (pnp_device_attach(idev) < 0) in corkscrew_scan() 518 if (pnp_activate_dev(idev) < 0) { in corkscrew_scan() 520 pnp_device_detach(idev); in corkscrew_scan() 523 if (!pnp_port_valid(idev, 0) || !pnp_irq_valid(idev, 0)) { in corkscrew_scan() 524 pnp_device_detach(idev); in corkscrew_scan() 527 ioaddr = pnp_port_start(idev, 0); in corkscrew_scan() [all …]
|
/drivers/infiniband/hw/ipath/ |
D | ipath_verbs.c | 1989 struct ipath_ibdev *idev; in ipath_register_ib_device() local 1995 idev = (struct ipath_ibdev *)ib_alloc_device(sizeof *idev); in ipath_register_ib_device() 1996 if (idev == NULL) { in ipath_register_ib_device() 2001 dev = &idev->ibdev; in ipath_register_ib_device() 2012 idev->txreq_bufs = tx; in ipath_register_ib_device() 2015 spin_lock_init(&idev->n_pds_lock); in ipath_register_ib_device() 2016 spin_lock_init(&idev->n_ahs_lock); in ipath_register_ib_device() 2017 spin_lock_init(&idev->n_cqs_lock); in ipath_register_ib_device() 2018 spin_lock_init(&idev->n_qps_lock); in ipath_register_ib_device() 2019 spin_lock_init(&idev->n_srqs_lock); in ipath_register_ib_device() [all …]
|
/drivers/input/touchscreen/ |
D | ucb1400_ts.c | 149 static void ucb1400_ts_evt_add(struct input_dev *idev, u16 pressure, u16 x, u16 y) in ucb1400_ts_evt_add() argument 151 input_report_abs(idev, ABS_X, x); in ucb1400_ts_evt_add() 152 input_report_abs(idev, ABS_Y, y); in ucb1400_ts_evt_add() 153 input_report_abs(idev, ABS_PRESSURE, pressure); in ucb1400_ts_evt_add() 154 input_sync(idev); in ucb1400_ts_evt_add() 157 static void ucb1400_ts_event_release(struct input_dev *idev) in ucb1400_ts_event_release() argument 159 input_report_abs(idev, ABS_PRESSURE, 0); in ucb1400_ts_event_release() 160 input_sync(idev); in ucb1400_ts_event_release() 265 static int ucb1400_ts_open(struct input_dev *idev) in ucb1400_ts_open() argument 267 struct ucb1400_ts *ucb = input_get_drvdata(idev); in ucb1400_ts_open() [all …]
|
/drivers/ide/ |
D | it821x.c | 534 struct it821x_dev *idev = itdevs + hwif->channel; in init_hwif_it821x() local 537 ide_set_hwifdata(hwif, idev); in init_hwif_it821x() 541 idev->smart = 1; in init_hwif_it821x() 550 idev->clock_mode = ATA_50; in init_hwif_it821x() 552 idev->clock_mode = ATA_66; in init_hwif_it821x() 554 idev->want[0][1] = ATA_ANY; in init_hwif_it821x() 555 idev->want[1][1] = ATA_ANY; in init_hwif_it821x() 563 idev->timing10 = 1; in init_hwif_it821x() 565 if (idev->smart == 0) in init_hwif_it821x() 570 if (idev->smart == 0) { in init_hwif_it821x() [all …]
|
/drivers/scsi/ |
D | sym53c416.c | 618 struct pnp_dev *idev = NULL; in sym53c416_detect() local 652 while((idev=pnp_find_dev(NULL, id_table[i].vendor, in sym53c416_detect() 653 id_table[i].function, idev))!=NULL) in sym53c416_detect() 657 if(pnp_device_attach(idev)<0) in sym53c416_detect() 662 if(pnp_activate_dev(idev) < 0) in sym53c416_detect() 665 pnp_device_detach(idev); in sym53c416_detect() 671 i[1] = pnp_port_start(idev, 0); in sym53c416_detect() 672 i[2] = pnp_irq(idev, 0); in sym53c416_detect()
|