Lines Matching refs:gp
56 uint8_t *gp;
69 req->u.gp.gp0_settings = current_flash.res.mcp2221_get_flash_res.u.gp.gp0_settings;
70 req->u.gp.gp1_settings = current_flash.res.mcp2221_get_flash_res.u.gp.gp1_settings;
71 req->u.gp.gp2_settings = current_flash.res.mcp2221_get_flash_res.u.gp.gp2_settings;
72 req->u.gp.gp3_settings = current_flash.res.mcp2221_get_flash_res.u.gp.gp3_settings;
75 fprintf(stderr, "CURRENT FLASH: %02x %02x %02x %02x\n", current_flash.res.mcp2221_get_flash_res.u.gp.gp0_settings, current_flash.res.mcp2221_get_flash_res.u.gp.gp1_settings, current_flash.res.mcp2221_get_flash_res.u.gp.gp2_settings, current_flash.res.mcp2221_get_flash_res.u.gp.gp3_settings);
78 gp = NULL;
80 gp = (uint8_t *) & req->u.gp.gp0_settings;
83 gp = (uint8_t *) & req->u.gp.gp1_settings;
86 gp = (uint8_t *) & req->u.gp.gp2_settings;
89 gp = (uint8_t *) & req->u.gp.gp3_settings;
91 if (gp == NULL) {
101 *gp &= MCP2221_FLASH_GPIO_VALUE_MASK;
102 *gp |= MCP2221_FLASH_GPIO_INPUT;
106 *gp &= MCP2221_FLASH_GPIO_VALUE_MASK;
110 *gp &= (MCP2221_FLASH_GPIO_VALUE_MASK | MCP2221_FLASH_GPIO_INPUT);
111 *gp &= ~MCP2221_FLASH_PIN_TYPE_MASK;
112 *gp |= MCP2221_FLASH_PIN_IS_ALT0;
116 *gp &= (MCP2221_FLASH_GPIO_VALUE_MASK | MCP2221_FLASH_GPIO_INPUT);
117 *gp &= ~MCP2221_FLASH_PIN_TYPE_MASK;
118 *gp |= MCP2221_FLASH_PIN_IS_ALT1;
122 *gp &= (MCP2221_FLASH_GPIO_VALUE_MASK | MCP2221_FLASH_GPIO_INPUT);
123 *gp &= ~MCP2221_FLASH_PIN_TYPE_MASK;
124 *gp |= MCP2221_FLASH_PIN_IS_ALT2;
128 *gp &= (MCP2221_FLASH_GPIO_VALUE_MASK | MCP2221_FLASH_GPIO_INPUT);
129 *gp &= ~MCP2221_FLASH_PIN_TYPE_MASK;
130 *gp |= MCP2221_FLASH_PIN_IS_DED;
134 *gp &= ~MCP2221_FLASH_GPIO_VALUE_MASK;
138 *gp |= MCP2221_FLASH_GPIO_VALUE_MASK;
172 uint8_t *gp;
210 gp = NULL;
213 gp = (uint8_t *) & req->u.cs.gp0_designation;
217 gp = (uint8_t *) & req->u.cs.gp1_designation;
221 gp = (uint8_t *) & req->u.cs.gp2_designation;
225 gp = (uint8_t *) & req->u.cs.gp3_designation;
229 gp = (uint8_t *) & req->u.cs.gp4_designation;
233 gp = (uint8_t *) & req->u.cs.gp5_designation;
237 gp = (uint8_t *) & req->u.cs.gp6_designation;
241 gp = (uint8_t *) & req->u.cs.gp7_designation;
245 gp = (uint8_t *) & req->u.cs.gp8_designation;
248 if (gp == NULL) {
258 *gp = MCP2210_PIN_IS_GPIO;
265 *gp = MCP2210_PIN_IS_GPIO;
272 *gp = MCP2210_PIN_IS_ALT0;
276 *gp = MCP2210_PIN_IS_DED;
283 *gp = MCP2210_PIN_IS_DED;
289 *gp = MCP2210_PIN_IS_DED;
295 *gp = MCP2210_PIN_IS_DED;