Home
last modified time | relevance | path

Searched refs:cmd_head (Results 1 – 4 of 4) sorted by relevance

/drivers/target/
Dtarget_core_user.c243 u32 cmd_head; in is_ring_space_avail() local
248 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in is_ring_space_avail()
254 if (head_to_end(cmd_head, udev->cmdr_size) >= cmd_size) in is_ring_space_avail()
257 cmd_needed = cmd_size + head_to_end(cmd_head, udev->cmdr_size); in is_ring_space_avail()
259 space = spc_free(cmd_head, udev->cmdr_last_cleaned, udev->cmdr_size); in is_ring_space_avail()
261 pr_debug("no cmd space: %u %u %u\n", cmd_head, in is_ring_space_avail()
287 uint32_t cmd_head; in tcmu_queue_cmd_ring() local
311 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in tcmu_queue_cmd_ring()
336 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in tcmu_queue_cmd_ring()
340 if (head_to_end(cmd_head, udev->cmdr_size) < command_size) { in tcmu_queue_cmd_ring()
[all …]
/drivers/net/ethernet/i825xx/
Dlib82596.c321 struct i596_cmd *cmd_head; member
424 cmd = lp->cmd_head; in i596_display_data()
573 lp->cmd_head = NULL; in init_i596_mem()
801 while (lp->cmd_head != NULL) { in i596_cleanup_cmd()
802 ptr = lp->cmd_head; in i596_cleanup_cmd()
803 lp->cmd_head = ptr->v_next; in i596_cleanup_cmd()
874 lp->cmd_head)); in i596_add_cmd()
884 if (lp->cmd_head != NULL) { in i596_add_cmd()
889 lp->cmd_head = cmd; in i596_add_cmd()
1156 while (lp->cmd_head != NULL) { in i596_interrupt()
[all …]
D82596.c329 struct i596_cmd *cmd_head; member
475 cmd = lp->cmd_head; in i596_display_data()
669 lp->cmd_head = lp->scb.cmd = I596_NULL; in init_i596_mem()
880 while (lp->cmd_head != I596_NULL) { in i596_cleanup_cmd()
881 ptr = lp->cmd_head; in i596_cleanup_cmd()
882 lp->cmd_head = ptr->v_next; in i596_cleanup_cmd()
950 if (lp->cmd_head != I596_NULL) { in i596_add_cmd()
954 lp->cmd_head = cmd; in i596_add_cmd()
1283 while ((lp->cmd_head != I596_NULL) && (lp->cmd_head->status & STAT_C)) { in i596_interrupt()
1284 ptr = lp->cmd_head; in i596_interrupt()
[all …]
/drivers/net/ethernet/tile/
Dtilepro.c1742 unsigned int cmd_head, cmd_tail, cmd_next; in tile_net_tx_tso() local
1785 cmd_head = eq->cmd_head; in tile_net_tx_tso()
1791 if (cmd_tail < cmd_head && cmd_next >= cmd_head) in tile_net_tx_tso()
1795 if (cmd_next == cmd_head) in tile_net_tx_tso()
1873 unsigned int cmd_head, cmd_tail, cmd_next; in tile_net_tx() local
1965 cmd_head = eq->cmd_head; in tile_net_tx()
1974 if (cmd_tail < cmd_head && cmd_next >= cmd_head) in tile_net_tx()
1978 if (cmd_next == cmd_head) in tile_net_tx()