Home
last modified time | relevance | path

Searched refs:stid (Results 1 – 22 of 22) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.h148 static inline void *lookup_stid(const struct tid_info *t, unsigned int stid) in lookup_stid() argument
151 if (t->nsftids && (stid >= t->sftid_base)) { in lookup_stid()
152 stid -= t->sftid_base; in lookup_stid()
153 stid += t->nstids; in lookup_stid()
155 stid -= t->stid_base; in lookup_stid()
158 return stid < (t->nstids + t->nsftids) ? t->stid_tab[stid].data : NULL; in lookup_stid()
183 void cxgb4_free_stid(struct tid_info *t, unsigned int stid, int family);
188 int cxgb4_create_server(const struct net_device *dev, unsigned int stid,
191 int cxgb4_create_server6(const struct net_device *dev, unsigned int stid,
194 int cxgb4_remove_server(const struct net_device *dev, unsigned int stid,
[all …]
Dcxgb4_main.c1124 int stid; in cxgb4_alloc_stid() local
1128 stid = find_first_zero_bit(t->stid_bmap, t->nstids); in cxgb4_alloc_stid()
1129 if (stid < t->nstids) in cxgb4_alloc_stid()
1130 __set_bit(stid, t->stid_bmap); in cxgb4_alloc_stid()
1132 stid = -1; in cxgb4_alloc_stid()
1134 stid = bitmap_find_free_region(t->stid_bmap, t->nstids, 1); in cxgb4_alloc_stid()
1135 if (stid < 0) in cxgb4_alloc_stid()
1136 stid = -1; in cxgb4_alloc_stid()
1138 if (stid >= 0) { in cxgb4_alloc_stid()
1139 t->stid_tab[stid].data = data; in cxgb4_alloc_stid()
[all …]
/Linux-v4.19/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c83 unsigned int stid) in cxgbit_np_hash_add() argument
91 p->stid = stid; in cxgbit_np_hash_add()
104 int stid = -1, bucket = cxgbit_np_hashfn(cnp); in cxgbit_np_hash_find() local
110 stid = p->stid; in cxgbit_np_hash_find()
116 return stid; in cxgbit_np_hash_find()
121 int stid = -1, bucket = cxgbit_np_hashfn(cnp); in cxgbit_np_hash_del() local
127 stid = p->stid; in cxgbit_np_hash_del()
135 return stid; in cxgbit_np_hash_del()
147 cxgbit_create_server6(struct cxgbit_device *cdev, unsigned int stid, in cxgbit_create_server6() argument
156 __func__, cdev->lldi.ports[0]->name, stid, sin6->sin6_port); in cxgbit_create_server6()
[all …]
Dcxgbit.h125 unsigned int stid; member
189 unsigned int stid; member
/Linux-v4.19/drivers/crypto/chelsio/chtls/
Dchtls_cm.c506 unsigned int stid) in listen_hash_add() argument
514 p->stid = stid; in listen_hash_add()
527 int stid = -1; in listen_hash_find() local
535 stid = p->stid; in listen_hash_find()
539 return stid; in listen_hash_find()
546 int stid = -1; in listen_hash_del() local
555 stid = p->stid; in listen_hash_del()
561 return stid; in listen_hash_del()
606 int stid; in chtls_listen_start() local
636 stid = cxgb4_alloc_stid(cdev->tids, sk->sk_family, ctx); in chtls_listen_start()
[all …]
Dchtls.h75 unsigned int stid; /* The server TID */ member
/Linux-v4.19/arch/mips/include/asm/netlogic/xlr/
Dfmn.h202 static inline void nlm_msgsnd(unsigned int stid) in nlm_msgsnd() argument
211 : : "r" (stid) : "$1" in nlm_msgsnd()
276 unsigned int stid, struct nlm_fmn_msg *msg) in nlm_fmn_send() argument
294 dest = ((size - 1) << 16) | (code << 8) | stid; in nlm_fmn_send()
312 static inline int nlm_fmn_receive(int bucket, int *size, int *code, int *stid, in nlm_fmn_receive() argument
331 *stid = (status & 0x7f0000) >> 16; in nlm_fmn_receive()
/Linux-v4.19/fs/nfsd/
Dnfs4layouts.c155 nfsd4_free_layout_stateid(struct nfs4_stid *stid) in nfsd4_free_layout_stateid() argument
157 struct nfs4_layout_stateid *ls = layoutstateid(stid); in nfsd4_free_layout_stateid()
270 struct nfs4_stid *stid; in nfsd4_preprocess_layout_stateid() local
277 status = nfsd4_lookup_stateid(cstate, stateid, typemask, &stid, in nfsd4_preprocess_layout_stateid()
283 &stid->sc_file->fi_fhandle)) { in nfsd4_preprocess_layout_stateid()
288 if (stid->sc_type != NFS4_LAYOUT_STID) { in nfsd4_preprocess_layout_stateid()
289 ls = nfsd4_alloc_layout_stateid(cstate, stid, layout_type); in nfsd4_preprocess_layout_stateid()
290 nfs4_put_stid(stid); in nfsd4_preprocess_layout_stateid()
297 ls = container_of(stid, struct nfs4_layout_stateid, ls_stid); in nfsd4_preprocess_layout_stateid()
301 if (nfsd4_stateid_generation_after(stateid, &stid->sc_stateid)) in nfsd4_preprocess_layout_stateid()
[all …]
Dnfs4state.c79 static void nfs4_free_ol_stateid(struct nfs4_stid *stid);
678 struct nfs4_stid *stid; in nfs4_alloc_stid() local
681 stid = kmem_cache_zalloc(slab, GFP_KERNEL); in nfs4_alloc_stid()
682 if (!stid) in nfs4_alloc_stid()
687 new_id = idr_alloc_cyclic(&cl->cl_stateids, stid, 0, 0, GFP_NOWAIT); in nfs4_alloc_stid()
693 stid->sc_free = sc_free; in nfs4_alloc_stid()
694 stid->sc_client = cl; in nfs4_alloc_stid()
695 stid->sc_stateid.si_opaque.so_id = new_id; in nfs4_alloc_stid()
696 stid->sc_stateid.si_opaque.so_clid = cl->cl_clientid; in nfs4_alloc_stid()
698 refcount_set(&stid->sc_count, 1); in nfs4_alloc_stid()
[all …]
Dstate.h613 void nfs4_inc_and_copy_stateid(stateid_t *dst, struct nfs4_stid *stid);
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_defs.h54 unsigned int stid) in stid2entry() argument
56 return &t->stid_tab[stid - t->stid_base]; in stid2entry()
Dcxgb3_offload.c521 void cxgb3_free_stid(struct t3cdev *tdev, int stid) in cxgb3_free_stid() argument
524 union listen_entry *p = stid2entry(t, stid); in cxgb3_free_stid()
677 int stid = -1; in cxgb3_alloc_stid() local
684 stid = (p - t->stid_tab) + t->stid_base; in cxgb3_alloc_stid()
691 return stid; in cxgb3_alloc_stid()
762 unsigned int stid = G_TID(ntohl(p->opcode_tid)); in do_stid_rpl() local
765 t3c_tid = lookup_stid(&(T3C_DATA(dev))->tid_maps, stid); in do_stid_rpl()
798 unsigned int stid = G_PASS_OPEN_TID(ntohl(req->tos_tid)); in do_cr() local
810 t3c_tid = lookup_stid(t, stid); in do_cr()
Dcxgb3_offload.h101 void cxgb3_free_stid(struct t3cdev *dev, int stid);
/Linux-v4.19/arch/powerpc/kvm/
De500_mmu_host.c149 int stid; in write_stlbe() local
152 stid = kvmppc_e500_get_tlb_stid(&vcpu_e500->vcpu, gtlbe); in write_stlbe()
154 stlbe->mas1 |= MAS1_TID(stid); in write_stlbe()
166 unsigned int stid; in kvmppc_map_magic() local
173 stid = kvmppc_e500_get_sid(vcpu_e500, 0, 0, 0, 0); in kvmppc_map_magic()
175 magic.mas1 = MAS1_VALID | MAS1_TS | MAS1_TID(stid) | in kvmppc_map_magic()
/Linux-v4.19/drivers/infiniband/hw/cxgb4/
Dcm.c370 unsigned int stid) in get_ep_from_stid() argument
376 ep = idr_find(&dev->stid_idr, stid); in get_ep_from_stid()
2334 unsigned int stid = GET_TID(rpl); in pass_open_rpl() local
2335 struct c4iw_listen_ep *ep = get_ep_from_stid(dev, stid); in pass_open_rpl()
2338 pr_warn("%s stid %d lookup failure!\n", __func__, stid); in pass_open_rpl()
2352 unsigned int stid = GET_TID(rpl); in close_listsrv_rpl() local
2353 struct c4iw_listen_ep *ep = get_ep_from_stid(dev, stid); in close_listsrv_rpl()
2356 pr_warn("%s stid %d lookup failure!\n", __func__, stid); in close_listsrv_rpl()
2471 unsigned int stid = PASS_OPEN_TID_G(ntohl(req->tos_stid)); in pass_accept_req() local
2484 parent_ep = (struct c4iw_ep *)get_ep_from_stid(dev, stid); in pass_accept_req()
[all …]
Drestrack.c245 if (rdma_nl_put_driver_u32(msg, "stid", listen_ep->stid)) in fill_res_ep_entry()
Ddevice.c641 ep->com.flags, ep->stid, ep->backlog, in dump_listen_ep()
654 ep->com.flags, ep->stid, ep->backlog, in dump_listen_ep()
Diw_cxgb4.h942 unsigned int stid; member
/Linux-v4.19/drivers/gpu/drm/vmwgfx/device_include/
Dsvga3d_cmd.h2099 uint32 stid; member
2119 uint32 stid; member
2127 uint32 stid; member
2136 uint32 stid; member
2167 uint32 stid; member
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_stdu.c176 cmd->body.stid = stdu->base.unit; in vmw_stdu_define_st()
179 cmd->body.flags = (0 == cmd->body.stid) ? SVGA_STFLAG_PRIMARY : 0; in vmw_stdu_define_st()
238 cmd->body.stid = stdu->base.unit; in vmw_stdu_bind_st()
265 update->body.stid = unit; in vmw_stdu_populate_update()
344 cmd->body.stid = stdu->base.unit; in vmw_stdu_destroy_st()
/Linux-v4.19/drivers/infiniband/hw/cxgb3/
Diwch_cm.h171 unsigned int stid; member
Diwch_cm.c1208 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_PASS_OPEN_REQ, ep->stid)); in listen_start()
1250 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, ep->stid)); in listen_stop()
2003 ep->stid = cxgb3_alloc_stid(h->rdev.t3cdev_p, &t3c_client, ep); in iwch_create_listen()
2004 if (ep->stid == -1) { in iwch_create_listen()
2023 cxgb3_free_stid(ep->com.tdev, ep->stid); in iwch_create_listen()
2047 cxgb3_free_stid(ep->com.tdev, ep->stid); in iwch_destroy_listen()