/drivers/pps/ |
H A D | sysfs.c | 33 char *buf) 40 return sprintf(buf, "%lld.%09d#%d\n", 47 char *buf) 54 return sprintf(buf, "%lld.%09d#%d\n", 61 char *buf) 65 return sprintf(buf, "%4x\n", pps->info.mode); 70 char *buf) 74 return sprintf(buf, "%d\n", !!pps->info.echo); 79 char *buf) 83 return sprintf(buf, " 32 assert_show(struct device *dev, struct device_attribute *attr, char *buf) argument 46 clear_show(struct device *dev, struct device_attribute *attr, char *buf) argument 60 mode_show(struct device *dev, struct device_attribute *attr, char *buf) argument 69 echo_show(struct device *dev, struct device_attribute *attr, char *buf) argument 78 name_show(struct device *dev, struct device_attribute *attr, char *buf) argument 87 path_show(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/drivers/dma-buf/ |
H A D | Makefile | 1 obj-y := dma-buf.o fence.o reservation.o seqno-fence.o
|
/drivers/ide/ |
H A D | ide-sysfs.c | 23 char *buf) 26 return sprintf(buf, "%s\n", ide_media_string(drive)); 31 char *buf) 34 return sprintf(buf, "%s\n", drive->name); 39 char *buf) 42 return sprintf(buf, "ide:m-%s\n", ide_media_string(drive)); 47 char *buf) 50 return sprintf(buf, "%s\n", (char *)&drive->id[ATA_ID_PROD]); 55 char *buf) 58 return sprintf(buf, " 22 media_show(struct device *dev, struct device_attribute *attr, char *buf) argument 30 drivename_show(struct device *dev, struct device_attribute *attr, char *buf) argument 38 modalias_show(struct device *dev, struct device_attribute *attr, char *buf) argument 46 model_show(struct device *dev, struct device_attribute *attr, char *buf) argument 54 firmware_show(struct device *dev, struct device_attribute *attr, char *buf) argument 62 serial_show(struct device *dev, struct device_attribute *attr, char *buf) argument 92 store_delete_devices(struct device *portdev, struct device_attribute *attr, const char *buf, size_t n) argument 108 store_scan(struct device *portdev, struct device_attribute *attr, const char *buf, size_t n) argument [all...] |
/drivers/media/pci/cx23885/ |
H A D | cx23885-alsa.c | 85 struct cx23885_audio_buffer *buf = chip->buf; local 89 buf->vaddr = vmalloc_32(nr_pages << PAGE_SHIFT); 90 if (NULL == buf->vaddr) { 96 (unsigned long)buf->vaddr, 99 memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT); 100 buf->nr_pages = nr_pages; 102 buf->sglist = vzalloc(buf->nr_pages * sizeof(*buf 126 struct cx23885_audio_buffer *buf = dev->buf; local 140 struct cx23885_audio_buffer *buf = dev->buf; local 150 cx23885_alsa_dma_free(struct cx23885_audio_buffer *buf) argument 165 struct cx23885_audio_buffer *buf = chip->buf; local 375 struct cx23885_audio_buffer *buf; local [all...] |
H A D | netup-eeprom.c | 31 unsigned char buf[2]; local 38 .buf = &buf[0], 43 .buf = &buf[1], 49 buf[0] = addr; 50 buf[1] = 0x0; 59 return buf[1]; 72 .buf = &bufw[0],
|
H A D | cx23885-f300.c | 83 static u8 f300_xfer(struct dvb_frontend *fe, u8 *buf) argument 89 temp = buf[0]; 90 for (i = 0; i < buf[0]; i++) 91 temp += buf[i + 1]; 93 buf[1 + buf[0]] = temp; 108 temp = buf[0]; 111 f300_send_byte(dev, buf[i]); 149 u8 buf[16]; local 151 buf[ [all...] |
/drivers/net/ethernet/altera/ |
H A D | altera_tse_ethtool.c | 90 static void tse_gstrings(struct net_device *dev, u32 stringset, u8 *buf) argument 92 memcpy(buf, stat_gstrings, TSE_STATS_LEN * ETH_GSTRING_LEN); 96 u64 *buf) 101 buf[0] = csrrd32(priv->mac_dev, 103 buf[1] = csrrd32(priv->mac_dev, 105 buf[2] = csrrd32(priv->mac_dev, 107 buf[3] = csrrd32(priv->mac_dev, 116 buf[4] = ext; 124 buf[5] = ext; 126 buf[ 95 tse_fill_stats(struct net_device *dev, struct ethtool_stats *dummy, u64 *buf) argument 216 u32 *buf = regbuf; local [all...] |
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | alloc.c | 174 struct mlx4_buf *buf, gfp_t gfp) 179 buf->nbufs = 1; 180 buf->npages = 1; 181 buf->page_shift = get_order(size) + PAGE_SHIFT; 182 buf->direct.buf = dma_alloc_coherent(&dev->pdev->dev, 184 if (!buf->direct.buf) 187 buf->direct.map = t; 189 while (t & ((1 << buf 173 mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, struct mlx4_buf *buf, gfp_t gfp) argument 242 mlx4_buf_free(struct mlx4_dev *dev, int size, struct mlx4_buf *buf) argument [all...] |
H A D | en_resources.c | 80 int mlx4_en_map_buffer(struct mlx4_buf *buf) argument 85 if (BITS_PER_LONG == 64 || buf->nbufs == 1) 88 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); 92 for (i = 0; i < buf->nbufs; ++i) 93 pages[i] = virt_to_page(buf->page_list[i].buf); 95 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); 97 if (!buf 103 mlx4_en_unmap_buffer(struct mlx4_buf *buf) argument [all...] |
/drivers/s390/char/ |
H A D | ctrlchar.h | 12 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
|
/drivers/usb/gadget/ |
H A D | usbstring.c | 26 * @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/input/joystick/ |
H A D | walkera0701.c | 52 unsigned char buf[25]; member in struct:walkera_dev 74 crc1 += w->buf[i] & 7; 75 crc2 += (w->buf[i] & 8) >> 3; 77 if ((w->buf[10] & 7) != (crc1 & 7)) 79 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) 82 crc1 += w->buf[i] & 7; 83 crc2 += (w->buf[i] & 8) >> 3; 85 if ((w->buf[23] & 7) != (crc1 & 7)) 87 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) 89 val1 = ((w->buf[ [all...] |
/drivers/usb/gadget/function/ |
H A D | uvc_queue.c | 64 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); local 75 buf->state = UVC_BUF_STATE_QUEUED; 76 buf->mem = vb2_plane_vaddr(vb, 0); 77 buf->length = vb2_plane_size(vb, 0); 79 buf->bytesused = 0; 81 buf->bytesused = vb2_get_plane_payload(vb, 0); 89 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); local 95 list_add_tail(&buf 178 uvcg_query_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) argument 189 uvcg_queue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) argument 213 uvcg_dequeue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf, int nonblocking) argument 286 struct uvc_buffer *buf; local 362 uvcg_queue_next_buffer(struct uvc_video_queue *queue, struct uvc_buffer *buf) argument 393 struct uvc_buffer *buf = NULL; local [all...] |
/drivers/rtc/ |
H A D | rtc-pcf8563.c | 74 unsigned char length, unsigned char *buf) 80 .buf = ®, 86 .buf = buf 100 unsigned char *buf) 105 unsigned char data[2] = { reg + i, buf[i] }; 121 unsigned char buf[2]; local 124 err = pcf8563_read_block_data(client, PCF8563_REG_ST2, 1, buf + 1); 129 buf[1] |= PCF8563_BIT_AIE; 131 buf[ 73 pcf8563_read_block_data(struct i2c_client *client, unsigned char reg, unsigned char length, unsigned char *buf) argument 98 pcf8563_write_block_data(struct i2c_client *client, unsigned char reg, unsigned char length, unsigned char *buf) argument 148 unsigned char buf; local 189 unsigned char buf[9]; local 243 unsigned char buf[9]; local 327 unsigned char buf[4]; local 362 unsigned char buf[4]; local [all...] |
H A D | rtc-ds1305.c | 146 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 656 u8 buf[2]; local 710 u8 buf[4]; local [all...] |
H A D | rtc-88pm80x.c | 116 unsigned char buf[4]; local 118 regmap_raw_read(info->map, PM800_RTC_EXPIRE2_1, buf, 4); 119 base = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; 120 dev_dbg(info->dev, "%x-%x-%x-%x\n", buf[0], buf[1], buf[2], buf[ 135 unsigned char buf[4]; local 163 unsigned char buf[4]; local 189 unsigned char buf[4]; local [all...] |
/drivers/media/dvb-frontends/ |
H A D | stb6000.c | 55 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...] |
/drivers/target/ |
H A D | target_core_fabric_lib.c | 60 unsigned char *buf) 68 buf[0] = 0x06; 75 ret = hex2bin(&buf[4], ptr, 8); 109 const char *buf, 124 return (char *)&buf[4]; 156 unsigned char *buf) 178 ret = hex2bin(&buf[off++], &ptr[i], 1); 192 const char *buf, 204 return (char *)&buf[8]; 227 unsigned char *buf) 55 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 107 sas_parse_pr_out_transport_id( struct se_portal_group *se_tpg, const char *buf, u32 *out_tid_len, char **port_nexus_ptr) argument 151 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 190 fc_parse_pr_out_transport_id( struct se_portal_group *se_tpg, const char *buf, u32 *out_tid_len, char **port_nexus_ptr) argument 222 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 364 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/base/power/ |
H A D | sysfs.c | 103 char *buf) 105 return sprintf(buf, "%s\n", 110 const char * buf, size_t n) 115 cp = memchr(buf, '\n', n); 117 len = cp - buf; 119 if (len == sizeof ctrl_auto - 1 && strncmp(buf, ctrl_auto, len) == 0) 121 else if (len == sizeof ctrl_on - 1 && strncmp(buf, ctrl_on, len) == 0) 132 struct device_attribute *attr, char *buf) 137 ret = sprintf(buf, "%i\n", jiffies_to_msecs(dev->power.active_jiffies)); 145 struct device_attribute *attr, char *buf) 102 control_show(struct device *dev, struct device_attribute *attr, char *buf) argument 109 control_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t n) argument 131 rtpm_active_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument 144 rtpm_suspended_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument 158 rtpm_status_show(struct device *dev, struct device_attribute *attr, char *buf) argument 190 autosuspend_delay_ms_show(struct device *dev, struct device_attribute *attr, char *buf) argument 198 autosuspend_delay_ms_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument 218 pm_qos_resume_latency_show(struct device *dev, struct device_attribute *attr, char *buf) argument 225 pm_qos_resume_latency_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument 246 pm_qos_latency_tolerance_show(struct device *dev, struct device_attribute *attr, char *buf) argument 260 pm_qos_latency_tolerance_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument 280 pm_qos_no_power_off_show(struct device *dev, struct device_attribute *attr, char *buf) argument 288 pm_qos_no_power_off_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument 307 pm_qos_remote_wakeup_show(struct device *dev, struct device_attribute *attr, char *buf) argument 315 pm_qos_remote_wakeup_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument 340 wake_show(struct device * dev, struct device_attribute *attr, char * buf) argument 348 wake_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t n) argument 373 wakeup_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument 390 wakeup_active_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument 407 wakeup_abort_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument 425 wakeup_expire_count_show(struct device *dev, struct device_attribute *attr, char *buf) argument 443 wakeup_active_show(struct device *dev, struct device_attribute *attr, char *buf) argument 460 wakeup_total_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument 477 wakeup_max_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument 494 wakeup_last_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument 512 wakeup_prevent_sleep_time_show(struct device *dev, struct device_attribute *attr, char *buf) argument 536 rtpm_usagecount_show(struct device *dev, struct device_attribute *attr, char *buf) argument 542 rtpm_children_show(struct device *dev, struct device_attribute *attr, char *buf) argument 549 rtpm_enabled_show(struct device *dev, struct device_attribute *attr, char *buf) argument 569 async_show(struct device *dev, struct device_attribute *attr, char *buf) argument 577 async_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) argument [all...] |
/drivers/net/wireless/iwlegacy/ |
H A D | debug.c | 236 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...] |
/drivers/media/usb/uvc/ |
H A D | uvc_queue.c | 66 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); local 77 buf->state = UVC_BUF_STATE_QUEUED; 78 buf->error = 0; 79 buf->mem = vb2_plane_vaddr(vb, 0); 80 buf->length = vb2_plane_size(vb, 0); 82 buf->bytesused = 0; 84 buf->bytesused = vb2_get_plane_payload(vb, 0); 92 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); local 114 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); local 191 uvc_query_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) argument 214 uvc_queue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf) argument 225 uvc_dequeue_buffer(struct uvc_video_queue *queue, struct v4l2_buffer *buf, int nonblocking) argument 348 struct uvc_buffer *buf; local 370 uvc_queue_next_buffer(struct uvc_video_queue *queue, struct uvc_buffer *buf) argument [all...] |
/drivers/net/wireless/b43legacy/ |
H A D | sysfs.c | 38 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/net/wireless/iwlwifi/mvm/ |
H A D | debugfs-vif.c | 130 static ssize_t iwl_dbgfs_pm_params_write(struct ieee80211_vif *vif, char *buf, argument 138 if (!strncmp("keep_alive=", buf, 11)) { 139 if (sscanf(buf + 11, "%d", &val) != 1) 142 } else if (!strncmp("skip_over_dtim=", buf, 15)) { 143 if (sscanf(buf + 15, "%d", &val) != 1) 146 } else if (!strncmp("skip_dtim_periods=", buf, 18)) { 147 if (sscanf(buf + 18, "%d", &val) != 1) 150 } else if (!strncmp("rx_data_timeout=", buf, 16)) { 151 if (sscanf(buf + 16, "%d", &val) != 1) 154 } else if (!strncmp("tx_data_timeout=", buf, 1 200 char buf[512]; local 218 char buf[512]; local 339 iwl_dbgfs_bf_params_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 442 char buf[256]; local 485 iwl_dbgfs_low_latency_write(struct ieee80211_vif *vif, char *buf, size_t count, loff_t *ppos) argument 512 char buf[3]; local 539 char buf[100]; local [all...] |
/drivers/md/ |
H A D | dm-sysfs.c | 42 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/media/pci/ttpci/ |
H A D | av7110_ipack.c | 24 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...] |