Lines Matching defs:index
117 ldt_get_link(pcitag_t tag, int offset, int index)
119 return pci_conf_read(tag, offset + LDT_LINKn_OFF(index));
123 ldt_set_link(pcitag_t tag, int offset, int index, pcireg_t lr)
125 pci_conf_write(tag, offset + LDT_LINKn_OFF(index), lr);
171 ldt_wait_ready (pcitag_t tag, int offset, int index)
182 lr = ldt_get_link(tag, offset, index);
191 ldt_end_chain (pcitag_t tag, int offset, int index)
195 lr = ldt_get_link(tag, offset, index);
197 ldt_set_link(tag, offset, index, lr);
199 ldt_set_link(tag, offset, index, lr);
200 t = ldt_get_link(tag, offset, index); /* push */
205 ldt_freq_cap (pcitag_t tag, int offset, int index)
230 cr = pci_conf_read(tag, offset + LDT_FREQn_OFF(index));
260 ldt_set_freq (pcitag_t tag, int offset, int index, uint8_t freq)
271 cr = pci_conf_read(tag, offset + LDT_FREQn_OFF(index));
274 pci_conf_write(tag, offset + LDT_FREQn_OFF(index), cr);
277 pci_tagprintf(tag, "set link %d freq = %02x\n", index, freq);
455 link = LDT_COMMAND_MASTER_HOST(cmd); /* Upstream link index */
494 link = LDT_COMMAND_MASTER_HOST(cmd); /* Upstream link index */
591 link = LDT_COMMAND_MASTER_HOST(cmd); /* Upstream link index */