/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 | 24 #define PERF_IDX2OFF(idx, buf) ((idx) % ((buf)->nr_pages << PAGE_SHIFT)) 132 struct trbe_buf *buf; member in struct:trbe_cpudata 283 struct trbe_buf *buf = etm_perf_sink_config(handle); local 292 trbe_drain_and_disable_local(buf->cpudata); 295 *this_cpu_ptr(buf->cpudata->drvdata->handle) = NULL; 341 static void __trbe_pad_buf(struct trbe_buf *buf, u64 offset, int len) argument 343 memset((void *)buf->trbe_base + offset, ETE_IGNORE_PACKET, len); 348 struct trbe_buf *buf = etm_perf_sink_config(handle); local 349 u64 head = PERF_IDX2OFF(handle->head, buf); 358 struct trbe_buf *buf = etm_perf_sink_config(handle); local 371 struct trbe_buf *buf = etm_perf_sink_config(handle); local 399 struct trbe_buf *buf = etm_perf_sink_config(handle); local 548 struct trbe_buf *buf = etm_perf_sink_config(handle); local 570 struct trbe_buf *buf = etm_perf_sink_config(handle); local 594 set_trbe_limit_pointer_enabled(struct trbe_buf *buf) argument 629 trbe_enable_hw(struct trbe_buf *buf) argument 652 struct trbe_buf *buf = etm_perf_sink_config(handle); local 675 trbe_get_trace_size(struct perf_output_handle *handle, struct trbe_buf *buf, bool wrap) argument 731 struct trbe_buf *buf; local 774 struct trbe_buf *buf = config; local 786 struct trbe_buf *buf = config; local 868 trbe_apply_work_around_before_enable(struct trbe_buf *buf) argument 982 __arm_trbe_enable(struct trbe_buf *buf, struct perf_output_handle *handle) argument 1015 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1033 struct trbe_buf *buf = cpudata->buf; local 1050 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1064 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1092 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1116 struct trbe_buf *buf = etm_perf_sink_config(handle); local 1188 align_show(struct device *dev, struct device_attribute *attr, char *buf) argument 1196 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/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/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/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...] |
/linux-master/drivers/net/wireless/ath/ath6kl/ |
H A D | trace.h | 11 static inline unsigned int ath6kl_get_wmi_id(void *buf, size_t buf_len) argument 13 struct wmi_cmd_hdr *hdr = buf; 40 TP_PROTO(void *buf, size_t buf_len), 42 TP_ARGS(buf, buf_len), 47 __dynamic_array(u8, buf, buf_len) 51 __entry->id = ath6kl_get_wmi_id(buf, buf_len); 53 memcpy(__get_dynamic_array(buf), buf, buf_len); 63 TP_PROTO(void *buf, size_t buf_len), 65 TP_ARGS(buf, buf_le [all...] |
/linux-master/sound/core/ |
H A D | memory.c | 50 char buf[256]; 53 if (c > sizeof(buf)) 54 c = sizeof(buf); 55 memcpy_fromio(buf, (void __iomem *)src, c); 56 if (copy_to_iter(buf, c, dst) != c) 101 char buf[256]; 104 if (c > sizeof(buf)) 105 c = sizeof(buf); 106 if (copy_from_iter(buf, c, src) != c) 108 memcpy_toio(dst, buf, [all...] |
/linux-master/drivers/acpi/ |
H A D | processor_pdc.c | 18 static void acpi_set_pdc_bits(u32 *buf) argument 20 buf[0] = ACPI_PDC_REVISION_ID; 21 buf[1] = 1; 22 buf[2] = 0; 25 arch_acpi_set_proc_cap_bits(&buf[2]); 32 u32 *buf; local 45 buf = kmalloc(12, GFP_KERNEL); 46 if (!buf) { 52 acpi_set_pdc_bits(buf); 56 obj->buffer.pointer = (u8 *) buf; [all...] |
/linux-master/drivers/ssb/ |
H A D | host_soc.c | 52 u8 *buf = buffer; local 55 *buf = __raw_readb(addr); 56 buf++; 62 __le16 *buf = buffer; local 66 *buf = (__force __le16)__raw_readw(addr); 67 buf++; 73 __le32 *buf = buffer; local 77 *buf = (__force __le32)__raw_readl(addr); 78 buf++; 125 const u8 *buf local 135 const __le16 *buf = buffer; local 146 const __le32 *buf = buffer; local 179 char buf[20]; local [all...] |
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | dib0700_core.c | 35 st->buf, 16, USB_CTRL_GET_TIMEOUT); 37 *hwversion = (st->buf[0] << 24) | (st->buf[1] << 16) | 38 (st->buf[2] << 8) | st->buf[3]; 40 *romversion = (st->buf[4] << 24) | (st->buf[5] << 16) | 41 (st->buf[6] << 8) | st->buf[7]; 43 *ramversion = (st->buf[ 479 u8 *buf; local 511 u8 *buf; local [all...] |
/linux-master/drivers/media/pci/cx88/ |
H A D | cx88-vbi.c | 53 struct cx88_buffer *buf) 59 VBI_LINE_LENGTH, buf->risc.dma); 101 struct cx88_buffer *buf; local 106 buf = list_entry(q->active.next, struct cx88_buffer, list); 108 buf, buf->vb.vb2_buf.index); 109 cx8800_start_vbi_dma(dev, q, buf); 133 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); local 147 return cx88_risc_buffer(dev->pci, &buf->risc, sgt->sgl, 157 struct cx88_buffer *buf local 51 cx8800_start_vbi_dma(struct cx8800_dev *dev, struct cx88_dmaqueue *q, struct cx88_buffer *buf) argument 170 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); local 198 struct cx88_buffer *buf = list_entry(dmaq->active.next, local 217 struct cx88_buffer *buf = list_entry(dmaq->active.next, local [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | perf.c | 28 char buf[256]; local 45 len = sizeof(buf); 46 bpf_task_fd_query(getpid(), fd, 0, buf, &len, &prog_id, local 66 char *buf, __u64 probe_offset, __u64 probe_addr) 75 jsonw_string_field(json_wtr, "tracepoint", buf); 79 jsonw_string_field(json_wtr, "tracepoint", buf); 83 if (buf[0] != '\0') { 84 jsonw_string_field(json_wtr, "func", buf); 92 if (buf[0] != '\0') { 93 jsonw_string_field(json_wtr, "func", buf); 65 print_perf_json(int pid, int fd, __u32 prog_id, __u32 fd_type, char *buf, __u64 probe_offset, __u64 probe_addr) argument 115 print_perf_plain(int pid, int fd, __u32 prog_id, __u32 fd_type, char *buf, __u64 probe_offset, __u64 probe_addr) argument 160 char buf[4096]; local [all...] |
/linux-master/net/wireless/ |
H A D | debugfs.c | 19 char buf[buflen]; \ 22 res = scnprintf(buf, buflen, fmt "\n", ##value); \ 23 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 42 char *buf, int buf_size, int offset) 48 return scnprintf(buf + offset, 53 return scnprintf(buf + offset, 68 char *buf; local 74 buf = kzalloc(buf_size, GFP_KERNEL); 75 if (!buf) 84 buf, buf_siz 41 ht_print_chan(struct ieee80211_channel *chan, char *buf, int buf_size, int offset) argument 123 char *buf; member in struct:debugfs_read_work 148 wiphy_locked_debugfs_read(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, char __user *userbuf, size_t count, loff_t *ppos, ssize_t (*handler)(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, void *data), void *data) argument 203 char *buf; member in struct:debugfs_write_work 228 wiphy_locked_debugfs_write(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, const char __user *userbuf, size_t count, ssize_t (*handler)(struct wiphy *wiphy, struct file *file, char *buf, size_t count, void *data), void *data) argument [all...] |
/linux-master/drivers/soundwire/ |
H A D | debugfs.c | 35 char *buf, size_t pos, unsigned int reg) 42 return scnprintf(buf + pos, RD_BUF - pos, "%3x\tXX\n", reg); 44 return scnprintf(buf + pos, RD_BUF - pos, 51 char *buf; local 55 buf = kzalloc(RD_BUF, GFP_KERNEL); 56 if (!buf) 62 kfree(buf); 66 ret = scnprintf(buf, RD_BUF, "Register Value\n"); 69 ret += scnprintf(buf + ret, RD_BUF - ret, "\nDP0\n"); 71 ret += sdw_sprintf(slave, buf, re 34 sdw_sprintf(struct sdw_slave *slave, char *buf, size_t pos, unsigned int reg) argument [all...] |