Searched refs:dev_num (Results 1 – 6 of 6) sorted by relevance
447 u16 dev_num; in rfcomm_get_dev_list() local451 if (get_user(dev_num, (u16 __user *) arg)) in rfcomm_get_dev_list()454 if (!dev_num || dev_num > (PAGE_SIZE * 4) / sizeof(*di)) in rfcomm_get_dev_list()457 size = sizeof(*dl) + dev_num * sizeof(*di); in rfcomm_get_dev_list()476 if (++n >= dev_num) in rfcomm_get_dev_list()482 dl->dev_num = n; in rfcomm_get_dev_list()
17 int dev_num; /* e.g. 2 for lec2 */ member
133 if (mpc->dev_num == itf) in find_mpc_by_itfnum()620 if (ioc_data.dev_num < 0 || ioc_data.dev_num >= MAX_LEC_ITF) in atm_mpoa_vcc_attach()623 mpc = find_mpc_by_itfnum(ioc_data.dev_num); in atm_mpoa_vcc_attach()819 mpc->dev_num = arg; in atm_mpoa_mpoad_attach()1030 mpc->dev_num = priv->itfnum; in mpoa_event_listener()
148 seq_printf(m, "\nInterface %d:\n\n", mpc->dev_num); in mpc_show()
698 if (ioc_data.dev_num < 0 || ioc_data.dev_num >= MAX_LEC_ITF || in lec_vcc_attach()699 !dev_lec[ioc_data.dev_num]) in lec_vcc_attach()708 lec_vcc_added(netdev_priv(dev_lec[ioc_data.dev_num]), in lec_vcc_attach()710 vcc->proto_data = dev_lec[ioc_data.dev_num]; in lec_vcc_attach()
1450 __u16 dev_num; in hci_get_dev_list() local1452 if (get_user(dev_num, (__u16 __user *) arg)) in hci_get_dev_list()1455 if (!dev_num || dev_num > (PAGE_SIZE * 2) / sizeof(*dr)) in hci_get_dev_list()1458 size = sizeof(*dl) + dev_num * sizeof(*dr); in hci_get_dev_list()1477 if (++n >= dev_num) in hci_get_dev_list()1482 dl->dev_num = n; in hci_get_dev_list()