Lines Matching +full:address +full:- +full:width
3 # SPDX-License-Identifier: Apache-2.0
16 def __new__(cls, value, width): argument
19 obj.width = width
22 MONITOR_CONFIG = (0xD5, -1)
26 DEVICE_ID = (0xFD, -1)
30 def __new__(cls, value, width): argument
33 obj.width = width
41 PAGE_PLUS_WRITE = (0x05, -1)
42 PAGE_PLUS_READ = (0x06, -1)
83 MFR_MODEL = (0x9A, -1)
84 IC_DEVICE_REV = (0xAE, -1)
85 USER_DATA_00 = (0xB0, -1)
86 USER_DATA_08 = (0xB8, -1)
121 "address",
226 def smbus_pec_pack_address(address, record): argument
227 return (address << 1) | record.value
254 if command.width is None:
256 elif command.width == -1:
259 start, end = 1, command.width + 1
273 smbus_pec_pack_address(self.xfer.address, self.xfer.record),
274 *self.xfer.data.data[:-1],
296 "{0} {1:.6f} 0x{2.xfer.address:x} {3.name} "
303 fmt = "{0} {1:.6f} 0x{2.xfer.address:x} {3.name} {2.command.name} {4}"
313 assert start.address == repeat.address
314 self.address = start.address
316 if self.command.width is None:
318 elif self.command.width == -1:
321 start, end = 0, command.width
335 smbus_pec_pack_address(self.start.address, self.start.record),
337 smbus_pec_pack_address(self.repeat.address, self.repeat.record),
338 *self.repeat.data.data[:-1],
358 fmt = "{0} {1:.6f} 0x{2.address:x} {3.name} {2.command.name} {4}"
363 fmt = "{0} {1:.6f} 0x{2.address:x} {3.name} {2.command.name}"
400 parser.add_argument("--after", type=str)
401 parser.add_argument("--before", type=str)
402 parser.add_argument("--longer-than", type=str)
403 parser.add_argument("--address", type=lambda x: int(x, 0))
404 parser.add_argument("--pmbus", action="store_true")
405 parser.add_argument("--ucd90320", action="store_true")
406 parser.add_argument("--bad-transfers", action="store_true")
421 if args.address is not None:
422 xfers = (e for e in xfers if e.address == args.address)
442 fmt = "{0} {1:.6f} 0x{2.address:x} {2.record.name} {3} {4}"