/* * (C) 2001 Clemson University and The University of Chicago * * See COPYING in top-level directory. */ /* * Definitions of downcalls used in Linux kernel module. */ #ifndef __DOWNCALL_H #define __DOWNCALL_H /* * Sanitized the device-client core interaction * for clean 32-64 bit usage */ struct orangefs_io_response { __s64 amt_complete; }; struct orangefs_lookup_response { struct orangefs_object_kref refn; }; struct orangefs_create_response { struct orangefs_object_kref refn; }; struct orangefs_symlink_response { struct orangefs_object_kref refn; }; struct orangefs_getattr_response { struct ORANGEFS_sys_attr_s attributes; char link_target[ORANGEFS_NAME_MAX]; }; struct orangefs_mkdir_response { struct orangefs_object_kref refn; }; /* * duplication of some system interface structures so that I don't have * to allocate extra memory */ struct orangefs_dirent { char *d_name; int d_length; struct orangefs_khandle khandle; }; struct orangefs_statfs_response { __s64 block_size; __s64 blocks_total; __s64 blocks_avail; __s64 files_total; __s64 files_avail; }; struct orangefs_fs_mount_response { __s32 fs_id; __s32 id; struct orangefs_khandle root_khandle; }; /* the getxattr response is the attribute value */ struct orangefs_getxattr_response { __s32 val_sz; __s32 __pad1; char val[ORANGEFS_MAX_XATTR_VALUELEN]; }; /* the listxattr response is an array of attribute names */ struct orangefs_listxattr_response { __s32 returned_count; __s32 __pad1; __u64 token; char key[ORANGEFS_MAX_XATTR_LISTLEN * ORANGEFS_MAX_XATTR_NAMELEN]; __s32 keylen; __s32 __pad2; __s32 lengths[ORANGEFS_MAX_XATTR_LISTLEN]; }; struct orangefs_param_response { union { __s64 value64; __s32 value32[2]; } u; }; #define PERF_COUNT_BUF_SIZE 4096 struct orangefs_perf_count_response { char buffer[PERF_COUNT_BUF_SIZE]; }; #define FS_KEY_BUF_SIZE 4096 struct orangefs_fs_key_response { __s32 fs_keylen; __s32 __pad1; char fs_key[FS_KEY_BUF_SIZE]; }; /* 2.9.6 */ struct orangefs_features_response { __u64 features; }; struct orangefs_downcall_s { __s32 type; __s32 status; /* currently trailer is used only by readdir */ __s64 trailer_size; char *trailer_buf; union { struct orangefs_io_response io; struct orangefs_lookup_response lookup; struct orangefs_create_response create; struct orangefs_symlink_response sym; struct orangefs_getattr_response getattr; struct orangefs_mkdir_response mkdir; struct orangefs_statfs_response statfs; struct orangefs_fs_mount_response fs_mount; struct orangefs_getxattr_response getxattr; struct orangefs_listxattr_response listxattr; struct orangefs_param_response param; struct orangefs_perf_count_response perf_count; struct orangefs_fs_key_response fs_key; struct orangefs_features_response features; } resp; }; struct orangefs_readdir_response_s { __u64 token; __u64 directory_version; __u32 __pad2; __u32 orangefs_dirent_outcount; struct orangefs_dirent *dirent_array; }; #endif /* __DOWNCALL_H */ vate-remove&id=6d04dfc8966019b8b0977b2cb942351f13d2b178'>root/drivers/usb/common/usb-otg-fsm.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-01 11:52:27 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-01 11:52:27 -0800
commit6d04dfc8966019b8b0977b2cb942351f13d2b178 (patch)
tree2d4f239c1daff620704b77a992c1e70ce1ce6b08 /drivers/usb/common/usb-otg-fsm.c
parent2883aaea363f7a897ff06d2e6c73ae7aae285bcb (diff)
parent06425c308b92eaf60767bc71d359f4cbc7a561f8 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: 1) Fix handling of interrupt status in stmmac driver. Just because we have masked the event from generating interrupts, doesn't mean the bit won't still be set in the interrupt status register. From Alexey Brodkin. 2) Fix DMA API debugging splats in gianfar driver, from Arseny Solokha. 3) Fix off-by-one error in __ip6_append_data(), from Vlad Yasevich. 4) cls_flow does not match on icmpv6 codes properly, from Simon Horman. 5) Initial MAC address can be set incorrectly in some scenerios, from Ivan Vecera. 6) Packet header pointer arithmetic fix in ip6_tnl_parse_tlv_end_lim(), from Dan Carpenter. 7) Fix divide by zero in __tcp_select_window(), from Eric Dumazet. 8) Fix crash in iwlwifi when unregistering thermal zone, from Jens Axboe. 9) Check for DMA mapping errors in starfire driver, from Alexey Khoroshilov. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (31 commits) tcp: fix 0 divide in __tcp_select_window() ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim() net: fix ndo_features_check/ndo_fix_features comment ordering net/sched: matchall: Fix configuration race be2net: fix initial MAC setting ipv6: fix flow labels when the traffic class is non-0 net: thunderx: avoid dereferencing xcv when NULL net/sched: cls_flower: Correct matching on ICMPv6 code ipv6: Paritially checksum full MTU frames net/mlx4_core: Avoid command timeouts during VF driver device shutdown gianfar: synchronize DMA API usage by free_skb_rx_queue w/ gfar_new_page net: ethtool: add support for 2500BaseT and 5000BaseT link modes can: bcm: fix hrtimer/tasklet termination in bcm op removal net: adaptec: starfire: add checks for dma mapping errors net: phy: micrel: KSZ8795 do not set SUPPORTED_[Asym_]Pause can: Fix kernel panic at security_sock_rcv_skb net: macb: Fix 64 bit addressing support for GEM stmmac: Discard masked flags in interrupt status register net/mlx5e: Check ets capability before ets query FW command net/mlx5e: Fix update of hash function/key via ethtool ...
Diffstat (limited to 'drivers/usb/common/usb-otg-fsm.c')