/drivers/i2c/busses/ |
H A D | scx200_acb.c | 283 u8 *buffer; local 290 buffer = NULL; 295 buffer = rw ? &data->byte : &command; 300 buffer = &data->byte; 306 buffer = (u8 *)&cur_word; 313 buffer = &data->block[1]; 333 iface->ptr = buffer; 360 if (buffer) { 364 printk(" %02x", buffer[i]);
|
/drivers/iio/adc/ |
H A D | max1027.c | 24 #include <linux/iio/buffer.h> 212 __be16 *buffer; member in struct:max1027_state 257 ret = spi_read(st->spi, st->buffer, (chan->type == IIO_TEMP) ? 4 : 2); 261 *val = be16_to_cpu(st->buffer[0]); 311 u8 *val = (u8 *)st->buffer; 382 /* fill buffer with all channel */ 383 spi_read(st->spi, st->buffer, indio_dev->masklength * 2); 385 iio_push_to_buffers(indio_dev, st->buffer); 435 st->buffer = devm_kmalloc(&indio_dev->dev, 438 if (st->buffer [all...] |
/drivers/input/touchscreen/ |
H A D | sur40.c | 139 u8 command, u16 index, void *buffer, u16 size) 144 0x00, index, buffer, size, 1000); 151 u8 buffer[24]; local 154 result = sur40_command(dev, SUR40_GET_VERSION, 0x00, buffer, 12); 158 result = sur40_command(dev, SUR40_GET_VERSION, 0x01, buffer, 12); 162 result = sur40_command(dev, SUR40_GET_VERSION, 0x02, buffer, 12); 166 result = sur40_command(dev, SUR40_UNKNOWN2, 0x00, buffer, 24); 170 result = sur40_command(dev, SUR40_UNKNOWN1, 0x00, buffer, 5); 174 result = sur40_command(dev, SUR40_GET_VERSION, 0x03, buffer, 12); 177 * Discard the result buffer 138 sur40_command(struct sur40_state *dev, u8 command, u16 index, void *buffer, u16 size) argument [all...] |
/drivers/video/fbdev/omap2/displays-new/ |
H A D | panel-lgphilips-lb035q02.c | 71 u8 buffer[16]; local 76 buffer[0] = 0x70; 77 buffer[1] = 0x00; 78 buffer[2] = reg & 0x7f; 79 index_xfer.tx_buf = buffer; 83 buffer[4] = 0x72; 84 buffer[5] = val >> 8; 85 buffer[6] = val; 86 value_xfer.tx_buf = buffer + 4;
|
/drivers/acpi/acpica/ |
H A D | exoparg2.c | 308 * Input object is guaranteed to be a buffer at this point (it may have 309 * been converted.) Copy the raw buffer data to a new object of 315 * 1) Length of the input buffer 317 * 3) Length of input buffer up to a zero byte (null terminator) 322 while ((length < operand[0]->buffer.length) && 324 (operand[0]->buffer.pointer[length])) { 337 * Copy the raw buffer data with no transform. 341 operand[0]->buffer.pointer, length); 387 if (index >= operand[0]->buffer.length) { 388 length = operand[0]->buffer [all...] |
H A D | rscalc.c | 183 * calculates the size buffer needed to hold the corresponding 391 * buffer needed to hold the corresponding internal resource 402 u8 *buffer; local 446 buffer = 455 ACPI_MOVE_16_TO_16(&temp16, buffer); 464 extra_struct_bytes = acpi_rs_count_set_bits(*buffer); 510 extra_struct_bytes = (buffer[1] - 1) * sizeof(u32); 553 * Update the required buffer size for the internal descriptor structs 596 * buffer_size_needed - u32 pointer of the size buffer 626 * Calculate the size of the return buffer [all...] |
/drivers/block/drbd/ |
H A D | drbd_actlog.c | 44 * in the on disk ring buffer */ 446 /* transaction number, modulo on-disk ring buffer wrap around */ 461 struct al_transaction_on_disk *buffer; local 485 buffer = drbd_md_get_buffer(device, __func__); 486 if (!buffer) { 487 drbd_err(device, "disk failed while waiting for md_io buffer\n"); 492 memset(buffer, 0, sizeof(*buffer)); 493 buffer->magic = cpu_to_be32(DRBD_AL_MAGIC); 494 buffer 609 drbd_initialize_al(struct drbd_device *device, void *buffer) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | dce3_1_afmt.c | 153 u8 buffer[HDMI_INFOFRAME_HEADER_SIZE + HDMI_AVI_INFOFRAME_SIZE]; local 225 err = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer)); 231 r600_hdmi_update_avi_infoframe(encoder, buffer, sizeof(buffer));
|
H A D | radeon_state.c | 105 DRM_ERROR("Invalid depth buffer offset\n"); 116 DRM_ERROR("Invalid colour buffer offset\n"); 282 u32 *cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 0); 294 if (4 * *cmdsz > drm_buffer_unprocessed(cmdbuf->buffer)) { 334 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 1); 341 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, i); 354 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, i); 382 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 1); 395 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 1); 400 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 1704 u32 *buffer; local 2893 void __user *buffer = cmdbuf->buffer; local [all...] |
/drivers/media/pci/zoran/ |
H A D | zoran_driver.c | 222 if (fh->buffers.buffer[i].v4l.fbuffer) 225 "%s: %s - buffer %d already allocated!?\n", 239 fh->buffers.buffer[i].v4l.fbuffer = mem; 240 fh->buffers.buffer[i].v4l.fbuffer_phys = virt_to_phys(mem); 241 fh->buffers.buffer[i].v4l.fbuffer_bus = virt_to_bus(mem); 267 if (!fh->buffers.buffer[i].v4l.fbuffer) 270 mem = fh->buffers.buffer[i].v4l.fbuffer; 274 kfree(fh->buffers.buffer[i].v4l.fbuffer); 275 fh->buffers.buffer[i].v4l.fbuffer = NULL; 285 * each MJPEG buffer need 393 struct zoran_buffer *buffer; local [all...] |
/drivers/media/v4l2-core/ |
H A D | tuner-core.c | 268 unsigned char buffer[4]; local 314 buffer[0] = 0x0b; 315 buffer[1] = 0xdc; 316 buffer[2] = 0x9c; 317 buffer[3] = 0x60; 318 i2c_master_send(c, buffer, 4); 320 buffer[2] = 0x86; 321 buffer[3] = 0x54; 322 i2c_master_send(c, buffer, 4); 328 buffer[ 609 unsigned char buffer[16]; local [all...] |
/drivers/pnp/pnpacpi/ |
H A D | core.c | 81 struct acpi_buffer buffer; local 83 ret = pnpacpi_build_resource_template(dev, &buffer); 87 ret = pnpacpi_encode_resources(dev, &buffer); 91 status = acpi_set_current_resources(handle, &buffer); 95 kfree(buffer.pointer);
|
/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_io.c | 812 struct qlcnic_rx_buffer *buffer) 834 buffer->skb = skb; 835 buffer->dma = dma; 845 struct qlcnic_rx_buffer *buffer; local 856 buffer = list_entry(head->next, struct qlcnic_rx_buffer, list); 858 if (!buffer->skb) { 859 if (qlcnic_alloc_rx_skb(adapter, rds_ring, buffer)) 863 list_del(&buffer->list); 868 buffer->ref_handle, ring_id); 871 pdesc->addr_buffer = cpu_to_le64(buffer 810 qlcnic_alloc_rx_skb(struct qlcnic_adapter *adapter, struct qlcnic_host_rds_ring *rds_ring, struct qlcnic_rx_buffer *buffer) argument 888 struct qlcnic_cmd_buffer *buffer; local 1130 struct qlcnic_rx_buffer *buffer; local 1188 struct qlcnic_rx_buffer *buffer; local 1255 struct qlcnic_rx_buffer *buffer; local 1429 struct qlcnic_rx_buffer *buffer; local 1711 struct qlcnic_rx_buffer *buffer; local 1777 struct qlcnic_rx_buffer *buffer; local [all...] |
/drivers/macintosh/ |
H A D | smu.c | 17 * buffer and a lower level internal interface 63 * This is the command buffer passed to the SMU hardware 78 u32 __iomem *db_buf; /* doorbell buffer */ 84 struct smu_cmd_buf *cmd_buf; /* command buffer virtual */ 85 u32 cmd_buf_abs; /* command buffer absolute */ 124 DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf); 126 /* Fill the SMU command buffer */ 192 * flush the entire buffer for now as we haven't read the 208 printk(KERN_WARNING "SMU: reply buffer too small," 209 "got %d bytes for a %d bytes buffer\ 1073 u8 buffer[SMU_MAX_DATA]; member in struct:smu_private [all...] |
/drivers/mtd/ |
H A D | sm_ftl.c | 219 static int sm_correct_sector(uint8_t *buffer, struct sm_oob *oob) argument 223 __nand_calculate_ecc(buffer, SM_SMALL_PAGE, ecc); 224 if (__nand_correct_data(buffer, ecc, oob->ecc1, SM_SMALL_PAGE) < 0) 227 buffer += SM_SMALL_PAGE; 229 __nand_calculate_ecc(buffer, SM_SMALL_PAGE, ecc); 230 if (__nand_correct_data(buffer, ecc, oob->ecc2, SM_SMALL_PAGE) < 0) 238 uint8_t *buffer, struct sm_oob *oob) 248 memset(buffer, 0xFF, SM_SECTOR_SIZE); 261 ops.datbuf = buffer; 293 WARN_ON(buffer 236 sm_read_sector(struct sm_ftl *ftl, int zone, int block, int boffset, uint8_t *buffer, struct sm_oob *oob) argument 318 sm_write_sector(struct sm_ftl *ftl, int zone, int block, int boffset, uint8_t *buffer, struct sm_oob *oob) argument 909 sm_cache_put(struct sm_ftl *ftl, char *buffer, int boffset) argument 917 sm_cache_get(struct sm_ftl *ftl, char *buffer, int boffset) argument [all...] |
/drivers/atm/ |
H A D | fore200e.h | 6 /* rx buffer sizes */ 34 #define QUEUE_SIZE_BS 32 /* buffer supply queue capacity */ 46 /* the cp starts putting a received PDU into one *small* buffer, 134 u32 buffer; /* transmit buffer DMA address */ member in struct:tsd 135 u32 length; /* number of bytes in buffer */ 153 u32 handle; /* host supplied receive buffer handle */ 154 u32 length; /* number of bytes in buffer */ 167 /* buffer scheme */ 176 /* buffer magnitud 577 typedef struct buffer { struct 636 struct buffer* buffer; /* array of rx buffers */ member in struct:host_bsq [all...] |
/drivers/edac/ |
H A D | edac_device_sysfs.c | 118 struct attribute *attr, char *buffer) 124 return ctl_info_attr->show(edac_dev, buffer); 131 const char *buffer, size_t count) 137 return ctl_info_attr->store(edac_dev, buffer, count); 355 struct attribute *attr, char *buffer) 361 return instance_attr->show(instance, buffer); 368 const char *buffer, size_t count) 374 return instance_attr->store(instance, buffer, count); 457 struct attribute *attr, char *buffer) 463 return block_attr->show(kobj, attr, buffer); 117 edac_dev_ctl_info_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 129 edac_dev_ctl_info_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument 354 edac_dev_instance_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 366 edac_dev_instance_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument 456 edac_dev_block_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 468 edac_dev_block_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument [all...] |
/drivers/gpu/drm/nouveau/ |
H A D | nouveau_dma.h | 104 nouveau_bo_wr32(chan->push.buffer, chan->dma.cur++, data); 142 nouveau_bo_rd32(chan->push.buffer, 0); \ 154 nv50_dma_push(chan, chan->push.buffer, chan->dma.put << 2,
|
/drivers/isdn/hardware/eicon/ |
H A D | divamnt.c | 214 void *buffer = NULL; local 229 if (!(mntfunc_init(&buffer_length, &buffer, diva_dbg_mem))) { 237 printk(KERN_INFO "%s: trace buffer = %p - %d kBytes, %s (Major: %d)\n", 238 DRIVERLNAME, buffer, (buffer_length / 1024),
|
/drivers/net/wireless/ath/ath6kl/ |
H A D | hif-ops.h | 35 static inline int hif_write_async(struct ath6kl *ar, u32 address, u8 *buffer, argument 41 address, buffer, length, request); 43 return ar->hif_ops->write_async(ar, address, buffer, length,
|
/drivers/net/wireless/rt2x00/ |
H A D | rt2x00usb.h | 106 * @buffer: Buffer where information will be read/written to by device 107 * @buffer_length: Size of &buffer 111 * the &buffer argument _must_ either be NULL or point to 112 * a buffer allocated by kmalloc. Failure to do so can lead 118 void *buffer, const u16 buffer_length, 127 * @buffer: Buffer where information will be read/written to by device 128 * @buffer_length: Size of &buffer 132 * to communicate with the device. The contents of the buffer pointer 141 const u16 offset, void *buffer, 150 * @buffer [all...] |
/drivers/usb/core/ |
H A D | usb-acpi.c | 92 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; local 104 status = acpi_evaluate_object(handle, "_UPC", NULL, &buffer); 105 upc = buffer.pointer;
|
/drivers/usb/serial/ |
H A D | ch341.c | 157 char *buffer; local 162 buffer = kmalloc(size, GFP_KERNEL); 163 if (!buffer) 166 r = ch341_control_in(dev, 0x95, 0x0706, 0, buffer, size); 174 priv->line_status = (~(*buffer)) & CH341_BITS_MODEM_STAT; 179 out: kfree(buffer); 187 char *buffer; local 191 buffer = kmalloc(size, GFP_KERNEL); 192 if (!buffer) 196 r = ch341_control_in(dev, 0x5f, 0, 0, buffer, siz [all...] |
/drivers/usb/wusbcore/ |
H A D | cbaf.c | 107 void *buffer; member in struct:cbaf 147 cbaf->buffer, cbaf->buffer_size, USB_CTRL_GET_TIMEOUT); 154 assoc_info = cbaf->buffer; 174 itr = cbaf->buffer + sizeof(*assoc_info); 175 top = cbaf->buffer + assoc_size; 253 hi = cbaf->buffer; 286 di = cbaf->buffer; 522 ccd = cbaf->buffer; 604 cbaf->buffer = kmalloc(512, GFP_KERNEL); 605 if (cbaf->buffer [all...] |
/drivers/video/console/ |
H A D | Kconfig | 30 The scrollback buffer of the standard VGA console is located in 32 If you require a larger scrollback buffer, this can be placed in 34 Placing the scrollback buffer in System RAM will slightly slow 38 RAM to allocate for this buffer. If unsure, say 'N'. 47 buffer. Each 64KB will give you approximately 16 80x25 48 screenfuls of scrollback buffer
|