Lines Matching refs:hifn_device
399 struct hifn_device { struct
600 struct hifn_device *dev;
615 struct hifn_device *dev;
628 static inline u32 hifn_read_0(struct hifn_device *dev, u32 reg) in hifn_read_0()
633 static inline u32 hifn_read_1(struct hifn_device *dev, u32 reg) in hifn_read_1()
638 static inline void hifn_write_0(struct hifn_device *dev, u32 reg, u32 val) in hifn_write_0()
643 static inline void hifn_write_1(struct hifn_device *dev, u32 reg, u32 val) in hifn_write_1()
648 static void hifn_wait_puc(struct hifn_device *dev) in hifn_wait_puc()
665 static void hifn_reset_puc(struct hifn_device *dev) in hifn_reset_puc()
671 static void hifn_stop_device(struct hifn_device *dev) in hifn_stop_device()
680 static void hifn_reset_dma(struct hifn_device *dev, int full) in hifn_reset_dma()
751 struct hifn_device *dev = (struct hifn_device *)rng->priv; in hifn_rng_data_present()
766 struct hifn_device *dev = (struct hifn_device *)rng->priv; in hifn_rng_data_read()
773 static int hifn_register_rng(struct hifn_device *dev) in hifn_register_rng()
789 static void hifn_unregister_rng(struct hifn_device *dev) in hifn_unregister_rng()
798 static int hifn_init_pubrng(struct hifn_device *dev) in hifn_init_pubrng()
836 static int hifn_enable_crypto(struct hifn_device *dev) in hifn_enable_crypto()
879 static void hifn_init_dma(struct hifn_device *dev) in hifn_init_dma()
920 static void hifn_init_pll(struct hifn_device *dev) in hifn_init_pll()
972 static void hifn_init_registers(struct hifn_device *dev) in hifn_init_registers()
1048 static int hifn_setup_base_command(struct hifn_device *dev, u8 *buf, in hifn_setup_base_command()
1070 static int hifn_setup_crypto_command(struct hifn_device *dev, in hifn_setup_crypto_command()
1111 static int hifn_setup_cmd_desc(struct hifn_device *dev, in hifn_setup_cmd_desc()
1230 static int hifn_setup_src_desc(struct hifn_device *dev, struct page *page, in hifn_setup_src_desc()
1263 static void hifn_setup_res_desc(struct hifn_device *dev) in hifn_setup_res_desc()
1288 static void hifn_setup_dst_desc(struct hifn_device *dev, struct page *page, in hifn_setup_dst_desc()
1317 static int hifn_setup_dma(struct hifn_device *dev, in hifn_setup_dma()
1525 struct hifn_device *dev = ctx->dev; in hifn_setup_session()
1591 static int hifn_start_device(struct hifn_device *dev) in hifn_start_device()
1649 static inline void hifn_complete_sa(struct hifn_device *dev, int i) in hifn_complete_sa()
1708 static void hifn_clear_rings(struct hifn_device *dev, int error) in hifn_clear_rings()
1777 struct hifn_device *dev = container_of(dw, struct hifn_device, work); in hifn_work()
1848 struct hifn_device *dev = (struct hifn_device *)data; in hifn_interrupt()
1909 static void hifn_flush(struct hifn_device *dev) in hifn_flush()
1943 struct hifn_device *dev = ctx->dev; in hifn_setkey()
1962 struct hifn_device *dev = ctx->dev; in hifn_des3_setkey()
1980 struct hifn_device *dev = ctx->dev; in hifn_handle_req()
2037 static int hifn_process_queue(struct hifn_device *dev) in hifn_process_queue()
2071 struct hifn_device *dev = ctx->dev; in hifn_setup_crypto()
2380 static int hifn_alg_alloc(struct hifn_device *dev, struct hifn_alg_template *t) in hifn_alg_alloc()
2417 static void hifn_unregister_alg(struct hifn_device *dev) in hifn_unregister_alg()
2428 static int hifn_register_alg(struct hifn_device *dev) in hifn_register_alg()
2447 struct hifn_device *dev = (struct hifn_device *)data; in hifn_tasklet_callback()
2464 struct hifn_device *dev; in hifn_probe()
2491 dev = kzalloc(sizeof(struct hifn_device) + sizeof(struct crypto_alg), in hifn_probe()
2595 struct hifn_device *dev; in hifn_remove()