/linux-master/include/crypto/ |
H A D | ecdh.h | 56 * @buf: Buffer allocated by the caller to hold the packet ECDH 67 int crypto_ecdh_encode_key(char *buf, unsigned int len, const struct ecdh *p); 71 * @buf: Buffer holding a packet key that should be decoded 77 * in @buf. Thus, both pointers refer to the same memory. 81 int crypto_ecdh_decode_key(const char *buf, unsigned int len, struct ecdh *p);
|
/linux-master/include/drm/ |
H A D | i915_gsc_proxy_mei_interface.h | 26 * @buf: message buffer to send 30 int (*send)(struct device *dev, const void *buf, size_t size); 35 * @buf: message buffer to contain the received message 39 int (*recv)(struct device *dev, void *buf, size_t size);
|
/linux-master/tools/perf/tests/workloads/ |
H A D | datasym.c | 8 } buf __attribute__((aligned(64))); typedef in typeref:struct:_buf 10 static buf buf1 = {
|
/linux-master/include/linux/ |
H A D | nvram.h | 81 static inline ssize_t nvram_read_bytes(char *buf, size_t count, loff_t *ppos) argument 85 char *p = buf; 92 return p - buf; 95 static inline ssize_t nvram_write_bytes(char *buf, size_t count, loff_t *ppos) argument 99 char *p = buf; 106 return p - buf; 109 static inline ssize_t nvram_read(char *buf, size_t count, loff_t *ppos) argument 113 return ppc_md.nvram_read(buf, count, ppos); 116 return arch_nvram_ops.read(buf, count, ppos); 118 return nvram_read_bytes(buf, coun 121 nvram_write(char *buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/tools/usb/usbip/libsrc/ |
H A D | names.c | 293 char buf[512], *cp; local 302 while (fgets(buf, sizeof(buf), f)) { 305 cp = strchr(buf, '\r'); 308 cp = strchr(buf, '\n'); 311 if (buf[0] == '#' || !buf[0]) 313 cp = buf; 314 if (buf[0] == 'P' && buf[ [all...] |
/linux-master/sound/drivers/opl4/ |
H A D | opl4_proc.c | 44 char* buf; local 46 buf = vmalloc(count); 47 if (!buf) 49 snd_opl4_read_memory(opl4, buf, pos, count); 50 if (copy_to_user(_buf, buf, count)) { 51 vfree(buf); 54 vfree(buf); 65 char *buf; local 67 buf = vmalloc(count); 68 if (!buf) [all...] |
/linux-master/drivers/md/ |
H A D | dm-sysfs.c | 69 static ssize_t dm_attr_name_show(struct mapped_device *md, char *buf) argument 71 if (dm_copy_name_and_uuid(md, buf, NULL)) 74 strcat(buf, "\n"); 75 return strlen(buf); 78 static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf) argument 80 if (dm_copy_name_and_uuid(md, NULL, buf)) 83 strcat(buf, "\n"); 84 return strlen(buf); 87 static ssize_t dm_attr_suspended_show(struct mapped_device *md, char *buf) argument 89 sprintf(buf, " 94 dm_attr_use_blk_mq_show(struct mapped_device *md, char *buf) argument [all...] |
/linux-master/drivers/platform/x86/intel/ifs/ |
H A D | sysfs.c | 24 char *buf) 28 return sysfs_emit(buf, "%#llx\n", ifsd->scan_details); 46 char *buf) 50 return sysfs_emit(buf, "%s\n", status_msg[ifsd->status]); 65 const char *buf, size_t count) 70 rc = kstrtouint(buf, 0, &cpu); 88 const char *buf, size_t count) 94 rc = kstrtouint(buf, 0, &cur_batch); 111 struct device_attribute *attr, char *buf) 116 return sysfs_emit(buf, "non 22 details_show(struct device *dev, struct device_attribute *attr, char *buf) argument 44 status_show(struct device *dev, struct device_attribute *attr, char *buf) argument 63 run_test_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 86 current_batch_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 110 current_batch_show(struct device *dev, struct device_attribute *attr, char *buf) argument 126 image_version_show(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | debugfs-vif.c | 72 static ssize_t iwl_dbgfs_pm_params_write(struct ieee80211_vif *vif, char *buf, argument 80 if (!strncmp("keep_alive=", buf, 11)) { 81 if (sscanf(buf + 11, "%d", &val) != 1) 84 } else if (!strncmp("skip_over_dtim=", buf, 15)) { 85 if (sscanf(buf + 15, "%d", &val) != 1) 88 } else if (!strncmp("skip_dtim_periods=", buf, 18)) { 89 if (sscanf(buf + 18, "%d", &val) != 1) 92 } else if (!strncmp("rx_data_timeout=", buf, 16)) { 93 if (sscanf(buf + 16, "%d", &val) != 1) 96 } else if (!strncmp("tx_data_timeout=", buf, 1 140 char buf[64]; local 157 char buf[512]; local 175 char buf[512]; local 295 iwl_dbgfs_bf_params_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 398 char buf[256]; local 451 char buf[64]; local 466 iwl_dbgfs_low_latency_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 488 iwl_dbgfs_low_latency_force_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 533 char buf[sizeof(format) + 1] = {}; local 554 char buf[20]; local 561 iwl_dbgfs_uapsd_misbehaving_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 576 iwl_dbgfs_rx_phyinfo_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 633 char buf[8]; local 652 iwl_dbgfs_quota_min_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 687 char buf[10]; local 695 iwl_dbgfs_int_mlo_scan_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 733 char *buf; local 757 iwl_dbgfs_esr_disable_reason_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 847 char buf[3 * 3 + 11 + (NL80211_WIPHY_NAME_MAXLEN + 1) + local [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-max8925.c | 82 static int tm_calc(struct rtc_time *tm, unsigned char *buf, int len) argument 86 tm->tm_year = (buf[RTC_YEAR2] >> 4) * 1000 87 + (buf[RTC_YEAR2] & 0xf) * 100 88 + (buf[RTC_YEAR1] >> 4) * 10 89 + (buf[RTC_YEAR1] & 0xf); 91 tm->tm_mon = ((buf[RTC_MONTH] >> 4) & 0x01) * 10 92 + (buf[RTC_MONTH] & 0x0f); 93 tm->tm_mday = ((buf[RTC_DATE] >> 4) & 0x03) * 10 94 + (buf[RTC_DATE] & 0x0f); 95 tm->tm_wday = buf[RTC_WEEKDA 111 data_calc(unsigned char *buf, struct rtc_time *tm, int len) argument 154 unsigned char buf[TIME_NUM]; local 168 unsigned char buf[TIME_NUM]; local 182 unsigned char buf[TIME_NUM]; local 220 unsigned char buf[TIME_NUM]; local [all...] |
H A D | rtc-ds1347.c | 54 unsigned char buf[8]; local 65 err = regmap_bulk_read(map, DS1347_CLOCK_BURST, buf, 8); 76 } while (buf[0] != secs); 78 dt->tm_sec = bcd2bin(buf[0]); 79 dt->tm_min = bcd2bin(buf[1] & 0x7f); 80 dt->tm_hour = bcd2bin(buf[2] & 0x3F); 81 dt->tm_mday = bcd2bin(buf[3]); 82 dt->tm_mon = bcd2bin(buf[4]) - 1; 83 dt->tm_wday = bcd2bin(buf[5]) - 1; 84 dt->tm_year = (bcd2bin(century) * 100) + bcd2bin(buf[ 93 unsigned char buf[8]; local [all...] |
H A D | rtc-ds1305.c | 142 u8 buf[2]; local 145 buf[0] = DS1305_WRITE | DS1305_CONTROL; 146 buf[1] = ds1305->ctrl[0]; 151 buf[1] |= DS1305_AEI0; 153 if (!(buf[1] & DS1305_AEI0)) 155 buf[1] &= ~DS1305_AEI0; 157 err = spi_write_then_read(ds1305->spi, buf, sizeof(buf), NULL, 0); 159 ds1305->ctrl[0] = buf[1]; 174 u8 buf[DS1305_RTC_LE local 208 u8 buf[1 + DS1305_RTC_LEN]; local 272 u8 buf[DS1305_ALM_LEN]; local 325 u8 buf[1 + DS1305_ALM_LEN]; local 439 u8 buf[3]; local 507 ds1305_nvram_read(void *priv, unsigned int off, void *buf, size_t count) argument 522 ds1305_nvram_write(void *priv, unsigned int off, void *buf, size_t count) argument 603 u8 buf[2]; local 657 u8 buf[4]; local [all...] |
/linux-master/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-ctrl.h | 72 char *buf,unsigned int maxlen, 77 const char *buf,unsigned int len, 83 char *buf,unsigned int maxlen, 88 const char *buf,unsigned int len, 95 char *buf,unsigned int maxlen,
|
/linux-master/samples/hidraw/ |
H A D | hid-example.c | 47 char buf[256]; local 66 memset(buf, 0x0, sizeof(buf)); 88 res = ioctl(fd, HIDIOCGRAWNAME(256), buf); 92 printf("Raw Name: %s\n", buf); 95 res = ioctl(fd, HIDIOCGRAWPHYS(256), buf); 99 printf("Raw Phys: %s\n", buf); 114 buf[0] = 0x9; /* Report Number */ 115 buf[1] = 0xff; 116 buf[ [all...] |
/linux-master/drivers/media/pci/tw68/ |
H A D | tw68-risc.c | 117 * @buf: structure with info about the memory 129 struct tw68_buf *buf, 153 buf->size = instructions * 8; 154 buf->cpu = dma_alloc_coherent(&pci->dev, buf->size, &buf->dma, 156 if (buf->cpu == NULL) 160 rp = buf->cpu; 169 buf->jmp = rp; 170 buf 128 tw68_risc_buffer(struct pci_dev *pci, struct tw68_buf *buf, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines) argument [all...] |
/linux-master/drivers/scsi/qedi/ |
H A D | qedi_sysfs.c | 21 char *buf) 26 return sprintf(buf, "Online\n"); 28 return sprintf(buf, "Linkdown\n"); 32 struct device_attribute *attr, char *buf) 39 return sprintf(buf, "%d Gbit\n", if_link.speed / 1000); 19 port_state_show(struct device *dev, struct device_attribute *attr, char *buf) argument 31 speed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
|
/linux-master/arch/um/include/shared/ |
H A D | net_user.h | 39 extern int net_read(int fd, void *buf, int len); 40 extern int net_recvfrom(int fd, void *buf, int len); 41 extern int net_write(int fd, void *buf, int len); 42 extern int net_send(int fd, void *buf, int len); 43 extern int net_sendto(int fd, void *buf, int len, void *to, int sock_len);
|
/linux-master/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_wq.h | 124 struct vnic_wq_buf *buf = wq->to_use; local 126 buf->sop = sop; 127 buf->cq_entry = cq_entry; 128 buf->compressed_send = compressed_send; 129 buf->desc_skip_cnt = desc_skip_cnt; 130 buf->os_buf = eop ? os_buf : NULL; 131 buf->dma_addr = dma_addr; 132 buf->len = len; 133 buf->wr_id = wrid; 135 buf 141 vnic_wq_service(struct vnic_wq *wq, struct cq_desc *cq_desc, u16 completed_index, void (*buf_service)(struct vnic_wq *wq, struct cq_desc *cq_desc, struct vnic_wq_buf *buf, void *opaque), void *opaque) argument 147 struct vnic_wq_buf *buf; local [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | libbpf_str.c | 43 char buf[256]; local 52 snprintf(buf, sizeof(buf), "BPF_%s", attach_type_str); 53 uppercase(buf); 55 ASSERT_STREQ(buf, attach_type_name, "exp_str_value"); 88 char buf[256]; local 97 snprintf(buf, sizeof(buf), "BPF_LINK_TYPE_%s", link_type_str); 98 uppercase(buf); 100 ASSERT_STREQ(buf, link_type_nam 133 char buf[256]; local 190 char buf[256]; local [all...] |
/linux-master/lib/ |
H A D | bitmap-str.c | 28 char *buf; local 31 buf = memdup_user_nul(ubuf, ulen); 32 if (IS_ERR(buf)) 33 return PTR_ERR(buf); 35 ret = bitmap_parse(buf, UINT_MAX, maskp, nmaskbits); 37 kfree(buf); 45 * @buf: page aligned buffer into which string is placed 51 * sets of 8 digits/set. Returns the number of characters written to buf. 53 * It is assumed that @buf is a pointer into a PAGE_SIZE, page-aligned 54 * area and that sufficient storage remains at @buf t 58 bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, int nmaskbits) argument 79 bitmap_print_to_buf(bool list, char *buf, const unsigned long *maskp, int nmaskbits, loff_t off, size_t count) argument 180 bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, int nmaskbits, loff_t off, size_t count) argument 198 bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, int nmaskbits, loff_t off, size_t count) argument 374 bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits) argument 419 char *buf; local [all...] |
/linux-master/drivers/hwtracing/coresight/ |
H A D | coresight-trbe.c | 25 #define PERF_IDX2OFF(idx, buf) ((idx) % ((buf)->nr_pages << PAGE_SHIFT)) 133 struct trbe_buf *buf; member in struct:trbe_cpudata 284 struct trbe_buf *buf = etm_perf_sink_config(handle); local 293 trbe_drain_and_disable_local(buf->cpudata); 296 *this_cpu_ptr(buf->cpudata->drvdata->handle) = NULL; 342 static void __trbe_pad_buf(struct trbe_buf *buf, u64 offset, int len) argument 344 memset((void *)buf->trbe_base + offset, ETE_IGNORE_PACKET, len); 349 struct trbe_buf *buf = etm_perf_sink_config(handle); local 350 u64 head = PERF_IDX2OFF(handle->head, buf); 359 struct trbe_buf *buf = etm_perf_sink_config(handle); local 372 struct trbe_buf *buf = etm_perf_sink_config(handle); local 400 struct trbe_buf *buf = etm_perf_sink_config(handle); local 549 struct trbe_buf *buf = etm_perf_sink_config(handle); local 571 struct trbe_buf *buf = etm_perf_sink_config(handle); local 595 set_trbe_limit_pointer_enabled(struct trbe_buf *buf) argument 630 trbe_enable_hw(struct trbe_buf *buf) argument 653 struct trbe_buf *buf = etm_perf_sink_config(handle); local 676 trbe_get_trace_size(struct perf_output_handle *handle, struct trbe_buf *buf, bool wrap) argument 732 struct trbe_buf *buf; local 775 struct trbe_buf *buf = config; local 787 struct trbe_buf *buf = config; local 869 trbe_apply_work_around_before_enable(struct trbe_buf *buf) argument 983 __arm_trbe_enable(struct trbe_buf *buf, struct perf_output_handle *handle) argument 1016 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1034 struct trbe_buf *buf = cpudata->buf; local 1051 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1065 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1093 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1117 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1189 align_show(struct device *dev, struct device_attribute *attr, char *buf) argument 1197 flag_show(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/linux-master/drivers/accel/habanalabs/common/ |
H A D | sysfs.c | 13 static ssize_t clk_max_freq_mhz_show(struct device *dev, struct device_attribute *attr, char *buf) argument 27 return sprintf(buf, "%lu\n", (value / 1000 / 1000)); 31 const char *buf, size_t count) 42 rc = kstrtoull(buf, 0, &value); 56 static ssize_t clk_cur_freq_mhz_show(struct device *dev, struct device_attribute *attr, char *buf) argument 68 return sprintf(buf, "%lu\n", (value / 1000 / 1000)); 80 static ssize_t vrm_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 100 return sprintf(buf, "%#04x %#04x:%#04x:%#04x\n", 106 return sprintf(buf, "%#04x\n", le32_to_cpu(cpucp_info->infineon_version)); 117 char *buf) 30 clk_max_freq_mhz_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 116 uboot_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 124 armcp_kernel_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 132 armcp_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 140 cpld_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 149 cpucp_kernel_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 157 cpucp_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 165 fuse_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 173 thermal_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 181 fw_os_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 189 preboot_btl_ver_show(struct device *dev, struct device_attribute *attr, char *buf) argument 197 soft_reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 225 hard_reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 248 device_type_show(struct device *dev, struct device_attribute *attr, char *buf) argument 282 pci_addr_show(struct device *dev, struct device_attribute *attr, char *buf) argument 294 status_show(struct device *dev, struct device_attribute *attr, char *buf) argument 308 soft_reset_cnt_show(struct device *dev, struct device_attribute *attr, char *buf) argument 316 hard_reset_cnt_show(struct device *dev, struct device_attribute *attr, char *buf) argument 324 max_power_show(struct device *dev, struct device_attribute *attr, char *buf) argument 340 max_power_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 366 eeprom_read_handler(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t max_size) argument 397 security_enabled_show(struct device *dev, struct device_attribute *attr, char *buf) argument 405 module_id_show(struct device *dev, struct device_attribute *attr, char *buf) argument 413 parent_device_show(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/linux-master/drivers/dio/ |
H A D | dio-sysfs.c | 20 static ssize_t dio_show_id(struct device *dev, struct device_attribute *attr, char *buf) argument 25 return sprintf(buf, "0x%02x\n", (d->id & 0xff)); 29 static ssize_t dio_show_ipl(struct device *dev, struct device_attribute *attr, char *buf) argument 34 return sprintf(buf, "0x%02x\n", d->ipl); 38 static ssize_t dio_show_secid(struct device *dev, struct device_attribute *attr, char *buf) argument 43 return sprintf(buf, "0x%02x\n", ((d->id >> 8)& 0xff)); 47 static ssize_t dio_show_name(struct device *dev, struct device_attribute *attr, char *buf) argument 52 return sprintf(buf, "%s\n", d->name); 56 static ssize_t dio_show_resource(struct device *dev, struct device_attribute *attr, char *buf) argument 60 return sprintf(buf, " [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | debugfs.c | 56 char *buf; local 87 buf = kmalloc(bufsz, GFP_KERNEL); 88 if (!buf) 91 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", 93 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", 106 pos += scnprintf(buf + pos, bufsz - pos, 110 pos += scnprintf(buf + pos, bufsz - pos, 113 pos += scnprintf(buf + pos, bufsz - pos, 126 pos += scnprintf(buf + pos, bufsz - pos, "\n"); 128 pos += scnprintf(buf 146 char buf[64]; local 189 char *buf; local 248 char *buf; local 285 char *buf; local 348 char buf[512]; local 385 char *buf; local 412 char buf[8]; local 435 char buf[256 * NUM_IWL_RXON_CTX]; local 463 char buf[100]; local 493 char buf[8]; local 516 char buf[100]; local 531 char buf[8]; local 545 char buf[8]; local 587 char buf[10]; local 605 char buf[200]; local 643 iwl_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz) argument 672 char *buf; local 1105 char *buf; local 1302 char *buf; local 1422 char *buf; local 1510 char *buf; local 1653 char *buf; local 1732 char *buf; local 1786 char buf[60]; local 1809 char buf[8]; local 1834 char buf[128]; local 1854 char buf[8]; local 1885 char buf[20]; local 1898 char buf[20]; local 1911 char buf[12]; local 1925 char buf[8]; local 1952 char buf[12]; local 1966 char buf[8]; local 1991 char buf[300]; local 2026 char buf[8]; local 2051 char buf[200]; local 2097 char buf[40]; local 2116 char buf[8]; local 2157 char buf[8]; local 2175 char *buf = NULL; local 2191 char buf[8]; local 2216 char buf[120]; local 2244 char buf[8]; local 2371 char buf[100]; local [all...] |
/linux-master/tools/testing/selftests/drivers/dma-buf/ |
H A D | udmabuf.c | 18 #define TEST_PREFIX "drivers/dma-buf/udmabuf" 29 int devfd, memfd, buf, ret; local 66 buf = ioctl(devfd, UDMABUF_CREATE, &create); 67 if (buf >= 0) { 76 buf = ioctl(devfd, UDMABUF_CREATE, &create); 77 if (buf >= 0) { 86 buf = ioctl(devfd, UDMABUF_CREATE, &create); 87 if (buf >= 0) { 96 buf = ioctl(devfd, UDMABUF_CREATE, &create); 97 if (buf < [all...] |