/openbmc/qemu/tests/unit/ |
H A D | test-uuid.c | 183 int data_idx = g_random_int_range(0, 15); in test_uuid_hash() local 185 if (uuid.data[data_idx] < 0xFF) { in test_uuid_hash() 186 uuid.data[data_idx]++; in test_uuid_hash() 188 uuid.data[data_idx]--; in test_uuid_hash()
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | virtio-rng.c | 29 unsigned int data_idx; member 56 vi->data_idx = 0; in request_entropy() 70 memcpy(buf, vi->data + vi->data_idx, size); in copy_data() 71 vi->data_idx += size; in copy_data() 181 vi->data_idx = 0; in remove_common()
|
/openbmc/linux/drivers/phy/socionext/ |
H A D | phy-uniphier-usb2.c | 114 int ret, data_idx, ndatas; in uniphier_u2phy_probe() local 156 ret = of_property_read_u32(child, "reg", &data_idx); in uniphier_u2phy_probe() 162 if (data_idx < ndatas) in uniphier_u2phy_probe() 163 priv->data = &data[data_idx]; in uniphier_u2phy_probe()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-designware-master.c | 316 int msg_wrt_idx, msg_itr_lmt, buf_len, data_idx; in amd_i2c_dw_xfer_quirk() local 365 for (data_idx = 0; data_idx < buf_len; data_idx++) { in amd_i2c_dw_xfer_quirk() 367 tx_buf[data_idx] = val; in amd_i2c_dw_xfer_quirk() 408 int msg_idx, buf_len, data_idx, ret; in txgbe_i2c_dw_xfer_quirk() local 421 for (data_idx = 0; data_idx < buf_len; data_idx++) { in txgbe_i2c_dw_xfer_quirk() 422 if (msg_idx == num_msgs - 1 && data_idx == buf_len - 1) in txgbe_i2c_dw_xfer_quirk() 433 buf[data_idx] = val; in txgbe_i2c_dw_xfer_quirk() 440 buf[data_idx] | stop); in txgbe_i2c_dw_xfer_quirk()
|
H A D | i2c-mlxbf.c | 738 u8 op_idx, data_idx, data_len, write_len, read_len; in mlxbf_i2c_smbus_start_transaction() local 749 data_idx = 0; in mlxbf_i2c_smbus_start_transaction() 773 data_desc[data_idx++] = addr; in mlxbf_i2c_smbus_start_transaction() 794 if (data_idx + operation->length > in mlxbf_i2c_smbus_start_transaction() 799 memcpy(data_desc + data_idx, in mlxbf_i2c_smbus_start_transaction() 801 data_idx += operation->length; in mlxbf_i2c_smbus_start_transaction()
|
/openbmc/linux/drivers/crypto/aspeed/ |
H A D | aspeed-acry.c | 216 int data_idx; in aspeed_acry_rsa_sg_copy_to_buffer() local 223 data_idx = acry_dev->data_byte_mapping[i]; in aspeed_acry_rsa_sg_copy_to_buffer() 224 buf[data_idx] = dram_buffer[j]; in aspeed_acry_rsa_sg_copy_to_buffer() 229 data_idx = acry_dev->data_byte_mapping[i]; in aspeed_acry_rsa_sg_copy_to_buffer() 230 buf[data_idx] = 0; in aspeed_acry_rsa_sg_copy_to_buffer() 308 int data_idx; in aspeed_acry_rsa_transfer() local 320 data_idx = acry_dev->data_byte_mapping[j]; in aspeed_acry_rsa_transfer() 321 if (readb(sram_buffer + data_idx) == 0 && leading_zero) { in aspeed_acry_rsa_transfer() 325 dram_buffer[i] = readb(sram_buffer + data_idx); in aspeed_acry_rsa_transfer()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-hisi-sfc-v3xx.c | 286 int data_idx, addr_idx, cmd_idx; in hisi_sfc_v3xx_start_bus() local 288 data_idx = (op->data.buswidth - 1) / 2; in hisi_sfc_v3xx_start_bus() 291 buswidth_mode = hisi_sfc_v3xx_io_modes[data_idx][addr_idx][cmd_idx]; in hisi_sfc_v3xx_start_bus()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | d3.c | 2151 int data_idx, status_idx = 0; in iwl_mvm_convert_gtk_v3() local 2158 for (data_idx = 0; data_idx < ARRAY_SIZE(status->gtk); data_idx++) { in iwl_mvm_convert_gtk_v3() 2159 if (!(data[data_idx].key_len)) in iwl_mvm_convert_gtk_v3() 2161 status->gtk[status_idx].len = data[data_idx].key_len; in iwl_mvm_convert_gtk_v3() 2162 status->gtk[status_idx].flags = data[data_idx].key_flags; in iwl_mvm_convert_gtk_v3() 2166 memcpy(status->gtk[status_idx].key, data[data_idx].key, in iwl_mvm_convert_gtk_v3() 2167 sizeof(data[data_idx].key)); in iwl_mvm_convert_gtk_v3() 2174 data[data_idx].tkip_mic_key, in iwl_mvm_convert_gtk_v3() 2175 sizeof(data[data_idx].tkip_mic_key)); in iwl_mvm_convert_gtk_v3()
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | ads7846.c | 137 int (*filter)(void *data, int data_idx, int *val); 644 static int ads7846_debounce_filter(void *ads, int data_idx, int *val) in ads7846_debounce_filter() argument 686 static int ads7846_no_filter(void *ads, int data_idx, int *val) in ads7846_no_filter() argument
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_main.c | 3465 const size_t data_idx = i * 8; in igc_write_flex_filter_ll() local 3468 (data[data_idx + 0] << 0) | in igc_write_flex_filter_ll() 3469 (data[data_idx + 1] << 8) | in igc_write_flex_filter_ll() 3470 (data[data_idx + 2] << 16) | in igc_write_flex_filter_ll() 3471 (data[data_idx + 3] << 24); in igc_write_flex_filter_ll() 3473 (data[data_idx + 4] << 0) | in igc_write_flex_filter_ll() 3474 (data[data_idx + 5] << 8) | in igc_write_flex_filter_ll() 3475 (data[data_idx + 6] << 16) | in igc_write_flex_filter_ll() 3476 (data[data_idx + 7] << 24); in igc_write_flex_filter_ll()
|
/openbmc/linux/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v2_hw.c | 3501 int data_idx = phy_no + 3 - (phy_no % 4) * 2; in write_gpio_v2_hw() local 3503 writeb(write_data[data_idx], reg_addr); in write_gpio_v2_hw()
|