| /drivers/leds/ |
| A D | leds-gpio.c | 106 if (!template->retain_state_suspended) in create_gpio_led() 108 if (template->panic_indicator) in create_gpio_led() 110 if (template->retain_state_shutdown) in create_gpio_led() 117 if (template->name) { in create_gpio_led() 118 led_dat->cdev.name = template->name; in create_gpio_led() 238 if (!gpio_is_valid(template->gpio)) in gpio_led_get_gpiod() 242 template->name); in gpio_led_get_gpiod() 246 gpiod = gpio_to_desc(template->gpio); in gpio_led_get_gpiod() 273 if (template->gpiod) in gpio_led_probe() 274 led_dat->gpiod = template->gpiod; in gpio_led_probe() [all …]
|
| A D | leds-netxbig.c | 279 const struct netxbig_led *template) in create_netxbig_led() argument 283 led_dat->cdev.name = template->name; in create_netxbig_led() 284 led_dat->cdev.default_trigger = template->default_trigger; in create_netxbig_led() 299 led_dat->cdev.max_brightness = template->bright_max; in create_netxbig_led() 301 led_dat->mode_addr = template->mode_addr; in create_netxbig_led() 302 led_dat->mode_val = template->mode_val; in create_netxbig_led() 303 led_dat->bright_addr = template->bright_addr; in create_netxbig_led()
|
| /drivers/hid/ |
| A D | hid-uclogic-rdesc-test.c | 16 const __u8 *template; member 103 .template = template_empty, 111 .template = template_small, 119 .template = template_no_ph, 127 .template = template_pen_ph_end, 135 .template = template_btn_ph_end, 143 .template = template_pen_all_params, 151 .template = template_frame_all_params, 159 .template = template_pen_some_params, 167 .template = template_pen_some_params, [all …]
|
| A D | hid-logitech-dj.c | 1210 static const u8 template[] = { in logi_dj_recv_query_hidpp_devices() local 1221 hidpp_report = kmemdup(template, sizeof(template), GFP_KERNEL); in logi_dj_recv_query_hidpp_devices() 1227 hidpp_report, sizeof(template), in logi_dj_recv_query_hidpp_devices()
|
| /drivers/net/ethernet/marvell/prestera/ |
| A D | prestera_flower.c | 19 prestera_acl_ruleset_put(template->ruleset); in prestera_flower_template_free() 20 list_del(&template->list); in prestera_flower_template_free() 21 kfree(template); in prestera_flower_template_free() 26 struct prestera_flower_template *template, *tmp; in prestera_flower_template_cleanup() local 30 prestera_flower_template_free(template); in prestera_flower_template_cleanup() 488 struct prestera_flower_template *template; in prestera_flower_tmplt_create() local 498 template = kmalloc(sizeof(*template), GFP_KERNEL); in prestera_flower_tmplt_create() 499 if (!template) { in prestera_flower_tmplt_create() 526 template->ruleset = ruleset; in prestera_flower_tmplt_create() 534 kfree(template); in prestera_flower_tmplt_create() [all …]
|
| /drivers/bus/ |
| A D | vexpress-config.c | 57 u32 template[] __counted_by(num_templates); /* Keep it last! */ 173 command = func->template[index]; in vexpress_syscfg_exec() 287 func = kzalloc(struct_size(func, template, num), GFP_KERNEL); in vexpress_syscfg_regmap_init() 304 func->template[i] = SYS_CFGCTRL_DCC(dcc); in vexpress_syscfg_regmap_init() 305 func->template[i] |= SYS_CFGCTRL_SITE(site); in vexpress_syscfg_regmap_init() 306 func->template[i] |= SYS_CFGCTRL_POSITION(position); in vexpress_syscfg_regmap_init() 307 func->template[i] |= SYS_CFGCTRL_FUNC(function); in vexpress_syscfg_regmap_init() 308 func->template[i] |= SYS_CFGCTRL_DEVICE(device); in vexpress_syscfg_regmap_init()
|
| /drivers/char/tpm/ |
| A D | tpm2-sessions.c | 1248 struct tpm_buf template; in tpm2_create_primary() local 1254 rc = tpm_buf_init_sized(&template); in tpm2_create_primary() 1270 tpm_buf_append_u16(&template, TPM_ALG_ECC); in tpm2_create_primary() 1279 tpm_buf_append_u16(&template, 0); in tpm2_create_primary() 1284 tpm_buf_append_u16(&template, TPM_ALG_AES); in tpm2_create_primary() 1287 tpm_buf_append_u16(&template, AES_KEY_BITS); in tpm2_create_primary() 1290 tpm_buf_append_u16(&template, TPM_ALG_CFB); in tpm2_create_primary() 1302 tpm_buf_append_u16(&template, 0); in tpm2_create_primary() 1303 tpm_buf_append_u16(&template, 0); in tpm2_create_primary() 1321 tpm_buf_append(&buf, template.data, template.length); in tpm2_create_primary() [all …]
|
| /drivers/regulator/ |
| A D | twl-regulator.c | 581 const struct twlreg_info *template; in twlreg_probe() local 587 template = of_device_get_match_data(&pdev->dev); in twlreg_probe() 588 if (!template) in twlreg_probe() 591 id = template->desc.id; in twlreg_probe() 593 &template->desc); in twlreg_probe() 597 info = devm_kmemdup(&pdev->dev, template, sizeof(*info), GFP_KERNEL); in twlreg_probe()
|
| A D | twl6030-regulator.c | 681 const struct twlreg_info *template; in twlreg_probe() local 688 template = of_device_get_match_data(&pdev->dev); in twlreg_probe() 689 if (!template) in twlreg_probe() 692 id = template->desc.id; in twlreg_probe() 693 initdata = of_get_regulator_init_data(&pdev->dev, np, &template->desc); in twlreg_probe() 697 info = devm_kmemdup(&pdev->dev, template, sizeof(*info), GFP_KERNEL); in twlreg_probe()
|
| /drivers/iio/adc/ |
| A D | industrialio-adc.c | 38 const struct iio_chan_spec *template, in devm_iio_adc_device_alloc_chaninfo_se() argument 69 *chan = *template; in devm_iio_adc_device_alloc_chaninfo_se()
|
| A D | rohm-bd79124.c | 1024 const struct iio_chan_spec *template; in bd79124_probe() local 1057 template = &bd79124_chan_template; in bd79124_probe() 1059 template = &bd79124_chan_template_noirq; in bd79124_probe() 1067 ret = devm_iio_adc_device_alloc_chaninfo_se(dev, template, in bd79124_probe()
|
| /drivers/hwmon/ |
| A D | ina2xx.c | 521 u8 template[6]; in sy24655_average_power_read() local 526 ret = i2c_smbus_read_i2c_block_data(data->client, reg, 6, template); in sy24655_average_power_read() 531 accumulator_24 = ((template[3] << 16) | in sy24655_average_power_read() 532 (template[4] << 8) | in sy24655_average_power_read() 533 template[5]); in sy24655_average_power_read() 534 sample_count = ((template[0] << 16) | in sy24655_average_power_read() 535 (template[1] << 8) | in sy24655_average_power_read() 536 template[2]); in sy24655_average_power_read()
|
| A D | hwmon.c | 501 const char *template, in hwmon_genattr() argument 526 name = template; in hwmon_genattr() 528 scnprintf(hattr->name, sizeof(hattr->name), template, in hwmon_genattr() 763 const char *template; in hwmon_notify_event() local 772 template = templates[attr]; in hwmon_notify_event() 776 scnprintf(sattr, MAX_SYSFS_ATTR_NAME_LENGTH, template, base + channel); in hwmon_notify_event()
|
| /drivers/net/wireless/ti/wl1251/ |
| A D | main.c | 568 struct ieee80211_qos_hdr template; in wl1251_build_qos_null_data() local 570 memset(&template, 0, sizeof(template)); in wl1251_build_qos_null_data() 572 memcpy(template.addr1, wl->bssid, ETH_ALEN); in wl1251_build_qos_null_data() 573 memcpy(template.addr2, wl->mac_addr, ETH_ALEN); in wl1251_build_qos_null_data() 574 memcpy(template.addr3, wl->bssid, ETH_ALEN); in wl1251_build_qos_null_data() 576 template.frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA | in wl1251_build_qos_null_data() 581 template.qos_ctrl = cpu_to_le16(0); in wl1251_build_qos_null_data() 583 return wl1251_cmd_template_set(wl, CMD_QOS_NULL_DATA, &template, in wl1251_build_qos_null_data() 584 sizeof(template)); in wl1251_build_qos_null_data()
|
| /drivers/media/dvb-core/ |
| A D | dvbdev.c | 455 const struct dvb_device *template, void *priv, in dvb_register_device() argument 488 node->type == type && node->template == template) { in dvb_register_device() 495 dvbdevfops = kmemdup(template->fops, sizeof(*dvbdevfops), GFP_KERNEL); in dvb_register_device() 514 new_node->template = template; in dvb_register_device() 518 memcpy(dvbdev, template, sizeof(struct dvb_device)); in dvb_register_device()
|
| /drivers/pci/hotplug/ |
| A D | TODO | 12 convert it to call irq_wake_thread(). Use pciehp as a template. 52 template.
|
| /drivers/nvme/target/ |
| A D | fc.c | 1358 struct nvmet_fc_target_template *template, in nvmet_fc_register_targetport() argument 1366 if (!template->xmt_ls_rsp || !template->fcp_op || in nvmet_fc_register_targetport() 1367 !template->fcp_abort || in nvmet_fc_register_targetport() 1368 !template->fcp_req_release || !template->targetport_delete || in nvmet_fc_register_targetport() 1369 !template->max_hw_queues || !template->max_sgl_segments || in nvmet_fc_register_targetport() 1370 !template->max_dif_sgl_segments || !template->dma_boundary) { in nvmet_fc_register_targetport() 1375 newrec = kzalloc((sizeof(*newrec) + template->target_priv_sz), in nvmet_fc_register_targetport() 1395 if (template->target_priv_sz) in nvmet_fc_register_targetport() 1403 newrec->ops = template; in nvmet_fc_register_targetport() 1412 newrec->max_sg_cnt = template->max_sgl_segments; in nvmet_fc_register_targetport()
|
| /drivers/net/wireless/ti/wlcore/ |
| A D | cmd.c | 1316 struct ieee80211_qos_hdr template; in wl1271_build_qos_null_data() local 1318 memset(&template, 0, sizeof(template)); in wl1271_build_qos_null_data() 1320 memcpy(template.addr1, vif->bss_conf.bssid, ETH_ALEN); in wl1271_build_qos_null_data() 1321 memcpy(template.addr2, vif->addr, ETH_ALEN); in wl1271_build_qos_null_data() 1322 memcpy(template.addr3, vif->bss_conf.bssid, ETH_ALEN); in wl1271_build_qos_null_data() 1324 template.frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA | in wl1271_build_qos_null_data() 1329 template.qos_ctrl = cpu_to_le16(0); in wl1271_build_qos_null_data() 1332 CMD_TEMPL_QOS_NULL_DATA, &template, in wl1271_build_qos_null_data() 1333 sizeof(template), 0, in wl1271_build_qos_null_data()
|
| /drivers/nvme/host/ |
| A D | fc.c | 348 struct nvme_fc_port_template *template, in nvme_fc_register_localport() argument 356 if (!template->localport_delete || !template->remoteport_delete || in nvme_fc_register_localport() 357 !template->ls_req || !template->fcp_io || in nvme_fc_register_localport() 358 !template->ls_abort || !template->fcp_abort || in nvme_fc_register_localport() 359 !template->max_hw_queues || !template->max_sgl_segments || in nvme_fc_register_localport() 360 !template->max_dif_sgl_segments || !template->dma_boundary) { in nvme_fc_register_localport() 372 newrec = nvme_fc_attach_to_unreg_lport(pinfo, template, dev); in nvme_fc_register_localport() 387 newrec = kmalloc((sizeof(*newrec) + template->local_priv_sz), in nvme_fc_register_localport() 409 newrec->ops = template; in nvme_fc_register_localport() 412 if (template->local_priv_sz) in nvme_fc_register_localport() [all …]
|
| /drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| A D | ampdu.c | 1043 char template[T_RAM_ACCESS_SZ * 2]; in brcms_c_ampdu_macaddr_upd() local 1046 memset(template, 0, sizeof(template)); in brcms_c_ampdu_macaddr_upd() 1047 memcpy(template, wlc->pub->cur_etheraddr, ETH_ALEN); in brcms_c_ampdu_macaddr_upd() 1050 template); in brcms_c_ampdu_macaddr_upd()
|
| /drivers/gpu/drm/ci/ |
| A D | igt_runner.sh | 87 --template "See $ARTIFACTS_BASE_URL/results/{{testcase}}.xml"
|
| /drivers/accessibility/speakup/ |
| A D | i18n.c | 513 static bool fmt_validate(char *template, char *user) in fmt_validate() argument 517 char *template_ptr = template; in fmt_validate()
|
| /drivers/crypto/caam/ |
| A D | caamhash.c | 1900 caam_hash_alloc(struct caam_hash_template *template, in caam_hash_alloc() argument 1911 t_alg->ahash_alg.base = template->template_ahash; in caam_hash_alloc() 1917 template->hmac_name); in caam_hash_alloc() 1919 template->hmac_driver_name); in caam_hash_alloc() 1923 template->name); in caam_hash_alloc() 1925 template->driver_name); in caam_hash_alloc() 1934 alg->cra_blocksize = template->blocksize; in caam_hash_alloc() 1938 t_alg->alg_type = template->alg_type; in caam_hash_alloc()
|
| /drivers/crypto/ccree/ |
| A D | cc_hash.c | 1821 static struct cc_hash_alg *cc_alloc_hash_alg(struct cc_hash_template *template, in cc_alloc_hash_alg() argument 1832 t_crypto_alg->ahash_alg = template->template_ahash; in cc_alloc_hash_alg() 1838 template->mac_name); in cc_alloc_hash_alg() 1840 template->mac_driver_name); in cc_alloc_hash_alg() 1844 template->name); in cc_alloc_hash_alg() 1846 template->driver_name); in cc_alloc_hash_alg() 1851 alg->cra_blocksize = template->blocksize; in cc_alloc_hash_alg() 1858 t_crypto_alg->hash_mode = template->hash_mode; in cc_alloc_hash_alg() 1859 t_crypto_alg->hw_mode = template->hw_mode; in cc_alloc_hash_alg() 1860 t_crypto_alg->inter_digestsize = template->inter_digestsize; in cc_alloc_hash_alg()
|
| /drivers/scsi/qla2xxx/ |
| A D | qla_tmpl.c | 1030 if (!fwdt->template) { in qla27xx_mpi_fwdump() 1035 len = qla27xx_execute_fwdt_template(vha, fwdt->template, buf); in qla27xx_mpi_fwdump() 1078 if (!fwdt->template) { in qla27xx_fwdump() 1083 len = qla27xx_execute_fwdt_template(vha, fwdt->template, buf); in qla27xx_fwdump()
|