Home
last modified time | relevance | path

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

12345678

/linux/drivers/greybus/
A Dsvc.c680 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_voltage_read() local
704 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_current_read() local
728 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_power_read() local
800 rail->svc = svc; in gb_svc_pwrmon_debugfs_init()
926 ret = gb_svc_intf_set_power_mode(svc, svc->ap_intf_id, in gb_svc_process_hello_deferred()
1294 kfree(svc); in gb_svc_release()
1306 svc = kzalloc(sizeof(*svc), GFP_KERNEL); in gb_svc_create()
1307 if (!svc) in gb_svc_create()
1320 svc->dev.dma_mask = svc->dev.parent->dma_mask; in gb_svc_create()
1337 gb_connection_set_data(svc->connection, svc); in gb_svc_create()
[all …]
A Dsvc_watchdog.c17 struct gb_svc *svc; member
66 struct gb_svc *svc; in do_work() local
70 svc = watchdog->svc; in do_work()
82 dev_err(&svc->dev, in do_work()
112 if (svc->watchdog) in gb_svc_watchdog_create()
120 watchdog->svc = svc; in gb_svc_watchdog_create()
141 svc->watchdog = NULL; in gb_svc_watchdog_create()
156 svc->watchdog = NULL; in gb_svc_watchdog_destroy()
162 if (!svc || !svc->watchdog) in gb_svc_watchdog_enabled()
171 if (!svc->watchdog) in gb_svc_watchdog_enable()
[all …]
A Dinterface.c128 struct gb_svc *svc = intf->hd->svc; in gb_interface_route_create() local
134 ret = ida_simple_get(&svc->device_id_map, in gb_interface_route_create()
151 ret = gb_svc_route_create(svc, svc->ap_intf_id, GB_SVC_DEVICE_ID_AP, in gb_interface_route_create()
175 struct gb_svc *svc = intf->hd->svc; in gb_interface_route_destroy() local
180 gb_svc_route_destroy(svc, svc->ap_intf_id, intf->interface_id); in gb_interface_route_destroy()
736 struct gb_svc *svc = intf->hd->svc; in gb_interface_resume() local
827 struct gb_svc *svc = intf->hd->svc; in gb_interface_vsys_set() local
843 struct gb_svc *svc = intf->hd->svc; in gb_interface_refclk_set() local
859 struct gb_svc *svc = intf->hd->svc; in gb_interface_unipro_set() local
876 struct gb_svc *svc = intf->hd->svc; in gb_interface_activate_operation() local
[all …]
A Dhd.c112 if (hd->svc) in gb_hd_release()
113 gb_svc_put(hd->svc); in gb_hd_release()
189 hd->svc = gb_svc_create(hd); in gb_hd_create()
190 if (!hd->svc) { in gb_hd_create()
208 ret = gb_svc_add(hd->svc); in gb_hd_add()
228 gb_svc_del(hd->svc); in gb_hd_del()
236 gb_svc_del(hd->svc); in gb_hd_shutdown()
/linux/include/linux/greybus/
A Dsvc.h36 struct gb_svc *svc; member
63 int gb_svc_add(struct gb_svc *svc);
64 void gb_svc_del(struct gb_svc *svc);
65 void gb_svc_put(struct gb_svc *svc);
77 int gb_svc_intf_eject(struct gb_svc *svc, u8 intf_id);
96 int gb_svc_ping(struct gb_svc *svc);
97 int gb_svc_watchdog_create(struct gb_svc *svc);
98 void gb_svc_watchdog_destroy(struct gb_svc *svc);
99 bool gb_svc_watchdog_enabled(struct gb_svc *svc);
100 int gb_svc_watchdog_enable(struct gb_svc *svc);
[all …]
/linux/net/netfilter/ipvs/
A Dip_vs_ctl.c320 hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol, in ip_vs_svc_hash()
321 &svc->addr, svc->port); in ip_vs_svc_hash()
405 if (svc->fwmark == fwmark && svc->af == af in __ip_vs_svc_fwm_find()
427 if (svc) in ip_vs_service_find()
469 rcu_assign_pointer(dest->svc, svc); in __ip_vs_bind_svc()
491 IP_VS_DBG_ADDR(svc->af, &svc->addr), in __ip_vs_svc_put()
701 if (!svc) in ip_vs_find_dest()
1368 ip_vs_addr_copy(svc->af, &svc->addr, &u->addr); in ip_vs_add_service()
1397 if (svc->pe && svc->pe->conn_out) in ip_vs_add_service()
1545 ip_vs_stop_estimator(svc->ipvs, &svc->stats); in __ip_vs_del_service()
[all …]
A Dip_vs_mh.c138 p = &svc->destinations; in ip_vs_mh_permutate()
160 struct ip_vs_service *svc) in ip_vs_mh_populate() argument
182 p = &svc->destinations; in ip_vs_mh_populate()
186 if (p == &svc->destinations) in ip_vs_mh_populate()
297 if (svc->num_dests >= 1) { in ip_vs_mh_reassign()
305 ip_vs_mh_permutate(s, svc); in ip_vs_mh_reassign()
307 ret = ip_vs_mh_populate(s, svc); in ip_vs_mh_reassign()
312 IP_VS_DBG_ADDR(svc->af, &svc->addr), in ip_vs_mh_reassign()
313 ntohs(svc->port)); in ip_vs_mh_reassign()
316 if (svc->num_dests >= 1) { in ip_vs_mh_reassign()
[all …]
A Dip_vs_wrr.c118 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc()
121 svc->sched_data = mark; in ip_vs_wrr_init_svc()
129 struct ip_vs_wrr_mark *mark = svc->sched_data; in ip_vs_wrr_done_svc()
143 spin_lock_bh(&svc->sched_lock); in ip_vs_wrr_dest_changed()
145 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_dest_changed()
151 spin_unlock_bh(&svc->sched_lock); in ip_vs_wrr_dest_changed()
169 spin_lock_bh(&svc->sched_lock); in ip_vs_wrr_schedule()
178 &svc->destinations, in ip_vs_wrr_schedule()
196 &last->n_list == &svc->destinations) in ip_vs_wrr_schedule()
202 &last->n_list != &svc->destinations) { in ip_vs_wrr_schedule()
[all …]
A Dip_vs_rr.c28 svc->sched_data = &svc->destinations; in ip_vs_rr_init_svc()
37 spin_lock_bh(&svc->sched_lock); in ip_vs_rr_del_dest()
38 p = (struct list_head *) svc->sched_data; in ip_vs_rr_del_dest()
43 svc->sched_data = p->next->prev; in ip_vs_rr_del_dest()
44 spin_unlock_bh(&svc->sched_lock); in ip_vs_rr_del_dest()
62 spin_lock_bh(&svc->sched_lock); in ip_vs_rr_schedule()
63 p = (struct list_head *) svc->sched_data; in ip_vs_rr_schedule()
68 &svc->destinations, in ip_vs_rr_schedule()
84 spin_unlock_bh(&svc->sched_lock); in ip_vs_rr_schedule()
89 svc->sched_data = &dest->n_list; in ip_vs_rr_schedule()
[all …]
A Dip_vs_lblc.c236 spin_lock_bh(&svc->sched_lock); in ip_vs_lblc_flush()
267 spin_lock(&svc->sched_lock); in ip_vs_lblc_full_check()
277 spin_unlock(&svc->sched_lock); in ip_vs_lblc_full_check()
297 struct ip_vs_service *svc = tbl->svc; in ip_vs_lblc_check_expire() local
306 ip_vs_lblc_full_check(svc); in ip_vs_lblc_check_expire()
323 spin_lock(&svc->sched_lock); in ip_vs_lblc_check_expire()
332 spin_unlock(&svc->sched_lock); in ip_vs_lblc_check_expire()
355 svc->sched_data = tbl; in ip_vs_lblc_init_svc()
369 tbl->svc = svc; in ip_vs_lblc_init_svc()
390 ip_vs_lblc_flush(svc); in ip_vs_lblc_done_svc()
[all …]
A Dip_vs_sched.c40 int ip_vs_bind_scheduler(struct ip_vs_service *svc, in ip_vs_bind_scheduler() argument
46 ret = scheduler->init_service(svc); in ip_vs_bind_scheduler()
52 rcu_assign_pointer(svc->scheduler, scheduler); in ip_vs_bind_scheduler()
60 void ip_vs_unbind_scheduler(struct ip_vs_service *svc, in ip_vs_unbind_scheduler() argument
71 sched->done_service(svc); in ip_vs_unbind_scheduler()
148 if (svc->fwmark) { in ip_vs_scheduler_err()
150 sched_name, svc->fwmark, svc->fwmark, msg); in ip_vs_scheduler_err()
152 } else if (svc->af == AF_INET6) { in ip_vs_scheduler_err()
154 sched_name, ip_vs_proto_name(svc->protocol), in ip_vs_scheduler_err()
155 &svc->addr.in6, ntohs(svc->port), msg); in ip_vs_scheduler_err()
[all …]
A Dip_vs_lblcr.c402 spin_lock_bh(&svc->sched_lock); in ip_vs_lblcr_flush()
432 spin_lock(&svc->sched_lock); in ip_vs_lblcr_full_check()
441 spin_unlock(&svc->sched_lock); in ip_vs_lblcr_full_check()
461 struct ip_vs_service *svc = tbl->svc; in ip_vs_lblcr_check_expire() local
470 ip_vs_lblcr_full_check(svc); in ip_vs_lblcr_check_expire()
487 spin_lock(&svc->sched_lock); in ip_vs_lblcr_check_expire()
496 spin_unlock(&svc->sched_lock); in ip_vs_lblcr_check_expire()
518 svc->sched_data = tbl; in ip_vs_lblcr_init_svc()
532 tbl->svc = svc; in ip_vs_lblcr_init_svc()
553 ip_vs_lblcr_flush(svc); in ip_vs_lblcr_done_svc()
[all …]
A Dip_vs_sh.c173 p = &svc->destinations; in ip_vs_sh_reassign()
183 if (p == &svc->destinations) in ip_vs_sh_reassign()
237 svc->sched_data = s; in ip_vs_sh_init_svc()
243 ip_vs_sh_reassign(s, svc); in ip_vs_sh_init_svc()
251 struct ip_vs_sh_state *s = svc->sched_data; in ip_vs_sh_done_svc()
266 struct ip_vs_sh_state *s = svc->sched_data; in ip_vs_sh_dest_changed()
269 ip_vs_sh_reassign(s, svc); in ip_vs_sh_dest_changed()
321 if (svc->flags & IP_VS_SVC_F_SCHED_SH_PORT) in ip_vs_sh_schedule()
324 s = (struct ip_vs_sh_state *) svc->sched_data; in ip_vs_sh_schedule()
329 dest = ip_vs_sh_get(svc, s, hash_addr, port); in ip_vs_sh_schedule()
[all …]
A Dip_vs_dh.c107 p = &svc->destinations; in ip_vs_dh_reassign()
116 if (p == &svc->destinations) in ip_vs_dh_reassign()
152 static int ip_vs_dh_init_svc(struct ip_vs_service *svc) in ip_vs_dh_init_svc() argument
161 svc->sched_data = s; in ip_vs_dh_init_svc()
167 ip_vs_dh_reassign(s, svc); in ip_vs_dh_init_svc()
175 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_done_svc()
190 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_dest_changed()
193 ip_vs_dh_reassign(s, svc); in ip_vs_dh_dest_changed()
221 s = (struct ip_vs_dh_state *) svc->sched_data; in ip_vs_dh_schedule()
222 dest = ip_vs_dh_get(svc->af, s, &iph->daddr); in ip_vs_dh_schedule()
[all …]
A Dip_vs_core.c139 svc = rcu_dereference(dest->svc); in ip_vs_in_stats()
175 svc = rcu_dereference(dest->svc); in ip_vs_out_stats()
364 if (dst_port == svc->port && svc->port != FTPPORT) in ip_vs_sched_persist()
516 if (!svc->fwmark && vport != svc->port) { in ip_vs_schedule()
517 if (!svc->port) in ip_vs_schedule()
547 ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, in ip_vs_schedule()
614 ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, in ip_vs_leave()
1150 if (svc->fwmark) in ip_vs_new_conn_out()
1189 ip_vs_conn_fill_param(svc->ipvs, svc->af, iph->protocol, in ip_vs_new_conn_out()
1245 svc = rcu_dereference(dest->svc); in __ip_vs_rs_conn_out()
[all …]
A Dip_vs_sed.c57 ip_vs_sed_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_sed_schedule() argument
78 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_sed_schedule()
86 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_sed_schedule()
93 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { in ip_vs_sed_schedule()
/linux/drivers/soc/qcom/
A Dqmi_interface.c46 svc = kzalloc(sizeof(*svc), GFP_KERNEL); in qmi_recv_new_server()
47 if (!svc) in qmi_recv_new_server()
53 svc->node = node; in qmi_recv_new_server()
58 kfree(svc); in qmi_recv_new_server()
89 kfree(svc); in qmi_recv_del_server()
211 svc = kzalloc(sizeof(*svc), GFP_KERNEL); in qmi_add_lookup()
212 if (!svc) in qmi_add_lookup()
275 svc = kzalloc(sizeof(*svc), GFP_KERNEL); in qmi_add_server()
276 if (!svc) in qmi_add_server()
708 kfree(svc); in qmi_handle_release()
[all …]
A Dapr.c102 svc = port; in gpr_alloc_port()
104 svc->pr = pr; in gpr_alloc_port()
105 svc->priv = priv; in gpr_alloc_port()
106 svc->dev = dev; in gpr_alloc_port()
119 svc->id = id; in gpr_alloc_port()
235 if (svc && svc->dev->driver) { in apr_do_rx_callback()
303 if (!svc) { in gpr_do_rx_callback()
310 svc->callback(&resp, svc->priv, 0); in gpr_do_rx_callback()
427 svc = &adev->svc; in apr_add_device()
430 svc->pr = apr; in apr_add_device()
[all …]
/linux/drivers/thunderbolt/
A Ddma_test.c93 const struct tb_service *svc; member
361 struct tb_service *svc = data; \
374 struct tb_service *svc = data; \
509 struct tb_service *svc = data; in test_store() local
527 dev_dbg(&svc->dev, "DMA test starting\n"); in test_store()
543 dev_err(&svc->dev, "failed to set lanes\n"); in test_store()
595 struct tb_service *svc = s->private; in status_show() local
638 struct tb_xdomain *xd = tb_service_parent(svc); in dma_test_probe()
645 dt->svc = svc; in dma_test_probe()
650 tb_service_set_drvdata(svc, dt); in dma_test_probe()
[all …]
A Dxdomain.c716 return sprintf(buf, "%*pE\n", (int)strlen(svc->key), svc->key); in key_show()
723 svc->prtcid, svc->prtcvers, svc->prtcrevs); in get_modalias()
809 kfree(svc); in tb_service_release()
826 if (!svc) in remove_missing_service()
842 if (!svc) in find_service()
869 if (!svc->key) in populate_service()
900 svc = kzalloc(sizeof(*svc), GFP_KERNEL); in enumerate_services()
901 if (!svc) in enumerate_services()
905 kfree(svc); in enumerate_services()
912 kfree(svc); in enumerate_services()
[all …]
A Ddomain.c24 const struct tb_service *svc) in match_service_id() argument
54 struct tb_service *svc; in __tb_service_match() local
56 svc = tb_to_service(dev); in __tb_service_match()
57 if (!svc) in __tb_service_match()
65 if (match_service_id(ids, svc)) in __tb_service_match()
86 return driver->probe(svc, id); in tb_service_probe()
96 driver->remove(svc); in tb_service_remove()
102 struct tb_service *svc; in tb_service_shutdown() local
104 svc = tb_to_service(dev); in tb_service_shutdown()
105 if (!svc || !dev->driver) in tb_service_shutdown()
[all …]
/linux/include/linux/
A Dthunderbolt.h393 if (svc) in tb_service_get()
394 get_device(&svc->dev); in tb_service_get()
395 return svc; in tb_service_get()
398 static inline void tb_service_put(struct tb_service *svc) in tb_service_put() argument
400 if (svc) in tb_service_put()
401 put_device(&svc->dev); in tb_service_put()
427 void (*remove)(struct tb_service *svc);
428 void (*shutdown)(struct tb_service *svc);
443 return dev_get_drvdata(&svc->dev); in tb_service_get_drvdata()
448 dev_set_drvdata(&svc->dev, data); in tb_service_set_drvdata()
[all …]
/linux/drivers/firmware/
A Dqcom_scm.c123 .svc = QCOM_SCM_SVC_INFO, in __get_convention()
237 .svc = QCOM_SCM_SVC_INFO, in __qcom_scm_is_call_available()
447 .svc = QCOM_SCM_SVC_PIL, in qcom_scm_pas_init_image()
652 .svc = QCOM_SCM_SVC_IO, in qcom_scm_io_readl()
673 .svc = QCOM_SCM_SVC_IO, in qcom_scm_io_writel()
701 .svc = QCOM_SCM_SVC_MP, in qcom_scm_restore_sec_cfg()
720 .svc = QCOM_SCM_SVC_MP, in qcom_scm_iommu_secure_ptbl_size()
741 .svc = QCOM_SCM_SVC_MP, in qcom_scm_iommu_secure_ptbl_init()
774 .svc = QCOM_SCM_SVC_MP, in qcom_scm_mem_protect_video_var()
798 .svc = QCOM_SCM_SVC_MP, in __qcom_scm_assign_mem()
[all …]
/linux/Documentation/driver-api/firmware/
A Dother_interfaces.rst29 .. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
32 .. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
35 .. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
38 .. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
41 .. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
44 .. kernel-doc:: drivers/firmware/stratix10-svc.c
/linux/include/net/
A Dip_vs.h703 int (*init_service)(struct ip_vs_service *svc);
705 void (*done_service)(struct ip_vs_service *svc);
1406 int ip_vs_bind_scheduler(struct ip_vs_service *svc,
1684 int afmask = (svc->af == AF_INET6) ? 2 : 1; in ip_vs_register_conntrack()
1687 if (!(svc->conntrack_afmask & afmask)) { in ip_vs_register_conntrack()
1688 ret = nf_ct_netns_get(svc->ipvs->net, svc->af); in ip_vs_register_conntrack()
1690 svc->conntrack_afmask |= afmask; in ip_vs_register_conntrack()
1701 int afmask = (svc->af == AF_INET6) ? 2 : 1; in ip_vs_unregister_conntrack()
1703 if (svc->conntrack_afmask & afmask) { in ip_vs_unregister_conntrack()
1704 nf_ct_netns_put(svc->ipvs->net, svc->af); in ip_vs_unregister_conntrack()
[all …]

Completed in 63 milliseconds

12345678