Home
last modified time | relevance | path

Searched refs:sof (Results 1 – 33 of 33) sorted by relevance

/linux-4.1.27/include/scsi/fc/
Dfc_encaps.h109 static inline int fc_sof_needs_ack(enum fc_sof sof) in fc_sof_needs_ack() argument
111 return (~sof) & 0x02; /* true for class 1, 2, 4, 6, or F */ in fc_sof_needs_ack()
125 static inline enum fc_class fc_sof_class(enum fc_sof sof) in fc_sof_class() argument
127 return (sof & 0x7) | FC_SOF_F; in fc_sof_class()
133 static inline int fc_sof_is_init(enum fc_sof sof) in fc_sof_is_init() argument
135 return sof < 0x30; in fc_sof_is_init()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_fcoe.c44 u8 sof = fcoeh->fcoe_sof; in cxgb_fcoe_sof_eof_supported() local
47 if ((sof != FC_SOF_I3) && (sof != FC_SOF_N3)) { in cxgb_fcoe_sof_eof_supported()
48 dev_err(adap->pdev_dev, "Unsupported SOF 0x%x\n", sof); in cxgb_fcoe_sof_eof_supported()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c54 static inline bool i40e_fcoe_sof_is_class2(u8 sof) in i40e_fcoe_sof_is_class2() argument
56 return (sof == FC_SOF_I2) || (sof == FC_SOF_N2); in i40e_fcoe_sof_is_class2()
63 static inline bool i40e_fcoe_sof_is_class3(u8 sof) in i40e_fcoe_sof_is_class3() argument
65 return (sof == FC_SOF_I3) || (sof == FC_SOF_N3); in i40e_fcoe_sof_is_class3()
72 static inline bool i40e_fcoe_sof_is_supported(u8 sof) in i40e_fcoe_sof_is_supported() argument
74 return i40e_fcoe_sof_is_class2(sof) || in i40e_fcoe_sof_is_supported()
75 i40e_fcoe_sof_is_class3(sof); in i40e_fcoe_sof_is_supported()
82 static inline int i40e_fcoe_fc_sof(struct sk_buff *skb, u8 *sof) in i40e_fcoe_fc_sof() argument
84 *sof = ((struct fcoe_hdr *)skb_network_header(skb))->fcoe_sof; in i40e_fcoe_fc_sof()
86 if (!i40e_fcoe_sof_is_supported(*sof)) in i40e_fcoe_fc_sof()
[all …]
/linux-4.1.27/drivers/scsi/fnic/
Dcq_exch_desc.h65 u8 sof; member
97 u8 *sof, in cq_fcp_rq_desc_dec() argument
126 *sof = desc_ptr->sof; in cq_fcp_rq_desc_dec()
Dfnic_fcs.c809 u8 sof = 0; in fnic_rq_cmpl_frame_recv() local
825 &tmpl, &fcp_bytes_written, &sof, &eof, in fnic_rq_cmpl_frame_recv()
831 fr_sof(fp) = sof; in fnic_rq_cmpl_frame_recv()
/linux-4.1.27/drivers/media/usb/gspca/
Dsn9c2028.c669 unsigned char *sof; in sd_pkt_scan() local
671 sof = sn9c2028_find_sof(gspca_dev, data, len); in sd_pkt_scan()
672 if (sof) { in sd_pkt_scan()
676 n = sof - data; in sd_pkt_scan()
685 len -= sof - data; in sd_pkt_scan()
686 data = sof; in sd_pkt_scan()
Dpac207.c374 unsigned char *sof; in sd_pkt_scan() local
376 sof = pac_find_sof(gspca_dev, &sd->sof_read, data, len); in sd_pkt_scan()
377 if (sof) { in sd_pkt_scan()
381 n = sof - data; in sd_pkt_scan()
390 len -= sof - data; in sd_pkt_scan()
391 data = sof; in sd_pkt_scan()
Dpac7311.c575 unsigned char *sof; in sd_pkt_scan() local
577 sof = pac_find_sof(gspca_dev, &sd->sof_read, data, len); in sd_pkt_scan()
578 if (sof) { in sd_pkt_scan()
591 n = (sof - data) - (footer_length + sizeof pac_sof_marker); in sd_pkt_scan()
604 n = sof - data; in sd_pkt_scan()
606 data = sof; in sd_pkt_scan()
Dpac7302.c792 u8 *sof; in sd_pkt_scan() local
794 sof = pac_find_sof(gspca_dev, &sd->sof_read, data, len); in sd_pkt_scan()
795 if (sof) { in sd_pkt_scan()
808 n = (sof - data) - (footer_length + sizeof pac_sof_marker); in sd_pkt_scan()
822 n = sof - data; in sd_pkt_scan()
824 data = sof; in sd_pkt_scan()
Dmr97310a.c1027 unsigned char *sof; in sd_pkt_scan() local
1029 sof = pac_find_sof(gspca_dev, &sd->sof_read, data, len); in sd_pkt_scan()
1030 if (sof) { in sd_pkt_scan()
1034 n = sof - data; in sd_pkt_scan()
1044 len -= sof - data; in sd_pkt_scan()
1045 data = sof; in sd_pkt_scan()
Dsunplus.c833 int i, sof = 0; in sd_pkt_scan() local
844 sof = 1; in sd_pkt_scan()
854 sof = 1; in sd_pkt_scan()
867 sof = 1; in sd_pkt_scan()
883 sof = 1; in sd_pkt_scan()
897 if (sof) { /* start of frame */ in sd_pkt_scan()
Dsonixb.c1327 u8 *sof; in sd_pkt_scan() local
1329 sof = find_sof(gspca_dev, data, len); in sd_pkt_scan()
1330 if (sof) { in sd_pkt_scan()
1339 len_after_sof = len - (sof - data); in sd_pkt_scan()
1340 len = (sof - data) - fr_h_sz; in sd_pkt_scan()
1358 if (sof) { in sd_pkt_scan()
1382 gspca_frame_add(gspca_dev, FIRST_PACKET, sof, len_after_sof); in sd_pkt_scan()
Dkinect.c399 uint8_t sof = sd->stream_flag | 1; in sd_pkt_scan() local
412 if (hdr->flag == sof) in sd_pkt_scan()
Dxirlink_cit.c2891 unsigned char *sof; in sd_pkt_scan() local
2893 sof = cit_find_sof(gspca_dev, data, len); in sd_pkt_scan()
2894 if (sof) { in sd_pkt_scan()
2898 n = sof - data; in sd_pkt_scan()
2906 len -= sof - data; in sd_pkt_scan()
2907 data = sof; in sd_pkt_scan()
/linux-4.1.27/arch/ia64/kernel/
Dcrash.c60 unsigned long cfm, sof, sol; in crash_save_this_cpu() local
72 sof = cfm & 0x7f; in crash_save_this_cpu()
74 sof - sol); in crash_save_this_cpu()
Dunaligned.c312 long sof = (regs->cr_ifs) & 0x7f; in set_rse_reg() local
317 if (ridx >= sof) { in set_rse_reg()
319 DPRINT("ignoring write to r%lu; only %lu registers are allocated!\n", r1, sof); in set_rse_reg()
327 r1, sw->ar_bspstore, regs->ar_bspstore, sof, (regs->cr_ifs >> 7) & 0x7f, ridx); in set_rse_reg()
330 addr = ia64_rse_skip_regs((unsigned long *) sw->ar_bspstore, -sof + ridx); in set_rse_reg()
353 bsp = ia64_rse_skip_regs(ubs_end, -sof); in set_rse_reg()
385 long sof = (regs->cr_ifs) & 0x7f; in get_rse_reg() local
390 if (ridx >= sof) { in get_rse_reg()
392 DPRINT("ignoring read from r%lu; only %lu registers are allocated!\n", r1, sof); in get_rse_reg()
400 r1, sw->ar_bspstore, regs->ar_bspstore, sof, (regs->cr_ifs >> 7) & 0x7f, ridx); in get_rse_reg()
[all …]
Dprocess.c141 int i, sof, is_nat = 0; in show_regs() local
143 sof = regs->cr_ifs & 0x7f; /* size of frame */ in show_regs()
146 for (i = 0; i < sof; ++i) { in show_regs()
149 ((i == sof - 1) || (i % 3) == 2) ? "\n" : " "); in show_regs()
/linux-4.1.27/drivers/thunderbolt/
Dnhi.c148 descriptor->sof = frame->sof; in ring_write_descriptors()
190 frame->sof = ring->descriptors[ring->tail].sof; in ring_work()
192 if (frame->sof != 0) in ring_work()
196 frame->sof); in ring_work()
Dnhi_regs.h37 u32 sof:4; member
Dnhi.h62 u32 sof:4; /* TX:in, RX: out */ member
Dctl.c162 if (WARN(pkg->frame.sof, "wrong sof (expected 0x0, got %#x)\n", in check_header()
163 pkg->frame.sof)) in check_header()
355 pkg->frame.sof = type; in tb_ctl_tx()
/linux-4.1.27/drivers/media/usb/uvc/
Duvc_video.c613 u32 sof; in uvc_video_clock_update() local
642 sof = y; in uvc_video_clock_update()
648 sof >> 16, div_u64(((u64)sof & 0xffff) * 1000000LLU, 65536), in uvc_video_clock_update()
669 if (mean - (1024 << 16) > sof) in uvc_video_clock_update()
670 sof += 2048 << 16; in uvc_video_clock_update()
671 else if (sof > mean + (1024 << 16)) in uvc_video_clock_update()
672 sof -= 2048 << 16; in uvc_video_clock_update()
674 y = (u64)(y2 - y1) * (u64)sof + (u64)y1 * (u64)x2 in uvc_video_clock_update()
689 sof >> 16, div_u64(((u64)sof & 0xffff) * 1000000LLU, 65536), in uvc_video_clock_update()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c520 u8 sof, eof; in ixgbe_fso() local
534 sof = ((struct fcoe_hdr *)skb_network_header(skb))->fcoe_sof; in ixgbe_fso()
535 switch (sof) { in ixgbe_fso()
549 dev_warn(tx_ring->dev, "unknown sof = 0x%x\n", sof); in ixgbe_fso()
/linux-4.1.27/drivers/usb/host/
Duhci-debug.c309 unsigned char sof; in uhci_show_status() local
318 sof = uhci_readb(uhci, USBSOF); in uhci_show_status()
350 out += sprintf(out, " sof = %02x\n", sof); in uhci_show_status()
Dimx21-hcd.c1313 static void process_etds(struct usb_hcd *hcd, struct imx21 *imx21, int sof) in process_etds() argument
1353 if (!sof || enabled || !etd->active_count) in process_etds()
/linux-4.1.27/drivers/scsi/arm/
Dfas216.h295 unsigned char sof; /* synchronous offset register */ member
Dfas216.c218 info->device[i].sof, info->device[i].sync_state); in fas216_dumpinfo()
473 fas216_writeb(info, REG_SOF, info->device[target].sof); in fas216_set_sync()
597 dev->sof = msg[4]; in fas216_handlesync()
610 dev->sof = 0; in fas216_handlesync()
770 if (info->device[info->SCpnt->device->id].sof) in fas216_transfer()
1610 info->device[i].sof = 0; in fas216_bus_reset()
3007 if (dev->sof) in fas216_print_devices()
3009 dev->sof, dev->period * 4); in fas216_print_devices()
/linux-4.1.27/drivers/scsi/libfc/
Dfc_exch.c1528 enum fc_sof sof; in fc_exch_recv_seq_resp() local
1552 sof = fr_sof(fp); in fc_exch_recv_seq_resp()
1554 if (fc_sof_is_init(sof)) { in fc_exch_recv_seq_resp()
1570 if (fc_sof_needs_ack(sof)) in fc_exch_recv_seq_resp()
/linux-4.1.27/drivers/staging/octeon-usb/
Docteon-hcd.h540 __BITFIELD_FIELD(uint32_t sof : 1,
Docteon-hcd.c3057 cvmx_usb_schedule(usb, usbc_gintsts.s.sof); in cvmx_usb_poll()
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe.c1601 u8 sof, eof; in fcoe_xmit() local
1619 sof = fr_sof(fp); in fcoe_xmit()
1694 hp->fcoe_sof = sof; in fcoe_xmit()
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c256 u8 sof, eof; in bnx2fc_xmit() local
285 sof = fr_sof(fp); in bnx2fc_xmit()
369 hp->fcoe_sof = sof; in bnx2fc_xmit()
/linux-4.1.27/drivers/usb/gadget/udc/
Domap_udc.c1134 u16 sof = omap_readw(UDC_SOF); in omap_get_frame() local
1135 return (sof & UDC_TS_OK) ? (sof & UDC_TS) : -EL2NSYNC; in omap_get_frame()