Lines Matching +full:10 +full:- +full:bit

1 // SPDX-License-Identifier: GPL-2.0-only
3 * oxfw_command.c - a part of driver for OXFW970/971 based devices
16 buf = kmalloc(len + 10, GFP_KERNEL); in avc_stream_set_format()
18 return -ENOMEM; in avc_stream_set_format()
30 memcpy(buf + 10, format, len); in avc_stream_set_format()
32 /* do transaction and check buf[1-8] are the same against command */ in avc_stream_set_format()
33 err = fcp_avc_transaction(unit, buf, len + 10, buf, len + 10, in avc_stream_set_format()
34 BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | in avc_stream_set_format()
35 BIT(6) | BIT(7) | BIT(8)); in avc_stream_set_format()
38 else if (err < len + 10) in avc_stream_set_format()
39 err = -EIO; in avc_stream_set_format()
41 err = -ENXIO; in avc_stream_set_format()
43 err = -EINVAL; in avc_stream_set_format()
74 buf[10] = 0xff & eid; /* entry ID for LIST subfunction */ in avc_stream_get_format()
77 /* do transaction and check buf[1-7] are the same against command */ in avc_stream_get_format()
79 BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) | in avc_stream_get_format()
80 BIT(6) | BIT(7)); in avc_stream_get_format()
84 err = -EIO; in avc_stream_get_format()
86 err = -ENXIO; in avc_stream_get_format()
88 err = -EINVAL; in avc_stream_get_format()
90 err = -EAGAIN; in avc_stream_get_format()
92 else if ((subfunc == 0xc1) && (buf[10] != eid)) in avc_stream_get_format()
93 err = -EIO; in avc_stream_get_format()
99 memmove(buf, buf + 10, err - 10); in avc_stream_get_format()
100 *len = err - 10; in avc_stream_get_format()
102 memmove(buf, buf + 11, err - 11); in avc_stream_get_format()
103 *len = err - 11; in avc_stream_get_format()
124 return -EINVAL; in avc_general_inquiry_sig_fmt()
128 return -ENOMEM; in avc_general_inquiry_sig_fmt()
138 buf[5] = 0x07 & sfc; /* FDF-hi. AM824, frequency */ in avc_general_inquiry_sig_fmt()
139 buf[6] = 0xff; /* FDF-mid. AM824, SYT hi (not used) */ in avc_general_inquiry_sig_fmt()
140 buf[7] = 0xff; /* FDF-low. AM824, SYT lo (not used) */ in avc_general_inquiry_sig_fmt()
142 /* do transaction and check buf[1-5] are the same against command */ in avc_general_inquiry_sig_fmt()
144 BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5)); in avc_general_inquiry_sig_fmt()
148 err = -EIO; in avc_general_inquiry_sig_fmt()
150 err = -ENXIO; in avc_general_inquiry_sig_fmt()