| /linux/fs/ubifs/ |
| H A D | key.h | 42 static inline uint32_t key_mask_hash(uint32_t hash) in key_mask_hash() 90 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init() 103 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() 119 static inline void lowest_ino_key(const struct ubifs_info *c, in lowest_ino_key() 132 static inline void highest_ino_key(const struct ubifs_info *c, in highest_ino_key() 146 static inline void dent_key_init(const struct ubifs_info *c, in dent_key_init() 150 uint32_t hash = c->key_hash(fname_name(nm), fname_len(nm)); in dent_key_init() local 165 static inline void dent_key_init_hash(const struct ubifs_info *c, in dent_key_init_hash() 167 uint32_t hash) in dent_key_init_hash() 181 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() [all …]
|
| H A D | auth.c | 28 int __ubifs_node_calc_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_calc_hash() 29 u8 *hash) in __ubifs_node_calc_hash() 45 static int ubifs_hash_calc_hmac(const struct ubifs_info *c, const u8 *hash, in ubifs_hash_calc_hmac() 62 int ubifs_prepare_auth_node(struct ubifs_info *c, void *node, in ubifs_prepare_auth_node() 66 u8 hash[UBIFS_HASH_ARR_SZ]; in ubifs_prepare_auth_node() local 89 static struct shash_desc *ubifs_get_desc(const struct ubifs_info *c, in ubifs_get_desc() 120 struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c) in __ubifs_hash_get_desc() 136 void ubifs_bad_hash(const struct ubifs_info *c, const void *node, const u8 *hash, in ubifs_bad_hash() 162 int __ubifs_node_check_hash(const struct ubifs_info *c, const void *node, in __ubifs_node_check_hash() 190 int ubifs_sb_verify_signature(struct ubifs_info *c, in ubifs_sb_verify_signature() [all …]
|
| H A D | replay.c | 49 u8 hash[UBIFS_HASH_ARR_SZ]; member 88 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops() 162 static int set_buds_lprops(struct ubifs_info *c) in set_buds_lprops() 181 static int trun_remove_range(struct ubifs_info *c, struct replay_entry *r) in trun_remove_range() 213 static bool inode_still_linked(struct ubifs_info *c, struct replay_entry *rino) in inode_still_linked() 243 static int apply_replay_entry(struct ubifs_info *c, struct replay_entry *r) in apply_replay_entry() 305 struct ubifs_info *c = priv; in replay_entries_cmp() local 327 static int apply_replay_list(struct ubifs_info *c) in apply_replay_list() 351 static void destroy_replay_list(struct ubifs_info *c) in destroy_replay_list() 384 static int insert_node(struct ubifs_info *c, int lnum, int offs, int len, in insert_node() [all …]
|
| H A D | journal.c | 81 static void ubifs_add_auth_dirt(struct ubifs_info *c, int lnum) in ubifs_add_auth_dirt() 98 static int reserve_space(struct ubifs_info *c, int jhead, int len) in reserve_space() 225 static int ubifs_hash_nodes(struct ubifs_info *c, void *node, in ubifs_hash_nodes() 226 int len, struct shash_desc *hash) in ubifs_hash_nodes() 268 static int write_head(struct ubifs_info *c, int jhead, void *buf, int len, in write_head() 302 static void __queue_and_wait(struct ubifs_info *c) in __queue_and_wait() 322 static bool wait_for_reservation(struct ubifs_info *c) in wait_for_reservation() 346 static void wake_up_reservation(struct ubifs_info *c) in wake_up_reservation() 368 static void add_or_start_queue(struct ubifs_info *c) in add_or_start_queue() 401 static int make_reservation(struct ubifs_info *c, int jhead, int len) in make_reservation() [all …]
|
| H A D | tnc_commit.c | 25 static int make_idx_node(struct ubifs_info *c, struct ubifs_idx_node *idx, in make_idx_node() 29 u8 hash[UBIFS_HASH_ARR_SZ]; in make_idx_node() local 106 static int fill_gap(struct ubifs_info *c, int lnum, int gap_start, int gap_end, in fill_gap() 163 static int find_old_idx(struct ubifs_info *c, int lnum, int offs) in find_old_idx() 198 static int is_idx_node_in_use(struct ubifs_info *c, union ubifs_key *key, in is_idx_node_in_use() 224 static int layout_leb_in_gaps(struct ubifs_info *c, int p) in layout_leb_in_gaps() 334 static int get_leb_cnt(struct ubifs_info *c, int cnt) in get_leb_cnt() 356 static int layout_in_gaps(struct ubifs_info *c, int cnt) in layout_in_gaps() 429 static int layout_in_empty_space(struct ubifs_info *c) in layout_in_empty_space() 568 static int layout_commit(struct ubifs_info *c, int no_space, int cnt) in layout_commit() [all …]
|
| H A D | lpt.c | 46 static void do_calc_lpt_geom(struct ubifs_info *c) in do_calc_lpt_geom() 125 int ubifs_calc_lpt_geom(struct ubifs_info *c) in ubifs_calc_lpt_geom() 162 static int calc_dflt_lpt_geom(struct ubifs_info *c, int *main_lebs, in calc_dflt_lpt_geom() 222 static void pack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, uint32_t val, int nrbit… in pack_bits() 273 uint32_t ubifs_unpack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, int nrbits) in ubifs_unpack_bits() 340 void ubifs_pack_pnode(struct ubifs_info *c, void *buf, in ubifs_pack_pnode() 373 void ubifs_pack_nnode(struct ubifs_info *c, void *buf, in ubifs_pack_nnode() 405 void ubifs_pack_ltab(struct ubifs_info *c, void *buf, in ubifs_pack_ltab() 430 void ubifs_pack_lsave(struct ubifs_info *c, void *buf, int *lsave) in ubifs_pack_lsave() 452 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_lpt_dirt() [all …]
|
| H A D | sb.c | 54 static int get_default_compressor(struct ubifs_info *c) in get_default_compressor() 75 static int create_default_filesystem(struct ubifs_info *c) in create_default_filesystem() 91 u8 hash[UBIFS_HASH_ARR_SZ]; in create_default_filesystem() local 379 static int validate_sb(struct ubifs_info *c, struct ubifs_sb_node *sup) in validate_sb() 521 static struct ubifs_sb_node *ubifs_read_sb_node(struct ubifs_info *c) in ubifs_read_sb_node() 540 static int authenticate_sb_node(struct ubifs_info *c, in authenticate_sb_node() 615 int ubifs_write_sb_node(struct ubifs_info *c, struct ubifs_sb_node *sup) in ubifs_write_sb_node() 636 int ubifs_read_superblock(struct ubifs_info *c) in ubifs_read_superblock() 795 static int fixup_leb(struct ubifs_info *c, int lnum, int len) in fixup_leb() 823 static int fixup_free_space(struct ubifs_info *c) in fixup_free_space() [all …]
|
| H A D | tnc.c | 47 static void do_insert_old_idx(struct ubifs_info *c, in do_insert_old_idx() 98 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() 119 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() 141 static int ins_clr_old_idx_znode(struct ubifs_info *c, in ins_clr_old_idx_znode() 180 void destroy_old_idx(struct ubifs_info *c) in destroy_old_idx() 197 static struct ubifs_znode *copy_znode(struct ubifs_info *c, in copy_znode() 221 static int add_idx_dirt(struct ubifs_info *c, int lnum, int dirt) in add_idx_dirt() 236 static void replace_znode(struct ubifs_info *c, struct ubifs_znode *new_zn, in replace_znode() 270 static struct ubifs_znode *dirty_cow_znode(struct ubifs_info *c, in dirty_cow_znode() 343 static int lnc_add(struct ubifs_info *c, struct ubifs_zbranch *zbr, in lnc_add() [all …]
|
| /linux/net/ceph/crush/ |
| H A D | hash.c | 13 #define crush_hashmix(a, b, c) do { \ argument 29 __u32 hash = crush_hash_seed ^ a; in crush_hash32_rjenkins1() local 40 __u32 hash = crush_hash_seed ^ a ^ b; in crush_hash32_rjenkins1_2() local 49 static __u32 crush_hash32_rjenkins1_3(__u32 a, __u32 b, __u32 c) in crush_hash32_rjenkins1_3() 51 __u32 hash = crush_hash_seed ^ a ^ b ^ c; in crush_hash32_rjenkins1_3() local 62 static __u32 crush_hash32_rjenkins1_4(__u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_rjenkins1_4() 64 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d; in crush_hash32_rjenkins1_4() local 76 static __u32 crush_hash32_rjenkins1_5(__u32 a, __u32 b, __u32 c, __u32 d, in crush_hash32_rjenkins1_5() 79 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d ^ e; in crush_hash32_rjenkins1_5() local 114 __u32 crush_hash32_3(int type, __u32 a, __u32 b, __u32 c) in crush_hash32_3() [all …]
|
| /linux/net/9p/ |
| H A D | error.c | 179 struct errormap *c; in p9_error_init() local 180 u32 hash; in p9_error_init() local 204 struct errormap *c; in p9_errstr2errno() local 205 u32 hash; in p9_errstr2errno() local
|
| /linux/net/ipv4/ |
| H A D | tcp_sigpool.c | 23 struct crypto_ahash *hash; member 108 static int __cpool_try_clone(struct crypto_ahash *hash) in __cpool_try_clone() 260 int tcp_sigpool_start(unsigned int id, struct tcp_sigpool *c) __cond_acquires(RCU_BH) in tcp_sigpool_start() 262 struct crypto_ahash *hash; in tcp_sigpool_start() local 293 void tcp_sigpool_end(struct tcp_sigpool *c) __releases(RCU_BH) in tcp_sigpool_end() 295 struct crypto_ahash *hash = crypto_ahash_reqtfm(c->req); in tcp_sigpool_end() local
|
| /linux/fs/ext4/ |
| H A D | hash.c | 20 __u32 a = in[0], b = in[1], c = in[2], d = in[3]; in TEA_transform() local 44 #define ROUND(f, a, b, c, d, x, s) \ argument 55 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local 105 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_unsigned() local 121 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_signed() local 203 __u32 hash; in __ext4fs_dirhash() local
|
| /linux/include/linux/ |
| H A D | stringhash.h | 43 partial_name_hash(unsigned long c, unsigned long prevhash) in partial_name_hash() 53 static inline unsigned int end_name_hash(unsigned long hash) in end_name_hash() 74 #define hashlen_create(hash, len) ((u64)(len)<<32 | (u32)(hash)) argument
|
| /linux/net/ceph/ |
| H A D | ceph_hash.c | 10 #define mix(a, b, c) \ argument 26 __u32 a, b, c; /* the internal state */ in ceph_str_hash_rjenkins() local 96 unsigned long hash = 0; in ceph_str_hash_linux() local 97 unsigned char c; in ceph_str_hash_linux() local
|
| /linux/scripts/mod/ |
| H A D | sumversion.c | 43 uint32_t hash[MD4_HASH_WORDS]; member 69 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 70 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (uint32_t)0x5A827999,s)) argument 71 #define ROUND3(a,b,c, argument 90 md4_transform(uint32_t * hash,uint32_t const * in) md4_transform() argument 92 uint32_t a, b, c, d; md4_transform() local 227 add_char(unsigned char c,struct md4_ctx * md) add_char() argument [all...] |
| /linux/drivers/base/power/ |
| H A D | trace.c | 145 unsigned char c; in hash_string() local 193 unsigned int hash = hash_string(lineno, file, FILEHASH); in show_file_hash() local 211 unsigned int hash = hash_string(DEVSEED, dev_name(dev), DEVHASH); in show_dev_hash() local 238 unsigned int hash = hash_string(DEVSEED, dev_name(dev), in show_trace_dev_match() local
|
| /linux/fs/smb/common/ |
| H A D | cifs_md4.c | 51 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 52 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 53 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 55 static void md4_transform(u32 *hash, u32 const *in) in md4_transform() 57 u32 a, b, c, d; in md4_transform() local
|
| /linux/security/selinux/ss/ |
| H A D | symtab.c | 19 unsigned int hash = 5381; in symhash() local 20 unsigned char c; in symhash() local
|
| /linux/fs/ntfs3/ |
| H A D | upcase.c | 108 unsigned long hash) in ntfs_names_hash() 111 unsigned int c = upcase_unicode_char(upcase, *name++); in ntfs_names_hash() local
|
| /linux/drivers/net/team/ |
| H A D | team_mode_loadbalance.c | 90 #define LB_HTPM_PORT_BY_HASH(lp_priv, hash) \ argument 93 #define LB_HTPM_OPT_INST_INFO_BY_HASH(lp_priv, hash) \ argument 119 unsigned char hash) in lb_hash_select_tx_port() 128 unsigned char hash) in lb_htpm_select_tx_port() 190 unsigned char *c; in lb_get_skb_hash() local 202 unsigned char hash) in lb_update_tx_stats() 222 unsigned char hash; in lb_transmit() local 358 unsigned char hash = info->array_index; in lb_tx_hash_to_port_mapping_init() local 368 unsigned char hash = ctx->info->array_index; in lb_tx_hash_to_port_mapping_get() local 379 unsigned char hash = ctx->info->array_index; in lb_tx_hash_to_port_mapping_set() local [all …]
|
| /linux/init/ |
| H A D | initramfs.c | 75 static __initdata struct hash { struct 78 struct hash *next; argument 83 static inline int hash(int major, int minor, int ino) in hash() argument 483 char c = buf[written]; in flush_buffer() local
|
| /linux/drivers/md/bcache/ |
| H A D | btree.h | 119 struct hlist_node hash; member 126 struct cache_set *c; member 195 static inline void set_gc_sectors(struct cache_set *c) in set_gc_sectors() 204 #define for_each_cached_btree(b, c, iter) \ argument 231 struct cache_set *c; member 287 static inline void wake_up_gc(struct cache_set *c) in wake_up_gc() 292 static inline void force_wake_up_gc(struct cache_set *c) in force_wake_up_gc() 348 #define bcache_btree_root(fn, c, op, ...) \ argument 381 static inline int bch_btree_map_nodes(struct btree_op *op, struct cache_set *c, in bch_btree_map_nodes() 388 struct cache_set *c, in bch_btree_map_leaf_nodes()
|
| /linux/fs/smb/client/ |
| H A D | dfs_cache.c | 194 char c; in dfscache_proc_write() local 320 static int cache_entry_hash(const void *data, int size, unsigned int *hash) in cache_entry_hash() 324 wchar_t c; in cache_entry_hash() local 478 unsigned int hash; in add_cache_entry_locked() local 533 static struct cache_entry *__lookup_cache_entry(const char *path, unsigned int hash, int len) in __lookup_cache_entry() 561 unsigned int hash; in lookup_cache_entry() local 1058 size_t len, c; in dfs_cache_get_tgt_share() local
|
| /linux/fs/smb/client/compress/ |
| H A D | lz77.c | 155 u64 hash; in lz77_compress() local 206 u32 c = umin(end - srcp, 32 - flag_count); in lz77_compress() local
|
| /linux/drivers/pcmcia/ |
| H A D | ds.c | 47 u32 hash; in pcmcia_check_driver() local 232 struct config_t *c = container_of(ref, struct config_t, ref); in pcmcia_release_function() local 543 config_t *c; in pcmcia_device_add() local 938 u32 hash[4] = { 0, 0, 0, 0}; in pcmcia_bus_uevent() local 1078 u32 hash[4] = { 0, 0, 0, 0}; in modalias_show() local
|