Searched refs:buf (Results 176 - 200 of 3176) sorted by relevance

1234567891011>>

/drivers/regulator/
H A Dvirtual.c112 struct device_attribute *attr, char *buf)
115 return sprintf(buf, "%d\n", data->min_uV);
119 const char *buf, size_t count)
124 if (strict_strtol(buf, 10, &val) != 0)
138 struct device_attribute *attr, char *buf)
141 return sprintf(buf, "%d\n", data->max_uV);
145 const char *buf, size_t count)
150 if (strict_strtol(buf, 10, &val) != 0)
164 struct device_attribute *attr, char *buf)
167 return sprintf(buf, "
111 show_min_uV(struct device *dev, struct device_attribute *attr, char *buf) argument
118 set_min_uV(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
137 show_max_uV(struct device *dev, struct device_attribute *attr, char *buf) argument
144 set_max_uV(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
163 show_min_uA(struct device *dev, struct device_attribute *attr, char *buf) argument
170 set_min_uA(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
189 show_max_uA(struct device *dev, struct device_attribute *attr, char *buf) argument
196 set_max_uA(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
215 show_mode(struct device *dev, struct device_attribute *attr, char *buf) argument
234 set_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/drivers/firmware/
H A Dmemmap.c50 struct attribute *attr, char *buf);
51 static ssize_t start_show(struct firmware_map_entry *entry, char *buf);
52 static ssize_t end_show(struct firmware_map_entry *entry, char *buf);
53 static ssize_t type_show(struct firmware_map_entry *entry, char *buf);
61 ssize_t (*show)(struct firmware_map_entry *entry, char *buf);
203 static ssize_t start_show(struct firmware_map_entry *entry, char *buf) argument
205 return snprintf(buf, PAGE_SIZE, "0x%llx\n",
209 static ssize_t end_show(struct firmware_map_entry *entry, char *buf) argument
211 return snprintf(buf, PAGE_SIZE, "0x%llx\n",
215 static ssize_t type_show(struct firmware_map_entry *entry, char *buf) argument
223 memmap_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_sysfs.c76 static ssize_t show_hrtbt_enb(struct qib_pportdata *ppd, char *buf) argument
82 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret);
86 static ssize_t store_hrtbt_enb(struct qib_pportdata *ppd, const char *buf, argument
93 ret = qib_parse_ushort(buf, &val);
109 static ssize_t store_loopback(struct qib_pportdata *ppd, const char *buf, argument
115 r = dd->f_set_ib_loopback(ppd, buf);
122 static ssize_t store_led_override(struct qib_pportdata *ppd, const char *buf, argument
129 ret = qib_parse_ushort(buf, &val);
137 static ssize_t show_status(struct qib_pportdata *ppd, char *buf) argument
144 ret = scnprintf(buf, PAGE_SIZ
167 show_status_str(struct qib_pportdata *ppd, char *buf) argument
234 qib_portattr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
245 qib_portattr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument
322 sl2vl_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
394 diagc_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
406 diagc_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t size) argument
443 show_rev(struct device *device, struct device_attribute *attr, char *buf) argument
452 show_hca(struct device *device, struct device_attribute *attr, char *buf) argument
467 show_version(struct device *device, struct device_attribute *attr, char *buf) argument
474 show_boardversion(struct device *device, struct device_attribute *attr, char *buf) argument
486 show_localbus_info(struct device *device, struct device_attribute *attr, char *buf) argument
498 show_nctxts(struct device *device, struct device_attribute *attr, char *buf) argument
510 show_nfreectxts(struct device *device, struct device_attribute *attr, char *buf) argument
521 show_serial(struct device *device, struct device_attribute *attr, char *buf) argument
534 store_chip_reset(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
553 show_logged_errs(struct device *device, struct device_attribute *attr, char *buf) argument
578 show_tempsense(struct device *device, struct device_attribute *attr, char *buf) argument
[all...]
/drivers/staging/nvec/
H A Dnvec_ps2.c29 #define NVEC_PHD(str, buf, len) \
31 16, 1, buf, len, false)
33 #define NVEC_PHD(str, buf, len)
48 unsigned char buf[] = START_STREAMING; local
49 return nvec_write_async(ps2_dev.nvec, buf, sizeof(buf));
54 unsigned char buf[] = STOP_STREAMING; local
55 nvec_write_async(ps2_dev.nvec, buf, sizeof(buf));
60 unsigned char buf[] local
[all...]
/drivers/media/dvb/frontends/
H A Dbsru6.h107 u8 buf[4]; local
109 struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) };
116 buf[0] = (div >> 8) & 0x7f;
117 buf[1] = div & 0xff;
118 buf[2] = 0x80 | ((div & 0x18000) >> 10) | 4;
119 buf[3] = 0xC4;
122 buf[3] = 0xc0;
H A Dzl10036.c76 .buf = &status, .len = sizeof(status) },
94 static int zl10036_write(struct zl10036_state *state, u8 buf[], u8 count) argument
98 .buf = buf, .len = count },
106 if ((buf[0] & 0x80) == 0x00)
108 else if ((buf[0] & 0xc0) == 0x80)
110 else if ((buf[0] & 0xf0) == 0xc0)
112 else if ((buf[0] & 0xf0) == 0xd0)
114 else if ((buf[0] & 0xf0) == 0xe0)
116 else if ((buf[
150 u8 buf[] = { 0xf0, 0x80 }; /* regs 12/13 */ local
186 u8 buf[2]; local
286 u8 buf[2]; local
[all...]
H A Dhd29l2.c33 u8 buf[2 + len]; local
38 .len = sizeof(buf),
39 .buf = buf,
43 buf[0] = 0x00;
44 buf[1] = reg;
45 memcpy(&buf[2], val, len);
62 u8 buf[2] = { 0x00, reg }; local
68 .buf = buf,
214 u8 buf[2]; local
249 u8 buf[2]; local
281 u8 buf[2]; local
306 u8 buf[2]; local
341 u8 tmp, buf[3]; local
559 u8 buf[3]; local
[all...]
/drivers/staging/iio/adc/
H A Dad7606_ring.c51 __u8 *buf; local
54 buf = kzalloc(ring->access->get_bytes_per_datum(ring),
56 if (buf == NULL)
60 ret = st->bops->read_block(st->dev, 1, buf);
73 st->chip_info->num_channels - 1, buf + 2);
78 st->chip_info->num_channels, buf);
86 *((s64 *)(buf + ring->access->get_bytes_per_datum(ring) -
89 ring->access->store_to(indio_dev->buffer, buf, time_ns);
93 kfree(buf);
/drivers/net/ethernet/8390/
H A Dstnic.c68 const unsigned char *buf, int start_page);
179 half buf[2]; local
187 buf[0] = *(vhalf *) PA_83902_IF;
189 buf[1] = *(vhalf *) PA_83902_IF;
191 hdr->next = buf[0] >> 8;
192 hdr->status = buf[0] & 0xff;
194 hdr->count = buf[1];
196 hdr->count = ((buf[1] >> 8) & 0xff) | (buf[1] << 8);
215 char *buf local
245 stnic_block_output(struct net_device *dev, int length, const unsigned char *buf, int output_page) argument
[all...]
/drivers/staging/keucr/
H A Dtransport.h40 void *buf, unsigned int length, unsigned int *act_len);
42 void *buf, unsigned int length, int use_sg, int *residual);
64 extern int ENE_Read_BYTE(struct us_data*, WORD index, void *buf);
65 extern int ENE_Read_Data(struct us_data*, void *buf, unsigned int length);
66 extern int ENE_Write_Data(struct us_data*, void *buf, unsigned int length);
/drivers/staging/rts5139/
H A Drts51x_fop.c51 u8 *buf; local
67 if (!cmnd->buf || (cmnd->buf_len < len))
83 buf = kmalloc(cmnd->buf_len, GFP_KERNEL);
84 if (!buf)
89 rsp_code, arg, len, buf,
92 kfree(buf);
97 copy_to_user((void *)cmnd->buf, (void *)buf, cmnd->buf_len);
99 kfree(buf);
103 kfree(buf);
225 rts51x_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos) argument
231 rts51x_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos) argument
[all...]
H A Drts51x_fop.h38 void *buf; member in struct:sd_direct_cmnd
49 ssize_t rts51x_read(struct file *filp, char __user *buf, size_t count,
51 ssize_t rts51x_write(struct file *filp, const char __user *buf, size_t count,
/drivers/staging/speakup/
H A Ddevsynth.c23 u_char buf[256]; local
28 bytes = min(count, sizeof(buf));
29 if (copy_from_user(buf, ptr, bytes))
34 synth_write(buf, bytes);
40 static ssize_t speakup_file_read(struct file *fp, char *buf, size_t nbytes, argument
/drivers/net/wireless/prism54/
H A Dislpci_mgt.c121 struct islpci_membuf *buf = &priv->mgmt_rx[index]; local
124 if (buf->mem == NULL) {
125 buf->mem = kmalloc(MGMT_FRAME_SIZE, GFP_ATOMIC);
126 if (!buf->mem) {
131 buf->size = MGMT_FRAME_SIZE;
133 if (buf->pci_addr == 0) {
134 buf->pci_addr = pci_map_single(priv->pdev, buf->mem,
137 if (!buf->pci_addr) {
147 frag->address = cpu_to_le32(buf
177 struct islpci_membuf buf; local
292 struct islpci_membuf *buf = &priv->mgmt_rx[index]; local
435 struct islpci_membuf *buf = &priv->mgmt_tx[index]; local
[all...]
/drivers/media/common/tuners/
H A Dtda827x.c159 u8 buf[14]; local
163 .buf = buf, .len = sizeof(buf) };
189 buf[0] = 0;
190 buf[1] = (N>>8) | 0x40;
191 buf[2] = N & 0xff;
192 buf[3] = 0;
193 buf[4] = 0x52;
194 buf[
235 static u8 buf[] = { 0x30, 0xd0 }; local
447 static u8 buf[] = { 0x30, 0x90 }; local
465 unsigned char buf[] = {0x22, 0x01}; local
519 u8 buf[11]; local
[all...]
/drivers/scsi/arcmsr/
H A Darcmsr_attr.c65 char *buf, loff_t off,
78 ptmpQbuffer = (uint8_t *)buf;
112 char *buf, loff_t off,
126 ptmpuserbuffer = (uint8_t *)buf;
161 char *buf, loff_t off,
259 struct device_attribute *attr, char *buf)
261 return snprintf(buf, PAGE_SIZE,
268 struct device_attribute *attr, char *buf)
273 return snprintf(buf, PAGE_SIZE,
280 struct device_attribute *attr, char *buf)
62 arcmsr_sysfs_iop_message_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin, char *buf, loff_t off, size_t count) argument
109 arcmsr_sysfs_iop_message_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin, char *buf, loff_t off, size_t count) argument
158 arcmsr_sysfs_iop_message_clear(struct file *filp, struct kobject *kobj, struct bin_attribute *bin, char *buf, loff_t off, size_t count) argument
258 arcmsr_attr_host_driver_version(struct device *dev, struct device_attribute *attr, char *buf) argument
267 arcmsr_attr_host_driver_posted_cmd(struct device *dev, struct device_attribute *attr, char *buf) argument
279 arcmsr_attr_host_driver_reset(struct device *dev, struct device_attribute *attr, char *buf) argument
291 arcmsr_attr_host_driver_abort(struct device *dev, struct device_attribute *attr, char *buf) argument
303 arcmsr_attr_host_fw_model(struct device *dev, struct device_attribute *attr, char *buf) argument
315 arcmsr_attr_host_fw_version(struct device *dev, struct device_attribute *attr, char *buf) argument
328 arcmsr_attr_host_fw_request_len(struct device *dev, struct device_attribute *attr, char *buf) argument
341 arcmsr_attr_host_fw_numbers_queue(struct device *dev, struct device_attribute *attr, char *buf) argument
354 arcmsr_attr_host_fw_sdram_size(struct device *dev, struct device_attribute *attr, char *buf) argument
367 arcmsr_attr_host_fw_hd_channels(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/drivers/rtc/
H A Drtc-sysfs.c29 char *buf)
31 return sprintf(buf, "%s\n", to_rtc_device(dev)->name);
36 char *buf)
43 retval = sprintf(buf, "%04d-%02d-%02d\n",
52 char *buf)
59 retval = sprintf(buf, "%02d:%02d:%02d\n",
68 char *buf)
77 retval = sprintf(buf, "%lu\n", time);
85 char *buf)
87 return sprintf(buf, "
28 rtc_sysfs_show_name(struct device *dev, struct device_attribute *attr, char *buf) argument
35 rtc_sysfs_show_date(struct device *dev, struct device_attribute *attr, char *buf) argument
51 rtc_sysfs_show_time(struct device *dev, struct device_attribute *attr, char *buf) argument
67 rtc_sysfs_show_since_epoch(struct device *dev, struct device_attribute *attr, char *buf) argument
84 rtc_sysfs_show_max_user_freq(struct device *dev, struct device_attribute *attr, char *buf) argument
91 rtc_sysfs_set_max_user_freq(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument
106 rtc_sysfs_show_hctosys(struct device *dev, struct device_attribute *attr, char *buf) argument
131 rtc_sysfs_show_wakealarm(struct device *dev, struct device_attribute *attr, char *buf) argument
156 rtc_sysfs_set_wakealarm(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument
[all...]
/drivers/usb/core/
H A Dsysfs.c22 struct device_attribute *attr, char *buf) \
30 return sprintf(buf, format_string, \
45 struct device_attribute *attr, char *buf)
54 return sprintf(buf, "%s\n", actconfig->string);
63 const char *buf, size_t count)
68 if (sscanf(buf, "%d", &config) != 1 || config < -1 || config > 255)
82 struct device_attribute *attr, char *buf) \
89 retval = sprintf(buf, "%s\n", udev->name); \
100 show_speed(struct device *dev, struct device_attribute *attr, char *buf) argument
127 return sprintf(buf, "
44 show_configuration_string(struct device *dev, struct device_attribute *attr, char *buf) argument
62 set_bConfigurationValue(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
132 show_busnum(struct device *dev, struct device_attribute *attr, char *buf) argument
142 show_devnum(struct device *dev, struct device_attribute *attr, char *buf) argument
152 show_devpath(struct device *dev, struct device_attribute *attr, char *buf) argument
162 show_version(struct device *dev, struct device_attribute *attr, char *buf) argument
174 show_maxchild(struct device *dev, struct device_attribute *attr, char *buf) argument
184 show_quirks(struct device *dev, struct device_attribute *attr, char *buf) argument
194 show_avoid_reset_quirk(struct device *dev, struct device_attribute *attr, char *buf) argument
203 set_avoid_reset_quirk(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
224 show_urbnum(struct device *dev, struct device_attribute *attr, char *buf) argument
234 show_removable(struct device *dev, struct device_attribute *attr, char *buf) argument
259 show_persist(struct device *dev, struct device_attribute *attr, char *buf) argument
267 set_persist(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
322 show_connected_duration(struct device *dev, struct device_attribute *attr, char *buf) argument
341 show_active_duration(struct device *dev, struct device_attribute *attr, char *buf) argument
357 show_autosuspend(struct device *dev, struct device_attribute *attr, char *buf) argument
363 set_autosuspend(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
393 show_level(struct device *dev, struct device_attribute *attr, char *buf) argument
405 set_level(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
438 show_usb2_hardware_lpm(struct device *dev, struct device_attribute *attr, char *buf) argument
453 set_usb2_hardware_lpm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
567 usb_dev_authorized_show(struct device *dev, struct device_attribute *attr, char *buf) argument
581 usb_dev_authorized_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
602 usb_remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
701 read_descriptors(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
815 show_interface_string(struct device *dev, struct device_attribute *attr, char *buf) argument
831 show_modalias(struct device *dev, struct device_attribute *attr, char *buf) argument
856 show_supports_autosuspend(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/drivers/acpi/
H A Dbgrt.c28 struct device_attribute *attr, char *buf)
30 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->version);
35 struct device_attribute *attr, char *buf)
37 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->status);
42 struct device_attribute *attr, char *buf)
44 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->image_type);
49 struct device_attribute *attr, char *buf)
51 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->image_offset_x);
56 struct device_attribute *attr, char *buf)
58 return snprintf(buf, PAGE_SIZ
27 show_version(struct device *dev, struct device_attribute *attr, char *buf) argument
34 show_status(struct device *dev, struct device_attribute *attr, char *buf) argument
41 show_type(struct device *dev, struct device_attribute *attr, char *buf) argument
48 show_xoffset(struct device *dev, struct device_attribute *attr, char *buf) argument
55 show_yoffset(struct device *dev, struct device_attribute *attr, char *buf) argument
62 show_image(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
[all...]
/drivers/net/ethernet/ibm/emac/
H A Drgmii.h67 extern void *rgmii_dump_regs(struct platform_device *ofdev, void *buf);
79 # define rgmii_dump_regs(x,buf) (buf)
H A Dzmii.h64 extern void *zmii_dump_regs(struct platform_device *ofdev, void *buf);
75 # define zmii_dump_regs(x,buf) (buf)
/drivers/net/wireless/libertas/
H A Ddebugfs.c24 static ssize_t write_file_dummy(struct file *file, const char __user *buf, argument
38 char *buf = (char *)addr; local
40 if (!buf)
43 pos += snprintf(buf+pos, len-pos, "state = %s\n",
45 pos += snprintf(buf+pos, len-pos, "region_code = %02x\n",
48 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos);
63 char *buf = (char *)addr; local
64 if (!buf)
68 if (copy_from_user(buf, user_buf, buf_size)) {
72 ret = sscanf(buf, "
103 char *buf = (char *)addr; local
131 char *buf = (char *)addr; local
176 char *buf = (char *)addr; local
233 char *buf; local
287 char *buf; local
453 char *buf = (char *)addr; local
477 char *buf = (char *)addr; local
502 char *buf = (char *)addr; local
534 char *buf = (char *)addr; local
559 char *buf = (char *)addr; local
584 char *buf = (char *)addr; local
616 char *buf = (char *)addr; local
641 char *buf = (char *)addr; local
666 char *buf = (char *)addr; local
868 char *buf = (char *)addr; local
905 lbs_debugfs_write(struct file *f, const char __user *buf, size_t cnt, loff_t *ppos) argument
[all...]
/drivers/staging/iio/
H A Diio_core.h20 char *buf),
23 const char *buf,
38 ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf,
/drivers/media/video/cx23885/
H A Dcx23885-video.c288 struct cx23885_buffer *buf; local
294 buf = list_entry(q->active.next,
300 if ((s16) (count - buf->count) < 0)
303 do_gettimeofday(&buf->vb.ts);
304 dprintk(2, "[%p/%d] wakeup reg=%d buf=%d\n", buf, buf->vb.i,
305 count, buf->count);
306 buf->vb.state = VIDEOBUF_DONE;
307 list_del(&buf
423 u8 buf[] = { reg, data }; local
548 cx23885_start_video_dma(struct cx23885_dev *dev, struct cx23885_dmaqueue *q, struct cx23885_buffer *buf) argument
580 struct cx23885_buffer *buf, *prev; local
649 struct cx23885_buffer *buf = local
758 struct cx23885_buffer *buf = container_of(vb, local
812 struct cx23885_buffer *buf = container_of(vb, local
933 struct cx23885_buffer *buf; local
1633 struct cx23885_buffer *buf; local
[all...]
/drivers/media/video/
H A Domap1_camera.c176 struct videobuf_buffer *buf,
231 static void free_buffer(struct videobuf_queue *vq, struct omap1_cam_buf *buf, argument
234 struct videobuf_buffer *vb = &buf->vb;
258 struct omap1_cam_buf *buf = container_of(vb, struct omap1_cam_buf, vb); local
272 buf->inwork = 1;
274 if (buf->code != icd->current_fmt->code || vb->field != field ||
277 buf->code = icd->current_fmt->code;
298 buf->inwork = 0;
302 free_buffer(vq, buf, pcdev->vb_mode);
304 buf
308 set_dma_dest_params(int dma_ch, struct omap1_cam_buf *buf, enum omap1_cam_vb_mode vb_mode) argument
357 struct omap1_cam_buf *buf; local
394 try_next_sgbuf(int dma_ch, struct omap1_cam_buf *buf) argument
438 struct omap1_cam_buf *buf = pcdev->active; local
495 struct omap1_cam_buf *buf; local
543 struct omap1_cam_buf *buf = local
574 struct omap1_cam_buf *buf = pcdev->active; local
730 struct omap1_cam_buf *buf = pcdev->active; local
803 struct omap1_cam_buf *buf = pcdev->active; local
1360 omap1_cam_mmap_mapper(struct videobuf_queue *q, struct videobuf_buffer *buf, struct vm_area_struct *vma) argument
1420 struct omap1_cam_buf *buf = container_of(icd->vb_vidq.bufs[i], local
1521 struct omap1_cam_buf *buf; local
[all...]

Completed in 632 milliseconds

1234567891011>>