Lines Matching refs:args
73 } args;
91 INIT_IEEE1275_COMMON (&args.common, "call-method", 2, 2);
92 args.method = (grub_ieee1275_cell_t) "block-size";
93 args.ihandle = dev_ihandle;
94 args.result = 1;
96 if ((IEEE1275_CALL_ENTRY_FN (&args) == -1) || (args.result))
102 data->block_size = (args.size1 >> GRUB_DISK_SECTOR_BITS);
104 INIT_IEEE1275_COMMON (&args.common, "call-method", 2, 3);
105 args.method = (grub_ieee1275_cell_t) "size";
106 args.ihandle = dev_ihandle;
107 args.result = 1;
109 if ((IEEE1275_CALL_ENTRY_FN (&args) == -1) || (args.result))
115 disk->total_sectors = args.size1;
117 disk->total_sectors += args.size2;
157 } args;
159 INIT_IEEE1275_COMMON (&args.common, "call-method", 6, 1);
160 args.method = (grub_ieee1275_cell_t) "pio-read";
161 args.ihandle = data->handle;
162 args.buf = (grub_ieee1275_cell_t) buf;
163 args.page = (grub_ieee1275_cell_t) ((grub_size_t) sector / data->block_size);
175 args.len = (grub_ieee1275_cell_t) len;
176 args.ofs = (grub_ieee1275_cell_t) ofs;
177 args.result = 1;
179 if ((IEEE1275_CALL_ENTRY_FN (&args) == -1) || (args.result))
184 args.buf += len;
185 args.page++;