Home
last modified time | relevance | path

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

123

/net/rfkill/
Dinput.c196 static void rfkill_event(struct input_handle *handle, unsigned int type, in rfkill_event() argument
224 struct input_handle *handle; in rfkill_connect() local
227 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in rfkill_connect()
228 if (!handle) in rfkill_connect()
231 handle->dev = dev; in rfkill_connect()
232 handle->handler = handler; in rfkill_connect()
233 handle->name = "rfkill"; in rfkill_connect()
236 error = input_register_handle(handle); in rfkill_connect()
240 error = input_open_device(handle); in rfkill_connect()
247 input_unregister_handle(handle); in rfkill_connect()
[all …]
/net/sched/
Dcls_u32.c49 u32 handle; member
76 u32 handle; member
253 u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) in u32_lookup_ht() argument
260 if (ht->handle == handle) in u32_lookup_ht()
267 u32_lookup_key(struct tc_u_hnode *ht, u32 handle) in u32_lookup_key() argument
272 sel = TC_U32_HASH(handle); in u32_lookup_key()
279 if (n->handle == handle) in u32_lookup_key()
286 static unsigned long u32_get(struct tcf_proto *tp, u32 handle) in u32_get() argument
291 if (TC_U32_HTID(handle) == TC_U32_ROOT) in u32_get()
294 ht = u32_lookup_ht(tp_c, TC_U32_HTID(handle)); in u32_get()
[all …]
Dcls_route.c57 u32 handle; member
200 !(TC_H_MAJ(id^tp->q->handle)))) { in route4_classify()
230 static unsigned long route4_get(struct tcf_proto *tp, u32 handle) in route4_get() argument
240 h1 = to_hash(handle); in route4_get()
244 h2 = from_hash(handle >> 16); in route4_get()
253 if (f->handle == handle) in route4_get()
323 h = f->handle; in route4_delete()
371 u32 handle, struct route4_head *head, in route4_set_parms() argument
389 if (new && handle & 0x8000) in route4_set_parms()
412 if (handle && new) { in route4_set_parms()
[all …]
Dcls_basic.c31 u32 handle; member
59 static unsigned long basic_get(struct tcf_proto *tp, u32 handle) in basic_get() argument
69 if (f->handle == handle) in basic_get()
169 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change() argument
187 if (handle && fold->handle != handle) in basic_change()
198 if (handle) { in basic_change()
199 fnew->handle = handle; in basic_change()
201 fnew->handle = fold->handle; in basic_change()
214 fnew->handle = head->hgenerator; in basic_change()
264 t->tcm_handle = f->handle; in basic_dump()
Dcls_fw.c52 static u32 fw_hash(u32 handle) in fw_hash() argument
54 handle ^= (handle >> 16); in fw_hash()
55 handle ^= (handle >> 8); in fw_hash()
56 return handle % HTSIZE; in fw_hash()
88 !(TC_H_MAJ(id ^ tp->q->handle)))) { in fw_classify()
98 static unsigned long fw_get(struct tcf_proto *tp, u32 handle) in fw_get() argument
106 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get()
108 if (f->id == handle) in fw_get()
232 u32 handle, in fw_change() argument
243 return handle ? -EINVAL : 0; in fw_change()
[all …]
Dcls_cgroup.c22 u32 handle; member
65 static unsigned long cls_cgroup_get(struct tcf_proto *tp, u32 handle) in cls_cgroup_get() argument
96 u32 handle, struct nlattr **tca, in cls_cgroup_change() argument
109 if (!head && !handle) in cls_cgroup_change()
112 if (head && handle != head->handle) in cls_cgroup_change()
121 new->handle = head->handle; in cls_cgroup_change()
123 new->handle = handle; in cls_cgroup_change()
191 t->tcm_handle = head->handle; in cls_cgroup_dump()
Dcls_bpf.c39 u32 handle; member
142 static unsigned long cls_bpf_get(struct tcf_proto *tp, u32 handle) in cls_bpf_get() argument
152 if (prog->handle == handle) { in cls_bpf_get()
242 u32 handle, struct nlattr **tca, in cls_bpf_change() argument
265 if (handle && oldprog->handle != handle) { in cls_bpf_change()
271 if (handle == 0) in cls_bpf_change()
272 prog->handle = cls_bpf_grab_new_handle(tp, head); in cls_bpf_change()
274 prog->handle = handle; in cls_bpf_change()
275 if (prog->handle == 0) { in cls_bpf_change()
309 tm->tcm_handle = prog->handle; in cls_bpf_dump()
Dcls_flow.c47 u32 handle; member
364 u32 handle, struct nlattr **tca, in flow_change() argument
425 if (fold->handle != handle && handle) in flow_change()
429 fnew->handle = fold->handle; in flow_change()
433 fnew->handle = fold->handle; in flow_change()
460 if (!handle) in flow_change()
478 baseclass = TC_H_MAKE(tp->q->handle, baseclass); in flow_change()
482 fnew->handle = handle; in flow_change()
576 static unsigned long flow_get(struct tcf_proto *tp, u32 handle) in flow_get() argument
582 if (f->handle == handle) in flow_get()
[all …]
Dcls_rsvp.h98 u32 handle; member
238 if (pins->handle == h) { in rsvp_replace()
252 static unsigned long rsvp_get(struct tcf_proto *tp, u32 handle) in rsvp_get() argument
257 unsigned int h1 = handle & 0xFF; in rsvp_get()
258 unsigned int h2 = (handle >> 8) & 0xFF; in rsvp_get()
267 if (f->handle == handle) in rsvp_get()
333 unsigned int h = f->handle; in rsvp_delete()
452 u32 handle, in rsvp_change() argument
470 return handle ? -EINVAL : 0; in rsvp_change()
486 if (f->handle != handle && handle) in rsvp_change()
[all …]
Dcls_tcindex.c95 res->classid = TC_H_MAKE(TC_H_MAJ(tp->q->handle), key); in tcindex_classify()
107 static unsigned long tcindex_get(struct tcf_proto *tp, u32 handle) in tcindex_get() argument
112 pr_debug("tcindex_get(tp %p,handle 0x%08x)\n", tp, handle); in tcindex_get()
113 if (p->perfect && handle >= p->alloc_hash) in tcindex_get()
115 r = tcindex_lookup(p, handle); in tcindex_get()
224 u32 handle, struct tcindex_data *p, in tcindex_set_parms() argument
320 if (handle >= cp->alloc_hash) in tcindex_set_parms()
353 r = cp->perfect + handle; in tcindex_set_parms()
355 r = tcindex_lookup(cp, handle) ? : &new_filter_result; in tcindex_set_parms()
361 f->key = handle; in tcindex_set_parms()
[all …]
Dsch_api.c259 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) in qdisc_match_from_root() argument
264 root->handle == handle) in qdisc_match_from_root()
268 if (q->handle == handle) in qdisc_match_from_root()
292 struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle) in qdisc_lookup() argument
296 q = qdisc_match_from_root(dev->qdisc, handle); in qdisc_lookup()
303 handle); in qdisc_lookup()
570 txt, qdisc->ops->id, qdisc->handle >> 16); in qdisc_warn_nonwc()
883 struct Qdisc *p, u32 parent, u32 handle, in qdisc_create() argument
933 if (handle == TC_H_INGRESS) { in qdisc_create()
935 handle = TC_H_MAKE(TC_H_INGRESS, 0); in qdisc_create()
[all …]
Dsch_atm.c202 if (parent && parent != TC_H_ROOT && parent != sch->handle) in atm_tc_change()
252 if (TC_H_MAJ(classid ^ sch->handle)) { in atm_tc_change()
262 classid = TC_H_MAKE(sch->handle, 0x8000 | i); in atm_tc_change()
371 if (TC_H_MAJ(skb->priority) != sch->handle || in atm_tc_enqueue()
545 &pfifo_qdisc_ops, sch->handle); in atm_tc_init()
552 p->link.classid = sch->handle; in atm_tc_init()
598 tcm->tcm_info = flow->q->handle; in atm_tc_dump_class()
Dsch_dsmark.c65 sch->handle); in dsmark_graft()
222 if (TC_H_MAJ(skb->priority) == sch->handle) in dsmark_enqueue()
381 p->q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, sch->handle); in dsmark_init()
424 tcm->tcm_handle = TC_H_MAKE(TC_H_MAJ(sch->handle), cl - 1); in dsmark_dump_class()
425 tcm->tcm_info = p->q->handle; in dsmark_dump_class()
Dsch_prio.c43 if (TC_H_MAJ(skb->priority) != sch->handle) { in prio_classify()
206 TC_H_MAKE(sch->handle, i + 1)); in prio_tune()
311 tcm->tcm_info = q->queues[cl-1]->handle; in prio_dump_class()
Dsch_mqprio.c128 TC_H_MAKE(TC_H_MAJ(sch->handle), in mqprio_init()
309 TC_H_MAKE(TC_H_MAJ(sch->handle), in mqprio_dump_class()
314 tcm->tcm_info = dev_queue->qdisc_sleeping->handle; in mqprio_dump_class()
/net/bluetooth/
Damp.c105 if (++mgr->handle == 0) in __next_handle()
106 mgr->handle = 1; in __next_handle()
108 return mgr->handle; in __next_handle()
126 hcon->handle = __next_handle(mgr); in phylink_add()
249 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data()
293 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag()
310 void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle) in amp_write_rem_assoc_continue() argument
314 BT_DBG("%s phy handle 0x%2.2x", hdev->name, handle); in amp_write_rem_assoc_continue()
316 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_rem_assoc_continue()
325 void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle) in amp_write_remote_assoc() argument
[all …]
Dhci_conn.c146 cp.handle = cpu_to_le16(conn->handle); in hci_disconnect()
152 cp.handle = cpu_to_le16(conn->handle); in hci_disconnect()
165 cp.phy_handle = HCI_PHY_HANDLE(conn->handle); in hci_amp_disconn()
171 static void hci_add_sco(struct hci_conn *conn, __u16 handle) in hci_add_sco() argument
183 cp.handle = cpu_to_le16(handle); in hci_add_sco()
189 bool hci_setup_sync(struct hci_conn *conn, __u16 handle) in hci_setup_sync() argument
202 cp.handle = cpu_to_le16(handle); in hci_setup_sync()
259 cp.handle = cpu_to_le16(conn->handle); in hci_le_conn_update()
285 cp.handle = cpu_to_le16(conn->handle); in hci_le_start_enc()
305 hci_setup_sync(sco, conn->handle); in hci_sco_setup()
[all …]
Dhci_event.c103 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery()
122 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy()
146 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_link_policy()
755 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_clock()
1341 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_rssi()
1365 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_tx_power()
1436 __u16 handle; in hci_cs_add_sco() local
1447 handle = __le16_to_cpu(cp->handle); in hci_cs_add_sco()
1449 BT_DBG("%s handle 0x%4.4x", hdev->name, handle); in hci_cs_add_sco()
1453 acl = hci_conn_hash_lookup_handle(hdev, handle); in hci_cs_add_sco()
[all …]
Damp.h47 void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle);
48 void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle);
/net/vmw_vsock/
Dvmci_transport.c143 struct vmci_handle handle) in vmci_transport_packet_init() argument
172 pkt->u.handle = handle; in vmci_transport_packet_init()
216 struct vmci_handle handle, in __vmci_transport_send_control_pkt() argument
222 proto, handle); in __vmci_transport_send_control_pkt()
236 struct vmci_handle handle) in vmci_transport_reply_control_pkt_fast() argument
249 handle, true); in vmci_transport_reply_control_pkt_fast()
260 struct vmci_handle handle) in vmci_transport_send_control_pkt_bh() argument
271 VSOCK_PROTO_INVALID, handle, in vmci_transport_send_control_pkt_bh()
282 struct vmci_handle handle) in vmci_transport_send_control_pkt() argument
302 mode, wait, proto, handle, in vmci_transport_send_control_pkt()
[all …]
/net/sunrpc/auth_gss/
Dsvcauth_gss.c329 struct xdr_netobj handle; member
340 kfree(rsci->handle.data); in rsc_free()
357 return hash_mem(rsci->handle.data, rsci->handle.len, RSC_HASHBITS); in rsc_hash()
366 return netobj_equal(&new->handle, &tmp->handle); in rsc_match()
375 new->handle.len = tmp->handle.len; in rsc_init()
376 tmp->handle.len = 0; in rsc_init()
377 new->handle.data = tmp->handle.data; in rsc_init()
378 tmp->handle.data = NULL; in rsc_init()
424 if (dup_to_netobj(&rsci.handle, buf, len)) in rsc_parse()
564 gss_svc_searchbyctx(struct cache_detail *cd, struct xdr_netobj *handle) in gss_svc_searchbyctx() argument
[all …]
/net/phonet/
Dsocket.c171 u16 handle; in pn_socket_bind() local
182 handle = pn_sockaddr_get_object((struct sockaddr_pn *)addr); in pn_socket_bind()
183 saddr = pn_addr(handle); in pn_socket_bind()
194 err = sk->sk_prot->get_port(sk, pn_port(handle)); in pn_socket_bind()
374 u16 handle; in pn_socket_ioctl() local
377 if (get_user(handle, (__u16 __user *)arg)) in pn_socket_ioctl()
387 saddr = phonet_address_get(dev, pn_addr(handle)); in pn_socket_ioctl()
397 handle = pn_object(saddr, pn_port(pn->sobject)); in pn_socket_ioctl()
398 return put_user(handle, (__u16 __user *)arg); in pn_socket_ioctl()
/net/sunrpc/
Dcache.c565 struct cache_deferred_req handle; member
572 container_of(dreq, struct thread_deferred_req, handle); in cache_restart_thread()
579 struct cache_deferred_req *dreq = &sleeper.handle; in cache_wait_req()
593 if (!hlist_unhashed(&sleeper.handle.hash)) { in cache_wait_req()
594 __unhash_deferred_req(&sleeper.handle); in cache_wait_req()
1285 struct handle { struct
1295 struct cache_detail *cd = ((struct handle*)m->private)->cd; in c_start() argument
1323 struct cache_detail *cd = ((struct handle*)m->private)->cd; in c_next()
1349 struct cache_detail *cd = ((struct handle*)m->private)->cd; in c_stop()
1356 struct cache_detail *cd = ((struct handle*)m->private)->cd; in c_show()
[all …]
Dsvc_xprt.c1038 container_of(dreq, struct svc_deferred_req, handle); in svc_revisit()
1052 list_add(&dr->handle.recent, &xprt->xpt_deferred); in svc_revisit()
1086 dr->handle.owner = rqstp->rq_server; in svc_defer()
1103 dr->handle.revisit = svc_revisit; in svc_defer()
1104 return &dr->handle; in svc_defer()
1142 handle.recent); in svc_deferred_dequeue()
1143 list_del_init(&dr->handle.recent); in svc_deferred_dequeue()
/net/irda/
Dirlmp.c1520 int irlmp_unregister_service(void *handle) in irlmp_unregister_service() argument
1527 if (!handle) in irlmp_unregister_service()
1531 service = hashbin_lock_find(irlmp->services, (long) handle, NULL); in irlmp_unregister_service()
1601 int irlmp_update_client(void *handle, __u16 hint_mask, in irlmp_update_client() argument
1607 if (!handle) in irlmp_update_client()
1610 client = hashbin_lock_find(irlmp->clients, (long) handle, NULL); in irlmp_update_client()
1631 int irlmp_unregister_client(void *handle) in irlmp_unregister_client() argument
1637 if (!handle) in irlmp_unregister_client()
1641 client = hashbin_lock_find(irlmp->clients, (long) handle, NULL); in irlmp_unregister_client()

123