Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 2046) sorted by relevance

12345678910>>...82

/linux/arch/um/drivers/
H A Dline.c22 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 Dchan.h18 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 Dchan_kern.c167 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 Dline.h32 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 Dnv10.c29 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 Dcheckpatch.pl247 my $line = $_;
249 $line =~ s/\s*\n?$//g;
250 $line =~ s/^\s*//g;
251 $line =~ s/\s+/ /g;
253 next if ($line =~ m/^\s*#/);
254 next if ($line =~ m/^\s*$/);
256 my @words = split(" ", $line);
276 my $line = $_;
277 $line =~ s/\s+$//;
279 if ($line =~ /^\s*\*\*(.+)\*\*$/) {
[all …]
H A Dmarkup_oops.pl48 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 Dleaking_addresses.pl292 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 …]
H A Dbpf_doc.py25 def __init__(self, line='<line not provided>', reader=None): argument
29 (reader.tell(), line))
31 BaseException.__init__(self, 'Error parsing line: %s' % line)
114 self.line = ''
139 capture = p.match(self.line)
143 end = end_re.match(self.line)
146 self.line = self.reader.readline()
158 capture = p.match(self.line)
161 self.line = self.reader.readline()
166 capture = p.match(self.line)
[all …]
/linux/scripts/dtc/
H A Dof_unittest_expect254 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/Documentation/arch/arm/samsung/
H A Dclksrc-change-registers.awk69 while (getline line < ARGV[1] > 0) {
70 if (line ~ /\#define.*_MASK/ &&
71 !(line ~ /USB_SIG_MASK/)) {
72 splitdefine(line, fields)
75 printf "MASK " line "\n" > "/dev/stderr"
98 if ((getline line) <= 0) {
103 if (line ~ /\.shift/) {
104 shift = extract_value(line)
105 } else if (line ~ /\.mask/) {
106 mask = extract_value(line)
[all …]
/linux/tools/testing/selftests/rcutorture/bin/
H A Dkvm-transform.sh86 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/gpio/
H A Dgpio-thunderx.c49 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 Dgpio-aggregator.c160 struct gpio_aggregator_line *line; in gpio_aggregator_line_alloc() local
162 line = kzalloc(sizeof(*line), GFP_KERNEL); in gpio_aggregator_line_alloc()
163 if (!line) in gpio_aggregator_line_alloc()
167 line->key = kstrdup(key, GFP_KERNEL); in gpio_aggregator_line_alloc()
168 if (!line->key) { in gpio_aggregator_line_alloc()
169 kfree(line); in gpio_aggregator_line_alloc()
174 line->flags = GPIO_LOOKUP_FLAGS_DEFAULT; in gpio_aggregator_line_alloc()
175 line->parent = parent; in gpio_aggregator_line_alloc()
176 line->idx = idx; in gpio_aggregator_line_alloc()
177 line->offset = offset; in gpio_aggregator_line_alloc()
[all …]
H A Dgpio-ts5500.c201 const struct ts5500_dio line = priv->pinout[offset]; in ts5500_gpio_input() local
204 if (line.no_input) in ts5500_gpio_input()
207 if (line.no_output) in ts5500_gpio_input()
211 ts5500_clear_mask(line.control_mask, line.control_addr); in ts5500_gpio_input()
220 const struct ts5500_dio line = priv->pinout[offset]; in ts5500_gpio_get() local
222 return !!(inb(line.value_addr) & line.value_mask); in ts5500_gpio_get()
228 const struct ts5500_dio line = priv->pinout[offset]; in ts5500_gpio_output() local
231 if (line.no_output) in ts5500_gpio_output()
235 if (!line.no_input) in ts5500_gpio_output()
236 ts5500_set_mask(line.control_mask, line.control_addr); in ts5500_gpio_output()
[all …]
/linux/drivers/zorro/
H A Dgen-devlist.c32 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/tools/perf/util/
H A Ddrm_pmu.c73 static struct drm_pmu *add_drm_pmu(struct list_head *pmus, char *line, size_t line_len) in add_drm_pmu() argument
81 if (line[line_len - 1] == '\n') in add_drm_pmu()
82 line[line_len - 1] = '\0'; in add_drm_pmu()
83 while (isspace(line[i])) in add_drm_pmu()
86 line[--i] = '_'; in add_drm_pmu()
87 line[--i] = 'm'; in add_drm_pmu()
88 line[--i] = 'r'; in add_drm_pmu()
89 line[--i] = 'd'; in add_drm_pmu()
90 name = &line[i]; in add_drm_pmu()
138 const char *line, enum drm_pmu_unit unit, const char *desc) in add_event() argument
[all …]
/linux/tools/lib/python/kdoc/
H A Dparse_data_structs.py167 for ln, line in enumerate(f):
169 line = line.strip()
170 if not line or line.startswith("#"):
174 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line)
181 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line)
187 match = re.match(r"^namespace\s+(\S+)", line)
278 def store_line(self, line): argument
280 line = " " + line.expandtabs()
281 self.data += line.rstrip(" ")
294 for line_no, line in enumerate(f):
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dnv50.c28 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 …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gen_wa_oob.c37 static void print_parse_error(const char *err_msg, const char *line, in print_parse_error() argument
41 err_msg, lineno, line); in print_parse_error()
44 static char *strip(char *line, size_t linelen) in strip() argument
46 while (isspace(*(line + linelen))) in strip()
49 line[linelen - 1] = '\0'; in strip()
51 return line + strspn(line, " \f\n\r\t\v"); in strip()
57 char line[MAX_LINE_LEN + 1]; in parse() local
61 while (fgets(line, sizeof(line), input)) { in parse()
65 if (line[0] == '\0' || line[0] == '#' || line[0] == '\n') { in parse()
70 linelen = strlen(line); in parse()
[all …]
/linux/arch/arm64/include/asm/
H A Dasm-bug.h11 #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/perf/tests/shell/
H A Ddaemon.sh7 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/arch/arm/boot/dts/nuvoton/
H A Dnuvoton-npcm750-runbmc-olympus.dts434 line-name = "TPM_BMC_ALERT_N";
440 line-name = "FM_BIOS_TOP_SWAP";
446 line-name = "FM_BIOS_PREFRB2_GOOD";
452 line-name = "BMC_SATAXPCIE_0TO3_SEL";
458 line-name = "BMC_SATAXPCIE_4TO7_SEL";
464 line-name = "FM_UV_ADR_TRIGGER_EN_N";
470 line-name = "RM_THROTTLE_EN_N";
476 line-name = "FM_BMC_TPM_PRES_N";
482 line-name = "FM_CPU0_SKTOCC_LVT3_N";
488 line-name = "FM_CPU1_SKTOCC_LVT3_N";
[all …]
/linux/arch/powerpc/crypto/
H A Dppc-xlate.pl68 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/Documentation/userspace-api/gpio/
H A Dgpio-v2-get-lineinfo-watch-ioctl.rst12 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 …]

12345678910>>...82