Searched refs:buf (Results 51 - 75 of 3176) sorted by relevance

1234567891011>>

/drivers/media/dvb/frontends/
H A Dcxd2820r_t.c31 u8 buf[3], bw_param; local
110 buf[0] = ((if_ctl >> 16) & 0xff);
111 buf[1] = ((if_ctl >> 8) & 0xff);
112 buf[2] = ((if_ctl >> 0) & 0xff);
114 ret = cxd2820r_wr_regs(priv, 0x000b6, buf, 3);
149 u8 buf[2]; local
151 ret = cxd2820r_rd_regs(priv, 0x0002f, buf, sizeof(buf));
155 switch ((buf[0] >> 6) & 0x03) {
167 switch ((buf[
265 u8 buf[3], start_ber = 0; local
300 u8 buf[2]; local
323 u8 buf[2]; local
358 u8 buf[4]; local
[all...]
H A Dstb6000.c55 u8 buf[] = { 10, 0 }; local
59 .buf = buf,
86 u8 buf[12]; local
90 .buf = buf,
103 buf[0] = 0x01;
104 buf[1] = 0xac;
106 buf[1] = 0xaa;
108 buf[
[all...]
H A Dtda826x.c55 u8 buf [] = { 0x00, 0x8d }; local
56 struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 2 };
61 buf[1] = 0xad;
82 u8 buf [11]; local
83 struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 11 };
98 buf[0] = 0x00; // subaddress
99 buf[1] = 0x09; // powerdown RSSI + the magic value 1
101 buf[
[all...]
/drivers/rtc/
H A Drtc-s35390a.c49 static int s35390a_set_reg(struct s35390a *s35390a, int reg, char *buf, int len) argument
53 { client->addr, 0, len, buf },
62 static int s35390a_get_reg(struct s35390a *s35390a, int reg, char *buf, int len) argument
66 { client->addr, I2C_M_RD, len, buf },
77 char buf[1]; local
79 if (s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, buf, sizeof(buf)) < 0)
82 if (!(buf[0] & (S35390A_FLAG_POC | S35390A_FLAG_BLD)))
85 buf[0] |= (S35390A_FLAG_RESET | S35390A_FLAG_24H);
86 buf[
92 char buf[1]; local
133 char buf[7]; local
160 char buf[7]; local
211 char buf[1]; local
[all...]
H A Drtc-ds1305.c146 u8 buf[2]; local
149 buf[0] = DS1305_WRITE | DS1305_CONTROL;
150 buf[1] = ds1305->ctrl[0];
155 buf[1] |= DS1305_AEI0;
157 if (!(buf[1] & DS1305_AEI0))
159 buf[1] &= ~DS1305_AEI0;
161 err = spi_write_then_read(ds1305->spi, buf, sizeof buf, NULL, 0);
163 ds1305->ctrl[0] = buf[1];
178 u8 buf[DS1305_RTC_LE local
215 u8 buf[1 + DS1305_RTC_LEN]; local
281 u8 buf[DS1305_ALM_LEN]; local
341 u8 buf[1 + DS1305_ALM_LEN]; local
460 u8 buf[3]; local
529 ds1305_nvram_read(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
560 ds1305_nvram_write(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
659 u8 buf[2]; local
713 u8 buf[4]; local
[all...]
H A Drtc-max8925.c84 static int tm_calc(struct rtc_time *tm, unsigned char *buf, int len) argument
88 tm->tm_year = (buf[RTC_YEAR2] >> 4) * 1000
89 + (buf[RTC_YEAR2] & 0xf) * 100
90 + (buf[RTC_YEAR1] >> 4) * 10
91 + (buf[RTC_YEAR1] & 0xf);
93 tm->tm_mon = ((buf[RTC_MONTH] >> 4) & 0x01) * 10
94 + (buf[RTC_MONTH] & 0x0f);
95 tm->tm_mday = ((buf[RTC_DATE] >> 4) & 0x03) * 10
96 + (buf[RTC_DATE] & 0x0f);
97 tm->tm_wday = buf[RTC_WEEKDA
113 data_calc(unsigned char *buf, struct rtc_time *tm, int len) argument
156 unsigned char buf[TIME_NUM]; local
170 unsigned char buf[TIME_NUM]; local
184 unsigned char buf[TIME_NUM]; local
222 unsigned char buf[TIME_NUM]; local
[all...]
H A Drtc-ds1672.c37 unsigned char buf[4]; local
41 {client->addr, I2C_M_RD, 4, buf}, /* read date */
52 __func__, buf[0], buf[1], buf[2], buf[3]);
54 time = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[
69 unsigned char buf[6]; local
116 show_control(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/drivers/media/video/uvc/
H A Duvc_queue.c64 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); local
75 buf->state = UVC_BUF_STATE_QUEUED;
76 buf->error = 0;
77 buf->mem = vb2_plane_vaddr(vb, 0);
78 buf->length = vb2_plane_size(vb, 0);
80 buf->bytesused = 0;
82 buf->bytesused = vb2_get_plane_payload(vb, 0);
90 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); local
112 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); local
165 uvc_query_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) argument
176 uvc_queue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) argument
187 uvc_dequeue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf, int nonblocking) argument
327 struct uvc_buffer *buf; local
349 uvc_queue_next_buffer(struct uvc_video_queue *queue, struct uvc_buffer *buf) argument
[all...]
/drivers/target/
H A Dtarget_core_fabric_lib.c61 unsigned char *buf)
69 buf[0] = 0x06;
76 ret = hex2bin(&buf[4], ptr, 8);
110 const char *buf,
125 return (char *)&buf[4];
157 unsigned char *buf)
179 ret = hex2bin(&buf[off++], &ptr[i], 1);
193 const char *buf,
205 return (char *)&buf[8];
228 unsigned char *buf)
56 sas_get_pr_transport_id( struct se_portal_group *se_tpg, struct se_node_acl *se_nacl, struct t10_pr_registration *pr_reg, int *format_code, unsigned char *buf) argument
108 sas_parse_pr_out_transport_id( struct se_portal_group *se_tpg, const char *buf, u32 *out_tid_len, char **port_nexus_ptr) argument
152 fc_get_pr_transport_id( struct se_portal_group *se_tpg, struct se_node_acl *se_nacl, struct t10_pr_registration *pr_reg, int *format_code, unsigned char *buf) argument
191 fc_parse_pr_out_transport_id( struct se_portal_group *se_tpg, const char *buf, u32 *out_tid_len, char **port_nexus_ptr) argument
223 iscsi_get_pr_transport_id( struct se_portal_group *se_tpg, struct se_node_acl *se_nacl, struct t10_pr_registration *pr_reg, int *format_code, unsigned char *buf) argument
365 iscsi_parse_pr_out_transport_id( struct se_portal_group *se_tpg, const char *buf, u32 *out_tid_len, char **port_nexus_ptr) argument
[all...]
/drivers/net/wireless/iwlegacy/
H A Ddebug.c236 char *buf; local
243 buf = kzalloc(bufsz, GFP_KERNEL);
244 if (!buf)
246 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n");
249 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n",
252 pos += scnprintf(buf + pos, bufsz - pos, "Control\n");
255 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n",
258 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n");
260 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n",
263 scnprintf(buf
277 char buf[8]; local
297 char *buf; local
340 char *buf; local
399 char buf[64]; local
426 char *buf; local
491 char *buf; local
539 char *buf; local
616 char buf[512]; local
679 char *buf; local
755 char buf[8]; local
777 char buf[256]; local
801 char buf[8]; local
827 char buf[100]; local
854 char *buf; local
900 char buf[256]; local
957 char *buf; local
1056 char *buf; local
1124 char buf[60]; local
1149 char buf[8]; local
1175 char buf[20]; local
1188 char buf[20]; local
1200 char *buf; local
1224 char buf[12]; local
1239 char buf[8]; local
1266 char buf[300]; local
1309 char buf[8]; local
[all...]
H A D3945-debug.c33 il3945_stats_flag(struct il_priv *il, char *buf, int bufsz) argument
37 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n",
40 p += scnprintf(buf + p, bufsz - p,
42 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
45 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
57 char *buf; local
70 buf = kzalloc(bufsz, GFP_KERNEL);
71 if (!buf) {
94 pos += il3945_stats_flag(il, buf, bufsz);
96 scnprintf(buf
322 char *buf; local
412 char *buf; local
[all...]
/drivers/media/video/cx23885/
H A Dcx23885-f300.c86 static u8 f300_xfer(struct dvb_frontend *fe, u8 *buf) argument
92 temp = buf[0];
93 for (i = 0; i < buf[0]; i++)
94 temp += buf[i + 1];
96 buf[1 + buf[0]] = temp;
111 temp = buf[0];
114 f300_send_byte(dev, buf[i]);
152 u8 buf[16]; local
154 buf[
[all...]
/drivers/net/wireless/b43legacy/
H A Dsysfs.c38 static int get_integer(const char *buf, size_t count) argument
46 memcpy(tmp, buf, count);
52 static int get_boolean(const char *buf, size_t count) argument
55 if (buf[0] == '1')
57 if (buf[0] == '0')
59 if (count >= 4 && memcmp(buf, "true", 4) == 0)
61 if (count >= 5 && memcmp(buf, "false", 5) == 0)
63 if (count >= 3 && memcmp(buf, "yes", 3) == 0)
65 if (count >= 2 && memcmp(buf, "no", 2) == 0)
67 if (count >= 2 && memcmp(buf, "o
75 b43legacy_attr_interfmode_show(struct device *dev, struct device_attribute *attr, char *buf) argument
109 b43legacy_attr_interfmode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
157 b43legacy_attr_preamble_show(struct device *dev, struct device_attribute *attr, char *buf) argument
181 b43legacy_attr_preamble_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/drivers/md/
H A Ddm-sysfs.c42 static ssize_t dm_attr_name_show(struct mapped_device *md, char *buf) argument
44 if (dm_copy_name_and_uuid(md, buf, NULL))
47 strcat(buf, "\n");
48 return strlen(buf);
51 static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf) argument
53 if (dm_copy_name_and_uuid(md, NULL, buf))
56 strcat(buf, "\n");
57 return strlen(buf);
60 static ssize_t dm_attr_suspended_show(struct mapped_device *md, char *buf) argument
62 sprintf(buf, "
[all...]
/drivers/net/wireless/ath/ath9k/
H A Dhtc_drv_debug.c24 char buf[512]; local
40 len += snprintf(buf + len, sizeof(buf) - len,
44 len += snprintf(buf + len, sizeof(buf) - len,
48 len += snprintf(buf + len, sizeof(buf) - len,
52 len += snprintf(buf + len, sizeof(buf) - len,
56 len += snprintf(buf
82 char buf[512]; local
152 char buf[512]; local
197 char buf[512]; local
280 char *buf; local
370 char buf[512]; local
405 char buf[512]; local
453 char buf[32]; local
466 char buf[32]; local
497 char *buf; local
652 char *buf; local
740 char *buf; local
839 char *buf; local
[all...]
/drivers/net/wireless/iwlwifi/
H A Diwl-debugfs.c119 char *buf; local
126 buf = kzalloc(bufsz, GFP_KERNEL);
127 if (!buf)
129 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n");
131 pos += scnprintf(buf + pos, bufsz - pos,
136 pos += scnprintf(buf + pos, bufsz - pos, "Control\n");
138 pos += scnprintf(buf + pos, bufsz - pos,
143 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n");
144 pos += scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n",
146 pos += scnprintf(buf
159 char buf[8]; local
178 char *buf; local
218 char *buf; local
307 char buf[64]; local
350 char *buf; local
404 char *buf; local
452 char *buf; local
520 char buf[512]; local
561 char *buf; local
590 char buf[8]; local
613 char buf[256 * NUM_IWL_RXON_CTX]; local
641 char buf[100]; local
671 char buf[8]; local
697 char buf[100]; local
712 char buf[8]; local
726 char buf[8]; local
768 char buf[10]; local
786 char buf[200]; local
827 char *buf; local
884 char buf[8]; local
906 iwl_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz) argument
935 char *buf; local
1370 char *buf; local
1569 char *buf; local
1691 char *buf; local
1784 char *buf; local
1929 char *buf; local
2010 char *buf; local
2066 char buf[60]; local
2089 char buf[8]; local
2114 char buf[128]; local
2134 char buf[8]; local
2165 char buf[20]; local
2178 char buf[20]; local
2191 char buf[12]; local
2205 char buf[8]; local
2232 char buf[12]; local
2246 char buf[8]; local
2271 char buf[300]; local
2300 char buf[8]; local
2326 char buf[8]; local
2350 char buf[8]; local
2374 char buf[200]; local
2420 char buf[40]; local
2439 char buf[8]; local
2464 char buf[8]; local
[all...]
/drivers/media/dvb/ttpci/
H A Dav7110_ipack.c24 void (*func)(u8 *buf, int size, void *priv))
26 if (!(p->buf = vmalloc(size*sizeof(u8)))) {
40 vfree(p->buf);
57 p->buf[3] = p->cid;
58 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8);
59 p->buf[5] = (u8)((p->count - 6) & 0x00ff);
61 off = 9 + p->buf[8];
62 streamid = p->buf[off];
65 ac3_off = ((p->buf[off + 2] << 8)|
66 p->buf[of
23 av7110_ipack_init(struct ipack *p, int size, void (*func)(u8 *buf, int size, void *priv)) argument
145 av7110_ipack_instant_repack(const u8 *buf, int count, struct ipack *p) argument
[all...]
H A Dav7110_ipack.h5 void (*func)(u8 *buf, int size, void *priv));
8 extern int av7110_ipack_instant_repack(const u8 *buf, int count, struct ipack *p);
/drivers/media/video/em28xx/
H A Dem28xx-vbi.c45 free_buffer(struct videobuf_queue *vq, struct em28xx_buffer *buf) argument
63 if (dev->isoc_ctl.vbi_buf == buf)
67 videobuf_vmalloc_free(&buf->vb);
68 buf->vb.state = VIDEOBUF_NEEDS_INIT;
94 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); local
97 buf->vb.size = dev->vbi_width * dev->vbi_height * 2;
99 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size)
102 buf
123 struct em28xx_buffer *buf = container_of(vb, local
136 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); local
[all...]
/drivers/scsi/qla4xxx/
H A Dql4_attr.c15 struct device_attribute *attr, char *buf)
20 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d (%x)\n",
25 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n",
33 char *buf)
36 return snprintf(buf, PAGE_SIZE, "%s\n", ha->serial_number);
41 char *buf)
44 return snprintf(buf, PAGE_SIZE, "%d.%02d\n", ha->iscsi_major,
50 char *buf)
53 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n",
60 char *buf)
14 qla4xxx_fw_version_show(struct device *dev, struct device_attribute *attr, char *buf) argument
32 qla4xxx_serial_num_show(struct device *dev, struct device_attribute *attr, char *buf) argument
40 qla4xxx_iscsi_version_show(struct device *dev, struct device_attribute *attr, char *buf) argument
49 qla4xxx_optrom_version_show(struct device *dev, struct device_attribute *attr, char *buf) argument
59 qla4xxx_board_id_show(struct device *dev, struct device_attribute *attr, char *buf) argument
67 qla4xxx_fw_state_show(struct device *dev, struct device_attribute *attr, char *buf) argument
78 qla4xxx_phy_port_cnt_show(struct device *dev, struct device_attribute *attr, char *buf) argument
90 qla4xxx_phy_port_num_show(struct device *dev, struct device_attribute *attr, char *buf) argument
102 qla4xxx_iscsi_func_cnt_show(struct device *dev, struct device_attribute *attr, char *buf) argument
114 qla4xxx_hba_model_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/drivers/base/regmap/
H A Dregmap-debugfs.c24 static size_t regmap_calc_reg_len(int max_val, char *buf, size_t buf_size) argument
26 snprintf(buf, buf_size, "%x", max_val);
27 return strlen(buf);
36 char *buf; local
38 buf = kmalloc(PAGE_SIZE, GFP_KERNEL);
39 if (!buf)
42 ret = snprintf(buf, PAGE_SIZE, "%s\n", map->dev->driver->name);
44 kfree(buf);
48 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
49 kfree(buf);
68 char *buf; local
141 char buf[32]; local
187 char *buf; local
[all...]
/drivers/net/wireless/ath/ath6kl/
H A Dtestmode.h22 void ath6kl_tm_rx_event(struct ath6kl *ar, void *buf, size_t buf_len);
27 static inline void ath6kl_tm_rx_event(struct ath6kl *ar, void *buf, argument
/drivers/pnp/
H A Dinterface.c207 struct device_attribute *attr, char *buf)
220 buffer->buffer = buf;
240 ret = (buffer->curr - buf);
247 char *buf)
263 buffer->buffer = buf;
296 ret = (buffer->curr - buf);
306 char *buf = (void *)ubuf; local
316 buf = skip_spaces(buf);
317 if (!strnicmp(buf, "disabl
206 pnp_show_options(struct device *dmdev, struct device_attribute *attr, char *buf) argument
245 pnp_show_current_resources(struct device *dmdev, struct device_attribute *attr, char *buf) argument
407 pnp_show_current_ids(struct device *dmdev, struct device_attribute *attr, char *buf) argument
[all...]
/drivers/tty/
H A Dtty_buffer.c33 while ((thead = tty->buf.head) != NULL) {
34 tty->buf.head = thead->next;
37 while ((thead = tty->buf.free) != NULL) {
38 tty->buf.free = thead->next;
41 tty->buf.tail = NULL;
42 tty->buf.memory_used = 0;
54 * Locking: Caller must hold tty->buf.lock
61 if (tty->buf.memory_used + size > 65536)
73 tty->buf.memory_used += size;
85 * Locking: Caller must hold tty->buf
[all...]
/drivers/media/video/pvrusb2/
H A Dpvrusb2-ctrl.h86 char *buf,unsigned int maxlen,
91 const char *buf,unsigned int len,
97 char *buf,unsigned int maxlen,
102 const char *buf,unsigned int len,
109 char *buf,unsigned int maxlen,

Completed in 3190 milliseconds

1234567891011>>