Home
last modified time | relevance | path

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

/Linux-v4.19/tools/testing/selftests/net/
Dtls.c30 int fd, cfd; in FIXTURE() local
78 self->cfd = accept(sfd, &addr, &len); in FIXTURE_SETUP()
79 ASSERT_GE(self->cfd, 0); in FIXTURE_SETUP()
82 ret = setsockopt(self->cfd, IPPROTO_TCP, TCP_ULP, "tls", in FIXTURE_SETUP()
86 ret = setsockopt(self->cfd, SOL_TLS, TLS_RX, &tls12, in FIXTURE_SETUP()
97 close(self->cfd); in FIXTURE_TEARDOWN()
124 EXPECT_EQ(recv(self->cfd, recv_buf, to_send, 0), to_send); in TEST_F()
128 EXPECT_EQ(recv(self->cfd, buf, st.st_size, 0), st.st_size); in TEST_F()
138 EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1); in TEST_F()
150 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
[all …]
/Linux-v4.19/kernel/
Dsmp.c44 struct call_function_data *cfd = &per_cpu(cfd_data, cpu); in smpcfd_prepare_cpu() local
46 if (!zalloc_cpumask_var_node(&cfd->cpumask, GFP_KERNEL, in smpcfd_prepare_cpu()
49 if (!zalloc_cpumask_var_node(&cfd->cpumask_ipi, GFP_KERNEL, in smpcfd_prepare_cpu()
51 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu()
54 cfd->csd = alloc_percpu(call_single_data_t); in smpcfd_prepare_cpu()
55 if (!cfd->csd) { in smpcfd_prepare_cpu()
56 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu()
57 free_cpumask_var(cfd->cpumask_ipi); in smpcfd_prepare_cpu()
66 struct call_function_data *cfd = &per_cpu(cfd_data, cpu); in smpcfd_dead_cpu() local
68 free_cpumask_var(cfd->cpumask); in smpcfd_dead_cpu()
[all …]
/Linux-v4.19/drivers/media/platform/ti-vpe/
Dvpdma.c599 static void dump_cfd(struct vpdma_cfd *cfd) in dump_cfd() argument
603 class = cfd_get_class(cfd); in dump_cfd()
611 cfd->dest_addr_offset); in dump_cfd()
614 pr_debug("word1: num_data_wrds = %d\n", cfd->block_len); in dump_cfd()
616 pr_debug("word2: payload_addr = 0x%08x\n", cfd->payload_addr); in dump_cfd()
619 cfd_get_pkt_type(cfd), in dump_cfd()
620 cfd_get_direct(cfd), class, cfd_get_dest(cfd), in dump_cfd()
621 cfd_get_payload_len(cfd)); in dump_cfd()
632 struct vpdma_cfd *cfd; in vpdma_add_cfd_block() local
637 cfd = list->next; in vpdma_add_cfd_block()
[all …]
Dvpdma_priv.h486 static inline int cfd_get_pkt_type(struct vpdma_cfd *cfd) in cfd_get_pkt_type() argument
488 return cfd->ctl_payload_len >> CFD_PKT_TYPE_SHFT; in cfd_get_pkt_type()
491 static inline bool cfd_get_direct(struct vpdma_cfd *cfd) in cfd_get_direct() argument
493 return (cfd->ctl_payload_len >> CFD_DIRECT_SHFT) & CFD_DIRECT_MASK; in cfd_get_direct()
496 static inline bool cfd_get_class(struct vpdma_cfd *cfd) in cfd_get_class() argument
498 return (cfd->ctl_payload_len >> CFD_CLASS_SHFT) & CFD_CLASS_MASK; in cfd_get_class()
501 static inline int cfd_get_dest(struct vpdma_cfd *cfd) in cfd_get_dest() argument
503 return (cfd->ctl_payload_len >> CFD_DEST_SHFT) & CFD_DEST_MASK; in cfd_get_dest()
506 static inline int cfd_get_payload_len(struct vpdma_cfd *cfd) in cfd_get_payload_len() argument
508 return cfd->ctl_payload_len & CFD_PAYLOAD_LEN_MASK; in cfd_get_payload_len()
/Linux-v4.19/drivers/net/can/
Dvcan.c74 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in vcan_rx() local
78 stats->rx_bytes += cfd->len; in vcan_rx()
89 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in vcan_tx() local
97 stats->tx_bytes += cfd->len; in vcan_tx()
111 stats->rx_bytes += cfd->len; in vcan_tx()
Dvxcan.c50 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in vxcan_xmit() local
76 srcstats->tx_bytes += cfd->len; in vxcan_xmit()
79 peerstats->rx_bytes += cfd->len; in vxcan_xmit()
Ddev.c659 struct canfd_frame **cfd) in alloc_canfd_skb() argument
680 *cfd = skb_put_zero(skb, sizeof(struct canfd_frame)); in alloc_canfd_skb()
/Linux-v4.19/tools/cgroup/
Dcgroup_event_listener.c25 int cfd = -1; in main() local
34 cfd = open(argv[1], O_RDONLY); in main()
35 if (cfd == -1) in main()
51 ret = snprintf(line, LINE_MAX, "%d %d %s", efd, cfd, argv[2]); in main()
/Linux-v4.19/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c481 struct canfd_frame *cfd; in pcan_usb_fd_decode_canmsg() local
487 skb = alloc_canfd_skb(netdev, &cfd); in pcan_usb_fd_decode_canmsg()
492 cfd->flags |= CANFD_BRS; in pcan_usb_fd_decode_canmsg()
495 cfd->flags |= CANFD_ESI; in pcan_usb_fd_decode_canmsg()
497 cfd->len = can_dlc2len(get_canfd_dlc(pucan_msg_get_dlc(rm))); in pcan_usb_fd_decode_canmsg()
500 skb = alloc_can_skb(netdev, (struct can_frame **)&cfd); in pcan_usb_fd_decode_canmsg()
504 cfd->len = get_can_dlc(pucan_msg_get_dlc(rm)); in pcan_usb_fd_decode_canmsg()
507 cfd->can_id = le32_to_cpu(rm->can_id); in pcan_usb_fd_decode_canmsg()
510 cfd->can_id |= CAN_EFF_FLAG; in pcan_usb_fd_decode_canmsg()
513 cfd->can_id |= CAN_RTR_FLAG; in pcan_usb_fd_decode_canmsg()
[all …]
Dpcan_usb_core.c295 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in peak_usb_ndo_start_xmit() local
330 context->data_len = cfd->len; in peak_usb_ndo_start_xmit()
/Linux-v4.19/include/linux/can/
Ddev.h98 const struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_dropped_invalid_skb() local
102 cfd->len > CAN_MAX_DLEN)) in can_dropped_invalid_skb()
106 cfd->len > CANFD_MAX_DLEN)) in can_dropped_invalid_skb()
183 struct canfd_frame **cfd);
/Linux-v4.19/net/can/
Daf_can.c219 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_send() local
225 if (unlikely(cfd->len > CAN_MAX_DLEN)) in can_send()
229 if (unlikely(cfd->len > CANFD_MAX_DLEN)) in can_send()
239 if (unlikely(skb->len > skb->dev->mtu && cfd->len > CAN_MAX_DLEN)) { in can_send()
722 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_rcv() local
725 cfd->len > CAN_MAX_DLEN)) { in can_rcv()
727 dev->type, skb->len, cfd->len); in can_rcv()
739 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in canfd_rcv() local
742 cfd->len > CANFD_MAX_DLEN)) { in canfd_rcv()
744 dev->type, skb->len, cfd->len); in canfd_rcv()
/Linux-v4.19/tools/accounting/
Dgetdelays.c277 int cfd = 0; in main() local
428 cfd = open(containerpath, O_RDONLY); in main()
429 if (cfd < 0) { in main()
434 CGROUPSTATS_CMD_ATTR_FD, &cfd, sizeof(__u32)); in main()
548 if (cfd) in main()
549 close(cfd); in main()
/Linux-v4.19/Documentation/networking/
Dphonet.txt140 int lfd, cfd;
146 cfd = accept(lfd, NULL, NULL);
150 ssize_t len = read(cfd, buf, sizeof(buf));
154 write(cfd, msg, msglen);
Dcan.rst604 struct canfd_frame cfd;
606 nbytes = read(s, &cfd, CANFD_MTU);
609 printf("got CAN FD frame with length %d\n", cfd.len);
610 /* cfd.flags contains valid data */
612 printf("got legacy CAN frame with length %d\n", cfd.len);
613 /* cfd.flags is undefined */
621 printf("can_id: %X data length: %d data: ", cfd.can_id, cfd.len);
622 for (i = 0; i < cfd.len; i++)
623 printf("%02X ", cfd.data[i]);
Dkcm.txt181 info.fd = cfd;
/Linux-v4.19/drivers/usb/class/
Dcdc-acm.c1419 struct usb_cdc_country_functional_desc * cfd = in acm_probe() local
1422 acm->country_codes = kmalloc(cfd->bLength - 4, GFP_KERNEL); in acm_probe()
1425 acm->country_code_size = cfd->bLength - 4; in acm_probe()
1426 memcpy(acm->country_codes, (u8 *)&cfd->wCountyCode0, in acm_probe()
1427 cfd->bLength - 4); in acm_probe()
1428 acm->country_rel_date = cfd->iCountryCodeRelDate; in acm_probe()
/Linux-v4.19/mm/
Dmemcontrol.c4033 unsigned int efd, cfd; in memcg_write_event_control() local
4047 cfd = simple_strtoul(buf, &endp, 10); in memcg_write_event_control()
4074 cfile = fdget(cfd); in memcg_write_event_control()