Lines Matching refs:portid

43 /* Macro to get I/O portid */
44 #define DO_GET_IO_PORTID(env, lo, hi, portid) \
48 portid = (uint32_t)POP(DS)
152 unsigned int portid, lsb, ch, leaf;
154 CHECK_DEPTH(env, 2, "jupiter:get-portid");
163 portid = OPL_IO_PORTID(lsb, ch, leaf);
165 debug_msg(DEBUG_REG_ACCESS, "jupiter:get-portid ( %x %x ) -> %x\n",
166 (int)phi, (int)plo, (int)portid);
167 PUSH(DS, portid);
184 /* Convert physical address to portid */
204 unsigned int portid, lsb, ch;
210 if (sscanf(buf, "%x,%llx", &portid, &lo) != 2) {
211 if (sscanf(buf, "%x", &portid) != 1) {
218 lsb = OPL_IO_PORTID_TO_LSB(portid);
219 ch = OPL_PORTID_TO_CHANNEL(portid);
236 uint32_t portid, ch, leaf;
243 portid = 0;
247 * Get portid number from unit_address
250 if (sscanf(buf, "%x,%llx", &portid, &lo) != 2) {
251 if (sscanf(buf, "%x", &portid) != 1) {
259 * Convert physical address to portid.
263 DO_GET_IO_PORTID(env, lo, hi, portid);
267 "jupiter:do_device_id:(%x,%llx)\n", portid, lo);
269 /* Pick up each ID from portid */
270 ch = OPL_PORTID_TO_CHANNEL(portid);
271 leaf = OPL_PORTID_TO_LEAF(portid);
298 "jupiter:do_device_id: invalid portid %x", portid);
313 uint32_t portid = 0;
321 /* Get a portid with string format */
325 if (sscanf(buf, "%x", &portid) != 1) {
326 throw_from_fclib(env, 1, "jupiter:%s: invalid portid",
330 ch = OPL_PORTID_TO_CHANNEL(portid);
345 * Get the virtual address of hwd specified with portid.
348 fc_uint32_t2cell(portid), fc_ptr2cell(hwd_va), &status);
375 int portid;
381 portid = POP(DS);
388 fc_uint32_t2cell(portid), fc_uint32_t2cell(xt), &status);
397 portid, xt, (int)FALSE);
442 FORTH(0, "get-portid", do_get_io_portid);