Home
last modified time | relevance | path

Searched refs:block_len (Results 1 – 12 of 12) sorted by relevance

/drivers/media/i2c/
Dsaa7185.c92 int block_len; in saa7185_write_block() local
95 block_len = 0; in saa7185_write_block()
96 block_data[block_len++] = reg = data[0]; in saa7185_write_block()
98 block_data[block_len++] = in saa7185_write_block()
102 } while (len >= 2 && data[0] == reg && block_len < 32); in saa7185_write_block()
103 ret = i2c_master_send(client, block_data, block_len); in saa7185_write_block()
Dadv7170.c103 int block_len; in adv7170_write_block() local
106 block_len = 0; in adv7170_write_block()
107 block_data[block_len++] = reg = data[0]; in adv7170_write_block()
109 block_data[block_len++] = in adv7170_write_block()
113 } while (len >= 2 && data[0] == reg && block_len < 32); in adv7170_write_block()
114 ret = i2c_master_send(client, block_data, block_len); in adv7170_write_block()
Dadv7175.c97 int block_len; in adv7175_write_block() local
100 block_len = 0; in adv7175_write_block()
101 block_data[block_len++] = reg = data[0]; in adv7175_write_block()
103 block_data[block_len++] = data[1]; in adv7175_write_block()
107 } while (len >= 2 && data[0] == reg && block_len < 32); in adv7175_write_block()
108 ret = i2c_master_send(client, block_data, block_len); in adv7175_write_block()
Dbt819.c117 int block_len; in bt819_write_block() local
120 block_len = 0; in bt819_write_block()
121 block_data[block_len++] = reg = data[0]; in bt819_write_block()
123 block_data[block_len++] = in bt819_write_block()
127 } while (len >= 2 && data[0] == reg && block_len < 32); in bt819_write_block()
128 ret = i2c_master_send(client, block_data, block_len); in bt819_write_block()
/drivers/net/wireless/hostap/
Dhostap_download.c553 int block_len; in prism2_download_block() local
555 block_len = rest_len < 4096 ? rest_len : 4096; in prism2_download_block()
560 HFA384X_OUTW(block_len, HFA384X_PARAM2_OFF); in prism2_download_block()
571 if (hfa384x_to_aux(dev, bufaddr, block_len, data)) { in prism2_download_block()
573 "(len=%d) failed\n", dev->name, addr, block_len); in prism2_download_block()
587 return block_len; in prism2_download_block()
653 int block_len; in prism2_download_nonvolatile() local
655 block_len = prism2_download_block( in prism2_download_nonvolatile()
660 if (block_len < 0) { in prism2_download_nonvolatile()
665 rest_len -= block_len; in prism2_download_nonvolatile()
[all …]
/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-i2c.c447 u16 block_len; in mxl111sf_i2c_hw_xfer_msg() local
521 block_len = (msg->len / 8); in mxl111sf_i2c_hw_xfer_msg()
526 block_len, left_over_len); in mxl111sf_i2c_hw_xfer_msg()
528 for (index = 0; index < block_len; index++) { in mxl111sf_i2c_hw_xfer_msg()
629 block_len = ((msg->len) / 8); in mxl111sf_i2c_hw_xfer_msg()
634 block_len, left_over_len); in mxl111sf_i2c_hw_xfer_msg()
640 for (index = 0; index < block_len; index++) { in mxl111sf_i2c_hw_xfer_msg()
741 msg->buf[(block_len*8)+i] = in mxl111sf_i2c_hw_xfer_msg()
/drivers/net/wireless/p54/
Dp54usb.c744 unsigned int block_len = min(remains, (unsigned int)512); in p54u_upload_firmware_net2280() local
745 memcpy(buf, data, block_len); in p54u_upload_firmware_net2280()
747 err = p54u_bulk_msg(priv, P54U_PIPE_DATA, buf, block_len); in p54u_upload_firmware_net2280()
765 cpu_to_le32(block_len)); in p54u_upload_firmware_net2280()
773 cpu_to_le32(block_len >> 2)); in p54u_upload_firmware_net2280()
791 remains -= block_len; in p54u_upload_firmware_net2280()
792 data += block_len; in p54u_upload_firmware_net2280()
793 offset += block_len; in p54u_upload_firmware_net2280()
/drivers/net/ethernet/sfc/
Dfalcon.c343 size_t block_len, pos = 0; in falcon_spi_read() local
348 block_len = min(len - pos, FALCON_SPI_MAX_LEN); in falcon_spi_read()
352 buffer + pos, block_len); in falcon_spi_read()
355 pos += block_len; in falcon_spi_read()
375 size_t block_len, pos = 0; in falcon_spi_write() local
384 block_len = min(len - pos, in falcon_spi_write()
388 buffer + pos, NULL, block_len); in falcon_spi_write()
398 NULL, verify_buffer, block_len); in falcon_spi_write()
399 if (memcmp(verify_buffer, buffer + pos, block_len)) { in falcon_spi_write()
404 pos += block_len; in falcon_spi_write()
Dmtd.c141 unsigned pos, block_len; in efx_spi_erase() local
166 for (pos = 0; pos < len; pos += block_len) { in efx_spi_erase()
167 block_len = min(len - pos, sizeof(buffer)); in efx_spi_erase()
168 rc = falcon_spi_read(efx, spi, start + pos, block_len, in efx_spi_erase()
172 if (memcmp(empty, buffer, block_len)) in efx_spi_erase()
/drivers/media/usb/usbvision/
Dusbvision-core.c604 int rest_pixel, idx, pos, extra_pos, block_len, block_type_pos, block_type_len; in usbvision_decompress() local
611 block_len = 0; in usbvision_decompress()
620 if (block_len == 0) { in usbvision_decompress()
645 block_len = 24; in usbvision_decompress()
647 block_len = rest_pixel; in usbvision_decompress()
648 rest_pixel -= block_len; in usbvision_decompress()
649 extra_pos = pos + (block_len / 4); in usbvision_decompress()
654 if (block_len > 0) { in usbvision_decompress()
655 if ((block_len % 4) == 0) { in usbvision_decompress()
675 block_len -= 1; in usbvision_decompress()
/drivers/s390/net/
Dctcm_fsms.c364 __u16 block_len = *((__u16 *)skb->data); in chx_rx() local
392 check_len = block_len + 2; in chx_rx()
395 check_len = block_len; in chx_rx()
398 if ((len < block_len) || (len > check_len)) { in chx_rx()
401 CTCM_FUNTAIL, dev->name, block_len, len); in chx_rx()
410 if (block_len > 2) { in chx_rx()
411 *((__u16 *)skb->data) = block_len - 2; in chx_rx()
1420 __u32 block_len = len; in ctcmpc_chx_rx() local
1438 memcpy(skb_put(new_skb, block_len), in ctcmpc_chx_rx()
1439 skb->data, block_len); in ctcmpc_chx_rx()
Dctcm_main.c469 __u16 block_len; in ctcm_transmit_skb() local
509 block_len = skb->len + 2; in ctcm_transmit_skb()
510 *((__u16 *)skb_push(skb, 2)) = block_len; in ctcm_transmit_skb()
533 ch->ccw[4].count = block_len; in ctcm_transmit_skb()