Home
last modified time | relevance | path

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

/Linux-v5.15/fs/nfs/
Dnfs4_fs.h97 static inline void nfs_confirm_seqid(struct nfs_seqid_counter *seqid, int status) in nfs_confirm_seqid() argument
100 seqid->flags |= NFS_SEQID_CONFIRMED; in nfs_confirm_seqid()
520 extern int nfs_wait_on_sequence(struct nfs_seqid *seqid, struct rpc_task *task);
521 extern void nfs_increment_open_seqid(int status, struct nfs_seqid *seqid);
522 extern void nfs_increment_lock_seqid(int status, struct nfs_seqid *seqid);
523 extern void nfs_release_seqid(struct nfs_seqid *seqid);
524 extern void nfs_free_seqid(struct nfs_seqid *seqid);
602 return (s32)(be32_to_cpu(s1->seqid) - be32_to_cpu(s2->seqid)) > 0; in nfs4_stateid_is_newer()
607 u32 seq1 = be32_to_cpu(s1->seqid); in nfs4_stateid_is_next()
608 u32 seq2 = be32_to_cpu(s2->seqid); in nfs4_stateid_is_next()
[all …]
Dnfs4state.c1069 dst->seqid = 0; in nfs4_select_rw_stateid()
1086 void nfs_release_seqid(struct nfs_seqid *seqid) in nfs_release_seqid() argument
1090 if (seqid == NULL || list_empty(&seqid->list)) in nfs_release_seqid()
1092 sequence = seqid->sequence; in nfs_release_seqid()
1094 list_del_init(&seqid->list); in nfs_release_seqid()
1105 void nfs_free_seqid(struct nfs_seqid *seqid) in nfs_free_seqid() argument
1107 nfs_release_seqid(seqid); in nfs_free_seqid()
1108 kfree(seqid); in nfs_free_seqid()
1116 static void nfs_increment_seqid(int status, struct nfs_seqid *seqid) in nfs_increment_seqid() argument
1122 if (seqid->sequence->flags & NFS_SEQID_CONFIRMED) in nfs_increment_seqid()
[all …]
Ddelegation.c406 delegation->stateid.seqid = update->stateid.seqid; in nfs_update_inplace_delegation()
938 if (stateid->seqid) { in nfs_revoke_delegation()
943 delegation->stateid.seqid = stateid->seqid; in nfs_revoke_delegation()
978 if (stateid->seqid) { in nfs_delegation_mark_returned()
982 if (delegation->stateid.seqid != stateid->seqid) in nfs_delegation_mark_returned()
983 delegation->stateid.seqid = stateid->seqid; in nfs_delegation_mark_returned()
1410 dst->seqid = delegation->stateid.seqid; in nfs4_refresh_delegation_stateid()
Dnfs4trace.h820 be32_to_cpu(state->stateid.seqid);
824 be32_to_cpu(state->open_stateid.seqid);
899 be32_to_cpu(state->stateid.seqid);
945 be32_to_cpu(args->stateid.seqid);
1017 be32_to_cpu(state->stateid.seqid);
1089 be32_to_cpu(state->stateid.seqid);
1093 be32_to_cpu(lockstateid->seqid);
1182 be32_to_cpu(state->stateid.seqid);
1260 be32_to_cpu(args->stateid->seqid);
1303 be32_to_cpu(state->stateid.seqid);
[all …]
Dnfs4proc.c1333 p->o_res.seqid = p->o_arg.seqid; in nfs4_init_opendata_res()
1334 p->c_res.seqid = p->c_arg.seqid; in nfs4_init_opendata_res()
1367 p->o_arg.seqid = alloc_seqid(&sp->so_seqid, gfp_mask); in nfs4_opendata_alloc()
1368 if (IS_ERR(p->o_arg.seqid)) in nfs4_opendata_alloc()
1434 p->c_arg.seqid = p->o_arg.seqid; in nfs4_opendata_alloc()
1457 nfs_free_seqid(p->o_arg.seqid); in nfs4_opendata_free()
1618 if (stateid->seqid == cpu_to_be32(1)) in nfs_stateid_is_sequential()
1911 nfs_release_seqid(opendata->o_arg.seqid); in nfs4_try_open_cached()
2069 nfs_release_seqid(data->o_arg.seqid); in _nfs4_opendata_to_nfs4_state()
2434 if (nfs_wait_on_sequence(data->o_arg.seqid, task) != 0) in nfs4_open_prepare()
[all …]
Dpnfs.c355 seq = be32_to_cpu(lo->plh_stateid.seqid); in pnfs_set_plh_return_info()
427 dst->seqid = lo->plh_stateid.seqid; in nfs4_layout_refresh_old_stateid()
539 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg()
969 u32 oldseq = be32_to_cpu(lo->plh_stateid.seqid); in pnfs_set_layout_stateid()
970 u32 newseq = be32_to_cpu(new->seqid); in pnfs_set_layout_stateid()
994 pnfs_barrier_update(lo, be32_to_cpu(lo->plh_stateid.seqid)); in pnfs_set_layout_stateid()
1001 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked() local
1003 return lo->plh_barrier && pnfs_seqid_is_newer(lo->plh_barrier, seqid); in pnfs_layout_stateid_blocked()
1164 u32 seq = be32_to_cpu(arg_stateid->seqid); in pnfs_layoutreturn_free_lsegs()
1195 stateid->seqid = cpu_to_be32(lo->plh_return_seq); in pnfs_prepare_layoutreturn()
[all …]
Dcallback_proc.c222 newseq = be32_to_cpu(new->seqid); in pnfs_check_callback_stateid()
234 oldseq = be32_to_cpu(lo->plh_stateid.seqid); in pnfs_check_callback_stateid()
284 be32_to_cpu(args->cbl_stateid.seqid))) { in initiate_file_draining()
Dnfs4xdr.c1021 const struct nfs_seqid *seqid) in encode_nfs4_seqid() argument
1023 if (seqid != NULL) in encode_nfs4_seqid()
1024 encode_uint32(xdr, seqid->sequence->counter); in encode_nfs4_seqid()
1209 encode_nfs4_seqid(xdr, arg->seqid); in encode_close()
1377 encode_nfs4_seqid(xdr, args->seqid); in encode_locku()
1417 encode_nfs4_seqid(xdr, arg->seqid); in encode_openhdr()
1566 encode_nfs4_seqid(xdr, arg->seqid); in encode_open_confirm()
1573 encode_nfs4_seqid(xdr, arg->seqid); in encode_open_downgrade()
1862 *p++ = cpu_to_be32(args->seqid); /*Sequence id */ in encode_create_session()
4339 nfs_increment_open_seqid(status, res->seqid); in decode_close()
[all …]
/Linux-v5.15/arch/sparc/kernel/
Dldc.c67 u32 seqid; member
436 p->seqid = 0; in send_rts()
440 p->env, p->seqid); in send_rts()
456 p->seqid = 0; in send_rtr()
459 p->env, p->seqid); in send_rtr()
475 p->seqid = ++lp->snd_nxt; in send_rdx()
479 p->env, p->seqid, p->u.r.ackid); in send_rdx()
499 p->seqid = lp->snd_nxt + 1; in send_data_nack()
503 p->type, p->ctrl, p->seqid, p->u.r.ackid); in send_data_nack()
673 p->stype, p->seqid, p->env); in process_rts()
[all …]
/Linux-v5.15/drivers/ptp/
Dptp_ines.c142 u16 seqid; member
319 ts.seqid = ines_read32(port, ts_tx); in ines_find_txts()
439 u16 portn, seqid; in ines_match() local
453 seqid = be16_to_cpu(hdr->sequence_id); in ines_match()
470 if (ts->seqid != seqid) { in ines_match()
472 ts->seqid, seqid); in ines_match()
533 ts->seqid = ines_read32(port, ts_rx); in ines_rxfifo_read()
/Linux-v5.15/include/linux/
Dnfs_xdr.h458 struct nfs_seqid * seqid; member
492 struct nfs_seqid * seqid; member
514 struct nfs_seqid * seqid; member
520 struct nfs_seqid * seqid; member
530 struct nfs_seqid * seqid; member
542 struct nfs_seqid * seqid; member
582 struct nfs_seqid * seqid; member
589 struct nfs_seqid * seqid; member
1360 u32 seqid; member
1371 uint32_t seqid; member
[all …]
Dnfs4.h59 __be32 seqid; member
/Linux-v5.15/drivers/char/ipmi/
Dipmi_msghandler.c243 long seqid; member
257 #define STORE_SEQ_IN_MSGID(seq, seqid) \ argument
258 ((((seq) & 0x3f) << 26) | ((seqid) & 0x3ffffff))
260 #define GET_SEQ_FROM_MSGID(msgid, seq, seqid) \ argument
263 seqid = ((msgid) & 0x3ffffff); \
266 #define NEXT_SEQID(seqid) (((seqid) + 1) & 0x3ffffff) argument
998 long *seqid) in intf_next_seq() argument
1026 intf->seq_table[i].seqid = NEXT_SEQID(intf->seq_table[i].seqid); in intf_next_seq()
1028 *seqid = intf->seq_table[i].seqid; in intf_next_seq()
1086 unsigned long seqid; in intf_start_seq_timer() local
[all …]
/Linux-v5.15/fs/nfsd/
Dtrace.h462 TP_PROTO(u32 seqid, const stateid_t *stp),
463 TP_ARGS(seqid, stp),
465 __field(u32, seqid)
472 __entry->seqid = seqid;
479 __entry->seqid, __entry->cl_boot, __entry->cl_id,
485 TP_PROTO(u32 seqid, const stateid_t *stp), \
486 TP_ARGS(seqid, stp))
Dnfs4state.c3249 exid->seqid = conf->cl_cs_slot.sl_seqid + 1; in nfsd4_exchange_id()
3269 check_slot_seqid(u32 seqid, u32 slot_seqid, int slot_inuse) in check_slot_seqid() argument
3271 dprintk("%s enter. seqid %d slot_seqid %d\n", __func__, seqid, in check_slot_seqid()
3276 if (seqid == slot_seqid) in check_slot_seqid()
3282 if (likely(seqid == slot_seqid + 1)) in check_slot_seqid()
3284 if (seqid == slot_seqid) in check_slot_seqid()
3449 status = check_slot_seqid(cr_ses->seqid, cs_slot->sl_seqid, 0); in nfsd4_create_session()
3466 status = check_slot_seqid(cr_ses->seqid, cs_slot->sl_seqid, 0); in nfsd4_create_session()
3499 cr_ses->seqid = cs_slot->sl_seqid; in nfsd4_create_session()
3826 status = check_slot_seqid(seq->seqid, slot->sl_seqid, in nfsd4_sequence()
[all …]
Dxdr4.h423 u32 seqid; member
434 u32 seqid; /* request/response */ member
Dstate.h219 u32 seqid; member
Dnfs4xdr.c1646 if (xdr_stream_decode_u32(argp->xdr, &sess->seqid) < 0) in nfsd4_decode_create_session()
1796 seq->seqid = be32_to_cpup(p++); in nfsd4_decode_sequence()
4370 *p++ = cpu_to_be32(exid->seqid); in nfsd4_encode_exchange_id()
4433 *p++ = cpu_to_be32(sess->seqid); in nfsd4_encode_create_session()
4486 *p++ = cpu_to_be32(seq->seqid); in nfsd4_encode_sequence()
Dnfs4proc.c1387 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation); in nfsd4_setup_inter_ssc()
/Linux-v5.15/drivers/net/phy/
Ddp83640.c83 u16 seqid; /* sequenceId[15:0] */ member
98 u16 seqid; member
282 rxts->seqid = p->seqid; in phy2rxts()
816 u16 seqid; in match() local
830 seqid = be16_to_cpu(hdr->sequence_id); in match()
831 if (rxts->seqid != seqid) in match()
/Linux-v5.15/drivers/net/ethernet/ti/
Dcpts.c451 u16 seqid; in cpts_skb_get_mtype_seqid() local
461 seqid = ntohs(hdr->sequence_id); in cpts_skb_get_mtype_seqid()
464 *mtype_seqid |= (seqid & SEQUENCE_ID_MASK) << SEQUENCE_ID_SHIFT; in cpts_skb_get_mtype_seqid()
Dam65-cpts.c755 u16 seqid; in am65_skb_get_mtype_seqid() local
765 seqid = ntohs(hdr->sequence_id); in am65_skb_get_mtype_seqid()
769 *mtype_seqid |= (seqid & AM65_CPTS_EVENT_1_SEQUENCE_ID_MASK); in am65_skb_get_mtype_seqid()
/Linux-v5.15/drivers/net/ethernet/mscc/
Docelot.c695 static bool ocelot_validate_ptp_skb(struct sk_buff *clone, u16 seqid) in ocelot_validate_ptp_skb() argument
703 return seqid == ntohs(hdr->sequence_id); in ocelot_validate_ptp_skb()
713 u32 val, id, seqid, txport; in ocelot_get_txtstamp() local
729 seqid = SYS_PTP_STATUS_PTP_MESS_SEQ_ID(val); in ocelot_get_txtstamp()
755 if (!ocelot_validate_ptp_skb(skb_match, seqid)) { in ocelot_get_txtstamp()
758 txport, seqid); in ocelot_get_txtstamp()
/Linux-v5.15/drivers/net/ethernet/xscale/
Dixp4xx_eth.c261 static int ixp_ptp_match(struct sk_buff *skb, u16 uid_hi, u32 uid_lo, u16 seqid) in ixp_ptp_match() argument
273 if (skb->len < offset + OFF_PTP_SEQUENCE_ID + sizeof(seqid)) in ixp_ptp_match()
283 seqid == ntohs(*id)); in ixp_ptp_match()
/Linux-v5.15/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c106 static int pch_ptp_match(struct sk_buff *skb, u16 uid_hi, u32 uid_lo, u16 seqid) in pch_ptp_match() argument
118 if (skb->len < offset + OFF_PTP_SEQUENCE_ID + sizeof(seqid)) in pch_ptp_match()
125 return (uid_hi == hi && uid_lo == lo && seqid == id); in pch_ptp_match()