Home
last modified time | relevance | path

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

123

/net/rfkill/
Dinput.c193 static void rfkill_event(struct input_handle *handle, unsigned int type, in rfkill_event() argument
221 struct input_handle *handle; in rfkill_connect() local
224 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in rfkill_connect()
225 if (!handle) in rfkill_connect()
228 handle->dev = dev; in rfkill_connect()
229 handle->handler = handler; in rfkill_connect()
230 handle->name = "rfkill"; in rfkill_connect()
233 error = input_register_handle(handle); in rfkill_connect()
237 error = input_open_device(handle); in rfkill_connect()
244 input_unregister_handle(handle); in rfkill_connect()
[all …]
/net/sched/
Dcls_u32.c45 u32 handle; member
71 u32 handle; member
254 static struct tc_u_hnode *u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) in u32_lookup_ht() argument
261 if (ht->handle == handle) in u32_lookup_ht()
267 static struct tc_u_knode *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 void *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.c53 u32 handle; member
215 static void *route4_get(struct tcf_proto *tp, u32 handle) in route4_get() argument
222 h1 = to_hash(handle); in route4_get()
226 h2 = from_hash(handle >> 16); in route4_get()
235 if (f->handle == handle) in route4_get()
325 h = f->handle; in route4_delete()
383 u32 handle, struct route4_head *head, in route4_set_parms() argument
398 if (new && handle & 0x8000) in route4_set_parms()
421 if (handle && new) { in route4_set_parms()
422 nhandle |= handle & 0x7F00; in route4_set_parms()
[all …]
Dcls_basic.c29 u32 handle; member
60 static void *basic_get(struct tcf_proto *tp, u32 handle) in basic_get() argument
66 if (f->handle == handle) { in basic_get()
115 idr_remove(&head->handle_idr, f->handle); in basic_destroy()
133 idr_remove(&head->handle_idr, f->handle); in basic_delete()
171 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change() argument
190 if (handle && fold->handle != handle) in basic_change()
202 if (!handle) { in basic_change()
203 handle = 1; in basic_change()
204 err = idr_alloc_u32(&head->handle_idr, fnew, &handle, in basic_change()
[all …]
Dcls_fw.c43 static u32 fw_hash(u32 handle) in fw_hash() argument
45 handle ^= (handle >> 16); in fw_hash()
46 handle ^= (handle >> 8); in fw_hash()
47 return handle % HTSIZE; in fw_hash()
79 !(TC_H_MAJ(id ^ q->handle)))) { in fw_classify()
89 static void *fw_get(struct tcf_proto *tp, u32 handle) in fw_get() argument
97 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get()
99 if (f->id == handle) in fw_get()
239 u32 handle, struct nlattr **tca, void **arg, in fw_change() argument
250 return handle ? -EINVAL : 0; /* Succeed if it is old method. */ in fw_change()
[all …]
Dcls_cgroup.c18 u32 handle; member
44 static void *cls_cgroup_get(struct tcf_proto *tp, u32 handle) in cls_cgroup_get() argument
78 u32 handle, struct nlattr **tca, in cls_cgroup_change() argument
90 if (!head && !handle) in cls_cgroup_change()
93 if (head && handle != head->handle) in cls_cgroup_change()
103 new->handle = handle; in cls_cgroup_change()
176 t->tcm_handle = head->handle; in cls_cgroup_dump()
Dcls_bpf.c45 u32 handle; member
292 idr_remove(&head->handle_idr, prog->handle); in __cls_bpf_delete()
325 static void *cls_bpf_get(struct tcf_proto *tp, u32 handle) in cls_bpf_get() argument
331 if (prog->handle == handle) in cls_bpf_get()
460 u32 handle, struct nlattr **tca, in cls_bpf_change() argument
487 if (handle && oldprog->handle != handle) { in cls_bpf_change()
493 if (handle == 0) { in cls_bpf_change()
494 handle = 1; in cls_bpf_change()
495 ret = idr_alloc_u32(&head->handle_idr, prog, &handle, in cls_bpf_change()
498 ret = idr_alloc_u32(&head->handle_idr, prog, &handle, in cls_bpf_change()
[all …]
Dsch_prio.c40 if (TC_H_MAJ(skb->priority) != sch->handle) { in prio_classify()
144 .handle = sch->handle, in prio_offload()
199 TC_H_MAKE(sch->handle, i + 1), in prio_tune()
249 .handle = sch->handle, in prio_dump_offload()
295 TC_H_MAKE(sch->handle, arg), extack); in prio_graft()
304 graft_offload.handle = sch->handle; in prio_graft()
307 graft_offload.graft_params.child_handle = new->handle; in prio_graft()
351 tcm->tcm_info = q->queues[cl-1]->handle; in prio_dump_class()
Dsch_mq.c29 .handle = sch->handle, in mq_offload()
42 .handle = sch->handle, in mq_offload_stats()
91 TC_H_MAKE(TC_H_MAJ(sch->handle), in mq_init()
206 graft_offload.handle = sch->handle; in mq_graft()
208 graft_offload.graft_params.child_handle = new ? new->handle : 0; in mq_graft()
239 tcm->tcm_info = dev_queue->qdisc_sleeping->handle; in mq_dump_class()
Dcls_flow.c44 u32 handle; member
389 u32 handle, struct nlattr **tca, in flow_change() argument
453 if (fold->handle != handle && handle) in flow_change()
458 fnew->handle = fold->handle; in flow_change()
485 if (!handle) in flow_change()
505 baseclass = TC_H_MAKE(q->handle, baseclass); in flow_change()
510 fnew->handle = handle; in flow_change()
607 static void *flow_get(struct tcf_proto *tp, u32 handle) in flow_get() argument
613 if (f->handle == handle) in flow_get()
627 t->tcm_handle = f->handle; in flow_dump()
Dsch_api.c259 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) in qdisc_match_from_root() argument
264 return (root->handle == handle ? root : NULL); in qdisc_match_from_root()
267 root->handle == handle) in qdisc_match_from_root()
270 hash_for_each_possible_rcu(qdisc_dev(root)->qdisc_hash, q, hash, handle, in qdisc_match_from_root()
272 if (q->handle == handle) in qdisc_match_from_root()
282 hash_add_rcu(qdisc_dev(q)->qdisc_hash, &q->hash, q->handle); in qdisc_hash_add()
298 struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle) in qdisc_lookup() argument
302 if (!handle) in qdisc_lookup()
304 q = qdisc_match_from_root(rtnl_dereference(dev->qdisc), handle); in qdisc_lookup()
311 handle); in qdisc_lookup()
[all …]
Dcls_matchall.c19 u32 handle; member
147 static void *mall_get(struct tcf_proto *tp, u32 handle) in mall_get() argument
151 if (head && head->handle == handle) in mall_get()
185 u32 handle, struct nlattr **tca, in mall_change() argument
220 if (!handle) in mall_change()
221 handle = 1; in mall_change()
222 new->handle = handle; in mall_change()
361 t->tcm_handle = head->handle; in mall_dump()
Dsch_fifo.c64 qopt.handle = sch->handle; in fifo_offload_init()
78 qopt.handle = sch->handle; in fifo_offload_destroy()
88 qopt.handle = sch->handle; in fifo_offload_dump()
259 q = qdisc_create_dflt(sch->dev_queue, ops, TC_H_MAKE(sch->handle, 1), in fifo_create_dflt()
Dsch_red.c189 .handle = sch->handle, in red_offload()
398 .handle = sch->handle, in red_dump_offload_stats()
455 .handle = sch->handle, in red_dump_stats()
478 tcm->tcm_info = q->qdisc->handle; in red_dump_class()
487 .handle = sch->handle, in red_graft_offload()
489 .child_handle = new->handle, in red_graft_offload()
Dsch_ets.c102 return TC_H_MAKE(sch->handle, band + 1); in ets_class_id()
122 qopt.handle = sch->handle; in ets_offload_change()
155 qopt.handle = sch->handle; in ets_offload_destroy()
168 qopt.handle = sch->handle; in ets_offload_graft()
171 qopt.graft_params.child_handle = new->handle; in ets_offload_graft()
182 qopt.handle = sch->handle; in ets_offload_dump()
306 tcm->tcm_info = cl->qdisc->handle; in ets_class_dump()
391 if (TC_H_MAJ(skb->priority) != sch->handle) { in ets_classify()
Dsch_tbf.c151 qopt.handle = sch->handle; in tbf_offload_change()
169 qopt.handle = sch->handle; in tbf_offload_destroy()
179 qopt.handle = sch->handle; in tbf_offload_dump()
536 tcm->tcm_info = q->qdisc->handle; in tbf_dump_class()
/net/bluetooth/
Damp.c99 if (++mgr->handle == 0) in __next_handle()
100 mgr->handle = 1; in __next_handle()
102 return mgr->handle; in __next_handle()
120 hcon->handle = __next_handle(mgr); in phylink_add()
303 cp.phy_handle = hcon->handle; in amp_read_loc_assoc_final_data()
366 cp->phy_handle = hcon->handle; in amp_write_rem_assoc_frag()
385 void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle) in amp_write_rem_assoc_continue() argument
389 BT_DBG("%s phy handle 0x%2.2x", hdev->name, handle); in amp_write_rem_assoc_continue()
391 hcon = hci_conn_hash_lookup_handle(hdev, handle); in amp_write_rem_assoc_continue()
400 void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle) in amp_write_remote_assoc() argument
[all …]
Dhci_event.c131 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery()
150 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy()
174 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_link_policy()
613 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_auth_payload_timeout()
638 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_auth_payload_timeout()
894 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_clock()
1772 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_rssi()
1796 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_tx_power()
1883 __u16 handle; in hci_cs_add_sco() local
1894 handle = __le16_to_cpu(cp->handle); in hci_cs_add_sco()
[all …]
Dhci_conn.c251 clkoff_cp.handle = cpu_to_le16(conn->handle); in hci_disconnect()
259 static void hci_add_sco(struct hci_conn *conn, __u16 handle) in hci_add_sco() argument
271 cp.handle = cpu_to_le16(handle); in hci_add_sco()
277 bool hci_setup_sync(struct hci_conn *conn, __u16 handle) in hci_setup_sync() argument
290 cp.handle = cpu_to_le16(handle); in hci_setup_sync()
347 cp.handle = cpu_to_le16(conn->handle); in hci_le_conn_update()
373 cp.handle = cpu_to_le16(conn->handle); in hci_le_start_enc()
393 hci_setup_sync(sco, conn->handle); in hci_sco_setup()
395 hci_add_sco(sco, conn->handle); in hci_sco_setup()
449 cp.handle = cpu_to_le16(conn->handle); in hci_conn_idle()
[all …]
Dhci_core.c3027 int handle; in hci_adv_monitors_clear() local
3029 idr_for_each_entry(&hdev->adv_monitors_idr, monitor, handle) in hci_adv_monitors_clear()
3052 int min, max, handle; in hci_add_adv_monitor() local
3059 handle = idr_alloc(&hdev->adv_monitors_idr, monitor, min, max, in hci_add_adv_monitor()
3061 if (handle < 0) in hci_add_adv_monitor()
3062 return handle; in hci_add_adv_monitor()
3065 monitor->handle = handle; in hci_add_adv_monitor()
3077 idr_remove(&hdev->adv_monitors_idr, monitor->handle); in free_adv_monitor()
3085 int hci_remove_adv_monitor(struct hci_dev *hdev, u16 handle) in hci_remove_adv_monitor() argument
3089 if (handle) { in hci_remove_adv_monitor()
[all …]
Damp.h54 void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle);
55 void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle);
/net/vmw_vsock/
Dvmci_transport.c118 struct vmci_handle handle) in vmci_transport_packet_init() argument
147 pkt->u.handle = handle; in vmci_transport_packet_init()
191 struct vmci_handle handle, in __vmci_transport_send_control_pkt() argument
197 proto, handle); in __vmci_transport_send_control_pkt()
211 struct vmci_handle handle) in vmci_transport_reply_control_pkt_fast() argument
224 handle, true); in vmci_transport_reply_control_pkt_fast()
235 struct vmci_handle handle) in vmci_transport_send_control_pkt_bh() argument
246 VSOCK_PROTO_INVALID, handle, in vmci_transport_send_control_pkt_bh()
258 struct vmci_handle handle) in vmci_transport_alloc_send_control_pkt() argument
268 mode, wait, proto, handle, in vmci_transport_alloc_send_control_pkt()
[all …]
/net/sunrpc/auth_gss/
Dsvcauth_gss.c344 struct xdr_netobj handle; member
356 kfree(rsci->handle.data); in rsc_free()
366 kfree(rsci->handle.data); in rsc_free_rcu()
383 return hash_mem(rsci->handle.data, rsci->handle.len, RSC_HASHBITS); in rsc_hash()
392 return netobj_equal(&new->handle, &tmp->handle); in rsc_match()
401 new->handle.len = tmp->handle.len; in rsc_init()
402 tmp->handle.len = 0; in rsc_init()
403 new->handle.data = tmp->handle.data; in rsc_init()
404 tmp->handle.data = NULL; in rsc_init()
455 if (dup_to_netobj(&rsci.handle, buf, len)) in rsc_parse()
[all …]
/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c124 u64 offset, u32 handle, in svc_rdma_rw_ctx_init() argument
131 0, offset, handle, direction); in svc_rdma_rw_ctx_init()
453 u32 handle, length; in svc_rdma_build_writes() local
459 xdr_decode_rdma_segment(seg, &handle, &length, &offset); in svc_rdma_build_writes()
469 ret = svc_rdma_rw_ctx_init(rdma, ctxt, offset, handle, in svc_rdma_build_writes()
474 trace_svcrdma_send_wseg(handle, write_len, offset); in svc_rdma_build_writes()
699 u32 handle, length; in svc_rdma_build_read_chunk() local
702 p = xdr_decode_rdma_segment(p, &handle, &length, &offset); in svc_rdma_build_read_chunk()
703 ret = svc_rdma_build_read_segment(info, rqstp, handle, length, in svc_rdma_build_read_chunk()
708 trace_svcrdma_send_rseg(handle, length, offset); in svc_rdma_build_read_chunk()
/net/phonet/
Dsocket.c162 u16 handle; in pn_socket_bind() local
173 handle = pn_sockaddr_get_object((struct sockaddr_pn *)addr); in pn_socket_bind()
174 saddr = pn_addr(handle); in pn_socket_bind()
185 err = sk->sk_prot->get_port(sk, pn_port(handle)); in pn_socket_bind()
364 u16 handle; in pn_socket_ioctl() local
367 if (get_user(handle, (__u16 __user *)arg)) in pn_socket_ioctl()
377 saddr = phonet_address_get(dev, pn_addr(handle)); in pn_socket_ioctl()
387 handle = pn_object(saddr, pn_port(pn->sobject)); in pn_socket_ioctl()
388 return put_user(handle, (__u16 __user *)arg); in pn_socket_ioctl()

123