/drivers/rtc/ |
H A D | rtc-rs5c372.c | 101 char buf[17]; member in struct:rs5c372 112 .len = sizeof(rs5c->buf), 113 .buf = rs5c->buf 130 int size = sizeof(rs5c->buf) - 1; 133 rs5c->buf + 1) != size) { 217 unsigned char buf[7]; local 227 buf[0] = bin2bcd(tm->tm_sec); 228 buf[1] = bin2bcd(tm->tm_min); 229 buf[ 296 unsigned char buf; local 366 unsigned char buf[3]; local 446 rs5c372_sysfs_show_trim(struct device *dev, struct device_attribute *attr, char *buf) argument 459 rs5c372_sysfs_show_osc(struct device *dev, struct device_attribute *attr, char *buf) argument 508 unsigned char buf[2]; local [all...] |
/drivers/media/platform/soc_camera/ |
H A D | omap1_camera.c | 176 struct videobuf_buffer *buf, 226 static void free_buffer(struct videobuf_queue *vq, struct omap1_cam_buf *buf, argument 229 struct videobuf_buffer *vb = &buf->vb; 253 struct omap1_cam_buf *buf = container_of(vb, struct omap1_cam_buf, vb); local 262 buf->inwork = 1; 264 if (buf->code != icd->current_fmt->code || vb->field != field || 267 buf->code = icd->current_fmt->code; 288 buf->inwork = 0; 292 free_buffer(vq, buf, pcdev->vb_mode); 294 buf 298 set_dma_dest_params(int dma_ch, struct omap1_cam_buf *buf, enum omap1_cam_vb_mode vb_mode) argument 347 struct omap1_cam_buf *buf; local 384 try_next_sgbuf(int dma_ch, struct omap1_cam_buf *buf) argument 428 struct omap1_cam_buf *buf = pcdev->active; local 485 struct omap1_cam_buf *buf; local 533 struct omap1_cam_buf *buf = local 564 struct omap1_cam_buf *buf = pcdev->active; local 720 struct omap1_cam_buf *buf = pcdev->active; local 793 struct omap1_cam_buf *buf = pcdev->active; local 1356 omap1_cam_mmap_mapper(struct videobuf_queue *q, struct videobuf_buffer *buf, struct vm_area_struct *vma) argument 1416 struct omap1_cam_buf *buf = container_of(icd->vb_vidq.bufs[i], local 1517 struct omap1_cam_buf *buf; local [all...] |
/drivers/usb/misc/ |
H A D | usbsevseg.c | 59 static inline size_t my_memlen(const char *buf, size_t count) argument 61 if (count > 0 && buf[count-1] == '\n') 175 struct device_attribute *attr, char *buf) \ 180 return sprintf(buf, "%u\n", mydev->name); \ 184 struct device_attribute *attr, const char *buf, size_t count) \ 189 mydev->name = simple_strtoul(buf, NULL, 10); \ 197 struct device_attribute *attr, char *buf) 202 return snprintf(buf, mydev->textlength, "%s\n", mydev->text); 206 struct device_attribute *attr, const char *buf, size_t count) 210 size_t end = my_memlen(buf, coun 196 show_attr_text(struct device *dev, struct device_attribute *attr, char *buf) argument 205 set_attr_text(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 227 show_attr_decimals(struct device *dev, struct device_attribute *attr, char *buf) argument 249 set_attr_decimals(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 276 show_attr_textmode(struct device *dev, struct device_attribute *attr, char *buf) argument 302 set_attr_textmode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument [all...] |
/drivers/char/tpm/ |
H A D | tpm_ppi.c | 61 struct device_attribute *attr, char *buf) 63 return scnprintf(buf, PAGE_SIZE, "%s\n", tpm_ppi_version); 67 struct device_attribute *attr, char *buf) 88 size = scnprintf(buf, PAGE_SIZE, "%llu\n", 99 const char *buf, size_t count) 123 if (sscanf(buf, "%d", &req) != 1) 130 if (sscanf(buf, "%llu", &tmp.integer.value) != 1) 150 char *buf) 185 status = scnprintf(buf, PAGE_SIZE, "%d: %s\n", ret, info[ret]); 187 status = scnprintf(buf, PAGE_SIZ 60 tpm_show_ppi_version(struct device *dev, struct device_attribute *attr, char *buf) argument 66 tpm_show_ppi_request(struct device *dev, struct device_attribute *attr, char *buf) argument 97 tpm_store_ppi_request(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 148 tpm_show_ppi_transition_action(struct device *dev, struct device_attribute *attr, char *buf) argument 192 tpm_show_ppi_response(struct device *dev, struct device_attribute *attr, char *buf) argument 251 show_ppi_operations(char *buf, u32 start, u32 end) argument 290 tpm_show_ppi_tcg_operations(struct device *dev, struct device_attribute *attr, char *buf) argument 297 tpm_show_ppi_vs_operations(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/drivers/media/dvb-frontends/ |
H A D | sp2.c | 26 static int sp2_read_i2c(struct sp2 *s, u8 reg, u8 *buf, int len) argument 35 .buf = ®, 40 .buf = buf, 57 client->addr, reg, buf[0]); 62 static int sp2_write_i2c(struct sp2 *s, u8 reg, u8 *buf, int len) argument 71 .buf = &buffer[0], 82 memcpy(&buffer[1], buf, len); 183 u8 buf; local 192 buf 225 u8 buf; local 243 u8 buf[2]; local 272 u8 buf; local [all...] |
H A D | cx24110.h | 38 u8 buf[] = { local 45 return fe->ops.write(fe, buf, 3);
|
H A D | mt352.h | 66 static inline int mt352_write(struct dvb_frontend *fe, const u8 buf[], int len) { argument 69 r = fe->ops.write(fe, buf, len);
|
H A D | si21xx.h | 31 u8 buf[] = {reg, val}; local 33 r = fe->ops.write(fe, buf, 2);
|
/drivers/media/pci/cx25821/ |
H A D | cx25821-i2c.c | 110 addr = (msg->addr << 25) | msg->buf[0]; 111 wdata = msg->buf[0]; 138 wdata = msg->buf[cnt]; 158 dprintk(1, " %02x", msg->buf[cnt]); 220 msg->buf[cnt] = cx_read(bus->reg_rdata) & 0xff; 223 dprintk(1, " %02x", msg->buf[cnt]); 352 msg.buf = buffer; 363 u8 buf[4] = { 0, 0, 0, 0 }; local 370 .buf = addr, 375 .buf 396 u8 buf[6] = { 0, 0, 0, 0, 0, 0 }; local [all...] |
/drivers/media/usb/au0828/ |
H A D | au0828-input.c | 57 char buf[] = { (reg >> 8) | 0x80, reg & 0xff, data }; local 59 .buf = buf, .len = sizeof(buf) }; 70 char *buf, int size) 75 .buf = obuf, .len = 2 }, 77 .buf = buf, .len = size } }; 97 char buf, oldbuf; local 99 rc = au8522_rc_read(ir, reg, -1, &buf, 69 au8522_rc_read(struct au0828_rc *ir, u16 reg, int val, char *buf, int size) argument 126 unsigned char buf[40]; local [all...] |
/drivers/media/usb/em28xx/ |
H A D | em28xx-vbi.c | 64 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); local 74 vb2_set_plane_payload(&buf->vb, 0, size); 83 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); local 87 buf->mem = vb2_plane_vaddr(vb, 0); 88 buf->length = vb2_plane_size(vb, 0); 91 list_add_tail(&buf->list, &vbiq->active);
|
/drivers/tty/hvc/ |
H A D | hvc_beat.c | 42 static int hvc_beat_get_chars(uint32_t vtermno, char *buf, int cnt) argument 52 memcpy(buf, q, cnt); 59 memcpy(buf, q, qlen); 73 static int hvc_beat_put_chars(uint32_t vtermno, const char *buf, int cnt) argument 80 memcpy(kb, buf, nlen); 82 buf += nlen;
|
/drivers/video/fbdev/core/ |
H A D | fbsysfs.c | 105 static int mode_string(char *buf, unsigned int offset, argument 123 return snprintf(&buf[offset], PAGE_SIZE - offset, "%c:%dx%d%c-%d\n", 128 const char *buf, size_t count) 145 if (strncmp(mstr, buf, max(count, i)) == 0) { 159 char *buf) 166 return mode_string(buf, 0, fb_info->mode); 171 const char *buf, size_t count) 187 fb_videomode_to_modelist((const struct fb_videomode *)buf, i, 202 char *buf) 214 i += mode_string(buf, 127 store_mode(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 158 show_mode(struct device *device, struct device_attribute *attr, char *buf) argument 169 store_modes(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 201 show_modes(struct device *device, struct device_attribute *attr, char *buf) argument 219 store_bpp(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 234 show_bpp(struct device *device, struct device_attribute *attr, char *buf) argument 241 store_rotate(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 260 show_rotate(struct device *device, struct device_attribute *attr, char *buf) argument 268 store_virtual(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 289 show_virtual(struct device *device, struct device_attribute *attr, char *buf) argument 297 show_stride(struct device *device, struct device_attribute *attr, char *buf) argument 304 store_blank(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 322 show_blank(struct device *device, struct device_attribute *attr, char *buf) argument 329 store_console(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 337 show_console(struct device *device, struct device_attribute *attr, char *buf) argument 344 store_cursor(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 352 show_cursor(struct device *device, struct device_attribute *attr, char *buf) argument 359 store_pan(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 384 show_pan(struct device *device, struct device_attribute *attr, char *buf) argument 392 show_name(struct device *device, struct device_attribute *attr, char *buf) argument 400 store_fbstate(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 424 show_fbstate(struct device *device, struct device_attribute *attr, char *buf) argument 432 store_bl_curve(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 473 show_bl_curve(struct device *device, struct device_attribute *attr, char *buf) argument [all...] |
/drivers/net/bonding/ |
H A D | bond_sysfs.c | 53 char *buf) 67 res += sprintf(buf + res, "++more++ "); 70 res += sprintf(buf + res, "%s ", bond->dev->name); 73 buf[res-1] = '\n'; /* eat the leftover space */ 178 struct device_attribute *attr, char *buf) 193 res += sprintf(buf + res, "++more++ "); 196 res += sprintf(buf + res, "%s ", slave->dev->name); 202 buf[res-1] = '\n'; /* eat the leftover space */ 211 struct device_attribute *attr, char *buf) 218 return sprintf(buf, " 51 bonding_show_bonds(struct class *cls, struct class_attribute *attr, char *buf) argument 177 bonding_show_slaves(struct device *d, struct device_attribute *attr, char *buf) argument 210 bonding_show_mode(struct device *d, struct device_attribute *attr, char *buf) argument 224 bonding_show_xmit_hash(struct device *d, struct device_attribute *attr, char *buf) argument 239 bonding_show_arp_validate(struct device *d, struct device_attribute *attr, char *buf) argument 255 bonding_show_arp_all_targets(struct device *d, struct device_attribute *attr, char *buf) argument 271 bonding_show_fail_over_mac(struct device *d, struct device_attribute *attr, char *buf) argument 287 bonding_show_arp_interval(struct device *d, struct device_attribute *attr, char *buf) argument 299 bonding_show_arp_targets(struct device *d, struct device_attribute *attr, char *buf) argument 320 bonding_show_downdelay(struct device *d, struct device_attribute *attr, char *buf) argument 331 bonding_show_updelay(struct device *d, struct device_attribute *attr, char *buf) argument 344 bonding_show_lacp(struct device *d, struct device_attribute *attr, char *buf) argument 358 bonding_show_min_links(struct device *d, struct device_attribute *attr, char *buf) argument 369 bonding_show_ad_select(struct device *d, struct device_attribute *attr, char *buf) argument 384 bonding_show_num_peer_notif(struct device *d, struct device_attribute *attr, char *buf) argument 392 bonding_store_num_peer_notif(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 411 bonding_show_miimon(struct device *d, struct device_attribute *attr, char *buf) argument 423 bonding_show_primary(struct device *d, struct device_attribute *attr, char *buf) argument 443 bonding_show_primary_reselect(struct device *d, struct device_attribute *attr, char *buf) argument 460 bonding_show_carrier(struct device *d, struct device_attribute *attr, char *buf) argument 473 bonding_show_active_slave(struct device *d, struct device_attribute *attr, char *buf) argument 493 bonding_show_mii_status(struct device *d, struct device_attribute *attr, char *buf) argument 505 bonding_show_ad_aggregator(struct device *d, struct device_attribute *attr, char *buf) argument 525 bonding_show_ad_num_ports(struct device *d, struct device_attribute *attr, char *buf) argument 545 bonding_show_ad_actor_key(struct device *d, struct device_attribute *attr, char *buf) argument 565 bonding_show_ad_partner_key(struct device *d, struct device_attribute *attr, char *buf) argument 585 bonding_show_ad_partner_mac(struct device *d, struct device_attribute *attr, char *buf) argument 603 bonding_show_queue_id(struct device *d, struct device_attribute *attr, char *buf) argument 638 bonding_show_slaves_active(struct device *d, struct device_attribute *attr, char *buf) argument 650 bonding_show_resend_igmp(struct device *d, struct device_attribute *attr, char *buf) argument 662 bonding_show_lp_interval(struct device *d, struct device_attribute *attr, char *buf) argument 673 bonding_show_tlb_dynamic_lb(struct device *d, struct device_attribute *attr, char *buf) argument 683 bonding_show_packets_per_slave(struct device *d, struct device_attribute *attr, char *buf) argument [all...] |
/drivers/w1/masters/ |
H A D | ds2490.c | 248 unsigned char *buf, int size) 256 dev->ep[EP_STATUS]), buf, size, &count, 100); 264 memcpy(st, buf, sizeof(*st)); 269 static inline void ds_print_msg(unsigned char *buf, unsigned char *str, int off) argument 271 pr_info("%45s: %8x\n", str, buf[off]); 274 static void ds_dump_status(struct ds_device *dev, unsigned char *buf, int count) argument 280 pr_info("%02x ", buf[i]); 284 ds_print_msg(buf, "enable flag", 0); 285 ds_print_msg(buf, "1-wire speed", 1); 286 ds_print_msg(buf, "stron 247 ds_recv_status_nodump(struct ds_device *dev, struct ds_status *st, unsigned char *buf, int size) argument 344 ds_recv_data(struct ds_device *dev, unsigned char *buf, int size) argument 362 u8 buf[ST_SIZE]; local 386 ds_send_data(struct ds_device *dev, unsigned char *buf, int len) argument 459 u8 buf[ST_SIZE]; local 649 ds_read_block(struct ds_device *dev, u8 *buf, int len) argument 675 ds_write_block(struct ds_device *dev, u8 *buf, int len) argument 727 u64 buf[2*64/8]; local 899 ds9490r_write_block(void *data, const u8 *buf, int len) argument 906 ds9490r_read_block(void *data, u8 *buf, int len) argument [all...] |
/drivers/input/tablet/ |
H A D | aiptek.c | 905 u8 *buf; local 907 buf = kmalloc(sizeof_buf, GFP_KERNEL); 908 if (!buf) 911 buf[0] = 2; 912 buf[1] = command; 913 buf[2] = data; 916 aiptek_set_report(aiptek, 3, 2, buf, sizeof_buf)) != sizeof_buf) { 921 kfree(buf); 935 u8 *buf; local 937 buf 1052 show_tabletSize(struct device *dev, struct device_attribute *attr, char *buf) argument 1080 show_tabletPointerMode(struct device *dev, struct device_attribute *attr, char *buf) argument 1090 store_tabletPointerMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1117 show_tabletCoordinateMode(struct device *dev, struct device_attribute *attr, char *buf) argument 1127 store_tabletCoordinateMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1159 show_tabletToolMode(struct device *dev, struct device_attribute *attr, char *buf) argument 1169 store_tabletToolMode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1189 show_tabletXtilt(struct device *dev, struct device_attribute *attr, char *buf) argument 1202 store_tabletXtilt(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1231 show_tabletYtilt(struct device *dev, struct device_attribute *attr, char *buf) argument 1244 store_tabletYtilt(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1273 show_tabletJitterDelay(struct device *dev, struct device_attribute *attr, char *buf) argument 1281 store_tabletJitterDelay(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1302 show_tabletProgrammableDelay(struct device *dev, struct device_attribute *attr, char *buf) argument 1311 store_tabletProgrammableDelay(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1332 show_tabletEventsReceived(struct device *dev, struct device_attribute *attr, char *buf) argument 1345 show_tabletDiagnosticMessage(struct device *dev, struct device_attribute *attr, char *buf) argument 1391 show_tabletStylusUpper(struct device *dev, struct device_attribute *attr, char *buf) argument 1401 store_tabletStylusUpper(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1422 show_tabletStylusLower(struct device *dev, struct device_attribute *attr, char *buf) argument 1432 store_tabletStylusLower(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1460 show_tabletMouseLeft(struct device *dev, struct device_attribute *attr, char *buf) argument 1470 store_tabletMouseLeft(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1490 show_tabletMouseMiddle(struct device *dev, struct device_attribute *attr, char *buf) argument 1500 store_tabletMouseMiddle(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1520 show_tabletMouseRight(struct device *dev, struct device_attribute *attr, char *buf) argument 1530 store_tabletMouseRight(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1550 show_tabletWheel(struct device *dev, struct device_attribute *attr, char *buf) argument 1563 store_tabletWheel(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1583 show_tabletExecute(struct device *dev, struct device_attribute *attr, char *buf) argument 1593 store_tabletExecute(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1616 show_tabletODMCode(struct device *dev, struct device_attribute *attr, char *buf) argument 1629 show_tabletModelCode(struct device *dev, struct device_attribute *attr, char *buf) argument 1642 show_firmwareCode(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/drivers/bcma/ |
H A D | host_soc.c | 57 u8 *buf = buffer; local 60 *buf = __raw_readb(addr); 61 buf++; 67 __le16 *buf = buffer; local 71 *buf = (__force __le16)__raw_readw(addr); 72 buf++; 78 __le32 *buf = buffer; local 82 *buf = (__force __le32)__raw_readl(addr); 83 buf++; 101 const u8 *buf local 111 const __le16 *buf = buffer; local 122 const __le32 *buf = buffer; local [all...] |
/drivers/gpu/drm/via/ |
H A D | via_verifier.h | 57 extern int via_verify_command_stream(const uint32_t *buf, unsigned int size, 59 extern int via_parse_command_stream(struct drm_device *dev, const uint32_t *buf,
|
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_overlay.c | 41 struct vmw_dma_buffer *buf; member in struct:vmw_stream 97 struct vmw_dma_buffer *buf, 145 vmw_bo_get_guest_ptr(&buf->base, &ptr); 228 struct vmw_dma_buffer *buf, 232 return vmw_dmabuf_unpin(dev_priv, buf, inter); 235 return vmw_dmabuf_to_vram(dev_priv, buf, true, inter); 237 return vmw_dmabuf_to_vram_or_gmr(dev_priv, buf, true, inter); 261 if (!stream->buf) 272 ret = vmw_overlay_move_buffer(dev_priv, stream->buf, false, 281 vmw_dmabuf_unreference(&stream->buf); 96 vmw_overlay_send_put(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, struct drm_vmw_control_stream_arg *arg, bool interruptible) argument 227 vmw_overlay_move_buffer(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, bool pin, bool inter) argument 299 vmw_overlay_update_stream(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, struct drm_vmw_control_stream_arg *arg, bool interruptible) argument 469 struct vmw_dma_buffer *buf; local [all...] |
/drivers/infiniband/hw/usnic/ |
H A D | usnic_debugfs.c | 34 char buf[500]; local 40 res = scnprintf(buf, sizeof(buf), 45 return simple_read_from_buffer(data, count, ppos, buf, res); 61 char buf[512]; local 64 ptr = buf; 89 return simple_read_from_buffer(data, count, ppos, buf, ptr - buf);
|
/drivers/leds/trigger/ |
H A D | ledtrig-timer.c | 22 struct device_attribute *attr, char *buf) 26 return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); 30 struct device_attribute *attr, const char *buf, size_t size) 36 ret = kstrtoul(buf, 10, &state); 47 struct device_attribute *attr, char *buf) 51 return sprintf(buf, "%lu\n", led_cdev->blink_delay_off); 55 struct device_attribute *attr, const char *buf, size_t size) 61 ret = kstrtoul(buf, 10, &state); 21 led_delay_on_show(struct device *dev, struct device_attribute *attr, char *buf) argument 29 led_delay_on_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument 46 led_delay_off_show(struct device *dev, struct device_attribute *attr, char *buf) argument 54 led_delay_off_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) argument
|
/drivers/macintosh/ |
H A D | nvram.c | 42 static ssize_t read_nvram(struct file *file, char __user *buf, argument 46 char __user *p = buf; 48 if (!access_ok(VERIFY_WRITE, buf, count)) 56 return p - buf; 59 static ssize_t write_nvram(struct file *file, const char __user *buf, argument 63 const char __user *p = buf; 66 if (!access_ok(VERIFY_READ, buf, count)) 76 return p - buf;
|
/drivers/media/common/siano/ |
H A D | smsir.h | 52 const char *buf, int len); 59 const char *buf, int len) {}; 58 sms_ir_event(struct smscore_device_t *coredev, const char *buf, int len) argument
|
/drivers/media/i2c/ |
H A D | upd64083.c | 78 u8 buf[2]; local 80 buf[0] = reg; 81 buf[1] = val; 83 if (i2c_master_send(client, buf, 2) != 2) 93 u8 buf[7]; local 95 if (reg >= sizeof(buf)) 97 i2c_master_recv(client, buf, sizeof(buf)); 98 return buf[reg]; 139 u8 buf[ local [all...] |
/drivers/media/usb/as102/ |
H A D | as10x_handle.h | 29 unsigned char *buf, int buflen, int swap32); 32 unsigned char *buf, int buflen);
|