• Home
  • Raw
  • Download

Lines Matching refs:index

45 	int index, size;  in ncsi_find_filter()  local
58 index = -1; in ncsi_find_filter()
59 while ((index = find_next_bit(bitmap, ncf->total, index + 1)) in ncsi_find_filter()
61 if (!memcmp(ncf->data + size * index, data, size)) { in ncsi_find_filter()
63 return index; in ncsi_find_filter()
74 int index, size; in ncsi_add_filter() local
82 index = ncsi_find_filter(nc, table, data); in ncsi_add_filter()
83 if (index >= 0) in ncsi_add_filter()
84 return index; in ncsi_add_filter()
93 index = find_next_zero_bit(bitmap, ncf->total, 0); in ncsi_add_filter()
94 if (index >= ncf->total) { in ncsi_add_filter()
98 } while (test_and_set_bit(index, bitmap)); in ncsi_add_filter()
100 memcpy(ncf->data + size * index, data, size); in ncsi_add_filter()
103 return index; in ncsi_add_filter()
106 int ncsi_remove_filter(struct ncsi_channel *nc, int table, int index) in ncsi_remove_filter() argument
118 if (!ncf || index >= ncf->total) in ncsi_remove_filter()
123 if (test_and_clear_bit(index, bitmap)) in ncsi_remove_filter()
124 memset(ncf->data + size * index, 0, size); in ncsi_remove_filter()
279 int index; in ncsi_add_channel() local
294 for (index = 0; index < NCSI_CAP_MAX; index++) in ncsi_add_channel()
295 nc->caps[index].index = index; in ncsi_add_channel()
296 for (index = 0; index < NCSI_MODE_MAX; index++) in ncsi_add_channel()
297 nc->modes[index].index = index; in ncsi_add_channel()
650 unsigned char index; in ncsi_configure_channel() local
708 for (index = 0; index < 6; index++) in ncsi_configure_channel()
709 nca.bytes[index] = dev->dev_addr[index]; in ncsi_configure_channel()
895 unsigned char index; in ncsi_probe_channel() local
910 for (index = 0; index < 8; index++) { in ncsi_probe_channel()
911 nca.package = index; in ncsi_probe_channel()
926 for (index = 0; index < 8; index++) { in ncsi_probe_channel()
927 nca.package = index; in ncsi_probe_channel()
935 for (index = 0; index < 8; index++) { in ncsi_probe_channel()
936 nca.package = index; in ncsi_probe_channel()
991 for (index = 0; index < NCSI_RESERVED_CHANNEL; index++) { in ncsi_probe_channel()
992 nca.channel = index; in ncsi_probe_channel()