/src/tests/net/can/ |
t_canfilter.c | 74 struct can_filter cfi; local in function:ATF_TC_BODY 85 cfi.can_id = MY_ID; 86 cfi.can_mask = CAN_SFF_MASK | CAN_EFF_FLAG; 88 &cfi, sizeof(cfi)) < 0) { 200 struct can_filter cfi[2]; local in function:ATF_TC_BODY 215 cfilen = sizeof(cfi); 217 &cfi, &cfilen) < 0) { 273 struct can_filter cfi[2]; local in function:ATF_TC_BODY 284 cfi[0].can_id = MY_ID 400 struct can_filter cfi[2]; local in function:ATF_TC_BODY [all...] |
/src/sys/arch/mips/ralink/ |
ralink_cfi.c | 32 * NOR CFI driver support for ralink 53 #include <dev/nor/cfi.h> 63 struct cfi sc_cfi; 73 * ra_cfi_addr - return bus address for the CFI NOR flash 87 struct cfi cfi; local in function:ra_cfi_match 100 cfi.cfi_bst = ma->ma_memt; 101 int error = bus_space_map(cfi.cfi_bst, addr, tmpsize, 0, &cfi.cfi_bsh); 108 if (! cfi_probe(&cfi)) { [all...] |
/src/sys/arch/powerpc/booke/dev/ |
pq3cfi.c | 32 * NOR CFI driver support for booke 51 #include <dev/nor/cfi.h> 61 struct cfi sc_cfi; 76 struct cfi cfi; local in function:pq3cfi_match 87 cfi.cfi_bst = ga->ga_bst; 88 int error = bus_space_map(cfi.cfi_bst, addr, tmpsize, 0, &cfi.cfi_bsh); 94 if (! cfi_probe(&cfi)) { 95 aprint_debug("%s: probe addr %#x, CFI not found\n" [all...] |
/src/sys/arch/sandpoint/sandpoint/ |
flash_cfi.c | 32 * NOR CFI driver support for sandpoint 43 #include <dev/nor/cfi.h> 53 struct cfi sc_cfi; 67 struct cfi cfi; local in function:sandpointcfi_probe 75 cfi.cfi_bst = ma->ma_bst; 78 error = bus_space_map(cfi.cfi_bst, 0xffe00000, qrysize, 0, 79 &cfi.cfi_bsh); 87 if (!cfi_probe(&cfi)) { 88 aprint_debug("%s: probe addr %#x, CFI not found\n" [all...] |
/src/sys/dev/nor/ |
cfi_0002.c | 47 #include <dev/nor/cfi.h> 51 static void cfi_0002_version_init(struct cfi * const); 57 static int cfi_0002_busy_wait(struct cfi * const, flash_off_t, u_long); 58 static int cfi_0002_busy_poll(struct cfi * const, flash_off_t, u_long); 59 static int cfi_0002_busy_yield(struct cfi * const, flash_off_t, u_long); 60 static int cfi_0002_busy_dq7(struct cfi * const , flash_off_t); 62 static int cfi_0002_busy_reg(struct cfi * const, flash_off_t); 105 cfi_0002_time_write_nbyte(struct cfi *cfi) 107 u_int shft = cfi->cfi_qry_data.write_nbyte_time_typ 238 struct cfi *cfi = (struct cfi * const)sc->sc_nor_if->private; local in function:cfi_0002_read_page 282 struct cfi *cfi = (struct cfi * const)sc->sc_nor_if->private; local in function:cfi_0002_program_page 338 struct cfi *cfi = (struct cfi * const)sc->sc_nor_if->private; local in function:cfi_0002_erase_all 365 struct cfi *cfi = (struct cfi * const)sc->sc_nor_if->private; local in function:cfi_0002_erase_block 397 struct cfi * const cfi = (struct cfi * const)sc->sc_nor_if->private; local in function:cfi_0002_busy [all...] |
cfi.c | 1 /* $NetBSD: cfi.c,v 1.9 2019/02/06 04:20:40 mrg Exp $ */ 36 __KERNEL_RCSID(0, "$NetBSD: cfi.c,v 1.9 2019/02/06 04:20:40 mrg Exp $"); 47 #include <dev/nor/cfi.h> 66 static uint8_t cfi_read_qry(struct cfi * const, bus_size_t); 67 static bool cfi_jedec_id(struct cfi * const); 68 static bool cfi_emulate(struct cfi * const); 69 static const struct cfi_jedec_tab * cfi_jedec_search(struct cfi *); 70 static void cfi_jedec_fill(struct cfi * const, 252 #define CFI_QRY_UNPACK_COMMON(cfi, data, type) \ 254 struct cfi_query_data * const qryp = &cfi->cfi_qry_data; 461 struct cfi * const cfi = (struct cfi * const)sc->sc_nor_if->private; local in function:cfi_scan_media [all...] |
cfi.h | 1 /* $NetBSD: cfi.h,v 1.8 2022/01/05 16:01:54 andvar Exp $ */ 31 * CFI Query structure 94 * id_pri: CFI Command set and control assignments 123 struct cfi; /* fwd ref */ 126 void (*cfi_reset)(struct cfi *); 127 int (*cfi_busy)(struct cfi *, flash_off_t); 128 int (*cfi_program_word)(struct cfi *, flash_off_t); 129 int (*cfi_erase_sector)(struct cfi *, flash_off_t); 155 extern void cfi_0002_stats_reset(struct cfi *); 156 extern void cfi_0002_stats_print(struct cfi *); 171 struct cfi { struct [all...] |