/linux-6.3-rc2/lib/raid6/ |
A D | algos.c | 124 const struct raid6_recov_calls *const *algo; in raid6_choose_recov() local 127 for (best = NULL, algo = raid6_recov_algos; *algo; algo++) in raid6_choose_recov() 128 if (!best || (*algo)->priority > best->priority) in raid6_choose_recov() 129 if (!(*algo)->valid || (*algo)->valid()) in raid6_choose_recov() 130 best = *algo; in raid6_choose_recov() 148 const struct raid6_calls *const *algo; in raid6_choose_gen() local 151 for (bestgenperf = 0, best = NULL, algo = raid6_algos; *algo; algo++) { in raid6_choose_gen() 153 if ((*algo)->valid && !(*algo)->valid()) in raid6_choose_gen() 157 best = *algo; in raid6_choose_gen() 169 (*algo)->gen_syndrome(disks, PAGE_SIZE, *dptrs); in raid6_choose_gen() [all …]
|
/linux-6.3-rc2/net/ipv6/ |
A 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 127 if (!algo) in __do_hmac() 364 algo = &hmac_algos[i]; in seg6_hmac_init_algo() 366 if (!algo->tfms) in seg6_hmac_init_algo() 383 if (!algo->shashs) in seg6_hmac_init_algo() 417 algo = &hmac_algos[i]; in seg6_hmac_exit() [all …]
|
/linux-6.3-rc2/drivers/crypto/keembay/ |
A D | ocs-hcu.c | 131 switch (algo) { in ocs_hcu_num_chains() 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() 347 if (algo != OCS_HCU_ALGO_SHA256 && algo != OCS_HCU_ALGO_SHA224 && in ocs_hcu_hw_cfg() 348 algo != OCS_HCU_ALGO_SHA384 && algo != OCS_HCU_ALGO_SHA512 && in ocs_hcu_hw_cfg() 349 algo != OCS_HCU_ALGO_SM3) in ocs_hcu_hw_cfg() 361 cfg |= algo << HCU_MODE_ALGO_SHIFT; in ocs_hcu_hw_cfg() [all …]
|
A 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.3-rc2/drivers/video/fbdev/savage/ |
A 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() 196 par->chan.algo.setsda = savage4_gpio_setsda; in savagefb_create_i2c_busses() 197 par->chan.algo.setscl = savage4_gpio_setscl; in savagefb_create_i2c_busses() 198 par->chan.algo.getsda = savage4_gpio_getsda; in savagefb_create_i2c_busses() [all …]
|
/linux-6.3-rc2/security/integrity/ima/ |
A D | ima_crypto.c | 62 enum hash_algo algo; member 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() 117 enum hash_algo algo; in ima_init_crypto() local 130 if (algo == HASH_ALGO_SHA1) in ima_init_crypto() 133 if (algo == ima_hash_algo) in ima_init_crypto() 155 ima_algo_array[i].algo = algo; in ima_init_crypto() 295 if (algo < 0 || algo >= HASH_ALGO__LAST) in ima_alloc_atfm() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/gma500/ |
A 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()
|
A 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()
|
A 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.3-rc2/drivers/video/fbdev/i810/ |
A 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.3-rc2/include/linux/ |
A 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.3-rc2/drivers/i2c/ |
A 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() 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() 323 if (parent->algo->smbus_xfer_atomic) in i2c_mux_add_adapter() 324 priv->algo.smbus_xfer_atomic = priv->algo.smbus_xfer; in i2c_mux_add_adapter() [all …]
|
/linux-6.3-rc2/lib/raid6/test/ |
A 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.3-rc2/drivers/video/fbdev/riva/ |
A 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.3-rc2/drivers/video/fbdev/aty/ |
A 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.3-rc2/drivers/video/fbdev/nvidia/ |
A 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.3-rc2/drivers/crypto/virtio/ |
A 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.3-rc2/drivers/video/fbdev/via/ |
A 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.3-rc2/drivers/video/fbdev/intelfb/ |
A 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.3-rc2/drivers/crypto/qat/qat_common/ |
A 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) | \ 364 algo, depth, filetype) \ argument 369 (((algo) & QAT_COMPRESSION_ALGO_MASK) << \
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
A 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.3-rc2/drivers/i2c/busses/ |
A 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()
|
A 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.3-rc2/drivers/i2c/algos/ |
A 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.3-rc2/lib/ |
A D | genalloc.c | 160 pool->algo = gen_pool_first_fit; in gen_pool_create() 276 genpool_algo_t algo, void *data, void **owner) in gen_pool_alloc_algo_owner() argument 302 start_bit = algo(chunk->bits, end_bit, start_bit, in gen_pool_alloc_algo_owner() 341 return gen_pool_dma_alloc_algo(pool, size, dma, pool->algo, pool->data); in gen_pool_dma_alloc() 361 dma_addr_t *dma, genpool_algo_t algo, void *data) in gen_pool_dma_alloc_algo() argument 368 vaddr = gen_pool_alloc_algo(pool, size, algo, data); in gen_pool_dma_alloc_algo() 439 dma_addr_t *dma, genpool_algo_t algo, void *data) in gen_pool_dma_zalloc_algo() argument 441 void *vaddr = gen_pool_dma_alloc_algo(pool, size, dma, algo, data); in gen_pool_dma_zalloc_algo() 624 pool->algo = algo; in gen_pool_set_algo() 625 if (!pool->algo) in gen_pool_set_algo() [all …]
|