| /linux/arch/um/drivers/ |
| H A D | line.c | 22 struct line *line = chan->line; in line_interrupt() local 24 if (line) in line_interrupt() 25 chan_interrupt(line, irq); in line_interrupt() 35 static unsigned int write_room(struct line *line) in write_room() argument 39 if (line->buffer == NULL) in write_room() 43 n = line->head - line->tail; in write_room() 52 struct line *line = tty->driver_data; in line_write_room() local 56 spin_lock_irqsave(&line->lock, flags); in line_write_room() 57 room = write_room(line); in line_write_room() 58 spin_unlock_irqrestore(&line->lock, flags); in line_write_room() [all …]
|
| H A D | chan.h | 18 struct line *line; member 31 extern void chan_interrupt(struct line *line, int irq); 32 extern int parse_chan_pair(char *str, struct line *line, int device, 38 extern int console_open_chan(struct line *line, struct console *co); 41 extern int enable_chan(struct line *line); 42 extern void close_chan(struct line *line); 43 extern int chan_window_size(struct line *line, 46 extern int chan_config_string(struct line *line, char *str, int size,
|
| H A D | chan_kern.c | 167 struct line *line = container_of(work, struct line, task.work); in line_timer_cb() local 169 if (!line->throttled) in line_timer_cb() 170 chan_interrupt(line, line->read_irq); in line_timer_cb() 173 int enable_chan(struct line *line) in enable_chan() argument 179 INIT_DELAYED_WORK(&line->task, line_timer_cb); in enable_chan() 181 list_for_each(ele, &line->chan_list) { in enable_chan() 195 line, chan); in enable_chan() 205 close_chan(line); in enable_chan() 233 um_free_irq(chan->line->read_irq, chan); in free_irqs() 236 um_free_irq(chan->line->write_irq, chan); in free_irqs() [all …]
|
| H A D | line.h | 32 struct line { struct 62 struct line *line); argument 76 extern int line_setup_irq(int fd, int input, int output, struct line *line, 78 extern void line_close_chan(struct line *line); 81 struct line *lines, int nlines); 82 extern int setup_one_line(struct line *lines, int n, char *init, 84 extern void close_lines(struct line *lines, int nlines); 86 extern int line_config(struct line *lines, unsigned int sizeof_lines, 90 extern int line_remove(struct line *lines, unsigned int sizeof_lines, int n, 92 extern int line_get_config(char *dev, struct line *lines,
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
| H A D | nv10.c | 29 nv10_gpio_sense(struct nvkm_gpio *gpio, int line) in nv10_gpio_sense() argument 32 if (line < 2) { in nv10_gpio_sense() 33 line = line * 16; in nv10_gpio_sense() 34 line = nvkm_rd32(device, 0x600818) >> line; in nv10_gpio_sense() 35 return !!(line & 0x0100); in nv10_gpio_sense() 37 if (line < 10) { in nv10_gpio_sense() 38 line = (line - 2) * 4; in nv10_gpio_sense() 39 line = nvkm_rd32(device, 0x60081c) >> line; in nv10_gpio_sense() 40 return !!(line & 0x04); in nv10_gpio_sense() 42 if (line < 14) { in nv10_gpio_sense() [all …]
|
| /linux/scripts/ |
| H A D | markup_oops.pl | 48 my ($line) = @_; 49 if ($line =~ /EAX: ([0-9a-f]+) EBX: ([0-9a-f]+) ECX: ([0-9a-f]+) EDX: ([0-9a-f]+)/) { 55 if ($line =~ /ESI: ([0-9a-f]+) EDI: ([0-9a-f]+) EBP: ([0-9a-f]+) ESP: ([0-9a-f]+)/) { 60 if ($line =~ /RAX: ([0-9a-f]+) RBX: ([0-9a-f]+) RCX: ([0-9a-f]+)/) { 65 if ($line =~ /RDX: ([0-9a-f]+) RSI: ([0-9a-f]+) RDI: ([0-9a-f]+)/) { 70 if ($line =~ /RBP: ([0-9a-f]+) R08: ([0-9a-f]+) R09: ([0-9a-f]+)/) { 74 if ($line =~ /R10: ([0-9a-f]+) R11: ([0-9a-f]+) R12: ([0-9a-f]+)/) { 79 if ($line =~ /R13: ([0-9a-f]+) R14: ([0-9a-f]+) R15: ([0-9a-f]+)/) { 97 my ($line, $cntr) = @_; 99 if (length($line) < 40) { [all …]
|
| H A D | checkpatch.pl | 95 --no-signoff do not check for 'Signed-off-by' line 99 --terse one line per report 117 --max-line-length=n set the maximum line length, (default $max_line_length) 133 If correctable single-line errors exist, create 260 my $line = $_; 262 $line =~ s/\s*\n?$//g; 263 $line =~ s/^\s*//g; 264 $line =~ s/\s+/ /g; 266 next if ($line [all...] |
| H A D | show_delta | 20 the kernel command line option "time" is specified. When run with no 22 each printk line and the next. When run with the '-b' option, all times 29 If it is a string, the first message line 31 line) is used as the time reference. 36 will show times relative to the line in the kernel output 41 # returns a tuple containing the seconds and text for each message line 44 def get_time(line): argument 45 if line[0]!="[": 49 (time_str, rest) = string.split(line[1:],']',1) 56 # average line look 61 convert_line(line, base_time) global() argument [all...] |
| H A D | leaking_addresses.pl | 292 while (my $line = <$fh> ) { 293 if ($line =~ /^$option/) { 294 ($str, $val) = split /=/, $line; 375 my ($path, $line) = @_; 379 if ($line =~ '^SigBlk:' or 380 $line =~ '^SigIgn:' or 381 $line =~ '^SigCgt:') { 389 if ($line =~ '\bKEY=[[:xdigit:]]{9,14} [[:xdigit:]]{16} [[:xdigit:]]{16}\b' or 391 $line =~ '\b[[:xdigit:]]{9,14} [[:xdigit:]]{16} [[:xdigit:]]{16}\b')) { 396 while ($line =~ /($address_re)/g) { [all …]
|
| /linux/scripts/dtc/ |
| H A D | of_unittest_expect | 254 while ($line = <ARGV>) { 256 chomp $line; 265 $timestamp = $line; 268 ($timestamp, $null) = split(/]/, $line); 276 $line =~ s/^\[\s*[0-9]+\.[0-9]*\] //; 281 if ($line =~ /^\s*$exp_begin/) { 282 $data = $line; 290 printf "%s %s%s%s\n", $prefix, $line_num, $timestamp, $line; 299 if ($line =~ /^\s*$exp_end/) { 300 $data = $line; [all …]
|
| /linux/tools/testing/selftests/rcutorture/bin/ |
| H A D | kvm-transform.sh | 86 line = ""; 88 if (line == "") { 89 line = $i; 91 line = line " " $i; 95 line = line " file:" consolelog; 98 line = line " " image; 124 if (line == "") 125 line = lq arg; 127 line = line " " lq arg; 130 line = line " " bootarg[j]; [all …]
|
| /linux/drivers/zorro/ |
| H A D | gen-devlist.c | 32 char line[1024], *c, *bra, manuf[8]; in main() local 45 while (fgets(line, sizeof(line)-1, stdin)) { in main() 47 if ((c = strchr(line, '\n'))) in main() 49 if (!line[0] || line[0] == '#') in main() 51 if (line[0] == '\t') { in main() 54 if (strlen(line) > 5 && line[5] == ' ') { in main() 55 c = line + 5; in main() 68 fprintf(devf, "\tPRODUCT(%s,%s,\"", manuf, line+1); in main() 76 } else if (strlen(line) > 4 && line[4] == ' ') { in main() 77 c = line + 4; in main() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-thunderx.c | 49 unsigned int line; member 64 static unsigned int bit_cfg_reg(unsigned int line) in bit_cfg_reg() argument 66 return 8 * line + GPIO_BIT_CFG; in bit_cfg_reg() 69 static unsigned int intr_reg(unsigned int line) in intr_reg() argument 71 return 8 * line + GPIO_INTR; in intr_reg() 75 unsigned int line) in thunderx_gpio_is_gpio_nowarn() argument 77 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_is_gpio_nowarn() 87 unsigned int line) in thunderx_gpio_is_gpio() argument 89 bool rv = thunderx_gpio_is_gpio_nowarn(txgpio, line); in thunderx_gpio_is_gpio() 91 WARN_RATELIMIT(!rv, "Pin %d not available for GPIO\n", line); in thunderx_gpio_is_gpio() [all …]
|
| H A D | gpio-aggregator.c | 158 struct gpio_aggregator_line *line; in gpio_aggregator_line_alloc() local 160 line = kzalloc_obj(*line); in gpio_aggregator_line_alloc() 161 if (!line) in gpio_aggregator_line_alloc() 165 line->key = kstrdup(key, GFP_KERNEL); in gpio_aggregator_line_alloc() 166 if (!line->key) { in gpio_aggregator_line_alloc() 167 kfree(line); in gpio_aggregator_line_alloc() 172 line->flags = GPIO_LOOKUP_FLAGS_DEFAULT; in gpio_aggregator_line_alloc() 173 line->parent = parent; in gpio_aggregator_line_alloc() 174 line->idx = idx; in gpio_aggregator_line_alloc() 175 line->offset = offset; in gpio_aggregator_line_alloc() [all …]
|
| H A D | gpiolib-cdev.c | 418 struct line { struct 510 struct line lines[] __counted_by(num_lines); 576 static u64 line_event_timestamp(struct line *line) in line_event_timestamp() argument 578 if (test_bit(GPIOD_FLAG_EVENT_CLOCK_REALTIME, &line->desc->flags)) in line_event_timestamp() 581 test_bit(GPIOD_FLAG_EVENT_CLOCK_HTE, &line->desc->flags)) in line_event_timestamp() 582 return line->timestamp_ns; in line_event_timestamp() 616 struct line *line; in process_hw_ts_thread() local 625 line = p; in process_hw_ts_thread() 626 lr = line->req; in process_hw_ts_thread() 630 le.timestamp_ns = line->timestamp_ns; in process_hw_ts_thread() [all …]
|
| /linux/arch/arm64/include/asm/ |
| H A D | asm-bug.h | 11 #define _BUGVERBOSE_LOCATION(file, line) __BUGVERBOSE_LOCATION(file, line) argument 12 #define __BUGVERBOSE_LOCATION(file, line) \ argument 18 .short line; 20 #define _BUGVERBOSE_LOCATION(file, line) argument 50 #define __BUG_LOCATION_STRING(file, line) \ argument 52 ".short " line ";" 54 #define __BUG_LOCATION_STRING(file, line) argument 57 #define __BUG_ENTRY_STRING(file, line, flags) \ argument 59 __BUG_LOCATION_STRING(file, line) \ 63 #define ARCH_WARN_ASM(file, line, flags, size) \ argument [all …]
|
| /linux/tools/lib/python/kdoc/ |
| H A D | parse_data_structs.py | 175 for ln, line in enumerate(f): 177 line = line.strip() 178 if not line or line.startswith("#"): 182 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line) 189 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line) 195 match = re.match(r"^namespace\s+(\S+)", line) 200 sys.exit(f"{name}:{ln}: invalid line: {line}") 278 store_line(self, line) global() argument [all...] |
| H A D | kdoc_re.py | 162 _search(self, regex, line) global() argument 214 search(self, regex, line) global() argument 226 sub(self, regex, sub, line, count=0) global() argument
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| H A D | nv50.c | 28 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx) in pwm_info() argument 32 if (*line == 0x04) { in pwm_info() 34 *line = 4; in pwm_info() 37 if (*line == 0x09) { in pwm_info() 39 *line = 9; in pwm_info() 42 if (*line == 0x10) { in pwm_info() 44 *line = 0; in pwm_info() 47 nvkm_error(subdev, "unknown pwm ctrl for gpio %d\n", *line); in pwm_info() 55 nv50_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in nv50_fan_pwm_ctrl() argument 59 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_ctrl() [all …]
|
| H A D | gf119.c | 27 pwm_info(struct nvkm_therm *therm, int line) in pwm_info() argument 31 u32 gpio = nvkm_rd32(device, 0x00d610 + (line * 0x04)); in pwm_info() 49 nvkm_error(subdev, "GPIO %d unknown PWM: %08x\n", line, gpio); in pwm_info() 54 gf119_fan_pwm_ctrl(struct nvkm_therm *therm, int line, bool enable) in gf119_fan_pwm_ctrl() argument 58 int indx = pwm_info(therm, line); in gf119_fan_pwm_ctrl() 62 nvkm_mask(device, 0x00d610 + (line * 0x04), 0x000000c0, data); in gf119_fan_pwm_ctrl() 68 gf119_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) in gf119_fan_pwm_get() argument 71 int indx = pwm_info(therm, line); in gf119_fan_pwm_get() 75 if (nvkm_rd32(device, 0x00d610 + (line * 0x04)) & 0x00000040) { in gf119_fan_pwm_get() 90 gf119_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) in gf119_fan_pwm_set() argument [all …]
|
| /linux/tools/perf/util/ |
| H A D | drm_pmu.c | 74 static struct drm_pmu *add_drm_pmu(struct list_head *pmus, char *line, size_t line_len) in add_drm_pmu() 82 if (line[line_len - 1] == '\n') in add_drm_pmu() 83 line[line_len - 1] = '\0'; in add_drm_pmu() 84 while (isspace(line[i])) in add_drm_pmu() 87 line[--i] = '_'; in add_drm_pmu() 88 line[--i] = 'm'; in add_drm_pmu() 89 line[--i] = 'r'; in add_drm_pmu() 90 line[--i] = 'd'; in add_drm_pmu() 91 name = &line[i]; in add_drm_pmu() 134 const char *line, enu in starts_with() 73 add_drm_pmu(struct list_head * pmus,char * line,size_t line_len) add_drm_pmu() argument 138 add_event(struct drm_pmu_event ** events,int * num_events,const char * line,enum drm_pmu_unit unit,const char * desc) add_event() argument 164 char *line = NULL; read_drm_pmus_cb() local 583 char *line = NULL; read_drm_event() local [all...] |
| /linux/arch/powerpc/crypto/ |
| H A D | ppc-xlate.pl | 68 my $line = join(",",@_); 69 if ($line =~ /^"(.*)"$/) 202 while($line=<>) { 204 $line =~ s|[#!;].*$||; # get rid of asm-style comments... 205 $line =~ s|/\*.*\*/||; # ... and C-style comments... 206 $line =~ s|^\s+||; # ... and skip white spaces in beginning... 207 $line =~ s|\s+$||; # ... and at the end 210 $line =~ s|\b\.L(\w+)|L$1|g; # common denominator for Locallabel 211 $line =~ s|\bL(\w+)|\.L$1|g if ($dotinlocallabels); 215 $line =~ s|^\s*(\.?)(\w+)([\.\+\-]?)\s*||; [all …]
|
| /linux/tools/perf/tests/shell/ |
| H A D | daemon.sh | 7 local line=$1 15 line_name=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $2 }'` 17 line_base=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'` 19 line_output=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $4 }'` 21 line_lock=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $5 }'` 23 line_up=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $6 }'` 53 local line=$1 63 line_name=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $2 }'` 65 line_run=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'` 67 line_base=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $4 }'` [all …]
|
| /linux/Documentation/userspace-api/gpio/ |
| H A D | gpio-v2-get-lineinfo-watch-ioctl.rst | 12 GPIO_V2_GET_LINEINFO_WATCH_IOCTL - Enable watching a line for changes to its 30 the ``offset`` set to indicate the line to watch 35 Enable watching a line for changes to its request state and configuration 36 information. Changes to line info include a line being requested, released 40 Watching line info is not generally required, and would typically only be 43 The line info does NOT include the line value. 44 The line must be requested using gpio-v2-get-line-ioctl.rst to access 45 its value, and the line request can monitor a line for events using 46 gpio-v2-line-event-read.rst. 52 Once a watch is set, any changes to line info will generate events which can be [all …]
|
| /linux/drivers/of/unittest-data/ |
| H A D | overlay_gpio_03.dtso | 15 gpio-line-names = "line-A", "line-B", "line-C", "line-D"; 17 line-d { 21 line-name = "line-D-input";
|