Lines Matching refs:port_cnt
1054 ds->num_ports = dev->port_cnt + 1; in ksz8795_config_cpu_port()
1078 if (i == dev->port_cnt) in ksz8795_config_cpu_port()
1216 dev->port_cnt = SWITCH_PORT_NUM; in ksz8795_switch_detect()
1226 dev->port_cnt--; in ksz8795_switch_detect()
1227 dev->last_port = dev->port_cnt; in ksz8795_switch_detect()
1247 int port_cnt; member
1258 .port_cnt = 4, /* total physical port count */
1267 .port_cnt = 3, /* total physical port count */
1276 .port_cnt = 4, /* total physical port count */
1294 dev->port_cnt = chip->port_cnt; in ksz8795_switch_init()
1305 dev->port_mask = BIT(dev->port_cnt) - 1; in ksz8795_switch_init()
1328 dev->ds->num_ports = dev->port_cnt + 1; in ksz8795_switch_init()