Lines Matching refs:nfc
121 nandbus_create(device_t nfc)
125 child = device_add_child(nfc, "nandbus", -1);
129 bus_generic_attach(nfc);
135 nandbus_destroy(device_t nfc)
142 if (!device_get_children(nfc, &children, &nchildren)) {
144 device_delete_child(nfc, children[i]);
163 device_t child, nfc;
174 nfc = device_get_parent(dev);
175 nfc_sc = device_get_softc(nfc);
305 device_t nfc;
312 nfc = device_get_parent(bus);
314 if (NFC_SEND_COMMAND(nfc, NAND_CMD_READ_ID)) {
319 if (NFC_SEND_ADDRESS(nfc, 0)) {
324 if (NFC_START_COMMAND(nfc) != 0) {
331 *man_id = NFC_READ_BYTE(nfc);
332 *dev_id = NFC_READ_BYTE(nfc);
343 device_t nfc;
349 nfc = device_get_parent(bus);
351 if (NFC_SEND_COMMAND(nfc, NAND_CMD_READ_ID)) {
356 if (NFC_SEND_ADDRESS(nfc, ONFI_SIG_ADDR)) {
361 if (NFC_START_COMMAND(nfc) != 0) {
366 if (NFC_READ_BYTE(nfc) != onfi_id[i]) {
381 device_t nfc;
384 nfc = device_get_parent(bus);
386 if (NFC_SEND_COMMAND(nfc, NAND_CMD_RESET) != 0) {
391 if (NFC_START_COMMAND(nfc) != 0) {