To find out what functions and pin names you get, you can run the commands a the command line.
Open a terminal with linuxcnc not running, and
Code:
halrun
loadrt encoder names = x_feedback,spindle
addf encoder.x_feedback servo-thread
show funct
show pin
show param
exit
However, from what you are saying I suspect that the problem is using a pin-name in the place where "net" expects you to use a signal name.
The first thing after the "net" command is a signal name, an identifier for the HAL net, so that you can reference that net in other places or in other HAL files. You can choose any name you want for a signal.
You _can_ choose a signal name that is identical to a pin name. But that leads to confusion, and is what you seem to have done.