/Linux-v4.19/drivers/uwb/ |
D | allocator.c | 26 int col, mas, safe_mas, unsafe_mas; in uwb_rsv_fill_column_alloc() local 31 for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { in uwb_rsv_fill_column_alloc() 37 if (bm[col * UWB_MAS_PER_ZONE + mas] == 0) { in uwb_rsv_fill_column_alloc() 48 bm[col * UWB_MAS_PER_ZONE + mas] = c; in uwb_rsv_fill_column_alloc() 56 int mas, col, rows; in uwb_rsv_fill_row_alloc() local 72 for (col = 0; col < UWB_NUM_ZONES; col++) { in uwb_rsv_fill_row_alloc() 73 if (bm[col * UWB_NUM_ZONES + mas] != UWB_RSV_MAS_NOT_AVAIL) { in uwb_rsv_fill_row_alloc() 74 bm[col * UWB_NUM_ZONES + mas] = c; in uwb_rsv_fill_row_alloc() 143 int deep, set, col, start_col_deep, col_start_set; in uwb_rsv_find_best_column_set() local 160 for (col = start_col; col < UWB_NUM_ZONES; col += interval) { in uwb_rsv_find_best_column_set() [all …]
|
/Linux-v4.19/drivers/input/keyboard/ |
D | omap-keypad.c | 84 int col = 0; in omap_kp_scan_keypad() local 91 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad() 92 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad() 97 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad() 110 int col, row; in omap_kp_tasklet() local 116 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet() 117 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 118 key_down |= new_state[col]; in omap_kp_tasklet() 127 printk(KERN_INFO "omap-keypad: key %d-%d %s\n", col, in omap_kp_tasklet() 128 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() [all …]
|
D | matrix_keypad.c | 51 int col, bool on) in __activate_col() argument 56 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col() 58 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col() 60 gpio_direction_input(pdata->col_gpios[col]); in __activate_col() 65 int col, bool on) in activate_col() argument 67 __activate_col(pdata, col, on); in activate_col() 76 int col; in activate_all_cols() local 78 for (col = 0; col < pdata->num_col_gpios; col++) in activate_all_cols() 79 __activate_col(pdata, col, on); in activate_all_cols() 126 int row, col, code; in matrix_keypad_scan() local [all …]
|
D | imx_keypad.c | 81 int col; in imx_keypad_scan_matrix() local 84 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix() 85 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix() 113 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix() 127 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; in imx_keypad_scan_matrix() 147 int row, col; in imx_keypad_fire_events() local 149 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_fire_events() 153 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_fire_events() 156 bits_changed = keypad->matrix_stable_state[col] ^ in imx_keypad_fire_events() 157 matrix_volatile_state[col]; in imx_keypad_fire_events() [all …]
|
D | twl4030_keypad.c | 163 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument 171 if (col == 0xFF) in twl4030_col_xlate() 174 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate() 196 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local 198 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state() 201 check |= col; in twl4030_is_in_ghost_state() 211 int col, row; in twl4030_kp_scan() local 234 for (col = 0; col < kp->n_cols + 1; col++) { in twl4030_kp_scan() 237 if (!(changed & (1 << col))) in twl4030_kp_scan() 240 dev_dbg(kp->dbg_dev, "key [%d:%d] %s\n", row, col, in twl4030_kp_scan() [all …]
|
D | clps711x-keypad.c | 42 int col, row; in clps711x_keypad_poll() local 44 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll() 48 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll() 62 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll() 63 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll() 67 set_bit(col, data->last_state); in clps711x_keypad_poll() 71 clear_bit(col, data->last_state); in clps711x_keypad_poll()
|
D | samsung-keypad.c | 86 unsigned int col; in samsung_keypad_scan() local 89 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan() 92 val &= ~(1 << col) << 8; in samsung_keypad_scan() 95 val &= ~(1 << col); in samsung_keypad_scan() 102 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan() 117 unsigned int col, row; in samsung_keypad_report() local 119 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report() 120 changed = row_state[col] ^ keypad->row_state[col]; in samsung_keypad_report() 121 key_down |= row_state[col]; in samsung_keypad_report() 129 pressed = row_state[col] & (1 << row); in samsung_keypad_report() [all …]
|
D | cros_ec_keyb.c | 160 int col, row; in cros_ec_keyb_process() local 174 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process() 176 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); in cros_ec_keyb_process() 179 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process() 180 old_state = ckdev->old_kb_state[col] & (1 << row); in cros_ec_keyb_process() 184 row, col, new_state); in cros_ec_keyb_process() 190 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process() 292 int row, col; in cros_ec_keyb_compute_valid_keys() local 299 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys() 301 code = keymap[MATRIX_SCAN_CODE(row, col, row_shift)]; in cros_ec_keyb_compute_valid_keys() [all …]
|
D | locomokbd.c | 102 static inline void locomokbd_activate_col(unsigned long membase, int col) in locomokbd_activate_col() argument 107 nset = 0xFF & ~(1 << col); in locomokbd_activate_col() 112 static inline void locomokbd_reset_col(unsigned long membase, int col) in locomokbd_reset_col() argument 116 nbset = ((0xFF & ~(1 << col)) << 8) + 0xFF; in locomokbd_reset_col() 129 unsigned int row, col, rowd; in locomokbd_scankeyboard() local 139 for (col = 0; col < KB_COLS; col++) { in locomokbd_scankeyboard() 141 locomokbd_activate_col(membase, col); in locomokbd_scankeyboard() 148 scancode = SCANCODE(col, row); in locomokbd_scankeyboard() 174 locomokbd_reset_col(membase, col); in locomokbd_scankeyboard()
|
D | nspire-keypad.c | 59 int row, col; in nspire_keypad_irq() local 81 for (col = 0; col < KEYPAD_BITMASK_COLS; col++) { in nspire_keypad_irq() 82 if (!(changed & (1U << col))) in nspire_keypad_irq() 85 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in nspire_keypad_irq() 88 bits & (1U << col)); in nspire_keypad_irq()
|
D | stmpe-keypad.c | 178 int col = data & STMPE_KPC_DATA_COL; in stmpe_keypad_irq() local 179 int code = MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); in stmpe_keypad_irq() 316 int row, col; in stmpe_keypad_fill_used_pins() local 319 for (col = 0; col < used_cols; col++) { in stmpe_keypad_fill_used_pins() 320 int code = MATRIX_SCAN_CODE(row, col, in stmpe_keypad_fill_used_pins() 324 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
|
D | pmic8xxx-keypad.c | 116 static u8 pmic8xxx_col_state(struct pmic8xxx_kp *kp, u8 col) in pmic8xxx_col_state() argument 119 if (col == 0x00) in pmic8xxx_col_state() 122 return col & ((1 << kp->num_cols) - 1); in pmic8xxx_col_state() 230 int row, col, code; in __pmic8xxx_kp_scan_matrix() local 238 for (col = 0; col < kp->num_cols; col++) { in __pmic8xxx_kp_scan_matrix() 239 if (!(bits_changed & (1 << col))) in __pmic8xxx_kp_scan_matrix() 242 dev_dbg(kp->dev, "key [%d:%d] %s\n", row, col, in __pmic8xxx_kp_scan_matrix() 243 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix() 246 code = MATRIX_SCAN_CODE(row, col, PM8XXX_ROW_SHIFT); in __pmic8xxx_kp_scan_matrix() 251 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix()
|
/Linux-v4.19/drivers/tty/vt/ |
D | vc_screen.c | 232 int attr, uni_mode, row, col, maxcol, viewed; in vcs_read() local 309 col = p % maxcol; in vcs_read() 310 nr = maxcol - col; in vcs_read() 315 row, col, nr); in vcs_read() 319 col = 0; in vcs_read() 324 col = p % maxcol; in vcs_read() 325 p += maxcol - col; in vcs_read() 328 if (++col == maxcol) { in vcs_read() 330 col = 0; in vcs_read() 374 col = p % maxcol; in vcs_read() [all …]
|
/Linux-v4.19/arch/mips/loongson64/loongson-3/ |
D | numa.c | 72 static int __init compute_node_distance(int row, int col) in compute_node_distance() argument 76 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance() 79 if (col == row) in compute_node_distance() 89 int row, col; in init_topology_matrix() local 92 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix() 93 __node_distances[row][col] = -1; in init_topology_matrix() 96 for_each_online_node(col) { in init_topology_matrix() 97 __node_distances[row][col] = in init_topology_matrix() 98 compute_node_distance(row, col); in init_topology_matrix()
|
/Linux-v4.19/sound/pci/cs46xx/ |
D | dsp_spos.c | 562 int i, j, col; in cs46xx_dsp_proc_task_tree_read() local 570 for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { in cs46xx_dsp_proc_task_tree_read() 572 if (col == 4) { in cs46xx_dsp_proc_task_tree_read() 574 col = 0; in cs46xx_dsp_proc_task_tree_read() 623 unsigned int i, col = 0; in cs46xx_dsp_proc_parameter_dump_read() local 627 for (i = 0;i < DSP_PARAMETER_BYTE_SIZE; i += sizeof(u32),col ++) { in cs46xx_dsp_proc_parameter_dump_read() 628 if (col == 4) { in cs46xx_dsp_proc_parameter_dump_read() 630 col = 0; in cs46xx_dsp_proc_parameter_dump_read() 634 col = 0; in cs46xx_dsp_proc_parameter_dump_read() 638 if (col == 0) { in cs46xx_dsp_proc_parameter_dump_read() [all …]
|
/Linux-v4.19/arch/mips/sgi-ip27/ |
D | ip27-memory.c | 181 cnodeid_t row, col; in init_topology_matrix() local 184 for (col = 0; col < MAX_COMPACT_NODES; col++) in init_topology_matrix() 185 __node_distances[row][col] = -1; in init_topology_matrix() 189 for_each_online_node(col) { in init_topology_matrix() 190 nasid2 = COMPACT_TO_NASID_NODEID(col); in init_topology_matrix() 191 __node_distances[row][col] = in init_topology_matrix() 205 cnodeid_t row, col; in dump_topology() local 210 for_each_online_node(col) in dump_topology() 211 printk("%02d ", col); in dump_topology() 215 for_each_online_node(col) in dump_topology() [all …]
|
/Linux-v4.19/scripts/kconfig/ |
D | gconf.c | 575 GtkTreeViewColumn *col; in on_show_name1_activate() local 578 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate() 579 if (col) in on_show_name1_activate() 580 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate() 586 GtkTreeViewColumn *col; in on_show_range1_activate() local 589 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate() 590 if (col) in on_show_range1_activate() 591 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate() 592 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate() 593 if (col) in on_show_range1_activate() [all …]
|
/Linux-v4.19/drivers/gpu/drm/mgag200/ |
D | mgag200_cursor.c | 46 unsigned int i, row, col; in mga_crtc_cursor_set() local 194 for (col = 0; col < 64; col++) { in mga_crtc_cursor_set() 195 this_colour = ioread32(bo->kmap.virtual + 4*(col + 64*row)); in mga_crtc_cursor_set() 198 this_row[47 - col/8] |= 0x80>>(col%8); in mga_crtc_cursor_set() 205 if (col % 2) in mga_crtc_cursor_set() 206 this_row[col/2] |= i<<4; in mga_crtc_cursor_set() 208 this_row[col/2] |= i; in mga_crtc_cursor_set()
|
/Linux-v4.19/drivers/staging/rtlwifi/phydm/rtl8822b/ |
D | phydm_hal_api8822b.c | 389 u8 row, col; in phydm_ccapar_by_rfe_8822b() local 419 col = 0; in phydm_ccapar_by_rfe_8822b() 421 col = 1; in phydm_ccapar_by_rfe_8822b() 425 col = 2; in phydm_ccapar_by_rfe_8822b() 427 col = 3; in phydm_ccapar_by_rfe_8822b() 433 reg82c = (cca_efem[row][col] != 0) ? cca_efem[row][col] : in phydm_ccapar_by_rfe_8822b() 435 reg830 = (cca_efem[row + 1][col] != 0) ? in phydm_ccapar_by_rfe_8822b() 436 cca_efem[row + 1][col] : in phydm_ccapar_by_rfe_8822b() 438 reg838 = (cca_efem[row + 2][col] != 0) ? in phydm_ccapar_by_rfe_8822b() 439 cca_efem[row + 2][col] : in phydm_ccapar_by_rfe_8822b() [all …]
|
/Linux-v4.19/include/linux/input/ |
D | matrix_keypad.h | 12 #define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\ argument 13 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\ 20 #define MATRIX_SCAN_CODE(row, col, row_shift) (((row) << (row_shift)) + (col)) argument
|
/Linux-v4.19/arch/x86/boot/ |
D | video.c | 147 int col; in display_menu() local 157 for (col = 0; col < modes_per_line; col++) in display_menu() 161 col = 0; in display_menu() 181 col++; in display_menu() 182 if (col >= modes_per_line) { in display_menu() 184 col = 0; in display_menu() 195 if (col) in display_menu()
|
/Linux-v4.19/drivers/media/usb/pwc/ |
D | pwc-uncompress.c | 38 int n, line, col; in pwc_decompress() local 79 for (col = 0; col < pdev->width; col += 4) { in pwc_decompress()
|
/Linux-v4.19/drivers/gpu/drm/udl/ |
D | udl_fb.c | 44 #define DLO_RGB_GETRED(col) (uint8_t)((col) & 0xFF) argument 47 #define DLO_RGB_GETGRN(col) (uint8_t)(((col) >> 8) & 0xFF) argument 50 #define DLO_RGB_GETBLU(col) (uint8_t)(((col) >> 16) & 0xFF) argument 62 static uint8_t rgb8(uint32_t col) 64 uint8_t red = DLO_RGB_GETRED(col); 65 uint8_t grn = DLO_RGB_GETGRN(col); 66 uint8_t blu = DLO_RGB_GETBLU(col); 71 static uint16_t rgb16(uint32_t col) 73 uint8_t red = DLO_RGB_GETRED(col); 74 uint8_t grn = DLO_RGB_GETGRN(col); [all …]
|
/Linux-v4.19/drivers/video/fbdev/core/ |
D | fbcon.h | 123 int col; in attr_col_ec() local 137 col = mono_col(info); in attr_col_ec() 141 fg = is_mono01 ? col : 0; in attr_col_ec() 142 bg = is_mono01 ? 0 : col; in attr_col_ec() 145 fg = is_mono01 ? 0 : col; in attr_col_ec() 146 bg = is_mono01 ? col : 0; in attr_col_ec()
|
/Linux-v4.19/Documentation/media/uapi/v4l/ |
D | colorspaces-defs.rst | 49 - See :ref:`col-smpte-170m`. 51 - See :ref:`col-rec709`. 53 - See :ref:`col-srgb`. 55 - See :ref:`col-adobergb`. 57 - See :ref:`col-bt2020`. 59 - See :ref:`col-dcip3`. 61 - See :ref:`col-smpte-240m`. 63 - See :ref:`col-sysm`. 65 - See :ref:`col-sysbg`. 67 - See :ref:`col-jpeg`.
|