Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/drivers/irqchip/
Dirq-crossbar.c45 static struct crossbar_device *cb; variable
49 writel(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writel()
54 writew(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writew()
59 writeb(cb_no, cb->crossbar_base + cb->register_offsets[irq_no]); in crossbar_writeb()
66 for (i = cb->int_max - 1; i >= 0; i--) in get_prev_map_irq()
67 if (cb->irq_map[i] == cb_no) in get_prev_map_irq()
77 for (i = cb->int_max - 1; i >= 0; i--) { in allocate_free_irq()
78 if (cb->irq_map[i] == IRQ_FREE) { in allocate_free_irq()
79 cb->irq_map[i] = cb_no; in allocate_free_irq()
92 cb_no = cb->irq_map[hw - GIC_IRQ_START]; in needs_crossbar_write()
[all …]
/drivers/net/phy/
Dmdio-mux.c45 struct mdio_mux_child_bus *cb = bus->priv; in mdio_mux_read() local
46 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_read()
56 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read()
60 pb->current_child = cb->bus_number; in mdio_mux_read()
75 struct mdio_mux_child_bus *cb = bus->priv; in mdio_mux_write() local
76 struct mdio_mux_parent_bus *pb = cb->parent; in mdio_mux_write()
81 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write()
85 pb->current_child = cb->bus_number; in mdio_mux_write()
106 struct mdio_mux_child_bus *cb; in mdio_mux_init() local
142 cb = devm_kzalloc(dev, sizeof(*cb), GFP_KERNEL); in mdio_mux_init()
[all …]
/drivers/mfd/
Dlm3533-ctrlbank.c33 static inline u8 lm3533_ctrlbank_get_reg(struct lm3533_ctrlbank *cb, u8 base) in lm3533_ctrlbank_get_reg() argument
35 return base + cb->id; in lm3533_ctrlbank_get_reg()
38 int lm3533_ctrlbank_enable(struct lm3533_ctrlbank *cb) in lm3533_ctrlbank_enable() argument
43 dev_dbg(cb->dev, "%s - %d\n", __func__, cb->id); in lm3533_ctrlbank_enable()
45 mask = 1 << cb->id; in lm3533_ctrlbank_enable()
46 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE, in lm3533_ctrlbank_enable()
49 dev_err(cb->dev, "failed to enable ctrlbank %d\n", cb->id); in lm3533_ctrlbank_enable()
55 int lm3533_ctrlbank_disable(struct lm3533_ctrlbank *cb) in lm3533_ctrlbank_disable() argument
60 dev_dbg(cb->dev, "%s - %d\n", __func__, cb->id); in lm3533_ctrlbank_disable()
62 mask = 1 << cb->id; in lm3533_ctrlbank_disable()
[all …]
/drivers/misc/mei/
Dinterrupt.c41 struct mei_cl_cb *cb, *next; in mei_irq_compl_handler() local
44 list_for_each_entry_safe(cb, next, &compl_list->list, list) { in mei_irq_compl_handler()
45 cl = cb->cl; in mei_irq_compl_handler()
46 list_del(&cb->list); in mei_irq_compl_handler()
52 mei_amthif_complete(dev, cb); in mei_irq_compl_handler()
54 mei_cl_complete(cl, cb); in mei_irq_compl_handler()
103 struct mei_cl_cb *cb, *next; in mei_cl_irq_read_msg() local
106 list_for_each_entry_safe(cb, next, &dev->read_list.list, list) { in mei_cl_irq_read_msg()
107 cl = cb->cl; in mei_cl_irq_read_msg()
113 if (cb->response_buffer.size == 0 || in mei_cl_irq_read_msg()
[all …]
Dclient.c144 struct mei_cl_cb *cb; in __mei_io_list_flush() local
148 list_for_each_entry_safe(cb, next, &list->list, list) { in __mei_io_list_flush()
149 if (!cl || (cb->cl && mei_cl_cmp_id(cl, cb->cl))) { in __mei_io_list_flush()
150 list_del(&cb->list); in __mei_io_list_flush()
152 mei_io_cb_free(cb); in __mei_io_list_flush()
185 void mei_io_cb_free(struct mei_cl_cb *cb) in mei_io_cb_free() argument
187 if (cb == NULL) in mei_io_cb_free()
190 kfree(cb->request_buffer.data); in mei_io_cb_free()
191 kfree(cb->response_buffer.data); in mei_io_cb_free()
192 kfree(cb); in mei_io_cb_free()
[all …]
Damthif.c131 struct mei_cl_cb *cb; in mei_amthif_find_read_list_entry() local
133 list_for_each_entry(cb, &dev->amthif_rd_complete_list.list, list) in mei_amthif_find_read_list_entry()
134 if (cb->file_object == file) in mei_amthif_find_read_list_entry()
135 return cb; in mei_amthif_find_read_list_entry()
160 struct mei_cl_cb *cb; in mei_amthif_read() local
172 cb = mei_amthif_find_read_list_entry(dev, file); in mei_amthif_read()
175 if (cb == NULL && file->f_flags & O_NONBLOCK) in mei_amthif_read()
180 while (cb == NULL) { in mei_amthif_read()
185 (cb = mei_amthif_find_read_list_entry(dev, file))); in mei_amthif_read()
200 if (cb) { in mei_amthif_read()
[all …]
Dbus.c232 struct mei_cl_cb *cb; in ___mei_cl_send() local
251 cb = mei_io_cb_init(cl, NULL); in ___mei_cl_send()
252 if (!cb) in ___mei_cl_send()
255 rets = mei_io_cb_alloc_req_buf(cb, length); in ___mei_cl_send()
257 mei_io_cb_free(cb); in ___mei_cl_send()
261 memcpy(cb->request_buffer.data, buf, length); in ___mei_cl_send()
265 rets = mei_cl_write(cl, cb, blocking); in ___mei_cl_send()
269 mei_io_cb_free(cb); in ___mei_cl_send()
277 struct mei_cl_cb *cb; in __mei_cl_recv() local
313 cb = cl->read_cb; in __mei_cl_recv()
[all …]
Dmain.c104 struct mei_cl_cb *cb; in mei_release() local
130 cb = NULL; in mei_release()
132 cb = mei_cl_find_read_cb(cl); in mei_release()
134 if (cb) in mei_release()
135 list_del(&cb->list); in mei_release()
137 cb = cl->read_cb; in mei_release()
143 mei_io_cb_free(cb); in mei_release()
167 struct mei_cl_cb *cb = NULL; in mei_read() local
196 cb = cl->read_cb; in mei_read()
198 if (cb->buf_idx > *offset) in mei_read()
[all …]
/drivers/misc/sgi-gru/
Dgru_instructions.h22 extern int gru_check_status_proc(void *cb);
23 extern int gru_wait_proc(void *cb);
24 extern void gru_wait_abort_proc(void *cb);
79 unsigned long cb; member
359 static inline void gru_vload_phys(void *cb, unsigned long gpa, in gru_vload_phys() argument
362 struct gru_instruction *ins = (struct gru_instruction *)cb; in gru_vload_phys()
371 static inline void gru_vstore_phys(void *cb, unsigned long gpa, in gru_vstore_phys() argument
374 struct gru_instruction *ins = (struct gru_instruction *)cb; in gru_vstore_phys()
383 static inline void gru_vload(void *cb, unsigned long mem_addr, in gru_vload() argument
387 struct gru_instruction *ins = (struct gru_instruction *)cb; in gru_vload()
[all …]
Dgrukservices.c262 static int gru_get_cpu_resources(int dsr_bytes, void **cb, void **dsr) in gru_get_cpu_resources() argument
271 *cb = bs->kernel_cb + lcpu * GRU_HANDLE_STRIDE; in gru_get_cpu_resources()
279 static void gru_free_cpu_resources(void *cb, void *dsr) in gru_free_cpu_resources() argument
366 void gru_lock_async_resource(unsigned long han, void **cb, void **dsr) in gru_lock_async_resource() argument
374 if (cb) in gru_lock_async_resource()
375 *cb = bs->kernel_cb + ncpus * GRU_HANDLE_STRIDE; in gru_lock_async_resource()
394 int gru_get_cb_exception_detail(void *cb, in gru_get_cb_exception_detail() argument
413 off = cb - kgts->ts_gru->gs_gru_base_vaddr; in gru_get_cb_exception_detail()
419 cbrnum = thread_cbr_number(kgts, get_cb_number(cb)); in gru_get_cb_exception_detail()
420 cbe = get_cbe(GRUBASE(cb), cbrnum); in gru_get_cb_exception_detail()
[all …]
/drivers/net/wireless/mwifiex/
Dutil.h38 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb; in MWIFIEX_SKB_RXCB() local
40 BUILD_BUG_ON(sizeof(struct mwifiex_cb) > sizeof(skb->cb)); in MWIFIEX_SKB_RXCB()
41 return &cb->rx_info; in MWIFIEX_SKB_RXCB()
46 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb; in MWIFIEX_SKB_TXCB() local
48 return &cb->tx_info; in MWIFIEX_SKB_TXCB()
54 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb; in mwifiex_store_mapping() local
56 memcpy(&cb->dma_mapping, mapping, sizeof(*mapping)); in mwifiex_store_mapping()
62 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb; in mwifiex_get_mapping() local
64 memcpy(mapping, &cb->dma_mapping, sizeof(*mapping)); in mwifiex_get_mapping()
/drivers/s390/net/
Dsmsgiucv.c72 struct smsg_callback *cb; in smsg_message_pending() local
95 list_for_each_entry(cb, &smsg_list, list) in smsg_message_pending()
96 if (strncmp(buffer + 8, cb->prefix, cb->len) == 0) { in smsg_message_pending()
97 cb->callback(sender, buffer + 8); in smsg_message_pending()
108 struct smsg_callback *cb; in smsg_register_callback() local
110 cb = kmalloc(sizeof(struct smsg_callback), GFP_KERNEL); in smsg_register_callback()
111 if (!cb) in smsg_register_callback()
113 cb->prefix = prefix; in smsg_register_callback()
114 cb->len = strlen(prefix); in smsg_register_callback()
115 cb->callback = callback; in smsg_register_callback()
[all …]
/drivers/isdn/gigaset/
Dser-gigaset.c108 struct cmdbuf_t *cb, *tcb; in send_cb() local
115 cb = cs->cmdbuf; in send_cb()
116 if (!cb) in send_cb()
119 if (cb->len) { in send_cb()
121 sent = tty->ops->write(tty, cb->buf + cb->offset, cb->len); in send_cb()
128 cb->offset += sent; in send_cb()
129 cb->len -= sent; in send_cb()
131 sent, cb->len, cs->cmdbytes); in send_cb()
134 while (cb && !cb->len) { in send_cb()
137 tcb = cb; in send_cb()
[all …]
Dusb-gigaset.c296 static int send_cb(struct cardstate *cs, struct cmdbuf_t *cb);
306 struct cmdbuf_t *cb; in gigaset_modem_fill() local
319 cb = cs->cmdbuf; in gigaset_modem_fill()
320 if (cb) { /* commands to send? */ in gigaset_modem_fill()
322 if (send_cb(cs, cb) < 0) { in gigaset_modem_fill()
432 static int send_cb(struct cardstate *cs, struct cmdbuf_t *cb) in send_cb() argument
441 if (!cb->len) { in send_cb()
442 tcb = cb; in send_cb()
448 cs->cmdbuf = cb = cb->next; in send_cb()
449 if (cb) { in send_cb()
[all …]
/drivers/infiniband/hw/nes/
Dnes_mgt.c54 struct nes_rskb_cb *cb; in nes_replenish_mgt_rq() local
81 cb = (struct nes_rskb_cb *)&skb->cb[0]; in nes_replenish_mgt_rq()
82 cb->busaddr = bus_address; in nes_replenish_mgt_rq()
83 cb->maplen = mgtvnic->nesvnic->max_frame_size; in nes_replenish_mgt_rq()
139 struct nes_rskb_cb *cb; in nes_mgt_free_skb() local
141 cb = (struct nes_rskb_cb *)&skb->cb[0]; in nes_mgt_free_skb()
142 pci_unmap_single(nesdev->pcidev, cb->busaddr, cb->maplen, dir); in nes_mgt_free_skb()
143 cb->busaddr = 0; in nes_mgt_free_skb()
176 struct nes_rskb_cb *cb = (struct nes_rskb_cb *)&skb->cb[0]; in nes_get_seq() local
177 struct iphdr *iph = (struct iphdr *)(cb->data_start + ETH_HLEN); in nes_get_seq()
[all …]
/drivers/media/tuners/
Dtuner-simple.c260 unsigned *frequency, u8 *config, u8 *cb) in simple_config_lookup() argument
276 *cb = t_params->ranges[i].cb; in simple_config_lookup()
281 i, *config, *cb); in simple_config_lookup()
289 u8 *config, u8 *cb, unsigned int rf) in simple_set_rf_input() argument
297 *cb |= 0x08; in simple_set_rf_input()
300 *cb &= ~0x08; in simple_set_rf_input()
307 *cb |= 0x01; in simple_set_rf_input()
310 *cb &= ~0x01; in simple_set_rf_input()
321 u8 *config, u8 *cb) in simple_std_setup() argument
332 *cb &= ~0x03; in simple_std_setup()
[all …]
/drivers/dma-buf/
Dfence.c239 int fence_add_callback(struct fence *fence, struct fence_cb *cb, in fence_add_callback() argument
250 INIT_LIST_HEAD(&cb->node); in fence_add_callback()
270 cb->func = func; in fence_add_callback()
271 list_add_tail(&cb->node, &fence->cb_list); in fence_add_callback()
273 INIT_LIST_HEAD(&cb->node); in fence_add_callback()
296 fence_remove_callback(struct fence *fence, struct fence_cb *cb) in fence_remove_callback() argument
303 ret = !list_empty(&cb->node); in fence_remove_callback()
305 list_del_init(&cb->node); in fence_remove_callback()
323 fence_default_wait_cb(struct fence *fence, struct fence_cb *cb) in fence_default_wait_cb() argument
326 container_of(cb, struct default_wait_cb, base); in fence_default_wait_cb()
[all …]
/drivers/media/mmc/siano/
Dsmssdio.c132 struct smscore_buffer_t *cb; in smssdio_interrupt() local
149 cb = smscore_getbuffer(smsdev->coredev); in smssdio_interrupt()
150 if (!cb) { in smssdio_interrupt()
156 cb->p, in smssdio_interrupt()
164 hdr = cb->p; in smssdio_interrupt()
167 smsdev->split_cb = cb; in smssdio_interrupt()
176 cb = smsdev->split_cb; in smssdio_interrupt()
177 hdr = cb->p; in smssdio_interrupt()
187 buffer = cb->p + (hdr->msg_length - size); in smssdio_interrupt()
200 smscore_putbuffer(smsdev->coredev, cb); in smssdio_interrupt()
[all …]
/drivers/misc/
Denclosure.c125 struct enclosure_component_callbacks *cb) in enclosure_register() argument
133 BUG_ON(!cb); in enclosure_register()
142 edev->cb = cb; in enclosure_register()
184 edev->cb = &enclosure_null_callbacks; in enclosure_unregister()
426 if (edev->cb->get_fault) in get_component_fault()
427 edev->cb->get_fault(edev, ecomp); in get_component_fault()
439 if (edev->cb->set_fault) in set_component_fault()
440 edev->cb->set_fault(edev, ecomp, val); in set_component_fault()
450 if (edev->cb->get_status) in get_component_status()
451 edev->cb->get_status(edev, ecomp); in get_component_status()
[all …]
/drivers/video/backlight/
Dlm3533_bl.c32 struct lm3533_ctrlbank cb; member
53 return lm3533_ctrlbank_set_brightness(&bl->cb, (u8)brightness); in lm3533_bl_update_status()
62 ret = lm3533_ctrlbank_get_brightness(&bl->cb, &val); in lm3533_bl_get_brightness()
199 ret = lm3533_ctrlbank_get_pwm(&bl->cb, &val); in show_pwm()
217 ret = lm3533_ctrlbank_set_pwm(&bl->cb, val); in store_pwm()
265 ret = lm3533_ctrlbank_set_max_current(&bl->cb, pdata->max_current); in lm3533_bl_setup()
269 return lm3533_ctrlbank_set_pwm(&bl->cb, pdata->pwm); in lm3533_bl_setup()
305 bl->cb.lm3533 = lm3533; in lm3533_bl_probe()
306 bl->cb.id = lm3533_bl_get_ctrlbank_id(bl); in lm3533_bl_probe()
307 bl->cb.dev = NULL; /* until registered */ in lm3533_bl_probe()
[all …]
/drivers/net/ethernet/intel/
De100.c502 struct cb { struct
524 struct cb *next, *prev; argument
584 struct cb *cbs;
585 struct cb *cb_to_use;
586 struct cb *cb_to_send;
587 struct cb *cb_to_clean;
873 int (*cb_prepare)(struct nic *, struct cb *, struct sk_buff *)) in e100_exec_cb() argument
875 struct cb *cb; in e100_exec_cb() local
886 cb = nic->cb_to_use; in e100_exec_cb()
887 nic->cb_to_use = cb->next; in e100_exec_cb()
[all …]
/drivers/infiniband/core/
Diwpm_msg.c348 int iwpm_register_pid_cb(struct sk_buff *skb, struct netlink_callback *cb) in iwpm_register_pid_cb() argument
359 if (iwpm_parse_nlmsg(cb, IWPM_NLA_RREG_PID_MAX, in iwpm_register_pid_cb()
386 iwpm_user_pid = cb->nlh->nlmsg_pid; in iwpm_register_pid_cb()
387 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_register_pid_cb()
414 int iwpm_add_mapping_cb(struct sk_buff *skb, struct netlink_callback *cb) in iwpm_add_mapping_cb() argument
425 if (iwpm_parse_nlmsg(cb, IWPM_NLA_RMANAGE_MAPPING_MAX, in iwpm_add_mapping_cb()
429 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_add_mapping_cb()
486 struct netlink_callback *cb) in iwpm_add_and_query_mapping_cb() argument
498 if (iwpm_parse_nlmsg(cb, IWPM_NLA_RQUERY_MAPPING_MAX, in iwpm_add_and_query_mapping_cb()
501 atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq); in iwpm_add_and_query_mapping_cb()
[all …]
/drivers/net/wireless/prism54/
Dislpci_mgt.c110 isl38xx_control_block *cb = /* volatile not needed */ in islpci_mgmt_rx_fill() local
112 u32 curr = le32_to_cpu(cb->driver_curr_frag[ISL38XX_CB_RX_MGMTQ]); in islpci_mgmt_rx_fill()
121 isl38xx_fragment *frag = &cb->rx_data_mgmt[index]; in islpci_mgmt_rx_fill()
150 cb->driver_curr_frag[ISL38XX_CB_RX_MGMTQ] = cpu_to_le32(curr); in islpci_mgmt_rx_fill()
167 isl38xx_control_block *cb = in islpci_mgt_transmit() local
228 curr_frag = le32_to_cpu(cb->driver_curr_frag[ISL38XX_CB_TX_MGMTQ]); in islpci_mgt_transmit()
238 frag = &cb->tx_data_mgmt[index]; in islpci_mgt_transmit()
247 cb->driver_curr_frag[ISL38XX_CB_TX_MGMTQ] = cpu_to_le32(curr_frag + 1); in islpci_mgt_transmit()
271 isl38xx_control_block *cb = in islpci_mgt_receive() local
282 curr_frag = le32_to_cpu(cb->device_curr_frag[ISL38XX_CB_RX_MGMTQ]); in islpci_mgt_receive()
[all …]
/drivers/s390/cio/
Dcss.c69 struct cb_data *cb = data; in call_fn_known_sch() local
72 if (cb->set) in call_fn_known_sch()
73 idset_sch_del(cb->set, sch->schid); in call_fn_known_sch()
74 if (cb->fn_known_sch) in call_fn_known_sch()
75 rc = cb->fn_known_sch(sch, cb->data); in call_fn_known_sch()
81 struct cb_data *cb = data; in call_fn_unknown_sch() local
84 if (idset_sch_contains(cb->set, schid)) in call_fn_unknown_sch()
85 rc = cb->fn_unknown_sch(schid, cb->data); in call_fn_unknown_sch()
91 struct cb_data *cb = data; in call_fn_all_sch() local
97 if (cb->fn_known_sch) in call_fn_all_sch()
[all …]
/drivers/dma/
Dvirt-dma.c63 dma_async_tx_callback cb = NULL; in vchan_complete() local
72 cb = vd->tx.callback; in vchan_complete()
77 if (cb) in vchan_complete()
78 cb(cb_data); in vchan_complete()
82 cb = vd->tx.callback; in vchan_complete()
89 if (cb) in vchan_complete()
90 cb(cb_data); in vchan_complete()

12345678910>>...14