Home
last modified time | relevance | path

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

12345678910>>...75

/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/tools/testing/selftests/namespaces/
H A Duid_map_range_test.c66 const char *path, const char *line) in expect_rejected() argument
70 TH_LOG("writing \"%s\" to %s", line, path); in expect_rejected()
71 EXPECT_EQ(write_file(path, line), -EINVAL); in expect_rejected()
79 const char *path, const char *line, in expect_accepted() argument
86 TH_LOG("writing \"%s\" to %s", line, path); in expect_accepted()
87 ASSERT_EQ(write_file(path, line), 0); in expect_accepted()
100 char line[64]; in TEST() local
108 snprintf(line, sizeof(line), "4294967301 %u 1", uid); in TEST()
109 expect_rejected(_metadata, "/proc/self/uid_map", line); in TEST()
114 char line[64]; in TEST() local
[all …]
/linux/scripts/
H A Dcheckpatch.pl96 --no-signoff do not check for 'Signed-off-by' line
100 --terse one line per report
118 --max-line-length=n set the maximum line length, (default $max_line_length)
134 If correctable single-line errors exist, create
262 my $line = $_;
264 $line =~ s/\s*\n?$//g;
265 $line =~ s/^\s*//g;
266 $line =~ s/\s+/ /g;
268 next if ($line
[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/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
56 struct msix_entry *msix_entries; /* per line MSI-X */
57 struct thunderx_line *line_entries; /* per line irq info */
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
96 thunderx_gpio_request(struct gpio_chip * chip,unsigned int line) thunderx_gpio_request() argument
103 thunderx_gpio_dir_in(struct gpio_chip * chip,unsigned int line) thunderx_gpio_dir_in() argument
119 thunderx_gpio_set(struct gpio_chip * chip,unsigned int line,int value) thunderx_gpio_set() argument
134 thunderx_gpio_dir_out(struct gpio_chip * chip,unsigned int line,int value) thunderx_gpio_dir_out() argument
159 thunderx_gpio_get_direction(struct gpio_chip * chip,unsigned int line) thunderx_gpio_get_direction() argument
181 thunderx_gpio_set_config(struct gpio_chip * chip,unsigned int line,unsigned long cfg) thunderx_gpio_set_config() argument
260 thunderx_gpio_get(struct gpio_chip * chip,unsigned int line) thunderx_gpio_get() argument
[all...]
H A Dgpio-aggregator.c64 /* Custom name for the virtual line */
66 /* GPIO chip label or line name */
68 /* Can be negative to indicate lookup by line name */
157 struct gpio_aggregator_line *line; in gpio_aggregator_line_alloc() local
159 line = kzalloc_obj(*line); in gpio_aggregator_line_alloc()
160 if (!line) in gpio_aggregator_line_alloc()
164 line->key = kstrdup(key, GFP_KERNEL); in gpio_aggregator_line_alloc()
165 if (!line->key) { in gpio_aggregator_line_alloc()
166 kfree(line); in gpio_aggregator_line_alloc()
181 gpio_aggregator_line_add(struct gpio_aggregator * aggr,struct gpio_aggregator_line * line) gpio_aggregator_line_add() argument
197 gpio_aggregator_line_del(struct gpio_aggregator * aggr,struct gpio_aggregator_line * line) gpio_aggregator_line_del() argument
206 struct gpio_aggregator_line *line, *tmp; gpio_aggregator_free_lines() local
455 u32 line; gpiochip_fwd_delay_of_xlate() local
879 struct gpio_aggregator_line *line; gpio_aggregator_make_device_sw_node() local
908 struct gpio_aggregator_line *line; gpio_aggregator_activate() local
1011 struct gpio_aggregator_line *line; gpio_aggregator_lockup_configfs() local
1031 struct gpio_aggregator_line *line = to_gpio_aggregator_line(item); gpio_aggregator_line_key_show() local
1043 struct gpio_aggregator_line *line = to_gpio_aggregator_line(item); gpio_aggregator_line_key_store() local
1069 struct gpio_aggregator_line *line = to_gpio_aggregator_line(item); gpio_aggregator_line_name_show() local
1081 struct gpio_aggregator_line *line = to_gpio_aggregator_line(item); gpio_aggregator_line_name_store() local
1107 struct gpio_aggregator_line *line = to_gpio_aggregator_line(item); gpio_aggregator_line_offset_show() local
1119 struct gpio_aggregator_line *line = to_gpio_aggregator_line(item); gpio_aggregator_line_offset_store() local
1234 struct gpio_aggregator_line *line = to_gpio_aggregator_line(item); gpio_aggregator_line_release() local
1274 struct gpio_aggregator_line *line; gpio_aggregator_device_make_group() local
1370 struct gpio_aggregator_line *line; gpio_aggregator_parse() local
[all...]
H A Dgpiolib-cdev.c63 * GPIO line handle management
239 * All line descriptors were created at once with the same in linehandle_ioctl()
358 * or output, else the line will be treated "as is". in linehandle_create()
374 dev_dbg(&gdev->dev, "registered chardev handle for line %d\n", in linehandle_create()
399 * struct line - contains the state of a requested line
400 * @desc: the GPIO descriptor for this line.
401 * @req: the corresponding line request
409 * events for the corresponding line request. This is drawn from the @req.
411 * events for this line
418 struct line { global() struct
423 reqline global() argument
428 irqline global() argument
443 req_seqnoline global() argument
447 line_seqnoline global() argument
467 hdescline global() argument
472 raw_levelline global() argument
477 total_discard_seqline global() argument
485 last_seqnoline global() argument
576 line_event_timestamp(struct line * line) line_event_timestamp() argument
616 struct line *line; process_hw_ts_thread() local
664 struct line *line; process_hw_ts() local
697 hte_edge_setup(struct line * line,u64 eflags) hte_edge_setup() argument
727 hte_edge_setup(struct line * line,u64 eflags) hte_edge_setup() argument
735 struct line *line = p; edge_irq_thread() local
781 struct line *line = p; edge_irq_handler() local
799 debounced_value(struct line * line) debounced_value() argument
818 struct line *line = p; debounce_irq_handler() local
829 struct line *line = container_of(work, struct line, work.work); debounce_work_func() local
895 debounce_setup(struct line * line,unsigned int debounce_period_us) debounce_setup() argument
975 edge_detector_stop(struct line * line) edge_detector_stop() argument
1003 edge_detector_setup(struct line * line,struct gpio_v2_line_config * lc,unsigned int line_idx,u64 edflags) edge_detector_setup() argument
1063 edge_detector_update(struct line * line,struct gpio_v2_line_config * lc,unsigned int line_idx,u64 edflags) edge_detector_update() argument
1393 struct line *line; linereq_set_config() local
[all...]
H A Dgpio-realtek-otto.c53 * @line_imr_pos: Bit shift of an IRQ line's IMR value.
59 * bit shift of the 2-bit field for a line's IMR settings. Shifts larger than
64 * mask/unmask the interrupts for a GPIO line, and @intr_type is used to store
78 unsigned int (*line_imr_pos)(unsigned int line);
86 * An interrupt would appear to come from a different line than the
87 * line the IRQ handler was assigned to, causing uncaught interrupts.
127 static unsigned int realtek_gpio_line_imr_pos_swapped(unsigned int line) in realtek_gpio_line_imr_pos_swapped() argument
129 unsigned int port_pin = line % 8; in realtek_gpio_line_imr_pos_swapped()
130 unsigned int port = line / 8; in realtek_gpio_line_imr_pos_swapped()
153 static unsigned int realtek_gpio_line_imr_pos(unsigned int line) in realtek_gpio_line_imr_pos() argument
169 realtek_gpio_update_line_imr(struct realtek_gpio_ctrl * ctrl,unsigned int line) realtek_gpio_update_line_imr() argument
188 irq_hw_number_t line = irqd_to_hwirq(data); realtek_gpio_irq_ack() local
196 unsigned int line = irqd_to_hwirq(data); realtek_gpio_irq_unmask() local
210 unsigned int line = irqd_to_hwirq(data); realtek_gpio_irq_mask() local
224 unsigned int line = irqd_to_hwirq(data); realtek_gpio_irq_set_type() local
278 unsigned int line = irqd_to_hwirq(data); realtek_gpio_irq_set_affinity() local
312 unsigned int line; realtek_gpio_irq_init() local
[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.c74 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/tools/lib/python/kdoc/
H A Dparse_data_structs.py175 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...]
/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/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>>...75