| /linux/include/trace/events/ |
| H A D | irq_matrix.h | 14 TP_PROTO(struct irq_matrix *matrix), 16 TP_ARGS(matrix), 26 __entry->online_maps = matrix->online_maps; 27 __entry->global_available = matrix->global_available; 28 __entry->global_reserved = matrix->global_reserved; 29 __entry->total_allocated = matrix->total_allocated; 39 TP_PROTO(int bit, struct irq_matrix *matrix), 41 TP_ARGS(bit, matrix), 53 __entry->online_maps = matrix->online_maps; 54 __entry->global_available = matrix->global_available; [all …]
|
| /linux/drivers/staging/media/atomisp/pci/isp/kernels/csc/csc_1.0/ |
| H A D | ia_css_csc.host.c | 33 to->m00 = (int16_t)from->matrix[0]; in ia_css_encode_cc() 34 to->m01 = (int16_t)from->matrix[1]; in ia_css_encode_cc() 35 to->m02 = (int16_t)from->matrix[2]; in ia_css_encode_cc() 36 to->m10 = (int16_t)from->matrix[3]; in ia_css_encode_cc() 37 to->m11 = (int16_t)from->matrix[4]; in ia_css_encode_cc() 38 to->m12 = (int16_t)from->matrix[5]; in ia_css_encode_cc() 39 to->m20 = (int16_t)from->matrix[6]; in ia_css_encode_cc() 40 to->m21 = (int16_t)from->matrix[7]; in ia_css_encode_cc() 41 to->m22 = (int16_t)from->matrix[8]; in ia_css_encode_cc() 113 config->matrix[0], in ia_css_cc_config_debug_dtrace() [all …]
|
| /linux/drivers/gpu/drm/vkms/ |
| H A D | vkms_formats.c | 273 struct pixel_argb_u16 argb_u16_from_yuv161616(const struct conversion_matrix *matrix, in argb_u16_from_yuv161616() argument 280 fp_y = drm_int2fixp((int)y - matrix->y_offset * 257); in argb_u16_from_yuv161616() 284 fp_r = drm_fixp_mul(matrix->matrix[0][0], fp_y) + in argb_u16_from_yuv161616() 285 drm_fixp_mul(matrix->matrix[0][1], fp_channel_1) + in argb_u16_from_yuv161616() 286 drm_fixp_mul(matrix->matrix[0][2], fp_channel_2); in argb_u16_from_yuv161616() 287 fp_g = drm_fixp_mul(matrix->matrix[1][0], fp_y) + in argb_u16_from_yuv161616() 288 drm_fixp_mul(matrix->matrix[1][1], fp_channel_1) + in argb_u16_from_yuv161616() 289 drm_fixp_mul(matrix->matrix[1][2], fp_channel_2); in argb_u16_from_yuv161616() 290 fp_b = drm_fixp_mul(matrix->matrix[2][0], fp_y) + in argb_u16_from_yuv161616() 291 drm_fixp_mul(matrix->matrix[2][1], fp_channel_1) + in argb_u16_from_yuv161616() [all …]
|
| H A D | vkms_formats.h | 14 struct conversion_matrix *matrix); 17 struct pixel_argb_u16 argb_u16_from_yuv161616(const struct conversion_matrix *matrix,
|
| /linux/drivers/s390/crypto/ |
| H A D | vfio_ap_ops.c | 157 if (test_bit_inv(AP_QID_CARD(apqn), matrix_mdev->matrix.apm) && in get_update_locks_by_apqn() 158 test_bit_inv(AP_QID_QUEUE(apqn), matrix_mdev->matrix.aqm)) { in get_update_locks_by_apqn() 646 struct ap_matrix *matrix) in vfio_ap_matrix_init() argument 648 matrix->apm_max = info->apxa ? info->na : 63; in vfio_ap_matrix_init() 649 matrix->aqm_max = info->apxa ? info->nd : 15; in vfio_ap_matrix_init() 650 matrix->adm_max = info->apxa ? info->nd : 15; in vfio_ap_matrix_init() 676 bitmap_and(matrix_mdev->shadow_apcb.adm, matrix_mdev->matrix.adm, in vfio_ap_mdev_filter_cdoms() 737 bitmap_and(matrix_mdev->shadow_apcb.apm, matrix_mdev->matrix.apm, in vfio_ap_mdev_filter_matrix() 739 bitmap_and(matrix_mdev->shadow_apcb.aqm, matrix_mdev->matrix.aqm, in vfio_ap_mdev_filter_matrix() 782 vfio_ap_matrix_init(&matrix_dev->info, &matrix_mdev->matrix); in vfio_ap_mdev_init_dev() [all …]
|
| /linux/drivers/of/ |
| H A D | of_numa.c | 80 const __be32 *matrix; in of_numa_parse_distance_map_v1() local 86 matrix = of_get_property(map, "distance-matrix", NULL); in of_numa_parse_distance_map_v1() 87 if (!matrix) { in of_numa_parse_distance_map_v1() 101 nodea = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1() 102 matrix++; in of_numa_parse_distance_map_v1() 103 nodeb = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1() 104 matrix++; in of_numa_parse_distance_map_v1() 105 distance = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1() 106 matrix++; in of_numa_parse_distance_map_v1()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-iio-mpu6050 | 7 This is mounting matrix for motion sensors. Mounting matrix 8 is a 3x3 unitary matrix. A typical mounting matrix would look like 11 positions relative to the board that holds these sensors. Identity matrix
|
| /linux/drivers/media/platform/amphion/ |
| H A D | vpu_color.c | 89 u32 vpu_color_cvrt_matrix_v2i(u32 matrix) in vpu_color_cvrt_matrix_v2i() argument 91 return vpu_helper_find_in_array_u8(colormatrixcoefs, ARRAY_SIZE(colormatrixcoefs), matrix); in vpu_color_cvrt_matrix_v2i() 94 u32 vpu_color_cvrt_matrix_i2v(u32 matrix) in vpu_color_cvrt_matrix_i2v() argument 96 return matrix < ARRAY_SIZE(colormatrixcoefs) ? colormatrixcoefs[matrix] : 0; in vpu_color_cvrt_matrix_i2v()
|
| /linux/Documentation/devicetree/bindings/iio/ |
| H A D | mount-matrix.txt | 5 * should we have HOWTO engineer a correct matrix for a new device (without comparing to a different… 10 Mounting matrix 12 The mounting matrix is a device tree property used to orient any device 16 The purpose of the mounting matrix is to translate the sensor frame of 17 reference into the device frame of reference using a translation matrix as 43 to this world. When using the mounting matrix, the sensor and device orientation 154 To achieve this, use the device tree property "mount-matrix" for the sensor. 156 This supplies a 3x3 rotation matrix in the strict linear algebraic sense, 159 multiplied by this matrix to give the proper vectors values in three-dimensional 165 The mounting matrix has the layout: [all …]
|
| /linux/samples/auxdisplay/ |
| H A D | cfag12864b-example.c | 151 static void cfag12864b_format(unsigned char * matrix) in cfag12864b_format() argument 160 if (matrix[i * CFAG12864B_WIDTH + in cfag12864b_format() 189 unsigned char matrix[CFAG12864B_WIDTH * CFAG12864B_HEIGHT]; in example() local 212 memset(matrix, 0, CFAG12864B_WIDTH * CFAG12864B_HEIGHT); in example() 215 matrix[j * CFAG12864B_WIDTH + i] = 1; in example() 216 cfag12864b_format(matrix); in example()
|
| /linux/drivers/media/i2c/ |
| H A D | ov7670.c | 1279 int matrix[CMATRIX_LEN]) in ov7670_store_cmatrix() 1294 if (matrix[i] < 0) { in ov7670_store_cmatrix() 1296 if (matrix[i] < -255) in ov7670_store_cmatrix() 1299 raw = (-1 * matrix[i]) & 0xff; in ov7670_store_cmatrix() 1301 if (matrix[i] > 255) in ov7670_store_cmatrix() 1304 raw = matrix[i] & 0xff; in ov7670_store_cmatrix() 1363 int matrix[CMATRIX_LEN], int sat, int hue) in ov7670_calc_cmatrix() 1370 matrix[i] = (info->fmt->cmatrix[i] * sat) >> 7; in ov7670_calc_cmatrix() 1377 memcpy(tmpmatrix, matrix, CMATRIX_LEN*sizeof(int)); in ov7670_calc_cmatrix() 1381 matrix[0] = (matrix[3]*sinth + matrix[0]*costh)/1000; in ov7670_calc_cmatrix() [all …]
|
| /linux/drivers/media/platform/amlogic/c3/isp/ |
| H A D | c3-isp-params.c | 414 ISP_CCM_MTX_00_01_MTX_00(ccm->matrix[0][0])); in c3_isp_params_cfg_ccm() 417 ISP_CCM_MTX_00_01_MTX_01(ccm->matrix[0][1])); in c3_isp_params_cfg_ccm() 420 ISP_CCM_MTX_02_03_MTX_02(ccm->matrix[0][2])); in c3_isp_params_cfg_ccm() 424 ISP_CCM_MTX_10_11_MTX_10(ccm->matrix[1][0])); in c3_isp_params_cfg_ccm() 427 ISP_CCM_MTX_10_11_MTX_11(ccm->matrix[1][1])); in c3_isp_params_cfg_ccm() 430 ISP_CCM_MTX_12_13_MTX_12(ccm->matrix[1][2])); in c3_isp_params_cfg_ccm() 434 ISP_CCM_MTX_20_21_MTX_20(ccm->matrix[2][0])); in c3_isp_params_cfg_ccm() 437 ISP_CCM_MTX_20_21_MTX_21(ccm->matrix[2][1])); in c3_isp_params_cfg_ccm() 440 ISP_CCM_MTX_22_23_RS_MTX_22(ccm->matrix[2][2])); in c3_isp_params_cfg_ccm() 463 ISP_CM0_COEF00_01_MTX_00(csc->matrix[0][0])); in c3_isp_params_cfg_csc() [all …]
|
| /linux/drivers/staging/media/atomisp/pci/ |
| H A D | atomisp_tables.h | 17 .matrix = {141, 18, 68, -40, -5, -19, 35, 4, 16}, 23 .matrix = {255, 29, 120, 0, 374, 342, 0, 672, -301}, 29 .matrix = {255, 29, 120, 0, 0, 0, 0, 0, 0},
|
| /linux/drivers/gpu/drm/amd/display/dc/basics/ |
| H A D | conversion.c | 80 uint16_t *matrix, in convert_float_matrix() argument 100 matrix[i] = (uint16_t)reg_value; in convert_float_matrix() 130 void convert_hw_matrix(struct fixed31_32 *matrix, in convert_hw_matrix() argument 135 matrix[i] = int_frac_to_fixed_point(reg[i], 2, 13); in convert_hw_matrix()
|
| H A D | conversion.h | 37 uint16_t *matrix, 44 void convert_hw_matrix(struct fixed31_32 *matrix,
|
| /linux/Documentation/arch/s390/ |
| H A D | vfio-ap.rst | 150 be received (DQAP instruction). The validity of an APQN is defined by the matrix 190 1. AP matrix device 202 domains, and control domains comprising the matrix for a KVM guest. 205 by a KVM guest's SIE state description to grant the guest access to a matrix 222 | +----------------> Device core +----------> matrix device | 240 | admin | | VFIO device core |---------> matrix | 252 2. The vfio-ap driver during its initialization will register a single 'matrix' 254 all vfio_ap mediated devices used to configure an AP matrix for a guest. 255 3. The /sys/devices/vfio_ap/matrix device is created by the device core 302 | | device | | | vfio_ap.ko |<-> matrix [all …]
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| H A D | cedrus_mpeg2.c | 59 const u8 *matrix; in cedrus_mpeg2_setup() local 72 matrix = quantisation->intra_quantiser_matrix; in cedrus_mpeg2_setup() 74 reg = VE_DEC_MPEG_IQMINPUT_WEIGHT(i, matrix[i]); in cedrus_mpeg2_setup() 81 matrix = quantisation->non_intra_quantiser_matrix; in cedrus_mpeg2_setup() 83 reg = VE_DEC_MPEG_IQMINPUT_WEIGHT(i, matrix[i]); in cedrus_mpeg2_setup()
|
| /linux/arch/arm/boot/dts/nvidia/ |
| H A D | tegra20-asus-sl101.dts | 12 mount-matrix = "1", "0", "0", 34 mount-matrix = "0", "1", "0", 40 mount-matrix = "1", "0", "0",
|
| H A D | tegra20-asus-tf101.dts | 12 mount-matrix = "-1", "0", "0", 34 mount-matrix = "0", "1", "0", 40 mount-matrix = "-1", "0", "0",
|
| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | tc3589x.txt | 50 - keypad,num-rows : number of rows in the matrix, see 51 bindings/input/matrix-keymap.txt 52 - keypad,num-columns : number of columns in the matrix, see 53 bindings/input/matrix-keymap.txt 55 bindings/input/matrix-keymap.txt
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | ext-ctrls-detect.rst | 40 ``V4L2_CID_DETECT_MD_THRESHOLD_GRID`` matrix control. 47 ``V4L2_CID_DETECT_MD_REGION_GRID`` matrix control. 55 ``V4L2_CID_DETECT_MD_THRESHOLD_GRID (__u16 matrix)`` 61 ``V4L2_CID_DETECT_MD_REGION_GRID (__u8 matrix)``
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | nvidia,tegra20-kbc.txt | 2 The key controller has maximum 24 pins to make matrix keypad. Any pin 15 devicetree/bindings/input/matrix-keymap.txt. 24 matrix-keyboard bindings: 27 matrix-keyboard-controller spec but to be used when the KEY_FN modifier
|
| /linux/drivers/gpu/drm/vkms/tests/ |
| H A D | vkms_format_test.c | 232 struct conversion_matrix matrix; in vkms_format_test_yuv_u16_to_argb_u16() local 235 (DRM_FORMAT_NV12, param->encoding, param->range, &matrix); in vkms_format_test_yuv_u16_to_argb_u16() 237 argb = argb_u16_from_yuv161616(&matrix, color->yuv.y, color->yuv.u, in vkms_format_test_yuv_u16_to_argb_u16()
|
| /linux/drivers/gpu/drm/nouveau/dispnv50/ |
| H A D | base907c.c | 144 u32 *val = &asyw->csc.matrix[j * 4 + i]; in base907c_csc() 150 *val = csc_drm_to_base(ctm->matrix[j * 3 + i]); in base907c_csc() 181 NVVAL(NV907C, SET_CSC_RED2RED, COEFF, asyw->csc.matrix[0]), in base907c_csc_set() 183 SET_CSC_GRN2RED, &asyw->csc.matrix[1], 11); in base907c_csc_set()
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_kms.c | 146 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[0]), in vc4_ctm_commit() 148 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[3]), in vc4_ctm_commit() 150 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[6]), in vc4_ctm_commit() 153 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[1]), in vc4_ctm_commit() 155 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[4]), in vc4_ctm_commit() 157 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[7]), in vc4_ctm_commit() 160 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[2]), in vc4_ctm_commit() 162 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[5]), in vc4_ctm_commit() 164 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[8]), in vc4_ctm_commit() 631 for (i = 0; i < ARRAY_SIZE(ctm->matrix); i++) { in vc4_ctm_atomic_check() [all …]
|