Home
last modified time | relevance | path

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

123456

/drivers/media/usb/cx231xx/
Dcx231xx-input.c75 memset(&dev->init_data, 0, sizeof(dev->init_data)); in cx231xx_ir_init()
76 dev->init_data.rc_dev = rc_allocate_device(); in cx231xx_ir_init()
77 if (!dev->init_data.rc_dev) in cx231xx_ir_init()
80 dev->init_data.name = cx231xx_boards[dev->model].name; in cx231xx_ir_init()
83 info.platform_data = &dev->init_data; in cx231xx_ir_init()
91 dev->init_data.get_key = get_key_isdbt; in cx231xx_ir_init()
92 dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name; in cx231xx_ir_init()
94 dev->init_data.rc_dev->scancode_mask = 0xff; in cx231xx_ir_init()
95 dev->init_data.rc_dev->driver_name = "cx231xx"; in cx231xx_ir_init()
96 dev->init_data.type = RC_BIT_NEC; in cx231xx_ir_init()
/drivers/regulator/
Dof_regulator.c23 struct regulator_init_data **init_data) in of_get_regulation_constraints() argument
26 struct regulation_constraints *constraints = &(*init_data)->constraints; in of_get_regulation_constraints()
89 struct regulator_init_data *init_data; in of_get_regulator_init_data() local
94 init_data = devm_kzalloc(dev, sizeof(*init_data), GFP_KERNEL); in of_get_regulator_init_data()
95 if (!init_data) in of_get_regulator_init_data()
98 of_get_regulation_constraints(node, &init_data); in of_get_regulator_init_data()
99 return init_data; in of_get_regulator_init_data()
161 match->init_data = NULL; in of_regulator_match()
178 match->init_data = in of_regulator_match()
180 if (!match->init_data) { in of_regulator_match()
[all …]
Dsky81452-regulator.c70 struct regulator_init_data *init_data; in sky81452_reg_parse_dt() local
79 init_data = of_get_regulator_init_data(dev, np); in sky81452_reg_parse_dt()
82 return init_data; in sky81452_reg_parse_dt()
94 const struct regulator_init_data *init_data = dev_get_platdata(dev); in sky81452_reg_probe() local
98 if (!init_data) { in sky81452_reg_probe()
99 init_data = sky81452_reg_parse_dt(dev); in sky81452_reg_probe()
100 if (IS_ERR(init_data)) in sky81452_reg_probe()
101 return PTR_ERR(init_data); in sky81452_reg_probe()
105 config.init_data = init_data; in sky81452_reg_probe()
Dfixed.c53 struct regulator_init_data *init_data; in of_get_fixed_voltage_config() local
60 config->init_data = of_get_regulator_init_data(dev, dev->of_node); in of_get_fixed_voltage_config()
61 if (!config->init_data) in of_get_fixed_voltage_config()
64 init_data = config->init_data; in of_get_fixed_voltage_config()
65 init_data->constraints.apply_uV = 0; in of_get_fixed_voltage_config()
67 config->supply_name = init_data->constraints.name; in of_get_fixed_voltage_config()
68 if (init_data->constraints.min_uV == init_data->constraints.max_uV) { in of_get_fixed_voltage_config()
69 config->microvolts = init_data->constraints.min_uV; in of_get_fixed_voltage_config()
76 if (init_data->constraints.boot_on) in of_get_fixed_voltage_config()
178 cfg.init_data = config->init_data; in reg_fixed_voltage_probe()
Darizona-ldo1.c36 struct regulator_init_data init_data; member
187 struct regulator_init_data *init_data; in arizona_ldo1_of_get_pdata() local
197 init_data = of_get_regulator_init_data(arizona->dev, init_node); in arizona_ldo1_of_get_pdata()
199 if (init_data) { in arizona_ldo1_of_get_pdata()
200 init_data->consumer_supplies = &ldo1->supply; in arizona_ldo1_of_get_pdata()
201 init_data->num_consumer_supplies = 1; in arizona_ldo1_of_get_pdata()
206 pdata->ldo1 = init_data; in arizona_ldo1_of_get_pdata()
242 ldo1->init_data = arizona_ldo1_dvfs; in arizona_ldo1_probe()
246 ldo1->init_data = arizona_ldo1_default; in arizona_ldo1_probe()
250 ldo1->init_data.consumer_supplies = &ldo1->supply; in arizona_ldo1_probe()
[all …]
Darizona-micsupp.c38 struct regulator_init_data init_data; member
206 struct regulator_init_data *init_data; in arizona_micsupp_of_get_pdata() local
213 init_data = of_get_regulator_init_data(arizona->dev, np); in arizona_micsupp_of_get_pdata()
215 if (init_data) { in arizona_micsupp_of_get_pdata()
216 init_data->consumer_supplies = &micsupp->supply; in arizona_micsupp_of_get_pdata()
217 init_data->num_consumer_supplies = 1; in arizona_micsupp_of_get_pdata()
219 pdata->micvdd = init_data; in arizona_micsupp_of_get_pdata()
249 micsupp->init_data = arizona_micsupp_ext_default; in arizona_micsupp_probe()
253 micsupp->init_data = arizona_micsupp_default; in arizona_micsupp_probe()
257 micsupp->init_data.consumer_supplies = &micsupp->supply; in arizona_micsupp_probe()
[all …]
Dvexpress.c61 struct regulator_init_data *init_data; in vexpress_regulator_probe() local
77 init_data = of_get_regulator_init_data(&pdev->dev, pdev->dev.of_node); in vexpress_regulator_probe()
78 if (!init_data) in vexpress_regulator_probe()
81 init_data->constraints.apply_uV = 0; in vexpress_regulator_probe()
82 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
88 config.init_data = init_data; in vexpress_regulator_probe()
Dwm8994-regulator.c33 struct regulator_init_data init_data; member
147 config.init_data = &ldo->init_data; in wm8994_ldo_probe()
154 if (!pdata || !pdata->ldo[id].init_data || wm8994->dev->of_node) { in wm8994_ldo_probe()
158 ldo->init_data = wm8994_ldo_default[id]; in wm8994_ldo_probe()
159 ldo->init_data.consumer_supplies = &ldo->supply; in wm8994_ldo_probe()
161 ldo->init_data.constraints.valid_ops_mask = 0; in wm8994_ldo_probe()
163 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()
Dtps6507x-regulator.c413 if (!matches[idx].init_data || !matches[idx].of_node) in tps6507x_parse_dt_reg_data()
416 memcpy(&reg_data[idx], matches[idx].init_data, in tps6507x_parse_dt_reg_data()
429 struct regulator_init_data *init_data; in tps6507x_pmic_probe() local
455 init_data = tps_board->tps6507x_pmic_init_data; in tps6507x_pmic_probe()
456 if (!init_data) in tps6507x_pmic_probe()
468 for (i = 0; i < TPS6507X_NUM_REGULATOR; i++, info++, init_data++) { in tps6507x_pmic_probe()
471 if (init_data->driver_data) { in tps6507x_pmic_probe()
473 init_data->driver_data; in tps6507x_pmic_probe()
486 config.init_data = init_data; in tps6507x_pmic_probe()
D88pm800.c285 struct regulator_init_data *init_data; in pm800_regulator_probe() local
322 init_data = pm800_regulator_matches[i].init_data; in pm800_regulator_probe()
324 init_data = pdata->regulators[i]; in pm800_regulator_probe()
325 if (!init_data) in pm800_regulator_probe()
329 config.init_data = init_data; in pm800_regulator_probe()
Disl6271a-regulator.c113 struct regulator_init_data *init_data = dev_get_platdata(&i2c->dev); in isl6271a_probe() local
131 config.init_data = init_data; in isl6271a_probe()
133 config.init_data = NULL; in isl6271a_probe()
/drivers/media/pci/saa7134/
Dsaa7134-input.c924 memset(&dev->init_data, 0, sizeof(dev->init_data)); in saa7134_probe_i2c_ir()
930 dev->init_data.name = "Pinnacle PCTV"; in saa7134_probe_i2c_ir()
932 dev->init_data.get_key = get_key_pinnacle_color; in saa7134_probe_i2c_ir()
933 dev->init_data.ir_codes = RC_MAP_PINNACLE_COLOR; in saa7134_probe_i2c_ir()
936 dev->init_data.get_key = get_key_pinnacle_grey; in saa7134_probe_i2c_ir()
937 dev->init_data.ir_codes = RC_MAP_PINNACLE_GREY; in saa7134_probe_i2c_ir()
942 dev->init_data.name = "Purple TV"; in saa7134_probe_i2c_ir()
943 dev->init_data.get_key = get_key_purpletv; in saa7134_probe_i2c_ir()
944 dev->init_data.ir_codes = RC_MAP_PURPLETV; in saa7134_probe_i2c_ir()
948 dev->init_data.name = "MSI TV@nywhere Plus"; in saa7134_probe_i2c_ir()
[all …]
/drivers/s390/cio/
Dqdio_debug.c60 int qdio_allocate_dbf(struct qdio_initialize *init_data, in qdio_allocate_dbf() argument
66 DBF_EVENT("qfmt:%1d", init_data->q_format); in qdio_allocate_dbf()
67 DBF_HEX(init_data->adapter_name, 8); in qdio_allocate_dbf()
68 DBF_EVENT("qpff%4x", init_data->qib_param_field_format); in qdio_allocate_dbf()
69 DBF_HEX(&init_data->qib_param_field, sizeof(void *)); in qdio_allocate_dbf()
70 DBF_HEX(&init_data->input_slib_elements, sizeof(void *)); in qdio_allocate_dbf()
71 DBF_HEX(&init_data->output_slib_elements, sizeof(void *)); in qdio_allocate_dbf()
72 DBF_EVENT("niq:%1d noq:%1d", init_data->no_input_qs, in qdio_allocate_dbf()
73 init_data->no_output_qs); in qdio_allocate_dbf()
74 DBF_HEX(&init_data->input_handler, sizeof(void *)); in qdio_allocate_dbf()
[all …]
Dqdio_setup.c441 struct qdio_initialize *init_data) in setup_qib() argument
446 irq_ptr->qib.rflags |= init_data->qib_rflags; in setup_qib()
448 irq_ptr->qib.qfmt = init_data->q_format; in setup_qib()
449 if (init_data->no_input_qs) in setup_qib()
452 if (init_data->no_output_qs) in setup_qib()
455 memcpy(irq_ptr->qib.ebcnam, init_data->adapter_name, 8); in setup_qib()
458 int qdio_setup_irq(struct qdio_initialize *init_data) in qdio_setup_irq() argument
461 struct qdio_irq *irq_ptr = init_data->cdev->private->qdio_data; in qdio_setup_irq()
476 irq_ptr->int_parm = init_data->int_parm; in qdio_setup_irq()
477 irq_ptr->nr_input_qs = init_data->no_input_qs; in qdio_setup_irq()
[all …]
/drivers/clk/bcm/
Dclk-kona-setup.c94 name = bcm_clk->init_data.name; in peri_clk_data_offsets_valid()
425 name = bcm_clk->init_data.name; in peri_clk_data_valid()
616 struct clk_init_data *init_data) in clk_sel_setup() argument
641 __func__, init_data->name, ret); in clk_sel_setup()
646 init_data->parent_names = parent_names; in clk_sel_setup()
647 init_data->num_parents = parent_count; in clk_sel_setup()
656 struct clk_init_data *init_data) in clk_sel_teardown() argument
662 init_data->num_parents = 0; in clk_sel_teardown()
663 kfree(init_data->parent_names); in clk_sel_teardown()
664 init_data->parent_names = NULL; in clk_sel_teardown()
[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.c126 struct tps65912_platform_data *init_data; in tps65912_device_init() local
129 init_data = kzalloc(sizeof(struct tps65912_platform_data), GFP_KERNEL); in tps65912_device_init()
130 if (init_data == NULL) in tps65912_device_init()
152 init_data->irq = pmic_plat_data->irq; in tps65912_device_init()
153 init_data->irq_base = pmic_plat_data->irq_base; in tps65912_device_init()
154 ret = tps65912_irq_init(tps65912, init_data->irq, init_data); in tps65912_device_init()
158 kfree(init_data); in tps65912_device_init()
162 kfree(init_data); in tps65912_device_init()
Dtps65910.c461 struct tps65910_platform_data *init_data; in tps65910_i2c_probe() local
475 init_data = devm_kzalloc(&i2c->dev, sizeof(*init_data), GFP_KERNEL); in tps65910_i2c_probe()
476 if (init_data == NULL) in tps65910_i2c_probe()
501 init_data->irq = pmic_plat_data->irq; in tps65910_i2c_probe()
502 init_data->irq_base = pmic_plat_data->irq_base; in tps65910_i2c_probe()
504 tps65910_irq_init(tps65910, init_data->irq, init_data); in tps65910_i2c_probe()
/drivers/media/pci/ivtv/
Divtv-i2c.c181 struct IR_i2c_init_data *init_data = &itv->ir_i2c_init_data; in ivtv_i2c_new_ir() local
201 init_data->ir_codes = RC_MAP_AVERMEDIA_CARDBUS; in ivtv_i2c_new_ir()
202 init_data->internal_get_key_func = in ivtv_i2c_new_ir()
204 init_data->type = RC_BIT_OTHER; in ivtv_i2c_new_ir()
205 init_data->name = "AVerMedia AVerTV card"; in ivtv_i2c_new_ir()
209 init_data->ir_codes = RC_MAP_HAUPPAUGE; in ivtv_i2c_new_ir()
210 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP; in ivtv_i2c_new_ir()
211 init_data->type = RC_BIT_RC5; in ivtv_i2c_new_ir()
212 init_data->name = itv->card_name; in ivtv_i2c_new_ir()
216 init_data->ir_codes = RC_MAP_HAUPPAUGE; in ivtv_i2c_new_ir()
[all …]
/drivers/input/touchscreen/
Dtps6507x-ts.c213 const struct touchscreen_init_data *init_data; in tps6507x_ts_probe() local
234 init_data = tps_board->tps6507x_ts_init_data; in tps6507x_ts_probe()
244 tsc->min_pressure = init_data ? in tps6507x_ts_probe()
245 init_data->min_pressure : TPS_DEFAULT_MIN_PRESSURE; in tps6507x_ts_probe()
261 poll_dev->poll_interval = init_data ? in tps6507x_ts_probe()
262 init_data->poll_period : TSC_DEFAULT_POLL_PERIOD; in tps6507x_ts_probe()
276 if (init_data) { in tps6507x_ts_probe()
277 input_dev->id.vendor = init_data->vendor; in tps6507x_ts_probe()
278 input_dev->id.product = init_data->product; in tps6507x_ts_probe()
279 input_dev->id.version = init_data->version; in tps6507x_ts_probe()
/drivers/media/i2c/
Dir-kbd-i2c.c357 const struct IR_i2c_init_data *init_data = in ir_probe() local
360 ir_codes = init_data->ir_codes; in ir_probe()
361 rc = init_data->rc_dev; in ir_probe()
363 name = init_data->name; in ir_probe()
364 if (init_data->type) in ir_probe()
365 rc_type = init_data->type; in ir_probe()
367 if (init_data->polling_interval) in ir_probe()
368 ir->polling_interval = init_data->polling_interval; in ir_probe()
370 switch (init_data->internal_get_key_func) { in ir_probe()
373 ir->get_key = init_data->get_key; in ir_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.c612 core->init_data.name = "cx88 Leadtek PVR 2000 remote"; in cx88_i2c_init_ir()
613 core->init_data.type = RC_BIT_UNKNOWN; in cx88_i2c_init_ir()
614 core->init_data.get_key = get_key_pvr2000; in cx88_i2c_init_ir()
615 core->init_data.ir_codes = RC_MAP_EMPTY; in cx88_i2c_init_ir()
628 memset(&core->init_data, 0, sizeof(core->init_data)); in cx88_i2c_init_ir()
632 core->init_data.name = "cx88 Hauppauge XVR remote"; in cx88_i2c_init_ir()
633 core->init_data.ir_codes = RC_MAP_HAUPPAUGE; in cx88_i2c_init_ir()
634 core->init_data.type = RC_BIT_RC5; in cx88_i2c_init_ir()
635 core->init_data.internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; in cx88_i2c_init_ir()
637 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()

123456