/drivers/input/misc/ |
D | gpio_axis.c | 63 struct gpio_event_axis_info *ai = as->info; in gpio_event_update_axis() local 69 for (i = ai->count - 1; i >= 0; i--) in gpio_event_update_axis() 70 state = (state << 1) | gpio_get_value(ai->gpio[i]); in gpio_event_update_axis() 71 pos = ai->map(ai, state); in gpio_event_update_axis() 72 if (ai->flags & GPIOEAF_PRINT_RAW) in gpio_event_update_axis() 74 ai->type, ai->code, state, old_pos, pos); in gpio_event_update_axis() 76 if (ai->type == EV_REL) { in gpio_event_update_axis() 77 change = (ai->decoded_size + pos - old_pos) % in gpio_event_update_axis() 78 ai->decoded_size; in gpio_event_update_axis() 79 if (change > ai->decoded_size / 2) in gpio_event_update_axis() [all …]
|
/drivers/net/wireless/cisco/ |
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); [all …]
|
/drivers/mtd/ubi/ |
D | attach.c | 92 static int self_check_ai(struct ubi_device *ubi, struct ubi_attach_info *ai); 116 static struct ubi_ainf_volume *find_or_add_av(struct ubi_attach_info *ai, in find_or_add_av() argument 121 struct rb_node **p = &ai->volumes.rb_node, *parent = NULL; in find_or_add_av() 153 if (vol_id > ai->highest_vol_id) in find_or_add_av() 154 ai->highest_vol_id = vol_id; in find_or_add_av() 157 rb_insert_color(&av->rb, &ai->volumes); in find_or_add_av() 158 ai->vols_found += 1; in find_or_add_av() 174 static struct ubi_ainf_volume *ubi_find_or_add_av(struct ubi_attach_info *ai, in ubi_find_or_add_av() argument 177 return find_or_add_av(ai, vol_id, AV_FIND_OR_ADD, created); in ubi_find_or_add_av() 191 struct ubi_ainf_peb *ubi_alloc_aeb(struct ubi_attach_info *ai, int pnum, in ubi_alloc_aeb() argument [all …]
|
D | fastmap.c | 145 static int add_aeb(struct ubi_attach_info *ai, struct list_head *list, in add_aeb() argument 150 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_aeb() 158 ai->ec_sum += aeb->ec; in add_aeb() 159 ai->ec_count++; in add_aeb() 161 if (ai->max_ec < aeb->ec) in add_aeb() 162 ai->max_ec = aeb->ec; in add_aeb() 164 if (ai->min_ec > aeb->ec) in add_aeb() 165 ai->min_ec = aeb->ec; in add_aeb() 184 static struct ubi_ainf_volume *add_vol(struct ubi_attach_info *ai, int vol_id, in add_vol() argument 190 av = ubi_add_av(ai, vol_id); in add_vol() [all …]
|
D | vtbl.c | 298 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai, in create_vtbl() argument 315 new_aeb = ubi_early_get_peb(ubi, ai); in create_vtbl() 327 vid_hdr->sqnum = cpu_to_be64(++ai->max_sqnum); in create_vtbl() 343 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); in create_vtbl() 344 ubi_free_aeb(ai, new_aeb); in create_vtbl() 354 list_add(&new_aeb->u.list, &ai->erase); in create_vtbl() 357 ubi_free_aeb(ai, new_aeb); in create_vtbl() 375 struct ubi_attach_info *ai, in process_lvol() argument 451 err = create_vtbl(ubi, ai, 1, leb[0]); in process_lvol() 474 err = create_vtbl(ubi, ai, 0, leb[1]); in process_lvol() [all …]
|
D | ubi.h | 825 struct ubi_ainf_peb *ubi_alloc_aeb(struct ubi_attach_info *ai, int pnum, 827 void ubi_free_aeb(struct ubi_attach_info *ai, struct ubi_ainf_peb *aeb); 828 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, 830 struct ubi_ainf_volume *ubi_add_av(struct ubi_attach_info *ai, int vol_id); 831 struct ubi_ainf_volume *ubi_find_av(const struct ubi_attach_info *ai, 833 void ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av); 835 struct ubi_attach_info *ai); 837 void ubi_destroy_ai(struct ubi_attach_info *ai); 844 int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai); 902 int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai); [all …]
|
D | eba.c | 1386 struct ubi_attach_info *ai) in print_rsvd_warning() argument 1392 if (ai->max_sqnum > (1 << 18)) { in print_rsvd_warning() 1512 int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai) in ubi_eba_init() argument 1526 ubi->global_sqnum = ai->max_sqnum + 1; in ubi_eba_init() 1546 av = ubi_find_av(ai, idx2vol_id(ubi, i)); in ubi_eba_init() 1556 ubi_move_aeb_to_list(av, aeb, &ai->erase); in ubi_eba_init() 1584 print_rsvd_warning(ubi, ai); in ubi_eba_init()
|
D | wl.c | 1579 int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai) argument 1591 ubi->max_ec = ai->max_ec; 1606 list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) { 1616 list_for_each_entry(aeb, &ai->free, u.list) { 1635 ubi_rb_for_each_entry(rb1, av, &ai->volumes, rb) { 1661 list_for_each_entry(aeb, &ai->fastmap, u.list) {
|
/drivers/uwb/ |
D | allocator.c | 24 static void uwb_rsv_fill_column_alloc(struct uwb_rsv_alloc_info *ai) in uwb_rsv_fill_column_alloc() argument 27 unsigned char *bm = ai->bm; in uwb_rsv_fill_column_alloc() 28 struct uwb_rsv_col_info *ci = ai->ci; in uwb_rsv_fill_column_alloc() 54 static void uwb_rsv_fill_row_alloc(struct uwb_rsv_alloc_info *ai) in uwb_rsv_fill_row_alloc() argument 57 unsigned char *bm = ai->bm; in uwb_rsv_fill_row_alloc() 58 struct uwb_rsv_row_info *ri = &ai->ri; in uwb_rsv_fill_row_alloc() 76 ai->safe_allocated_mases++; in uwb_rsv_fill_row_alloc() 78 ai->unsafe_allocated_mases++; in uwb_rsv_fill_row_alloc() 84 ai->total_allocated_mases = ai->safe_allocated_mases + ai->unsafe_allocated_mases; in uwb_rsv_fill_row_alloc() 137 static int uwb_rsv_find_best_column_set(struct uwb_rsv_alloc_info *ai, int interval, in uwb_rsv_find_best_column_set() argument [all …]
|
/drivers/media/dvb-core/ |
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->frequency == 3) 336 printk(" Freq: %d kHz\n",ai->frequency); [all …]
|
D | dvb_filter.h | 243 int dvb_filter_get_ac3info(u8 *mbuf, int count, struct dvb_audio_info *ai, int pr);
|
/drivers/misc/cxl/ |
D | flash.c | 228 struct cxl_adapter_image *ai) in handle_image() argument 237 need_header = (ai->flags & CXL_AI_NEED_HEADER); in handle_image() 248 header->image_length = cpu_to_be64(ai->len_image); in handle_image() 252 len_chunk = ai->len_data; in handle_image() 278 from = (void *) ai->data; in handle_image() 322 struct cxl_adapter_image *ai) in transfer_image() argument 330 &cxl_h_download_adapter_image, ai); in transfer_image() 339 &cxl_h_validate_adapter_image, ai); in transfer_image() 373 struct cxl_adapter_image ai; in ioctl_transfer_image() local 377 if (copy_from_user(&ai, uai, sizeof(struct cxl_adapter_image))) in ioctl_transfer_image() [all …]
|
/drivers/clk/ti/ |
D | dpll3xxx.c | 144 u8 ai; in _omap3_noncore_dpll_lock() local 158 ai = omap3_dpll_autoidle_read(clk); in _omap3_noncore_dpll_lock() 160 if (ai) in _omap3_noncore_dpll_lock() 167 if (ai) in _omap3_noncore_dpll_lock() 190 u8 ai; in _omap3_noncore_dpll_bypass() local 198 ai = omap3_dpll_autoidle_read(clk); in _omap3_noncore_dpll_bypass() 204 if (ai) in _omap3_noncore_dpll_bypass() 221 u8 ai; in _omap3_noncore_dpll_stop() local 228 ai = omap3_dpll_autoidle_read(clk); in _omap3_noncore_dpll_stop() 232 if (ai) in _omap3_noncore_dpll_stop() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs.c | 41 struct mlx5e_l2_rule *ai, int type); 43 struct mlx5e_l2_rule *ai); 67 struct mlx5e_l2_rule ai; member 82 if (ether_addr_equal_64bits(hn->ai.addr, addr)) { in mlx5e_add_l2_to_hash() 96 ether_addr_copy(hn->ai.addr, addr); in mlx5e_add_l2_to_hash() 336 mlx5e_add_l2_flow_rule(priv, &hn->ai, MLX5E_FULLMATCH); in mlx5e_execute_l2_action() 341 mlx5e_del_l2_flow_rule(priv, &hn->ai); in mlx5e_execute_l2_action() 385 if (ether_addr_equal(ndev->dev_addr, hn->ai.addr)) in mlx5e_fill_addr_array() 389 ether_addr_copy(addr_array[i++], hn->ai.addr); in mlx5e_fill_addr_array() 801 struct mlx5e_l2_rule *ai) in mlx5e_del_l2_flow_rule() argument [all …]
|
/drivers/cdrom/ |
D | cdrom.c | 1641 static int dvd_do_auth(struct cdrom_device_info *cdi, dvd_authinfo *ai) in dvd_do_auth() argument 1652 switch (ai->type) { in dvd_do_auth() 1657 setup_report_key(&cgc, ai->lsa.agid, 0); in dvd_do_auth() 1662 ai->lsa.agid = buf[7] >> 6; in dvd_do_auth() 1668 setup_report_key(&cgc, ai->lsk.agid, 2); in dvd_do_auth() 1673 copy_key(ai->lsk.key, &buf[4]); in dvd_do_auth() 1679 setup_report_key(&cgc, ai->lsc.agid, 1); in dvd_do_auth() 1684 copy_chal(ai->lsc.chal, &buf[4]); in dvd_do_auth() 1692 setup_report_key(&cgc, ai->lstk.agid, 4); in dvd_do_auth() 1693 cgc.cmd[5] = ai->lstk.lba; in dvd_do_auth() [all …]
|
/drivers/media/pci/ttpci/ |
D | av7110_ipack.c | 47 struct dvb_audio_info ai; in send_ipack() local 64 ai.off = 0; in send_ipack() 69 p->count - ac3_off, &ai, 0); in send_ipack() 72 ai.framesize + 1; in send_ipack() 76 ac3_off += nframes * ai.framesize - p->count; in send_ipack()
|
/drivers/s390/virtio/ |
D | virtio_ccw.c | 188 unsigned long ai; in virtio_airq_handler() local 193 for (ai = 0;;) { in virtio_airq_handler() 194 ai = airq_iv_scan(info->aiv, ai, airq_iv_end(info->aiv)); in virtio_airq_handler() 195 if (ai == -1UL) in virtio_airq_handler() 197 vring_interrupt(0, (void *)airq_iv_get_ptr(info->aiv, ai)); in virtio_airq_handler() 202 for (ai = 0;;) { in virtio_airq_handler() 203 ai = airq_iv_scan(info->aiv, ai, airq_iv_end(info->aiv)); in virtio_airq_handler() 204 if (ai == -1UL) in virtio_airq_handler() 206 vring_interrupt(0, (void *)airq_iv_get_ptr(info->aiv, ai)); in virtio_airq_handler()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_hw.c | 196 static void mi1_init(struct adapter *adap, const struct adapter_info *ai) in mi1_init() argument 3560 const struct adapter_info *ai) in early_hw_init() argument 3564 mi1_init(adapter, ai); in early_hw_init() 3568 ai->gpio_out | F_GPIO0_OEN | F_GPIO0_OUT_VAL); in early_hw_init() 3655 int t3_prep_adapter(struct adapter *adapter, const struct adapter_info *ai, in t3_prep_adapter() argument 3663 adapter->params.info = ai; in t3_prep_adapter() 3664 adapter->params.nports = ai->nports0 + ai->nports1; in t3_prep_adapter() 3665 adapter->params.chan_map = (!!ai->nports0) | (!!ai->nports1 << 1); in t3_prep_adapter() 3725 early_hw_init(adapter, ai); in t3_prep_adapter() 3746 ret = pti->phy_prep(&p->phy, adapter, ai->phy_base_addr + j, in t3_prep_adapter() [all …]
|
D | cxgb3_main.c | 3112 static void print_port_info(struct adapter *adap, const struct adapter_info *ai) in print_port_info() argument 3137 ai->desc, pi->phy.desc, in print_port_info() 3182 const struct adapter_info *ai; in init_one() local 3227 ai = t3_get_adapter_info(ent->driver_data); in init_one() 3269 for (i = 0; i < ai->nports0 + ai->nports1; ++i) { in init_one() 3301 if (t3_prep_adapter(adapter, ai, 1) < 0) { in init_one() 3356 print_port_info(adapter, ai); in init_one() 3361 for (i = ai->nports0 + ai->nports1 - 1; i >= 0; --i) in init_one()
|
D | common.h | 692 int t3_prep_adapter(struct adapter *adapter, const struct adapter_info *ai,
|
/drivers/isdn/hisax/ |
D | l3dss1.c | 1048 EncodeSyncParams(u_char si2, u_char ai) in EncodeSyncParams() argument 1053 return ai + 2; // 1200 bit/s in EncodeSyncParams() 1056 return ai + 24; // 1200/75 bit/s in EncodeSyncParams() 1059 return ai + 23; // 75/1200 bit/s in EncodeSyncParams() 1062 return ai + 3; // 2400 bit/s in EncodeSyncParams() 1065 return ai + 5; // 4800 bit/s in EncodeSyncParams() 1068 return ai + 8; // 9600 bit/s in EncodeSyncParams() 1071 return ai + 9; // 14400 bit/s in EncodeSyncParams() 1074 return ai + 11; // 19200 bit/s in EncodeSyncParams() 1077 return ai + 14; // 48000 bit/s in EncodeSyncParams() [all …]
|
D | l3ni1.c | 998 EncodeSyncParams(u_char si2, u_char ai) in EncodeSyncParams() argument 1003 return ai + 2; // 1200 bit/s in EncodeSyncParams() 1006 return ai + 24; // 1200/75 bit/s in EncodeSyncParams() 1009 return ai + 23; // 75/1200 bit/s in EncodeSyncParams() 1012 return ai + 3; // 2400 bit/s in EncodeSyncParams() 1015 return ai + 5; // 4800 bit/s in EncodeSyncParams() 1018 return ai + 8; // 9600 bit/s in EncodeSyncParams() 1021 return ai + 9; // 14400 bit/s in EncodeSyncParams() 1024 return ai + 11; // 19200 bit/s in EncodeSyncParams() 1027 return ai + 14; // 48000 bit/s in EncodeSyncParams() [all …]
|
/drivers/net/ethernet/marvell/ |
D | mvpp2.c | 1667 unsigned short tpid, int ai) in mvpp2_prs_vlan_find() argument 1703 if (ai != ai_bits) in mvpp2_prs_vlan_find() 1716 static int mvpp2_prs_vlan_add(struct mvpp2 *priv, unsigned short tpid, int ai, in mvpp2_prs_vlan_add() argument 1723 pe = mvpp2_prs_vlan_find(priv, tpid, ai); in mvpp2_prs_vlan_add() 1771 if (ai == MVPP2_PRS_SINGLE_VLAN_AI) { in mvpp2_prs_vlan_add() 1775 ai |= MVPP2_PRS_DBL_VLAN_AI_BIT; in mvpp2_prs_vlan_add() 1779 mvpp2_prs_tcam_ai_update(pe, ai, MVPP2_PRS_SRAM_AI_MASK); in mvpp2_prs_vlan_add() 1854 int tid_aux, tid, ai, ret = 0; in mvpp2_prs_double_vlan_add() local 1870 ai = mvpp2_prs_double_vlan_ai_free_get(priv); in mvpp2_prs_double_vlan_add() 1871 if (ai < 0) { in mvpp2_prs_double_vlan_add() [all …]
|
/drivers/crypto/chelsio/ |
D | chcr_algo.c | 1446 struct crypto_alg ai; in chcr_register_alg() local 1487 ai = driver_algs[i].alg.hash.halg.base; in chcr_register_alg() 1488 name = ai.cra_driver_name; in chcr_register_alg()
|
/drivers/isdn/hardware/eicon/ |
D | message.c | 1200 API_PARSE *ai; in connect_req() local 1243 ai = &parms[9]; in connect_req() 1248 if (ai->length) in connect_req() 1251 if (!api_parse(&ai->info[1], (word)ai->length, "ssss", ai_parms)) in connect_req() 1416 API_PARSE *ai; in connect_res() local 1427 ai = &parms[5]; in connect_res() 1428 dbug(1, dprintf("ai->length=%d", ai->length)); in connect_res() 1430 if (ai->length) in connect_res() 1432 if (!api_parse(&ai->info[1], (word)ai->length, "ssss", ai_parms)) in connect_res() 1711 API_PARSE *ai; in info_req() local [all …]
|