Lines Matching refs:desc
37 static int spartan3_sp_load(xilinx_desc *desc, const void *buf, size_t bsize);
38 static int spartan3_sp_dump(xilinx_desc *desc, const void *buf, size_t bsize);
41 static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize);
42 static int spartan3_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize);
47 static int spartan3_load(xilinx_desc *desc, const void *buf, size_t bsize, in spartan3_load() argument
52 switch (desc->iface) { in spartan3_load()
55 ret_val = spartan3_ss_load(desc, buf, bsize); in spartan3_load()
60 ret_val = spartan3_sp_load(desc, buf, bsize); in spartan3_load()
65 __FUNCTION__, desc->iface); in spartan3_load()
71 static int spartan3_dump(xilinx_desc *desc, const void *buf, size_t bsize) in spartan3_dump() argument
75 switch (desc->iface) { in spartan3_dump()
78 ret_val = spartan3_ss_dump(desc, buf, bsize); in spartan3_dump()
83 ret_val = spartan3_sp_dump(desc, buf, bsize); in spartan3_dump()
88 __FUNCTION__, desc->iface); in spartan3_dump()
94 static int spartan3_info(xilinx_desc *desc) in spartan3_info() argument
103 static int spartan3_sp_load(xilinx_desc *desc, const void *buf, size_t bsize) in spartan3_sp_load() argument
106 xilinx_spartan3_slave_parallel_fns *fn = desc->iface_fns; in spartan3_sp_load()
114 int cookie = desc->cookie; /* make a local copy */ in spartan3_sp_load()
257 static int spartan3_sp_dump(xilinx_desc *desc, const void *buf, size_t bsize) in spartan3_sp_dump() argument
260 xilinx_spartan3_slave_parallel_fns *fn = desc->iface_fns; in spartan3_sp_dump()
265 int cookie = desc->cookie; /* make a local copy */ in spartan3_sp_dump()
305 static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize) in spartan3_ss_load() argument
308 xilinx_spartan3_slave_serial_fns *fn = desc->iface_fns; in spartan3_ss_load()
318 int cookie = desc->cookie; /* make a local copy */ in spartan3_ss_load()
460 static int spartan3_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize) in spartan3_ss_dump() argument