/linux-4.4.14/tools/cgroup/ |
H A D | cgroup_event_listener.c | 24 int cfd = -1; main() local 33 cfd = open(argv[1], O_RDONLY); main() 34 if (cfd == -1) main() 50 ret = snprintf(line, LINE_MAX, "%d %d %s", efd, cfd, argv[2]); main()
|
/linux-4.4.14/drivers/media/platform/ti-vpe/ |
H A D | vpdma.c | 450 static void dump_cfd(struct vpdma_cfd *cfd) dump_cfd() argument 454 class = cfd_get_class(cfd); dump_cfd() 462 cfd->dest_addr_offset); dump_cfd() 465 pr_debug("word1: num_data_wrds = %d\n", cfd->block_len); dump_cfd() 467 pr_debug("word2: payload_addr = 0x%08x\n", cfd->payload_addr); dump_cfd() 470 "payload_len = %d\n", cfd_get_pkt_type(cfd), dump_cfd() 471 cfd_get_direct(cfd), class, cfd_get_dest(cfd), dump_cfd() 472 cfd_get_payload_len(cfd)); dump_cfd() 483 struct vpdma_cfd *cfd; vpdma_add_cfd_block() local 488 cfd = list->next; vpdma_add_cfd_block() 489 WARN_ON((void *)(cfd + 1) > (list->buf.addr + list->buf.size)); vpdma_add_cfd_block() 491 cfd->dest_addr_offset = dest_offset; vpdma_add_cfd_block() 492 cfd->block_len = len; vpdma_add_cfd_block() 493 cfd->payload_addr = (u32) blk->dma_addr; vpdma_add_cfd_block() 494 cfd->ctl_payload_len = cfd_pkt_payload_len(CFD_INDIRECT, CFD_CLS_BLOCK, vpdma_add_cfd_block() 497 list->next = cfd + 1; vpdma_add_cfd_block() 499 dump_cfd(cfd); vpdma_add_cfd_block() 510 struct vpdma_cfd *cfd; vpdma_add_cfd_adb() local 516 cfd = list->next; vpdma_add_cfd_adb() 517 BUG_ON((void *)(cfd + 1) > (list->buf.addr + list->buf.size)); vpdma_add_cfd_adb() 519 cfd->w0 = 0; vpdma_add_cfd_adb() 520 cfd->w1 = 0; vpdma_add_cfd_adb() 521 cfd->payload_addr = (u32) adb->dma_addr; vpdma_add_cfd_adb() 522 cfd->ctl_payload_len = cfd_pkt_payload_len(CFD_INDIRECT, CFD_CLS_ADB, vpdma_add_cfd_adb() 525 list->next = cfd + 1; vpdma_add_cfd_adb() 527 dump_cfd(cfd); vpdma_add_cfd_adb()
|
H A D | vpdma_priv.h | 486 static inline int cfd_get_pkt_type(struct vpdma_cfd *cfd) cfd_get_pkt_type() argument 488 return cfd->ctl_payload_len >> CFD_PKT_TYPE_SHFT; cfd_get_pkt_type() 491 static inline bool cfd_get_direct(struct vpdma_cfd *cfd) cfd_get_direct() argument 493 return (cfd->ctl_payload_len >> CFD_DIRECT_SHFT) & CFD_DIRECT_MASK; cfd_get_direct() 496 static inline bool cfd_get_class(struct vpdma_cfd *cfd) cfd_get_class() argument 498 return (cfd->ctl_payload_len >> CFD_CLASS_SHFT) & CFD_CLASS_MASK; cfd_get_class() 501 static inline int cfd_get_dest(struct vpdma_cfd *cfd) cfd_get_dest() argument 503 return (cfd->ctl_payload_len >> CFD_DEST_SHFT) & CFD_DEST_MASK; cfd_get_dest() 506 static inline int cfd_get_payload_len(struct vpdma_cfd *cfd) cfd_get_payload_len() argument 508 return cfd->ctl_payload_len & CFD_PAYLOAD_LEN_MASK; cfd_get_payload_len()
|
/linux-4.4.14/drivers/net/can/ |
H A D | vcan.c | 71 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; vcan_rx() local 75 stats->rx_bytes += cfd->len; vcan_rx() 86 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; vcan_tx() local 94 stats->tx_bytes += cfd->len; vcan_tx() 108 stats->rx_bytes += cfd->len; vcan_tx()
|
H A D | dev.c | 598 struct canfd_frame **cfd) alloc_canfd_skb() 619 *cfd = (struct canfd_frame *)skb_put(skb, sizeof(struct canfd_frame)); alloc_canfd_skb() 620 memset(*cfd, 0, sizeof(struct canfd_frame)); alloc_canfd_skb() 597 alloc_canfd_skb(struct net_device *dev, struct canfd_frame **cfd) alloc_canfd_skb() argument
|
/linux-4.4.14/kernel/ |
H A D | smp.c | 40 struct call_function_data *cfd = &per_cpu(cfd_data, cpu); hotplug_cfd() local 45 if (!zalloc_cpumask_var_node(&cfd->cpumask, GFP_KERNEL, hotplug_cfd() 48 cfd->csd = alloc_percpu(struct call_single_data); hotplug_cfd() 49 if (!cfd->csd) { hotplug_cfd() 50 free_cpumask_var(cfd->cpumask); hotplug_cfd() 62 free_cpumask_var(cfd->cpumask); hotplug_cfd() 63 free_percpu(cfd->csd); hotplug_cfd() 407 struct call_function_data *cfd; smp_call_function_many() local 439 cfd = this_cpu_ptr(&cfd_data); smp_call_function_many() 441 cpumask_and(cfd->cpumask, mask, cpu_online_mask); smp_call_function_many() 442 cpumask_clear_cpu(this_cpu, cfd->cpumask); smp_call_function_many() 445 if (unlikely(!cpumask_weight(cfd->cpumask))) smp_call_function_many() 448 for_each_cpu(cpu, cfd->cpumask) { smp_call_function_many() 449 struct call_single_data *csd = per_cpu_ptr(cfd->csd, cpu); smp_call_function_many() 460 arch_send_call_function_ipi_mask(cfd->cpumask); smp_call_function_many() 463 for_each_cpu(cpu, cfd->cpumask) { smp_call_function_many() 466 csd = per_cpu_ptr(cfd->csd, cpu); smp_call_function_many()
|
/linux-4.4.14/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_fd.c | 479 struct canfd_frame *cfd; pcan_usb_fd_decode_canmsg() local 485 skb = alloc_canfd_skb(netdev, &cfd); pcan_usb_fd_decode_canmsg() 490 cfd->flags |= CANFD_BRS; pcan_usb_fd_decode_canmsg() 493 cfd->flags |= CANFD_ESI; pcan_usb_fd_decode_canmsg() 495 cfd->len = can_dlc2len(get_canfd_dlc(pucan_msg_get_dlc(rm))); pcan_usb_fd_decode_canmsg() 498 skb = alloc_can_skb(netdev, (struct can_frame **)&cfd); pcan_usb_fd_decode_canmsg() 502 cfd->len = get_can_dlc(pucan_msg_get_dlc(rm)); pcan_usb_fd_decode_canmsg() 505 cfd->can_id = le32_to_cpu(rm->can_id); pcan_usb_fd_decode_canmsg() 508 cfd->can_id |= CAN_EFF_FLAG; pcan_usb_fd_decode_canmsg() 511 cfd->can_id |= CAN_RTR_FLAG; pcan_usb_fd_decode_canmsg() 513 memcpy(cfd->data, rm->d, cfd->len); pcan_usb_fd_decode_canmsg() 519 netdev->stats.rx_bytes += cfd->len; pcan_usb_fd_decode_canmsg() 724 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; pcan_usb_fd_encode_msg() local 728 tx_msg_size = ALIGN(sizeof(struct pucan_tx_msg) + cfd->len, 4); pcan_usb_fd_encode_msg() 733 if (cfd->can_id & CAN_EFF_FLAG) { pcan_usb_fd_encode_msg() 735 tx_msg->can_id = cpu_to_le32(cfd->can_id & CAN_EFF_MASK); pcan_usb_fd_encode_msg() 737 tx_msg->can_id = cpu_to_le32(cfd->can_id & CAN_SFF_MASK); pcan_usb_fd_encode_msg() 742 can_dlc = can_len2dlc(cfd->len); pcan_usb_fd_encode_msg() 746 if (cfd->flags & CANFD_BRS) pcan_usb_fd_encode_msg() 749 if (cfd->flags & CANFD_ESI) pcan_usb_fd_encode_msg() 753 can_dlc = cfd->len; pcan_usb_fd_encode_msg() 755 if (cfd->can_id & CAN_RTR_FLAG) pcan_usb_fd_encode_msg() 761 memcpy(tx_msg->d, cfd->data, cfd->len); pcan_usb_fd_encode_msg()
|
H A D | pcan_usb_core.c | 310 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; peak_usb_ndo_start_xmit() local 345 context->data_len = cfd->len; peak_usb_ndo_start_xmit()
|
/linux-4.4.14/include/linux/can/ |
H A D | dev.h | 87 const struct canfd_frame *cfd = (struct canfd_frame *)skb->data; can_dropped_invalid_skb() local 91 cfd->len > CAN_MAX_DLEN)) can_dropped_invalid_skb() 95 cfd->len > CANFD_MAX_DLEN)) can_dropped_invalid_skb() 161 struct canfd_frame **cfd);
|
/linux-4.4.14/Documentation/accounting/ |
H A D | getdelays.c | 276 int cfd = 0; main() local 426 cfd = open(containerpath, O_RDONLY); main() 427 if (cfd < 0) { main() 432 CGROUPSTATS_CMD_ATTR_FD, &cfd, sizeof(__u32)); main() 543 if (cfd) main() 544 close(cfd); main()
|
/linux-4.4.14/net/can/ |
H A D | af_can.c | 230 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; can_send() local 235 if (unlikely(cfd->len > CAN_MAX_DLEN)) can_send() 239 if (unlikely(cfd->len > CANFD_MAX_DLEN)) can_send() 249 if (unlikely(skb->len > skb->dev->mtu && cfd->len > CAN_MAX_DLEN)) { can_send() 712 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; can_rcv() local 719 cfd->len > CAN_MAX_DLEN, can_rcv() 722 dev->type, skb->len, cfd->len)) can_rcv() 736 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; canfd_rcv() local 743 cfd->len > CANFD_MAX_DLEN, canfd_rcv() 746 dev->type, skb->len, cfd->len)) canfd_rcv()
|
/linux-4.4.14/drivers/usb/class/ |
H A D | cdc-acm.c | 1080 struct usb_cdc_country_functional_desc *cfd = NULL; acm_probe() local 1170 cfd = (struct usb_cdc_country_functional_desc *)buffer; acm_probe() 1422 if (cfd) { /* export the country data */ acm_probe() 1423 acm->country_codes = kmalloc(cfd->bLength - 4, GFP_KERNEL); acm_probe() 1426 acm->country_code_size = cfd->bLength - 4; acm_probe() 1427 memcpy(acm->country_codes, (u8 *)&cfd->wCountyCode0, acm_probe() 1428 cfd->bLength - 4); acm_probe() 1429 acm->country_rel_date = cfd->iCountryCodeRelDate; acm_probe()
|
/linux-4.4.14/mm/ |
H A D | memcontrol.c | 3893 unsigned int efd, cfd; memcg_write_event_control() local 3907 cfd = simple_strtoul(buf, &endp, 10); memcg_write_event_control() 3934 cfile = fdget(cfd); memcg_write_event_control()
|