| /Linux-v5.4/tools/testing/selftests/net/ |
| D | tls.c | 34 int fd, cfd; in FIXTURE() local 65 self->cfd = accept(sfd, &addr, &len); in FIXTURE_SETUP() 66 ASSERT_GE(self->cfd, 0); in FIXTURE_SETUP() 78 ret = setsockopt(self->cfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls")); in FIXTURE_SETUP() 85 close(self->cfd); in FIXTURE_TEARDOWN() 98 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F() 104 int fd, cfd; in FIXTURE() local 152 self->cfd = accept(sfd, &addr, &len); in FIXTURE_SETUP() 153 ASSERT_GE(self->cfd, 0); in FIXTURE_SETUP() 156 ret = setsockopt(self->cfd, IPPROTO_TCP, TCP_ULP, "tls", in FIXTURE_SETUP() [all …]
|
| /Linux-v5.4/kernel/ |
| D | smp.c | 45 struct call_function_data *cfd = &per_cpu(cfd_data, cpu); in smpcfd_prepare_cpu() local 47 if (!zalloc_cpumask_var_node(&cfd->cpumask, GFP_KERNEL, in smpcfd_prepare_cpu() 50 if (!zalloc_cpumask_var_node(&cfd->cpumask_ipi, GFP_KERNEL, in smpcfd_prepare_cpu() 52 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu() 55 cfd->csd = alloc_percpu(call_single_data_t); in smpcfd_prepare_cpu() 56 if (!cfd->csd) { in smpcfd_prepare_cpu() 57 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu() 58 free_cpumask_var(cfd->cpumask_ipi); in smpcfd_prepare_cpu() 67 struct call_function_data *cfd = &per_cpu(cfd_data, cpu); in smpcfd_dead_cpu() local 69 free_cpumask_var(cfd->cpumask); in smpcfd_dead_cpu() [all …]
|
| /Linux-v5.4/drivers/media/platform/ti-vpe/ |
| D | vpdma.c | 598 static void dump_cfd(struct vpdma_cfd *cfd) in dump_cfd() argument 602 class = cfd_get_class(cfd); in dump_cfd() 610 cfd->dest_addr_offset); in dump_cfd() 613 pr_debug("word1: num_data_wrds = %d\n", cfd->block_len); in dump_cfd() 615 pr_debug("word2: payload_addr = 0x%08x\n", cfd->payload_addr); in dump_cfd() 618 cfd_get_pkt_type(cfd), in dump_cfd() 619 cfd_get_direct(cfd), class, cfd_get_dest(cfd), in dump_cfd() 620 cfd_get_payload_len(cfd)); in dump_cfd() 631 struct vpdma_cfd *cfd; in vpdma_add_cfd_block() local 636 cfd = list->next; in vpdma_add_cfd_block() [all …]
|
| D | vpdma_priv.h | 483 static inline int cfd_get_pkt_type(struct vpdma_cfd *cfd) in cfd_get_pkt_type() argument 485 return cfd->ctl_payload_len >> CFD_PKT_TYPE_SHFT; in cfd_get_pkt_type() 488 static inline bool cfd_get_direct(struct vpdma_cfd *cfd) in cfd_get_direct() argument 490 return (cfd->ctl_payload_len >> CFD_DIRECT_SHFT) & CFD_DIRECT_MASK; in cfd_get_direct() 493 static inline bool cfd_get_class(struct vpdma_cfd *cfd) in cfd_get_class() argument 495 return (cfd->ctl_payload_len >> CFD_CLASS_SHFT) & CFD_CLASS_MASK; in cfd_get_class() 498 static inline int cfd_get_dest(struct vpdma_cfd *cfd) in cfd_get_dest() argument 500 return (cfd->ctl_payload_len >> CFD_DEST_SHFT) & CFD_DEST_MASK; in cfd_get_dest() 503 static inline int cfd_get_payload_len(struct vpdma_cfd *cfd) in cfd_get_payload_len() argument 505 return cfd->ctl_payload_len & CFD_PAYLOAD_LEN_MASK; in cfd_get_payload_len()
|
| /Linux-v5.4/tools/cgroup/ |
| D | cgroup_event_listener.c | 25 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-v5.4/drivers/net/can/usb/peak_usb/ |
| D | pcan_usb_fd.c | 473 struct canfd_frame *cfd; in pcan_usb_fd_decode_canmsg() local 479 skb = alloc_canfd_skb(netdev, &cfd); in pcan_usb_fd_decode_canmsg() 484 cfd->flags |= CANFD_BRS; in pcan_usb_fd_decode_canmsg() 487 cfd->flags |= CANFD_ESI; in pcan_usb_fd_decode_canmsg() 489 cfd->len = can_dlc2len(get_canfd_dlc(pucan_msg_get_dlc(rm))); in pcan_usb_fd_decode_canmsg() 492 skb = alloc_can_skb(netdev, (struct can_frame **)&cfd); in pcan_usb_fd_decode_canmsg() 496 cfd->len = get_can_dlc(pucan_msg_get_dlc(rm)); in pcan_usb_fd_decode_canmsg() 499 cfd->can_id = le32_to_cpu(rm->can_id); in pcan_usb_fd_decode_canmsg() 502 cfd->can_id |= CAN_EFF_FLAG; in pcan_usb_fd_decode_canmsg() 505 cfd->can_id |= CAN_RTR_FLAG; in pcan_usb_fd_decode_canmsg() [all …]
|
| D | pcan_usb_core.c | 287 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in peak_usb_ndo_start_xmit() local 322 context->data_len = cfd->len; in peak_usb_ndo_start_xmit()
|
| /Linux-v5.4/drivers/net/can/ |
| D | vcan.c | 73 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in vcan_rx() local 77 stats->rx_bytes += cfd->len; in vcan_rx() 88 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in vcan_tx() local 96 stats->tx_bytes += cfd->len; in vcan_tx() 108 stats->rx_bytes += cfd->len; in vcan_tx()
|
| D | vxcan.c | 40 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in vxcan_xmit() local 66 srcstats->tx_bytes += cfd->len; in vxcan_xmit() 69 peerstats->rx_bytes += cfd->len; in vxcan_xmit()
|
| D | dev.c | 667 struct canfd_frame **cfd) in alloc_canfd_skb() argument 688 *cfd = skb_put_zero(skb, sizeof(struct canfd_frame)); in alloc_canfd_skb()
|
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | cgroup_helpers.c | 49 int fd, cfd; in enable_all_controllers() local 73 cfd = open(path, O_RDWR); in enable_all_controllers() 74 if (cfd < 0) { in enable_all_controllers() 80 if (dprintf(cfd, "+%s\n", c) <= 0) { in enable_all_controllers() 82 close(cfd); in enable_all_controllers() 86 close(cfd); in enable_all_controllers()
|
| /Linux-v5.4/include/linux/can/ |
| D | dev.h | 98 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() 185 struct canfd_frame **cfd);
|
| /Linux-v5.4/net/can/ |
| D | af_can.c | 202 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_send() local 208 if (unlikely(cfd->len > CAN_MAX_DLEN)) in can_send() 212 if (unlikely(cfd->len > CANFD_MAX_DLEN)) in can_send() 222 if (unlikely(skb->len > skb->dev->mtu && cfd->len > CAN_MAX_DLEN)) { in can_send() 676 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_rcv() local 679 cfd->len > CAN_MAX_DLEN)) { in can_rcv() 681 dev->type, skb->len, cfd->len); in can_rcv() 693 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in canfd_rcv() local 696 cfd->len > CANFD_MAX_DLEN)) { in canfd_rcv() 698 dev->type, skb->len, cfd->len); in canfd_rcv()
|
| /Linux-v5.4/tools/accounting/ |
| D | getdelays.c | 283 int cfd = 0; in main() local 434 cfd = open(containerpath, O_RDONLY); in main() 435 if (cfd < 0) { in main() 440 CGROUPSTATS_CMD_ATTR_FD, &cfd, sizeof(__u32)); in main() 554 if (cfd) in main() 555 close(cfd); in main()
|
| /Linux-v5.4/Documentation/networking/ |
| D | phonet.txt | 140 int lfd, cfd; 146 cfd = accept(lfd, NULL, NULL); 150 ssize_t len = read(cfd, buf, sizeof(buf)); 154 write(cfd, msg, msglen);
|
| D | can.rst | 604 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]);
|
| D | kcm.txt | 181 info.fd = cfd;
|
| /Linux-v5.4/drivers/usb/class/ |
| D | cdc-acm.c | 1413 struct usb_cdc_country_functional_desc * cfd = in acm_probe() local 1416 acm->country_codes = kmalloc(cfd->bLength - 4, GFP_KERNEL); in acm_probe() 1419 acm->country_code_size = cfd->bLength - 4; in acm_probe() 1420 memcpy(acm->country_codes, (u8 *)&cfd->wCountyCode0, in acm_probe() 1421 cfd->bLength - 4); in acm_probe() 1422 acm->country_rel_date = cfd->iCountryCodeRelDate; in acm_probe()
|
| /Linux-v5.4/mm/ |
| D | memcontrol.c | 4649 unsigned int efd, cfd; in memcg_write_event_control() local 4663 cfd = simple_strtoul(buf, &endp, 10); in memcg_write_event_control() 4690 cfile = fdget(cfd); in memcg_write_event_control()
|