| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_dp_mst_helper_test.c | 305 .u.dpcd_read.num_bytes = U8_MAX, 326 .u.dpcd_write.num_bytes = ARRAY_SIZE(data), 351 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7f, 353 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7e, 355 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7d, 378 .u.i2c_write.num_bytes = ARRAY_SIZE(data), 457 txin->num_bytes != txout->num_bytes || in sideband_msg_req_equal() 463 txin->num_bytes) != 0) in sideband_msg_req_equal() 474 IN.num_bytes != OUT.num_bytes || in sideband_msg_req_equal() 478 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal() [all …]
|
| /linux/drivers/comedi/ |
| H A D | comedi_buf.c | 325 unsigned int num_bytes) in comedi_buf_munge() argument 333 async->munge_count += num_bytes; in comedi_buf_munge() 334 return num_bytes; in comedi_buf_munge() 338 num_bytes -= num_bytes % num_sample_bytes; in comedi_buf_munge() 339 while (count < num_bytes) { in comedi_buf_munge() 347 min(num_bytes - count, PAGE_SIZE - offset); in comedi_buf_munge() 426 unsigned int num_bytes; in _comedi_buf_read_n_available() local 431 num_bytes = async->munge_count - async->buf_read_count; in _comedi_buf_read_n_available() 439 return num_bytes; in _comedi_buf_read_n_available() 455 unsigned int num_bytes; in comedi_buf_read_n_available() local [all …]
|
| H A D | drivers.c | 468 unsigned int num_bytes; in comedi_bytes_per_scan() local 471 num_bytes = _comedi_bytes_per_scan(s); in comedi_bytes_per_scan() 475 num_bytes = comedi_samples_to_bytes(s, 1); in comedi_bytes_per_scan() 477 return num_bytes; in comedi_bytes_per_scan() 582 unsigned int num_bytes) in _comedi_inc_scan_progress() argument 590 async->cur_chan += comedi_bytes_to_samples(s, num_bytes); in _comedi_inc_scan_progress() 594 async->scan_progress += num_bytes; in _comedi_inc_scan_progress() 619 unsigned int num_bytes) in comedi_inc_scan_progress() argument 622 _comedi_inc_scan_progress(s, num_bytes); in comedi_inc_scan_progress()
|
| /linux/fs/btrfs/ |
| H A D | qgroup.c | 83 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_add() argument 86 trace_btrfs_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add() 87 qgroup->rsv.values[type] += num_bytes; in qgroup_rsv_add() 91 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_release() argument 94 trace_btrfs_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release() 95 if (qgroup->rsv.values[type] >= num_bytes) { in qgroup_rsv_release() 96 qgroup->rsv.values[type] -= num_bytes; in qgroup_rsv_release() 103 qgroup->rsv.values[type], num_bytes); in qgroup_rsv_release() 1494 u64 num_bytes = src->excl; in __qgroup_excl_accounting() local 1506 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting() [all …]
|
| H A D | delayed-ref.h | 75 u64 num_bytes; member 127 u64 num_bytes; member 280 u64 num_bytes; member 312 u64 num_bytes; in btrfs_calc_delayed_ref_bytes() local 314 num_bytes = btrfs_calc_insert_metadata_size(fs_info, num_delayed_refs); in btrfs_calc_delayed_ref_bytes() 325 num_bytes *= 2; in btrfs_calc_delayed_ref_bytes() 327 return num_bytes; in btrfs_calc_delayed_ref_bytes() 384 u64 bytenr, u64 num_bytes, u8 level,
|
| H A D | extent-tree.c | 800 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument 829 key.offset = num_bytes; in lookup_inline_extent_backref() 864 key.offset == num_bytes) in lookup_inline_extent_backref() 870 key.offset = num_bytes; in lookup_inline_extent_backref() 883 bytenr, num_bytes, parent, root_objectid, owner, in lookup_inline_extent_backref() 1095 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument 1101 num_bytes, parent, root_objectid, in lookup_extent_backref() 1240 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument 1249 num_bytes, parent, root_objectid, in insert_inline_extent_backref() 1260 bytenr, num_bytes, root_objectid, path->slots[0]); in insert_inline_extent_backref() [all …]
|
| H A D | ref-verify.c | 341 u64 num_bytes) in add_shared_data_ref() argument 349 be = add_block_entry(fs_info, bytenr, num_bytes, 0); in add_shared_data_ref() 371 u64 bytenr, u64 num_bytes) in add_extent_data_ref() argument 384 be = add_block_entry(fs_info, bytenr, num_bytes, ref_root); in add_extent_data_ref() 491 struct btrfs_path *path, u64 *bytenr, u64 *num_bytes, in process_leaf() argument 507 *num_bytes = key.offset; in process_leaf() 526 *num_bytes); in process_leaf() 533 *bytenr, *num_bytes); in process_leaf() 546 int level, u64 *bytenr, u64 *num_bytes, in walk_down_tree() argument 563 ret = process_leaf(root, path, bytenr, num_bytes, in walk_down_tree() [all …]
|
| H A D | block-group.c | 452 u64 num_bytes) in btrfs_wait_block_group_cache_progress() argument 471 (cache->free_space_ctl->free_space >= num_bytes))); in btrfs_wait_block_group_cache_progress() 1412 u64 num_bytes; in inc_block_group_ro() local 1429 num_bytes = btrfs_block_group_available_space(cache); in inc_block_group_ro() 1444 if (sinfo_used + num_bytes <= sinfo->total_bytes) in inc_block_group_ro() 1453 if (btrfs_can_overcommit(sinfo, num_bytes, BTRFS_RESERVE_NO_FLUSH)) in inc_block_group_ro() 1458 sinfo->bytes_readonly += num_bytes; in inc_block_group_ro() 2806 u64 start, u64 num_bytes) in insert_dev_extent() argument 2835 btrfs_set_dev_extent_length(leaf, extent, num_bytes); in insert_dev_extent() 3840 u64 bytenr, u64 num_bytes, bool alloc) in btrfs_update_block_group() argument [all …]
|
| /linux/arch/sparc/prom/ |
| H A D | memory.c | 25 sp_banks[index].num_bytes = p->num_bytes; in prom_meminit_v0() 44 sp_banks[i].num_bytes = reg[i].reg_size; in prom_meminit_v2() 84 sp_banks[num_ents].num_bytes = 0; in prom_meminit() 87 sp_banks[i].num_bytes &= PAGE_MASK; in prom_meminit()
|
| H A D | misc_32.c | 97 prom_get_idprom(char *idbuf, int num_bytes) in prom_get_idprom() argument 102 if((len>num_bytes) || (len==-1)) return 0xff; in prom_get_idprom() 103 if(!prom_getproperty(prom_root_node, "idprom", idbuf, num_bytes)) in prom_get_idprom()
|
| /linux/sound/soc/codecs/ |
| H A D | sigmadsp.c | 33 unsigned int num_bytes; member 65 __le16 num_bytes; member 113 info->count = ctrl->num_bytes; in sigmadsp_ctrl_info() 122 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write() 124 ctrl->num_bytes); in sigmadsp_ctrl_write() 127 ctrl->num_bytes); in sigmadsp_ctrl_write() 146 memcpy(ctrl->cache, data, ctrl->num_bytes); in sigmadsp_ctrl_put() 167 ctrl->num_bytes); in sigmadsp_ctrl_get() 174 ctrl->num_bytes); in sigmadsp_ctrl_get() 207 unsigned int num_bytes; in sigma_fw_load_control() local [all …]
|
| /linux/fs/btrfs/tests/ |
| H A D | delayed-refs-tests.c | 17 u64 num_bytes; member 25 u64 num_bytes; member 79 if (head->num_bytes != check->num_bytes) { in validate_ref_head() 81 head->num_bytes, check->num_bytes); in validate_ref_head() 115 if (node->num_bytes != check->num_bytes) { in validate_ref_node() 117 node->num_bytes, check->num_bytes); in validate_ref_node() 181 .num_bytes = fs_info->nodesize, in simple_test() 241 .num_bytes = fs_info->nodesize, in simple_tests() 247 .num_bytes = fs_info->nodesize, in simple_tests() 349 .num_bytes = fs_info->nodesize, in merge_tests() [all …]
|
| H A D | qgroup-tests.c | 17 u64 num_bytes, u64 parent, u64 root_objectid) in insert_normal_tree_ref() argument 33 ins.offset = num_bytes; in insert_normal_tree_ref() 66 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument 80 key.offset = num_bytes; in add_tree_ref() 116 u64 num_bytes) in remove_extent_item() argument 127 key.offset = num_bytes; in remove_extent_item() 145 u64 num_bytes, u64 parent, u64 root_objectid) in remove_extent_ref() argument 158 key.offset = num_bytes; in remove_extent_ref()
|
| /linux/arch/m68k/include/asm/ |
| H A D | openprom.h | 31 int (*v0_wrnetdev)(int dev_desc, int num_bytes, char *buf); 32 int (*v0_rdnetdev)(int dev_desc, int num_bytes, char *buf); 33 int (*v0_rdchardev)(int dev_desc, int num_bytes, int dummy, char *buf); 34 int (*v0_wrchardev)(int dev_desc, int num_bytes, int dummy, char *buf); 62 unsigned num_bytes; member
|
| /linux/include/trace/events/ |
| H A D | btrfs.h | 367 __field( u64, num_bytes ) 383 __entry->num_bytes = btrfs_file_extent_num_bytes(l, fi); 391 __entry->extent_end = (start + __entry->num_bytes); 403 __entry->extent_end, __entry->num_bytes, __entry->ram_bytes, 524 __entry->len = ordered->num_bytes; 861 __field( u64, num_bytes ) 872 __entry->num_bytes = ref->num_bytes; 885 __entry->num_bytes, 918 __field( u64, num_bytes ) 930 __entry->num_bytes = ref->num_bytes; [all …]
|
| /linux/drivers/gpib/agilent_82350b/ |
| H A D | agilent_82350b.c | 57 size_t num_bytes; in agilent_82350b_accel_read() local 59 retval = tms9914_read(board, tms_priv, buffer, 1, end, &num_bytes); in agilent_82350b_accel_read() 60 *bytes_read += num_bytes; in agilent_82350b_accel_read() 125 size_t num_bytes; in agilent_82350b_accel_read() local 127 retval = tms9914_read(board, tms_priv, buffer, length, end, &num_bytes); in agilent_82350b_accel_read() 128 *bytes_read += num_bytes; in agilent_82350b_accel_read() 161 size_t num_bytes; in agilent_82350b_accel_write() local 186 retval = agilent_82350b_write(board, buffer, 1, 0, &num_bytes); in agilent_82350b_accel_write() 187 *bytes_written += num_bytes; in agilent_82350b_accel_write() 214 num_bytes = block_size - read_transfer_counter(a_priv); in agilent_82350b_accel_write() [all …]
|
| /linux/drivers/gpib/tms9914/ |
| H A D | tms9914.c | 515 size_t num_bytes; in tms9914_read() local 531 retval = pio_read(board, priv, buffer, length - 1, end, &num_bytes); in tms9914_read() 532 *bytes_read += num_bytes; in tms9914_read() 535 buffer += num_bytes; in tms9914_read() 536 length -= num_bytes; in tms9914_read() 542 retval = pio_read(board, priv, buffer, length, end, &num_bytes); in tms9914_read() 543 *bytes_read += num_bytes; in tms9914_read() 611 size_t num_bytes; in tms9914_write() local 613 retval = pio_write(board, priv, buffer, length, &num_bytes); in tms9914_write() 614 *bytes_written += num_bytes; in tms9914_write() [all …]
|
| /linux/crypto/ |
| H A D | zstd.c | 108 size_t num_bytes; in zstd_compress() local 154 num_bytes = zstd_compress_stream(ctx->cctx, &outbuf, &inbuf); in zstd_compress() 155 if (ZSTD_isError(num_bytes)) { in zstd_compress() 173 num_bytes = zstd_end_stream(ctx->cctx, &outbuf); in zstd_compress() 174 if (ZSTD_isError(num_bytes)) in zstd_compress()
|
| /linux/arch/m68k/sun3/prom/ |
| H A D | misc.c | 57 prom_get_idprom(char *idbuf, int num_bytes) in prom_get_idprom() argument 62 for(i=0;i<num_bytes; i++) in prom_get_idprom()
|
| /linux/drivers/slimbus/ |
| H A D | qcom-ngd-ctrl.c | 808 if (txn->msg->num_bytes > SLIM_MSGQ_BUF_LEN || in qcom_slim_ngd_xfer_msg() 856 txn->msg->num_bytes = i; in qcom_slim_ngd_xfer_msg() 859 txn->rl = txn->msg->num_bytes + 4; in qcom_slim_ngd_xfer_msg() 885 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_slim_ngd_xfer_msg() 1011 txn.msg->num_bytes = 0; in qcom_slim_ngd_enable_stream() 1018 if (txn.msg->num_bytes == 0) { in qcom_slim_ngd_enable_stream() 1021 wbuf[txn.msg->num_bytes++] = sdev->laddr; in qcom_slim_ngd_enable_stream() 1022 wbuf[txn.msg->num_bytes] = rt->bps >> 2 | in qcom_slim_ngd_enable_stream() 1035 wbuf[txn.msg->num_bytes] |= BIT(5); in qcom_slim_ngd_enable_stream() 1037 txn.msg->num_bytes++; in qcom_slim_ngd_enable_stream() [all …]
|
| /linux/drivers/nvmem/ |
| H A D | imx-ocotp-scu.c | 136 u32 count, index, num_bytes; in imx_scu_ocotp_read() local 142 num_bytes = round_up(bytes, 4); in imx_scu_ocotp_read() 143 count = num_bytes >> 2; in imx_scu_ocotp_read() 148 p = kzalloc(num_bytes, GFP_KERNEL); in imx_scu_ocotp_read()
|
| H A D | imx-ocotp-ele.c | 70 u32 count, index, num_bytes; in imx_ocotp_reg_read() local 82 num_bytes = round_up(bytes + skipbytes, 4); in imx_ocotp_reg_read() 83 count = num_bytes >> 2; in imx_ocotp_reg_read() 85 p = kzalloc(num_bytes, GFP_KERNEL); in imx_ocotp_reg_read()
|
| H A D | stm32-bsec-optee-ta.c | 146 u32 start, num_bytes; in stm32_bsec_optee_ta_read() local 163 num_bytes = round_up(offset + bytes - start, 4); in stm32_bsec_optee_ta_read() 168 shm = tee_shm_alloc_kernel_buf(ctx, num_bytes); in stm32_bsec_optee_ta_read() 176 param[1].u.memref.size = num_bytes; in stm32_bsec_optee_ta_read()
|
| /linux/drivers/gpib/cb7210/ |
| H A D | cb7210.c | 179 size_t num_bytes; in cb7210_accel_read() local 208 end, &num_bytes); in cb7210_accel_read() 209 *bytes_read += num_bytes; in cb7210_accel_read() 215 retval = cb7210_read(board, &buffer[*bytes_read], 1, end, &num_bytes); in cb7210_accel_read() 216 *bytes_read += num_bytes; in cb7210_accel_read() 274 unsigned int num_bytes, i; in fifo_write() local 307 num_bytes = cb7210_fifo_size - cb7210_fifo_width; in fifo_write() 309 num_bytes = cb7210_fifo_size / 2; in fifo_write() 310 if (num_bytes + count > length) in fifo_write() 311 num_bytes = length - count; in fifo_write() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tx.c | 230 u32 num_bytes; member 277 .num_bytes = skb->len + (skb_shinfo(skb)->gso_segs - 1) * ihs, in mlx5e_sq_xmit_prepare() 290 .num_bytes = max_t(unsigned int, skb->len, ETH_ZLEN), in mlx5e_sq_xmit_prepare() 298 stats->bytes += attr->num_bytes; in mlx5e_sq_xmit_prepare() 383 .num_bytes = attr->num_bytes, in mlx5e_txwqe_complete() 418 send_doorbell = __netdev_tx_sent_queue(sq->txq, attr->num_bytes, xmit_more); in mlx5e_txwqe_complete() 556 .num_bytes = session->bytes_count, in mlx5e_tx_mpwqe_session_complete() 817 nbytes += wi->num_bytes; in mlx5e_poll_tx_cq() 830 nbytes += wi->num_bytes; in mlx5e_poll_tx_cq() 892 nbytes += wi->num_bytes; in mlx5e_free_txqsq_descs() [all …]
|