Searched refs:tb (Results 1 - 25 of 32) sorted by relevance

12

/drivers/net/wireless/wl12xx/
H A Dtestmode.c73 static int wl1271_tm_cmd_test(struct wl1271 *wl, struct nlattr *tb[]) argument
82 if (!tb[WL1271_TM_ATTR_DATA])
85 buf = nla_data(tb[WL1271_TM_ATTR_DATA]);
86 buf_len = nla_len(tb[WL1271_TM_ATTR_DATA]);
88 if (tb[WL1271_TM_ATTR_ANSWER])
89 answer = nla_get_u8(tb[WL1271_TM_ATTR_ANSWER]);
138 static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[]) argument
147 if (!tb[WL1271_TM_ATTR_IE_ID])
150 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]);
201 static int wl1271_tm_cmd_configure(struct wl1271 *wl, struct nlattr *tb[]) argument
233 wl1271_tm_cmd_set_plt_mode(struct wl1271 *wl, struct nlattr *tb[]) argument
260 wl1271_tm_cmd_recover(struct wl1271 *wl, struct nlattr *tb[]) argument
269 wl12xx_tm_cmd_get_mac(struct wl1271 *wl, struct nlattr *tb[]) argument
318 struct nlattr *tb[WL1271_TM_ATTR_MAX + 1]; local
[all...]
/drivers/net/wireless/ath/ath6kl/
H A Dtestmode.c71 struct nlattr *tb[ATH6KL_TM_ATTR_MAX + 1]; local
75 err = nla_parse(tb, ATH6KL_TM_ATTR_MAX, data, len,
80 if (!tb[ATH6KL_TM_ATTR_CMD])
83 switch (nla_get_u32(tb[ATH6KL_TM_ATTR_CMD])) {
85 if (!tb[ATH6KL_TM_ATTR_DATA])
88 buf = nla_data(tb[ATH6KL_TM_ATTR_DATA]);
89 buf_len = nla_len(tb[ATH6KL_TM_ATTR_DATA]);
/drivers/tty/
H A Dtty_buffer.c253 struct tty_buffer *tb = tty->buf.tail; local
254 /* If there is no space then tb may be NULL */
257 memcpy(tb->char_buf_ptr + tb->used, chars, space);
258 memset(tb->flag_buf_ptr + tb->used, flag, space);
259 tb->used += space;
290 struct tty_buffer *tb = tty->buf.tail; local
291 /* If there is no space then tb may be NULL */
294 memcpy(tb
349 struct tty_buffer *tb = tty->buf.tail; local
379 struct tty_buffer *tb = tty->buf.tail; local
[all...]
/drivers/net/wireless/iwlwifi/
H A Diwl-testmode.c256 * @tb: gnl message fields from the user space
258 static int iwl_testmode_ucode(struct ieee80211_hw *hw, struct nlattr **tb) argument
271 if (!tb[IWL_TM_ATTR_UCODE_CMD_ID] ||
272 !tb[IWL_TM_ATTR_UCODE_CMD_DATA]) {
278 cmd_want_skb = nla_get_flag(tb[IWL_TM_ATTR_UCODE_CMD_SKB]);
282 cmd.id = nla_get_u8(tb[IWL_TM_ATTR_UCODE_CMD_ID]);
283 cmd.data[0] = nla_data(tb[IWL_TM_ATTR_UCODE_CMD_DATA]);
284 cmd.len[0] = nla_len(tb[IWL_TM_ATTR_UCODE_CMD_DATA]);
342 * @tb: gnl message fields from the user space
344 static int iwl_testmode_reg(struct ieee80211_hw *hw, struct nlattr **tb) argument
461 iwl_testmode_driver(struct ieee80211_hw *hw, struct nlattr **tb) argument
637 iwl_testmode_trace(struct ieee80211_hw *hw, struct nlattr **tb) argument
756 iwl_testmode_ownership(struct ieee80211_hw *hw, struct nlattr **tb) argument
873 iwl_testmode_indirect_mem(struct ieee80211_hw *hw, struct nlattr **tb) argument
938 iwl_testmode_notifications(struct ieee80211_hw *hw, struct nlattr **tb) argument
974 struct nlattr *tb[IWL_TM_ATTR_MAX]; local
1057 struct nlattr *tb[IWL_TM_ATTR_MAX]; local
[all...]
H A Diwl-trans-pcie-tx.c177 struct iwl_tfd_tb *tb = &tfd->tbs[idx]; local
179 dma_addr_t addr = get_unaligned_le32(&tb->lo);
182 ((dma_addr_t)(le16_to_cpu(tb->hi_n_len) & 0xF) << 16) << 16;
189 struct iwl_tfd_tb *tb = &tfd->tbs[idx]; local
191 return le16_to_cpu(tb->hi_n_len) >> 4;
197 struct iwl_tfd_tb *tb = &tfd->tbs[idx]; local
200 put_unaligned_le32(addr, &tb->lo);
204 tb->hi_n_len = cpu_to_le16(hi_n_len);
/drivers/net/
H A Ddummy.c142 static int dummy_validate(struct nlattr *tb[], struct nlattr *data[]) argument
144 if (tb[IFLA_ADDRESS]) {
145 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN)
147 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
H A Dveth.c280 static int veth_validate(struct nlattr *tb[], struct nlattr *data[]) argument
282 if (tb[IFLA_ADDRESS]) {
283 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN)
285 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
288 if (tb[IFLA_MTU]) {
289 if (!is_valid_veth_mtu(nla_get_u32(tb[IFLA_MTU])))
298 struct nlattr *tb[], struct nlattr *data[])
330 tbp = tb;
370 if (tb[IFLA_ADDRESS] == NULL)
373 if (tb[IFLA_IFNAM
297 veth_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument
[all...]
H A Difb.c242 static int ifb_validate(struct nlattr *tb[], struct nlattr *data[]) argument
244 if (tb[IFLA_ADDRESS]) {
245 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN)
247 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
H A Dmacvlan.c636 static int macvlan_validate(struct nlattr *tb[], struct nlattr *data[]) argument
638 if (tb[IFLA_ADDRESS]) {
639 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN)
641 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
660 struct nlattr *tb[], struct nlattr *data[],
670 if (!tb[IFLA_LINK])
673 lowerdev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK]));
685 if (!tb[IFLA_MTU])
690 if (!tb[IFLA_ADDRESS])
741 struct nlattr *tb[], struc
659 macvlan_common_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], int (*receive)(struct sk_buff *skb), int (*forward)(struct net_device *dev, struct sk_buff *skb)) argument
740 macvlan_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument
757 macvlan_changelink(struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument
[all...]
H A Dmacvtap.c332 struct nlattr *tb[],
338 return macvlan_common_newlink(src_net, dev, tb, data,
330 macvtap_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument
/drivers/net/fddi/skfp/
H A Dfplustm.c1064 struct s_fpmc *tb ; local
1079 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb++){
1080 if (!tb->n) { /* not used */
1082 slot = tb ;
1085 if (memcmp((char *)&tb->a,(char *)own,6))
1087 return tb;
1105 struct s_fpmc *tb ; local
1110 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb
1148 struct s_fpmc *tb ; local
1201 struct s_fpmc *tb ; local
[all...]
/drivers/net/wireless/rt2x00/
H A Drt2x00usb.c118 unsigned char *tb; local
123 tb = (char *)buffer;
129 requesttype, off, tb,
132 tb += bsize;
/drivers/i2c/busses/
H A Di2c-cpm.c197 u_char *tb; local
208 tb = cpm->txbuf[tx];
214 tb[0] = addr; /* Device address byte w/rw flag */
245 memcpy(tb+1, pmsg->buf, pmsg->len);
257 u_char *tb; local
264 tb = cpm->txbuf[tx];
/drivers/atm/
H A Dambassador.c1815 transfer_block * tb = &lb->payload.transfer; local
1819 tb->address = rec->addr;
1820 tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4);
1821 memcpy(tb->data, rec->data, be16_to_cpu(rec->len));
1830 transfer_block * tb = &lb->payload.transfer; local
1835 tb->address = rec->addr;
1836 tb->count = cpu_to_be32(be16_to_cpu(rec->len) / 4);
1838 if (!res && memcmp(tb->data, rec->data, be16_to_cpu(rec->len)))
/drivers/net/team/
H A Dteam.c1086 struct nlattr *tb[], struct nlattr *data[])
1090 if (tb[IFLA_ADDRESS] == NULL)
1100 static int team_validate(struct nlattr *tb[], struct nlattr *data[]) argument
1102 if (tb[IFLA_ADDRESS]) {
1103 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN)
1105 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
1085 team_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument
/drivers/net/wireless/
H A Dmac80211_hwsim.c1088 struct nlattr *tb[HWSIM_TM_ATTR_MAX + 1]; local
1092 err = nla_parse(tb, HWSIM_TM_ATTR_MAX, data, len,
1097 if (!tb[HWSIM_TM_ATTR_CMD])
1100 switch (nla_get_u32(tb[HWSIM_TM_ATTR_CMD])) {
1102 if (!tb[HWSIM_TM_ATTR_PS])
1104 ps = nla_get_u32(tb[HWSIM_TM_ATTR_PS]);
/drivers/net/can/
H A Ddev.c601 struct nlattr *tb[], struct nlattr *data[])
727 struct nlattr *tb[], struct nlattr *data[])
600 can_changelink(struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument
726 can_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[]) argument
/drivers/scsi/
H A Dmesh.c94 u32 tb; member in struct:dbglog
201 u32 tb; local
205 asm ("mftb %0" : "=r" (tb) : );
207 tb = 0;
209 return tb;
220 tlp->tb = readtb();
254 printk("tb=%10u ", lp->tb);
279 printk("tb=%10u ", lp->tb);
[all...]
H A Dhpsa.c3564 static void print_cfg_table(struct device *dev, struct CfgTable *tb) argument
3573 temp_name[i] = readb(&(tb->Signature[i]));
3576 dev_info(dev, " Spec Number = %d\n", readl(&(tb->SpecValence)));
3578 readl(&(tb->TransportSupport)));
3580 readl(&(tb->TransportActive)));
3582 readl(&(tb->HostWrite.TransportRequest)));
3584 readl(&(tb->HostWrite.CoalIntDelay)));
3586 readl(&(tb->HostWrite.CoalIntCount)));
3588 readl(&(tb->CmdsOutMax)));
3589 dev_info(dev, " Bus Types = 0x%x\n", readl(&(tb
[all...]
H A Dst.c3717 struct st_buffer *tb;
3719 tb = kzalloc(sizeof(struct st_buffer), GFP_ATOMIC);
3720 if (!tb) {
3724 tb->frp_segs = 0;
3725 tb->use_sg = max_sg;
3726 tb->dma = need_dma;
3727 tb->buffer_size = 0;
3729 tb->reserved_pages = kzalloc(max_sg * sizeof(struct page *),
3731 if (!tb->reserved_pages) {
3732 kfree(tb);
3701 struct st_buffer *tb; local
[all...]
H A Dosst.c5306 struct osst_buffer *tb;
5314 tb = kzalloc(i, priority);
5315 if (!tb) {
5320 tb->sg_segs = tb->orig_sg_segs = 0;
5321 tb->use_sg = max_sg;
5322 tb->in_use = 1;
5323 tb->dma = need_dma;
5324 tb->buffer_size = 0;
5331 return tb;
5301 struct osst_buffer *tb; local
[all...]
/drivers/block/
H A Dcciss.c3820 CfgTable_struct *tb = h->cfgtable; local
3825 temp_name[i] = readb(&(tb->Signature[i]));
3829 readl(&(tb->SpecValence)));
3831 readl(&(tb->TransportSupport)));
3833 readl(&(tb->TransportActive)));
3835 readl(&(tb->HostWrite.TransportRequest)));
3837 readl(&(tb->HostWrite.CoalIntDelay)));
3839 readl(&(tb->HostWrite.CoalIntCount)));
3841 readl(&(tb->CmdsOutMax)));
3843 readl(&(tb
[all...]
/drivers/media/dvb/ngene/
H A Dngene-core.c816 struct SRingBufferDescriptor *tb)
819 struct SBufferHeader *Cur = tb->Head;
824 for (j = 0; j < tb->NumBuffers; j++, Cur = Cur->Next) {
814 free_idlebuffer(struct ngene *dev, struct SRingBufferDescriptor *rb, struct SRingBufferDescriptor *tb) argument
/drivers/net/bonding/
H A Dbond_main.c4819 static int bond_validate(struct nlattr *tb[], struct nlattr *data[]) argument
4821 if (tb[IFLA_ADDRESS]) {
4822 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN)
4824 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
4830 static int bond_get_tx_queues(struct net *net, struct nlattr *tb[], argument
/drivers/infiniband/hw/ipath/
H A Dipath_verbs.c731 u64 ta, tb, tc, td, te; local
734 ipath_snapshot_counters(dev->dd, &ta, &tb,
738 dev->ipath_rword = tb - dev->ipath_rword;

Completed in 643 milliseconds

12