Home
last modified time | relevance | path

Searched refs:device_data (Results 1 – 25 of 57) sorted by relevance

123

/linux/sound/core/
H A Ddevice.c17 * @device_data: the data pointer of this device
30 void *device_data, const struct snd_device_ops *ops) in snd_device_new() argument
35 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new()
44 dev->device_data = device_data; in snd_device_new()
82 static struct snd_device *look_for_dev(struct snd_card *card, void *device_data) in look_for_dev() argument
87 if (dev->device_data == device_data) in look_for_dev()
96 * @device_data: the data pointer to disconnect
106 void snd_device_disconnect(struct snd_card *card, void *device_data) in snd_device_disconnect() argument
130 snd_device_free(struct snd_card * card,void * device_data) snd_device_free() argument
171 snd_device_register(struct snd_card * card,void * device_data) snd_device_register() argument
[all...]
H A Dseq_device.c156 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_free()
167 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_register()
180 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_disconnect()
H A Dhwdep.c414 snd_hwdep_free(device->device_data); in snd_hwdep_dev_free()
420 struct snd_hwdep *hwdep = device->device_data; in snd_hwdep_dev_register()
458 struct snd_hwdep *hwdep = device->device_data; in snd_hwdep_dev_disconnect()
H A Djack.c45 struct snd_jack *jack = device->device_data; in snd_jack_dev_disconnect()
67 struct snd_jack *jack = device->device_data; in snd_jack_dev_free()
90 struct snd_jack *jack = device->device_data; in snd_jack_dev_register()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_rl.c386 u32 max_val = rl_data->device_data->scale_ref; in is_enough_budget()
525 struct adf_rl_hw_data *device_data = &accel_dev->hw_device->rl_data; in adf_rl_calculate_slice_tokens() local
536 do_div(avail_slice_cycles, device_data->scan_interval); in adf_rl_calculate_slice_tokens()
538 do_div(allocated_tokens, device_data->scale_ref); in adf_rl_calculate_slice_tokens()
546 struct adf_rl_hw_data *device_data = &accel_dev->hw_device->rl_data; in adf_rl_get_num_svc_aes() local
551 return device_data->svc_ae_mask[svc]; in adf_rl_get_num_svc_aes()
557 struct adf_rl_hw_data *device_data = &accel_dev->hw_device->rl_data; in adf_rl_calculate_ae_cycles() local
566 do_div(avail_ae_cycles, device_data->scan_interval); in adf_rl_calculate_ae_cycles()
568 sla_val *= device_data->max_tp[svc_type]; in adf_rl_calculate_ae_cycles()
569 sla_val /= device_data in adf_rl_calculate_ae_cycles()
580 struct adf_rl_hw_data *device_data = &accel_dev->hw_device->rl_data; adf_rl_calculate_pci_bw() local
693 struct adf_rl_hw_data *device_data = rl_data->device_data; initialize_default_nodes() local
[all...]
H A Dadf_gen4_hw_data.c562 void adf_gen4_init_num_svc_aes(struct adf_rl_hw_data *device_data) in adf_gen4_init_num_svc_aes() argument
568 hw_data = container_of(device_data, struct adf_hw_device_data, rl_data); in adf_gen4_init_num_svc_aes()
574 device_data->svc_ae_mask[i] = ae_cnt - 1; in adf_gen4_init_num_svc_aes()
580 device_data->svc_ae_mask[SVC_DECOMP] = 0; in adf_gen4_init_num_svc_aes()
587 struct adf_rl_hw_data *device_data = &accel_dev->hw_device->rl_data; in adf_gen4_get_svc_slice_cnt() local
591 return device_data->slices.cph_cnt; in adf_gen4_get_svc_slice_cnt()
593 return device_data->slices.pke_cnt; in adf_gen4_get_svc_slice_cnt()
595 return device_data->slices.dcpr_cnt; in adf_gen4_get_svc_slice_cnt()
H A Dadf_rl.h100 * @device_data: pointer to rate limiting data specific to a device type (or revision)
111 struct adf_rl_hw_data *device_data; member
H A Dadf_gen4_hw_data.h178 void adf_gen4_init_num_svc_aes(struct adf_rl_hw_data *device_data);
/linux/sound/aoa/core/
H A Dalsa.c62 void *device_data, const struct snd_device_ops *ops) in aoa_snd_device_new() argument
69 err = snd_device_new(card, type, device_data, ops); in aoa_snd_device_new()
74 err = snd_device_register(card, device_data); in aoa_snd_device_new()
80 snd_device_free(card, device_data); in aoa_snd_device_new()
/linux/drivers/input/misc/
H A Dsoc_button_array.c433 const struct soc_device_data *device_data; in soc_button_probe() local
440 device_data = acpi_device_get_match_data(dev); in soc_button_probe()
441 if (device_data && device_data->check) { in soc_button_probe()
442 error = device_data->check(dev); in soc_button_probe()
447 if (device_data && device_data->button_info) { in soc_button_probe()
448 button_info = device_data->button_info; in soc_button_probe()
484 if (!device_data || !device_data in soc_button_probe()
[all...]
/linux/drivers/hid/bpf/
H A Dhid_bpf_dispatch.c35 .data = hdev->bpf.device_data, in dispatch_hid_bpf_device_event()
48 if (!hdev->bpf.device_data) in dispatch_hid_bpf_device_event()
263 /* hdev->bpf.device_data is already allocated, abort */ in hid_bpf_allocate_event_data()
264 if (hdev->bpf.device_data) in hid_bpf_allocate_event_data()
267 return __hid_bpf_allocate_data(hdev, &hdev->bpf.device_data, &hdev->bpf.allocated_data); in hid_bpf_allocate_event_data()
532 from_hid_event_hook = ctx_kern->data && ctx_kern->data == ctx->hid->bpf.device_data; in hid_bpf_try_input_report()
625 kfree(hdev->bpf.device_data); in hid_bpf_disconnect_device()
626 hdev->bpf.device_data = NULL; in hid_bpf_disconnect_device()
/linux/include/sound/
H A Dcore.h72 void *device_data; /* device structure */ member
322 void *device_data, const struct snd_device_ops *ops);
323 int snd_device_register(struct snd_card *card, void *device_data);
325 void snd_device_disconnect(struct snd_card *card, void *device_data);
327 void snd_device_free(struct snd_card *card, void *device_data);
/linux/drivers/crypto/intel/qat/qat_6xxx/
H A Dadf_6xxx_hw_data.c527 static void init_num_svc_aes(struct adf_rl_hw_data *device_data) in init_num_svc_aes() argument
550 device_data->svc_ae_mask[svc] = hweight32(ae_mask); in init_num_svc_aes()
560 struct adf_rl_hw_data *device_data = &accel_dev->hw_device->rl_data; in adf_gen6_get_svc_slice_cnt() local
564 return device_data->slices.cph_cnt; in adf_gen6_get_svc_slice_cnt()
566 return device_data->slices.pke_cnt; in adf_gen6_get_svc_slice_cnt()
568 return device_data->slices.cpr_cnt + device_data->slices.dcpr_cnt; in adf_gen6_get_svc_slice_cnt()
570 return device_data->slices.dcpr_cnt; in adf_gen6_get_svc_slice_cnt()
/linux/sound/hda/common/
H A Dbeep.c164 struct hda_beep *beep = device->device_data; in beep_dev_register()
175 struct hda_beep *beep = device->device_data; in beep_dev_disconnect()
188 struct hda_beep *beep = device->device_data; in beep_dev_free()
/linux/drivers/scsi/lpfc/
H A Dlpfc_mem.c242 struct lpfc_device_data *device_data; in lpfc_mem_free() local
286 device_data = list_first_entry(&phba->luns, in lpfc_mem_free()
289 list_del(&device_data->listentry); in lpfc_mem_free()
290 mempool_free(device_data, phba->device_data_mem_pool); in lpfc_mem_free()
/linux/sound/aoa/
H A Daoa.h118 void *device_data, const struct snd_device_ops *ops);
/linux/sound/hda/controllers/
H A Dacpi.c42 struct azx *chip = device->device_data; in hda_acpi_dev_disconnect()
50 struct azx *azx = device->device_data; in hda_acpi_dev_free()
/linux/drivers/md/
H A Ddm-ima.c102 static int dm_ima_alloc_and_copy_device_data(struct mapped_device *md, char **device_data, in dm_ima_alloc_and_copy_device_data() argument
112 *device_data = dm_ima_alloc(DM_IMA_DEVICE_BUF_LEN, GFP_KERNEL, noio); in dm_ima_alloc_and_copy_device_data()
113 if (!(*device_data)) { in dm_ima_alloc_and_copy_device_data()
118 scnprintf(*device_data, DM_IMA_DEVICE_BUF_LEN, in dm_ima_alloc_and_copy_device_data()
/linux/drivers/firmware/
H A Ddmi_scan.c301 dev->device_data = NULL; in dmi_save_one_device()
341 dev->device_data = NULL; in dmi_save_oem_strings_devices()
364 dev->device_data = data; in dmi_save_ipmi_device()
391 dev->dev.device_data = dev; in dmi_save_dev_pciaddr()
/linux/Documentation/ABI/testing/
H A Ddebugfs-driver-qat_telemetry26 the ``device_data`` file::
37 What: /sys/kernel/debug/qat_<device>_<BDF>/telemetry/device_data
92 cat /sys/kernel/debug/qat_4xxx_0000:6b:00.0/telemetry/device_data
/linux/include/linux/
H A Ddmi.h86 void *device_data; /* Type specific data */ member
H A Dhid_bpf.h188 u8 *device_data; /* allocated when a bpf program of type member
/linux/drivers/char/ipmi/
H A Dipmi_dmi.c219 dmi_decode_ipmi((const struct dmi_header *) dev->device_data); in scan_for_dmi_ipmi()
/linux/drivers/pci/
H A Dpci-label.c70 donboard = dmi->device_data; in find_smbios_instance_string()
/linux/drivers/input/touchscreen/
H A Dbu21013_ts.c236 static irqreturn_t bu21013_gpio_irq(int irq, void *device_data) in bu21013_gpio_irq() argument
238 struct bu21013_ts *ts = device_data; in bu21013_gpio_irq()

123