Home
last modified time | relevance | path

Searched refs:mreq (Results 1 – 18 of 18) sorted by relevance

/Linux-v6.1/drivers/usb/mtu3/
Dmtu3_gadget.c18 struct mtu3_request *mreq = to_mtu3_request(req); in mtu3_req_complete() local
19 struct mtu3 *mtu = mreq->mtu; in mtu3_req_complete()
21 list_del(&mreq->list); in mtu3_req_complete()
25 trace_mtu3_req_complete(mreq); in mtu3_req_complete()
41 struct mtu3_request *mreq = NULL; in nuke() local
53 mreq = list_first_entry(&mep->req_list, in nuke()
55 mtu3_req_complete(mep, &mreq->request, status); in nuke()
236 struct mtu3_request *mreq; in mtu3_alloc_request() local
238 mreq = kzalloc(sizeof(*mreq), gfp_flags); in mtu3_alloc_request()
239 if (!mreq) in mtu3_alloc_request()
[all …]
Dmtu3_gadget_ep0.c165 static int ep0_queue(struct mtu3_ep *mep0, struct mtu3_request *mreq);
172 struct mtu3_request *mreq; in ep0_set_sel_complete() local
178 mreq = to_mtu3_request(req); in ep0_set_sel_complete()
179 mtu = mreq->mtu; in ep0_set_sel_complete()
511 struct mtu3_request *mreq; in ep0_rx_state() local
521 mreq = next_ep0_request(mtu); in ep0_rx_state()
522 req = &mreq->request; in ep0_rx_state()
565 struct mtu3_request *mreq = next_ep0_request(mtu); in ep0_tx_state() local
574 if (!mreq) in ep0_tx_state()
578 req = &mreq->request; in ep0_tx_state()
[all …]
Dmtu3_trace.h117 TP_PROTO(struct mtu3_request *mreq),
118 TP_ARGS(mreq),
120 __string(name, mreq->mep->name)
121 __field(struct mtu3_request *, mreq)
130 __assign_str(name, mreq->mep->name);
131 __entry->mreq = mreq;
132 __entry->gpd = mreq->gpd;
133 __entry->actual = mreq->request.actual;
134 __entry->length = mreq->request.length;
135 __entry->status = mreq->request.status;
[all …]
Dmtu3_qmu.c243 static int mtu3_prepare_tx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq) in mtu3_prepare_tx_gpd() argument
248 struct usb_request *req = &mreq->request; in mtu3_prepare_tx_gpd()
280 mreq->gpd = gpd; in mtu3_prepare_tx_gpd()
286 static int mtu3_prepare_rx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq) in mtu3_prepare_rx_gpd() argument
291 struct usb_request *req = &mreq->request; in mtu3_prepare_rx_gpd()
315 mreq->gpd = gpd; in mtu3_prepare_rx_gpd()
321 void mtu3_insert_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq) in mtu3_insert_gpd() argument
325 mtu3_prepare_tx_gpd(mep, mreq); in mtu3_insert_gpd()
327 mtu3_prepare_rx_gpd(mep, mreq); in mtu3_insert_gpd()
423 struct mtu3_request *mreq; in qmu_tx_zlp_error_handler() local
[all …]
Dmtu3_qmu.h25 void mtu3_insert_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq);
/Linux-v6.1/arch/um/drivers/
Dumcast_user.c69 struct ip_mreq mreq; in umcast_open() local
124 mreq.imr_multiaddr.s_addr = lsin->sin_addr.s_addr; in umcast_open()
125 mreq.imr_interface.s_addr = 0; in umcast_open()
127 &mreq, sizeof(mreq)) < 0) { in umcast_open()
153 struct ip_mreq mreq; in umcast_close() local
156 mreq.imr_multiaddr.s_addr = lsin->sin_addr.s_addr; in umcast_close()
157 mreq.imr_interface.s_addr = 0; in umcast_close()
159 &mreq, sizeof(mreq)) < 0) { in umcast_close()
/Linux-v6.1/net/ipv4/
Dip_sockglue.c749 struct ip_mreqn mreq; in do_mcast_group_source() local
752 mreq.imr_multiaddr = psin->sin_addr; in do_mcast_group_source()
753 mreq.imr_address.s_addr = 0; in do_mcast_group_source()
754 mreq.imr_ifindex = greqs.gsr_interface; in do_mcast_group_source()
755 err = ip_mc_join_group_ssm(sk, &mreq, MCAST_INCLUDE); in do_mcast_group_source()
758 greqs.gsr_interface = mreq.imr_ifindex; in do_mcast_group_source()
847 struct ip_mreqn mreq = { }; in ip_mcast_join_leave() local
859 mreq.imr_multiaddr = psin->sin_addr; in ip_mcast_join_leave()
860 mreq.imr_ifindex = greq.gr_interface; in ip_mcast_join_leave()
862 return ip_mc_join_group(sk, &mreq); in ip_mcast_join_leave()
[all …]
Ddevinet.c623 struct ip_mreqn mreq = { in ip_mc_autojoin_config() local
634 ret = ip_mc_join_group(sk, &mreq); in ip_mc_autojoin_config()
636 ret = ip_mc_leave_group(sk, &mreq); in ip_mc_autojoin_config()
/Linux-v6.1/drivers/net/vxlan/
Dvxlan_multicast.c27 struct ip_mreqn mreq = { in vxlan_igmp_join() local
34 ret = ip_mc_join_group(sk, &mreq); in vxlan_igmp_join()
61 struct ip_mreqn mreq = { in vxlan_igmp_leave() local
68 ret = ip_mc_leave_group(sk, &mreq); in vxlan_igmp_leave()
/Linux-v6.1/net/ipv6/
Dipv6_sockglue.c839 struct ipv6_mreq mreq; in do_ipv6_setsockopt() local
849 if (copy_from_sockptr(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
853 retv = ipv6_sock_mc_join(sk, mreq.ipv6mr_ifindex, &mreq.ipv6mr_multiaddr); in do_ipv6_setsockopt()
855 retv = ipv6_sock_mc_drop(sk, mreq.ipv6mr_ifindex, &mreq.ipv6mr_multiaddr); in do_ipv6_setsockopt()
861 struct ipv6_mreq mreq; in do_ipv6_setsockopt() local
867 if (copy_from_sockptr(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
871 retv = ipv6_sock_ac_join(sk, mreq.ipv6mr_ifindex, &mreq.ipv6mr_acaddr); in do_ipv6_setsockopt()
873 retv = ipv6_sock_ac_drop(sk, mreq.ipv6mr_ifindex, &mreq.ipv6mr_acaddr); in do_ipv6_setsockopt()
/Linux-v6.1/net/tipc/
Dgroup.c164 struct tipc_group_req *mreq, in tipc_group_create() argument
168 bool global = mreq->scope != TIPC_NODE_SCOPE; in tipc_group_create()
170 u32 type = mreq->type; in tipc_group_create()
183 grp->instance = mreq->instance; in tipc_group_create()
184 grp->scope = mreq->scope; in tipc_group_create()
185 grp->loopback = mreq->flags & TIPC_GROUP_LOOPBACK; in tipc_group_create()
186 grp->events = mreq->flags & TIPC_GROUP_MEMBER_EVTS; in tipc_group_create()
Dgroup.h47 struct tipc_group_req *mreq,
Dsocket.c3068 static int tipc_sk_join(struct tipc_sock *tsk, struct tipc_group_req *mreq) in tipc_sk_join() argument
3076 if (mreq->type < TIPC_RESERVED_TYPES) in tipc_sk_join()
3078 if (mreq->scope > TIPC_NODE_SCOPE) in tipc_sk_join()
3080 if (mreq->scope != TIPC_NODE_SCOPE) in tipc_sk_join()
3081 mreq->scope = TIPC_CLUSTER_SCOPE; in tipc_sk_join()
3084 grp = tipc_group_create(net, tsk->portid, mreq, &tsk->group_is_open); in tipc_sk_join()
3088 msg_set_lookup_scope(hdr, mreq->scope); in tipc_sk_join()
3089 msg_set_nametype(hdr, mreq->type); in tipc_sk_join()
3091 tipc_uaddr(&ua, TIPC_SERVICE_RANGE, mreq->scope, in tipc_sk_join()
3092 mreq->type, mreq->instance, mreq->instance); in tipc_sk_join()
[all …]
/Linux-v6.1/tools/testing/selftests/net/
Dnettest.c487 struct ip_mreqn mreq = { .imr_ifindex = ifindex }; in set_multicast_if() local
490 rc = setsockopt(sd, SOL_IP, IP_MULTICAST_IF, &mreq, sizeof(mreq)); in set_multicast_if()
500 struct ip_mreqn mreq; in set_membership() local
508 mreq.imr_multiaddr.s_addr = grp; in set_membership()
509 mreq.imr_address.s_addr = if_addr; in set_membership()
510 mreq.imr_ifindex = ifindex; in set_membership()
512 rc = setsockopt(sd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)); in set_membership()
/Linux-v6.1/net/packet/
Daf_packet.c3649 static int packet_mc_add(struct sock *sk, struct packet_mreq_max *mreq) in packet_mc_add() argument
3659 dev = __dev_get_by_index(sock_net(sk), mreq->mr_ifindex); in packet_mc_add()
3664 if (mreq->mr_alen > dev->addr_len) in packet_mc_add()
3674 if (ml->ifindex == mreq->mr_ifindex && in packet_mc_add()
3675 ml->type == mreq->mr_type && in packet_mc_add()
3676 ml->alen == mreq->mr_alen && in packet_mc_add()
3677 memcmp(ml->addr, mreq->mr_address, ml->alen) == 0) { in packet_mc_add()
3685 i->type = mreq->mr_type; in packet_mc_add()
3686 i->ifindex = mreq->mr_ifindex; in packet_mc_add()
3687 i->alen = mreq->mr_alen; in packet_mc_add()
[all …]
/Linux-v6.1/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec_stateless.c318 static int fops_media_request_validate(struct media_request *mreq) in fops_media_request_validate() argument
320 const unsigned int buffer_cnt = vb2_request_buffer_cnt(mreq); in fops_media_request_validate()
335 return vb2_request_validate(mreq); in fops_media_request_validate()
/Linux-v6.1/drivers/scsi/qla2xxx/
Dqla_mbx.c5315 qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, in qla2x00_loopback_test() argument
5327 mcp->mb[1] = mreq->options | BIT_6; // BIT_6 specifies 64 bit addressing in qla2x00_loopback_test()
5330 mcp->mb[10] = LSW(mreq->transfer_size); in qla2x00_loopback_test()
5331 mcp->mb[11] = MSW(mreq->transfer_size); in qla2x00_loopback_test()
5334 mcp->mb[14] = LSW(mreq->send_dma); in qla2x00_loopback_test()
5335 mcp->mb[15] = MSW(mreq->send_dma); in qla2x00_loopback_test()
5336 mcp->mb[20] = LSW(MSD(mreq->send_dma)); in qla2x00_loopback_test()
5337 mcp->mb[21] = MSW(MSD(mreq->send_dma)); in qla2x00_loopback_test()
5340 mcp->mb[16] = LSW(mreq->rcv_dma); in qla2x00_loopback_test()
5341 mcp->mb[17] = MSW(mreq->rcv_dma); in qla2x00_loopback_test()
[all …]
/Linux-v6.1/net/netfilter/ipvs/
Dip_vs_sync.c1391 struct ip_mreqn mreq; in join_mcast_group() local
1394 memset(&mreq, 0, sizeof(mreq)); in join_mcast_group()
1395 memcpy(&mreq.imr_multiaddr, addr, sizeof(struct in_addr)); in join_mcast_group()
1400 mreq.imr_ifindex = dev->ifindex; in join_mcast_group()
1403 ret = ip_mc_join_group(sk, &mreq); in join_mcast_group()