Searched refs:buf (Results 26 - 50 of 3176) sorted by relevance

1234567891011>>

/drivers/hid/
H A Dhid-roccat-common.c27 char *buf; local
30 buf = kmalloc(size, GFP_KERNEL);
31 if (buf == NULL)
38 0, buf, size, USB_CTRL_SET_TIMEOUT);
40 memcpy(data, buf, size);
41 kfree(buf);
49 char *buf; local
52 buf = kmemdup(data, size, GFP_KERNEL);
53 if (buf == NULL)
60 0, buf, siz
[all...]
/drivers/staging/ozwpan/
H A Dozeltbuf.h53 int oz_elt_buf_init(struct oz_elt_buf *buf);
54 void oz_elt_buf_term(struct oz_elt_buf *buf);
55 struct oz_elt_info *oz_elt_info_alloc(struct oz_elt_buf *buf);
56 void oz_elt_info_free(struct oz_elt_buf *buf, struct oz_elt_info *ei);
57 void oz_elt_info_free_chain(struct oz_elt_buf *buf, struct list_head *list);
58 int oz_elt_stream_create(struct oz_elt_buf *buf, u8 id, int max_buf_count);
59 int oz_elt_stream_delete(struct oz_elt_buf *buf, u8 id);
62 int oz_queue_elt_info(struct oz_elt_buf *buf, u8 isoc, u8 id,
64 int oz_select_elts_for_tx(struct oz_elt_buf *buf, u8 isoc, unsigned *len,
66 int oz_are_elts_available(struct oz_elt_buf *buf);
[all...]
/drivers/pnp/
H A Dsupport.c106 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...]
/drivers/bluetooth/
H A Dbtmrvl_debugfs.c52 char buf[16]; local
55 memset(buf, 0, sizeof(buf));
57 if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
60 ret = strict_strtol(buf, 10, &result);
78 char buf[16]; local
81 ret = snprintf(buf, sizeof(buf) - 1, "%d\n",
84 return simple_read_from_buffer(userbuf, count, ppos, buf, re
98 char buf[16]; local
119 char buf[16]; local
139 char buf[16]; local
166 char buf[16]; local
185 char buf[16]; local
206 char buf[16]; local
226 char buf[16]; local
251 char buf[16]; local
270 char buf[16]; local
291 char buf[16]; local
310 char buf[16]; local
328 char buf[16]; local
346 char buf[16]; local
364 char buf[16]; local
[all...]
/drivers/rtc/
H A Drtc-em3027.c49 unsigned char buf[7]; local
53 {client->addr, I2C_M_RD, 7, buf}, /* read time/date */
62 tm->tm_sec = bcd2bin(buf[0]);
63 tm->tm_min = bcd2bin(buf[1]);
64 tm->tm_hour = bcd2bin(buf[2]);
65 tm->tm_mday = bcd2bin(buf[3]);
66 tm->tm_wday = bcd2bin(buf[4]);
67 tm->tm_mon = bcd2bin(buf[5]);
68 tm->tm_year = bcd2bin(buf[6]) + 100;
76 unsigned char buf[ local
[all...]
H A Drtc-88pm860x.c111 unsigned char buf[8]; local
114 pm860x_page_bulk_read(info->i2c, REG0_ADDR, 8, buf);
115 dev_dbg(info->dev, "%x-%x-%x-%x-%x-%x-%x-%x\n", buf[0], buf[1],
116 buf[2], buf[3], buf[4], buf[5], buf[6], buf[
134 unsigned char buf[4]; local
165 unsigned char buf[8]; local
192 unsigned char buf[8]; local
244 unsigned char buf[2]; local
[all...]
H A Drtc-isl12022.c60 .buf = data
66 .buf = data
108 uint8_t buf[ISL12022_REG_INT + 1]; local
111 ret = isl12022_read_regs(client, ISL12022_REG_SC, buf, sizeof(buf));
115 if (buf[ISL12022_REG_SR] & (ISL12022_SR_LBAT85 | ISL12022_SR_LBAT75)) {
119 buf[ISL12022_REG_SR] & ISL12022_SR_LBAT85 ? 85 : 75);
127 buf[ISL12022_REG_SC],
128 buf[ISL12022_REG_MN],
129 buf[ISL12022_REG_H
164 uint8_t buf[ISL12022_REG_DW + 1]; local
[all...]
H A Drtc-pcf8583.c53 unsigned char buf[8], addr[1] = { 1 }; local
59 .buf = addr,
64 .buf = buf,
69 memset(buf, 0, sizeof(buf));
73 dt->tm_year = buf[4] >> 6;
74 dt->tm_wday = buf[5] >> 5;
76 buf[4] &= 0x3f;
77 buf[
91 unsigned char buf[8]; local
125 unsigned char buf[2]; local
161 unsigned char buf[9]; local
[all...]
/drivers/usb/gadget/
H A Duvc_queue.c40 * hold empty buffers. This design (copied from video-buf) minimizes locking
155 queue->buffer[i].buf.index = i;
156 queue->buffer[i].buf.m.offset = i * bufsize;
157 queue->buffer[i].buf.length = buflength;
158 queue->buffer[i].buf.type = queue->type;
159 queue->buffer[i].buf.sequence = 0;
160 queue->buffer[i].buf.field = V4L2_FIELD_NONE;
161 queue->buffer[i].buf.memory = V4L2_MEMORY_MMAP;
162 queue->buffer[i].buf.flags = 0;
176 static void __uvc_query_buffer(struct uvc_buffer *buf, argument
224 struct uvc_buffer *buf; local
285 uvc_queue_waiton(struct uvc_buffer *buf, int nonblocking) argument
306 struct uvc_buffer *buf; local
368 struct uvc_buffer *buf; local
478 struct uvc_buffer *buf; local
548 uvc_queue_next_buffer(struct uvc_video_queue *queue, struct uvc_buffer *buf) argument
575 struct uvc_buffer *buf = NULL; local
[all...]
H A Dusbstring.c26 * @buf: at least 256 bytes, must be 16-bit aligned
40 usb_gadget_get_string (struct usb_gadget_strings *table, int id, u8 *buf) argument
47 buf [0] = 4;
48 buf [1] = USB_DT_STRING;
49 buf [2] = (u8) table->language;
50 buf [3] = (u8) (table->language >> 8);
64 (wchar_t *) &buf[2], 126);
67 buf [0] = (len + 1) * 2;
68 buf [1] = USB_DT_STRING;
69 return buf [
[all...]
/drivers/target/
H A Dtarget_core_cdb.c39 target_fill_alua_data(struct se_port *port, unsigned char *buf) argument
47 buf[5] = 0x80;
64 buf[5] |= tg_pt_gp->tg_pt_gp_alua_access_type;
69 target_emulate_inquiry_std(struct se_cmd *cmd, char *buf) argument
76 buf[1] = 0x80;
78 buf[2] = dev->transport->get_device_rev(dev);
90 buf[3] = 2;
96 target_fill_alua_data(lun->lun_sep, buf);
98 buf[7] = 0x2; /* CmdQue=1 */
100 snprintf(&buf[
110 target_emulate_evpd_80(struct se_cmd *cmd, unsigned char *buf) argument
131 target_parse_naa_6h_vendor_specific(struct se_device *dev, unsigned char *buf) argument
166 target_emulate_evpd_83(struct se_cmd *cmd, unsigned char *buf) argument
418 target_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf) argument
432 target_emulate_evpd_b0(struct se_cmd *cmd, unsigned char *buf) argument
501 target_emulate_evpd_b1(struct se_cmd *cmd, unsigned char *buf) argument
514 target_emulate_evpd_b2(struct se_cmd *cmd, unsigned char *buf) argument
582 target_emulate_evpd_00(struct se_cmd *cmd, unsigned char *buf) argument
606 unsigned char *buf, *map_buf; local
678 unsigned char *buf; local
709 unsigned char *buf; local
848 target_modesense_write_protect(unsigned char *buf, int type) argument
864 target_modesense_dpofua(unsigned char *buf, int type) argument
885 unsigned char buf[SE_MODE_PAGE_BUF]; local
959 unsigned char *buf; local
1024 unsigned char *buf, *ptr = NULL; local
[all...]
/drivers/media/video/cx23885/
H A Dcx23885-vbi.c111 struct cx23885_buffer *buf)
117 buf->vb.width, buf->risc.dma);
140 struct cx23885_buffer *buf; local
146 buf = list_entry(q->active.next, struct cx23885_buffer, vb.queue);
148 buf, buf->vb.i);
149 cx23885_start_vbi_dma(dev, q, buf);
151 buf = list_entry(item, struct cx23885_buffer, vb.queue);
152 buf
109 cx23885_start_vbi_dma(struct cx23885_dev *dev, struct cx23885_dmaqueue *q, struct cx23885_buffer *buf) argument
162 struct cx23885_buffer *buf; local
205 struct cx23885_buffer *buf = container_of(vb, local
241 struct cx23885_buffer *buf = local
277 struct cx23885_buffer *buf = local
[all...]
H A Dnetup-eeprom.c35 unsigned char buf[2]; local
42 .buf = &buf[0],
47 .buf = &buf[1],
53 buf[0] = addr;
54 buf[1] = 0x0;
63 return buf[1];
76 .buf = &bufw[0],
/drivers/media/video/pvrusb2/
H A Dpvrusb2-debugifc.c32 static unsigned int debugifc_count_whitespace(const char *buf, argument
39 ch = buf[scnt];
49 static unsigned int debugifc_count_nonwhitespace(const char *buf, argument
56 ch = buf[scnt];
65 static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, argument
76 scnt = debugifc_count_whitespace(buf,count);
77 consume_cnt += scnt; count -= scnt; buf += scnt;
80 scnt = debugifc_count_nonwhitespace(buf,count);
82 wptr = buf;
84 consume_cnt += scnt; count -= scnt; buf
93 debugifc_parse_unsigned_number(const char *buf,unsigned int count, u32 *num_ptr) argument
119 debugifc_match_keyword(const char *buf,unsigned int count, const char *keyword) argument
130 pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt) argument
146 pvr2_debugifc_print_status(struct pvr2_hdw *hdw, char *buf,unsigned int acnt) argument
195 pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) argument
305 pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) argument
[all...]
/drivers/media/video/cx88/
H A Dcx88-vbi.c51 struct cx88_buffer *buf)
57 buf->vb.width, buf->risc.dma);
100 struct cx88_buffer *buf; local
105 buf = list_entry(q->active.next, struct cx88_buffer, vb.queue);
107 buf, buf->vb.i);
108 cx8800_start_vbi_dma(dev, q, buf);
109 list_for_each_entry(buf, &q->active, vb.queue)
110 buf
49 cx8800_start_vbi_dma(struct cx8800_dev *dev, struct cx88_dmaqueue *q, struct cx88_buffer *buf) argument
120 struct cx88_buffer *buf; local
162 struct cx88_buffer *buf = container_of(vb,struct cx88_buffer,vb); local
196 struct cx88_buffer *buf = container_of(vb,struct cx88_buffer,vb); local
228 struct cx88_buffer *buf = container_of(vb,struct cx88_buffer,vb); local
[all...]
/drivers/media/common/tuners/
H A Dtda9887.c270 static void dump_read_message(struct dvb_frontend *fe, unsigned char *buf) argument
292 tuner_info("read: 0x%2x\n", buf[0]);
293 tuner_info(" after power on : %s\n", (buf[0] & 0x01) ? "yes" : "no");
294 tuner_info(" afc : %s\n", afc[(buf[0] >> 1) & 0x0f]);
295 tuner_info(" fmif level : %s\n", (buf[0] & 0x20) ? "high" : "low");
296 tuner_info(" afc window : %s\n", (buf[0] & 0x40) ? "in" : "out");
297 tuner_info(" vfi level : %s\n", (buf[0] & 0x80) ? "high" : "low");
300 static void dump_write_message(struct dvb_frontend *fe, unsigned char *buf) argument
342 tuner_info("write: byte B 0x%02x\n", buf[1]);
344 (buf[
404 char *buf = priv->data; local
445 char *buf = priv->data; local
477 char *buf = priv->data; local
536 unsigned char buf[1]; local
[all...]
/drivers/media/video/saa7134/
H A Dsaa7134-vbi.c50 static void task_init(struct saa7134_dev *dev, struct saa7134_buf *buf, argument
70 saa_writeb(SAA7134_VBI_H_LEN1(task), buf->vb.width & 0xff);
71 saa_writeb(SAA7134_VBI_H_LEN2(task), buf->vb.width >> 8);
72 saa_writeb(SAA7134_VBI_V_LEN1(task), buf->vb.height & 0xff);
73 saa_writeb(SAA7134_VBI_V_LEN2(task), buf->vb.height >> 8);
81 struct saa7134_buf *buf,
86 dprintk("buffer_activate [%p]\n",buf);
87 buf->vb.state = VIDEOBUF_ACTIVE;
88 buf->top_seen = 0;
90 task_init(dev,buf,TASK_
80 buffer_activate(struct saa7134_dev *dev, struct saa7134_buf *buf, struct saa7134_buf *next) argument
122 struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); local
186 struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); local
193 struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); local
[all...]
/drivers/scsi/fnic/
H A Dfnic_attrs.c24 struct device_attribute *attr, char *buf)
29 return snprintf(buf, PAGE_SIZE, "%s\n", fnic_state_str[fnic->state]);
33 struct device_attribute *attr, char *buf)
35 return snprintf(buf, PAGE_SIZE, "%s\n", DRV_VERSION);
39 struct device_attribute *attr, char *buf)
43 return snprintf(buf, PAGE_SIZE, "%s\n", (lp->link_up)
23 fnic_show_state(struct device *dev, struct device_attribute *attr, char *buf) argument
32 fnic_show_drv_version(struct device *dev, struct device_attribute *attr, char *buf) argument
38 fnic_show_link_state(struct device *dev, struct device_attribute *attr, char *buf) argument
/drivers/parisc/
H A Deisa_enumerator.c80 static int configure_memory(const unsigned char *buf, argument
92 c = get_8(buf+len);
98 res->start = mem_parent->start + get_24(buf+len+2);
99 res->end = res->start + get_16(buf+len+5)*1024;
120 static int configure_irq(const unsigned char *buf) argument
129 c = get_8(buf+len);
151 static int configure_dma(const unsigned char *buf) argument
160 c = get_8(buf+len);
172 static int configure_port(const unsigned char *buf, struct resource *io_parent, argument
184 c = get_8(buf
214 configure_port_init(const unsigned char *buf) argument
279 configure_choise(const unsigned char *buf, u_int8_t *info) argument
293 configure_type_string(const unsigned char *buf) argument
306 configure_function(const unsigned char *buf, int *more) argument
317 parse_slot_config(int slot, const unsigned char *buf, struct eeprom_eisa_slot_info *es, struct resource *io_parent, struct resource *mem_parent) argument
[all...]
/drivers/pps/
H A Dsysfs.c33 struct device_attribute *attr, char *buf)
40 return sprintf(buf, "%lld.%09d#%d\n",
46 struct device_attribute *attr, char *buf)
53 return sprintf(buf, "%lld.%09d#%d\n",
59 struct device_attribute *attr, char *buf)
63 return sprintf(buf, "%4x\n", pps->info.mode);
67 struct device_attribute *attr, char *buf)
71 return sprintf(buf, "%d\n", !!pps->info.echo);
75 struct device_attribute *attr, char *buf)
79 return sprintf(buf, "
32 pps_show_assert(struct device *dev, struct device_attribute *attr, char *buf) argument
45 pps_show_clear(struct device *dev, struct device_attribute *attr, char *buf) argument
58 pps_show_mode(struct device *dev, struct device_attribute *attr, char *buf) argument
66 pps_show_echo(struct device *dev, struct device_attribute *attr, char *buf) argument
74 pps_show_name(struct device *dev, struct device_attribute *attr, char *buf) argument
82 pps_show_path(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/drivers/ide/
H A Dide-sysfs.c23 char *buf)
26 return sprintf(buf, "%s\n", ide_media_string(drive));
30 char *buf)
33 return sprintf(buf, "%s\n", drive->name);
37 char *buf)
40 return sprintf(buf, "ide:m-%s\n", ide_media_string(drive));
44 char *buf)
47 return sprintf(buf, "%s\n", (char *)&drive->id[ATA_ID_PROD]);
51 char *buf)
54 return sprintf(buf, "
22 media_show(struct device *dev, struct device_attribute *attr, char *buf) argument
29 drivename_show(struct device *dev, struct device_attribute *attr, char *buf) argument
36 modalias_show(struct device *dev, struct device_attribute *attr, char *buf) argument
43 model_show(struct device *dev, struct device_attribute *attr, char *buf) argument
50 firmware_show(struct device *dev, struct device_attribute *attr, char *buf) argument
57 serial_show(struct device *dev, struct device_attribute *attr, char *buf) argument
75 store_delete_devices(struct device *portdev, struct device_attribute *attr, const char *buf, size_t n) argument
91 store_scan(struct device *portdev, struct device_attribute *attr, const char *buf, size_t n) argument
[all...]
/drivers/mtd/ubi/
H A Dmisc.c28 * @buf: a buffer with the contents of the physical eraseblock
31 * This function calculates how much "real data" is stored in @buf and returnes
35 int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, argument
43 if (((const uint8_t *)buf)[i] != 0xFF)
63 void *buf; local
70 buf = vmalloc(vol->usable_leb_size);
71 if (!buf)
82 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1);
90 vfree(buf);
109 * @buf
116 ubi_check_pattern(const void *buf, uint8_t patt, int size) argument
[all...]
/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c171 struct mlx4_buf *buf)
176 buf->nbufs = 1;
177 buf->npages = 1;
178 buf->page_shift = get_order(size) + PAGE_SHIFT;
179 buf->direct.buf = dma_alloc_coherent(&dev->pdev->dev,
181 if (!buf->direct.buf)
184 buf->direct.map = t;
186 while (t & ((1 << buf
170 mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, struct mlx4_buf *buf) argument
239 mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf) argument
[all...]
/drivers/s390/char/
H A Dctrlchar.h13 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
/drivers/input/joystick/
H A Dwalkera0701.c52 unsigned char buf[25]; member in struct:walkera_dev
73 crc1 += w->buf[i] & 7;
74 crc2 += (w->buf[i] & 8) >> 3;
76 if ((w->buf[10] & 7) != (crc1 & 7))
78 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1))
81 crc1 += w->buf[i] & 7;
82 crc2 += (w->buf[i] & 8) >> 3;
84 if ((w->buf[23] & 7) != (crc1 & 7))
86 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1))
88 val1 = ((w->buf[
[all...]

Completed in 3870 milliseconds

1234567891011>>