Home
last modified time | relevance | path

Searched refs:init_data (Results 1 – 25 of 111) sorted by relevance

12345

/drivers/media/usb/cx231xx/
Dcx231xx-input.c81 memset(&dev->init_data, 0, sizeof(dev->init_data)); in cx231xx_ir_init()
82 dev->init_data.rc_dev = rc_allocate_device(); in cx231xx_ir_init()
83 if (!dev->init_data.rc_dev) in cx231xx_ir_init()
86 dev->init_data.name = cx231xx_boards[dev->model].name; in cx231xx_ir_init()
89 info.platform_data = &dev->init_data; in cx231xx_ir_init()
97 dev->init_data.get_key = get_key_isdbt; in cx231xx_ir_init()
98 dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name; in cx231xx_ir_init()
100 dev->init_data.rc_dev->scanmask = 0xff; in cx231xx_ir_init()
101 dev->init_data.rc_dev->driver_name = "cx231xx"; in cx231xx_ir_init()
102 dev->init_data.type = RC_BIT_NEC; in cx231xx_ir_init()
/drivers/regulator/
Dof_regulator.c20 struct regulator_init_data **init_data) in of_get_regulation_constraints() argument
24 struct regulation_constraints *constraints = &(*init_data)->constraints; in of_get_regulation_constraints()
80 struct regulator_init_data *init_data; in of_get_regulator_init_data() local
85 init_data = devm_kzalloc(dev, sizeof(*init_data), GFP_KERNEL); in of_get_regulator_init_data()
86 if (!init_data) in of_get_regulator_init_data()
89 of_get_regulation_constraints(node, &init_data); in of_get_regulator_init_data()
90 return init_data; in of_get_regulator_init_data()
125 match->init_data = NULL; in of_regulator_match()
142 match->init_data = in of_regulator_match()
144 if (!match->init_data) { in of_regulator_match()
Dfixed.c55 struct regulator_init_data *init_data; in of_get_fixed_voltage_config() local
62 config->init_data = of_get_regulator_init_data(dev, dev->of_node); in of_get_fixed_voltage_config()
63 if (!config->init_data) in of_get_fixed_voltage_config()
66 init_data = config->init_data; in of_get_fixed_voltage_config()
67 init_data->constraints.apply_uV = 0; in of_get_fixed_voltage_config()
69 config->supply_name = init_data->constraints.name; in of_get_fixed_voltage_config()
70 if (init_data->constraints.min_uV == init_data->constraints.max_uV) { in of_get_fixed_voltage_config()
71 config->microvolts = init_data->constraints.min_uV; in of_get_fixed_voltage_config()
78 if (init_data->constraints.boot_on) in of_get_fixed_voltage_config()
211 cfg.init_data = config->init_data; in reg_fixed_voltage_probe()
Dvexpress.c62 struct regulator_init_data *init_data; in vexpress_regulator_probe() local
82 init_data = of_get_regulator_init_data(&pdev->dev, pdev->dev.of_node); in vexpress_regulator_probe()
83 if (!init_data) { in vexpress_regulator_probe()
88 init_data->constraints.apply_uV = 0; in vexpress_regulator_probe()
89 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
95 config.init_data = init_data; in vexpress_regulator_probe()
Dwm8994-regulator.c33 struct regulator_init_data init_data; member
149 config.init_data = &ldo->init_data; in wm8994_ldo_probe()
156 if (!pdata || !pdata->ldo[id].init_data || wm8994->dev->of_node) { in wm8994_ldo_probe()
160 ldo->init_data = wm8994_ldo_default[id]; in wm8994_ldo_probe()
161 ldo->init_data.consumer_supplies = &ldo->supply; in wm8994_ldo_probe()
163 ldo->init_data.constraints.valid_ops_mask = 0; in wm8994_ldo_probe()
165 ldo->init_data = *pdata->ldo[id].init_data; in wm8994_ldo_probe()
Dfixed-helper.c9 struct regulator_init_data init_data; member
47 data->cfg.init_data = &data->init_data; in regulator_register_always_on()
49 data->init_data.constraints.always_on = 1; in regulator_register_always_on()
50 data->init_data.consumer_supplies = supplies; in regulator_register_always_on()
51 data->init_data.num_consumer_supplies = num_supplies; in regulator_register_always_on()
Darizona-ldo1.c34 struct regulator_init_data init_data; member
207 ldo1->init_data = arizona_ldo1_dvfs; in arizona_ldo1_probe()
211 ldo1->init_data = arizona_ldo1_default; in arizona_ldo1_probe()
215 ldo1->init_data.consumer_supplies = &ldo1->supply; in arizona_ldo1_probe()
225 config.init_data = arizona->pdata.ldo1; in arizona_ldo1_probe()
227 config.init_data = &ldo1->init_data; in arizona_ldo1_probe()
Darizona-micsupp.c38 struct regulator_init_data init_data; member
210 micsupp->init_data = arizona_micsupp_default; in arizona_micsupp_probe()
211 micsupp->init_data.consumer_supplies = &micsupp->supply; in arizona_micsupp_probe()
220 config.init_data = arizona->pdata.micvdd; in arizona_micsupp_probe()
222 config.init_data = &micsupp->init_data; in arizona_micsupp_probe()
Dtps6507x-regulator.c417 if (!matches[idx].init_data || !matches[idx].of_node) in tps6507x_parse_dt_reg_data()
420 memcpy(&reg_data[idx], matches[idx].init_data, in tps6507x_parse_dt_reg_data()
441 struct regulator_init_data *init_data; in tps6507x_pmic_probe() local
466 init_data = tps_board->tps6507x_pmic_init_data; in tps6507x_pmic_probe()
467 if (!init_data) in tps6507x_pmic_probe()
479 for (i = 0; i < TPS6507X_NUM_REGULATOR; i++, info++, init_data++) { in tps6507x_pmic_probe()
482 if (init_data->driver_data) { in tps6507x_pmic_probe()
484 init_data->driver_data; in tps6507x_pmic_probe()
497 config.init_data = init_data; in tps6507x_pmic_probe()
Disl6271a-regulator.c113 struct regulator_init_data *init_data = i2c->dev.platform_data; in isl6271a_probe() local
131 config.init_data = init_data; in isl6271a_probe()
133 config.init_data = 0; in isl6271a_probe()
Dmc13783-regulator.c427 struct regulator_init_data *init_data; in mc13783_regulator_probe() local
434 init_data = mc13xxx_data[i].init_data; in mc13783_regulator_probe()
438 init_data = pdata->regulators[i].init_data; in mc13783_regulator_probe()
443 config.init_data = init_data; in mc13783_regulator_probe()
Dtps65023-regulator.c208 struct regulator_init_data *init_data; in tps_65023_probe() local
221 init_data = client->dev.platform_data; in tps_65023_probe()
222 if (!init_data) in tps_65023_probe()
240 for (i = 0; i < TPS65023_NUM_REGULATOR; i++, info++, init_data++) { in tps_65023_probe()
275 config.init_data = init_data; in tps_65023_probe()
/drivers/media/pci/saa7134/
Dsaa7134-input.c912 memset(&dev->init_data, 0, sizeof(dev->init_data)); in saa7134_probe_i2c_ir()
918 dev->init_data.name = "Pinnacle PCTV"; in saa7134_probe_i2c_ir()
920 dev->init_data.get_key = get_key_pinnacle_color; in saa7134_probe_i2c_ir()
921 dev->init_data.ir_codes = RC_MAP_PINNACLE_COLOR; in saa7134_probe_i2c_ir()
924 dev->init_data.get_key = get_key_pinnacle_grey; in saa7134_probe_i2c_ir()
925 dev->init_data.ir_codes = RC_MAP_PINNACLE_GREY; in saa7134_probe_i2c_ir()
930 dev->init_data.name = "Purple TV"; in saa7134_probe_i2c_ir()
931 dev->init_data.get_key = get_key_purpletv; in saa7134_probe_i2c_ir()
932 dev->init_data.ir_codes = RC_MAP_PURPLETV; in saa7134_probe_i2c_ir()
936 dev->init_data.name = "MSI TV@nywhere Plus"; in saa7134_probe_i2c_ir()
[all …]
/drivers/s390/cio/
Dqdio_debug.c20 void qdio_allocate_dbf(struct qdio_initialize *init_data, in qdio_allocate_dbf() argument
25 DBF_EVENT("qfmt:%1d", init_data->q_format); in qdio_allocate_dbf()
26 DBF_HEX(init_data->adapter_name, 8); in qdio_allocate_dbf()
27 DBF_EVENT("qpff%4x", init_data->qib_param_field_format); in qdio_allocate_dbf()
28 DBF_HEX(&init_data->qib_param_field, sizeof(void *)); in qdio_allocate_dbf()
29 DBF_HEX(&init_data->input_slib_elements, sizeof(void *)); in qdio_allocate_dbf()
30 DBF_HEX(&init_data->output_slib_elements, sizeof(void *)); in qdio_allocate_dbf()
31 DBF_EVENT("niq:%1d noq:%1d", init_data->no_input_qs, in qdio_allocate_dbf()
32 init_data->no_output_qs); in qdio_allocate_dbf()
33 DBF_HEX(&init_data->input_handler, sizeof(void *)); in qdio_allocate_dbf()
[all …]
Dqdio_setup.c397 struct qdio_initialize *init_data) in setup_qib() argument
402 irq_ptr->qib.rflags |= init_data->qib_rflags; in setup_qib()
404 irq_ptr->qib.qfmt = init_data->q_format; in setup_qib()
405 if (init_data->no_input_qs) in setup_qib()
408 if (init_data->no_output_qs) in setup_qib()
411 memcpy(irq_ptr->qib.ebcnam, init_data->adapter_name, 8); in setup_qib()
414 int qdio_setup_irq(struct qdio_initialize *init_data) in qdio_setup_irq() argument
417 struct qdio_irq *irq_ptr = init_data->cdev->private->qdio_data; in qdio_setup_irq()
432 irq_ptr->int_parm = init_data->int_parm; in qdio_setup_irq()
433 irq_ptr->nr_input_qs = init_data->no_input_qs; in qdio_setup_irq()
[all …]
/drivers/media/usb/hdpvr/
Dhdpvr-i2c.c37 struct IR_i2c_init_data *init_data = &dev->ir_i2c_init_data; in hdpvr_register_ir_tx_i2c() local
42 init_data->name = "HD-PVR"; in hdpvr_register_ir_tx_i2c()
43 hdpvr_ir_tx_i2c_board_info.platform_data = init_data; in hdpvr_register_ir_tx_i2c()
50 struct IR_i2c_init_data *init_data = &dev->ir_i2c_init_data; in hdpvr_register_ir_rx_i2c() local
56 init_data->ir_codes = RC_MAP_HAUPPAUGE; in hdpvr_register_ir_rx_i2c()
57 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; in hdpvr_register_ir_rx_i2c()
58 init_data->type = RC_BIT_RC5; in hdpvr_register_ir_rx_i2c()
59 init_data->name = "HD-PVR"; in hdpvr_register_ir_rx_i2c()
60 init_data->polling_interval = 405; /* ms, duplicated from Windows */ in hdpvr_register_ir_rx_i2c()
61 hdpvr_ir_rx_i2c_board_info.platform_data = init_data; in hdpvr_register_ir_rx_i2c()
/drivers/mfd/
Dtps65912-core.c127 struct tps65912_platform_data *init_data; in tps65912_device_init() local
130 init_data = kzalloc(sizeof(struct tps65912_platform_data), GFP_KERNEL); in tps65912_device_init()
131 if (init_data == NULL) in tps65912_device_init()
153 init_data->irq = pmic_plat_data->irq; in tps65912_device_init()
154 init_data->irq_base = pmic_plat_data->irq_base; in tps65912_device_init()
155 ret = tps65912_irq_init(tps65912, init_data->irq, init_data); in tps65912_device_init()
159 kfree(init_data); in tps65912_device_init()
163 kfree(init_data); in tps65912_device_init()
Dtps65910.c462 struct tps65910_platform_data *init_data; in tps65910_i2c_probe() local
476 init_data = devm_kzalloc(&i2c->dev, sizeof(*init_data), GFP_KERNEL); in tps65910_i2c_probe()
477 if (init_data == NULL) in tps65910_i2c_probe()
497 init_data->irq = pmic_plat_data->irq; in tps65910_i2c_probe()
498 init_data->irq_base = pmic_plat_data->irq_base; in tps65910_i2c_probe()
500 tps65910_irq_init(tps65910, init_data->irq, init_data); in tps65910_i2c_probe()
/drivers/media/pci/ivtv/
Divtv-i2c.c180 struct IR_i2c_init_data *init_data = &itv->ir_i2c_init_data; in ivtv_i2c_new_ir() local
200 init_data->ir_codes = RC_MAP_AVERMEDIA_CARDBUS; in ivtv_i2c_new_ir()
201 init_data->internal_get_key_func = in ivtv_i2c_new_ir()
203 init_data->type = RC_BIT_OTHER; in ivtv_i2c_new_ir()
204 init_data->name = "AVerMedia AVerTV card"; in ivtv_i2c_new_ir()
208 init_data->ir_codes = RC_MAP_HAUPPAUGE; in ivtv_i2c_new_ir()
209 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP; in ivtv_i2c_new_ir()
210 init_data->type = RC_BIT_RC5; in ivtv_i2c_new_ir()
211 init_data->name = itv->card_name; in ivtv_i2c_new_ir()
215 init_data->ir_codes = RC_MAP_HAUPPAUGE; in ivtv_i2c_new_ir()
[all …]
/drivers/media/i2c/
Dir-kbd-i2c.c356 const struct IR_i2c_init_data *init_data = in ir_probe() local
359 ir_codes = init_data->ir_codes; in ir_probe()
360 rc = init_data->rc_dev; in ir_probe()
362 name = init_data->name; in ir_probe()
363 if (init_data->type) in ir_probe()
364 rc_type = init_data->type; in ir_probe()
366 if (init_data->polling_interval) in ir_probe()
367 ir->polling_interval = init_data->polling_interval; in ir_probe()
369 switch (init_data->internal_get_key_func) { in ir_probe()
372 ir->get_key = init_data->get_key; in ir_probe()
/drivers/input/touchscreen/
Dtps6507x-ts.c239 struct touchscreen_init_data *init_data; in tps6507x_ts_probe() local
262 init_data = tps_board->tps6507x_ts_init_data; in tps6507x_ts_probe()
304 if (init_data) { in tps6507x_ts_probe()
305 tsc->poll_period = init_data->poll_period; in tps6507x_ts_probe()
306 tsc->vref = init_data->vref; in tps6507x_ts_probe()
307 tsc->min_pressure = init_data->min_pressure; in tps6507x_ts_probe()
308 input_dev->id.vendor = init_data->vendor; in tps6507x_ts_probe()
309 input_dev->id.product = init_data->product; in tps6507x_ts_probe()
310 input_dev->id.version = init_data->version; in tps6507x_ts_probe()
/drivers/media/usb/pvrusb2/
Dpvrusb2-i2c-core.c572 struct IR_i2c_init_data *init_data = &hdw->ir_init_data; in pvr2_i2c_register_ir() local
582 init_data->ir_codes = RC_MAP_HAUPPAUGE; in pvr2_i2c_register_ir()
583 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP; in pvr2_i2c_register_ir()
584 init_data->type = RC_BIT_RC5; in pvr2_i2c_register_ir()
585 init_data->name = hdw->hdw_desc->description; in pvr2_i2c_register_ir()
586 init_data->polling_interval = 100; /* ms From ir-kbd-i2c */ in pvr2_i2c_register_ir()
589 info.platform_data = init_data; in pvr2_i2c_register_ir()
597 init_data->ir_codes = RC_MAP_HAUPPAUGE; in pvr2_i2c_register_ir()
598 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; in pvr2_i2c_register_ir()
599 init_data->type = RC_BIT_RC5; in pvr2_i2c_register_ir()
[all …]
/drivers/media/pci/cx88/
Dcx88-input.c594 core->init_data.name = "cx88 Leadtek PVR 2000 remote"; in cx88_i2c_init_ir()
595 core->init_data.type = RC_BIT_UNKNOWN; in cx88_i2c_init_ir()
596 core->init_data.get_key = get_key_pvr2000; in cx88_i2c_init_ir()
597 core->init_data.ir_codes = RC_MAP_EMPTY; in cx88_i2c_init_ir()
610 memset(&core->init_data, 0, sizeof(core->init_data)); in cx88_i2c_init_ir()
614 core->init_data.name = "cx88 Hauppauge XVR remote"; in cx88_i2c_init_ir()
615 core->init_data.ir_codes = RC_MAP_HAUPPAUGE; in cx88_i2c_init_ir()
616 core->init_data.type = RC_BIT_RC5; in cx88_i2c_init_ir()
617 core->init_data.internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; in cx88_i2c_init_ir()
619 info.platform_data = &core->init_data; in cx88_i2c_init_ir()
/drivers/media/pci/cx18/
Dcx18-i2c.c90 struct IR_i2c_init_data *init_data = &cx->ir_i2c_init_data; in cx18_i2c_new_ir() local
99 init_data->ir_codes = RC_MAP_HAUPPAUGE; in cx18_i2c_new_ir()
100 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; in cx18_i2c_new_ir()
101 init_data->type = RC_BIT_RC5; in cx18_i2c_new_ir()
102 init_data->name = cx->card_name; in cx18_i2c_new_ir()
103 info.platform_data = init_data; in cx18_i2c_new_ir()
/drivers/power/
Dbq2415x_charger.c170 struct bq2415x_platform_data init_data; member
633 if (bq->init_data.resistor_sense <= 0) in bq2415x_set_charge_current()
636 val = (mA * bq->init_data.resistor_sense - 37400) / 6800; in bq2415x_set_charge_current()
652 if (bq->init_data.resistor_sense <= 0) in bq2415x_get_charge_current()
659 return (37400 + 6800*ret) / bq->init_data.resistor_sense; in bq2415x_get_charge_current()
667 if (bq->init_data.resistor_sense <= 0) in bq2415x_set_termination_current()
670 val = (mA * bq->init_data.resistor_sense - 3400) / 3400; in bq2415x_set_termination_current()
686 if (bq->init_data.resistor_sense <= 0) in bq2415x_get_termination_current()
693 return (3400 + 3400*ret) / bq->init_data.resistor_sense; in bq2415x_get_termination_current()
700 if (bq->init_data.prop != -1) \
[all …]

12345