Searched refs:buf (Results 151 - 175 of 3765) sorted by relevance

1234567891011>>

/drivers/net/wireless/ath/ath10k/
H A Dtrace.h109 const void *buf, size_t buf_len),
111 TP_ARGS(ar, msg, prefix, buf, buf_len),
119 __dynamic_array(u8, buf, buf_len)
128 memcpy(__get_dynamic_array(buf), buf, buf_len);
141 TP_PROTO(struct ath10k *ar, int id, void *buf, size_t buf_len, int ret),
143 TP_ARGS(ar, id, buf, buf_len, ret),
150 __dynamic_array(u8, buf, buf_len)
160 memcpy(__get_dynamic_array(buf), buf, buf_le
[all...]
/drivers/net/wireless/ath/wcn36xx/
H A Ddebug.c33 char buf[3]; local
41 buf[0] = '1';
43 buf[0] = '0';
47 buf[1] = '\n';
48 buf[2] = 0x00;
50 return simple_read_from_buffer(user_buf, count, ppos, buf, 2);
61 char buf[32]; local
64 buf_size = min(count, (sizeof(buf)-1));
65 if (copy_from_user(buf, user_buf, buf_size))
68 switch (buf[
109 char buf[255], *tmp; local
[all...]
/drivers/staging/android/fiq_debugger/
H A Dfiq_watchdog.c27 char buf[256]; local
32 len = vscnprintf(buf, sizeof(buf), fmt, ap);
35 ramoops_console_write_buf(buf, len);
/drivers/tty/hvc/
H A Dhvc_dcc.c24 static int hvc_dcc_put_chars(uint32_t vt, const char *buf, int count) argument
32 __dcc_putchar(buf[i]);
38 static int hvc_dcc_get_chars(uint32_t vt, char *buf, int count) argument
44 buf[i] = __dcc_getchar();
/drivers/infiniband/hw/usnic/
H A Dusnic_transport.c49 int usnic_transport_sock_to_str(char *buf, int buf_sz, argument
57 memset(buf, 0, buf_sz);
62 return scnprintf(buf, buf_sz, "Proto:%u Addr:%pI4h Port:%hu",
134 char buf[25]; local
144 usnic_transport_sock_to_str(buf, sizeof(buf), sock);
145 usnic_dbg("Get sock %s\n", buf);
152 char buf[100]; local
154 usnic_transport_sock_to_str(buf, sizeof(buf), soc
[all...]
/drivers/md/bcache/
H A Dsysfs.h16 char *buf) \
20 const char *buf, size_t size) \
27 ret = __ ## fn ## _show(kobj, attr, buf); \
37 ret = __ ## fn ## _store(kobj, attr, buf, size); \
53 return snprintf(buf, PAGE_SIZE, fmt "\n", __VA_ARGS__); \
59 return snprint(buf, PAGE_SIZE, var); \
65 ssize_t ret = bch_hprint(buf, val); \
66 strcat(buf, "\n"); \
78 return strtoul_safe(buf, var) ?: (ssize_t) size; \
84 return strtoul_safe_clamp(buf, va
[all...]
/drivers/media/dvb-frontends/
H A Dcxd2820r_t.c31 u8 buf[3], bw_param; local
107 buf[0] = ((if_ctl >> 16) & 0xff);
108 buf[1] = ((if_ctl >> 8) & 0xff);
109 buf[2] = ((if_ctl >> 0) & 0xff);
111 ret = cxd2820r_wr_regs(priv, 0x000b6, buf, 3);
146 u8 buf[2]; local
148 ret = cxd2820r_rd_regs(priv, 0x0002f, buf, sizeof(buf));
152 switch ((buf[0] >> 6) & 0x03) {
164 switch ((buf[
262 u8 buf[3], start_ber = 0; local
297 u8 buf[2]; local
320 u8 buf[2]; local
356 u8 buf[4]; local
[all...]
/drivers/media/usb/uvc/
H A Duvc_debugfs.c35 struct uvc_debugfs_buffer *buf; local
37 buf = kmalloc(sizeof(*buf), GFP_KERNEL);
38 if (buf == NULL)
41 buf->count = uvc_video_stats_dump(stream, buf->data, sizeof(buf->data));
43 file->private_data = buf;
50 struct uvc_debugfs_buffer *buf = file->private_data; local
52 return simple_read_from_buffer(user_buf, nbytes, ppos, buf
[all...]
/drivers/pci/
H A Dsyscall.c17 unsigned long, off, unsigned long, len, void __user *, buf)
55 err = put_user(byte, (unsigned char __user *)buf);
58 err = put_user(word, (unsigned short __user *)buf);
61 err = put_user(dword, (unsigned int __user *)buf);
73 put_user(-1, (unsigned char __user *)buf);
76 put_user(-1, (unsigned short __user *)buf);
79 put_user(-1, (unsigned int __user *)buf);
87 unsigned long, off, unsigned long, len, void __user *, buf)
104 err = get_user(byte, (u8 __user *)buf);
113 err = get_user(word, (u16 __user *)buf);
[all...]
/drivers/w1/slaves/
H A Dw1_ds2413.c34 struct bin_attribute *bin_attr, char *buf, loff_t off,
40 bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
44 if (!buf)
56 *buf = w1_read_8(sl->master);
62 if ((*buf & 0x0F) != ((~*buf >> 4) & 0x0F))
71 struct bin_attribute *bin_attr, char *buf,
90 *buf = *buf | 0xFC;
94 w1_buf[1] = *buf;
33 state_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
70 output_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
[all...]
/drivers/gpu/drm/udl/
H A Dudl_modeset.c23 static char *udl_set_register(char *buf, u8 reg, u8 val) argument
25 *buf++ = 0xAF;
26 *buf++ = 0x20;
27 *buf++ = reg;
28 *buf++ = val;
29 return buf;
32 static char *udl_vidreg_lock(char *buf) argument
34 return udl_set_register(buf, 0xFF, 0x00);
37 static char *udl_vidreg_unlock(char *buf) argument
39 return udl_set_register(buf,
48 udl_set_blank(char *buf, int dpms_mode) argument
69 udl_set_color_depth(char *buf, u8 selection) argument
234 char *buf; local
257 char *buf; local
315 char *buf; local
[all...]
/drivers/iommu/
H A Domap-iommu-debug.c37 char buf[MAXCOLUMN], *p = buf; local
41 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf);
49 char *p, *buf; local
52 buf = kmalloc(count, GFP_KERNEL);
53 if (!buf)
55 p = buf;
60 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, bytes);
63 kfree(buf);
73 char *p, *buf; local
104 char buf[MAXCOLUMN], *p = buf; local
143 dump_ioptable(struct omap_iommu *obj, char *buf, ssize_t len) argument
192 char *p, *buf; local
[all...]
/drivers/pci/hotplug/
H A Drpadlpar_sysfs.c33 const char *buf, size_t nbytes)
42 memcpy(drc_name, buf, nbytes);
57 struct kobj_attribute *attr, char *buf)
59 return sprintf(buf, "0\n");
64 const char *buf, size_t nbytes)
73 memcpy(drc_name, buf, nbytes);
88 struct kobj_attribute *attr, char *buf)
90 return sprintf(buf, "0\n");
32 add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) argument
56 add_slot_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
62 remove_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) argument
87 remove_slot_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
/drivers/rtc/
H A Drtc-tx4939.c50 unsigned char buf[6]; local
52 buf[0] = 0;
53 buf[1] = 0;
54 buf[2] = secs;
55 buf[3] = secs >> 8;
56 buf[4] = secs >> 16;
57 buf[5] = secs >> 24;
61 __raw_writel(buf[i], &rtcreg->dat);
75 unsigned char buf[6]; local
87 buf[
100 unsigned char buf[6]; local
132 unsigned char buf[6]; local
192 tx4939_rtc_nvram_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t size) argument
211 tx4939_rtc_nvram_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t size) argument
[all...]
/drivers/scsi/bnx2i/
H A Dbnx2i_sysfs.c33 * @buf: buffer to return current SQ size parameter
39 struct device_attribute *attr, char *buf)
43 return sprintf(buf, "0x%x\n", hba->max_sqes);
50 * @buf: buffer to return current SQ size parameter
59 const char *buf, size_t count)
73 if (sscanf(buf, " 0x%x ", &val) > 0) {
90 * @buf: buffer to return current SQ size parameter
95 struct device_attribute *attr, char *buf)
99 return sprintf(buf, "0x%x\n", hba->num_ccell);
106 * @buf
38 bnx2i_show_sq_info(struct device *dev, struct device_attribute *attr, char *buf) argument
57 bnx2i_set_sq_info(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
94 bnx2i_show_ccell_info(struct device *dev, struct device_attribute *attr, char *buf) argument
111 bnx2i_set_ccell_info(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/drivers/staging/iio/adc/
H A Dad7606_ring.c49 __u8 *buf; local
52 buf = kzalloc(indio_dev->scan_bytes, GFP_KERNEL);
53 if (buf == NULL)
57 ret = st->bops->read_block(st->dev, 1, buf);
70 st->chip_info->num_channels - 1, buf + 2);
75 st->chip_info->num_channels, buf);
80 iio_push_to_buffers_with_timestamp(indio_dev, buf, iio_get_time_ns());
84 kfree(buf);
/drivers/usb/gadget/
H A Du_f.c24 req->buf = kmalloc(req->length, GFP_ATOMIC);
25 if (!req->buf) {
/drivers/media/usb/go7007/
H A Dgo7007-fw.c298 static int mjpeg_frame_header(struct go7007 *go, unsigned char *buf, int q) argument
302 buf[p++] = 0xff;
303 buf[p++] = 0xd8;
304 buf[p++] = 0xff;
305 buf[p++] = 0xdb;
306 buf[p++] = 0;
307 buf[p++] = 2 + 65;
308 buf[p++] = 0;
309 buf[p++] = default_intra_quant_table[0];
311 /* buf[
375 u8 *buf; local
424 mpeg1_frame_header(struct go7007 *go, unsigned char *buf, int modulo, int pict_struct, enum mpeg_frame_type frame) argument
532 mpeg1_sequence_header(struct go7007 *go, unsigned char *buf, int ext) argument
642 u8 *buf; local
725 mpeg4_frame_header(struct go7007 *go, unsigned char *buf, int modulo, enum mpeg_frame_type frame) argument
779 mpeg4_sequence_header(struct go7007 *go, unsigned char *buf, int ext) argument
828 u8 *buf; local
1206 seqhead_to_package(struct go7007 *go, __le16 *code, int space, int (*sequence_header_func)(struct go7007 *go, unsigned char *buf, int ext)) argument
1213 unsigned char buf[40] = { }; local
[all...]
/drivers/media/usb/dvb-usb/
H A Dvp702x.c121 u8 *buf; local
129 buf = kmalloc(buflen, GFP_KERNEL);
130 if (!buf) {
135 kfree(st->buf);
136 st->buf = buf;
139 buf = st->buf;
142 buf[0] = 0x00;
143 buf[
159 u8 *buf; local
176 u8 *buf; local
194 u8 *buf; local
295 u8 i, *buf; local
310 u8 buf[10] = { 0 }; local
[all...]
/drivers/macintosh/
H A Dwindfarm_ad7417_sensor.c40 u8 buf[2]; local
48 buf[0] = 0;
49 rc = i2c_master_send(pv->i2c, buf, 1);
52 rc = i2c_master_recv(pv->i2c, buf, 2);
57 raw = be16_to_cpup((__le16 *)buf);
105 u8 buf[2]; local
112 buf[0] = 1;
113 buf[1] = (pv->config & 0x1f) | (chan << 5);
114 rc = i2c_master_send(pv->i2c, buf, 2);
122 buf[
194 u8 buf[2]; local
[all...]
/drivers/misc/genwqe/
H A Dcard_sysfs.c49 char *buf)
54 return sprintf(buf, "%s\n", cs[cd->card_state]);
59 char *buf)
65 return sprintf(buf, "%s\n", app_name);
70 char *buf)
78 return sprintf(buf, "%016llx.%016llx\n", slu_id, app_id);
83 char *buf)
89 return sprintf(buf, "%s\n", (card_type >= ARRAY_SIZE(genwqe_types)) ?
95 char *buf)
101 return sprintf(buf, "
48 status_show(struct device *dev, struct device_attribute *attr, char *buf) argument
58 appid_show(struct device *dev, struct device_attribute *attr, char *buf) argument
69 version_show(struct device *dev, struct device_attribute *attr, char *buf) argument
82 type_show(struct device *dev, struct device_attribute *attr, char *buf) argument
94 tempsens_show(struct device *dev, struct device_attribute *attr, char *buf) argument
105 freerunning_timer_show(struct device *dev, struct device_attribute *attr, char *buf) argument
117 queue_working_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument
129 base_clock_show(struct device *dev, struct device_attribute *attr, char *buf) argument
157 curr_bitstream_show(struct device *dev, struct device_attribute *attr, char *buf) argument
173 next_bitstream_show(struct device *dev, struct device_attribute *attr, char *buf) argument
193 next_bitstream_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
219 reload_bitstream_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb.c63 u8 *buf = tlv->tlvinfo; local
76 etscfg->willing = (u8)((buf[offset] & I40E_IEEE_ETS_WILLING_MASK) >>
78 etscfg->cbs = (u8)((buf[offset] & I40E_IEEE_ETS_CBS_MASK) >>
80 etscfg->maxtcs = (u8)((buf[offset] & I40E_IEEE_ETS_MAXTC_MASK) >>
95 priority = (u8)((buf[offset] & I40E_IEEE_ETS_PRIO_1_MASK) >>
98 priority = (u8)((buf[offset] & I40E_IEEE_ETS_PRIO_0_MASK) >>
111 etscfg->tcbwtable[i] = buf[offset++];
120 etscfg->tsatable[i] = buf[offset++];
133 u8 *buf = tlv->tlvinfo; local
150 priority = (u8)((buf[offse
188 u8 *buf = tlv->tlvinfo; local
219 u8 *buf; local
[all...]
/drivers/net/wireless/ath/ath6kl/
H A Dtestmode.c46 void ath6kl_tm_rx_event(struct ath6kl *ar, void *buf, size_t buf_len) argument
50 if (!buf || buf_len == 0)
59 nla_put(skb, ATH6KL_TM_ATTR_DATA, buf_len, buf))
75 void *buf; local
90 buf = nla_data(tb[ATH6KL_TM_ATTR_DATA]);
93 ath6kl_wmi_test_cmd(ar->wmi, buf, buf_len);
/drivers/net/wireless/ath/ath9k/
H A Dcommon-debug.c24 char *buf; local
27 buf = kzalloc(size, GFP_KERNEL);
28 if (buf == NULL)
31 len = ah->eep_ops->dump_eeprom(ah, false, buf, len, size);
33 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
34 kfree(buf);
61 char *buf; local
63 buf = kzalloc(size, GFP_KERNEL);
64 if (!buf)
67 len = ah->eep_ops->dump_eeprom(ah, true, buf, le
134 char *buf; local
194 char *buf; local
[all...]
/drivers/pcmcia/
H A Dsocket_sysfs.c37 char *buf)
44 return sprintf(buf, "32-bit\n");
45 return sprintf(buf, "16-bit\n");
50 char *buf)
57 return sprintf(buf, "%d.%dV\n", s->socket.Vcc / 10,
59 return sprintf(buf, "X.XV\n");
64 char *buf)
69 return sprintf(buf, "%d.%dV\n", s->socket.Vpp / 10, s->socket.Vpp % 10);
74 char *buf)
79 return sprintf(buf, "
36 pccard_show_type(struct device *dev, struct device_attribute *attr, char *buf) argument
49 pccard_show_voltage(struct device *dev, struct device_attribute *attr, char *buf) argument
63 pccard_show_vpp(struct device *dev, struct device_attribute *attr, char *buf) argument
73 pccard_show_vcc(struct device *dev, struct device_attribute *attr, char *buf) argument
84 pccard_store_insert(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
99 pccard_show_card_pm_state(struct device *dev, struct device_attribute *attr, char *buf) argument
107 pccard_store_card_pm_state(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
130 pccard_store_eject(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
146 pccard_show_irq_mask(struct device *dev, struct device_attribute *attr, char *buf) argument
154 pccard_store_irq_mask(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
179 pccard_show_resource(struct device *dev, struct device_attribute *attr, char *buf) argument
186 pccard_store_resource(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]

Completed in 574 milliseconds

1234567891011>>