Home
last modified time | relevance | path

Searched refs:srv (Results 1 – 25 of 38) sorted by relevance

12

/linux/net/qrtr/
H A Dns.c96 static int server_match(const struct qrtr_server *srv, in server_match() argument
101 if (f->service != 0 && srv->service != f->service) in server_match()
106 return (srv->instance & ifilter) == f->instance; in server_match()
110 struct qrtr_server *srv) in service_announce_new() argument
116 trace_qrtr_ns_service_announce_new(srv->service, srv->instance, in service_announce_new()
117 srv->node, srv->port); in service_announce_new()
124 pkt.server.service = cpu_to_le32(srv->service); in service_announce_new()
125 pkt.server.instance = cpu_to_le32(srv->instance); in service_announce_new()
126 pkt.server.node = cpu_to_le32(srv->node); in service_announce_new()
127 pkt.server.port = cpu_to_le32(srv->port); in service_announce_new()
[all …]
/linux/net/tipc/
H A Dtopsrv.c252 struct tipc_topsrv *srv = con->server; in tipc_conn_send_to_sock() local
286 tipc_topsrv_kern_evt(srv->net, evt); in tipc_conn_send_to_sock()
317 struct tipc_topsrv *srv = tipc_topsrv(net); in tipc_topsrv_queue_evt() local
321 con = tipc_conn_lookup(srv, conid); in tipc_topsrv_queue_evt()
337 if (queue_work(srv->send_wq, &con->swork)) in tipc_topsrv_queue_evt()
361 static int tipc_conn_rcv_sub(struct tipc_topsrv *srv, in tipc_conn_rcv_sub() argument
365 struct tipc_net *tn = tipc_net(srv->net); in tipc_conn_rcv_sub()
378 sub = tipc_sub_subscribe(srv->net, s, con->conid); in tipc_conn_rcv_sub()
390 struct tipc_topsrv *srv = con->server; in tipc_conn_rcv_from_sock() local
408 ret = tipc_conn_rcv_sub(srv, con, &s); in tipc_conn_rcv_from_sock()
[all …]
/linux/drivers/infiniband/ulp/rtrs/
H A Drtrs-srv-sysfs.c157 struct rtrs_srv_sess *srv = srv_path->srv; in rtrs_srv_create_once_sysfs_root_folders() local
160 mutex_lock(&srv->paths_mutex); in rtrs_srv_create_once_sysfs_root_folders()
161 if (srv->dev_ref++) { in rtrs_srv_create_once_sysfs_root_folders()
167 srv->dev.class = &rtrs_dev_class; in rtrs_srv_create_once_sysfs_root_folders()
168 err = dev_set_name(&srv->dev, "%s", srv_path->s.sessname); in rtrs_srv_create_once_sysfs_root_folders()
176 dev_set_uevent_suppress(&srv->dev, true); in rtrs_srv_create_once_sysfs_root_folders()
177 err = device_add(&srv->dev); in rtrs_srv_create_once_sysfs_root_folders()
180 put_device(&srv->dev); in rtrs_srv_create_once_sysfs_root_folders()
183 srv->kobj_paths = kobject_create_and_add("paths", &srv->dev.kobj); in rtrs_srv_create_once_sysfs_root_folders()
184 if (!srv->kobj_paths) { in rtrs_srv_create_once_sysfs_root_folders()
[all …]
H A Drtrs-srv.c108 struct rtrs_srv_sess *srv = srv_path->srv; in rtrs_srv_free_ops_ids() local
112 for (i = 0; i < srv->queue_depth; i++) in rtrs_srv_free_ops_ids()
137 struct rtrs_srv_sess *srv = srv_path->srv; in rtrs_srv_alloc_ops_ids() local
141 srv_path->ops_ids = kcalloc(srv->queue_depth, in rtrs_srv_alloc_ops_ids()
147 for (i = 0; i < srv->queue_depth; ++i) { in rtrs_srv_alloc_ops_ids()
543 void rtrs_srv_set_sess_priv(struct rtrs_srv_sess *srv, void *priv) in rtrs_srv_set_sess_priv() argument
545 srv->priv = priv; in rtrs_srv_set_sess_priv()
571 struct rtrs_srv_sess *srv = srv_path->srv; in map_cont_bufs() local
588 mrs_num = srv->queue_depth; in map_cont_bufs()
592 mrs_num = DIV_ROUND_UP(srv->queue_depth, chunks_per_mr); in map_cont_bufs()
[all …]
H A DMakefile10 CFLAGS_rtrs-srv-trace.o = -I$(src)
12 rtrs-server-y := rtrs-srv.o \
13 rtrs-srv-stats.o \
14 rtrs-srv-sysfs.o \
15 rtrs-srv-trace.o
H A Drtrs-srv-trace.h86 #define TRACE_INCLUDE_FILE rtrs-srv-trace
/linux/drivers/pci/pcie/
H A Dpme.c44 struct pcie_device *srv; member
218 struct pci_dev *port = data->srv->port; in pcie_pme_work_fn()
326 static int pcie_pme_probe(struct pcie_device *srv) in pcie_pme_probe() argument
328 struct pci_dev *port = srv->port; in pcie_pme_probe()
344 data->srv = srv; in pcie_pme_probe()
345 set_service_data(srv, data); in pcie_pme_probe()
350 ret = request_irq(srv->irq, pcie_pme_irq, IRQF_SHARED, "PCIe PME", srv); in pcie_pme_probe()
356 pci_info(port, "Signaling with IRQ %d\n", srv->irq); in pcie_pme_probe()
392 static int pcie_pme_suspend(struct pcie_device *srv) in pcie_pme_suspend() argument
394 struct pcie_pme_service_data *data = get_service_data(srv); in pcie_pme_suspend()
[all …]
/linux/drivers/hv/
H A Dhv_util.c106 static int hv_shutdown_init(struct hv_util_service *srv) in hv_shutdown_init() argument
108 struct vmbus_channel *channel = srv->channel; in hv_shutdown_init()
124 static int hv_timesync_init(struct hv_util_service *srv);
585 struct hv_util_service *srv = in util_probe() local
589 srv->recv_buffer = kmalloc(HV_HYP_PAGE_SIZE * 4, GFP_KERNEL); in util_probe()
590 if (!srv->recv_buffer) in util_probe()
592 srv->channel = dev->channel; in util_probe()
593 if (srv->util_init) { in util_probe()
594 ret = srv->util_init(srv); in util_probe()
608 hv_set_drvdata(dev, srv); in util_probe()
[all …]
H A Dhv_snapshot.c373 hv_vss_init(struct hv_util_service *srv) in hv_vss_init() argument
380 recv_buffer = srv->recv_buffer; in hv_vss_init()
381 vss_transaction.recv_channel = srv->channel; in hv_vss_init()
H A Dhyperv_vmbus.h372 int hv_kvp_init(struct hv_util_service *srv);
379 int hv_vss_init(struct hv_util_service *srv);
H A Dhv_kvp.c756 hv_kvp_init(struct hv_util_service *srv) in hv_kvp_init() argument
758 recv_buffer = srv->recv_buffer; in hv_kvp_init()
759 kvp_transaction.recv_channel = srv->channel; in hv_kvp_init()
/linux/tools/testing/selftests/landlock/
H A Dnet_test.c39 static int set_service(struct service_fixture *const srv, in set_service() argument
43 memset(srv, 0, sizeof(*srv)); in set_service()
49 srv->protocol = prot; in set_service()
54 srv->port = sock_port_start << (2 * index); in set_service()
59 srv->ipv4_addr.sin_family = prot.domain; in set_service()
60 srv->ipv4_addr.sin_port = htons(srv->port); in set_service()
61 srv->ipv4_addr.sin_addr.s_addr = inet_addr(loopback_ipv4); in set_service()
65 srv->ipv6_addr.sin6_family = prot.domain; in set_service()
66 srv->ipv6_addr.sin6_port = htons(srv->port); in set_service()
67 inet_pton(AF_INET6, loopback_ipv6, &srv->ipv6_addr.sin6_addr); in set_service()
[all …]
H A Dcommon.h258 static void __maybe_unused set_unix_address(struct service_fixture *const srv, in set_unix_address() argument
261 srv->unix_addr.sun_family = AF_UNIX; in set_unix_address()
262 sprintf(srv->unix_addr.sun_path, in set_unix_address()
265 srv->unix_addr_len = SUN_LEN(&srv->unix_addr); in set_unix_address()
266 srv->unix_addr.sun_path[0] = '\0'; in set_unix_address()
/linux/drivers/gpu/drm/amd/display/dmub/src/
H A Ddmub_reg.c72 void dmub_reg_update(struct dmub_srv *srv, uint32_t addr, int n, uint8_t shift1, in dmub_reg_update() argument
84 reg_val = srv->funcs.reg_read(srv->user_ctx, addr); in dmub_reg_update()
86 srv->funcs.reg_write(srv->user_ctx, addr, reg_val); in dmub_reg_update()
89 void dmub_reg_set(struct dmub_srv *srv, uint32_t addr, uint32_t reg_val, int n, in dmub_reg_set() argument
101 srv->funcs.reg_write(srv->user_ctx, addr, reg_val); in dmub_reg_set()
104 void dmub_reg_get(struct dmub_srv *srv, uint32_t addr, uint8_t shift, in dmub_reg_get() argument
107 uint32_t reg_val = srv->funcs.reg_read(srv->user_ctx, addr); in dmub_reg_get()
H A Ddmub_reg.h114 void dmub_reg_set(struct dmub_srv *srv, uint32_t addr, uint32_t reg_val, int n,
117 void dmub_reg_update(struct dmub_srv *srv, uint32_t addr, int n, uint8_t shift1,
120 void dmub_reg_get(struct dmub_srv *srv, uint32_t addr, uint8_t shift,
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_rl_admin.c22 req->svc_type = sla->srv; in prep_admin_req_msg()
30 adf_rl_calculate_pci_bw(accel_dev, sla->cir, sla->srv, false); in prep_admin_req_params()
32 adf_rl_calculate_pci_bw(accel_dev, sla->pir, sla->srv, false); in prep_admin_req_params()
34 adf_rl_calculate_pci_bw(accel_dev, sla->cir, sla->srv, true); in prep_admin_req_params()
36 adf_rl_calculate_pci_bw(accel_dev, sla->pir, sla->srv, true); in prep_admin_req_params()
39 adf_rl_calculate_slice_tokens(accel_dev, sla->cir, sla->srv); in prep_admin_req_params()
41 adf_rl_calculate_slice_tokens(accel_dev, sla->pir, sla->srv); in prep_admin_req_params()
44 adf_rl_calculate_ae_cycles(accel_dev, sla->cir, sla->srv); in prep_admin_req_params()
46 adf_rl_calculate_ae_cycles(accel_dev, sla->pir, sla->srv); in prep_admin_req_params()
H A Dadf_rl.c58 if (sla_in->srv >= ADF_SVC_NONE) { in validate_user_input()
138 if (parent_sla && parent_sla->srv == sla_in->srv && in find_parent()
147 if (rl_data->root[i] && rl_data->root[i]->srv == sla_in->srv) { in find_parent()
246 enum adf_cfg_service_type arb_srv = srv_to_cfg_svc_type(sla->srv); in prepare_rp_ids()
525 i = sla->srv * rp_per_leaf; in get_next_free_node_id()
531 i = sla->srv; in get_next_free_node_id()
537 return sla->srv; in get_next_free_node_id()
663 if (!is_service_enabled(accel_dev, sla_in->srv)) { in add_new_sla_entry()
670 sla->srv = sla_in->srv; in add_new_sla_entry()
739 sla_in.srv = i; in initialize_default_nodes()
[all …]
H A Dadf_rl.h69 enum adf_base_services srv; member
144 enum adf_base_services srv; member
163 enum adf_base_services srv, int sla_id);
H A Dadf_sysfs_rl.c72 data->input.srv = set; in set_param_u()
128 *get = data->input.srv; in get_param_u()
308 static DEVICE_ATTR_RW(srv);
443 data->input.srv = ADF_SVC_NONE; in adf_sysfs_rl_add()
H A Dadf_gen4_vf_mig.c156 enum adf_base_services srv; member
175 if (src_slas[i].srv != dst_slas[j].srv || in adf_mstate_sla_check()
189 src_slas[i].srv, src_slas[i].rp_mask); in adf_mstate_sla_check()
341 pmig_slas->srv = sla_type_arr[i]->srv; in adf_gen4_vfmig_get_slas()
/linux/drivers/block/rnbd/
H A DMakefile8 CFLAGS_rnbd-srv-trace.o = -I$(src)
10 rnbd-server-y := rnbd-srv.o \
11 rnbd-srv-sysfs.o \
12 rnbd-srv-trace.o
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_ktls.c40 int err, cli, srv, zero = 0; in test_sockmap_ktls_disconnect_after_delete() local
42 srv = tcp_server(family); in test_sockmap_ktls_disconnect_after_delete()
43 if (srv == -1) in test_sockmap_ktls_disconnect_after_delete()
46 err = getsockname(srv, (struct sockaddr *)&addr, &len); in test_sockmap_ktls_disconnect_after_delete()
76 close(srv); in test_sockmap_ktls_disconnect_after_delete()
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_nat_zones.sh60 setup_ns gw srv
64 ip link add veth0 netns "$gw" type veth peer name eth0 netns "$srv"
66 ip -net "$srv" link set eth0 up
114 ip -net "$srv" addr add 10.3.0.99/24 dev eth0
115 ip -net "$srv" addr add dead:3::99/64 dev eth0 nodad
228 ip netns exec "$srv" socat -u TCP-LISTEN:5201,fork STDOUT > /dev/null 2>/dev/null &
231 busywait 1000 listener_ready "$srv"
/linux/Documentation/ABI/testing/
H A Dsysfs-driver-qat_rl13 The associated attributes are: cir, pir, srv, rp, and id.
18 * Inputs: cir, pir, srv, and rp
23 * Outputs: cir, pir, srv, and rp
50 i.e. the one provided with the srv attribute. The service
93 ## Set attributes e.g. cir, pir, srv, etc
174 What: /sys/bus/pci/devices/<BDF>/qat_rl/srv
194 # echo "dc" > /sys/bus/pci/devices/<BDF>/qat_rl/srv
202 # cat /sys/bus/pci/devices/<BDF>/qat_rl/srv
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_so.h63 struct SVGA3dCmdDXDestroyShaderResourceView srv; member

12