Searched defs:bytes (Results 1 - 25 of 220) sorted by relevance

123456789

/drivers/scsi/lpfc/
H A Dlpfc_compat.h30 However on a big-endian host, copy 4 bytes at a time,
38 lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) argument
48 /* write input bytes, 4 bytes at a time */
49 for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) {
60 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) argument
70 /* read input bytes, 4 bytes at a time */
71 for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) {
83 lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes) argument
90 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) argument
[all...]
/drivers/net/wireless/libertas/
H A Dethtool.c38 struct ethtool_eeprom *eeprom, u8 * bytes)
59 memcpy(bytes, cmd.value, eeprom->len);
37 lbs_ethtool_get_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom, u8 * bytes) argument
/drivers/rtc/
H A Drtc-dm355evm.c27 * counter bytes atomically: the count may increment in the middle
33 u8 bytes[4]; member in union:evm_time
45 * Read LSB(0) to MSB(3) bytes. Defend against the counter
52 if (tries && time.bytes[0] == status)
54 time.bytes[0] = status;
59 if (tries && time.bytes[1] == status)
61 time.bytes[1] = status;
66 if (tries && time.bytes[2] == status)
68 time.bytes[2] = status;
73 if (tries && time.bytes[
[all...]
/drivers/usb/gadget/
H A Dconfig.c126 unsigned bytes; local
132 for (bytes = 0, n_desc = 0, tmp = src; *tmp; tmp++, n_desc++)
133 bytes += (*tmp)->bLength;
134 bytes += (n_desc + 1) * sizeof(*tmp);
136 mem = kmalloc(bytes, GFP_KERNEL);
/drivers/mfd/
H A Dtps6507x.c36 int bytes, void *dest)
51 xfer[1].len = bytes;
64 int bytes, void *src)
71 if (bytes > TPS6507X_MAX_REGISTER)
75 memcpy(&msg[1], src, bytes);
77 ret = i2c_master_send(i2c, msg, bytes + 1);
80 if (ret != bytes + 1)
35 tps6507x_i2c_read_device(struct tps6507x_dev *tps6507x, char reg, int bytes, void *dest) argument
63 tps6507x_i2c_write_device(struct tps6507x_dev *tps6507x, char reg, int bytes, void *src) argument
H A Dtps65912-i2c.c26 int bytes, void *dest)
41 xfer[1].len = bytes;
53 int bytes, void *src)
60 if (bytes > TPS6591X_MAX_REGISTER)
64 memcpy(&msg[1], src, bytes);
66 ret = i2c_master_send(i2c, msg, bytes + 1);
69 if (ret != bytes + 1)
25 tps65912_i2c_read(struct tps65912 *tps65912, u8 reg, int bytes, void *dest) argument
52 tps65912_i2c_write(struct tps65912 *tps65912, u8 reg, int bytes, void *src) argument
H A Dtps65912-spi.c26 int bytes, void *src)
53 int bytes, void *dest)
25 tps65912_spi_write(struct tps65912 *tps65912, u8 addr, int bytes, void *src) argument
52 tps65912_spi_read(struct tps65912 *tps65912, u8 addr, int bytes, void *dest) argument
H A Dwm8350-i2c.c25 int bytes, void *dest)
32 ret = i2c_master_recv(wm8350->i2c_client, dest, bytes);
35 if (ret != bytes)
41 int bytes, void *src)
47 if (bytes > ((WM8350_MAX_REGISTER << 1) + 1))
51 memcpy(&msg[1], src, bytes);
52 ret = i2c_master_send(wm8350->i2c_client, msg, bytes + 1);
55 if (ret != bytes + 1)
24 wm8350_i2c_read_device(struct wm8350 *wm8350, char reg, int bytes, void *dest) argument
40 wm8350_i2c_write_device(struct wm8350 *wm8350, char reg, int bytes, void *src) argument
H A Dtps65910.c41 int bytes, void *dest)
43 return regmap_bulk_read(tps65910->regmap, reg, dest, bytes);
47 int bytes, void *src)
49 return regmap_bulk_write(tps65910->regmap, reg, src, bytes);
40 tps65910_i2c_read(struct tps65910 *tps65910, u8 reg, int bytes, void *dest) argument
46 tps65910_i2c_write(struct tps65910 *tps65910, u8 reg, int bytes, void *src) argument
H A Dmax8925-i2c.c22 int reg, int bytes, void *dest)
26 if (bytes > 1)
27 ret = i2c_smbus_read_i2c_block_data(i2c, reg, bytes, dest);
38 int reg, int bytes, void *src)
40 unsigned char buf[bytes + 1];
44 memcpy(&buf[1], src, bytes);
46 ret = i2c_master_send(i2c, buf, bytes + 1);
21 max8925_read_device(struct i2c_client *i2c, int reg, int bytes, void *dest) argument
37 max8925_write_device(struct i2c_client *i2c, int reg, int bytes, void *src) argument
/drivers/staging/bcm/
H A DInterfaceIdleMode.c49 int bytes; local
81 bytes = rdmalt(Adapter, DEVICE_INT_OUT_EP_REG0, &uiRegRead, sizeof(uiRegRead));
82 if (bytes < 0) {
83 status = bytes;
88 bytes = rdmalt(Adapter, DEVICE_INT_OUT_EP_REG1, &uiRegRead, sizeof(uiRegRead));
89 if (bytes < 0) {
90 status = bytes;
121 bytes = rdmalt(Adapter, HPM_CONFIG_MSW, &uiRegRead, sizeof(uiRegRead));
122 if (bytes < 0) {
123 status = bytes;
270 int bytes; local
[all...]
H A DInterfaceMisc.c8 int bytes; local
33 bytes = usb_control_msg(psIntfAdapter->udev,
44 if (-ENODEV == bytes) {
49 } while ((bytes < 0) && (usRetries < MAX_RDM_WRM_RETIRES));
51 if (bytes < 0)
52 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, RDM, DBG_LVL_ALL, "RDM failed status :%d, retires :%d", bytes, usRetries);
54 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, RDM, DBG_LVL_ALL, "RDM sent %d", bytes);
57 return bytes;
/drivers/staging/iio/adc/
H A Dad7887_ring.c25 * The complex nature of the setting of the nuber of bytes per datum is due
91 unsigned int bytes = bitmap_weight(indio_dev->active_scan_mask, local
105 memcpy(buf, st->data, bytes);
/drivers/lguest/
H A Dcore.c32 * Switcher is a few hundred bytes of assembler code which actually changes the
182 void __lgread(struct lg_cpu *cpu, void *b, unsigned long addr, unsigned bytes) argument
184 if (!lguest_address_ok(cpu->lg, addr, bytes)
185 || copy_from_user(b, cpu->lg->mem_base + addr, bytes) != 0) {
187 memset(b, 0, bytes);
188 kill_guest(cpu, "bad read address %#lx len %u", addr, bytes);
194 unsigned bytes)
196 if (!lguest_address_ok(cpu->lg, addr, bytes)
197 || copy_to_user(cpu->lg->mem_base + addr, b, bytes) != 0)
198 kill_guest(cpu, "bad write address %#lx len %u", addr, bytes);
193 __lgwrite(struct lg_cpu *cpu, unsigned long addr, const void *b, unsigned bytes) argument
[all...]
/drivers/media/video/tm6000/
H A Dtm6000-i2c.c210 /* write bytes */
233 unsigned char bytes[17]; local
238 bytes[16] = '\0';
258 bytes[i%16] = dev->eedata[i];
260 bytes[i%16] = '.';
265 bytes[16] = '\0';
266 printk(KERN_CONT " %s\n", bytes);
270 bytes[i%16] = '\0';
273 printk(KERN_CONT " %s\n", bytes);
/drivers/misc/
H A Duid_stat.c59 unsigned int bytes; local
65 bytes = (unsigned int) (atomic_read(&uid_entry->tcp_snd) + INT_MIN);
66 p += sprintf(p, "%u\n", bytes);
77 unsigned int bytes; local
83 bytes = (unsigned int) (atomic_read(&uid_entry->tcp_rcv) + INT_MIN);
84 p += sprintf(p, "%u\n", bytes);
/drivers/mtd/ubi/
H A Dupd.c82 * @bytes: new data size in bytes
89 long long bytes)
103 vol->used_bytes = bytes;
104 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size,
123 * @bytes: update bytes
125 * This function starts volume update operation. If @bytes is zero, the volume
130 long long bytes)
134 dbg_gen("start update of volume %d, %llu bytes", vo
88 clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, long long bytes) argument
129 ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, long long bytes) argument
[all...]
/drivers/net/
H A Dloopback.c64 u64 bytes; member in struct:pcpu_lstats
88 lb_stats->bytes += len;
99 u64 bytes = 0; local
111 tbytes = lb_stats->bytes;
114 bytes += tbytes;
119 stats->rx_bytes = bytes;
120 stats->tx_bytes = bytes;
/drivers/staging/cxt1e1/
H A Dsbe_promformat.h117 /***** this union allows us to access the seeprom as an array of bytes ***/
125 char bytes[128]; member in union:__anon5174
/drivers/staging/speakup/
H A Ddevsynth.c21 size_t bytes; local
28 bytes = min(count, sizeof(buf));
29 if (copy_from_user(buf, ptr, bytes))
31 count -= bytes;
32 ptr += bytes;
34 synth_write(buf, bytes);
/drivers/video/
H A Dcfbfillrect.c282 int bits = BITS_PER_LONG, bytes = bits >> 3; local
298 dst = (unsigned long __iomem *)((unsigned long)p->screen_base & ~(bytes-1));
299 dst_idx = ((unsigned long)p->screen_base & (bytes - 1))*8;
H A Dsyscopyarea.c321 int bits = BITS_PER_LONG, bytes = bits >> 3; local
338 ~(bytes-1));
339 dst_idx = src_idx = 8*((unsigned long)p->screen_base & (bytes-1));
352 dst_idx &= (bytes - 1);
354 src_idx &= (bytes - 1);
361 dst_idx &= (bytes - 1);
363 src_idx &= (bytes - 1);
H A Dsysfillrect.c247 int bits = BITS_PER_LONG, bytes = bits >> 3; local
263 dst = (unsigned long *)((unsigned long)p->screen_base & ~(bytes-1));
264 dst_idx = ((unsigned long)p->screen_base & (bytes - 1))*8;
/drivers/media/video/hdpvr/
H A Dhdpvr-core.c79 static void challenge(u8 *bytes) argument
87 bytes[(idx >> 3) + 3] = bytes[(idx >> 2) & 0x3];
91 bytes[2] += bytes[3] * 4 + bytes[4] + bytes[5];
92 bytes[4] += bytes[(idx & 0x1) * 2] * 9 + 9;
95 bytes[
[all...]
/drivers/misc/sgi-gru/
H A Dgrukdump.c81 int i, ret, bytes; local
83 bytes = GRU_NUM_TFM * GRU_CACHE_LINE_BYTES;
84 if (bytes > ubufend - ubuf)
102 int i, ret, bytes; local
104 bytes = GRU_NUM_TGH * GRU_CACHE_LINE_BYTES;
105 if (bytes > ubufend - ubuf)
127 int try, cch_locked, cbrcnt = 0, dsrcnt = 0, bytes = 0, ret = 0; local
146 bytes = sizeof(hdr) + GRU_CACHE_LINE_BYTES;
160 bytes += (3 * cbrcnt + dsrcnt) * GRU_CACHE_LINE_BYTES;
161 if (bytes > ubufen
[all...]

Completed in 1079 milliseconds

123456789