/drivers/thunderbolt/ |
D | property.c | 39 size_t block_len, unsigned int dir_offset, size_t dir_len, 53 size_t block_len) in tb_property_entry_valid() argument 59 if (entry->length > block_len) in tb_property_entry_valid() 61 if (entry->value + entry->length > block_len) in tb_property_entry_valid() 95 static struct tb_property *tb_property_parse(const u32 *block, size_t block_len, in tb_property_parse() argument 102 if (!tb_property_entry_valid(entry, block_len)) in tb_property_parse() 116 dir = __tb_property_parse_dir(block, block_len, entry->value, in tb_property_parse() 162 size_t block_len, unsigned int dir_offset, size_t dir_len, bool is_root) in __tb_property_parse_dir() argument 195 property = tb_property_parse(block, block_len, &entries[i]); in __tb_property_parse_dir() 221 size_t block_len) in tb_property_parse_dir() argument [all …]
|
D | xdomain.c | 529 int ret, block_len; in update_property_block() local 549 block_len = ret; in update_property_block() 550 block = kcalloc(block_len, sizeof(*block), GFP_KERNEL); in update_property_block() 556 ret = tb_property_format_dir(dir, block, block_len); in update_property_block() 569 xd->local_property_block_len = block_len; in update_property_block()
|
D | test.c | 2556 ssize_t block_len; in tb_test_property_format() local 2566 block_len = ret; in tb_test_property_format() 2568 block = kunit_kzalloc(test, block_len * sizeof(u32), GFP_KERNEL); in tb_test_property_format() 2571 ret = tb_property_format_dir(dir, block, block_len); in tb_test_property_format()
|
/drivers/media/i2c/ |
D | saa7185.c | 78 int block_len; in saa7185_write_block() local 81 block_len = 0; in saa7185_write_block() 82 block_data[block_len++] = reg = data[0]; in saa7185_write_block() 84 block_data[block_len++] = in saa7185_write_block() 88 } while (len >= 2 && data[0] == reg && block_len < 32); in saa7185_write_block() 89 ret = i2c_master_send(client, block_data, block_len); in saa7185_write_block()
|
D | adv7170.c | 89 int block_len; in adv7170_write_block() local 92 block_len = 0; in adv7170_write_block() 93 block_data[block_len++] = reg = data[0]; in adv7170_write_block() 95 block_data[block_len++] = in adv7170_write_block() 99 } while (len >= 2 && data[0] == reg && block_len < 32); in adv7170_write_block() 100 ret = i2c_master_send(client, block_data, block_len); in adv7170_write_block()
|
D | adv7175.c | 83 int block_len; in adv7175_write_block() local 86 block_len = 0; in adv7175_write_block() 87 block_data[block_len++] = reg = data[0]; in adv7175_write_block() 89 block_data[block_len++] = data[1]; in adv7175_write_block() 93 } while (len >= 2 && data[0] == reg && block_len < 32); in adv7175_write_block() 94 ret = i2c_master_send(client, block_data, block_len); in adv7175_write_block()
|
D | bt819.c | 102 int block_len; in bt819_write_block() local 105 block_len = 0; in bt819_write_block() 106 block_data[block_len++] = reg = data[0]; in bt819_write_block() 108 block_data[block_len++] = in bt819_write_block() 112 } while (len >= 2 && data[0] == reg && block_len < 32); in bt819_write_block() 113 ret = i2c_master_send(client, block_data, block_len); in bt819_write_block()
|
/drivers/net/wireless/intersil/hostap/ |
D | hostap_download.c | 552 int block_len; in prism2_download_block() local 554 block_len = rest_len < 4096 ? rest_len : 4096; in prism2_download_block() 559 HFA384X_OUTW(block_len, HFA384X_PARAM2_OFF); in prism2_download_block() 570 if (hfa384x_to_aux(dev, bufaddr, block_len, data)) { in prism2_download_block() 572 "(len=%d) failed\n", dev->name, addr, block_len); in prism2_download_block() 586 return block_len; in prism2_download_block() 652 int block_len; in prism2_download_nonvolatile() local 654 block_len = prism2_download_block( in prism2_download_nonvolatile() 659 if (block_len < 0) { in prism2_download_nonvolatile() 664 rest_len -= block_len; in prism2_download_nonvolatile() [all …]
|
/drivers/input/rmi4/ |
D | rmi_smbus.c | 151 int block_len = min_t(int, len, SMB_MAX_COUNT); in rmi_smb_write_block() local 153 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len, in rmi_smb_write_block() 159 databuff, block_len); in rmi_smb_write_block() 203 int block_len = min_t(int, cur_len, SMB_MAX_COUNT); in rmi_smb_read_block() local 205 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len, in rmi_smb_read_block() 211 databuff, block_len); in rmi_smb_read_block()
|
/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-i2c.c | 434 u16 block_len; in mxl111sf_i2c_hw_xfer_msg() local 508 block_len = (msg->len / 8); in mxl111sf_i2c_hw_xfer_msg() 512 block_len, left_over_len); in mxl111sf_i2c_hw_xfer_msg() 514 for (index = 0; index < block_len; index++) { in mxl111sf_i2c_hw_xfer_msg() 615 block_len = ((msg->len) / 8); in mxl111sf_i2c_hw_xfer_msg() 620 block_len, left_over_len); in mxl111sf_i2c_hw_xfer_msg() 626 for (index = 0; index < block_len; index++) { in mxl111sf_i2c_hw_xfer_msg() 726 msg->buf[(block_len*8)+i] = in mxl111sf_i2c_hw_xfer_msg()
|
/drivers/net/ethernet/sfc/ |
D | tx.c | 140 int block_len = len & ~(sizeof(copy_buf->buf) - 1); in efx_memcpy_toio_aligned() local 142 __iowrite64_copy(*piobuf, data, block_len >> 3); in efx_memcpy_toio_aligned() 143 *piobuf += block_len; in efx_memcpy_toio_aligned() 144 len -= block_len; in efx_memcpy_toio_aligned() 147 data += block_len; in efx_memcpy_toio_aligned()
|
/drivers/net/wireless/intersil/p54/ |
D | p54usb.c | 744 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/falcon/ |
D | falcon.c | 619 size_t block_len, pos = 0; in falcon_spi_read() local 624 block_len = min(len - pos, FALCON_SPI_MAX_LEN); in falcon_spi_read() 628 buffer + pos, block_len); in falcon_spi_read() 631 pos += block_len; in falcon_spi_read() 695 size_t block_len, pos = 0; in falcon_spi_write() local 704 block_len = min(len - pos, in falcon_spi_write() 708 buffer + pos, NULL, block_len); in falcon_spi_write() 718 NULL, verify_buffer, block_len); in falcon_spi_write() 719 if (memcmp(verify_buffer, buffer + pos, block_len)) { in falcon_spi_write() 724 pos += block_len; in falcon_spi_write() [all …]
|
/drivers/usb/gadget/function/ |
D | f_ncm.c | 1184 unsigned block_len; in ncm_unwrap_ntb() local 1214 block_len = get_ncm(&tmp, opts->block_length); in ncm_unwrap_ntb() 1216 if (block_len > ntb_max) { in ncm_unwrap_ntb() 1231 (ndp_index > (block_len - in ncm_unwrap_ntb() 1279 (index > block_len - opts->dpe_size)) { in ncm_unwrap_ntb() 1316 if (index2 > block_len - opts->dpe_size) { in ncm_unwrap_ntb() 1346 to_process -= block_len; in ncm_unwrap_ntb() 1348 ntb_ptr = (unsigned char *)(ntb_ptr + block_len); in ncm_unwrap_ntb()
|
/drivers/usb/cdns3/ |
D | cdnsp-ring.c | 1859 unsigned int enqd_len, block_len, trb_buff_len, full_len; in cdnsp_queue_bulk_tx() local 1884 block_len = sg_dma_len(sg); in cdnsp_queue_bulk_tx() 1889 block_len = full_len; in cdnsp_queue_bulk_tx() 1921 trb_buff_len = min(trb_buff_len, block_len); in cdnsp_queue_bulk_tx() 1985 while (sg && sent_len >= block_len) { in cdnsp_queue_bulk_tx() 1988 sent_len -= block_len; in cdnsp_queue_bulk_tx() 1991 block_len = sg_dma_len(sg); in cdnsp_queue_bulk_tx() 1996 block_len -= sent_len; in cdnsp_queue_bulk_tx()
|
/drivers/s390/net/ |
D | ctcm_fsms.c | 362 __u16 block_len = *((__u16 *)skb->data); in chx_rx() local 390 check_len = block_len + 2; in chx_rx() 393 check_len = block_len; in chx_rx() 396 if ((len < block_len) || (len > check_len)) { in chx_rx() 399 CTCM_FUNTAIL, dev->name, block_len, len); in chx_rx() 408 if (block_len > 2) { in chx_rx() 409 *((__u16 *)skb->data) = block_len - 2; in chx_rx() 1403 __u32 block_len = len; in ctcmpc_chx_rx() local 1421 skb_put_data(new_skb, skb->data, block_len); in ctcmpc_chx_rx()
|
D | ctcm_main.c | 470 __u16 block_len; in ctcm_transmit_skb() local 510 block_len = skb->len + 2; in ctcm_transmit_skb() 511 *((__u16 *)skb_push(skb, 2)) = block_len; in ctcm_transmit_skb() 534 ch->ccw[4].count = block_len; in ctcm_transmit_skb()
|
/drivers/char/ |
D | random.c | 595 size_t block_len = min_t(size_t, left, sizeof(unsigned long)); in get_random_bytes_arch() local 600 memcpy(p, &v, block_len); in get_random_bytes_arch() 601 p += block_len; in get_random_bytes_arch() 602 left -= block_len; in get_random_bytes_arch()
|
/drivers/dma/dw-axi-dmac/ |
D | dw-axi-dmac-platform.c | 648 size_t axi_block_ts, block_len; in calculate_block_len() local 659 block_len = axi_block_ts << mem_width; in calculate_block_len() 663 block_len = axi_block_ts << reg_width; in calculate_block_len() 666 block_len = 0; in calculate_block_len() 669 return block_len; in calculate_block_len()
|
/drivers/usb/host/ |
D | xhci-ring.c | 3600 unsigned int enqd_len, block_len, trb_buff_len, full_len; in xhci_queue_bulk_tx() local 3615 block_len = sg_dma_len(sg); in xhci_queue_bulk_tx() 3620 block_len = full_len; in xhci_queue_bulk_tx() 3652 trb_buff_len = min_t(unsigned int, trb_buff_len, block_len); in xhci_queue_bulk_tx() 3715 while (sg && sent_len >= block_len) { in xhci_queue_bulk_tx() 3718 sent_len -= block_len; in xhci_queue_bulk_tx() 3721 block_len = sg_dma_len(sg); in xhci_queue_bulk_tx() 3726 block_len -= sent_len; in xhci_queue_bulk_tx()
|
/drivers/media/platform/ti-vpe/ |
D | vpdma_priv.h | 442 u32 block_len; /* in words */ member
|
D | vpdma.c | 618 pr_debug("word1: num_data_wrds = %d\n", cfd->block_len); in dump_cfd() 645 cfd->block_len = len; in vpdma_add_cfd_block()
|