Home
last modified time | relevance | path

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

123456

/drivers/net/ethernet/qlogic/qed/
Dqed_sp_commands.c307 struct qed_sp_init_data init_data; in qed_sp_pf_start() local
315 memset(&init_data, 0, sizeof(init_data)); in qed_sp_pf_start()
316 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_pf_start()
317 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_start()
318 init_data.comp_mode = QED_SPQ_MODE_EBLOCK; in qed_sp_pf_start()
322 PROTOCOLID_COMMON, &init_data); in qed_sp_pf_start()
404 struct qed_sp_init_data init_data; in qed_sp_pf_update() local
408 memset(&init_data, 0, sizeof(init_data)); in qed_sp_pf_update()
409 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_pf_update()
410 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update()
[all …]
Dqed_l2.c49 struct qed_sp_init_data init_data; in qed_sp_eth_vport_start() local
58 memset(&init_data, 0, sizeof(init_data)); in qed_sp_eth_vport_start()
59 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_eth_vport_start()
60 init_data.opaque_fid = p_params->opaque_fid; in qed_sp_eth_vport_start()
61 init_data.comp_mode = QED_SPQ_MODE_EBLOCK; in qed_sp_eth_vport_start()
65 PROTOCOLID_ETH, &init_data); in qed_sp_eth_vport_start()
329 struct qed_sp_init_data init_data; in qed_sp_vport_update() local
344 memset(&init_data, 0, sizeof(init_data)); in qed_sp_vport_update()
345 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_vport_update()
346 init_data.opaque_fid = p_params->opaque_fid; in qed_sp_vport_update()
[all …]
Dqed_roce.c472 struct qed_sp_init_data init_data; in qed_rdma_start_fw() local
483 memset(&init_data, 0, sizeof(init_data)); in qed_rdma_start_fw()
484 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_start_fw()
485 init_data.comp_mode = QED_SPQ_MODE_EBLOCK; in qed_rdma_start_fw()
488 p_hwfn->p_rdma_info->proto, &init_data); in qed_rdma_start_fw()
596 struct qed_sp_init_data init_data; in qed_rdma_stop() local
624 memset(&init_data, 0, sizeof(init_data)); in qed_rdma_stop()
625 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_stop()
626 init_data.comp_mode = QED_SPQ_MODE_EBLOCK; in qed_rdma_stop()
630 p_hwfn->p_rdma_info->proto, &init_data); in qed_rdma_stop()
[all …]
/drivers/media/usb/cx231xx/
Dcx231xx-input.c74 memset(&dev->init_data, 0, sizeof(dev->init_data)); in cx231xx_ir_init()
75 dev->init_data.rc_dev = rc_allocate_device(); in cx231xx_ir_init()
76 if (!dev->init_data.rc_dev) in cx231xx_ir_init()
79 dev->init_data.name = cx231xx_boards[dev->model].name; in cx231xx_ir_init()
82 info.platform_data = &dev->init_data; in cx231xx_ir_init()
90 dev->init_data.get_key = get_key_isdbt; in cx231xx_ir_init()
91 dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name; in cx231xx_ir_init()
93 dev->init_data.rc_dev->scancode_mask = 0xff; in cx231xx_ir_init()
94 dev->init_data.rc_dev->driver_name = "cx231xx"; in cx231xx_ir_init()
95 dev->init_data.type = RC_BIT_NEC; in cx231xx_ir_init()
/drivers/regulator/
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, desc); 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()
174 cfg.init_data = config->init_data; in reg_fixed_voltage_probe()
Darizona-ldo1.c37 struct regulator_init_data init_data; member
195 struct regulator_init_data *init_data; in arizona_ldo1_of_get_pdata() local
213 init_data = of_get_regulator_init_data(arizona->dev, init_node, in arizona_ldo1_of_get_pdata()
216 if (init_data) { in arizona_ldo1_of_get_pdata()
217 init_data->consumer_supplies = &ldo1->supply; in arizona_ldo1_of_get_pdata()
218 init_data->num_consumer_supplies = 1; in arizona_ldo1_of_get_pdata()
223 pdata->ldo1 = init_data; in arizona_ldo1_of_get_pdata()
261 ldo1->init_data = arizona_ldo1_dvfs; in arizona_ldo1_probe()
266 ldo1->init_data = arizona_ldo1_wm5110; in arizona_ldo1_probe()
270 ldo1->init_data = arizona_ldo1_default; in arizona_ldo1_probe()
[all …]
Dof_regulator.c28 struct regulator_init_data **init_data, in of_get_regulation_constraints() argument
31 struct regulation_constraints *constraints = &(*init_data)->constraints; in of_get_regulation_constraints()
189 struct regulator_init_data *init_data; in of_get_regulator_init_data() local
194 init_data = devm_kzalloc(dev, sizeof(*init_data), GFP_KERNEL); in of_get_regulator_init_data()
195 if (!init_data) in of_get_regulator_init_data()
198 of_get_regulation_constraints(node, &init_data, desc); in of_get_regulator_init_data()
199 return init_data; in of_get_regulator_init_data()
261 match->init_data = NULL; in of_regulator_match()
278 match->init_data = in of_regulator_match()
281 if (!match->init_data) { in of_regulator_match()
[all …]
Darizona-micsupp.c38 struct regulator_init_data init_data; member
207 struct regulator_init_data *init_data; in arizona_micsupp_of_get_pdata() local
214 init_data = of_get_regulator_init_data(arizona->dev, np, desc); in arizona_micsupp_of_get_pdata()
216 if (init_data) { in arizona_micsupp_of_get_pdata()
217 init_data->consumer_supplies = &micsupp->supply; in arizona_micsupp_of_get_pdata()
218 init_data->num_consumer_supplies = 1; in arizona_micsupp_of_get_pdata()
220 pdata->micvdd = init_data; in arizona_micsupp_of_get_pdata()
251 micsupp->init_data = arizona_micsupp_ext_default; in arizona_micsupp_probe()
255 micsupp->init_data = arizona_micsupp_default; in arizona_micsupp_probe()
259 micsupp->init_data.consumer_supplies = &micsupp->supply; in arizona_micsupp_probe()
[all …]
Dvexpress-regulator.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()
79 if (!init_data) in vexpress_regulator_probe()
82 init_data->constraints.apply_uV = 0; in vexpress_regulator_probe()
83 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
89 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()
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()
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()
/drivers/media/pci/saa7134/
Dsaa7134-input.c936 memset(&dev->init_data, 0, sizeof(dev->init_data)); in saa7134_probe_i2c_ir()
942 dev->init_data.name = "Pinnacle PCTV"; in saa7134_probe_i2c_ir()
944 dev->init_data.get_key = get_key_pinnacle_color; in saa7134_probe_i2c_ir()
945 dev->init_data.ir_codes = RC_MAP_PINNACLE_COLOR; in saa7134_probe_i2c_ir()
948 dev->init_data.get_key = get_key_pinnacle_grey; in saa7134_probe_i2c_ir()
949 dev->init_data.ir_codes = RC_MAP_PINNACLE_GREY; in saa7134_probe_i2c_ir()
954 dev->init_data.name = "Purple TV"; in saa7134_probe_i2c_ir()
955 dev->init_data.get_key = get_key_purpletv; in saa7134_probe_i2c_ir()
956 dev->init_data.ir_codes = RC_MAP_PURPLETV; in saa7134_probe_i2c_ir()
960 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.c438 struct qdio_initialize *init_data) in setup_qib() argument
443 irq_ptr->qib.rflags |= init_data->qib_rflags; in setup_qib()
445 irq_ptr->qib.qfmt = init_data->q_format; in setup_qib()
446 if (init_data->no_input_qs) in setup_qib()
449 if (init_data->no_output_qs) in setup_qib()
452 memcpy(irq_ptr->qib.ebcnam, init_data->adapter_name, 8); in setup_qib()
455 int qdio_setup_irq(struct qdio_initialize *init_data) in qdio_setup_irq() argument
458 struct qdio_irq *irq_ptr = init_data->cdev->private->qdio_data; in qdio_setup_irq()
473 irq_ptr->int_parm = init_data->int_parm; in qdio_setup_irq()
474 irq_ptr->nr_input_qs = init_data->no_input_qs; in qdio_setup_irq()
[all …]
/drivers/clk/bcm/
Dclk-kona-setup.c92 name = bcm_clk->init_data.name; in peri_clk_data_offsets_valid()
423 name = bcm_clk->init_data.name; in peri_clk_data_valid()
615 struct clk_init_data *init_data) in clk_sel_setup() argument
640 __func__, init_data->name, ret); in clk_sel_setup()
645 init_data->parent_names = parent_names; in clk_sel_setup()
646 init_data->num_parents = parent_count; in clk_sel_setup()
655 struct clk_init_data *init_data) in clk_sel_teardown() argument
661 init_data->num_parents = 0; in clk_sel_teardown()
662 kfree(init_data->parent_names); in clk_sel_teardown()
663 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 | RC_BIT_RC6_MCE | RC_BIT_RC6_6A_32; 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/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/power/supply/
Dbq24257_charger.c105 struct bq24257_init_data init_data; member
376 val->intval = bq24257_ichg_map[bq->init_data.ichg]; in bq24257_power_supply_get_property()
384 val->intval = bq24257_vbat_map[bq->init_data.vbat]; in bq24257_power_supply_get_property()
392 val->intval = bq24257_iterm_map[bq->init_data.iterm]; in bq24257_power_supply_get_property()
636 ret = bq24257_field_write(bq, F_IILIMIT, bq->init_data.iilimit); in bq24257_handle_state_change()
694 } init_data[] = { in bq24257_hw_init() local
695 {F_ICHG, bq->init_data.ichg}, in bq24257_hw_init()
696 {F_VBAT, bq->init_data.vbat}, in bq24257_hw_init()
697 {F_ITERM, bq->init_data.iterm}, in bq24257_hw_init()
698 {F_VOVP, bq->init_data.vovp}, in bq24257_hw_init()
[all …]
Dbq25890_charger.c103 struct bq25890_init_data init_data; member
453 val->intval = bq25890_find_val(bq->init_data.iterm, TBL_ITERM); in bq25890_power_supply_get_property()
597 } init_data[] = { in bq25890_hw_init() local
598 {F_ICHG, bq->init_data.ichg}, in bq25890_hw_init()
599 {F_VREG, bq->init_data.vreg}, in bq25890_hw_init()
600 {F_ITERM, bq->init_data.iterm}, in bq25890_hw_init()
601 {F_IPRECHG, bq->init_data.iprechg}, in bq25890_hw_init()
602 {F_SYSVMIN, bq->init_data.sysvmin}, in bq25890_hw_init()
603 {F_BOOSTV, bq->init_data.boostv}, in bq25890_hw_init()
604 {F_BOOSTI, bq->init_data.boosti}, in bq25890_hw_init()
[all …]
/drivers/clk/qcom/
Dcommon.c105 struct clk_init_data init_data = { }; in _qcom_cc_register_board_clk() local
119 fixed->hw.init = &init_data; in _qcom_cc_register_board_clk()
121 init_data.name = path; in _qcom_cc_register_board_clk()
122 init_data.ops = &clk_fixed_rate_ops; in _qcom_cc_register_board_clk()
136 factor->hw.init = &init_data; in _qcom_cc_register_board_clk()
138 init_data.name = name; in _qcom_cc_register_board_clk()
139 init_data.parent_names = &path; in _qcom_cc_register_board_clk()
140 init_data.num_parents = 1; in _qcom_cc_register_board_clk()
141 init_data.flags = 0; in _qcom_cc_register_board_clk()
142 init_data.ops = &clk_fixed_factor_ops; in _qcom_cc_register_board_clk()
/drivers/clk/microchip/
Dclk-core.h28 struct clk_init_data init_data; member
36 struct clk_init_data init_data; member
45 struct clk_init_data init_data; member
52 struct clk_init_data init_data; member
58 struct clk_init_data init_data; member
/drivers/input/touchscreen/
Dtps6507x-ts.c206 const struct touchscreen_init_data *init_data; in tps6507x_ts_probe() local
227 init_data = tps_board->tps6507x_ts_init_data; in tps6507x_ts_probe()
237 tsc->min_pressure = init_data ? in tps6507x_ts_probe()
238 init_data->min_pressure : TPS_DEFAULT_MIN_PRESSURE; in tps6507x_ts_probe()
254 poll_dev->poll_interval = init_data ? in tps6507x_ts_probe()
255 init_data->poll_period : TSC_DEFAULT_POLL_PERIOD; in tps6507x_ts_probe()
269 if (init_data) { in tps6507x_ts_probe()
270 input_dev->id.vendor = init_data->vendor; in tps6507x_ts_probe()
271 input_dev->id.product = init_data->product; in tps6507x_ts_probe()
272 input_dev->id.version = init_data->version; in tps6507x_ts_probe()
/drivers/media/i2c/
Dir-kbd-i2c.c387 const struct IR_i2c_init_data *init_data = in ir_probe() local
390 ir_codes = init_data->ir_codes; in ir_probe()
391 rc = init_data->rc_dev; in ir_probe()
393 name = init_data->name; in ir_probe()
394 if (init_data->type) in ir_probe()
395 rc_type = init_data->type; in ir_probe()
397 if (init_data->polling_interval) in ir_probe()
398 ir->polling_interval = init_data->polling_interval; in ir_probe()
400 switch (init_data->internal_get_key_func) { in ir_probe()
403 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 | RC_BIT_RC6_MCE | in pvr2_i2c_register_ir()
[all …]

123456