/kernel/linux/linux-5.10/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-interrupt-rsl.c | 80 int num_ports; in __cvmx_interrupt_gmxx_enable() local 89 num_ports = 1; in __cvmx_interrupt_gmxx_enable() 93 num_ports = 4; in __cvmx_interrupt_gmxx_enable() 96 num_ports = 0; in __cvmx_interrupt_gmxx_enable() 100 num_ports = 0; in __cvmx_interrupt_gmxx_enable() 111 num_ports = 1; in __cvmx_interrupt_gmxx_enable() 113 num_ports = 4; in __cvmx_interrupt_gmxx_enable() 121 num_ports = 2; in __cvmx_interrupt_gmxx_enable() 123 num_ports = 3; in __cvmx_interrupt_gmxx_enable() 126 num_ports in __cvmx_interrupt_gmxx_enable() [all...] |
H A D | cvmx-helper-util.c | 176 * @num_ports: Number of ports on the interface 180 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument 190 gmx_tx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 203 if (num_ports > 4) { in __cvmx_helper_setup_gmx() 205 "num_ports\n"); in __cvmx_helper_setup_gmx() 210 gmx_rx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 220 if (num_ports == 1) in __cvmx_helper_setup_gmx() 222 else if (num_ports == 2) in __cvmx_helper_setup_gmx() 224 else if (num_ports <= 4) in __cvmx_helper_setup_gmx() 226 else if (num_ports < in __cvmx_helper_setup_gmx() [all...] |
H A D | cvmx-helper-spi.c | 73 int num_ports = 0; in __cvmx_helper_spi_probe() local 77 num_ports = 10; in __cvmx_helper_spi_probe() 80 num_ports = 16; in __cvmx_helper_spi_probe() 91 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe() 92 return num_ports; in __cvmx_helper_spi_probe() 111 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable() local 113 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable() 123 CVMX_HELPER_SPI_TIMEOUT, num_ports); in __cvmx_helper_spi_enable()
|
H A D | cvmx-helper-loop.c | 51 int num_ports = 4; in __cvmx_helper_loop_probe() local 56 for (port = 0; port < num_ports; port++) { in __cvmx_helper_loop_probe() 69 return num_ports; in __cvmx_helper_loop_probe()
|
H A D | cvmx-helper-rgmii.c | 54 int num_ports = 0; in __cvmx_helper_rgmii_probe() local 70 num_ports = 2; in __cvmx_helper_rgmii_probe() 78 num_ports = 4; in __cvmx_helper_rgmii_probe() 82 num_ports = 3; in __cvmx_helper_rgmii_probe() 88 return num_ports; in __cvmx_helper_rgmii_probe() 161 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_rgmii_enable() local 179 asx_tx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable() 183 asx_rx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable() 187 for (port = 0; port < num_ports; port++) { in __cvmx_helper_rgmii_enable() 236 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_rgmii_enable() [all...] |
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-interrupt-rsl.c | 80 int num_ports; in __cvmx_interrupt_gmxx_enable() local 89 num_ports = 1; in __cvmx_interrupt_gmxx_enable() 93 num_ports = 4; in __cvmx_interrupt_gmxx_enable() 96 num_ports = 0; in __cvmx_interrupt_gmxx_enable() 100 num_ports = 0; in __cvmx_interrupt_gmxx_enable() 111 num_ports = 1; in __cvmx_interrupt_gmxx_enable() 113 num_ports = 4; in __cvmx_interrupt_gmxx_enable() 121 num_ports = 2; in __cvmx_interrupt_gmxx_enable() 123 num_ports = 3; in __cvmx_interrupt_gmxx_enable() 126 num_ports in __cvmx_interrupt_gmxx_enable() [all...] |
H A D | cvmx-helper-util.c | 176 * @num_ports: Number of ports on the interface 180 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument 190 gmx_tx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 203 if (num_ports > 4) { in __cvmx_helper_setup_gmx() 205 "num_ports\n"); in __cvmx_helper_setup_gmx() 210 gmx_rx_prts.s.prts = num_ports; in __cvmx_helper_setup_gmx() 220 if (num_ports == 1) in __cvmx_helper_setup_gmx() 222 else if (num_ports == 2) in __cvmx_helper_setup_gmx() 224 else if (num_ports <= 4) in __cvmx_helper_setup_gmx() 226 else if (num_ports < in __cvmx_helper_setup_gmx() [all...] |
H A D | cvmx-helper-spi.c | 73 int num_ports = 0; in __cvmx_helper_spi_probe() local 77 num_ports = 10; in __cvmx_helper_spi_probe() 80 num_ports = 16; in __cvmx_helper_spi_probe() 91 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_spi_probe() 92 return num_ports; in __cvmx_helper_spi_probe() 111 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_spi_enable() local 113 for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; in __cvmx_helper_spi_enable() 123 CVMX_HELPER_SPI_TIMEOUT, num_ports); in __cvmx_helper_spi_enable()
|
H A D | cvmx-helper-loop.c | 51 int num_ports = 4; in __cvmx_helper_loop_probe() local 56 for (port = 0; port < num_ports; port++) { in __cvmx_helper_loop_probe() 69 return num_ports; in __cvmx_helper_loop_probe()
|
H A D | cvmx-helper-rgmii.c | 54 int num_ports = 0; in __cvmx_helper_rgmii_probe() local 70 num_ports = 2; in __cvmx_helper_rgmii_probe() 78 num_ports = 4; in __cvmx_helper_rgmii_probe() 82 num_ports = 3; in __cvmx_helper_rgmii_probe() 88 return num_ports; in __cvmx_helper_rgmii_probe() 161 int num_ports = cvmx_helper_ports_on_interface(interface); in __cvmx_helper_rgmii_enable() local 179 asx_tx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable() 183 asx_rx.s.prt_en = cvmx_build_mask(num_ports); in __cvmx_helper_rgmii_enable() 187 for (port = 0; port < num_ports; port++) { in __cvmx_helper_rgmii_enable() 236 __cvmx_helper_setup_gmx(interface, num_ports); in __cvmx_helper_rgmii_enable() [all...] |
/kernel/linux/linux-5.10/drivers/parport/ |
H A D | parport_serial.c | 334 .num_ports = 1, 340 .num_ports = 2, 346 .num_ports = 1, 352 .num_ports = 1, 358 .num_ports = 1, 364 .num_ports = 1, 370 .num_ports = 0, 376 .num_ports = 0, 382 .num_ports = 1, 388 .num_ports [all...] |
/kernel/linux/linux-6.6/drivers/parport/ |
H A D | parport_serial.c | 334 .num_ports = 1, 340 .num_ports = 2, 346 .num_ports = 1, 352 .num_ports = 1, 358 .num_ports = 1, 364 .num_ports = 1, 370 .num_ports = 0, 376 .num_ports = 0, 382 .num_ports = 1, 388 .num_ports [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
H A D | 8250_men_mcb.c | 75 int num_ports; in serial_8250_men_mcb_probe() local 86 num_ports = get_num_ports(mdev, membase); in serial_8250_men_mcb_probe() 89 mdev->id, num_ports); in serial_8250_men_mcb_probe() 91 if (num_ports <= 0 || num_ports > 4) { in serial_8250_men_mcb_probe() 93 num_ports); in serial_8250_men_mcb_probe() 97 data = devm_kcalloc(&mdev->dev, num_ports, in serial_8250_men_mcb_probe() 105 for (i = 0; i < num_ports; i++) { in serial_8250_men_mcb_probe() 136 int num_ports, i; in serial_8250_men_mcb_remove() local 142 num_ports in serial_8250_men_mcb_remove() [all...] |
H A D | 8250_acorn.c | 26 unsigned int num_ports; member 33 unsigned int num_ports; member 51 info->num_ports = type->num_ports; in serial_card_probe() 70 for (i = 0; i < info->num_ports; i++) { in serial_card_probe() 87 for (i = 0; i < info->num_ports; i++) in serial_card_remove() 95 .num_ports = 3, 102 .num_ports = 2,
|
H A D | 8250_pci.c | 30 * = 0 - use board->num_ports 760 if (idx >= board->num_ports) in pci_ni8430_setup() 1815 if (board->num_ports == 4 && idx == 3) in pci_moxa_setup() 2961 .num_ports = 1, 2967 .num_ports = 1, 2973 .num_ports = 2, 2979 .num_ports = 4, 2985 .num_ports = 5, 2991 .num_ports = 8, 2997 .num_ports [all...] |
/kernel/linux/linux-5.10/sound/drivers/ |
H A D | mtpav.c | 133 int num_ports; /* number of hw ports (1-8) */ member 158 * where X = chip->num_ports 170 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport() 172 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport() 173 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport() 174 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport() 176 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) in translate_subdevice_to_hwport() 185 return chip->num_ports + MTPAV_PIDX_BROADCAST; in translate_hwport_to_subdevice() 188 if (p >= chip->num_ports) in translate_hwport_to_subdevice() 192 p = hwport - 0x09 + chip->num_ports; in translate_hwport_to_subdevice() [all...] |
/kernel/linux/linux-6.6/sound/drivers/ |
H A D | mtpav.c | 132 int num_ports; /* number of hw ports (1-8) */ member 157 * where X = chip->num_ports 169 else if (subdev < chip->num_ports) in translate_subdevice_to_hwport() 171 else if (subdev < chip->num_ports * 2) in translate_subdevice_to_hwport() 172 return subdev - chip->num_ports + 0x09; /* remote port */ in translate_subdevice_to_hwport() 173 else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) in translate_subdevice_to_hwport() 175 else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) in translate_subdevice_to_hwport() 184 return chip->num_ports + MTPAV_PIDX_BROADCAST; in translate_hwport_to_subdevice() 187 if (p >= chip->num_ports) in translate_hwport_to_subdevice() 191 p = hwport - 0x09 + chip->num_ports; in translate_hwport_to_subdevice() [all...] |
/kernel/linux/linux-6.6/drivers/tty/serial/8250/ |
H A D | 8250_acorn.c | 26 unsigned int num_ports; member 33 unsigned int num_ports; member 51 info->num_ports = type->num_ports; in serial_card_probe() 70 for (i = 0; i < info->num_ports; i++) { in serial_card_probe() 87 for (i = 0; i < info->num_ports; i++) in serial_card_remove() 95 .num_ports = 3, 102 .num_ports = 2,
|
H A D | 8250_pci.c | 32 * = 0 - use board->num_ports 743 if (idx >= board->num_ports) in pci_ni8430_setup() 1898 if (board->num_ports == 4 && idx == 3) in pci_moxa_setup() 3022 .num_ports = 1, 3028 .num_ports = 1, 3034 .num_ports = 2, 3040 .num_ports = 4, 3046 .num_ports = 5, 3052 .num_ports = 8, 3058 .num_ports [all...] |
/kernel/linux/linux-6.6/drivers/phy/ti/ |
H A D | phy-gmii-sel.c | 50 u32 num_ports; member 64 u32 num_ports; member 182 .num_ports = 2, 200 .num_ports = 2, 206 .num_ports = 2, 234 .num_ports = 4, 243 .num_ports = 8, 253 .num_ports = 8, 312 if (phy_id > priv->num_ports) in phy_gmii_sel_of_xlate() 403 priv->num_ports in phy_gmii_sel_init_ports() [all...] |
/kernel/linux/linux-5.10/drivers/usb/serial/ |
H A D | visor.c | 169 .num_ports = 2, 188 .num_ports = 2, 208 .num_ports = 1, 320 int num_ports = 0; in palm_os_3_probe() local 346 num_ports = le16_to_cpu(connection_info->num_ports); in palm_os_3_probe() 349 if (num_ports == 0 || num_ports > 2) { in palm_os_3_probe() 352 num_ports = 2; in palm_os_3_probe() 355 for (i = 0; i < num_ports; in palm_os_3_probe() 471 int num_ports = (int)(long)(usb_get_serial_data(serial)); visor_calc_num_ports() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/serial/ |
H A D | visor.c | 169 .num_ports = 2, 188 .num_ports = 2, 208 .num_ports = 1, 320 int num_ports = 0; in palm_os_3_probe() local 346 num_ports = le16_to_cpu(connection_info->num_ports); in palm_os_3_probe() 349 if (num_ports == 0 || num_ports > 2) { in palm_os_3_probe() 352 num_ports = 2; in palm_os_3_probe() 355 for (i = 0; i < num_ports; in palm_os_3_probe() 471 int num_ports = (int)(long)(usb_get_serial_data(serial)); visor_calc_num_ports() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
H A D | ib_rep.c | 33 static void mlx5_ib_num_ports_update(struct mlx5_core_dev *dev, u32 *num_ports) in mlx5_ib_num_ports_update() argument 42 *num_ports += peer_num_ports; in mlx5_ib_num_ports_update() 45 *num_ports += peer_num_ports - 1; in mlx5_ib_num_ports_update() 52 u32 num_ports = mlx5_eswitch_get_total_vports(dev); in mlx5_ib_vport_rep_load() local 66 mlx5_ib_num_ports_update(dev, &num_ports); in mlx5_ib_vport_rep_load() 97 ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), in mlx5_ib_vport_rep_load() 110 ibdev->num_ports = num_ports; in mlx5_ib_vport_rep_load() 153 for (i = 0; i < dev->num_ports; i++) { in mlx5_ib_vport_rep_unload() 157 if (WARN_ON(i == dev->num_ports)) in mlx5_ib_vport_rep_unload() [all...] |
/kernel/linux/linux-5.10/drivers/phy/ti/ |
H A D | phy-gmii-sel.c | 42 u32 num_ports; member 54 u32 num_ports; member 144 .num_ports = 2, 162 .num_ports = 2, 168 .num_ports = 2, 234 if (phy_id > priv->num_ports) in phy_gmii_sel_of_xlate() 325 priv->num_ports = size / sizeof(u32); in phy_gmii_sel_init_ports() 326 if (!priv->num_ports) in phy_gmii_sel_init_ports() 331 if_phys = devm_kcalloc(dev, priv->num_ports, in phy_gmii_sel_init_ports() 335 dev_dbg(dev, "%s %d\n", __func__, priv->num_ports); in phy_gmii_sel_init_ports() [all...] |
/kernel/linux/linux-6.6/drivers/slimbus/ |
H A D | stream.c | 207 int num_ports, i, port_id, prrate; in slim_stream_prepare() local 214 num_ports = hweight32(cfg->port_mask); in slim_stream_prepare() 215 rt->ports = kcalloc(num_ports, sizeof(*port), GFP_KERNEL); in slim_stream_prepare() 219 rt->num_ports = num_ports; in slim_stream_prepare() 369 for (i = 0; i < stream->num_ports; i++) in slim_stream_enable() 380 for (i = 0; i < stream->num_ports; i++) { in slim_stream_enable() 387 for (i = 0; i < stream->num_ports; i++) { in slim_stream_enable() 417 if (!stream->ports || !stream->num_ports) in slim_stream_disable() 427 for (i = 0; i < stream->num_ports; in slim_stream_disable() [all...] |