/linux-6.1.9/lib/raid6/ |
D | algos.c | 126 const struct raid6_recov_calls *const *algo; in raid6_choose_recov() local 129 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov() 130 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov() 131 if (!(*algo)->valid || (*algo)->valid()) in raid6_choose_recov() 132 best = *algo; in raid6_choose_recov() 150 const struct raid6_calls *const *algo; in raid6_choose_gen() local 153 for (bestgenperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { in raid6_choose_gen() 154 if (!best || (*algo)->priority >= best->priority) { in raid6_choose_gen() 155 if ((*algo)->valid && !(*algo)->valid()) in raid6_choose_gen() 159 best = *algo; in raid6_choose_gen() [all …]
|
/linux-6.1.9/net/ipv6/ |
D | seg6_hmac.c | 105 struct seg6_hmac_algo *algo; in __hmac_get_algo() local 110 algo = &hmac_algos[i]; in __hmac_get_algo() 111 if (algo->alg_id == alg_id) in __hmac_get_algo() 112 return algo; in __hmac_get_algo() 121 struct seg6_hmac_algo *algo; in __do_hmac() local 126 algo = __hmac_get_algo(hinfo->alg_id); in __do_hmac() 127 if (!algo) in __do_hmac() 130 tfm = *this_cpu_ptr(algo->tfms); in __do_hmac() 145 shash = *this_cpu_ptr(algo->shashs); in __do_hmac() 353 struct seg6_hmac_algo *algo; in seg6_hmac_init_algo() local [all …]
|
/linux-6.1.9/drivers/crypto/keembay/ |
D | ocs-hcu.c | 129 static inline u32 ocs_hcu_num_chains(enum ocs_hcu_algo algo) in ocs_hcu_num_chains() argument 131 switch (algo) { in ocs_hcu_num_chains() 144 static inline u32 ocs_hcu_digest_size(enum ocs_hcu_algo algo) in ocs_hcu_digest_size() argument 146 switch (algo) { in ocs_hcu_digest_size() 245 enum ocs_hcu_algo algo) in ocs_hcu_get_intermediate_data() argument 247 const int n = ocs_hcu_num_chains(algo); in ocs_hcu_get_intermediate_data() 288 enum ocs_hcu_algo algo) in ocs_hcu_set_intermediate_data() argument 290 const int n = ocs_hcu_num_chains(algo); in ocs_hcu_set_intermediate_data() 308 enum ocs_hcu_algo algo, u8 *dgst, size_t dgst_len) in ocs_hcu_get_digest() argument 318 if (dgst_len != ocs_hcu_digest_size(algo)) in ocs_hcu_get_digest() [all …]
|
D | ocs-hcu.h | 67 enum ocs_hcu_algo algo; member 83 int ocs_hcu_hash_init(struct ocs_hcu_hash_ctx *ctx, enum ocs_hcu_algo algo); 98 int ocs_hcu_digest(struct ocs_hcu_dev *hcu_dev, enum ocs_hcu_algo algo, 101 int ocs_hcu_hmac(struct ocs_hcu_dev *hcu_dev, enum ocs_hcu_algo algo,
|
/linux-6.1.9/drivers/video/fbdev/savage/ |
D | savagefb-i2c.c | 141 chan->adapter.algo_data = &chan->algo; in savage_setup_i2c_bus() 143 chan->algo.udelay = 10; in savage_setup_i2c_bus() 144 chan->algo.timeout = 20; in savage_setup_i2c_bus() 145 chan->algo.data = chan; in savage_setup_i2c_bus() 150 chan->algo.setsda(chan, 1); in savage_setup_i2c_bus() 151 chan->algo.setscl(chan, 1); in savage_setup_i2c_bus() 178 par->chan.algo.setsda = prosavage_gpio_setsda; in savagefb_create_i2c_busses() 179 par->chan.algo.setscl = prosavage_gpio_setscl; in savagefb_create_i2c_busses() 180 par->chan.algo.getsda = prosavage_gpio_getsda; in savagefb_create_i2c_busses() 181 par->chan.algo.getscl = prosavage_gpio_getscl; in savagefb_create_i2c_busses() [all …]
|
/linux-6.1.9/security/integrity/ima/ |
D | ima_crypto.c | 62 enum hash_algo algo; member 91 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm() argument 96 if (algo < 0 || algo >= HASH_ALGO__LAST) in ima_alloc_tfm() 97 algo = ima_hash_algo; in ima_alloc_tfm() 99 if (algo == ima_hash_algo) in ima_alloc_tfm() 103 if (ima_algo_array[i].tfm && ima_algo_array[i].algo == algo) in ima_alloc_tfm() 106 tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0); in ima_alloc_tfm() 110 hash_algo_name[algo], rc); in ima_alloc_tfm() 117 enum hash_algo algo; in ima_init_crypto() local 129 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto() [all …]
|
/linux-6.1.9/drivers/gpu/drm/gma500/ |
D | intel_i2c.c | 118 chan->base.algo_data = &chan->algo; in gma_i2c_create() 120 chan->algo.setsda = set_data; in gma_i2c_create() 121 chan->algo.setscl = set_clock; in gma_i2c_create() 122 chan->algo.getsda = get_data; in gma_i2c_create() 123 chan->algo.getscl = get_clock; in gma_i2c_create() 124 chan->algo.udelay = 20; in gma_i2c_create() 125 chan->algo.timeout = usecs_to_jiffies(2200); in gma_i2c_create() 126 chan->algo.data = chan; in gma_i2c_create()
|
D | oaktrail_lvds_i2c.c | 146 chan->base.algo_data = &chan->algo; in oaktrail_lvds_i2c_init() 148 chan->algo.setsda = set_data; in oaktrail_lvds_i2c_init() 149 chan->algo.setscl = set_clock; in oaktrail_lvds_i2c_init() 150 chan->algo.getsda = get_data; in oaktrail_lvds_i2c_init() 151 chan->algo.getscl = get_clock; in oaktrail_lvds_i2c_init() 152 chan->algo.udelay = 100; in oaktrail_lvds_i2c_init() 153 chan->algo.timeout = usecs_to_jiffies(2200); in oaktrail_lvds_i2c_init() 154 chan->algo.data = chan; in oaktrail_lvds_i2c_init()
|
D | intel_gmbus.c | 70 struct i2c_algo_bit_data algo; member 198 gpio->adapter.algo_data = &gpio->algo; in intel_gpio_create() 200 gpio->algo.setsda = set_data; in intel_gpio_create() 201 gpio->algo.setscl = set_clock; in intel_gpio_create() 202 gpio->algo.getsda = get_data; in intel_gpio_create() 203 gpio->algo.getscl = get_clock; in intel_gpio_create() 204 gpio->algo.udelay = I2C_RISEFALL_TIME; in intel_gpio_create() 205 gpio->algo.timeout = usecs_to_jiffies(2200); in intel_gpio_create() 206 gpio->algo.data = gpio; in intel_gpio_create() 236 ret = adapter->algo->master_xfer(adapter, msgs, num); in intel_i2c_quirk_xfer() [all …]
|
/linux-6.1.9/drivers/video/fbdev/i810/ |
D | i810-i2c.c | 96 chan->adapter.algo_data = &chan->algo; in i810_setup_i2c_bus() 98 chan->algo.setsda = i810i2c_setsda; in i810_setup_i2c_bus() 99 chan->algo.setscl = i810i2c_setscl; in i810_setup_i2c_bus() 100 chan->algo.getsda = i810i2c_getsda; in i810_setup_i2c_bus() 101 chan->algo.getscl = i810i2c_getscl; in i810_setup_i2c_bus() 102 chan->algo.udelay = 10; in i810_setup_i2c_bus() 103 chan->algo.timeout = (HZ/2); in i810_setup_i2c_bus() 104 chan->algo.data = chan; in i810_setup_i2c_bus() 109 chan->algo.setsda(chan, 1); in i810_setup_i2c_bus() 110 chan->algo.setscl(chan, 1); in i810_setup_i2c_bus()
|
/linux-6.1.9/include/linux/ |
D | genalloc.h | 63 genpool_algo_t algo; /* allocation function */ member 126 genpool_algo_t algo, void *data, void **owner); 131 return gen_pool_alloc_algo_owner(pool, size, pool->algo, pool->data, in gen_pool_alloc_owner() 136 size_t size, genpool_algo_t algo, void *data) in gen_pool_alloc_algo() argument 138 return gen_pool_alloc_algo_owner(pool, size, algo, data, NULL); in gen_pool_alloc_algo() 153 return gen_pool_alloc_algo(pool, size, pool->algo, pool->data); in gen_pool_alloc() 159 dma_addr_t *dma, genpool_algo_t algo, void *data); 164 dma_addr_t *dma, genpool_algo_t algo, void *data); 180 extern void gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo,
|
/linux-6.1.9/drivers/i2c/ |
D | i2c-mux.c | 34 struct i2c_algorithm algo; member 127 return parent->algo->functionality(parent); in i2c_mux_functionality() 308 if (parent->algo->master_xfer) { in i2c_mux_add_adapter() 310 priv->algo.master_xfer = i2c_mux_master_xfer; in i2c_mux_add_adapter() 312 priv->algo.master_xfer = __i2c_mux_master_xfer; in i2c_mux_add_adapter() 314 if (parent->algo->master_xfer_atomic) in i2c_mux_add_adapter() 315 priv->algo.master_xfer_atomic = priv->algo.master_xfer; in i2c_mux_add_adapter() 317 if (parent->algo->smbus_xfer) { in i2c_mux_add_adapter() 319 priv->algo.smbus_xfer = i2c_mux_smbus_xfer; in i2c_mux_add_adapter() 321 priv->algo.smbus_xfer = __i2c_mux_smbus_xfer; in i2c_mux_add_adapter() [all …]
|
/linux-6.1.9/lib/raid6/test/ |
D | test.c | 89 const struct raid6_calls *const *algo; in main() local 105 for (algo = raid6_algos; *algo; algo++) { in main() 106 if ((*algo)->valid && !(*algo)->valid()) in main() 109 raid6_call = **algo; in main()
|
/linux-6.1.9/drivers/video/fbdev/riva/ |
D | rivafb-i2c.c | 97 chan->adapter.algo_data = &chan->algo; in riva_setup_i2c_bus() 99 chan->algo.setsda = riva_gpio_setsda; in riva_setup_i2c_bus() 100 chan->algo.setscl = riva_gpio_setscl; in riva_setup_i2c_bus() 101 chan->algo.getsda = riva_gpio_getsda; in riva_setup_i2c_bus() 102 chan->algo.getscl = riva_gpio_getscl; in riva_setup_i2c_bus() 103 chan->algo.udelay = 40; in riva_setup_i2c_bus() 104 chan->algo.timeout = msecs_to_jiffies(2); in riva_setup_i2c_bus() 105 chan->algo.data = chan; in riva_setup_i2c_bus()
|
/linux-6.1.9/drivers/video/fbdev/aty/ |
D | radeon_i2c.c | 75 chan->adapter.algo_data = &chan->algo; in radeon_setup_i2c_bus() 77 chan->algo.setsda = radeon_gpio_setsda; in radeon_setup_i2c_bus() 78 chan->algo.setscl = radeon_gpio_setscl; in radeon_setup_i2c_bus() 79 chan->algo.getsda = radeon_gpio_getsda; in radeon_setup_i2c_bus() 80 chan->algo.getscl = radeon_gpio_getscl; in radeon_setup_i2c_bus() 81 chan->algo.udelay = 10; in radeon_setup_i2c_bus() 82 chan->algo.timeout = 20; in radeon_setup_i2c_bus() 83 chan->algo.data = chan; in radeon_setup_i2c_bus()
|
/linux-6.1.9/drivers/video/fbdev/nvidia/ |
D | nv_i2c.c | 92 chan->adapter.algo_data = &chan->algo; in nvidia_setup_i2c_bus() 94 chan->algo.setsda = nvidia_gpio_setsda; in nvidia_setup_i2c_bus() 95 chan->algo.setscl = nvidia_gpio_setscl; in nvidia_setup_i2c_bus() 96 chan->algo.getsda = nvidia_gpio_getsda; in nvidia_setup_i2c_bus() 97 chan->algo.getscl = nvidia_gpio_getscl; in nvidia_setup_i2c_bus() 98 chan->algo.udelay = 40; in nvidia_setup_i2c_bus() 99 chan->algo.timeout = msecs_to_jiffies(2); in nvidia_setup_i2c_bus() 100 chan->algo.data = chan; in nvidia_setup_i2c_bus()
|
/linux-6.1.9/drivers/crypto/virtio/ |
D | virtio_crypto_mgr.c | 185 uint32_t algo) in virtcrypto_get_dev_node() argument 197 virtcrypto_algo_is_supported(tmp_dev, service, algo)) { in virtcrypto_get_dev_node() 214 service, algo)) { in virtcrypto_get_dev_node() 286 uint32_t algo) in virtcrypto_algo_is_supported() argument 292 if (algo > 31) { in virtcrypto_algo_is_supported() 293 algo -= 32; in virtcrypto_algo_is_supported() 328 if (!(algo_mask & (1u << algo))) in virtcrypto_algo_is_supported()
|
/linux-6.1.9/drivers/video/fbdev/via/ |
D | via_i2c.c | 189 struct i2c_algo_bit_data *algo, in create_i2c_bus() argument 193 algo->setsda = via_i2c_setsda; in create_i2c_bus() 194 algo->setscl = via_i2c_setscl; in create_i2c_bus() 195 algo->getsda = via_i2c_getsda; in create_i2c_bus() 196 algo->getscl = via_i2c_getscl; in create_i2c_bus() 197 algo->udelay = 10; in create_i2c_bus() 198 algo->timeout = 2; in create_i2c_bus() 199 algo->data = adap_cfg; in create_i2c_bus() 205 adapter->algo_data = algo; in create_i2c_bus() 236 &i2c_stuff->algo, adap_cfg, in viafb_i2c_probe()
|
/linux-6.1.9/drivers/video/fbdev/intelfb/ |
D | intelfb_i2c.c | 113 chan->adapter.algo_data = &chan->algo; in intelfb_setup_i2c_bus() 115 chan->algo.setsda = intelfb_gpio_setsda; in intelfb_setup_i2c_bus() 116 chan->algo.setscl = intelfb_gpio_setscl; in intelfb_setup_i2c_bus() 117 chan->algo.getsda = intelfb_gpio_getsda; in intelfb_setup_i2c_bus() 118 chan->algo.getscl = intelfb_gpio_getscl; in intelfb_setup_i2c_bus() 119 chan->algo.udelay = 40; in intelfb_setup_i2c_bus() 120 chan->algo.timeout = 20; in intelfb_setup_i2c_bus() 121 chan->algo.data = chan; in intelfb_setup_i2c_bus()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | bus.c | 168 if ((bus->i2c.algo == &i2c_bit_algo) && (info[i].udelay != 0)) { in nvkm_i2c_bus_probe() 169 struct i2c_algo_bit_data *algo = bus->i2c.algo_data; in nvkm_i2c_bus_probe() local 171 info[i].udelay, algo->udelay); in nvkm_i2c_bus_probe() 172 orig_udelay = algo->udelay; in nvkm_i2c_bus_probe() 173 algo->udelay = info[i].udelay; in nvkm_i2c_bus_probe() 184 struct i2c_algo_bit_data *algo = bus->i2c.algo_data; in nvkm_i2c_bus_probe() local 185 algo->udelay = orig_udelay; in nvkm_i2c_bus_probe() 249 bus->i2c.algo = &nvkm_i2c_bus_algo; in nvkm_i2c_bus_ctor()
|
/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-amd756-s4882.c | 52 error = amd756_smbus.algo->smbus_xfer(adap, addr, flags, read_write, in amd756_access_virt0() 84 error = amd756_smbus.algo->smbus_xfer(adap, 0x18, 0, in amd756_access_channel() 92 error = amd756_smbus.algo->smbus_xfer(adap, addr, flags, read_write, in amd756_access_channel() 175 s4882_algo[0] = *(amd756_smbus.algo); in amd756_s4882_init() 178 s4882_adapter[0].algo = s4882_algo; in amd756_s4882_init() 181 s4882_algo[i] = *(amd756_smbus.algo); in amd756_s4882_init() 185 s4882_adapter[i].algo = s4882_algo+i; in amd756_s4882_init()
|
D | i2c-nforce2-s4985.c | 49 error = nforce2_smbus->algo->smbus_xfer(adap, addr, flags, read_write, in nforce2_access_virt0() 79 error = nforce2_smbus->algo->smbus_xfer(adap, 0x18, 0, in nforce2_access_channel() 87 error = nforce2_smbus->algo->smbus_xfer(adap, addr, flags, read_write, in nforce2_access_channel() 170 s4985_algo[0] = *(nforce2_smbus->algo); in nforce2_s4985_init() 173 s4985_adapter[0].algo = s4985_algo; in nforce2_s4985_init() 176 s4985_algo[i] = *(nforce2_smbus->algo); in nforce2_s4985_init() 180 s4985_adapter[i].algo = s4985_algo + i; in nforce2_s4985_init()
|
/linux-6.1.9/drivers/crypto/qat/qat_common/ |
D | icp_qat_hw.h | 119 #define ICP_QAT_HW_AUTH_CONFIG_BUILD(mode, algo, cmp_len) \ argument 121 ((algo & QAT_AUTH_ALGO_MASK) << QAT_AUTH_ALGO_BITPOS) | \ 122 (((algo >> 4) & QAT_AUTH_ALGO_SHA3_MASK) << \ 124 (((((algo == ICP_QAT_HW_AUTH_ALGO_SHA3_256) || \ 125 (algo == ICP_QAT_HW_AUTH_ALGO_SHA3_512)) ? 1 : 0) \ 251 #define ICP_QAT_HW_CIPHER_CONFIG_BUILD(mode, algo, convert, dir) \ argument 253 ((algo & QAT_CIPHER_ALGO_MASK) << QAT_CIPHER_ALGO_BITPOS) | \
|
/linux-6.1.9/drivers/i2c/algos/ |
D | Makefile | 6 obj-$(CONFIG_I2C_ALGOBIT) += i2c-algo-bit.o 7 obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o 8 obj-$(CONFIG_I2C_ALGOPCA) += i2c-algo-pca.o
|
/linux-6.1.9/lib/ |
D | genalloc.c | 162 pool->algo = gen_pool_first_fit; in gen_pool_create() 278 genpool_algo_t algo, void *data, void **owner) in gen_pool_alloc_algo_owner() argument 304 start_bit = algo(chunk->bits, end_bit, start_bit, in gen_pool_alloc_algo_owner() 343 return gen_pool_dma_alloc_algo(pool, size, dma, pool->algo, pool->data); in gen_pool_dma_alloc() 363 dma_addr_t *dma, genpool_algo_t algo, void *data) in gen_pool_dma_alloc_algo() argument 370 vaddr = gen_pool_alloc_algo(pool, size, algo, data); in gen_pool_dma_alloc_algo() 421 return gen_pool_dma_zalloc_algo(pool, size, dma, pool->algo, pool->data); in gen_pool_dma_zalloc() 441 dma_addr_t *dma, genpool_algo_t algo, void *data) in gen_pool_dma_zalloc_algo() argument 443 void *vaddr = gen_pool_dma_alloc_algo(pool, size, dma, algo, data); in gen_pool_dma_zalloc_algo() 622 void gen_pool_set_algo(struct gen_pool *pool, genpool_algo_t algo, void *data) in gen_pool_set_algo() argument [all …]
|