/drivers/media/video/cx18/ |
H A D | cx18-vbi.c | 109 static u32 compress_raw_buf(struct cx18 *cx, u8 *buf, u32 size, u32 hdr_size) argument 113 u8 *q = buf; 118 buf += hdr_size; 121 p = buf + i * line_size; 142 static u32 compress_sliced_buf(struct cx18 *cx, u8 *buf, u32 size, argument 152 for (i = hdr_size, buf += hdr_size; i < size; i++, buf++) { 153 if (buf[0] == 0xff && !buf[1] && !buf[ 189 _cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf) argument 254 struct cx18_buffer *buf; local [all...] |
/drivers/mmc/core/ |
H A D | sdio_cis.c | 28 const unsigned char *buf, unsigned size) 35 buf += 2; 40 if (buf[i] == 0xff) 42 if (buf[i] == 0) 58 strcpy(string, buf); 60 buf += strlen(buf) + 1; 75 const unsigned char *buf, unsigned size) 80 vendor = buf[0] | (buf[ 27 cistpl_vers_1(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument 74 cistpl_manfid(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument 111 cis_tpl_parse(struct mmc_card *card, struct sdio_func *func, const char *tpl_descr, const struct cis_tpl *tpl, int tpl_count, unsigned char code, const unsigned char *buf, unsigned size) argument 146 cistpl_funce_common(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument 163 cistpl_funce_func(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument 208 cistpl_funce(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument [all...] |
/drivers/net/wireless/iwmc3200wifi/ |
H A D | bus.h | 32 int (*send_chunk)(struct iwm_priv *iwm, u8* buf, int count); 42 static inline int iwm_bus_send_chunk(struct iwm_priv *iwm, u8 *buf, int count) argument 44 return iwm->bus_ops->send_chunk(iwm, buf, count);
|
H A D | debugfs.c | 107 char *buf; local 114 if (count < sizeof(buf)) 117 buf = kzalloc(buf_len, GFP_KERNEL); 118 if (!buf) 131 len += snprintf(buf + len, buf_len - len, "TXQ #%d\n", i); 132 len += snprintf(buf + len, buf_len - len, "\tStopped: %d\n", 135 len += snprintf(buf + len, buf_len - len, "\tConcat count:%d\n", 137 len += snprintf(buf + len, buf_len - len, "\tQueue len: %d\n", 145 len += snprintf(buf + len, buf_len - len, 147 len += snprintf(buf 193 char *buf; local 264 char *buf; local 321 char buf[512]; local [all...] |
/drivers/usb/musb/ |
H A D | blackfin.h | 56 static void dump_fifo_data(u8 *buf, u16 len) argument 58 u8 *tmp = buf; 69 #define dump_fifo_data(buf, len) do {} while (0)
|
H A D | musb_io.h | 44 static inline void readsl(const void __iomem *addr, void *buf, int len) argument 45 { insl((unsigned long)addr, buf, len); } 46 static inline void readsw(const void __iomem *addr, void *buf, int len) argument 47 { insw((unsigned long)addr, buf, len); } 48 static inline void readsb(const void __iomem *addr, void *buf, int len) argument 49 { insb((unsigned long)addr, buf, len); } 51 static inline void writesl(const void __iomem *addr, const void *buf, int len) argument 52 { outsl((unsigned long)addr, buf, len); } 53 static inline void writesw(const void __iomem *addr, const void *buf, int len) argument 54 { outsw((unsigned long)addr, buf, le 55 writesb(const void __iomem *addr, const void *buf, int len) argument [all...] |
/drivers/usb/gadget/ |
H A D | uvc_video.c | 29 uvc_video_encode_header(struct uvc_video *video, struct uvc_buffer *buf, argument 35 if (buf->buf.bytesused - video->queue.buf_used <= len - 2) 42 uvc_video_encode_data(struct uvc_video *video, struct uvc_buffer *buf, argument 50 mem = queue->mem + buf->buf.m.offset + queue->buf_used; 51 nbytes = min((unsigned int)len, buf->buf.bytesused - queue->buf_used); 61 struct uvc_buffer *buf) 63 void *mem = req->buf; 60 uvc_video_encode_bulk(struct usb_request *req, struct uvc_video *video, struct uvc_buffer *buf) argument 100 uvc_video_encode_isoc(struct usb_request *req, struct uvc_video *video, struct uvc_buffer *buf) argument 164 struct uvc_buffer *buf; local 277 struct uvc_buffer *buf; local [all...] |
/drivers/base/ |
H A D | topology.c | 41 struct device_attribute *attr, char *buf) \ 44 return sprintf(buf, "%d\n", topology_##name(cpu)); \ 49 static ssize_t show_cpumap(int type, const struct cpumask *mask, char *buf) argument 51 ptrdiff_t len = PTR_ALIGN(buf + PAGE_SIZE - 1, PAGE_SIZE) - buf; 56 cpulist_scnprintf(buf, len-2, mask) : 57 cpumask_scnprintf(buf, len-2, mask); 58 buf[n++] = '\n'; 59 buf[n] = '\0'; 68 struct device_attribute *attr, char *buf) \ [all...] |
/drivers/media/dvb/frontends/ |
H A D | mt312.c | 62 u8 *buf, const size_t count) 70 msg[0].buf = regbuf; 74 msg[1].buf = buf; 88 printk(KERN_CONT " %02x", buf[i]); 99 u8 buf[count + 1]; local 110 buf[0] = reg; 111 memcpy(&buf[1], src, count); 115 msg.buf = buf; 61 mt312_read(struct mt312_state *state, const enum mt312_reg_addr reg, u8 *buf, const size_t count) argument 173 u8 buf[2]; local 242 u8 buf[2]; local 470 u8 buf[3]; local 486 u8 buf[3]; local 508 u8 buf[2]; local 523 u8 buf[2]; local 539 u8 buf[5], config_val; local [all...] |
H A D | tda665x.c | 37 static int tda665x_read(struct tda665x_state *state, u8 *buf) argument 41 struct i2c_msg msg = { .addr = config->addr, .flags = I2C_M_RD, .buf = buf, .len = 2 }; 53 static int tda665x_write(struct tda665x_state *state, u8 *buf, u8 length) argument 57 struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = length }; 121 u8 buf[4]; local 137 buf[0] = (u8) ((frequency & 0x7f00) >> 8); 138 buf[1] = (u8) (frequency & 0x00ff) >> 0; 139 buf[ [all...] |
/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_wq.h | 107 struct vnic_wq_buf *buf = wq->to_use; local 109 buf->sop = sop; 110 buf->os_buf = eop ? os_buf : NULL; 111 buf->dma_addr = dma_addr; 112 buf->len = len; 114 buf = buf->next; 122 iowrite32(buf->index, &wq->ctrl->posted_index); 124 wq->to_use = buf; 132 struct cq_desc *cq_desc, struct vnic_wq_buf *buf, voi 129 vnic_wq_service(struct vnic_wq *wq, struct cq_desc *cq_desc, u16 completed_index, void (*buf_service)(struct vnic_wq *wq, struct cq_desc *cq_desc, struct vnic_wq_buf *buf, void *opaque), void *opaque) argument 135 struct vnic_wq_buf *buf; local [all...] |
/drivers/oprofile/ |
H A D | oprofile_files.c | 30 static ssize_t timeout_read(struct file *file, char __user *buf, argument 34 buf, count, offset); 38 static ssize_t timeout_write(struct file *file, char const __user *buf, argument 47 retval = oprofilefs_ulong_from_user(&val, buf, count); 68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 70 return oprofilefs_ulong_to_user(oprofile_backtrace_depth, buf, count, 75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument 86 retval = oprofilefs_ulong_from_user(&val, buf, count); 105 static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 107 return oprofilefs_ulong_to_user(sizeof(void *), buf, coun 117 cpu_type_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 129 enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 135 enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument 166 dump_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument [all...] |
/drivers/rtc/ |
H A D | rtc-max6902.c | 36 unsigned char buf[2]; local 39 buf[0] = address & 0x7f; 40 buf[1] = data; 42 return spi_write_then_read(spi, buf, 2, NULL, 0); 60 unsigned char buf[8]; local 62 buf[0] = 0xbf; /* Burst read */ 64 err = spi_write_then_read(spi, buf, 1, buf, 8); 70 dt->tm_sec = bcd2bin(buf[0]); 71 dt->tm_min = bcd2bin(buf[ [all...] |
H A D | rtc-ds3232.c | 104 u8 buf[7]; local 109 ret = i2c_smbus_read_i2c_block_data(client, DS3232_REG_SECONDS, 7, buf); 116 second = buf[0]; 117 minute = buf[1]; 118 hour = buf[2]; 119 week = buf[3]; 120 day = buf[4]; 121 month = buf[5]; 122 year = buf[6]; 160 u8 buf[ local 194 u8 buf[4]; local 240 u8 buf[4]; local 288 u8 buf[4]; local [all...] |
/drivers/scsi/fnic/ |
H A D | vnic_wq.c | 29 struct vnic_wq_buf *buf; local 45 buf = wq->bufs[i]; 47 buf->index = i * VNIC_WQ_BUF_BLK_ENTRIES + j; 48 buf->desc = (u8 *)wq->ring.descs + 49 wq->ring.desc_size * buf->index; 50 if (buf->index + 1 == count) { 51 buf->next = wq->bufs[0]; 54 buf->next = wq->bufs[i + 1]; 56 buf->next = buf 159 vnic_wq_clean(struct vnic_wq *wq, void (*buf_clean)(struct vnic_wq *wq, struct vnic_wq_buf *buf)) argument 162 struct vnic_wq_buf *buf; local [all...] |
H A D | vnic_wq.h | 117 struct vnic_wq_buf *buf = wq->to_use; local 119 buf->sop = sop; 120 buf->os_buf = eop ? os_buf : NULL; 121 buf->dma_addr = dma_addr; 122 buf->len = len; 124 buf = buf->next; 132 iowrite32(buf->index, &wq->ctrl->posted_index); 134 wq->to_use = buf; 142 struct cq_desc *cq_desc, struct vnic_wq_buf *buf, voi 139 vnic_wq_service(struct vnic_wq *wq, struct cq_desc *cq_desc, u16 completed_index, void (*buf_service)(struct vnic_wq *wq, struct cq_desc *cq_desc, struct vnic_wq_buf *buf, void *opaque), void *opaque) argument 145 struct vnic_wq_buf *buf; local [all...] |
/drivers/net/wireless/ath/carl9170/ |
H A D | debug.c | 48 #define ADD(buf, off, max, fmt, args...) \ 49 off += snprintf(&buf[off], max - off, fmt, ##args); 55 char *(*read)(struct ar9170 *ar, char *buf, size_t bufsize, 57 ssize_t (*write)(struct ar9170 *aru, const char *buf, size_t size); 68 char *buf = NULL, *res_buf = NULL; local 85 buf = vmalloc(dfops->read_bufsize); 86 if (!buf) 93 res_buf = buf; 97 res_buf = dfops->read(ar, buf, dfops->read_bufsize, &ret); 105 WARN_ON_ONCE(dfops->read_bufsize && (res_buf != buf)); 118 char *buf = NULL; local 215 carl9170_debugfs_mem_usage_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument 242 carl9170_debugfs_qos_stat_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument 286 carl9170_debugfs_format_frame(struct ar9170 *ar, struct sk_buff *skb, const char *prefix, char *buf, ssize_t *off, ssize_t bufsize) argument 303 carl9170_debugfs_ampdu_state_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument 363 carl9170_debugfs_queue_dump(struct ar9170 *ar, char *buf, ssize_t *len, size_t bufsize, struct sk_buff_head *queue) argument 389 carl9170_debugfs_sta_psm_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument 405 carl9170_debugfs_tx_stuck_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument 423 carl9170_debugfs_phy_noise_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument 443 carl9170_debugfs_vif_dump_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument 555 carl9170_debugfs_hw_ioread32_write(struct ar9170 *ar, const char *buf, size_t count) argument 606 carl9170_debugfs_hw_ioread32_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *ret) argument 627 carl9170_debugfs_bug_write(struct ar9170 *ar, const char *buf, size_t count) argument 674 carl9170_debugfs_bug_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *ret) argument 702 carl9170_debugfs_erp_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *ret) argument 710 carl9170_debugfs_erp_write(struct ar9170 *ar, const char *buf, size_t count) argument 732 carl9170_debugfs_hw_iowrite32_write(struct ar9170 *ar, const char *buf, size_t count) argument [all...] |
/drivers/net/wireless/ath/ath6kl/ |
H A D | debug.c | 82 const void *buf, size_t len) 88 print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len); 233 char *buf; local 237 buf = kzalloc(buf_len, GFP_KERNEL); 238 if (!buf) 241 len += scnprintf(buf + len, buf_len - len, "\n"); 242 len += scnprintf(buf + len, buf_len - len, "%25s\n", 244 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", 246 len += scnprintf(buf + len, buf_len - len, "%20s %10u\n", 252 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, le 80 ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask, const char *msg, const char *prefix, const void *buf, size_t len) argument 265 ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len) argument 334 char *buf; local 387 char *buf; local 456 char buf[16]; local 498 char *buf; local 649 char *buf; local 701 print_endpoint_stat(struct htc_target *target, char *buf, unsigned int buf_len, unsigned int len, int offset, const char *name) argument 726 char *buf; local 835 u8 buf[50]; local 880 u8 *buf; local 945 u8 *buf = file->private_data; local 985 char buf[32]; local 1006 u8 buf[32]; local 1020 char buf[32]; local 1063 ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf, size_t len) argument 1105 char *buf; local 1174 char buf[20]; local 1212 char buf[20]; local 1255 char buf[16]; local 1300 char buf[16]; local 1342 char buf[200]; local 1521 char buf[100]; local 1568 char buf[32]; local 1602 char buf[32]; local 1633 char buf[32]; local 1658 u8 buf[100]; local [all...] |
/drivers/net/wireless/iwlegacy/ |
H A D | 4965-debug.c | 37 il4965_stats_flag(struct il_priv *il, char *buf, int bufsz) argument 44 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag); 46 p += scnprintf(buf + p, bufsz - p, 48 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", 51 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", 64 char *buf; local 79 buf = kzalloc(bufsz, GFP_KERNEL); 80 if (!buf) { 107 pos += il4965_stats_flag(il, buf, bufsz); 109 scnprintf(buf 476 char *buf; local 642 char *buf; local [all...] |
/drivers/media/video/saa7134/ |
H A D | saa7134-ts.c | 44 struct saa7134_buf *buf, 48 dprintk("buffer_activate [%p]",buf); 49 buf->vb.state = VIDEOBUF_ACTIVE; 50 buf->top_seen = 0; 53 next = buf; 54 if (V4L2_FIELD_TOP == buf->vb.field) { 55 dprintk("- [top] buf=%p next=%p\n",buf,next); 56 saa_writel(SAA7134_RS_BA1(5),saa7134_buffer_base(buf)); 59 dprintk("- [bottom] buf 43 buffer_activate(struct saa7134_dev *dev, struct saa7134_buf *buf, struct saa7134_buf *next) argument 79 struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); local 144 struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); local 151 struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); local [all...] |
/drivers/gpu/drm/gma500/ |
H A D | psb_intel_modes.c | 32 u8 buf[2]; local 39 .buf = out_buf, 45 .buf = buf,
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_sysfs.c | 76 static ssize_t show_version(struct device_driver *dev, char *buf) argument 79 return scnprintf(buf, PAGE_SIZE, "%s", ib_ipath_version); 82 static ssize_t show_num_units(struct device_driver *dev, char *buf) argument 84 return scnprintf(buf, PAGE_SIZE, "%d\n", 90 char *buf) 100 ret = scnprintf(buf, PAGE_SIZE, "0x%llx\n", 123 char *buf) 136 *buf = '\0'; 139 if (any && strlcat(buf, " ", PAGE_SIZE) >= 143 if (strlcat(buf, ipath_status_st 88 show_status(struct device *dev, struct device_attribute *attr, char *buf) argument 121 show_status_str(struct device *dev, struct device_attribute *attr, char *buf) argument 159 show_boardversion(struct device *dev, struct device_attribute *attr, char *buf) argument 168 show_localbus_info(struct device *dev, struct device_attribute *attr, char *buf) argument 177 show_lmc(struct device *dev, struct device_attribute *attr, char *buf) argument 186 store_lmc(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 213 show_lid(struct device *dev, struct device_attribute *attr, char *buf) argument 222 store_lid(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 249 show_mlid(struct device *dev, struct device_attribute *attr, char *buf) argument 258 store_mlid(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 280 show_guid(struct device *dev, struct device_attribute *attr, char *buf) argument 295 store_guid(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 339 show_nguid(struct device *dev, struct device_attribute *attr, char *buf) argument 348 show_nports(struct device *dev, struct device_attribute *attr, char *buf) argument 358 show_serial(struct device *dev, struct device_attribute *attr, char *buf) argument 370 show_unit(struct device *dev, struct device_attribute *attr, char *buf) argument 379 show_jint_max_packets(struct device *dev, struct device_attribute *attr, char *buf) argument 388 store_jint_max_packets(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 406 show_jint_idle_ticks(struct device *dev, struct device_attribute *attr, char *buf) argument 415 store_jint_idle_ticks(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 539 store_reset(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 568 store_link_state(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 594 show_mtu(struct device *dev, struct device_attribute *attr, char *buf) argument 602 store_mtu(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 627 show_enabled(struct device *dev, struct device_attribute *attr, char *buf) argument 636 store_enabled(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 677 store_rx_pol_inv(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 703 store_led_override(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 720 show_logged_errs(struct device *dev, struct device_attribute *attr, char *buf) argument 747 show_hrtbt_enb(struct device *dev, struct device_attribute *attr, char *buf) argument 760 store_hrtbt_enb(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 800 show_lwid_enb(struct device *dev, struct device_attribute *attr, char *buf) argument 813 store_lwid_enb(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 840 show_lwid(struct device *dev, struct device_attribute *attr, char *buf) argument 857 show_spd_enb(struct device *dev, struct device_attribute *attr, char *buf) argument 870 store_spd_enb(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 897 show_spd(struct device *dev, struct device_attribute *attr, char *buf) argument 913 show_rx_polinv_enb(struct device *dev, struct device_attribute *attr, char *buf) argument 926 store_rx_polinv_enb(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 954 show_lanerev_enb(struct device *dev, struct device_attribute *attr, char *buf) argument 967 store_lanerev_enb(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1005 store_tempsense(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1046 show_tempsense(struct device *dev, struct device_attribute *attr, char *buf) argument [all...] |
/drivers/media/dvb/mantis/ |
H A D | mantis_vp2033.c | 57 {.addr = 0x50, .flags = 0, .buf = &b, .len = 1}, 58 {.addr = 0x50, .flags = I2C_M_RD, .buf = &pwm, .len = 1} 74 u8 buf[6]; local 75 struct i2c_msg msg = {.addr = 0x60, .flags = 0, .buf = buf, .len = sizeof(buf)}; 83 buf[0] = (div >> 8) & 0x7f; 84 buf[1] = div & 0xff; 85 buf[2] = 0xce; 86 buf[ [all...] |
H A D | mantis_vp2040.c | 56 u8 buf[6]; local 57 struct i2c_msg msg = {.addr = 0x60, .flags = 0, .buf = buf, .len = sizeof(buf)}; 65 buf[0] = (div >> 8) & 0x7f; 66 buf[1] = div & 0xff; 67 buf[2] = 0xce; 68 buf[3] = (p->frequency < 150000000 ? 0x01 : 70 buf[4] = 0xde; 71 buf[ [all...] |
/drivers/media/dvb/ttpci/ |
H A D | av7110_av.h | 9 extern int av7110_record_cb(struct dvb_filter_pes2ts *p2t, u8 *buf, size_t len); 10 extern int av7110_pes_play(void *dest, struct dvb_ringbuffer *buf, int dlen); 11 extern int av7110_write_to_decoder(struct dvb_demux_feed *feed, const u8 *buf, size_t len); 22 extern void av7110_p2t_write(u8 const *buf, long int length, u16 pid, struct av7110_p2t *p);
|