/drivers/input/misc/ |
H A D | gpio_axis.c | 63 struct gpio_event_axis_info *ai = as->info; local 69 for (i = ai->count - 1; i >= 0; i--) 70 state = (state << 1) | gpio_get_value(ai->gpio[i]); 71 pos = ai->map(ai, state); 72 if (ai->flags & GPIOEAF_PRINT_RAW) 74 ai->type, ai->code, state, old_pos, pos); 76 if (ai->type == EV_REL) { 77 change = (ai 118 struct gpio_event_axis_info *ai; local [all...] |
/drivers/uwb/ |
H A D | allocator.c | 24 static void uwb_rsv_fill_column_alloc(struct uwb_rsv_alloc_info *ai) argument 27 unsigned char *bm = ai->bm; 28 struct uwb_rsv_col_info *ci = ai->ci; 54 static void uwb_rsv_fill_row_alloc(struct uwb_rsv_alloc_info *ai) argument 57 unsigned char *bm = ai->bm; 58 struct uwb_rsv_row_info *ri = &ai->ri; 76 ai->safe_allocated_mases++; 78 ai->unsafe_allocated_mases++; 84 ai->total_allocated_mases = ai 137 uwb_rsv_find_best_column_set(struct uwb_rsv_alloc_info *ai, int interval, int num_safe_mas, int num_unsafe_mas) argument 204 get_row_descriptors(struct uwb_rsv_alloc_info *ai) argument 260 get_column_descriptors(struct uwb_rsv_alloc_info *ai) argument 271 uwb_rsv_find_best_row_alloc(struct uwb_rsv_alloc_info *ai) argument 289 uwb_rsv_find_best_col_alloc(struct uwb_rsv_alloc_info *ai, int interval) argument 324 struct uwb_rsv_alloc_info *ai; local [all...] |
/drivers/net/wireless/ |
H A D | airo.c | 1108 static int enable_MAC(struct airo_info *ai, int lock); 1109 static void disable_MAC(struct airo_info *ai, int lock); 1132 static void mpi_receive_802_3(struct airo_info *ai); 1133 static void mpi_receive_802_11(struct airo_info *ai); 1134 static int waitbusy (struct airo_info *ai); 1147 static void micinit(struct airo_info *ai); 1148 static int micsetup(struct airo_info *ai); 1149 static int encapsulate(struct airo_info *ai, etherHead *pPacket, MICBuffer *buffer, int len); 1150 static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *pPacket, u16 payLen); 1155 static void airo_networks_free(struct airo_info *ai); 1251 bap_read(struct airo_info *ai, __le16 *pu16Dst, int bytelen, int whichbap) argument 1324 micinit(struct airo_info *ai) argument 1357 micsetup(struct airo_info *ai) argument 1450 decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *eth, u16 payLen) argument 1554 RxSeqValid(struct airo_info *ai,miccntx *context,int mcast,u32 micSeq) argument 1743 readBSSListRid(struct airo_info *ai, int first, BSSListRid *list) argument 1766 readWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int temp, int lock) argument 1772 writeWepKeyRid(struct airo_info *ai, WepKeyRid *wkr, int perm, int lock) argument 1796 readConfigRid(struct airo_info *ai, int lock) argument 1812 checkThrottle(struct airo_info *ai) argument 1825 writeConfigRid(struct airo_info *ai, int lock) argument 1845 readStatusRid(struct airo_info *ai, StatusRid *statr, int lock) argument 1850 readAPListRid(struct airo_info *ai, APListRid *aplr) argument 1855 writeAPListRid(struct airo_info *ai, APListRid *aplr, int lock) argument 1860 readCapabilityRid(struct airo_info *ai, CapabilityRid *capr, int lock) argument 1870 try_auto_wep(struct airo_info *ai) argument 1879 struct airo_info *ai = dev->ml_priv; local 1929 struct airo_info *ai = dev->ml_priv; local 1973 struct airo_info *ai = dev->ml_priv; local 2048 get_tx_error(struct airo_info *ai, s32 fid) argument 2242 struct airo_info *ai = dev->ml_priv; local 2290 airo_set_promisc(struct airo_info *ai) argument 2303 struct airo_info *ai = dev->ml_priv; local 2321 struct airo_info *ai = dev->ml_priv; local 2346 add_airo_dev(struct airo_info *ai) argument 2354 del_airo_dev(struct airo_info *ai) argument 2361 struct airo_info *ai = dev->ml_priv; local 2387 struct airo_info *ai = dev->ml_priv; local 2462 mpi_init_descriptors(struct airo_info *ai) argument 2539 mpi_map_card(struct airo_info *ai, struct pci_dev *pci) argument 2684 init_wifidev(struct airo_info *ai, struct net_device *ethdev) argument 2707 struct airo_info *ai = dev->ml_priv; local 2722 airo_networks_allocate(struct airo_info *ai) argument 2737 airo_networks_free(struct airo_info *ai) argument 2743 airo_networks_initialize(struct airo_info *ai) argument 2784 struct airo_info *ai; local 2949 waitbusy(struct airo_info *ai) argument 2962 struct airo_info *ai = dev->ml_priv; local 2985 struct airo_info *ai = dev->ml_priv; local 3001 airo_process_scan_results(struct airo_info *ai) argument 3062 struct airo_info *ai = dev->ml_priv; local 3172 airo_handle_cisco_mic(struct airo_info *ai) argument 3241 airo_handle_link(struct airo_info *ai) argument 3282 airo_handle_rx(struct airo_info *ai) argument 3423 airo_handle_tx(struct airo_info *ai, u16 status) argument 3481 struct airo_info *ai = dev->ml_priv; local 3543 OUT4500( struct airo_info *ai, u16 reg, u16 val ) argument 3554 IN4500( struct airo_info *ai, u16 reg ) argument 3568 enable_MAC(struct airo_info *ai, int lock) argument 3607 disable_MAC( struct airo_info *ai, int lock ) argument 3633 mpi_receive_802_3(struct airo_info *ai) argument 3703 mpi_receive_802_11(struct airo_info *ai) argument 3789 setup_card(struct airo_info *ai, u8 *mac, int lock) argument 3932 issuecommand(struct airo_info *ai, Cmd *pCmd, Resp *pRsp) argument 3984 bap_setup(struct airo_info *ai, u16 rid, u16 offset, int whichbap ) argument 4022 aux_setup(struct airo_info *ai, u16 page, u16 offset, u16 *len) argument 4036 aux_bap_read(struct airo_info *ai, __le16 *pu16Dst, int bytelen, int whichbap) argument 4073 fast_bap_read(struct airo_info *ai, __le16 *pu16Dst, int bytelen, int whichbap) argument 4085 bap_write(struct airo_info *ai, const __le16 *pu16Src, int bytelen, int whichbap) argument 4097 PC4500_accessrid(struct airo_info *ai, u16 rid, u16 accmd) argument 4116 PC4500_readrid(struct airo_info *ai, u16 rid, void *pBuf, int len, int lock) argument 4181 PC4500_writerid(struct airo_info *ai, u16 rid, const void *pBuf, int len, int lock) argument 4255 transmit_allocate(struct airo_info *ai, int lenPayload, int raw) argument 4313 transmit_802_3_packet(struct airo_info *ai, int len, char *pPacket) argument 4356 transmit_802_11_packet(struct airo_info *ai, int len, char *pPacket) argument 4770 sniffing_mode(struct airo_info *ai) argument 4780 struct airo_info *ai = dev->ml_priv; local 4991 struct airo_info *ai = dev->ml_priv; local 5081 struct airo_info *ai = dev->ml_priv; local 5116 struct airo_info *ai = dev->ml_priv; local 5146 do_writerid( struct airo_info *ai, u16 rid, const void *rid_data, int len, int dummy ) argument 5159 get_wep_key(struct airo_info *ai, u16 index, char *buf, u16 buflen) argument 5182 get_wep_tx_idx(struct airo_info *ai) argument 5202 set_wep_key(struct airo_info *ai, u16 index, const char *key, u16 keylen, int perm, int lock) argument 5225 set_wep_tx_idx(struct airo_info *ai, u16 index, int perm, int lock) argument 5250 struct airo_info *ai = dev->ml_priv; local 5301 struct airo_info *ai = dev->ml_priv; local 5349 struct airo_info *ai = dev->ml_priv; local 5392 struct airo_info *ai = dev->ml_priv; local 5431 struct airo_info *ai = dev->ml_priv; local 5579 struct airo_info *ai = dev->ml_priv; local 5612 struct airo_info *ai = dev->ml_priv; local 5695 struct airo_info *ai; local 6299 valid_index(struct airo_info *ai, int index) argument 7216 struct airo_info *ai = dev->ml_priv; local 7262 struct airo_info *ai = dev->ml_priv; local 7439 struct airo_info *ai = dev->ml_priv; local 7628 struct airo_info *ai = dev->ml_priv; local 7781 struct airo_info *ai = dev->ml_priv; local 7846 struct airo_info *ai = dev->ml_priv; local 8018 cmdreset(struct airo_info *ai) argument 8042 setflashmode(struct airo_info *ai) argument 8069 flashpchar(struct airo_info *ai,int byte,int dwelltime) argument 8109 flashgchar(struct airo_info *ai,int matchbyte,int dwelltime) argument 8140 flashputbuf(struct airo_info *ai) argument 8162 flashrestart(struct airo_info *ai,struct net_device *dev) argument [all...] |
/drivers/mtd/ubi/ |
H A D | attach.c | 92 static int self_check_ai(struct ubi_device *ubi, struct ubi_attach_info *ai); 100 * @ai: attaching information 119 static int add_to_list(struct ubi_attach_info *ai, int pnum, int vol_id, argument 124 if (list == &ai->free) { 126 } else if (list == &ai->erase) { 128 } else if (list == &ai->alien) { 130 ai->alien_peb_count += 1; 134 aeb = kmem_cache_alloc(ai->aeb_slab_cache, GFP_KERNEL); 151 * @ai: attaching information 160 static int add_corrupted(struct ubi_attach_info *ai, in argument 256 add_volume(struct ubi_attach_info *ai, int vol_id, int pnum, const struct ubi_vid_hdr *vid_hdr) argument 447 ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips) argument 603 ubi_find_av(const struct ubi_attach_info *ai, int vol_id) argument 629 ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av) argument 660 early_erase_peb(struct ubi_device *ubi, const struct ubi_attach_info *ai, int pnum, int ec) argument 706 ubi_early_get_peb(struct ubi_device *ubi, struct ubi_attach_info *ai) argument 816 scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, int *vid, unsigned long long *sqnum) argument 1064 late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai) argument 1133 destroy_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av) argument 1163 destroy_ai(struct ubi_attach_info *ai) argument 1224 scan_all(struct ubi_device *ubi, struct ubi_attach_info *ai, int start) argument 1312 scan_fast(struct ubi_device *ubi, struct ubi_attach_info *ai) argument 1363 struct ubi_attach_info *ai; local 1396 struct ubi_attach_info *ai; local 1496 self_check_ai(struct ubi_device *ubi, struct ubi_attach_info *ai) argument [all...] |
H A D | vtbl.c | 293 * @ai: attaching information 300 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai, argument 314 new_aeb = ubi_early_get_peb(ubi, ai); 326 vid_hdr->sqnum = cpu_to_be64(++ai->max_sqnum); 342 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); 343 kmem_cache_free(ai->aeb_slab_cache, new_aeb); 353 list_add(&new_aeb->u.list, &ai->erase); 356 kmem_cache_free(ai->aeb_slab_cache, new_aeb); 366 * @ai: attaching information 374 struct ubi_attach_info *ai, 373 process_lvol(struct ubi_device *ubi, struct ubi_attach_info *ai, struct ubi_ainf_volume *av) argument 496 create_empty_lvol(struct ubi_device *ubi, struct ubi_attach_info *ai) argument 532 init_volumes(struct ubi_device *ubi, const struct ubi_attach_info *ai, const struct ubi_vtbl_record *vtbl) argument 713 check_attaching_info(const struct ubi_device *ubi, struct ubi_attach_info *ai) argument 777 ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai) argument [all...] |
H A D | fastmap.c | 69 * @ai: UBI attach info object 77 static int add_aeb(struct ubi_attach_info *ai, struct list_head *list, argument 82 aeb = kmem_cache_alloc(ai->aeb_slab_cache, GFP_KERNEL); 92 ai->ec_sum += aeb->ec; 93 ai->ec_count++; 95 if (ai->max_ec < aeb->ec) 96 ai->max_ec = aeb->ec; 98 if (ai->min_ec > aeb->ec) 99 ai->min_ec = aeb->ec; 108 * @ai 118 add_vol(struct ubi_attach_info *ai, int vol_id, int used_ebs, int data_pad, u8 vol_type, int last_eb_bytes) argument 164 assign_aeb_to_av(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb, struct ubi_ainf_volume *av) argument 204 update_vol(struct ubi_device *ubi, struct ubi_attach_info *ai, struct ubi_ainf_volume *av, struct ubi_vid_hdr *new_vh, struct ubi_ainf_peb *new_aeb) argument 300 process_pool_aeb(struct ubi_device *ubi, struct ubi_attach_info *ai, struct ubi_vid_hdr *new_vh, struct ubi_ainf_peb *new_aeb) argument 351 unmap_peb(struct ubi_attach_info *ai, int pnum) argument 385 scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, int *pebs, int pool_size, unsigned long long *max_sqnum, struct list_head *eba_orphans, struct list_head *free) argument 513 count_fastmap_pebs(struct ubi_attach_info *ai) argument 542 ubi_attach_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai, struct ubi_fastmap_layout *fm) argument 876 ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai, int fm_anchor) argument [all...] |
H A D | ubi.h | 745 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, 747 struct ubi_ainf_volume *ubi_find_av(const struct ubi_attach_info *ai, 749 void ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av); 751 struct ubi_attach_info *ai); 753 void ubi_destroy_ai(struct ubi_attach_info *ai); 760 int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai); 801 int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai); 812 int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai); 865 int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai,
|
H A D | eba.c | 1193 struct ubi_attach_info *ai) 1199 if (ai->max_sqnum > (1 << 18)) { 1314 * @ai: attaching information 1319 int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai) argument 1333 ubi->global_sqnum = ai->max_sqnum + 1; 1353 av = ubi_find_av(ai, idx2vol_id(ubi, i)); 1363 ubi_move_aeb_to_list(av, aeb, &ai->erase); 1386 print_rsvd_warning(ubi, ai); 1192 print_rsvd_warning(struct ubi_device *ubi, struct ubi_attach_info *ai) argument
|
H A D | wl.c | 1869 * @ai: attaching information 1874 int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai) argument 1886 ubi->max_ec = ai->max_ec; 1903 list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) { 1923 list_for_each_entry(aeb, &ai->free, u.list) { 1943 ubi_rb_for_each_entry(rb1, av, &ai->volumes, rb) {
|
/drivers/media/dvb-core/ |
H A D | dvb_filter.c | 290 static int get_ainfo(u8 *mbuf, int count, struct dvb_audio_info *ai, int pr) 313 ai->layer = (headr[1] & 0x06) >> 1; 316 printk("Audiostream: Layer: %d", 4-ai->layer); 319 ai->bit_rate = bitrates[(3-ai->layer)][(headr[2] >> 4 )]*1000; 322 if (ai->bit_rate == 0) 324 else if (ai->bit_rate == 0xf) 327 printk(" BRate: %d kb/s", ai->bit_rate/1000); 331 ai->frequency = freq[fr]*100; 333 if (ai 345 dvb_filter_get_ac3info(u8 *mbuf, int count, struct dvb_audio_info *ai, int pr) argument [all...] |
H A D | dvb_filter.h | 243 int dvb_filter_get_ac3info(u8 *mbuf, int count, struct dvb_audio_info *ai, int pr);
|
/drivers/media/pci/ttpci/ |
H A D | av7110_ipack.c | 47 struct dvb_audio_info ai; local 64 ai.off = 0; 69 p->count - ac3_off, &ai, 0); 72 ai.framesize + 1; 76 ac3_off += nframes * ai.framesize - p->count;
|
/drivers/cdrom/ |
H A D | cdrom.c | 1640 static int dvd_do_auth(struct cdrom_device_info *cdi, dvd_authinfo *ai) argument 1651 switch (ai->type) { 1656 setup_report_key(&cgc, ai->lsa.agid, 0); 1661 ai->lsa.agid = buf[7] >> 6; 1667 setup_report_key(&cgc, ai->lsk.agid, 2); 1672 copy_key(ai->lsk.key, &buf[4]); 1678 setup_report_key(&cgc, ai->lsc.agid, 1); 1683 copy_chal(ai->lsc.chal, &buf[4]); 1691 setup_report_key(&cgc, ai->lstk.agid, 4); 1692 cgc.cmd[5] = ai 3213 dvd_authinfo ai; local [all...] |
/drivers/s390/kvm/ |
H A D | virtio_ccw.c | 162 unsigned long ai; local 167 for (ai = 0;;) { 168 ai = airq_iv_scan(info->aiv, ai, airq_iv_end(info->aiv)); 169 if (ai == -1UL) 171 vring_interrupt(0, (void *)airq_iv_get_ptr(info->aiv, ai)); 176 for (ai = 0;;) { 177 ai = airq_iv_scan(info->aiv, ai, airq_iv_end(info->aiv)); 178 if (ai [all...] |
/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | t3_hw.c | 196 static void mi1_init(struct adapter *adap, const struct adapter_info *ai) argument 3452 * @ai: information about the current card 3526 const struct adapter_info *ai) 3530 mi1_init(adapter, ai); 3534 ai->gpio_out | F_GPIO0_OEN | F_GPIO0_OUT_VAL); 3621 int t3_prep_adapter(struct adapter *adapter, const struct adapter_info *ai, argument 3629 adapter->params.info = ai; 3630 adapter->params.nports = ai->nports0 + ai->nports1; 3631 adapter->params.chan_map = (!!ai 3525 early_hw_init(struct adapter *adapter, const struct adapter_info *ai) argument 3752 const struct adapter_info *ai = adapter->params.info; local [all...] |
H A D | cxgb3_main.c | 3109 static void print_port_info(struct adapter *adap, const struct adapter_info *ai) argument 3134 ai->desc, pi->phy.desc, 3179 const struct adapter_info *ai; local 3224 ai = t3_get_adapter_info(ent->driver_data); 3266 for (i = 0; i < ai->nports0 + ai->nports1; ++i) { 3298 if (t3_prep_adapter(adapter, ai, 1) < 0) { 3353 print_port_info(adapter, ai); 3358 for (i = ai->nports0 + ai [all...] |
H A D | common.h | 692 int t3_prep_adapter(struct adapter *adapter, const struct adapter_info *ai,
|
/drivers/isdn/hisax/ |
H A D | l3dss1.c | 1048 EncodeSyncParams(u_char si2, u_char ai) argument 1053 return ai + 2; // 1200 bit/s 1056 return ai + 24; // 1200/75 bit/s 1059 return ai + 23; // 75/1200 bit/s 1062 return ai + 3; // 2400 bit/s 1065 return ai + 5; // 4800 bit/s 1068 return ai + 8; // 9600 bit/s 1071 return ai + 9; // 14400 bit/s 1074 return ai + 11; // 19200 bit/s 1077 return ai [all...] |
H A D | l3ni1.c | 998 EncodeSyncParams(u_char si2, u_char ai) argument 1003 return ai + 2; // 1200 bit/s 1006 return ai + 24; // 1200/75 bit/s 1009 return ai + 23; // 75/1200 bit/s 1012 return ai + 3; // 2400 bit/s 1015 return ai + 5; // 4800 bit/s 1018 return ai + 8; // 9600 bit/s 1021 return ai + 9; // 14400 bit/s 1024 return ai + 11; // 19200 bit/s 1027 return ai [all...] |
/drivers/staging/ozwpan/ |
H A D | ozpd.c | 867 const struct oz_app_if *ai = &g_app_if[OZ_APPID_USB]; local 879 if (ai->farewell) 880 ai->farewell(pd, f->ep_num, f->report, f->len);
|
/drivers/net/ethernet/marvell/ |
H A D | mvpp2.c | 1135 /* Update ai bits in tcam sw entry */ 1155 /* Get ai bits from tcam sw entry */ 1210 /* Update ai bits in sram sw entry */ 1231 /* Read ai bits from sram sw entry */ 1548 /* Clear all ai bits for next iteration */ 1618 /* Clear all ai bits for next iteration */ 1641 unsigned short tpid, int ai) 1672 /* Get current ai value from tcam */ 1677 if (ai != ai_bits) 1690 static int mvpp2_prs_vlan_add(struct mvpp2 *priv, unsigned short tpid, int ai, argument 1640 mvpp2_prs_vlan_find(struct mvpp2 *priv, unsigned short tpid, int ai) argument 1828 int tid_aux, tid, ai, ret = 0; local [all...] |
/drivers/isdn/hardware/eicon/ |
H A D | message.c | 1202 API_PARSE *ai; local 1245 ai = &parms[9]; 1250 if (ai->length) 1253 if (!api_parse(&ai->info[1], (word)ai->length, "ssss", ai_parms)) 1418 API_PARSE *ai; local 1429 ai = &parms[5]; 1430 dbug(1, dprintf("ai->length=%d", ai->length)); 1432 if (ai 1713 API_PARSE *ai; local 7447 add_ai(PLCI *plci, API_PARSE *ai) argument [all...] |