/linux-master/drivers/spi/ |
H A D | spi-dw-bt1.c | 76 size_t shift, chunk; local 85 chunk = min_t(size_t, 4 - shift, len); 87 memcpy(to, (char *)&data + shift, chunk); local 88 from += chunk; 89 to += chunk; 90 len -= chunk;
|
/linux-master/arch/arm64/crypto/ |
H A D | sha256-glue.c | 102 unsigned int chunk = len; local 110 chunk + sctx->count % SHA256_BLOCK_SIZE > SHA256_BLOCK_SIZE) 111 chunk = SHA256_BLOCK_SIZE - 115 sha256_base_do_update(desc, data, chunk, sha256_neon_transform); 117 data += chunk; 118 len -= chunk;
|
/linux-master/drivers/md/ |
H A D | dm-snap.c | 185 chunk_t chunk) 187 return chunk << store->chunk_shift; 227 * For writing a complete chunk, bypassing the copy. 242 chunk_t chunk; member in struct:dm_snap_tracked_chunk 259 static void track_chunk(struct dm_snapshot *s, struct bio *bio, chunk_t chunk) argument 263 c->chunk = chunk; 267 &s->tracked_chunk_hash[DM_TRACKED_CHUNK_HASH(chunk)]); 281 static int __chunk_is_tracked(struct dm_snapshot *s, chunk_t chunk) argument 289 &s->tracked_chunk_hash[DM_TRACKED_CHUNK_HASH(chunk)], nod 184 chunk_to_sector(struct dm_exception_store *store, chunk_t chunk) argument 305 __check_for_conflicting_io(struct dm_snapshot *s, chunk_t chunk) argument 635 dm_exception_table_lock_init(struct dm_snapshot *s, chunk_t chunk, struct dm_exception_table_lock *lock) argument 696 exception_hash(struct dm_exception_table *et, chunk_t chunk) argument 710 dm_lookup_exception(struct dm_exception_table *et, chunk_t chunk) argument 1843 __lookup_pending_exception(struct dm_snapshot *s, chunk_t chunk) argument 1860 __insert_pending_exception(struct dm_snapshot *s, struct dm_snap_pending_exception *pe, chunk_t chunk) argument 1893 __find_pending_exception(struct dm_snapshot *s, struct dm_snap_pending_exception *pe, chunk_t chunk) argument 1907 remap_exception(struct dm_snapshot *s, struct dm_exception *e, struct bio *bio, chunk_t chunk) argument 1927 zero_exception(struct dm_snapshot *s, struct dm_exception *e, struct bio *bio, chunk_t chunk) argument 1953 chunk_t chunk; local 2121 chunk_t chunk; local 2444 chunk_t chunk; local [all...] |
H A D | dm-stripe.c | 86 * <number of stripes> <chunk size> [<dev_path> <offset>]+ 120 ti->error = "Target length not divisible by chunk size"; 204 sector_t chunk = dm_target_offset(sc->ti, sector); local 208 chunk_offset = sector_div(chunk, sc->chunk_size); 210 chunk_offset = chunk & (sc->chunk_size - 1); 211 chunk >>= sc->chunk_size_shift; 215 *stripe = sector_div(chunk, sc->stripes); 217 *stripe = chunk & (sc->stripes - 1); 218 chunk >>= sc->stripes_shift; 222 chunk * [all...] |
H A D | dm-zoned-reclaim.c | 205 dzone->chunk, bzone->id, dmz_weight(bzone), 237 unsigned int chunk = dzone->chunk; local 244 chunk, dzone->id, dmz_weight(dzone), 258 * Free the data zone and remap the chunk to 267 dmz_map_zone(zmd, bzone, chunk); 278 * Once blocks are moved, remap the zone chunk to the sequential zone. 282 unsigned int chunk = dzone->chunk; local 302 dmz_metadata_label(zmd), zrc->dev_idx, chunk, [all...] |
H A D | dm-exception-store.h | 25 * An exception is used where an old chunk of data has been 29 * chunk within the device. 83 * still-to-be-merged chunk and returns the number of 143 static inline chunk_t dm_chunk_number(chunk_t chunk) argument 145 return chunk & (chunk_t)((1ULL << DM_CHUNK_NUMBER_BITS) - 1ULL);
|
/linux-master/include/net/sctp/ |
H A D | sctp.h | 416 static inline bool sctp_chunk_pending(const struct sctp_chunk *chunk) argument 418 return !list_empty(&chunk->list); 423 * the chunk length to indicate when to stop. Make sure 426 #define sctp_walk_params(pos, chunk)\ 427 _sctp_walk_params((pos), (chunk), ntohs((chunk)->chunk_hdr.length)) 429 #define _sctp_walk_params(pos, chunk, end)\ 430 for (pos.v = (u8 *)(chunk + 1);\ 432 (void *)chunk + end) &&\ 433 pos.v <= (void *)chunk [all...] |
H A D | auth.h | 88 int sctp_auth_send_cid(enum sctp_cid chunk, 90 int sctp_auth_recv_cid(enum sctp_cid chunk,
|
/linux-master/drivers/dma/sh/ |
H A D | rcar-dmac.c | 43 * struct rcar_dmac_hw_desc - Hardware descriptor for a transfer chunk 63 * @running: the transfer chunk being currently processed 100 * @chunks: array of transfer chunk descriptors 156 * @desc.chunks_free: list of free transfer chunk descriptors 388 struct rcar_dmac_xfer_chunk *chunk = local 398 chunk->src_addr >> 32); 400 chunk->dst_addr >> 32); 416 * of the first chunk. 419 chunk->dst_addr & 0xffffffff); 449 struct rcar_dmac_xfer_chunk *chunk local 673 struct rcar_dmac_xfer_chunk *chunk = &page->chunks[i]; local 698 struct rcar_dmac_xfer_chunk *chunk; local 762 struct rcar_dmac_xfer_chunk *chunk; local 933 struct rcar_dmac_xfer_chunk *chunk; local 1320 struct rcar_dmac_xfer_chunk *chunk; local [all...] |
/linux-master/drivers/s390/block/ |
H A D | dasd_int.h | 731 struct dasd_mchunk *chunk; local 734 chunk = (struct dasd_mchunk *) mem; 735 chunk->size = size - sizeof(struct dasd_mchunk); 736 list_add(&chunk->list, chunk_list); 742 struct dasd_mchunk *chunk, *tmp; local 745 list_for_each_entry(chunk, chunk_list, list) { 746 if (chunk->size < size) 748 if (chunk->size > size + sizeof(struct dasd_mchunk)) { 749 char *endaddr = (char *) (chunk + 1) + chunk 764 struct dasd_mchunk *chunk, *tmp; local [all...] |
/linux-master/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_sendto.c | 394 * svc_rdma_encode_read_list - Encode RPC Reply's Read chunk list 411 * @chunk: Write chunk to push 412 * @remaining: remaining bytes of the payload left in the Write chunk 413 * @segno: which segment in the chunk 421 const struct svc_rdma_chunk *chunk, 424 const struct svc_rdma_segment *segment = &chunk->ch_segments[segno]; 443 * svc_rdma_encode_write_chunk - Encode one Write chunk 445 * @chunk: Write chunk t 420 svc_rdma_encode_write_segment(struct svc_rdma_send_ctxt *sctxt, const struct svc_rdma_chunk *chunk, u32 *remaining, unsigned int segno) argument 456 svc_rdma_encode_write_chunk(struct svc_rdma_send_ctxt *sctxt, const struct svc_rdma_chunk *chunk) argument 497 struct svc_rdma_chunk *chunk; local 533 struct svc_rdma_chunk *chunk; local 1087 struct svc_rdma_chunk *chunk; local [all...] |
H A D | svc_rdma_recvfrom.c | 68 * When the Read chunk payloads have become available on the 534 * - This implementation currently supports only one Write chunk. 562 /* Sanity check the Reply chunk. 565 * - Reply chunk does not overflow Receive buffer. 569 * %true: Reply chunk is valid. @rctxt's xdr_stream is updated 570 * to point to the first byte past the Reply chunk. 571 * %false: Reply chunk is corrupt. @rctxt's xdr_stream is left 602 struct svc_rdma_chunk *chunk; local 611 pcl_for_each_chunk(chunk, &ctxt->rc_call_pcl) { 612 pcl_for_each_segment(segment, chunk) { 781 struct svc_rdma_chunk *chunk = pcl_first_chunk(&ctxt->rc_read_pcl); local [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_table.c | 13 struct mlx5dr_icm_chunk *chunk; local 27 chunk = nic_tbl->nic_dmn->type == DR_DOMAIN_NIC_TYPE_RX ? 28 action->dest_tbl->tbl->rx.s_anchor->chunk : 29 action->dest_tbl->tbl->tx.s_anchor->chunk; 30 nic_tbl->default_icm_addr = mlx5dr_icm_pool_get_chunk_icm_addr(chunk); 230 icm_addr_rx = mlx5dr_icm_pool_get_chunk_icm_addr(tbl->rx.s_anchor->chunk); 233 icm_addr_tx = mlx5dr_icm_pool_get_chunk_icm_addr(tbl->tx.s_anchor->chunk);
|
H A D | dr_ste.c | 29 u32 num_entries = mlx5dr_icm_pool_get_chunk_num_of_entries(htbl->chunk); 126 u64 base_icm_addr = mlx5dr_icm_pool_get_chunk_icm_addr(ste->htbl->chunk); 127 u32 index = ste - ste->htbl->chunk->ste_arr; 134 u32 index = ste - ste->htbl->chunk->ste_arr; 136 return mlx5dr_icm_pool_get_chunk_mr_addr(ste->htbl->chunk) + DR_STE_SIZE * index; 141 u64 index = ste - ste->htbl->chunk->ste_arr; 143 return ste->htbl->chunk->hw_ste_arr + DR_STE_SIZE_REDUCED * index; 148 u32 index = ste - ste->htbl->chunk->ste_arr; 150 return &ste->htbl->chunk->miss_list[index]; 157 struct mlx5dr_icm_chunk *chunk local 500 struct mlx5dr_icm_chunk *chunk; local [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | marvell_nand.c | 21 * or 4) and each chunk will have its own ECC "digest" of 6B at the 24 * corrects up to 1 bit per chunk and detects reliably an error if 36 * 30B per ECC chunk. Here is the page layout used by the controller 238 * chunk smaller that the others. 241 * @chunk: Desired ECC chunk size on which the layout applies 242 * @strength: Desired ECC strength (per chunk size bytes) on which the 248 * @data_bytes: Number of data bytes per chunk 249 * @spare_bytes: Number of spare bytes per chunk 250 * @ecc_bytes: Number of ecc bytes per chunk 258 int chunk; member in struct:marvell_hw_ecc_layout 1268 int chunk; local 1303 marvell_nfc_hw_ecc_bch_read_chunk(struct nand_chip *chip, int chunk, u8 *data, unsigned int data_len, u8 *spare, unsigned int spare_len, int page) argument 1380 int chunk, ret; local 1523 int chunk; local 1565 marvell_nfc_hw_ecc_bch_write_chunk(struct nand_chip *chip, int chunk, const u8 *data, unsigned int data_len, const u8 *spare, unsigned int spare_len, int page) argument 1638 int chunk, ret; local [all...] |
/linux-master/net/bluetooth/ |
H A D | af_bluetooth.c | 402 int chunk; local 428 chunk = min_t(unsigned int, skb->len, size); 429 if (skb_copy_datagram_msg(skb, 0, msg, chunk)) { 435 copied += chunk; 436 size -= chunk; 443 if (chunk <= skb_len) { 444 __skb_pull(skb, chunk); 449 chunk -= skb_len; 452 if (chunk <= frag->len) { 454 skb->len -= chunk; [all...] |
/linux-master/sound/usb/line6/ |
H A D | midi.c | 43 unsigned char chunk[LINE6_FALLBACK_MAXPACKETSIZE]; local 49 done = snd_rawmidi_transmit_peek(substream, chunk, req); 54 line6_midibuf_write(mb, chunk, done); 59 done = line6_midibuf_read(mb, chunk, 66 send_midi_async(line6, chunk, done);
|
/linux-master/lib/ |
H A D | bitmap-str.c | 466 * Commas group hex digits into chunks. Each chunk defines exactly 32 467 * bits of the resultant bitmask. No chunk may specify a value larger 468 * than 32 bits (%-EOVERFLOW), and if a chunk specifies a smaller value 480 int chunk; local 482 for (chunk = 0; ; chunk++) { 491 end = bitmap_get_x32_reverse(start, end, &bitmap[chunk ^ 1]); 493 end = bitmap_get_x32_reverse(start, end, &bitmap[chunk]);
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl_tcam.c | 175 struct mlxsw_sp_acl_tcam_chunk *chunk; member in struct:mlxsw_sp_acl_tcam_vchunk 178 struct rhash_head ht_node; /* Member of a chunk HT */ 188 struct mlxsw_sp_acl_tcam_chunk *chunk; member in struct:mlxsw_sp_acl_tcam_entry 736 /* The entry markers are relative to the current chunk and therefore 737 * needs to be reset together with the chunk marker. 762 /* If a chunk was added or deleted from vregion we have to reset 763 * the current chunk pointer to make sure all chunks 906 struct mlxsw_sp_acl_tcam_chunk *chunk; local 908 chunk = kzalloc(sizeof(*chunk) 919 mlxsw_sp_acl_tcam_chunk_destroy(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_chunk *chunk) argument 1049 mlxsw_sp_acl_tcam_entry_create(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_ventry *ventry, struct mlxsw_sp_acl_tcam_chunk *chunk) argument 1188 mlxsw_sp_acl_tcam_ventry_migrate(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_ventry *ventry, struct mlxsw_sp_acl_tcam_chunk *chunk, int *credits) argument [all...] |
/linux-master/fs/btrfs/ |
H A D | tree-checker.c | 709 "invalid block group chunk objectid, have %llu expect %llu", 751 const struct btrfs_chunk *chunk, u64 logical, 771 (unsigned long)chunk) { 794 * The common chunk check which could also work on super block sys chunk array. 800 struct btrfs_chunk *chunk, u64 logical) 815 length = btrfs_chunk_length(leaf, chunk); 816 stripe_len = btrfs_chunk_stripe_len(leaf, chunk); 817 num_stripes = btrfs_chunk_num_stripes(leaf, chunk); 818 sub_stripes = btrfs_chunk_sub_stripes(leaf, chunk); 750 chunk_err(const struct extent_buffer *leaf, const struct btrfs_chunk *chunk, u64 logical, const char *fmt, ...) argument 799 btrfs_check_chunk_valid(struct extent_buffer *leaf, struct btrfs_chunk *chunk, u64 logical) argument 963 check_leaf_chunk_item(struct extent_buffer *leaf, struct btrfs_chunk *chunk, struct btrfs_key *key, int slot) argument 1729 struct btrfs_chunk *chunk; local [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_mipi_dbi.c | 859 size_t chunk, max_chunk = dbi->tx_buf9_len; local 900 chunk = min(len, max_chunk); 901 len -= chunk; 904 if (chunk < 8) { 911 for (i = 1; i < (chunk + 1); i++) { 923 for (i = 1; i < (chunk + 1); i++) { 931 chunk = 8; 934 for (i = 0; i < chunk; i += 8) { 962 tr.len = chunk + added; 1004 size_t chunk local 1302 size_t chunk; local [all...] |
/linux-master/arch/s390/mm/ |
H A D | maccess.c | 86 void *chunk; local 93 chunk = (void *)(__memcpy_real_area + offset); 102 copied = copy_to_iter(chunk, len, iter);
|
/linux-master/arch/powerpc/mm/book3s64/ |
H A D | iommu_api.c | 63 unsigned long entry, chunk; local 100 chunk = (1UL << (PAGE_SHIFT + MAX_PAGE_ORDER)) / 102 chunk = min(chunk, entries); 103 for (entry = 0; entry < entries; entry += chunk) { 104 unsigned long n = min(entries - entry, chunk);
|
/linux-master/net/tls/ |
H A D | tls_sw.c | 85 int i, chunk = start - offset; local 92 if (chunk > 0) { 93 if (chunk > len) 94 chunk = len; 96 len -= chunk; 99 offset += chunk; 108 chunk = end - offset; 109 if (chunk > 0) { 110 if (chunk > len) 111 chunk 1816 int chunk = min_t(unsigned int, rxm->full_len - skip, len); local 2007 int to_decrypt, chunk; local 2186 int chunk; local [all...] |
/linux-master/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | epn.c | 44 unsigned int chunk; local 49 /* Calculate next chunk size */ 50 chunk = len - act; 51 if (chunk > ep->ep.maxpacket) 52 chunk = ep->ep.maxpacket; 53 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) 56 EPVDBG(ep, "kick req %p act=%d/%d chunk=%d last=%d\n", 57 req, act, len, chunk, req->last_desc); 64 memcpy(ep->buf, req->req.buf + act, chunk); 76 writel(VHUB_EP_DMA_SET_TX_SIZE(chunk), 174 unsigned int chunk; local [all...] |