Lines Matching refs:vpi
517 static inline int channel_to_vpivci (const u16 channel, short * vpi, int * vci) { in channel_to_vpivci() argument
521 *vpi = channel >> vci_bits; in channel_to_vpivci()
527 static inline int vpivci_to_channel (u16 * channel, const short vpi, const int vci) { in vpivci_to_channel() argument
529 if (0 <= vpi && vpi < 1<<vpi_bits && 0 <= vci && vci < 1<<vci_bits) { in vpivci_to_channel()
530 *channel = vpi<<vci_bits | vci; in vpivci_to_channel()
2176 static int hrz_open (struct atm_vcc * atm_vcc, short vpi, int vci) { in hrz_open() argument
2187 PRINTD (DBG_FLOW|DBG_VCC, "hrz_open %x %x", vpi, vci); in hrz_open()
2191 if (vpi == ATM_VPI_UNSPEC || vci == ATM_VCI_UNSPEC) { in hrz_open()
2198 error = atm_find_ci (atm_vcc, &vpi, &vci); in hrz_open()
2203 PRINTD (DBG_VCC, "atm_find_ci gives %x %x", vpi, vci); in hrz_open()
2205 error = vpivci_to_channel (&channel, vpi, vci); in hrz_open()
2207 PRINTD (DBG_WARN|DBG_VCC, "VPI/VCI out of range: %hd/%d", vpi, vci); in hrz_open()
2559 atm_vcc->vpi = vpi; in hrz_open()