/Linux-v5.4/drivers/greybus/ |
D | svc.c | 27 struct gb_svc *svc = to_gb_svc(dev); in endo_id_show() local 29 return sprintf(buf, "0x%04x\n", svc->endo_id); in endo_id_show() 36 struct gb_svc *svc = to_gb_svc(dev); in ap_intf_id_show() local 38 return sprintf(buf, "%u\n", svc->ap_intf_id); in ap_intf_id_show() 51 struct gb_svc *svc = to_gb_svc(dev); in intf_eject_store() local 61 ret = gb_svc_intf_eject(svc, intf_id); in intf_eject_store() 72 struct gb_svc *svc = to_gb_svc(dev); in watchdog_show() local 75 gb_svc_watchdog_enabled(svc) ? "enabled" : "disabled"); in watchdog_show() 82 struct gb_svc *svc = to_gb_svc(dev); in watchdog_store() local 91 retval = gb_svc_watchdog_enable(svc); in watchdog_store() [all …]
|
D | svc_watchdog.c | 17 struct gb_svc *svc; member 32 gb_svc_watchdog_disable(watchdog->svc); in svc_watchdog_pm_notifier() 35 gb_svc_watchdog_enable(watchdog->svc); in svc_watchdog_pm_notifier() 66 struct gb_svc *svc; in do_work() local 70 svc = watchdog->svc; in do_work() 72 dev_dbg(&svc->dev, "%s: ping.\n", __func__); in do_work() 73 retval = gb_svc_ping(svc); in do_work() 82 dev_err(&svc->dev, in do_work() 86 if (svc->action == GB_SVC_WATCHDOG_BITE_PANIC_KERNEL) { in do_work() 88 } else if (svc->action == GB_SVC_WATCHDOG_BITE_RESET_UNIPRO) { in do_work() [all …]
|
D | interface.c | 51 return gb_svc_dme_peer_get(intf->hd->svc, intf->interface_id, in gb_interface_dme_attr_get() 128 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() 143 ret = gb_svc_intf_device_id(svc, intf_id, device_id); 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() 168 ida_simple_remove(&svc->device_id_map, device_id); 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() 181 ida_simple_remove(&svc->device_id_map, intf->device_id); in gb_interface_route_destroy() 381 ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status() [all …]
|
D | hd.c | 112 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-v5.4/include/linux/greybus/ |
D | svc.h | 36 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); 67 int gb_svc_pwrmon_intf_sample_get(struct gb_svc *svc, u8 intf_id, 69 int gb_svc_intf_device_id(struct gb_svc *svc, u8 intf_id, u8 device_id); 70 int gb_svc_route_create(struct gb_svc *svc, u8 intf1_id, u8 dev1_id, 72 void gb_svc_route_destroy(struct gb_svc *svc, u8 intf1_id, u8 intf2_id); 73 int gb_svc_connection_create(struct gb_svc *svc, u8 intf1_id, u16 cport1_id, 75 void gb_svc_connection_destroy(struct gb_svc *svc, u8 intf1_id, u16 cport1_id, [all …]
|
/Linux-v5.4/net/netfilter/ipvs/ |
D | ip_vs_wrr.c | 69 static int ip_vs_wrr_gcd_weight(struct ip_vs_service *svc) in ip_vs_wrr_gcd_weight() argument 75 list_for_each_entry(dest, &svc->destinations, n_list) { in ip_vs_wrr_gcd_weight() 91 static int ip_vs_wrr_max_weight(struct ip_vs_service *svc) in ip_vs_wrr_max_weight() argument 96 list_for_each_entry(dest, &svc->destinations, n_list) { in ip_vs_wrr_max_weight() 106 static int ip_vs_wrr_init_svc(struct ip_vs_service *svc) in ip_vs_wrr_init_svc() argument 117 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc() 118 mark->di = ip_vs_wrr_gcd_weight(svc); in ip_vs_wrr_init_svc() 119 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc() 121 svc->sched_data = mark; in ip_vs_wrr_init_svc() 127 static void ip_vs_wrr_done_svc(struct ip_vs_service *svc) in ip_vs_wrr_done_svc() argument [all …]
|
D | ip_vs_mh.c | 123 struct ip_vs_service *svc) in ip_vs_mh_permutate() argument 138 p = &svc->destinations; in ip_vs_mh_permutate() 140 while ((p = p->next) != &svc->destinations) { in ip_vs_mh_permutate() 143 ds->offset = ip_vs_mh_hashkey(svc->af, &dest->addr, in ip_vs_mh_permutate() 146 ds->skip = ip_vs_mh_hashkey(svc->af, &dest->addr, 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() 190 while (p != &svc->destinations) { in ip_vs_mh_populate() 236 ip_vs_mh_get(struct ip_vs_service *svc, struct ip_vs_mh_state *s, in ip_vs_mh_get() argument [all …]
|
D | ip_vs_ctl.c | 67 static void __ip_vs_del_service(struct ip_vs_service *svc, bool cleanup); 293 static int ip_vs_svc_hash(struct ip_vs_service *svc) in ip_vs_svc_hash() argument 297 if (svc->flags & IP_VS_SVC_F_HASHED) { in ip_vs_svc_hash() 303 if (svc->fwmark == 0) { in ip_vs_svc_hash() 307 hash = ip_vs_svc_hashkey(svc->ipvs, svc->af, svc->protocol, in ip_vs_svc_hash() 308 &svc->addr, svc->port); in ip_vs_svc_hash() 309 hlist_add_head_rcu(&svc->s_list, &ip_vs_svc_table[hash]); in ip_vs_svc_hash() 314 hash = ip_vs_svc_fwm_hashkey(svc->ipvs, svc->fwmark); in ip_vs_svc_hash() 315 hlist_add_head_rcu(&svc->f_list, &ip_vs_svc_fwm_table[hash]); in ip_vs_svc_hash() 318 svc->flags |= IP_VS_SVC_F_HASHED; in ip_vs_svc_hash() [all …]
|
D | ip_vs_rr.c | 26 static int ip_vs_rr_init_svc(struct ip_vs_service *svc) in ip_vs_rr_init_svc() argument 28 svc->sched_data = &svc->destinations; in ip_vs_rr_init_svc() 33 static int ip_vs_rr_del_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest) in ip_vs_rr_del_dest() argument 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() 53 ip_vs_rr_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_rr_schedule() argument 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() [all …]
|
D | ip_vs_lblc.c | 105 struct ip_vs_service *svc; /* pointer back to service */ member 229 static void ip_vs_lblc_flush(struct ip_vs_service *svc) in ip_vs_lblc_flush() argument 231 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_flush() 236 spin_lock_bh(&svc->sched_lock); in ip_vs_lblc_flush() 244 spin_unlock_bh(&svc->sched_lock); in ip_vs_lblc_flush() 247 static int sysctl_lblc_expiration(struct ip_vs_service *svc) in sysctl_lblc_expiration() argument 250 return svc->ipvs->sysctl_lblc_expiration; in sysctl_lblc_expiration() 256 static inline void ip_vs_lblc_full_check(struct ip_vs_service *svc) in ip_vs_lblc_full_check() argument 258 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_full_check() 267 spin_lock(&svc->sched_lock); in ip_vs_lblc_full_check() [all …]
|
D | ip_vs_sched.c | 40 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 65 cur_sched = rcu_dereference_protected(svc->scheduler, 1); in ip_vs_unbind_scheduler() 71 sched->done_service(svc); in ip_vs_unbind_scheduler() 143 void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg) in ip_vs_scheduler_err() argument 145 struct ip_vs_scheduler *sched = rcu_dereference(svc->scheduler); in ip_vs_scheduler_err() 148 if (svc->fwmark) { in ip_vs_scheduler_err() 150 sched_name, svc->fwmark, svc->fwmark, msg); in ip_vs_scheduler_err() [all …]
|
D | ip_vs_sh.c | 104 ip_vs_sh_get(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get() argument 107 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get() 121 ip_vs_sh_get_fallback(struct ip_vs_service *svc, struct ip_vs_sh_state *s, in ip_vs_sh_get_fallback() argument 129 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get_fallback() 144 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback() 163 ip_vs_sh_reassign(struct ip_vs_sh_state *s, struct ip_vs_service *svc) in ip_vs_sh_reassign() argument 173 p = &svc->destinations; in ip_vs_sh_reassign() 183 if (p == &svc->destinations) in ip_vs_sh_reassign() 228 static int ip_vs_sh_init_svc(struct ip_vs_service *svc) in ip_vs_sh_init_svc() argument 237 svc->sched_data = s; in ip_vs_sh_init_svc() [all …]
|
D | ip_vs_lblcr.c | 277 struct ip_vs_service *svc; /* pointer back to service */ member 395 static void ip_vs_lblcr_flush(struct ip_vs_service *svc) in ip_vs_lblcr_flush() argument 397 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_flush() 402 spin_lock_bh(&svc->sched_lock); in ip_vs_lblcr_flush() 409 spin_unlock_bh(&svc->sched_lock); in ip_vs_lblcr_flush() 412 static int sysctl_lblcr_expiration(struct ip_vs_service *svc) in sysctl_lblcr_expiration() argument 415 return svc->ipvs->sysctl_lblcr_expiration; in sysctl_lblcr_expiration() 421 static inline void ip_vs_lblcr_full_check(struct ip_vs_service *svc) in ip_vs_lblcr_full_check() argument 423 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_full_check() 432 spin_lock(&svc->sched_lock); in ip_vs_lblcr_full_check() [all …]
|
D | ip_vs_dh.c | 98 ip_vs_dh_reassign(struct ip_vs_dh_state *s, struct ip_vs_service *svc) in ip_vs_dh_reassign() argument 107 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() 173 static void ip_vs_dh_done_svc(struct ip_vs_service *svc) in ip_vs_dh_done_svc() argument 175 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_done_svc() 187 static int ip_vs_dh_dest_changed(struct ip_vs_service *svc, in ip_vs_dh_dest_changed() argument 190 struct ip_vs_dh_state *s = svc->sched_data; in ip_vs_dh_dest_changed() [all …]
|
D | ip_vs_core.c | 141 struct ip_vs_service *svc; in ip_vs_in_stats() local 151 svc = rcu_dereference(dest->svc); in ip_vs_in_stats() 152 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_in_stats() 177 struct ip_vs_service *svc; in ip_vs_out_stats() local 187 svc = rcu_dereference(dest->svc); in ip_vs_out_stats() 188 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_out_stats() 206 ip_vs_conn_stats(struct ip_vs_conn *cp, struct ip_vs_service *svc) in ip_vs_conn_stats() argument 208 struct netns_ipvs *ipvs = svc->ipvs; in ip_vs_conn_stats() 218 s = this_cpu_ptr(svc->stats.cpustats); in ip_vs_conn_stats() 242 ip_vs_conn_fill_param_persist(const struct ip_vs_service *svc, in ip_vs_conn_fill_param_persist() argument [all …]
|
D | ip_vs_sed.c | 57 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()
|
D | ip_vs_wlc.c | 29 ip_vs_wlc_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_wlc_schedule() argument 50 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_wlc_schedule() 58 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_wlc_schedule() 65 list_for_each_entry_continue_rcu(dest, &svc->destinations, n_list) { in ip_vs_wlc_schedule()
|
D | ip_vs_fo.c | 21 ip_vs_fo_schedule(struct ip_vs_service *svc, const struct sk_buff *skb, in ip_vs_fo_schedule() argument 32 list_for_each_entry_rcu(dest, &svc->destinations, n_list) { in ip_vs_fo_schedule() 49 ip_vs_scheduler_err(svc, "no destination available"); in ip_vs_fo_schedule()
|
/Linux-v5.4/drivers/soc/qcom/ |
D | qmi_interface.c | 36 struct qmi_service *svc; in qmi_recv_new_server() local 46 svc = kzalloc(sizeof(*svc), GFP_KERNEL); in qmi_recv_new_server() 47 if (!svc) in qmi_recv_new_server() 50 svc->service = service; in qmi_recv_new_server() 51 svc->version = instance & 0xff; in qmi_recv_new_server() 52 svc->instance = instance >> 8; in qmi_recv_new_server() 53 svc->node = node; in qmi_recv_new_server() 54 svc->port = port; in qmi_recv_new_server() 56 ret = ops->new_server(qmi, svc); in qmi_recv_new_server() 58 kfree(svc); in qmi_recv_new_server() [all …]
|
/Linux-v5.4/drivers/thunderbolt/ |
D | xdomain.c | 633 struct tb_service *svc = container_of(dev, struct tb_service, dev); in key_show() local 639 return sprintf(buf, "%*pE\n", (int)strlen(svc->key), svc->key); in key_show() 643 static int get_modalias(struct tb_service *svc, char *buf, size_t size) in get_modalias() argument 645 return snprintf(buf, size, "tbsvc:k%sp%08Xv%08Xr%08X", svc->key, in get_modalias() 646 svc->prtcid, svc->prtcvers, svc->prtcrevs); in get_modalias() 652 struct tb_service *svc = container_of(dev, struct tb_service, dev); in modalias_show() local 655 get_modalias(svc, buf, PAGE_SIZE - 2); in modalias_show() 663 struct tb_service *svc = container_of(dev, struct tb_service, dev); in prtcid_show() local 665 return sprintf(buf, "%u\n", svc->prtcid); in prtcid_show() 672 struct tb_service *svc = container_of(dev, struct tb_service, dev); in prtcvers_show() local [all …]
|
D | domain.c | 24 const struct tb_service *svc) in match_service_id() argument 27 if (strcmp(id->protocol_key, svc->key)) in match_service_id() 32 if (id->protocol_id != svc->prtcid) in match_service_id() 37 if (id->protocol_version != svc->prtcvers) in match_service_id() 42 if (id->protocol_revision != svc->prtcrevs) in match_service_id() 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() 79 struct tb_service *svc = tb_to_service(dev); in tb_service_probe() local [all …]
|
/Linux-v5.4/include/linux/ |
D | thunderbolt.h | 362 static inline struct tb_service *tb_service_get(struct tb_service *svc) in tb_service_get() argument 364 if (svc) in tb_service_get() 365 get_device(&svc->dev); in tb_service_get() 366 return svc; in tb_service_get() 369 static inline void tb_service_put(struct tb_service *svc) in tb_service_put() argument 371 if (svc) in tb_service_put() 372 put_device(&svc->dev); in tb_service_put() 397 int (*probe)(struct tb_service *svc, const struct tb_service_id *id); 398 void (*remove)(struct tb_service *svc); 399 void (*shutdown)(struct tb_service *svc); [all …]
|
/Linux-v5.4/Documentation/driver-api/firmware/ |
D | other_interfaces.rst | 29 .. 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-v5.4/arch/arm64/kernel/vdso32/ |
D | sigreturn.S | 29 svc #0 39 svc #0 50 svc #0 60 svc #0
|
/Linux-v5.4/include/net/ |
D | ip_vs.h | 687 struct ip_vs_service __rcu *svc; /* service it belongs to */ member 705 int (*init_service)(struct ip_vs_service *svc); 707 void (*done_service)(struct ip_vs_service *svc); 709 int (*add_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest); 711 int (*del_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest); 713 int (*upd_dest)(struct ip_vs_service *svc, struct ip_vs_dest *dest); 716 struct ip_vs_dest* (*schedule)(struct ip_vs_service *svc, 736 struct ip_vs_conn* (*conn_out)(struct ip_vs_service *svc, 1161 struct ip_vs_conn *ip_vs_new_conn_out(struct ip_vs_service *svc, 1383 int ip_vs_bind_scheduler(struct ip_vs_service *svc, [all …]
|