/drivers/isdn/pcbit/ |
D | layer2.c | 78 struct frame_buf *frame, in pcbit_l2_write() local 86 if ((frame = kmalloc(sizeof(struct frame_buf), in pcbit_l2_write() 92 frame->msg = msg; in pcbit_l2_write() 93 frame->refnum = refnum; in pcbit_l2_write() 94 frame->copied = 0; in pcbit_l2_write() 95 frame->hdr_len = hdr_len; in pcbit_l2_write() 98 frame->dt_len = skb->len - hdr_len; in pcbit_l2_write() 100 frame->dt_len = 0; in pcbit_l2_write() 102 frame->skb = skb; in pcbit_l2_write() 104 frame->next = NULL; in pcbit_l2_write() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_hdmi.c | 116 nouveau_hdmi_infoframe(struct drm_encoder *encoder, u32 ctrl, u8 *frame) in nouveau_hdmi_infoframe() argument 120 for (i = 0; i < frame[2]; i++) in nouveau_hdmi_infoframe() 121 sum += frame[i]; in nouveau_hdmi_infoframe() 122 frame[3] = 256 - sum; in nouveau_hdmi_infoframe() 126 hdmi_wr32(encoder, ctrl + 0x08, *(u32 *)frame & 0xffffff); in nouveau_hdmi_infoframe() 134 frame[2] = 6; in nouveau_hdmi_infoframe() 137 for (i = 0; i < frame[2] + 1; i += 7) { in nouveau_hdmi_infoframe() 139 u32 *subpack = (u32 *)&frame[3 + i]; in nouveau_hdmi_infoframe() 155 u8 frame[20]; in nouveau_hdmi_video_infoframe() local 157 frame[0x00] = 0x82; /* AVI infoframe */ in nouveau_hdmi_video_infoframe() [all …]
|
/drivers/gpu/drm/radeon/ |
D | r600_hdmi.c | 133 uint8_t *frame) in r600_hdmi_infoframe_checksum() argument 136 frame[0] = packetType + versionNumber + length; in r600_hdmi_infoframe_checksum() 138 frame[0] += frame[i]; in r600_hdmi_infoframe_checksum() 139 frame[0] = 0x100 - frame[0]; in r600_hdmi_infoframe_checksum() 170 uint8_t frame[14]; in r600_hdmi_videoinfoframe() local 172 frame[0x0] = 0; in r600_hdmi_videoinfoframe() 173 frame[0x1] = in r600_hdmi_videoinfoframe() 178 frame[0x2] = in r600_hdmi_videoinfoframe() 182 frame[0x3] = in r600_hdmi_videoinfoframe() 187 frame[0x4] = (video_format_identification & 0x7F); in r600_hdmi_videoinfoframe() [all …]
|
/drivers/media/video/usbvision/ |
D | usbvision-core.c | 427 struct usbvision_frame *frame; in usbvision_find_header() local 430 frame = usbvision->cur_frame; in usbvision_find_header() 432 while (scratch_get_header(usbvision, &frame->isoc_header) == USBVISION_HEADER_LENGTH) { in usbvision_find_header() 435 frame->isoc_header.magic_2, in usbvision_find_header() 436 frame->isoc_header.magic_1, in usbvision_find_header() 437 frame->isoc_header.header_length, in usbvision_find_header() 438 frame->isoc_header.frame_num, in usbvision_find_header() 439 frame->isoc_header.frame_phase, in usbvision_find_header() 440 frame->isoc_header.frame_latency, in usbvision_find_header() 441 frame->isoc_header.data_format, in usbvision_find_header() [all …]
|
D | usbvision-video.c | 752 struct usbvision_frame *frame; in vidioc_querybuf() local 760 frame = &usbvision->frame[vb->index]; in vidioc_querybuf() 761 if (frame->grabstate >= frame_state_ready) in vidioc_querybuf() 763 if (frame->grabstate >= frame_state_done) in vidioc_querybuf() 765 if (frame->grabstate == frame_state_unused) in vidioc_querybuf() 776 vb->timestamp = usbvision->frame[vb->index].timestamp; in vidioc_querybuf() 777 vb->sequence = usbvision->frame[vb->index].sequence; in vidioc_querybuf() 784 struct usbvision_frame *frame; in vidioc_qbuf() local 791 frame = &usbvision->frame[vb->index]; in vidioc_qbuf() 793 if (frame->grabstate != frame_state_unused) in vidioc_qbuf() [all …]
|
/drivers/net/usb/ |
D | lg-vl600.c | 113 struct vl600_frame_hdr *frame; in vl600_rx_fixup() local 130 frame = (struct vl600_frame_hdr *) s->current_rx_buf->data; in vl600_rx_fixup() 132 le32_to_cpup(&frame->len)) { in vl600_rx_fixup() 146 frame = (struct vl600_frame_hdr *) buf->data; in vl600_rx_fixup() 149 if (ntohl(frame->magic) != 0x53544448 && in vl600_rx_fixup() 150 ntohl(frame->magic) != 0x44544d48) in vl600_rx_fixup() 153 if (buf->len < sizeof(*frame) || in vl600_rx_fixup() 154 buf->len != le32_to_cpup(&frame->len)) { in vl600_rx_fixup() 160 le32_to_cpup(&frame->len), GFP_ATOMIC); in vl600_rx_fixup() 164 le32_to_cpup(&frame->len)); in vl600_rx_fixup() [all …]
|
/drivers/net/can/mscan/ |
D | mscan.c | 200 struct can_frame *frame = (struct can_frame *)skb->data; in mscan_start_xmit() local 238 rtr = frame->can_id & CAN_RTR_FLAG; in mscan_start_xmit() 241 if (frame->can_id & CAN_EFF_FLAG) { in mscan_start_xmit() 242 can_id = (frame->can_id & CAN_EFF_MASK) in mscan_start_xmit() 253 can_id = (frame->can_id & CAN_SFF_MASK) in mscan_start_xmit() 262 u16 *payload = (u16 *)frame->data; in mscan_start_xmit() 264 for (i = 0; i < frame->can_dlc / 2; i++) { in mscan_start_xmit() 269 if (frame->can_dlc & 1) in mscan_start_xmit() 270 out_8(data, frame->data[frame->can_dlc - 1]); in mscan_start_xmit() 273 out_8(®s->tx.dlr, frame->can_dlc); in mscan_start_xmit() [all …]
|
/drivers/net/wireless/prism54/ |
D | islpci_mgt.c | 295 struct islpci_mgmtframe *frame; in islpci_mgt_receive() local 359 frame = kmalloc(sizeof (struct islpci_mgmtframe) + size, in islpci_mgt_receive() 361 if (!frame) { in islpci_mgt_receive() 367 frame->ndev = ndev; in islpci_mgt_receive() 368 memcpy(&frame->buf, header, size); in islpci_mgt_receive() 369 frame->header = (pimfor_header_t *) frame->buf; in islpci_mgt_receive() 370 frame->data = frame->buf + PIMFOR_HEADER_SIZE; in islpci_mgt_receive() 375 frame->header, frame->data, size); in islpci_mgt_receive() 388 INIT_WORK(&frame->ws, prism54_process_trap); in islpci_mgt_receive() 389 schedule_work(&frame->ws); in islpci_mgt_receive() [all …]
|
/drivers/media/video/uvc/ |
D | uvc_video.c | 93 struct uvc_frame *frame = NULL; in uvc_fixup_video_ctrl() local 107 if (format->frame[i].bFrameIndex == ctrl->bFrameIndex) { in uvc_fixup_video_ctrl() 108 frame = &format->frame[i]; in uvc_fixup_video_ctrl() 113 if (frame == NULL) in uvc_fixup_video_ctrl() 120 frame->dwMaxVideoFrameBufferSize; in uvc_fixup_video_ctrl() 130 : frame->dwFrameInterval[0]; in uvc_fixup_video_ctrl() 138 bandwidth = frame->wWidth * frame->wHeight / 8 * format->bpp; in uvc_fixup_video_ctrl() 710 stream->stats.frame.nb_packets == 0) in uvc_video_stats_decode() 734 stream->stats.frame.nb_invalid++; in uvc_video_stats_decode() 748 if (has_pts && stream->stats.frame.nb_pts) { in uvc_video_stats_decode() [all …]
|
D | uvc_v4l2.c | 112 static __u32 uvc_try_frame_interval(struct uvc_frame *frame, __u32 interval) in uvc_try_frame_interval() argument 116 if (frame->bFrameIntervalType) { in uvc_try_frame_interval() 119 for (i = 0; i < frame->bFrameIntervalType; ++i) { in uvc_try_frame_interval() 120 dist = interval > frame->dwFrameInterval[i] in uvc_try_frame_interval() 121 ? interval - frame->dwFrameInterval[i] in uvc_try_frame_interval() 122 : frame->dwFrameInterval[i] - interval; in uvc_try_frame_interval() 130 interval = frame->dwFrameInterval[i-1]; in uvc_try_frame_interval() 132 const __u32 min = frame->dwFrameInterval[0]; in uvc_try_frame_interval() 133 const __u32 max = frame->dwFrameInterval[1]; in uvc_try_frame_interval() 134 const __u32 step = frame->dwFrameInterval[2]; in uvc_try_frame_interval() [all …]
|
D | uvc_driver.c | 309 struct uvc_frame *frame; in uvc_parse_format() local 407 frame = &format->frame[0]; in uvc_parse_format() 408 memset(&format->frame[0], 0, sizeof format->frame[0]); in uvc_parse_format() 409 frame->bFrameIntervalType = 1; in uvc_parse_format() 410 frame->dwDefaultFrameInterval = 1; in uvc_parse_format() 411 frame->dwFrameInterval = *intervals; in uvc_parse_format() 437 frame = &format->frame[format->nframes]; in uvc_parse_format() 452 frame->bFrameIndex = buffer[3]; in uvc_parse_format() 453 frame->bmCapabilities = buffer[4]; in uvc_parse_format() 454 frame->wWidth = get_unaligned_le16(&buffer[5]); in uvc_parse_format() [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_hdmi.c | 49 struct dip_infoframe *frame); 63 void intel_dip_infoframe_csum(struct dip_infoframe *frame) in intel_dip_infoframe_csum() argument 65 uint8_t *data = (uint8_t *)frame; in intel_dip_infoframe_csum() 69 frame->checksum = 0; in intel_dip_infoframe_csum() 70 frame->ecc = 0; in intel_dip_infoframe_csum() 72 for (i = 0; i < frame->len + DIP_HEADER_SIZE; i++) in intel_dip_infoframe_csum() 75 frame->checksum = 0x100 - sum; in intel_dip_infoframe_csum() 78 static u32 intel_infoframe_index(struct dip_infoframe *frame) in intel_infoframe_index() argument 82 switch (frame->type) { in intel_infoframe_index() 90 DRM_DEBUG_DRIVER("unknown info frame type %d\n", frame->type); in intel_infoframe_index() [all …]
|
/drivers/media/video/s5p-fimc/ |
D | fimc-reg.c | 110 struct fimc_frame *frame = &ctx->d_frame; in fimc_hw_set_target_format() local 112 dbg("w= %d, h= %d color: %d", frame->width, in fimc_hw_set_target_format() 113 frame->height, frame->fmt->color); in fimc_hw_set_target_format() 119 switch (frame->fmt->color) { in fimc_hw_set_target_format() 127 if (frame->fmt->colplanes == 1) in fimc_hw_set_target_format() 137 cfg |= S5P_CITRGFMT_HSIZE(frame->height); in fimc_hw_set_target_format() 138 cfg |= S5P_CITRGFMT_VSIZE(frame->width); in fimc_hw_set_target_format() 141 cfg |= S5P_CITRGFMT_HSIZE(frame->width); in fimc_hw_set_target_format() 142 cfg |= S5P_CITRGFMT_VSIZE(frame->height); in fimc_hw_set_target_format() 148 cfg |= (frame->width * frame->height); in fimc_hw_set_target_format() [all …]
|
D | fimc-core.c | 456 struct fimc_frame *frame, struct fimc_addr *paddr) in fimc_prepare_addr() argument 461 if (vb == NULL || frame == NULL) in fimc_prepare_addr() 464 pix_size = frame->width * frame->height; in fimc_prepare_addr() 467 frame->fmt->memplanes, frame->fmt->colplanes, pix_size); in fimc_prepare_addr() 471 if (frame->fmt->memplanes == 1) { in fimc_prepare_addr() 472 switch (frame->fmt->colplanes) { in fimc_prepare_addr() 485 if (S5P_FIMC_YCBCR420 == frame->fmt->color) in fimc_prepare_addr() 496 if (frame->fmt->memplanes >= 2) in fimc_prepare_addr() 499 if (frame->fmt->memplanes == 3) in fimc_prepare_addr() 729 struct fimc_frame *frame; in fimc_buf_prepare() local [all …]
|
/drivers/usb/host/ |
D | ehci-sched.c | 99 static void periodic_unlink (struct ehci_hcd *ehci, unsigned frame, void *ptr) in periodic_unlink() argument 101 union ehci_shadow *prev_p = &ehci->pshadow[frame]; in periodic_unlink() 102 __hc32 *hw_p = &ehci->periodic[frame]; in periodic_unlink() 134 periodic_usecs (struct ehci_hcd *ehci, unsigned frame, unsigned uframe) in periodic_usecs() argument 136 __hc32 *hw_p = &ehci->periodic [frame]; in periodic_usecs() 137 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_usecs() 198 frame * 8 + uframe, usecs); in periodic_usecs() 267 unsigned frame, in periodic_tt_usecs() argument 271 __hc32 *hw_p = &ehci->periodic [frame]; in periodic_tt_usecs() 272 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_tt_usecs() [all …]
|
D | fhci-q.c | 57 void fhci_add_td_to_frame(struct fhci_time_frame *frame, struct td *td) in fhci_add_td_to_frame() argument 59 list_add_tail(&td->frame_lh, &frame->tds_list); in fhci_add_td_to_frame() 86 struct td *fhci_remove_td_from_frame(struct fhci_time_frame *frame) in fhci_remove_td_from_frame() argument 90 if (!list_empty(&frame->tds_list)) { in fhci_remove_td_from_frame() 91 td = list_entry(frame->tds_list.next, struct td, frame_lh); in fhci_remove_td_from_frame() 92 list_del_init(frame->tds_list.next); in fhci_remove_td_from_frame() 99 struct td *fhci_peek_td_from_frame(struct fhci_time_frame *frame) in fhci_peek_td_from_frame() argument 103 if (!list_empty(&frame->tds_list)) in fhci_peek_td_from_frame() 104 td = list_entry(frame->tds_list.next, struct td, frame_lh); in fhci_peek_td_from_frame()
|
D | ehci-sysfs.c | 100 unsigned frame, uframe; in store_uframe_periodic_max() local 131 for (frame = 0; frame < ehci->periodic_size; ++frame) in store_uframe_periodic_max() 134 periodic_usecs (ehci, frame, uframe)); in store_uframe_periodic_max()
|
/drivers/net/wireless/bcmdhd/ |
D | dhd_ip.c | 45 uint8 *frame; in pkt_frag_info() local 55 frame = PKTDATA(osh, p); in pkt_frag_info() 62 } else if (ntoh16(*(uint16 *)(frame + ETHER_TYPE_OFFSET)) >= ETHER_TYPE_MIN) { in pkt_frag_info() 64 pt = frame + ETHER_TYPE_OFFSET; in pkt_frag_info() 66 !bcmp(llc_snap_hdr, frame + ETHER_HDR_LEN, SNAP_HDR_LEN)) { in pkt_frag_info() 67 pt = frame + ETHER_HDR_LEN + SNAP_HDR_LEN; in pkt_frag_info() 79 if (pt + ETHER_TYPE_LEN > frame + length) { in pkt_frag_info() 94 ipl = length - (pt + ETHER_TYPE_LEN - frame); in pkt_frag_info()
|
/drivers/xen/ |
D | grant-table.c | 94 unsigned long frame, unsigned flags); 128 unsigned long frame, int flags, 241 unsigned long frame, unsigned flags) in gnttab_update_entry_v1() argument 244 gnttab_shared.v1[ref].frame = frame; in gnttab_update_entry_v1() 250 unsigned long frame, unsigned flags) in gnttab_update_entry_v2() argument 253 gnttab_shared.v2[ref].full_page.frame = frame; in gnttab_update_entry_v2() 262 unsigned long frame, int readonly) in gnttab_grant_foreign_access_ref() argument 264 gnttab_interface->update_entry(ref, domid, frame, in gnttab_grant_foreign_access_ref() 269 int gnttab_grant_foreign_access(domid_t domid, unsigned long frame, in gnttab_grant_foreign_access() argument 278 gnttab_grant_foreign_access_ref(ref, domid, frame, readonly); in gnttab_grant_foreign_access() [all …]
|
/drivers/media/video/gspca/ |
D | gspca.c | 96 struct gspca_frame *frame = vma->vm_private_data; in gspca_vm_open() local 98 frame->vma_use_count++; in gspca_vm_open() 99 frame->v4l2_buf.flags |= V4L2_BUF_FLAG_MAPPED; in gspca_vm_open() 104 struct gspca_frame *frame = vma->vm_private_data; in gspca_vm_close() local 106 if (--frame->vma_use_count <= 0) in gspca_vm_close() 107 frame->v4l2_buf.flags &= ~V4L2_BUF_FLAG_MAPPED; in gspca_vm_close() 423 struct gspca_frame *frame; in gspca_frame_add() local 438 frame = &gspca_dev->frame[j]; in gspca_frame_add() 439 frame->v4l2_buf.timestamp = ktime_to_timeval(ktime_get()); in gspca_frame_add() 440 frame->v4l2_buf.sequence = gspca_dev->sequence++; in gspca_frame_add() [all …]
|
/drivers/net/can/ |
D | mcp251x.c | 402 static void mcp251x_hw_tx(struct spi_device *spi, struct can_frame *frame, in mcp251x_hw_tx() argument 409 exide = (frame->can_id & CAN_EFF_FLAG) ? 1 : 0; /* Extended ID Enable */ in mcp251x_hw_tx() 411 sid = (frame->can_id & CAN_EFF_MASK) >> 18; in mcp251x_hw_tx() 413 sid = frame->can_id & CAN_SFF_MASK; /* Standard ID */ in mcp251x_hw_tx() 414 eid = frame->can_id & CAN_EFF_MASK; /* Extended ID */ in mcp251x_hw_tx() 415 rtr = (frame->can_id & CAN_RTR_FLAG) ? 1 : 0; /* Remote transmission */ in mcp251x_hw_tx() 424 buf[TXBDLC_OFF] = (rtr << DLC_RTR_SHIFT) | frame->can_dlc; in mcp251x_hw_tx() 425 memcpy(buf + TXBDAT_OFF, frame->data, frame->can_dlc); in mcp251x_hw_tx() 426 mcp251x_hw_tx_frame(spi, buf, frame->can_dlc, tx_buf_idx); in mcp251x_hw_tx() 458 struct can_frame *frame; in mcp251x_hw_rx() local [all …]
|
/drivers/scsi/ |
D | mvumi.c | 264 m_sg = (struct mvumi_sgl *) &cmd->frame->payload[0]; in mvumi_internal_cmd_sgl() 265 cmd->frame->sg_counts = 1; in mvumi_internal_cmd_sgl() 288 cmd->frame = kzalloc(mhba->ib_max_size, GFP_KERNEL); in mvumi_create_internal_cmd() 289 if (!cmd->frame) { in mvumi_create_internal_cmd() 300 kfree(cmd->frame); in mvumi_create_internal_cmd() 305 cmd->frame->sg_counts = 0; in mvumi_create_internal_cmd() 317 if (cmd && cmd->frame) { in mvumi_delete_internal_cmd() 318 if (cmd->frame->sg_counts) { in mvumi_delete_internal_cmd() 319 m_sg = (struct mvumi_sgl *) &cmd->frame->payload[0]; in mvumi_delete_internal_cmd() 328 kfree(cmd->frame); in mvumi_delete_internal_cmd() [all …]
|
/drivers/nfc/ |
D | pn533.c | 323 static void pn533_tx_frame_ack(struct pn533_frame *frame) in pn533_tx_frame_ack() argument 325 frame->preamble = 0; in pn533_tx_frame_ack() 326 frame->start_frame = cpu_to_be16(PN533_SOF); in pn533_tx_frame_ack() 327 frame->datalen = 0; in pn533_tx_frame_ack() 328 frame->datalen_checksum = 0xFF; in pn533_tx_frame_ack() 330 frame->data[0] = 0; in pn533_tx_frame_ack() 333 static void pn533_tx_frame_init(struct pn533_frame *frame, u8 cmd) in pn533_tx_frame_init() argument 335 frame->preamble = 0; in pn533_tx_frame_init() 336 frame->start_frame = cpu_to_be16(PN533_SOF); in pn533_tx_frame_init() 337 PN533_FRAME_IDENTIFIER(frame) = PN533_DIR_OUT; in pn533_tx_frame_init() [all …]
|
/drivers/net/can/c_can/ |
D | c_can.c | 291 int iface, struct can_frame *frame, int objno) in c_can_write_msg_object() argument 298 if (!(frame->can_id & CAN_RTR_FLAG)) in c_can_write_msg_object() 301 if (frame->can_id & CAN_EFF_FLAG) { in c_can_write_msg_object() 302 id = frame->can_id & CAN_EFF_MASK; in c_can_write_msg_object() 305 id = ((frame->can_id & CAN_SFF_MASK) << 18); in c_can_write_msg_object() 314 for (i = 0; i < frame->can_dlc; i += 2) { in c_can_write_msg_object() 316 frame->data[i] | (frame->data[i + 1] << 8)); in c_can_write_msg_object() 322 frame->can_dlc); in c_can_write_msg_object() 371 struct can_frame *frame; in c_can_handle_lost_msg_obj() local 383 skb = alloc_can_err_skb(dev, &frame); in c_can_handle_lost_msg_obj() [all …]
|
/drivers/tty/serial/ |
D | efm32-uart.c | 226 port->icount.frame++; in efm32_uart_rx_chars() 366 u32 frame = 0; in efm32_uart_set_termios() local 377 frame |= UARTn_FRAME_DATABITS(5); in efm32_uart_set_termios() 380 frame |= UARTn_FRAME_DATABITS(6); in efm32_uart_set_termios() 383 frame |= UARTn_FRAME_DATABITS(7); in efm32_uart_set_termios() 386 frame |= UARTn_FRAME_DATABITS(8); in efm32_uart_set_termios() 392 frame |= UARTn_FRAME_STOPBITS_TWO; in efm32_uart_set_termios() 394 frame |= UARTn_FRAME_STOPBITS_ONE; in efm32_uart_set_termios() 398 frame |= UARTn_FRAME_PARITY_ODD; in efm32_uart_set_termios() 400 frame |= UARTn_FRAME_PARITY_EVEN; in efm32_uart_set_termios() [all …]
|