Searched refs:handle (Results 1 - 25 of 50) sorted by relevance

12

/net/rfkill/
H A Dinput.c116 * handle global ops first -- during unlocked period
196 static void rfkill_event(struct input_handle *handle, unsigned int type, argument
224 struct input_handle *handle; local
227 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL);
228 if (!handle)
231 handle->dev = dev;
232 handle->handler = handler;
233 handle->name = "rfkill";
236 error = input_register_handle(handle);
240 error = input_open_device(handle);
253 rfkill_start(struct input_handle *handle) argument
270 rfkill_disconnect(struct input_handle *handle) argument
[all...]
/net/sched/
H A Dcls_fw.c54 static inline int fw_hash(u32 handle) argument
57 return ((handle >> 24) & 0xFFF) ^
58 ((handle >> 12) & 0xFFF) ^
59 (handle & 0xFFF);
61 return ((handle >> 22) & 0x7FF) ^
62 ((handle >> 11) & 0x7FF) ^
63 (handle & 0x7FF);
65 return ((handle >> 20) & 0x3FF) ^
66 ((handle >> 10) & 0x3FF) ^
67 (handle
117 fw_get(struct tcf_proto *tp, u32 handle) argument
236 fw_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg) argument
[all...]
H A Dcls_u32.c47 u32 handle; member in struct:tc_u_knode
67 u32 handle; member in struct:tc_u_hnode
242 u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) argument
247 if (ht->handle == handle)
254 u32_lookup_key(struct tc_u_hnode *ht, u32 handle) argument
259 sel = TC_U32_HASH(handle);
264 if (n->handle == handle)
271 static unsigned long u32_get(struct tcf_proto *tp, u32 handle) argument
468 gen_new_kid(struct tc_u_hnode *ht, u32 handle) argument
505 u32 handle = nla_get_u32(tb[TCA_U32_LINK]); local
547 u32_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg) argument
[all...]
H A Dcls_route.c56 u32 handle; member in struct:route4_filter
189 !(TC_H_MAJ(id^tp->q->handle)))) {
219 static unsigned long route4_get(struct tcf_proto *tp, u32 handle) argument
229 h1 = to_hash(handle);
233 h2 = from_hash(handle >> 16);
240 if (f->handle == handle)
301 h = f->handle;
340 u32 handle, struct route4_head *head,
356 if (new && handle
338 route4_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, struct route4_filter *f, u32 handle, struct route4_head *head, struct nlattr **tb, struct nlattr *est, int new) argument
431 route4_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg) argument
[all...]
H A Dcls_basic.c30 u32 handle; member in struct:basic_filter
61 static unsigned long basic_get(struct tcf_proto *tp, u32 handle) argument
71 if (f->handle == handle)
167 struct tcf_proto *tp, unsigned long base, u32 handle,
184 if (handle && f->handle != handle)
195 if (handle)
196 f->handle
166 basic_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg) argument
[all...]
H A Dcls_cgroup.c115 u32 handle; member in struct:cls_cgroup_head
158 static unsigned long cls_cgroup_get(struct tcf_proto *tp, u32 handle) argument
183 u32 handle, struct nlattr **tca,
196 if (!handle)
203 head->handle = handle;
210 if (handle != head->handle)
271 t->tcm_handle = head->handle;
181 cls_cgroup_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg) argument
H A Dcls_rsvp.h96 u32 handle; member in struct:rsvp_filter
224 static unsigned long rsvp_get(struct tcf_proto *tp, u32 handle) argument
229 unsigned int h1 = handle & 0xFF;
230 unsigned int h2 = (handle >> 8) & 0xFF;
237 if (f->handle == handle)
302 unsigned int h = f->handle;
421 u32 handle,
437 return handle ? -EINVAL : 0;
451 if (f->handle !
419 rsvp_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg) argument
[all...]
H A Dcls_tcindex.c96 res->classid = TC_H_MAKE(TC_H_MAJ(tp->q->handle), key);
108 static unsigned long tcindex_get(struct tcf_proto *tp, u32 handle) argument
113 pr_debug("tcindex_get(tp %p,handle 0x%08x)\n", tp, handle);
114 if (p->perfect && handle >= p->alloc_hash)
116 r = tcindex_lookup(p, handle);
201 u32 handle, struct tcindex_data *p,
261 /* Note: this could be as restrictive as if (handle & ~(mask >> shift))
267 if (handle >= cp.alloc_hash)
287 r = cp.perfect + handle;
200 tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, u32 handle, struct tcindex_data *p, struct tcindex_filter_result *r, struct nlattr **tb, struct nlattr *est) argument
336 tcindex_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg) argument
[all...]
H A Dcls_flow.c45 u32 handle; member in struct:flow_filter
356 u32 handle, struct nlattr **tca,
411 if (f->handle != handle && handle)
429 if (!handle)
447 baseclass = TC_H_MAKE(tp->q->handle, baseclass);
456 f->handle = handle;
554 static unsigned long flow_get(struct tcf_proto *tp, u32 handle) argument
354 flow_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg) argument
[all...]
H A Dsch_api.c203 /* We know handle. Find qdisc among all qdisc's attached to device
207 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) argument
212 root->handle == handle)
216 if (q->handle == handle)
235 struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle) argument
239 q = qdisc_match_from_root(dev->qdisc, handle);
246 handle);
472 txt, qdisc->ops->id, qdisc->handle >> 1
774 qdisc_create(struct net_device *dev, struct netdev_queue *dev_queue, struct Qdisc *p, u32 parent, u32 handle, struct nlattr **tca, int *errp) argument
[all...]
H A Dsch_dsmark.c65 sch->handle);
227 if (TC_H_MAJ(skb->priority) == sch->handle)
383 p->q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, sch->handle);
425 tcm->tcm_handle = TC_H_MAKE(TC_H_MAJ(sch->handle), cl - 1);
426 tcm->tcm_info = p->q->handle;
H A Dsch_atm.c202 if (parent && parent != TC_H_ROOT && parent != sch->handle)
252 if (TC_H_MAJ(classid ^ sch->handle)) {
262 classid = TC_H_MAKE(sch->handle, 0x8000 | i);
370 if (TC_H_MAJ(skb->priority) != sch->handle ||
543 &pfifo_qdisc_ops, sch->handle);
550 p->link.classid = sch->handle;
596 tcm->tcm_info = flow->q->handle;
H A Dsch_mq.c61 TC_H_MAKE(TC_H_MAJ(sch->handle),
188 tcm->tcm_info = dev_queue->qdisc_sleeping->handle;
H A Dsch_mqprio.c128 TC_H_MAKE(TC_H_MAJ(sch->handle),
308 TC_H_MAKE(TC_H_MAJ(sch->handle),
313 tcm->tcm_info = dev_queue->qdisc_sleeping->handle;
H A Dsch_prio.c42 if (TC_H_MAJ(skb->priority) != sch->handle) {
204 TC_H_MAKE(sch->handle, i + 1));
314 tcm->tcm_info = q->queues[cl-1]->handle;
/net/bluetooth/
H A Damp.c104 if (++mgr->handle == 0)
105 mgr->handle = 1;
107 return mgr->handle;
124 hcon->handle = __next_handle(mgr);
221 BT_DBG("%s handle %d", hdev->name, phy_handle);
249 cp.phy_handle = hcon->handle;
293 cp->phy_handle = hcon->handle;
310 void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle) argument
314 BT_DBG("%s phy handle 0x%2.2x", hdev->name, handle);
325 amp_write_remote_assoc(struct hci_dev *hdev, u8 handle) argument
[all...]
H A Dhci_conn.c138 cp.handle = cpu_to_le16(conn->handle);
151 cp.phy_handle = HCI_PHY_HANDLE(conn->handle);
157 static void hci_add_sco(struct hci_conn *conn, __u16 handle) argument
169 cp.handle = cpu_to_le16(handle);
175 void hci_setup_sync(struct hci_conn *conn, __u16 handle) argument
187 cp.handle = cpu_to_le16(handle);
207 cp.handle
1024 __hci_chan_lookup_handle(struct hci_conn *hcon, __u16 handle) argument
1037 hci_chan_lookup_handle(struct hci_dev *hdev, __u16 handle) argument
[all...]
H A Dhci_event.c105 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
128 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
152 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle));
1138 __u16 handle; local
1149 handle = __le16_to_cpu(cp->handle);
1151 BT_DBG("%s handle 0x%4.4x", hdev->name, handle);
1155 acl = hci_conn_hash_lookup_handle(hdev, handle);
1185 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(cp->handle));
1416 __u16 handle; local
2493 __u16 handle, count; local
2538 __hci_conn_lookup_handle(struct hci_dev *hdev, __u16 handle) argument
2581 __u16 handle, block_count; local
[all...]
/net/vmw_vsock/
H A Dvmci_transport.c143 struct vmci_handle handle)
145 /* We register the stream control handler as an any cid handle so we
172 pkt->u.handle = handle;
216 struct vmci_handle handle,
222 proto, handle);
236 struct vmci_handle handle)
249 handle, true);
260 struct vmci_handle handle)
271 VSOCK_PROTO_INVALID, handle,
135 vmci_transport_packet_init(struct vmci_transport_packet *pkt, struct sockaddr_vm *src, struct sockaddr_vm *dst, u8 type, u64 size, u64 mode, struct vmci_transport_waiting_info *wait, u16 proto, struct vmci_handle handle) argument
208 __vmci_transport_send_control_pkt(struct vmci_transport_packet *pkt, struct sockaddr_vm *src, struct sockaddr_vm *dst, enum vmci_transport_packet_type type, u64 size, u64 mode, struct vmci_transport_waiting_info *wait, u16 proto, struct vmci_handle handle, bool convert_error) argument
231 vmci_transport_reply_control_pkt_fast(struct vmci_transport_packet *pkt, enum vmci_transport_packet_type type, u64 size, u64 mode, struct vmci_transport_waiting_info *wait, struct vmci_handle handle) argument
254 vmci_transport_send_control_pkt_bh(struct sockaddr_vm *src, struct sockaddr_vm *dst, enum vmci_transport_packet_type type, u64 size, u64 mode, struct vmci_transport_waiting_info *wait, struct vmci_handle handle) argument
276 vmci_transport_send_control_pkt(struct sock *sk, enum vmci_transport_packet_type type, u64 size, u64 mode, struct vmci_transport_waiting_info *wait, u16 proto, struct vmci_handle handle) argument
352 vmci_transport_send_qp_offer(struct sock *sk, struct vmci_handle handle) argument
361 vmci_transport_send_attach(struct sock *sk, struct vmci_handle handle) argument
537 vmci_transport_queue_pair_alloc(struct vmci_qp **qpair, struct vmci_handle *handle, u64 produce_size, u64 consume_size, u32 peer, u32 flags, bool trusted) argument
1143 struct vmci_handle handle; local
1390 struct vmci_handle handle; local
[all...]
H A Dvmci_transport.h79 struct vmci_handle handle; member in union:vmci_transport_packet::__anon171
/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c24 * The context handle and gss_token are used as a key into the rpcsec_init cache.
61 * Key is context handle (\x if empty) and gss_token.
197 /* handle */
309 * The key is a context handle. The content is:
329 struct xdr_netobj handle; member in struct:rsc
340 kfree(rsci->handle.data);
357 return hash_mem(rsci->handle.data, rsci->handle.len, RSC_HASHBITS);
366 return netobj_equal(&new->handle, &tmp->handle);
568 gss_svc_searchbyctx(struct cache_detail *cd, struct xdr_netobj *handle) argument
1142 gss_proxy_save_rsc(struct cache_detail *cd, struct gssp_upcall_data *ud, uint64_t *handle) argument
1217 uint64_t handle; local
[all...]
/net/tipc/
H A Dcore.h181 void *handle; member in struct:tipc_skb_cb
/net/phonet/
H A Dsocket.c171 u16 handle; local
182 handle = pn_sockaddr_get_object((struct sockaddr_pn *)addr);
183 saddr = pn_addr(handle);
194 err = sk->sk_prot->get_port(sk, pn_port(handle));
374 u16 handle; local
377 if (get_user(handle, (__u16 __user *)arg))
387 saddr = phonet_address_get(dev, pn_addr(handle));
397 handle = pn_object(saddr, pn_port(pn->sobject));
398 return put_user(handle, (__u16 __user *)arg);
/net/sunrpc/
H A Dsvc_xprt.c1039 container_of(dreq, struct svc_deferred_req, handle);
1053 list_add(&dr->handle.recent, &xprt->xpt_deferred);
1065 * This code can only handle requests that consist of an xprt-header
1087 dr->handle.owner = rqstp->rq_server;
1104 dr->handle.revisit = svc_revisit;
1105 return &dr->handle;
1143 handle.recent);
1144 list_del_init(&dr->handle.recent);
/net/irda/
H A Dirlmp.c152 * returns handle to LSAP.
372 * Function irlmp_connect_request (handle, dlsap, userdata)
558 * Function irlmp_connect_response (handle, userdata)
589 * Function irlmp_connect_confirm (handle, skb)
685 * Function irlmp_disconnect_request (handle, userdata)
812 * Note : separate from irlmp_do_discovery() so that we can handle
1148 * Function irlmp_data_indication (handle, skb)
1513 * Function irlmp_unregister_service (handle)
1519 int irlmp_unregister_service(void *handle) argument
1526 if (!handle)
1600 irlmp_update_client(void *handle, __u16 hint_mask, DISCOVERY_CALLBACK1 disco_clb, DISCOVERY_CALLBACK2 expir_clb, void *priv) argument
1630 irlmp_unregister_client(void *handle) argument
[all...]

Completed in 224 milliseconds

12