/linux/tools/gpio/ |
H A D | gpio-hammer.c | 25 int hammer_device(const char *device_name, unsigned int *lines, int num_lines, in hammer_device() argument 39 ret = gpiotools_request_line(device_name, lines, num_lines, in hammer_device() 48 for (i = 0; i < num_lines; i++) in hammer_device() 56 for (i = 0; i < num_lines; i++) { in hammer_device() 58 if (i != (num_lines - 1)) in hammer_device() 62 for (i = 0; i < num_lines; i++) { in hammer_device() 64 if (i != (num_lines - 1)) in hammer_device() 73 for (i = 0; i < num_lines; i++) in hammer_device() 91 for (i = 0; i < num_lines; i++) { in hammer_device() 94 if (i != (num_lines - 1)) in hammer_device() [all …]
|
H A D | gpio-event-mon.c | 30 unsigned int num_lines, in monitor_device() argument 51 ret = gpiotools_request_line(device_name, lines, num_lines, config, in monitor_device() 61 for (i = 0; i < num_lines; i++) in monitor_device() 71 if (num_lines == 1) { in monitor_device() 77 for (i = 1; i < num_lines - 1; i++) in monitor_device() 82 for (i = 1; i < num_lines - 1; i++) in monitor_device() 171 unsigned int num_lines = 0; in main() local 188 if (num_lines >= GPIO_V2_LINES_MAX) { in main() 192 lines[num_lines] = strtoul(optarg, NULL, 10); in main() 193 num_lines++; in main() [all …]
|
H A D | gpio-utils.c | 58 unsigned int num_lines, in gpiotools_request_line() argument 81 for (i = 0; i < num_lines; i++) in gpiotools_request_line() 86 req.num_lines = num_lines; in gpiotools_request_line() 206 unsigned int num_lines, unsigned int *values) in gpiotools_gets() argument 216 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_gets() 222 for (i = 0; i < num_lines; i++) in gpiotools_gets() 226 for (i = 0; i < num_lines; i++) in gpiotools_gets() 264 unsigned int num_lines, unsigned int *values) in gpiotools_sets() argument 273 for (i = 0; i < num_lines; i++) { in gpiotools_sets() 278 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_sets()
|
H A D | gpio-utils.h | 29 unsigned int num_lines, 38 unsigned int num_lines, unsigned int *values); 42 unsigned int num_lines, unsigned int *values);
|
/linux/drivers/gpio/ |
H A D | gpio-sim.c | 359 unsigned int num_lines = chip->gc.ngpio; in gpio_sim_setup_sysfs() local 366 num_lines + 1, GFP_KERNEL); in gpio_sim_setup_sysfs() 370 for (i = 0; i < num_lines; i++) { in gpio_sim_setup_sysfs() 426 u32 num_lines; in gpio_sim_add_bank() local 429 ret = fwnode_property_read_u32(swnode, "ngpios", &num_lines); in gpio_sim_add_bank() 433 if (num_lines > GPIO_SIM_NGPIO_MAX) in gpio_sim_add_bank() 448 chip->request_map = devm_bitmap_zalloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank() 452 chip->direction_map = devm_bitmap_alloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank() 457 bitmap_fill(chip->direction_map, num_lines); in gpio_sim_add_bank() 459 chip->value_map = devm_bitmap_zalloc(dev, num_lines, GFP_KERNEL); in gpio_sim_add_bank() [all …]
|
H A D | gpiolib-cdev.c | 548 u32 num_lines; member 555 struct line lines[] __counted_by(num_lines); 796 le.seqno = (lr->num_lines == 1) ? le.line_seqno : line->req_seqno; in process_hw_ts_thread() 829 if (lr->num_lines != 1) in process_hw_ts() 893 if (lr->num_lines != 1) in edge_irq_thread() 913 le.seqno = (lr->num_lines == 1) ? le.line_seqno : line->req_seqno; in edge_irq_thread() 932 if (lr->num_lines != 1) in edge_irq_handler() 1021 le.seqno = (lr->num_lines == 1) ? in debounce_work_func() 1028 le.seqno = (lr->num_lines == 1) ? in debounce_work_func() 1325 unsigned int num_lines) in gpio_v2_line_config_validate() argument [all …]
|
/linux/arch/arc/mm/ |
H A D | cache.c | 192 int num_lines; in __cache_line_loop_v3() local 213 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v3() 232 while (num_lines-- > 0) { in __cache_line_loop_v3() 252 int num_lines; in __cache_line_loop_v4() local 272 num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); in __cache_line_loop_v4() 290 while (num_lines-- > 0) { in __cache_line_loop_v4() 624 int num_lines; in slc_op_line() local 643 num_lines = DIV_ROUND_UP(sz, l2_line_sz); in slc_op_line() 645 while (num_lines-- > 0) { in slc_op_line()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
H A D | dcn314_fpu.c | 286 unsigned int num_lines = 0; in micro_sec_to_vert_lines() local 291 num_lines = dml_ceil(1000.0 * num_us / lines_time_in_ns, 1.0); in micro_sec_to_vert_lines() 293 return num_lines; in micro_sec_to_vert_lines() 323 unsigned int num_lines = 0; in dcn314_populate_dml_pipes_from_context_fpu() local 331 num_lines = micro_sec_to_vert_lines(dcn3_14_ip.VBlankNomDefaultUS, timing); in dcn314_populate_dml_pipes_from_context_fpu() 341 pipes[pipe_cnt].pipe.dest.vblank_nom = min(pipes[pipe_cnt].pipe.dest.vblank_nom, num_lines); in dcn314_populate_dml_pipes_from_context_fpu()
|
/linux/lib/kunit/ |
H A D | string-stream-test.c | 169 int num_lines, i; in string_stream_line_add_test() local 186 num_lines = i; in string_stream_line_add_test() 197 for (i = 0; i < num_lines; ++i) { in string_stream_line_add_test() 225 int num_lines, i; in string_stream_variable_length_line_test() local 242 num_lines = i; in string_stream_variable_length_line_test() 254 for (i = 0; i < num_lines; ++i) { in string_stream_variable_length_line_test()
|
/linux/drivers/media/platform/qcom/camss/ |
H A D | camss-csid-4-1.c | 62 u32 num_lines, num_bytes_per_line; in csid_configure_stream() local 69 num_lines = input_format->height; in csid_configure_stream() 79 (num_lines & 0x1fff); in csid_configure_stream()
|
H A D | camss-csid-4-7.c | 63 u32 num_bytes_per_line, num_lines; in csid_configure_stream() local 70 num_lines = input_format->height; in csid_configure_stream() 80 (num_lines & 0x1fff); in csid_configure_stream()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn351/ |
H A D | dcn351_fpu.c | 448 unsigned int num_lines = 0; in micro_sec_to_vert_lines() local 453 num_lines = dml_ceil(1000.0 * num_us / lines_time_in_ns, 1.0); in micro_sec_to_vert_lines() 455 return num_lines; in micro_sec_to_vert_lines() 485 unsigned int num_lines = 0; in dcn351_populate_dml_pipes_from_context_fpu() local 494 num_lines = micro_sec_to_vert_lines(dcn3_51_ip.VBlankNomDefaultUS, timing); in dcn351_populate_dml_pipes_from_context_fpu() 507 pipes[pipe_cnt].pipe.dest.vblank_nom = min(pipes[pipe_cnt].pipe.dest.vblank_nom, num_lines); in dcn351_populate_dml_pipes_from_context_fpu()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn35/ |
H A D | dcn35_fpu.c | 414 unsigned int num_lines = 0; in micro_sec_to_vert_lines() local 419 num_lines = dml_ceil(1000.0 * num_us / lines_time_in_ns, 1.0); in micro_sec_to_vert_lines() 421 return num_lines; in micro_sec_to_vert_lines() 451 unsigned int num_lines = 0; in dcn35_populate_dml_pipes_from_context_fpu() local 460 num_lines = micro_sec_to_vert_lines(dcn3_5_ip.VBlankNomDefaultUS, timing); in dcn35_populate_dml_pipes_from_context_fpu() 473 pipes[pipe_cnt].pipe.dest.vblank_nom = min(pipes[pipe_cnt].pipe.dest.vblank_nom, num_lines); in dcn35_populate_dml_pipes_from_context_fpu()
|
/linux/tools/testing/nvdimm/test/ |
H A D | ndtest.h | 28 u32 num_lines; member
|
/linux/sound/soc/qcom/qdsp6/ |
H A D | q6afe-dai.c | 971 int id, i, num_lines; in of_q6afe_parse_dai_data() local 989 num_lines = 0; in of_q6afe_parse_dai_data() 991 num_lines = ret; in of_q6afe_parse_dai_data() 995 for (i = 0; i < num_lines; i++) in of_q6afe_parse_dai_data()
|
/linux/tools/testing/selftests/gpio/ |
H A D | gpio-sim.sh | 81 echo $NUM_LINES > $CONFIGFS_DIR/$CHIP/$BANK/num_lines || \ 279 echo 8 > $CONFIGFS_DIR/chip/bank/num_lines 2> /dev/null && \
|
H A D | gpio-mockup-cdev.c | 28 req.num_lines = 1; in request_line_v2()
|
/linux/Documentation/admin-guide/gpio/ |
H A D | gpio-sim.rst | 42 **Attribute:** ``/config/gpio-sim/gpio-device/gpio-bankX/num_lines`` 46 device name of the bank device. The ``'num_lines'`` attribute allows to specify
|
/linux/include/uapi/linux/ |
H A D | gpio.h | 199 __u32 num_lines; member
|
/linux/drivers/gpu/drm/ |
H A D | drm_modes.c | 197 unsigned int num_lines; member 217 .num_lines = _lines, \ 352 params->num_lines, in fill_analog_mode() 487 porches = params->num_lines - vactive - vslen; in fill_analog_mode() 498 if (params->num_lines != vtotal) { in fill_analog_mode() 500 vtotal, params->num_lines); in fill_analog_mode() 509 if (mode->vtotal != params->num_lines) in fill_analog_mode()
|
/linux/sound/soc/qcom/ |
H A D | lpass-cpu.c | 1013 int num_lines, i; in of_lpass_cpu_parse_sd_lines() local 1015 num_lines = of_property_read_variable_u32_array(node, name, lines, 0, in of_lpass_cpu_parse_sd_lines() 1017 if (num_lines < 0) in of_lpass_cpu_parse_sd_lines() 1020 for (i = 0; i < num_lines; i++) in of_lpass_cpu_parse_sd_lines()
|
/linux/drivers/acpi/nfit/ |
H A D | nfit.h | 295 u32 num_lines; member
|
/linux/arch/powerpc/include/asm/ |
H A D | opal.h | 132 int64_t opal_write_oppanel(oppanel_line_t *lines, uint64_t num_lines); 187 uint64_t num_lines);
|
/linux/drivers/gpu/drm/tidss/ |
H A D | tidss_dispc.c | 989 u32 hw_videoport, int num_lines) in dispc_set_num_datalines() argument 993 switch (num_lines) { in dispc_set_num_datalines()
|