/kernel/linux/linux-5.10/drivers/crypto/ux500/cryp/ |
H A D | cryp_core.c | 186 struct cryp_device_data *device_data; in cryp_interrupt_handler() local 194 device_data = (struct cryp_device_data *)param; in cryp_interrupt_handler() 196 ctx = device_data->current_ctx; in cryp_interrupt_handler() 204 cryp_pending_irq_src(device_data, CRYP_IRQ_SRC_OUTPUT_FIFO) ? in cryp_interrupt_handler() 207 if (cryp_pending_irq_src(device_data, in cryp_interrupt_handler() 212 readsl(&device_data->base->dout, ctx->outdata, count); in cryp_interrupt_handler() 217 cryp_disable_irq_src(device_data, in cryp_interrupt_handler() 221 } else if (cryp_pending_irq_src(device_data, in cryp_interrupt_handler() 226 writesl(&device_data->base->din, ctx->indata, count); in cryp_interrupt_handler() 232 cryp_disable_irq_src(device_data, in cryp_interrupt_handler() 257 cfg_iv(struct cryp_device_data *device_data, u32 left, u32 right, enum cryp_init_vector_index index) cfg_iv() argument 272 cfg_ivs(struct cryp_device_data *device_data, struct cryp_ctx *ctx) cfg_ivs() argument 305 set_key(struct cryp_device_data *device_data, u32 left_key, u32 right_key, enum cryp_key_reg_index index) set_key() argument 362 cryp_setup_context(struct cryp_ctx *ctx, struct cryp_device_data *device_data) cryp_setup_context() argument 416 cryp_get_device_data(struct cryp_ctx *ctx, struct cryp_device_data **device_data) cryp_get_device_data() argument 468 cryp_dma_setup_channel(struct cryp_device_data *device_data, struct device *dev) cryp_dma_setup_channel() argument 646 cryp_polling_mode(struct cryp_ctx *ctx, struct cryp_device_data *device_data) cryp_polling_mode() argument 666 cryp_disable_power(struct device *dev, struct cryp_device_data *device_data, bool save_device_context) cryp_disable_power() argument 702 cryp_enable_power( struct device *dev, struct cryp_device_data *device_data, bool restore_device_context) cryp_enable_power() argument 745 hw_crypt_noxts(struct cryp_ctx *ctx, struct cryp_device_data *device_data) hw_crypt_noxts() argument 828 struct cryp_device_data *device_data; ablk_dma_crypt() local 886 struct cryp_device_data *device_data; ablk_crypt() local 1260 struct cryp_device_data *device_data; ux500_cryp_probe() local 1398 struct cryp_device_data *device_data; ux500_cryp_remove() local 1445 struct cryp_device_data *device_data; ux500_cryp_shutdown() local 1491 struct cryp_device_data *device_data; ux500_cryp_suspend() local 1534 struct cryp_device_data *device_data; ux500_cryp_resume() local [all...] |
H A D | cryp.c | 21 void cryp_wait_until_done(struct cryp_device_data *device_data) in cryp_wait_until_done() argument 23 while (cryp_is_logic_busy(device_data)) in cryp_wait_until_done() 29 * @device_data: Pointer to the device data struct for base address. 31 int cryp_check(struct cryp_device_data *device_data) in cryp_check() argument 35 if (NULL == device_data) in cryp_check() 38 peripheralid2 = readl_relaxed(&device_data->base->periphId2); in cryp_check() 45 readl_relaxed(&device_data->base->periphId0)) in cryp_check() 47 readl_relaxed(&device_data->base->periphId1)) in cryp_check() 49 readl_relaxed(&device_data->base->periphId3)) in cryp_check() 51 readl_relaxed(&device_data in cryp_check() 69 cryp_activity(struct cryp_device_data *device_data, enum cryp_crypen cryp_crypen) cryp_activity() argument 82 cryp_flush_inoutfifo(struct cryp_device_data *device_data) cryp_flush_inoutfifo() argument 110 cryp_set_configuration(struct cryp_device_data *device_data, struct cryp_config *cryp_config, u32 *control_register) cryp_set_configuration() argument 164 cryp_configure_protection(struct cryp_device_data *device_data, struct cryp_protection_config *p_protect_config) cryp_configure_protection() argument 185 cryp_is_logic_busy(struct cryp_device_data *device_data) cryp_is_logic_busy() argument 196 cryp_configure_for_dma(struct cryp_device_data *device_data, enum cryp_dma_req_type dma_req) cryp_configure_for_dma() argument 209 cryp_configure_key_values(struct cryp_device_data *device_data, enum cryp_key_reg_index key_reg_index, struct cryp_key_value key_value) cryp_configure_key_values() argument 254 cryp_configure_init_vector(struct cryp_device_data *device_data, enum cryp_init_vector_index init_vector_index, struct cryp_init_vector_value init_vector_value) cryp_configure_init_vector() argument 289 cryp_save_device_context(struct cryp_device_data *device_data, struct cryp_device_context *ctx, int cryp_mode) cryp_save_device_context() argument 352 cryp_restore_device_context(struct cryp_device_data *device_data, struct cryp_device_context *ctx) cryp_restore_device_context() argument [all...] |
H A D | cryp_irq.c | 20 void cryp_enable_irq_src(struct cryp_device_data *device_data, u32 irq_src) in cryp_enable_irq_src() argument 24 dev_dbg(device_data->dev, "[%s]", __func__); in cryp_enable_irq_src() 26 i = readl_relaxed(&device_data->base->imsc); in cryp_enable_irq_src() 28 writel_relaxed(i, &device_data->base->imsc); in cryp_enable_irq_src() 31 void cryp_disable_irq_src(struct cryp_device_data *device_data, u32 irq_src) in cryp_disable_irq_src() argument 35 dev_dbg(device_data->dev, "[%s]", __func__); in cryp_disable_irq_src() 37 i = readl_relaxed(&device_data->base->imsc); in cryp_disable_irq_src() 39 writel_relaxed(i, &device_data->base->imsc); in cryp_disable_irq_src() 42 bool cryp_pending_irq_src(struct cryp_device_data *device_data, u32 irq_src) in cryp_pending_irq_src() argument 44 return (readl_relaxed(&device_data in cryp_pending_irq_src() [all...] |
H A D | cryp.h | 253 void cryp_wait_until_done(struct cryp_device_data *device_data); 257 int cryp_check(struct cryp_device_data *device_data); 259 void cryp_activity(struct cryp_device_data *device_data, 262 void cryp_flush_inoutfifo(struct cryp_device_data *device_data); 264 int cryp_set_configuration(struct cryp_device_data *device_data, 268 void cryp_configure_for_dma(struct cryp_device_data *device_data, 271 int cryp_configure_key_values(struct cryp_device_data *device_data, 275 int cryp_configure_init_vector(struct cryp_device_data *device_data, 281 int cryp_configure_protection(struct cryp_device_data *device_data, 285 void cryp_save_device_context(struct cryp_device_data *device_data, [all...] |
H A D | cryp_irq.h | 25 void cryp_enable_irq_src(struct cryp_device_data *device_data, u32 irq_src); 27 void cryp_disable_irq_src(struct cryp_device_data *device_data, u32 irq_src); 29 bool cryp_pending_irq_src(struct cryp_device_data *device_data, u32 irq_src);
|
/kernel/linux/linux-5.10/drivers/crypto/ux500/hash/ |
H A D | hash_core.c | 77 * @device_data: Structure for the hash device. 85 static void hash_messagepad(struct hash_device_data *device_data, 90 * @device_data: Structure for the hash device. 93 static void release_hash_device(struct hash_device_data *device_data) in release_hash_device() argument 95 spin_lock(&device_data->ctx_lock); in release_hash_device() 96 device_data->current_ctx->device = NULL; in release_hash_device() 97 device_data->current_ctx = NULL; in release_hash_device() 98 spin_unlock(&device_data->ctx_lock); in release_hash_device() 107 static void hash_dma_setup_channel(struct hash_device_data *device_data, in hash_dma_setup_channel() argument 113 .dst_addr = device_data in hash_dma_setup_channel() 216 get_empty_message_digest( struct hash_device_data *device_data, u8 *zero_hash, u32 *zero_hash_size, bool *zero_digest) get_empty_message_digest() argument 283 hash_disable_power(struct hash_device_data *device_data, bool save_device_state) hash_disable_power() argument 320 hash_enable_power(struct hash_device_data *device_data, bool restore_device_state) hash_enable_power() argument 365 hash_get_device_data(struct hash_ctx *ctx, struct hash_device_data **device_data) hash_get_device_data() argument 426 hash_hw_write_key(struct hash_device_data *device_data, const u8 *key, unsigned int keylen) hash_hw_write_key() argument 470 init_hash_hw(struct hash_device_data *device_data, struct hash_ctx *ctx) init_hash_hw() argument 589 hash_processblock(struct hash_device_data *device_data, const u32 *message, int length) hash_processblock() argument 614 hash_messagepad(struct hash_device_data *device_data, const u32 *message, u8 index_bytes) hash_messagepad() argument 675 hash_setconfiguration(struct hash_device_data *device_data, struct hash_config *config) hash_setconfiguration() argument 742 hash_begin(struct hash_device_data *device_data, struct hash_ctx *ctx) hash_begin() argument 763 hash_process_data(struct hash_device_data *device_data, struct hash_ctx *ctx, struct hash_req_ctx *req_ctx, int msg_length, u8 *data_buffer, u8 *buffer, u8 *index) hash_process_data() argument 859 struct hash_device_data *device_data; hash_dma_final() local 966 struct hash_device_data *device_data; hash_hw_final() local 1070 struct hash_device_data *device_data; hash_hw_update() local 1133 hash_resume_state(struct hash_device_data *device_data, const struct hash_state *device_state) hash_resume_state() argument 1191 hash_save_state(struct hash_device_data *device_data, struct hash_state *device_state) hash_save_state() argument 1243 hash_check_hw(struct hash_device_data *device_data) hash_check_hw() argument 1267 hash_get_digest(struct hash_device_data *device_data, u8 *digest, int algorithm) hash_get_digest() argument 1621 ahash_algs_register_all(struct hash_device_data *device_data) ahash_algs_register_all() argument 1646 ahash_algs_unregister_all(struct hash_device_data *device_data) ahash_algs_unregister_all() argument 1662 struct hash_device_data *device_data; ux500_hash_probe() local 1766 struct hash_device_data *device_data; ux500_hash_remove() local 1816 struct hash_device_data *device_data; ux500_hash_shutdown() local 1862 struct hash_device_data *device_data; ux500_hash_suspend() local 1899 struct hash_device_data *device_data; ux500_hash_resume() local [all...] |
H A D | hash_alg.h | 108 #define HASH_SET_DIN(val, len) writesl(&device_data->base->din, (val), (len)) 112 &device_data->base->cr, \ 118 &device_data->base->cr, \ 123 &device_data->base->str, \ 128 &device_data->base->str, \ 380 int hash_check_hw(struct hash_device_data *device_data); 382 int hash_setconfiguration(struct hash_device_data *device_data, 385 void hash_begin(struct hash_device_data *device_data, struct hash_ctx *ctx); 387 void hash_get_digest(struct hash_device_data *device_data, 392 int hash_save_state(struct hash_device_data *device_data, [all...] |
/kernel/linux/linux-5.10/sound/core/ |
H A D | device.c | 17 * @device_data: the data pointer of this device 30 void *device_data, const struct snd_device_ops *ops) in snd_device_new() 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 29 snd_device_new(struct snd_card *card, enum snd_device_type type, void *device_data, const struct snd_device_ops *ops) snd_device_new() 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 251 snd_device_get_state(struct snd_card *card, void *device_data) snd_device_get_state() argument [all...] |
H A D | seq_device.c | 147 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_free() 158 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_register() 171 struct snd_seq_device *dev = device->device_data; in snd_seq_device_dev_disconnect()
|
/kernel/linux/linux-6.6/sound/core/ |
H A D | device.c | 17 * @device_data: the data pointer of this device 30 void *device_data, const struct snd_device_ops *ops) in snd_device_new() 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 29 snd_device_new(struct snd_card *card, enum snd_device_type type, void *device_data, const struct snd_device_ops *ops) snd_device_new() 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 253 snd_device_get_state(struct snd_card *card, void *device_data) snd_device_get_state() argument [all...] |
H A D | seq_device.c | 156 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()
|
/kernel/linux/linux-5.10/drivers/vfio/mdev/ |
H A D | vfio_mdev.c | 24 static int vfio_mdev_open(void *device_data) in vfio_mdev_open() argument 26 struct mdev_device *mdev = device_data; in vfio_mdev_open() 43 static void vfio_mdev_release(void *device_data) in vfio_mdev_release() argument 45 struct mdev_device *mdev = device_data; in vfio_mdev_release() 54 static long vfio_mdev_unlocked_ioctl(void *device_data, in vfio_mdev_unlocked_ioctl() argument 57 struct mdev_device *mdev = device_data; in vfio_mdev_unlocked_ioctl() 66 static ssize_t vfio_mdev_read(void *device_data, char __user *buf, in vfio_mdev_read() argument 69 struct mdev_device *mdev = device_data; in vfio_mdev_read() 78 static ssize_t vfio_mdev_write(void *device_data, const char __user *buf, in vfio_mdev_write() argument 81 struct mdev_device *mdev = device_data; in vfio_mdev_write() 90 vfio_mdev_mmap(void *device_data, struct vm_area_struct *vma) vfio_mdev_mmap() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | vfio.h | 27 void *device_data; member 47 int (*open)(void *device_data); 48 void (*release)(void *device_data); 49 ssize_t (*read)(void *device_data, char __user *buf, 51 ssize_t (*write)(void *device_data, const char __user *buf, 53 long (*ioctl)(void *device_data, unsigned int cmd, 55 int (*mmap)(void *device_data, struct vm_area_struct *vma); 56 void (*request)(void *device_data, unsigned int count); 57 int (*match)(void *device_data, char *buf); 64 const struct vfio_device_ops *ops, void *device_data); [all...] |
/kernel/linux/linux-5.10/sound/aoa/core/ |
H A D | alsa.c | 62 void *device_data, const struct snd_device_ops *ops) in aoa_snd_device_new() 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() 61 aoa_snd_device_new(enum snd_device_type type, void *device_data, const struct snd_device_ops *ops) aoa_snd_device_new() argument
|
/kernel/linux/linux-6.6/sound/aoa/core/ |
H A D | alsa.c | 62 void *device_data, const struct snd_device_ops *ops) in aoa_snd_device_new() 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() 61 aoa_snd_device_new(enum snd_device_type type, void *device_data, const struct snd_device_ops *ops) aoa_snd_device_new() argument
|
/kernel/linux/linux-5.10/drivers/net/can/m_can/ |
H A D | m_can_platform.c | 19 struct m_can_plat_priv *priv = cdev->device_data; in iomap_read_reg() 26 struct m_can_plat_priv *priv = cdev->device_data; in iomap_read_fifo() 33 struct m_can_plat_priv *priv = cdev->device_data; in iomap_write_reg() 42 struct m_can_plat_priv *priv = cdev->device_data; in iomap_write_fifo() 75 mcan_class->device_data = priv; in m_can_plat_probe()
|
H A D | tcan4x5x.c | 236 struct tcan4x5x_priv *priv = cdev->device_data; in tcan4x5x_read_reg() 246 struct tcan4x5x_priv *priv = cdev->device_data; in tcan4x5x_read_fifo() 256 struct tcan4x5x_priv *priv = cdev->device_data; in tcan4x5x_write_reg() 264 struct tcan4x5x_priv *priv = cdev->device_data; in tcan4x5x_write_fifo() 283 struct tcan4x5x_priv *priv = cdev->device_data; in tcan4x5x_write_tcan_reg() 312 struct tcan4x5x_priv *tcan4x5x = cdev->device_data; in tcan4x5x_init() 339 struct tcan4x5x_priv *tcan4x5x = cdev->device_data; in tcan4x5x_disable_wake() 347 struct tcan4x5x_priv *tcan4x5x = cdev->device_data; in tcan4x5x_disable_state() 355 struct tcan4x5x_priv *tcan4x5x = cdev->device_data; in tcan4x5x_parse_config() 427 mcan_class->device_data in tcan4x5x_can_probe() [all...] |
/kernel/linux/linux-5.10/drivers/input/misc/ |
H A D | soc_button_array.c | 435 const struct soc_device_data *device_data; in soc_button_probe() local 442 device_data = acpi_device_get_match_data(dev); in soc_button_probe() 443 if (device_data && device_data->check) { in soc_button_probe() 444 error = device_data->check(dev); in soc_button_probe() 449 if (device_data && device_data->button_info) { in soc_button_probe() 450 button_info = device_data->button_info; in soc_button_probe() 486 if (!device_data || !device_data in soc_button_probe() [all...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | soc_button_array.c | 435 const struct soc_device_data *device_data; in soc_button_probe() local 442 device_data = acpi_device_get_match_data(dev); in soc_button_probe() 443 if (device_data && device_data->check) { in soc_button_probe() 444 error = device_data->check(dev); in soc_button_probe() 449 if (device_data && device_data->button_info) { in soc_button_probe() 450 button_info = device_data->button_info; in soc_button_probe() 486 if (!device_data || !device_data in soc_button_probe() [all...] |
/kernel/linux/linux-5.10/drivers/vfio/platform/ |
H A D | vfio_platform_common.c | 220 static void vfio_platform_release(void *device_data) in vfio_platform_release() argument 222 struct vfio_platform_device *vdev = device_data; in vfio_platform_release() 246 static int vfio_platform_open(void *device_data) in vfio_platform_open() argument 248 struct vfio_platform_device *vdev = device_data; in vfio_platform_open() 295 static long vfio_platform_ioctl(void *device_data, in vfio_platform_ioctl() argument 298 struct vfio_platform_device *vdev = device_data; in vfio_platform_ioctl() 457 static ssize_t vfio_platform_read(void *device_data, char __user *buf, in vfio_platform_read() argument 460 struct vfio_platform_device *vdev = device_data; in vfio_platform_read() 533 static ssize_t vfio_platform_write(void *device_data, const char __user *buf, in vfio_platform_write() argument 536 struct vfio_platform_device *vdev = device_data; in vfio_platform_write() 575 vfio_platform_mmap(void *device_data, struct vm_area_struct *vma) vfio_platform_mmap() argument [all...] |
/kernel/linux/linux-5.10/drivers/vfio/fsl-mc/ |
H A D | vfio_fsl_mc.c | 138 static int vfio_fsl_mc_open(void *device_data) in vfio_fsl_mc_open() argument 140 struct vfio_fsl_mc_device *vdev = device_data; in vfio_fsl_mc_open() 164 static void vfio_fsl_mc_release(void *device_data) in vfio_fsl_mc_release() argument 166 struct vfio_fsl_mc_device *vdev = device_data; in vfio_fsl_mc_release() 200 static long vfio_fsl_mc_ioctl(void *device_data, unsigned int cmd, in vfio_fsl_mc_ioctl() argument 204 struct vfio_fsl_mc_device *vdev = device_data; in vfio_fsl_mc_ioctl() 330 static ssize_t vfio_fsl_mc_read(void *device_data, char __user *buf, in vfio_fsl_mc_read() argument 333 struct vfio_fsl_mc_device *vdev = device_data; in vfio_fsl_mc_read() 407 static ssize_t vfio_fsl_mc_write(void *device_data, const char __user *buf, in vfio_fsl_mc_write() argument 410 struct vfio_fsl_mc_device *vdev = device_data; in vfio_fsl_mc_write() 471 vfio_fsl_mc_mmap(void *device_data, struct vm_area_struct *vma) vfio_fsl_mc_mmap() argument [all...] |
/kernel/linux/linux-5.10/include/sound/ |
H A D | core.h | 71 void *device_data; /* device structure */ member 262 void *device_data, const struct snd_device_ops *ops); 263 int snd_device_register(struct snd_card *card, void *device_data); 265 void snd_device_disconnect(struct snd_card *card, void *device_data); 267 void snd_device_free(struct snd_card *card, void *device_data); 269 int snd_device_get_state(struct snd_card *card, void *device_data);
|
/kernel/linux/linux-6.6/include/sound/ |
H A D | core.h | 72 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); 329 int snd_device_get_state(struct snd_card *card, void *device_data);
|
/kernel/linux/linux-6.6/drivers/hid/bpf/ |
H A D | hid_bpf_dispatch.c | 59 .data = hdev->bpf.device_data, in dispatch_hid_bpf_device_event() 67 if (!hdev->bpf.device_data) in dispatch_hid_bpf_device_event() 229 /* hdev->bpf.device_data is already allocated, abort */ in hid_bpf_allocate_event_data() 230 if (hdev->bpf.device_data) in hid_bpf_allocate_event_data() 233 return __hid_bpf_allocate_data(hdev, &hdev->bpf.device_data, &hdev->bpf.allocated_data); in hid_bpf_allocate_event_data() 512 kfree(hdev->bpf.device_data); in hid_bpf_disconnect_device() 513 hdev->bpf.device_data = NULL; in hid_bpf_disconnect_device()
|
/kernel/linux/linux-5.10/drivers/vfio/ |
H A D | vfio.c | 744 const struct vfio_device_ops *ops, void *device_data) in vfio_init_group_dev() 749 device->device_data = device_data; in vfio_init_group_dev() 803 void *device_data) in vfio_add_group_dev() 812 vfio_init_group_dev(device, dev, ops, device_data); in vfio_add_group_dev() 858 ret = it->ops->match(it->device_data, buf); in vfio_device_get_from_name() 882 return device->device_data; in vfio_device_data() 919 device->ops->request(device->device_data, i++); in vfio_unregister_group_dev() 968 void *device_data = device->device_data; in vfio_del_group_dev() local 743 vfio_init_group_dev(struct vfio_device *device, struct device *dev, const struct vfio_device_ops *ops, void *device_data) vfio_init_group_dev() argument 802 vfio_add_group_dev(struct device *dev, const struct vfio_device_ops *ops, void *device_data) vfio_add_group_dev() argument [all...] |