/linux-master/arch/sparc/prom/ |
H A D | console_64.c | 16 static int __prom_console_write_buf(const char *buf, int len) argument 25 args[4] = (unsigned long) buf; 37 void prom_console_write_buf(const char *buf, int len) argument 40 int n = __prom_console_write_buf(buf, len); 44 buf += len;
|
/linux-master/arch/mips/dec/prom/ |
H A D | console.c | 17 char buf[81]; local 18 unsigned int chunk = sizeof(buf) - 1; 23 memcpy(buf, s, chunk); 24 buf[chunk] = '\0'; 25 prom_printf("%s", buf);
|
/linux-master/drivers/mtd/parsers/ |
H A D | ofpart_linksys_ns.c | 16 char buf[4]; local 20 if (bcm47xx_nvram_getenv(NVRAM_BOOT_PART, buf, sizeof(buf)) > 0) { 21 if (!kstrtoint(buf, 0, &bootpartition)) 24 buf);
|
/linux-master/tools/perf/tests/ |
H A D | unit_number__scnprintf.c | 26 char buf[100]; local 28 unit_number__scnprintf(buf, sizeof(buf), test[i].n); 30 pr_debug("n %" PRIu64 ", str '%s', buf '%s'\n", 31 test[i].n, test[i].str, buf); 33 if (strcmp(test[i].str, buf))
|
H A D | demangle-java-test.c | 13 char *buf = NULL; local 32 buf = java_demangle_sym(test_cases[i].mangled, 0); 33 if (strcmp(buf, test_cases[i].demangled)) { 35 buf, test_cases[i].demangled); 38 free(buf);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_adjust_tail.c | 11 char buf[128]; local 15 .data_out = buf, 16 .data_size_out = sizeof(buf), 31 topts.data_size_out = sizeof(buf); 44 char buf[4096]; /* avoid segfault: large buf to hold grow results */ local 50 .data_out = buf, 51 .data_size_out = sizeof(buf), 66 topts.data_size_out = sizeof(buf); 78 char buf[409 local 149 __u8 *buf; local 216 __u8 *buf; local [all...] |
H A D | xdp_synproxy.c | 12 char buf[1024]; \ 13 snprintf(buf, sizeof(buf), (cmd), ##__VA_ARGS__); \ 14 FILE *f = popen(buf, "r"); \ 15 if (!ASSERT_OK_PTR(f, buf)) \ 39 static bool expect_str(char *buf, size_t size, const char *str, const char *name) argument 46 ok = size == strlen(str) && !memcmp(buf, str, size); 50 escape_str(escbuf_actual, buf, size); 64 char buf[CMD_OUT_BUF_SIZE]; local 103 size = fread(buf, [all...] |
H A D | probe_read_user_str.c | 13 char buf[256]; local 16 memset(buf, 1, sizeof(buf)); 17 memcpy(buf, str, len); 20 skel->bss->user_ptr = buf; 31 err = memcmp(skel->bss->buf, str, len); 36 memset(buf, 0, sizeof(buf)); 37 err = memcmp(skel->bss->buf + len, buf, sizeo [all...] |
H A D | task_fd_query_tp.c | 14 char buf[256]; local 21 snprintf(buf, sizeof(buf), 24 snprintf(buf, sizeof(buf), 27 efd = open(buf, O_RDONLY, 0); 30 bytes = read(efd, buf, sizeof(buf)); 32 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), "read", 36 attr.config = strtol(buf, NUL [all...] |
/linux-master/net/dsa/ |
H A D | trace.c | 8 void dsa_db_print(const struct dsa_db *db, char buf[DSA_DB_BUFSIZ]) argument 12 sprintf(buf, "port %s", db->dp->name); 15 sprintf(buf, "lag %s id %d", db->lag.dev->name, db->lag.id); 18 sprintf(buf, "bridge %s num %d", db->bridge.dev->name, 22 sprintf(buf, "unknown");
|
/linux-master/arch/m68k/include/asm/ |
H A D | raw_io.h | 101 static inline void raw_insb(const volatile u8 __iomem *port, u8 *buf, argument 107 *buf++ = in_8(port); 110 static inline void raw_outsb(volatile u8 __iomem *port, const u8 *buf, argument 119 : "=a" (buf), "=d" (tmp) 120 : "a" (port), "0" (buf), 144 : "=a" (buf), "=d" (tmp) 145 : "a" (port), "0" (buf), 150 static inline void raw_insw(volatile const u16 __iomem *port, u16 *buf, unsigned int nr) argument 158 : "=a" (buf), "=d" (tmp) 159 : "a" (port), "0" (buf), 189 raw_outsw(volatile u16 __iomem *port, const u16 *buf, unsigned int nr) argument 229 raw_insl(const volatile u32 __iomem *port, u32 *buf, unsigned int nr) argument 268 raw_outsl(volatile u32 __iomem *port, const u32 *buf, unsigned int nr) argument 309 raw_insw_swapw(const volatile u16 __iomem *port, u16 *buf, unsigned int nr) argument 362 raw_outsw_swapw(volatile u16 __iomem *port, const u16 *buf, unsigned int nr) argument 417 raw_rom_insb(const volatile u8 __iomem *port, u8 *buf, unsigned int len) argument 426 raw_rom_outsb(volatile u8 __iomem *port, const u8 *buf, unsigned int len) argument 435 raw_rom_insw(const volatile u16 __iomem *port, u16 *buf, unsigned int nr) argument 444 raw_rom_outsw(volatile u16 __iomem *port, const u16 *buf, unsigned int nr) argument 453 raw_rom_insw_swapw(const volatile u16 __iomem *port, u16 *buf, unsigned int nr) argument 462 raw_rom_outsw_swapw(volatile u16 __iomem *port, const u16 *buf, unsigned int nr) argument [all...] |
/linux-master/include/linux/ |
H A D | bitmap-str.h | 6 int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, int nmaskbits); 7 extern int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, 9 extern int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, 11 int bitmap_parse(const char *buf, unsigned int buflen, unsigned long *dst, int nbits); 12 int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits);
|
H A D | sprintf.h | 8 int num_to_str(char *buf, int size, unsigned long long num, unsigned int width); 10 __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); 11 __printf(2, 0) int vsprintf(char *buf, const char *, va_list); 12 __printf(3, 4) int snprintf(char *buf, size_t size, const char *fmt, ...); 13 __printf(3, 0) int vsnprintf(char *buf, size_t size, const char *fmt, va_list args); 14 __printf(3, 4) int scnprintf(char *buf, size_t size, const char *fmt, ...); 15 __printf(3, 0) int vscnprintf(char *buf, size_t size, const char *fmt, va_list args);
|
/linux-master/include/soc/fsl/ |
H A D | bman.h | 49 static inline dma_addr_t bm_buf_addr(const struct bm_buffer *buf) argument 51 return be64_to_cpu(buf->data) & 0xffffffffffffLLU; 54 static inline u64 bm_buffer_get64(const struct bm_buffer *buf) argument 56 return be64_to_cpu(buf->data) & 0xffffffffffffLLU; 59 static inline void bm_buffer_set64(struct bm_buffer *buf, u64 addr) argument 61 buf->hi = cpu_to_be16(upper_32_bits(addr)); 62 buf->lo = cpu_to_be32(lower_32_bits(addr)); 65 static inline u8 bm_buffer_get_bpid(const struct bm_buffer *buf) argument 67 return be16_to_cpu(buf->bpid) & 0xff; 70 static inline void bm_buffer_set_bpid(struct bm_buffer *buf, in argument [all...] |
/linux-master/drivers/media/platform/st/sti/hva/ |
H A D | hva-mem.c | 12 struct hva_buffer **buf) 45 *buf = b; 50 void hva_mem_free(struct hva_ctx *ctx, struct hva_buffer *buf) argument 56 ctx->name, buf->size, buf->vaddr, &buf->paddr, buf->name); 58 dma_free_attrs(dev, buf->size, buf->vaddr, buf 11 hva_mem_alloc(struct hva_ctx *ctx, u32 size, const char *name, struct hva_buffer **buf) argument [all...] |
/linux-master/sound/synth/emux/ |
H A D | emux_proc.c | 16 struct snd_info_buffer *buf) 24 snd_iprintf(buf, "Device: %s\n", emu->name); 25 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); 26 snd_iprintf(buf, "Addresses:"); 28 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); 29 snd_iprintf(buf, "\n"); 30 snd_iprintf(buf, "Use Counter: %d\n", emu->used); 31 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); 32 snd_iprintf(buf, "Allocated Voices: %d\n", emu->num_voices); 34 snd_iprintf(buf, "Memor 15 snd_emux_proc_info_read(struct snd_info_entry *entry, struct snd_info_buffer *buf) argument [all...] |
/linux-master/tools/testing/selftests/proc/ |
H A D | proc-loadavg-001.c | 40 char buf[128], *p; local 47 rv = read(fd, buf, sizeof(buf)); 50 p = buf + rv; 65 rv = read(fd, buf, sizeof(buf)); 68 p = buf + rv;
|
/linux-master/drivers/pnp/ |
H A D | support.c | 106 char buf[128]; local 114 len += scnprintf(buf + len, sizeof(buf) - len, 119 len += scnprintf(buf + len, sizeof(buf) - len, 125 len += scnprintf(buf + len, sizeof(buf) - len, "io min %#llx " 134 len += scnprintf(buf + len, sizeof(buf) - len, "mem min %#llx " 143 len += scnprintf(buf [all...] |
/linux-master/arch/arm/kernel/ |
H A D | spectre.c | 18 char *buf) 20 return sprintf(buf, "Mitigation: __user pointer sanitization\n"); 34 char *buf) 39 return sprintf(buf, "%s\n", "Not affected"); 42 return sprintf(buf, "%s\n", "Vulnerable"); 45 return sprintf(buf, "Vulnerable: Unprivileged eBPF enabled\n"); 70 return sprintf(buf, "Mitigation: %s\n", method); 17 cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) argument 33 cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf) argument
|
/linux-master/arch/s390/crypto/ |
H A D | crc32be-vx.c | 70 * @buf: Input buffer pointer, performance might be improved if the 80 u32 crc32_be_vgfm_16(u32 crc, unsigned char const *buf, size_t size) argument 90 fpu_vlm(1, 4, buf); 92 buf += 64; 97 fpu_vlm(5, 8, buf); 110 buf += 64; 120 fpu_vl(2, buf); 122 buf += 16;
|
/linux-master/drivers/net/wireless/st/cw1200/ |
H A D | wsm.c | 27 #define WSM_SKIP(buf, size) \ 29 if ((buf)->data + size > (buf)->end) \ 31 (buf)->data += size; \ 34 #define WSM_GET(buf, ptr, size) \ 36 if ((buf)->data + size > (buf)->end) \ 38 memcpy(ptr, (buf)->data, size); \ 39 (buf)->data += size; \ 42 #define __WSM_GET(buf, typ 91 wsm_generic_confirm(struct cw1200_common *priv, void *arg, struct wsm_buf *buf) argument 108 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 134 wsm_configuration_confirm(struct cw1200_common *priv, struct wsm_configuration *arg, struct wsm_buf *buf) argument 166 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 185 void *buf; member in struct:wsm_mib 193 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 214 wsm_read_mib_confirm(struct cw1200_common *priv, struct wsm_mib *arg, struct wsm_buf *buf) argument 244 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 267 wsm_write_mib_confirm(struct cw1200_common *priv, struct wsm_mib *arg, struct wsm_buf *buf) argument 291 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 343 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 352 wsm_tx_confirm(struct cw1200_common *priv, struct wsm_buf *buf, int link_id) argument 374 wsm_multi_tx_confirm(struct cw1200_common *priv, struct wsm_buf *buf, int link_id) argument 407 wsm_join_confirm(struct cw1200_common *priv, struct wsm_join_cnf *arg, struct wsm_buf *buf) argument 428 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 467 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 492 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 514 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 539 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 568 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 615 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 643 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 669 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 703 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 725 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 738 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 751 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 775 struct wsm_buf *buf = &priv->wsm_cmd_buf; local 810 wsm_startup_indication(struct cw1200_common *priv, struct wsm_buf *buf) argument 860 wsm_receive_indication(struct cw1200_common *priv, int link_id, struct wsm_buf *buf, struct sk_buff **skb_p) argument 915 wsm_event_indication(struct cw1200_common *priv, struct wsm_buf *buf) argument 950 wsm_channel_switch_indication(struct cw1200_common *priv, struct wsm_buf *buf) argument 966 wsm_set_pm_indication(struct cw1200_common *priv, struct wsm_buf *buf) argument 977 wsm_scan_started(struct cw1200_common *priv, void *arg, struct wsm_buf *buf) argument 992 wsm_scan_complete_indication(struct cw1200_common *priv, struct wsm_buf *buf) argument 1007 wsm_join_complete_indication(struct cw1200_common *priv, struct wsm_buf *buf) argument 1021 wsm_find_complete_indication(struct cw1200_common *priv, struct wsm_buf *buf) argument 1028 wsm_ba_timeout_indication(struct cw1200_common *priv, struct wsm_buf *buf) argument 1048 wsm_suspend_resume_indication(struct cw1200_common *priv, int link_id, struct wsm_buf *buf) argument 1072 wsm_cmd_send(struct cw1200_common *priv, struct wsm_buf *buf, void *arg, u16 cmd, long tmo) argument 1241 struct wsm_buf buf; local 1775 wsm_buf_init(struct wsm_buf *buf) argument 1783 wsm_buf_deinit(struct wsm_buf *buf) argument 1789 wsm_buf_reset(struct wsm_buf *buf) argument 1799 wsm_buf_reserve(struct wsm_buf *buf, size_t extra_size) argument [all...] |
/linux-master/lib/ |
H A D | vsprintf.c | 218 * one of them accounted for in buf. This is needed by ip4_string 222 char *put_dec_trunc8(char *buf, unsigned r) argument 232 *((u16 *)buf) = decpair[r - 100*q]; 233 buf += 2; 241 *((u16 *)buf) = decpair[q - 100*r]; 242 buf += 2; 250 *((u16 *)buf) = decpair[r - 100*q]; 251 buf += 2; 257 *((u16 *)buf) = decpair[r]; 258 buf 264 put_dec_full8(char *buf, unsigned r) argument 290 put_dec(char *buf, unsigned long long n) argument 304 put_dec_full4(char *buf, unsigned r) argument 324 put_dec_helper4(char *buf, unsigned x) argument 338 put_dec(char *buf, unsigned long long n) argument 379 num_to_str(char *buf, int size, unsigned long long num, unsigned int width) argument 457 number(char *buf, char *end, unsigned long long num, struct printf_spec spec) argument 578 special_hex_number(char *buf, char *end, unsigned long long num, int size) argument 591 move_right(char *buf, char *end, unsigned len, unsigned spaces) argument 618 widen_string(char *buf, int n, char *end, struct printf_spec spec) argument 639 string_nocheck(char *buf, char *end, const char *s, struct printf_spec spec) argument 657 err_ptr(char *buf, char *end, void *ptr, struct printf_spec spec) argument 677 error_string(char *buf, char *end, const char *s, struct printf_spec spec) argument 707 check_pointer(char **buf, char *end, const void *ptr, struct printf_spec spec) argument 722 string(char *buf, char *end, const char *s, struct printf_spec spec) argument 731 pointer_string(char *buf, char *end, const void *ptr, struct printf_spec spec) argument 807 ptr_to_id(char *buf, char *end, const void *ptr, struct printf_spec spec) argument 837 default_pointer(char *buf, char *end, const void *ptr, struct printf_spec spec) argument 853 restricted_pointer(char *buf, char *end, const void *ptr, struct printf_spec spec) argument 900 dentry_name(char *buf, char *end, const struct dentry *d, struct printf_spec spec, const char *fmt) argument 949 file_dentry_name(char *buf, char *end, const struct file *f, struct printf_spec spec, const char *fmt) argument 959 bdev_name(char *buf, char *end, struct block_device *bdev, struct printf_spec spec, const char *fmt) argument 982 symbol_string(char *buf, char *end, void *ptr, struct printf_spec spec, const char *fmt) argument 1043 resource_string(char *buf, char *end, struct resource *res, struct printf_spec spec, const char *fmt) argument 1144 hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt) argument 1195 bitmap_string(char *buf, char *end, const unsigned long *bitmap, struct printf_spec spec, const char *fmt) argument 1239 bitmap_list_string(char *buf, char *end, const unsigned long *bitmap, struct printf_spec spec, const char *fmt) argument 1269 mac_address_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt) argument 1459 ip6_addr_string(char *buf, char *end, const u8 *addr, struct printf_spec spec, const char *fmt) argument 1473 ip4_addr_string(char *buf, char *end, const u8 *addr, struct printf_spec spec, const char *fmt) argument 1484 ip6_addr_string_sa(char *buf, char *end, const struct sockaddr_in6 *sa, struct printf_spec spec, const char *fmt) argument 1546 ip4_addr_string_sa(char *buf, char *end, const struct sockaddr_in *sa, struct printf_spec spec, const char *fmt) argument 1581 ip_addr_string(char *buf, char *end, const void *ptr, struct printf_spec spec, const char *fmt) argument 1616 escaped_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt) argument 1674 va_format(char *buf, char *end, struct va_format *va_fmt, struct printf_spec spec, const char *fmt) argument 1690 uuid_string(char *buf, char *end, const u8 *addr, struct printf_spec spec, const char *fmt) argument 1735 netdev_bits(char *buf, char *end, const void *addr, struct printf_spec spec, const char *fmt) argument 1757 fourcc_string(char *buf, char *end, const u32 *fourcc, struct printf_spec spec, const char *fmt) argument 1795 address_val(char *buf, char *end, const void *addr, struct printf_spec spec, const char *fmt) argument 1820 date_str(char *buf, char *end, const struct rtc_time *tm, bool r) argument 1839 time_str(char *buf, char *end, const struct rtc_time *tm, bool r) argument 1855 rtc_str(char *buf, char *end, const struct rtc_time *tm, struct printf_spec spec, const char *fmt) argument 1905 time64_str(char *buf, char *end, const time64_t time, struct printf_spec spec, const char *fmt) argument 1928 time_and_date(char *buf, char *end, void *ptr, struct printf_spec spec, const char *fmt) argument 1942 clock(char *buf, char *end, struct clk *clk, struct printf_spec spec, const char *fmt) argument 1963 format_flags(char *buf, char *end, unsigned long flags, const struct trace_print_flags *names) argument 2011 format_page_flags(char *buf, char *end, unsigned long flags) argument 2058 format_page_type(char *buf, char *end, unsigned int page_type) argument 2077 flags_string(char *buf, char *end, void *flags_ptr, struct printf_spec spec, const char *fmt) argument 2107 fwnode_full_name_string(struct fwnode_handle *fwnode, char *buf, char *end) argument 2134 device_node_string(char *buf, char *end, struct device_node *dn, struct printf_spec spec, const char *fmt) argument 2224 fwnode_string(char *buf, char *end, struct fwnode_handle *fwnode, struct printf_spec spec, const char *fmt) argument 2413 pointer(const char *fmt, char *buf, char *end, void *ptr, struct printf_spec spec) argument 2754 vsnprintf(char *buf, size_t size, const char *fmt, va_list args) argument 2923 vscnprintf(char *buf, size_t size, const char *fmt, va_list args) argument 2953 snprintf(char *buf, size_t size, const char *fmt, ...) argument 2977 scnprintf(char *buf, size_t size, const char *fmt, ...) argument 3004 vsprintf(char *buf, const char *fmt, va_list args) argument 3022 sprintf(char *buf, const char *fmt, ...) argument 3218 bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf) argument 3438 vsscanf(const char *buf, const char *fmt, va_list args) argument 3715 sscanf(const char *buf, const char *fmt, ...) argument [all...] |
/linux-master/drivers/media/common/siano/ |
H A D | smsdvb-debugfs.c | 38 char *buf; local 46 buf = debug_data->stats_data; 48 n += sysfs_emit_at(buf, n, "is_rf_locked = %d\n", p->is_rf_locked); 49 n += sysfs_emit_at(buf, n, "is_demod_locked = %d\n", p->is_demod_locked); 50 n += sysfs_emit_at(buf, n, "is_external_lna_on = %d\n", p->is_external_lna_on); 51 n += sysfs_emit_at(buf, n, "SNR = %d\n", p->SNR); 52 n += sysfs_emit_at(buf, n, "ber = %d\n", p->ber); 53 n += sysfs_emit_at(buf, n, "FIB_CRC = %d\n", p->FIB_CRC); 54 n += sysfs_emit_at(buf, n, "ts_per = %d\n", p->ts_per); 55 n += sysfs_emit_at(buf, 100 char *buf; local 164 char *buf; local [all...] |
/linux-master/drivers/staging/media/av7110/ |
H A D | dvb_filter.c | 73 unsigned char *buf=p2ts->buf; local 75 buf[0]=0x47; 76 buf[1]=(pid>>8); 77 buf[2]=pid&0xff; 86 unsigned char *buf=p2ts->buf; local 92 buf[1]|=0x40; 94 buf[1]&=~0x40; 96 buf[ [all...] |
/linux-master/tools/perf/util/ |
H A D | demangle-java.c | 35 * up to maxlen characters into buf. The parser starts in mode. 41 * success: buf 45 __demangle_java_sym(const char *str, const char *end, char *buf, int maxlen, int mode) argument 65 rlen += scnprintf(buf + rlen, maxlen - rlen, ", "); 73 buf[rlen++] = *q; 85 rlen += scnprintf(buf + rlen, maxlen - rlen, ", "); 86 rlen += scnprintf(buf + rlen, maxlen - rlen, "%s", base_types[*q - 'A']); 88 rlen += scnprintf(buf + rlen, maxlen - rlen, "[]"); 92 buf[rlen++] = *q; 96 rlen += scnprintf(buf 160 char *buf, *ptr; local [all...] |