/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | iters.c | 399 int sum, row, col; in iter_nested_iters() local 404 bpf_for( col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 405 arr2d[row][col] = row * col; in iter_nested_iters() 414 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 415 arr2d_col_sums[col] = 0; in iter_nested_iters() 420 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 421 sum += arr2d[row][col]; in iter_nested_iters() 422 arr2d_row_sums[row] += arr2d[row][col]; in iter_nested_iters() 423 arr2d_col_sums[col] in iter_nested_iters() 467 int col; fill_inner_dimension() local 476 int sum = 0, col; sum_inner_dimension() local 491 int sum, row, col; iter_subprog_iters() local [all...] |
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | matrix_keypad.c | 47 int col, bool on) in __activate_col() 52 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col() 54 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col() 56 gpio_direction_input(pdata->col_gpios[col]); in __activate_col() 61 int col, bool on) in activate_col() 63 __activate_col(pdata, col, on); in activate_col() 72 int col; in activate_all_cols() local 74 for (col = 0; col < pdata->num_col_gpios; col in activate_all_cols() 46 __activate_col(const struct matrix_keypad_platform_data *pdata, int col, bool on) __activate_col() argument 60 activate_col(const struct matrix_keypad_platform_data *pdata, int col, bool on) activate_col() argument 122 int row, col, code; matrix_keypad_scan() local [all...] |
H A D | omap-keypad.c | 71 int col = 0; in omap_kp_scan_keypad() local 78 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad() 79 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad() 84 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad() 97 int col, row; in omap_kp_tasklet() local 103 for (col = 0; col < omap_kp_data->cols; col in omap_kp_tasklet() [all...] |
H A 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() 123 * 1s in matrix_volatile_state[col] means key pressures 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 in imx_keypad_fire_events() 425 int irq, error, i, row, col; imx_keypad_probe() local [all...] |
H A D | twl4030_keypad.c | 150 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument 158 if (col == 0xFF) in twl4030_col_xlate() 161 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate() 183 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local 185 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state() 188 check |= col; in twl4030_is_in_ghost_state() 198 int col, row; in twl4030_kp_scan() local 221 for (col = 0; col < k in twl4030_kp_scan() [all...] |
H A D | samsung-keypad.c | 82 unsigned int col; in samsung_keypad_scan() local 85 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan() 88 val &= ~(1 << col) << 8; in samsung_keypad_scan() 91 val &= ~(1 << col); in samsung_keypad_scan() 98 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan() 113 unsigned int col, row; in samsung_keypad_report() local 115 for (col = 0; col < keypa in samsung_keypad_report() 288 u32 row, col, key_code; samsung_keypad_parse_dt() local [all...] |
H A D | clps711x-keypad.c | 37 int col, row; in clps711x_keypad_poll() local 39 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll() 43 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll() 57 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll() 58 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll() 62 set_bit(col, data->last_state); in clps711x_keypad_poll() 66 clear_bit(col, data->last_state); in clps711x_keypad_poll()
|
H A 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() 191 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process() 293 int row, col; cros_ec_keyb_compute_valid_keys() local [all...] |
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | matrix_keypad.c | 48 int col, bool on) in __activate_col() 53 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col() 55 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col() 57 gpio_direction_input(pdata->col_gpios[col]); in __activate_col() 62 int col, bool on) in activate_col() 64 __activate_col(pdata, col, on); in activate_col() 73 int col; in activate_all_cols() local 75 for (col = 0; col < pdata->num_col_gpios; col in activate_all_cols() 47 __activate_col(const struct matrix_keypad_platform_data *pdata, int col, bool on) __activate_col() argument 61 activate_col(const struct matrix_keypad_platform_data *pdata, int col, bool on) activate_col() argument 123 int row, col, code; matrix_keypad_scan() local [all...] |
H A D | omap-keypad.c | 72 int col = 0; in omap_kp_scan_keypad() local 79 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad() 80 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad() 85 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad() 98 int col, row; in omap_kp_tasklet() local 104 for (col = 0; col < omap_kp_data->cols; col in omap_kp_tasklet() [all...] |
H A D | imx_keypad.c | 82 int col; in imx_keypad_scan_matrix() local 85 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix() 86 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix() 114 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix() 124 * 1s in matrix_volatile_state[col] means key pressures in imx_keypad_scan_matrix() 128 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; in imx_keypad_scan_matrix() 148 int row, col; in imx_keypad_fire_events() local 150 for (col in imx_keypad_fire_events() 422 int irq, error, i, row, col; imx_keypad_probe() local [all...] |
H A D | twl4030_keypad.c | 150 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument 158 if (col == 0xFF) in twl4030_col_xlate() 161 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate() 183 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local 185 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state() 188 check |= col; in twl4030_is_in_ghost_state() 198 int col, row; in twl4030_kp_scan() local 221 for (col = 0; col < k in twl4030_kp_scan() [all...] |
H A D | samsung-keypad.c | 82 unsigned int col; in samsung_keypad_scan() local 85 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan() 88 val &= ~(1 << col) << 8; in samsung_keypad_scan() 91 val &= ~(1 << col); in samsung_keypad_scan() 98 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan() 113 unsigned int col, row; in samsung_keypad_report() local 115 for (col = 0; col < keypa in samsung_keypad_report() 287 u32 row, col, key_code; samsung_keypad_parse_dt() local [all...] |
H A D | clps711x-keypad.c | 39 int col, row; in clps711x_keypad_poll() local 41 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll() 45 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll() 59 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll() 60 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll() 64 set_bit(col, data->last_state); in clps711x_keypad_poll() 68 clear_bit(col, data->last_state); in clps711x_keypad_poll()
|
H A D | cros_ec_keyb.c | 181 int col, row; in cros_ec_keyb_process() local 195 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process() 197 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); in cros_ec_keyb_process() 200 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process() 201 old_state = ckdev->old_kb_state[col] & (1 << row); in cros_ec_keyb_process() 205 row, col, new_state); in cros_ec_keyb_process() 212 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process() 314 int row, col; cros_ec_keyb_compute_valid_keys() local 540 unsigned int row, col, scancode; cros_ec_keyb_parse_vivaldi_physmap() local [all...] |
/kernel/linux/linux-6.6/arch/mips/loongson64/ |
H A D | numa.c | 53 static int __init compute_node_distance(int row, int col) in compute_node_distance() argument 57 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance() 60 if (col == row) in compute_node_distance() 70 int row, col; in init_topology_matrix() local 73 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix() 74 __node_distances[row][col] = -1; in init_topology_matrix() 77 for_each_online_node(col) { in init_topology_matrix() 78 __node_distances[row][col] in init_topology_matrix() [all...] |
/kernel/linux/linux-5.10/drivers/tty/vt/ |
H A D | vc_screen.c | 251 unsigned int nr, row, col, maxcol = vc->vc_cols; in vcs_read_buf_uni() local 260 col = pos % maxcol; in vcs_read_buf_uni() 261 nr = maxcol - col; in vcs_read_buf_uni() 265 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr); in vcs_read_buf_uni() 269 col = 0; in vcs_read_buf_uni() 280 unsigned int col, maxcol = vc->vc_cols; in vcs_read_buf_noattr() local 283 col = pos % maxcol; in vcs_read_buf_noattr() 284 pos += maxcol - col; in vcs_read_buf_noattr() 288 if (++col == maxcol) { in vcs_read_buf_noattr() 290 col in vcs_read_buf_noattr() 301 unsigned int col, maxcol = vc->vc_cols; vcs_read_buf() local 482 unsigned int col, maxcol = vc->vc_cols; vcs_write_buf_noattr() local 522 unsigned int col, maxcol = vc->vc_cols; vcs_write_buf() local [all...] |
/kernel/linux/linux-6.6/drivers/tty/vt/ |
H A D | vc_screen.c | 251 unsigned int nr, row, col, maxcol = vc->vc_cols; in vcs_read_buf_uni() local 260 col = pos % maxcol; in vcs_read_buf_uni() 261 nr = maxcol - col; in vcs_read_buf_uni() 265 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr); in vcs_read_buf_uni() 269 col = 0; in vcs_read_buf_uni() 280 unsigned int col, maxcol = vc->vc_cols; in vcs_read_buf_noattr() local 283 col = pos % maxcol; in vcs_read_buf_noattr() 284 pos += maxcol - col; in vcs_read_buf_noattr() 288 if (++col == maxcol) { in vcs_read_buf_noattr() 290 col in vcs_read_buf_noattr() 301 unsigned int col, maxcol = vc->vc_cols; vcs_read_buf() local 482 unsigned int col, maxcol = vc->vc_cols; vcs_write_buf_noattr() local 522 unsigned int col, maxcol = vc->vc_cols; vcs_write_buf() local [all...] |
/kernel/linux/linux-5.10/arch/mips/loongson64/ |
H A D | numa.c | 70 static int __init compute_node_distance(int row, int col) in compute_node_distance() argument 74 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance() 77 if (col == row) in compute_node_distance() 87 int row, col; in init_topology_matrix() local 90 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix() 91 __node_distances[row][col] = -1; in init_topology_matrix() 94 for_each_online_node(col) { in init_topology_matrix() 95 __node_distances[row][col] in init_topology_matrix() [all...] |
/kernel/linux/linux-5.10/arch/mips/sgi-ip27/ |
H A D | ip27-memory.c | 161 nasid_t row, col; in init_topology_matrix() local 164 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix() 165 __node_distances[row][col] = -1; in init_topology_matrix() 168 for_each_online_node(col) { in init_topology_matrix() 169 __node_distances[row][col] = in init_topology_matrix() 170 compute_node_distance(row, col); in init_topology_matrix() 182 nasid_t row, col; in dump_topology() local 187 for_each_online_node(col) in dump_topology() [all...] |
/kernel/linux/linux-6.6/arch/mips/sgi-ip27/ |
H A D | ip27-memory.c | 161 nasid_t row, col; in init_topology_matrix() local 164 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix() 165 __node_distances[row][col] = -1; in init_topology_matrix() 168 for_each_online_node(col) { in init_topology_matrix() 169 __node_distances[row][col] = in init_topology_matrix() 170 compute_node_distance(row, col); in init_topology_matrix() 182 nasid_t row, col; in dump_topology() local 187 for_each_online_node(col) in dump_topology() [all...] |
/kernel/linux/linux-5.10/scripts/kconfig/ |
H A D | gconf.c | 574 GtkTreeViewColumn *col; in on_show_name1_activate() local 577 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate() 578 if (col) in on_show_name1_activate() 579 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate() 585 GtkTreeViewColumn *col; in on_show_range1_activate() local 588 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate() 589 if (col) in on_show_range1_activate() 590 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate() 591 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate() 592 if (col) in on_show_range1_activate() 603 GtkTreeViewColumn *col; on_show_data1_activate() local 806 change_sym_value(struct menu *menu, gint col) change_sym_value() argument 867 GtkTreeViewColumn *col; column2index() local 888 gint col; on_treeview2_button_press_event() local 945 gint col; on_treeview2_key_press_event() local [all...] |
/kernel/linux/linux-6.6/scripts/kconfig/ |
H A D | gconf.c | 570 GtkTreeViewColumn *col; in on_show_name1_activate() local 573 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate() 574 if (col) in on_show_name1_activate() 575 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate() 581 GtkTreeViewColumn *col; in on_show_range1_activate() local 584 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate() 585 if (col) in on_show_range1_activate() 586 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate() 587 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate() 588 if (col) in on_show_range1_activate() 599 GtkTreeViewColumn *col; on_show_data1_activate() local 799 change_sym_value(struct menu *menu, gint col) change_sym_value() argument 860 GtkTreeViewColumn *col; column2index() local 881 gint col; on_treeview2_button_press_event() local 938 gint col; on_treeview2_key_press_event() local [all...] |
/kernel/linux/linux-5.10/sound/pci/cs46xx/ |
H A D | dsp_spos.c | 549 int i, j, col; in cs46xx_dsp_proc_task_tree_read() local 557 for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { in cs46xx_dsp_proc_task_tree_read() 559 if (col == 4) { in cs46xx_dsp_proc_task_tree_read() 561 col = 0; in cs46xx_dsp_proc_task_tree_read() 610 unsigned int i, col = 0; in cs46xx_dsp_proc_parameter_dump_read() local 614 for (i = 0;i < DSP_PARAMETER_BYTE_SIZE; i += sizeof(u32),col ++) { in cs46xx_dsp_proc_parameter_dump_read() 615 if (col == 4) { in cs46xx_dsp_proc_parameter_dump_read() 617 col = 0; in cs46xx_dsp_proc_parameter_dump_read() 621 col in cs46xx_dsp_proc_parameter_dump_read() 637 int i,col = 0; cs46xx_dsp_proc_sample_dump_read() local [all...] |
/kernel/linux/linux-6.6/sound/pci/cs46xx/ |
H A D | dsp_spos.c | 549 int i, j, col; in cs46xx_dsp_proc_task_tree_read() local 557 for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { in cs46xx_dsp_proc_task_tree_read() 559 if (col == 4) { in cs46xx_dsp_proc_task_tree_read() 561 col = 0; in cs46xx_dsp_proc_task_tree_read() 610 unsigned int i, col = 0; in cs46xx_dsp_proc_parameter_dump_read() local 614 for (i = 0;i < DSP_PARAMETER_BYTE_SIZE; i += sizeof(u32),col ++) { in cs46xx_dsp_proc_parameter_dump_read() 615 if (col == 4) { in cs46xx_dsp_proc_parameter_dump_read() 617 col = 0; in cs46xx_dsp_proc_parameter_dump_read() 622 col in cs46xx_dsp_proc_parameter_dump_read() 638 int i,col = 0; cs46xx_dsp_proc_sample_dump_read() local [all...] |