Lines Matching defs:Item
70 POINTER Item;
104 // Current item being formatted
105 struct _pitem *Item;
981 PRINT_ITEM *Item;
984 // Get the length of the item
985 Item = ps->Item;
986 Item->Item.Index = 0;
987 while (Item->Item.Index < Item->FieldWidth) {
988 c = PGETC(&Item->Item);
990 Item->Item.Index -= 1;
994 Len = Item->Item.Index;
996 // if there is no item field width, use the items width
997 if (Item->FieldWidth == (UINTN) -1) {
998 Item->FieldWidth = Len;
1001 // if item is larger then width, update width
1002 if (Len > Item->Width) {
1003 Item->Width = Len;
1008 if (Item->PadBefore) {
1009 for (i=Item->Width; i < Item->FieldWidth; i+=1) {
1014 // pad item
1015 for (i=Len; i < Item->Width; i++) {
1016 PPUTC (ps, Item->Pad);
1019 // add the item
1020 Item->Item.Index=0;
1021 while (Item->Item.Index < Len) {
1022 PPUTC (ps, PGETC(&Item->Item));
1026 if (!Item->PadBefore) {
1027 for (i=Item->Width; i < Item->FieldWidth; i+=1) {
1087 PRINT_ITEM Item;
1094 ps->Item = &Item;
1104 // setup for new item
1105 Item.FieldWidth = (UINTN) -1;
1106 Item.Width = 0;
1107 Item.WidthParse = &Item.Width;
1108 Item.Pad = ' ';
1109 Item.PadBefore = TRUE;
1110 Item.Comma = FALSE;
1111 Item.Long = FALSE;
1112 Item.Item.Ascii = FALSE;
1113 Item.Item.pw = NULL;
1125 Item.Scratch[0] = '%';
1126 Item.Scratch[1] = 0;
1127 Item.Item.pw = Item.Scratch;
1131 Item.Pad = '0';
1135 Item.PadBefore = FALSE;
1139 Item.Comma = TRUE;
1143 Item.WidthParse = &Item.FieldWidth;
1147 *Item.WidthParse = va_arg(ps->args, UINTN);
1159 *Item.WidthParse = 0;
1161 *Item.WidthParse = *Item.WidthParse * 10 + c - '0';
1168 Item.Item.pc = va_arg(ps->args, CHAR8 *);
1169 Item.Item.Ascii = TRUE;
1170 if (!Item.Item.pc) {
1171 Item.Item.pc = (CHAR8 *)"(null)";
1176 Item.Item.pw = va_arg(ps->args, CHAR16 *);
1177 if (!Item.Item.pw) {
1178 Item.Item.pw = L"(null)";
1183 Item.Scratch[0] = (CHAR16) va_arg(ps->args, UINTN);
1184 Item.Scratch[1] = 0;
1185 Item.Item.pw = Item.Scratch;
1189 Item.Long = TRUE;
1193 Item.Width = Item.Long ? 16 : 8;
1194 Item.Pad = '0';
1200 Item.Scratch,
1201 Item.Long ? va_arg(ps->args, UINT64) : va_arg(ps->args, UINT32)
1203 Item.Item.pw = Item.Scratch;
1209 GuidToString (Item.Scratch, va_arg(ps->args, EFI_GUID *));
1210 Item.Item.pw = Item.Scratch;
1215 Item.Scratch,
1216 Item.Comma,
1217 Item.Long ? va_arg(ps->args, UINT64) : va_arg(ps->args, UINT32)
1219 Item.Item.pw = Item.Scratch;
1224 Item.Scratch,
1225 Item.Comma,
1226 Item.Long ? va_arg(ps->args, INT64) : va_arg(ps->args, INT32)
1228 Item.Item.pw = Item.Scratch;
1235 StrnCpy(Item.Scratch, dpstr, PRINT_ITEM_BUFFER_LEN);
1236 Item.Scratch[PRINT_ITEM_BUFFER_LEN-1] = L'\0';
1239 Item.Item.pw = Item.Scratch;
1246 Item.Scratch,
1247 Item.Comma,
1250 Item.Item.pw = Item.Scratch;
1255 TimeToString (Item.Scratch, va_arg(ps->args, EFI_TIME *));
1256 Item.Item.pw = Item.Scratch;
1260 StatusToString (Item.Scratch, va_arg(ps->args, EFI_STATUS));
1261 Item.Item.pw = Item.Scratch;
1289 Item.Scratch[0] = '?';
1290 Item.Scratch[1] = 0;
1291 Item.Item.pw = Item.Scratch;
1295 // if we have an Item
1296 if (Item.Item.pw) {