/Documentation/target/ |
D | tcm_mod_builder.py | 41 buf = "" 50 buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n" 51 buf += "#define " + fabric_mod_name.upper() + "_NAMELEN 32\n" 52 buf += "\n" 53 buf += "struct " + fabric_mod_name + "_nacl {\n" 54 buf += " /* Binary World Wide unique Port Name for FC Initiator Nport */\n" 55 buf += " u64 nport_wwpn;\n" 56 buf += " /* ASCII formatted WWPN for FC Initiator Nport */\n" 57 buf += " char nport_name[" + fabric_mod_name.upper() + "_NAMELEN];\n" 58 buf += " /* Returned by " + fabric_mod_name + "_make_nodeacl() */\n" [all …]
|
/Documentation/spi/ |
D | spidev_fdx.c | 19 unsigned char buf[32], *bp; in do_read() local 25 else if (len > sizeof(buf)) in do_read() 26 len = sizeof(buf); in do_read() 27 memset(buf, 0, sizeof buf); in do_read() 29 status = read(fd, buf, len); in do_read() 40 buf[0], buf[1]); in do_read() 42 bp = buf + 2; in do_read() 51 unsigned char buf[32], *bp; in do_msg() local 55 memset(buf, 0, sizeof buf); in do_msg() 57 if (len > sizeof buf) in do_msg() [all …]
|
/Documentation/connector/ |
D | ucon.c | 65 char buf[128]; in netlink_send() local 70 nlh = (struct nlmsghdr *)buf; in netlink_send() 114 char buf[1024]; in main() local 151 memset(buf, 0, sizeof(buf)); in main() 180 memset(buf, 0, sizeof(buf)); in main() 182 data = (struct cn_msg *)buf; in main() 221 memset(buf, 0, sizeof(buf)); in main() 222 len = recv(s, buf, sizeof(buf), 0); in main() 228 reply = (struct nlmsghdr *)buf; in main()
|
/Documentation/zh_CN/filesystems/ |
D | sysfs.txt | 106 char *buf); 108 const char *buf, size_t count); 161 char *buf) 168 ret = dev_attr->show(dev, dev_attr, buf); 184 ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); 186 const char *buf, size_t count); 234 char *buf) 236 return scnprintf(buf, PAGE_SIZE, "%s\n", dev->name); 240 const char *buf, size_t count) 243 (int)min(count, sizeof(dev->name) - 1), buf); [all …]
|
/Documentation/networking/ |
D | cxacru-cf.py | 34 buf = sys.stdin.read(4) variable 36 if len(buf) == 0: 38 elif len(buf) != 4: 40 sys.stderr.write("Error: read {0} not 4 bytes\n".format(len(buf))) 45 sys.stdout.write("{0:x}={1}".format(i, struct.unpack("<I", buf)[0]))
|
D | radiotap-headers.txt | 96 /* buf points to the start of the radiotap header part */ 98 int MyFunction(u8 * buf, int buflen) 102 int ret = ieee80211_radiotap_iterator_init(&iterator, buf, buflen); 145 buf += iterator.max_length;
|
D | phonet.txt | 107 len = recvfrom(fd, buf, sizeof(buf), 0, 149 char buf[...]; 150 ssize_t len = read(cfd, buf, sizeof(buf));
|
/Documentation/ia64/ |
D | aliasing-test.c | 70 struct stat buf; in scan_tree() local 102 r = lstat(path2, &buf); in scan_tree() 103 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_tree() 120 char buf[1024]; variable 141 rc = read(fd, buf, sizeof(buf)); in read_rom() 155 struct stat buf; in scan_rom() local 191 r = lstat(path2, &buf); in scan_rom() 192 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_rom()
|
D | err_inject.txt | 125 char buf[MAX_BUF_SIZE]; 137 memset(buf, 0, MAX_BUF_SIZE); 138 vsprintf(buf, fmt, args); 141 fwrite(buf, sizeof(buf), 1, log); 361 struct semid_ds *buf; 442 char buf[MAX_BUF_SIZE]; 446 sprintf(buf, "%lx", *data); 448 sprintf(buf, "%lx,%lx,%lx", data[0], data[1], data[2]); 459 ret=write(fd, buf, sizeof(buf)); 472 char buf[MAX_BUF_SIZE]; [all …]
|
/Documentation/vDSO/ |
D | vdso_test.c | 89 char buf[] = "The time is .000000\n"; in c_main() local 90 to_base10(buf + 31, tv.tv_sec); in c_main() 91 to_base10(buf + 38, tv.tv_usec); in c_main() 92 linux_write(1, buf, sizeof(buf) - 1); in c_main()
|
/Documentation/laptops/ |
D | hpfall.c | 50 char buf[1024]; in write_int() local 56 sprintf(buf, "%d", i); in write_int() 57 if (write(fd, buf, strlen(buf)) != strlen(buf)) { in write_int()
|
/Documentation/dvb/ |
D | get_dvb_firmware | 542 my ($chunklength, $buf, $rcount); 557 $rcount = sysread(INFILE, $buf, $chunklength); 559 syswrite(OUTFILE, $buf); 560 sysread(INFILE, $buf, 8); 868 my ($chunklength, $buf, $rcount); 878 $rcount = sysread(INFILE, $buf, $chunklength); 880 syswrite(OUTFILE, $buf); 889 my ($buf); 893 $rcount = sysread(INFILE, $buf, 2048); 895 print $FH $buf; [all …]
|
/Documentation/arm/SH-Mobile/ |
D | vrl4.c | 80 ssize_t do_read(int fd, void *buf, size_t count) in do_read() argument 86 l = read(fd, buf + offset, count - offset); in do_read() 101 ssize_t do_write(int fd, const void *buf, size_t count) in do_write() argument 107 l = write(fd, buf + offset, count - offset); in do_write()
|
/Documentation/usb/ |
D | gadget_hid.txt | 181 int keyboard_fill_report(char report[8], char buf[BUF_LEN], int *hold) 183 char *tok = strtok(buf, " "); 234 int mouse_fill_report(char report[8], char buf[BUF_LEN], int *hold) 236 char *tok = strtok(buf, " "); 285 int joystick_fill_report(char report[8], char buf[BUF_LEN], int *hold) 287 char *tok = strtok(buf, " "); 360 char buf[BUF_LEN]; 401 cmd_len = read(fd, buf, BUF_LEN - 1); 404 printf(" %02x", buf[i]); 410 cmd_len = read(STDIN_FILENO, buf, BUF_LEN - 1); [all …]
|
D | gadget_printer.txt | 208 static char buf[BUF_SIZE]; 218 bytes_read = read(fd[0].fd, buf, BUF_SIZE); 227 fwrite(buf, 1, bytes_read, stdout); 259 static char buf[BUF_SIZE]; 261 int bytes_read = fread(buf, 1, BUF_SIZE, stdin); 274 retval = write(fd[0].fd, buf, bytes_read); 305 static char buf[BUF_SIZE]; 318 bytes_read = read(fd, buf, BUF_SIZE); 324 fwrite(buf, 1, bytes_read, stdout); 364 set_printer_status(unsigned char buf, int clear_printer_status_bit) [all …]
|
/Documentation/filesystems/ |
D | sysfs.txt | 91 char *buf); 93 const char *buf, size_t count); 148 char *buf) 155 ret = dev_attr->show(dev, dev_attr, buf); 172 ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); 174 const char *buf, size_t count); 232 char *buf) 234 return scnprintf(buf, PAGE_SIZE, "%s\n", dev->name); 238 const char *buf, size_t count) 241 (int)min(count, sizeof(dev->name) - 1), buf); [all …]
|
D | relay.txt | 177 subbuf_start(buf, subbuf, prev_subbuf, prev_padding) 178 buf_mapped(buf, filp) 179 buf_unmapped(buf, filp) 180 create_buf_file(filename, parent, mode, buf, is_global) 185 relay_buf_full(buf) 186 subbuf_start_reserve(buf, length) 226 struct rchan_buf *buf, 229 return debugfs_create_file(filename, mode, parent, buf, 295 buf->chan->private_data. 344 static int subbuf_start(struct rchan_buf *buf, [all …]
|
/Documentation/ |
D | sync.txt | 63 * assumes buf is ready to be displayed. 66 void display_buffer(struct dma_buf *buf); 70 * will display buf when fence is signaled. 71 * returns immediately with a fence that will signal when buf 74 struct sync_fence* display_buffer(struct dma_buf *buf,
|
D | dma-buf-sharing.txt | 8 This document serves as a guide to device-driver writers on what is the dma-buf 32 dma-buf operations for device dma only 106 The dma-buf sharing framework does the bookkeeping bits related to managing 228 Kernel cpu access to a dma-buf buffer object 231 The motivation to allow cpu access from the kernel to a dma-buf object from the 237 and an imported one backed by a dma-buf. This is really important for drm 315 the dma-buf layer keeps a reference count for all vmap access and calls down 336 Being able to mmap an export dma-buf buffer object has 2 main use-cases: 343 the data in a dma-buf (e.g. for thumbnail creation, snapshots, ...). To avoid 349 rather similar to dma-buf from a userspace consumer side with using fds as [all …]
|
D | parport-lowlevel.txt | 526 static size_t write (struct pardevice *dev, const void *buf, 530 written = dev->port->ops->write_ecp_data (dev->port, buf, 678 ssize_t parport_read (struct parport *, void *buf, size_t len); 700 ssize_t parport_write (struct parport *, const void *buf, size_t len); 1200 size_t (*epp_write_data) (struct parport *port, const void *buf, 1229 size_t (*epp_read_data) (struct parport *port, void *buf, 1259 const void *buf, size_t len, int flags); 1289 size_t (*epp_read_addr) (struct parport *port, void *buf, 1321 const void *buf, size_t len, int flags); 1347 void *buf, size_t len, int flags); [all …]
|
D | preempt-locking.txt | 107 int buf[NR_CPUS]; 108 set_cpu_val(buf); 109 if (buf[smp_processor_id()] == -1) printf(KERN_INFO "wee!\n");
|
/Documentation/accounting/ |
D | getdelays.c | 69 char buf[MAX_MSG_SIZE]; member 125 char *buf; in send_cmd() local 142 buf = (char *) &msg; in send_cmd() 146 while ((r = sendto(sd, buf, buflen, 0, (struct sockaddr *) &nladdr, in send_cmd() 149 buf += r; in send_cmd() 167 char buf[256]; in get_family_id() member
|
/Documentation/i2c/ |
D | dev-interface | 62 char buf[10]; 74 buf[0] = register; 75 buf[1] = 0x43; 76 buf[2] = 0x65; 77 if (write(file, buf, 3) ! =3) { 82 if (read(file, buf, 1) != 1) { 85 /* buf[0] contains the read byte */
|
/Documentation/x86/ |
D | exception-tables.txt | 61 get_user(c, buf); 68 const __typeof__(*( ( buf ) )) *__gu_addr = ((buf)); 70 (((sizeof(*(buf))) <= 0xC0000000UL) && 71 ((unsigned long)(__gu_addr ) <= 0xC0000000UL - (sizeof(*(buf))))))) 74 switch ((sizeof(*(buf)))) { 120 ((c)) = (__typeof__(*((buf))))__gu_val;
|
/Documentation/driver-model/ |
D | device.txt | 43 char *buf); 45 const char *buf, size_t count);
|