/kernel/linux/linux-5.10/drivers/staging/sm750fb/ |
H A D | sm750_accel.c | 21 static inline void write_dpr(struct lynx_accel *accel, int offset, u32 regValue) in write_dpr() argument 23 writel(regValue, accel->dprBase + offset); in write_dpr() 26 static inline u32 read_dpr(struct lynx_accel *accel, int offset) in read_dpr() argument 28 return readl(accel->dprBase + offset); in read_dpr() 31 static inline void write_dpPort(struct lynx_accel *accel, u32 data) in write_dpPort() argument 33 writel(data, accel->dpPortBase); in write_dpPort() 36 void sm750_hw_de_init(struct lynx_accel *accel) in sm750_hw_de_init() argument 41 write_dpr(accel, DE_MASKS, 0xFFFFFFFF); in sm750_hw_de_init() 53 write_dpr(accel, DE_STRETCH_FORMAT, in sm750_hw_de_init() 54 (read_dpr(accel, DE_STRETCH_FORMA in sm750_hw_de_init() 76 sm750_hw_set2dformat(struct lynx_accel *accel, int fmt) sm750_hw_set2dformat() argument 88 sm750_hw_fillrect(struct lynx_accel *accel, u32 base, u32 pitch, u32 Bpp, u32 x, u32 y, u32 width, u32 height, u32 color, u32 rop) sm750_hw_fillrect() argument 148 sm750_hw_copyarea(struct lynx_accel *accel, unsigned int sBase, unsigned int sPitch, unsigned int sx, unsigned int sy, unsigned int dBase, unsigned int dPitch, unsigned int Bpp, unsigned int dx, unsigned int dy, unsigned int width, unsigned int height, unsigned int rop2) sm750_hw_copyarea() argument 287 deGetTransparency(struct lynx_accel *accel) deGetTransparency() argument 317 sm750_hw_imageblit(struct lynx_accel *accel, const char *pSrcbuf, u32 srcDelta, u32 startBit, u32 dBase, u32 dPitch, u32 bytePerPixel, u32 dx, u32 dy, u32 width, u32 height, u32 fColor, u32 bColor, u32 rop2) sm750_hw_imageblit() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/sm750fb/ |
H A D | sm750_accel.c | 20 static inline void write_dpr(struct lynx_accel *accel, int offset, u32 regValue) in write_dpr() argument 22 writel(regValue, accel->dprBase + offset); in write_dpr() 25 static inline u32 read_dpr(struct lynx_accel *accel, int offset) in read_dpr() argument 27 return readl(accel->dprBase + offset); in read_dpr() 30 static inline void write_dpPort(struct lynx_accel *accel, u32 data) in write_dpPort() argument 32 writel(data, accel->dpPortBase); in write_dpPort() 35 void sm750_hw_de_init(struct lynx_accel *accel) in sm750_hw_de_init() argument 40 write_dpr(accel, DE_MASKS, 0xFFFFFFFF); in sm750_hw_de_init() 52 write_dpr(accel, DE_STRETCH_FORMAT, in sm750_hw_de_init() 53 (read_dpr(accel, DE_STRETCH_FORMA in sm750_hw_de_init() 75 sm750_hw_set2dformat(struct lynx_accel *accel, int fmt) sm750_hw_set2dformat() argument 87 sm750_hw_fillrect(struct lynx_accel *accel, u32 base, u32 pitch, u32 Bpp, u32 x, u32 y, u32 width, u32 height, u32 color, u32 rop) sm750_hw_fillrect() argument 148 sm750_hw_copyarea(struct lynx_accel *accel, unsigned int sBase, unsigned int sPitch, unsigned int sx, unsigned int sy, unsigned int dBase, unsigned int dPitch, unsigned int Bpp, unsigned int dx, unsigned int dy, unsigned int width, unsigned int height, unsigned int rop2) sm750_hw_copyarea() argument 287 deGetTransparency(struct lynx_accel *accel) deGetTransparency() argument 318 sm750_hw_imageblit(struct lynx_accel *accel, const char *pSrcbuf, u32 srcDelta, u32 startBit, u32 dBase, u32 dPitch, u32 bytePerPixel, u32 dx, u32 dy, u32 width, u32 height, u32 fColor, u32 bColor, u32 rop2) sm750_hw_imageblit() argument [all...] |
/third_party/libinput/src/ |
H A D | filter-touchpad-x230.c | 53 /* for the Lenovo x230 custom accel. do not touch */ 71 double accel; /* unitless factor */ member 80 * @param accel The acceleration filter 88 acceleration_profile(struct pointer_accelerator_x230 *accel, in acceleration_profile() argument 91 return accel->profile(&accel->base, data, velocity, time); in acceleration_profile() 98 * @param accel The acceleration filter 107 calculate_acceleration(struct pointer_accelerator_x230 *accel, in calculate_acceleration() argument 117 factor = acceleration_profile(accel, data, velocity, time); in calculate_acceleration() 118 factor += acceleration_profile(accel, dat in calculate_acceleration() 134 struct pointer_accelerator_x230 *accel = accelerator_filter_x230() local 173 struct pointer_accelerator_x230 *accel = accelerator_filter_constant_x230() local 191 struct pointer_accelerator_x230 *accel = accelerator_restart_x230() local 212 struct pointer_accelerator_x230 *accel = accelerator_destroy_x230() local [all...] |
H A D | filter-mouse.c | 57 double accel; /* unitless factor */ member 66 * @param accel The acceleration filter 74 calculate_acceleration_factor(struct pointer_accelerator *accel, in calculate_acceleration_factor() argument 88 trackers_feed(&accel->trackers, &unaccel, time); in calculate_acceleration_factor() 89 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor() 91 accel_factor = calculate_acceleration_simpsons(&accel->base, in calculate_acceleration_factor() 92 accel->profile, in calculate_acceleration_factor() 95 accel->last_velocity, /* normalized coords */ in calculate_acceleration_factor() 97 accel->last_velocity = velocity; in calculate_acceleration_factor() 107 struct pointer_accelerator *accel in accelerator_filter_linear() local 141 struct pointer_accelerator *accel = accelerator_filter_noop() local 152 struct pointer_accelerator *accel = accelerator_restart() local 161 struct pointer_accelerator *accel = accelerator_destroy() local [all...] |
H A D | filter-low-dpi.c | 57 double accel; /* unitless factor */ member 66 * The threshold/max accel depends on the DPI, the smaller the DPI the 82 double max_accel = accel_filter->accel; /* unitless factor */ in pointer_accel_profile_linear_low_dpi() 107 calculate_acceleration_factor(struct pointer_accelerator_low_dpi *accel, in calculate_acceleration_factor() argument 115 trackers_feed(&accel->trackers, unaccelerated, time); in calculate_acceleration_factor() 116 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor() 117 accel_factor = calculate_acceleration_simpsons(&accel->base, in calculate_acceleration_factor() 118 accel->profile, in calculate_acceleration_factor() 121 accel->last_velocity, in calculate_acceleration_factor() 123 accel in calculate_acceleration_factor() 133 struct pointer_accelerator_low_dpi *accel = accelerator_filter_low_dpi() local 165 struct pointer_accelerator_low_dpi *accel = accelerator_restart() local 174 struct pointer_accelerator_low_dpi *accel = accelerator_destroy() local [all...] |
H A D | filter-touchpad.c | 54 double accel; /* unitless factor */ member 64 * @param accel The acceleration filter 72 calculate_acceleration_factor(struct touchpad_accelerator *accel, in calculate_acceleration_factor() argument 80 trackers_feed(&accel->trackers, unaccelerated, time); in calculate_acceleration_factor() 81 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor() 82 accel_factor = calculate_acceleration_simpsons(&accel->base, in calculate_acceleration_factor() 83 accel->profile, in calculate_acceleration_factor() 86 accel->last_velocity, in calculate_acceleration_factor() 88 accel->last_velocity = velocity; in calculate_acceleration_factor() 98 struct touchpad_accelerator *accel in accelerator_filter_touchpad() local 148 struct touchpad_accelerator *accel = touchpad_constant_filter() local 173 struct touchpad_accelerator *accel = touchpad_accelerator_restart() local 182 struct touchpad_accelerator *accel = touchpad_accelerator_destroy() local [all...] |
H A D | filter-touchpad-flat.c | 51 struct touchpad_accelerator_flat *accel = in accelerator_filter_touchpad_flat() local 58 factor = accel->factor; in accelerator_filter_touchpad_flat() 59 normalized = normalize_for_dpi(unaccelerated, accel->dpi); in accelerator_filter_touchpad_flat() 103 struct touchpad_accelerator_flat *accel = in accelerator_destroy_touchpad_flat() local 106 free(accel); in accelerator_destroy_touchpad_flat()
|
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_acceleration_structure.c | 77 struct anv_acceleration_structure *accel; in anv_CreateAccelerationStructureKHR() local 79 accel = vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*accel), 8, in anv_CreateAccelerationStructureKHR() 81 if (accel == NULL) in anv_CreateAccelerationStructureKHR() 84 vk_object_base_init(&device->vk, &accel->base, in anv_CreateAccelerationStructureKHR() 87 accel->size = pCreateInfo->size; in anv_CreateAccelerationStructureKHR() 88 accel->address = anv_address_add(buffer->address, pCreateInfo->offset); in anv_CreateAccelerationStructureKHR() 90 *pAccelerationStructure = anv_acceleration_structure_to_handle(accel); in anv_CreateAccelerationStructureKHR() 102 ANV_FROM_HANDLE(anv_acceleration_structure, accel, accelerationStructure); in anv_DestroyAccelerationStructureKHR() 104 if (!accel) in anv_DestroyAccelerationStructureKHR() [all...] |
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | classmate-laptop.c | 207 struct cmpc_accel *accel; in cmpc_accel_sensitivity_show_v4() local 211 accel = dev_get_drvdata(&inputdev->dev); in cmpc_accel_sensitivity_show_v4() 213 return sprintf(buf, "%d\n", accel->sensitivity); in cmpc_accel_sensitivity_show_v4() 222 struct cmpc_accel *accel; in cmpc_accel_sensitivity_store_v4() local 228 accel = dev_get_drvdata(&inputdev->dev); in cmpc_accel_sensitivity_store_v4() 238 accel->sensitivity = sensitivity; in cmpc_accel_sensitivity_store_v4() 256 struct cmpc_accel *accel; in cmpc_accel_g_select_show_v4() local 260 accel = dev_get_drvdata(&inputdev->dev); in cmpc_accel_g_select_show_v4() 262 return sprintf(buf, "%d\n", accel->g_select); in cmpc_accel_g_select_show_v4() 271 struct cmpc_accel *accel; in cmpc_accel_g_select_store_v4() local 302 struct cmpc_accel *accel; cmpc_accel_open_v4() local 320 struct cmpc_accel *accel; cmpc_accel_close_v4() local 343 struct cmpc_accel *accel; cmpc_accel_suspend_v4() local 357 struct cmpc_accel *accel; cmpc_accel_resume_v4() local 380 struct cmpc_accel *accel; cmpc_accel_add_v4() local 550 struct cmpc_accel *accel; cmpc_accel_sensitivity_show() local 565 struct cmpc_accel *accel; cmpc_accel_sensitivity_store() local 621 struct cmpc_accel *accel; cmpc_accel_add() local [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/ |
H A D | classmate-laptop.c | 207 struct cmpc_accel *accel; in cmpc_accel_sensitivity_show_v4() local 211 accel = dev_get_drvdata(&inputdev->dev); in cmpc_accel_sensitivity_show_v4() 213 return sprintf(buf, "%d\n", accel->sensitivity); in cmpc_accel_sensitivity_show_v4() 222 struct cmpc_accel *accel; in cmpc_accel_sensitivity_store_v4() local 228 accel = dev_get_drvdata(&inputdev->dev); in cmpc_accel_sensitivity_store_v4() 238 accel->sensitivity = sensitivity; in cmpc_accel_sensitivity_store_v4() 256 struct cmpc_accel *accel; in cmpc_accel_g_select_show_v4() local 260 accel = dev_get_drvdata(&inputdev->dev); in cmpc_accel_g_select_show_v4() 262 return sprintf(buf, "%d\n", accel->g_select); in cmpc_accel_g_select_show_v4() 271 struct cmpc_accel *accel; in cmpc_accel_g_select_store_v4() local 302 struct cmpc_accel *accel; cmpc_accel_open_v4() local 320 struct cmpc_accel *accel; cmpc_accel_close_v4() local 343 struct cmpc_accel *accel; cmpc_accel_suspend_v4() local 357 struct cmpc_accel *accel; cmpc_accel_resume_v4() local 380 struct cmpc_accel *accel; cmpc_accel_add_v4() local 550 struct cmpc_accel *accel; cmpc_accel_sensitivity_show() local 565 struct cmpc_accel *accel; cmpc_accel_sensitivity_store() local 621 struct cmpc_accel *accel; cmpc_accel_add() local [all...] |
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/ |
H A D | inv_icm42600_buffer.c | 36 struct inv_icm42600_fifo_sensor_data accel; member 43 ssize_t inv_icm42600_fifo_decode_packet(const void *packet, const void **accel, in inv_icm42600_fifo_decode_packet() argument 53 *accel = NULL; in inv_icm42600_fifo_decode_packet() 68 /* accel + gyro */ in inv_icm42600_fifo_decode_packet() 71 *accel = &pack2->accel; in inv_icm42600_fifo_decode_packet() 78 /* accel only */ in inv_icm42600_fifo_decode_packet() 80 *accel = &pack1->data; in inv_icm42600_fifo_decode_packet() 89 *accel = NULL; in inv_icm42600_fifo_decode_packet() 110 period_accel = inv_icm42600_odr_to_period(st->conf.accel in inv_icm42600_buffer_update_fifo_period() 452 const void *accel, *gyro, *timestamp; inv_icm42600_buffer_fifo_read() local [all...] |
H A D | inv_icm42600_core.c | 60 .accel = { 139 enum inv_icm42600_sensor_mode accel, in inv_icm42600_set_pwr_mgmt0() 143 enum inv_icm42600_sensor_mode oldaccel = st->conf.accel.mode; in inv_icm42600_set_pwr_mgmt0() 150 if (gyro == oldgyro && accel == oldaccel && temp == oldtemp) in inv_icm42600_set_pwr_mgmt0() 154 INV_ICM42600_PWR_MGMT0_ACCEL(accel); in inv_icm42600_set_pwr_mgmt0() 162 st->conf.accel.mode = accel; in inv_icm42600_set_pwr_mgmt0() 172 /* accel startup time */ in inv_icm42600_set_pwr_mgmt0() 173 if (accel != oldaccel && oldaccel == INV_ICM42600_SENSOR_MODE_OFF) { in inv_icm42600_set_pwr_mgmt0() 206 struct inv_icm42600_sensor_conf *oldconf = &st->conf.accel; in inv_icm42600_set_accel_conf() 137 inv_icm42600_set_pwr_mgmt0(struct inv_icm42600_state *st, enum inv_icm42600_sensor_mode gyro, enum inv_icm42600_sensor_mode accel, bool temp, unsigned int *sleep_ms) inv_icm42600_set_pwr_mgmt0() argument [all...] |
/kernel/linux/linux-6.6/drivers/iio/imu/inv_icm42600/ |
H A D | inv_icm42600_buffer.c | 37 struct inv_icm42600_fifo_sensor_data accel; member 44 ssize_t inv_icm42600_fifo_decode_packet(const void *packet, const void **accel, in inv_icm42600_fifo_decode_packet() argument 54 *accel = NULL; in inv_icm42600_fifo_decode_packet() 69 /* accel + gyro */ in inv_icm42600_fifo_decode_packet() 72 *accel = &pack2->accel; in inv_icm42600_fifo_decode_packet() 79 /* accel only */ in inv_icm42600_fifo_decode_packet() 81 *accel = &pack1->data; in inv_icm42600_fifo_decode_packet() 90 *accel = NULL; in inv_icm42600_fifo_decode_packet() 111 period_accel = inv_icm42600_odr_to_period(st->conf.accel in inv_icm42600_buffer_update_fifo_period() 453 const void *accel, *gyro, *timestamp; inv_icm42600_buffer_fifo_read() local [all...] |
H A D | inv_icm42600_core.c | 60 .accel = { 144 enum inv_icm42600_sensor_mode accel, in inv_icm42600_set_pwr_mgmt0() 148 enum inv_icm42600_sensor_mode oldaccel = st->conf.accel.mode; in inv_icm42600_set_pwr_mgmt0() 155 if (gyro == oldgyro && accel == oldaccel && temp == oldtemp) in inv_icm42600_set_pwr_mgmt0() 159 INV_ICM42600_PWR_MGMT0_ACCEL(accel); in inv_icm42600_set_pwr_mgmt0() 167 st->conf.accel.mode = accel; in inv_icm42600_set_pwr_mgmt0() 177 /* accel startup time */ in inv_icm42600_set_pwr_mgmt0() 178 if (accel != oldaccel && oldaccel == INV_ICM42600_SENSOR_MODE_OFF) { in inv_icm42600_set_pwr_mgmt0() 211 struct inv_icm42600_sensor_conf *oldconf = &st->conf.accel; in inv_icm42600_set_accel_conf() 142 inv_icm42600_set_pwr_mgmt0(struct inv_icm42600_state *st, enum inv_icm42600_sensor_mode gyro, enum inv_icm42600_sensor_mode accel, bool temp, unsigned int *sleep_ms) inv_icm42600_set_pwr_mgmt0() argument [all...] |
/third_party/skia/third_party/externals/freetype/src/pcf/ |
H A D | pcfread.c | 1195 PCF_Accel accel = &face->accel; in pcf_get_accel() local 1225 if ( FT_STREAM_READ_FIELDS( pcf_accel_msb_header, accel ) ) in pcf_get_accel() 1230 if ( FT_STREAM_READ_FIELDS( pcf_accel_header, accel ) ) in pcf_get_accel() 1236 accel->noOverlap ? "yes" : "no", in pcf_get_accel() 1237 accel->constantMetrics ? "yes" : "no", in pcf_get_accel() 1238 accel->terminalFont ? "yes" : "no", in pcf_get_accel() 1239 accel->constantWidth ? "yes" : "no" )); in pcf_get_accel() 1241 accel->inkInside ? "yes" : "no", in pcf_get_accel() 1242 accel in pcf_get_accel() [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
H A D | matroxfb_accel.c | 116 int accel; in matrox_cfbX_init() local 127 accel = (minfo->fbcon.var.accel_flags & FB_ACCELF_TEXT) == FB_ACCELF_TEXT; in matrox_cfbX_init() 134 if (accel && !(mpitch & 1)) { in matrox_cfbX_init() 142 if (accel) { in matrox_cfbX_init() 153 if (accel) { in matrox_cfbX_init() 161 if (accel) { in matrox_cfbX_init() 169 if (accel) { in matrox_cfbX_init() 193 minfo->accel.m_dwg_rect = M_DWG_TRAP | M_DWG_SOLID | M_DWG_ARZERO | M_DWG_SGNZERO | M_DWG_SHIFTZERO; in matrox_cfbX_init() 194 if (isMilleniumII(minfo)) minfo->accel.m_dwg_rect |= M_DWG_TRANSC; in matrox_cfbX_init() 195 minfo->accel in matrox_cfbX_init() [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/matrox/ |
H A D | matroxfb_accel.c | 116 int accel; in matrox_cfbX_init() local 127 accel = (minfo->fbcon.var.accel_flags & FB_ACCELF_TEXT) == FB_ACCELF_TEXT; in matrox_cfbX_init() 134 if (accel && !(mpitch & 1)) { in matrox_cfbX_init() 142 if (accel) { in matrox_cfbX_init() 153 if (accel) { in matrox_cfbX_init() 161 if (accel) { in matrox_cfbX_init() 169 if (accel) { in matrox_cfbX_init() 193 minfo->accel.m_dwg_rect = M_DWG_TRAP | M_DWG_SOLID | M_DWG_ARZERO | M_DWG_SGNZERO | M_DWG_SHIFTZERO; in matrox_cfbX_init() 194 if (isMilleniumII(minfo)) minfo->accel.m_dwg_rect |= M_DWG_TRANSC; in matrox_cfbX_init() 195 minfo->accel in matrox_cfbX_init() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_c62x/ |
H A D | adf_c62x_hw_data.c | 30 u32 accel; in get_accel_mask() local 32 accel = ~(fuses | straps) >> ADF_C62X_ACCELERATORS_REG_OFFSET; in get_accel_mask() 33 accel &= ADF_C62X_ACCELERATORS_MASK; in get_accel_mask() 35 return accel; in get_accel_mask() 44 int accel; in get_ae_mask() local 46 /* If an accel is disabled, then disable the corresponding two AEs */ in get_ae_mask() 49 for_each_set_bit(accel, &disabled, ADF_C62X_MAX_ACCELERATORS) in get_ae_mask() 50 straps |= ae_disable << (accel << 1); in get_ae_mask()
|
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_c3xxx/ |
H A D | adf_c3xxx_hw_data.c | 30 u32 accel; in get_accel_mask() local 32 accel = ~(fuses | straps) >> ADF_C3XXX_ACCELERATORS_REG_OFFSET; in get_accel_mask() 33 accel &= ADF_C3XXX_ACCELERATORS_MASK; in get_accel_mask() 35 return accel; in get_accel_mask() 44 int accel; in get_ae_mask() local 46 /* If an accel is disabled, then disable the corresponding two AEs */ in get_ae_mask() 49 for_each_set_bit(accel, &disabled, ADF_C3XXX_MAX_ACCELERATORS) in get_ae_mask() 50 straps |= ae_disable << (accel << 1); in get_ae_mask()
|
/kernel/linux/linux-6.6/drivers/iio/accel/ |
H A D | Makefile | 29 obj-$(CONFIG_BMC150_ACCEL) += bmc150-accel-core.o 30 obj-$(CONFIG_BMC150_ACCEL_I2C) += bmc150-accel-i2c.o 31 obj-$(CONFIG_BMC150_ACCEL_SPI) += bmc150-accel-spi.o 32 obj-$(CONFIG_BMI088_ACCEL) += bmi088-accel-core.o 33 obj-$(CONFIG_BMI088_ACCEL_SPI) += bmi088-accel-spi.o 42 obj-$(CONFIG_HID_SENSOR_ACCEL_3D) += hid-sensor-accel-3d.o
|
H A D | dmard09.c | 56 s16 accel; in dmard09_read_raw() local 73 accel = get_unaligned_le16(&buf[chan->address]); in dmard09_read_raw() 76 accel <<= 4; in dmard09_read_raw() 77 accel >>= 7; in dmard09_read_raw() 79 *val = accel; in dmard09_read_raw()
|
/third_party/libinput/tools/ |
H A D | ptraccel-debug.c | 42 struct normalized_coords accel; in print_ptraccel_deltas() local 59 accel = filter_dispatch(filter, &motion, NULL, time); in print_ptraccel_deltas() 61 printf("%.2f %.3f\n", i, accel.x); in print_ptraccel_deltas() 72 struct normalized_coords accel; in print_ptraccel_movement() local 103 accel = filter_dispatch(filter, &motion, NULL, time); in print_ptraccel_movement() 105 printf("%d %.3f %.3f\n", i, accel.x, dx); in print_ptraccel_movement() 118 struct normalized_coords accel; in print_ptraccel_sequence() local 138 accel = filter_dispatch(filter, &motion, NULL, time); in print_ptraccel_sequence() 140 printf("%d %.3f %.3f\n", i, accel.x, *dx); in print_ptraccel_sequence() 160 printf("# set ylabel \"raw accel facto in print_accel_func() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_c3xxx/ |
H A D | adf_c3xxx_hw_data.c | 24 u32 accel; in get_accel_mask() local 26 accel = ~(fuses | straps) >> ADF_C3XXX_ACCELERATORS_REG_OFFSET; in get_accel_mask() 27 accel &= ADF_C3XXX_ACCELERATORS_MASK; in get_accel_mask() 29 return accel; in get_accel_mask() 38 int accel; in get_ae_mask() local 40 /* If an accel is disabled, then disable the corresponding two AEs */ in get_ae_mask() 43 for_each_set_bit(accel, &disabled, ADF_C3XXX_MAX_ACCELERATORS) in get_ae_mask() 44 straps |= ae_disable << (accel << 1); in get_ae_mask()
|
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_c62x/ |
H A D | adf_c62x_hw_data.c | 29 u32 accel; in get_accel_mask() local 31 accel = ~(fuses | straps) >> ADF_C62X_ACCELERATORS_REG_OFFSET; in get_accel_mask() 32 accel &= ADF_C62X_ACCELERATORS_MASK; in get_accel_mask() 34 return accel; in get_accel_mask() 43 int accel; in get_ae_mask() local 45 /* If an accel is disabled, then disable the corresponding two AEs */ in get_ae_mask() 48 for_each_set_bit(accel, &disabled, ADF_C62X_MAX_ACCELERATORS) in get_ae_mask() 49 straps |= ae_disable << (accel << 1); in get_ae_mask()
|
/kernel/linux/linux-5.10/drivers/iio/accel/ |
H A D | dmard09.c | 56 s16 accel; in dmard09_read_raw() local 73 accel = get_unaligned_le16(&buf[chan->address]); in dmard09_read_raw() 76 accel <<= 4; in dmard09_read_raw() 77 accel >>= 7; in dmard09_read_raw() 79 *val = accel; in dmard09_read_raw()
|