/linux-4.19.296/fs/xfs/scrub/ |
D | common.c | 429 struct xchk_ag *sa) in xchk_ag_btcur_free() argument 431 if (sa->refc_cur) in xchk_ag_btcur_free() 432 xfs_btree_del_cursor(sa->refc_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free() 433 if (sa->rmap_cur) in xchk_ag_btcur_free() 434 xfs_btree_del_cursor(sa->rmap_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free() 435 if (sa->fino_cur) in xchk_ag_btcur_free() 436 xfs_btree_del_cursor(sa->fino_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free() 437 if (sa->ino_cur) in xchk_ag_btcur_free() 438 xfs_btree_del_cursor(sa->ino_cur, XFS_BTREE_ERROR); in xchk_ag_btcur_free() 439 if (sa->cnt_cur) in xchk_ag_btcur_free() [all …]
|
D | agheader.c | 46 error = xchk_ag_init(sc, agno, &sc->sa); in xchk_superblock_xref() 370 struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp); in xchk_agf_xref_freeblks() 374 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks() 377 error = xfs_alloc_query_all(sc->sa.bno_cur, in xchk_agf_xref_freeblks() 379 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_freeblks() 382 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks() 390 struct xfs_agf *agf = XFS_BUF_TO_AGF(sc->sa.agf_bp); in xchk_agf_xref_cntbt() 396 if (!sc->sa.cnt_cur) in xchk_agf_xref_cntbt() 400 error = xfs_alloc_lookup_le(sc->sa.cnt_cur, 0, -1U, &have); in xchk_agf_xref_cntbt() 401 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_cntbt() [all …]
|
D | refcount.c | 297 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap() 307 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_rmap() 309 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcountbt_xref_rmap() 314 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap() 391 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap() 395 error = xfs_btree_count_blocks(sc->sa.refc_cur, &refcbt_blocks); in xchk_refcount_xref_rmap() 396 if (!xchk_btree_process_error(sc, sc->sa.refc_cur, 0, &error)) in xchk_refcount_xref_rmap() 398 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, oinfo, in xchk_refcount_xref_rmap() 400 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcount_xref_rmap() 403 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcount_xref_rmap() [all …]
|
D | repair.c | 54 xchk_ag_btcur_free(&sc->sa); in xrep_attempt() 131 if (sc->sa.agi_bp) in xrep_roll_ag_trans() 132 xfs_trans_bhold(sc->tp, sc->sa.agi_bp); in xrep_roll_ag_trans() 133 if (sc->sa.agf_bp) in xrep_roll_ag_trans() 134 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans() 135 if (sc->sa.agfl_bp) in xrep_roll_ag_trans() 136 xfs_trans_bhold(sc->tp, sc->sa.agfl_bp); in xrep_roll_ag_trans() 144 if (sc->sa.agi_bp) in xrep_roll_ag_trans() 145 xfs_trans_bjoin(sc->tp, sc->sa.agi_bp); in xrep_roll_ag_trans() 146 if (sc->sa.agf_bp) in xrep_roll_ag_trans() [all …]
|
D | rmap.c | 55 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_rmapbt_xref_refc() 64 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc() 66 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_rmapbt_xref_refc() 69 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_rmapbt_xref_refc() 180 return xchk_btree(sc, sc->sa.rmap_cur, xchk_rmapbt_rec, in xchk_rmapbt() 196 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_check_owner() 199 error = xfs_rmap_record_exists(sc->sa.rmap_cur, bno, len, oinfo, in xchk_xref_check_owner() 201 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_xref_check_owner() 204 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_xref_check_owner() 239 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_xref_has_no_owner() [all …]
|
D | agheader_repair.c | 101 if (!xfs_verify_agbno(mp, sc->sa.agno, agbno)) in xrep_agf_check_agfl_block() 195 agf->agf_seqno = cpu_to_be32(sc->sa.agno); in xrep_agf_init_header() 196 agf->agf_length = cpu_to_be32(xfs_ag_block_count(mp, sc->sa.agno)); in xrep_agf_init_header() 204 ASSERT(sc->sa.pag->pagf_init); in xrep_agf_init_header() 205 sc->sa.pag->pagf_init = 0; in xrep_agf_init_header() 253 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agf_calc_from_btrees() 267 cur = xfs_allocbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno, in xrep_agf_calc_from_btrees() 276 cur = xfs_rmapbt_init_cursor(mp, sc->tp, agf_bp, sc->sa.agno); in xrep_agf_calc_from_btrees() 289 sc->sa.agno); in xrep_agf_calc_from_btrees() 320 pag = sc->sa.pag; in xrep_agf_commit_new() [all …]
|
D | ialloc.c | 63 pcur = &sc->sa.ino_cur; in xchk_iallocbt_chunk_xref_other() 65 pcur = &sc->sa.fino_cur; in xchk_iallocbt_chunk_xref_other() 375 if (!sc->sa.ino_cur || !sc->sa.rmap_cur || in xchk_iallocbt_xref_rmap_btreeblks() 376 (xfs_sb_version_hasfinobt(&sc->mp->m_sb) && !sc->sa.fino_cur) || in xchk_iallocbt_xref_rmap_btreeblks() 381 error = xfs_btree_count_blocks(sc->sa.ino_cur, &inobt_blocks); in xchk_iallocbt_xref_rmap_btreeblks() 385 if (sc->sa.fino_cur) { in xchk_iallocbt_xref_rmap_btreeblks() 386 error = xfs_btree_count_blocks(sc->sa.fino_cur, &finobt_blocks); in xchk_iallocbt_xref_rmap_btreeblks() 392 error = xchk_count_rmap_ownedby_ag(sc, sc->sa.rmap_cur, &oinfo, in xchk_iallocbt_xref_rmap_btreeblks() 394 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_iallocbt_xref_rmap_btreeblks() 397 xchk_btree_set_corrupt(sc, sc->sa.ino_cur, 0); in xchk_iallocbt_xref_rmap_btreeblks() [all …]
|
D | alloc.c | 55 pcur = &sc->sa.cnt_cur; in xchk_allocbt_xref_other() 57 pcur = &sc->sa.bno_cur; in xchk_allocbt_xref_other() 132 cur = which == XFS_BTNUM_BNO ? sc->sa.bno_cur : sc->sa.cnt_cur; in xchk_allocbt() 160 if (!sc->sa.bno_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_used_space() 163 error = xfs_alloc_has_record(sc->sa.bno_cur, agbno, len, &is_freesp); in xchk_xref_is_used_space() 164 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_xref_is_used_space() 167 xchk_btree_xref_set_corrupt(sc, sc->sa.bno_cur, 0); in xchk_xref_is_used_space()
|
D | common.h | 116 void xchk_ag_free(struct xfs_scrub *sc, struct xchk_ag *sa); 118 struct xchk_ag *sa); 119 void xchk_perag_get(struct xfs_mount *mp, struct xchk_ag *sa); 123 void xchk_ag_btcur_free(struct xchk_ag *sa); 124 int xchk_ag_btcur_init(struct xfs_scrub *sc, struct xchk_ag *sa);
|
D | inode.c | 438 if (!sc->sa.fino_cur || xchk_skip_xref(sc->sm)) in xchk_inode_xref_finobt() 447 error = xfs_inobt_lookup(sc->sa.fino_cur, agino, XFS_LOOKUP_LE, in xchk_inode_xref_finobt() 449 if (!xchk_should_check_xref(sc, &error, &sc->sa.fino_cur) || in xchk_inode_xref_finobt() 453 error = xfs_inobt_get_rec(sc->sa.fino_cur, &rec, &has_record); in xchk_inode_xref_finobt() 454 if (!xchk_should_check_xref(sc, &error, &sc->sa.fino_cur) || in xchk_inode_xref_finobt() 467 xchk_btree_xref_set_corrupt(sc, sc->sa.fino_cur, 0); in xchk_inode_xref_finobt() 522 error = xchk_ag_init(sc, agno, &sc->sa); in xchk_inode_xref() 533 xchk_ag_free(sc, &sc->sa); in xchk_inode_xref()
|
D | bmap.c | 141 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap() 144 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap() 152 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 0, owner, in xchk_bmap_get_rmap() 155 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap() 160 error = xfs_rmap_get_rec(info->sc->sa.rmap_cur, rmap, &has_rmap); in xchk_bmap_get_rmap() 162 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap() 183 if (!info->sc->sa.rmap_cur || xchk_skip_xref(info->sc->sm)) in xchk_bmap_xref_rmap() 278 error = xchk_ag_init(info->sc, agno, &info->sc->sa); in xchk_bmap_extent_xref() 301 xchk_ag_free(info->sc, &info->sc->sa); in xchk_bmap_extent_xref()
|
/linux-4.19.296/include/net/phonet/ |
D | phonet.h | 51 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *sa); 81 void pn_skb_get_src_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa) in pn_skb_get_src_sockaddr() argument 86 sa->spn_family = AF_PHONET; in pn_skb_get_src_sockaddr() 87 pn_sockaddr_set_object(sa, obj); in pn_skb_get_src_sockaddr() 88 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_src_sockaddr() 89 memset(sa->spn_zero, 0, sizeof(sa->spn_zero)); in pn_skb_get_src_sockaddr() 93 void pn_skb_get_dst_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa) in pn_skb_get_dst_sockaddr() argument 98 sa->spn_family = AF_PHONET; in pn_skb_get_dst_sockaddr() 99 pn_sockaddr_set_object(sa, obj); in pn_skb_get_dst_sockaddr() 100 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_dst_sockaddr() [all …]
|
/linux-4.19.296/include/linux/sunrpc/ |
D | svc_xprt.h | 144 const struct sockaddr *sa, in svc_xprt_set_local() argument 147 memcpy(&xprt->xpt_local, sa, salen); in svc_xprt_set_local() 151 const struct sockaddr *sa, in svc_xprt_set_remote() argument 154 memcpy(&xprt->xpt_remote, sa, salen); in svc_xprt_set_remote() 157 "%pISpc", sa); in svc_xprt_set_remote() 160 static inline unsigned short svc_addr_port(const struct sockaddr *sa) in svc_addr_port() argument 162 const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; in svc_addr_port() 163 const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sa; in svc_addr_port() 165 switch (sa->sa_family) { in svc_addr_port() 175 static inline size_t svc_addr_len(const struct sockaddr *sa) in svc_addr_len() argument [all …]
|
D | addr.h | 176 static inline u32 rpc_get_scope_id(const struct sockaddr *sa) in rpc_get_scope_id() argument 178 if (sa->sa_family != AF_INET6) in rpc_get_scope_id() 181 return ((struct sockaddr_in6 *) sa)->sin6_scope_id; in rpc_get_scope_id()
|
/linux-4.19.296/include/net/ |
D | ieee802154_netdev.h | 195 struct ieee802154_addr_sa *sa; in ieee802154_sockaddr_check_size() local 198 sa = &daddr->addr; in ieee802154_sockaddr_check_size() 201 switch (sa->addr_type) { in ieee802154_sockaddr_check_size() 220 const struct ieee802154_addr_sa *sa) in ieee802154_addr_from_sa() argument 222 a->mode = sa->addr_type; in ieee802154_addr_from_sa() 223 a->pan_id = cpu_to_le16(sa->pan_id); in ieee802154_addr_from_sa() 227 a->short_addr = cpu_to_le16(sa->short_addr); in ieee802154_addr_from_sa() 230 a->extended_addr = ieee802154_devaddr_from_raw(sa->hwaddr); in ieee802154_addr_from_sa() 235 static inline void ieee802154_addr_to_sa(struct ieee802154_addr_sa *sa, in ieee802154_addr_to_sa() argument 238 sa->addr_type = a->mode; in ieee802154_addr_to_sa() [all …]
|
/linux-4.19.296/lib/ |
D | test_printf.c | 349 struct sockaddr_in sa; in ip4() local 351 sa.sin_family = AF_INET; in ip4() 352 sa.sin_port = cpu_to_be16(12345); in ip4() 353 sa.sin_addr.s_addr = cpu_to_be32(0x7f000001); in ip4() 355 test("127.000.000.001|127.0.0.1", "%pi4|%pI4", &sa.sin_addr, &sa.sin_addr); in ip4() 356 test("127.000.000.001|127.0.0.1", "%piS|%pIS", &sa, &sa); in ip4() 357 sa.sin_addr.s_addr = cpu_to_be32(0x01020304); in ip4() 358 test("001.002.003.004:12345|1.2.3.4:12345", "%piSp|%pISp", &sa, &sa); in ip4()
|
/linux-4.19.296/crypto/ |
D | twofish_common.c | 497 ctx->s[0][i] = mds[0][q0[(a) ^ sa] ^ se]; \ 505 ctx->s[0][i] = mds[0][q0[q0[(b) ^ sa] ^ se] ^ si]; \ 513 ctx->s[0][i] = mds[0][q0[q0[q1[(b) ^ sa] ^ se] ^ si] ^ sm]; \ 592 u8 sa = 0, sb = 0, sc = 0, sd = 0, se = 0, sf = 0, sg = 0, sh = 0; in __twofish_setkey() local 609 CALC_S (sa, sb, sc, sd, 0, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */ in __twofish_setkey() 610 CALC_S (sa, sb, sc, sd, 1, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */ in __twofish_setkey() 611 CALC_S (sa, sb, sc, sd, 2, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */ in __twofish_setkey() 612 CALC_S (sa, sb, sc, sd, 3, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */ in __twofish_setkey() 613 CALC_S (sa, sb, sc, sd, 4, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */ in __twofish_setkey() 614 CALC_S (sa, sb, sc, sd, 5, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */ in __twofish_setkey() [all …]
|
D | af_alg.c | 154 struct sockaddr_alg_new *sa = (void *)uaddr; in alg_bind() local 164 BUILD_BUG_ON(offsetof(struct sockaddr_alg, salg_name) != sizeof(*sa)); in alg_bind() 166 if (addr_len < sizeof(*sa) + 1) in alg_bind() 170 if ((sa->salg_feat & ~allowed) || (sa->salg_mask & ~allowed)) in alg_bind() 173 sa->salg_type[sizeof(sa->salg_type) - 1] = 0; in alg_bind() 174 sa->salg_name[addr_len - sizeof(*sa) - 1] = 0; in alg_bind() 176 type = alg_get_type(sa->salg_type); in alg_bind() 178 request_module("algif-%s", sa->salg_type); in alg_bind() 179 type = alg_get_type(sa->salg_type); in alg_bind() 185 private = type->bind(sa->salg_name, sa->salg_feat, sa->salg_mask); in alg_bind()
|
/linux-4.19.296/fs/ubifs/ |
D | gc.c | 125 struct ubifs_scan_node *sa, *sb; in data_nodes_cmp() local 131 sa = list_entry(a, struct ubifs_scan_node, list); in data_nodes_cmp() 134 ubifs_assert(c, key_type(c, &sa->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 136 ubifs_assert(c, sa->type == UBIFS_DATA_NODE); in data_nodes_cmp() 139 inuma = key_inum(c, &sa->key); in data_nodes_cmp() 143 unsigned int blka = key_block(c, &sa->key); in data_nodes_cmp() 169 struct ubifs_scan_node *sa, *sb; in nondata_nodes_cmp() local 175 sa = list_entry(a, struct ubifs_scan_node, list); in nondata_nodes_cmp() 178 ubifs_assert(c, key_type(c, &sa->key) != UBIFS_DATA_KEY && in nondata_nodes_cmp() 180 ubifs_assert(c, sa->type != UBIFS_DATA_NODE && in nondata_nodes_cmp() [all …]
|
/linux-4.19.296/include/linux/ |
D | atalk.h | 124 extern struct net_device *atrtr_get_dev(struct atalk_addr *sa); 127 struct atalk_addr *sa, void *hwaddr); 131 struct atalk_addr *sa); 133 struct atalk_addr *sa);
|
/linux-4.19.296/fs/btrfs/ |
D | ioctl.c | 4715 struct btrfs_ioctl_scrub_args *sa; in btrfs_ioctl_scrub() local 4721 sa = memdup_user(arg, sizeof(*sa)); in btrfs_ioctl_scrub() 4722 if (IS_ERR(sa)) in btrfs_ioctl_scrub() 4723 return PTR_ERR(sa); in btrfs_ioctl_scrub() 4725 if (sa->flags & ~BTRFS_SCRUB_SUPPORTED_FLAGS) { in btrfs_ioctl_scrub() 4730 if (!(sa->flags & BTRFS_SCRUB_READONLY)) { in btrfs_ioctl_scrub() 4736 ret = btrfs_scrub_dev(fs_info, sa->devid, sa->start, sa->end, in btrfs_ioctl_scrub() 4737 &sa->progress, sa->flags & BTRFS_SCRUB_READONLY, in btrfs_ioctl_scrub() 4740 if (copy_to_user(arg, sa, sizeof(*sa))) in btrfs_ioctl_scrub() 4743 if (!(sa->flags & BTRFS_SCRUB_READONLY)) in btrfs_ioctl_scrub() [all …]
|
/linux-4.19.296/fs/nfsd/ |
D | fault_inject.c | 51 struct sockaddr_storage sa; in fault_inject_write() local 67 size = rpc_pton(net, write_buf, size, (struct sockaddr *)&sa, sizeof(sa)); in fault_inject_write() 69 val = op->set_clnt(&sa, size); in fault_inject_write()
|
/linux-4.19.296/fs/cifs/ |
D | fscache.c | 45 const struct sockaddr *sa = (struct sockaddr *) &server->dstaddr; in cifs_fscache_get_client_cookie() local 46 const struct sockaddr_in *addr = (struct sockaddr_in *) sa; in cifs_fscache_get_client_cookie() 47 const struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *) sa; in cifs_fscache_get_client_cookie() 57 key.hdr.family = sa->sa_family; in cifs_fscache_get_client_cookie() 58 switch (sa->sa_family) { in cifs_fscache_get_client_cookie() 72 cifs_dbg(VFS, "Unknown network family '%d'\n", sa->sa_family); in cifs_fscache_get_client_cookie()
|
/linux-4.19.296/fs/udf/ |
D | directory.c | 202 struct short_ad *sa; in udf_get_fileshortad() local 212 sa = (struct short_ad *)ptr; in udf_get_fileshortad() 213 if (sa->extLength == 0) in udf_get_fileshortad() 219 return sa; in udf_get_fileshortad()
|
/linux-4.19.296/drivers/s390/char/ |
D | zcore.c | 128 struct save_area *sa; in init_cpu_info() local 131 sa = save_area_boot_cpu(); in init_cpu_info() 132 if (!sa) in init_cpu_info() 138 save_area_add_regs(sa, hsa_buf); /* vx registers are saved in smp.c */ in init_cpu_info()
|