Home
last modified time | relevance | path

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

12

/linux/fs/btrfs/tests/
A Dextent-map-tests.c71 em->block_len = SZ_16K; in test_case_1()
92 em->block_len = SZ_4K; in test_case_1()
113 em->block_len = len; in test_case_1()
159 em->block_len = (u64)-1; in test_case_2()
180 em->block_len = SZ_4K; in test_case_2()
201 em->block_len = (u64)-1; in test_case_2()
215 em->block_len); in test_case_2()
242 em->block_len = SZ_4K; in __test_case_3()
263 em->block_len = SZ_16K; in __test_case_3()
341 em->block_len = SZ_8K; in __test_case_4()
[all …]
/linux/drivers/thunderbolt/
A Dproperty.c39 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()
102 if (!tb_property_entry_valid(entry, block_len)) in tb_property_parse()
221 size_t block_len) in tb_property_parse_dir() argument
228 if (rootdir->length > block_len) in tb_property_parse_dir()
349 u32 *block, unsigned int start_offset, size_t block_len) in __tb_property_format_dir() argument
408 if (dir_end > block_len) in __tb_property_format_dir()
437 block_len); in __tb_property_format_dir()
[all …]
A Dxdomain.c529 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()
/linux/drivers/media/i2c/
A Dsaa7185.c78 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()
A Dadv7170.c89 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()
A Dadv7175.c83 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()
A Dbt819.c102 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()
/linux/fs/cramfs/
A Dinode.c831 u32 block_ptr, block_start, block_len; in cramfs_readpage() local
849 block_len = PAGE_SIZE; in cramfs_readpage()
852 block_len = in cramfs_readpage()
855 block_len = *(u16 *) in cramfs_readpage()
880 block_len = *(u16 *) in cramfs_readpage()
882 block_start += 2 + block_len; in cramfs_readpage()
886 block_len = block_ptr - block_start; in cramfs_readpage()
889 if (block_len == 0) in cramfs_readpage()
899 block_len); in cramfs_readpage()
900 bytes_filled = block_len; in cramfs_readpage()
[all …]
/linux/drivers/net/wireless/intersil/hostap/
A Dhostap_download.c552 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 …]
/linux/fs/btrfs/
A Dextent_map.h42 u64 block_len; member
72 if (em->block_start + em->block_len < em->block_start) in extent_map_block_end()
74 return em->block_start + em->block_len; in extent_map_block_end()
A Dextent_map.c259 em->block_len += merge->block_len; in try_merge_map()
276 em->block_len += merge->block_len; in try_merge_map()
574 em->block_len = em->len; in merge_extent_mapping()
A Dfile.c448 ASSERT(block_len <= U32_MAX); in btrfs_drop_pages()
457 block_len); in btrfs_drop_pages()
600 split->block_len = em->block_len; in btrfs_drop_extent_cache()
602 split->block_len = split->len; in btrfs_drop_extent_cache()
603 split->orig_block_len = max(split->block_len, in btrfs_drop_extent_cache()
608 split->block_len = 0; in btrfs_drop_extent_cache()
632 split->orig_block_len = max(em->block_len, in btrfs_drop_extent_cache()
637 split->block_len = em->block_len; in btrfs_drop_extent_cache()
641 split->block_len = split->len; in btrfs_drop_extent_cache()
649 split->block_len = 0; in btrfs_drop_extent_cache()
[all …]
A Dinode.c5269 hole_em->block_len = 0; in btrfs_cont_expand()
7086 em->block_len = (u64)-1; in btrfs_get_extent()
7362 em->block_len = hole_len; in btrfs_get_extent_fiemap()
7411 block_len, type); in btrfs_create_dio_extent()
7734 em->block_len = block_len; in create_io_em()
10587 u64 block_len; member
10826 if (bsi.block_len && in btrfs_swap_activate()
10828 bsi.block_len += len; in btrfs_swap_activate()
10830 if (bsi.block_len) { in btrfs_swap_activate()
10837 bsi.block_len = len; in btrfs_swap_activate()
[all …]
/linux/drivers/input/rmi4/
A Drmi_smbus.c151 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()
/linux/sound/soc/codecs/
A Dwm8958-dsp2.c49 size_t block_len, len; in wm8958_dsp2_fw() local
105 block_len = get_unaligned_be32(data + 4); in wm8958_dsp2_fw()
106 if (block_len + 8 > len) { in wm8958_dsp2_fw()
108 block_len); in wm8958_dsp2_fw()
111 if (block_len == 0) { in wm8958_dsp2_fw()
126 memcpy(str, data + 8, block_len); in wm8958_dsp2_fw()
141 block_len, (data32 >> 24) & 0xff, in wm8958_dsp2_fw()
151 block_len / 2, in wm8958_dsp2_fw()
162 block_len += block_len % 4; in wm8958_dsp2_fw()
164 data += block_len + 8; in wm8958_dsp2_fw()
[all …]
/linux/drivers/media/usb/dvb-usb-v2/
A Dmxl111sf-i2c.c434 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()
/linux/drivers/net/ethernet/sfc/
A Dtx.c140 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()
/linux/drivers/net/wireless/intersil/p54/
A 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()
/linux/drivers/net/ethernet/sfc/falcon/
A Dfalcon.c619 size_t block_len, pos = 0; in falcon_spi_read() local
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()
724 pos += block_len; in falcon_spi_write()
808 unsigned pos, block_len; in falcon_spi_erase() local
833 for (pos = 0; pos < len; pos += block_len) { in falcon_spi_erase()
[all …]
/linux/lib/
A Dts_fsm.c139 unsigned block_len = 0, strict, consumed = state->offset; in fsm_find() local
145 block_len = conf->get_next_block(consumed, &data, conf, state); }) in fsm_find()
155 #define end_of_data() unlikely(block_idx >= block_len && !GET_NEXT_BLOCK()) in fsm_find()
/linux/drivers/usb/gadget/function/
A Df_ncm.c1181 unsigned block_len; in ncm_unwrap_ntb() local
1207 block_len = get_ncm(&tmp, opts->block_length); in ncm_unwrap_ntb()
1209 if (block_len > ntb_max) { in ncm_unwrap_ntb()
1224 (ndp_index > (block_len - in ncm_unwrap_ntb()
1272 (index > block_len - opts->dpe_size)) { in ncm_unwrap_ntb()
1309 if (index2 > block_len - opts->dpe_size) { in ncm_unwrap_ntb()
/linux/include/linux/
A Dthunderbolt.h146 size_t block_len);
148 size_t block_len);
/linux/drivers/usb/cdns3/
A Dcdnsp-ring.c1851 unsigned int enqd_len, block_len, trb_buff_len, full_len; in cdnsp_queue_bulk_tx() local
1876 block_len = sg_dma_len(sg); in cdnsp_queue_bulk_tx()
1881 block_len = full_len; in cdnsp_queue_bulk_tx()
1913 trb_buff_len = min(trb_buff_len, block_len); in cdnsp_queue_bulk_tx()
1973 while (sg && sent_len >= block_len) { in cdnsp_queue_bulk_tx()
1976 sent_len -= block_len; in cdnsp_queue_bulk_tx()
1979 block_len = sg_dma_len(sg); in cdnsp_queue_bulk_tx()
1984 block_len -= sent_len; in cdnsp_queue_bulk_tx()
/linux/drivers/s390/net/
A Dctcm_fsms.c362 __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()
/linux/drivers/dma/dw-axi-dmac/
A Ddw-axi-dmac-platform.c688 size_t axi_block_ts, block_len; in calculate_block_len() local
699 block_len = axi_block_ts << mem_width; in calculate_block_len()
703 block_len = axi_block_ts << reg_width; in calculate_block_len()
706 block_len = 0; in calculate_block_len()
709 return block_len; in calculate_block_len()

Completed in 111 milliseconds

12