Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/
A Dtls.c122 ASSERT_GE(*cfd, 0); in ulp_sock_pair()
199 int fd, cfd; in FIXTURE() local
211 close(self->cfd); in FIXTURE_TEARDOWN()
230 int fd, cfd; in FIXTURE() local
323 close(self->cfd); in FIXTURE_TEARDOWN()
1077 fd.fd = self->cfd; in TEST_F()
1408 close(self->cfd); in TEST_F()
1427 int fd, cfd; in FIXTURE() local
1470 close(self->cfd); in FIXTURE_TEARDOWN()
1633 int ret, fd, cfd; in TEST() local
[all …]
/linux/tools/testing/selftests/gpio/
A Dgpio-mockup-cdev.c21 static int request_line_v2(int cfd, unsigned int offset, in request_line_v2() argument
39 ret = ioctl(cfd, GPIO_V2_GET_LINE_IOCTL, &req); in request_line_v2()
59 static int request_line_v1(int cfd, unsigned int offset, in request_line_v1() argument
73 ret = ioctl(cfd, GPIO_GET_LINEHANDLE_IOCTL, &req); in request_line_v1()
119 int opt, ret, cfd, lfd; in main() local
168 cfd = open(chip, 0); in main()
169 if (cfd == -1) { in main()
175 lfd = request_line_v1(cfd, offset, flags_v1, val); in main()
177 lfd = request_line_v2(cfd, offset, flags_v2, val); in main()
179 close(cfd); in main()
/linux/kernel/
A Dsmp.c110 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu()
114 if (!cfd->pcpu) { in smpcfd_prepare_cpu()
115 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu()
116 free_cpumask_var(cfd->cpumask_ipi); in smpcfd_prepare_cpu()
127 free_cpumask_var(cfd->cpumask); in smpcfd_dead_cpu()
128 free_cpumask_var(cfd->cpumask_ipi); in smpcfd_dead_cpu()
129 free_percpu(cfd->pcpu); in smpcfd_dead_cpu()
870 struct call_function_data *cfd; in smp_call_function_many_cond() local
908 cfd = this_cpu_ptr(&cfd_data); in smp_call_function_many_cond()
912 cpumask_clear(cfd->cpumask_ipi); in smp_call_function_many_cond()
[all …]
/linux/drivers/media/platform/ti-vpe/
A Dvpdma.c624 cfd_get_direct(cfd), class, cfd_get_dest(cfd), in dump_cfd()
636 struct vpdma_cfd *cfd; in vpdma_add_cfd_block() local
641 cfd = list->next; in vpdma_add_cfd_block()
645 cfd->block_len = len; in vpdma_add_cfd_block()
650 list->next = cfd + 1; in vpdma_add_cfd_block()
652 dump_cfd(cfd); in vpdma_add_cfd_block()
670 cfd = list->next; in vpdma_add_cfd_adb()
673 cfd->w0 = 0; in vpdma_add_cfd_adb()
674 cfd->w1 = 0; in vpdma_add_cfd_adb()
679 list->next = cfd + 1; in vpdma_add_cfd_adb()
[all …]
A Dvpdma_priv.h484 static inline int cfd_get_pkt_type(struct vpdma_cfd *cfd) in cfd_get_pkt_type() argument
486 return cfd->ctl_payload_len >> CFD_PKT_TYPE_SHFT; in cfd_get_pkt_type()
489 static inline bool cfd_get_direct(struct vpdma_cfd *cfd) in cfd_get_direct() argument
491 return (cfd->ctl_payload_len >> CFD_DIRECT_SHFT) & CFD_DIRECT_MASK; in cfd_get_direct()
494 static inline bool cfd_get_class(struct vpdma_cfd *cfd) in cfd_get_class() argument
496 return (cfd->ctl_payload_len >> CFD_CLASS_SHFT) & CFD_CLASS_MASK; in cfd_get_class()
499 static inline int cfd_get_dest(struct vpdma_cfd *cfd) in cfd_get_dest() argument
501 return (cfd->ctl_payload_len >> CFD_DEST_SHFT) & CFD_DEST_MASK; in cfd_get_dest()
504 static inline int cfd_get_payload_len(struct vpdma_cfd *cfd) in cfd_get_payload_len() argument
506 return cfd->ctl_payload_len & CFD_PAYLOAD_LEN_MASK; in cfd_get_payload_len()
/linux/drivers/net/can/usb/peak_usb/
A Dpcan_usb_fd.c471 struct canfd_frame *cfd; in pcan_usb_fd_decode_canmsg() local
488 cfd->flags |= CANFD_BRS; in pcan_usb_fd_decode_canmsg()
491 cfd->flags |= CANFD_ESI; in pcan_usb_fd_decode_canmsg()
508 cfd->can_id |= CAN_EFF_FLAG; in pcan_usb_fd_decode_canmsg()
511 cfd->can_id |= CAN_RTR_FLAG; in pcan_usb_fd_decode_canmsg()
513 memcpy(cfd->data, rm->d, cfd->len); in pcan_usb_fd_decode_canmsg()
743 if (cfd->len > CANFD_MAX_DLEN) in pcan_usb_fd_encode_msg()
760 dlc = can_fd_len2dlc(cfd->len); in pcan_usb_fd_encode_msg()
764 if (cfd->flags & CANFD_BRS) in pcan_usb_fd_encode_msg()
767 if (cfd->flags & CANFD_ESI) in pcan_usb_fd_encode_msg()
[all …]
A Dpcan_usb_core.c347 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in peak_usb_ndo_start_xmit() local
382 context->data_len = cfd->len; in peak_usb_ndo_start_xmit()
/linux/tools/testing/selftests/net/af_unix/
A Dtest_unix_oob.c118 int cfd; in producer() local
123 cfd = socket(AF_UNIX, SOCK_STREAM, 0); in producer()
126 if (connect(cfd, (struct sockaddr *)consumer_addr, in producer()
138 send(cfd, buf, sizeof(buf), MSG_OOB); in producer()
145 send(cfd, buf, sizeof(buf), MSG_OOB); in producer()
149 send(cfd, buf, sizeof(buf), MSG_OOB); in producer()
156 send(cfd, buf, sizeof(buf), MSG_OOB); in producer()
160 send(cfd, buf, sizeof(buf), MSG_OOB); in producer()
163 send(cfd, buf, sizeof(buf), 0); in producer()
170 send(cfd, buf, 1, MSG_OOB); in producer()
/linux/drivers/net/can/
A Dvcan.c73 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()
A Dflexcan.c824 if (cfd->can_id & CAN_EFF_FLAG) { in flexcan_start_xmit()
825 can_id = cfd->can_id & CAN_EFF_MASK; in flexcan_start_xmit()
828 can_id = (cfd->can_id & CAN_SFF_MASK) << 18; in flexcan_start_xmit()
831 if (cfd->can_id & CAN_RTR_FLAG) in flexcan_start_xmit()
837 if (cfd->flags & CANFD_BRS) in flexcan_start_xmit()
1014 struct canfd_frame *cfd; in flexcan_mailbox_read() local
1052 skb = alloc_canfd_skb(offload->dev, &cfd); in flexcan_mailbox_read()
1073 cfd->flags |= CANFD_BRS; in flexcan_mailbox_read()
1078 cfd->can_id |= CAN_RTR_FLAG; in flexcan_mailbox_read()
1082 cfd->flags |= CANFD_ESI; in flexcan_mailbox_read()
[all …]
A Dvxcan.c40 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in vxcan_xmit() local
65 len = cfd->len; in vxcan_xmit()
/linux/tools/cgroup/
A 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/tools/testing/selftests/bpf/
A Dcgroup_helpers.c57 int fd, cfd; in enable_all_controllers() local
81 cfd = open(path, O_RDWR); in enable_all_controllers()
82 if (cfd < 0) { in enable_all_controllers()
88 if (dprintf(cfd, "+%s\n", c) <= 0) { in enable_all_controllers()
90 close(cfd); in enable_all_controllers()
94 close(cfd); in enable_all_controllers()
/linux/include/linux/can/
A Dskb.h30 struct canfd_frame **cfd);
132 const struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_dropped_invalid_skb() local
136 cfd->len > CAN_MAX_DLEN)) in can_dropped_invalid_skb()
140 cfd->len > CANFD_MAX_DLEN)) in can_dropped_invalid_skb()
/linux/net/can/
A Daf_can.c202 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()
681 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_rcv() local
690 if (unlikely(cfd->len > CAN_MAX_DLEN)) { in can_rcv()
692 dev->type, skb->len, cfd->len); in can_rcv()
707 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in canfd_rcv() local
716 if (unlikely(cfd->len > CANFD_MAX_DLEN)) { in canfd_rcv()
718 dev->type, skb->len, cfd->len); in canfd_rcv()
/linux/tools/gpio/
A Dgpio-event-mon.c36 int cfd, lfd; in monitor_device() local
44 cfd = open(chrdev_name, 0); in monitor_device()
45 if (cfd == -1) { in monitor_device()
134 if (close(cfd) == -1) in monitor_device()
/linux/drivers/net/can/spi/mcp251xfd/
A Dmcp251xfd-core.c1472 cfd->can_id = CAN_EFF_FLAG | in mcp251xfd_hw_rx_obj_to_skb()
1486 cfd->flags |= CANFD_ESI; in mcp251xfd_hw_rx_obj_to_skb()
1489 cfd->flags |= CANFD_BRS; in mcp251xfd_hw_rx_obj_to_skb()
1491 cfd->len = can_fd_dlc2len(dlc); in mcp251xfd_hw_rx_obj_to_skb()
1494 cfd->can_id |= CAN_RTR_FLAG; in mcp251xfd_hw_rx_obj_to_skb()
1501 memcpy(cfd->data, hw_rx_obj->data, cfd->len); in mcp251xfd_hw_rx_obj_to_skb()
1513 struct canfd_frame *cfd; in mcp251xfd_handle_rxif_one() local
2358 if (cfd->can_id & CAN_RTR_FLAG) in mcp251xfd_tx_obj_from_skb()
2365 if (cfd->flags & CANFD_ESI) in mcp251xfd_tx_obj_from_skb()
2370 if (cfd->flags & CANFD_BRS) in mcp251xfd_tx_obj_from_skb()
[all …]
/linux/tools/accounting/
A Dgetdelays.c283 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/drivers/net/can/dev/
A Dskb.c211 struct canfd_frame **cfd) in alloc_canfd_skb() argument
218 *cfd = NULL; in alloc_canfd_skb()
235 *cfd = skb_put_zero(skb, sizeof(struct canfd_frame)); in alloc_canfd_skb()
/linux/Documentation/networking/
A Dphonet.rst149 int lfd, cfd;
155 cfd = accept(lfd, NULL, NULL);
159 ssize_t len = read(cfd, buf, sizeof(buf));
163 write(cfd, msg, msglen);
A Dcan.rst639 struct canfd_frame cfd;
641 nbytes = read(s, &cfd, CANFD_MTU);
644 printf("got CAN FD frame with length %d\n", cfd.len);
645 /* cfd.flags contains valid data */
647 printf("got Classical CAN frame with length %d\n", cfd.len);
648 /* cfd.flags is undefined */
656 printf("can_id: %X data length: %d data: ", cfd.can_id, cfd.len);
657 for (i = 0; i < cfd.len; i++)
658 printf("%02X ", cfd.data[i]);
A Dkcm.rst185 info.fd = cfd;
/linux/drivers/net/can/usb/etas_es58x/
A Des58x_core.c573 struct canfd_frame *cfd; in es58x_rx_can_msg() local
588 skb = alloc_canfd_skb(netdev, &cfd); in es58x_rx_can_msg()
592 cfd = (struct canfd_frame *)ccf; in es58x_rx_can_msg()
599 cfd->can_id = can_id; in es58x_rx_can_msg()
601 cfd->can_id |= CAN_EFF_FLAG; in es58x_rx_can_msg()
603 cfd->len = len; in es58x_rx_can_msg()
605 cfd->flags |= CANFD_BRS; in es58x_rx_can_msg()
607 cfd->flags |= CANFD_ESI; in es58x_rx_can_msg()
615 memcpy(cfd->data, data, len); in es58x_rx_can_msg()
/linux/drivers/usb/class/
A Dcdc-acm.c1435 struct usb_cdc_country_functional_desc * cfd = in acm_probe() local
1438 acm->country_codes = kmalloc(cfd->bLength - 4, GFP_KERNEL); in acm_probe()
1441 acm->country_code_size = cfd->bLength - 4; in acm_probe()
1442 memcpy(acm->country_codes, (u8 *)&cfd->wCountyCode0, in acm_probe()
1443 cfd->bLength - 4); in acm_probe()
1444 acm->country_rel_date = cfd->iCountryCodeRelDate; in acm_probe()
/linux/mm/
A Dmemcontrol.c4724 unsigned int efd, cfd; in memcg_write_event_control() local
4738 cfd = simple_strtoul(buf, &endp, 10); in memcg_write_event_control()
4765 cfile = fdget(cfd); in memcg_write_event_control()

Completed in 76 milliseconds